All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Folke Aeon" <aeon_folke@hotmail.com>
To: lartc@vger.kernel.org
Subject: [LARTC] does any body ever met this strange problem?
Date: Thu, 24 Oct 2002 03:41:16 +0000	[thread overview]
Message-ID: <marc-lartc-103543095232504@msgid-missing> (raw)

hi, does any body ever met this strange problem?

--linux1---------linux2--------linux3--
               eth0   eth1

my purpose is :

  make the packets from linux1 to linux3
to be marked with a proper dscp value when
they gose through linux2.

i do the following at eth0 on linux2:

tc qdisc add dev eth0 handle ffff: ingress
tc filter add dev eth0 parent ffff: protocol ip prio 4 u32 \
          match ip dst 10.0.2.18 flowid :1

and at eth1 on linux2 :

tc qdisc add dev eth1 handle 1:0 root dsmark indices 64
tc class change dev eth1 classid 1:1 dsmark mask 0x3 value 0x88
tc filter add dev eth1 parent 1:0 protocol all prio 4 \
                       handle 1 tcindex classid 1:1

now i ping linux3(10.0.2.18) from linux1 , and i can
see the dscp value 0x22 catched at linux3. everything
looks perfect now :)

But , when i add the following line at eth1 on linux2
the problem arised :

tc qdisc add dev eth1 parent 1:0 handle 2:0 dsmark  \
         indices 64 set_tc_index
tc filter add dev eth1 parent 2:0 protocol all prio \
         1 tcindex mask 0xfc shift 2 pass_on
tc filter add dev eth1 parent 2:0 prio 1 handle 0x22\
         tcindex classid 2:111
tc qdisc add dev eth1 parent 2:0 handle 3:0 cbq bandwidth \
                      10Mbit cell 8 avpkt 1000 mpu 64
tc filter add dev eth1 parent 3:0 protocol all prio 1 \
                       tcindex mask 0xf0 shift 4 pass_on
tc class add dev eth1 parent 3:0 classid 3:99 cbq bandwidth \
                      10Mbit rate 9Mbit avpkt 1000 prio 2   \
                      allot 1514 weight 9 maxburst 21 defmap 0
tc filter add dev eth1 parent 3:0 prio 1 handle 1 tcindex \
                       classid 3:99

when i use 'tc -s class ls dev eth1'
i can see the packet from linux1 to linux3 is directed into
class 3:99 , BUT the packet catched at linux3 have a dscp
value of ZERO.

  where has the dscp 0x22 gone?


_________________________________________________________________
Choose an Internet access plan right for you -- try MSN! 
http://resourcecenter.msn.com/access/plans/default.asp

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

             reply	other threads:[~2002-10-24  3:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-24  3:41 Folke Aeon [this message]
2002-10-24  6:19 ` [LARTC] does any body ever met this strange problem? Werner Almesberger
2002-10-24  7:59 ` Folke Aeon

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-103543095232504@msgid-missing \
    --to=aeon_folke@hotmail.com \
    --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.