Thursday, August 8, 2013

Trace using Pathping

The Pathping command helps us to get information about our network when we have latency and when we loosing hops between the source computers to the destination we want to get.

When we using Pathping the command sends multiple Echo requests massages to each point our packet need to pass before she arrive to our destination(Router for example) and then checks the time of the returned packets from each point.

When we use Pathping we can determine on which point we have latency or network problems because Pathping checks how much packets we lost on each point from the source to the destination.

Pathping Syntax
C:\pathping – {Switch}

-n: this switch cause the command ignores tempting to resolve the IP addresses of intermediate points and their names.

-h: here we can specify the MAX number of hops between the path and the destination.

Note!
The Maximum hops by default are 30.

-p Period: here we can specify how much milliseconds we wait between pings

Note!
The default time is 0.25 of a second!

-q NumQueries: here we can specify the number of Echo requests sent to each point between the Source and the Destination.

Note!
By default we have 100 queries!

-w Timeout: Here we set the number of milliseconds when we wait for each replay.

Note!

3 seconds is the default (1000 Milli = 1 second).

TargetName: The destination we want to get the information about.

Example:

C:\pathping www.microsoft.com

Microsoft Windows [Version 6.1.7600]

Copyright (c) 2009 Microsoft Corporation.  All rights reserved.


C:\Users\3>pathping www.microsoft.com

Tracing route to lb1.www.ms.akadns.net [207.46.192.254]

over a maximum of 30 hops:

  0  3-PC.siemens [10.0.0.7]

  1  SL2141.siemens [10.0.0.138]

  2  bzq-79-179-197-1.red.bezeqint.net [79.179.197.1]

  3     *        *     www.microsoft.com [207.46.192.254]

  4     *        *     www.microsoft.com [207.46.192.254]

  5     *     www.microsoft.com [207.46.192.254]

  6     *        *        *

Computing statistics for 125 seconds...

            Source to Here   This Node/Link

Hop  RTT    Lost/Sent = Pct  Lost/Sent = Pct  Address

  0                                           3-PC.siemens [10.0.0.7]

                                0/ 100 =  0%   |

  1    0ms     0/ 100 =  0%     0/ 100 =  0%  SL2141.siemens [10.0.0.138]

                                1/ 100 =  1%   |

  2   26ms     1/ 100 =  1%     0/ 100 =  0%  bzq-79-179-197-1.red.bezeqint.net

[79.179.197.1]

                                2/ 100 =  2%   |

  3   32ms     3/ 100 =  3%     0/ 100 =  0%  www.microsoft.com [207.46.192.254]

 

                                3/ 100 =  3%   |

  4   35ms     6/ 100 =  6%     0/ 100 =  0%  www.microsoft.com [207.46.192.254]

                                1/ 100 =  1%   |

  5   33ms     7/ 100 =  7%     0/ 100 =  0%  www.microsoft.com [207.46.192.254]

Trace complete.

C:\Users\3>

No comments:

Post a Comment

My Presentations