From: "Hua Zhong" <hzhong@gmail.com>
To: <netdev@vger.kernel.org>
Subject: Linux 2.6 HTB does only work with existing connections
Date: Wed, 21 Feb 2007 17:44:31 -0800 [thread overview]
Message-ID: <01de01c75623$00179ca0$0046d5e0$@com> (raw)
Hi all,
I tried to use HTB on a 2.6.12 based kernel. It seems that if I issue the tc
commands, existing connections adjust bandwidth immediately, but any new
connections won't be filtered correctly.
The tc version is 3.17.
The commands are very simple (only eth1 is active):
tc qdisc del dev eth1 root
tc qdisc add dev eth1 root handle 1: htb default 20
tc class add dev eth1 parent 1: classid 1:20 htb rate 4000kbit
No filters, just limit everything to under 4Mbit.
Then run ttcp to a remote machine, ifconfig shows eth1 is not limited.
However, while ttcp is running, issue the above three commands again, the
bandwidth is then limited correctly.
Any ideas?
The following are the show commands:
# tc qdisc show dev eth1
qdisc htb 1: r2q 10 default 20 direct_packets_stat 11
# tc class show dev eth1
class htb 1:20 root prio 0 rate 4000Kbit ceil 4000Kbit burst 2099b cburst
2099b
Please cc me.
Hua
next reply other threads:[~2007-02-22 1:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-22 1:44 Hua Zhong [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-02-22 2:30 Linux 2.6 HTB does only work with existing connections Hua Zhong
2007-02-22 13:45 ` Andi Kleen
2007-02-22 3:07 Hua Zhong
2007-02-22 13:47 ` Andi Kleen
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='01de01c75623$00179ca0$0046d5e0$@com' \
--to=hzhong@gmail.com \
--cc=netdev@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;
as well as URLs for NNTP newsgroup(s).