Skip to content
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

How to set the maximum number of retransmissions? #2763

Closed
yuchengmao opened this issue Jul 14, 2023 · 4 comments
Closed

How to set the maximum number of retransmissions? #2763

yuchengmao opened this issue Jul 14, 2023 · 4 comments
Labels
Type: Question Questions or things that require clarification
Milestone

Comments

@yuchengmao
Copy link

How to set the maximum number of retransmissions?

@yuchengmao yuchengmao added the Type: Question Questions or things that require clarification label Jul 14, 2023
@ethouris
Copy link
Collaborator

There is no such setting. There are two possibilities of how and whether the retransmissions are repeated:

  1. If SRTO_NAKREPORT option is on, retransmission request is repeated, if it didn't result in a successful retransmission in a specifically calculated time based on RTT (that is, repeating happens when the retransmitted packet was considered lost again). Otherwise this repeating is done only if ACK period passed and new packets are still coming, while the decision for retransmission is undertaken autonomously by the sender side ("TCP style").
  2. If SRTO_TLPKTDROP option is on (required SRTO_TSBPDMODE=1), retransmissions are given up on the receiver side (no more requests are sent) when the packets already waiting in the buffer are ready to deliver basing on their arrival time and latency. Also the sender side may also stop retransmitting the lost packet if it calculated that it won't reach the receiver before it decides to drop this packet. This mechanism can be controlled on the sender side using SRTO_SNDDROPDELAY option. Otherwise retransmissions can be repeated until the lost packet is recovered, as long as the connection is running.

With the default settings for live mode, SRTO_NAKREPORT=1 SRTO_TLPKTDROP=1 SRTO_TSBPDMODE=1.

In file mode, all these three options are set to 0.

@maxsharabayko
Copy link
Collaborator

Related FRs: #2701, #591.

@yuchengmao
Copy link
Author

Got it, thanks for the reply!

@maxsharabayko maxsharabayko added this to the v1.5.3 milestone Aug 21, 2023
@maxsharabayko
Copy link
Collaborator

Closing this in favor of the remaining FRs #2701 and #591, and PR #2714

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Question Questions or things that require clarification
Projects
None yet
Development

No branches or pull requests

3 participants