Specifications

Tracing a Route
RoamAbout Mobility System Software Configuration Guide 5-29
Tracing a Route
YoucantracetherouterhopsnecessarytoreachanIPhost.
ThetraceroutefacilityusestheTTL(TimetoLive)fieldintheIPheadertocauseroutersand
serverstogeneratespecificreturnmessages.TraceroutestartsbysendingaUDPdatagramtothe
destinationhostwiththeTTLfield
setto1.IfarouterfindsaTTLvalueof1or0,itdropsthe
datagramandsendsbackanICMPTimeExceededmessagetothesender.
Thetraceroutefacilitydeterminestheaddressofthefirsthopbyexaminingthesourceaddress
fieldoftheICMPtimeexceededmessage.
Toidentifythenexthop,tracerouteagainsendsaUDPpacket,butthistimewithaTTLvalueof2.
ThefirstrouterdecrementstheTTLfieldby1andsendsthedatagramtothenextrouter.The
secondrouterseesaTTLvalueof1,discardsthedatagram,andreturns
theTimeExceededmessage
tothesource.ThisprocesscontinuesuntiltheTTLisincrementedtoavaluelargeenoughfor the
datagramtoreachthedestinationhost(oruntilthemaximumTTLisreached).
Todeterminewhenadatagramhasreacheditsdestination,traceroutesetstheUDPdestination
portin
thedatagramtoaverylarg evalue,onethatthedestinationhostisunlikelytobeusing.In
addition,whenahostreceivesadatagramwithanunrecognizedportnumber,itsendsanICMP
PortUnreachableerrortothesource.Thismessageindicatestothetraceroutefacilitythatithas
reachedthedestination.
Totracearoutetoadestinationsubnet,usethefollowingcommand:
traceroute host [dnf] [no-dns] [port port-num] [queries num] [size size]
[ttl hops] [wait ms]
Example
Totracetheroutetohostserver1,typethefollowingcommand:
RBT-8100# traceroute server1
traceroute to server1.example.com (192.168.22.7), 30 hops max, 38 byte packets
1 engineering-1.example.com (192.168.192.206) 2 ms 1 ms 1 ms
2 engineering-2.example.com (192.168.196.204) 2 ms 3 ms 2 ms
3 gateway_a.example.com (192.168.1.201) 6 ms 3 ms 3 ms
4 server1.example.com (192.168.22.7) 3 ms * 2 ms
Inthisexample,server1isfourhopsaway.Thehopsarelistedinorder,beginningwiththehop
thatisclosesttotheRoamAboutSwitchandendingwiththeroute’sdestination.Forinformation
aboutthecommandoptions,seetheRoamAboutMobilitySystemSoftwareCommandLineInterface
Reference.