Limit bandwidth using QoS?

Limit bandwidth using QoS?

Post by Florian Esse » Sat, 02 Feb 2002 20:23:36



Hi all,

I have the following network setup and would to reduce maximum bandwidth for
one machine, while the other one should be able to use the complete
bandwidth:
I use a Linux box (Kernel 2.4.16, QoS compiled in) to route packets from my
internal network (currently two machines) to the rest of the world (NAT
using iptables). I have an ADSL connection, with 128kbit up- and 768kbit
downstream and would like to limit the up- and downstream for one of my
internal machines. Is that possible w/ QoS? If so, how? If not, is it
possible at all with my current setup or do I need additional hardware?

Thanks for your help,

--Florian Esser

 
 
 

Limit bandwidth using QoS?

Post by Dean Thompso » Sat, 02 Feb 2002 23:43:46


Hi!,


> Hi all,

> I have the following network setup and would to reduce maximum bandwidth
> for one machine, while the other one should be able to use the complete
> bandwidth:
> I use a Linux box (Kernel 2.4.16, QoS compiled in) to route packets from my
> internal network (currently two machines) to the rest of the world (NAT
> using iptables). I have an ADSL connection, with 128kbit up- and 768kbit
> downstream and would like to limit the up- and downstream for one of my
> internal machines. Is that possible w/ QoS? If so, how? If not, is it
> possible at all with my current setup or do I need additional hardware?

You may want to take a look at the iproute2 package and the ADV-ROUTING-HOWTO
documentation which is available at http://www.linuxdoc.org.  Hopefully, this
will point you in the right direction.

See ya

Dean Thompson

--
+____________________________+____________________________________________+

| Bach. Computing (Hons)     | ICQ     - 45191180                         |
| PhD Student                | Office  - <Off-Campus>                     |
| School Comp.Sci & Soft.Eng | Phone   - +61 3 9903 2787 (Gen. Office)    |
| MONASH (Caulfield Campus)  | Fax     - +61 3 9903 1077                  |
| Melbourne, Australia       |                                            |
+----------------------------+--------------------------------------------+

 
 
 

Limit bandwidth using QoS?

Post by Adaptr » Sun, 03 Feb 2002 02:53:39



Quote:> Hi all,

> I have the following network setup and would to reduce maximum bandwidth
for
> one machine, while the other one should be able to use the complete
> bandwidth:
> I use a Linux box (Kernel 2.4.16, QoS compiled in) to route packets from
my
> internal network (currently two machines) to the rest of the world (NAT
> using iptables). I have an ADSL connection, with 128kbit up- and 768kbit
> downstream and would like to limit the up- and downstream for one of my
> internal machines. Is that possible w/ QoS?

Hum. well, the QoS you mention stands for Quality of Service - a small bit
field present in each and every TCP/IP packet

If you want to limit the amount of data that the machine can send out over
the internet, you can either :
- drop everything that you consider 'excess', but your machine won't thank
you for it..;-), or
- regulate the *flow* with which certain types of packets go out of the
machine, i.e. manipulate packet *priority*

This can be accomplished with the shaper package (tc) which lets you
implement limited traffic shaping (as it's generally known)

A good start would be here :
http://www.uwsg.iu.edu/hypermail/linux/net/0010.0/0003.html

good luck !

 
 
 

Limit bandwidth using QoS?

Post by Florian Esse » Sun, 03 Feb 2002 04:31:54


Yep, thanks a lot Dean and Adaptrx!
After reading your sources I was indeed able to set up a traffic shaper that
fulfills my requirements. And I even finally found out what the MARK target
in iptables is good for =)

Thanks,

--Florian