You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BandwidthRatedSplitter has two output ports. All incoming packets up to a
maximum of RATE are emitted on output port 0. Any remaining packets are
emitted on output port 1. RATE is a bandwidth, such as "384 kbps".
Unlike BandwidthMeter, the base RATE is emitted on output port
0 even when the input rate is greater than RATE.
The rate is implemented using a token bucket. The capacity of this token
bucket defaults to 20 milliseconds worth of tokens, but can be customized by
setting one of BURST_DURATION or BURST_SIZE.
Keyword arguments are:
RATE —
Bandwidth. Token bucket fill rate.
BURST_DURATION —
Time. If specified, the capacity of the token bucket is calculated as
rate * burst_duration.
BURST_BYTES —
Integer. If specified, the capacity of the token bucket is set to this
value in bytes.