PATHPING

Trace route and provide network latency and packet loss for each router and link in the path. Combines the functionality of PING and TRACERT.

Syntax
      PATHPING [-n] [-h max_hops] [-g host_list] [-p period]
         [-q num_queries] [-w timeout] [-i IPAddress] [-4 ] [-6 ][TargetName]

Key
   -g host_list - Loose source route along host-list.
   -h max_hops  - Maximum number of hops to search for target.
   -i address   - Use the specified source address.
   -n           - Do not resolve addresses to hostnames.
   -p period    - Wait period milliseconds between pings.
   -q num_queries - Number of queries per hop.
   -w timeout   - Wait timeout milliseconds for each reply.
   -P    - Test for RSVP PATH connectivity.
   -R    - Test if each hop is RSVP aware.
   -T    - Test connectivity to each hop with Layer-2 priority tags.
   -4    - Force using IPv4.
   -6    - Force using IPv6.

PathPing is invaluable for determining which routers or subnets are having network problems - it displays the degree of packet loss at any given router or link.

Pathping sends multiple Echo Request messages to each router between a source and destination over a period of time and computes aggregate results based on the packets returned from each router.

Pathping performs the equivalent of the tracert command by identifying which routers are on the path.

To avoid network congestion and to minimize the effect of burst losses, pings should be sent at a sufficiently slow pace (not too frequently.)

When -p is specified, pings are sent individually to each intermediate hop. When -w is specified, multiple pings can be sent in parallel. It's therefore possible to choose a Timeout parameter that is less than the wait Period * Number of hops.

Firewalls

Like TRACERT, PathPing uses Internet Control Message Protocol (ICMP) over TCP/IP.
Many firewalls will block ICMP traffic by default. If an attacker is able to forge ICMP redirect packets, he or she can alter the routing tables on the host and possibly subvert the security of the host by causing traffic to flow via a path you didn’t intend.

"The path changes, so too must the traveler" ~ Tarek Verena

Related commands

BROWSTAT - Get domain, browser and PDC info.
IPCONFIG - IP Configuration.
NETSTAT - Display networking statistics (TCP/IP).
PING - Test a network connection.
TRACERT - Trace route to a remote host.
Equivalent bash command (Linux): mtr - Network diagnostics (traceroute/ping).


 
Copyright © 1999-2024 SS64.com
Some rights reserved