Add option to use different pacer with send side bwe. (#3552)

Seeing a lot of queuing delay based back offs. Trying a couple of things
1. Accept a bit more queuing.
2. An option to try a different pacer. Would like to try with pass
   through. That will produce some out-of-order packets. Remains to be
   seen if it will have a negative impact.
This commit is contained in:
Raja Subramanian
2025-03-25 12:57:42 +05:30
committed by GitHub
parent 26822b6b49
commit b0abb0ae6e
4 changed files with 25 additions and 7 deletions
+8 -1
View File
@@ -491,7 +491,14 @@ func NewPCTransport(params TransportParams) (*PCTransport, error) {
Config: params.CongestionControlConfig.SendSideBWE,
Logger: params.Logger,
})
t.pacer = pacer.NewNoQueue(params.Logger, t.bwe)
switch pacer.PacerBehavior(params.CongestionControlConfig.SendSideBWEPacer) {
case pacer.PacerBehaviorPassThrough:
t.pacer = pacer.NewPassThrough(params.Logger, t.bwe)
case pacer.PacerBehaviorNoQueue:
t.pacer = pacer.NewNoQueue(params.Logger, t.bwe)
default:
t.pacer = pacer.NewNoQueue(params.Logger, t.bwe)
}
} else {
t.bwe = remotebwe.NewRemoteBWE(remotebwe.RemoteBWEParams{
Config: params.CongestionControlConfig.RemoteBWE,