Hi all,

I am trying to control the rate of a server. I was following the link on netem from "the linux foundation" (not able to post the link due to my limited posts)
All the basic rules work fine. But I am not able to get a precis rate control.

Trial 1#:
/sbin/tc qdisc add dev eth0 root handle 1: prio
/sbin/tc qdisc add dev eth0 parent 1:3 handle 30: tbf rate 1mbps burst 1599b lat 26.6ms
/sbin/tc filter add dev eth0 protocol ip parent 1:0 prio 3 u32 match ip dst 10.10.10.10 flowid 1:3

From the targeted IP I see the rate is limited to approximately 15.4K/s.

Trial 2#
/sbin/tc qdisc add dev eth0 root handle 1: prio
/sbin/tc qdisc add dev eth0 parent 1:3 handle 30: tbf rate 20kbit buffer 1600 limit 3000
/sbin/tc filter add dev eth0 protocol ip parent 1:0 prio 3 u32 match ip dst 10.10.10.10 flowid 1:3

Even in this case I see the rate is limited to approximately 15 K/s.

What is the difference in these two cases and why is the rate not changing in these cases.
My entire infra is a 1Gbps. Can someone please help me in understand where i am going wrong?

-Sri Krishna