All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Per host Traffic Shaping bridge, using DSCP
@ 2003-10-22  9:39 Warwick Chapman
  2003-10-22 20:06 ` Stef Coene
  0 siblings, 1 reply; 2+ messages in thread
From: Warwick Chapman @ 2003-10-22  9:39 UTC (permalink / raw)
  To: lartc

Howdy

We would like to set up a Linux Bridge to replace a FreeBSD/ipfw box 
doing shaping.  Currently, we can only chape per IP/protocol on the 
FreeBSD box, and not by type of traffic (local/international).

Our upstream provider, Internet Solutions (www.is.co.za) differentiates 
between Local and International Bandwidth as follows:
"Local traffic DSCP bit is set to 20. International is set to 18."

What steps would be involved in, say, setting up shaping to a host to 
give it a 32kb International and 64 local.  Would it be possible to 
allow bursting when bandwidth is available?

I have read the LARTC Guide at lartc.org, which has an example of how to 
shape an particular host, but not how to incorporate matching the DSCP bit.

I'm assuming iptables is used to match the DSCP bit, something like the 
following:
# iptables -t mangle -A INPUT -m dscp --dscp 16 -j ????

Once it is matched, though, how does on force it into a queue? Or am I 
thinking of this in the wrong way?

Regards

Warwick Chapman
Marketing and Operations
Thusa Business Support cc
 
Cellular: +27 83 7797 094
Telephone: +27 31 563 1180
Facsimile: +27 31 563 1182
Website: http://www.thusa.co.za
 
-- There are 10 types of people in this world. Those 
who understand binary, and those who don't.


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [LARTC] Per host Traffic Shaping bridge, using DSCP
  2003-10-22  9:39 [LARTC] Per host Traffic Shaping bridge, using DSCP Warwick Chapman
@ 2003-10-22 20:06 ` Stef Coene
  0 siblings, 0 replies; 2+ messages in thread
From: Stef Coene @ 2003-10-22 20:06 UTC (permalink / raw)
  To: lartc

On Wednesday 22 October 2003 11:39, Warwick Chapman wrote:
> Howdy
>
> We would like to set up a Linux Bridge to replace a FreeBSD/ipfw box
> doing shaping.  Currently, we can only chape per IP/protocol on the
> FreeBSD box, and not by type of traffic (local/international).
>
> Our upstream provider, Internet Solutions (www.is.co.za) differentiates
> between Local and International Bandwidth as follows:
> "Local traffic DSCP bit is set to 20. International is set to 18."
>
> What steps would be involved in, say, setting up shaping to a host to
> give it a 32kb International and 64 local.  Would it be possible to
> allow bursting when bandwidth is available?
>
> I have read the LARTC Guide at lartc.org, which has an example of how to
> shape an particular host, but not how to incorporate matching the DSCP bit.
>
> I'm assuming iptables is used to match the DSCP bit, something like the
> following:
> # iptables -t mangle -A INPUT -m dscp --dscp 16 -j ????
>
> Once it is matched, though, how does on force it into a queue? Or am I
> thinking of this in the wrong way?
If the packets are marked with iptables, you can use the fw filter to put the 
packets in a class.  
iptables -t mangle -A INPUT -m dscp --dscp 16 -j MARK --set-mark 2

Stef

-- 
stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-10-22 20:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-22  9:39 [LARTC] Per host Traffic Shaping bridge, using DSCP Warwick Chapman
2003-10-22 20:06 ` Stef Coene

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.