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

[docs] Added buffer configuration guide #1951

Merged
merged 7 commits into from
May 18, 2021

Conversation

maxsharabayko
Copy link
Collaborator

@maxsharabayko maxsharabayko commented Apr 15, 2021

Added configure-buffers.md document.

Closes #703.

@maxsharabayko maxsharabayko added Type: Enhancement Indicates new feature requests [docs] Area: Improvements or additions to documentation labels Apr 15, 2021
@maxsharabayko maxsharabayko added this to the v1.4.4 milestone Apr 15, 2021
Copy link
Collaborator

@stevomatthews stevomatthews left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor edits

Copy link
Collaborator

@cmollahan cmollahan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No changes.

maxsharabayko and others added 3 commits April 23, 2021 11:56
- **300 Mbits** of payload in the default file transfer configuration with an SRT payload size of **1456 bytes**.

The default receiver buffer size is 8192 packets. It is approximately:
- **86 Mbits** of payload with the effective SRT payload size of **1316 bytes**.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's about 1456 bytes?


The minimum size of the receiver buffer in packets can be calculated as follows:

`pktsRBufSize = bps / 8 × (RTTsec + latency_sec) / bytePayloadSize`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we consider better variables' names here?
pktsRBufSize -> pktsRecvBufSize
bps -> bpsRate
RTTsec -> secRTT
secLatency
bytesPayloadSize


- `bps` is the payload bitrate of the stream in bits per second;
- `RTTsec` is the RTT of the network connection in seconds;

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

latency is missing?

@maxsharabayko maxsharabayko marked this pull request as ready for review May 18, 2021 09:48
@maxsharabayko maxsharabayko merged commit 7e5b3ee into Haivision:master May 18, 2021
@maxsharabayko maxsharabayko deleted the docs/configure-buffers branch May 18, 2021 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[docs] Area: Improvements or additions to documentation Type: Enhancement Indicates new feature requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FR] SRT configuration helper functions
4 participants