I'm having some trouble shaping my outgoing traffic to 14Mbit. I've been searching posts here but nothing seems to have helped. I've tried CBQ approach:
tc qdisc add dev eth0 root handle 10: cbq bandwidth 100Mbit avpkt 1000 cell 8
tc class add dev eth0 parent 10:0 classid 10:1 cbq allot 1514 cell 8 maxburst 80 avpkt 1000 prio 1 bandwidth 14Mbit rate 14Mbit weight 5Kbit bounded
tc qdisc add dev eth0 parent 10:1 sfq quantum 14Mbit
but that did nothing, I've poked around a bit, found wondershaper 1.1a, configured, ran, everything went smoothly but traffic wasn't bursted. I've looked around manual and found TBF, quick line from manual:
tc qdisc add dev eth0 root tbf rate 14mbit latency 50ms burst 220kbit
limited burst somewhat, but it always falled back to 16Kb/s.
I'm trying to limit just outgoing connections to 14mbit, iptables doesn't look to friendly to me to accomplish that. I'm running on 2.6 kernel, x86_64.