-
Notifications
You must be signed in to change notification settings - Fork 851
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
[core] Fixed the issue with RTT in case of bidirectional transmission #2210
[core] Fixed the issue with RTT in case of bidirectional transmission #2210
Conversation
… introduced when adding atomic types
If the received |
Hi @gou4shi1, In the case of bidirectional transmission smoothed RTT
as in this case the same SRT peer functions as both receiver and sender. That's is why the initial values of 100 and 50 ms for The probability of RTT estimate being exactly 100 ms at the receiver side, or smoothed RTT extracted from the ACK and being exactly 100 ms at the sender side, is equal to 0. That's why if we receive such a value, we can assume that this is an initial value set at the beginning of the transmission If your real RTT of a path is close to 100 ms, there is a really small chance (almost close to 0) that you will get such a value and it wouldn't be |
Hi @mbakholdina , |
Hi @gou4shi1, I guess it doesn't make sense to change Returning to your previous example, if it happens during transmission that RTT sample is exactly 100 ms (not equal to So, I am trying to catch exactly 100 ms ( One more thing that's worth mentioning. If there is something stored in cache from the previous connection on the same IP address and port, the very first value of smoothed RTT |
Sorry, maybe I understand wrong, correct me if I'm wrong :) While |
Hi @gou4shi1, Finally, I've got some time to look into this. I agree, we can safely change the condition to the one you are suggesting: I include here the table with possible combinations and notes for future reference.
I'll prepare a PR to make the change. Thanks for catching this! Best regards, |
Great analysis! |
Fixed the issue with RTT in case of bidirectional transmission introduced when adding atomic types in PR #1863.
I've also checked all the atomic related changes. They are not affecting RTT logic anywhere else luckily.
Replaces PR #2208.