From: Damion de Soto <damion@snapgear.com>
To: lartc@vger.kernel.org
Subject: [LARTC] general shaping recommendations
Date: Thu, 18 Dec 2003 23:26:02 +0000 [thread overview]
Message-ID: <marc-lartc-107179092006530@msgid-missing> (raw)
Hi everyone,
I am wondering, what is the best way to do some 'generic shaping' on a
firewall/gateway box.
Currently, I'm just running a wondershaper variant on the WAN interface.
htb qdiscs for outbound, and ingress policer for inbound.
Now, assuming most traffic (except DNS requests etc) goes through the firewall, I
could shape on the LAN side as well.
Should I put htb qdiscs on WAN as well as LAN and not use any ingress policers ?
or should I use them as well?
also,
with rules like this:
tc qdisc add dev ppp0 root handle 1: htb default 20
tc class add dev ppp0 parent 1:1 classid 1:1 htb rate 512kbit burst 6k
tc class add dev ppp0 parent 1:1 classid 1:10 htb rate 512kbit burst 6k prio 1
tc class add dev ppp0 parent 1:1 classid 1:20 htb rate 460kbit burst 6k prio 2
tc class add dev ppp0 parent 1:1 classid 1:30 htb rate 409kbit burst 6k prio 2
Will the slower queues be able to borrow extra bandwidth from the faster ones (when
they're not in use), or do I need to specify the ceiling parameter to allow that?
I'm a bit unsure of the default behaviour of the htb qdisc.
thanks
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Damion de Soto - Software Engineer email: damion@snapgear.com
SnapGear - A CyberGuard Company --- ph: +61 7 3435 2809
| Custom Embedded Solutions fax: +61 7 3891 3630
| and Security Appliances web: http://www.snapgear.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- Free Embedded Linux Distro at http://www.snapgear.org ---
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next reply other threads:[~2003-12-18 23:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-18 23:26 Damion de Soto [this message]
2003-12-19 0:15 ` [LARTC] general shaping recommendations Martin A. Brown
2003-12-22 3:00 ` Damion de Soto
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-107179092006530@msgid-missing \
--to=damion@snapgear.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox