38
S O L U T I O N S commVer e G Hong Kong Bangkok Beijing Brunei Kuala Lumpur Manila San Jose Seoul Shanghai Singapore Taipei Network Diagnostic Introduction Kae Hsu Commverge Solutions, Taiwan FEGTS IP Training 2011/11/11, Taipei

FEGTS IP Training - Network Diagnostic Introduction

  • Upload
    kae-hsu

  • View
    412

  • Download
    2

Embed Size (px)

DESCRIPTION

FEGTS IP training material for 2011/10/28, 2011/11/4 and 2011/11/11

Citation preview

Page 1: FEGTS IP Training - Network Diagnostic Introduction

S O L U T I O N S

c o mm V e r eG • Hong Kong• Bangkok• Beijing • Brunei• Kuala Lumpur• Manila• San Jose• Seoul• Shanghai• Singapore• Taipei

Network Diagnostic Introduction

Kae Hsu

Commverge Solutions, Taiwan

FEGTS IP Training2011/11/11, Taipei

Page 2: FEGTS IP Training - Network Diagnostic Introduction

2

WW

W.C

OM

MV

ER

GE

.CO

M

Object

Course Object– By the course, the students could understand basic

network troubleshooting concept, principle and relative tools

Course Information– 2.5 hours lecture & hand-on practice– 30 minutes Q & A

Page 3: FEGTS IP Training - Network Diagnostic Introduction

3

WW

W.C

OM

MV

ER

GE

.CO

M

Agenda

Network diagnostic concept Hostname resolution verification Network connection verification Application condition verification Low level traffic investigation Friendly tools Hands-on practice

Page 4: FEGTS IP Training - Network Diagnostic Introduction

4

WW

W.C

OM

MV

ER

GE

.CO

M

Network diagnostic concept

Regular Internet connection concept

Client

DNS

Server

www.abc.com = ?

www.abc.com = 203.47.56.180

Page 5: FEGTS IP Training - Network Diagnostic Introduction

5

WW

W.C

OM

MV

ER

GE

.CO

M

Network diagnostic concept

Regular troubleshooting sequence– Hostname resolution verification

• nslookup & dig– Network connection verification

• ping & traceroute– Application condition verification

• telnet

Page 6: FEGTS IP Training - Network Diagnostic Introduction

6

WW

W.C

OM

MV

ER

GE

.CO

M

Hostname resolution verification

– nslookup• Name/IP address query

Page 7: FEGTS IP Training - Network Diagnostic Introduction

7

WW

W.C

OM

MV

ER

GE

.CO

M

Hostname resolution verification

– nslookup• Mail Exchange (MX) query

Page 8: FEGTS IP Training - Network Diagnostic Introduction

8

WW

W.C

OM

MV

ER

GE

.CO

M

Hostname resolution verification

– dig• Name/IP address query

Page 9: FEGTS IP Training - Network Diagnostic Introduction

9

WW

W.C

OM

MV

ER

GE

.CO

M

Hostname resolution verification

– dig• Mail Exchange (MX) query

Page 10: FEGTS IP Training - Network Diagnostic Introduction

10

WW

W.C

OM

MV

ER

GE

.CO

M

Network connection verification

– ping• Check network connection status

– concept

Client Server

Are you there?

Are you there?

Are you there?

Are you there?

Are you there?

Are you there?

I am here

I am here

I am hereI am

here

I am here

I am here

I am here

“Server” is alive

Page 11: FEGTS IP Training - Network Diagnostic Introduction

11

WW

W.C

OM

MV

ER

GE

.CO

M

Network connection verification

– ping• ICMP packet

– ICMP echo-request & echo-reply– Identify reachability & round-trip time

Client Server

echo request

echo request

echo request

echo request

echo request

echo request

echo reply

echo reply

echo replyecho

reply

echo reply

echo reply

echo reply

“Server” is alive

Page 12: FEGTS IP Training - Network Diagnostic Introduction

12

WW

W.C

OM

MV

ER

GE

.CO

M

Network connection verification

– ping• ICMP identifier & sequence number

– match reply & request

Client Server

echo request

echo request

echo request

echo request

echo request

