-
- Downloads
Path MTU discovery implementation
This implementation uses gnutls dtls heartbeat API to test path MTU.
heartbeat allowing messages with automated response in a datagram,
the application is able to guess the MTU via a timeout in the heartbeat.
(timeout on packet sent and no response, implies that the MTU is lower
than the lost payload.)
To minimize false positives (a response is lost for example), each attempt
triggers one retry on the first timeout.
This version ensures a minimal MTU of 512 bytes will be returned in
case of any failure in the procedure.
For retrocompatibility with non heartbeat capable clients,
a fallback MTU is set at 1280.
Change-Id: Ib9a7f63a70e8bdad239d8fc103779a0f2c387e87
Reviewed-by:
Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
Showing
- src/ice_socket.h 4 additions, 3 deletionssrc/ice_socket.h
- src/ice_transport.cpp 7 additions, 0 deletionssrc/ice_transport.cpp
- src/media/audio/audio_rtp_session.cpp 18 additions, 8 deletionssrc/media/audio/audio_rtp_session.cpp
- src/media/rtp_session.h 4 additions, 0 deletionssrc/media/rtp_session.h
- src/media/socket_pair.cpp 6 additions, 6 deletionssrc/media/socket_pair.cpp
- src/media/socket_pair.h 1 addition, 1 deletionsrc/media/socket_pair.h
- src/media/video/video_receive_thread.cpp 4 additions, 2 deletionssrc/media/video/video_receive_thread.cpp
- src/media/video/video_receive_thread.h 3 additions, 1 deletionsrc/media/video/video_receive_thread.h
- src/media/video/video_rtp_session.cpp 3 additions, 2 deletionssrc/media/video/video_rtp_session.cpp
- src/media/video/video_sender.cpp 3 additions, 2 deletionssrc/media/video/video_sender.cpp
- src/media/video/video_sender.h 2 additions, 1 deletionsrc/media/video/video_sender.h
- src/ringdht/sips_transport_ice.cpp 6 additions, 0 deletionssrc/ringdht/sips_transport_ice.cpp
- src/ringdht/sips_transport_ice.h 3 additions, 0 deletionssrc/ringdht/sips_transport_ice.h
- src/security/tls_session.cpp 151 additions, 2 deletionssrc/security/tls_session.cpp
- src/security/tls_session.h 15 additions, 0 deletionssrc/security/tls_session.h
- src/sip/sipcall.cpp 5 additions, 1 deletionsrc/sip/sipcall.cpp
- src/sip/siptransport.cpp 6 additions, 0 deletionssrc/sip/siptransport.cpp
- src/sip/siptransport.h 2 additions, 0 deletionssrc/sip/siptransport.h
Loading
Please register or sign in to comment