search for: set_tc_index

Displaying 20 results from an estimated 23 matches for "set_tc_index".

2006 Apr 12
1
dsmark qdisc does not go without set_tc_index
Hi all! Anyone got the same problem? If I: tc qdisc add dev eth0 handle 1:0 root dsmark indices 4 set_tc_index it works fine. If I: tc qdisc add dev eth0 handle 1:0 root dsmark indices 4 it says: RTNETLINK answers: Invalid argument I just don''t need that set_tc_index stuff for marking. Ferenc __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has th...
2006 Jan 05
1
Adding dsmark qdisc fails
...lem identical to one encountered on this list awhile back: >I''m trying to configure dsmark qdisc on 2.6.11.4 user mode linux and >tc from iproute2-2.6.11-050314. > > >I think I have some mismatch in my setup since adding dsmark qdisc >fails *unless* I specify "set_tc_index" argument which I believe should >be optional: > > ># tc qdisc add dev eth1 handle 1:0 root dsmark indices 8 >RTNETLINK answers: Invalid argument >Mar 20 13:00:50 user user.debug kernel: dsmark_init(sch a0bb3ae0,[qdisc a0bb3b60],opt 00000000) > >here the log sho...
2005 Mar 20
3
Adding dsmark qdisc fails
I''m trying to configure dsmark qdisc on 2.6.11.4 user mode linux and tc from iproute2-2.6.11-050314. I think I have some mismatch in my setup since adding dsmark qdisc fails *unless* I specify "set_tc_index" argument which I believe should be optional: # tc qdisc add dev eth1 handle 1:0 root dsmark indices 8 RTNETLINK answers: Invalid argument Mar 20 13:00:50 user user.debug kernel: dsmark_init(sch a0bb3ae0,[qdisc a0bb3b60],opt 00000000) here the log shows that opt is null, sch_dsmark checks f...
2003 Mar 13
4
howto mark packet''s dscp value
Dear all can anyone tell me how to mark packet''s DSCP value using tc? Thanks. Regards, philip -- Hong Kong IP Multicast Initiative (HKIPMI) Department of Information Engineering The Chinese University of Hong Kong Phone : 2603 5240 Fax : 2603 5032 _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl
2001 Jan 17
0
dscp marking
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: <bigger> #setting root DSMARK ##################### echo Setting up DSMARK $TC qdisc add dev $DEV roo...
2001 Mar 25
0
Marking at egress? (DiffServ)
...tput -i $device -p tcp -s $client0 -d $client2 --sport 42012 -m 2 /sbin/ipchains -A output -i $device -p tcp -s $client0 -d $client2 --sport 42014 -m 3 ######################## Egress side ######################## # attach a dsmarker # tc qdisc del dev $device handle 1:0 root dsmark indices 64 set_tc_index tc qdisc add dev $device handle 1:0 root dsmark indices 64 set_tc_index # values of the DSCP to change depending on the class #becomes EF tc class change dev $device classid 1:1 dsmark mask 0x3 \ value 0xb8 #becomes AF11 tc class change dev $device classid 1:2 dsmark mask 0x3 \ val...
2005 Dec 14
1
mgen & tc
Hello, I have the following proplem. My DiffServ 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 q...
2005 Jul 06
0
Diffserv using HTB or PRIO qdiscs as basis for EF phb
...operating system ? Has anyone else had similar experiences ? 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 1500K...
2006 Jan 10
2
Gred/dsmark/htb
...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 protocol ip prio 1 tcindex \ mask 0xfc shift 2 pass_on #af class 1 tc filter add dev eth0 parent 1:0 protocol ip prio 1 \ handle 10 tcindex classid 1:11 tc filter add dev eth0 parent 1:0 protocol ip prio 1 \ handle 12 tcindex classid 1:12 tc filter add dev eth0 par...
2004 Sep 06
0
example/dsmark+policing => tcsim outputs are different
...* 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(mask 0xff,pass_on) element (0); class (1,mask 0,value 0xb8) on tcindex(mask 0) element (0) police (rate LIMIT,burst BURST,mtu MTU) drop; } } >>> ---------- end of dsmark+policing.tc file ---------- >>> ---------- start of dsmark+policing.tc_ol...
2005 Jul 27
13
HTB and PRIO qdiscs introducing extra latency when output interface is saturated
...----------------------------------------------------------------------------- The config I used for each setup is included below. These are slight modifications that are supplied with iproute2 source code. 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 1500K...
2002 May 28
5
QoS graphical interface ?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Is there any grapical interface for the QoS (Quality of Service) Traffic Control in Linux ? Greetings. - --- Carles Xavier Munyoz Baldó carles@descom.es Descom Consulting Telf: +34 965861024 Fax: +34 965861024 http://www.descom.es/ - --- -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8
2005 Jun 24
0
wfq scripts needed help
...mask 0x0000ffff at 16 \ link 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 cl...
2004 Jun 13
0
DSCP marking at core
...arent 1:0 prio 1 u32 match ip dport 0x%x 0xffff flowid 1:1 tc filter add dev eth0 parent 1:0 prio 2 u32 match ip dport 0x%x 0xffff flowid 1:2 Below is a similar kind of code I use at core for getting DSCP and distributing packets to classes: tc qdisc add dev eth0 handle 1:0 root dsmark indices 64 set_tc_index tc filter add dev eth0 parent 1:0 protocol ip prio 1 tcindex mask 0xfc shift 2 tc qdisc add dev eth0 parent 1:0 handle 2:0 cbq bandwidth 10Mbit cell 8 avpkt 1000 mpu 64 tc class add dev eth0 parent 2:0 classid 2:1 cbq bandwidth 10Mbit rate 1500Kbit avpkt 1000 prio 1 bounded isolated allot 1514 we...
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 handle 0x0a tcindex classid 1:111 (4) tc filter add dev eth0 parent 2:0 protocol all prio 1 tcindex mask 0xf0 shift 4 pass_on (5) tc filter add dev eth0 parent 2:...
2002 Jun 11
1
unknown qdisc "dsmark"
...uff. After reading the howto and other related documents (i.e. some papers about linux and diffserv), I decided to start with some test. I found some example script to implement simple diffserv using dsmark, but, just after the first command: tc qdisc add dev eth1 handle 1:0 root dsmark indices 64 set_tc_index the system answered: unknown qdisc "dsmark". Then I supposed that my kernel doesn''t have iproute2, but I can''t find it in my redhat 7.2 distribution. Furthermore i read in the howto that this distribution has all needed enabled by default. Help me, please! Best reg...
2001 Jan 11
0
ingress DSCP marking
I want to set the DSCP at the ingress of the router. I tried the following: iptables -A OUTPUT -t mangle -d 10.10.10.12 -j MARK --set-mark 1 tc qdisc add dev eth0 handle ffff:0 ingress dsmark indices 64 set_tc_index tc class change dev eth0 classid ffff:1 dsmark mask 0x3 value 0xb8 tc filter add dev eth0 parent ffff:1 protocol ip prio 1 handle 1 fw classid ffff:1 But the DSCP value isn''t set correctly. What''s wrong with it? If I try to mark the packets at the outgoing interface then...
2007 Apr 25
0
problem with prio qdisc and tcng
...class if tcp_dport == PORT_SMTP; class if ip_dst == 10.0.10.10; $be = class(6); } } } The tc-Code looks like this: # ================================ Device ppp0 ================================ tc qdisc add dev ppp0 handle 1:0 root dsmark indices 64 set_tc_index tc qdisc add dev ppp0 handle 2:0 parent 1:0 prio bands 6 priomap 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 tc filter add dev ppp0 parent 2:0 protocol all prio 1 u32 match u8 0x11 0xff at 9 classid 2:1 tc filter add dev ppp0 parent 2:0 protocol all prio 1 handle 1:0:0 u32 divisor 1 tc filter add dev ppp0...
2005 Mar 17
0
cbq + gred doesn''t drop packets
...ith the appropriate tos. The traffic is identified correctly and pass succesfully from 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 ''insta...
2004 Jan 30
2
FW: QoS extension to Net-SNMP
...a different story - $ tc -s -d qdisc show dev sync1 qdisc pfifo 51: limit 5p Sent 0 bytes 0 pkts (dropped 0, overlimits 0) qdisc htb 2: r2q 10 default 12 direct_packets_stat 0 ver 3.10 Sent 7279652 bytes 215480 pkts (dropped 0, overlimits 0) qdisc dsmark 1: indices 0x0008 default_index 0x0003 set_tc_index Sent 7279652 bytes 215480 pkts (dropped 0, overlimits 0) $ tc -s -d class show dev sync1 class htb 2:11 parent 2:1 leaf 51: prio 2 quantum 12500 rate 125000bps ceil 125000bps burst 15Kb/8 mpu 0b cburst 2849b/8 mpu 0b level 0 Sent 0 bytes 0 pkts (dropped 0, overlimits 0) lended: 0 borrowed:...