Traffic is exceeding limits

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  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.

  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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux