From: radus <radus@rdsor.ro>
To: lartc@vger.kernel.org
Subject: [LARTC] limiting users on a 128kbit line
Date: Wed, 19 Feb 2003 21:40:04 +0000 [thread overview]
Message-ID: <marc-lartc-104569091203067@msgid-missing> (raw)
Hello!
I've been trying to write a traffic shaper for a 128kbit line with this setup
:
5 computers that get dedicated bandwidth and the rest go in a pool with bigger
priorities.
I made the attached script, but it seems it doesn't work...
It sends the traffic coming from the dedicated ips to the default class.
Where is the error ?
Will this setup work if the bandwidth is full ?
Since it's not a guaranteed bandwidth can i put no ceiling but still all the
ips to have their equal share ?
I've set r2q to 1 (it's the smallest one possible, no ? ) and it receive
warnings that the quantum is too small
Thanks in advance....
Radu
Here's the script :
tc qdisc add dev eth1 root handle 1: htb default 14 r2q 1
tc class add dev eth1 parent 1: classid 1:1 htb rate 128kbit burst 2k
tc class add dev eth1 parent 1:1 classid 1:10 htb rate 48kbit burst 2k
tc class add dev eth1 parent 1:1 classid 1:20 htb rate 12kbit ceil 128kbit
burst 2k
tc class add dev eth1 parent 1:1 classid 1:30 htb rate 12kbit ceil 128kbit
burst 2k
tc class add dev eth1 parent 1:1 classid 1:40 htb rate 12kbit ceil 128kbit
burst 2k
tc class add dev eth1 parent 1:1 classid 1:50 htb rate 12kbit ceil 128kbit
burst 2k
tc class add dev eth1 parent 1:1 classid 1:11 htb rate 20kbit ceil 128kbit
burst 2k
tc class add dev eth1 parent 1:11 classid 1:12 htb rate 10kbit burst 2k
tc class add dev eth1 parent 1:11 classid 1:13 htb rate 5kbit burst 2k
tc class add dev eth1 parent 1:11 classid 1:14 htb rate 5kbit burst 2k
tc qdisc add dev eth1 parent 1:20 handle 20: sfq perturb 15
tc qdisc add dev eth1 parent 1:30 handle 30: sfq perturb 15
tc qdisc add dev eth1 parent 1:40 handle 40: sfq perturb 15
tc qdisc add dev eth1 parent 1:50 handle 50: sfq perturb 15
tc qdisc add dev eth1 parent 1:12 handle 12: sfq perturb 15
tc qdisc add dev eth1 parent 1:13 handle 13: sfq perturb 15
tc qdisc add dev eth1 parent 1:14 handle 14: sfq perturb 15
tc filter add dev eth1 protocol ip parent 1: u32 match ip dst 192.168.0.45
flowid 1:20
tc filter add dev eth1 protocol ip parent 1: u32 match ip dst 192.168.0.4
flowid 1:30
tc filter add dev eth1 protocol ip parent 1: u32 match ip dst 192.168.0.50
flowid 1:40
tc filter add dev eth1 protocol ip parent 1: u32 match ip dst 192.168.0.38
flowid 1:50
tc filter add dev eth1 protocol ip parent 1: prio 1 u32 match ip sport 80
0xffff flowid 1:12
tc filter add dev eth1 protocol ip parent 1: prio 2 u32 match ip sport 25
0xffff flowid 1:13
tc filter add dev eth1 protocol ip parent 1: prio 3 u32 match ip sport 110
0xffff flowid 1:13
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next reply other threads:[~2003-02-19 21:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-19 21:40 radus [this message]
2003-02-20 14:17 ` [LARTC] limiting users on a 128kbit line radus
2003-02-20 16:10 ` Mathieu Deziel
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-104569091203067@msgid-missing \
--to=radus@rdsor.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 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.