All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] DSCP marking
@ 2003-07-03 15:25 sun reflex4
  0 siblings, 0 replies; 2+ messages in thread
From: sun reflex4 @ 2003-07-03 15:25 UTC (permalink / raw)
  To: lartc

Hi,
I know that this question may NOT belong to this Mailing List, but 
nevertheless, I hope I will get some help :)

After having worked with DiffServ on Linux, I want now to try marking 
IP-packets in their DSCP header under Windows OS (e.g. WinXP). If somebody 
knows some information, plz tell me, and u can e-mail me 
sunreflex4@hotmail.com

Thanx in advance for ur understanding

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?pageþatures/junkmail

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

^ permalink raw reply	[flat|nested] 2+ messages in thread
* [LARTC] dscp marking
@ 2001-01-17 13:08 Tom
  0 siblings, 0 replies; 2+ messages in thread
From: Tom @ 2001-01-17 13:08 UTC (permalink / raw)
  To: lartc

<PRE>
I want to set the DSCP field of the incoming packets. And then put them
in the correct queues.


I can mark the packets:

    iptables -A OUTPUT -t mangle -d 10.10.10.12 -j MARK --set-mark 1

    tc qdisc add dev eth0 handle 1:0 dsmark indices 64 set_tc_index

    tc class change dev eth0 classid 1:1 dsmark mask 0x3 value 0xb8

    tc filter add dev eth0 parent 1:1 protocol ip prio 1 handle 1 fw
classid 1:1


Or i can set up the queues:

&lt;bigger&gt;  #setting root DSMARK

  #####################

  echo Setting up DSMARK

  $TC qdisc add dev $DEV root handle 1:0 dsmark indices 64 set_tc_index

  $TC filter add dev $DEV protocol ip parent 1:0 prio 1 \

      tcindex mask 0xfc shift 2 pass_on

  #setting root CBQ

  ##################

  echo Setting up root CBQ

  $TC qdisc add dev $DEV parent 1:0 handle 2:0 cbq bandwidth $BANDWIDTH
\

      avpkt 1000 cell 8 mpu 64

  $TC filter add dev $DEV parent 2:0 protocol ip prio 1 \

      tcindex mask 0xf0 shift 4 pass_on

  #setting EF

  ############

  echo Setting up EF

  $TC class add dev $DEV parent 2:0 classid 2:5 cbq bandwidth $BANDWIDTH
\

      rate $EF_RATE avpkt 1000 prio 1 bounded isolated allot 1514 \

      maxburst 10

  $TC qdisc add dev $DEV parent 2:5 pfifo limit 10

  $TC filter add dev $DEV parent 1:0 protocol ip prio 1 \

      handle 0x2e tcindex classid 1:51

  $TC filter add dev $DEV parent 2:0 prio 1 handle 5 tcindex classid 
2:5

  #setting BE

  ############

  echo Setting up BE

  $TC class add dev $DEV parent 2:0 classid 2:6 cbq bandwidth $BANDWIDTH
\ 

      rate $BE_RATE avpkt 1000 prio 6 allot 1514 maxburst 21

  $TC qdisc add dev $DEV parent 2:6 red limit 60KB min 15KB max 45KB \

      burst 20 avpkt 1000 bandwidth $BANDWIDTH probability 0.4

  $TC filter add dev $DEV parent 1:0 protocol ip prio 1 \

      handle 0x0 tcindex classid 2:161

  $TC filter add dev $DEV parent 2:0 protocol ip prio 1 \

      handle 6 tcindex classid 2:6

&lt;/bigger&gt;  


But I can't combine the two. What do I have to do to combine these 2?

I tried to do the marking at the ingress but that didn't work.


Thanks,

Tom Aernoudt


</PRE>

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

end of thread, other threads:[~2003-07-03 15:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-03 15:25 [LARTC] DSCP marking sun reflex4
  -- strict thread matches above, loose matches on Subject: below --
2001-01-17 13:08 [LARTC] dscp marking Tom

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.