Common network management commands-pathping

Source: Internet
Author: User

6. pathping command...

  • Syntax :...

  • No option...

  • -N option...

  • -H option...

  • -G option...

  • -P option...

  • -Q option...

  • -W option...

  • -I option...

6. pathping command

Pathping is a routing tracking tool based on TCP/IP. This command, combined with the Ping and tracert commands, returns two parts. The first part shows the routes to the destination, the second part shows the packet loss information on each vro in the path. The path, network latency, and packet loss rate of data packets from the source host to the target host can effectively help us solve network problems.

It uses ICMP response information to analyze network connectivity. Pathping sends a response to all routers between the source address and the target address. It calculates the response time of each vro between the source host and the target host, we can easily measure the network latency and help identify the bandwidth bottleneck.

Provides information about network latency and network loss at the intermediate hops between the source and target. Pathping sends multiple echo request messages to each vro between the source and target within a period of time, and then calculates the result based on the packets returned by each vro. Because pathping can indicate the degree of packet loss at any specific vro or link, you can determine the vro or subnet that may have network problems accordingly. Pathping recognizes the routers in the path to perform the same functions as the tracert command. Then, the command periodically sends the ping command to all routers within a specified period of time, and returns non-numerical calculation results based on each router.

Ping,Tracert,PathpingSimple comparison of the three commands:

Ping:It is used to check the connectivity of the target host and check whether the target host is accessible?

Tracert:It is used to display the path through which data packets arrive at the target host and the time when data packets arrive at each node. This shows how you want to go?

Pathping:It is used to track network latency and network loss details between the source and target, that is, how do you know the path of your path?

If no parameter is specified during use, the pathping will display help.

650) This. width = 650; "Title =" clip_image002 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image002 "src =" http://img1.51cto.com/attachment/201411/3/1024435_1415023556xKPK.jpg "Height =" 258 "/>

Syntax:

Pathping [-g host-list] [-H maximum_hops] [-I address] [-N] [-P period] [-Q num_queries] [-W timeout] [-4] [-6] target_name

No option

By default, the pathping command does not include any option. You only need to enter pathping tragert_name.

For example, pathping www.163.com.

The first part shows the routes to the destination, and the second part shows the packet loss information for each vro in the path. It reflects the path, network latency, and packet loss rate of data packets from the source host to the target host.

650) This. width = 650; "Title =" clip_image004 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image004 "src =" http://img1.51cto.com/attachment/201411/3/1024435_1415023557Oa2K.jpg "Height =" 624 "/>

Note: If the network times out when a node is tested, the test process is interrupted.

As shown in: the test process is aborted when the test reaches the 3rd hop. The second part shows that the packet loss rate is 100%.

650) This. width = 650; "Title =" clip_image006 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image006 "src =" http://img1.51cto.com/attachment/201411/3/1024435_1415023557xntP.jpg "Height =" 293 "/>

-N Option

Prevent pathping from attempting to resolve the IP address of the intermediate router to their respective names. This may speed up the display of pathping results.

650) This. width = 650; "Title =" clip_image008 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image008 "src =" http://img1.51cto.com/attachment/201411/3/1024435_1415023558g1ip.jpg "Height =" 326 "/>

-H Option

-H maximumhops specifies the maximum number of hops in the search target path. The default value is 30 hops.

650) This. width = 650; "Title =" clip_image010 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image010 "src =" http://img1.51cto.com/attachment/201411/3/1024435_14150235598L8N.jpg "Height =" 326 "/>

-G Option

-G hostlist

It indicates that the request message can use the "sparse source routing" option in the IP data header for the intermediate target set specified in the hostlist. When "sparse source routing" is used, adjacent intermediate targets can be separated by one or more routers. The maximum number of addresses or names in the host list is 9. Hostlist is a series of IP addresses separated by spaces (expressed in dotted decimal Notation ).

-P Option

The-P period command specifies the interval (in milliseconds) between two consecutive ping requests ). The default value is 250 milliseconds (1/4 seconds ). To avoid network congestion, set the interval to a little longer. To eliminate the impact of packet loss, do not send detection (PING) signals frequently.

650) This. width = 650; "Title =" clip_image012 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image012 "src =" http://img1.51cto.com/attachment/201411/3/1024435_1415023559KoTU.jpg "Height =" 271 "/>

650) This. width = 650; "Title =" clip_image014 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image014 "src =" http://img1.51cto.com/attachment/201411/3/1024435_141502356015qH.jpg "Height =" 271 "/>

-Q Option

-Q numqueries

Specify the number of echo request messages sent to each vro in the path. The default value is 100 queries.

Set to 200 queries. the time consumed increases from 250 seconds to 500 seconds.

650) This. width = 650; "Title =" clip_image016 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image016 "src =" http://img1.51cto.com/attachment/201411/3/1024435_1415023560kkia.jpg "Height =" 271 "/>

-W Option

-W timeout

Specify the wait time (in milliseconds) for each response ). The default value is 3000 milliseconds (3 seconds ).

-I Option

-The I IPaddress command specifies the source address.

This article is from the "Haina baichuan" blog, please be sure to keep this source http://hichuann.blog.51cto.com/1024435/1571451

Common network management commands-pathping)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.