echo request

echo reply

echo reply

echo replyecho

reply

echo reply

echo reply

echo reply

Page 13: FEGTS IP Training - Network Diagnostic Introduction

13

WW

W.C

OM

MV

ER

GE

.CO

M

Network connection verification

– ICMP block by network filter

Client Server

echo request

echo request

echo request

echo request

echo requestICMP timeout packet dropped

Page 14: FEGTS IP Training - Network Diagnostic Introduction

14

WW

W.C

OM

MV

ER

GE

.CO

M

Network connection verification

– traceroute• Check packet forwarding path information

– concept (in forwarding path)• router will drop packet with TTL=1

– “ICMP time exceeded” message sent to source with router inbound interface

TTL=1

ICMP

TTL=2

ICMP

TTL=3

ICMP

TTL=1

TTL=2 TTL=1

Page 15: FEGTS IP Training - Network Diagnostic Introduction

15

WW

W.C

OM

MV

ER

GE

.CO

M

Network connection verification

– concept (arrive destination)• destination will NOT check TTL status• different response with different probe packet

– ICMP echo-request – response ICMP echo-reply– UDP with high destination port – response ICMP port unreachable

• ICMP

• UDP

TTL=4

ICMPecho reply

TTL=3 TTL=2

TTL=4 TTL=3 TTL=2

TTL=1

TTL=1

ICMP port unreachable

Page 16: FEGTS IP Training - Network Diagnostic Introduction

16

WW

W.C

OM

MV

ER

GE

.CO

M

Network connection verification

– Multiple path in a single traceroute task• router load-share the traffic by flow information• identify different flow by

– different ICMP echo-request identifier– different UDP port number

TTL=3

ICMPTime Exceed

ICMPTime Exceed

ICMPTime Exceed

ICMPTime Exceed

Page 17: FEGTS IP Training - Network Diagnostic Introduction

17

WW

W.C

OM

MV

ER

GE

.CO

M

Application condition verification

Internet application communication concept– TCP 3 way handshaking

• Verify TCP connection first during troubleshooting

From "Figure 211: TCP “Three-Way Handshake” Connection Establishment Procedure" in TCP/IP Guide

Page 18: FEGTS IP Training - Network Diagnostic Introduction

18

WW

W.C

OM

MV

ER

GE

.CO

M

Application condition verification

– telnet• To verify the destination site service status

– example• A WEB service• check correct IP information• check network connection status• check service response

Page 19: FEGTS IP Training - Network Diagnostic Introduction

19

WW

W.C

OM

MV

ER

GE

.CO

M

Application condition verification

– example

Page 20: FEGTS IP Training - Network Diagnostic Introduction

20

WW

W.C

OM

MV

ER

GE

.CO

M

Low level traffic investigation

“Sniffer” the traffic– TCPDUMP

Page 21: FEGTS IP Training - Network Diagnostic Introduction

21

WW

W.C

OM

MV

ER

GE

.CO

M

Friendly Tools

WinMTR– Probe target & provide path information together

• Download: http://winmtr.net/download-winmtr/

Page 22: FEGTS IP Training - Network Diagnostic Introduction

22

WW

W.C

OM

MV

ER

GE

.CO

M

Friendly Tools

Looking glass– Execute ping/traceroute from different sites

Page 23: FEGTS IP Training - Network Diagnostic Introduction

23

WW

W.C

OM

MV

ER

GE

.CO

M

Friendly Tools

Looking glass

Page 24: FEGTS IP Training - Network Diagnostic Introduction

24

WW

W.C

OM

MV

ER

GE

.CO

M

Friendly Tools

Looking glass list

Page 25: FEGTS IP Training - Network Diagnostic Introduction

25

WW

W.C

OM

MV

ER

GE

.CO

M

Friendly Tools

Wireshark

Page 26: FEGTS IP Training - Network Diagnostic Introduction

26

WW

W.C

OM

MV

ER

GE

.CO

M

Friendly Tools

– Wireshark reference guide• “Wireshark Network Analysis, The Official Wireshark Certified

Network Analyst Study Guide” by Laura Chappell

Page 27: FEGTS IP Training - Network Diagnostic Introduction

