提交 5e7ed9af authored 作者: José Luis Millán's avatar José Luis Millán

#233. Update docs/RTCP.md

上级 e1eda252
# RTCP # RTCP
This documentation describes how RTCP packets should be processed in *mediasoup*. This documentation describes how RTCP packets are processed in *mediasoup*.
Being a SFU, some received RTCP packets must be just routed to its intended destination, others must be locally consumed, and others must be ignored. Being a SFU, some received RTCP packets are locally consumed and others are ignored.
This document also describes which RTCP packets must be locally generated by *mediasoup*. This document also describes which RTCP packets are locally generated by *mediasoup*.
*mediasoup* will not forward feedback information from a remote RTP receiver that could incur in the remote sender modifying the transmition rate in a way that it would affect the reception quality for the overall participants in a room. Ie: limiting the remote RTP sender transmition rate. *mediasoup* does not forward feedback information from a remote RTP receiver, which could incur in the remote sender modifying the transmition rate in a way that it would affect the reception quality for the overall participants in a room. Ie: limiting the remote RTP sender transmition rate.
In order to get the best media quality from the remote RTP senders, *mediasoup* will focus on generating locally the reception information (RR, XR), so the remote RTP senders can adjust their transmission rate according to it. In order to get the best media quality from the remote RTP senders, *mediasoup* focuses on generating locally the reception information (RR), so the remote RTP senders can adjust their transmission rate according to it.
### Sender Reports ### Sender Reports
...@@ -16,25 +16,25 @@ In order to get the best media quality from the remote RTP senders, *mediasoup* ...@@ -16,25 +16,25 @@ In order to get the best media quality from the remote RTP senders, *mediasoup*
### Receiver Reports ### Receiver Reports
*mediasoup* locally generates the Receiver Reports of the streams it receives. At the same time, it will consume the Receiver Reports from every remote RTP receivers. *mediasoup* locally generates the Receiver Reports of the streams it receives. At the same time, it consumes the Receiver Reports from every remote RTP receivers.
The combination of Sender and Receiver Reports will be used to determine the quality of each link. Information that will be available at the JavaScript API level in order to determine the quality of each participant in the room. The combination of Sender and Receiver Reports are used to determine the quality of each link. Information that is available at the JavaScript API level in order to determine the quality of each participant in the room.
### SDES ### SDES
SDES information is relayed from the remote RTP sender to the corresponding remote RTP receivers. SDES information is locally consumed.
### BYE ### BYE
BYE information will be relayed from the remote RTP sender to the corresponding remote RTP receivers. This information is ignored.
### APP ### APP
App information will be relayed from the remote RTP sender to the corresponding remote RTP receivers. This information is ignored.
### XR ### XR
The same logic is applied as to Receiver Reports. The same logic should be applied as to Receiver Reports.
## RTP Feedback ## RTP Feedback
...@@ -53,11 +53,12 @@ Stream Bit Rate Request (TMMBR, "timber") to request a sender to ...@@ -53,11 +53,12 @@ Stream Bit Rate Request (TMMBR, "timber") to request a sender to
limit the maximum bit rate for a media stream (see section 2.2) to, limit the maximum bit rate for a media stream (see section 2.2) to,
or below, the provided value. or below, the provided value.
``` ```
As for now, we will not limit the bit rate for media streams, as we are relying on locally generated reception reports (RR, XR) to make the remote RTP senders adjust their transmition rates given such values.
### RTCP-SR-REQ This information is ignored.
As for now, we do not limit the bit rate for the media streams as we are relying on locally generated reception reports (RR) to make the remote RTP senders adjust their transmition rates given such values.
This information is to be bypassed from the remote RTP receiver to the corresponding remote RTP sender. ### RTCP-SR-REQ
``` ```
RFC 6051: RFC 6051:
...@@ -70,13 +71,15 @@ delay. This increase in delay can be unacceptable to some ...@@ -70,13 +71,15 @@ delay. This increase in delay can be unacceptable to some
applications that use layered and/or multi-description codecs. applications that use layered and/or multi-description codecs.
``` ```
This information is ignored.
### RAMS ### RAMS
Applicable on multicast sessions. This information is ignored.
### TLLEI ### TLLEI
For now it can be just ignored. In future it could be useful when *mediasoup* generates **NACK** request, in order to ackonwledge remote RTP receivers about it and avoid them sending such requests, avoiding the so called "feedback storm" or "NACK storm". This information is ignored. In future it could be useful to acknowledge remote RTP receivers when *mediasoup* generates **NACK** request in order to avoid them sending them, which could generate the so called "feedback storm" or "NACK storm".
``` ```
RFC 6642: RFC 6642:
...@@ -88,39 +91,39 @@ to send feedback to it regarding these packets. ...@@ -88,39 +91,39 @@ to send feedback to it regarding these packets.
### RTCP-ECN-FB ### RTCP-ECN-FB
For now it can be just ignored. This information is ignored.
### PAUSE-RESUME ### PAUSE-RESUME
Locally consume the pause-resume requests from remote RTP receivers in order to disable and enable the transmission for them independently. Applicable also in simulcast envirnments. This information is ignored.
### Transport-wide Congestion Control (TCC) ### Transport-wide Congestion Control (TCC)
Locally generate the RTP extension header on RTP packets sent by RTP transport, and consume the received RTCP Feedback to know exactly the state of received and lost packets on remote Peers. This information is ignored.
## PS Feedback ## PS Feedback
### PLI ### PLI
This information is to be bypassed from the remote RTP receiver to the corresponding RTP sender. This information is locally consumed and generates a PLI request to the corresponding RTP sender.
Also to be locally sent when a new participant joins the conference for a fast rendering by the rest of participants.
Also it is locally sent when required. Ie: a new participant joins the conference for a fast rendering by the rest of participants.
### SLI ### SLI
This information is to be bypassed from the remote RTP receiver to the corresponding RTP sender. This information is ignored.
### RPSI ### RPSI
This information is to be bypassed from the remote RTP receiver to the corresponding RTP sender. This information is ignored.
### FIR ### FIR
This information is to be bypassed from the remote RTP receiver to the corresponding RTP sender. This information is locally consumed and generates a PLI request to the corresponding RTP sender.
Also to be locally sent when a new participant joins the conference for a fast rendering by the rest of participants.
### TSTR/TSTN ### TSTR/TSTN
This information is to be ignored since it would affect the transmition rate of the remote RTP sender, affecting thus the overall participants of the room. This information is ignored.
``` ```
RFC 5104: RFC 5104:
...@@ -132,21 +135,20 @@ desire for higher frame rate. ...@@ -132,21 +135,20 @@ desire for higher frame rate.
### VBCM ### VBCM
This information is to be ignored since different remote RTP receivers will potentially send different feedback for the same media stream. This information is ignored.
### PSLEI ### PSLEI
Same applicability as **TLLEI**. Same applicability as **TLLEI**.
For now it can be just ignored. In future it could be useful when *mediasoup* generates PLI or FIR request, in order to ackonwledge remote RTP receivers about it and avoid them sending such requests, avoiding the so called "feedback storm".
### AFB ### AFB
Application information will be relayed from the remote RTP receiver to the corresponding remote RTP sender. This information is ignored except for the REMB messages, which is locally consumed.
### REMB
### REMB (for now a subtype of AFB) This information is locally consumed.
In future, this information is to be consumed by the local RTP Senders in order to adapt their transmission rate to the availability of the remote RTP receivers.
REMB RTCP is generated locally based on the remote bitrate estimation. REMB RTCP is generated locally based on the remote bitrate estimation.
...@@ -157,22 +159,21 @@ REMB RTCP is generated locally based on the remote bitrate estimation. ...@@ -157,22 +159,21 @@ REMB RTCP is generated locally based on the remote bitrate estimation.
| | SR | RR | SDES | BYE | APP | | | SR | RR | SDES | BYE | APP |
| --------- | -- | -- | ---- | --- | --- | | --------- | -- | -- | ---- | --- | --- |
| Consumer | G | C | | | | | Consumer | G | C | | | |
| Producer | C | G | B | B | B | | Producer | C | G | C | I | I |
### RTP Feedback RTCP ### RTP Feedback RTCP
| | NACK | TMMBR | TMMBN | TLLEI | ECN-FB | PAUSE-RESUME | TCC | | | NACK | TMMBR | TMMBN | TLLEI | ECN-FB | PAUSE-RESUME | TCC |
| --------- | ---- | ----- | ----- | ----- | ------ | ------------ | --- | | --------- | ---- | ----- | ----- | ----- | ------ | ------------ | --- |
| Consumer | C | I | | | I | C | | | Consumer | C | I | I | I | I | I | |
| Producer | G | | I | I | | | | | Producer | G | | I | I | | | |
| Transport | | | | | | | CG |
## PS Feedback RTCP ## PS Feedback RTCP
| | PLI | SLI | RPSI | FIR | TSTR | TSTN | VBCM | PSLI | ROI | REMB | | | PLI | SLI | RPSI | FIR | TSTR | TSTN | VBCM | PSLI | AFB | REMB |
| --------- | --- | --- | ---- | --- | ---- | ---- | ---- | ---- | --- | ---- | | --------- | --- | --- | ---- | --- | ---- | ---- | ---- | ---- | --- | ---- |
| Consumer | B | B | B | B | I | | I | | | C | | Consumer | C | I | I | C | I | | I | | I | C |
| Producer | | | | | | I | | I | | | | Producer | G | | | | | I | | I | | |
| Transport | | | | | | | | | | G | | Transport | | | | | | | | | | G |
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论