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.
- rate limitkind of · A rate limit is a bound on the frequency or volume of operations permitted within a defined interval, scope, or concurrency limit.
- Cloud Runused by · Cloud Run is a Google Cloud managed serverless platform for deploying and running containerized applications without managing underlying infrastructure.
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.

