Skip to contentSkip to conversation

Traffic is exceeding limits

LARTC Mindaugas Riauba 2 participants 2 messages Dec 18, 2002

lore
Share & tools
lore
#0 lore raw

I'm trying to setup traffic shaping for a customer.
Machine is RedHat 7.3 with kernel-smp-2.4.18-18.7.x. HZQ2.

But when I try to load link (using netcat and discard /
chargen services) bytes count (tc -s qdisc show, sfq qdisc) goes quite well over 512kbit (~560kbit). With UDP I can even go over 1mbit.

What can be done to ensure tighter limits?

Thanks,

Mindaugas

burst and cburst were set by tc and equals 2175b. r2q = 10.

No more tc rules exists now.

$TC qdisc del dev eth0 root
$TC qdisc del dev eth1 root

$TC qdisc add dev eth0 root handle 1: htb
$TC qdisc add dev eth1 root handle 1: htb

$TC class add dev eth0 parent 1: classid 1:200 htb rate 512kbit $TC class add dev eth1 parent 1: classid 1:200 htb rate 512kbit

$TC qdisc add dev eth0 parent 1:200 handle 200: sfq perturb 10 $TC qdisc add dev eth1 parent 1:200 handle 200: sfq perturb 10

$TC filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip src $ip flowid 1:200
$TC filter add dev eth1 parent 1: protocol ip prio 1 u32 match ip dst $ip flowid 1:200

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 8 lines · Mindaugas Riauba

I'm trying to setup traffic shaping for a customer.
Machine is RedHat 7.3 with kernel-smp-2.4.18-18.7.x. HZ=512.

But when I try to load link (using netcat and discard /
chargen services) bytes count (tc -s qdisc show, sfq qdisc) goes quite well over 512kbit (~560kbit). With UDP I can even go over 1mbit.

I did the same. I used ttcp and recorded the bandwidth I could use. But my results where nearly perfetc (I recorder the bandwidth on a very log period). Recently I tried it with upd data but I had some strange results. 1 UDP data stream was shaped perfectly, but 2 UPD data streams can use the full link bandwidth. I still have to test ir further.

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/