All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jesse" <jkielthy@fastmail.fm>
To: lartc@vger.kernel.org
Subject: [LARTC] Remarking non conformant packets as AF13 from AF11
Date: Mon, 18 Aug 2003 15:23:25 +0000	[thread overview]
Message-ID: <marc-lartc-106122030326180@msgid-missing> (raw)

Hi,

I am trying to implement a simple scaled-down version of the AF traffic
class type. As such I basically want to remark non-conforming AF11
packets to AF13. Here is m script that I have been using on the ingress
router of my network:


----------------------------------------
Link='dev eth1'

Rate1='rate 800Kbit'
Rate2='rate 2500Kbit'

Burst='burst 9K'

Action='continue'

Match1='match ip src 192.6.0.90 match ip dst 10.37.1.63 match ip sport
6970 0xffff match ip protocol 17 0xff'
Match2='match ip src 192.6.0.90 match ip dst 10.37.1.63 match ip dport
5005 0xffff match ip protocol 17 0xff'
Match3='match ip src 0/0'

Meter1="police $Rate1 $Burst $Action"
Meter2="police $Rate2 $Burst $Action"

./tc qdisc add $Link handle 1:0 root dsmark indices 64
./tc class change $Link classid 1:1 dsmark mask 0x3 value 0x28
./tc class change $Link classid 1:2 dsmark mask 0x3 value 0x38
./tc class change $Link classid 1:3 dsmark mask 0x3 value 0x0

./tc filter add $Link parent 1:0 protocol ip prio 1 handle 1: u32 divisor
1
./tc filter add $Link parent 1:0 prio 1 u32 $Match1 $Meter1 flowid 1:1
./tc filter add $Link parent 1:0 prio 1 u32 $Match2 $Meter2 flowid 1:1
./tc filter add $Link parent 1:0 prio 1 u32 $Match3 flowid 1:3

----------------------------------------

There is traffic travelling across the network through two ports (6970 -
Video streaming, and 5005 - Iperf traffic gernerator). When I monitor the
packets using Ethereal, it can be seen that most packets are remarked
0x28 (AF11). However, non-conforming traffic is just remarked as 0x00 (BE
class) which is not what I would like. I would like all non-conforming
packets to be remarked 0x38 (AF13) which would afford them special
treament further down my network.

I have a suspiscion that it might have something to do with the fact the
I am using "continue" as the action used for each of my meters, but can't
be sure. If someone could clarify this or suggest anything or offer
sample scripts then I'd be most grateful, or if anyone would like more
details then I'd be happy to give it to them.

Thanks very much,
Jesse
-- 
  Jesse
  jkielthy@fastmail.fm

-- 
http://www.fastmail.fm - Same, same, but different…
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

             reply	other threads:[~2003-08-18 15:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-18 15:23 Jesse [this message]
2003-08-18 16:19 ` [LARTC] Remarking non conformant packets as AF13 from AF11 Steffen Moser

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=marc-lartc-106122030326180@msgid-missing \
    --to=jkielthy@fastmail.fm \
    --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.