Troubleshooting Tools

Similar documents
ICMPv6. Internet Control Message Protocol version 6. Mario Baldi. Politecnico di Torino. (Technical University of Turin)

Spanning Tree Protocol

Procedure Note: The research steps for this lab are not included in this procedure.

Problems of IP. Unreliable connectionless service. Cannot acquire status information from routers and other hosts

ICS 451: Today's plan

Static Routing Design Exercises

Table of Contents 1 System Maintaining and Debugging Commands 1-1

Internet Control Message Protocol (ICMP)

Network Layer (4): ICMP

Table of Contents 1 System Maintenance and Debugging Commands 1-1

IP - The Internet Protocol. Based on the slides of Dr. Jorg Liebeherr, University of Virginia

Contents. Ping, tracert, and system debugging commands 1 debugging 1 display debugging 2 ping 2 ping ipv6 5 tracert 7 tracert ipv6 9

Homework 2 TCP/IP Network Monitoring and Management

Internet Protocol. Outline Introduction to Internet Protocol Header and address formats ICMP Tools CS 640 1

Internet protocols: ICMP, ARP, DHCP

CS 457 Lecture 11 More IP Networking. Fall 2011

ICMP (Internet Control Message Protocol)

Ping, tracert and system debugging commands

Lab 6.7.1: Ping and Traceroute

Internetworking/Internetteknik, Examination 2G1305 Date: August 18 th 2004 at 9:00 13:00 SOLUTIONS

Aisyatul Karima Jarkom Lanjut - Week 3 LOGO.

Homework #2. Objective: GRADE A. Equipment List: Procedure/Data: Activity 1A. Emmanuel A. Ellis Web Systems 9/7/2017

IPv4 and IPv6 Commands

Chapter 5: Trouble shooting of a network

ICS 351: Networking Protocols

(ICMP), RFC

Each ICMP message contains three fields that define its purpose and provide a checksum. They are TYPE, CODE, and CHECKSUM fields.

CS 356: Computer Network Architectures. Lecture 10: IP Fragmentation, ARP, and ICMP. Xiaowei Yang

Internet Control Message Protocol (ICMP)

Contents. Ping, tracert, and system debugging commands 1. debugging 1 display debugging 1 ping 2 ping ipv6 5 tracert 7 tracert ipv6 10

Lecture 3. The Network Layer (cont d) Network Layer 1-1

Configuring Routes on the ACE

IP over. Mario Baldi. Politecnico di Torino. (Technical University of Turin) IPinterconnection - 1 Copyright: si veda nota a pag.

Internet Control Message Protocol (ICMP), RFC 792. Prof. Lin Weiguo Copyleft 2009~2017, School of Computing, CUC

Homework 2: Lab Activity TCP/IP Network Monitoring and Management

ROUTING PROTOCOLS. Mario Baldi Routing - 1. see page 2

CCNA Exploration Network Fundamentals. Chapter 06 Addressing the Network IPv4

Last time. Network layer. Introduction. Virtual circuit vs. datagram details. IP: the Internet Protocol. forwarding vs. routing

Paper solution Subject: Computer Networks (TE Computer pattern) Marks : 30 Date: 5/2/2015

Network Layer. The Network Layer. Contents Connection-Oriented and Connectionless Service. Recall:

Network Layer. Recall: The network layer is responsible for the routing of packets The network layer is responsible for congestion control

CPSC 826 Internetworking. The Network Layer: Routing & Addressing Outline. The Network Layer

MESSAGES error-reporting messages and query messages. problems processes IP packet specific information

H

TCP/IP Fundamentals. Introduction. Practice Practice : Name. Date Period

Traffic priority - IEEE 802.1p

TSIN02 - Internetworking

Internet Protocols (chapter 18)

The Network Layer. Internet solutions. Nixu Oy PL 21. (Mäkelänkatu 91) Helsinki, Finland. tel fax.

Table of Contents 1 System Maintaining and Debugging 1-1

Vorlesung Kommunikationsnetze

Master Course Computer Networks IN2097

I Commands. iping, page 2 iping6, page 4 itraceroute, page 5 itraceroute6 vrf, page 6. itraceroute vrf encap vxlan, page 12

Configuring IPsec on Cisco Routers Mario Baldi Politecnico di Torino (Technical University of Torino)

Using ping, tracert, and system debugging

Fundamentals of Computer Networking AE6382

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

TCP/IP Protocol Suite

Outline. SC/CSE 3213 Winter Sebastian Magierowski York University. ICMP ARP DHCP NAT (not a control protocol) L9: Control Protocols

H

Table of Contents 1 IPv6 Configuration IPv6 Application Configuration 2-1

Guide to Networking Essentials, 6 th Edition. Chapter 5: Network Protocols

OSI Network Layer. Network Fundamentals Chapter 5. Version Cisco Systems, Inc. All rights reserved. Cisco Public 1

Ch.9 Internet Protocol: Error And Control Messages (ICMP)

Da t e: August 2 0 th a t 9: :00 SOLUTIONS

Using ICMP to Troubleshoot TCP/IP Networks

Lecture 8. Reminder: Homework 3, Programming Project 2 due on Thursday. Questions? Tuesday, September 20 CS 475 Networks - Lecture 8 1

CS475 Networks Lecture 8 Chapter 3 Internetworking. Ethernet or Wi-Fi).

Introduction to Computer Networks. CS 166: Introduction to Computer Systems Security

Command Manual Network Protocol. Table of Contents

Table of Contents 1 IPv6 Configuration IPv6 Application Configuration 2-1

internet technologies and standards

Router Architecture Overview

Department of Computer Science and Engineering. COSC 4213: Computer Networks II (Fall 2005) Instructor: N. Vlajic Date: November 3, 2005

The Internetworking Problem. Internetworking. A Translation-based Solution

LAB THREE STATIC ROUTING

Lecture 8. Basic Internetworking (IP) Outline. Basic Internetworking (IP) Basic Internetworking (IP) Service Model

Module 7 Internet And Internet Protocol Suite

Introduction to Internetworking

ICMP (Internet Control Message Protocol)

IGMP Snooping. Mario Baldi. Pietro Nicoletti. Politecnico di Torino. Studio Reti

To make a difference between logical address (IP address), which is used at the network layer, and physical address (MAC address),which is used at

Chapter 4 Network Layer

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing

IPv6 ND Configuration Example

Introduction to routing in the Internet

Network layer: Overview. Network Layer Functions

Course Contents. The TCP/IP protocol Stack

History Page. Barracuda NextGen Firewall F

Operational Security Capabilities for IP Network Infrastructure

IP Internet Protocol. Agenda. IP on everything everything on IP. TCP/IP and Internet. An internet. Request For Comments (RFC)

Communication Networks ( ) / Fall 2013 The Blavatnik School of Computer Science, Tel-Aviv University. Allon Wagner

Command Manual (For Soliton) IP Address-IP Performance. Table of Contents

Computer Networks Security: intro. CS Computer Systems Security

Information Network Systems The network layer. Stephan Sigg

Chapter 3 Review Questions

Introduction to routing in the Internet

Contents. IP addressing configuration commands 1 display ip interface 1 display ip interface brief 3 ip address 5

Lecture 4 - Network Layer. Transport Layer. Outline. Introduction. Notes. Notes. Notes. Notes. Networks and Security. Jacob Aae Mikkelsen

MPLS Multi-protocol label switching Mario Baldi Politecnico di Torino (Technical University of Torino)

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

Copyright Notice This set of transparencies, hereinafter referred to as slides, is protected by copyright laws and provisions of International Treaties. The title and copyright regarding the slides (including, but not limited to, each and every image, photography, animation, video, audio, music and text) are property of the authors specified on page 1. The slides may be reproduced and used freely by research institutes, schools and Universities for non-profit institutional purposes. In such cases, no authorization is requested. Any total or partial use or reproduction (including, but not limited to, reproduction on magnetic media, computer networks, and printed reproduction) is forbidden, unless explicitly authorized by the authors by means of written license. Information included in these slides is deemed as accurate at the date of publication. Such information is supplied for merely educational purposes and may not be used in designing systems, products, networks, etc. In any case, these slides are subject to changes without any previous notice. The authors do not assume any responsibility for the contents of these slides (including, but not limited to, accuracy, completeness, enforceability, updated-ness of information hereinafter provided). In any case, accordance with information hereinafter included must not be declared. In any case, this copyright notice must never be removed and must be reported even in partial uses. 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 Description -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 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. troubleshooting_tools.odp - 5

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 Description -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 Description -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 Description print Displays routing table; equivalent to netstat r. add NetAddr mask NetMask Gateway delete NetAddr mask NetMask Gateway 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 Description [no param.] Displays main TCP/IP configuration data (addresses, netmask, default gateway, DNS server). /all Displays all TCP/IP configuration data (addresses, netmask, default gateway, DNS server, lease time for DHCP assigned addresses). /displaydns Displays local host DNS cache. /flushdns 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. : Description........... : 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 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... troubleshooting_tools.odp - 23