Hello,

  I have installed 4.4.11.6 and configured some basic traffic
control on a router.  The problem is that I do not see any
traffic hitting the marks I have set.  All traffic is hitting the
default class and nothing else.

  The setup is as follows.  

  A laptop uses two instances of wget to retreive two 348 MB file
from a HTTP server running two instances of lighttpd on ports 80
and 3000.  The idea is to restrict traffic at eth2 when the bulk
of it from the HTTP server is going to the laptop.

  laptop eth0  <->  eth2 router eth1 <-> eth1 HTTP server

  laptop: 192.168.2.2

tcdevices

#NUMBER IN      OUT
eth1    100mbit 100mbit
eth2    100mbit 100mbit

tcclasses

#INTERFACE  MARK   RATE         CEIL        PRIORITY    OPTIONS
eth2        1      full/2       full        1           default
eth2        10     full/100000  full/90000  10
eth2        20     full/100     full/95     20

tcrules

#MARK   SOURCE          DEST            PROTO   DEST    SOURCE
10      0.0.0.0/0       192.168.2.2     tcp     -       80
20      0.0.0.0/0       192.168.2.2     tcp     -       3000

Using tc, we see that the traffic never hit marks 10 and 20.  All
traffic has hit the default class only.  This was also observed
by looking at iptables' mangle table.

This is quite puzzling. Has anyone experienced something like
this ? 

Thanks for any information.


# tc -s -d class show dev eth2

class htb 2:110 parent 2:1 leaf 4: prio 7 quantum 1500 rate 1000bit
ceil 1000bit burst 1600b/8 mpu 0 b overhead 0b cburst 1600b/8 mpu 0b
overhead 0b level 0

 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0
 lended: 0 borrowed: 0 giants: 0
 tokens: 12500000 ctokens: 12500000

class htb 2:11 parent 2:1 leaf 3: prio 1 quantum 12500 rate 50000Kbit
ceil 100000Kbit burst 7843b/8 mpu 0b overhead 0b cburst 14087b/8 mpu
0b overhead 0b level 0

 Sent 111133255 bytes 73425 pkt (dropped 0, overlimits 0 requeues 0)
 rate 32683Kbit 2699pps backlog 0b 0p requeues 0
 lended: 43972 borrowed: 29453 giants: 0
 tokens: -79 ctokens: 303  

class htb 2:1 root rate 100000Kbit ceil 100000Kbit burst 14087b/8 mpu
0b overhead 0b cburst 14087b/8 mpu 0b overhead 0b level 7

 Sent 111133255 bytes 73425 pkt (dropped 0, overlimits 0 requeues 0)
 rate 32683Kbit 2699pps backlog 0b 0p requeues 0
 lended: 29453 borrowed: 0 giants: 0
 tokens: 303 ctokens: 303  

class htb 2:120 parent 2:1 leaf 5: prio 7 quantum 1500 rate 1000Kbit
ceil 1052Kbit burst 1724b/8 mpu 0b overhead 0b cburst 1730b/8 mpu 0b
overhead 0b level 0

 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0
 lended: 0 borrowed: 0 giants: 0
 tokens: 13476 ctokens: 12854



------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to