Controlling Bandwidth with CAKE

Traffic Matching

Address List

Mangle Rules

Upload

Download


Queues

Queue Types

Overhead

Definition: The overhead value accounts for extra bits added to each packet by lower layers (like Ethernet or DSL headers)

Why It Matters: Setting the correct overhead ensures accurate bandwidth measurement, preventing under- or over-throttling.

TypeOverhead (bytes)
Ethernet18
PPPoE40
VLAN22
DSL8-40

Diffserv Modes

Allows prioritisation based on the type of traffic (e.g., VoIP, video, or general data).

TypeOption
diffserv3Prioritises three traffic classes
(Bulk, Best Effort, Voice)
diffserv4Prioritises four traffic classes.
(Bulk, Best Effort, Video, Voice)
besteffortTreats all traffic equally

ACK Filtering

  • Definition: Reduces unnecessary TCP ACK packets to save bandwidth.
  • Use Case: Helps on asymmetric connections where uploads are much slower than downloads.
    • ack-filter – This enables the ACK filter feature.
    • ack-filter-aggressive – This is a more aggressive version of the ack-filter option. 

Test Example

  • Name: cake
  • Kind: cake
  • Overhead: 18 (Ethernet)
  • Diffserv: diffserv3
  • Ack Filter: filter

Queue Tree

Upload

Download

Testing

Bufferbloat Testing

https://www.waveform.com/tools/bufferbloat

iperf

Client

iperf3 -c 10.200.22.253 -t 600 -b 100M -R

Server

iperf3 -s

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *