Traceroute traceroute is a Unix utility designed by Van Jacobson in 1987 The Windows equivalent is called tracert The Linux equivalent is called tracepath.

Slides:



Advertisements
Similar presentations
Computer Networks21-1 Chapter 21. Network Layer: Address Mapping, Error Reporting, and Multicasting 21.1 Address Mapping 21.2 ICMP 21.3 IGMP 21.4 ICMPv6.
Advertisements

21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
Internet Control Protocols Savera Tanwir. Internet Control Protocols ICMP ARP RARP DHCP.
CSCI 4550/8556 Computer Networks Comer, Chapter 23: An Error Reporting Mechanism (ICMP)
Week 5: Internet Protocol Continue to discuss Ethernet and ARP –MTU –Ethernet and ARP packet format IP: Internet Protocol –Datagram format –IPv4 addressing.
Internet Control Message Protocol (ICMP)
CPSC 441 Tutorial - Network Tools 1 Network Tools CPSC 441 – Computer Communications Tutorial.
The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.
Chapter 5 The Network Layer.
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
Internet Control Message Protocol (ICMP)
ICMP: Ping and Trace CCNA 1 version 3.0 Rick Graziani Spring 2005.
Internet Command Message Protocol (ICMP) CS-431 Dick Steflik.
Network Measurement Bandwidth Analysis. Why measure bandwidth? Network congestion has increased tremendously. Network congestion has increased tremendously.
CISCO NETWORKING ACADEMY Chabot College ELEC ping & traceroute.
1 ICMP – Using Ping and Trace CCNA Semester
1 Linux Networking Lal Paul IP Addressing & Routing By Lal Paul Systems Administrator CIRM, CUSAT IP Addressing & Routing By Lal Paul Systems Administrator.
CCNA Introduction to Networking 5.0 Rick Graziani Cabrillo College
CS 6401 Internet Protocol Outline Introduction to Internet Protocol Header and address formats ICMP Tools.
Internet Control Message Protocol ICMP. ICMP has two major purposes: –To report erroneous conditions –To diagnose network problems ICMP has two major.
Petrozavodsk State University, Alex Moschevikin, 2003NET TECHNOLOGIES Internet Control Message Protocol ICMP author -- J. Postel, September The purpose.
Network Layer4-1 NAT: Network Address Translation local network (e.g., home network) /24 rest of.
Guide to TCP/IP, Third Edition
Network Administration
ICMP (Internet Control Message Protocol) Computer Networks By: Saeedeh Zahmatkesh spring.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Network Layer ICMP and fragmentation.
Internet Control Message Protocol (ICMP)
Problem Statement Map of OSU Routers Gopi Krishna Tummala Rupam Kundu Graduate Students The Ohio State University.
1 IP: putting it all together Part 2 G53ACC Chris Greenhalgh.
Internet Control Message Protocol (ICMP). Objective l IP and ICMP l Why need ICMP? l ICMP Message Format l ICMP fields l Examples: »Ping »Traceroute.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 9 Basic Router Troubleshooting.
Guide to TCP/IP, Second Edition1 Guide To TCP/IP, Second Edition Chapter 4 Internet Control Message Protocol (ICMP)
PC1 LAN GW SP RTR1 SP RTR2 DST 4 * 25 ms 21 ms dst [ ] 4. A third packet is sent with TTL=3, which decrements at each hop, and expires after RTR2,
1 Internet Control Message Protocol (ICMP) Used to send error and control messages. It is a necessary part of the TCP/IP suite. It is above the IP module.
Error and Control An IP datagram travels from node to node on the way to its destination Each router operates autonomously Failures or problems may occur.
Chapter 23 Internet Control Message Protocol used to report information and errors IP uses ICMP when it sends an error message ICMP uses IP to transport.
1 An Error Reporting Mechanism (ICMP). 2 IP Semantics IP is best-effort Datagrams can be –Lost –Delayed –Duplicated –Delivered out of order –Corrupted.
1 Chapter 23 Internetworking Part 3 (Control Messages, Error Handling, ICMP)
ERICSON BRANDON M. BASCUG Alternate - REGIONAL NETWORK ADMINISTRATOR HOW TO TROUBLESHOOT TCP/IP CONNECTIVITY.
Understanding IPv6 Slide: 1 Lesson 5 ICMPv6. Understanding IPv6 Slide: 2 Lesson Objectives Purpose of ICMPv6 and the structure of all ICMPv6 messages.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 2 v3.1 Module 8 TCP/IP Suite Error and Control Messages.
4: Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
Ping and Traceroute by Aleisa A. Drivere Supervisor Graciela Perera.
Victoria Manfredi September 13, 2016.
Lecture#6:Connectivity Verification
ROUTING.
ICMP The IP provides unreliable and connectionless datagram delivery. The IP protocol has no error-reporting or error-correcting mechanism. The IP protocol.
Connectivity Verification
COMP2322 Lab 5 IP Steven Lee March 22, 2017.
Ping and traceroute.
Network Tools and Utilities
21-2 ICMP(Internet control message protocol)
ICMP ICMP = Internet Control Message Protocol Layer 3
COMPUTER NETWORKS CS610 Lecture-33 Hammad Khalid Khan.
8 Network Layer Part V Computer Networks Tutun Juhana
ICMP – Using Ping and Trace
Part1: Ipconfig ping command Tracert command Getmac command
Troubleshooting IP Communications
Lecture#7:Connectivity Verification
Byungchul Park ICMP & ICMPv DPNM Lab. Byungchul Park
Internet Control Message Protocol (ICMP)
ICMP – Using Ping and Trace
Internet Control Message Protocol (ICMP)
ITL Simple Diagnostic Tools
Internet Control Message Protocol Version 4 (ICMPv4)
Lecture#6:Connectivity Verification
Internet Control Message Protocol
IPv4 Addressing By, Ishivinder Singh( ) Sharan Patil ( )
TCP/IP Protocol Suite 1 Chapter 9 Upon completion you will be able to: Internet Control Message Protocol Be familiar with the ICMP message format Know.
Presentation transcript:

