简体   繁体   中英

Recommended data size to avoid fragmentation over UDP?

I am designing a UDP-based system and need to know the recommended maximum data packet size. The typical MTU for Ethernet v2 is, as I understand it, 1500 bytes. However, if PPoE is used, that drops to 1492.

Does that mean that the data portion of my system should be 1492 bytes maximum to avoid fragmentation on typical networks or should I just ignore PPoE and make it 1500 bytes??

Per RFCs 1122-3, IP routers are required not to fragment packets of 576 octets or less. Subtracting the 8 byte UDP header and the 20 byte IP header, this leaves you 548 bytes of payload. However the figure usually cited for UDP non-fragmentation is 534 bytes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM