Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Daniel Sercaianu <sdan@terranet.ro>
To: lartc@vger.kernel.org
Subject: [LARTC] HTB3 big problem
Date: Wed, 14 Aug 2002 10:56:29 +0000	[thread overview]
Message-ID: <marc-lartc-102932266200713@msgid-missing> (raw)


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/

             reply	other threads:[~2002-08-14 10:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-14 10:56 Daniel Sercaianu [this message]
2002-08-14 12:41 ` [LARTC] HTB3 big problem Alexey Talikov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-102932266200713@msgid-missing \
    --to=sdan@terranet.ro \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox