FinnTroll
This will give you info:
Tracert (and ping)
--------------------------------------------------------------------------------
Background Training: TCP/IP
Tracert (and ping) are both command line utilities that are built into Windows and most other computer systems. The basic tracert command syntax is "tracert hostname". For example, "tracert visualroute.com" and the output might look like:
Tracing route to visualroute.com [192.41.43.189]
over a maximum of 30 hops:
1 89 ms 87 ms 87 ms 199.70.3.58
2 90 ms 95 ms 90 ms 199.70.3.49
3 100 ms 90 ms 90 ms gbr5-p21.n54ny.ip.att.net [12.122.253.245]
4 90 ms 90 ms 90 ms gbr3-p90.n54ny.ip.att.net [12.122.5.114]
5 90 ms 90 ms 95 ms ggr1-p370.n54ny.ip.att.net [12.123.1.125]
6 110 ms 110 ms 115 ms att-gw.ny.verio.net [192.205.32.174]
7 115 ms 110 ms 115 ms p4-1-3-0.r01.chcgil01.us.bb.verio.net [129.250.2.14]
8 125 ms 110 ms 110 ms p4-6-0.r00.chcgil01.us.bb.verio.net [129.250.2.253]
9 135 ms 140 ms 135 ms p4-4-0.r00.dllstx01.us.bb.verio.net [129.250.4.89]
10 140 ms 140 ms 165 ms p4-1-0-0.r01.dllstx01.us.bb.verio.net [129.250.3.74]
11 200 ms 200 ms 200 ms p1-0-0-0.r01.oremut01.us.bb.verio.net [129.250.2.41]
12 204 ms 200 ms 200 ms pvu1.vwhpvu1.verio.net [129.250.29.202]
13 200 ms 195 ms 200 ms visualroute.com [192.41.43.189]
Trace complete.
Here is a similar trace route as it would appear in a VisualRoute table:
Discover the path: Tracert sends an ICMP echo packet, but it takes advantage of the fact that most Internet routers will send back an ICMP 'TTL expired in transit' message if the TTL field is ever decremented to zero by a router. Using this knowledge, we can discover the path taken by IP Packets.
How tracert works:Tracert sends out an ICMP echo packet to the named host, but with a TTL of 1; then with a TTL of 2; then with a TTL of 3 and so on. Tracert will then get 'TTL expired in transit' message back from routers until the desination host computer finally is reached and it responds with the standard ICMP 'echo reply' packet.
Try it yourself: To see this in action yourself, just use the '-i' option of ping, which allows you to set the TTL value of outgoing ping packets. For example, "ping -i 1 visualroute.com" and you will see "Reply from 199.70.3.58: TTL expired in transit" (where the router IP Address returned, 199.70.3.58, is specific to your Internet connection). Then again with "ping -i 2 visualroute.com", and get back "Reply from 199.70.3.49: TTL expired in transit", and so on. Finally at "ping -i 13 visualroute.com" you get "Reply from 192.41.43.189: bytes=32 time=198ms TTL=245", which is the destination host responding.
Round Trip Times: Each millisecond (ms) time in the table is the round-trip time that it took (to send the ICMP packet and to get the ICMP reply packet). The faster (smaller) the times the better. ms times of 0 mean that the reply was faster than the computers timer of 10 milliseconds, so the time is actually somewhere between 0 and 10 milliseconds.
Packet Loss: Packet loss kills throughput. So, having no packet loss is critical to having a connection to the Internet to responds well. A slower connection with zero packet loss can easily outperform a faster connection with some packet loss. Also, packet loss on the last hop, the desination, is what is most important. Sometimes routers in-between will not send ICMP "TTL expired in transit" messages, causing what looks to be high packet loss at a particular hop, but all it means is that the particular router is not responding to ICMP echo.
Ping
--------------------------------------------------------------------------------
The basic ping command syntax is "ping hostname". For example, "ping visualroute.com" and the output might look like:
Pinging visualroute.com [192.41.43.189] with 32 bytes of data:
Reply from 192.41.43.189: bytes=32 time=218ms TTL=245
Reply from 192.41.43.189: bytes=32 time=210ms TTL=245
Reply from 192.41.43.189: bytes=32 time=205ms TTL=245
Reply from 192.41.43.189: bytes=32 time=204ms TTL=245
Ping statistics for 192.41.43.189:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 204ms, Maximum = 218ms, Average = 209ms
TTL reply: Ping sends an ICMP echo packet (with the TTL value set to the host default) to the host listed on the ping command line. Ping expects back an ICMP 'echo reply' packet. The millisecond time displayed is the round trip time. The "TTL=245" above says that the incoming ICMP echo reply packet has its TTL field set to 245. Because this value was decremented by one at each hop on the way back, this tells us that visualroute.com is probably setting the initial TTL value to 255.
TTL Expired in Transit: Most computers today initialize the TTL value of outgoing IP Packets 128 or higher. If you ever see a reply above with a "TTL=5" (or some other low TTL number) this tells you that the computer being pinged should most likely have its default TTL value increased. Otherwise, anyone trying to communicate with the computer that is at a hop count higher than the TTL will not be able to communicate with the computer. For example, if you are 40 hops away from www.xyz.com, and www.xyz.com sets TTL fields in IP packets that it sends out to 32, the IP Packets will not reach you. They will 'expire in transmit' before they reach you.
Discover your TTL: To discover the default TTL value of your computer, 'ping localhost' and examine the TTL reply value. For older Windows machines this value is 32. For newer Windows machines, this value is 128.
shane