From: Ludovic Drolez <ludovic.drolez@freealter.com>
To: lartc@vger.kernel.org
Subject: [LARTC] simple htb script which does not work
Date: Wed, 05 Jun 2002 16:10:14 +0000 [thread overview]
Message-ID: <marc-lartc-102329349118779@msgid-missing> (raw)
Hi !
I'm using the htb.init script to do simple things with my adsl
connection:
- uploads through a VPN (port 2001 used) can use all BW (128Kbits)
(rate\x15kbps, ceil\x16kbps), class 10
- and others have only 8 kbits but can take all the BW if there is no
VPN activity. (rate=1kbps, ceil\x16kps), class 20
But, BW sharing does not seem to work, and if I make 2 uploads, one
through the VPN, the other with ssh on the net, I get 8kbps/8kbps
instead of 15kbps/1kbps.
Some stats show that packets are filtered the right way.
here's this simple script: (got it with 'htb.init compile')
tc qdisc del dev ppp0 root
tc qdisc add dev ppp0 root handle 1 htb default 20
tc class add dev ppp0 parent 1: classid 1:2 htb rate 16kbps mtu 1492
tc class add dev ppp0 parent 1:2 classid 1:10 htb rate 15kbps ceil
16kbps prio 1 mtu 1492
tc qdisc add dev ppp0 parent 1:10 handle 10 sfq perturb 10
tc filter add dev ppp0 parent 1:0 protocol ip prio 100 u32 match ip
dport 2001 0xffff classid 1:10
tc filter add dev ppp0 parent 1:0 protocol ip prio 100 u32 match ip
sport 2001 0xffff classid 1:10
tc class add dev ppp0 parent 1:2 classid 1:20 htb rate 1kbps ceil 16kbps
prio 5 mtu 1492
tc qdisc add dev ppp0 parent 1:20 handle 20 sfq perturb 10
Any idea ?
Cheers,
--
Ludovic DROLEZ Free&ALter Soft
152, rue de Grigy - Technopole Metz 2000 57070 METZ
tel : 03 87 75 55 21 fax : 03 87 75 19 26
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next reply other threads:[~2002-06-05 16:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-05 16:10 Ludovic Drolez [this message]
2002-06-05 19:16 ` [LARTC] simple htb script which does not work 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-102329349118779@msgid-missing \
--to=ludovic.drolez@freealter.com \
--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.