Ping's advanced usage

xiaoxiao2021-03-06  74

I believe that everyone has been familiar with the ping command, but

It is not a lot to play the function of ping, but I don't have much. Of course I also

It is not to say that I can let Ping play the biggest function, but I only use P

ING this tool also summarizes some little experience, now share it with you.

Now I will tell you about the help of ping commands.

The skills you will use, ping can only be used after installation of the TCP / IP protocol

use:

ping [-t] [-a] [-n count] [-l length] [-f] [-i ttl]

[-V TOS] [-r count] [-s count] [[-j computer-list] |

[-k computer-list]] [-w timeout] destination-list

Options:

-t ping the specified host unient stopped.to See

Statistics and Continue - Type Control-Break; To Stop

- TYPE CONTROL-C.

Keep Ping Local Host until you press Control-C.

This feature has no special skill, but it can be used with other parameters.

It will be mentioned below.

-a resolve addresss to hostnames.

Analyze computer NetBIOS name.

Example: c: \> ping -a 192.168.1.21

Pinging Iceblood.yofor.com [192.168.1.21] with 32

BYTES of DATA:

Reply from 192.168.1.21: Bytes = 32 TIME <10MS TTL = 254

Reply from 192.168.1.21: Bytes = 32 TIME <10MS TTL = 254

Reply from 192.168.1.21: Bytes = 32 TIME <10MS TTL = 254

Reply from 192.168.1.21: Bytes = 32 TIME <10MS TTL = 254

Ping Statistics for 192.168.1.21:

Packets: SENT = 4, Received = 4, LOST = 0 (0%

Loss), Approximate Round Trip Times in Milli-Seconds:

Minimum = 0ms, maximum = 0ms, Average = 0ms

From above, IP is named IP 192.168.1.21.

Eblood.yofor.com.

--N Count Number of echo requests to send.

Send count of the ECHO packet specified by COUNT.

By default, only four packets are sent, through this command.

Take the number of sent to the number, it is very helpful to measure the network speed, such as I

Want to test the average time of returning to send 50 packets, the fastest time

How much, the slowest time can be learned by the following:

C: \> ping -n 50 202.103.96.68

Pinging 202.103.96.68 with 32 bytes of data:

Reply from 202.103.96.68: Bytes = 32 TIME = 50ms TTL = 241

Reply from 202.103.96.68: Bytes = 32 TIME = 50ms TTL = 241

Reply from 202.103.96.68: Bytes = 32 Time = 50ms TTL = 241REQUEST TIMED OUT.

..................

Reply from 202.103.96.68: Bytes = 32 TIME = 50ms TTL = 241

Reply from 202.103.96.68: Bytes = 32 TIME = 50ms TTL = 241

Ping statistics for 202.103.96.68:

Packets: SENT = 50, Received = 48, LOST = 2 (4%

Loss), Approximate Round Trip Times in Milli-Seconds:

Minimum = 40ms, maximum = 51ms, Average = 46ms

From the above, I can know that I will send 50 packets to 202.103.96.68.

There are 48 in the Cheng, two of which are lost due to unknown reasons, this 48

The return speed is the fastest speed of 40ms in the data package, the speed is 51ms, and the average speed is

Take 46ms.

-l size send buffer size.

Define the ECHO packet size.

In the default, the packet size sent by Windows is 32BYT.

We can also define its size, but there is a size limit, that is

Maximum can only send 65500BYT, maybe someone will ask why it is limited to 65500

BYT, because the Windows series has a security vulnerability (perhaps also

Including other systems) is the data package that is transmitted to the other party is greater than or equal to 655

At 32, the other party is very likely to block, so Microsoft has solved this security.

Full vulnerability then limits the packet size of ping. Although Microsoft has already done

This limit, but this parameter is still very powerful after the other parameters.

For example, we can implement an aggressive by fitting -t parameters.

Command: (The following introduction is dangerous, only for testing, do not easily apply

On the machine, otherwise the consequences are at your own risk)

C: \> ping -l 65500 -t 192.168.1.21

Pinging 192.168.1.21 with 65500 BYTES of DATA:

Reply from 192.168.1.21: Bytes = 65500 Time <10ms

TTL = 254

Reply from 192.168.1.21: Bytes = 65500 Time <10ms

TTL = 254

..................

This will send the size of 192.168.1.21 to 65500by to the 192.168.1.21 computer.

T's packet, if you only have a computer, there is no effect, but

If you have a lot of computers, you can make the other party completely paralyzed, I have done it.

Such a test, when I use more than 10 computer PING at the same time, Win2000

When the computer of the Pro system, less than 5 minutes, the network is completely paralyzed.

The network is seriously blocked, and HTTP and FTP services are completely stopped, thereby visible power

Same smaller.

-f set don't fragment flag in packet.

Send a "Do not segment" flag in the packet.

In general, the packets you send will be sent to the other party through the routing segment.

Plus the route will not be resigned after the route will.

-i TTL TIME TO LIVE.

Specifies the time to stay in the system in the other party.

This parameter also helps you check the network operation.

