我可以覆盖默认的最大大小 - 65535 bytesICMP ping 数据包吗?如果 - 那么如何?
shf*_*301 10
IPv4 数据包的最大大小为 65535 字节,其中一些是协议开销,因此数据必须比 65535 少几个字节,并且 ping 不能超过一个 IP 数据包,因此答案是否定的。
为什么要发送更大的 ping?
是的
在 Windows 中,输入:
Ping <target> -l xx
Run Code Online (Sandbox Code Playgroud)
其中 xx 是缓冲区大小。
有关 Windows ping 命令的完整选项 -
Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
[-r count] [-s count] [[-j host-list] | [-k host-list]]
[-w timeout] [-R] [-S srcaddr] [-4] [-6] target_name
Options:
-t Ping the specified host until stopped.
To see statistics and continue - type Control-Break;
To stop - type Control-C.
-a Resolve addresses to hostnames.
-n count Number of echo requests to send.
-l size Send buffer size.
-f Set Don't Fragment flag in packet (IPv4-only).
-i TTL Time To Live.
-v TOS Type Of Service (IPv4-only. This setting has been deprecated
and has no effect on the type of service field in the IP Header).
-r count Record route for count hops (IPv4-only).
-s count Timestamp for count hops (IPv4-only).
-j host-list Loose source route along host-list (IPv4-only).
-k host-list Strict source route along host-list (IPv4-only).
-w timeout Timeout in milliseconds to wait for each reply.
-R Use routing header to test reverse route also (IPv6-only).
-S srcaddr Source address to use.
-4 Force using IPv4.
-6 Force using IPv6.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
94284 次 |
| 最近记录: |