| draft-perkins-rmcat-rtp-cc-feedback-00.txt | draft-perkins-rmcat-rtp-cc-feedback-01.txt | |||
|---|---|---|---|---|
| Network Working Group C. Perkins | Network Working Group C. S. Perkins | |||
| Internet-Draft University of Glasgow | Internet-Draft University of Glasgow | |||
| Intended status: Informational February 18, 2013 | Intended status: Informational July 02, 2014 | |||
| Expires: August 22, 2013 | Expires: January 03, 2015 | |||
| On the Use of RTP Control Protocol (RTCP) Feedback for Unicast | Using RTP Control Protocol (RTCP) Feedback for Unicast Multimedia | |||
| Multimedia Congestion Control | Congestion Control | |||
| draft-perkins-rmcat-rtp-cc-feedback-00 | draft-perkins-rmcat-rtp-cc-feedback-01 | |||
| Abstract | Abstract | |||
| This memo discusses the types of congestion control feedback that it | This memo discusses the types of congestion control feedback that it | |||
| is possible to send using the RTP Control Protocol (RTCP), and their | is possible to send using the RTP Control Protocol (RTCP), and their | |||
| suitability of use in implementing congestion control for unicast | suitability of use in implementing congestion control for unicast | |||
| multimedia applications. | multimedia applications. | |||
| Status of this Memo | Status of This Memo | |||
| This Internet-Draft is submitted in full conformance with the | This Internet-Draft is submitted 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). Note that other groups may also distribute | Task Force (IETF). Note that other groups may also distribute | |||
| working documents as Internet-Drafts. The list of current Internet- | working documents as Internet-Drafts. The list of current Internet- | |||
| Drafts is at http://datatracker.ietf.org/drafts/current/. | Drafts is at http://datatracker.ietf.org/drafts/current/. | |||
| Internet-Drafts are draft documents valid for a maximum of six months | Internet-Drafts are draft documents valid for a maximum of six months | |||
| and may be updated, replaced, or obsoleted by other documents at any | and may be updated, replaced, or obsoleted by other documents at any | |||
| time. It is inappropriate to use Internet-Drafts as reference | time. It is inappropriate to use Internet-Drafts as reference | |||
| material or to cite them other than as "work in progress." | material or to cite them other than as "work in progress." | |||
| This Internet-Draft will expire on August 22, 2013. | This Internet-Draft will expire on January 03, 2015. | |||
| Copyright Notice | Copyright Notice | |||
| Copyright (c) 2013 IETF Trust and the persons identified as the | Copyright (c) 2014 IETF Trust and the persons identified as the | |||
| document authors. All rights reserved. | document authors. All rights reserved. | |||
| This document is subject to BCP 78 and the IETF Trust's Legal | This document is subject to BCP 78 and the IETF Trust's Legal | |||
| Provisions Relating to IETF Documents | Provisions Relating to IETF Documents | |||
| (http://trustee.ietf.org/license-info) in effect on the date of | (http://trustee.ietf.org/license-info) in effect on the date of | |||
| publication of this document. Please review these documents | publication of this document. Please review these documents | |||
| carefully, as they describe your rights and restrictions with respect | carefully, as they describe your rights and restrictions with respect | |||
| to this document. Code Components extracted from this document must | to this document. Code Components extracted from this document must | |||
| include Simplified BSD License text as described in Section 4.e of | include Simplified BSD License text as described in Section 4.e of | |||
| the Trust Legal Provisions and are provided without warranty as | the Trust Legal Provisions and are provided without warranty as | |||
| described in the Simplified BSD License. | described in the Simplified BSD License. | |||
| Table of Contents | Table of Contents | |||
| 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 3 | 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2 | |||
| 2. Possible Models for RTCP Feedback . . . . . . . . . . . . . . . 3 | 2. Possible Models for RTCP Feedback . . . . . . . . . . . . . . 2 | |||
| 3. What Feedback is Achievable With RTCP? . . . . . . . . . . . . 4 | 3. What Feedback is Achievable With RTCP? . . . . . . . . . . . 4 | |||
| 3.1. Per-packet Feedback . . . . . . . . . . . . . . . . . . . . 4 | 3.1. Per-packet Feedback . . . . . . . . . . . . . . . . . . . 4 | |||
| 3.2. Per-frame Feedback . . . . . . . . . . . . . . . . . . . . 5 | 3.2. Per-frame Feedback . . . . . . . . . . . . . . . . . . . 4 | |||
| 3.3. Per-RTT Feedback . . . . . . . . . . . . . . . . . . . . . 6 | 3.3. Per-RTT Feedback . . . . . . . . . . . . . . . . . . . . 6 | |||
| 4. Discussion and Conclusions . . . . . . . . . . . . . . . . . . 6 | 4. Discussion and Conclusions . . . . . . . . . . . . . . . . . 6 | |||
| 5. Security Considerations . . . . . . . . . . . . . . . . . . . . 7 | 5. Security Considerations . . . . . . . . . . . . . . . . . . . 7 | |||
| 6. IANA Considerations . . . . . . . . . . . . . . . . . . . . . . 7 | 6. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 7 | |||
| 7. Informative References . . . . . . . . . . . . . . . . . . . . 7 | 7. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . 7 | |||
| Author's Address . . . . . . . . . . . . . . . . . . . . . . . . . 8 | 8. Informative References . . . . . . . . . . . . . . . . . . . 7 | |||
| Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 8 | ||||
| 1. Introduction | 1. Introduction | |||
| The coming deployment of WebRTC systems raises the prospect that high | The coming deployment of WebRTC systems raises the prospect that high | |||
| quality video conferencing will see extremely wide use. To ensure | quality video conferencing will see extremely wide use. To ensure | |||
| the stability of the network in the face of this use, WebRTC systems | the stability of the network in the face of this use, WebRTC systems | |||
| will need to use some form of congestion control for their RTP-based | will need to use some form of congestion control for their RTP-based | |||
| media traffic. To develop such congestion control, it is necessary | media traffic. To develop such congestion control, it is necessary | |||
| to understand the sort of congestion feedback that can be provided | to understand the sort of congestion feedback that can be provided | |||
| within the framework of RTP [RFC3550] and the RTP Control Protocol | within the framework of RTP [RFC3550] and the RTP Control Protocol | |||
| skipping to change at page 5, line 28 ¶ | skipping to change at page 4, line 42 ¶ | |||
| Consider one of the simplest scenarios for WebRTC: a point to point | Consider one of the simplest scenarios for WebRTC: a point to point | |||
| video call between two end systems. There will be four RTP flows in | video call between two end systems. There will be four RTP flows in | |||
| this scenario, two audio and two video, with all four flows being | this scenario, two audio and two video, with all four flows being | |||
| active for essentially all the time (the audio flows will likely use | active for essentially all the time (the audio flows will likely use | |||
| voice activity detection and comfort noise to reduce the packet rate | voice activity detection and comfort noise to reduce the packet rate | |||
| during silent periods, and does not cause the transmissions to stop). | during silent periods, and does not cause the transmissions to stop). | |||
| Assume all four flows are sent in a single RTP session, each using a | Assume all four flows are sent in a single RTP session, each using a | |||
| separate SSRC. Further, assume each SSRC sends RTCP reports for all | separate SSRC. Further, assume each SSRC sends RTCP reports for all | |||
| other SSRCs in the session (this gives the worst case for the RTCP | other SSRCs in the session (i.e., the optimisations in | |||
| overhead). When all members are senders like this, the RTCP timing | [I-D.ietf-avtcore-rtp-multi-stream-optimisation] are not used, giving | |||
| rules in Sections 6.2 and 6.3 of [RFC3550] and [RFC4585] reduce to: | the worst case for the RTCP overhead). When all members are senders | |||
| like this, the RTCP timing rules in Sections 6.2 and 6.3 of [RFC3550] | ||||
| and [RFC4585] reduce to: | ||||
| rtcp_interval = avg_rtcp_size * n / rtcp_bw | rtcp_interval = avg_rtcp_size * n / rtcp_bw | |||
| where avg_rtcp_size is measured in octets, and the rtcp_bw is the | where n is the number of members in the session, the avg_rtcp_size is | |||
| bandwidth available for RTCP, measured in octets per second (this | measured in octets, and the rtcp_bw is the bandwidth available for | |||
| will typically be 5% of the session bandwidth). | RTCP, measured in octets per second (this will typically be 5% of the | |||
| session bandwidth). | ||||
| The average RTCP size will depend on the amount of feedback that is | The average RTCP size will depend on the amount of feedback that is | |||
| sent in each RTCP packet, on the number of members in the session, | sent in each RTCP packet, on the number of members in the session, | |||
| and on the size of source description (RTCP SDES) information sent. | and on the size of source description (RTCP SDES) information sent. | |||
| As a minimum, each RTCP packet will be a compound RTCP packet that | As a baseline, each RTCP packet will be a compound RTCP packet that | |||
| contains an RTCP SR and an RTCP SDES packet. In the scenario above, | contains an RTCP SR and an RTCP SDES packet. In the scenario above, | |||
| each RTCP SR packet will contain three report blocks, once for each | each RTCP SR packet will contain three report blocks, once for each | |||
| of the other RTP SSRCs sending data, for a total of 100 octets (this | of the other RTP SSRCs sending data, for a total of 100 octets (this | |||
| is 8 octets header, 20 octets sender info, and 3 * 24 octets report | is 8 octets header, 20 octets sender info, and 3 * 24 octets report | |||
| blocks). The RTCP SDES packet will comprise a header (4 octets), an | blocks). The RTCP SDES packet will comprise a header (4 octets), an | |||
| SSRC (4 octets), a CNAME chunk, and padding. If the CNAME follows | originating SSRC (4 octets), a CNAME chunk, and padding. If the | |||
| [I-D.ietf-avtcore-6222bis] and [I-D.ietf-rtcweb-rtp-usage] it will be | CNAME follows [RFC7022] and [I-D.ietf-rtcweb-rtp-usage] it will be 19 | |||
| 19 octets in size, and require 1 octet of padding. The resulting | octets in size, and require 1 octet of padding. The resulting | |||
| compound RTCP packet will be 128 octets in size. If sent in UDP/IPv4 | compound RTCP packet will be 128 octets in size. If sent in UDP/IPv4 | |||
| with no IP options, the avg_rtcp_size will therefore be 156 octets, | with no IP options and using Secure RTP, which adds 20 (IPv4) + 8 | |||
| including the header overhead. The value n is this scenario is 4, | (UDP) + 14 (SRTP with 80 bit Authentication tag), the avg_rtcp_size | |||
| and the rtcp_bw is assumed to be 5% of the session bandwidth. | will therefore be 170 octets, including the header overhead. The | |||
| value n is this scenario is 4, and the rtcp_bw is assumed to be 5% of | ||||
| the session bandwidth. | ||||
| If it is desired to send RTCP feedback packets on average 30 times | If it is desired to send RTCP feedback packets on average 30 times | |||
| per second, to correspond to one RTCP report every frame for 30fps | per second, to correspond to one RTCP report every frame for 30fps | |||
| video, we can invert the above rtcp_interval calculation to get an | video, one can invert the above rtcp_interval calculation to get an | |||
| rtcp_bw that gives an interval of 1/30th of a second or lower. This | rtcp_bw that gives an interval of 1/30th of a second or lower. This | |||
| corresponds to an rtcp_bw of 18,720 octets per second (since 1/30 = | corresponds to an rtcp_bw of 20400 octets per second (since 1/30 = | |||
| 156 * 4 / 18,720). This is 149,760 bits per second, which if 5% of | 170 * 4 / 20400). This is 163200 bits per second, which if 5% of the | |||
| the session bandwidth, gives a session bandwidth of approximately | session bandwidth, gives a session bandwidth of approximately 3.3Mbps | |||
| 2.8Mbps. That is, RTCP can report on every frame of video provided | (i.e., 3.3Mbps media rate, plus an additional 5% for RTCP, to give a | |||
| the session bandwidth is 2.8Mbps or larger, when every SSRC sends a | total data rate of approximately 3.4Mbps). That is, RTCP can report | |||
| report for every video frame. | on every frame of video provided the session bandwidth is 3.3Mbps or | |||
| larger, when every SSRC sends a report for every video frame (due to | ||||
| randomisation inherent in the RTCP timing rules, the actual RTCP | ||||
| transmission intervals will be within the range [0.0135, 0.0406]s, | ||||
| but will maintain an average RTCP transmission interval of 0.033s). | ||||
| This is not out of line with the expected session bandwidth for this | ||||
| type of application, suggesting the RTCP feedback can be used to | ||||
| provide per-frame congestion control feedback for WebRTC-style | ||||
| applications. | ||||
| Note: To achieve the RTCP transmission intervals above the RTP/ | ||||
| SAVPF profile with T_rr_interval=0 is used, since even when using | ||||
| the reduced minimal transmission interval, the RTP/SAVP profile | ||||
| would only allow sending RTCP at most every 0.11s (every third | ||||
| frame of video). Using RTP/SAVPF with T_rr_interval=0 however is | ||||
| capable of fully utilizing the configured 5% RTCP bandwidth | ||||
| fraction. | ||||
| If additional feedback beyond the standard report block is needed, | If additional feedback beyond the standard report block is needed, | |||
| the session bandwidth needed will increase. For example, with an | the session bandwidth needed will increase slightly. For example, | |||
| additional 20 octets data being reported in each RTCP packet, the | with an additional 20 octets data being reported in each RTCP packet, | |||
| session bandwidth needed increases to 3.2Mbps for every SSRC to be | the session bandwidth needed increases to 3.5Mbps for every SSRC to | |||
| able to report on every frame. | be able to report on every frame. | |||
| It might seem unnecessary to assign the same fraction of the RTCP | The above calculations highlight the baseline feasibility of RTCP | |||
| bandwidth to reporting on the audio and video, since video is much | congestion control feedback, but might not be the most appropriate | |||
| higher rate, and so is presumably more likely to cause congestion. | usage of the RTCP bandwidth of all applications. Depending on needs, | |||
| Sending audio and video in separate RTCP sessions with their own RTCP | a less frequent usage of regular RTCP compound packets, controlled by | |||
| bandwidth fraction would give essentially double the RTCP bandwidth | T_rr_interval combined with using the reduced size RTCP packets, can | |||
| for each video source, since 5% of the video session bandwidth would | achieve more frequent and useful reporting. Also the optimisations | |||
| be shared between two reporting SSRCs, rather than between the four | defined in [I-D.ietf-avtcore-rtp-multi-stream-optimisation] will | |||
| reporting SSRCs in the single session case. This would hence reduce | reduce the amount of bandwidth consumed for reporting when each | |||
| the session bandwidth to around 1.4Mbps or larger to allow reports on | endpoint has multiple SSRCs. | |||
| every frame. Extensions to split RTCP bandwidth unequally between | ||||
| participants in a single session could be defined to allow this to | ||||
| work with a single RTP session on a single UDP port, or two standard | ||||
| RTP sessions could be run on a single port, using a demultiplexing | ||||
| shim. RTCP already allows for different bandwidth fractions between | ||||
| senders and receivers, so this is a relatively small change to the | ||||
| protocol. | ||||
| It might also seem unnecessary to assign the same fraction of the | ||||
| RTCP bandwidth to reporting on the audio and video, since video is | ||||
| much higher rate, and so is presumably more likely to cause | ||||
| congestion. Sending audio and video in separate RTCP sessions with | ||||
| their own RTCP bandwidth fraction would give essentially double the | ||||
| RTCP bandwidth for each video source, since RTCP bandwidth fraction | ||||
| would be shared between two reporting SSRCs, rather than between the | ||||
| four reporting SSRCs in the single session case. This would hence | ||||
| reduce the session bandwidth needed to allow reports on every frame. | ||||
| Extensions to split RTCP bandwidth unequally between participants in | ||||
| a single session could be defined to allow this to work with a single | ||||
| RTP session on a single UDP port, or two standard RTP sessions could | ||||
| be run on a single port, using a demultiplexing shim. RTCP already | ||||
| allows for different bandwidth fractions between senders and | ||||
| receivers, so this is a relatively small change to the protocol. | ||||
| 3.3. Per-RTT Feedback | 3.3. Per-RTT Feedback | |||
| The arguments made in Section 3.2 apply to this case as well. The | The arguments made in Section 3.2 apply to this case as well. The | |||
| network RTT will usually be larger than the media framing interval, | network RTT will usually be larger than the media framing interval, | |||
| so sending feedback per RTT is less of a load on RTCP than sending | so sending feedback per RTT is less of a load on RTCP than sending | |||
| feedback per frame. | feedback per frame. | |||
| 4. Discussion and Conclusions | 4. Discussion and Conclusions | |||
| RTCP as it is currently specified cannot be used to send per-packet | RTCP as it is currently specified cannot be used to send per-packet | |||
| congestion feedback. RTCP can, however, be used to send congestion | congestion feedback. RTCP can, however, be used to send congestion | |||
| feedback on each frame of video sent, provided the session bandwidth | feedback on each frame of video sent, provided the session bandwidth | |||
| exceeds a couple of megabits per second (the exact rate depending on | exceeds a couple of megabits per second (the exact rate depending on | |||
| the number of session participants, the RTCP bandwidth fraction, and | the number of session participants, the RTCP bandwidth fraction, and | |||
| whether audio and video are sent in one or two RTP sessions). RTCP | whether audio and video are sent in one or two RTP sessions). RTCP | |||
| can likely also be used to send feedback on a per-RTT basis, provided | can likely also be used to send feedback on a per-RTT basis, provided | |||
| the RTT is not too low. | the RTT is not too low. | |||
| If it is desired to use RTCP in something close to it's current form | If it is desired to use RTCP in something close to it's current form | |||
| for congestion feedback in WebRTC, the multimedia congestion control | for congestion feedback in WebRTC, the multimedia congestion control | |||
| algorithm ought be designed to work with feedback sent roughly each | algorithm needs be designed to work with feedback sent roughly each | |||
| frame or each RTT, rather than per packet, since that fits within the | frame or each RTT, rather than per packet, since that fits within the | |||
| limitations of RTCP. That feedback can be a little more complex than | limitations of RTCP. That feedback can be a little more complex than | |||
| just an acknowledgement, provided care is taken to consider the | just an acknowledgement, provided care is taken to consider the | |||
| impact of the extra feedback on the overhead, possibly allowing for a | impact of the extra feedback on the overhead, possibly allowing for a | |||
| degree of semantic feedback, meaningful to the codec layer as well as | degree of semantic feedback, meaningful to the codec layer as well as | |||
| the congestion control algorithm. | the congestion control algorithm. | |||
| Further study of the scenarios of interest is needed, to ensure that | Further study of the scenarios of interest is needed, to ensure that | |||
| the analysis presented is applicable to other media topologies, and | the analysis presented is applicable to other media topologies, and | |||
| to sessions with different data rates and sizes of membership. | to sessions with different data rates and sizes of membership. | |||
| 5. Security Considerations | 5. Security Considerations | |||
| The security considerations of [RFC3550], [RFC4585], and [RFC5124] | The security considerations of [RFC3550], [RFC4585], and [RFC5124] | |||
| apply. | apply. | |||
| 6. IANA Considerations | 6. IANA Considerations | |||
| There are no actions for IANA. | There are no actions for IANA. | |||
| 7. Informative References | 7. Acknowledgements | |||
| [I-D.ietf-avtcore-6222bis] | Thanks to Magnus Westerlund for his feedback on Section 3.2. | |||
| Rescorla, E. and A. Begen, "Guidelines for Choosing RTP | ||||
| Control Protocol (RTCP) Canonical Names (CNAMEs)", | ||||
| draft-ietf-avtcore-6222bis-00 (work in progress), | ||||
| December 2012. | ||||
| 8. Informative References | ||||
| [I-D.ietf-avtcore-rtp-multi-stream-optimisation] | ||||
| Lennox, J., Westerlund, M., Wu, W., and C. Perkins, | ||||
| "Sending Multiple Media Streams in a Single RTP Session: | ||||
| Grouping RTCP Reception Statistics and Other Feedback", | ||||
| draft-ietf-avtcore-rtp-multi-stream-optimisation-02 (work | ||||
| in progress), February 2014. | ||||
| [I-D.ietf-rtcweb-rtp-usage] | [I-D.ietf-rtcweb-rtp-usage] | |||
| Perkins, C., Westerlund, M., and J. Ott, "Web Real-Time | Perkins, C., Westerlund, M., and J. Ott, "Web Real-Time | |||
| Communication (WebRTC): Media Transport and Use of RTP", | Communication (WebRTC): Media Transport and Use of RTP", | |||
| draft-ietf-rtcweb-rtp-usage-05 (work in progress), | draft-ietf-rtcweb-rtp-usage-15 (work in progress), May | |||
| October 2012. | 2014. | |||
| [RFC3550] Schulzrinne, H., Casner, S., Frederick, R., and V. | [RFC3550] Schulzrinne, H., Casner, S., Frederick, R., and V. | |||
| Jacobson, "RTP: A Transport Protocol for Real-Time | Jacobson, "RTP: A Transport Protocol for Real-Time | |||
| Applications", STD 64, RFC 3550, July 2003. | Applications", STD 64, RFC 3550, July 2003. | |||
| [RFC3611] Friedman, T., Caceres, R., and A. Clark, "RTP Control | [RFC3611] Friedman, T., Caceres, R., and A. Clark, "RTP Control | |||
| Protocol Extended Reports (RTCP XR)", RFC 3611, | Protocol Extended Reports (RTCP XR)", RFC 3611, November | |||
| November 2003. | 2003. | |||
| [RFC4585] Ott, J., Wenger, S., Sato, N., Burmeister, C., and J. Rey, | [RFC4585] Ott, J., Wenger, S., Sato, N., Burmeister, C., and J. Rey, | |||
| "Extended RTP Profile for Real-time Transport Control | "Extended RTP Profile for Real-time Transport Control | |||
| Protocol (RTCP)-Based Feedback (RTP/AVPF)", RFC 4585, | Protocol (RTCP)-Based Feedback (RTP/AVPF)", RFC 4585, July | |||
| July 2006. | 2006. | |||
| [RFC5124] Ott, J. and E. Carrara, "Extended Secure RTP Profile for | [RFC5124] Ott, J. and E. Carrara, "Extended Secure RTP Profile for | |||
| Real-time Transport Control Protocol (RTCP)-Based Feedback | Real-time Transport Control Protocol (RTCP)-Based Feedback | |||
| (RTP/SAVPF)", RFC 5124, February 2008. | (RTP/SAVPF)", RFC 5124, February 2008. | |||
| [RFC7022] Begen, A., Perkins, C., Wing, D., and E. Rescorla, | ||||
| "Guidelines for Choosing RTP Control Protocol (RTCP) | ||||
| Canonical Names (CNAMEs)", RFC 7022, September 2013. | ||||
| Author's Address | Author's Address | |||
| Colin Perkins | Colin Perkins | |||
| University of Glasgow | University of Glasgow | |||
| School of Computing Science | School of Computing Science | |||
| Glasgow G12 8QQ | Glasgow G12 8QQ | |||
| United Kingdom | United Kingdom | |||
| Email: csp@csperkins.org | Email: csp@csperkins.org | |||
| End of changes. 27 change blocks. | ||||
| 74 lines changed or deleted | 114 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/ | ||||