Module traffic_shaping

Module traffic_shaping 

Source
Expand description

Traffic shaping beyond latency simulation

This module provides advanced traffic shaping capabilities including:

  • Bandwidth throttling using token bucket algorithm
  • Burst packet loss simulation
  • Integration with existing latency and fault injection

Structsยง

BandwidthConfig
Bandwidth throttling configuration
BandwidthStats
Bandwidth usage statistics for the token bucket
BurstLossConfig
Burst loss configuration for simulating intermittent connectivity issues
BurstLossOverride
Tag-specific burst loss configuration override
BurstLossStats
Burst loss state statistics
TrafficShaper
Main traffic shaper combining bandwidth throttling and burst loss
TrafficShapingConfig
Traffic shaping configuration combining all features