Traffic-shaping algorithm
A traffic-shaping algorithm controls the rate, volume, or distribution of traffic to conform to specified limits or routing rules.
Acing the CCNA Exam: Volume 2 Advanced Networking and Security
Shaping is a quality-of-service technique that enforces a traffic rate limit by buffering excess traffic and transmitting it later at the permitted rate.
- How it is used
- Controls traffic rates in QoS policies when excess traffic should be delayed rather than dropped.
- How deep it goes
- Defines buffering, queues, conforming traffic, exceeding traffic, scope, and bursts, but provides no CLI syntax or verification output.
- Examples
- Uses a 300 Mbps ISP connection, GigabitEthernet interfaces, provider policing, and customer outbound shaping.
- What you can do after
- Apply shaping to smooth traffic and avoid drops caused by a downstream provider’s rate limit.
Python Concurrency with asyncio
Traffic shaping is the control of network traffic volume or rate to conform to specified limits.
- How it is used
- Limits API request bursts when concurrency control alone could create spikes of load.
- How deep it goes
- Contrasts concurrency limiting with rate shaping and names two algorithms, but stops short of implementing either.
- Examples
- Uses ten concurrent requests as a semaphore example and identifies simultaneous bursts as the problem to shape.
- What you can do after
- Evaluate whether a semaphore is sufficient or whether a leaky-bucket or token-bucket design is needed.
Read how Python Concurrency with asyncio explains traffic-shaping algorithm →
Related concepts
- policingcontrasts with · Policing is a traffic-control technique that enforces a configured rate or traffic contract by identifying excess traffic and applying a policy action.
- algorithmkind of · An algorithm is a finite, precisely specified procedure for performing a computation, transforming inputs into outputs, or solving a problem.
- rate limitkind of · A rate limit is a constraint on the number or frequency of operations permitted for a client, service, or resource within a defined interval or capacity.
Questions about traffic-shaping algorithm
What is traffic-shaping algorithm?
A traffic-shaping algorithm controls the rate, volume, or distribution of traffic to conform to specified limits or routing rules.
Which Manning books explain traffic-shaping algorithm?
Acing the CCNA Exam: Volume 2 Advanced Networking and Security and Python Concurrency with asyncio.
What is the difference between traffic-shaping algorithm and policing?
A traffic-shaping algorithm controls the rate, volume, or distribution of traffic to conform to specified limits or routing rules. Policing is a traffic-control technique that enforces a configured rate or traffic contract by identifying excess traffic and applying a policy action.
What kinds of traffic-shaping algorithm are there?
Kinds of traffic-shaping algorithm include leaky bucket and token bucket.
What is traffic-shaping algorithm a kind of?
Traffic-shaping algorithm is a kind of algorithm. An algorithm is a finite, precisely specified procedure for performing a computation, transforming inputs into outputs, or solving a problem.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

