Re: [LARTC] HTB: Two OOPSes fixed

2003-12-10 Thread Kabelweb
On Sunday 07 December 2003 12:49, devik wrote:
 Two oopses were found by zhaoyao and Daniel Blueman. Patch against
 2.4.23 and 2.6.0-test10 is here. It will be included in next kernel
 releases of course.

Did this OOOPSes only affect 2.6 kernels or did (could) they occur on 2.4 as 
well?

Thanks for the help...

Andreas
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] Routing problems

2003-12-10 Thread Jan Gerritsen
Hi,

I have some problems with my routing configuration.
My router has two connections to the internet, eth1 (2Mbit) and ppp0 (ADSL).
On the eth1 connection I do a –snat and on ppp0 I do masquerading.

I use iptables to mark packets / connections in the -t mangle -A PREROUTING and OUTPUT 
chains. The marks (1 and 2) are used to decide which route do use to route a packet.

My routing configuration:

#ip rule list
0:  from all lookup local
32678:  from all fwmark1 lookup EXT_2M_RT
32679:  from all fwmark2 lookup EXT_DSL_RT
32680:  from 80.129.94.144 lookup EXT_DSL_RT
32681:  from 195.145.7.218 lookup EXT_2M_RT
32766:  from all lookup main
32767:  from all lookup default

#ip route list
217.5.98.16 dev ppp0  proto kernel  scope link  src 80.129.94.144
195.145.7.216/29 dev eth1  proto kernel  scope link  src 195.145.7.218
172.25.0.0/16 dev eth0  proto kernel  scope link  src 172.25.0.1
127.0.0.0/8 via 127.0.0.1 dev lo  scope link
default via 195.145.7.217 dev eth1

#ip route list table EXT_DSL_RT
80.129.94.144 dev ppp0  scope link  src 80.129.94.144
195.145.7.216/29 dev eth1  scope link  src 195.145.7.218
172.25.0.0/16 dev eth0  scope link  src 172.25.0.1
127.0.0.0/8 dev lo  scope link  src 127.0.0.1
default via 217.5.98.16 dev ppp0  src 80.129.94.144

#ip route list table EXT_2M_RT
80.129.94.144 dev ppp0  scope link  src 80.129.94.144
195.145.7.216/29 dev eth1  scope link  src 195.145.7.218
172.25.0.0/16 dev eth0  scope link  src 172.25.0.1
127.0.0.0/8 dev lo  scope link  src 127.0.0.1
default via 195.145.7.217 dev eth1  src 195.145.7.218

For my routed packets, incoming on eth0, everything works fine, but for the packets 
generated by the router itself I have problems. 

For example I mark RSYNC packets, with mark 2, to use the DSL connection. The router  
sends out the packet over the DSL connection, but with the IP address of eth1?

Somebody knows what’s wrong?

Greets,
Jan,S
f¢–)à–+-ü°L)šŠYšÛ=jya¶Úþf¢–f§vÏZž_æj)fjåŠËbú?•ªíps–Lèm¶Ÿÿ•ªírŠà

[LARTC] Filter hashing

2003-12-10 Thread Cezar Atanasiu


  Hi,
 

   Anyone cares to explain how do the hash filters get calculated,
cause I haven't understood those and I would really need a hand on
that. For example, I want to build filters for two nets : 192.168.0.0/24
and 192.168.1.0/24. How do I do that ?

   Please and thankyou,

Cezar
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] Graphing tc output

2003-12-10 Thread Rajkumar S
Hi,

My HTB shaping is working perfectly, and i have setup a bridge and hosts 
behind the bridge are now getting only the bandwidth they are supposed 
to get. Thanks to every one here for helping me out :)

Now I am thinking of making a graph of traffic going through various 
classes. Is their any thing readily available for it, or is parsing the 
output if tc and passing it to rrdtool the preferred way? Any suggestions?

Thanks,

raj
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] traffic control using libpcap

2003-12-10 Thread mpaone
 
Hi all, 
I have to use traffic control sending packets with libpcap. I'm using the 
following queues: 
 
tc qdisc del dev eth0 root 
tc qdisc add dev eth0 root handle 1: htb default 1 
tc class add dev eth0 parent 1: classid 1:1 htb rate 75kbps 
tc class add dev eth0 parent 1: classid 1:2 htb rate 50kbps 
tc filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip tos 0xA2 
0xff classid 1:2 
tc filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip tos 0xA8 
0xff classid 1:1 
 