-V TOS TYPE OF Service. Set the Service Type field to the value specified by TOS.

-r Count Record Route for Count HOPS.

Record the routing of the outgoing and returning packets in the Record Routing field.

In general, the packet you sent is reached through a route.

, But what is the route? You can set you through this parameter

I want to detect the number of routes, but the limit is 9, that is, you only

Can track 9 routes, if you want to detect more, you can implement it through other commands

I will explain it to you in the future articles. The following is an example:

C: \> ping -n 1 -r 9 202.96.105.101 (send a packet,

Up to 9 routes)

Pinging 202.96.105.101 with 32 bytes of data:

Reply from 202.96.105.101: bytes = 32 TIME = 10ms TTL = 249

Route: 202.107.208.187 ->

202.107.210.214 ->

61.153.112.70 ->

61.153.112.89 ->

202.96.105.149 ->

202.96.105.97 ->

202.96.105.101 ->

202.96.105.150 ->

61.153.112.90

Ping statistics for 202.96.105.101:

Packets: SENT = 1, Received = 1, Lost = 0 (0% LOSS),

Approximate Round Trip Times in Milli-Seconds:

Minimum = 10ms, maximum = 10ms, Average = 10ms

From above, you can know from my computer to 202.96.105.101

Over 202.107.208.187, 202.107.210.214, 61.153.112.70

, 61.53.112.89, 202.96.105.149, 202.96.105.97 These

A route.

-s Count Timestamp for Count HOPS.

Specifies the timestamp of the number of hops specified by count.

This parameter is similar to -R, but this parameter does not record the packet return.

The route is only 4 only.

-j host-list loose source route along host-list.

Routing the packet using the computer list specified using computer-list. Continuous meter

The computer can be separated by the intermediate gateway (routing sparse source) IP allowed maximum number

Take 9.

-k Host-List strict source route along host-list.

Routing the packet using the computer list specified using computer-list. Continuous meter

The computer cannot be separated by the intermediate gateway (routing strict source) IP allowed maximum number

Take 9.

-w Timeout Timeout in MilliseConds to Wait for Each

Reply.

Specifies a timeshoot, unit is millisecond.

This parameter has no other techniques.

Other Tips for the ping command: Can you make a PING?

The other party returns to your TTL value size, rough judgment target host system type

Is the Windows series or a UNIX / Linux series, in general, Windows

The TTL value returned by the system is between 100-130, and the UNIX / Linux series

The TTL value returned by the system is between 240-255, and of course the value of TTL is modified in the host, and the Windows series can be modified by modifying the registry.

The lower key value is implemented:

[HKEY_LOCAL_MACHINE \System \CurrentControlset\serve

CES\TCPIP \Parameters]

DEFAULTTTL = DWORD: 000000FF

255 --- ff

128 --- 80

64 ---- 40

32 ---- 20

Ok, the ping command is basically completely explained, and there is -J, -k parameter

I haven't explained it in detail, and because some reasons also include the capital I collected.

I have not introduced it to you more, please forgive me, if you are watching

Among the friends of this article know more than me, and other uses

I hope you can tell me and thank you here. Ping's advanced usage

I believe that everyone has been familiar with the ping command, but

It is not a lot to play the function of ping, but I don't have much. Of course I also

It is not to say that I can let Ping play the biggest function, but I only use P

ING this tool also summarizes some little experience, now share it with you.

Now I will tell you about the help of ping commands.

The skills you will use, ping can only be used after installation of the TCP / IP protocol

use:

ping [-t] [-a] [-n count] [-l length] [-f] [-i ttl]

[-V TOS] [-r count] [-s count] [[-j computer-list] |

[-k computer-list]] [-w timeout] destination-list

Options:

-t ping the specified host unient stopped.to See

Statistics and Continue - Type Control-Break; To Stop

- TYPE CONTROL-C.

Keep Ping Local Host until you press Control-C.

This feature has no special skill, but it can be used with other parameters.

It will be mentioned below.

-a resolve addresss to hostnames.

Analyze computer NetBIOS name.

Example: c: \> ping -a 192.168.1.21

Pinging Iceblood.yofor.com [192.168.1.21] with 32

BYTES of DATA:

Reply from 192.168.1.21: Bytes = 32 TIME <10MS TTL = 254

Reply from 192.168.1.21: Bytes = 32 TIME <10MS TTL = 254

Reply from 192.168.1.21: Bytes = 32 TIME <10MS TTL = 254

Reply from 192.168.1.21: Bytes = 32 TIME <10MS TTL = 254

Ping Statistics for 192.168.1.21:

Packets: SENT = 4, Received = 4, LOST = 0 (0%

Loss), Approximate Round Trip Times in Milli-Seconds:

Minimum = 0ms, maximum = 0ms, Average = 0ms

From the above, you can know the computer NetBIOS named Iceblood.Yofor.com with IP 192.168.1.21.

--N Count Number of echo requests to send.

Send count of the ECHO packet specified by COUNT.

By default, only four packets are sent, through this command.

Take the number of sent to the number, it is very helpful to measure the network speed, such as I

Want to test the average time of returning to send 50 packets, the fastest time

How much, the slowest time can be learned by the following:

C: \> ping -n 50 202.103.96.68

Pinging 202.103.96.68 with 32 bytes of data:

Reply from 202.103.96.68: Bytes = 32 TIME = 50ms TTL = 241

Reply from 202.103.96.68: Bytes = 32 TIME = 50ms TTL = 241

Reply from 202.103.96.68: Bytes = 32 TIME = 50ms TTL = 241

Request timed out.

..................

Reply from 202.103.96.68: Bytes = 32 TIME = 50ms TTL = 241

Reply from 202.103.96.68: Bytes = 32 TIME = 50ms TTL = 241

Ping statistics for 202.103.96.68:

Packets: SENT = 50, Received = 48, LOST = 2 (4%

Loss), Approximate Round Trip Times in Milli-Seconds:

Minimum = 40ms, maximum = 51ms, Average = 46ms

From the above, I can know that I will send 50 packets to 202.103.96.68.

There are 48 in the Cheng, two of which are lost due to unknown reasons, this 48

The return speed is the fastest speed of 40ms in the data package, the speed is 51ms, and the average speed is

Take 46ms.

-l size send buffer size.

Define the ECHO packet size.

In the default, the packet size sent by Windows is 32BYT.

We can also define its size, but there is a size limit, that is

Maximum can only send 65500BYT, maybe someone will ask why it is limited to 65500

BYT, because the Windows series has a security vulnerability (perhaps also

Including other systems) is the data package that is transmitted to the other party is greater than or equal to 655

At 32, the other party is very likely to block, so Microsoft has solved this security.

Full vulnerability then limits the packet size of ping. Although Microsoft has already done

This limit, but this parameter is still very powerful after the other parameters.

For example, we can implement an aggressive by fitting -t parameters.

Command: (The following introduction is dangerous, only for testing, do not easily apply

On the machine, otherwise the consequences are at your own risk)

C: \> ping -l 65500 -t 192.168.1.21

Pinging 192.168.1.21 with 65500 BYTES of DATA:

Reply from 192.168.1.21: Bytes = 65500 Time <10ms

TTL = 254

Reply from 192.168.1.21: Bytes = 65500 Time <10mSttl = 254

..................

This will send the size of 192.168.1.21 to 65500by to the 192.168.1.21 computer.

T's packet, if you only have a computer, there is no effect, but

If you have a lot of computers, you can make the other party completely paralyzed, I have done it.

Such a test, when I use more than 10 computer PING at the same time, Win2000

When the computer of the Pro system, less than 5 minutes, the network is completely paralyzed.

The network is seriously blocked, and HTTP and FTP services are completely stopped, thereby visible power

Same smaller.

-f set don't fragment flag in packet.

Send a "Do not segment" flag in the packet.

In general, the packets you send will be sent to the other party through the routing segment.

Plus the route will not be resigned after the route will.

-i TTL TIME TO LIVE.

Specifies the time to stay in the system in the other party.

This parameter also helps you check the network operation.

-V TOS TYPE OF Service.

Set the Service Type field to the value specified by TOS.

-r Count Record Route for Count HOPS.

Record the routing of the outgoing and returning packets in the Record Routing field.

In general, the packet you sent is reached through a route.

, But what is the route? You can set you through this parameter

I want to detect the number of routes, but the limit is 9, that is, you only

Can track 9 routes, if you want to detect more, you can implement it through other commands

I will explain it to you in the future articles. The following is an example:

C: \> ping -n 1 -r 9 202.96.105.101 (send a packet,

Up to 9 routes)

Pinging 202.96.105.101 with 32 bytes of data:

Reply from 202.96.105.101: bytes = 32 TIME = 10ms TTL = 249

Route: 202.107.208.187 ->

202.107.210.214 ->

61.153.112.70 ->

61.153.112.89 ->

202.96.105.149 ->

202.96.105.97 ->

202.96.105.101 ->

202.96.105.150 ->

61.153.112.90

Ping statistics for 202.96.105.101:

Packets: SENT = 1, Received = 1, Lost = 0 (0% LOSS),

Approximate Round Trip Times in Milli-Seconds:

Minimum = 10ms, maximum = 10ms, Average = 10ms

From above, you can know from my computer to 202.96.105.101

Over 202.107.208.187, 202.107.210.214, 61.153.112.70

, 61.53.112.89, 202.96.105.149, 202.96.105.97 These

A route.

-s Count Timestamp for Count HOPS.

Specifies the timestamp of the number of hops specified by count.

This parameter is similar to -R, but this parameter does not record the packet return.

The route is only 4 only.

-j host-list loose source route along host-list. Routing packets using Computer-List specified. Continuous meter

The computer can be separated by the intermediate gateway (routing sparse source) IP allowed maximum number

Take 9.

-k Host-List strict source route along host-list.

Routing the packet using the computer list specified using computer-list. Continuous meter

The computer cannot be separated by the intermediate gateway (routing strict source) IP allowed maximum number

Take 9.

-w Timeout Timeout in MilliseConds to Wait for Each

Reply.

Specifies a timeshoot, unit is millisecond.

This parameter has no other techniques.

Other Tips for the ping command: Can you make a PING?

The other party returns to your TTL value size, rough judgment target host system type

Is the Windows series or a UNIX / Linux series, in general, Windows

The TTL value returned by the system is between 100-130, and the UNIX / Linux series

The TTL value returned between the system is between 240-255, of course, the value of TTL is in the other party.

It is possible to modify, and the Windows series can be modified by modifying the registry.

The lower key value is implemented:

[HKEY_LOCAL_MACHINE \System \CurrentControlset\serve

CES\TCPIP \Parameters]

DEFAULTTTL = DWORD: 000000FF

255 --- ff

128 --- 80

64 ---- 40

32 ---- 20

Ok, the ping command is basically completely explained, and there is -J, -k parameter

I haven't explained it in detail, and because some reasons also include the capital I collected.

I have not introduced it to you more, please forgive me, if you are watching

Among the friends of this article know more than me, and other uses

I hope you can tell me and thank you here. Ping's advanced usage

I believe that everyone has been familiar with the ping command, but

It is not a lot to play the function of ping, but I don't have much. Of course I also

It is not to say that I can let Ping play the biggest function, but I only use P

ING this tool also summarizes some little experience, now share it with you.

Now I will tell you about the help of ping commands.

The skills you will use, ping can only be used after installation of the TCP / IP protocol

use:

ping [-t] [-a] [-n count] [-l length] [-f] [-i ttl]

[-V TOS] [-r count] [-s count] [[-j computer-list] |

[-k computer-list]] [-w timeout] destination-list

Options:

-t ping the specified host unient stopped.to See

Statistics and Continue - Type Control-Break; To Stop

- TYPE CONTROL-C.

Keep Ping Local Host until you press Control-C.

This feature has no special skill, but it can be used with other parameters.

It will be mentioned below.

-a resolve addresss to hostnames.

Analyze computer NetBIOS name.

Example: c: \> ping -a 192.168.1.21

Pinging Iceblood.yofor.com [192.168.1.21] with 32bytes of data:

Reply from 192.168.1.21: Bytes = 32 TIME <10MS TTL = 254

Reply from 192.168.1.21: Bytes = 32 TIME <10MS TTL = 254

Reply from 192.168.1.21: Bytes = 32 TIME <10MS TTL = 254

Reply from 192.168.1.21: Bytes = 32 TIME <10MS TTL = 254

Ping Statistics for 192.168.1.21:

Packets: SENT = 4, Received = 4, LOST = 0 (0%

Loss), Approximate Round Trip Times in Milli-Seconds:

Minimum = 0ms, maximum = 0ms, Average = 0ms

From above, IP is named IP 192.168.1.21.

Eblood.yofor.com.

--N Count Number of echo requests to send.

Send count of the ECHO packet specified by COUNT.

By default, only four packets are sent, through this command.

Take the number of sent to the number, it is very helpful to measure the network speed, such as I

Want to test the average time of returning to send 50 packets, the fastest time

How much, the slowest time can be learned by the following:

C: \> ping -n 50 202.103.96.68

Pinging 202.103.96.68 with 32 bytes of data:

Reply from 202.103.96.68: Bytes = 32 TIME = 50ms TTL = 241

Reply from 202.103.96.68: Bytes = 32 TIME = 50ms TTL = 241

Reply from 202.103.96.68: Bytes = 32 TIME = 50ms TTL = 241

Request timed out.

..................

Reply from 202.103.96.68: Bytes = 32 TIME = 50ms TTL = 241

Reply from 202.103.96.68: Bytes = 32 TIME = 50ms TTL = 241

Ping statistics for 202.103.96.68:

Packets: SENT = 50, Received = 48, LOST = 2 (4%

Loss), Approximate Round Trip Times in Milli-Seconds:

Minimum = 40ms, maximum = 51ms, Average = 46ms

From the above, I can know that I will send 50 packets to 202.103.96.68.

There are 48 in the Cheng, two of which are lost due to unknown reasons, this 48

The return speed is the fastest speed of 40ms in the data package, the speed is 51ms, and the average speed is

Take 46ms.

-l size send buffer size.

Define the ECHO packet size.

In the default, the packet size sent by Windows is 32BYT.

We can also define its size, but there is a size limit, that is

The maximum can only send 65500BYT, maybe someone will ask why it is limited to 65500BYT, because the Windows series has a security vulnerability (perhaps also

Including other systems) is the data package that is transmitted to the other party is greater than or equal to 655

At 32, the other party is very likely to block, so Microsoft has solved this security.

Full vulnerability then limits the packet size of ping. Although Microsoft has already done

This limit, but this parameter is still very powerful after the other parameters.

For example, we can implement an aggressive by fitting -t parameters.

Command: (The following introduction is dangerous, only for testing, do not easily apply

On the machine, otherwise the consequences are at your own risk)

C: \> ping -l 65500 -t 192.168.1.21

Pinging 192.168.1.21 with 65500 BYTES of DATA:

Reply from 192.168.1.21: Bytes = 65500 Time <10ms

TTL = 254

Reply from 192.168.1.21: Bytes = 65500 Time <10ms

TTL = 254

..................

This will send the size of 192.168.1.21 to 65500by to the 192.168.1.21 computer.

T's packet, if you only have a computer, there is no effect, but

If you have a lot of computers, you can make the other party completely paralyzed, I have done it.

Such a test, when I use more than 10 computer PING at the same time, Win2000

When the computer of the Pro system, less than 5 minutes, the network is completely paralyzed.

The network is seriously blocked, and HTTP and FTP services are completely stopped, thereby visible power

Same smaller.

-f set don't fragment flag in packet.

Send a "Do not segment" flag in the packet.

In general, the packets you send will be sent to the other party through the routing segment.

Plus the route will not be resigned after the route will.

-i TTL TIME TO LIVE.

Specifies the time to stay in the system in the other party.

This parameter also helps you check the network operation.

-V TOS TYPE OF Service.

Set the Service Type field to the value specified by TOS.

-r Count Record Route for Count HOPS.

Record the routing of the outgoing and returning packets in the Record Routing field.

In general, the packet you sent is reached through a route.

, But what is the route? You can set you through this parameter

I want to detect the number of routes, but the limit is 9, that is, you only

Can track 9 routes, if you want to detect more, you can implement it through other commands

I will explain it to you in the future articles. The following is an example:

C: \> ping -n 1 -r 9 202.96.105.101 (send a packet,

Up to 9 routes)

Pinging 202.96.105.101 with 32 bytes of data:

Reply from 202.96.105.101: bytes = 32 TIME = 10ms TTL = 249

Route: 202.107.208.187 ->

202.107.210.214 ->

61.153.112.70 ->

61.153.112.89 ->

202.96.105.149 ->

202.96.105.97 ->

202.96.105.101 ->

202.96.105.150 ->

61.153.112.90ping statistics for 202.96.105.101:

Packets: SENT = 1, Received = 1, Lost = 0 (0% LOSS),

Approximate Round Trip Times in Milli-Seconds:

Minimum = 10ms, maximum = 10ms, Average = 10ms

From above, you can know from my computer to 202.96.105.101

Over 202.107.208.187, 202.107.210.214, 61.153.112.70

, 61.53.112.89, 202.96.105.149, 202.96.105.97 These

A route.

-s Count Timestamp for Count HOPS.

Specifies the timestamp of the number of hops specified by count.

This parameter is similar to -R, but this parameter does not record the packet return.

The route is only 4 only.

-j host-list loose source route along host-list.

Routing the packet using the computer list specified using computer-list. Continuous meter

The computer can be separated by the intermediate gateway (routing sparse source) IP allowed maximum number

Take 9.

-k Host-List strict source route along host-list.

Routing the packet using the computer list specified using computer-list. Continuous meter

The computer cannot be separated by the intermediate gateway (routing strict source) IP allowed maximum number

Take 9.

-w Timeout Timeout in MilliseConds to Wait for Each

Reply.

Specifies a timeshoot, unit is millisecond.

This parameter has no other techniques.

Other Tips for the ping command: Can you make a PING?

The other party returns to your TTL value size, rough judgment target host system type

Is the Windows series or a UNIX / Linux series, in general, Windows

The TTL value returned by the system is between 100-130, and the UNIX / Linux series

The TTL value returned between the system is between 240-255, of course, the value of TTL is in the other party.

It is possible to modify, and the Windows series can be modified by modifying the registry.

The lower key value is implemented:

[HKEY_LOCAL_MACHINE \System \CurrentControlset\serve

CES\TCPIP \Parameters]

DEFAULTTTL = DWORD: 000000FF

255 --- ff

128 --- 80

64 ---- 40

32 ---- 20

Ok, the ping command is basically completely explained, and there is -J, -k parameter

I haven't explained it in detail, and because some reasons also include the capital I collected.

I have not introduced it to you more, please forgive me, if you are watching

Among the friends of this article know more than me, and other uses

I hope you can tell me and thank you here. Ping's advanced usage

I believe that everyone has been familiar with the ping command, but

It is not a lot to play the function of ping, but I don't have much. Of course I also

It is not to say that I can let Ping play the biggest function, but I only use P

ING this tool also summarizes some little experience, now share it with you.

Now I will tell you about the help of ping commands.

The skills you will use, ping can only be used after installation of the TCP / IP protocol

use:

PING [-T] [-A] [-n count] [-l length] [-f] [-i ttl] [-v TOS] [-r count] [-s count] [[-j computer-list ] |

[-k computer-list]] [-w timeout] destination-list

Options:

-t ping the specified host unient stopped.to See

Statistics and Continue - Type Control-Break; To Stop

- TYPE CONTROL-C.

Keep Ping Local Host until you press Control-C.

This feature has no special skill, but it can be used with other parameters.

It will be mentioned below.

-a resolve addresss to hostnames.

Analyze computer NetBIOS name.

Example: c: \> ping -a 192.168.1.21

Pinging Iceblood.yofor.com [192.168.1.21] with 32

BYTES of DATA:

Reply from 192.168.1.21: Bytes = 32 TIME <10MS TTL = 254

Reply from 192.168.1.21: Bytes = 32 TIME <10MS TTL = 254

Reply from 192.168.1.21: Bytes = 32 TIME <10MS TTL = 254

Reply from 192.168.1.21: Bytes = 32 TIME <10MS TTL = 254

Ping Statistics for 192.168.1.21:

Packets: SENT = 4, Received = 4, LOST = 0 (0%

Loss), Approximate Round Trip Times in Milli-Seconds:

Minimum = 0ms, maximum = 0ms, Average = 0ms

From above, IP is named IP 192.168.1.21.

Eblood.yofor.com.

--N Count Number of echo requests to send.

Send count of the ECHO packet specified by COUNT.

By default, only four packets are sent, through this command.

Take the number of sent to the number, it is very helpful to measure the network speed, such as I

Want to test the average time of returning to send 50 packets, the fastest time

How much, the slowest time can be learned by the following:

C: \> ping -n 50 202.103.96.68

Pinging 202.103.96.68 with 32 bytes of data:

Reply from 202.103.96.68: Bytes = 32 TIME = 50ms TTL = 241

Reply from 202.103.96.68: Bytes = 32 TIME = 50ms TTL = 241

Reply from 202.103.96.68: Bytes = 32 TIME = 50ms TTL = 241

Request timed out.

..................

Reply from 202.103.96.68: Bytes = 32 TIME = 50ms TTL = 241

Reply from 202.103.96.68: Bytes = 32 TIME = 50ms TTL = 241

Ping Statistics for 202.103.96.68:Packets: Sent = 50, Received = 48, LOST = 2 (4%

Loss), Approximate Round Trip Times in Milli-Seconds:

Minimum = 40ms, maximum = 51ms, Average = 46ms

From the above, I can know that I will send 50 packets to 202.103.96.68.

There are 48 in the Cheng, two of which are lost due to unknown reasons, this 48

The return speed is the fastest speed of 40ms in the data package, the speed is 51ms, and the average speed is

Take 46ms.

-l size send buffer size.

Define the ECHO packet size.

In the default, the packet size sent by Windows is 32BYT.

We can also define its size, but there is a size limit, that is

Maximum can only send 65500BYT, maybe someone will ask why it is limited to 65500

BYT, because the Windows series has a security vulnerability (perhaps also

Including other systems) is the data package that is transmitted to the other party is greater than or equal to 655

At 32, the other party is very likely to block, so Microsoft has solved this security.

Full vulnerability then limits the packet size of ping. Although Microsoft has already done

This limit, but this parameter is still very powerful after the other parameters.

For example, we can implement an aggressive by fitting -t parameters.

Command: (The following introduction is dangerous, only for testing, do not easily apply

On the machine, otherwise the consequences are at your own risk)

C: \> ping -l 65500 -t 192.168.1.21

Pinging 192.168.1.21 with 65500 BYTES of DATA:

Reply from 192.168.1.21: Bytes = 65500 Time <10ms

TTL = 254

Reply from 192.168.1.21: Bytes = 65500 Time <10ms

TTL = 254

..................

This will send the size of 192.168.1.21 to 65500by to the 192.168.1.21 computer.

T's packet, if you only have a computer, there is no effect, but

If you have a lot of computers, you can make the other party completely paralyzed, I have done it.

Such a test, when I use more than 10 computer PING at the same time, Win2000

When the computer of the Pro system, less than 5 minutes, the network is completely paralyzed.

The network is seriously blocked, and HTTP and FTP services are completely stopped, thereby visible power

Same smaller.

-f set don't fragment flag in packet.

Send a "Do not segment" flag in the packet.

In general, the packets you send will be sent to the other party through the routing segment.

Plus the route will not be resigned after the route will.

-i TTL TIME TO LIVE.

Specifies the time to stay in the system in the other party.

This parameter also helps you check the network operation.

-V TOS TYPE OF Service.

Set the Service Type field to the value specified by TOS.

-r Count Record Route for Count HOPS.

Record the routing of the outgoing and returning packets in the Record Routing field.

In general, the packet you sent is reached through a route.

, But what is the route? You can set you through this parameter

I want to detect the number of routes, but it is limited to 9, that is, you can only track 9 routing. If you want to detect more, you can implement it through other commands.

I will explain it to you in the future articles. The following is an example:

C: \> ping -n 1 -r 9 202.96.105.101 (send a packet,

Up to 9 routes)

Pinging 202.96.105.101 with 32 bytes of data:

Reply from 202.96.105.101: bytes = 32 TIME = 10ms TTL = 249

Route: 202.107.208.187 ->

202.107.210.214 ->

61.153.112.70 ->

61.153.112.89 ->

202.96.105.149 ->

202.96.105.97 ->

202.96.105.101 ->

202.96.105.150 ->

61.153.112.90

Ping statistics for 202.96.105.101:

Packets: SENT = 1, Received = 1, Lost = 0 (0% LOSS),

Approximate Round Trip Times in Milli-Seconds:

Minimum = 10ms, maximum = 10ms, Average = 10ms

From above, you can know from my computer to 202.96.105.101

Over 202.107.208.187, 202.107.210.214, 61.153.112.70

, 61.53.112.89, 202.96.105.149, 202.96.105.97 These

A route.

-s Count Timestamp for Count HOPS.

Specifies the timestamp of the number of hops specified by count.

This parameter is similar to -R, but this parameter does not record the packet return.

The route is only 4 only.

-j host-list loose source route along host-list.

Routing the packet using the computer list specified using computer-list. Continuous meter

The computer can be separated by the intermediate gateway (routing sparse source) IP allowed maximum number

Take 9.

-k Host-List strict source route along host-list.

Routing the packet using the computer list specified using computer-list. Continuous meter

The computer cannot be separated by the intermediate gateway (routing strict source) IP allowed maximum number

Take 9.

-w Timeout Timeout in MilliseConds to Wait for Each

Reply.

Specifies a timeshoot, unit is millisecond.

This parameter has no other techniques.

Other Tips for the ping command: Can you make a PING?

The other party returns to your TTL value size, rough judgment target host system type

Is the Windows series or a UNIX / Linux series, in general, Windows

The TTL value returned by the system is between 100-130, and the UNIX / Linux series

The TTL value returned between the system is between 240-255, of course, the value of TTL is in the other party.

It is possible to modify, and the Windows series can be modified by modifying the registry.

The lower key value is implemented:

[HKEY_LOCAL_MACHINE \System \CurrentControlset\serve

CES\TCPIP \Parameters]

Defaultttl = dword: 000000FF255 --- FF

128 --- 80

64 ---- 40

32 ---- 20

Ok, the ping command is basically completely explained, and there is -J, -k parameter

I haven't explained it in detail, and because some reasons also include the capital I collected.

I have not introduced it to you more, please forgive me, if you are watching

Among the friends of this article know more than me, and other uses

I hope you can tell me and thank you here. Ping's advanced usage

I believe that everyone has been familiar with the ping command, but

It is not a lot to play the function of ping, but I don't have much. Of course I also

It is not to say that I can let Ping play the biggest function, but I only use P

ING this tool also summarizes some little experience, now share it with you.

Now I will tell you about the help of ping commands.

The skills you will use, ping can only be used after installation of the TCP / IP protocol

use:

ping [-t] [-a] [-n count] [-l length] [-f] [-i ttl]

[-V TOS] [-r count] [-s count] [[-j computer-list] |

[-k computer-list]] [-w timeout] destination-list

Options:

-t ping the specified host unient stopped.to See

Statistics and Continue - Type Control-Break; To Stop

- TYPE CONTROL-C.

Keep Ping Local Host until you press Control-C.

This feature has no special skill, but it can be used with other parameters.

It will be mentioned below.

-a resolve addresss to hostnames.

Analyze computer NetBIOS name.

Example: c: \> ping -a 192.168.1.21

Pinging Iceblood.yofor.com [192.168.1.21] with 32

BYTES of DATA:

Reply from 192.168.1.21: Bytes = 32 TIME <10MS TTL = 254

Reply from 192.168.1.21: Bytes = 32 TIME <10MS TTL = 254

Reply from 192.168.1.21: Bytes = 32 TIME <10MS TTL = 254

Reply from 192.168.1.21: Bytes = 32 TIME <10MS TTL = 254

Ping Statistics for 192.168.1.21:

Packets: SENT = 4, Received = 4, LOST = 0 (0%

Loss), Approximate Round Trip Times in Milli-Seconds:

Minimum = 0ms, maximum = 0ms, Average = 0ms

From above, IP is named IP 192.168.1.21.

Eblood.yofor.com.

--N Count Number of echo requests to send.

Send count of the ECHO packet specified by COUNT.

By default, only four packets are sent, through this command.

Take the number of sent to the number, it is very helpful to measure the network speed, such as I

Want to test the average time of the return to the 50 packets, how much is the fastest time, the slowest time can be learned by:

C: \> ping -n 50 202.103.96.68

Pinging 202.103.96.68 with 32 bytes of data:

Reply from 202.103.96.68: Bytes = 32 TIME = 50ms TTL = 241

Reply from 202.103.96.68: Bytes = 32 TIME = 50ms TTL = 241

Reply from 202.103.96.68: Bytes = 32 TIME = 50ms TTL = 241

Request timed out.

..................

Reply from 202.103.96.68: Bytes = 32 TIME = 50ms TTL = 241

Reply from 202.103.96.68: Bytes = 32 TIME = 50ms TTL = 241

Ping statistics for 202.103.96.68:

Packets: SENT = 50, Received = 48, LOST = 2 (4%

Loss), Approximate Round Trip Times in Milli-Seconds:

Minimum = 40ms, maximum = 51ms, Average = 46ms

From the above, I can know that I will send 50 packets to 202.103.96.68.

There are 48 in the Cheng, two of which are lost due to unknown reasons, this 48

The return speed is the fastest speed of 40ms in the data package, the speed is 51ms, and the average speed is

Take 46ms.

-l size send buffer size.

Define the ECHO packet size.

In the default, the packet size sent by Windows is 32BYT.

We can also define its size, but there is a size limit, that is

Maximum can only send 65500BYT, maybe someone will ask why it is limited to 65500

BYT, because the Windows series has a security vulnerability (perhaps also

Including other systems) is the data package that is transmitted to the other party is greater than or equal to 655

At 32, the other party is very likely to block, so Microsoft has solved this security.

Full vulnerability then limits the packet size of ping. Although Microsoft has already done

This limit, but this parameter is still very powerful after the other parameters.

For example, we can implement an aggressive by fitting -t parameters.

Command: (The following introduction is dangerous, only for testing, do not easily apply

On the machine, otherwise the consequences are at your own risk)

C: \> ping -l 65500 -t 192.168.1.21

Pinging 192.168.1.21 with 65500 BYTES of DATA:

Reply from 192.168.1.21: Bytes = 65500 Time <10ms

TTL = 254

Reply from 192.168.1.21: Bytes = 65500 Time <10ms

TTL = 254

..................

This will send the size of 192.168.1.21 to 65500by to the 192.168.1.21 computer.

T's packet, if you only have a computer, there is no effect, but

If you have a lot of computers, you can make the other party completely paralyzed, I have done it.

Such a test, when I use more than 10 computer PING at the same time, Win2000

When the PRO system computer, less than 5 minutes, the network is already completely paralyzed, the network is seriously blocked, HTTP and FTP services are completely stopped, which can be seen in power

Same smaller.

-f set don't fragment flag in packet.

Send a "Do not segment" flag in the packet.

In general, the packets you send will be sent to the other party through the routing segment.

Plus the route will not be resigned after the route will.

-i TTL TIME TO LIVE.

Specifies the time to stay in the system in the other party.

This parameter also helps you check the network operation.

-V TOS TYPE OF Service.

Set the Service Type field to the value specified by TOS.

-r Count Record Route for Count HOPS.

Record the routing of the outgoing and returning packets in the Record Routing field.

In general, the packet you sent is reached through a route.

, But what is the route? You can set you through this parameter

I want to detect the number of routes, but the limit is 9, that is, you only

Can track 9 routes, if you want to detect more, you can implement it through other commands

I will explain it to you in the future articles. The following is an example:

C: \> ping -n 1 -r 9 202.96.105.101 (send a packet,

Up to 9 routes)

Pinging 202.96.105.101 with 32 bytes of data:

Reply from 202.96.105.101: bytes = 32 TIME = 10ms TTL = 249

Route: 202.107.208.187 ->

202.107.210.214 ->

61.153.112.70 ->

61.153.112.89 ->

202.96.105.149 ->

202.96.105.97 ->

202.96.105.101 ->

202.96.105.150 ->

61.153.112.90

Ping statistics for 202.96.105.101:

Packets: SENT = 1, Received = 1, Lost = 0 (0% LOSS),

Approximate Round Trip Times in Milli-Seconds:

Minimum = 10ms, maximum = 10ms, Average = 10ms

From above, you can know from my computer to 202.96.105.101

Over 202.107.208.187, 202.107.210.214, 61.153.112.70

, 61.53.112.89, 202.96.105.149, 202.96.105.97 These

A route.

-s Count Timestamp for Count HOPS.

Specifies the timestamp of the number of hops specified by count.

This parameter is similar to -R, but this parameter does not record the packet return.

The route is only 4 only.

-j host-list loose source route along host-list.

Routing the packet using the computer list specified using computer-list. Continuous meter

The computer can be separated by the intermediate gateway (routing sparse source) IP allowed maximum number

Take 9.

-k Host-List strict source route along host-list.

Routing the packet using the computer list specified using computer-list. Continuous meter

The computer cannot be separated by the intermediate gateway (routing strict source) IP allowed maximum number

Take 9.

-w Timeout Timeout in MilliseConds to Wait for Each

Reply.

Specifies a timeshoot, unit is millisecond.

This parameter has no other techniques.

Other Tips for the ping command: Can you make a PING?

The other party returns to your TTL value size, rough judgment target host system type

Is the Windows series or a UNIX / Linux series, in general, Windows

The TTL value returned by the system is between 100-130, and the UNIX / Linux series

The TTL value returned between the system is between 240-255, of course, the value of TTL is in the other party.

It is possible to modify, and the Windows series can be modified by modifying the registry.

The lower key value is implemented:

[HKEY_LOCAL_MACHINE \System \CurrentControlset\serve

CES\TCPIP \Parameters]

DEFAULTTTL = DWORD: 000000FF

255 --- ff

128 --- 80

64 ---- 40

32 ---- 20

转载请注明原文地址:https://www.9cbs.com/read-121584.html

New Post(0)