HTB3 big problem

Linux Advanced Routing and Traffic Control

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

 




With the following setup I can get maxim of 4Mbit bandwidth when
downloading to ip dst 10.0.0.1. When I remove the shapers it works at
full 100Mbit.
What could be the problem?


tc -s -d class ls dev eth0

class htb 1:1 root rate 100Mbit ceil 100Mbit burst 2031b/8 mpu 0b cburst
132644b/8 mpu 0b level 7
 Sent 30473118 bytes 20564 pkts (dropped 0, overlimits 0)
 rate 394194bps 261pps
 lended: 0 borrowed: 0 giants: 0
 tokens: -155 ctokens: 8009

class htb 1:2 parent 1:1 leaf 10: prio 5 quantum 200000 rate 50Mbit ceil
50Mbit burst 2Kb/8 mpu 0b cburst 67121b/8 mpu 0b level 0
 Sent 30524594 bytes 20598 pkts (dropped 0, overlimits 0)
 rate 395529bps 262pps backlog 34p
 lended: 20564 borrowed: 0 giants: 0
 tokens: -309 ctokens: 7827

class htb 1:3 parent 1:1 leaf 20: prio 5 quantum 1638 rate 128Kbit ceil
128Kbit burst 2Kb/8 mpu 0b cburst 1762b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 102400 ctokens: 88149


To kernel-2.4.18 I applied the following patches:
htb3.6_2.4.17.diff
imq-2.4.18.diff-10
iptables-1.2.6a-imq

/sbin/tc qdisc del dev eth0 root
/sbin/tc qdisc add dev eth0 root handle 1: htb default 200
/sbin/tc class add dev eth0 parent 1:0 classid 1:1 htb\
 rate 100Mbit ceil 100Mbit burst 2k prio 5

/sbin/tc filter add dev eth0 parent 1:0 protocol ip\
  prio 5 handle 1: u32 divisor 256

/sbin/tc class add dev eth0 parent 1:1 classid 1:2 htb\
 rate 50Mbit ceil 50Mbit burst 2k prio 5
/sbin/tc qdisc add dev eth0 parent 1:2 handle 10: sfq quantum 1514 perturb 10
/sbin/tc filter add dev eth0 parent 1:0 protocol ip prio 5 u32 \
  match ip dst 10.0.0.1 flowid 1:2

/sbin/tc filter add dev eth0 parent 1:0 prio 5\
  handle ::1 u32 ht 800:: match ip nofrag\
  offset mask 0x0F00 shift 6\
  hashkey mask 0x00ff0000 at 8 link 1:


Daniel Sercaianu
Terranet Virtual Media
sdan@terranet.ro
GSM +40 788 837723


_______________________________________________
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