Skip to content
  • Eloi Bail's avatar
    daemon: decrease RTP payload max size · 53297a6d
    Eloi Bail authored and Guillaume Roguez's avatar Guillaume Roguez committed
    RTP packet maximum size must rely on maximum MTU size.
    Networks such as ADSL include PPPoE header that reduce maximum
    payload size.
    Notice that packets higher than MTU would lead to fragmentation
    by routers. With high bitrates in video, we want to avoid that.
    
    This patch proposes to reduce the maximum UDP payload size allowed
    to RTP to a value safe for PPPoE MTU.
    
    This value has been computed as follow:
    
    Ethernet MTU          = 1500 bytes
    PPPoE headers        -= 8
    IP headers           -= 24
    UDP headers          -= 8
    ----------------------------------
    Total for RTP payload = 1460 bytes
    
    Issue: #80080
    Change-Id: Ibc8d5943017f3cea3ac6e1f17f90a85f06755ebe
    53297a6d