Troubleshooting Tools



Similar documents
Hands On Activities: TCP/IP Network Monitoring and Management

Procedure: You can find the problem sheet on Drive D: of the lab PCs. 1. IP address for this host computer 2. Subnet mask 3. Default gateway address

Homework 3 TCP/IP Network Monitoring and Management

Subnetting,Supernetting, VLSM & CIDR

LESSON Networking Fundamentals. Understand TCP/IP

Network layer: Overview. Network layer functions IP Routing and forwarding

IP addressing and forwarding Network layer

Technical Support Information Belkin internal use only

Lecture Computer Networks

IP Network Layer. Datagram ID FLAG Fragment Offset. IP Datagrams. IP Addresses. IP Addresses. CSCE 515: Computer Network Programming TCP/IP

Guide to Network Defense and Countermeasures Third Edition. Chapter 2 TCP/IP

Network Layer: and Multicasting Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Transport and Network Layer

IP - The Internet Protocol

TCP/IP Fundamentals. OSI Seven Layer Model & Seminar Outline

Internet Control Protocols Reading: Chapter 3

LAB THREE STATIC ROUTING

Network Layer: Address Mapping, Error Reporting, and Multicasting

Networking Test 4 Study Guide

8.2 The Internet Protocol

1 Data information is sent onto the network cable using which of the following? A Communication protocol B Data packet

Laboratorio 4. Comunicación sincrónica Vía Satélite

Using IPM to Measure Network Performance

NETWORK LAYER/INTERNET PROTOCOLS

Internet Protocol: IP packet headers. vendredi 18 octobre 13

Laboratorio 3 Comunicación sincrónica Vía Satélite

Lab PC Network TCP/IP Configuration

Network Management and Debugging. Jing Zhou

IP network tools & troubleshooting. AFCHIX 2010 Nairobi, Kenya October 2010

ICS 351: Today's plan

IP Routing Features. Contents

04 Internet Protocol (IP)

1 PC to WX64 direction connection with crossover cable or hub/switch

Computer Networks I Laboratory Exercise 1

How do I get to

- IPv4 Addressing and Subnetting -

IPv6 Diagnostic and Troubleshooting

Unix System Administration

Course Overview: Learn the essential skills needed to set up, configure, support, and troubleshoot your TCP/IP-based network.

Chapter 13 Internet Protocol (IP)

Lab 2. CS-335a. Fall 2012 Computer Science Department. Manolis Surligas

Network Layer IPv4. Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS. School of Computing, UNF

NQA Technology White Paper

Command Manual - Network Protocol Quidway S3000 Series Ethernet Switches. Table of Contents

BASIC ANALYSIS OF TCP/IP NETWORKS

RARP: Reverse Address Resolution Protocol

PktFilter A Win32 service to control the IPv4 filtering driver of Windows 2000/XP/Server

Internetworking Microsoft TCP/IP on Microsoft Windows NT 4.0

Mobile IP Network Layer Lesson 02 TCP/IP Suite and IP Protocol

Raritan Valley Community College Academic Course Outline. CISY Advanced Computer Networking

Networking Tools. Windows. Gilbert Held. Troubleshooting, and Security. The Complete Guide to Management, CRC Press INFORMATIONSBIBLIOTHEK

HOST AUTO CONFIGURATION (BOOTP, DHCP)

BASIC TCP/IP NETWORKING

SSVP SIP School VoIP Professional Certification

OSBRiDGE 5XLi. Configuration Manual. Firmware 3.10R

Computer Networks/DV2 Lab

Avaya ExpertNet Lite Assessment Tool

IPv6 Hardening Guide for Windows Servers

IPv6 Fundamentals: A Straightforward Approach

Компјутерски Мрежи NAT & ICMP

Linux MDS Firewall Supplement

Dynamic Host Configuration Protocol (DHCP) 02 NAT and DHCP Tópicos Avançados de Redes

Network Pop Quiz 5 Brought to you by please visit our site!

Lecture 8. IP Fundamentals

ACHILLES CERTIFICATION. SIS Module SLS 1508

Effect of Windows XP Firewall on Network Simulation and Testing

