All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Kierdelewicz <marek@piasta.pl>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Now to make only Traffic Priority
Date: Sat, 26 Aug 2006 07:31:21 +0000	[thread overview]
Message-ID: <20060826093121.3a32f121@localhost.localdomain> (raw)
In-Reply-To: <44EEBC3B.3080708@gmail.com>

> 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

  reply	other threads:[~2006-08-26  7:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-25  9:00 [LARTC] Now to make only Traffic Priority Stanislav Nedelchev
2006-08-26  7:31 ` Marek Kierdelewicz [this message]
2006-08-28 13:03 ` LinuXKiD

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060826093121.3a32f121@localhost.localdomain \
    --to=marek@piasta.pl \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.