I'm trying to limit traffic to test performance of some in-house applications, but I am getting inconsistent results when configuring my home PC and my company testbed.
The goal is to police the rate to 256kbps, which works as expected at home (tested by wget), but when I repeat the same test on the company testbed, the rate drops to 20KBps. I have tested that without TC settings, the testbed runs in excess of 10 mbps.
I wonder if TC mangles packets in some way that is causing the firewall to treat them differently?
My configuration commands:
tc qdisc add dev eth0 handle ffff: ingress tc filter add dev eth0 parent ffff: protocol ip prio 50 u32 match ip src 0.0.0.0/0 police rate 256kbps burst 100kb drop flowid :1