DOTE

Chain And Rate

Showing posts with label Pathping (Windows). Show all posts
Showing posts with label Pathping (Windows). Show all posts

Sunday, December 29, 2013

Testing routers by using pathping (Windows)

The pathping command is a route tracing tool that combines features of the ping and tracert commands with additional information that neither of those tools provides. The pathping command sends packets to each router on the way to a final destination over a period of time, and then computes results based on the packets returned from each hop. Since the command shows the degree of packet loss at any given router or link, it is easy to determine which routers or links might be causing network problems. A number of options are available, as shown in the following table :

Option Name Function
–n Hostnames Does not resolve addresses to host names.
–h Maximum hops Maximum number of hops to search for target.
–g Host-list Loose source route along host list.
–p Period Number of milliseconds to wait between pings.
–q Num_queries Number of queries per hop.
–w Time-out Waits this many milliseconds for each reply.
-T Layer 2 tag Attaches a layer-2 priority tag (for example, for IEEE 802.1p) to the packets and sends it to each of the network devices in the path. This helps in identifying the network devices that do not have layer-2 priority configured properly. The -T switch is used to test for Quality of Service (QoS) connectivity.
-R RSVP test Checks to determine whether each router in the path supports the Resource Reservation Protocol (RSVP), which allows the host computer to reserve a certain amount of bandwidth for a data stream. The -R switch is used to test for Quality of Service (QoS) connectivity.

The default number of hops is 30, and the default wait time before a time-out is 3 seconds. The default period is 250 milliseconds, and the default number of queries to each router along the path is 100.

The following is a typical pathping report. The compiled statistics that follow the hop list indicate packet loss at each individual router.
D:\>pathping www.grape-info.com

Tracing route to www.grape-info.com [202.144.128.220]
over a maximum of 30 hops:
0  hoge.grape-info.com [192.168.0.24]
1  192.168.0.2
2  gw-dit.grape-info.com [202.144.158.206]
3  tpu-gw1.grape-info.com [202.144.159.195]
4  e0-0.tpu-br2.grape-info.com [202.144.129.2]
5  w3ext.grape-info.com [202.144.128.220]

Computing statistics for 125 seconds...
   Source to Here  This Node/Link
Hop  RTT Lost/Sent = Pct Lost/Sent = Pct  Address
0                                         hoge.grape-info.com [192.168.0.24]
                      0/ 100 =  0%   |
1   3ms     0/ 100 =  0%    0/ 100 =  0%  192.168.0.2
                      0/ 100 =  0%   |
2   4ms     0/ 100 =  0%    0/ 100 =  0%  gw-dit.grape-info.com [202.144.158.206]
                     13/ 100 = 13%   |
3 140ms     0/ 100 =  0%    1/ 100 =  1%  tpu-gw1.grape-info.com [202.144.159.195]
                      0/ 100 =  0%   |
4 126ms     0/ 100 =  0%    3/ 100 =  3%  e0-0.tpu-br2.grape-info.com [202.144.129.2]
                      0/ 100 =  0%   |
5 155ms     0/ 100 =  0%    0/ 100 =  0%  aw3ext.grape-info.com [202.144.128.220]
Trace complete.
When pathping is run, you first see the results for the route as it is tested for problems. This is the same path that is shown by the tracert command. The pathping command then displays a busy message for the next 125 seconds (this time varies by the hop count). During this time, pathping gathers information from all the routers previously listed and from the links between them. At the end of this period, it displays the test results.

The two rightmost columns—This Node/Link Lost/Sent=Pct and Address—contain the most useful information. The link between gw-dit.grape-info.com (hop 2), and tpu-gw1.grape-info.com (hop 3) is dropping 13 percent of the packets. All other links are working normally. The routers at hops 3 and 4 also drop packets addressed to them (as shown in the This Node/Link column), but this loss does not affect their forwarding path.

The loss rates displayed for the links (marked as a | in the rightmost column) indicate losses of packets being forwarded along the path. This loss indicates link congestion. The loss rates displayed for routers (indicated by their IP addresses in the rightmost column) indicate that those routers' CPUs might be overloaded. These congested routers might also be a factor in end-to-end problems, especially if packets are forwarded by software routers.