2

By studying WebRTC sources I was wondering why developers chose max RTP packet size as 1200 bytes. It's defined in media/engine/constants.cc, as kVideoMtu variable.

Thanks.

1 Answers1

1

This is an arbitrarily selected value to avoid packet fragmentation. There is no any exact science behind this as you can be never sure on the actual limits, however 1200 byte is a safe value for all kind of networks on the public internet (including something like a double VPN connection over PPPoE) and for RTP there is no much reason to choose a bigger value.

Istvan
  • 1,591
  • 1
  • 13
  • 19
  • 1
    For IPv6 you can be pretty damn sure, it's 1280 in the RFC and one of the reasons for the chosen value. – aergistal Dec 05 '17 at 10:06
  • Here is a good explanation why packet should be lesser or equal than 1280 bytes for IPv6 networks and why we need to avoid packet fragmentation in IPv6 networks https://www.arbornetworks.com/blog/asert/ipv6-fragmentation/ – Taras Koroliuk Dec 07 '17 at 11:30