How to change ping packet size in Linux

Ping sends out ICMP (Internet Control Message Protocol) echo request packets to the target host and waits for echo replies. 

The packet size from the default value of 56 (84) bytes. The number in the parenthesis represents the ping bytes sent, including 28 bytes of the header packet.

This tutorial will explain about to change the packet size for ping in Linux

For Example, To increase the packet size to 1000 bytes, run the command below:-

  • Open the terminal
ping -s 1000 8.8.8.8