Coder Social home page Coder Social logo

Discarding duplicate H26x packets about uvgrtp HOT 5 CLOSED

jrsnen avatar jrsnen commented on September 26, 2024
Discarding duplicate H26x packets

from uvgrtp.

Comments (5)

jrsnen avatar jrsnen commented on September 26, 2024 1

@altonen something along those lines is probably the best solution. Care must be taken that the following operations don't become too slow: 1) checking if the packet is a duplicate and 2) checking if we can forget about this frame being completed in garbage collection (as it is possible that the same timestamp and sequence number happens in the future).

from uvgrtp.

altonen avatar altonen commented on September 26, 2024

What about using both the packet timestamp and sequence number for detecting duplicates?

from uvgrtp.

Consti10 avatar Consti10 commented on September 26, 2024

I think using the sequence number and sequence number only for duplicates would be completely fine, as long as the looparound (uint16_t) is accounted for. Maybe just keep a map of already received sequence numbers of max size half of UINT16_T_MAX ?

from uvgrtp.

jrsnen avatar jrsnen commented on September 26, 2024

The only problem with that is that you'd have to go through all completed fragments every time a fragment is received, which can be much more than going through all timestamps.

If I understand duplication correctly, it only happens when something else has already gone wrong, so this issue does not seem of high importance.

  • Joni

from uvgrtp.

tampsa avatar tampsa commented on September 26, 2024

Fixed by 69a02c0

from uvgrtp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.