Semi-shaped traffic

Linux Advanced Routing and Traffic Control

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

 



  During my tests I'm starting to feel stupid :). Traffic
shaping works quite on its own.

  System: RedHat 7.3, RedHat kernel 2.4.18-18.7.xsmp, HTB
version 3.6, interfaces eth0 and eth1 are acting as bridge br0.

  If TCP shaping almost works, it just exceeds limits UDP
is not shaped. Traffic flows PC=>eth0=>eth1=>PC. Statistics
shown is for just UDP traffic (1mbit of small udp packets).
What strange is that I do not see dropped or overlimits
packets.

  Lots of info is at the end of the letter. Where is my mistake?

  Thanks,

  Mindaugas

================================================================
$TC qdisc del dev eth1 root
$TC qdisc add dev eth1 root handle 1: htb
$TC class add dev eth1 parent 1: classid 1:200 htb rate 256kbit
$TC qdisc add dev eth1 parent 1:200 handle 200: sfq perturb 10
$TC filter add dev eth1 parent 1: protocol ip prio 1 u32 match ip dst $ip
flowid 1:200

#for w in "qdisc" "class" "filter"; do bin/tc -s -d $w show dev eth1; echo;
done
qdisc sfq 200: quantum 1514b limit 128p flows 128/1024 perturb 10sec
 Sent 25485900 bytes 424765 pkts (dropped 0, overlimits 0)

 qdisc htb 1: r2q 10 default 0 direct_packets_stat 552 ver 3.6
 Sent 25553103 bytes 425317 pkts (dropped 0, overlimits 0)


class htb 1:200 root leaf 200: prio 0 quantum 3276 rate 256Kbit ceil 256Kbit
burst 1919b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 25486560 bytes 424776 pkts (dropped 0, overlimits 0)
 rate 162710bps 2711pps
 lended: 424776 borrowed: 0 giants: 0
 tokens: 30 ctokens: 30


filter parent 1: protocol ip pref 1 u32
filter parent 1: protocol ip pref 1 u32 fh 800: ht divisor 1
filter parent 1: protocol ip pref 1 u32 fh 800::800 order 2048 key ht 800
bkt 0 flowid 1:200
  match d5e28382/ffffffff at 16

_______________________________________________
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