Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Vitor Carlos Flausino <vflausino@dti.pga.pt>
To: lartc@vger.kernel.org
Subject: [LARTC] Why arent filteres working? (as I wanted)
Date: Mon, 14 Jul 2003 10:23:31 +0000	[thread overview]
Message-ID: <marc-lartc-105817827612541@msgid-missing> (raw)

Here goes the filter statements:

#Initializing traffic control...
tc qdisc add dev br0 root handle 1:0 htb

#Loading queue disciplines for plis230 network...
tc class add dev br0 parent 1:0 classid 1:1 htb rate 512kbit ceil 512kbit

#Loading queue disciplines for pmad048 network...
tc class add dev br0 parent 1:1 classid 1:20 htb rate 30kbit ceil 30kbit
#server queue
tc class add dev br0 parent 1:20 classid 1:21 htb rate 6kbit ceil 30kbit
tc filter add dev br0 protocol ip parent 1:0 prio 1 u32 match ip dst 
57.227.233.3 flowid 1:21
tc qdisc add dev br0 parent 1:21 handle 200:0 sfq perturb 10
#non server queue
tc class add dev br0 parent 1:20 classid 1:22 htb rate 24kbit ceil 30kbit
#www queue
tc class add dev br0 parent 1:22 classid 1:25 htb rate 14kbit ceil 30kbit
tc filter add dev br0 protocol ip parent 1:0 prio 50 u32 match ip dst 
57.227.233.0/27 match ip sport 3128 0xffff flowid 1:25
tc qdisc add dev br0 parent 1:25 handle 250:0 sfq perturb 10
#pop queue
tc class add dev br0 parent 1:22 classid 1:26 htb rate 6kbit ceil 30kbit
tc filter add dev br0 protocol ip parent 1:0 prio 50 u32 match ip dst 
57.227.233.0/27 match ip sport 110 0xffff flowid 1:26
tc qdisc add dev br0 parent 1:26 handle 260:0 sfq perturb 10
#default queue
tc class add dev br0 parent 1:22 classid 1:29 htb rate 4kbit ceil 30kbit
tc filter add dev br0 protocol ip parent 1:0 prio 99 u32 match ip dst 
57.227.233.0/27 flowid 1:29
tc qdisc add dev br0 parent 1:29 handle 290:0 sfq perturb 10


After pinging the host 57.227.233.3 why the sent packets are zero?

bridge:/etc/rc.d # tc -s -d qdisc show dev br0;tc -s -d class show dev br0
qdisc sfq 290: quantum 1514b limit 128p flows 128/1024 perturb 10sec
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)

 qdisc sfq 260: quantum 1514b limit 128p flows 128/1024 perturb 10sec
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)

 qdisc sfq 250: quantum 1514b limit 128p flows 128/1024 perturb 10sec
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)

 qdisc sfq 200: quantum 1514b limit 128p flows 128/1024 perturb 10sec
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)

 qdisc htb 1: r2q 10 default 0 direct_packets_stat 493 ver 3.10
 Sent 98138 bytes 493 pkts (dropped 0, overlimits 0)

 class htb 1:22 parent 1:20 rate 24Kbit ceil 30Kbit burst 1629b/8 mpu 0b 
cburst 1637b/8 mpu 0b level 5
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 434665 ctokens: 349439

class htb 1:1 root rate 512Kbit ceil 512Kbit burst 2254b/8 mpu 0b cburst 
2254b/8 mpu 0b level 7
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 28187 ctokens: 28187

class htb 1:20 parent 1:1 rate 30Kbit ceil 30Kbit burst 1637b/8 mpu 0b 
cburst 1637b/8 mpu 0b level 6
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 349439 ctokens: 349439

class htb 1:21 parent 1:20 leaf 200: prio 0 quantum 1000 rate 6Kbit ceil 
30Kbit burst 1606b/8 mpu 0b cburst 1637b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 1714132 ctokens: 349439

class htb 1:26 parent 1:22 leaf 260: prio 0 quantum 1000 rate 6Kbit ceil 
30Kbit burst 1606b/8 mpu 0b cburst 1637b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 1714132 ctokens: 349439

class htb 1:25 parent 1:22 leaf 250: prio 0 quantum 1000 rate 14Kbit 
ceil 30Kbit burst 1616b/8 mpu 0b cburst 1637b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 739199 ctokens: 349439

class htb 1:29 parent 1:22 leaf 290: prio 0 quantum 1000 rate 4Kbit ceil 
30Kbit burst 1604b/8 mpu 0b cburst 1637b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 2567999 ctokens: 349439


Thankx,
-vcf


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

                 reply	other threads:[~2003-07-14 10:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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-105817827612541@msgid-missing \
    --to=vflausino@dti.pga.pt \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox