Search

How to specify the size of data to send in ping command

The default behavior of ping command is to send 32 bytes of data to the destination remote computer in an ICMP Echo Request packets. If 32 bytes of data is received on remote computer in an ICMP Echo Request message, it will reply back with an ICMP Echo Reply message containing 32 bytes of data.

The default behavior of ping command of sending 32 bytes of data in its ICMP Echo Request packets is shown in below image.

ping-default-behaviour-size-of-data.jpg

For any reason, if you want to change the default behavior of sending 32 bytes of data in its ICMP Echo Request packets, you can -l option with the size of data, as shown below. Here in this example, I had specified to send 64 bytes of data in an ICMP Echo Request packet.

Note that the size range you can specify in Windows 10 is from 0 to 65,500

ping-command-specify-size-of-data.jpg

Related Tutorials
Internet Control Message Protocol, ICMP, How ICMP Work, ICMP Header, ICMP Message Header
ICMP message types
ICMP Echo Request and Echo Reply messages
ICMP Destination Unreachable messages
ICMP Source Quench messages
ICMP Router Advertisement messages
ICMP Router Solicitation messages
ICMP Time Exceeded messages
ICMP Parameter Problem messages
ICMP Timestamp Request and Timestamp Reply messages
ICMP Photuris messages
Ping command tool
Ping command options
How to show remote computer name in ping command output
How to ping continuously
How to specify the number of packets sent in ping command
What is Ping of death (PoD) network attack
Traceroute/tracert command tool
Tracert command options
Pathping command tool
Pathping command options
Difference between ping, traceroute/tracert and pathping