Networking

Token Bucket Burst & Refill Calculator

Estimate how long a full token bucket permits a peak-rate burst above its sustained rate.

How the calculation works

Full-bucket peak burst duration = bucket*8/(peak-sustained)*1000 ms. Empty-bucket refill while idle = bucket*8/sustained s.

Worked example

Example inputs — Token bucket capacity (decimal MB): 1; Token refill / sustained rate (Mbps): 10; Output peak transmission rate (Mbps): 100. Expected results — Full-bucket peak burst duration: 88.88888889 ms; Empty-bucket refill while idle: 0.8 s.

Assumptions and limits

Offline planning arithmetic: this calculator sends no packets and changes no device configuration. Actual routing, reservations, implementation limits and measured network conditions must be checked separately. Initially full single bucket, continuous byte tokens and uninterrupted peak traffic. Packet granularity, multiple buckets, scheduler policies and policing drops are not simulated.

Reference and further reading

Read the underlying subject reference. Calculith is an independent implementation; the reference does not endorse or certify this tool.

Related calculators

Browse all 1000 calculators →

Example values are editable. Results are estimates where assumptions apply. Calculations run in your browser. Updated 2026-11-16.