Guidelines for using the Multiplexing Features of RTP to Support Multiple Media StreamsEricssonTorshamsgatan 23SE-164 80 KistaSweden+46 10 714 82 87magnus.westerlund@ericsson.comEricssonFarogatan 6SE-164 80 KistaSweden+46 10 714 13 11bo.burman@ericsson.comUniversity of GlasgowSchool of Computing ScienceGlasgowG12 8QQUnited Kingdomcsp@csperkins.orgGoogleKungsbron 2Stockholm11122Swedenharald@alvestrand.noHuaweironi.even@huawei.comHuaweimarvin.zhenghui@huawei.comThe Real-time Transport Protocol (RTP) is a flexible protocol that
can be used in a wide range of applications, networks, and system
topologies. That flexibility makes for wide applicability, but can
complicate the application design process. One particular design
question that has received much attention is how to support multiple
media streams in RTP. This memo discusses the available options and
design trade-offs, and provides guidelines on how to use the
multiplexing features of RTP to support multiple media streams.The Real-time Transport Protocol (RTP) is a commonly used
protocol for real-time media transport. It is a protocol that provides
great flexibility and can support a large set of different
applications. RTP was from the beginning designed for multiple
participants in a communication session. It supports many paradigms
of topologies and usages, as defined in
. RTP has several
multiplexing points designed for different purposes. These enable
support of multiple media streams and switching between different
encoding or packetization of the media. By using multiple RTP
sessions, sets of media streams can be structured for efficient
processing or identification. Thus the question for any RTP
application designer is how to best use the RTP session, the SSRC and
the payload type to meet the application's needs.There have been increased interest in more advanced usage of RTP, for
example, multiple streams can occur when a single endpoint have
multiple media sources, like multiple cameras or microphones that need
to be sent simultaneously. Consequently, questions are raised
regarding the most appropriate RTP usage. The limitations in some
implementations, RTP/RTCP extensions, and signalling has also been
exposed. The authors also
hope that clarification on the usefulness of some functionalities in
RTP will result in more complete implementations in the future.The purpose of this document is to provide clear information about
the possibilities of RTP when it comes to multiplexing. The RTP
application designer needs to understand the implications that come from
a particular usage of the RTP multiplexing points. The document will
recommend against some usages as being unsuitable, in general or for
particular purposes.The document starts with some definitions and then goes into the
existing RTP functionalities around multiplexing. Both the desired
behaviour and the implications of a particular behaviour depend on which
topologies are used, which requires some consideration. This is followed
by a discussion of some choices in multiplexing behaviour and their
impacts. Some archetypes of RTP usage are discussed. Finally, some
recommendations and examples are provided.The definitions in Section 3 of are referenced
normatively.The taxonomy defined in is referenced normatively.The following terms and abbreviations are used in this
document:
A communication situation including
multiple endpoints. In this document it will be used to refer to
situations where more than two endpoints communicate.
The originator or source of a particular
Media Stream. Identified using an SSRC in a particular RTP
session. An RTP source is the source of a single media stream, and
is associated with a single endpoint and a single Media Source. An
RTP Source is just called a Source in RFC 3550.
A recipient of a Media Stream. The Media
Sink is identified using one or more SSRCs. There can be more than
one RTP Sink for one RTP source.
The operation of taking multiple
entities as input, aggregating them onto some common resource
while keeping the individual entities addressable such that they
can later be fully and unambiguously separated (de-multiplexed)
again.
One or more RTP sessions that are
used together to perform some function. Examples are multiple RTP
sessions used to carry different layers of a layered encoding. In
an RTP Session Group, CNAMEs are assumed to be valid across all
RTP sessions, and designate synchronisation contexts that can
cross RTP sessions.
The process of configuring endpoints to
participate in one or more RTP sessions.This document is focused on issues that affect RTP. Thus, issues
that involve signalling protocols, such as whether SIP, Jingle or some
other protocol is in use for session configuration, the particular
syntaxes used to define RTP session properties, or the constraints
imposed by particular choices in the signalling protocols, are
mentioned only as examples in order to describe the RTP issues more
precisely.This document assumes the applications will use RTCP. While there
are such applications that don't send RTCP, they do not conform to the
RTP specification, and thus can be regarded as reusing the RTP packet
format but not implementing the RTP protocol.The reasons why an endpoint might choose to send multiple media
streams are widespread. In the below discussion, please keep in mind
that the reasons for having multiple media streams vary and include but
are not limited to the following:Multiple Media SourcesMultiple Media Streams might be needed to represent one Media
Source (for instance when using layered encodings)A Retransmission stream might repeat the content of another Media
StreamAn FEC stream might provide material that can be used to repair
another Media StreamAlternative Encodings, for instance different codecs for the same
audio streamAlternative formats, for instance multiple resolutions of the
same video streamFor each of these, it is necessary to decide if each additional media
stream gets its own SSRC multiplexed within a RTP Session, or if it is
necessary to use additional RTP sessions to group the media streams. The
choice between these made due to one reason might not be the choice
suitable for another reason. The
clearest understanding is associated with multiple media sources of the
same media type. However, all warrant discussion and clarification on
how to deal with them. As the discussion below will show, in reality we
cannot choose a single one of the two solutions. To utilise RTP well and
as efficiently as possible, both are needed. The real issue is finding
the right guidance on when to create RTP sessions and when additional
SSRCs in an RTP session is the right choice.This section describes the multiplexing points present in the RTP
protocol that can be used to distinguish media streams and groups of
media streams. outlines the process of
demultiplexing incoming RTP streams:An RTP Session is the highest semantic layer in the RTP protocol,
and represents an association between a group of communicating
endpoints. The set of participants that form an RTP session is defined
as those that share a single synchronisation source space
. That is, if a group of participants are each aware
of the synchronisation source identifiers belonging to the other
participants, then those participants are in a single RTP session. A
participant can become aware of a synchronisation source identifier by
receiving an RTP packet containing it in the SSRC field or CSRC list,
by receiving an RTCP packet mentioning it in an SSRC field, or through
signalling (e.g., the SDP ÔÇ£a=ssrc:ÔÇØ attribute). Thus, the scope of an
RTP session is determined by the participants' network interconnection
topology, in combination with RTP and RTCP forwarding strategies
deployed by the endpoints and any middleboxes, and by the
signalling.RTP does not contain a session identifier. Rather, it relies on the
underlying transport layer to separate different sessions, and on the
signalling to identify sessions in a manner that is meaningful to the
application. The signalling layer might give sessions an explicit
identifier, or their identification might be implicit based on the
addresses and ports used. Accordingly, a single RTP Session can have
multiple associated identifiers, explicit and implicit, belonging to
different contexts. For example, when running RTP on top of UDP/IP, an
RTP endpoint can identify and delimit an RTP Session from other RTP
Sessions using the UDP source and destination IP addresses and UDP
port numbers. Another example is when using SDP grouping framework
which uses an identifier per ÔÇ£m=ÔÇØ-line; if
there is a one-to-one mapping between ÔÇ£m=ÔÇØ-lines and RTP sessions,
that grouping framework identifier will identify an RTP Session. extends the ÔÇ£m-ÔÇ£-line for bundled media, which adds complexity to demultiplexing media stream. Section 10.2 of provides information about how RTP/RTCP streams are associated with SDP media description.RTP sessions are globally unique, but their identity can only be
determined by the communication context at an endpoint of the session,
or by a middlebox that is aware of the session context. The
relationship between RTP sessions depending on the underlying
application, transport, and signalling protocol. The RTP protocol
makes no normative statements about the relationship between different
RTP sessions, however the applications that use more than one RTP
session will have some higher layer understanding of the relationship
between the sessions they create.A synchronisation source (SSRC) identifies an RTP source or an RTP
sink. Every endpoint will have at least one synchronisation source
identifier, even if it does not send media (endpoints that are only
RTP sinks still send RTCP, and use their synchronisation source
identifier in the RTCP packets they send). An endpoint can have
multiple synchronisation sources identifiers if it contains multiple
RTP sources (i.e., if it sends multiple media streams). Endpoints that
are both RTP sources and RTP sinks use the same synchronisation
sources in both roles. At any given time, a RTP source has one and
only one SSRC - although that can change over the lifetime of the RTP
source or sink.The synchronisation Source identifier is a 32-bit unsigned integer.
It is present in every RTP and RTCP packet header, and in the payload
of some RTCP packet types. It can also be present in SDP signalling.
Unless pre-signalled using the SDP ÔÇ£a=ssrc:ÔÇØ attribute ,
the synchronisation source identifier is chosen at
random. It is not dependent on the network address of the endpoint,
and is intended to be unique within an RTP session. Synchronisation
source identifier collisions can occur, and are handled as specified
in and , resulting in
the synchronisation source identifier of the affecting RTP sources
and/or sinks changing. An RTP source that changes its RTP Session
identifier (e.g. source transport address) during a session has to
choose a new SSRC identifier to avoid being interpreted as looped
source.Synchronisation source identifiers that belong to the same
synchronisation context (i.e., that represent media streams that can
be synchronised using information in RTCP SR packets) are indicated by
use of identical CNAME chunks in corresponding RTCP SDES packets. SDP
signalling can also be used to provide explicit grouping of
synchronisation sources .In some cases, the same SSRC Identifier value is used to relate
streams in two different RTP Sessions, such as in Multi-Session
Transmission of scalable video. This
is to be avoided since there is no guarantee of uniqueness in
SSRC values across RTP sessions.Note that RTP sequence number and RTP timestamp are scoped by the
synchronisation source. Each RTP source will have a different
synchronisation source, and the corresponding media stream will have a
separate RTP sequence number and timestamp space.An SSRC identifier is used by different type of sources as well as
sinks:
Connected to a ÔÇ£physicalÔÇØ media
source, for example a camera or microphone.
A source with some
attributed property generated by some network node, for example a
filtering function in an RTP mixer that provides the most active
speaker based on some criteria, or a mix representing a set of
other sources.
A source that does not generate any RTP
media stream in itself (e.g. an endpoint or middlebox only
receiving in an RTP session). It still needs a sender SSRC for use
as source in RTCP reports.Note that an endpoint that generates more than one media type, e.g.
a conference participant sending both audio and video, need not (and
commonly does not) use the same SSRC value across RTP sessions. RTCP
Compound packets containing the CNAME SDES item is the designated
method to bind an SSRC to a CNAME, effectively cross-correlating SSRCs
within and between RTP Sessions as coming from the same endpoint. The
main property attributed to SSRCs associated with the same CNAME is
that they are from a particular synchronisation context and can be
synchronised at playback.An RTP receiver receiving a previously unseen SSRC value will
interpret it as a new source. It might in fact be a previously
existing source that had to change SSRC number due to an SSRC
conflict. However, the originator of the previous SSRC ought to have
ended the conflicting source by sending an RTCP BYE for it prior to
starting to send with the new SSRC, so the new SSRC is anyway
effectively a new source.The Contributing Source (CSRC) is not a separate identifier. Rather
a synchronisation source identifier is listed as a CSRC in the RTP
header of a packet generated by an RTP mixer if the corresponding SSRC
was in the header of one of the packets that contributed to the
mix.It is not possible, in general, to extract media represented by an
individual CSRC since it is typically the result of a media mixing
(merge) operation by an RTP mixer on the individual media streams
corresponding to the CSRC identifiers. The exception is the case when
only a single CSRC is indicated as this represent forwarding of a
media stream, possibly modified. The RTP header extension
for Mixer-to-Client Audio Level Indication expands
on the receivers information about a packet with a CSRC list. Due to
these restrictions, CSRC will not be considered a fully qualified
multiplexing point and will be disregarded in the rest of this
document.Each Media Stream utilises one or more RTP payload formats. An RTP
payload format describes how the output of a particular media codec is
framed and encoded into RTP packets. The payload format used is
identified by the payload type field in the RTP data packet header.
The combination therefore identifies a specific Media Stream encoding
format. The format definition can be taken from for
statically allocated payload types, but ought
to be explicitly defined in signalling, such as SDP, both for static
and dynamic Payload Types. The term ÔÇ£formatÔÇØ here includes whatever
can be described by out-of-band signalling means. In SDP, the term
ÔÇ£formatÔÇØ includes media type, RTP timestamp sampling rate, codec,
codec configuration, payload format configurations, and various
robustness mechanisms such as redundant encodings.The payload type is scoped by sending endpoint within an RTP Session.
All synchronisation sources sent from a single endpoint
share the same payload types definitions. The RTP Payload Type is
designed such that only a single Payload Type is valid at any time
instant in the RTP source's RTP timestamp time line, effectively
time-multiplexing different Payload Types if any change occurs. The
payload type used can change on a per-packet basis for an SSRC, for
example a speech codec making use of generic comfort noise
. If there is a true need to send multiple Payload
Types for the same SSRC that are valid for the same instant, then
redundant encodings can be used. Several
additional constraints than the ones mentioned above need to be met to
enable this use, one of which is that the combined payload sizes of
the different Payload Types ought not exceed the transport MTU.Other aspects of RTP payload format use are described in RTP Payload HowTo.The payload type is not a multiplexing point at the RTP layer (see
for a detailed discussion of why using the
payload type as an RTP multiplexing point does not work). The RTP
payload type is, however, used to determine how to render a media
stream, and so can be viewed as selecting a rendering context. The
rendering context can be defined by the signalling, and the RTP
payload type number is sometimes used to associate an RTP media stream
with the signalling. This association is possible provided unique RTP
payload type numbers are used in each context. For example, an RTP
media stream can be associated with an SDP ÔÇ£m=ÔÇØ line by comparing the
RTP payload type numbers used by the media stream with payload types
signalled in the ÔÇ£a=rtpmap:ÔÇØ lines in the media sections of the SDP.
If RTP media streams are being associated with signalling contexts
based on the RTP payload type, then the assignment of RTP payload type
numbers needs to be unique across signalling contexts; if the same RTP
payload format configuration is used in multiple contexts, then a
different RTP payload type number has to be assigned in each context
to ensure uniqueness. If the RTP payload type number is not being used
to associated RTP media streams with a signalling context, then the
same RTP payload type number can be used to indicate the exact same
RTP payload format configuration in multiple contexts. In case of bundled media, Section 10.2 of provides more information on SDP signalling.The impact of how RTP multiplexing is performed will in general vary
with how the RTP Session participants are interconnected, described
by RTP Topology.Even the most basic use case, denoted Topo-Point-to-Point in
, raises a number of
considerations that are discussed in detail in following sections.
They range over such aspects as:Does my communication peer support RTP as defined with multiple
SSRCs?Do I need network differentiation in form of QoS?Can the application more easily process and handle the media
streams if they are in different RTP sessions?Do I need to use additional media streams for RTP
retransmission or FEC.etc.For some Point to Multi-point topologies (e.g. Topo-ASM and Topo-SSM
in ), multicast is
used to interconnect the session participants. Special
considerations (documented in ) need to be made as
multicast is a one to many distribution system.Sometimes an RTP communication can end up in a situation when the
peer it is communicating with is not compatible with the other peer
for various reasons:No common media codec for a media type thus requiring
transcodingDifferent support for multiple RTP sources and RTP sessionsUsage of different media transport protocols, i.e RTP or
other.Usage of different transport protocols, e.g. UDP, DCCP, TCPDifferent security solutions, e.g. IPsec, TLS, DTLS, SRTP with
different keying mechanisms.In many situations this is resolved by the inclusion of a
translator between the two peers, as described by Topo-PtP-Translator
in . The
translator's main purpose is to make the peer look to the other peer
like something it is compatible with. There can also be other reasons
than compatibility to insert a translator in the form of a middlebox
or gateway, for example a need to monitor the media streams. If the
stream transport characteristics are changed by the translator,
appropriate media handling can require thorough understanding of the
application logic, specifically any congestion control or media
adaptation.The point to point topology can contain one to many RTP sessions
with one to many media sources per session, each having one or more
RTP sources per media source.Using multiple media streams is a well supported feature of RTP.
However, it can be unclear for most implementers or people writing
RTP/RTCP applications or extensions attempting to apply multiple streams
when it is most appropriate to add an additional SSRC in an existing RTP
session and when it is better to use multiple RTP sessions. This section
tries to discuss the various considerations needed.RFC 3550 contains some recommendations and a bullet list with 5
arguments for different aspects of RTP multiplexing. Let's review
Section 5.2 of , reproduced below:ÔÇ£For efficient protocol processing, the number of multiplexing
points should be minimised, as described in the
integrated layer processing design principle. In
RTP, multiplexing is provided by the destination transport address
(network address and port number) which is different for each RTP
session. For example, in a teleconference composed of audio and
video media encoded separately, each medium SHOULD be carried in a
separate RTP session with its own destination transport address.Separate audio and video streams SHOULD NOT be carried in a
single RTP session and demultiplexed based on the payload type or
SSRC fields. Interleaving packets with different RTP media types but
using the same SSRC would introduce several problems:If, say, two audio streams shared the same RTP session and
the same SSRC value, and one were to change encodings and thus
acquire a different RTP payload type, there would be no general
way of identifying which stream had changed encodings.An SSRC is defined to identify a single timing and sequence
number space. Interleaving multiple payload types would require
different timing spaces if the media clock rates differ and
would require different sequence number spaces to tell which
payload type suffered packet loss.The RTCP sender and receiver reports (see Section 6.4) can
only describe one timing and sequence number space per SSRC and
do not carry a payload type field.An RTP mixer would not be able to combine interleaved streams
of incompatible media into one stream.Carrying multiple media in one RTP session precludes: the use
of different network paths or network resource allocations if
appropriate; reception of a subset of the media if desired, for
example just audio if video would exceed the available
bandwidth; and receiver implementations that use separate
processes for the different media, whereas using separate RTP
sessions permits either single- or multiple-process
implementations.Using a different SSRC for each medium but sending them in the
same RTP session would avoid the first three problems but not the
last two.On the other hand, multiplexing multiple related sources of the
same medium in one RTP session using different SSRC values is the
norm for multicast sessions. The problems listed above don't apply:
an RTP mixer can combine multiple audio sources, for example, and
the same treatment is applicable for all of them. It might also be
appropriate to multiplex streams of the same medium using different
SSRC values in other scenarios where the last two problems do not
apply.ÔÇØLet's consider one argument at a time. The first is an argument
for using different SSRC for each individual media stream, which is
very applicable.The second argument is advocating against using payload type
multiplexing, which still stands as can been seen by the extensive
list of issues found in .The third argument is yet another argument against payload type
multiplexing.The fourth is an argument against multiplexing media streams that
require different handling into the same session. As we saw in the
discussion of RTP mixers, the RTP mixer has to embed application
logic in order to handle streams anyway; the separation of streams
according to stream type is just another piece of application logic,
which might or might not be appropriate for a particular
application. A type of application that can mix different media
sources ÔÇ£blindlyÔÇØ is the audio only ÔÇ£telephoneÔÇØ bridge; most other
type of application needs application-specific logic to perform the
mix correctly.The fifth argument discusses network aspects that we will discuss
more below in . It also goes
into aspects of implementation, like decomposed endpoints where
different processes or inter-connected devices handle different
aspects of the whole multi-media session.A summary of RFC 3550's view on multiplexing is to use unique
SSRCs for anything that is its own media/packet stream, and to use
different RTP sessions for media streams that don't share a media
type. This document supports the first point; it is very valid. The
later is one thing which needs to be further discussed, as imposing a single solution on all usages of RTP is inappropriate.
Multiple Media Types in an RTP Session specification provides a
detailed analysis of the potential issues in having multiple media
types in the same RTP session. This document tries to provide an
wider scoped consideration regarding the usage of RTP session and
considers multiple media types in one RTP session as possible choice
for the RTP application designer.Using multiple SSRCs in an RTP session at one endpoint requires
resolving some unclear aspects of the RTP specification. These could
potentially lead to some interoperability issues as well as some
potential significant inefficiencies. These are further discussed in
ÔÇ£RTP Considerations for Endpoints Sending Multiple Media StreamsÔÇØ.
A application designer needs to consider these issues and the impact
availability or lack of the optimization in the endpoints has on
their application.If an application will become affected by the issues described,
using Multiple RTP sessions can mitigate these issues.A common problem in a number of various RTP extensions has been
how to bind related RTP sources and their media streams together.
This issue is common to both using additional SSRCs and Multiple RTP
sessions.The solutions can be divided into some groups, RTP/RTCP based,
Signalling based (SDP), grouping related RTP sessions, and grouping
SSRCs within an RTP session. Most solutions are explicit, but some
implicit methods have also been applied to the problem.The SDP-based signalling solutions are:
The SDP Grouping Framework uses various semantics to
group any number of media descriptions. These has previously been
considered primarily as grouping RTP sessions,
groups multiple
media descriptors as a single RTP session.Source-Specific Media Attributes in SDP includes a
solution for grouping SSRCs the same way as the Grouping framework
groups Media Descriptions.Media Stream Identifiers includes a
solution for grouping SSRCs that is independent of their allocation
to RTP sessions.This supports a lot of use cases. All these solutions have
shortcomings in cases where the session's dynamic properties are
such that it is difficult or resource consuming to keep the list of
related SSRCs up to date.Within RTP/RTCP based solutions when binding to an endpoint or
synchronization context, i.e. the CNAME has not been sufficient and
one way to bind related streams in multiple RTP sessions has been to
use the same SSRC value across all the RTP sessions.
RTP Retransmission is multiple RTP
session mode, Generic FEC, as well as the
RTP payload format for Scalable Video Coding in Multi
Session Transmission (MST) mode uses this method. This method clearly
works but might have some downside in RTP sessions with many
participating SSRCs. The birthday paradox ensures that if you populate
a single session with 9292 SSRCs at random, the chances are
approximately 1% that at least one collision will occur. When a
collision occur this will force one to change SSRC in all RTP sessions
and thus resynchronizing all of them instead of only the single media
stream having the collision. Therefore it is not recommended to use such method. Using streams from the same media source should use the same RTP session.It can be noted that Section 8.3 of the RTP Specification
recommends using a single SSRC space across all RTP sessions for
layered coding.Another solution that has been applied to binding SSRCs has been an
implicit method used by RTP Retransmission when doing
retransmissions in the same RTP session as the source RTP media
stream. This issues an RTP retransmission request, and then await a
new SSRC carrying the RTP retransmission payload and where that SSRC
is from the same CNAME. This limits a requestor to having only one
outstanding request on any new source SSRCs per endpoint. provides an RTP/RTCP based mechanism capable of
supporting explicit association within an RTP session.There exist a number of Forward Error Correction (FEC) based
schemes for how to reduce the packet loss of the original streams.
Most of the FEC schemes will protect a single source flow. The
protection is achieved by transmitting a certain amount of redundant
information that is encoded such that it can repair one or more
packet losses over the set of packets they protect. This sequence of
redundant information also needs to be transmitted as its own media
stream, or in some cases instead of the original media stream. Thus
many of these schemes create a need for binding related flows as
discussed above. Looking at the history of these schemes, there are
schemes using multiple SSRCs and schemes using multiple RTP
sessions, and some schemes that support both modes of operation.Using multiple RTP sessions supports the case where some set of
receivers might not be able to utilise the FEC information. By
placing it in a separate RTP session, it can easily be ignored.In usages involving multicast, having the FEC information on its
own multicast group allows
for flexibility. This is especially useful when receivers see very
heterogeneous packet loss rates. Those receivers that are not seeing
packet loss don't need to join the multicast group with the FEC
data, and so avoid the overhead of receiving unnecessary FEC
packets, for example.There are several different kinds of interworking, and this section
discusses two related ones. The interworking between different
applications and the implications of potentially different choices of
usage of RTP's multiplexing points. The second topic relates to what
limitations have to be considered working with some legacy
applications.It is not uncommon that applications or services of similar
usage, especially the ones intended for interactive communication,
encounter a situation where one want to interconnect two or more of
these applications.In these cases one ends up in a situation where one might use a
gateway to interconnect applications. This gateway then needs to
change the multiplexing structure or adhere to limitations in each
application.There are two fundamental approaches to gatewaying: RTP
Translator interworking (RTP bridging), where the gateway acts as an
RTP Translator, and the two applications are members of the same RTP
session, and Gateway Interworking (with RTP termination), where
there are independent RTP sessions running from each interconnected
application to the gateway.From an RTP perspective the RTP Translator approach could work if
all the applications are using the same codecs with the same payload
types, have made the same multiplexing choices, have the same
capabilities in number of simultaneous media streams combined with
the same set of RTP/RTCP extensions being supported. Unfortunately
this might not always be true.When one is gatewaying via an RTP Translator, a natural
requirement is that the two applications being interconnected need
to use the same approach to multiplexing. Furthermore, if one of the
applications is capable of working in several modes (such as being
able to use Additional SSRCs or Multiple RTP sessions at will), and
the other one is not, successful interconnection depends on locking
the more flexible application into the operating mode where
interconnection can be successful, even if no participants using the
less flexible application are present when the RTP sessions are
being created.When one terminates RTP sessions at the gateway, there are
certain tasks that the gateway has to carry out:Generating appropriate RTCP reports for all media streams
(possibly based on incoming RTCP reports), originating from
SSRCs controlled by the gateway.Handling SSRC collision resolution in each application's RTP
sessions.Signalling, choosing and policing appropriate bit-rates for
each session.For applications that uses any security mechanism,
e.g. in the form of SRTP, then the gateway needs to be able to decrypt
incoming packets and re-encrypt them in the other application's
security context. This is necessary even if all that's needed is a
simple remapping of SSRC numbers. If this is done, the gateway also
needs to be a member of the security contexts of both sides, of
course.Other tasks a gateway might need to apply include transcoding
(for incompatible codec types), rescaling (for incompatible video
size requirements), suppression of content that is known not to be
handled in the destination application, or the addition or removal
of redundancy coding or scalability layers to fit the need of the
destination domain.From the above, we can see that the gateway needs to have an
intimate knowledge of the application requirements; a gateway is by
its nature application specific, not a commodity product.This fact reveals the potential for these gateways to block
evolution of the applications by blocking unknown RTP and RTCP
extensions that the regular application has been extended with.If one uses security functions, like SRTP, they can as seen above
incur both additional risk due to the gateway needing to be in
security association between the endpoints, unless the gateway is on
the transport level, and additional complexities in form of the
decrypt-encrypt cycles needed for each forwarded packet. SRTP, due
to its keying structure, also requires that each RTP session needs
different master keys, as use of the same key in two RTP sessions for some ciphers
can result in two-time pads that completely breaks the
confidentiality of the packets.Historically, the most common RTP use cases have been point to
point Voice over IP (VoIP) or streaming applications, commonly with
no more than one media source per endpoint and media type (typically
audio and video). Even in conferencing applications, especially
voice only, the conference focus or bridge has provided a single
stream with a mix of the other participants to each participant. It
is also common to have individual RTP sessions between each endpoint
and the RTP mixer, meaning that the mixer functions as an
RTP-terminating gateway.When establishing RTP sessions that can contain endpoints that
aren't updated to handle multiple streams following these
recommendations, a particular application can have issues with
multiple SSRCs within a single session. These issues include:Need to handle more than one stream simultaneously rather
than replacing an already existing stream with a new one.Be capable of decoding multiple streams simultaneously.Be capable of rendering multiple streams simultaneously.This indicates that gateways attempting to interconnect to this
class of devices has to make sure that only one media stream of each
type gets delivered to the endpoint if it's expecting only one, and
that the multiplexing format is what the device expects. It is
highly unlikely that RTP translator-based interworking can be made
to function successfully in such a context.The multiplexing choice has impact on network level mechanisms that
need to be considered by the implementer.When it comes to Quality of Service mechanisms, they are either flow
based or packet marking based. RSVP is an example of a flow based
mechanism, while Diff-Serv is an example of a packet marking
based one. For a packet marking based scheme, the method of multiplexing will
not affect the possibility to use QoS.However, for a flow based scheme there is a clear difference
between the methods. Additional SSRC will result in all media
streams being part of the same 5-tuple (protocol, source address,
destination address, source port, destination port) which is the
most common selector for flow based QoS.It also needs to be noted that packet marking based QoS mechanisms
can have limitations. A general observation is that different DSCP
can be assigned to different packets within a flow as well as
within an RTP Media Stream. However, care needs to be taken when
considering which forwarding behaviours that are applied on path due
to these DSCPs. In some cases the forwarding behaviour can result in
packet reordering. For more discussion of this see
.More specific to the choice between using one or more RTP session
can be the method for assigning marking to packets. If this is done
using a network ingress function, it can have issues discriminating
the different RTP media streams. The network API on the endpoint
also needs to be capable of setting the marking on a per packet
basis to reach the full functionality.In today's network there exist a large number of middleboxes. The
ones that normally have most impact on RTP are Network Address
Translators (NAT) and Firewalls (FW).Below we analyse and comment on the impact of requiring more
underlying transport flows in the presence of NATs and
Firewalls:
A given IP address
only has 65536 available local ports per transport protocol for
all consumers of ports that exist on the machine. This is
normally never an issue for an end-user machine. It can become
an issue for servers that handle large number of simultaneous
streams. However, if the application uses ICE to authenticate
STUN requests, a server can serve multiple endpoints from the
same local port, and use the whole 5-tuple (source and
destination address, source and destination port, protocol) as
identifier of flows after having securely bound them to the
remote endpoint address using the STUN request. In theory the
minimum number of media server ports needed are the maximum
number of simultaneous RTP Sessions a single endpoint can use.
In practice, implementation will probably benefit from using
more server ports to simplify implementation or avoid
performance bottlenecks.
If an endpoint sits behind a NAT, each
flow it generates to an external address will result in a state
that has to be kept in the NAT. That state is a limited
resource. In home or Small Office/Home Office (SOHO) NATs,
memory or processing are usually the most limited resources. For
large scale NATs serving many internal endpoints, available
external ports are likely the scarce resource. Port limitations
is primarily a problem for larger centralised NATs where
endpoint independent mapping requires each flow to use one port
for the external IP address. This affects the maximum number of
internal users per external IP address. However, it is worth
pointing out that a real-time video conference session with
audio and video is likely using less than 10 UDP flows, compared
to certain web applications that can use 100+ TCP flows to
various servers from a single browser instance.
Performing the NAT/FW
traversal takes a certain amount of time for each flow. It also
takes time in a phase of communication between accepting to
communicate and the media path being established which is fairly
critical. The best case scenario for how much extra time it
takes after finding the first valid candidate pair following the
specified ICE procedures are: 1.5*RTT + Ta*(Additional_Flows-1),
where Ta is the pacing timer, which ICE specifies to be no
smaller than 20 ms. That assumes a message in one direction, and
then an immediate triggered check back. The reason it isn't
more, is that ICE first finds one candidate pair that works
prior to attempting to establish multiple flows. Thus, there is
no extra time until one has found a working candidate pair.
Based on that working pair the needed extra time is to in
parallel establish the, in most cases 2-3, additional flows.
However, packet loss causes extra delays, at least 100 ms, which
is the minimal retransmission timer for ICE.
Due to the need to
establish more than a single flow through the NAT, there is some
risk that establishing the first flow succeeds but that one or
more of the additional flows fail. The risk that this happens is
hard to quantify, but ought to be fairly low as one flow from
the same interfaces has just been successfully established. Thus
only rare events such as NAT resource overload, or selecting
particular port numbers that are filtered etc., ought to be
reasons for failure.
Firewalls
differ in how deeply they inspect packets. There exist some
potential that deeply inspecting firewalls will have similar
legacy issues with multiple SSRCs as some stack
implementations.Additional SSRC keeps the additional media streams within one RTP
Session and transport flow and does not introduce any additional NAT
traversal complexities per media stream. This can be compared with
normally one or two additional transport flows per RTP session when
using multiple RTP sessions. Additional lower layer transport flows
will be needed, unless an explicit de-multiplexing layer is added
between RTP and the transport protocol. At time of writing no such
mechanism was defined.Multicast groups provides a powerful semantics for a number of
real-time applications, especially the ones that desire
broadcast-like behaviours with one endpoint transmitting to a large
number of receivers, like in IPTV. But that same semantics do result
in a certain number of limitations.One limitation is that for any group, sender side adaptation to
the actual receiver properties causes degradation for all
participants to what is supported by the receiver with the worst
conditions among the group participants. In most cases this is not
acceptable. Instead various receiver based solutions are employed to
ensure that the receivers achieve best possible performance. By
using scalable encoding and placing each scalability layer in a
different multicast group, the receiver can control the amount of
traffic it receives. To have each scalability layer on a different
multicast group, one RTP session per multicast group is used.In addition, the transport flow considerations in multicast are a
bit different from unicast; NATs with port translation are not useful in the multicast
environment, meaning that the entire port range of each multicast
address is available for distinguishing between RTP sessions.Thus it appears easiest and most straightforward to use multiple
RTP sessions for sending different media flows used for adapting to
network conditions.
It is also common that streams that improve
transport robustness are sent in their own multicast group to allow
for interworking with legacy or to support different levels of
protection.Here are some common behaviours for RTP multicast:Multicast applications use a group of RTP sessions, not one.
Each endpoint will need to be a member of a number of RTP sessions
in order to perform well.Within each RTP session, the number of RTP Sinks is likely to
be much larger than the number of RTP sources.Multicast applications need signalling functions to identify
the relationships between RTP sessions.Multicast applications need signalling functions to identify
the relationships between SSRCs in different RTP sessions.All multicast configurations share a signalling requirement; all of
the participants will need to have the same RTP and payload type
configuration. Otherwise, A could for example be using payload type 97
as the video codec H.264 while B thinks it is MPEG-2. It is to be
noted that SDP offer/answer is not
appropriate for ensuring this property. The signalling aspects of
multicast are not explored further in this memo.Security solutions for this type of group communications are also
challenging. First of all the key-management and the security protocol
needs to support group communication. Source authentication requires
special solutions. For more discussion on this please review
Options for Securing RTP Sessions.When dealing with point-to-point, 2-member RTP sessions only, there
are few security issues that are relevant to the choice of having one
RTP session or multiple RTP sessions. However, there are a few aspects
of multiparty sessions that might warrant consideration. For general
information of possible methods of securing RTP, please review
RTP Security Options.When using SRTP the security
context scope is important and can be a necessary differentiation in
some applications. As SRTP's crypto suites (so far) are built around
symmetric keys, the receiver will need to have the same key as the
sender. This results in that no one in a multi-party session can be
certain that a received packet really was sent by the claimed sender
or by another party having access to the key. In most cases this is
a sufficient security property, but there are a few cases where this
does create issues.The first case is when someone leaves a multi-party session and
one wants to ensure that the party that left can no longer access
the media streams. This requires that everyone re-keys without
disclosing the keys to the excluded party.A second case is when using security as an enforcing mechanism
for differentiation. Take for example a scalable layer or a high
quality simulcast version which only premium users are allowed to
access. The mechanism preventing a receiver from getting the high
quality stream can be based on the stream being encrypted with a key
that user can't access without paying premium, having the
key-management limit access to the key.SRTP has no special functions for dealing with different
sets of master keys for different SSRCs. The key-management functions
have different capabilities to establish different set of keys,
normally on a per endpoint basis. For example, DTLS-SRTP
and Security Descriptions establish different keys for
outgoing and incoming traffic from an endpoint. This key usage has to
be written into the cryptographic context, possibly associated with
different SSRCs.Performing key-management for multi-party session can be a
challenge. This section considers some of the issues.Multi-party sessions, such as transport translator based sessions and
multicast sessions, cannot use Security Description
nor DTLS-SRTP without an extension as each endpoint
provides its set of keys. In centralised conferences, the signalling
counterpart is a conference server and the media plane unicast
counterpart (to which DTLS messages would be sent) is the transport
translator. Thus an extension like
Encrypted Key Transport is needed or a
MIKEY based solution that allows for keying all session
participants with the same master key.The usage of security functions can surface complexity
implications of the choice of multiplexing and topology. This
becomes especially evident in RTP topologies having any type of
middlebox that processes or modifies RTP/RTCP packets. Where there
is very small overhead for an RTP translator or mixer to rewrite an
SSRC value in the RTP packet of an unencrypted session, the cost of
doing it when using cryptographic security functions is higher. For
example if using SRTP, the actual
security context and exact crypto key are determined by the SSRC
field value. If one changes it, the encryption and authentication
tag needs to be performed using another key. Thus changing the SSRC
value implies a decryption using the old SSRC and its security
context followed by an encryption using the new one.This section discusses some archetypes of how RTP multiplexing can be
used in applications to achieve certain goals and a summary of their
implications. For each archetype there is discussion of benefits and
downsides.In this archetype each endpoint in a point-to-point session has
only a single SSRC, thus the RTP session contains only two SSRCs, one
local and one remote. This session can be used both unidirectional,
i.e. only a single media stream or bi-directional, i.e. both endpoints
have one media stream each. If the application needs additional media
flows between the endpoints, they will have to establish additional
RTP sessions.The Pros:This archetype has great legacy interoperability potential as
it will not tax any RTP stack implementations.The signalling has good possibilities to negotiate and describe
the exact formats and bit-rates for each media stream, especially
using today's tools in SDP.It does not matter if usage or purpose of the media stream is
signalled on media stream level or session level as there is no
difference.It is possible to control security association per RTP media
stream with current key-management, since each media stream is
directly related to an RTP session, and the keying operates on a
per-session basis.The Cons:The number of RTP sessions grows directly in proportion with
the number of media streams, which has the implications: Linear growth of the amount of NAT/FW state with number of
media streams.Increased delay and resource consumption from NAT/FW
traversal.Likely larger signalling message and signalling processing
requirement due to the amount of session related
information.Higher potential for a single media stream to fail during
transport between the endpoints.When the number of RTP sessions grows, the amount of explicit
state for relating media stream also grows, linearly or possibly
exponentially, depending on how the application needs to relate
media streams.The port consumption might become a problem for centralised
services, where the central node's port consumption grows rapidly
with the number of sessions.For applications where the media streams are highly dynamic in
their usage, i.e. entering and leaving, the amount of signalling
can grow high. Issues arising from the timely establishment of
additional RTP sessions can also arise.Cross session RTCP requests might be needed, and the fact that
they're impossible can cause issues.If the same SSRC value is reused in multiple RTP sessions
rather than being randomly chosen, interworking with applications
that uses another multiplexing structure than this application
will require SSRC translation.Cannot be used with Any Source Multicast (ASM) as one cannot
guarantee that only two endpoints participate as packet senders.
Using SSM, it is possible to restrict to these requirements if no
RTCP feedback is injected back into the SSM group.For most security mechanisms, each RTP session or transport
flow requires individual key-management and security association
establishment thus increasing the overhead.RTP applications that need to inter-work with legacy RTP
applications, like most deployed VoIP and video conferencing
solutions, can potentially benefit from this structure. However, a
large number of media descriptions in SDP can also run into issues
with existing implementations. For any application needing a larger
number of media flows, the overhead can become very significant. This
structure is also not suitable for multi-party sessions, as any given
media stream from each participant, although having same usage in the
application, needs its own RTP session. In addition, the dynamic
behaviour that can arise in multi-party applications can tax the
signalling system and make timely media establishment more
difficult.In this archetype, each RTP session serves only a single media
type. The RTP session can contain multiple media streams, either from
a single endpoint or from multiple endpoints. This commonly creates a
low number of RTP sessions, typically only one for audio and one for
video, with a corresponding need for two listening ports when using
RTP/RTCP multiplexing.The Pros:Low number of RTP sessions needed compared to single SSRC case.
This implies: Reduced NAT/FW stateLower NAT/FW Traversal Cost in both processing and
delay.Allows for early de-multiplexing in the processing chain in RTP
applications where all media streams of the same type have the
same usage in the application.Works well with media type de-composite endpoints.Enables Flow-based QoS with different prioritisation between
media types.For applications with dynamic usage of media streams, i.e. they
come and go frequently, having much of the state associated with
the RTP session rather than an individual SSRC can avoid the need
for in-session signalling of meta-information about each SSRC.Low overhead for security association establishment.The Cons:May have some need for cross session RTCP requests for things
that affect both media types in an asynchronous way.Some potential for concern with legacy implementations that
does not support the RTP specification fully when it comes to
handling multiple SSRC per endpoint.Will not be able to control security association for sets of
media streams within the same media type with today's
key-management mechanisms, unless these are split into different
RTP sessions.For RTP applications where all media streams of the same media type
share same usage, this structure provides efficiency gains in amount
of network state used and provides more fate sharing with other media
flows of the same type. At the same time, it is still maintaining
almost all functionalities when it comes to negotiation in the
signalling of the properties for the individual media type and also
enabling flow based QoS prioritisation between media types. It handles
multi-party session well, independently of multicast or centralised
transport distribution, as additional sources can dynamically enter
and leave the session.In this archetype one goes one step further than in
the above by using
multiple RTP sessions also for a single media type, but still not as
far as having a single SSRC per RTP session. The main reason for going
in this direction is that the RTP application needs separation of the
media streams due to their usage. Some typical reasons for going to
this archetype are scalability over multicast, simulcast, need for
extended QoS prioritisation of media streams due to their usage in the
application, or the need for fine-grained signalling using today's
tools.The Pros:More suitable for Multicast usage where receivers can
individually select which RTP sessions they want to participate
in, assuming each RTP session has its own multicast group.Indication of the application's usage of the media stream,
where multiple different usages exist.Less need for SSRC specific explicit signalling for each media
stream and thus reduced need for explicit and timely
signalling.Enables detailed QoS prioritisation for flow based
mechanisms.Works well with de-composite endpoints.Handles dynamic usage of media streams well.For transport translator based multi-party sessions, this
structure allows for improved control of which type of media
streams an endpoint receives.The scope for who is included in a security association can be
structured around the different RTP sessions, thus enabling such
functionality with existing key-management.The Cons:Increases the amount of RTP sessions compared to Multiple SSRCs
of the Same Media Type.Increased amount of session configuration state.May need synchronised cross-session RTCP requests and require
some consideration due to this.For media streams that are part of scalability, simulcast or
transport robustness it will be needed to bind sources, which need
to support multiple RTP sessions.Some potential for concern with legacy implementations that
does not support the RTP specification fully when it comes to
handling multiple SSRC per endpoint.Higher overhead for security association establishment.If the applications need finer control than on media type level
over which session participants that are included in different
sets of security associations, most of today's key-management will
have difficulties establishing such a session.For more complex RTP applications that have several different
usages for media streams of the same media type and / or uses
scalability or simulcast, this solution can enable those functions at
the cost of increased overhead associated with the additional
sessions. This type of structure is suitable for more advanced
applications as well as multicast based applications requiring
differentiation to different participants.This archetype is to use a single RTP session for multiple
different media types, like audio and video, and possibly also
transport robustness mechanisms like FEC or Retransmission. Each media
stream will use its own SSRC and a given SSRC value from a particular
endpoint will never use the SSRC for more than a single media
type.The Pros:Single RTP session which implies: Minimal NAT/FW state.Minimal NAT/FW Traversal Cost.Fate-sharing for all media flows.Enables separation of the different media types based on the
payload types so media type specific endpoint or central
processing can still be supported despite single session.Can handle dynamic allocations of media streams well on an RTP
level. Depends on the application's needs for explicit indication
of the stream usage and how timely that can be signalled.Minimal overhead for security association establishment.The Cons:Less suitable for interworking with other applications that
uses individual RTP sessions per media type or multiple sessions
for a single media type, due to need of SSRC translation.Negotiation of bandwidth for the different media types is
currently not possible in SDP. This requires SDP extensions to
enable payload or source specific bandwidth. Likely to be a
problem due to media type asymmetry in needed bandwidth.Not suitable for de-composite endpoints.Flow based QoS cannot provide separate treatment to some media
streams compared to others in the single RTP session.If there is significant asymmetry between the media streams'
RTCP reporting needs, there are some challenges in configuration
and usage to avoid wasting RTCP reporting on the media stream that
does not need that frequent reporting.Not suitable for applications where some receivers like to
receive only a subset of the media streams, especially if
multicast or transport translator is being used.Additional concern with legacy implementations that do not
support the RTP specification fully when it comes to handling
multiple SSRC per endpoint, as also multiple simultaneous media
types needs to be handled.If the applications need finer control over which session
participants that are included in different sets of security
associations, most key-management will have difficulties
establishing such a session.There are some clear relations between these archetypes. Both the
ÔÇ£single SSRC per RTP sessionÔÇØ and the ÔÇ£multiple media types in one
sessionÔÇØ are cases which require full explicit signalling of the media
stream relations. However, they operate on two different levels where
the first primarily enables session level binding, and the second
needs to do it all on SSRC level. From another perspective, the two
solutions are the two extreme points when it comes to number of RTP
sessions needed.The two other archetypes ÔÇ£Multiple SSRCs of the Same Media TypeÔÇØ
and ÔÇ£Multiple Sessions for one Media TypeÔÇØ are examples of two other
cases that first of all allows for some implicit mapping of the role
or usage of the media streams based on which RTP session they appear
in. It thus potentially allows for less signalling and in particular
reduced need for real-time signalling in dynamic sessions. They also
represent points in between the first two when it comes to amount of
RTP sessions established, i.e. representing an attempt to reduce the
amount of sessions as much as possible without compromising the
functionality the session provides both on network level and on
signalling level.This section contains a number of recommendations for implementers
or specification writers when it comes to handling multi-stream.
As
discussed in there exist
drawbacks in using the same SSRC in multiple RTP sessions as a
mechanism to bind related media streams together. It is instead
suggested that a mechanism to explicitly signal the relation is
used, either in RTP/RTCP or in the used signalling mechanism that
establishes the RTP session(s).
In
the cases where an RTP endpoint needs to transmit additional media
streams of the same media type in the application, with the same
processing requirements at the network and RTP layers, it is
suggested to send them as additional SSRCs in the same RTP
session. For example a telepresence room where there are three
cameras, and each camera captures 2 persons sitting at the table,
sending each camera as its own SSRC within a single RTP session is
suggested.
When media streams have different processing requirements from the
network or the RTP layer at the endpoints, it is suggested that the
different types of streams are put in different RTP sessions. This
includes the case where different participants want different
subsets of the set of RTP streams.
When using Multiple RTP session solutions, it is suggested to
explicitly group the involved RTP sessions when needed using the
signalling mechanism, for example
The Session Description Protocol (SDP) Grouping Framework.,
using some appropriate grouping semantics.
When
defining an RTP or RTCP extension, the creator needs to consider
if this extension is applicable to usage with additional SSRCs and
Multiple RTP sessions. Any extension intended to be generic is
suggested to support both. Applications that are not as generally
applicable will have to consider if interoperability is better
served by defining a single solution or providing both
options.
When defining new
RTP/RTCP extensions intended for transport support, like the
retransmission or FEC mechanisms, they are expected to include
support for both additional SSRCs and multiple RTP sessions so
that application developers can choose freely from the set of
mechanisms without concerning themselves with which of the
multiplexing choices a particular solution supports.There are currently some issues that needs to be resolved before
this document is ready to be published:Use of RFC 2119 language is section on SSRC (3.2.2)Better align source and sink terminolgy with Taxonomy (Section 3.2.2)Section on Binding Related Sources (Section 3.4.3) needs more text on
usage of the RID and other SDES based mechanisms created.Does the MSID text need to be updated and clarified based on the evoulsion of
MSID since previous version. Section 3.4.3.Section 4.1.2 (RTP Translator Interworking) needs to be updated. It is not
obvious that it is a natural requirement that the same multiplexing is used.
This needs better discussion.Refernce to Ta for ICE being 20 ms will need to be updated due to ICE update.In Section 4.3.2 (Key Management for Multi-party session) the reference to
EKT needs to be updated, question is if draft-ietf-perc-ekt-diet is appropriate
here?Can we find a more approriate term than archetypes?This document makes no request of IANA.Note to RFC Editor: this section can be removed on publication as an
RFC.There is discussion of the security implications of choosing SSRC vs
Multiple RTP session in .RTP: A Transport Protocol for Real-Time ApplicationsThis memorandum describes RTP, the real-time transport protocol. RTP provides end-to-end network transport functions suitable for applications transmitting real-time data, such as audio, video or simulation data, over multicast or unicast network services. RTP does not address resource reservation and does not guarantee quality-of- service for real-time services. The data transport is augmented by a control protocol (RTCP) to allow monitoring of the data delivery in a manner scalable to large multicast networks, and to provide minimal control and identification functionality. RTP and RTCP are designed to be independent of the underlying transport and network layers. The protocol supports the use of RTP-level translators and mixers. Most of the text in this memorandum is identical to RFC 1889 which it obsoletes. There are no changes in the packet formats on the wire, only changes to the rules and algorithms governing how the protocol is used. The biggest change is an enhancement to the scalable timer algorithm for calculating when to send RTCP packets in order to minimize transmission in excess of the intended rate when many participants join a session simultaneously. [STANDARDS-TRACK]A Taxonomy of Semantics and Mechanisms for Real-Time Transport Protocol (RTP) SourcesThe terminology about, and associations among, Real-time Transport Protocol (RTP) sources can be complex and somewhat opaque. This document describes a number of existing and proposed properties and relationships among RTP sources and defines common terminology for discussing protocol entities and their relationships.RTP Payload for Redundant Audio DataThis document describes a payload format for use with the real-time transport protocol (RTP), version 2, for encoding redundant audio data. [STANDARDS-TRACK]Resource ReSerVation Protocol (RSVP) -- Version 1 Functional SpecificationThis memo describes version 1 of RSVP, a resource reservation setup protocol designed for an integrated services Internet. RSVP provides receiver-initiated setup of resource reservations for multicast or unicast data flows, with good scaling and robustness properties. [STANDARDS-TRACK]Definition of the Differentiated Services Field (DS Field) in the IPv4 and IPv6 HeadersThis document defines the IP header field, called the DS (for differentiated services) field. [STANDARDS-TRACK]Session Announcement ProtocolThis document describes version 2 of the multicast session directory announcement protocol, Session Announcement Protocol (SAP), and the related issues affecting security and scalability that should be taken into account by implementors. This memo defines an Experimental Protocol for the Internet community.SIP: Session Initiation ProtocolThis document describes Session Initiation Protocol (SIP), an application-layer control (signaling) protocol for creating, modifying, and terminating sessions with one or more participants. These sessions include Internet telephone calls, multimedia distribution, and multimedia conferences. [STANDARDS-TRACK]An Offer/Answer Model with Session Description Protocol (SDP)This document defines a mechanism by which two entities can make use of the Session Description Protocol (SDP) to arrive at a common view of a multimedia session between them. In the model, one participant offers the other a description of the desired session from their perspective, and the other participant answers with the desired session from their perspective. This offer/answer model is most useful in unicast sessions where information from both participants is needed for the complete view of the session. The offer/answer model is used by protocols like the Session Initiation Protocol (SIP). [STANDARDS-TRACK]Real-time Transport Protocol (RTP) Payload for Comfort Noise (CN)RTP Profile for Audio and Video Conferences with Minimal ControlThis document describes a profile called "RTP/AVP" for the use of the real-time transport protocol (RTP), version 2, and the associated control protocol, RTCP, within audio and video multiparticipant conferences with minimal control. It provides interpretations of generic fields within the RTP specification suitable for audio and video conferences. In particular, this document defines a set of default mappings from payload type numbers to encodings. This document also describes how audio and video data may be carried within RTP. It defines a set of standard encodings and their names when used within RTP. The descriptions provide pointers to reference implementations and the detailed standards. This document is meant as an aid for implementors of audio, video and other real-time multimedia applications. This memorandum obsoletes RFC 1890. It is mostly backwards-compatible except for functions removed because two interoperable implementations were not found. The additions to RFC 1890 codify existing practice in the use of payload formats under this profile and include new payload formats defined since RFC 1890 was published. [STANDARDS-TRACK]The Secure Real-time Transport Protocol (SRTP)This document describes the Secure Real-time Transport Protocol (SRTP), a profile of the Real-time Transport Protocol (RTP), which can provide confidentiality, message authentication, and replay protection to the RTP traffic and to the control traffic for RTP, the Real-time Transport Control Protocol (RTCP). [STANDARDS-TRACK]MIKEY: Multimedia Internet KEYingThis document describes a key management scheme that can be used for real-time applications (both for peer-to-peer communication and group communication). In particular, its use to support the Secure Real-time Transport Protocol is described in detail. Security protocols for real-time multimedia applications have started to appear. This has brought forward the need for a key management solution to support these protocols. [STANDARDS-TRACK]RTP Payload for Text ConversationThis memo obsoletes RFC 2793; it describes how to carry real-time text conversation session contents in RTP packets. Text conversation session contents are specified in ITU-T Recommendation T.140.One payload format is described for transmitting text on a separate RTP session dedicated for the transmission of text.This RTP payload description recommends a method to include redundant text from already transmitted packets in order to reduce the risk of text loss caused by packet loss. [STANDARDS-TRACK]SDP: Session Description ProtocolThis memo defines the Session Description Protocol (SDP). SDP is intended for describing multimedia sessions for the purposes of session announcement, session invitation, and other forms of multimedia session initiation. [STANDARDS-TRACK]Session Description Protocol (SDP) Security Descriptions for Media StreamsThis document defines a Session Description Protocol (SDP) cryptographic attribute for unicast media streams. The attribute describes a cryptographic key and other parameters that serve to configure security for a unicast media stream in either a single message or a roundtrip exchange. The attribute can be used with a variety of SDP media transports, and this document defines how to use it for the Secure Real-time Transport Protocol (SRTP) unicast media streams. The SDP crypto attribute requires the services of a data security protocol to secure the SDP message. [STANDARDS-TRACK]RTP Retransmission Payload FormatRTP retransmission is an effective packet loss recovery technique for real-time applications with relaxed delay bounds. This document describes an RTP payload format for performing retransmissions. Retransmitted RTP packets are sent in a separate stream from the original RTP stream. It is assumed that feedback from receivers to senders is available. In particular, it is assumed that Real-time Transport Control Protocol (RTCP) feedback as defined in the extended RTP profile for RTCP-based feedback (denoted RTP/AVPF) is available in this memo. [STANDARDS-TRACK]Codec Control Messages in the RTP Audio-Visual Profile with Feedback (AVPF)This document specifies a few extensions to the messages defined in the Audio-Visual Profile with Feedback (AVPF). They are helpful primarily in conversational multimedia scenarios where centralized multipoint functionalities are in use. However, some are also usable in smaller multicast environments and point-to-point calls.The extensions discussed are messages related to the ITU-T Rec. H.271 Video Back Channel, Full Intra Request, Temporary Maximum Media Stream Bit Rate, and Temporal-Spatial Trade-off. [STANDARDS-TRACK]RTP Payload Format for Generic Forward Error CorrectionThis document specifies a payload format for generic Forward Error Correction (FEC) for media data encapsulated in RTP. It is based on the exclusive-or (parity) operation. The payload format described in this document allows end systems to apply protection using various protection lengths and levels, in addition to using various protection group sizes to adapt to different media and channel characteristics. It enables complete recovery of the protected packets or partial recovery of the critical parts of the payload depending on the packet loss situation. This scheme is completely compatible with non-FEC-capable hosts, so the receivers in a multicast group that do not implement FEC can still work by simply ignoring the protection data. This specification obsoletes RFC 2733 and RFC 3009. The FEC specified in this document is not backward compatible with RFC 2733 and RFC 3009. [STANDARDS-TRACK]Source-Specific Media Attributes in the Session Description Protocol (SDP)The Session Description Protocol (SDP) provides mechanisms to describe attributes of multimedia sessions and of individual media streams (e.g., Real-time Transport Protocol (RTP) sessions) within a multimedia session, but does not provide any mechanism to describe individual media sources within a media stream. This document defines a mechanism to describe RTP media sources, which are identified by their synchronization source (SSRC) identifiers, in SDP, to associate attributes with these sources, and to express relationships among sources. It also defines several source-level attributes that can be used to describe properties of media sources. [STANDARDS-TRACK]Multiplexing RTP Data and Control Packets on a Single PortThis memo discusses issues that arise when multiplexing RTP data packets and RTP Control Protocol (RTCP) packets on a single UDP port. It updates RFC 3550 and RFC 3551 to describe when such multiplexing is and is not appropriate, and it explains how the Session Description Protocol (SDP) can be used to signal multiplexed sessions. [STANDARDS-TRACK]Datagram Transport Layer Security (DTLS) Extension to Establish Keys for the Secure Real-time Transport Protocol (SRTP)This document describes a Datagram Transport Layer Security (DTLS) extension to establish keys for Secure RTP (SRTP) and Secure RTP Control Protocol (SRTCP) flows. DTLS keying happens on the media path, independent of any out-of-band signalling channel present. [STANDARDS-TRACK]The Session Description Protocol (SDP) Grouping FrameworkIn this specification, we define a framework to group "m" lines in the Session Description Protocol (SDP) for different purposes. This framework uses the "group" and "mid" SDP attributes, both of which are defined in this specification. Additionally, we specify how to use the framework for two different purposes: for lip synchronization and for receiving a media flow consisting of several media streams on different transport addresses. This document obsoletes RFC 3388. [STANDARDS-TRACK]RTP Payload Format for Scalable Video CodingThis memo describes an RTP payload format for Scalable Video Coding (SVC) as defined in Annex G of ITU-T Recommendation H.264, which is technically identical to Amendment 3 of ISO/IEC International Standard 14496-10. The RTP payload format allows for packetization of one or more Network Abstraction Layer (NAL) units in each RTP packet payload, as well as fragmentation of a NAL unit in multiple RTP packets. Furthermore, it supports transmission of an SVC stream over a single as well as multiple RTP sessions. The payload format defines a new media subtype name "H264-SVC", but is still backward compatible to RFC 6184 since the base layer, when encapsulated in its own RTP stream, must use the H.264 media subtype name ("H264") and the packetization method specified in RFC 6184. The payload format has wide applicability in videoconferencing, Internet video streaming, and high-bitrate entertainment-quality video, among others. [STANDARDS-TRACK]A Real-time Transport Protocol (RTP) Header Extension for Mixer-to-Client Audio Level IndicationThis document describes a mechanism for RTP-level mixers in audio conferences to deliver information about the audio level of individual participants. Such audio level indicators are transported in the same RTP packets as the audio data they pertain to. [STANDARDS-TRACK]Options for Securing RTP SessionsThe Real-time Transport Protocol (RTP) is used in a large number of different application domains and environments. This heterogeneity implies that different security mechanisms are needed to provide services such as confidentiality, integrity, and source authentication of RTP and RTP Control Protocol (RTCP) packets suitable for the various environments. The range of solutions makes it difficult for RTP-based application developers to pick the most suitable mechanism. This document provides an overview of a number of security solutions for RTP and gives guidance for developers on how to choose the appropriate security mechanism.Differentiated Services (Diffserv) and Real-Time CommunicationThis memo describes the interaction between Differentiated Services (Diffserv) network quality-of-service (QoS) functionality and real- time network communication, including communication based on the Real-time Transport Protocol (RTP). Diffserv is based on network nodes applying different forwarding treatments to packets whose IP headers are marked with different Diffserv Codepoints (DSCPs). WebRTC applications, as well as some conferencing applications, have begun using the Session Description Protocol (SDP) bundle negotiation mechanism to send multiple traffic streams with different QoS requirements using the same network 5-tuple. The results of using multiple DSCPs to obtain different QoS treatments within a single network 5-tuple have transport protocol interactions, particularly with congestion control functionality (e.g., reordering). In addition, DSCP markings may be changed or removed between the traffic source and destination. This memo covers the implications of these Diffserv aspects for real-time network communication, including WebRTC.RTP TopologiesThis document discusses point-to-point and multi-endpoint topologies used in environments based on the Real-time Transport Protocol (RTP). In particular, centralized topologies commonly employed in the video conferencing industry are mapped to the RTP terminology.Real-Time Streaming Protocol Version 2.0This memorandum defines the Real-Time Streaming Protocol (RTSP) version 2.0, which obsoletes RTSP version 1.0 defined in RFC 2326.RTSP is an application-layer protocol for the setup and control of the delivery of data with real-time properties. RTSP provides an extensible framework to enable controlled, on-demand delivery of real-time data, such as audio and video. Sources of data can include both live data feeds and stored clips. This protocol is intended to control multiple data delivery sessions; provide a means for choosing delivery channels such as UDP, multicast UDP, and TCP; and provide a means for choosing delivery mechanisms based upon RTP (RFC 3550).How to Write an RTP Payload FormatThis document contains information on how best to write an RTP payload format specification. It provides reading tips, design practices, and practical tips on how to produce an RTP payload format specification quickly and with good results. A template is also included with instructions.Sending Multiple RTP Streams in a Single RTP SessionThis memo expands and clarifies the behavior of Real-time Transport Protocol (RTP) endpoints that use multiple synchronization sources (SSRCs). This occurs, for example, when an endpoint sends multiple RTP streams in a single RTP session. This memo updates RFC 3550 with regard to handling multiple SSRCs per endpoint in RTP sessions, with a particular focus on RTP Control Protocol (RTCP) behavior. It also updates RFC 4585 to change and clarify the calculation of the timeout of SSRCs and the inclusion of feedback messages.Encrypted Key Transport for Secure RTPSRTP Encrypted Key Transport (EKT) is an extension to SRTP that provides for the secure transport of SRTP master keys, Rollover Counters, and other information, within SRTP or SRTCP. This facility enables SRTP to work for decentralized conferences with minimal control, and to handle situations caused by early media. This note defines EKT, and also describes how to use it with SDP Security Descriptions, DTLS-SRTP, and MIKEY. These other key management protocols provide an EKT key to everyone in a session, and EKT coordinates the keys within the session.Negotiating Media Multiplexing Using the Session Description Protocol (SDP)This specification defines a new Session Description Protocol (SDP) Grouping Framework extension, 'BUNDLE'. The extension can be used with the SDP Offer/Answer mechanism to negotiate the usage of a single address:port combination (BUNDLE address) for receiving media, referred to as bundled media, specified by multiple SDP media descriptions ("m=" lines). To assist endpoints in negotiating the use of bundle this specification defines a new SDP attribute, 'bundle-only', which can be used to request that specific media is only used if bundled. The specification also updates RFC 3264, to allow usage of zero port values without meaning that media is rejected. There are multiple ways to correlate the bundled RTP packets with the appropriate media descriptions. This specification defines a new Real-time Transport Protocol (RTP) source description (SDES) item and a new RTP header extension that provides an additional way to do this correlation by using them to carry a value that associates the RTP/ RTCP packets with a specific media description.Mechanisms for Media Source Selection in the Session Description Protocol (SDP)Source-specific media attributes in the Session Description Protocol (SDP) allow endpoints to describe Real-Time Transport Protocol (RTP) sources within a media stream. This document extends that mechanism by defining how participants in a multimedia session can request specific sources from a remote party.Sending Multiple Types of Media in a Single RTP SessionThis document specifies how an RTP session can contain RTP Streams with media from multiple media types such as audio, video, and text. This has been restricted by the RTP Specification, and thus this document updates RFC 3550 and RFC 3551 to enable this behaviour for applications that satisfy the applicability for using multiple media types in a single RTP session.WebRTC MediaStream Identification in the Session Description ProtocolThis document specifies a Session Description Protocol (SDP) Grouping mechanism for RTP media streams that can be used to specify relations between media streams. This mechanism is used to signal the association between the SDP concept of "media description" and the WebRTC concept of "MediaStream" / "MediaStreamTrack" using SDP signaling. This document is a work item of the MMUSIC WG, whose discussion list is mmusic@ietf.org.RTP Payload Format RestrictionsIn this specification, we define a framework for specifying restrictions on RTP streams in the Session Description Protocol. This framework defines a new "rid" SDP attribute to unambiguously identify the RTP Streams within a RTP Session and restrict the streams' payload format parameters in a codec-agnostic way beyond what is provided with the regular Payload Types. This specification updates RFC4855 to give additional guidance on choice of Format Parameter (fmtp) names, and on their relation to the restrictions defined by this document.Architectural Considerations for a New Generation of ProtocolsIEEE Computer Communications Review, Vol. 20(4)This section documents a number of reasons why using the payload type
as a multiplexing point for most things related to multiple streams is
unsuitable. If one attempts to use Payload type multiplexing beyond it's
defined usage, that has well known negative effects on RTP. To use
Payload type as the single discriminator for multiple streams implies
that all the different media streams are being sent with the same SSRC,
thus using the same timestamp and sequence number space. This has many
effects:Putting restraint on RTP timestamp rate for the multiplexed
media. For example, media streams that use different RTP timestamp
rates cannot be combined, as the timestamp values need to be
consistent across all multiplexed media frames. Thus streams are
forced to use the same rate. When this is not possible, Payload Type
multiplexing cannot be used.Many RTP payload formats can fragment a media object over
multiple packets, like parts of a video frame. These payload formats
need to determine the order of the fragments to correctly decode
them. Thus it is important to ensure that all fragments related to a
frame or a similar media object are transmitted in sequence and
without interruptions within the object. This can relatively simple
be solved on the sender side by ensuring that the fragments of each
media stream are sent in sequence.Some media formats require uninterrupted sequence number space
between media parts. These are media formats where any missing RTP
sequence number will result in decoding failure or invoking of a
repair mechanism within a single media context.
The text/T140 payload format is an example of
such a format. These formats will need a sequence numbering
abstraction function between RTP and the individual media stream
before being used with Payload Type multiplexing.Sending multiple streams in the same sequence number space makes
it impossible to determine which Payload Type and thus which stream
a packet loss relates to.If RTP Retransmission is used and
there is a loss, it is possible to ask for the missing packet(s) by
SSRC and sequence number, not by Payload Type. If only some of the
Payload Type multiplexed streams are of interest, there is no way of
telling which missing packet(s) belong to the interesting stream(s)
and all lost packets need be requested, wasting bandwidth.The current RTCP feedback mechanisms are built around providing
feedback on media streams based on stream ID (SSRC), packet
(sequence numbers) and time interval (RTP Timestamps). There is
almost never a field to indicate which Payload Type is reported, so
sending feedback for a specific media stream is difficult without
extending existing RTCP reporting.The current RTCP media control messages specification
is oriented around controlling particular media flows, i.e. requests
are done addressing a particular SSRC. Such mechanisms would need to
be redefined to support Payload Type multiplexing.The number of payload types are inherently limited. Accordingly,
using Payload Type multiplexing limits the number of streams that
can be multiplexed and does not scale. This limitation is
exacerbated if one uses solutions like
RTP and RTCP multiplexing where a number of payload
types are blocked due to the overlap between RTP and RTCP.At times, there is a need to group multiplexed streams and this
is currently possible for RTP Sessions and for SSRC, but there is no
defined way to group Payload Types.It is currently not possible to signal bandwidth requirements per
media stream when using Payload Type Multiplexing.Most existing SDP media level attributes cannot be applied on a
per Payload Type level and would require re-definition in that
context.A legacy endpoint that does not understand the indication that
different RTP payload types are different media streams might be
slightly confused by the large amount of possibly overlapping or
identically defined RTP Payload Types.Signalling is not an architectural consideration for RTP itself, so
this discussion has been moved to an appendix. However, it is hugely
important for anyone building complete applications, so it is deserving
of discussion.The issues raised here need to be addressed in the WGs that deal with
signalling; they cannot be addressed by tweaking, extending or profiling
RTP.There exist various signalling solutions for establishing RTP
sessions. Many are SDP based, however SDP functionality is
also dependent on the signalling protocols carrying the
SDP. Where RTSP and SAP both use SDP in a
declarative fashion, while SIP uses SDP with the
additional definition of Offer/Answer. The impact on
signalling and especially SDP needs to be considered as it can greatly
affect how to deploy a certain multiplexing point choice.One aspect of the existing signalling is that it is focused
around sessions, or at least in the case of SDP the media
description. There are a number of things that are signalled on a
session level/media description but those are not necessarily
strictly bound to an RTP session and could be of interest to signal
specifically for a particular media stream (SSRC) within the
session. The following properties have been identified as being
potentially useful to signal not only on RTP session level:Bitrate/Bandwidth exist today only at aggregate or a common
any media stream limit, unless either codec-specific bandwidth
limiting or RTCP signalling using TMMBR is used.Which SSRC that will use which RTP Payload Types (this will
be visible from the first media packet, but is sometimes useful
to know before packet arrival).Some of these issues are clearly SDP's problem rather than RTP
limitations. However, if the aim is to deploy an solution using
additional SSRCs that contains several sets of media streams with
different properties (encoding/packetization parameter, bit-rate,
etc.), putting each set in a different RTP session would directly
enable negotiation of the parameters for each set. If insisting on
additional SSRC only, a number of signalling extensions are needed
to clarify that there are multiple sets of media streams with
different properties and that they need in fact be kept different,
since a single set will not satisfy the application's
requirements.For some parameters, such as resolution and framerate, a
SSRC-linked mechanism has been proposed: .SDP chose to use the m= line both to delineate an RTP session and
to specify the top level of the MIME media type; audio, video, text,
image, application. This media type is used as the top-level media
type for identifying the actual payload format bound to a particular
payload type using the rtpmap attribute. This binding has to be
loosened in order to use SDP to describe RTP sessions containing
multiple MIME top level types.There is an accepted WG item in the MMUSIC WG to define how
multiple media lines describe a single underlying transport
and thus it becomes possible in SDP to define one RTP session with
media types having different MIME top level types.Media streams being transported in RTP has some particular usage
in an RTP application. This usage of the media stream is in many
applications so far implicitly signalled. For example, an
application might choose to take all incoming audio RTP streams, mix
them and play them out. However, in more advanced applications that
use multiple media streams there will be more than a single usage or
purpose among the set of media streams being sent or received. RTP
applications will need to signal this usage somehow. The signalling
used will have to identify the media streams affected by their
RTP-level identifiers, which means that they have to be identified
either by their session or by their SSRC + session.In some applications, the receiver cannot utilise the media
stream at all before it has received the signalling message
describing the media stream and its usage. In other applications,
there exists a default handling that is appropriate.If all media streams in an RTP session are to be treated in the
same way, identifying the session is enough. If SSRCs in a session
are to be treated differently, signalling needs to identify both the
session and the SSRC.If this signalling affects how any RTP central node, like an RTP
mixer or translator that selects, mixes or processes streams, treats
the streams, the node will also need to receive the same signalling
to know how to treat media streams with different usage in the right
fashion.