All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Monitoring problem,
@ 2003-04-22  7:37 hare ram
  2003-04-23  5:29 ` hare ram
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: hare ram @ 2003-04-22  7:37 UTC (permalink / raw)
  To: lartc

Hi all

i have downloaded monitor_tc.pl, and try to monitor my imq0 Device


modprobe imq numdevs=1
 tc qdisc add dev imq0 handle 1: root htb default 1
 tc class add dev imq0 parent 1: classid 1:1 htb rate 1mbit

 tc qdisc add dev imq0 parent 1:1 handle 10: htb default 5

 tc class add dev imq0 parent 10: classid 10:1 htb rate 128kbit burst 3k
prio 1
 tc class add dev imq0 parent 10: classid 10:2 htb rate 128kbit burst 3k
prio 2
 tc class add dev imq0 parent 10: classid 10:5 htb rate 1mbit prio 3
 tc qdisc add dev imq0 parent 10:1 handle 21:0 sfq
 tc qdisc add dev imq0 parent 10:2 handle 22:0 sfq
 tc qdisc add dev imq0 parent 10:5 handle 23:0 sfq
 tc filter add dev imq0 protocol ip pref 1 parent 10: handle 1 fw classid
10:1
 tc filter add dev imq0 protocol ip pref 2 parent 10: handle 2 fw classid
10:2
 iptables -t mangle -A POSTROUTING  -j IMQ --todev 0
 iptables -t mangle -A POSTROUTING  -s $myip -j MARK --set-mark 1
 iptables -t mangle -A PREROUTING  -j IMQ --todev 0
 iptables -t mangle -A PREROUTING  -d $myip -j MARK --set-mark 1
 ip link set imq0 up


when i upload  from my laptop to internet the stats looks like below

Classid   tokens   ctokens bytes  speed
------------------------------------------
10:2      153600   88149   0      0.000 KB
10:5      -611     -611    49698  16.07 KB
1:1       -910     -910    101334 32.76 KB
10:1      -85783   -151234 51636  16.69 KB

10:2      153600   88149   0      0.000 KB
10:5      16138    16138   55538  17.89 KB
1:1       16138    16138   105934 34.14 KB
10:1      -83019   -148470 50396  16.24 KB


when i download from internet to laptop like below

Classid   tokens   ctokens bytes  speed
------------------------------------------
10:2      153600   88149   0      0.000 KB
10:5      17888    17888   960    0.310 KB
1:1       -1309    -1309   51968  16.80 KB
10:1      -85219   -150670 51008  16.49 KB


in upload i have seen the traffic is going to 10:5 also, why this is
happening, is anything script wrong

hare

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

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

end of thread, other threads:[~2003-04-24 19:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-22  7:37 [LARTC] Monitoring problem, hare ram
2003-04-23  5:29 ` hare ram
2003-04-23 20:06 ` Stef Coene
2003-04-24  5:47 ` hare ram
2003-04-24 19:15 ` Stef Coene

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.