All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] QoS doubt about network machine
@ 2006-07-20 14:28 Nataniel Klug
  0 siblings, 0 replies; only message in thread
From: Nataniel Klug @ 2006-07-20 14:28 UTC (permalink / raw)
  To: lartc

    Hello all,

    I am with a doubt about QoS solution... I have a 4 Mbit backbone 
coming from the telco I use... This is the link I serve to my clients, 
so I make this classes:

$TC qdisc add dev $DL root handle 1: htb default 60

CLASS="/sbin/tc class add dev $DL parent"
$CLASS 1: classid 1:1 htb rate 4096Kbit
$CLASS 1:1 classid 1:10 htb rate 256Kbit ceil 3072Kbit burst 15k
$CLASS 1:1 classid 1:20 htb rate 256Kbit ceil 1024Kbit burst 15k
$CLASS 1:1 classid 1:30 htb rate 2048Kbit ceil 3072Kbit burst 15k
$CLASS 1:1 classid 1:40 htb rate 256Kbit ceil 512Kbit burst 15k
$CLASS 1:1 classid 1:50 htb rate 256Kbit ceil 256Kbit burst 15k
$CLASS 1:1 classid 1:60 htb rate 1024Kbit ceil 2048Kbit burst 15k

    I use this classes to put some trafic (going out thru eth3, the 
interface that my clients are connected) like this:

10 - ssh, telnet
20 - voip, msn login, skype, dns
30 - http, https, clientes with garantee band
40 - mail, ftp
50 - p2p
60 - all the rest

    The problem is that I have a network server connected into my 
gateway by a switch. So I have this topology:

router
|
|- ns1 - eth0 (gw) <> eth3 - clients
|- ns2 (mail server / radius server)

    So when my clients try to connect to my ns2 mail server it gets 
shapped by class 40... I dont want that to happens... So I think in 
making something like this:

$TC qdisc add dev $DL root handle 1: htb default 60

CLASS="/sbin/tc class add dev $DL parent"
$CLASS 1: classid 1:1 htb rate 100Mbit
$CLASS 1:1 classid 1:5 htb rate 100Mbit
$CLASS 1:1 classid 1:10 htb rate 256Kbit ceil 3072Kbit burst 15k
$CLASS 1:1 classid 1:20 htb rate 256Kbit ceil 1024Kbit burst 15k
$CLASS 1:1 classid 1:30 htb rate 2048Kbit ceil 3072Kbit burst 15k
$CLASS 1:1 classid 1:40 htb rate 256Kbit ceil 512Kbit burst 15k
$CLASS 1:1 classid 1:50 htb rate 256Kbit ceil 256Kbit burst 15k
$CLASS 1:1 classid 1:60 htb rate 1024Kbit ceil 2048Kbit burst 15k

    And them direct all traffic coming from my ns2 server (using u32 
classifier and src address) to class 1:5...

    Is this correct?

Att,

Nataniel Klug
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-07-20 14:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-20 14:28 [LARTC] QoS doubt about network machine Nataniel Klug

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.