All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Now to make only Traffic Priority
@ 2006-08-25  9:00 Stanislav Nedelchev
  2006-08-26  7:31 ` Marek Kierdelewicz
  2006-08-28 13:03 ` LinuXKiD
  0 siblings, 2 replies; 3+ messages in thread
From: Stanislav Nedelchev @ 2006-08-25  9:00 UTC (permalink / raw)
  To: lartc

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LARTC] Now to make only Traffic Priority
  2006-08-25  9:00 [LARTC] Now to make only Traffic Priority Stanislav Nedelchev
@ 2006-08-26  7:31 ` Marek Kierdelewicz
  2006-08-28 13:03 ` LinuXKiD
  1 sibling, 0 replies; 3+ messages in thread
From: Marek Kierdelewicz @ 2006-08-26  7:31 UTC (permalink / raw)
  To: lartc

> 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: admin@koba.pl
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [LARTC] Now to make only Traffic Priority
  2006-08-25  9:00 [LARTC] Now to make only Traffic Priority Stanislav Nedelchev
  2006-08-26  7:31 ` Marek Kierdelewicz
@ 2006-08-28 13:03 ` LinuXKiD
  1 sibling, 0 replies; 3+ messages in thread
From: LinuXKiD @ 2006-08-28 13:03 UTC (permalink / raw)
  To: lartc

try IMQ

http://www.linuximq.net/

regards.

andres



-> -----Mensaje original-----
-> De: lartc-bounces@mailman.ds9a.nl
-> [mailto:lartc-bounces@mailman.ds9a.nl]En 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: admin@koba.pl
-> _______________________________________________
-> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-08-28 13:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-25  9:00 [LARTC] Now to make only Traffic Priority Stanislav Nedelchev
2006-08-26  7:31 ` Marek Kierdelewicz
2006-08-28 13:03 ` LinuXKiD

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.