2. IP Networks, IP Hosts and IP Ports

Gary Hecht Computer Networking (IP Addressing, Subnet Masks, and Packets)

SSVVP SIP School VVoIP Professional Certification

Prestige 310. Cable/xDSL Modem Sharing Router. User's Guide Supplement

Computer Networks. Lecture 3: IP Protocol. Marcin Bieńkowski. Institute of Computer Science University of Wrocław

Chapter 4 Network Layer

Policy Based Forwarding

Outline. CSc 466/566. Computer Security. 18 : Network Security Introduction. Network Topology. Network Topology. Christian Collberg

Laboratory work 4. Application of Windows OS Built-in Networks Diagnostic Tools

Overview of TCP/IP. TCP/IP and Internet

Chapter 15: Advanced Networks

Instructor Notes for Lab 3

Topics: 1. HTTP, DNS, and SMTP Examples 2. Layered Architectures 3. OSI Reference Model 4. TCP/IP Reference Model. Garcia: Sections

Zarząd (7 osób) F inanse (13 osób) M arketing (7 osób) S przedaż (16 osób) K adry (15 osób)

Additional Information: A link to the conference website is available at:

Internetworking. Problem: There is more than one network (heterogeneity & scale)

Guide to TCP/IP, Third Edition. Chapter 3: Data Link and Network Layer TCP/IP Protocols

HP 5120 SI Switch Series

Slide 1 Introduction cnds@napier 1 Lecture 6 (Network Layer)

Security Technology White Paper

Chapter 6 Configuring IP

TECHNICAL NOTE. Technical Note P/N REV 03. EMC NetWorker Simplifying firewall port requirements with NSR tunnel Release 8.

Networking 4 Voice and Video over IP (VVoIP)

Configuring PA Firewalls for a Layer 3 Deployment

LAN TCP/IP and DHCP Setup

Chapter 7 Troubleshooting

Computer Networks/DV2 Lab

CCNA Discovery Networking for Homes and Small Businesses Student Packet Tracer Lab Manual

Network layer" 1DT066! Distributed Information Systems!! Chapter 4" Network Layer!! goals: "

Network Layer: Network Layer and IP Protocol

HP A5820X & A5800 Switch Series Network Management and Monitoring. Configuration Guide. Abstract

Transcription:

Troubleshooting Tools An overview of the main tools for verifying network operation from a host Fulvio Risso Mario Baldi Politecnico di Torino (Technical University of Turin) see page 2 Notes n The commands/programs described in this presentation are commonly available both on UNIX and Windows workstations n Nevertheless n Options and parameters might be different n Output might be different n Hence n Content of this presentation should not be taken literally n It should be used as a starting point n Command syntax and output should be double-checked n Moreover only options and parameters considered relevant to our purposes are listed here n For some commands an equivalent program with graphic interface might exist troubleshooting_tools.odp - 3 ping n Checks network reachability of a host n Syntax: ping [options] target Option -t ICMP Echo Request messages sent continually until Ctrl+C is pressed (in UNIX this is default behaviour). -c count Sends count ICMP Echo Request messages (in Windows default count is 4). -i TTL ICMP Echo Request messages are sent into IP packet with Time To Live field containing TTL (only Windows). -w timeout A reply is waited for at most timeout milliseconds; if a later reply is ignored. -R (Possibly) records path taken by packets by activating Record Route option in the ICMP Echo Request message. troubleshooting_tools.odp - 4

ping Output Example PING www.xenia.it (209.238.252.133): 56 data bytes 64 bytes from 209.238.252.133: icmp_seq=0 ttl=113 time=1318 ms 64 bytes from 209.238.252.133: icmp_seq=1 ttl=113 time=1738 ms 64 bytes from 209.238.252.133: icmp_seq=2 ttl=113 time=1756 ms 64 bytes from 209.238.252.133: icmp_seq=3 ttl=113 time=1808 ms 64 bytes from 209.238.252.133: icmp_seq=4 ttl=113 time=1804 ms 64 bytes from 209.238.252.133: icmp_seq=5 ttl=113 time=1751 ms 64 bytes from 209.238.252.133: icmp_seq=6 ttl=113 time=1617 ms 64 bytes from 209.238.252.133: icmp_seq=7 ttl=113 time=1526 ms 64 bytes from 209.238.252.133: icmp_seq=8 ttl=113 time=902 ms 64 bytes from 209.238.252.133: icmp_seq=9 ttl=113 time=1409 ms ----www.xenia.it PING Statistics---- 10 packets transmitted, 10 packets received, 0% packet loss round-trip (ms) min/avg/max = 902/1562/1808 ms troubleshooting_tools.odp - 5 Round-trip time (RTT): time elapsed from the transmission of an ICMP Echo Request to the reception of the corresponding ICMP Echo Reply; it is a measure of the distance between local and target host. ping Working Principle n Testing host sends an ICMP Echo Request message to target host n Target host replies with ICMP Echo Reply message 0 = Echo Request 8 = Echo Reply Type Code Checksum Identifier Sequence Number Data troubleshooting_tools.odp - 6 Interpreting ping Outcome n If replies are received, connectivity to target host exists n When replies are not received n A routing problem might exist on the path from local host to target n A routing problem might exist on path from target to local host n The two paths might not be the same n Routers might be configured not to forward IP packets containing ICMP messages n A firewall on the path might filter out ICMP messages n A Personal Firewall on the local host or target host might filter out ICMP messages troubleshooting_tools.odp - 7

Traceroute n Shows the (likely) path (or route) to the target host n Shows routers traversed by packets traveling from local host to target host n IP address or domain name of one interface of each router is shown n Not necessary the interface having received or forwarded the packet n Syntax traceroute [options] target (UNIX) tracert [options] target (Windows) troubleshooting_tools.odp - 8 Traceroute Output Example traceroute to library.airnews.net (206.66.12.202), 30 hops max, 40 byte packets 1 rbrt3 (208.225.64.50) 4.867 ms 4.893 ms 3.449 ms 2 519.Hssi2-0-0.GW1.EWR1.ALTER.NET (157.130.0.17) 6.918 ms 8.721 ms 16.476 ms 3 113.ATM3-0.XR2.EWR1.ALTER.NET (146.188.176.38) 6.323 ms 6.123 ms 7.011 ms 4 192.ATM2-0.TR2.EWR1.ALTER.NET (146.188.176.82) 6.955 ms 15.400 ms 6.684 ms 5 105.ATM6-0.TR2.DFW4.ALTER.NET (146.188.136.245) 49.105 ms 49.921 ms 47.371 ms 6 298.ATM7-0.XR2.DFW4.ALTER.NET (146.188.240.77) 48.162 ms 48.052 ms 47.565 ms 7 194.ATM9-0-0.GW1.DFW1.ALTER.NET (146.188.240.45) 47.886 ms 47.380 ms 50.690 ms 8 iadfw3-gw.customer.alter.net (137.39.138.74) 69.827 ms 68.112 ms 66.859 ms 9 library.airnews.net (206.66.12.202) 174.853 ms 163.945 ms 147.501 ms Round-trip time (RTT): time elapsed from the transmission of an ICMP Echo Request to the reception of the corresponding ICMP Time Exceedded message; it provides a very loose measure of the travel time between local host and each router. Sometimes travel time changes significantly in the course of a few seconds due to temporary congestion of routers. troubleshooting_tools.odp - 9 Traceroute Working Principle 1. Local host sends an ICMP Echo Request message in IP packet with TTL = 1 2. First router (default gateway) decrements TTL and discards IP packet and reacts sending ICMP TTL Exceeded in Transit 3. Local host receives ICMP TTL Exceeded in Transit and from source address of encapsulating IP packet learns one IP address of first router Specific interface depends on router implementation Might be interface through which IP packet was sent 4. Local host sends another ICMP Echo Request message in IP packet with incremented TTL (TTL = 2) 5. Default gateway forwards IP packet decrementing TTL (=1) 6. Second router on the path decrements TTL and discards IP packet and reacts sending ICMP TTL Exceeded in Transit Some Unix implementations send a UDP message rathern than an ICMP Echo Request message troubleshooting_tools.odp - 10

Traceroute Options Option -f TTL TTL used as initial value for Time To Live field in first IP packet rather than the default 1. -l Uses ICMP Echo Request messages rather than UDP messaged (UNIX only). -p port Generates UDP messages to port destination port rather than default 33434 (UNIX only). -m count Uses count as the maximum value for the Time To Live field rather than the default 30. -w timeout A reply is waited for at most timeout milliseconds; if a later reply is ignored. -q count count test messages are generated for each value of the Time To Live field (default is three). troubleshooting_tools.odp - 11 arp n Shows and modifies ARP cache content n Syntax arp [options] [IPAddr] [EthAddr] Options -a Shows the current ARP cache content highlighting static and dynamic entries. -d IPAddr Eliminates from ARP cache MAC address mapping corresponding to host IPAddr. -s IPAddr EthAddr Adds stating mapping between network address IPAddr and data-link address EthAddr. troubleshooting_tools.odp - 12 arp Sample Output C:\>arp a Interface: 130.192.16.81 --- 0x30004 Internet Address Physical Address Type 130.192.16.17 00-e0-63-13-7e-01 dynamic 130.192.16.36 00-10-4b-35-f2-fa dynamic troubleshooting_tools.odp - 13

netstat n Shows main network parameters n Syntax: netstat [options] Opzione Descrizione [no param.] Lists active layer 4 connections and sessions. -a Lists active layer 4 connections and sessions, as well as TCP or UDP servers on the loacl host. -s Shows per-protocol (layer 3 and 4) statistics. -e Shows Ethernet card statistics. -r Displays IP routing table. troubleshooting_tools.odp - 14 netstat Output Example C:\>netstat a Active Connections Proto Local Address Foreign Address State TCP truciolo:http truciolo:0 LISTENING TCP truciolo:epmap truciolo:0 LISTENING TCP truciolo:https truciolo:0 LISTENING TCP truciolo:2747 truciolo:0 LISTENING TCP truciolo:2747 localhost:2748 ESTABLISHED TCP truciolo:2748 localhost:2747 ESTABLISHED UDP truciolo:microsoft-ds *:* UDP truciolo:isakmp *:* UDP truciolo:1030 *:* UDP truciolo:1078 *:* UDP truciolo:2040 *:* UDP truciolo:2359 *:* UDP truciolo:3456 *:* UDP truciolo:4500 *:* UDP truciolo:ntp *:* troubleshooting_tools.odp - 15 netstat Output Example C:\>netstat -r Route Table =========================================================================== Interface List 0x1... MS TCP Loopback interface 0x2...00 10 4b 35 f2 fa... 3Com EtherLink PCI =========================================================================== =========================================================================== Active Routes: Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 130.192.3.17 130.192.28.4 1 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1 130.192.0.0 255.255.0.0 130.192.28.4 130.192.28.4 1 130.192.28.4 255.255.255.255 127.0.0.1 127.0.0.1 1 130.192.255.255 255.255.255.255 130.192.28.4 130.192.28.4 1 224.0.0.0 224.0.0.0 130.192.28.4 130.192.28.4 1 255.255.255.255 255.255.255.255 130.192.28.4 130.192.28.4 1 Default Gateway: 130.192.3.17 =========================================================================== Persistent Routes: None troubleshooting_tools.odp - 16

netstat Output Example C:\>netstat -s IPv4 Statistics Packets Received = 1762191 Received Header Errors = 12 Received Address Errors = 655093 Datagrams Forwarded = 0 Unknown Protocols Received = 0 Received Packets Discarded = 0 Received Packets Delivered = 1127699 Output Requests = 951452 Routing Discards = 0 Discarded Output Packets = 0 Output Packet No Route = 8 Reassembly Required = 0 Reassembly Successful = 0 Reassembly Failures = 0 Datagrams Successfully Fragmented = 0 Datagrams Failing Fragmentation = 0 Fragments Created = 0 [continue...] [...continue] ICMPv4 Statistics Received Sent Messages 1246 1780 Errors 0 0 Destination Unreachable 371 476 Time Exceeded 0 0 Parameter Problems 0 0 Source Quenches 0 0 Redirects 0 0 Echos 555 749 Echo Replies 168 555 Timestamps 0 0 Timestamp Replies 0 0 Address Masks 0 0 Address Mask Replies 0 0 TCP Statistics for IPv4 Active Opens = 8767 Passive Opens = 769 Failed Connection Attempts = 420 Reset Connections = 1436 Current Connections = 3 Segments Received = 759943 Segments Sent = 768276 Segments Retransmitted = 1003 troubleshooting_tools.odp - 17 netstat Output Example C:\>netstat -e Interface Statistics Received Sent Bytes 458905257 313090297 Unicast packets 786574 805622 Non-unicast packets 1565173 34366 Discards 0 0 Errors 0 112 Unknown protocols 232253 0 troubleshooting_tools.odp - 18 route n Displays and modifies IP routing table n Syntax: route [options] [command] [parameters] Option print add NetAddr mask NetMask Gateway delete NetAddr mask NetMask Gateway Displays routing table; equivalent to netstat r. Adds route for network NetAddr/NetMask (e.g., 10.0.0.0/255.255.255.0) through next hop Gateway. Removes route for network NetAddr/NetMask (e.g., 10.0.0.0/255.255.255.0) through next hop Gateway. troubleshooting_tools.odp - 19

ipconfig n Displays and modifies some of the IP stack parameters n Syntax: ipconfig [options] Option [no param.] /all /displaydns /flushdns Displays main TCP/IP configuration data (addresses, netmask, default gateway, DNS server). Displays all TCP/IP configuration data (addresses, netmask, default gateway, DNS server, lease time for DHCP assigned addresses). Displays local host DNS cache. Flushes local host DNS cache. troubleshooting_tools.odp - 20 ipconfig Output Example C:\>ipconfig Windows IP Configuration Ethernet adapter Local Area Connection: Connection-specific DNS Suffix. : IP Address............ : 130.192.16.81 Subnet Mask........... : 255.255.255.0 IP Address............ : 2001:760:400:1:3c71:db18:e713:fd56 IP Address............ : 2001:760:400:1:20b:dbff:fe14:50bb IP Address............ : fe80::20b:dbff:fe14:50bb%8 Default Gateway......... : 130.192.16.17 fe80::207:ebff:fe7e:c60%8 troubleshooting_tools.odp - 21 ipconfig Output Example C:\>ipconfig /all Windows IP Configuration Host Name............ : truciolo Primary Dns Suffix....... : Node Type............ : Hybrid IP Routing Enabled........ : No WINS Proxy Enabled........ : No Ethernet adapter Local Area Connection: Connection-specific DNS Suffix. :........... : 3Com 3C920 Fast Ethernet (3C905C-TX) Physical Address......... : 00-0B-DB-14-50-BB Dhcp Enabled........... : No IP Address............ : 130.192.16.81 Subnet Mask........... : 255.255.255.0 IP Address............ : 2001:760:400:1:3c71:db18:e713:fd56 IP Address............ : 2001:760:400:1:20b:dbff:fe14:50bb IP Address............ : fe80::20b:dbff:fe14:50bb%8 Default Gateway......... : 130.192.16.17 fe80::207:ebff:fe7e:c60%8 DNS Servers........... : 130.192.3.21 130.192.3.24 fec0:0:0:ffff::1%1 fec0:0:0:ffff::2%1 fec0:0:0:ffff::3%1 troubleshooting_tools.odp - 22

ipconfig Output Example C:\>ipconfig /displaydns Windows IP Configuration troubleshooting_tools.odp - 23 www.polito.it ---------------------------------------- Record Name..... : www.polito.it Record Type..... : 5 Time To Live.... : 86398 Data Length..... : 4 Section....... : Answer CNAME Record.... : web01.polito.it localhost ---------------------------------------- Record Name..... : localhost Record Type..... : 1 Time To Live.... : 0 Data Length..... : 4 Section....... : Answer A (Host) Record... : 127.0.0.1...