All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hoon Titus <hoontitu@comp.nus.edu.sg>
To: lartc@vger.kernel.org
Subject: RE: [LARTC] DSCP remarking + GRED at one go?
Date: Tue, 01 Apr 2003 05:05:52 +0000	[thread overview]
Message-ID: <marc-lartc-104917360529917@msgid-missing> (raw)
In-Reply-To: <marc-lartc-104910731021038@msgid-missing>

Hi everyone,

Thanks for the reply.

Sad to say but Jame's script doesn't work on my system :-(. Is it because
my kernel is too old? I have to keep it as i can't configure mrouted to
work on 2.4 kernel.

My router config: 2 NIC eth0 and eth1
2.2 kernel + DS8 patch + iproute2 2.2.4 + mrouted

I suspect the line "tc qdisc add dev eth0 handle 2:0 root dsmark indices
64 set_tc_index" which setup the 2nd DSMARK caused all the problem:
-------------------------------->8-----------------------------------------
#!/bin/bash

echo 'Init tc..'
#clear old entries
tc qdisc del dev eth0 handle 1:0 root dsmark indices 64 > /dev/null

#starts here
tc qdisc add dev eth0 handle 1:0 root dsmark indices 64

#setup the lookup table
echo 'Setup tc class..'
tc class change dev eth0 classid 1:1 dsmark mask 0x3 value 0x28
tc class change dev eth0 classid 1:2 dsmark mask 0x3 value 0x30
tc class change dev eth0 classid 1:3 dsmark mask 0x3 value 0x00

#setup the priority
echo 'Setup tc filter priority..'
tc filter add dev eth0 parent 1:0 protocol ip prio 4 handle 1: u32 divisor 1
tc filter add dev eth0 parent 1:0 protocol ip prio 5 handle 2: u32 divisor 1

#Mcast layers - marked AF11 and AF12 accordingly
# AF11 to class id 1:1
# AF12 to class id 1:2
echo 'Filter according to MCast addr..'
tc filter add dev eth0 parent 1:0 prio 4 u32 match ip dst 225.1.1.1/32
flowid 1:1
tc filter add dev eth0 parent 1:0 prio 5 u32 match ip dst 225.1.1.6/32
flowid 1:2

# the rest of packets ends up with DSMARK 0x00
tc filter add dev eth0 parent 1:0 prio 5 u32 match ip dst 0.0.0.0/0 flowid
1:3

# handle 2:0
# --- General setup  ---
tc qdisc add dev eth0 handle 2:0 root dsmark indices 64 set_tc_index
.....
(the remaing lines are commented and as i found the tc qdisc add line has
caused the problem)
---------------------------------------------------------------------------

Once the 2nd DSMARK is added, the entire remarking system failed to work.
I have also have to add in the lines
"tc filter add dev eth0 parent 1:0 protocol ip prio 4 handle 1: u32
divisor 1"
"tc filter add dev eth0 parent 1:0 protocol ip prio 5 handle 2: u32
divisor 1"
in order to use the remarking facility provided.

Can anyone please point out what's wrong (or any kernel limitation)?

Thanks and Regards,
Titus



_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

  parent reply	other threads:[~2003-04-01  5:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-31 10:40 [LARTC] DSCP remarking + GRED at one go? Hoon Titus
2003-03-31 16:08 ` Hocking James A
2003-04-01  5:05 ` Hoon Titus [this message]
2003-04-01  6:30 ` Rinse Kloek
2003-04-01  8:52 ` Hoon Titus

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-104917360529917@msgid-missing \
    --to=hoontitu@comp.nus.edu.sg \
    --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.