Files
livekit/pkg/sfu/buffer
Raja Subramanian 96ccf696d3 Cap expected packets to padding diff. (#2122)
* Cap expected packets to padding diff.

On the receiver, no longer using packet metadata cache to calculate
interval stats. An optimisation to get rid of packet metadata cache
on receiver side.

Because of that, padding packets in an interval could be more than
expected packets. As padding packets is just a counter, out-of-order
padding packets will make the diff look larger than expected packets
in a window. Cap the expected to 0.

NOTE: This makes it so that the count is not accurate in a window,
but that is okay occasionally. It will affect reported stats and quality
calculations, but it should be rare. For example, if 30 packets were
received in a window and 60 out-of-order padding packets were received,
it would reported as 0 packets were received. One option is to not
increment padding packets when they are out-of-order, but that will mess
up overall stats. Will make that change if we see this happen a lot.

* log unexpected padding packets
2023-10-03 12:36:19 +05:30
..
2023-10-02 22:47:40 +05:30
2023-07-27 16:43:19 -07:00
2023-07-27 16:43:19 -07:00
2023-07-27 16:43:19 -07:00
2023-07-27 16:43:19 -07:00
2023-07-27 16:43:19 -07:00
2023-07-27 16:43:19 -07:00
2023-09-16 02:03:50 +05:30
2023-07-27 16:43:19 -07:00
2023-07-27 16:43:19 -07:00