liveBook · Manning

Traffic-shaping algorithm

A traffic-shaping algorithm controls the rate, volume, or distribution of traffic to conform to specified limits or routing rules.

How 2 Manning books explain it

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.

Read how Acing the CCNA Exam: Volume 2 Advanced Networking and Security explains traffic-shaping algorithm →

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

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.