If I test such system using udp traffic generator it works but when I send 
the packets using libpcap the filters don't work and all the traffic is 
queued via the default class (1:1). 
 
How can I fix such problem? 
 
Thanks 
 
Maurizio Paone 
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] imq crashes again (new version)

2003-12-10 Thread Roy



Hi,

I decided to continue imq development since it is 
not much usable as is now.
I am going to make imq the only place for all 
trafic shaping.
But there is one problem that this driver is very 
unstable by some reason it crashes randomly under high load when dropping many 
packets.
and what is most strange that craches occur in 
kernel itself in tcp_retransmit_skb() function I suspect that it may be kernel 
bug.
I didnt changed it very much, I just made that 
everything goes throuth imq device. so it needs to handle quite a lot trafic, 

seems the same problem have original driver if you 
set it to capture everything.

Anyway this driver behaves strangely if you will 
check how many packets are dropped by htb you will see that none of them !!! 
they are just dealayed for extremely long time
I suspect that such queue consumes too much memory 
or kernel is trying retransmit packets forever.




RE: [LARTC] Graphing tc output

2003-12-10 Thread Chijioke Kalu
Hi

I use Stef Coene graphing tool see docum.org very good also check out 
bandwidthd @ sf.net, another nice tool that shows you bandwidth usage per 
ip.

And to top it off, for your whole interface, plug in mrtg with rrd nice look

Kalu

Hi,

My HTB shaping is working perfectly, and i have setup a bridge and hosts 
behind the bridge are now getting only the bandwidth they are supposed to 
get. Thanks to every one here for helping me out :)

Now I am thinking of making a graph of traffic going through various 
classes. Is their any thing readily available for it, or is parsing the 
output if tc and passing it to rrdtool the preferred way? Any suggestions?

Thanks,

raj
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
_
Take advantage of our best MSN Dial-up offer of the year — six months 
@$9.95/month. Sign up now! http://join.msn.com/?page=dept/dialup

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] Graphing tc output

2003-12-10 Thread Michal Charvat
Hi,
I've recently written snmp extension to Net-SNMP package
(www.net-snmp.net), where it's possible to get kernel statistics directly
via snmp requests.

But it's still beta quality :-( (known one memory leak, I'm going to look
at it tommorow)

If you are interested, I can put it somewhere...

Michal Charvat
Prokon R.B.S. Louny v.o.s.


On Wed, 10 Dec 2003, Rajkumar S wrote:

 Hi,

 My HTB shaping is working perfectly, and i have setup a bridge and hosts
 behind the bridge are now getting only the bandwidth they are supposed
 to get. Thanks to every one here for helping me out :)

 Now I am thinking of making a graph of traffic going through various
 classes. Is their any thing readily available for it, or is parsing the
 output if tc and passing it to rrdtool the preferred way? Any suggestions?

 Thanks,

 raj
 ___
 LARTC mailing list / [EMAIL PROTECTED]
 http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] Graphing tc output

2003-12-10 Thread Damjan
 I've recently written snmp extension to Net-SNMP package
 (www.net-snmp.net), where it's possible to get kernel statistics directly
 via snmp requests.
 
 But it's still beta quality :-( (known one memory leak, I'm going to look
 at it tommorow)
 
 If you are interested, I can put it somewhere...

Sure everybody is interested :)

put it somewhere, maybe someone will find that memory leak before you
do :)


-- 
Damjan Georgievski
jabberID: [EMAIL PROTECTED]
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] Graphing tc output

2003-12-10 Thread Michal Charvat
Ok, I've put my code to: http://x-ray.prokon.cz/data/snmp.tgz

It's quite simple, some code is copied from tc utility source... follow
instructions in package and it should work...

Michal Charvat
Prokon R.B.S. Louny v.o.s.


On Wed, 10 Dec 2003, Damjan wrote:

  I've recently written snmp extension to Net-SNMP package
  (www.net-snmp.net), where it's possible to get kernel statistics directly
  via snmp requests.
 
  But it's still beta quality :-( (known one memory leak, I'm going to look
  at it tommorow)
 
  If you are interested, I can put it somewhere...

 Sure everybody is interested :)

 put it somewhere, maybe someone will find that memory leak before you
 do :)


 --
 Damjan Georgievski
 jabberID: [EMAIL PROTECTED]
 ___
 LARTC mailing list / [EMAIL PROTECTED]
 http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/