Software:Secure Reliable Transport

From HandWiki

Secure Reliable Transport is an open source video transport protocol.

History

Secure Reliable Transport is an open source video transport protocol developed originally by Haivision. According to SRT Alliance, an organisation that promotes the technology, it optimises streaming performance across unpredictable networks, such as the Internet, by dynamically adapting to the real-time network conditions between transport endpoints. This helps minimise effects of jitter and bandwidth changes, while error-correction mechanisms help minimise packet loss. SRT supports end-to-end encryption with AES.[1] When performing retransmissions, SRT only attempts to retransmit packets for a limited amount of time based on the latency as configured by the application.[2]

According to Marc Cymontkowski, the architect of SRT, in addition to sending MPEG transport streams over the public internet, it is also being used for IoT connectivity, metadata exchange, as a communication protocol, as well as for uncompressed data delivery.[3]

The reference implementation of the protocol was originally published under the Lesser General Public License version 2.1,[4] but was relicensed under the Mozilla Public License on 22 March 2018.[5]

SRT is supported in the free software multimedia frameworks GStreamer, FFmpeg, OBS Studio and in VLC free software media player.[2][6]

The UDP-based Data Transfer Protocol (UDT) project has been a base for the SRT project.[7] The SRT C API is largely based in design on the UDT API[8]

SRT was designed for low-latency live video transmission.[7][1]

Haivision released the SRT protocol and reference implementation as open source at the 2017 NAB Show.[7]

In March 2020, an individual Internet-Draft, draft-sharabayko-mops-srt,[9] was submitted for consideration to the Media OPerationS (MOPS) working group of the Internet Engineering Task Force.

SRT Alliance

SRT Alliance is an organisation whose members develop, use and promote the Secure Reliable Transport protocol and software based on it. The founding members of the alliance are Haivision and Wowza.[10]

How it works

SRT can be thought of as a competitor for TCP, or implementation of the idea on the application level, using UDP as an underlying transport layer.

The derived UDT project, which was designed for fast file transmission, has provided the reliability mechanism, using a term of connection, sequence numbers, acknowledgments and retransmission of lost packets. It was improved towards the TCP protocol by using selective and immediate (NAK-based) retransmission. SRT was added several features on top of that in order to support live streaming mode:

  1. Controlled latency, with source time transmission (timestamp-based packet delivery)
  2. Relaxed sender speed control
  3. Conditional "too late" packet dropping (prevents head-of-line blocking caused by a lost packet that wasn't recovered on time)
  4. Eager packet retransmission (periodic NAK-report)

Implementation

There's currently one available implementation, which is the open-source SRT library.

The C language API is mainly based on the previous UDT API, with further changes as new features are added. The API is very similar to the one of TCP.

SRT offers actually three working modes, of which first two were derived from UDT:

  • File-stream mode: like TCP
  • File-message mode: similar to SCTP protocol - sending blocks of data with clearly defined boundaries
  • Live mode: the data should be sent in small packets (usually up to 1316 bytes, if the transmitted stream is MPEG-TS) with already appropriate time intervals between them. The same single packets with the same time intervals between them are then delivered at the receiver side.

The SRT library offers also other interesting features:

  1. Encryption using a pre-shared key. Encryption support was originally provided by OpenSSL, now also alternatively Nettle (GNU TLS) or mbedTLS can be used.
  2. SRT Access Control (aka "StreamID") can be used by applications to identify resources and use user-password access method while using the same service port number for multiple purposes.[11]
  3. The optional Forward Error Correction mechanism.

Further and more detailed documentation can be found in the Source code documentation.

References

  1. 1.0 1.1 Haivision. "Secure, Reliable, Transport". GitHub. https://github.com/Haivision/srt. 
  2. 2.0 2.1 Olivier Crête (16 February 2018). "SRT in GStreamer". https://www.collabora.com/news-and-blog/blog/2018/02/16/srt-in-gstreamer/. 
  3. "It glues everything together: an interview with Marc Cymontkowski, evangelist of SRT". 5 November 2019. https://blog.medialooks.com/it-glues-everything-together-an-interview-with-marc-cymontkowski-evangelist-of-srt-ad1d08790bd0. 
  4. Michael Larabel (24 April 2017). "SRT Video Transport Protocol Open-Sourced". Phoronix. https://www.phoronix.com/scan.php?page=news_item&px=SRT-Open-Sourced. 
  5. Roman rndi (22 March 2018). "Change License to MPLv2.0 · Haivision/srt@a75d4c4". GitHub. https://github.com/Haivision/srt/commit/a75d4c40cd6e140ffa0491fe93fe4d759085877d#diff-9879d6db96fd29134fc802214163b95a. 
  6. Olivier Crête (June 2018). "Secure Video Comes of Age". Linux Format magazine (237). https://www.collabora.com/news-and-blog/blog/2018/06/25/secure-video-comes-of-age/. 
  7. 7.0 7.1 7.2 Marc Cymontkowski. "Why We Created SRT and the Difference Between SRT and UDT".
  8. "Haivision srt API docs"
  9. Sharabayko, M.P; Sharabayko, M.A (2020), The SRT Protocol, IETF, I-D draft-sharabayko-mops-srt, https://tools.ietf.org/html/draft-sharabayko-mops-srt, retrieved 26 March 2020 
  10. "Microsoft Joins SRT Open Source Streaming Project". 17 September 2018. https://www.thebroadcastbridge.com/content/entry/12014/microsoft-joins-srt-open-source-streaming-project. 
  11. "SRT Access Control Guidelines". 7 November 2019. https://github.com/Haivision/srt/blob/master/docs/AccessControl.md. 

External links