search for: tcindex

Displaying 20 results from an estimated 43 matches for "tcindex".

Did you mean: cindex
2006 Jan 10
2
Gred/dsmark/htb
...parent as the dsmark it works, but when I add the htb as a parent of GRED and DSmark the parent of htb it does not work? Any suggestion appreciated. thx jason 1. The DS field is marked by iptables in prerouting/mangle to the appropriate class. 2. DSMark masks the ds and copies ths dscp to the tcindex field. 3. filters are selected as per what dscp there handle is. 4. the minor of the filter is returned back to the dsmark and copied to the tcindex #!/bin/sh tc qdisc del dev eth0 root tc qdisc add dev eth0 handle 1:0 root dsmark indices 16 set_tc_index tc filter add dev eth0 parent 1:0...
2002 Oct 01
0
will any one do me a favor to answer the question about tc_index value ?
hi all i am a new commer of linux community. i want to how does skb->tcindex value change exactly. it confused me indeed. i have a script reads: (1) tc qdisc add dev eth0 root handle 1:0 dsmark indices 64 default_index 0x161 set_tc_index (2) tc filter add dev eth0 parent 1:0 protocol all prio 1 tcindex mask 0xfc shift 2 pass_on (3) tc filter add dev eth0 parent 1:0 prio 1...
2005 Mar 17
0
cbq + gred doesn''t drop packets
...om the cbq but no one packet gets dropped.. What do u suggest me to do? Below is the code for the configuration.. it works find and no error message appears $tc qdisc add dev $DEV handle 1:0 root dsmark indices 64 set_tc_index #default_index 0 $tc filter add dev $DEV parent 1:0 protocol ip prio 1 tcindex mask 0xfc shift 2 pass_on $tc qdisc add dev $DEV parent 1:0 handle 2:0 prio $tc filter add dev $DEV parent 2:0 protocol ip prio 1 tcindex mask 0xf00 shift 8 # EF priority class, TBF, and its filter echo ''installing EF'' $tc filter add dev $DEV parent 1:0 protocol ip prio 1 handl...
2001 Jun 12
0
Unknown filter "tcindex" ?
Hi: Execuse me if this has been mentioned before, I''ve looked around the archive but did not find anything about the problem I met. I''m trying to use tcindex to classify the the packet outgoing to one interface. I do as the following : tc q a dev eth0 root handle 10:0 cbq bandwidth 10Mbit avpkt 1500 tc c a dev eth0 parent 10:0 classid 10:1 cbq bandwidth 10Mbit rate 10Mbit maxburst 50 avpkt 1500 tc c a dev eth0 parent 10:1 classid 10:100 cbq ba...
2003 Dec 02
2
forwarding in tcng
...p_ttl & 0x1E) >> 1) <= 0x0F) && (((ip_ttl & 0x1E) >> 1) >= 0x0C); class (<$mid>).... class (<$low>).... prio { $high = class {fifo (limit 64kB);} $mid = ... $low = ... } } } If forwarding is not possible can I use hash table with tcindex to store information at ingress, and use this information at egress? Thanks! /Johan. C _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
2005 Dec 14
1
mgen & tc
...iffServ configuration is working fine when I do ping, but when I use mgen the packets are not detected at the core router. Here is my core router configuration: #!/bin/bash tc qdisc add dev eth1 handle 1:0 root dsmark indices 64 set_tc_index tc filter add dev eth1 parent 1:0 protocol ip prio 1 tcindex mask 0xfc shift 2 tc qdisc add dev eth1 parent 1:0 handle 2:0 htb tc class add dev eth1 parent 2:0 classid 2:1 htb rate 10Mbit ceil 10Mbit ############ EF tc class add dev eth1 parent 2:1 classid 2:10 htb rate 1500Kbit ceil 10Mbit tc qdisc add dev eth1 parent 2:10 pfifo limit 5 tc filter add dev...
2002 Oct 26
0
Is this a kernel bug???
...netlink socket with a user process, read the tc netlink messages generated by the tc process and parse them. What I see is that the kernel has already processed the messages (i.e., adds some default values for example) before making them available to my process. Problem comes when I parse the tcindex messages. Here is an excerpt from the examples in iproute2 diffserv distribution. $TC qdisc add $EGDEV handle 2:0 root dsmark indices 64 # # The class mapping # $TC filter add $EGDEV parent 2:0 protocol ip prio 1 \ handle 1 tcindex classid 2:1 $TC filter add $EGDEV parent 2:0 protocol...
2007 Apr 01
1
Problem setting shift value in tcindex filter on big endian machine
Hi all, I''m trying to get some DiffServ QoS shaping to work on an XScale machine, running big endian. I''m setting it up with tc. Using the tcindex filter I found that regardless what shift value I enter, only ''0'' is returned when I list the filters afterwards. The very same rules work fine on my (little endian) PC. Looking at the code (iproute2-2.6.18-061002) I found that tc (in tc/f_tcindex.c, line 72 and after) sends th...
2005 Jul 08
2
P2P shaping, won''t work
...ate 10000bps ceil 10000bps burst 0 cburst 0 prio 3 quantum 1500 tc qdisc add dev eth1 handle 6:0 parent 2:5 sfq tc class add dev eth1 parent 2:1 classid 2:6 htb rate 10000bps ceil 22000bps prio 1 tc qdisc add dev eth1 handle 7:0 parent 2:6 sfq tc filter add dev eth1 parent 2:0 protocol all prio 1 tcindex mask 0x7 shift 0 tc filter add dev eth1 parent 2:0 protocol all prio 1 handle 5 tcindex classid 2:6 tc filter add dev eth1 parent 2:0 protocol all prio 1 handle 4 tcindex classid 2:4 tc filter add dev eth1 parent 2:0 protocol all prio 1 handle 3 tcindex classid 2:5 tc filter add dev eth1 parent...
2001 Jan 17
0
dscp marking
...rotocol ip prio 1 handle 1 fw classid 1:1 Or i can set up the queues: <bigger> #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 pas...
2001 Jun 12
0
How to use tcindex filter?
Where can I find some document or sample on tcindex classifier? thx
2004 Sep 06
0
example/dsmark+policing => tcsim outputs are different
...-now-ss020116-try + Linux kernel 2.5.4 b) Running at a machine with SuSE Linux Professional 9.1 - kernel 2.6.4-52 Thanks in advance :-) Romulo Curty Cerqueira < curty@ieee.org > >>> ---------- start of dsmark+policing.tc file ---------- /* * dsmark+policing - Dsmark with tcindex and policing * * Packets with non-zero TOS/DS field are marked with TOS 0xb8 (EF DSCP). * If they exceed the rate limit, they''re dropped. */ #define LIMIT 1Mbps #define BURST 10kB #define MTU 1500B dev "eth0" { dsmark (indices 64,set_tc_index) { class (0) on tcindex(ma...
2005 Jul 06
0
Diffserv using HTB or PRIO qdiscs as basis for EF phb
...Jonathan ---------------------------------------------------------------------------- The following are the configurations I have used for the core router Config 1 using htb tc qdisc add dev $1 handle 1:0 root dsmark indices 64 set_tc_index tc filter add dev $1 parent 1:0 protocol ip prio 1 tcindex mask 0xfc shift 2 Main htb qdisc & class tc qdisc add dev $1 parent 1:0 handle 2:0 htb tc class add dev $1 parent 2:0 classid 2:1 htb rate 100Mbit ceil 100Mbit EF Class (2:10) tc class add dev $1 parent 2:1 classid 2:10 htb rate 1500Kbit ceil 100Mbit tc qdisc add dev $1 parent 2:10 pfifo limi...
2004 Oct 23
0
error making htb example
...ss add dev eth0 parent 2:1 classid 2:4 htb rate 32000bps ceil 64000bps tc qdisc add dev eth0 handle 5:0 parent 2:4 sfq tc class add dev eth0 parent 2:1 classid 2:5 htb rate 16000bps ceil 48000bps tc qdisc add dev eth0 handle 6:0 parent 2:5 sfq tc filter add dev eth0 parent 2:0 protocol all prio 1 tcindex mask 0x7 shift 0 tc filter add dev eth0 parent 2:0 protocol all prio 1 handle 4 tcindex classid 2:5 tc filter add dev eth0 parent 2:0 protocol all prio 1 handle 3 tcindex classid 2:4 tc filter add dev eth0 parent 2:0 protocol all prio 1 handle 2 tcindex classid 2:3 tc filter add dev eth0 parent...
2003 Feb 02
0
question about ingress police
...tion for this line "$TC filter add dev $INDEV parent ffff: protocol ip prio 50 handle 1 fw \ police rate 4Mbit burst 200k drop flowid :1" does it mean if video traffic rate over 4Mbit, will be dropped. and normal video traffic (not exceed limit) will be put into flow, flowid :1(1 meas tcindex), am I right? For policy 2 ,how can I remark overlimited packet to BE, I try # $TC filter add dev $INDEV parent ffff: protocol ip prio 50 handle 1 fw \ police rate 4Mbit burst 200k continue flowid :2 (assume BE) $TC filter add dev $INDEV parent ffff: protocol ip prio 50 handle 1 fw \ police...
2004 May 20
1
tcng configuration question??
...0000bps tc class add dev imq0 parent 2:4 classid 2:5 htb rate 100000bps prio 1 tc qdisc add dev imq0 handle 5:0 parent 2:5 sfq tc class add dev imq0 parent 2:4 classid 2:6 htb rate 100000bps prio 2 tc qdisc add dev imq0 handle 6:0 parent 2:6 sfq tc filter add dev imq0 parent 2:0 protocol all prio 1 tcindex mask 0x7 shift 0 tc filter add dev imq0 parent 2:0 protocol all prio 1 handle 4 tcindex classid 2:6 tc filter add dev imq0 parent 2:0 protocol all prio 1 handle 3 tcindex classid 2:3 tc filter add dev imq0 parent 2:0 protocol all prio 1 handle 2 tcindex classid 2:5 tc filter add dev imq0 parent...
2005 Jun 24
0
wfq scripts needed help
...nk 2: ---------------------------------------------------------------------- And for the CORE routes the WFQ is implemented like this #!/bin/sh $what=_ _ _ _ $what1=_ _ _ _ $what2=_ _ _ _ # setting the qdisc tc qdisc add dev eth0 handle 1:0 root dsmark indices 8 set_tc_index # setting the tcindex filter tc filter add dev eth0 parent 1:0 protocol ip prio 1 tcindex \ mask 0xfc shift 2 # adding WFQ tc qdisc add dev eth0 parent 1:0 handle 2:0 wfq $what ifspeed \ 10485760 # creating WFQ classes.... tc class add dev eth0 parent 2:0 classid 2:1 wfq $what1 tc class add dev eth0 parent...
2004 Oct 04
0
building module with tcng
...tb tc class add dev eth0 parent 2:0 classid 2:1 htb rate 93750000bps ceil 93750000bps tc class add dev eth0 parent 2:1 classid 2:2 htb rate 93750000bps ceil 93750000bps burst 6144 prio 1 tc qdisc add dev eth0 handle 3:0 parent 2:2 sfq perturb 10 tc filter add dev eth0 parent 2:0 protocol all prio 1 tcindex mask 0x1 shift 0 tc filter add dev eth0 parent 2:0 protocol all prio 1 handle 1 tcindex classid 2:2 insmod cls__c010151.o tc filter add dev eth0 parent 1:0 protocol all prio 1 _c010151 [root]# tc qdisc add dev eth0 handle 1:0 root dsmark indices 2 default_index 0 [root]# tc qdisc add dev eth0 han...
2006 Apr 10
4
EF & AF filters with HTB
...lease could someone help me with this, I have been trying for days to get this to work. I would like to have BE, AF & EF classes with HTB qdisc. I can''t find any scripts online where this has been done. If I enable this filter: #tc filter add dev eth0 parent 2:0 protocol ip prio 1 \ #tcindex mask 0xf0 shift 4 pass_on then BE & AF classification seems to be fine but EF breaks & no packets go under that class. I the filter is commented out then EF & BE classes are fine. Script excerpt: # Main DS Marker & Classifier (1:0) echo -e "Installing root DS marker, queue d...
2007 Feb 28
1
Data rate with HTB
...v $DEV parent 1:1 classid 1:10 htb rate $EF_RATE ceil $DS_RATE tc class add dev $DEV parent 1:1 classid 1:11 htb rate $AF_RATE ceil $DS_RATE tc class add dev $DEV parent 1:1 classid 1:12 htb rate $BE_RATE ceil $DS_RATE # --- EF 1:10 #tc filter add dev $DEV parent 1:0 protocol ip prio 1 handle 0x2e tcindex classid 1:10 # --- AF class 1:11 #tc filter add dev $DEV parent 1:0 protocol ip prio 1 handle 0xa tcindex classid 1:11 My problem is that the data rate I''ve measured with generated high rate BE traffic is not reduced to DS_RATE as I expected. The rate is well limited when only the class...