Skip to content

GCC refactoring #306

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

GCC refactoring #306

wants to merge 1 commit into from

Conversation

mengelbart
Copy link
Contributor

Description

This PR refactors the GCC implementation using the new API introduced in #300. Currently, users are responsible for creating a SendSideController, reading CCFB reports from the attributes, and passing them to the SendSideController. This does not include pacing, which needs to be handled separately. Since the new controller does not need to read or pace outgoing packets, we no longer need the cumbersome callback API to get a pointer to the bandwidth estimator.

This refactoring also cleans up the architecture of the bandwidth estimator. It no longer uses the weird pipelining structure and no longer uses any concurrency. This should also fix/close some of the open issues and PRs like #271, #299, #260, #221, #296.

This should not be merged before #300 is merged. A follow-up PR to this one will clean up the old pkg/gcc directory to use this version.

Copy link

codecov bot commented Jan 20, 2025

Codecov Report

Attention: Patch coverage is 55.21327% with 189 lines in your changes missing coverage. Please review.

Project coverage is 70.39%. Comparing base (73f7ccf) to head (7db4a7e).

Files with missing lines Patch % Lines
pkg/bwe/kalman.go 0.00% 66 Missing ⚠️
pkg/bwe/delay_rate_controller.go 0.00% 57 Missing ⚠️
pkg/bwe/send_side_bwe.go 0.00% 28 Missing ⚠️
pkg/bwe/state.go 70.27% 11 Missing ⚠️
pkg/bwe/usage.go 0.00% 10 Missing ⚠️
pkg/bwe/rate_controller.go 83.33% 8 Missing ⚠️
pkg/bwe/arrival_group_accumulator.go 85.71% 3 Missing and 1 partial ⚠️
pkg/bwe/rtt.go 0.00% 3 Missing ⚠️
pkg/bwe/acknowledgment.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #306      +/-   ##
==========================================
- Coverage   71.69%   70.39%   -1.31%     
==========================================
  Files          79       92      +13     
  Lines        4742     5164     +422     
==========================================
+ Hits         3400     3635     +235     
- Misses       1203     1389     +186     
- Partials      139      140       +1     
Flag Coverage Δ
go 70.29% <55.21%> (-1.41%) ⬇️
wasm 68.55% <55.21%> (-1.09%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mengelbart mengelbart force-pushed the gcc-refactoring branch 23 times, most recently from 7d3f0d9 to 0f9b5cc Compare January 27, 2025 13:59
@mengelbart
Copy link
Contributor Author

This PR is basically a rewrite of the bandwidth estimator without using any interceptor-specific concepts. Since it does not add an interceptor and can be used without interceptors, what do you think of moving the package into a separate repository which can then also hold alternative bandwidth estimator implementations? @Sean-Der @aalekseevx @JoeTurki

@aalekseevx
Copy link
Member

@mengelbart, I like this idea. I think it would be convenient to keep the BWE implementation and tests in the same place. Maybe we can use the existing pion/bwe-test repository for this and rename it to pion/bwe?

@JoeTurki
Copy link
Member

Hello, I agree with @aalekseevx, let's see what Sean see.

@mengelbart
Copy link
Contributor Author

pion/bwe sounds good. Unfortunately, I never got to really finish the test suite there, but it might be a good opportunity to finally straighten that out.

@mengelbart
Copy link
Contributor Author

I created pion/bwe-test#61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants