| draft-ietf-avt-rapid-rtp-sync-02.txt | draft-ietf-avt-rapid-rtp-sync-03.txt | |||
|---|---|---|---|---|
| Network Working Group C. Perkins | Network Working Group C. Perkins | |||
| Internet-Draft University of Glasgow | Internet-Draft University of Glasgow | |||
| Updates: RFC3550 T. Schierl | Updates: RFC3550 T. Schierl | |||
| (if approved) Fraunhofer HHI | (if approved) Fraunhofer HHI | |||
| Intended status: Standards Track June 10, 2009 | Intended status: Standards Track June 30, 2009 | |||
| Expires: December 12, 2009 | Expires: January 1, 2010 | |||
| Rapid Synchronisation of RTP Flows | Rapid Synchronisation of RTP Flows | |||
| draft-ietf-avt-rapid-rtp-sync-02.txt | draft-ietf-avt-rapid-rtp-sync-03.txt | |||
| Status of this Memo | Status of this Memo | |||
| This Internet-Draft is submitted to IETF in full conformance with the | This Internet-Draft is submitted to IETF in full conformance with the | |||
| provisions of BCP 78 and BCP 79. | provisions of BCP 78 and BCP 79. | |||
| Internet-Drafts are working documents of the Internet Engineering | Internet-Drafts are working documents of the Internet Engineering | |||
| Task Force (IETF), its areas, and its working groups. Note that | Task Force (IETF), its areas, and its working groups. Note that | |||
| other groups may also distribute working documents as Internet- | other groups may also distribute working documents as Internet- | |||
| Drafts. | Drafts. | |||
| skipping to change at page 1, line 34 ¶ | skipping to change at page 1, line 34 ¶ | |||
| 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." | |||
| The list of current Internet-Drafts can be accessed at | The list of current Internet-Drafts can be accessed at | |||
| http://www.ietf.org/ietf/1id-abstracts.txt. | http://www.ietf.org/ietf/1id-abstracts.txt. | |||
| The list of Internet-Draft Shadow Directories can be accessed at | The list of Internet-Draft Shadow Directories can be accessed at | |||
| http://www.ietf.org/shadow.html. | http://www.ietf.org/shadow.html. | |||
| This Internet-Draft will expire on December 12, 2009. | This Internet-Draft will expire on January 1, 2010. | |||
| Copyright Notice | Copyright Notice | |||
| Copyright (c) 2009 IETF Trust and the persons identified as the | Copyright (c) 2009 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 in effect on the date of | Provisions Relating to IETF Documents in effect on the date of | |||
| publication of this document (http://trustee.ietf.org/license-info). | publication of this document (http://trustee.ietf.org/license-info). | |||
| Please review these documents carefully, as they describe your rights | Please review these documents carefully, as they describe your rights | |||
| skipping to change at page 3, line 9 ¶ | skipping to change at page 3, line 9 ¶ | |||
| the Extended RTP Profile for RTCP-based Feedback (RTP/AVPF), allowing | the Extended RTP Profile for RTCP-based Feedback (RTP/AVPF), allowing | |||
| video switching MCUs to rapidly request resynchronisation. Finally, | video switching MCUs to rapidly request resynchronisation. Finally, | |||
| new RTP header extensions are defined to allow rapid synchronisation | new RTP header extensions are defined to allow rapid synchronisation | |||
| of late joiners, and guarantee correct timestamp based decoding order | of late joiners, and guarantee correct timestamp based decoding order | |||
| recovery for layered codecs in the presence of clock skew. | recovery for layered codecs in the presence of clock skew. | |||
| Table of Contents | Table of Contents | |||
| 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 4 | 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 4 | |||
| 2. Synchronisation of RTP Flows . . . . . . . . . . . . . . . . . 5 | 2. Synchronisation of RTP Flows . . . . . . . . . . . . . . . . . 5 | |||
| 2.1. Initial Synchronisation Delay . . . . . . . . . . . . . . 5 | 2.1. Initial Synchronisation Delay . . . . . . . . . . . . . . 6 | |||
| 2.1.1. Unicast Sessions . . . . . . . . . . . . . . . . . . . 6 | 2.1.1. Unicast Sessions . . . . . . . . . . . . . . . . . . . 6 | |||
| 2.1.2. Source Specific Multicast (SSM) Sessions . . . . . . . 6 | 2.1.2. Source Specific Multicast (SSM) Sessions . . . . . . . 7 | |||
| 2.1.3. Any Source Multicast (ASM) Sessions . . . . . . . . . 7 | 2.1.3. Any Source Multicast (ASM) Sessions . . . . . . . . . 8 | |||
| 2.1.4. Discussion . . . . . . . . . . . . . . . . . . . . . . 9 | 2.1.4. Discussion . . . . . . . . . . . . . . . . . . . . . . 9 | |||
| 2.2. Synchronisation for Late Joiners . . . . . . . . . . . . . 9 | 2.2. Synchronisation for Late Joiners . . . . . . . . . . . . . 10 | |||
| 3. Reducing RTP Synchronisation Delays . . . . . . . . . . . . . 10 | 3. Reducing RTP Synchronisation Delays . . . . . . . . . . . . . 10 | |||
| 3.1. Reduced Initial RTCP Interval for SSM Senders . . . . . . 10 | 3.1. Reduced Initial RTCP Interval for SSM Senders . . . . . . 11 | |||
| 3.2. Rapid Resynchronisation Request . . . . . . . . . . . . . 10 | 3.2. Rapid Resynchronisation Request . . . . . . . . . . . . . 11 | |||
| 3.3. In-band Delivery of Synchronisation Metadata . . . . . . . 11 | 3.3. In-band Delivery of Synchronisation Metadata . . . . . . . 12 | |||
| 4. Application to Decoding Order Recovery in Layered Codecs . . . 13 | 4. Application to Decoding Order Recovery in Layered Codecs . . . 14 | |||
| 4.1. Problem description . . . . . . . . . . . . . . . . . . . 13 | 4.1. Problem description . . . . . . . . . . . . . . . . . . . 14 | |||
| 4.2. In-band Synchronisation for Decoding Order Recovery . . . 14 | 4.2. In-band Synchronisation for Decoding Order Recovery . . . 15 | |||
| 4.3. Timestamp based decoding order recovery . . . . . . . . . 15 | 4.3. Timestamp based decoding order recovery . . . . . . . . . 16 | |||
| 5. Security Considerations . . . . . . . . . . . . . . . . . . . 19 | 5. Security Considerations . . . . . . . . . . . . . . . . . . . 19 | |||
| 6. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 19 | 6. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 20 | |||
| 7. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . 20 | 7. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . 20 | |||
| 8. References . . . . . . . . . . . . . . . . . . . . . . . . . . 20 | 8. References . . . . . . . . . . . . . . . . . . . . . . . . . . 20 | |||
| 8.1. Normative References . . . . . . . . . . . . . . . . . . . 20 | 8.1. Normative References . . . . . . . . . . . . . . . . . . . 20 | |||
| 8.2. Informative References . . . . . . . . . . . . . . . . . . 21 | 8.2. Informative References . . . . . . . . . . . . . . . . . . 21 | |||
| Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . . 22 | Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . . 22 | |||
| 1. Introduction | 1. Introduction | |||
| When using RTP to deliver multimedia content it's often necessary to | When using RTP to deliver multimedia content it's often necessary to | |||
| synchronise playout of audio and video components of a presentation. | synchronise playout of audio and video components of a presentation. | |||
| skipping to change at page 5, line 9 ¶ | skipping to change at page 5, line 9 ¶ | |||
| synchronisation latency is an issue. | synchronisation latency is an issue. | |||
| The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", | The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", | |||
| "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this | "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this | |||
| document are to be interpreted as described in RFC 2119 [3]. | document are to be interpreted as described in RFC 2119 [3]. | |||
| 2. Synchronisation of RTP Flows | 2. Synchronisation of RTP Flows | |||
| RTP flows are synchronised by receivers based on information that is | RTP flows are synchronised by receivers based on information that is | |||
| contained in RTCP SR packets generated by senders (specifically, the | contained in RTCP SR packets generated by senders (specifically, the | |||
| NTP and RTP timestamps). For multimedia sessions, each type of media | NTP-format timestamp and the RTP timestamp). Synchronisation | |||
| (e.g. audio or video) is sent in a separate RTP session, and the | requires that a common reference clock MUST be used to generate the | |||
| receiver associates RTP flows to be synchronised by means of the | NTP-format timestamps in a set of flows that are to be synchronised. | |||
| canonical end-point identifier (CNAME) item included in the RTCP | Furthermore, to achieve more rapid and accurate synchronisation, it | |||
| Source Description (SDES) packets generated by the sender or | is RECOMMENDED that senders and receivers use a common reference | |||
| signalled out of band [10]. For layered media, different layers can | clock where possible (recognising that this is often not possible | |||
| be sent in different RTP sessions, or using different SSRC values | when RTP is used outside of controlled environments); the means by | |||
| within a single RTP session; in both cases, the CNAME is used to | which that common reference clock is distributed are outside the | |||
| identify flows to be synchronised. To ensure synchronisation, an RTP | scope of this memo. | |||
| sender MUST therefore send periodic compound RTCP packets following | ||||
| Section 6 of RFC 3550 [1]. | ||||
| For multimedia sessions, each type of media (e.g. audio or video) is | ||||
| sent in a separate RTP session, and the receiver associates RTP flows | ||||
| to be synchronised by means of the canonical end-point identifier | ||||
| (CNAME) item included in the RTCP Source Description (SDES) packets | ||||
| generated by the sender or signalled out of band [10]. For layered | ||||
| media, different layers can be sent in different RTP sessions, or | ||||
| using different SSRC values within a single RTP session; in both | ||||
| cases, the CNAME is used to identify flows to be synchronised. To | ||||
| ensure synchronisation, an RTP sender MUST therefore send periodic | ||||
| compound RTCP packets following Section 6 of RFC 3550 [1]. | ||||
| The timing of these periodic compound RTCP packets will depend on the | The timing of these periodic compound RTCP packets will depend on the | |||
| number of members in each RTP session, the fraction of those that are | number of members in each RTP session, the fraction of those that are | |||
| sending data, the session bandwidth, the configured RTCP bandwidth | sending data, the session bandwidth, the configured RTCP bandwidth | |||
| fraction, and whether the session is multicast or unicast (see RFC | fraction, and whether the session is multicast or unicast (see RFC | |||
| 3550 Section 6.2 for details). In summary, RTCP control traffic is | 3550 Section 6.2 for details). In summary, RTCP control traffic is | |||
| allocated a small fraction, generally 5%, of the session bandwidth, | allocated a small fraction, generally 5%, of the session bandwidth, | |||
| and of that fraction, one quarter is allocated to active RTP senders, | and of that fraction, one quarter is allocated to active RTP senders, | |||
| while receivers use the remaining three quarters (these fractions can | while receivers use the remaining three quarters (these fractions can | |||
| be configured via SDP [11]). Each member of an RTP session derives | be configured via SDP [11]). Each member of an RTP session derives | |||
| an RTCP reporting interval based on these fractions, whether the | an RTCP reporting interval based on these fractions, whether the | |||
| skipping to change at page 10, line 11 ¶ | skipping to change at page 10, line 35 ¶ | |||
| does mean that the timing of RTCP SR reports for different RTP | does mean that the timing of RTCP SR reports for different RTP | |||
| sessions isn't synchronised. Accordingly, a receiver must | sessions isn't synchronised. Accordingly, a receiver must | |||
| estimate the skew on the NTP-format clock in order to align RTP | estimate the skew on the NTP-format clock in order to align RTP | |||
| timestamps across sessions. This estimation is an essential part | timestamps across sessions. This estimation is an essential part | |||
| of an RTP synchronisation implementation, and can be done with | of an RTP synchronisation implementation, and can be done with | |||
| high accuracy given sufficient reports. Collecting sufficient | high accuracy given sufficient reports. Collecting sufficient | |||
| RTCP SR data to perform this estimation, however, may require | RTCP SR data to perform this estimation, however, may require | |||
| reception of several RTCP reports, further increasing the | reception of several RTCP reports, further increasing the | |||
| synchronisation delay. | synchronisation delay. | |||
| 3. Many media codecs have the notion of periodic access points, such | ||||
| that a newly joined receiver often cannot start decoding a media | ||||
| stream until the packets corresponding to the access point have | ||||
| been received. These access points may be sent less often than | ||||
| RTCP SR packets, and so may be the limiting factor in starting | ||||
| synchronised media playout for late joiners. | ||||
| These delays are likely an issue for tuning in to an ongoing | These delays are likely an issue for tuning in to an ongoing | |||
| multicast RTP session, or for video switching MCUs. | multicast RTP session, or for video switching MCUs. | |||
| 3. Reducing RTP Synchronisation Delays | 3. Reducing RTP Synchronisation Delays | |||
| Three backwards compatible RTP extensions are defined to reduce the | Three backwards compatible RTP extensions are defined to reduce the | |||
| possible synchronisation delay: a reduced initial RTCP interval for | possible synchronisation delay: a reduced initial RTCP interval for | |||
| SSM senders, a rapid resynchronisation request message, and RTP | SSM senders, a rapid resynchronisation request message, and RTP | |||
| header extensions that can convey synchronisation metadata in-band. | header extensions that can convey synchronisation metadata in-band. | |||
| skipping to change at page 11, line 31 ¶ | skipping to change at page 12, line 12 ¶ | |||
| When using SSM sessions with unicast feedback, is possible that the | When using SSM sessions with unicast feedback, is possible that the | |||
| feedback target and media source are not co-located. If a feedback | feedback target and media source are not co-located. If a feedback | |||
| target receives an RTCP-SR-REQ feedback message in such a case, the | target receives an RTCP-SR-REQ feedback message in such a case, the | |||
| request should be forwarded to the media source. The mechanism to be | request should be forwarded to the media source. The mechanism to be | |||
| used for forwarding such requests is not defined here. | used for forwarding such requests is not defined here. | |||
| 3.3. In-band Delivery of Synchronisation Metadata | 3.3. In-band Delivery of Synchronisation Metadata | |||
| The RTP header extension mechanism defined in [6] can be adopted to | The RTP header extension mechanism defined in [6] can be adopted to | |||
| carry an OPTIONAL NTP format wall clock timestamp in RTP data | carry an OPTIONAL NTP format timestamp in RTP data packets. If such | |||
| packets. If such a timestamp is included, it MUST correspond to the | a timestamp is included, it MUST correspond to the same time instant | |||
| same time instant as the RTP timestamp in the packet's header, and | as the RTP timestamp in the packet's header, and MUST be derived from | |||
| MUST be derived from the same clock used to generate the NTP format | the same clock used to generate the NTP format timestamps included in | |||
| timestamps included in RTCP SR packets. Provided it has knowledge of | RTCP SR packets. Provided it has knowledge of the SSRC to CNAME | |||
| the SSRC to CNAME mapping, either from prior receipt of an RTCP CNAME | mapping, either from prior receipt of an RTCP CNAME packet or via | |||
| packet or via out-of-band signalling [10], the receiver can use the | out-of-band signalling [10], the receiver can use the information | |||
| information provided as input to the synchronisation algorithm, in | provided as input to the synchronisation algorithm, in exactly the | |||
| exactly the same way as if an additional RTCP SR packet was been | same way as if an additional RTCP SR packet was been received for the | |||
| received for the flow. | flow. | |||
| Two variants are defined for this header extension. The first | Two variants are defined for this header extension. The first | |||
| variant extends the RTP header with a 64 bit NTP timestamp format | variant extends the RTP header with a 64 bit NTP timestamp format | |||
| timestamp as defined in [7]. The second variant carries the lower 24 | timestamp as defined in [7]. The second variant carries the lower 24 | |||
| bit part of the Seconds of a NTP timestamp format timestamp and the | bit part of the Seconds of a NTP timestamp format timestamp and the | |||
| 32 bit of the Fraction of a NTP timestamp format timestamp. The | 32 bit of the Fraction of a NTP timestamp format timestamp. The | |||
| formats of the two variants are shown below. | formats of the two variants are shown below. | |||
| Variant A/64-bit NTP RTP header extension (length: 16 bytes): | Variant A/64-bit NTP RTP header extension (length: 16 bytes): | |||
| skipping to change at page 13, line 5 ¶ | skipping to change at page 13, line 31 ¶ | |||
| | NTP timestamp format - Fraction (bit 0-31) |n | | NTP timestamp format - Fraction (bit 0-31) |n | |||
| +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ | +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ | |||
| | payload data | | | payload data | | |||
| | .... | | | .... | | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| An NTP timestamp format timestamp MAY be included on any RTP packets | An NTP timestamp format timestamp MAY be included on any RTP packets | |||
| the sender chooses, but it is RECOMMENDED when performing timestamp | the sender chooses, but it is RECOMMENDED when performing timestamp | |||
| based decoding order recovery for layered codecs transported in | based decoding order recovery for layered codecs transported in | |||
| multiple RTP flows, as further specified in Section 4.2. This header | multiple RTP flows, as further specified in Section 4.2. This header | |||
| extension MAY be also sent on the RTP packets corresponding to a | extension SHOULD be also sent on the RTP packets corresponding to a | |||
| video random access point, and on the associated audio packets, to | video random access point, and on the associated audio packets, to | |||
| allow rapid synchronisation for late joiners in multimedia sessions, | allow rapid synchronisation for late joiners in multimedia sessions, | |||
| and in video switching scenarios. | and in video switching scenarios. | |||
| Note: The inclusion of an RTP header extension will reduce the | Note: The inclusion of an RTP header extension will reduce the | |||
| efficiency of RTP header compression, if it is used. Furthermore, | efficiency of RTP header compression, if it is used. Furthermore, | |||
| middle boxes which do not understand the header extensions may remove | middle boxes which do not understand the header extensions may remove | |||
| them or may not update the content according to this memo. | them or may not update the content according to this memo. | |||
| In all cases, irrespective of whether in-band NTP timestamp format | In all cases, irrespective of whether in-band NTP timestamp format | |||
| skipping to change at page 13, line 38 ¶ | skipping to change at page 14, line 18 ¶ | |||
| o The URI used for signaling the use of Variant A/64-bit NTP RTP | o The URI used for signaling the use of Variant A/64-bit NTP RTP | |||
| header extension in SDP is "urn:ietf:params:rtp-hdrext:ntp-64". | header extension in SDP is "urn:ietf:params:rtp-hdrext:ntp-64". | |||
| o The URI used for signaling the use of Variant B/56-bit NTP RTP | o The URI used for signaling the use of Variant B/56-bit NTP RTP | |||
| header extension in SDP is "urn:ietf:params:rtp-hdrext:ntp-56". | header extension in SDP is "urn:ietf:params:rtp-hdrext:ntp-56". | |||
| 4. Application to Decoding Order Recovery in Layered Codecs | 4. Application to Decoding Order Recovery in Layered Codecs | |||
| Based on the timestamp contained in each RTP data packet, and the | Based on the timestamp contained in each RTP data packet, and the | |||
| mapping to an NTP format wallclock time, a decoding order recovery | mapping to an NTP format timestamp, a decoding order recovery process | |||
| process may be applied if a media as result of a layered coding | may be applied if a media as result of a layered coding process is | |||
| process is transported in multiple RTP flows. This recovers the | transported in multiple RTP flows. This recovers the decoding order | |||
| decoding order of media frames or samples at the receiver. | of media frames or samples at the receiver. Especially when | |||
| Especially when transporting layered video, the decoding order | transporting layered video, the decoding order recovery process is | |||
| recovery process is not straight forward. In this section, we | not straight forward. In this section, we provide guidance on how to | |||
| provide guidance on how to use RTP/NTP timing information for | use RTP/NTP timing information for decoding order recovery. | |||
| decoding order recovery. | ||||
| 4.1. Problem description | 4.1. Problem description | |||
| One option for decoding order recovery in layered codecs is to use | One option for decoding order recovery in layered codecs is to use | |||
| the NTP/sample presentation timestamps to reorder data of the same | the NTP/sample presentation timestamps to reorder data of the same | |||
| layered media transported in multiple RTP flows. For a timestamp- | layered media transported in multiple RTP flows. For a timestamp- | |||
| based decoding order recovery process, it is crucial to allow exact | based decoding order recovery process, it is crucial to allow exact | |||
| alignment of media frames respectively samples using the NTP timing | alignment of media frames respectively samples using the NTP timing | |||
| information. | information. | |||
| In the presence of clock skew in used clock for wallclock timestamp | In the presence of clock skew in NTP-format clock, it may not be | |||
| generation, it may not be possible to derive exact matching NTP | possible to derive exact matching NTP timestamps using the NTP format | |||
| timestamps using the NTP format wallclock in each RTP flow's RTCP | clock in each RTP flow's RTCP sender reports. This is due to the | |||
| sender reports. This is due to the fact that RTCP sender reports are | fact that RTCP sender reports are not sent at the same point of time | |||
| not sent at the same point of time in the multiple RTP flows | in the multiple RTP flows transporting data of the same layered | |||
| transporting data of the same layered media, while having a skew | media, while having a skew between those samples in the RTP flows | |||
| between those wallclock samples in the RTP flows RTCP sender reports. | RTCP sender reports. If the RTCP SR packets are not send | |||
| If the RTCP SR packets are not send synchronously in the multiple RTP | synchronously in the multiple RTP flows, they therefore do not | |||
| flows, they therefore do not contain the same NTP wallclock | contain the same NTP-format timestamp. If there is a skew present in | |||
| timestamp. If there is a skew present in the clock used for NTP | the clock used for NTP-format timestamp generation, using different | |||
| wallclock timestamp generation, using different wallclock timestamps | NTP-format timestamps for the same sampling instance in the RTP flow | |||
| for the same sampling instance in the RTP flow inevitably leads to | inevitably leads to non-matching NTP timestamps generated from RTP | |||
| non-matching NTP timestamps generated from RTP timestamps and | timestamps and NTP-format timestamps in the multiple RTP flows. In | |||
| wallclock timestamp in the multiple RTP flows. In order to allow a | order to allow a common and straight forward timestamp-based decoding | |||
| common and straight forward timestamp-based decoding order recovery | order recovery process, it is important to guarantee exact matching | |||
| process, it is important to guarantee exact matching of NTP | of NTP timestamps. Thus in the presence of non-perfect clocks, which | |||
| timestamps. Thus in the presence of non-perfect clocks, which should | should be the normal case, an additional mechanism SHALL be used. An | |||
| be the normal case, an additional mechanism SHALL be used. An exact | exact inter-flow alignment of NTP timestamps can be guaranteed, if an | |||
| inter-flow alignment of NTP timestamps can be guaranteed, if an RTP | RTP header extension containing an NTP timestamp is always inserted | |||
| header extension containing an NTP timestamp is always inserted at | at the same timing position in all the RTP flows in question, and if | |||
| the same timing position in all the RTP flows in question, and if | ||||
| those NTP header extensions are used to update the NTP-RTP relation | those NTP header extensions are used to update the NTP-RTP relation | |||
| in all RTP flows at the same point of time. This is called | in all RTP flows at the same point of time. This is called | |||
| synchronous insertion of RTP header extensions in the following. | synchronous insertion of RTP header extensions in the following. | |||
| 4.2. In-band Synchronisation for Decoding Order Recovery | 4.2. In-band Synchronisation for Decoding Order Recovery | |||
| The RTP header extension to convey an NTP timestamp SHOULD be used | The RTP header extension to convey an NTP timestamp SHOULD be used | |||
| with a layered, multi-description, or multi-view codec, to provide | with a layered, multi-description, or multi-view codec, to provide | |||
| exact matching of NTP timestamps between layers, descriptions, or | exact matching of NTP timestamps between layers, descriptions, or | |||
| views transported in different RTP flows to allow timestamp-based | views transported in different RTP flows to allow timestamp-based | |||
| decoding order recovery. If this header extension is inserted for | decoding order recovery. If this header extension is inserted for | |||
| RTP flows transporting samples or parts of samples of the same | RTP flows transporting samples or parts of samples of the same | |||
| layered media, it SHALL be included at least once in each of the RTP | layered media, it SHALL be included at least once in each of the RTP | |||
| flows of the same media for the sampling time instance of an | flows of the same media for the sampling time instance of an | |||
| insertion of an RTP header extension. Such synchronously inserted | insertion of an RTP header extension. Such synchronously inserted | |||
| RTP header extensions SHALL contain the same NTP format wallclock | RTP header extensions SHALL contain the same NTP format timestamp. | |||
| timestamp. The frequency of inserting the header extensions in the | The frequency of inserting the header extensions in the RTP flows is | |||
| RTP flows is up to the sender, but it should be noticed that higher | up to the sender, but it should be noticed that higher insertion | |||
| insertion frequencies obviously lead to higher synchronization | frequencies obviously lead to higher synchronization frequencies. | |||
| frequencies. For use cases where the same clock source has been used | For use cases where the same clock source has been used to generate | |||
| to generate the RTP timestamps in the multiple RTP flows, an | the RTP timestamps in the multiple RTP flows, an application MAY rely | |||
| application MAY rely on the RTP timestamps only for decoding order | on the RTP timestamps only for decoding order recovery starting from | |||
| recovery starting from the point of synchronous insertion of the RTP | the point of synchronous insertion of the RTP header extensions | |||
| header extensions containing NTP timestamps. | containing NTP timestamps. | |||
| Note: If the decoding order of RTP flows is given by any means (as | Note: If the decoding order of RTP flows is given by any means (as | |||
| e.g., for RTP session by mechanism defined in [8]), the NTP timestamp | e.g., for RTP session by mechanism defined in [8]), the NTP timestamp | |||
| provided by the header extension allows to collect data of the same | provided by the header extension allows to collect data of the same | |||
| sample from the RTP flows, forming the sample decoding order. There | sample from the RTP flows, forming the sample decoding order. There | |||
| may be future mechanism to allow indication of dependencies of RTP | may be future mechanism to allow indication of dependencies of RTP | |||
| flows transported as RTP streams using SSRC multiplexing | flows transported as RTP streams using SSRC multiplexing | |||
| It is RECOMMENDED that the receiver uses for timestamp-based decoding | It is RECOMMENDED that the receiver uses for timestamp-based decoding | |||
| order recovery the NTP timestamps provided in the RTP header | order recovery the NTP timestamps provided in the RTP header | |||
| skipping to change at page 15, line 50 ¶ | skipping to change at page 16, line 27 ¶ | |||
| presence of clock skew, since the points of insertion may be the only | presence of clock skew, since the points of insertion may be the only | |||
| points for a receiver to start the decoding order recovery. | points for a receiver to start the decoding order recovery. | |||
| 4.3. Timestamp based decoding order recovery | 4.3. Timestamp based decoding order recovery | |||
| If parts or complete samples as result of a layered coding process | If parts or complete samples as result of a layered coding process | |||
| are transported as different RTP flows, i.e. as different RTP | are transported as different RTP flows, i.e. as different RTP | |||
| streams, and/or as different RTP sessions, a decoding order recovery | streams, and/or as different RTP sessions, a decoding order recovery | |||
| process is required to reorder the samples or parts of samples | process is required to reorder the samples or parts of samples | |||
| received. Such mechanism may be based on the NTP presentation | received. Such mechanism may be based on the NTP presentation | |||
| timestamp which can be derived from the RTP timestamp using the NTP | timestamp which can be derived from the RTP timestamp using the NTP- | |||
| wallclock provided in the RTCP sender report packets. | format timestamp provided in the RTCP sender report packets. | |||
| In order to guarantee the exact alignment of those derived NTP | In order to guarantee the exact alignment of those derived NTP | |||
| presentation timestamps, the RTP header extension as defined in this | presentation timestamps, the RTP header extension as defined in this | |||
| memo in Section 3.3 allows the receiver to start the decoding order | memo in Section 3.3 allows the receiver to start the decoding order | |||
| recovery before the reception of a RTCP sender report if the RTP | recovery before the reception of a RTCP sender report if the RTP | |||
| header extension is earlier provided in the RTP flow. Using the RTP | header extension is earlier provided in the RTP flow. Using the RTP | |||
| header extensions may be the only way to allow correct decoding order | header extensions may be the only way to allow correct decoding order | |||
| recovery based on exact matching of NTP timestamps in the presence of | recovery based on exact matching of NTP timestamps in the presence of | |||
| clock skew in the clock used for generating the NTP wallclock. | clock skew in the clock used for generating the NTP format clock. | |||
| Furthermore, some use cases may allow to use synchronously inserted | Furthermore, some use cases may allow to use synchronously inserted | |||
| RTP header extensions containing NTP timestamps to align the RTP | RTP header extensions containing NTP timestamps to align the RTP | |||
| timestamps of the multiple RTP flows, i.e. use cases where the RTP | timestamps of the multiple RTP flows, i.e. use cases where the RTP | |||
| timestamps of the multiple RTP flows are generated from the same | timestamps of the multiple RTP flows are generated from the same | |||
| clock source. In such use cases, starting from a synchronous | clock source. In such use cases, starting from a synchronous | |||
| insertion of the RTP header extensions, the application may use the | insertion of the RTP header extensions, the application may use the | |||
| detected difference of RTP random offset values in the multiple | detected difference of RTP random offset values in the multiple | |||
| sessions to align the media samples of parts of samples. | sessions to align the media samples of parts of samples. | |||
| skipping to change at page 18, line 6 ¶ | skipping to change at page 18, line 34 ¶ | |||
| the first higher RTP flow and depends on A, and C is the second | the first higher RTP flow and depends on A, and C is the second | |||
| higher RTP flow corresponding to flow A and depends on A and B. A | higher RTP flow corresponding to flow A and depends on A and B. A | |||
| media coding structure is used that results in samples present in | media coding structure is used that results in samples present in | |||
| higher flows but not present in all lower flows. Flow A has the | higher flows but not present in all lower flows. Flow A has the | |||
| lowest frame rate and Flow B and C have the same but higher frame | lowest frame rate and Flow B and C have the same but higher frame | |||
| rate. The figure shows the full video samples with their | rate. The figure shows the full video samples with their | |||
| corresponding RTP timestamps "(x)". The video samples are already | corresponding RTP timestamps "(x)". The video samples are already | |||
| re-ordered according to their RTP sequence number order. The figure | re-ordered according to their RTP sequence number order. The figure | |||
| indicates for the received sample in decoding order within each RTP | indicates for the received sample in decoding order within each RTP | |||
| flow, as well as the associated NTP media timestamps ("TS[..]"). | flow, as well as the associated NTP media timestamps ("TS[..]"). | |||
| These timestamps may be derived using the NTP format wallclock | These timestamps may be derived using the NTP format timestamp | |||
| provided in the RTCP sender reports or as shown in the figure | provided in the RTCP sender reports or as shown in the figure | |||
| directly from the NTP timestamp contained in the RTP header | directly from the NTP timestamp contained in the RTP header | |||
| extensions as indicate by the timestamp in "<x>". Note that the | extensions as indicate by the timestamp in "<x>". Note that the | |||
| timestamps are not in increasing order since, in this example, the | timestamps are not in increasing order since, in this example, the | |||
| decoding order is different from the output/presentation order. | decoding order is different from the output/presentation order. | |||
| The process first proceeds to the sample parts associated with the | The process first proceeds to the sample parts associated with the | |||
| first available synchronous insertion of NTP timestamp into RTP | first available synchronous insertion of NTP timestamp into RTP | |||
| header extensions at NTP media timestamp TS=[8] and starts in the | header extensions at NTP media timestamp TS=[8] and starts in the | |||
| highest RTP flow C and removes/ignores all preceding sample parts (in | highest RTP flow C and removes/ignores all preceding sample parts (in | |||
| skipping to change at page 18, line 30 ¶ | skipping to change at page 19, line 9 ¶ | |||
| selected and sample parts starting from RTP flow A, and flow B and C | selected and sample parts starting from RTP flow A, and flow B and C | |||
| are placed in order of the RTP flow dependency as indicated by | are placed in order of the RTP flow dependency as indicated by | |||
| mechanisms defined in [8] (in the example for TS[8]: first flow B and | mechanisms defined in [8] (in the example for TS[8]: first flow B and | |||
| then flow C into the video sample VS(TS[8]) associated with NTP media | then flow C into the video sample VS(TS[8]) associated with NTP media | |||
| timestamp TS=[8]. Then the next media timestamp TS=[6] (RTP | timestamp TS=[8]. Then the next media timestamp TS=[6] (RTP | |||
| timestamp=(4)) in order of appearance in the highest RTP flow C is | timestamp=(4)) in order of appearance in the highest RTP flow C is | |||
| processed and the process described above is repeated. Note that | processed and the process described above is repeated. Note that | |||
| there may be video samples with no sample parts present, e.g., in the | there may be video samples with no sample parts present, e.g., in the | |||
| lowest RTP flow A (see, e.g., TS=[5]). The decoding order recovery | lowest RTP flow A (see, e.g., TS=[5]). The decoding order recovery | |||
| process could be also started after receiving all RTP sender reports | process could be also started after receiving all RTP sender reports | |||
| "RTP"-"wallclock" mapping (indicated as timestamps "(x){y}") assuming | RTP timestamp to NTP-format timestamp mapping (indicated as | |||
| that there is no clock skew in the source used for the wallclock | timestamps "(x){y}") assuming that there is no clock skew in the | |||
| generation. | source used for the NTP-format timestamp generation. | |||
| C:-(0)----(2)----(7)<8>--(5)----(4)----(6)-----(11)----(9){10}- | C:-(0)----(2)----(7)<8>--(5)----(4)----(6)-----(11)----(9){10}- | |||
| | | | | | | | | | | | | | | | | | | |||
| B:-(3)----(5)---(10)<8>--(8)----(7)----(9){7}--(14)----(12)---- | B:-(3)----(5)---(10)<8>--(8)----(7)----(9){7}--(14)----(12)---- | |||
| | | | | | | | | | | |||
| A:---------------(3)<8>--(1)-------------------(7){12}-(5)----- | A:---------------(3)<8>--(1)-------------------(7){12}-(5)----- | |||
| ---------------------------------------decoding/transmission order-> | ---------------------------------------decoding/transmission order-> | |||
| TS:[1] [3] [8]=<8> [6] [5] [7] [12] [10] | TS:[1] [3] [8]=<8> [6] [5] [7] [12] [10] | |||
| skipping to change at page 20, line 30 ¶ | skipping to change at page 20, line 38 ¶ | |||
| Description: Synchronisation metadata: 56-bit timestamp format | Description: Synchronisation metadata: 56-bit timestamp format | |||
| Contact: Thomas Schierl <Thomas.Schierl@hhi.fraunhofer.de> | Contact: Thomas Schierl <Thomas.Schierl@hhi.fraunhofer.de> | |||
| IETF Audio/Video Transport Working Group | IETF Audio/Video Transport Working Group | |||
| Reference: RFC XXXX | Reference: RFC XXXX | |||
| 7. Acknowledgements | 7. Acknowledgements | |||
| This memo has benefitted from discussions with numerous members of | This memo has benefitted from discussions with numerous members of | |||
| the IETF AVT working group, including Jonathan Lennox, Magnus | the IETF AVT working group, including Jonathan Lennox, Magnus | |||
| Westerlund, Randell Jesup, Gerard Babonneau, Ingemar Johansson, Ali | Westerlund, Randell Jesup, Gerard Babonneau, Ingemar Johansson, Ali | |||
| Began, Ye-Kui Wang, and Roni Even. The header extension format of | C. Begen, Ye-Kui Wang, Roni Even, Michael Dolan, and Art Allison. | |||
| Variant A in Section 3.3 was suggested by Dave Singer, matching a | The header extension format of Variant A in Section 3.3 was suggested | |||
| similar mechanism specified by ISMA. | by Dave Singer, matching a similar mechanism specified by ISMA. | |||
| 8. References | 8. References | |||
| 8.1. Normative References | 8.1. Normative References | |||
| [1] Schulzrinne, H., Casner, S., Frederick, R., and V. Jacobson, | [1] Schulzrinne, H., Casner, S., Frederick, R., and V. Jacobson, | |||
| "RTP: A Transport Protocol for Real-Time Applications", STD 64, | "RTP: A Transport Protocol for Real-Time Applications", STD 64, | |||
| RFC 3550, July 2003. | RFC 3550, July 2003. | |||
| [2] Ott, J., Wenger, S., Sato, N., Burmeister, C., and J. Rey, | [2] Ott, J., Wenger, S., Sato, N., Burmeister, C., and J. Rey, | |||
| End of changes. 21 change blocks. | ||||
| 86 lines changed or deleted | 100 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/ | ||||