[LARTC] QoS doubt about network machine

Nataniel Klug nata at cnett.com.br
Thu Jul 20 16:28:08 CEST 2006


    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


More information about the LARTC mailing list