Re: 100 Mbit/64 Kbit problem..

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sunday 08 December 2002 21:50, Petre Daniel wrote:
> Hello.im pretty new in advanced routing and limiting issues.
> i have read a little and decided to ask you guys before anything else.
> this is a simple graph of my home network:
>
>                              cli1  cli2   cli3
>
>            eth0      eth1      |     |     |
> BBone --------- [ME] --------(100Mbit Switch)      cli5
>        256Kbit       100Mbit         |      \        |
>
>                                      |        \      |
>
>                                    cli4      (10Mbit Hub)
>
>                                                  |eth1
>
>                                               [server]
>
>                                                  |eth0
>
>                                       cli6---(10Mbit Hub)--cli7
>
> As i originally limited the traffic with cbq.init,all the clients had 64
> kbps outside the network,but inside too.So like,if i ping the eth1
> interface of the [server] it was like 0.5 ms,but if i'd ping the eth0
> there were like 3,4 seconds.
> Basically i want all the LAN clients to have 100 or 10 Mbits inside,in my
> [ME] eth1 interface,and limited at 64 Kbits only outside the network.
>
> I'd appreciate if you'll give me some hints in creating the correct cbq
> ierarchy to have at least full 10 Mbit inside and for all the clients the
> 64 Kbit limit outside of [ME].
What if you create 2 classes : one for the internet traffic so limited to 256 
kbit and one for the rest so rate = 100 mbit.  Redirect all local traffic to 
the second class and all internet to the first class.  You can use the first 
class as parent to control the internet traffic per client.

root qdisc
   LAN class : 100 mbit
   Internet class : bounded to 256kbit
      cli1 class
      cli2 class
      cli3 class
      ...

Stef


-- 

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

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


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux