RE: [LARTC] Now to make only Traffic Priority

2006-08-28 Thread LinuXKiD
try IMQ

http://www.linuximq.net/

regards.

andres



-> -Mensaje original-
-> De: [EMAIL PROTECTED]
-> [mailto:[EMAIL PROTECTED] nombre de Marek Kierdelewicz
-> Enviado el: Sábado, 26 de Agosto de 2006 04:31 a.m.
-> Para: lartc@mailman.ds9a.nl
-> Asunto: Re: [LARTC] Now to make only Traffic Priority
->
->
-> > Hi to everybody.
->
-> Hi
->
-> > I just want to make priority of certain traffic without shaping the
-> > traffic .
-> > For example SSH and RDP first priority
-> > Mail second priority
-> > WEB and FTP third
->
-> You can make something like that:
-> $TC qdisc add dev $IF1 root handle 1: htb default 40
-> $TC class add dev $IF1 parent 1: classid 1:1 htb rate 100mbit ceil \
-> 100mbit burst 15k prio 1
-> $TC class add dev $IF1 parent 1:1 classid 1:10 htb rate 25mbit ceil \
-> 100mbit burst 15k prio 1
-> $TC class add dev $IF1 parent 1:1 classid 1:20 htb rate 25mbit ceil \
-> 100mbit burst 15k prio 2
-> $TC class add dev $IF1 parent 1:1 classid 1:30 htb rate 25mbit ceil \
-> 100mbit burst 15k prio 3
-> $TC class add dev $IF1 parent 1:1 classid 1:40 htb rate 25mbit ceil \
-> 100mbit burst 15k prio 4
->
-> Then you direct ssh and rdp with filters to the 1:10 class (prio 1
-> means highest prio), mail to 1:20, web+ftp to 1:30 and rest to 1:40.
->
-> It's shaping, but works the way you want it.
->
-> Another solution is using prio qdisc, for what you need to:
-> - set up prio map (tos -> prio)
-> - rewrite tos field of packets in PREROUTING chain of mangle table.
->
-> I never used such solution, only read some theoretical stuff at
-> following site:
-> http://lartc.org/howto/lartc.qdisc.classless.html#AEN659
->
-> --
-> Marek Kierdelewicz
-> Kierownik Dzia?u Systemów Sieciowych, KoBa
-> Manager of Network Systems Department, KoBa
-> tel. (85) 7406466; fax. (85) 7406467
-> e-mail: [EMAIL PROTECTED]
-> ___
-> LARTC mailing list
-> LARTC@mailman.ds9a.nl
-> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc





__
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
ĄProbalo ya! 
http://www.yahoo.com.ar/respuestas

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


Re: [LARTC] Now to make only Traffic Priority

2006-08-26 Thread Marek Kierdelewicz
> Hi to everybody.

Hi

> I just want to make priority of certain traffic without shaping the
> traffic .
> For example SSH and RDP first priority
> Mail second priority
> WEB and FTP third

You can make something like that:
$TC qdisc add dev $IF1 root handle 1: htb default 40
$TC class add dev $IF1 parent 1: classid 1:1 htb rate 100mbit ceil \
100mbit burst 15k prio 1
$TC class add dev $IF1 parent 1:1 classid 1:10 htb rate 25mbit ceil \
100mbit burst 15k prio 1
$TC class add dev $IF1 parent 1:1 classid 1:20 htb rate 25mbit ceil \
100mbit burst 15k prio 2
$TC class add dev $IF1 parent 1:1 classid 1:30 htb rate 25mbit ceil \
100mbit burst 15k prio 3
$TC class add dev $IF1 parent 1:1 classid 1:40 htb rate 25mbit ceil \
100mbit burst 15k prio 4

Then you direct ssh and rdp with filters to the 1:10 class (prio 1
means highest prio), mail to 1:20, web+ftp to 1:30 and rest to 1:40.

It's shaping, but works the way you want it. 

Another solution is using prio qdisc, for what you need to:
- set up prio map (tos -> prio)
- rewrite tos field of packets in PREROUTING chain of mangle table.

I never used such solution, only read some theoretical stuff at
following site:
http://lartc.org/howto/lartc.qdisc.classless.html#AEN659

-- 
Marek Kierdelewicz
Kierownik Dzia?u Systemów Sieciowych, KoBa
Manager of Network Systems Department, KoBa
tel. (85) 7406466; fax. (85) 7406467
e-mail: [EMAIL PROTECTED]
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


[LARTC] Now to make only Traffic Priority

2006-08-25 Thread Stanislav Nedelchev
Hi to everybody.
I read some info and documentation but i still can't find how to make
this simple setup for example .


I just want to make priority of certain traffic without shaping the
traffic .
For example SSH and RDP first priority
Mail second priority
WEB and FTP third

And everything else last priority.

What will be the simple and best way to achieve this.

I will appreciate every help .
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc