Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maximum legal size of ICMP echo packet

Can someone please explain why maximum legal size of ICMP echo packet is calculated as follows:

65535 - 20 - 8 = 65507

Thanks.

like image 470
Jake Avatar asked Dec 03 '22 05:12

Jake


1 Answers

65535 bytes is the maximum allowed size of a IPv4 network packet, while 20 and 8 are the sizes of the IP and ICMP headers, which leaves up to 65507 bytes for the ICMP data.

like image 105
Win32 Avatar answered Dec 22 '22 17:12

Win32