8000 update: change window size to 1000ms, set size of ebs to the same of cbs by brianchennn · Pull Request #145 · free5gc/gtp5g · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

update: change window size to 1000ms, set size of ebs to the same of cbs #145

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

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/gtpu/trTCM.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ TrafficPolicer* newTrafficPolicer(u64 kbitRate) {

p->byteRate = kbitRate * 125 ; // Kbit/s to byte/s (*1000/8)

// 8ms as burst size
p->cbs = p->byteRate * 8 / MILLISECONDS_PER_SECOND; // bytes
// 1000ms as burst size
p->cbs = p->byteRate * 1000 / MILLISECONDS_PER_SECOND; // bytes
if (p->cbs < MTU) {
p->cbs = MTU;
}

p->ebs = p->cbs * 2; // bytes, 2 times of cbs size
p->ebs = p->cbs * 1; // bytes, 1 times of cbs size

// fill buckets at the begining
p->tc = p->cbs;
Expand Down
0