draft-westerlund-avtcore-multiplex-architecture-02.txt   draft-westerlund-avtcore-multiplex-architecture-03.txt 
Network Working Group M. Westerlund Network Working Group M. Westerlund
Internet-Draft B. Burman Internet-Draft B. Burman
Intended status: Informational Ericsson Intended status: Informational Ericsson
Expires: January 17, 2013 C. Perkins Expires: August 29, 2013 C. Perkins
University of Glasgow University of Glasgow
H. Alvestrand H. Alvestrand
Google Google
July 16, 2012 February 25, 2013
Guidelines for using the Multiplexing Features of RTP Guidelines for using the Multiplexing Features of RTP
draft-westerlund-avtcore-multiplex-architecture-02 draft-westerlund-avtcore-multiplex-architecture-03
Abstract Abstract
Real-time Transport Protocol (RTP) is a flexible protocol possible to Real-time Transport Protocol (RTP) is a flexible protocol possible to
use in a wide range of applications and network and system use in a wide range of applications and network and system
topologies. This flexibility and the implications of different topologies. This flexibility and the implications of different
choices should be understood by any application developer using RTP. choices should be understood by any application developer using RTP.
To facilitate that understanding, this document contains an in-depth To facilitate that understanding, this document contains an in-depth
discussion of the usage of RTP's multiplexing points; the RTP session discussion of the usage of RTP's multiplexing points; the RTP session
and the Synchronisation Source Identifier (SSRC). The document tries and the Synchronisation Source Identifier (SSRC). The document tries
skipping to change at page 1, line 42 skipping to change at page 1, line 42
Internet-Drafts are working documents of the Internet Engineering Internet-Drafts are working documents of the Internet Engineering
Task Force (IETF). Note that other groups may also distribute Task Force (IETF). Note that other groups may also distribute
working documents as Internet-Drafts. The list of current Internet- working documents as Internet-Drafts. The list of current Internet-
Drafts is at http://datatracker.ietf.org/drafts/current/. Drafts is at http://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months Internet-Drafts are draft documents valid for a maximum of six months
and may be updated, replaced, or obsoleted by other documents at any and may be updated, replaced, or obsoleted by other documents at any
time. It is inappropriate to use Internet-Drafts as reference time. It is inappropriate to use Internet-Drafts as reference
material or to cite them other than as "work in progress." material or to cite them other than as "work in progress."
This Internet-Draft will expire on January 17, 2013. This Internet-Draft will expire on August 29, 2013.
Copyright Notice Copyright Notice
Copyright (c) 2012 IETF Trust and the persons identified as the Copyright (c) 2013 IETF Trust and the persons identified as the
document authors. All rights reserved. document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents Provisions Relating to IETF Documents
(http://trustee.ietf.org/license-info) in effect on the date of (http://trustee.ietf.org/license-info) in effect on the date of
publication of this document. Please review these documents publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must to this document. Code Components extracted from this document must
include Simplified BSD License text as described in Section 4.e of include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as the Trust Legal Provisions and are provided without warranty as
skipping to change at page 2, line 27 skipping to change at page 2, line 27
2.1. Terminology . . . . . . . . . . . . . . . . . . . . . . . 5 2.1. Terminology . . . . . . . . . . . . . . . . . . . . . . . 5
2.2. Subjects Out of Scope . . . . . . . . . . . . . . . . . . 7 2.2. Subjects Out of Scope . . . . . . . . . . . . . . . . . . 7
3. RTP Concepts . . . . . . . . . . . . . . . . . . . . . . . . . 7 3. RTP Concepts . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.1. Session . . . . . . . . . . . . . . . . . . . . . . . . . 7 3.1. Session . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.2. SSRC . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3.2. SSRC . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.3. CSRC . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.3. CSRC . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.4. Payload Type . . . . . . . . . . . . . . . . . . . . . . . 10 3.4. Payload Type . . . . . . . . . . . . . . . . . . . . . . . 10
4. Multiple Streams Alternatives . . . . . . . . . . . . . . . . 12 4. Multiple Streams Alternatives . . . . . . . . . . . . . . . . 12
5. RTP Topologies and Issues . . . . . . . . . . . . . . . . . . 13 5. RTP Topologies and Issues . . . . . . . . . . . . . . . . . . 13
5.1. Point to Point . . . . . . . . . . . . . . . . . . . . . . 13 5.1. Point to Point . . . . . . . . . . . . . . . . . . . . . . 13
5.1.1. Translators & Gateways . . . . . . . . . . . . . . . . 14 5.2. Translators & Gateways . . . . . . . . . . . . . . . . . . 13
5.2. Point to Multipoint Using Multicast . . . . . . . . . . . 15 5.3. Point to Multipoint Using Multicast . . . . . . . . . . . 14
5.3. Point to Multipoint Using an RTP Transport Translator . . 17 5.4. Point to Multipoint Using an RTP Transport Translator . . 15
5.4. Point to Multipoint Using an RTP Mixer . . . . . . . . . . 18 5.5. Point to Multipoint Using an RTP Mixer . . . . . . . . . . 15
5.4.1. Media Mixing . . . . . . . . . . . . . . . . . . . . . 19 6. Multiple Streams Discussion . . . . . . . . . . . . . . . . . 16
5.4.2. Media Switching . . . . . . . . . . . . . . . . . . . 22 6.1. Introduction . . . . . . . . . . . . . . . . . . . . . . . 16
5.4.3. RTP Source Projecting . . . . . . . . . . . . . . . . 24 6.2. RTP/RTCP Aspects . . . . . . . . . . . . . . . . . . . . . 16
5.5. Point to Multipoint using Multiple Unicast flows . . . . . 26 6.2.1. The RTP Specification . . . . . . . . . . . . . . . . 16
5.6. De-composite Endpoint . . . . . . . . . . . . . . . . . . 27 6.2.2. Multiple SSRCs in a Session . . . . . . . . . . . . . 19
6. Multiple Streams Discussion . . . . . . . . . . . . . . . . . 28 6.2.3. Handling Varying Sets of Senders . . . . . . . . . . . 19
6.1. Introduction . . . . . . . . . . . . . . . . . . . . . . . 28 6.2.4. Cross Session RTCP Requests . . . . . . . . . . . . . 19
6.2. RTP/RTCP Aspects . . . . . . . . . . . . . . . . . . . . . 28 6.2.5. Binding Related Sources . . . . . . . . . . . . . . . 20
6.2.1. The RTP Specification . . . . . . . . . . . . . . . . 29 6.2.6. Forward Error Correction . . . . . . . . . . . . . . . 21
6.2.2. Multiple SSRCs in a Session . . . . . . . . . . . . . 31 6.2.7. Transport Translator Sessions . . . . . . . . . . . . 22
6.2.3. Handling Varying sets of Senders . . . . . . . . . . . 32 6.3. Interworking . . . . . . . . . . . . . . . . . . . . . . . 22
6.2.4. Cross Session RTCP Requests . . . . . . . . . . . . . 32 6.3.1. Types of Interworking . . . . . . . . . . . . . . . . 22
6.2.5. Binding Related Sources . . . . . . . . . . . . . . . 33 6.3.2. RTP Translator Interworking . . . . . . . . . . . . . 23
6.2.6. Forward Error Correction . . . . . . . . . . . . . . . 35 6.3.3. Gateway Interworking . . . . . . . . . . . . . . . . . 23
6.2.7. Transport Translator Sessions . . . . . . . . . . . . 36 6.3.4. Multiple SSRC Legacy Considerations . . . . . . . . . 24
6.3. Interworking . . . . . . . . . . . . . . . . . . . . . . . 36 6.4. Network Aspects . . . . . . . . . . . . . . . . . . . . . 25
6.3.1. Types of Interworking . . . . . . . . . . . . . . . . 36 6.4.1. Quality of Service . . . . . . . . . . . . . . . . . . 25
6.3.2. RTP Translator Interworking . . . . . . . . . . . . . 36 6.4.2. NAT and Firewall Traversal . . . . . . . . . . . . . . 25
6.3.3. Gateway Interworking . . . . . . . . . . . . . . . . . 37 6.4.3. Multicast . . . . . . . . . . . . . . . . . . . . . . 27
6.3.4. Multiple SSRC Legacy Considerations . . . . . . . . . 38
6.4. Network Aspects . . . . . . . . . . . . . . . . . . . . . 38
6.4.1. Quality of Service . . . . . . . . . . . . . . . . . . 39
6.4.2. NAT and Firewall Traversal . . . . . . . . . . . . . . 39
6.4.3. Multicast . . . . . . . . . . . . . . . . . . . . . . 41
6.4.4. Multiplexing multiple RTP Session on a Single 6.4.4. Multiplexing multiple RTP Session on a Single
Transport . . . . . . . . . . . . . . . . . . . . . . 41 Transport . . . . . . . . . . . . . . . . . . . . . . 28
6.5. Security Aspects . . . . . . . . . . . . . . . . . . . . . 42 6.5. Security Aspects . . . . . . . . . . . . . . . . . . . . . 28
6.5.1. Security Context Scope . . . . . . . . . . . . . . . . 42 6.5.1. Security Context Scope . . . . . . . . . . . . . . . . 28
6.5.2. Key Management for Multi-party session . . . . . . . . 42 6.5.2. Key Management for Multi-party session . . . . . . . . 29
6.5.3. Complexity Implications . . . . . . . . . . . . . . . 43 6.5.3. Complexity Implications . . . . . . . . . . . . . . . 29
7. Arch-Types . . . . . . . . . . . . . . . . . . . . . . . . . . 43 7. Arch-Types . . . . . . . . . . . . . . . . . . . . . . . . . . 29
7.1. Single SSRC per Session . . . . . . . . . . . . . . . . . 43 7.1. Single SSRC per Session . . . . . . . . . . . . . . . . . 30
7.2. Multiple SSRCs of the Same Media Type . . . . . . . . . . 45 7.2. Multiple SSRCs of the Same Media Type . . . . . . . . . . 31
7.3. Multiple Sessions for one Media type . . . . . . . . . . . 46 7.3. Multiple Sessions for one Media type . . . . . . . . . . . 33
7.4. Multiple Media Types in one Session . . . . . . . . . . . 48 7.4. Multiple Media Types in one Session . . . . . . . . . . . 34
7.5. Summary . . . . . . . . . . . . . . . . . . . . . . . . . 49 7.5. Summary . . . . . . . . . . . . . . . . . . . . . . . . . 35
8. Summary considerations and guidelines . . . . . . . . . . . . 50 8. Summary considerations and guidelines . . . . . . . . . . . . 36
8.1. Guidelines . . . . . . . . . . . . . . . . . . . . . . . . 50 8.1. Guidelines . . . . . . . . . . . . . . . . . . . . . . . . 36
9. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 51 9. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 37
10. Security Considerations . . . . . . . . . . . . . . . . . . . 51 10. Security Considerations . . . . . . . . . . . . . . . . . . . 37
11. References . . . . . . . . . . . . . . . . . . . . . . . . . . 51 11. References . . . . . . . . . . . . . . . . . . . . . . . . . . 37
11.1. Normative References . . . . . . . . . . . . . . . . . . . 51 11.1. Normative References . . . . . . . . . . . . . . . . . . . 37
11.2. Informative References . . . . . . . . . . . . . . . . . . 51 11.2. Informative References . . . . . . . . . . . . . . . . . . 38
Appendix A. Dismissing Payload Type Multiplexing . . . . . . . . 55 Appendix A. Dismissing Payload Type Multiplexing . . . . . . . . 42
Appendix B. Proposals for Future Work . . . . . . . . . . . . . . 57 Appendix B. Proposals for Future Work . . . . . . . . . . . . . . 43
Appendix C. RTP Specification Clarifications . . . . . . . . . . 57 Appendix C. RTP Specification Clarifications . . . . . . . . . . 44
C.1. RTCP Reporting from all SSRCs . . . . . . . . . . . . . . 58 C.1. RTCP Reporting from all SSRCs . . . . . . . . . . . . . . 44
C.2. RTCP Self-reporting . . . . . . . . . . . . . . . . . . . 58 C.2. RTCP Self-reporting . . . . . . . . . . . . . . . . . . . 45
C.3. Combined RTCP Packets . . . . . . . . . . . . . . . . . . 58 C.3. Combined RTCP Packets . . . . . . . . . . . . . . . . . . 45
Appendix D. Signalling considerations . . . . . . . . . . . . . . 58 Appendix D. Signalling considerations . . . . . . . . . . . . . . 45
D.1. Signalling Aspects . . . . . . . . . . . . . . . . . . . . 59 D.1. Signalling Aspects . . . . . . . . . . . . . . . . . . . . 45
D.1.1. Session Oriented Properties . . . . . . . . . . . . . 59 D.1.1. Session Oriented Properties . . . . . . . . . . . . . 46
D.1.2. SDP Prevents Multiple Media Types . . . . . . . . . . 60 D.1.2. SDP Prevents Multiple Media Types . . . . . . . . . . 46
D.1.3. Signalling Media Stream Usage . . . . . . . . . . . . 60 D.1.3. Signalling Media Stream Usage . . . . . . . . . . . . 47
Appendix E. Changes from -01 to -02 . . . . . . . . . . . . . . . 61 Appendix E. Changes from -01 to -02 . . . . . . . . . . . . . . . 47
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . . 61 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . . 48
1. Introduction 1. Introduction
Real-time Transport Protocol (RTP) [RFC3550] is a commonly used Real-time Transport Protocol (RTP) [RFC3550] is a commonly used
protocol for real-time media transport. It is a protocol that protocol for real-time media transport. It is a protocol that
provides great flexibility and can support a large set of different provides great flexibility and can support a large set of different
applications. RTP has several multiplexing points designed for applications. RTP has several multiplexing points designed for
different purposes. These enable support of multiple media streams different purposes. These enable support of multiple media streams
and switching between different encoding or packetization of the and switching between different encoding or packetization of the
media. By using multiple RTP sessions, sets of media streams can be media. By using multiple RTP sessions, sets of media streams can be
skipping to change at page 6, line 12 skipping to change at page 6, line 12
media are Identified using one or more SSRCs. There may be more media are Identified using one or more SSRCs. There may be more
than one Media Sink for one RTP source. than one Media Sink for one RTP source.
CNAME: "Canonical name" - identifier associated with one or more RTP CNAME: "Canonical name" - identifier associated with one or more RTP
sources from a single endpoint. Defined in the RTP specification sources from a single endpoint. Defined in the RTP specification
[RFC3550]. A CNAME identifies a synchronisation context. A CNAME [RFC3550]. A CNAME identifies a synchronisation context. A CNAME
is associated with a single endpoint, although some RTP nodes will is associated with a single endpoint, although some RTP nodes will
use an end-points CNAME on that end-points behalf. An endpoint use an end-points CNAME on that end-points behalf. An endpoint
may use multiple CNAMEs. A CNAME is intended to be globally may use multiple CNAMEs. A CNAME is intended to be globally
unique and stable for the full duration of a communication unique and stable for the full duration of a communication
session. [RFC6222] gives updated guidelines for choosing CNAMEs. session. [RFC6222][I-D.ietf-avtcore-6222bis] gives updated
guidelines for choosing CNAMEs.
Media Type: Audio, video, text or data whose form and meaning are Media Type: Audio, video, text or data whose form and meaning are
defined by a specific real-time application. defined by a specific real-time application.
Multiplex: The operation of taking multiple entities as input, Multiplex: The operation of taking multiple entities as input,
aggregating them onto some common resource while keeping the aggregating them onto some common resource while keeping the
individual entities addressable such that they can later be fully individual entities addressable such that they can later be fully
and unambiguously separated (de-multiplexed) again. and unambiguously separated (de-multiplexed) again.
RTP Session: As defined by [RFC3550], the endpoints belonging to the RTP Session: As defined by [RFC3550], the endpoints belonging to the
skipping to change at page 7, line 8 skipping to change at page 7, line 8
Source. Source.
CSRC: Contributing Source, A SSRC identifier used in a context, like CSRC: Contributing Source, A SSRC identifier used in a context, like
the RTP headers CSRC list, where it is clear that the Media Source the RTP headers CSRC list, where it is clear that the Media Source
is not the source of the media stream, instead only a contributor is not the source of the media stream, instead only a contributor
to the Media Stream. to the Media Stream.
Signalling: The process of configuring endpoints to participate in Signalling: The process of configuring endpoints to participate in
one or more RTP sessions. one or more RTP sessions.
(tbd: The terms "SSRC multiplexing" and "session multiplexing" are
confusing, with unclear historical meanings; they need to be removed
from this document in the interests of clarity)
2.2. Subjects Out of Scope 2.2. Subjects Out of Scope
This document is focused on issues that affect RTP. Thus, issues This document is focused on issues that affect RTP. Thus, issues
that involve signalling protocols, such as whether SIP, Jingle or that involve signalling protocols, such as whether SIP, Jingle or
some other protocol is in use for session configuration, the some other protocol is in use for session configuration, the
particular syntaxes used to define RTP session properties, or the particular syntaxes used to define RTP session properties, or the
constraints imposed by particular choices in the signalling constraints imposed by particular choices in the signalling
protocols, are mentioned only as examples in order to describe the protocols, are mentioned only as examples in order to describe the
RTP issues more precisely. RTP issues more precisely.
skipping to change at page 8, line 44 skipping to change at page 8, line 39
participants' network interconnection topology, in combination with participants' network interconnection topology, in combination with
RTP and RTCP forwarding strategies deployed by endpoints and any RTP and RTCP forwarding strategies deployed by endpoints and any
interconnecting middle nodes. interconnecting middle nodes.
3.2. SSRC 3.2. SSRC
An SSRC identifies a RTP source or a media sink. For end-points that An SSRC identifies a RTP source or a media sink. For end-points that
both source and sink media streams its SSRCs are used in both roles. both source and sink media streams its SSRCs are used in both roles.
At any given time, a RTP source has one and only one SSRC - although At any given time, a RTP source has one and only one SSRC - although
that may change over the lifetime of the RTP source or sink. An RTP that may change over the lifetime of the RTP source or sink. An RTP
Session serves one or more RTP sources, each sending a Media Stream. Session serves one or more RTP sources.
Identifier: Synchronisation Source (SSRC), 32-bit unsigned number. Identifier: Synchronisation Source (SSRC), 32-bit unsigned number.
Position: In every RTP and RTCP packet header. May be present in Position: In every RTP and RTCP packet header. May be present in
RTCP payload. May be present in SDP signalling. RTCP payload. May be present in SDP signalling.
Usage: Identify individual RTP sources and media sinks within an Usage: Identify individual RTP sources and media sinks within an
RTP Session. Refer to individual RTP sources and media sinks RTP Session. Refer to individual RTP sources and media sinks
in RTCP messages and SDP signalling. in RTCP messages and SDP signalling.
skipping to change at page 9, line 36 skipping to change at page 9, line 32
Special Restrictions: All RTP implementations must be prepared to Special Restrictions: All RTP implementations must be prepared to
use procedures for SSRC collision handling, which results in an use procedures for SSRC collision handling, which results in an
SSRC number change. A RTP source that changes its RTP Session SSRC number change. A RTP source that changes its RTP Session
identifier (e.g. source transport address) during a session must identifier (e.g. source transport address) during a session must
also choose a new SSRC identifier to avoid being interpreted as also choose a new SSRC identifier to avoid being interpreted as
looped source. looped source.
Note that RTP sequence number and RTP timestamp are scoped by SSRC Note that RTP sequence number and RTP timestamp are scoped by SSRC
and thus independent between different SSRCs. and thus independent between different SSRCs.
A RTP source having an SSRC identifier can be of different types: An SSRC identifier is used by different type of sources as well as
sinks:
Real: Connected to a "physical" media source, for example a camera Real Media Source: Connected to a "physical" media source, for
or microphone. example a camera or microphone.
Conceptual: A source with some attributed property generated by some Conceptual Media Source: A source with some attributed property
network node, for example a filtering function in an RTP mixer generated by some network node, for example a filtering function
that provides the most active speaker based on some criteria, or a in an RTP mixer that provides the most active speaker based on
mix representing a set of other sources. some criteria, or a mix representing a set of other sources.
Media Sink: A source that does not generate any RTP media stream in Media Sink: A source that does not generate any RTP media stream in
itself (e.g. an endpoint only receiving in an RTP session), but itself (e.g. an endpoint or middlebox only receiving in an RTP
anyway need a sender SSRC for use as source in RTCP reports. session), but anyway need a sender SSRC for use as source in RTCP
reports.
Note that a endpoint that generates more than one media type, e.g. a Note that a endpoint that generates more than one media type, e.g. a
conference participant sending both audio and video, need not (and conference participant sending both audio and video, need not (and
commonly should not) use the same SSRC value across RTP sessions. commonly should not) use the same SSRC value across RTP sessions.
RTCP Compound packets containing the CNAME SDES item is the RTCP Compound packets containing the CNAME SDES item is the
designated method to bind an SSRC to a CNAME, effectively cross- designated method to bind an SSRC to a CNAME, effectively cross-
correlating SSRCs within and between RTP Sessions as coming from the correlating SSRCs within and between RTP Sessions as coming from the
same endpoint. The main property attributed to SSRCs associated with same endpoint. The main property attributed to SSRCs associated with
the same CNAME is that they are from a particular synchronisation the same CNAME is that they are from a particular synchronisation
context and may be synchronised at playback. context and may be synchronised at playback.
Note also that RTP sequence number and RTP timestamp are scoped by
SSRC and thus independent between different SSRCs.
An RTP receiver receiving a previously unseen SSRC value must An RTP receiver receiving a previously unseen SSRC value must
interpret it as a new source. It may in fact be a previously interpret it as a new source. It may in fact be a previously
existing source that had to change SSRC number due to an SSRC existing source that had to change SSRC number due to an SSRC
conflict. However, the originator of the previous SSRC should have conflict. However, the originator of the previous SSRC should have
ended the conflicting source by sending an RTCP BYE for it prior to 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 starting to send with the new SSRC, so the new SSRC is anyway
effectively a new source. effectively a new source.
3.3. CSRC 3.3. CSRC
skipping to change at page 10, line 38 skipping to change at page 10, line 32
SSRC number space and specifies which set of SSRCs that has SSRC number space and specifies which set of SSRCs that has
contributed to the RTP payload. However, even though each RTP packet contributed to the RTP payload. However, even though each RTP packet
and SSRC can be tagged with the contained CSRCs, the media and SSRC can be tagged with the contained CSRCs, the media
representation of an individual CSRC is in general not possible to representation of an individual CSRC is in general not possible to
extract from the RTP payload since it is typically the result of a extract from the RTP payload since it is typically the result of a
media mixing (merge) operation (by an RTP mixer) on the individual media mixing (merge) operation (by an RTP mixer) on the individual
media streams corresponding to the CSRC identifiers. The exception media streams corresponding to the CSRC identifiers. The exception
is the case when only a single CSRC is indicated as this represent is the case when only a single CSRC is indicated as this represent
forwarding of a media stream, possibly modified. The RTP header forwarding of a media stream, possibly modified. The RTP header
extension for Mixer-to-Client Audio Level Indication [RFC6465] extension for Mixer-to-Client Audio Level Indication [RFC6465]
expands on the receivers information about a packet with CSRC list. expands on the receivers information about a packet with a CSRC list.
Due to these restrictions, CSRC will not be considered a fully Due to these restrictions, CSRC will not be considered a fully
qualified multiplex point and will be disregarded in the rest of this qualified multiplex point and will be disregarded in the rest of this
document. document.
3.4. Payload Type 3.4. Payload Type
Each Media Stream utilises one or more encoding formats, identified Each Media Stream utilises one or more encoding formats, identified
by the Payload Type. by the Payload Type.
The Payload Type is not a multiplexing point. Appendix A gives some The Payload Type is not a multiplexing point. Appendix A gives some
of the many reasons why attempting to use it as a multiplexing point of the many reasons why attempting to use it as a multiplexing point
will have bad results. will have bad results.
Identifier: Payload Type number. Identifier: Payload Type number.
Position: In every RTP header and in SDP signalling. Position: In every RTP header and in signalling.
Usage: Identify a specific Media Stream encoding format. The Usage: Identify a specific Media Stream encoding format. The
format definition may be taken from [RFC3551] for statically format definition may be taken from [RFC3551] for statically
allocated Payload Types, but should be explicitly defined in allocated Payload Types, but should be explicitly defined in
signalling, such as SDP, both for static and dynamic Payload signalling, such as SDP, both for static and dynamic Payload
Types. The term "format" here includes whatever can be Types. The term "format" here includes whatever can be
described by out-of-band signalling means. In SDP, the term described by out-of-band signalling means. In SDP, the term
"format" includes media type, RTP timestamp sampling rate, "format" includes media type, RTP timestamp sampling rate,
codec, codec configuration, payload format configurations, and codec, codec configuration, payload format configurations, and
various robustness mechanisms such as redundant encodings various robustness mechanisms such as redundant encodings
skipping to change at page 11, line 41 skipping to change at page 11, line 37
[RFC3389]. [RFC3389].
Inter-relation: There are some uses where Payload Type numbers Inter-relation: There are some uses where Payload Type numbers
need to be unique across RTP Sessions. This is for example the need to be unique across RTP Sessions. This is for example the
case in Media Decoding Dependency [RFC5583] where Payload Types case in Media Decoding Dependency [RFC5583] where Payload Types
are used to describe media dependency across RTP Sessions. are used to describe media dependency across RTP Sessions.
Another example is session-based RTP retransmission [RFC4588]. Another example is session-based RTP retransmission [RFC4588].
Special Restrictions: Using different RTP timestamp clock rates for Special Restrictions: Using different RTP timestamp clock rates for
the RTP Payload Types in use in the same RTP Session have issues the RTP Payload Types in use in the same RTP Session have issues
such as loss of synchronisation. Payload Type clock rate such as potential for loss of synchronisation. Payload Type clock
switching requires some special consideration that is described in rate switching requires some special consideration that is
the multiple clock rates specification described in the multiple clock rates specification
[I-D.ietf-avtext-multiple-clock-rates]. [I-D.ietf-avtext-multiple-clock-rates].
If there is a true need to send multiple Payload Types for the same If there is a true need to send multiple Payload Types for the same
SSRC that are valid for the same RTP Timestamps, then redundant SSRC that are valid for the same RTP Timestamps, then redundant
encodings [RFC2198] can be used. Several additional constraints than encodings [RFC2198] can be used. Several additional constraints than
the ones mentioned above need to be met to enable this use, one of 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 which is that the combined payload sizes of the different Payload
Types must not exceed the transport MTU. Types must not exceed the transport MTU.
Other aspects of RTP payload format use are described in RTP Payload Other aspects of RTP payload format use are described in RTP Payload
skipping to change at page 12, line 44 skipping to change at page 12, line 41
different levels of maturity in the discussion on how to solve them. different levels of maturity in the discussion on how to solve them.
The clearest understanding is associated with multiple media sources The clearest understanding is associated with multiple media sources
of the same media type. However, all warrant discussion and of the same media type. However, all warrant discussion and
clarification on how to deal with them. clarification on how to deal with them.
This section reviews the alternatives to enable multi-stream This section reviews the alternatives to enable multi-stream
handling. Let's start with describing mechanisms that could enable handling. Let's start with describing mechanisms that could enable
multiple media streams, independent of the purpose for having multiple media streams, independent of the purpose for having
multiple streams. multiple streams.
SSRC Multiplexing: Each additional Media Stream gets its own SSRC Additional SSRC: Each additional Media Stream gets its own SSRC
within a RTP Session. within a RTP Session.
Session Multiplexing: Using additional RTP Sessions to handle Multiple RTP Sessions: Using additional RTP Sessions to handle
additional Media Streams additional Media Streams.
As the below discussion will show, in reality we cannot choose a As the below discussion will show, in reality we cannot choose a
single one of the two solutions. To utilise RTP well and as single one of the two solutions. To utilise RTP well and as
efficiently as possible, both are needed. The real issue is finding efficiently as possible, both are needed. The real issue is finding
the right guidance on when to create RTP sessions and when additional the right guidance on when to create RTP sessions and when additional
SSRCs in an RTP session is the right choice. SSRCs in an RTP session is the right choice.
5. RTP Topologies and Issues 5. RTP Topologies and Issues
The impact of how RTP Multiplex is performed will in general vary The impact of how RTP Multiplex is performed will in general vary
with how the RTP Session participants are interconnected; the RTP with how the RTP Session participants are interconnected, described
Topology [RFC5117]. This section describes the topologies and by RTP Topology [RFC5117] and its intended successor
attempts to highlight the important behaviours concerning RTP [I-D.westerlund-avtcore-rtp-topologies-update].
multiplexing and multi-stream handling. It lists any identified
issues regarding RTP and RTCP handling, and introduces additional
topologies that are supported by RTP beyond those included in RTP
Topologies [RFC5117]. The RTP Topologies that do not follow the RTP
specification or do not attempt to utilise the facilities of RTP are
ignored in this document.
5.1. Point to Point 5.1. Point to Point
This is the most basic use case with two endpoints directly Even the most basic use case, denoted Topo-Point-to-Point in
interconnected and no additional entities are involved in the [I-D.westerlund-avtcore-rtp-topologies-update], raises a number of
communication. considerations that are discussed in detail below (Section 6). They
range over such aspects as:
+---+ +---+
| A |<------->| B |
+---+ +---+
Figure 1: Point to Point
A number of applications are using a single RTP session with one RTP
source per endpoint. This is likely the simplest case, as you
basically doesn't have to make any choices regarding multiplexing.
When you add an additional source to either endpoint you immediately
create the question do one send the media stream in the existing RTP
session or should I use an additional RTP session.
This raises a number of considerations that are discussed in detail
below (Section 6). But the range over such aspects as:
o Does my communication peer support RTP as defined with multiple o Does my communication peer support RTP as defined with multiple
SSRCs? SSRCs?
o Do I need network differentiation in form of QoS? o Do I need network differentiation in form of QoS?
o Can the application more easily process and handle the media o Can the application more easily process and handle the media
streams if they are in different RTP sessions? streams if they are in different RTP sessions?
o Do I need to use additional media streams for RTP retransmission
or FEC.
o etc. o etc.
The application designer will have to make choices here. The point The application designer will have to make choices here. The point
to point topology can contain one to many RTP sessions with one to to point topology can contain one to many RTP sessions with one to
many RTP sources (SSRC) per session. many media sources per session, resulting in one or more RTP source
(SSRC) per media source.
5.1.1. Translators & Gateways 5.2. Translators & Gateways
A point to point communication can end up in a situation when the A point to point communication can end up in a situation when the
peer it is communicating with is not compatible with the other peer peer it is communicating with is not compatible with the other peer
for various reasons. This is in many situation resolved by the for various reasons:
inclusion of a translator in-between the two peers.
+---+ +---+ +---+ o No common media codec for a media type thus requiring transcoding
| A |<------>| T |<------->| B |
+---+ +---+ +---+
Point to Point with Translator o Different support for multiple RTP sources and RTP sessions
The translator main purpose is to make the peer look to the other o Usage of different media transport protocols, i.e RTP or other.
peer like something it is compatible with. An RTP translator will
commonly not be distinguishable from the actual end-point. It is
intentional not identifiable on RTP level. Reasons a translator can
be required are:
o No common media codec for a media type thus requiring transcoding. o Usage of different transport protocols, e.g. UDP, DCCP, TCP
o Different usages of the RTP multiplexing points o Different security solutions, e.g. IPsec, TLS, DTLS, SRTP with
different keying mechanisms.
o Usage of different media transport protocols This is in many situations resolved by the inclusion of a translator
in-between the two peers, as described by Topo-PtP-Translator in
[I-D.westerlund-avtcore-rtp-topologies-update]. The translator's
main purpose is to make the peer look to the other peer like
something it is compatible with. There may 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.
o Usage of different transport protocols 5.3. Point to Multipoint Using Multicast
o Different security solutions
The RTP translator will rewrite RTP and RTCP as required to provide a
consistent view to each peer of the traffic the translator forwards
and the feedback being provided back to the RTP source.
In some case security policies or the need for monitoring the media
streams the direct communication are directed to a pass through a
specific middlebox, commonly called a gateway. This is often placed
on the border of administrative domain where the security policies
are in effect. Many gateways simple relay the RTP and RTCP traffic
between the domains, but some may do more by including above
mentioned translator functions or even go as far as terminating the
RTP session and do application level forwarding of the media traffic.
The later places requirements on the gateway to have full
understanding of the application logic and especially be able to cope
with any congestion control or media adaptation.
A variant of translator behaviour worth pointing out is when an
endpoint A sends a media flow to B. On the path there is a device T
that on A's behalf does something with the media streams, for example
adds an RTP session with FEC information for A's media streams. T
will in this case need to bind the new FEC streams to A's media
stream by using the same CNAME as A.
+------+ +------+ +------+
| | | | | |
| A |------->| T |-------->| B |
| | | |---FEC-->| |
+------+ +------+ +------+
Figure 2: When De-composition is a Translator
This type of functionality where T does something with the media
stream on behalf of A is clearly covered under the media translator
definition (Section 5.3).
5.2. Point to Multipoint Using Multicast
This section discusses the Point to Multi-point using Multicast to This section discusses the Point to Multi-point using Multicast to
interconnect the session participants. This needs to consider both interconnect the session participants. This includes both Topo-ASM
Any Source Multicast (ASM) and Source-Specific Multicast (SSM). and Topo-SSM in [I-D.westerlund-avtcore-rtp-topologies-update].
There are large commercial deployments of multicast for applications
like IPTV.
+-----+ Special considerations must be made as multicast is a one to many
+---+ / \ +---+ distribution system. For example, the only practical method for
| A |----/ \---| B |
+---+ / Multi- \ +---+
+ Cast +
+---+ \ Network / +---+
| C |----\ /---| D |
+---+ \ / +---+
+-----+
Figure 3: Point to Multipoint Using Any Source Multicast
In Any Source Multicast, any of the participants can send to all the
other participants, simply by sending a packet to the multicast
group. That is not possible in Source Specific Multicast [RFC4607]
where only a single source (Distribution Source) can send to the
multicast group, creating a topology that looks like the one below:
+--------+ +-----+
|Media | | | Source-specific
|Sender 1|<----->| D S | Multicast
+--------+ | I O | +--+----------------> R(1)
| S U | | | |
+--------+ | T R | | +-----------> R(2) |
|Media |<----->| R C |->+ | : | |
|Sender 2| | I E | | +------> R(n-1) | |
+--------+ | B | | | | | |
: | U | +--+--> R(n) | | |
: | T +-| | | | |
: | I | |<---------+ | | |
+--------+ | O |F|<---------------+ | |
|Media | | N |T|<--------------------+ |
|Sender M|<----->| | |<-------------------------+
+--------+ +-----+ RTCP Unicast
FT = Feedback Target
Transport from the Feedback Target to the Distribution
Source is via unicast or multicast RTCP if they are not
co-located.
Figure 4: Point to Multipoint using Source Specific Multicast
In the SSM topology (Figure 4) a number of RTP sources (1 to M) are
allowed to send media to the SSM group. These send media to the
distribution source which then forwards the media streams to the
multicast group. The media streams reach the Receivers (R(1) to
R(n)). The Receivers' RTCP cannot be sent to the multicast group.
To support RTCP, an RTP extension for SSM [RFC5760] was defined to
use unicast transmission to send RTCP from the receivers to one or
more Feedback Targets (FT).
As multicast is a one to many distribution system, this must be taken
into consideration. For example, the only practical method for
adapting the bit-rate sent towards a given receiver for large groups adapting the bit-rate sent towards a given receiver for large groups
is to use a set of multicast groups, where each multicast group is to use a set of multicast groups, where each multicast group
represents a particular bit-rate. Otherwise the whole group gets represents a particular bit-rate. Otherwise the whole group gets
media adapted to the participant with the worst conditions. The media adapted to the participant with the worst conditions. The
media encoding is either scalable, where multiple layers can be media encoding is either scalable, where multiple layers can be
combined, or simulcast where a single version is selected. By either combined, or simulcast where a single version is selected. By either
selecting or combing multicast groups, the receiver can control the selecting or combing multicast groups, the receiver can control the
bit-rate sent on the path to itself. It is also common that streams bit-rate sent on the path to itself. It is also common that streams
that improve transport robustness are sent in their own multicast that improve transport robustness are sent in their own multicast
group to allow for interworking with legacy or to support different group to allow for interworking with legacy or to support different
skipping to change at page 17, line 33 skipping to change at page 15, line 18
this property. The signalling aspects of multicast are not explored this property. The signalling aspects of multicast are not explored
further in this memo. further in this memo.
Security solutions for this type of group communications are also Security solutions for this type of group communications are also
challenging. First of all the key-management and the security challenging. First of all the key-management and the security
protocol must support group communication. Source authentication protocol must support group communication. Source authentication
becomes more difficult and requires special solutions. For more becomes more difficult and requires special solutions. For more
discussion on this please review Options for Securing RTP Sessions discussion on this please review Options for Securing RTP Sessions
[I-D.ietf-avtcore-rtp-security-options]. [I-D.ietf-avtcore-rtp-security-options].
5.3. Point to Multipoint Using an RTP Transport Translator 5.4. Point to Multipoint Using an RTP Transport Translator
This mode is described in section 3.3 of RFC 5117. This mode is described as Topo-Translator in
[I-D.westerlund-avtcore-rtp-topologies-update].
Transport Translators (Relays) result in an RTP session situation Transport Translators (Relays) result in an RTP session situation
that is very similar to how an ASM group RTP session would behave. that is very similar to how an ASM group RTP session would behave.
+---+ +------------+ +---+
| A |<---->| |<---->| B |
+---+ | | +---+
| Translator |
+---+ | | +---+
| C |<---->| |<---->| D |
+---+ +------------+ +---+
Figure 5: Transport Translator (Relay)
An RTP translator forwards both RTP and RTCP packets from all
participants to all other participants.
One of the most important aspects with the simple relay is that it is One of the most important aspects with the simple relay is that it is
only rewriting transport headers, no RTP modifications nor media only rewriting transport headers, no RTP modifications nor media
transcoding occur. The most obvious downside of this basic relaying transcoding occur. The most obvious downside of this basic relaying
is that the translator has no control over how many streams need to is that the translator has no control over how many streams need to
be delivered to a receiver. Nor can it simply select to deliver only be delivered to a receiver. Nor can it simply select to deliver only
certain streams, as this creates session inconsistencies: If the certain streams, as this creates session inconsistencies: If the
translator temporarily stops a stream, this prevents some receivers translator temporarily stops a stream, this prevents some receivers
from reporting on it. From the sender's perspective it will look from reporting on it. From the sender's perspective it will look
like a transport failure. Applications having needs to stop or like a transport failure. Applications having needs to stop or
switch streams in the central node should consider using an RTP mixer switch streams in the central node should consider using an RTP mixer
to avoid this issue. to avoid this issue.
The Transport Translator does not need to have an SSRC of itself, nor
does it need to send any RTCP reports on the flows that pass it.
This as the RTP source will receive feedback for the full path in the
RTCP being sent back. However the transport translator may choose to
send RTCP reports using its own SSRC, as if it itself contained a
media sink, in order to make information about the source-to-
translator link available to monitors.
Use of a transport translator results in that all the endpoints will
receive multiple SSRCs over a single unicast transport flow from the
translator. That is independent of whether the other endpoints have
only a single or several SSRCs.
The Transport Translator has the same signalling requirement as The Transport Translator has the same signalling requirement as
multicast: All participants must have the same payload type multicast: All participants must have the same payload type
configuration. Also most of the ASM security issues also arise here. configuration. Most of the ASM security issues also arise here.
Some alternative when it comes to solution do exist as there after Some alternative when it comes to solution do exist as there after
all exist a central node to communicate with. One that also can all exist a central node to communicate with. One that also can
enforce some security policies depending on the level of trust placed enforce some security policies depending on the level of trust placed
in the node. in the node.
5.4. Point to Multipoint Using an RTP Mixer 5.5. Point to Multipoint Using an RTP Mixer
An mixer (Figure 6) is a centralised node that selects or mixes A mixer, described by Topo-Mixer in
content in a conference to optimise the RTP session so that each [I-D.westerlund-avtcore-rtp-topologies-update], is a centralised node
endpoint only needs connect to one entity, the mixer. The mixer can that selects or mixes content in a conference to optimise the RTP
also reduce the bit-rate needed from the mixer down to a conference session so that each endpoint only needs connect to one entity, the
participants as the media sent from the mixer to the end-point can be mixer. The media sent from the mixer to the end-point can be
optimised in different ways. These optimisations include methods optimised in different ways. These optimisations include methods
like only choosing media from the currently most active speaker or like only choosing media from the currently most active speaker or
mixing together audio so that only one audio stream is required mixing together audio so that only one audio stream is required.
instead of three in the depicted scenario (Figure 6).
+---+ +------------+ +---+ Mixers have some downsides, the first is that the mixer must be a
| A |<---->| |<---->| B | trusted node as they either perform media operations or at least
+---+ | | +---+ repacketize the media. When using SRTP, both media operations and
| Mixer | repacketization requires that the mixer verifies integrity, decrypts
+---+ | | +---+ the content, performs the operation and forms new RTP packets,
| C |<---->| |<---->| D | encrypts and integrity-protects them. This applies to all types of
+---+ +------------+ +---+ mixers. The second downside is that all these operations and
optimisations of the session requires processing. How much depends
on the implementation, as will become evident below.
Figure 6: RTP Mixer
Mixers has some downsides, the first is that the mixer must be a
trusted node as they either performs media operations or at least
repacketize the media. Both type of operations requires when using
SRTP that the mixer verifies integrity, decrypts the content, perform
its operation and form new RTP packets, encrypts and integrity
protect them. This applies to all types of mixers described below.
The second downside is that all these operations and optimisation of
the session requires processing. How much depends on the
implementation as will become evident below.
A mixer, unlike a pure transport translator, is always application A mixer, unlike a pure transport translator, is always application
specific: the application logic for stream mixing or stream selection specific: the application logic for stream mixing or stream selection
has to be embedded within the mixer, and controlled using application has to be embedded within the mixer, and controlled using application
specific signalling. The implementation of an mixer can take several specific signalling. The implementation of a mixer can take several
different forms and we will discuss the main themes available that different forms and we will discuss the main themes available that
doesn't break RTP. doesn't break RTP.
Please note that a Mixer could also contain translator Please note that a Mixer could also contain translator
functionalities, like a media transcoder to adjust the media bit-rate functionalities, like a media transcoder to adjust the media bit-rate
or codec used on a particular RTP media stream. or codec used for a particular RTP media stream.
5.4.1. Media Mixing
This type of mixer is one which clearly can be called RTP mixer is
likely the one that most thinks of when they hear the term mixer.
Its basic pattern of operation is that it will receive the different
participants RTP media stream. Select which that are to be included
in a media domain mix of the incoming RTP media streams. Then create
a single outgoing stream from this mix.
The most commonly deployed media mixer is probably the audio mixer,
used in voice conferencing, where the output consists of some mixture
of all the input streams; this needs minimal signalling to be
successful. Audio mixing is straight forward and commonly possible
to do for a number of participants. Lets assume that you want to mix
N number of streams from different participants. Then the mixer need
to perform N decodings. Then it needs to produce N or N+1 mixes, the
reasons that different mixes are needed are so that each contributing
source get a mix which don't contain themselves, as this would result
in an echo. When N is lower than the number of all participants one
may produce a Mix of all N streams for the group that are currently
not included in the mix, thus N+1 mixes. These audio streams are
then encoded again, RTP packetised and sent out.
Video can't really be "mixed" and produce something particular useful
for the users, however creating an composition out of the contributed
video streams can be done. In fact it can be done in a number of
ways, tiling the different streams creating a chessboard, selecting
someone as more important and showing them large and a number of
other sources as smaller overlays is another. Also here one commonly
need to produce a number of different compositions so that the
contributing part doesn't need to see themselves. Then the mixer re-
encodes the created video stream, RTP packetise it and send it out
The problem with media mixing is that it both consume large amount of
media processing and encoding resources. The second is the quality
degradation created by decoding and re-encoding the RTP media stream.
Its advantage is that it is quite simplistic for the clients to
handle as they don't need to handle local mixing and composition.
+-A---------+ +-MIXER----------------------+
| +-RTP1----| |-RTP1------+ +-----+ |
| | +-Audio-| |-Audio---+ | +---+ | | |
| | | AA1|--------->|---------+-+-|DEC|->| | |
| | | |<---------|MA1 <----+ | +---+ | | |
| | | | |(BA1+CA1)|\| +---+ | | |
| | +-------| |---------+ +-|ENC|<-| B+C | |
| +---------| |-----------+ +---+ | | |
+-----------+ | | | |
| | M | |
+-B---------+ | | E | |
| +-RTP2----| |-RTP2------+ | D | |
| | +-Audio-| |-Audio---+ | +---+ | I | |
| | | BA1|--------->|---------+-+-|DEC|->| A | |
| | | |<---------|MA2 <----+ | +---+ | | |
| | +-------| |(BA1+CA1)|\| +---+ | | |
| +---------| |---------+ +-|ENC|<-| A+C | |
+-----------+ |-----------+ +---+ | | |
| | M | |
+-C---------+ | | I | |
| +-RTP3----| |-RTP3------+ | X | |
| | +-Audio-| |-Audio---+ | +---+ | E | |
| | | CA1|--------->|---------+-+-|DEC|->| R | |
| | | |<---------|MA3 <----+ | +---+ | | |
| | +-------| |(BA1+CA1)|\| +---+ | | |
| +---------| |---------+ +-|ENC|<-| A+B | |
+-----------+ |-----------+ +---+ +-----+ |
+----------------------------+
Figure 7: Session and SSRC details for Media Mixer
From an RTP perspective media mixing can be very straight forward as
can be seen in Figure 7. The mixer present one SSRC towards the peer
client, e.g. MA1 to Peer A, which is the media mix of the other
participants. As each peer receives a different version produced by
the mixer there are no actual relation between the different RTP
sessions in the actual media or the transport level information.
There is however one connection between RTP1-RTP3 in this figure. It
has to do with the SSRC space and the identity information. When A
receives the MA1 stream which is a combination of BA1 and CA1 streams
in the other PeerConnections RTP could enable the mixer to include
CSRC information in the MA1 stream to identify the contributing
source BA1 and CA1.
The CSRC has in its turn utility in RTP extensions, like the in Mixer
to Client audio levels RTP header extension [RFC6465]. If the SSRC
from endpoint to mixer leg are used as CSRC in another PeerConnection
then RTP1, RTP2 and RTP3 becomes one joint session as they have a
common SSRC space. At this stage the mixer also need to consider
which RTCP information it need to expose in the different legs. For
the above situation commonly nothing more than the Source Description
(SDES) information and RTCP BYE for CSRC need to be exposed. The
main goal would be to enable the correct binding against the
application logic and other information sources. This also enables
loop detection in the RTP session.
5.4.1.1. RTP Session Termination
There exist an possible implementation choice to have the RTP
sessions being separated between the different legs in the multi-
party communication session and only generate RTP media streams in
each without carrying on RTP/RTCP level any identity information
about the contributing sources. This removes both the functionality
that CSRC can provide and the possibility to use any extensions that
build on CSRC and the loop detection. It may appear a simplification
if SSRC collision would occur between two different end-points as
they can be avoided to be resolved and instead remapped between the
independent sessions if at all exposed. However, SSRC/CSRC remapping
requires that SSRC/CSRC are never used in the application level as
reference. This as they only have local importance, if they are used
on a multi-party session scope the result would be miss-referencing.
Session termination may appear to resolve some issues, it however
creates other issues that needs resolving, like loop detection,
identification of contributing sources and the need to handle mapped
identities and ensure that the right one is used towards the right
identities and never used directly between multiple end-points.
5.4.2. Media Switching
An RTP Mixer based on media switching avoids the media decoding and
encoding cycle in the mixer, but not the decryption and re-encryption
cycle as one rewrites RTP headers. This both reduces the amount of
computational resources needed in the mixer and increases the media
quality per transmitted bit. This is achieve by letting the mixer
have a number of SSRCs that represents conceptual or functional
streams the mixer produces. These streams are created by selecting
media from one of the by the mixer received RTP media streams and
forward the media using the mixers own SSRCs. The mixer can then
switch between available sources if that is required by the concept
for the source, like currently active speaker.
To achieve a coherent RTP media stream from the mixer's SSRC the
mixer is forced to rewrite the incoming RTP packet's header. First
the SSRC field must be set to the value of the Mixer's SSRC.
Secondly, the sequence number must be the next in the sequence of
outgoing packets it sent. Thirdly the RTP timestamp value needs to
be adjusted using an offset that changes each time one switch media
source. Finally depending on the negotiation the RTP payload type
value representing this particular RTP payload configuration may have
to be changed if the different endpoint mixer legs have not arrived
on the same numbering for a given configuration. This also requires
that the different end-points do support a common set of codecs,
otherwise media transcoding for codec compatibility is still
required.
Lets consider the operation of media switching mixer that supports a
video conference with six participants (A-F) where the two latest
speakers in the conference are shown to each participants. Thus the
mixer has two SSRCs sending video to each peer.
+-A---------+ +-MIXER----------------------+
| +-RTP1----| |-RTP1------+ +-----+ |
| | +-Video-| |-Video---+ | | | |
| | | AV1|------------>|---------+-+------->| S | |
| | | |<------------|MV1 <----+-+-BV1----| W | |
| | | |<------------|MV2 <----+-+-EV1----| I | |
| | +-------| |---------+ | | T | |
| +---------| |-----------+ | C | |
+-----------+ | | H | |
| | | |
+-B---------+ | | M | |
| +-RTP2----| |-RTP2------+ | A | |
| | +-Video-| |-Video---+ | | T | |
| | | BV1|------------>|---------+-+------->| R | |
| | | |<------------|MV3 <----+-+-AV1----| I | |
| | | |<------------|MV4 <----+-+-EV1----| X | |
| | +-------| |---------+ | | | |
| +---------| |-----------+ | | |
+-----------+ | | | |
: : : :
: : : :
+-F---------+ | | | |
| +-RTP6----| |-RTP6------+ | | |
| | +-Video-| |-Video---+ | | | |
| | | CV1|------------>|---------+-+------->| | |
| | | |<------------|MV11 <---+-+-AV1----| | |
| | | |<------------|MV12 <---+-+-EV1----| | |
| | +-------| |---------+ | | | |
| +---------| |-----------+ +-----+ |
+-----------+ +----------------------------+
Figure 8: Media Switching RTP Mixer
The Media Switching RTP mixer can similar to the Media Mixing one
reduce the bit-rate needed towards the different peers by selecting
and switching in a sub-set of RTP media streams out of the ones it
receives from the conference participations.
To ensure that a media receiver can correctly decode the RTP media
stream after a switch, it becomes necessary to ensure for state
saving codecs that they start from default state at the point of
switching. Thus one common tool for video is to request that the
encoding creates an intra picture, something that isn't dependent on
earlier state. This can be done using Full Intra Request [RFC5104]
RTCP codec control message.
Also in this type of mixer one could consider to terminate the RTP
sessions fully between the different end-point and mixer legs. The
same arguments and considerations as discussed in Section 5.4.1.1
applies here.
5.4.3. RTP Source Projecting
Another method for handling media in the RTP mixer is to project all
potential RTP sources (SSRCs) into a per end-point independent RTP
session. The mixer can then select which of the potential sources
that are currently actively transmitting media, despite that the
mixer in another RTP session receives media from that end-point.
This is similar to the media switching Mixer but have some important
differences in RTP details.
+-A---------+ +-MIXER---------------------+
| +-RTP1----| |-RTP1------+ +-----+ |
| | +-Video-| |-Video---+ | | | |
| | | AV1|------------>|---------+-+------>| | |
| | | |<------------|BV1 <----+-+-------| S | |
| | | |<------------|CV1 <----+-+-------| W | |
| | | |<------------|DV1 <----+-+-------| I | |
| | | |<------------|EV1 <----+-+-------| T | |
| | | |<------------|FV1 <----+-+-------| C | |
| | +-------| |---------+ | | H | |
| +---------| |-----------+ | | |
+-----------+ | | M | |
| | A | |
+-B---------+ | | T | |
| +-RTP2----| |-RTP2------+ | R | |
| | +-Video-| |-Video---+ | | I | |
| | | BV1|------------>|---------+-+------>| X | |
| | | |<------------|AV1 <----+-+-------| | |
| | | |<------------|CV1 <----+-+-------| | |
| | | | : : : |: : : : : : : : :| | |
| | | |<------------|FV1 <----+-+-------| | |
| | +-------| |---------+ | | | |
| +---------| |-----------+ | | |
+-----------+ | | | |
: : : :
: : : :
+-F---------+ | | | |
| +-RTP6----| |-RTP6------+ | | |
| | +-Video-| |-Video---+ | | | |
| | | CV1|------------>|---------+-+------>| | |
| | | |<------------|AV1 <----+-+-------| | |
| | | | : : : |: : : : : : : : :| | |
| | | |<------------|EV1 <----+-+-------| | |
| | +-------| |---------+ | | | |
| +---------| |-----------+ +-----+ |
+-----------+ +---------------------------+
Figure 9: Media Projecting Mixer
So in this six participant conference depicted above in (Figure 9)
one can see that end-point A will in this case be aware of 5 incoming
SSRCs, BV1-FV1. If this mixer intend to have the same behaviour as
in Section 5.4.2 where the mixer provides the end-points with the two
latest speaking end-points, then only two out of these five SSRCs
will concurrently transmit media to A. As the mixer selects which
source in the different RTP sessions that transmit media to the end-
points each RTP media stream will require some rewriting when being
projected from one session into another. The main thing is that the
sequence number will need to be consecutively incremented based on
the packet actually being transmitted in each RTP session. Thus the
RTP sequence number offset will change each time a source is turned
on in a RTP session.
As the RTP sessions are independent the SSRC numbers used can be
handled independently also thus working around any SSRC collisions by
having remapping tables between the RTP sessions. This will result
that each endpoint may have a different view of the application usage
of a particular SSRC. Thus the application must not use SSRC as
references to RTP media streams when communicating with other peers
directly.
The mixer will also be responsible to act on any RTCP codec control
requests coming from an end-point and decide if it can act on it
locally or needs to translate the request into the RTP session that
contains the media source. Both end-points and the mixer will need
to implement conference related codec control functionalities to
provide a good experience. Full Intra Request to request from the
media source to provide switching points between the sources,
Temporary Maximum Media Bit-rate Request (TMMBR) to enable the mixer
to aggregate congestion control response towards the media source and
have it adjust its bit-rate in case the limitation is not in the
source to mixer link.
This version of the mixer also puts different requirements on the
end-point when it comes to decoder instances and handling of the RTP
media streams providing media. As each projected SSRC can at any
time provide media the end-point either needs to handle having thus
many allocated decoder instances or have efficient switching of
decoder contexts in a more limited set of actual decoder instances to
cope with the switches. The WebRTC application also gets more
responsibility to update how the media provides is to be presented to
the user.
5.5. Point to Multipoint using Multiple Unicast flows
Based on the RTP session definition, it is clearly possible to have a
joint RTP session over multiple transport flows like the below three
endpoint joint session. In this case, A needs to send its' media
streams and RTCP packets to both B and C over their respective
transport flows. As long as all participants do the same, everyone
will have a joint view of the RTP session.
+---+ +---+
| A |<---->| B |
+---+ +---+
^ ^
\ /
\ /
v v
+---+
| C |
+---+
Figure 10: Point to Multi-Point using Multiple Unicast Transports
This doesn't create any additional requirements beyond the need to
have multiple transport flows associated with a single RTP session.
Note that an endpoint may use a single local port to receive all
these transport flows, or it might have separate local reception
ports for each of the endpoints.
There exists an alternative structure for establishing the above
communication scenario (Figure 10) which uses independent RTP
sessions between each pair of peers, i.e. three different RTP
sessions. Unless independently adapted the same RTP media stream
could be sent in both of the RTP sessions an endpoint has. The
difference exists in the behaviours around RTCP, for example common
RTCP bandwidth for one joint session, rather than three independent
pools, and the awareness based on RTCP reports between the peers of
how that third leg is doing.
5.6. De-composite Endpoint
The implementation of an application may desire to send a subset of
the application's data to each of multiple devices, each with their
own network address. A very basic use case for this would be to
separate audio and video processing for a particular endpoint, like a
conference room, into one device handling the audio and another
handling the video, being interconnected by some control functions
allowing them to behave as a single endpoint in all aspects except
for transport Figure 11.
Which decomposition that is possible is highly dependent on the RTP
session usage. It is not really feasible to decomposed one logical
end-point into two different transport node in one RTP session. From
a third party monitor of such an attempt the two entities would look
like two different end-points with a CNAME collision. This put a
requirement on that the only type of de-composited endpoint that RTP
really supports is one where the different parts have separate RTP
sessions to send and/or receive media streams intended for them.
+---------------------+
| Endpoint A |
| Local Area Network |
| +------------+ |
| +->| Audio |<+----\
| | +------------+ | \ +------+
| | +------------+ | +-->| |
| +->| Video |<+--------->| B |
| | +------------+ | +-->| |
| | +------------+ | / +------+
| +->| Control |<+----/
| +------------+ |
+---------------------+
Figure 11: De-composite End-Point
In the above usage, let us assume that the RTP sessions are different
for audio and video. The audio and video parts will use a common
CNAME and also have a common clock to ensure that synchronisation and
clock drift handling works despite the decomposition. Also the RTCP
handling works correctly as long as only one part of the de-composite
is part of each RTP session. That way any differences in the path
between A's audio entity and B and A's video and B are related to
different SSRCs in different RTP sessions.
The requirements that can derived from the above usage is that the
transport flows for each RTP session might be under common control
but still go to what looks like different endpoints based on
addresses and ports. This geometry cannot be accomplished using one
RTP session, so in this case, multiple RTP sessions are needed.
6. Multiple Streams Discussion 6. Multiple Streams Discussion
6.1. Introduction 6.1. Introduction
Using multiple media streams is a well supported feature of RTP. Using multiple media streams is a well supported feature of RTP.
However, it can be unclear for most implementers or people writing However, it can be unclear for most implementers or people writing
RTP/RTCP applications or extensions attempting to apply multiple RTP/RTCP applications or extensions attempting to apply multiple
streams when it is most appropriate to add an additional SSRC in an 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 existing RTP session and when it is better to use multiple RTP
sessions. This section tries to discuss the various considerations sessions. This section tries to discuss the various considerations
needed. The next section then concludes with some guidelines. needed. The next section then concludes with some guidelines.
6.2. RTP/RTCP Aspects 6.2. RTP/RTCP Aspects
This section discusses RTP and RTCP aspects worth considering when This section discusses RTP and RTCP aspects worth considering when
selecting between SSRC multiplexing and Session multiplexing. selecting between using an additional SSRC and Multiple RTP sessions.
6.2.1. The RTP Specification 6.2.1. The RTP Specification
RFC 3550 contains some recommendations and a bullet list with 5 RFC 3550 contains some recommendations and a bullet list with 5
arguments for different aspects of RTP multiplexing. Let's review arguments for different aspects of RTP multiplexing. Let's review
Section 5.2 of [RFC3550], reproduced below: Section 5.2 of [RFC3550], reproduced below:
"For efficient protocol processing, the number of multiplexing points "For efficient protocol processing, the number of multiplexing points
should be minimised, as described in the integrated layer processing should be minimised, as described in the integrated layer processing
design principle [ALF]. In RTP, multiplexing is provided by the design principle [ALF]. In RTP, multiplexing is provided by the
skipping to change at page 30, line 15 skipping to change at page 18, line 11
On the other hand, multiplexing multiple related sources of the same On the other hand, multiplexing multiple related sources of the same
medium in one RTP session using different SSRC values is the norm for medium in one RTP session using different SSRC values is the norm for
multicast sessions. The problems listed above don't apply: an RTP multicast sessions. The problems listed above don't apply: an RTP
mixer can combine multiple audio sources, for example, and the same mixer can combine multiple audio sources, for example, and the same
treatment is applicable for all of them. It may also be appropriate treatment is applicable for all of them. It may also be appropriate
to multiplex streams of the same medium using different SSRC values to multiplex streams of the same medium using different SSRC values
in other scenarios where the last two problems do not apply." 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 Let's consider one argument at a time. The first is an argument for
using different SSRC for each individual media stream, which still is using different SSRC for each individual media stream, which is very
very applicable. applicable.
The second argument is advocating against using payload type The second argument is advocating against using payload type
multiplexing, which still stands as can been seen by the extensive multiplexing, which still stands as can been seen by the extensive
list of issues found in Appendix A. list of issues found in Appendix A.
The third argument is yet another argument against payload type The third argument is yet another argument against payload type
multiplexing. multiplexing.
The fourth is an argument against multiplexing media streams that The fourth is an argument against multiplexing media streams that
require different handling into the same session. As we saw in the require different handling into the same session. As we saw in the
discussion of RTP mixers, the RTP mixer has to embed application discussion of RTP mixers, the RTP mixer has to embed application
logic in order to handle streams anyway; the separation of streams logic in order to handle streams anyway; the separation of streams
according to stream type is just another piece of application logic, according to stream type is just another piece of application logic,
which may or may not be appropriate for a particular application. A which may or may not be appropriate for a particular application. A
type of application that can mix different media sources "blindly" is type of application that can mix different media sources "blindly" is
the telephone bridge; most other type of application needs the audio only "telephone" bridge; most other type of application
application-specific logic to perform the mix correctly. needs application-specific logic to perform the mix correctly.
The fifth argument discusses network aspects that we will discuss The fifth argument discusses network aspects that we will discuss
more below in Section 6.4. It also goes into aspects of more below in Section 6.4. It also goes into aspects of
implementation, like decomposed endpoints where different processes implementation, like decomposed endpoints where different processes
or inter-connected devices handle different aspects of the whole or inter-connected devices handle different aspects of the whole
multi-media session. multi-media session.
A summary of RFC 3550's view on multiplexing is to use unique SSRCs 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 for anything that is its own media/packet stream, and to use
different RTP sessions for media streams that don't share media type. different RTP sessions for media streams that don't share media type.
The first this document support as very valid. The later is one The first this document support as very valid. The later is one
thing which is further discussed in this document as something the thing which is further discussed in this document as something the
application developer needs to make a continuous choice for. application developer needs to make a conscious choice for.
6.2.1.1. Different Media Types Recommendations 6.2.1.1. Different Media Types Recommendations
The above quote from RTP [RFC3550] includes a strong recommendation: The above quote from RTP [RFC3550] includes a strong recommendation:
"For example, in a teleconference composed of audio and video "For example, in a teleconference composed of audio and video
media encoded separately, each medium SHOULD be carried in a media encoded separately, each medium SHOULD be carried in a
separate RTP session with its own destination transport address." separate RTP session with its own destination transport address."
It was identified in "Why RTP Sessions Should Be Content Neutral" It was identified in "Why RTP Sessions Should Be Content Neutral"
[I-D.alvestrand-rtp-sess-neutral] that the above statement is poorly [I-D.alvestrand-rtp-sess-neutral] that the above statement is poorly
supported by any of the motivations provided in the RTP supported by any of the motivations provided in the RTP
specification. This has resulted in the creation of a specification specification. This has resulted in the creation of a specification
Multiple Media Types in an RTP Session specification Multiple Media Types in an RTP Session specification
[I-D.westerlund-avtcore-multi-media-rtp-session] which intend to [I-D.ietf-avtcore-multi-media-rtp-session] which intend to update
update this recommendation. That document has a detailed analysis of this recommendation. That document has a detailed analysis of the
the potential issues in having multiple media types in the same RTP potential issues in having multiple media types in the same RTP
session. This document tries to provide an more over arching session. This document tries to provide an more over arching
consideration regarding the usage of RTP session and considers consideration regarding the usage of RTP session and considers
multiple media types in one RTP session as possible choice for the multiple media types in one RTP session as possible choice for the
RTP application designer. RTP application designer.
6.2.2. Multiple SSRCs in a Session 6.2.2. Multiple SSRCs in a Session
In cases when an endpoint uses multiple SSRCs, we have found two Using multiple SSRCs in an RTP session at one endpoint has some
closely related issues. The first is if every SSRC shall report on unclarities in the RTP specification. These could potentially lead
all other SSRC, even the ones originating from the same endpoint. to some interoperability issues as well as some potential significant
The reason for this would be to ensure that no monitoring function inefficencies. These are further discussed in "RTP Considerations
should suspect a breakage in the RTP session. No monitoring function for Endpoints Sending Multiple Media Streams"
that gives an alert on non-reporting of an endpoint's own SSRCs has [I-D.lennox-avtcore-rtp-multi-stream]. A application designer may
been identified. need to consider these issues and the impact availability or lack of
the optimization in the endpoints has on their application.
The second issue around RTCP reporting arise when an endpoint If an application will become affected by the issues described, using
receives one or more media streams, and when the receiving endpoint Multiple RTP sessions can mitigate these issues.
itself sends multiple SSRC in the same RTP session. As transport
statistics are gathered per endpoint and shared between the nodes,
all the endpoint's SSRC will report based on the same received data,
the only difference will be which SSRCs sends the report. This could
be considered unnecessary overhead, but for consistency it might be
simplest to always have all sending SSRCs send RTCP reports on all
media streams the endpoint receives.
The current RTP text is silent about sending RTCP Receiver Reports 6.2.3. Handling Varying Sets of Senders
for an endpoint's own sources, but does not preclude either sending
or omitting them. The uncertainty in the expected behaviour in those
cases has likely caused variations in the implementation strategy.
This could cause an interoperability issue where it is not possible
to determine if the lack of reports is a true transport issue, or
simply a result of implementation.
Although this issue is valid already for the simple point to point
case, it needs to be considered in all topologies. From the
perspective of an endpoint, any solution needs to take into account
what a particular endpoint can determine without explicit information
of the topology. For example, a Transport Translator (Relay)
topology will look quite similar to point to point on a transport
level but is different on RTP level. Assume a first scenario with
two SSRC being sent from an endpoint to a Transport Translator, and a
second scenario with two single SSRC remote endpoints sending to the
same Transport Translator. The main differences between those two
scenarios are that in the second scenario, the RTT may vary between
the SSRCs (but it is not guaranteed), and the SSRCs may also have
different CNAMEs.
When an endpoint has multiple SSRCs and it needs to send RTCP packets
on behalf of these SSRCs, the question arises how RTCP packets with
different source SSRCs can be sent in the same compound packet. It
appears allowed, however some consideration of the transmission
scheduling is needed.
These issues are currently being discussed and a recommendation for
how to handle them are developed in "Real-Time Transport Protocol
(RTP) Considerations for Endpoints Sending Multiple Media Streams"
[I-D.lennox-avtcore-rtp-multi-stream].
6.2.3. Handling Varying sets of Senders
In some applications, the set of simultaneously active sources varies In some applications, the set of simultaneously active sources varies
within a larger set of session members. A receiver can then possibly within a larger set of session members. A receiver can then possibly
try to use a set of decoding chains that is smaller than the number try to use a set of decoding chains that is smaller than the number
of senders, switching the decoding chains between different senders. of senders, switching the decoding chains between different senders.
As each media decoding chain may contain state, either the receiver As each media decoding chain may contain state, either the receiver
must either be able to save the state of swapped-out senders, or the must either be able to save the state of swapped-out senders, or the
sender must be able to send data that permits the receiver to sender must be able to send data that permits the receiver to
reinitialise when it resumes activity. reinitialise when it resumes activity.
This behaviour will cause similar issues independent of SSRC or This behaviour will cause similar issues independent of Additional
Session multiplexing. SSRC or Multiple RTP session.
6.2.4. Cross Session RTCP Requests 6.2.4. Cross Session RTCP Requests
There currently exists no functionality to make truly synchronised There currently exists no functionality to make truly synchronised
and atomic RTCP messages with some type of request semantics across and atomic RTCP messages with some type of request semantics across
multiple RTP Sessions. Instead, separate RTCP messages will have to multiple RTP Sessions. Instead, separate RTCP messages will have to
be sent in each session. This gives SSRC multiplexed streams a be sent in each session. This gives streams in the same RTP session
slight advantage as RTCP messages for different streams in the same a slight advantage as RTCP messages for different streams in the same
session can be sent in a compound RTCP packet. Thus providing an session can be sent in a compound RTCP packet. Thus providing an
atomic operation if different modifications of different streams are atomic operation if different modifications of different streams are
requested at the same time. requested at the same time.
In Session multiplexed cases, the RTCP timing rules in the sessions When using multiple RTP sessions, the RTCP timing rules in the
and the transport aspects, such as packet loss and jitter, prevents a sessions and the transport aspects, such as packet loss and jitter,
receiver from relying on atomic operations, forcing it to use more prevents a receiver from relying on atomic operations, forcing it to
robust and forgiving mechanisms. use more robust and forgiving mechanisms.
6.2.5. Binding Related Sources 6.2.5. Binding Related Sources
A common problem in a number of various RTP extensions has been how A common problem in a number of various RTP extensions has been how
to bind related sources together. This issue is common to SSRC to bind related RTP sources and their media streams together. This
multiplexing and Session Multiplexing. issue is common to both using additional SSRCs and Multiple RTP
sessions.
Most, if not all, solutions to this problem are implemented in the The solutions can be divided into some groups, RTP/RTCP based,
signalling plane, providing metadata information using SDP. 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.
There exists one solution for grouping RTP sessions together in SDP The SDP-based signalling solutions are:
[RFC5888] to know which RTP session contains for example the FEC data
for the source data in another session. However, this mechanism does
not work on individual media flows and is thus not directly
applicable to the problem. The other solution is also SDP based and
can group SSRCs within a single RTP session [RFC5576]. Thus this
mechanism can bind media streams in SSRC multiplexed cases. Both
solutions have the shortcoming of being restricted to SDP based
signalling and also do not work 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.
One possible solution could be to mandate the same SSRC value being SDP Media Description Grouping: The SDP Grouping Framework [RFC5888]
used in all RTP session in case of session multiplexing. We do note uses various semantics to group any number of media descriptions.
that Section 8.3 of the RTP Specification [RFC3550] recommends using These has previously been considered primarily as grouping RTP
a single SSRC space across all RTP sessions for layered coding. sessions, but this may change.
However this recommendation has some downsides and is less applicable
beyond the field of layered coding. To use the same sender SSRC in
all RTP sessions from a particular endpoint can cause issues if an
SSRC collision occurs. If the same SSRC is used as the required
binding between the streams, then all streams in the related RTP
sessions must change their SSRC. This is extra likely to cause
problems if the participant populations are different in the
different sessions. For example, in case of large number of
receivers having selected totally random SSRC values in each RTP
session as RFC 3550 specifies, a change due to a SSRC collision in
one session can then cause a new collision in another session. This
cascading effect is not severe but there is an increased risk that
this occurs for well populated sessions (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).
In addition, being forced to change the SSRC affects all the related
media streams; instead of having to resynchronise only the originally
conflicting stream, all streams will suddenly need to be
resynchronised with each other. This will prevent also the media
streams not having an actual collision from being usable during the
resynchronisation and also increases the time until synchronisation
is finalised. In addition, it requires exception handling in the
SSRC generation.
The above collision issue does not occur in case of having only one SDP SSRC grouping: Source-Specific Media Attributes in SDP [RFC5576]
SSRC space across all sessions and all participants will be part of includes a solution for grouping SSRCs the same way as the
at least one session, like the base layer in layered encoding. In Grouping framework groupes Media Descriptions.
that case the only downside is the special behaviour that needs to be
well defined by anyone using this. But, having an exception
behaviour where the SSRC space is common across all session is an
issue as this behaviour does not fit all the RTP extensions or
payload formats. It is possible to create a situation where the
different mechanisms cannot be combined due to the non standard SSRC
allocation behaviour.
Existing mechanisms with known issues: This supports a lot of use cases. Both 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. As they are two related but still separated solutions it is
not well specified to group SSRCs across multiple RTP sessions and
SDP media descriptions.
RTP Retransmission: [RFC4588] Has two modes, one for SSRC Within RTP/RTCP based solutions when binding to a endpoint or
multiplexing and one for Session multiplexing. The session synchronization context, i.e. the CNAME has not be sufficient and one
multiplexing requires the same CNAME and mandates that the same has multiple RTP sessions has been to using the same SSRC value
SSRC is used in both sessions. Using the same SSRC does work but across all the RTP sessions. RTP Retransmission [RFC4588] is
will as previously stated potentially have issues in certain multiple RTP session mode, Generic FEC [RFC5109], as well as the RTP
cases. In SSRC multiplexed mode the CNAME is used to bind media payload format for Scalable Video Coding [RFC6190] in Multi Session
and retransmission streams together. However, if multiple media Transmission (MST) mode uses this method. This method clearly works
streams are sent from the same endpoint in the same session this but might have some downside in RTP sessions with many participating
does not provide non-ambiguous binding. Therefore when the first SSRCs. The birthday paradox ensures that if you populate a single
retransmission request for a media stream is sent, one must not session with 9292 SSRCs at random, the chances are approximately 1%
have another retransmission request outstanding for an SSRC which that at least one collision will occur. When a collision occur this
don't have a binding between the original SSRC and the will force one to change SSRC in all RTP sessions and thus
retransmission stream's SSRC. This works but creates some resynchronizing all of them instead of only the single media stream
limitations that can be avoided by a explicit mechanism. The SDP having the collision.
based ssrc-group mechanism would be sufficient in this case as
long as the application can rely on the signalling based solution.
Scalable Video Coding : As an example of scalable coding, SVC It can be noted that Section 8.3 of the RTP Specification [RFC3550]
[RFC6190] has various modes. The Multi Session Transmission (MST) recommends using a single SSRC space across all RTP sessions for
uses Session multiplexing to separate scalability layers. layered coding.
However, this specification has failed to be explicit on how these
layers are bound together in cases where CNAME is not sufficient.
CNAME is no longer sufficient when more than one media source
occur within a session that has the same CNAME, for example due to
multiple video cameras capturing the same lecture hall. This
likely implies that a single SSRC space as recommend by Section
8.3 of RTP [RFC3550] is to be used.
Forward Error Correction: If some type of FEC or redundancy stream Another solution that has been applied to binding SSRCs have been an
is being sent, it needs its own SSRC, with the exception of implicit method used by RTP Retransmission [RFC4588] when doing
constructions like redundancy encoding [RFC2198]. Thus in case of retransmissions in the same RTP session as the source RTP media
transmitting the FEC in the same session as the source data, the stream. This issues an RTP retransmission request, and then await a
inter SSRC relation within a session is needed. In case of new SSRC carrying the RTP retransmission payload and where that SSRC
sending the redundant data in a separate session from the source, is from the same CNAME. This limits a requestor to having only one
the SSRC in each session needs to be related. This occurs for outstanding request on any new source SSRCs per endpoint.
example in RFC5109 when using session separation of original and
FEC data. SSRC multiplexing is not supported, only using
redundant encoding is supported.
This issue appears to need action to harmonise and avoid future There exist no RTP/RTCP based mechanism capable of supporting
shortcomings in extension specifications. A proposed solution for explicit association accross multiple RTP sessions as well within an
handling this issue is [I-D.westerlund-avtext-rtcp-sdes-srcname]. RTP session. A proposed solution for handling this issue is
[I-D.westerlund-avtext-rtcp-sdes-srcname]. This can potentially be
part of an SDP based solution also by reusing the same identifiers
and name space.
6.2.6. Forward Error Correction 6.2.6. Forward Error Correction
There exist a number of Forward Error Correction (FEC) based schemes There exist a number of Forward Error Correction (FEC) based schemes
for how to reduce the packet loss of the original streams. Most of 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 the FEC schemes will protect a single source flow. The protection is
achieved by transmitting a certain amount of redundant information achieved by transmitting a certain amount of redundant information
that is encoded such that it can repair one or more packet loss over that is encoded such that it can repair one or more packet loss over
the set of packets they protect. This sequence of redundant the set of packets they protect. This sequence of redundant
information also needs to be transmitted as its own media stream, or information also needs to be transmitted as its own media stream, or
in some cases instead of the original media stream. Thus many of in some cases instead of the original media stream. Thus many of
these schemes create a need for binding the related flows as these schemes create a need for binding the related flows as
discussed above. They also create additional flows that need to be discussed above. They also create additional flows that need to be
transported. Looking at the history of these schemes, there is both transported. Looking at the history of these schemes, there is both
SSRC multiplexed and Session multiplexed solutions and some schemes schemes using multiple SSRCs and multiple RTP sessions, and some
that support both. schemes that support both modes of operation.
Using a Session multiplexed solution supports the case where some set Using multiple RTP sessions supports the case where some set of
of receivers may not be able to utilise the FEC information. By receivers may not be able to utilise the FEC information. By placing
placing it in a separate RTP session, it can easily be ignored. it in a separate RTP session, it can easily be ignored.
In usages involving multicast, having the FEC information on its own In usages involving multicast, having the FEC information on its own
multicast group, and therefore in its own RTP session, allows for multicast group, and therefore in its own RTP session, allows for
flexibility, for example when using Rapid Acquisition of Multicast flexibility, for example when using Rapid Acquisition of Multicast
Groups (RAMS) [RFC6285]. During the RAMS burst where data is Groups (RAMS) [RFC6285]. During the RAMS burst where data is
received over unicast and where it is possible to combine with received over unicast and where it is possible to combine with
unicast based retransmission [RFC4588], there is no need to burst the unicast based retransmission [RFC4588], there is no need to burst the
FEC data related to the burst of the source media streams needed to FEC data related to the burst of the source media streams needed to
catch up with the multicast group. This saves bandwidth to the catch up with the multicast group. This saves bandwidth to the
receiver during the burst, enabling quicker catch up. When the receiver during the burst, enabling quicker catch up. When the
receiver has caught up and joins the multicast group(s) for the receiver has caught up and joins the multicast group(s) for the
source, it can at the same time join the multicast group with the FEC source, it can at the same time join the multicast group with the FEC
information. Having the source stream and the FEC in separate groups information. Having the source stream and the FEC in separate groups
allows for easy separation in the Burst/Retransmission Source (BRS) allows for easy separation in the Burst/Retransmission Source (BRS)
without having to individually classify packets. without having to individually classify packets.
6.2.7. Transport Translator Sessions 6.2.7. Transport Translator Sessions
A basic Transport Translator relays any incoming RTP and RTCP packets A basic Transport Translator relays any incoming RTP and RTCP packets
to the other participants. The main difference between SSRC to the other participants. The main difference between Additional
multiplexing and Session multiplexing resulting from this use case is SSRCs and Multiple RTP Sessions resulting from this use case is that
that for SSRC multiplexing it is not possible for a particular with Additional SSRCs it is not possible for a particular session
session participant to decide to receive a subset of media streams. participant to decide to receive a subset of media streams. When
When using separate RTP sessions for the different sets of media using separate RTP sessions for the different sets of media streams,
streams, a single participant can choose to leave one of the sessions a single participant can choose to leave one of the sessions but not
but not the other. the other.
6.3. Interworking 6.3. Interworking
There are several different kinds of interworking, and this section There are several different kinds of interworking, and this section
discusses two related ones. The interworking between different discusses two related ones. The interworking between different
applications and the implications of potentially different choices of applications and the implications of potentially different choices of
usage of RTP's multiplexing points. The second topic relates to what usage of RTP's multiplexing points. The second topic relates to what
limitations may have to be considered working with some legacy limitations may have to be considered working with some legacy
applications. applications.
skipping to change at page 37, line 8 skipping to change at page 23, line 18
From an RTP perspective the RTP Translator approach could work if all From an RTP perspective the RTP Translator approach could work if all
the applications are using the same codecs with the same payload the applications are using the same codecs with the same payload
types, have made the same multiplexing choices, have the same types, have made the same multiplexing choices, have the same
capabilities in number of simultaneous media streams combined with capabilities in number of simultaneous media streams combined with
the same set of RTP/RTCP extensions being supported. Unfortunately the same set of RTP/RTCP extensions being supported. Unfortunately
this may not always be true. this may not always be true.
When one is gatewaying via an RTP Translator, a natural requirement When one is gatewaying via an RTP Translator, a natural requirement
is that the two applications being interconnected must use the same is that the two applications being interconnected must use the same
approach to multiplexing. Furthermore, if one of the applications is approach to multiplexing. Furthermore, if one of the applications is
capable of working in several modes (such as being able to use SSRC capable of working in several modes (such as being able to use
multiplexing or RTP session multiplexing at will), and the other one Additional SSRCs or Multiple RTP sessions at will), and the other one
is not, successful interconnection depends on locking the more is not, successful interconnection depends on locking the more
flexible application into the operating mode where interconnection flexible application into the operating mode where interconnection
can be successful, even if no participants using the less flexible can be successful, even if no participants using the less flexible
application are present when the RTP sessions are being created. application are present when the RTP sessions are being created.
6.3.3. Gateway Interworking 6.3.3. Gateway Interworking
When one terminates RTP sessions at the gateway, there are certain When one terminates RTP sessions at the gateway, there are certain
tasks that the gateway must carry out: tasks that the gateway must carry out:
skipping to change at page 39, line 14 skipping to change at page 25, line 21
6.4.1. Quality of Service 6.4.1. Quality of Service
When it comes to Quality of Service mechanisms, they are either flow When it comes to Quality of Service mechanisms, they are either flow
based or marking based. RSVP [RFC2205] is an example of a flow based based or marking based. RSVP [RFC2205] is an example of a flow based
mechanism, while Diff-Serv [RFC2474] is an example of a Marking based mechanism, while Diff-Serv [RFC2474] is an example of a Marking based
one. For a marking based scheme, the method of multiplexing will not one. For a marking based scheme, the method of multiplexing will not
affect the possibility to use QoS. affect the possibility to use QoS.
However, for a flow based scheme there is a clear difference between However, for a flow based scheme there is a clear difference between
the methods. SSRC multiplexing will result in all media streams the methods. Additional SSRC will result in all media streams being
being part of the same 5-tuple (protocol, source address, destination part of the same 5-tuple (protocol, source address, destination
address, source port, destination port) which is the most common address, source port, destination port) which is the most common
selector for flow based QoS. Thus, separation of the level of QoS selector for flow based QoS. Thus, separation of the level of QoS
between media streams is not possible. That is however possible for between media streams is not possible. That is however possible when
session based multiplexing, where each media stream for which a using multiple RTP sessions, where each media stream for which a
separate QoS handling is desired can be in a different RTP session separate QoS handling is desired can be in a different RTP session
that can be sent over different 5-tuples. that can be sent over different 5-tuples.
6.4.2. NAT and Firewall Traversal 6.4.2. NAT and Firewall Traversal
In today's network there exist a large number of middleboxes. The In today's network there exist a large number of middleboxes. The
ones that normally have most impact on RTP are Network Address ones that normally have most impact on RTP are Network Address
Translators (NAT) and Firewalls (FW). Translators (NAT) and Firewalls (FW).
Below we analyze and comment on the impact of requiring more Below we analyze and comment on the impact of requiring more
skipping to change at page 40, line 4 skipping to change at page 26, line 12
needed are the maximum number of simultaneous RTP Sessions a needed are the maximum number of simultaneous RTP Sessions a
single endpoint may use. In practice, implementation will single endpoint may use. In practice, implementation will
probably benefit from using more server ports to simplify probably benefit from using more server ports to simplify
implementation or avoid performance bottlenecks. implementation or avoid performance bottlenecks.
NAT State: If an endpoint sits behind a NAT, each flow it generates NAT State: 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 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 in the NAT. That state is a limited resource. In home or Small
Office/Home Office (SOHO) NATs, memory or processing are usually Office/Home Office (SOHO) NATs, memory or processing are usually
the most limited resources. For large scale NATs serving many the most limited resources. For large scale NATs serving many
internal endpoints, available external ports are typically the internal endpoints, available external ports are likely the scarce
scarce resource. Port limitations is primarily a problem for resource. Port limitations is primarily a problem for larger
larger centralised NATs where endpoint independent mapping centralised NATs where endpoint independent mapping requires each
requires each flow to use one port for the external IP address. flow to use one port for the external IP address. This affects
This affects the maximum number of internal users per external IP the maximum number of internal users per external IP address.
address. However, it is worth pointing out that a real-time video However, it is worth pointing out that a real-time video
conference session with audio and video is likely using less than conference session with audio and video is likely using less than
10 UDP flows, compared to certain web applications that can use 10 UDP flows, compared to certain web applications that can use
100+ TCP flows to various servers from a single browser instance. 100+ TCP flows to various servers from a single browser instance.
NAT Traversal Excess Time: Making the NAT/FW traversal takes a NAT Traversal Excess Time: Making the NAT/FW traversal takes a
certain amount of time for each flow. It also takes time in a certain amount of time for each flow. It also takes time in a
phase of communication between accepting to communicate and the phase of communication between accepting to communicate and the
media path being established which is fairly critical. The best media path being established which is fairly critical. The best
case scenario for how much extra time it takes after finding the case scenario for how much extra time it takes after finding the
first valid candidate pair following the specified ICE procedures first valid candidate pair following the specified ICE procedures
are: 1.5*RTT + Ta*(Additional_Flows-1), where Ta is the pacing 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 timer, which ICE specifies to be no smaller than 20 ms. That
assumes a message in one direction, and then an immediate assumes a message in one direction, and then an immediate
triggered check back. The reason it isn't more is that ICE first triggered check back. The reason it isn't more, is that ICE first
finds one candidate pair that works prior to attempting to finds one candidate pair that works prior to attempting to
establish multiple flows. Thus, there is no extra time until one establish multiple flows. Thus, there is no extra time until one
has found a working candidate pair. Based on that working pair has found a working candidate pair. Based on that working pair
the needed extra time is to in parallel establish the, in most the needed extra time is to in parallel establish the, in most
cases 2-3, additional flows. However, packet loss causes extra cases 2-3, additional flows. However, packet loss causes extra
delays, at least 100 ms which is the minimal retransmission timer delays, at least 100 ms, which is the minimal retransmission timer
for ICE. for ICE.
NAT Traversal Failure Rate: Due to the need to establish more than a NAT Traversal Failure Rate: Due to the need to establish more than a
single flow through the NAT, there is some risk that establishing single flow through the NAT, there is some risk that establishing
the first flow succeeds but that one or more of the additional the first flow succeeds but that one or more of the additional
flows fail. The risk that this happens is hard to quantify, but flows fail. The risk that this happens is hard to quantify, but
it should be fairly low as one flow from the same interfaces has it should be fairly low as one flow from the same interfaces has
just been successfully established. Thus only rare events such as just been successfully established. Thus only rare events such as
NAT resource overload, or selecting particular port numbers that NAT resource overload, or selecting particular port numbers that
are filtered etc, should be reasons for failure. are filtered etc, should be reasons for failure.
Deep Packet Inspection and Multiple Streams: Firewalls differ in how Deep Packet Inspection and Multiple Streams: Firewalls differ in how
deeply they inspect packets. There exist some potential that deeply they inspect packets. There exist some potential that
deeply inspecting firewalls will have similar legacy issues with deeply inspecting firewalls will have similar legacy issues with
multiple SSRCs as some stack implementations. multiple SSRCs as some stack implementations.
SSRC multiplexing keeps the additional media streams within one RTP Additional SSRC keeps the additional media streams within one RTP
Session and does not introduce any additional NAT traversal Session and transport flow and does not introduce any additional NAT
complexities per media stream. This can be compared with normally traversal complexities per media stream. This can be compared with
one or two additional transport flows per RTP session when using normally one or two additional transport flows per RTP session when
session multiplexing. Additional lower layer transport flows will be using multiple RTP sessions. Additional lower layer transport flows
required, unless an explicit de-multiplexing layer is added between will be required, unless an explicit de-multiplexing layer is added
RTP and the transport protocol. A proposal for how to multiplex between RTP and the transport protocol. A proposal for how to
multiple RTP sessions over the same single lower layer transport multiplex multiple RTP sessions over the same single lower layer
exist in [I-D.westerlund-avtcore-transport-multiplexing]. transport exist in [I-D.westerlund-avtcore-transport-multiplexing].
6.4.3. Multicast 6.4.3. Multicast
Multicast groups provides a powerful semantics for a number of real- Multicast groups provides a powerful semantics for a number of real-
time applications, especially the ones that desire broadcast-like time applications, especially the ones that desire broadcast-like
behaviours with one endpoint transmitting to a large number of behaviours with one endpoint transmitting to a large number of
receivers, like in IPTV. But that same semantics do result in a receivers, like in IPTV. But that same semantics do result in a
certain number of limitations. certain number of limitations.
One limitation is that for any group, sender side adaptation to the One limitation is that for any group, sender side adaptation to the
skipping to change at page 41, line 49 skipping to change at page 28, line 12
shortage of port space, as each multicast group has its own port shortage of port space, as each multicast group has its own port
space. space.
6.4.4. Multiplexing multiple RTP Session on a Single Transport 6.4.4. Multiplexing multiple RTP Session on a Single Transport
For applications that doesn't need flow based QoS and like to save For applications that doesn't need flow based QoS and like to save
ports and NAT/FW traversal costs and where usage of multiple media ports and NAT/FW traversal costs and where usage of multiple media
types in one RTP session is not suitable, there is a proposal for how types in one RTP session is not suitable, there is a proposal for how
to achieve multiplexing of multiple RTP sessions over the same lower to achieve multiplexing of multiple RTP sessions over the same lower
layer transport [I-D.westerlund-avtcore-transport-multiplexing]. layer transport [I-D.westerlund-avtcore-transport-multiplexing].
Using such a solution would allow session multiplexing without most Using such a solution would allow Multiple RTP session without most
of the perceived downsides of additional RTP sessions creating a need of the perceived downsides of Multiple RTP sessions creating a need
for additional transport flows. for additional transport flows.
6.5. Security Aspects 6.5. Security Aspects
When dealing with point-to-point, 2-member RTP sessions only, there 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 are few security issues that are relevant to the choice of having one
RTP session or multiple RTP sessions. However, there are a few RTP session or multiple RTP sessions. However, there are a few
aspects of multiparty sessions that might warrant consideration. aspects of multiparty sessions that might warrant consideration. For
general information of possible methods of securing RTP, please
review RTP Security Options [I-D.ietf-avtcore-rtp-security-options].
6.5.1. Security Context Scope 6.5.1. Security Context Scope
When using SRTP [RFC3711] the security context scope is important and When using SRTP [RFC3711] the security context scope is important and
can be a necessary differentiation in some applications. As SRTP's can be a necessary differentiation in some applications. As SRTP's
crypto suites (so far) is built around symmetric keys, the receiver crypto suites (so far) is built around symmetric keys, the receiver
will need to have the same key as the sender. This results in that 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 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 really was sent by the claimed sender or by another party having
access to the key. In most cases this is a sufficient security access to the key. In most cases this is a sufficient security
skipping to change at page 44, line 18 skipping to change at page 30, line 33
3. It does not matter if usage or purpose of the media stream is 3. 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 signalled on media stream level or session level as there is no
difference. difference.
4. It is possible to control security association per RTP session 4. It is possible to control security association per RTP session
with current key-management. with current key-management.
The Cons: The Cons:
a. The number of required RTP sessions cannot really be higher, a. The number of required RTP sessions grows directly in proportion
which has the implications: with the number of media streams, which has the implications:
* Linear growth of the amount of NAT/FW state with number of * Linear growth of the amount of NAT/FW state with number of
media streams. media streams.
* Increased delay and resource consumption from NAT/FW * Increased delay and resource consumption from NAT/FW
traversal. traversal.
* Likely larger signalling message and signalling processing * Likely larger signalling message and signalling processing
requirement due to the amount of session related information. requirement due to the amount of session related information.
skipping to change at page 45, line 9 skipping to change at page 31, line 25
cause issues. cause issues.
f. If the same SSRC value is reused in multiple RTP sessions rather f. If the same SSRC value is reused in multiple RTP sessions rather
than being randomly chosen, interworking with applications that than being randomly chosen, interworking with applications that
uses another multiplexing structure than this application will uses another multiplexing structure than this application will
have issues and require SSRC translation. have issues and require SSRC translation.
g. Cannot be used with Any Source Multicast (ASM) as one cannot g. Cannot be used with Any Source Multicast (ASM) as one cannot
guarantee that only two endpoints participate as packet senders. guarantee that only two endpoints participate as packet senders.
Using SSM, it is possible to restrict to these requirements if no Using SSM, it is possible to restrict to these requirements if no
RTCP feedback is used. RTCP feedback is injected back into the SSM group.
h. For most security mechanisms, each RTP session or transport flow h. For most security mechanisms, each RTP session or transport flow
requires individual key-management and security association requires individual key-management and security association
establishment thus increasing the overhead. establishment thus increasing the overhead.
i. Does not support multiparty session within a session. Instead
each multi-party participant will require an individual RTP
session to a given endpoint, even if a central node is used.
RTP applications that need to inter-work with legacy RTP RTP applications that need to inter-work with legacy RTP
applications, like VoIP and video conferencing, can potentially applications, like VoIP and video conferencing, can potentially
benefit from this structure. However, a large number of media benefit from this structure. However, a large number of media
descriptions in SDP can also run into issues with existing descriptions in SDP can also run into issues with existing
implementations. For any application needing a larger number of implementations. For any application needing a larger number of
media flows, the overhead can become very significant. This media flows, the overhead can become very significant. This
structure is also not suitable for multi-party sessions, as any given structure is also not suitable for multi-party sessions, as any given
media stream from each participant, although having same usage in the media stream from each participant, although having same usage in the
application, must have its own RTP session. In addition, the dynamic application, must have its own RTP session. In addition, the dynamic
behaviour that can arise in multi-party applications can tax the behaviour that can arise in multi-party applications can tax the
skipping to change at page 49, line 30 skipping to change at page 35, line 44
g. Additional concern with legacy implementations that does not g. Additional concern with legacy implementations that does not
support the RTP specification fully when it comes to handling support the RTP specification fully when it comes to handling
multiple SSRC per endpoint, as also multiple simultaneous media multiple SSRC per endpoint, as also multiple simultaneous media
types needs to be handled. types needs to be handled.
h. If the applications need finer control over which session h. If the applications need finer control over which session
participants that are included in different sets of security participants that are included in different sets of security
associations, most key-management will have difficulties associations, most key-management will have difficulties
establishing such a session. establishing such a session.
The analysis in this document and considerations in ??? implies that
this is suitable only in a set of restricted use cases. The aspect
in the above list that can be most difficult to judge long term is
likely the potential need for interworking with other applications
and services.
7.5. Summary 7.5. Summary
There are some clear relations between these arch-types. Both the There are some clear relations between these arch-types. Both the
"single SSRC per RTP session" and the "multiple media types in one "single SSRC per RTP session" and the "multiple media types in one
session" are cases which require full explicit signalling of the session" are cases which require full explicit signalling of the
media stream relations. However, they operate on two different media stream relations. However, they operate on two different
levels where the first primarily enables session level binding, and levels where the first primarily enables session level binding, and
the second needs to do it all on SSRC level. From another the second needs to do it all on SSRC level. From another
perspective, the two solutions are the two extreme points when it perspective, the two solutions are the two extreme points when it
comes to number of RTP sessions required. comes to number of RTP sessions required.
skipping to change at page 50, line 24 skipping to change at page 36, line 33
This section contains a number of recommendations for implementors or This section contains a number of recommendations for implementors or
specification writers when it comes to handling multi-stream. specification writers when it comes to handling multi-stream.
Do not Require the same SSRC across Sessions: As discussed in Do not Require the same SSRC across Sessions: As discussed in
Section 6.2.5 there exist drawbacks in using the same SSRC in Section 6.2.5 there exist drawbacks in using the same SSRC in
multiple RTP sessions as a mechanism to bind related media streams multiple RTP sessions as a mechanism to bind related media streams
together. It is instead recommended that a mechanism to together. It is instead recommended that a mechanism to
explicitly signal the relation is used, either in RTP/RTCP or in explicitly signal the relation is used, either in RTP/RTCP or in
the used signalling mechanism that establishes the RTP session(s). the used signalling mechanism that establishes the RTP session(s).
Use SSRC multiplexing for additional Media Sources: In the cases an Use additional SSRCs additional Media Sources: In the cases an RTP
RTP endpoint needs to transmit additional media streams of the endpoint needs to transmit additional media streams of the same
same media type in the application, with the same processing media type in the application, with the same processing
requirements at the network and RTP layers, it is recommended to requirements at the network and RTP layers, it is recommended to
send them as additional SSRCs in the same RTP session. For send them as additional SSRCs in the same RTP session. For
example a telepresence room where there are three cameras, and example a telepresence room where there are three cameras, and
each camera captures 2 persons sitting at the table, sending each each camera captures 2 persons sitting at the table, sending each
camera as its own SSRC within a single RTP session is recommended. camera as its own SSRC within a single RTP session is recommended.
Use additional RTP sessions for streams with different requirements: Use additional RTP sessions for streams with different requirements:
When media streams have different processing requirements from the When media streams have different processing requirements from the
network or the RTP layer at the endpoints, it is recommended that network or the RTP layer at the endpoints, it is recommended that
the different types of streams are put in different RTP sessions. the different types of streams are put in different RTP sessions.
This includes the case where different participants want different This includes the case where different participants want different
subsets of the set of RTP streams. subsets of the set of RTP streams.
When using Session Multiplexing use grouping: When using Session When using multiple RTP Sessions use grouping: When using Multiple
Multiplexing solutions, it is recommended to be explicitly group RTP session solutions, it is recommended to be explicitly group
the involved RTP sessions using the signalling mechanism, for the involved RTP sessions when needed using the signalling
example The Session Description Protocol (SDP) Grouping Framework. mechanism, for example The Session Description Protocol (SDP)
[RFC5888], using some appropriate grouping semantics. Grouping Framework. [RFC5888], using some appropriate grouping
semantics.
RTP/RTCP Extensions May Support SSRC and Session Multiplexing: When RTP/RTCP Extensions May Support Additional SSRCs as well as Multiple
defining an RTP or RTCP extension, the creator needs to consider RTP sessions: When defining an RTP or RTCP extension, the creator
if this extension is applicable in both SSRC multiplexed and needs to consider if this extension is applicable to usage with
Session multiplexed usages. Any extension intended to be generic additional SSRCs and Multiple RTP sessions. Any extension
is recommended to support both. Applications that are not as intended to be generic is recommended to support both.
generally applicable will have to consider if interoperability is Applications that are not as generally applicable will have to
better served by defining a single solution or providing both consider if interoperability is better served by defining a single
options. solution or providing both options.
Transport Support Extensions: When defining new RTP/RTCP extensions Transport Support Extensions: When defining new RTP/RTCP extensions
intended for transport support, like the retransmission or FEC intended for transport support, like the retransmission or FEC
mechanisms, they are recommended to include support for both SSRC mechanisms, they are recommended to include support for both
and Session multiplexing so that application developers can choose additional SSRCs and multiple RTP sessions so that application
freely from the set of mechanisms without concerning themselves developers can choose freely from the set of mechanisms without
with which of the multiplexing choices a particular solution concerning themselves with which of the multiplexing choices a
supports. particular solution supports.
9. IANA Considerations 9. IANA Considerations
This document makes no request of IANA. This document makes no request of IANA.
Note to RFC Editor: this section may be removed on publication as an Note to RFC Editor: this section may be removed on publication as an
RFC. RFC.
10. Security Considerations 10. Security Considerations
There is discussion of the security implications of choosing SSRC vs There is discussion of the security implications of choosing SSRC vs
Session multiplexing in Section 6.5. Multiple RTP session in Section 6.5.
11. References 11. References
11.1. Normative References 11.1. Normative References
[RFC3550] Schulzrinne, H., Casner, S., Frederick, R., and V. [RFC3550] Schulzrinne, H., Casner, S., Frederick, R., and V.
Jacobson, "RTP: A Transport Protocol for Real-Time Jacobson, "RTP: A Transport Protocol for Real-Time
Applications", STD 64, RFC 3550, July 2003. Applications", STD 64, RFC 3550, July 2003.
11.2. Informative References 11.2. Informative References
skipping to change at page 52, line 10 skipping to change at page 38, line 24
[I-D.alvestrand-rtp-sess-neutral] [I-D.alvestrand-rtp-sess-neutral]
Alvestrand, H., "Why RTP Sessions Should Be Content Alvestrand, H., "Why RTP Sessions Should Be Content
Neutral", draft-alvestrand-rtp-sess-neutral-01 (work in Neutral", draft-alvestrand-rtp-sess-neutral-01 (work in
progress), June 2012. progress), June 2012.
[I-D.ietf-avt-srtp-ekt] [I-D.ietf-avt-srtp-ekt]
Wing, D., McGrew, D., and K. Fischer, "Encrypted Key Wing, D., McGrew, D., and K. Fischer, "Encrypted Key
Transport for Secure RTP", draft-ietf-avt-srtp-ekt-03 Transport for Secure RTP", draft-ietf-avt-srtp-ekt-03
(work in progress), October 2011. (work in progress), October 2011.
[I-D.ietf-avtcore-6222bis]
Rescorla, E. and A. Begen, "Guidelines for Choosing RTP
Control Protocol (RTCP) Canonical Names (CNAMEs)",
draft-ietf-avtcore-6222bis-00 (work in progress),
December 2012.
[I-D.ietf-avtcore-multi-media-rtp-session]
Westerlund, M., Perkins, C., and J. Lennox, "Multiple
Media Types in an RTP Session",
draft-ietf-avtcore-multi-media-rtp-session-01 (work in
progress), October 2012.
[I-D.ietf-avtcore-rtp-security-options] [I-D.ietf-avtcore-rtp-security-options]
Westerlund, M. and C. Perkins, "Options for Securing RTP Westerlund, M. and C. Perkins, "Options for Securing RTP
Sessions", draft-ietf-avtcore-rtp-security-options-00 Sessions", draft-ietf-avtcore-rtp-security-options-01
(work in progress), July 2012. (work in progress), October 2012.
[I-D.ietf-avtext-multiple-clock-rates] [I-D.ietf-avtext-multiple-clock-rates]
Petit-Huguenin, M. and G. Zorn, "Support for Multiple Petit-Huguenin, M. and G. Zorn, "Support for Multiple
Clock Rates in an RTP Session", Clock Rates in an RTP Session",
draft-ietf-avtext-multiple-clock-rates-05 (work in draft-ietf-avtext-multiple-clock-rates-08 (work in
progress), May 2012. progress), November 2012.
[I-D.ietf-mmusic-sdp-bundle-negotiation] [I-D.ietf-mmusic-sdp-bundle-negotiation]
Holmberg, C. and H. Alvestrand, "Multiplexing Negotiation Holmberg, C., Alvestrand, H., and C. Jennings,
Using Session Description Protocol (SDP) Port Numbers", "Multiplexing Negotiation Using Session Description
draft-ietf-mmusic-sdp-bundle-negotiation-00 (work in Protocol (SDP) Port Numbers",
progress), February 2012. draft-ietf-mmusic-sdp-bundle-negotiation-03 (work in
progress), February 2013.
[I-D.ietf-payload-rtp-howto] [I-D.ietf-payload-rtp-howto]
Westerlund, M., "How to Write an RTP Payload Format", Westerlund, M., "How to Write an RTP Payload Format",
draft-ietf-payload-rtp-howto-02 (work in progress), draft-ietf-payload-rtp-howto-02 (work in progress),
July 2012. July 2012.
[I-D.lennox-avtcore-rtp-multi-stream] [I-D.lennox-avtcore-rtp-multi-stream]
Lennox, J. and M. Westerlund, "Real-Time Transport Lennox, J., Westerlund, M., Wu, W., and C. Perkins, "RTP
Protocol (RTP) Considerations for Endpoints Sending Considerations for Endpoints Sending Multiple Media
Multiple Media Streams", Streams", draft-lennox-avtcore-rtp-multi-stream-02 (work
draft-lennox-avtcore-rtp-multi-stream-00 (work in in progress), February 2013.
progress), July 2012.
[I-D.lennox-mmusic-sdp-source-selection] [I-D.lennox-mmusic-sdp-source-selection]
Lennox, J. and H. Schulzrinne, "Mechanisms for Media Lennox, J. and H. Schulzrinne, "Mechanisms for Media
Source Selection in the Session Description Protocol Source Selection in the Session Description Protocol
(SDP)", draft-lennox-mmusic-sdp-source-selection-04 (work (SDP)", draft-lennox-mmusic-sdp-source-selection-05 (work
in progress), March 2012. in progress), October 2012.
[I-D.westerlund-avtcore-max-ssrc] [I-D.westerlund-avtcore-max-ssrc]
Westerlund, M., Burman, B., and F. Jansson, "Multiple Westerlund, M., Burman, B., and F. Jansson, "Multiple
Synchronization sources (SSRC) in RTP Session Signaling", Synchronization sources (SSRC) in RTP Session Signaling",
draft-westerlund-avtcore-max-ssrc-01 (work in progress), draft-westerlund-avtcore-max-ssrc-02 (work in progress),
April 2012. July 2012.
[I-D.westerlund-avtcore-multi-media-rtp-session] [I-D.westerlund-avtcore-rtp-topologies-update]
Westerlund, M., Perkins, C., and J. Lennox, "Multiple Westerlund, M. and S. Wenger, "RTP Topologies",
Media Types in an RTP Session", draft-westerlund-avtcore-rtp-topologies-update-02 (work in
draft-westerlund-avtcore-multi-media-rtp-session-00 (work progress), February 2013.
in progress), July 2012.
[I-D.westerlund-avtcore-transport-multiplexing] [I-D.westerlund-avtcore-transport-multiplexing]
Westerlund, M. and C. Perkins, "Multiple RTP Sessions on a Westerlund, M. and C. Perkins, "Multiple RTP Sessions on a
Single Lower-Layer Transport", Single Lower-Layer Transport",
draft-westerlund-avtcore-transport-multiplexing-02 (work draft-westerlund-avtcore-transport-multiplexing-04 (work
in progress), March 2012. in progress), October 2012.
[I-D.westerlund-avtext-rtcp-sdes-srcname] [I-D.westerlund-avtext-rtcp-sdes-srcname]
Westerlund, M., Burman, B., and P. Sandgren, "RTCP SDES Westerlund, M., Burman, B., and P. Sandgren, "RTCP SDES
Item SRCNAME to Label Individual Sources", Item SRCNAME to Label Individual Sources",
draft-westerlund-avtext-rtcp-sdes-srcname-00 (work in draft-westerlund-avtext-rtcp-sdes-srcname-02 (work in
progress), October 2011. progress), October 2012.
[RFC2198] Perkins, C., Kouvelas, I., Hodson, O., Hardman, V., [RFC2198] Perkins, C., Kouvelas, I., Hodson, O., Hardman, V.,
Handley, M., Bolot, J., Vega-Garcia, A., and S. Fosse- Handley, M., Bolot, J., Vega-Garcia, A., and S. Fosse-
Parisis, "RTP Payload for Redundant Audio Data", RFC 2198, Parisis, "RTP Payload for Redundant Audio Data", RFC 2198,
September 1997. September 1997.
[RFC2205] Braden, B., Zhang, L., Berson, S., Herzog, S., and S. [RFC2205] Braden, B., Zhang, L., Berson, S., Herzog, S., and S.
Jamin, "Resource ReSerVation Protocol (RSVP) -- Version 1 Jamin, "Resource ReSerVation Protocol (RSVP) -- Version 1
Functional Specification", RFC 2205, September 1997. Functional Specification", RFC 2205, September 1997.
skipping to change at page 54, line 38 skipping to change at page 41, line 12
Hakenberg, "RTP Retransmission Payload Format", RFC 4588, Hakenberg, "RTP Retransmission Payload Format", RFC 4588,
July 2006. July 2006.
[RFC4607] Holbrook, H. and B. Cain, "Source-Specific Multicast for [RFC4607] Holbrook, H. and B. Cain, "Source-Specific Multicast for
IP", RFC 4607, August 2006. IP", RFC 4607, August 2006.
[RFC5104] Wenger, S., Chandra, U., Westerlund, M., and B. Burman, [RFC5104] Wenger, S., Chandra, U., Westerlund, M., and B. Burman,
"Codec Control Messages in the RTP Audio-Visual Profile "Codec Control Messages in the RTP Audio-Visual Profile
with Feedback (AVPF)", RFC 5104, February 2008. with Feedback (AVPF)", RFC 5104, February 2008.
[RFC5109] Li, A., "RTP Payload Format for Generic Forward Error
Correction", RFC 5109, December 2007.
[RFC5117] Westerlund, M. and S. Wenger, "RTP Topologies", RFC 5117, [RFC5117] Westerlund, M. and S. Wenger, "RTP Topologies", RFC 5117,
January 2008. January 2008.
[RFC5576] Lennox, J., Ott, J., and T. Schierl, "Source-Specific [RFC5576] Lennox, J., Ott, J., and T. Schierl, "Source-Specific
Media Attributes in the Session Description Protocol Media Attributes in the Session Description Protocol
(SDP)", RFC 5576, June 2009. (SDP)", RFC 5576, June 2009.
[RFC5583] Schierl, T. and S. Wenger, "Signaling Media Decoding [RFC5583] Schierl, T. and S. Wenger, "Signaling Media Decoding
Dependency in the Session Description Protocol (SDP)", Dependency in the Session Description Protocol (SDP)",
RFC 5583, July 2009. RFC 5583, July 2009.
skipping to change at page 57, line 25 skipping to change at page 43, line 48
12. A legacy endpoint that doesn't understand the indication that 12. A legacy endpoint that doesn't understand the indication that
different RTP payload types are different media streams may be different RTP payload types are different media streams may be
slightly confused by the large amount of possibly overlapping or slightly confused by the large amount of possibly overlapping or
identically defined RTP Payload Types. identically defined RTP Payload Types.
Appendix B. Proposals for Future Work Appendix B. Proposals for Future Work
The above discussion and guidelines indicates that a small set of The above discussion and guidelines indicates that a small set of
extension mechanisms could greatly improve the situation when it extension mechanisms could greatly improve the situation when it
comes to using multiple streams independently of Session multiplexing comes to using multiple streams independently of Multiple RTP session
or SSRC multiplexing. These extensions are: or Additional SSRC. These extensions are:
Media Source Identification: A Media source identification that can Media Source Identification: A Media source identification that can
be used to bind together media streams that are related to the be used to bind together media streams that are related to the
same media source. A proposal same media source. A proposal
[I-D.westerlund-avtext-rtcp-sdes-srcname] exist for a new SDES [I-D.westerlund-avtext-rtcp-sdes-srcname] exist for a new SDES
item SRCNAME that also can be used with the a=ssrc SDP attribute item SRCNAME that also can be used with the a=ssrc SDP attribute
to provide signalling layer binding information. to provide signalling layer binding information.
SSRC limitations within RTP sessions: By providing a signalling SSRC limitations within RTP sessions: By providing a signalling
solution that allows the signalling peers to explicitly express solution that allows the signalling peers to explicitly express
both support and limitations on how many simultaneous media both support and limitations on how many simultaneous media
streams an endpoint can handle within a given RTP Session. That streams an endpoint can handle within a given RTP Session. That
ensures that usage of SSRC multiplexing occurs when supported and ensures that usage of Additional SSRC occurs when supported and
without overloading an endpoint. This extension is proposed in without overloading an endpoint. This extension is proposed in
[I-D.westerlund-avtcore-max-ssrc]. [I-D.westerlund-avtcore-max-ssrc].
Appendix C. RTP Specification Clarifications Appendix C. RTP Specification Clarifications
This section describes a number of clarifications to the RTP This section describes a number of clarifications to the RTP
specifications that are likely necessary for aligned behaviour when specifications that are likely necessary for aligned behaviour when
RTP sessions contain more SSRCs than one local and one remote. RTP sessions contain more SSRCs than one local and one remote.
All of the below proposals are under consideration in All of the below proposals are under consideration in
skipping to change at page 59, line 42 skipping to change at page 46, line 25
o Bitrate/Bandwidth exist today only at aggregate or a common any o Bitrate/Bandwidth exist today only at aggregate or a common any
media stream limit, unless either codec-specific bandwidth media stream limit, unless either codec-specific bandwidth
limiting or RTCP signalling using TMMBR is used. limiting or RTCP signalling using TMMBR is used.
o Which SSRC that will use which RTP Payload Types (this will be o Which SSRC that will use which RTP Payload Types (this will be
visible from the first media packet, but is sometimes useful to visible from the first media packet, but is sometimes useful to
know before packet arrival). know before packet arrival).
Some of these issues are clearly SDP's problem rather than RTP Some of these issues are clearly SDP's problem rather than RTP
limitations. However, if the aim is to deploy an SSRC multiplexed limitations. However, if the aim is to deploy an solution using
solution that contains several sets of media streams with different additional SSRCs that contains several sets of media streams with
properties (encoding/packetization parameter, bit-rate, etc), putting different properties (encoding/packetization parameter, bit-rate,
each set in a different RTP session would directly enable negotiation etc), putting each set in a different RTP session would directly
of the parameters for each set. If insisting on SSRC multiplexing enable negotiation of the parameters for each set. If insisting on
only, a number of signalling extensions are needed to clarify that Additional SSRC only, a number of signalling extensions are needed to
there are multiple sets of media streams with different properties clarify that there are multiple sets of media streams with different
and that they shall in fact be kept different, since a single set properties and that they shall in fact be kept different, since a
will not satisfy the application's requirements. single set will not satisfy the application's requirements.
For some parameters, such as resolution and framerate, a SSRC-linked For some parameters, such as resolution and framerate, a SSRC-linked
mechanism has been proposed: mechanism has been proposed:
[I-D.lennox-mmusic-sdp-source-selection]. [I-D.lennox-mmusic-sdp-source-selection].
D.1.2. SDP Prevents Multiple Media Types D.1.2. SDP Prevents Multiple Media Types
SDP chose to use the m= line both to delineate an RTP session and to 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, specify the top level of the MIME media type; audio, video, text,
image, application. This media type is used as the top-level media image, application. This media type is used as the top-level media
 End of changes. 107 change blocks. 
942 lines changed or deleted 336 lines changed or added

This html diff was produced by rfcdiff 1.46. The latest version is available from http://tools.ietf.org/tools/rfcdiff/