Traceroute traceroute is a Unix utility designed by Van Jacobson in 1987 The Windows equivalent is called tracert The Linux equivalent is called tracepath It allows users to view the route (IP addresses, hostnames of routers and RTTs) from their own machine to any host on the Internet Traceroute servers will allow routes to traced from other locations as well 23/11/10 07-Traceroute

Traceroute To understand how traceroute works, we need to understand how IP uses its Time-to-Live (TTL) field The IP designers wanted a facility in IP to avoid packets circulating for ever if a routing loop occurred Routing loops can occur when routing protocols allow routing tables to become inconsistent 23/11/10 07-Traceroute

Routing Loops Routing protocols which allow routers to update each other with optimal routes to networks sometimes get into a state where a routing loop occurs E.g. Router A thinks the best route to Network C is via Router B and Router B thinks that the best route to Network C is via Router A. Any packets arriving at Router A with the destination address of Network C will be forwarded to Router B which will then forward it to Router A which will forward it to Router B …… If more packets with the destination address of Network C arrive at either router they will join the other packets in the loop and the links in the loop will eventually become unusable due to congestion 23/11/10 07-Traceroute

Time to Live (TTL) The IP designers wanted a way for packets in a routing loop to be discovered and discarded They originally designed a Time to Live field based on actual time, but this proved to be too difficult to manage, so they simplified it TTL is now used to count the number of routers a packet has been routed through In IPv6 the field has been more sensibly names as hopcount Examining changes in TTL may also be useful in your time-of-day experiment as any change in route will probably also cause a change in TTL which may happen at the same time as a step change in RTT 23/11/10 07-Traceroute

Time to Live Different IP implementations set the initial value of TTL to different values TTL is usually initially set to a value between 30 and 128, although some implementations (including ICMP) set it to its maximum value of 255 When a packet is launched onto the Internet, it has its TTL field set to the initial value At every subsequent router it is decremented by one When a router decrements the TTL to 0 it must discard the packet If it does this it should also issue an ICMP Time Expired message to the originator 23/11/10 07-Traceroute

Traceroute Traceroute sends out three packets out with an initial TTL of 1 These packets arrives at the first router. The TTL is decremented to 0 and are the packet discarded. ICMP Time Expired messages are sent back to the originator by the first router and thus the IP address of the first router is discovered Traceroute then sends out three packets with an initial TTL of 2 These packets arrive at the first router which decrements the TTL to 1 and forwards the packets to the second router which decrements the TTL to 0, discards the packet and issues ICMP Time expired messages back to the originator thus revealing the IP address of the second router Similarly for the third router and all the other routers on the path to the host until the whole route to the host has been discovered 23/11/10 07-Traceroute

Traceroute Traceroute also does a reverse DNS look-up to find any hostnames registered for router IP addresses It reports on each line: the IP address, hostname (if found) and the three measured RTTs to the router It will (by default list) up to 30 routers on the path and if the host has not been reached before this limit is reached, it will give up 23/11/10 07-Traceroute

Traceroute Sometimes hostnames have not been registered for routers, in which case traceroute only provides IP addresses Routers sometimes do not issue the ICMP Time Exceeded messages or they get lost or discarded, in which case a * appears instead of the RTT Some versions of traceroute use ICMP echo request packets (Windows), others use UDP (Unix) with special port numbers 23/11/10 07-Traceroute

Traceroute Tips Sometimes ICMP packets get through when UDP packets do not and vice versa, so it may be occasionally worth trying more than one version of traceroute If there is no hostname or the hostname does not indicate a location try looking up the IP address or hostname or parts of the hostname in Google Try using IP address location tools, but beware these are not always accurate Use a whois server (E.g. the one on www.DNSstuff.com) to look up the organisation which owns the IP address. This will sometimes indicate the country in which the router is located If the RTT makes a big jump (50 - 150 ms) the route is probably going over a long fibre cable (possibly submarine) If the RTT jumps by more than 230 ms, the route is almosy going over a satellite circuit 23/11/10 07-Traceroute