From: urgrue <urgrue@tumsan.fi>
To: admin <linux-admin@vger.kernel.org>
Subject: annoying tc behaviour
Date: Wed, 13 Apr 2005 15:57:00 +0300 [thread overview]
Message-ID: <20050413125700.GA10202@fede2.dev.ascom.fi> (raw)
i want to prioritize one form of traffic over another in the simplest
way possible. as i understand i cant get away with simple PRIO, but
need to have the root qdisc rate limited with HTB (or CBQ, etc). if im
wrong please correct me.
after several hours of fiddling i've come up with:
tc qdisc add dev eth0 root handle 1: htb default 1
tc class add dev eth0 parent 1: classid 1:1 htb rate 120kbit burst 15k
tc qdisc add dev eth0 parent 1:1 handle 10: prio
tc qdisc add dev eth0 parent 10:1 handle 11: sfq
tc qdisc add dev eth0 parent 10:2 handle 12: sfq
tc filter add dev eth0 parent 10: protocol ip u32 match ip sport 22
0xffff flowid 12:
tc filter add dev eth0 parent 10: protocol ip u32 match ip sport 19
0xffff flowid 11:
with tc -s qdisc i can see that indeed traffic on port 19 hits qdisc
11: and port 22 hits qdisc 12:, as intended. total traffic is limited
to 120kbit.
trouble is, it divides the traffic evenly, both ports get about
60kbits. i thought PRIO in this case should give just about all the
available bandwidth to port 19, while 22 sits around starving to death.
but this doesnt happen, and i'd like it to.
any help appreciated.
reply other threads:[~2005-04-13 12:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20050413125700.GA10202@fede2.dev.ascom.fi \
--to=urgrue@tumsan.fi \
--cc=linux-admin@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).