-
Notifications
You must be signed in to change notification settings - Fork 856
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
[FR] SRT configuration helper functions #703
Comments
Buffer Sizes and Flow Control Window SizeDefault receiver buffer size is The target number of packets in flight (FC window) should be (assuming max payload size): Flow control window limits the number of packets in flight. Those packets are not only packets being literally in flight to the receiver and back via ACK message, but also unacknowledged packets due to losses. This means, that if the very first packet of the transmission was lost, then the whole flight window will not be acknowledged. And thus the sender will be blocked by this window, not allowing to send more data. Therefore FC should by higher than the actual number of packet in flight, e.g. twice higher. Receiver Buffer Size
def calc_rcv_buf_bytes(rtt_ms, bps, latency_ms):
return (latency_ms + rtt_ms / 2) * bps / 1000 / 8 To delete (old version)Pseudocode:
See issue #700 |
There are some tricky parts in configuring SRT, like
maxbw
,SRTO_SNDBUF
,SRTO_RCVBUF
,SRTO_FC
that have to be adjusted to the expected sending bitrate and RTT.Helper functions will be useful for that.
Here all such functions will be accumulated, to be later included into SRT code base.
Stay in sync with SRT Deployment Guide.
See also #621.
The text was updated successfully, but these errors were encountered: