mywiki:linux:tc-ca
This is an old revision of the document!
| Feature | Ingress Qdisc | egress Qdisc |
| Direction | Incoming traffic | Outgoing traffic |
| Common Usage | Policing (rate limiting) | Shaping, scheduling |
| Handle | ffff: | Custom (e.g., 1:) |
| Parent Keyword | parent ffff: | parent <handle>: |
| Shaping Support | ❌ Not supported | ✅ Supported |
| Example Qdisc | ingress | htb, fq_codel, tbf, etc. |
| create qdisc | tc qdisc add dev <interface> handle ffff: ingress | tc qdisc add dev <interface> root handle 1: htb default 10 |
| create filter | tc filter add dev <interface> parent ffff: \ protocol ip prio 1 u32 match ip src 0.0.0.0/0 \ police rate 1mbit burst 10k drop flowid :1 | tc class add dev <interface> parent 1: classid 1:10 htb rate 1mbit tc filter add dev <interface> protocol ip parent 1: prio 1 u32 \ match ip dst 0.0.0.0/0 flowid 1:10 |
mywiki/linux/tc-ca.1756436896.txt.gz · Last modified: by gshao
