From: "Jeremy Nelson" <jeremy@thepulsegroup.net>
To: lartc@vger.kernel.org
Subject: [LARTC] I thought it was right... please take a look...
Date: Wed, 19 Jun 2002 02:40:59 +0000 [thread overview]
Message-ID: <marc-lartc-102445456012346@msgid-missing> (raw)
Hi
I dont think my script is quite right but I just cant see why. If you could have a look at it and let me know if anything is wrong or suggest any better ways of making this happen.
I have a 256kbit link, I want to give half of that (approx 124kbit) to a web site we run and let it burst to the full link if the bandwidth is not used (classid 1:10).
The other half of the link is divided into 4 parts that each have 31kbit. I want these classes to be able to burst to half the link (124kbit) if the bandwidth is not used (classid 1:20 -> 1:50).
What is happening is that no traffic ever gets over 124kbit/sec even traffic that should be in 1:10. My script is below.
Thanks in advance
Jeremy
# Root
tc qdisc add dev eth0 root handle 1: htb default 50
# Parent to allow sharing
tc class add dev eth0 parent 1: classid 1:1 htb rate 248kbit burst 15k
# Main classes
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 124kbit ceil 248kbit burst 15k
tc class add dev eth0 parent 1:1 classid 1:20 htb rate 31kbit ceil 124kbit burst 15k
tc class add dev eth0 parent 1:1 classid 1:30 htb rate 31kbit ceil 124kbit burst 15k
tc class add dev eth0 parent 1:1 classid 1:40 htb rate 31kbit ceil 124kbit burst 15k
tc class add dev eth0 parent 1:1 classid 1:50 htb rate 31kbit ceil 124kbit burst 15k
# Add SFQ Classes under
tc qdisc add dev eth0 parent 1:10 handle 10: sfq perturb 10
tc qdisc add dev eth0 parent 1:20 handle 20: sfq perturb 10
tc qdisc add dev eth0 parent 1:30 handle 30: sfq perturb 10
tc qdisc add dev eth0 parent 1:40 handle 40: sfq perturb 10
tc qdisc add dev eth0 parent 1:50 handle 50: sfq perturb 10
# Add filters
U32="tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32"
$U32 match ip sport 80 0xffff flowid 1:10
$U32 match ip sport 25 0xffff flowid 1:20
$U32 match ip sport 1723 0xffff flowid 1:30
$U32 match ip sport 53 0xffff flowid 1:30
$U32 match ip dport 80 0xffff flowid 1:40
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next reply other threads:[~2002-06-19 2:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-19 2:40 Jeremy Nelson [this message]
2002-06-19 6:29 ` [LARTC] I thought it was right... please take a look Stef Coene
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-102445456012346@msgid-missing \
--to=jeremy@thepulsegroup.net \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.