| draft-ietf-avt-rapid-rtp-sync-04.txt | draft-ietf-avt-rapid-rtp-sync-05.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 July 3, 2009 | Intended status: Standards Track July 13, 2009 | |||
| Expires: January 4, 2010 | Expires: January 14, 2010 | |||
| Rapid Synchronisation of RTP Flows | Rapid Synchronisation of RTP Flows | |||
| draft-ietf-avt-rapid-rtp-sync-04.txt | draft-ietf-avt-rapid-rtp-sync-05.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 January 4, 2010. | This Internet-Draft will expire on January 14, 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 14 ¶ | skipping to change at page 3, line 14 ¶ | |||
| 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 . . . . . . . . . . . . . . 6 | 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 . . . . . . . 7 | 2.1.2. Source Specific Multicast (SSM) Sessions . . . . . . . 7 | |||
| 2.1.3. Any Source Multicast (ASM) Sessions . . . . . . . . . 8 | 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 . . . . . . . . . . . . . 10 | 2.2. Synchronisation for Late Joiners . . . . . . . . . . . . . 9 | |||
| 3. Reducing RTP Synchronisation Delays . . . . . . . . . . . . . 10 | 3. Reducing RTP Synchronisation Delays . . . . . . . . . . . . . 10 | |||
| 3.1. Reduced Initial RTCP Interval for SSM Senders . . . . . . 11 | 3.1. Reduced Initial RTCP Interval for SSM Senders . . . . . . 10 | |||
| 3.2. Rapid Resynchronisation Request . . . . . . . . . . . . . 11 | 3.2. Rapid Resynchronisation Request . . . . . . . . . . . . . 11 | |||
| 3.3. In-band Delivery of Synchronisation Metadata . . . . . . . 12 | 3.3. In-band Delivery of Synchronisation Metadata . . . . . . . 12 | |||
| 4. Application to Decoding Order Recovery in Layered Codecs . . . 14 | 4. Application to Decoding Order Recovery in Layered Codecs . . . 14 | |||
| 4.1. Problem description . . . . . . . . . . . . . . . . . . . 14 | 4.1. In-band Synchronisation for Decoding Order Recovery . . . 14 | |||
| 4.2. In-band Synchronisation for Decoding Order Recovery . . . 15 | 4.2. Timestamp based decoding order recovery . . . . . . . . . 15 | |||
| 4.3. Timestamp based decoding order recovery . . . . . . . . . 16 | 4.3. Example . . . . . . . . . . . . . . . . . . . . . . . . . 16 | |||
| 5. Security Considerations . . . . . . . . . . . . . . . . . . . 19 | 5. Security Considerations . . . . . . . . . . . . . . . . . . . 18 | |||
| 6. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 20 | 6. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 18 | |||
| 7. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . 20 | 7. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . 18 | |||
| 8. References . . . . . . . . . . . . . . . . . . . . . . . . . . 20 | 8. References . . . . . . . . . . . . . . . . . . . . . . . . . . 19 | |||
| 8.1. Normative References . . . . . . . . . . . . . . . . . . . 20 | 8.1. Normative References . . . . . . . . . . . . . . . . . . . 19 | |||
| 8.2. Informative References . . . . . . . . . . . . . . . . . . 21 | 8.2. Informative References . . . . . . . . . . . . . . . . . . 19 | |||
| Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . . 22 | Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . . 20 | |||
| 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. | |||
| This is achieved using information contained in RTP Control Protocol | This is achieved using information contained in RTP Control Protocol | |||
| (RTCP) Sender Report (SR) packets [1]. These are sent periodically, | (RTCP) Sender Report (SR) packets [1]. These are sent periodically, | |||
| and the components of a multimedia session cannot be synchronised | and the components of a multimedia session cannot be synchronised | |||
| until sufficient RTCP SR packets have been received for each RTP flow | until sufficient RTCP SR packets have been received for each RTP flow | |||
| to allow the receiver to establish mappings between the media clock | to allow the receiver to establish mappings between the media clock | |||
| skipping to change at page 4, line 41 ¶ | skipping to change at page 4, line 41 ¶ | |||
| flows. This can reduce the synchronisation delay when joining | flows. This can reduce the synchronisation delay when joining | |||
| sessions with large RTCP reporting intervals, in the presence of | sessions with large RTCP reporting intervals, in the presence of | |||
| packet loss, or when video switching MCUs are employed. See | packet loss, or when video switching MCUs are employed. See | |||
| Section 3.2. | Section 3.2. | |||
| o Two RTP header extensions are defined, to deliver synchronisation | o Two RTP header extensions are defined, to deliver synchronisation | |||
| metadata in-band with RTP data packets. These extensions provide | metadata in-band with RTP data packets. These extensions provide | |||
| synchronisation metadata that is aligned with RTP data packets, | synchronisation metadata that is aligned with RTP data packets, | |||
| and so eliminate the need to estimate clock-skew between flows | and so eliminate the need to estimate clock-skew between flows | |||
| before synchronisation. They can also reduce the need to receive | before synchronisation. They can also reduce the need to receive | |||
| RTCP SR packets before flows can be synchronising, although it | RTCP SR packets before flows can be synchronised, although it does | |||
| does not eliminate the need for RTCP. See Section 3.3. | not eliminate the need for RTCP. See Section 3.3. | |||
| The immediate use-case for these extensions is to reduce the delay | The immediate use-case for these extensions is to reduce the delay | |||
| due to synchronisation when joining a layered video session (e.g. an | due to synchronisation when joining a layered video session (e.g. an | |||
| H.264/SVC session in NI-T mode [9]). The extensions are not specific | H.264/SVC session in NI-T mode [9]). The extensions are not specific | |||
| to layered coding, however, and can be used in any environment when | to layered coding, however, and can be used in any environment when | |||
| 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-format timestamp and the RTP timestamp). Synchronisation | NTP-format timestamp and the RTP timestamp). Synchronisation | |||
| requires that a common reference clock MUST be used to generate the | requires that a common reference clock MUST be used to generate the | |||
| NTP-format timestamps in a set of flows that are to be synchronised. | NTP-format timestamps in a set of flows that are to be synchronised | |||
| Furthermore, to achieve more rapid and accurate synchronisation, it | (i.e. when synchronising several RTP flows, the RTP timestamps for | |||
| is RECOMMENDED that senders and receivers use a common reference | each flow are derived from separate, and media specific, clocks, but | |||
| the NTP format timestamps in the RTCP SR packets of all flows to be | ||||
| synchronised MUST be sampled from the same clock). To achieve faster | ||||
| and more accurate synchronisation, it is further RECOMMENDED that | ||||
| senders and receivers use a synchronised common NTP format reference | ||||
| clock with common properties, especially timebase, where possible | clock with common properties, especially timebase, where possible | |||
| (recognising that this is often not possible when RTP is used outside | (recognising that this is often not possible when RTP is used outside | |||
| of controlled environments); the means by which that common reference | of controlled environments); the means by which that common reference | |||
| clock and its properties are signalled and distributed is outside the | clock and its properties are signalled and distributed is outside the | |||
| scope of this memo. | scope of this memo. | |||
| For multimedia sessions, each type of media (e.g. audio or video) is | 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 | sent in a separate RTP session, and the receiver associates RTP flows | |||
| to be synchronised by means of the canonical end-point identifier | to be synchronised by means of the canonical end-point identifier | |||
| (CNAME) item included in the RTCP Source Description (SDES) packets | (CNAME) item included in the RTCP Source Description (SDES) packets | |||
| skipping to change at page 6, line 18 ¶ | skipping to change at page 6, line 22 ¶ | |||
| 2.1. Initial Synchronisation Delay | 2.1. Initial Synchronisation Delay | |||
| A multimedia session comprises a set of concurrent RTP sessions among | A multimedia session comprises a set of concurrent RTP sessions among | |||
| a common group of participants, using one RTP session for each media | a common group of participants, using one RTP session for each media | |||
| type. For example, a videoconference (which is a multimedia session) | type. For example, a videoconference (which is a multimedia session) | |||
| might contain an audio RTP session and a video RTP session. To allow | might contain an audio RTP session and a video RTP session. To allow | |||
| a receiver to synchronise the components of a multimedia session, a | a receiver to synchronise the components of a multimedia session, a | |||
| compound RTCP packet containing an RTCP SR packet and an RTCP SDES | compound RTCP packet containing an RTCP SR packet and an RTCP SDES | |||
| packet with a CNAME item MUST be sent to each of the RTP sessions in | packet with a CNAME item MUST be sent to each of the RTP sessions in | |||
| the multimedia session. A receiver cannot synchronise playout across | the multimedia session by each sender. A receiver cannot synchronise | |||
| the multimedia session until such RTCP packets have been received on | playout across the multimedia session until such RTCP packets have | |||
| all of the component RTP sessions. If there is no packet loss, this | been received on all of the component RTP sessions. If there is no | |||
| gives an expected initial synchronisation delay equal to the average | packet loss, this gives an expected initial synchronisation delay | |||
| time taken to receive the first RTCP packet in the RTP session with | equal to the average time taken to receive the first RTCP packet in | |||
| the longest RTCP reporting interval. This will vary between unicast | the RTP session with the longest RTCP reporting interval. This will | |||
| and multicast RTP sessions. | vary between unicast and multicast RTP sessions. | |||
| The initial synchronisation delay for layered sessions is similar to | The initial synchronisation delay for layered sessions is similar to | |||
| that for multimedia sessions. The layers cannot be synchronised | that for multimedia sessions. The layers cannot be synchronised | |||
| until the RTCP SR and CNAME information has been received for each | until the RTCP SR and CNAME information has been received for each | |||
| layer in the session. | layer in the session. | |||
| 2.1.1. Unicast Sessions | 2.1.1. Unicast Sessions | |||
| For unicast multimedia or layered sessions, senders SHOULD transmit | For unicast multimedia or layered sessions, senders SHOULD transmit | |||
| an initial compound RTCP packet (containing an RTCP SR packet and an | an initial compound RTCP packet (containing an RTCP SR packet and an | |||
| skipping to change at page 7, line 41 ¶ | skipping to change at page 7, line 44 ¶ | |||
| 256 kbps| 0.70 0.70 0.70 0.70 0.70 0.70 0.70 0.70 | 256 kbps| 0.70 0.70 0.70 0.70 0.70 0.70 0.70 0.70 | |||
| 512 kbps| 0.35 0.35 0.35 0.35 0.35 0.35 0.35 0.35 | 512 kbps| 0.35 0.35 0.35 0.35 0.35 0.35 0.35 0.35 | |||
| 1 Mbps| 0.18 0.18 0.18 0.18 0.18 0.18 0.18 0.18 | 1 Mbps| 0.18 0.18 0.18 0.18 0.18 0.18 0.18 0.18 | |||
| 2 Mbps| 0.09 0.09 0.09 0.09 0.09 0.09 0.09 0.09 | 2 Mbps| 0.09 0.09 0.09 0.09 0.09 0.09 0.09 0.09 | |||
| 4 Mbps| 0.04 0.04 0.04 0.04 0.04 0.04 0.04 0.04 | 4 Mbps| 0.04 0.04 0.04 0.04 0.04 0.04 0.04 0.04 | |||
| Figure 1: Average RTCP reporting interval in seconds for an RTP | Figure 1: Average RTCP reporting interval in seconds for an RTP | |||
| Session with 1 sender. | Session with 1 sender. | |||
| These numbers assume a source specific multicast channel with a | These numbers assume a source specific multicast channel with a | |||
| single active sender, which the rules in RFC 3550 section 6.3 give a | single active sender, assuming an average RTCP packet size of 70 | |||
| fixed fraction of the RTCP bandwidth irrespective of the number of | octets. These intervals are sufficient for lip-synchronisation | |||
| receivers. It can be seen that they are sufficient for lip- | without excessive delay, but might be viewed as having too much | |||
| synchronisation without excessive delay, but might be viewed as | latency for synchronising parts of a layered video stream. | |||
| having too much latency for synchronising parts of a layered video | ||||
| stream. | ||||
| The RTCP interval is randomised in the usual manner, so the minimum | The RTCP interval is randomised in the usual manner, so the minimum | |||
| synchronisation delay will be half these intervals, and the maximum | synchronisation delay will be half these intervals, and the maximum | |||
| delay will be 1.5 times these intervals. Note also that these RTCP | delay will be 1.5 times these intervals. Note also that these RTCP | |||
| intervals are calculated assuming perfect knowledge of the number of | intervals are calculated assuming perfect knowledge of the number of | |||
| members in the session. | members in the session. | |||
| 2.1.3. Any Source Multicast (ASM) Sessions | 2.1.3. Any Source Multicast (ASM) Sessions | |||
| For ASM sessions, the fraction of members that are senders plays an | For ASM sessions, the fraction of members that are senders plays an | |||
| important role, and causes more variation in average RTCP reporting | important role, and causes more variation in average RTCP reporting | |||
| interval. This is illustrated in Figure 2 and Figure 3, which show | interval. This is illustrated in Figure 2 and Figure 3, which show | |||
| the RTCP reporting interval for the same session bandwidths and | the RTCP reporting interval for the same session bandwidths and | |||
| receiver populations as the SSM session described in Figure 1, but | receiver populations as the SSM session described in Figure 1, but | |||
| for sessions with 2 and 10 senders respectively. It can be seen that | for sessions with 2 and 10 senders respectively. It can be seen that | |||
| the initial synchronisation delay scales with the number of senders | the initial synchronisation delay scales with the number of senders | |||
| (this is to ensure that the total RTCP traffic from all group members | (this is to ensure that the total RTCP traffic from all group members | |||
| does not grow without bound) and can be significantly larger than for | does not grow without bound) and can be significantly larger than for | |||
| single source groups. Despite this, the initial synchronisation time | single source groups. Despite this, the initial synchronisation time | |||
| remains acceptable for lip-synchronisation in typical small-to-medium | remains acceptable for lip-synchronisation in typical small-to-medium | |||
| sized group conferencing scenarios. | sized group video conferencing scenarios. | |||
| Note that multi-sender groups implemented using multi-unicast with a | ||||
| central RTP translator (Topo-Translator in the terminology of [15]) | ||||
| or mixer (Topo-Mixer), or some forms of video switching MCU (Topo- | ||||
| Video-switch-MCU) distribute RTCP packets to all members of the | ||||
| group, and so scale in the same way as an ASM group with regards to | ||||
| initial synchronisation latency. | ||||
| Session| Number of receivers: | Session| Number of receivers: | |||
| Bandwidth| 2 3 4 5 10 100 1000 10000 | Bandwidth| 2 3 4 5 10 100 1000 10000 | |||
| --+------------------------------------------------ | --+------------------------------------------------ | |||
| 8 kbps| 2.73 4.10 5.47 6.84 10.94 10.94 10.94 10.94 | 8 kbps| 2.73 4.10 5.47 6.84 10.94 10.94 10.94 10.94 | |||
| 16 kbps| 2.50 2.50 2.73 3.42 5.47 5.47 5.47 5.47 | 16 kbps| 2.50 2.50 2.73 3.42 5.47 5.47 5.47 5.47 | |||
| 32 kbps| 2.50 2.50 2.50 2.50 2.73 2.73 2.73 2.73 | 32 kbps| 2.50 2.50 2.50 2.50 2.73 2.73 2.73 2.73 | |||
| 64 kbps| 2.50 2.50 2.50 2.50 2.50 2.50 2.50 2.50 | 64 kbps| 2.50 2.50 2.50 2.50 2.50 2.50 2.50 2.50 | |||
| 128 kbps| 1.41 1.41 1.41 1.41 1.41 1.41 1.41 1.41 | 128 kbps| 1.41 1.41 1.41 1.41 1.41 1.41 1.41 1.41 | |||
| 256 kbps| 0.70 0.70 0.70 0.70 0.70 0.70 0.70 0.70 | 256 kbps| 0.70 0.70 0.70 0.70 0.70 0.70 0.70 0.70 | |||
| 512 kbps| 0.35 0.35 0.35 0.35 0.35 0.35 0.35 0.35 | 512 kbps| 0.35 0.35 0.35 0.35 0.35 0.35 0.35 0.35 | |||
| skipping to change at page 9, line 22 ¶ | skipping to change at page 9, line 22 ¶ | |||
| 128 kbps| 1.41 1.41 1.41 1.41 1.41 3.42 3.42 3.42 | 128 kbps| 1.41 1.41 1.41 1.41 1.41 3.42 3.42 3.42 | |||
| 256 kbps| 0.70 0.70 0.70 0.70 0.70 1.71 1.71 1.71 | 256 kbps| 0.70 0.70 0.70 0.70 0.70 1.71 1.71 1.71 | |||
| 512 kbps| 0.35 0.35 0.35 0.35 0.35 0.85 0.85 0.85 | 512 kbps| 0.35 0.35 0.35 0.35 0.35 0.85 0.85 0.85 | |||
| 1 Mbps| 0.18 0.18 0.18 0.18 0.18 0.43 0.43 0.43 | 1 Mbps| 0.18 0.18 0.18 0.18 0.18 0.43 0.43 0.43 | |||
| 2 Mbps| 0.09 0.09 0.09 0.09 0.09 0.21 0.21 0.21 | 2 Mbps| 0.09 0.09 0.09 0.09 0.09 0.21 0.21 0.21 | |||
| 4 Mbps| 0.04 0.04 0.04 0.04 0.04 0.11 0.11 0.11 | 4 Mbps| 0.04 0.04 0.04 0.04 0.04 0.11 0.11 0.11 | |||
| Figure 3: Average RTCP reporting interval in seconds for an RTP | Figure 3: Average RTCP reporting interval in seconds for an RTP | |||
| Session with 10 senders. | Session with 10 senders. | |||
| Note that multi-sender groups implemented using multi-unicast with a | ||||
| central RTP translator (Topo-Translator in the terminology of [15]) | ||||
| or mixer (Topo-Mixer), or some forms of video switching MCU (Topo- | ||||
| Video-switch-MCU) distribute RTCP packets to all members of the | ||||
| group, and so scale in the same way as an ASM group with regards to | ||||
| initial synchronisation latency. | ||||
| 2.1.4. Discussion | 2.1.4. Discussion | |||
| For unicast sessions, the existing RTCP SR-based mechanism allows for | For unicast sessions, the existing RTCP SR-based mechanism allows for | |||
| immediate synchronisation, provided the initial RTCP packet is not | immediate synchronisation, provided the initial RTCP packet is not | |||
| lost. | lost. | |||
| For SSM sessions, the initial synchronisation delay is sufficient for | For SSM sessions, the initial synchronisation delay is sufficient for | |||
| lip-synchronisation, but may be larger than desired for some layered | lip-synchronisation, but may be larger than desired for some layered | |||
| codecs. The rationale for not sending immediate RTCP packets for | codecs. The rationale for not sending immediate RTCP packets for | |||
| multicast groups is to avoid implosion of requests when large numbers | multicast groups is to avoid implosion of requests when large numbers | |||
| skipping to change at page 11, line 33 ¶ | skipping to change at page 11, line 25 ¶ | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | SSRC of packet sender | | | SSRC of packet sender | | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | SSRC of media source | | | SSRC of media source | | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| : Feedback Control Information (FCI) : | : Feedback Control Information (FCI) : | |||
| : : | : : | |||
| Figure 4: RTP/AVP Transport Layer Feedback Message | Figure 4: RTP/AVP Transport Layer Feedback Message | |||
| A new feedback message type, RTCP-SR-REQ, is defined with FMT = 5. | One new feedback message type, RTCP-SR-REQ, is defined with FMT = 5. | |||
| The Feedback Control Information (FCI) part of the feedback message | The Feedback Control Information (FCI) part of the feedback message | |||
| MUST be empty. The SSRC of packet sender indicates the member that | MUST be empty. The SSRC of packet sender indicates the member that | |||
| is unable to synchronise media streams, while the SSRC of media | is unable to synchronise media streams, while the SSRC of media | |||
| source indicates the sender of the media it is unable to synchronise. | source indicates the sender of the media it is unable to synchronise. | |||
| The length MUST equal 2. | The length MUST equal 2. | |||
| This feedback message MAY be sent by a receiver to indicate that it's | If the RTP/AVPF profile [2] is in use, this feedback message MAY be | |||
| unable to synchronise some media streams, and desires that the media | sent by a receiver to indicate that it's unable to synchronise some | |||
| source transmit an RTCP SR packet as soon as possible (within the | media streams, and desires that the media source transmit an RTCP SR | |||
| constraints of the RTCP timing rules for early feedback). When it | packet as soon as possible (within the constraints of the RTCP timing | |||
| receives such an indication, the media source SHOULD generate an RTCP | rules for early feedback). When it receives such an indication, the | |||
| SR packet as soon as possible within the RTCP early feedback rules. | media source SHOULD generate an RTCP SR packet as soon as possible | |||
| If the use of non-compound RTCP [5] was previously negotiated, both | within the RTCP early feedback rules. If the use of non-compound | |||
| the feedback request and the RTCP SR response may be sent as non- | RTCP [5] was previously negotiated, both the feedback request and the | |||
| compound RTCP packets. The RTCP-SR-REQ packet MAY be repeated once | RTCP SR response may be sent as non-compound RTCP packets. The RTCP- | |||
| per RTCP reporting interval if no RTCP SR packet is forthcoming. | SR-REQ packet MAY be repeated once per RTCP reporting interval if no | |||
| RTCP SR packet is forthcoming. | ||||
| 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 | |||
| skipping to change at page 12, line 28 ¶ | skipping to change at page 12, line 24 ¶ | |||
| out-of-band signalling [10], the receiver can use the information | out-of-band signalling [10], the receiver can use the information | |||
| provided as input to the synchronisation algorithm, in exactly the | provided as input to the synchronisation algorithm, in exactly the | |||
| same way as if an additional RTCP SR packet was been received for the | same way as if an additional RTCP SR packet was been 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 in Figure 5 and Figure 6. | |||
| Variant A/64-bit NTP RTP header extension (length: 16 bytes): | ||||
| 0 1 2 3 | 0 1 2 3 | |||
| 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 | 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| |V=2|P|1| CC |M| PT | sequence number | | |V=2|P|1| CC |M| PT | sequence number | | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+R | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+R | |||
| | timestamp |T | | timestamp |T | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+P | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+P | |||
| | synchronization source (SSRC) identifier | | | synchronisation source (SSRC) identifier | | |||
| +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ | +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ | |||
| | 0xBE | 0xDE | length=3 | | | 0xBE | 0xDE | length=3 | | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+E | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+E | |||
| | ID-A | L=7 | NTP timestamp format - Seconds (bit 0-23) |x | | ID-A | L=7 | NTP timestamp format - Seconds (bit 0-23) |x | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+t | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+t | |||
| |NTP Sec.(24-31)| NTP timestamp format - Fraction(bit 0-23) |n | |NTP Sec.(24-31)| NTP timestamp format - Fraction(bit 0-23) |n | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| |NTP Frc.(24-31)| 0 (pad) | 0 (pad) | 0 (pad) | | |NTP Frc.(24-31)| 0 (pad) | 0 (pad) | 0 (pad) | | |||
| +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ | +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ | |||
| | payload data | | | payload data | | |||
| | .... | | | .... | | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| Variant B/56-bit NTP RTP header extension (length: 12 bytes): | Figure 5: Variant A/64-bit NTP RTP header extension | |||
| 0 1 2 3 | 0 1 2 3 | |||
| 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 | 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| |V=2|P|1| CC |M| PT | sequence number | | |V=2|P|1| CC |M| PT | sequence number | | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+R | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+R | |||
| | timestamp |T | | timestamp |T | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+P | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+P | |||
| | synchronization source (SSRC) identifier | | | synchronisation source (SSRC) identifier | | |||
| +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ | +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ | |||
| | 0xBE | 0xDE | length=2 | | | 0xBE | 0xDE | length=2 | | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+E | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+E | |||
| | ID-B | L=6 | NTP timestamp format - Seconds (bit 8-31) |x | | ID-B | L=6 | NTP timestamp format - Seconds (bit 8-31) |x | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+t | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+t | |||
| | NTP timestamp format - Fraction (bit 0-31) |n | | NTP timestamp format - Fraction (bit 0-31) |n | |||
| +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ | +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ | |||
| | payload data | | | payload data | | |||
| | .... | | | .... | | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| Figure 6: Variant B/56-bit NTP RTP header extension | ||||
| 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.1. This header | |||
| extension SHOULD 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 | |||
| timestamps are included or not, regular RTCP SR packets MUST be sent | timestamps are included or not, regular RTCP SR packets MUST be sent | |||
| to provide backwards compatibility with receivers that synchronize | to provide backwards compatibility with receivers that synchronise | |||
| RTP flows according to [1], and robustness in the face of middleboxes | RTP flows according to [1], and robustness in the face of middleboxes | |||
| (RTP translators) that might strip RTP header extensions. The sender | (RTP translators) that might strip RTP header extensions. The sender | |||
| reports are also required to receive the upper 8 bit of the Seconds | reports are also required to receive the upper 8 bit of the Seconds | |||
| of the NTP timestamp format timestamp not included in the Variant | of the NTP timestamp format timestamp not included in the Variant | |||
| B/56-bit NTP RTP header extension (although this may generally be | B/56-bit NTP RTP header extension (although this may generally be | |||
| inferred from context). | inferred from context). | |||
| When the SDP is used, the use of the RTP header extensions defined | When the SDP is used, the use of the RTP header extensions defined | |||
| above MUST be indicated as specified in [6]. Therefore the following | above MUST be indicated as specified in [6]. Therefore the following | |||
| URIs MUST be used: | URIs MUST be used: | |||
| o The URI used for signaling the use of Variant A/64-bit NTP RTP | o The URI used for signalling 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 signalling 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 | Packets in RTP flows are often predictively coded, with a receiver | |||
| mapping to an NTP format timestamp, a decoding order recovery process | having to arrange the packets into a particular order before it can | |||
| may be applied if a media as result of a layered coding process is | decode the media data. Depending on the payload format, the decoding | |||
| transported in multiple RTP flows. This recovers the decoding order | order might be explicitly specified as a field in the RTP payload | |||
| of media frames or samples at the receiver. Especially when | header, or the receiver might decode the packets in order of their | |||
| transporting layered video, the decoding order recovery process is | RTP timestamps. If a layered encoding is used, where the media data | |||
| not straight forward. In this section, we provide guidance on how to | is split across several RTP flows, then it is often necessary to | |||
| use RTP/NTP timing information for decoding order recovery. | exactly synchronise the RTP flows comprising the different layers | |||
| before layers other than the base layer can be decoded. Examples of | ||||
| such layered encodings are H.264 SVC in NI-T mode [9] and MPEG | ||||
| surround multi-channel audio [16]. As described in Section 2, such | ||||
| synchronisation is possible in RTP, but can be difficult to perform | ||||
| rapidly. In the following, we describe how the extensions defined in | ||||
| Section 3.3 can be used to synchronise layered flows, and provide a | ||||
| common timestamp-based decoding order. | ||||
| 4.1. Problem description | 4.1. In-band Synchronisation for Decoding Order Recovery | |||
| One option for decoding order recovery in layered codecs is to use | When a layered, multi-description, or multi-view codec is used, with | |||
| the NTP/sample presentation timestamps to reorder data of the same | the different components of the media being transferred on separate | |||
| layered media transported in multiple RTP flows. For a timestamp- | RTP flows, the RTP sender SHOULD use periodic synchronous in-band | |||
| based decoding order recovery process, it is crucial to allow exact | delivery of synchronisation metadata to allow receivers to rapidly | |||
| alignment of media frames respectively samples using the NTP timing | and accurately synchronise the separate components of the layered | |||
| information. | media flow. There are three parts to this: | |||
| In the presence of clock skew in NTP-format clock, it may not be | o The sender must negotiate the use of the RTP header extensions | |||
| possible to derive exact matching NTP timestamps using the NTP format | described in Section 3.3, and must periodically and synchronously | |||
| clock in each RTP flow's RTCP sender reports. This is due to the | insert such header extensions into all the RTP flows forming the | |||
| fact that RTCP sender reports are not sent at the same point of time | separate components of the layered, multi-description, or multi- | |||
| in the multiple RTP flows transporting data of the same layered | view flow. | |||
| media, while having a skew between those samples in the RTP flows | ||||
| RTCP sender reports. If the RTCP SR packets are not send | ||||
| synchronously in the multiple RTP flows, they therefore do not | ||||
| contain the same NTP-format timestamp. If there is a skew present in | ||||
| the clock used for NTP-format timestamp generation, using different | ||||
| NTP-format timestamps for the same sampling instance in the RTP flow | ||||
| inevitably leads to non-matching NTP timestamps generated from RTP | ||||
| timestamps and NTP-format timestamps in the multiple RTP flows. In | ||||
| order to allow a common and straight forward timestamp-based decoding | ||||
| order recovery process, it is important to guarantee exact matching | ||||
| of NTP timestamps. Thus in the presence of non-perfect clocks, which | ||||
| should be the normal case, an additional mechanism SHALL be used. An | ||||
| exact inter-flow alignment of NTP timestamps can be guaranteed, if an | ||||
| RTP header extension containing an NTP timestamp is always inserted | ||||
| at 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 | ||||
| in all RTP flows at the same point of time. This is called | ||||
| synchronous insertion of RTP header extensions in the following. | ||||
| 4.2. In-band Synchronisation for Decoding Order Recovery | o Synchronous insertion requires the sender insert these RTP header | |||
| extensions into packets corresponding to the exact same sampling | ||||
| instant in all the flows. Since the header extensions for each | ||||
| flow are inserted at exactly the same sampling instant, they will | ||||
| have identical NTP-format timestamps, hence allowing receivers to | ||||
| exactly align the RTP timestamps for the component flows. This | ||||
| may require the insertion of extra data packets into some of the | ||||
| component RTP flows, if some component flows contain packets for | ||||
| sampling instants that do not exist in other flows (for example, a | ||||
| layered video codec, where the layers have differing frame rates). | ||||
| The RTP header extension to convey an NTP timestamp SHOULD be used | o The frequency with which the sender inserts the header extensions | |||
| with a layered, multi-description, or multi-view codec, to provide | will directly correspond to the synchronisation latency, with more | |||
| exact matching of NTP timestamps between layers, descriptions, or | frequent insertion leading to higher per-flows overheads, but | |||
| views transported in different RTP flows to allow timestamp-based | lower synchronisation latency. It is RECOMMENDED that the sender | |||
| decoding order recovery. If this header extension is inserted for | insert the header extensions synchronously into all component RTP | |||
| RTP flows transporting samples or parts of samples of the same | flows at least once per random access point of the media, but they | |||
| layered media, it SHALL be included at least once in each of the RTP | MAY be inserted more often. | |||
| flows of the same media for the sampling time instance of an | ||||
| insertion of an RTP header extension. Such synchronously inserted | ||||
| RTP header extensions SHALL contain the same NTP format timestamp. | ||||
| The frequency of inserting the header extensions in the RTP flows is | ||||
| up to the sender, but it should be noticed that higher insertion | ||||
| frequencies obviously lead to higher synchronization frequencies. | ||||
| For use cases where the same clock source has been used to generate | ||||
| the RTP timestamps in the multiple RTP flows, an application MAY rely | ||||
| on the RTP timestamps only for decoding order recovery starting from | ||||
| the point of synchronous insertion of the RTP header extensions | ||||
| containing NTP timestamps. | ||||
| Note: If the decoding order of RTP flows is given by any means (as | The sender MUST continue to send periodic RTCP reports including SR | |||
| e.g., for RTP session by mechanism defined in [8]), the NTP timestamp | packets, and MUST ensure the RTP timestamp to NTP-format timestamp | |||
| provided by the header extension allows to collect data of the same | mapping in the RTCP SR packets is consistent with that used in the | |||
| sample from the RTP flows, forming the sample decoding order. There | RTP header extensions. Receivers should use both the information | |||
| may be future mechanism to allow indication of dependencies of RTP | contained in RTCP SR packets and the in-band mapping of RTP and NTP- | |||
| flows transported as RTP streams using SSRC multiplexing | format timestamps as input to the synchronisation process, but it is | |||
| RECOMMENDED that receivers sanity check the mappings received and | ||||
| discard outliers, to provide robustness against invalid data (one | ||||
| might think it more likely that the RTCP SR mappings are invalid, | ||||
| since they are sent at irregular times and subject to skew, but the | ||||
| presence of broken RTP translators could also corrupt the timestamps | ||||
| in the RTP header extension; receivers need to cope with both types | ||||
| of failure). | ||||
| It is RECOMMENDED that the receiver uses for timestamp-based decoding | 4.2. Timestamp based decoding order recovery | |||
| order recovery the NTP timestamps provided in the RTP header | ||||
| extensions only, if such extensions are present for the RTP flows. | ||||
| Section 4.3 gives further details about the timestamp-based decoding | ||||
| order recovery. | ||||
| Note: Using the RTP header extensions described above allows the | Once a receiver has synchronised the components of a layered, multi- | |||
| receiver to find the corresponding sample of the layered media, or | description, or multi-view flow using the RTP header extensions as | |||
| parts thereof, in all RTP flows at the instant the RTP header | described in Section 4.1, it may then derive a decoding order based | |||
| extension is inserted into the flows. This guarantees that any clock | on the synchronised timestamps as follows (or it may use information | |||
| skew present in the NTP timestamp generation process based on RTCP | in the RTP payload header to derive the decoding order, if present | |||
| sender reports is avoided, and so allows direct comparison of NTP | and desired). | |||
| timestamps across multiple RTP flows. Furthermore, this approach | ||||
| solves the possible problem of clock skews identified for the NI-T | ||||
| mode as defined in [9]. To ensure the absence of clock skew, a | ||||
| header extension containing the NTP timestamp MUST be inserted into | ||||
| the RTP flows comprising a layered media stream at the same instant | ||||
| in each RTP flow. This may require the insertion of extra packets in | ||||
| some of the RTP flows, since in layered video codecs not all sampling | ||||
| instances may be present in all the flows. If such a header | ||||
| extension is included in all flows at a sampling time instance, the | ||||
| NTP timestamps for samples following in decoding order the RTP header | ||||
| insertion point can be constructed using the RTP timestamps and | ||||
| identical reference NTP timestamps in the NTP header extension in all | ||||
| RTP flows. It should be noted that the frequency of inserting the | ||||
| RTP header extension containing the NTP timestamp is crucial in | ||||
| presence of clock skew, since the points of insertion may be the only | ||||
| points for a receiver to start the decoding order recovery. | ||||
| 4.3. Timestamp based decoding order recovery | There may be explicit dependencies between the component flows of a | |||
| layered, multi-description, or multi-view flow. For example, it is | ||||
| common for layered flows to be arranged in a hierarchy, where flows | ||||
| from "higher" layers cannot be decoded until the corresponding data | ||||
| in "lower" layer flows has been received and decoded. If such a | ||||
| decoding hierarchy exists, it MUST be signalled out of band, for | ||||
| example using [8] when SDP signalling is used. | ||||
| If parts or complete samples as result of a layered coding process | Each component RTP flow MUST contain packets corresponding to all the | |||
| are transported as different RTP flows, i.e. as different RTP | sampling instants of the RTP flows on which it depends. If such | |||
| streams, and/or as different RTP sessions, a decoding order recovery | packets are not naturally present in the RTP flow, the sender MUST | |||
| process is required to reorder the samples or parts of samples | generate additional packets as necessary in order to satisfy this | |||
| received. Such mechanism may be based on the NTP presentation | rule. The format of these packets depends on the payload format | |||
| timestamp which can be derived from the RTP timestamp using the NTP- | used. For H.264 SVC, the Empty NAL unit packet [9] should be used. | |||
| format timestamp provided in the RTCP sender report packets. | ||||
| In order to guarantee the exact alignment of those derived NTP | Flows may also include packets corresponding to additional sampling | |||
| presentation timestamps, the RTP header extension as defined in this | instants that are not present in the flows on which they depend. | |||
| 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 | ||||
| header extension is earlier provided in the RTP flow. Using the RTP | ||||
| header extensions may be the only way to allow correct decoding order | ||||
| recovery based on exact matching of NTP timestamps in the presence of | ||||
| clock skew in the clock used for generating the NTP format clock. | ||||
| Furthermore, some use cases may allow to use synchronously inserted | The receiver should decode the packets in all the component RTP flows | |||
| RTP header extensions containing NTP timestamps to align the RTP | as follows: | |||
| timestamps of the multiple RTP flows, i.e. use cases where the RTP | ||||
| timestamps of the multiple RTP flows are generated from the same | ||||
| clock source. In such use cases, starting from a synchronous | ||||
| insertion of the RTP header extensions, the application may use the | ||||
| detected difference of RTP random offset values in the multiple | ||||
| sessions to align the media samples of parts of samples. | ||||
| Since typically for layered video codecs as, e.g. SVC [9], the | o For each RTP packet in each flow, use the mapping contained in the | |||
| decoding order is not equal to the presentation order of the media | RTP header extensions and RTCP SR packets to derive the NTP-format | |||
| samples, media samples or parts of media samples cannot be simply | timestamp corresponding to its RTP timestamp. | |||
| ordered according to the presentation timestamp order. For this | ||||
| reason, if transporting media samples or parts of media samples of a | ||||
| layered, multi-view or multi description codec in different RTP | ||||
| flows, the following rules SHOULD be kept for sending such flows: | ||||
| Note: The following rules are typically kept for layered audio | o Group together RTP data packets from all component flows that have | |||
| codecs, which allows using the same algorithm for decoding order | identical calculated NTP-format timestamps. | |||
| recovery of audio samples. | ||||
| Terminology: Following the decoding order of RTP flows as described | o Processing groups in order of ascending NTP-format timestamp, | |||
| above, an RTP flow containing sample data which is required to be | decode the RTP packets in each group according to the signalled | |||
| accessed and/or decoded before decoding a second sample data of | RTP flow decoding hierarchy. That is, pass the RTP packet data | |||
| another RTP flow is called a lower RTP flow with respect to the | from the flow on which all other flows depend to the decoder | |||
| second RTP flow. A second RTP flow, which requires for the decoding | first, then that from the next dependent flow, and so on. The | |||
| process accessing and/or decoding the sample data of the lower RTP | decoding order of the RTP flow hierarchy may be indicated by | |||
| flow is called the higher RTP flow. The lowest RTP flow is the flow, | mechanisms defined in [8] or by some other means. | |||
| which does not require the presence of any other data. | ||||
| o The decoding order of media samples or part of the media samples | Note that the decoding order will not necessarily match the packet | |||
| transported in different RTP flows SHOULD be derivable by any | transmission order. The receiver will need to buffer packets for a | |||
| means. This can be accomplished, e.g. by using the mechanisms | codec-dependent amount of time in order for all necessary packets to | |||
| defined in [8] if the sample data or parts of the sample data are | arrive to allow decoding. | |||
| transported in different RTP sessions or by any other means. | ||||
| o For each two RTP flows the following rules SHOULD be true in order | 4.3. Example | |||
| to allow decoding order recovery based on matching NTP timestamps | ||||
| present in the different RTP flows: | ||||
| 1. The order of the RTP samples within an RTP flow is equal to | The example shown in Figure 3 refers to three RTP flows A, B and C | |||
| the decoding order. | containing a layered, a multi-view or a multi-description media | |||
| stream. In the example, the dependency signalling as defined in [8] | ||||
| indicates that flow A is the lowest RTP flow, B is 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 media coding | ||||
| structure is used that results in samples present in 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 rate. The figure shows | ||||
| the full video samples with their corresponding RTP timestamps "(x)". | ||||
| The video samples are already re-ordered according to their RTP | ||||
| sequence number order. The figure indicates for the received sample | ||||
| in decoding order within each RTP flow, as well as the associated NTP | ||||
| media timestamps ("TS[..]"). These timestamps may be derived using | ||||
| the NTP format timestamp provided in the RTCP sender reports or as | ||||
| shown in the figure directly from the NTP timestamp contained in the | ||||
| RTP header extensions as indicate by the timestamp in "<x>". Note | ||||
| that the timestamps are not in increasing order since, in this | ||||
| example, the decoding order is different from the output/presentation | ||||
| order. | ||||
| 2. A higher RTP flow contains all the same sampling instances of | ||||
| the lower RTP flow. A higher RTP flow may contain additional | ||||
| sampling instances. | ||||
| Note: In some cases, it may be required to add packets in higher RTP | ||||
| flows in order to satisfy the second rule above. This may be | ||||
| achieved by placing empty RTP packets (containing padding data only) | ||||
| or by other payload means as, e.g. the Empty NAL unit packet as | ||||
| defined in [9]. | ||||
| If a packet must be inserted for satisfying the above rule, the NTP | ||||
| timestamp of such an inserted packet MUST be set equal to the NTP | ||||
| timestamp of a packet of the same sample present in any lower RTP | ||||
| flow and the lowest RTP flow. This is easy to accomplish if the | ||||
| packet can be inserted at the time of the RTP flow generation, since | ||||
| the NTP timestamp must be the same for the inserted packet and the | ||||
| packet of the corresponding sample. | ||||
| The above rules allow the receiver to process the data of the RTP | ||||
| flows as follows: | ||||
| o Go through all received RTP flows starting with the highest RTP | ||||
| flow and aggregate the sample data or parts of the sample data | ||||
| with the same NTP timestamp in the order of RTP flows, starting | ||||
| from the lowest RTP flow up to the highest RTP flow received, to | ||||
| the sample with the NTP timestamp present in the highest RTP flow. | ||||
| The NTP timestamps MAY be derived using RTCP sender reports or MAY | ||||
| be directly taken from the NTP timestamp provided in an RTP header | ||||
| extension. The order of RTP flows may e.g. be indicated by | ||||
| mechanisms as defined in [8] or any other implicit or explicit | ||||
| means. Repeat the aforementioned process for each different NTP | ||||
| timestamp present in the highest RTP flow. | ||||
| Informative example: The example shown in Figure 3 refers to three | ||||
| RTP flows A, B and C containing a layered, a multi-view or a multi- | ||||
| description media stream. In the example, the dependency signalling | ||||
| as defined in [8] indicates that flow A is the lowest RTP flow, B is | ||||
| 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 | ||||
| media coding structure is used that results in samples present in | ||||
| 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 | ||||
| rate. The figure shows the full video samples with their | ||||
| corresponding RTP timestamps "(x)". The video samples are already | ||||
| re-ordered according to their RTP sequence number order. The figure | ||||
| indicates for the received sample in decoding order within each RTP | ||||
| flow, as well as the associated NTP media timestamps ("TS[..]"). | ||||
| These timestamps may be derived using the NTP format timestamp | ||||
| provided in the RTCP sender reports or as shown in the figure | ||||
| directly from the NTP timestamp contained in the RTP header | ||||
| extensions as indicate by the timestamp in "<x>". Note that the | ||||
| timestamps are not in increasing order since, in this example, the | ||||
| 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 | |||
| decoding order) to sample parts with TS=[8] in each of the de- | decoding order) to sample parts with TS=[8] in each of the de- | |||
| jittering buffers of RTP flows A, B, and C. Then, starting from flow | jittering buffers of RTP flows A, B, and C. Then, starting from flow | |||
| C, the first media timestamp available in decoding order (TS=[8]) is | C, the first media timestamp available in decoding order (TS=[8]) is | |||
| 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 | |||
| skipping to change at page 20, line 29 ¶ | skipping to change at page 18, line 37 ¶ | |||
| Extensions [6], according to the following: | Extensions [6], according to the following: | |||
| Extension URI: urn:ietf:params:rtp-hdrext:ntp-64 | Extension URI: urn:ietf:params:rtp-hdrext:ntp-64 | |||
| Description: Synchronisation metadata: 64-bit timestamp format | Description: Synchronisation metadata: 64-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 | |||
| Extension URI: urn:ietf:params:rtp-hdrext:ntp-56 | Extension URI: urn:ietf:params:rtp-hdrext:ntp-56 | |||
| 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 <ts@thomas-schierl.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 benefited from discussions with numerous members of the | |||
| the IETF AVT working group, including Jonathan Lennox, Magnus | IETF AVT working group, including Jonathan Lennox, Magnus Westerlund, | |||
| Westerlund, Randell Jesup, Gerard Babonneau, Ingemar Johansson, Ali | Randell Jesup, Gerard Babonneau, Ingemar Johansson, Ali C. Begen, Ye- | |||
| C. Begen, Ye-Kui Wang, Roni Even, Michael Dolan, and Art Allison. | Kui Wang, Roni Even, Michael Dolan, and Art Allison. The RTP header | |||
| The header extension format of Variant A in Section 3.3 was suggested | extension format of Variant A in Section 3.3 was suggested by Dave | |||
| by Dave Singer, matching a similar mechanism specified by ISMA. | 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, | |||
| skipping to change at page 22, line 14 ¶ | skipping to change at page 20, line 22 ¶ | |||
| Transport Protocol (SRTP)", draft-ietf-avt-dtls-srtp-05 (work | Transport Protocol (SRTP)", draft-ietf-avt-dtls-srtp-05 (work | |||
| in progress), September 2008. | in progress), September 2008. | |||
| [14] Zimmermann, P., Johnston, A., and J. Callas, "ZRTP: Media Path | [14] Zimmermann, P., Johnston, A., and J. Callas, "ZRTP: Media Path | |||
| Key Agreement for Secure RTP", draft-zimmermann-avt-zrtp-13 | Key Agreement for Secure RTP", draft-zimmermann-avt-zrtp-13 | |||
| (work in progress), January 2009. | (work in progress), January 2009. | |||
| [15] Westerlund, M. and S. Wenger, "RTP Topologies", RFC 5117, | [15] Westerlund, M. and S. Wenger, "RTP Topologies", RFC 5117, | |||
| January 2008. | January 2008. | |||
| [16] Bont, F., Doehla, S., Schmidt, M., and R. Sperschneider, "RTP | ||||
| Payload Format for Elementary Streams with MPEG Surround multi- | ||||
| channel audio", draft-ietf-avt-rtp-mps-02 (work in progress), | ||||
| January 2009. | ||||
| Authors' Addresses | Authors' Addresses | |||
| Colin Perkins | Colin Perkins | |||
| University of Glasgow | University of Glasgow | |||
| Department of Computing Science | Department of Computing Science | |||
| Sir Alwyn Williams Building | ||||
| Lilybank Gardens | ||||
| Glasgow G12 8QQ | Glasgow G12 8QQ | |||
| UK | UK | |||
| Email: csp@csperkins.org | Email: csp@csperkins.org | |||
| Thomas Schierl | Thomas Schierl | |||
| Fraunhofer HHI | Fraunhofer HHI | |||
| Einsteinufer 37 | Einsteinufer 37 | |||
| D-10587 Berlin | D-10587 Berlin | |||
| Germany | Germany | |||
| Phone: +49-30-31002-227 | Phone: +49-30-31002-227 | |||
| Email: Thomas.Schierl@hhi.fraunhofer.de | Email: ts@thomas-schierl.de | |||
| End of changes. 50 change blocks. | ||||
| 268 lines changed or deleted | 196 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/ | ||||