Giter Site home page Giter Site logo

Comments (2)

paullouisageneau avatar paullouisageneau commented on May 24, 2024 1

It will trigger an SRTP error status srtp_err_status_replay_fail on the receiver side (which is also implemented w/ libdatachannel), indicating the sequence number of an SSRC does not strictly increase, if I understand it correctly. This happens in DtlsSrtpTransport::recvMedia() and a related discussion is here #866

libsrtp does not rely on strictly increasing sequence number, as the network might reorder packets. Instead, it maintains a replay window to mark which packets were received. The window size is set to 1024 in libdatachannel:

inbound.window_size = 1024;

If a retransmitted packet triggers srtp_err_status_replay_fail on receiver side, it means the packet was actually received before, so the retransmission was useless and the retransmitted packet can be dropped. This is harmless and can happen under normal operation.

Issue #866 is a different thing, it is about sending (not receiving) with the same SSRC and sequence number going in the past because of a inconsistent RTP flow on user side. It'll typically cause libsrtp to fail with err_status_replay_old as the sequence is out of the replay window.

from libdatachannel.

zhan6841 avatar zhan6841 commented on May 24, 2024

Thanks for the explanation. I think I figured the real issue out after reading it! It's not due to libdatachannel but my own implementation.

from libdatachannel.

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.