Comments (2)
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:
libdatachannel/src/impl/dtlssrtptransport.cpp
Line 347 in b5518ff
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.
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)
- libdatachannel can't build on Microsoft Windows HOT 2
- Help~ WebRTC handshake failed. What should I do? HOT 1
- RtpHeader/Ssrc is not a member of 'rtc' HOT 2
- class "rtc::H264RtpPacketizer" has no member "DefaultClockRate" HOT 1
- [vcpkg] configure failed because 'Could not find a package configuration file provided by "libSRTP"' HOT 1
- Version 0.20.0 can not be build with usrsctp 0.9.5.0 HOT 1
- SIGABRT in IceTransport::TimeoutCallback with libnice HOT 6
- Compile with static msvcrt on windows HOT 2
- run the client-benchmark HOT 2
- Cross-compile for alwinner v3s HOT 2
- Adding and Removing Tracks Without Creating New Connections HOT 6
- `juice: Send failed, buffer is full` error in media-sender example HOT 5
- How to add tracks during negotiation HOT 1
- Add version macros
- receive audio in streamer example HOT 1
- Implementation in Codeblocks C++ HOT 4
- using in Local Network/localhost HOT 1
- Issue of RtcpNackResponder nack data HOT 4
- How to properly release resources in libdatachannel HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libdatachannel.