MMUSIC Working Group | V. Singh |
Internet-Draft | J. Ott |
Intended status: Experimental | T. Karkkainen |
Expires: January 15, 2014 | Aalto University |
R. Globisch | |
T. Schierl | |
Fraunhofer HHI | |
July 14, 2013 |
Multipath RTP (MPRTP) attribute in Session Description Protocol
draft-singh-mmusic-mprtp-sdp-extension-02
Multipath RTP (MPRTP) is an extension to the Real-time Transport Protocol (RTP) that allows multi-homed endpoints to take advantage of the availability of multiple Internet paths between endpoints to send/receive media packets. This document describes how to express the interface advertisement and negotiation during session setup in SDP (Session Description Protocol).
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at http://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."
This Internet-Draft will expire on January 15, 2014.
Copyright (c) 2013 IETF Trust and the persons identified as the document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.
Multipath RTP (MPRTP) [I-D.singh-avtcore-mprtp] is an extension to RTP [RFC3550] that allows splitting a single RTP stream into multiple subflows, which are then transmitted over different Internet paths. Multipath RTCP (MPRTCP) [I-D.singh-avtcore-mprtp] is an extension to RTCP. It is used along with MPRTP to report per-path sender and receiver characteristics.
A Multipath RTP session can be set up in many possible ways e.g., during handshake, or upgraded mid-session. The capability exchange may be done using out-of-band signaling (e.g., Session Description Protocol (SDP) [RFC3264] in Session Initiation Protocol (SIP) [RFC3261], Real-Time Streaming Protocol (RTSP) [I-D.ietf-mmusic-rfc2326bis]) or using in-band signaling (e.g., in RTCP [I-D.singh-avtcore-mprtp]).
This document defines an extension to the SDP attribute 'a=mprtp' defined in the base MPRTP specification [I-D.singh-avtcore-mprtp]. Using this extension an endpoint can advertise its multiple interfaces.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119].
The definitions for the words Endpoint, Interface, Path and Subflow in this document are as per [I-D.singh-avtcore-mprtp].
The base Multipath RTP specification [I-D.singh-avtcore-mprtp] defines the 'a=mprtp' attribute to indicate support for MPRTP. In the following section, we extend the 'a=mprtp' attribute to advertise an endpoint's multiple interfaces in SDP instead of advertising the interfaces in-band in RTCP [I-D.singh-avtcore-mprtp].
If the endpoint is aware of its multiple interfaces and wants to use them for MPRTP, it MAY use SDP to advertise these interfaces. Alternatively, it MAY use in-band signaling to advertise its interfaces, as defined in [I-D.singh-avtcore-mprtp]. The receiving endpoint MUST use the same mechanism to respond to an interface advertisement. In particular, if an endpoint receives an SDP containing multiple MPRTP interfaces, then it MUST respond to the offer in SDP with its set of MPRTP interfaces.
The interface attribute is an optional media-level attribute and is used to advertise an endpoint's interface address.
The syntax of the interface attribute is defined using the following Augmented BNF, as defined in [RFC5234]. The definitions of unicast-address, port, token, SP, and CRLF are according to RFC4566 [RFC4566].
mprtp-optional-parameter = mprtp-interface ; other optional parameters may be added later mprtp-interface = "interface" ":" counter SP unicast-address ":" rtp_port *(SP interface-description-extension) counter = 1*DIGIT rtp_port = port ;port from RFC4566
<mprtp-interface>: specifies one unicast IP address, the RTP port number of the endpoint (MPRTP [I-D.singh-avtcore-mprtp] uses RTP/RTCP port multiplexing). The unicast address with lowest counter value MUST match the connection address ('c=' line). Similarly, the RTP and RTCP ports MUST match the RTP and RTCP ports in the associated 'm=' line. The counter SHOULD start at 1 and increment with each additional interface. Multiple interface lines MUST be ordered in a decreasing priority level as is the case with the Interface Advertisement blocks in in-band signaling (See [I-D.singh-avtcore-mprtp]).
<unicast-address>: is taken from RFC4566 [RFC4566]. It is one of the IP addresses of the endpoint and allows the use of IPv4 addresses, IPv6 addresses and Fully Qualified Domain Names (FQDN). When choosing IPv6 addresses the endpoint MUST perform the IPv6 address prioritization and selection as proposed in [I-D.keranen-mmusic-ice-address-selection].
<port>: is from RFC4566 [RFC4566]. It is the RTP port associated with the unicast address and note that the RTP and RTCP ports are multiplexed for MPRTP subflows according to [RFC5761].
<counter>: is a monotonically increasing positive integer starting at 1. The counter MUST reset for each media line. The counter value for an 'mprtp-interface' should remain the same for the session, unless the priorities of the interfaces change.
[Editor's note: do we need a counter?]
The 'mprtp-interface' can be extended using the 'interface-description-extension' parameter. An endpoint MUST ignore any extensions it does not understand.
The ABNF grammar is illustrated by means of an example:
v=0 o=alice 2890844526 2890844527 IN IP4 192.0.2.1 s= c=IN IP4 192.0.2.1 t=0 0 m=video 49170 RTP/AVP 98 a=rtpmap:98 H264/90000 a=fmtp:98 profile-level-id=42A01E; a=extmap:1 urn:ietf:params:rtp-hdrext:mprtp a=rtcp-mux a=mprtp interface:1 192.0.2.1:49170 ;primary interface a=mprtp interface:2 198.51.100.1:51372 ;additional interface
If the endpoints intend to use ICE [RFC5245] for discovering interfaces and running connectivity checks, the following two step procedure MUST be followed:
When an endpoint uses ICE's regular nomination [RFC5245] procedure, it chooses the best ICE candidate as the default path. In the case of an MPRTP endpoint, if the connectivity check of more than one ICE candidate succeeded, then an MPRTP endpoint MAY advertise (some of) these as MPRTP interfaces in an updated offer.
When an endpoint uses ICE's aggressive nomination [RFC5245] procedure, the selected candidate may change as more ICE checks complete. Instead of sending updated offers as additional ICE candidates appear (transience), the endpoint MAY use in-band signaling to advertise its interfaces, as defined in [I-D.singh-avtcore-mprtp]. Additionally, it MAY send an updated offer when the transience stabilizes.
If the default interface disappears and the paths used for MPRTP are different from the one in the c= and m= lines then the 'mprtp interface' with the lowest counter value should be promoted to the c= and m= lines in the updated offer.
When a new interface appears, then the application/endpoint should internally decide if it wishes to use it and sends an updated offer with ICE candidates of the new interface. The receiving endpoint responds to the offer with all its ICE candidates in the answer and starts connectivity checks between all its candidates and the offerer's new ICE candidate. Similarly, the initiating endpoint starts connectivity checks between the new interface and all the received ICE candidates in the answer. If the connectivity checks succeed, the initiating endpoint MAY send an updated offer with the new interface as an additional 'mprtp interface'.
[Editor's Note: should we also consider using trickle ICE for MPRTP? Trickle ICE is introduced in: [I-D.ivov-mmusic-trickle-ice] and for SIP in [I-D.ivov-mmusic-trickle-ice-sip].]
When SDP [RFC4566] is used to negotiate MPRTP interfaces (see Section 2.1) following the offer/answer model [RFC3264], the collection of "a=mprtp interface" attribute lines indicates the interfaces the endpoint wishes to use for sending and/or receiving media data. The SDP offer MUST include this attribute at the media level. If the answerer wishes to also use SDP for advertising MPRTP interfaces, it MUST also include its interfaces at the media-level "a=mprtp interface" attribute in the answer. If the answer does not contain an "a=mprtp interface" attribute, the offerer MUST use in-band signaling [I-D.singh-avtcore-mprtp] for advertising interfaces.
When SDP is used in a declarative manner, the presence of an "a=mprtp interface" attribute signals that the sender can send or receive media data over multiple interfaces. The receiver SHOULD be capable of streaming media to the multiple interfaces and be prepared to receive media from multiple interfaces.
The following sections shows examples of SDP offer and answer for in-band and out-of-band signaling.
The following offer/answer shows that both the endpoints are MPRTP capable and SHOULD use in-band signaling for interfaces advertisements.
Offer: v=0 o=alice 2890844526 2890844527 IN IP4 192.0.2.1 s= c=IN IP4 192.0.2.1 t=0 0 m=video 49170 RTP/AVP 98 a=rtpmap:98 H264/90000 a=fmtp:98 profile-level-id=42A01E; a=rtcp-mux a=mprtp
Answer: v=0 o=bob 2890844528 2890844529 IN IP4 192.0.2.2 s= c=IN IP4 192.0.2.2 t=0 0 m=video 4000 RTP/AVP 98 a=rtpmap:98 H264/90000 a=fmtp:98 profile-level-id=42A01E; a=rtcp-mux a=mprtp
The endpoint MAY now use in-band RTCP signaling to advertise its multiple interfaces. Alternatively, it MAY make another offer with the interfaces in SDP (out-of-band signaling).
If multiple interfaces are included in an SDP offer then the MPRTP-capable receiver MUST respond to the request with an SDP answer containing one or more interfaces. If the SDP answer does not contain "a=mprtp", the offerer can conclude that the endpoint does not support MPRTP and continue the session using a single path.
In this example, the offerer advertises two interfaces and the answerer responds with a single interface description. The endpoint MAY use one or both paths depending on the end-to-end characteristics of each path.
Offer: v=0 o=alice 2890844526 2890844527 IN IP4 192.0.2.1 s= c=IN IP4 192.0.2.1 t=0 0 m=video 49170 RTP/AVP 98 a=rtpmap:98 H264/90000 a=fmtp:98 profile-level-id=42A01E; a=rtcp-mux a=mprtp interface:1 192.0.2.1:49170 a=mprtp interface:2 198.51.100.1:51372
Answer: v=0 o=bob 2890844528 2890844529 IN IP4 192.0.2.2 s= c=IN IP4 192.0.2.2 t=0 0 m=video 4000 RTP/AVP 98 a=rtpmap:98 H264/90000 a=fmtp:98 profile-level-id=42A01E; a=rtcp-mux a=mprtp interface:1 192.0.2.2:4000
In this example, the endpoint first sends its ICE candidates in the initial offer and the other endpoint answers with its ICE candidates.
Initial offer (with ICE candidates):
Offer: v=0 o=alice 2890844526 2890844527 IN IP4 192.0.2.1 s= c=IN IP4 192.0.2.1 t=0 0 a=ice-pwd:asd88fgpdd777uzjYhagZg a=ice-ufrag:8hhY a=mprtp m=video 49170 RTP/AVP 98 a=rtpmap:98 H264/90000 a=fmtp:98 profile-level-id=42A01E; a=rtcp-mux a=candidate:1 1 UDP 2130706431 192.0.2.1 49170 typ host a=candidate:2 1 UDP 1694498815 198.51.100.1 51372 typ host
Answer: v=0 o=bob 2890844528 2890844529 IN IP4 192.0.2.2 s= c=IN IP4 192.0.2.2 t=0 0 a=ice-pwd:YH75Fviy6338Vbrhrlp8Yh a=ice-ufrag:9uB6 a=mprtp m=video 4000 RTP/AVP 98 a=rtpmap:98 H264/90000 a=fmtp:98 profile-level-id=42A01E; a=rtcp-mux a=candidate:1 1 UDP 2130706431 192.0.2.2 4000 typ host
Thereafter, each endpoint conducts ICE connectivity checks and when sufficient number of connectivity checks succeed, the endpoint sends an updated offer. In the updated offer, the endpoint advertises its multiple interfaces for MPRTP.
Updated offer (with MPRTP interfaces):
Offer: v=0 o=alice 2890844526 2890844527 IN IP4 192.0.2.1 s= c=IN IP4 192.0.2.1 t=0 0 m=video 49170 RTP/AVP 98 a=rtpmap:98 H264/90000 a=fmtp:98 profile-level-id=42A01E; a=rtcp-mux a=candidate:1 1 UDP 2130706431 192.0.2.1 49170 typ host a=candidate:2 1 UDP 1694498815 198.51.100.1 51372 typ host a=mprtp interface:1 192.0.2.1:49170 a=mprtp interface:2 198.51.100.1:51372
Answer: v=0 o=bob 2890844528 2890844529 IN IP4 192.0.2.2 s= c=IN IP4 192.0.2.2 t=0 0 m=video 4000 RTP/AVP 98 a=rtpmap:98 H264/90000 a=fmtp:98 profile-level-id=42A01E; a=rtcp-mux a=candidate:1 1 UDP 2130706431 192.0.2.2 4000 typ host a=mprtp interface:1 192.0.2.2:4000
The MPRTP layer MAY choose to augment paths to increase throughput. If the desired media rate exceeds the current media rate, the endpoints MUST renegotiate the application specific ("b=AS:xxx") [RFC4566] bandwidth.
TBD
TBD
Endpoints MUST use RTSP 2.0 [I-D.ietf-mmusic-rfc2326bis] for session setup. Endpoints MUST multiplex RTP and RTCP on a single port [RFC5761] and follow the recommendations made in Appendix C of [I-D.ietf-mmusic-rfc2326bis].
The overview is illustrated by means of an example:
C->S: DESCRIBE rtsp://server.example.com/fizzle/foo RTSP/2.0 CSeq: 111 User-Agent: PhonyClient 1.3 Accept: application/sdp, application/example Supported: setup.mprtp, setup.rtp.rtcp.mux S->C: RTSP/2.0 200 OK CSeq: 111 Date: 23 Jan 2011 15:35:06 GMT Server: PhonyServer 1.3 Content-Type: application/sdp Content-Length: 367 Supported: setup.mprtp, setup.rtp.rtcp.mux v=0 o=mprtp-rtsp-server 2890844526 2890844527 IN IP4 192.0.2.1 s= c=IN IP4 192.0.2.1 t=0 0 m=video 49170 RTP/AVP 98 a=rtpmap:98 H264/90000 a=fmtp:98 profile-level-id=42A01E; a=extmap:1 urn:ietf:params:rtp-hdrext:mprtp a=rtcp-mux a=mprtp interface:1 192.0.2.1:49170 a=mprtp interface:2 198.51.100.1:51372
On receiving the response to the RTSP DESCRIBE message, the RTSP Client sends an RTSP SETUP message containing its MPRTP interfaces in the Transport header using the "dest_mprtp_addr=" attribute. The RTSP Server responds with a 200 OK containing both the RTSP Client's and the RTSP Server's MPRTP interfaces.
C->S: SETUP rtsp://server.example.com/fizzle/foo/audio RTSP/2.0 CSeq: 112 Transport: RTP/AVPF/UDP; unicast; dest_mprtp_addr=" 1 192.0.2.2 4000"; RTCP-mux, RTP/AVP/UDP; unicast; dest_addr=":6970"/":6971", RTP/AVP/TCP;unicast;interleaved=0-1 Accept-Ranges: NPT, UTC User-Agent: PhonyClient 1.3 Supported: setup.mprtp, setup.rtp.rtcp.mux S->C: RTSP/2.0 200 OK CSeq: 112 Session: 12345678 Transport: RTP/AVPF/UDP; unicast; dest_mprtp_addr=" 1 192.0.2.2 4000"; src_mprtp_addr="1 192.0.2.1 49170; 2 198.51.100.1 51372"; RTCP-mux Accept-Ranges: NPT Date: 23 Jan 2012 15:35:06 GMT Server: PhonyServer 1.3 Supported: setup.mprtp, setup.rtp.rtcp.mux
The RTSP Client can issue a PLAY request on receiving the 200 OK and media can start to stream once the RTSP Server receives the PLAY request.
This overview uses the ICE mechanisms [I-D.ietf-mmusic-rtsp-nat] defined for RTSP 2.0 [I-D.ietf-mmusic-rfc2326bis].
The overview is illustrated by means of an example:
C->S: DESCRIBE rtsp://server.example.com/foo RTSP/2.0 CSeq: 312 User-Agent: PhonyClient 1.3 Accept: application/sdp, application/example Supported: setup.mprtp, setup.ice-d-m, setup.rtp.rtcp.mux S->C: RTSP/2.0 200 OK CSeq: 312 Date: 23 Jan 2012 15:35:06 GMT Server: PhonyServer 1.3 Content-Type: application/sdp Content-Length: 367 Supported: setup.mprtp, setup.ice-d-m, setup.rtp.rtcp.mux v=0 o=mprtp-rtsp-server 2890844526 2890842807 IN IP4 192.0.2.1 s=SDP Seminar i=A Seminar on the session description protocol u=http://www.example.com/lectures/sdp.ps e=seminar@example.com (Seminar Management) t=2873397496 2873404696 a=recvonly a=rtsp-ice-d-m a=control: * m=video 49170 RTP/AVP 98 a=rtpmap:98 H264/90000 a=fmtp:98 profile-level-id=42A01E; a=rtcp-mux a=mprtp a=control: /video
C->S: SETUP rtsp://server.example.com/foo/video RTSP/2.0 CSeq: 302 Transport: RTP/AVP/D-ICE; unicast; ICE-ufrag=9uB6; ICE-Password=YH75Fviy6338Vbrhrlp8Yh; candidates="1 1 UDP 2130706431 192.0.2.2 4000 typ host"; RTCP-mux, RTP/AVP/UDP; unicast; dest_addr=":6970"/":6971", RTP/AVP/TCP;unicast;interleaved=0-1 Accept-Ranges: NPT, UTC User-Agent: PhonyClient 1.3 Supported: setup.mprtp, setup.ice-d-m, setup.rtp.rtcp.mux S->C: RTSP/2.0 200 OK CSeq: 302 Session: 12345678 Transport: RTP/AVP/D-ICE; unicast; RTCP-mux; ICE-ufrag=8hhY; ICE-Password= asd88fgpdd777uzjYhagZg; candidates=" 1 1 UDP 2130706431 192.0.2.1 49170 typ host; 2 1 UDP 1694498815 198.51.100.1 51372 typ host" Accept-Ranges: NPT Date: 23 Jan 2012 15:35:06 GMT Server: PhonyServer 1.3 Supported: setup.mprtp, setup.ice-d-m, setup.rtp.rtcp.mux
After the connectivity checks complete, the RTSP Client can send an updated RTSP SETUP message containing the MPRTP interfaces for which the connectivity checks were successful. These steps are the same as the ones in the previous example.
trns-parameter = <Defined in Section 20.2.3 of [I-D.ietf-mmusic-rfc2326bis]> trns-parameter =/ SEMI dest-mprtp-interface-par trns-parameter =/ SEMI src-mprtp-interface-par dest-mprtp-interface-par = "dest_mprtp_addr" EQUAL DQUOTE SWS interface *(SEMI interface) SWS DQUOTE src-mprtp-interface-par = "src_mprtp_addr" EQUAL DQUOTE SWS interface *(SEMI interface) SWS DQUOTE interface = counter SP unicast-address SP rtp_port SP *(SP interface-description-extension) counter = See section 2.3.1 unicast-address = See section 2.3.1 rtp_port = See section 2.3.1 interface-description-extension = See section 2.3.1 EQUAL = <Defined in [I-D.ietf-mmusic-rfc2326bis]> DQUOTE = <Defined in [I-D.ietf-mmusic-rfc2326bis]> SWS = <Defined in [I-D.ietf-mmusic-rfc2326bis]> SEMI = <Defined in [I-D.ietf-mmusic-rfc2326bis]>
This section defines a new RTSP Transport parameter for carrying MPRTP interfaces. The transport parameters may only occur once in each transport specification. The parameter can contain one or more MPRTP interfaces. If the RTSP Server supports MPRTP it MUST include one or more MPRTP interfaces in the SETUP response.
A feature tag is defined for indicating MPRTP support in the RTSP capabilities mechanism: "setup.mprtp". This feature tag indicates that the endpoint supports all the mandatory extensions defined in this specification and is applicable to all types of RTSP agents; clients, servers and proxies.
The MPRTP compliant RTSP Client MUST send the feature tag "setup.mprtp" in the "Supported" header of all DESCRIBE and SETUP requests.
TBD
Notify-Reas-val =/ "src-mprtp-interface-update"
A new value used in the PLAY_NOTIFY methods Notify-Reason header is defined: "src-mprtp-interface-update". This reason indicates that the RTSP Server has updated set of MPRTP interfaces.
mprtp-interfaces = "mprtp-interfaces" HCOLON interface *(COMMA interface) interface = counter SP unicast-address SP rtp_port SP *(SP interface-description-extension) counter = See section 2.3.1 unicast-address = See section 2.3.1 rtp_port = See section 2.3.1 interface-description-extension = See section 2.3.1
PLAY_NOTIFY requests with Notify-Reason header set to src-mprtp-interface-update MUST include a mprtp-interfaces header.
S->C: PLAY_NOTIFY rtsp://server.example.com/foo RTSP/2.0 CSeq: 305 Notify-Reason: src-mprtp-interface-update Session: 12345678 mprtp-interfaces: 2 192.0.2.10 48211, 3 198.51.100.11 38703 Server: PhonyServer 1.3 C->S: RTSP/2.0 200 OK CSeq: 305 User-Agent: PhonyClient 1.3
Example:
The server SHALL support SETUP requests in PLAYING state if it is only updating the transport parameter (dest_mprtp_addr). If the session is established using ICE then the RTSP Server and Client MUST also follow the procedures described for Re-SETUP in [I-D.ietf-mmusic-rtsp-nat].
Contact: Varun Singh mailto:varun.singh@iki.fi tel:+358-9-470-24785
The following contact information shall be used for all registrations in this document:
Note to the RFC-Editor: When publishing this document as an RFC, please replace "RFC XXXX" with the actual RFC number of this document and delete this sentence.
This document requests registration in a number of registries for RTSP.
This document request that one RTSP 2.0 feature tag be registered in the "RTSP 2.0 feature tag" registry:
setup.mprtp See Section 3.3.2.
This document requests that 2 transport parameters be registered in RTSP 2.0's "Transport Parameters":
"dest_mprtp_addr": See Section 3.3.1.
"src_mprtp_addr": See Section 3.3.1.
This document requests that one assignment be done in the RTSP 2.0 Notify-Reason header value registry. The defined value is:
"src-mprtp-interface-update": See Section 3.3.4.
All drafts are required to have a security considerations section. See RFC 3552 [RFC3552] for a guide.
Varun Singh, Saba Ahsan, and Teemu Karkkainen are supported by Trilogy (http://www.trilogy-project.org), a research project (ICT-216372) partially funded by the European Community under its Seventh Framework Program.
The work of Varun Singh, Joerg Ott, Ralf Globisch and Thomas Schierl has been partially supported by the European Institute of Innovation and Technology (EIT) ICT Labs activity RCLD 11882.
The views expressed here are those of the author(s) only. Neither the European Commission nor the EITICT labs is liable for any use that may be made of the information in this document.
Saba Ahsan Aalto University School of Science and Technology Otakaari 5 A Espoo, FIN 02150 Finland Email: sahsan@cc.hut.fi
Lars Eggert NetApp Sonnenallee 1 Kirchheim 85551 Germany Phone: +49 151 12055791 Email: lars@netapp.com URI: http://eggert.org/
Note to the RFC-Editor: please remove this section prior to publication as an RFC.