New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add clarification that inbound-rtp.bytesReceived includes retransmissions. #755
Comments
Related issue: #751 |
Not sure if we are consistent with RFC though since we made it so that "bytesSent includes RTX" and the RTX could be sent over a separate SSRC if separate RTX stream is supported. |
There is some confusion here about whether or not probes need/should be included. I suspect they should be included on both send and receive side - but I'm not sure what we do today. @fippo can you help break down the current state of things? Edit: Especially what the state of the probes are as those seem to account for a large percentage of overall traffic |
The overall definition of "this SSRC" should probably be "this SSRC and all the SSRCs related to it such as retransmissions or FEC" in a lot of places. This relationship is commonly defined via ssrc-group, not sure if JSEP in its "we don't need SSRCs" narrative actually solves that problem or not. The spec seems fine apart from pointing out that "This includes retransmissions" for inbound-rtp which is easy to fix, I'll do a PR. RTX probes (for which we don't have an actual spec definition, whoops) are a bit tricky. They look like retransmitted packets on the receiver (one can try to be smart but given the lack of a spec that is a bad idea). Which means they will get accounted for differently, on outbound-rtp they might get accounted for as padding (maybe, like padding probes). |
If I may quote you @fippo running https://jsfiddle.net/fippo/hvpxf5L0/3/ with and without https://webrtc-review.googlesource.com/c/src/+/295260 which did modify inbound-rtp counters:
|
The fiddle demonstrates that after stopping a transceiver and waiting a bit for things to settle we should have roughly the same number of inbound-rtp packetsReceived as we have on outbound-rtp packetsSent. |
* Clarify RTX accounting fixes #755 * clarify more
For bytesSent we say:
For bytesReceived we say:
They both seemingly refer to the same thing, and having symmetry here is good (bytesSent should be roughly equal to bytesReceived). And yes, we should include retransmissions because header bytes + bytes should equal to the total bitrate of that SSRC.
So it seems like a small discrepancy that we forgot to say "This includes retransmissions" for the bytesReceived case as well. Right? @alvestrand @vr000m @fippo
The text was updated successfully, but these errors were encountered: