Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Telecommunications›Token Bucket Rate Limiting Algorithm
Process / pipelineTraffic shaping

Token Bucket Rate Limiting Algorithm

Also known as: traffic shaping, rate limiting

Token bucket is a simple and elegant algorithm for traffic shaping and rate limiting. A virtual bucket accumulates tokens at a fixed rate (the committed information rate). Incoming packets consume tokens (one token per byte); packets are transmitted only if sufficient tokens are available. If the bucket is full, excess tokens are discarded (no carry-over). Token bucket bounds peak rate and allows controlled bursts, making it ideal for traffic management in networks.

ScholarGate
  1. Process / pipeline
  2. v1
  3. 2 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

Token Bucket
CSMA/CADiffServ

When to use it

Token bucket is used in QoS systems (RFC 2697, RFC 2698) for traffic policing and shaping. Use token bucket when average rate should be controlled but short bursts are acceptable. Avoid token bucket if strict peak rate must be enforced (use leaky bucket). Token bucket is standard in DiffServ traffic conditioning.

Strengths & limitations

Strengths
  • Simple algorithm: easy to implement in hardware or software
  • Fair: all flows shaped to same rate regardless of arrival pattern
  • Allows bursts: up to bucket capacity, useful for bursty traffic
  • Tunable: rate R and capacity C control behavior
  • Efficient: O(1) per-packet computation
Limitations
  • Allows peaks above average rate (burst size up to C)
  • Tokens are lost if bucket overflows; no feedback to sender
  • Not optimal for all traffic types; some traffic benefits from different shaping
  • Sharing bucket between flows is complex; per-flow buckets required

Frequently asked

What is the difference between token bucket and leaky bucket?

Token bucket allows bursts (up to capacity); leaky bucket enforces strict peak rate by dropping packets exceeding capacity. Token bucket is more lenient for bursty traffic.

How is token rate tuned?

Token rate R (tokens/second) determines average throughput: R * bytes/token = bits/second. Bucket capacity C determines burst size: C bytes. Tune R for desired average rate, C for acceptable burst.

What if a packet exceeds bucket capacity?

If packet size > bucket capacity, the packet will always be dropped or queued indefinitely. Packets should be smaller than bucket capacity; if necessary, increase C.

How does token bucket interact with congestion?

Token bucket limits sender injection rate but doesn't prevent congestion downstream. Combine with active queue management (AQM) at congestion points.

Sources

  1. Turner, J. S. (1986). New directions in communications (or which way to the information age?). IEEE Communications Magazine, 24(10), 8-15. link ↗
  2. Heinanen, J., Guerin, R., & May, A. (1999). A Single Rate Three Color Marker. RFC 2697. link ↗

How to cite this page

ScholarGate. (2026, June 3). Token Bucket Rate Limiting Algorithm. ScholarGate. https://scholargate.app/en/telecommunications/token-bucket

Related methods

CSMA/CADiffServ

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

  • CSMA/CATelecommunications↔ compare
  • DiffServTelecommunications↔ compare
Compare side by side →

Referenced by

DiffServ

Similar methods

DiffServQueueing SimulationStochastic Queueing SimulationLittle's LawSoftware-Defined NetworkingSlotted ALOHARobust Queueing SimulationNetwork Function Virtualization

Related reference concepts

Congestion Control PrinciplesNetwork Performance MetricsPacket Switching and Circuit SwitchingTransport Layer and Congestion ControlUDP and Connectionless TransportMultiple Access Protocols

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — Token Bucket (Token Bucket Rate Limiting Algorithm). Retrieved 2026-07-21 from https://scholargate.app/en/telecommunications/token-bucket · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
Jon Turner
Subfamily
Traffic shaping
Year
1986
Type
rate limiting algorithm
Related methods
CSMA/CADiffServ
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account