27

WW

W.C

OM

MV

ER

GE

.CO

M

Hands-on practice

Lab environment

SSID: WL-330gEPWD: 0123456789192.168.1.0/24

J4350.3

C3750-1.1

C3750-2.2

192.168.7.6

192.168.1.X 192.168.2.X

192.168.3.X

192.168.4.X192.168.5.X192.168.6.X

192.168.7.X

Sniffer box

Page 28: FEGTS IP Training - Network Diagnostic Introduction

28

WW

W.C

OM

MV

ER

GE

.CO

M

Hands-on practice

Install Wireshark– Download: http://www.wireshark.org/download.html

Page 29: FEGTS IP Training - Network Diagnostic Introduction

29

WW

W.C

OM

MV

ER

GE

.CO

M

Hands-on practice

– Use Wireshark to monitor DNS message

Page 30: FEGTS IP Training - Network Diagnostic Introduction

30

WW

W.C

OM

MV

ER

GE

.CO

M

Hands-on practice

– Use Wireshark to monitor ICMP message

Page 31: FEGTS IP Training - Network Diagnostic Introduction

31

WW

W.C

OM

MV

ER

GE

.CO

M

Hands-on practice

ping

Page 32: FEGTS IP Training - Network Diagnostic Introduction

32

WW

W.C

OM

MV

ER

GE

.CO

M

Hands-on practice

traceroute

Page 33: FEGTS IP Training - Network Diagnostic Introduction

33

WW

W.C

OM

MV

ER

GE

.CO

M

Hands-on practice

DNS – nslookup– 開始 ->

執行 -> “cmd”

Page 34: FEGTS IP Training - Network Diagnostic Introduction

34

WW

W.C

OM

MV

ER

GE

.CO

M

Prior Course Q & A Summary

Is there any troubleshooting skill for SCTP?– Using Tools

• Iperf over SCTP– Adapted version of Iperf(version 1.6.5), runs on lksctp– Use iperf with –z to open SCTP connection to test target

• Windows SCTP library– Bundle some SCTP application for simple test

– Useful link• http://www.sctp.be/

– SCTP research and simulation page– SCTP Software page– SCTP application Software production page

• http://sigtran.org– SCTP Test Tool (stt)– SCTP Performance Test

Page 35: FEGTS IP Training - Network Diagnostic Introduction

35

WW

W.C

OM

MV

ER

GE

.CO

M

Prior Course Q & A Summary

How to capture packet by tcpdump from TWO or more NICs at the same time?A. Use “any” as “-i” parameter on Linux

a) From tcpdump man page:-I

Listen on interface. If unspecified, tcpdump searches the system interface list for the lowest numbered, configured up interface (excluding loopback). Ties are broken by choosing the earliest match.On Linux systems with 2.2 or later kernels, an interface argument of ``any'' can be used to capture packets from all interfaces. Note that captures on the ``any'' device will not be done in promiscuous mode.If the -D flag is supported, an interface number as printed by that flag can be used as the interface argument.

Page 36: FEGTS IP Training - Network Diagnostic Introduction

36

WW

W.C

OM

MV

ER

GE

.CO

M

Prior Course Q & A Summary

How to flush DNS cache manually?– With BIND 9.2.0 or newer

• # rndc flush– With older BIND

• Kill BIND process and restart it• # rndc restart

– For detail information, please refer• “Flushing (Clearing) a Name Server's Cache”

from “DNS & Bind Cookbook” by Cricket Liu, O’Reilly

Page 37: FEGTS IP Training - Network Diagnostic Introduction

37

WW

W.C

OM

MV

ER

GE

.CO

M

Prior Course Q & A Summary

How to execute ping by different interface?– Windows platform

• Use ‘-S’ parameter to identify source IP address– Linux

• Use ‘-I interface/IP_address’ to identify source IP address– IOS

• Enter extended command to identify source IP or interface• Use “source” parameter to identify source IP address (newer)

– Junos• Use “source” parameter to identify source IP address

Page 38: FEGTS IP Training - Network Diagnostic Introduction

38

WW

W.C

OM

MV

ER

GE

.CO

M

Q & A