From: Andy Furniss <andy.furniss@dsl.pipex.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Traffic Shaping for DVB gateway
Date: Tue, 22 Mar 2005 21:50:15 +0000 [thread overview]
Message-ID: <42409317.7040607@dsl.pipex.com> (raw)
In-Reply-To: <20050313161213.3398.qmail@web54105.mail.yahoo.com>
saki wrote:
> Hello all,
> I am providing broadband service through DVB circuit.
> I have 4KB uplink and 32KB downlink. I want to share
> 32KB downlink bandwidth among 192.168.0.0/24 (20 users
> in this subnet i.e 192.168.0.2-192.168.0.22)subnet
> where each user will get 2KB to 6KB bandwidth. And
> from 4KB uplink bandwidth each users will get only 1KB
> to 2KB bandwidth.
>
>
>
> Here is my configuration
>
>
>
> |-------|=ethi 192.160.0.1 connected
> to client
> | |
> |gateway|=eth0 201.91.89.81 uplink
> through DSL
> | server|
> |-------|=penval0 Downlink through
> DVB
>
>
>
> To get my desired result I configured htb in this
> way:
> ----------------------------------
> /sbin/tc qdisc del dev eth0 root
> /sbin/tc qdisc add dev eth0 root handle 1 htb default
> 30 r2q 100
>
>
>
> /sbin/tc qdisc del dev eth1 root
> /sbin/tc qdisc add dev eth1 root handle 1 htb default
> 30
>
>
>
> /sbin/tc class add dev eth0 parent 1: classid 1:2 htb
> rate 32kbit burst 15k
>
>
>
> /sbin/tc class add dev eth0 parent 1:2 classid 1:3 htb
> rate 8kbit ceil 16kbit burst 15k
> /sbin/tc qdisc add dev eth0 parent 1:3 handle 3 sfq
> perturb 10
> /sbin/tc filter add dev eth0 parent 1:0 protocol ip
> prio 100 u32 match ip dst 192.168.0.0/24 classid 1:3
>
>
>
> /sbin/tc class add dev eth0 parent 1:2 classid 1:30
> htb rate 1kbit ceil 32kbit burst 15k
> /sbin/tc qdisc add dev eth0 parent 1:30 handle 30 sfq
> perturb 10
>
>
>
> /sbin/tc class add dev eth1 parent 1: classid 1:2 htb
> rate 256kbit burst 15k
>
>
>
> /sbin/tc class add dev eth1 parent 1:2 classid 1:3 htb
> rate 16kbit ceil 48kbit burst 15k
> /sbin/tc qdisc add dev eth1 parent 1:3 handle 3 sfq
> perturb 10
> -------------------------------------------------------
>
> But these rules resulted very bad. My total service
> became slowdown.
> Anyone could advice me how should i configure htb to
> get my desired result?
Let the users have higher ceil and seperate interactive traffic from
bulk eg dns and small tcp packets and give those priority.
Andy.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
prev parent reply other threads:[~2005-03-22 21:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-13 16:12 [LARTC] Traffic Shaping for DVB gateway saki
2005-03-22 21:50 ` Andy Furniss [this message]
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=42409317.7040607@dsl.pipex.com \
--to=andy.furniss@dsl.pipex.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.