Re: [LARTC] HTB is nor fair when 'borrowing? Can someone correct me or maybe Devik's HTB has a bug?

2004-06-18 Thread Ed Wildgoose
HTB should give fifty-fifty to U1 and U3... but it is not... What is happening is that HTB gives about 350-380kbit for user3 and everything else(more than 600kbit) for user1... this period is marked as t1 on my graph... Hmm, interesting. Can you switch the order of your IP mappings around on

[LARTC] priorities + htb

2004-06-18 Thread Abraham van der Merwe
Hi! How does prioritization work when you've got a tree structure, e.g. | +-- class_a rate 64kbit prio 1 || |+-- class_a1 rate 32kbit prio 1 || |`-- class_a2 rate 32kbit prio 2 | `-- class_b rate 64kbit prio 2 Above could either be interpreted as (a) a, a1 have prio 1

Re: [LARTC] priorities + htb

2004-06-18 Thread Ed Wildgoose
Abraham van der Merwe wrote: Hi! How does prioritization work when you've got a tree structure, e.g. I think the whole idea of linux QOS is that it dequeues up the tree until it reaches the net interface. So effectively I think you evaluate each leaf in turn on the way up the tree If for

Re: [LARTC] Help:how to generate different packets?souce code explanation?

2004-06-18 Thread Ed Wildgoose
Another question:I am studying sch_htb.c,but it's so tough for to understand,especially htb_dequeue().Would anyone please supply some adivse? Hmm, well I will set you a problem. I have been looking at sch_htb.c as well, but I don't understand the marked line below (won't it mean

Re: [LARTC] HTB is nor fair when 'borrowing? *bug* in HTB or some coincidence?

2004-06-18 Thread pljosh
Ed Wildgoose wrote: Hmm, interesting. Can you switch the order of your IP mappings around on this test so that you can prove that it is some feature of HTB that user1 always gets more bandwidth, and no something about that machine (ie if you swap ip's for user1 and 3 that it still remains (the

Re: [LARTC] priorities + htb

2004-06-18 Thread pljosh
Uytkownik Abraham van der Merwe napisa: Hi! How does prioritization work when you've got a tree structure, e.g. | +-- class_a rate 64kbit prio 1 || |+-- class_a1 rate 32kbit prio 1 || |`-- class_a2 rate 32kbit prio 2 | `-- class_b rate 64kbit prio 2 HTB means:

Re: [LARTC] HTB is nor fair when 'borrowing? *bug* in HTB or some coincidence?

2004-06-18 Thread Ed Wildgoose
pljosh wrote: Ed Wildgoose wrote: Hmm, interesting. Can you switch the order of your IP mappings around on this test so that you can prove that it is some feature of HTB that user1 always gets more bandwidth, and no something about that machine (ie if you swap ip's for user1 and 3 that it

[LARTC] patch: HTB update for ADSL users

2004-06-18 Thread Ed Wildgoose
OK, here it is. Near perfect bandwidth calculation for ADSL users. Patch iproute2 with the HTB stuff and then this: It's still a hack (as far as I can tell) because we are patching the rates tables, and hence I think it is only loosly coupled with the actual calculation of bytes in each

[LARTC] tc + snmp

2004-06-18 Thread kristiadi_himawan
Hi All, I have try to compile net-snmp with QoS patch from http://x-ray.prokon.cz/data/snmp/ but got error, i have try many times but still got the same result. Anybody have the net-snmp package or binary, deb or rpm that already support QoS ? Many thnks Regards, Kris

Re: [LARTC] HTB is nor fair when 'borrowing? *bug* in HTB or some coincidence?

2004-06-18 Thread Ed Wildgoose
Ed Wildgoose wrote: pljosh wrote: Ed Wildgoose wrote: Hmm, interesting. Can you switch the order of your IP mappings around on this test so that you can prove that it is some feature of HTB that user1 always gets more bandwidth, and no something about that machine (ie if you swap ip's for

[LARTC] shaping a ciber cafe

2004-06-18 Thread ThE LinuX_KiD
Hi, I'm looking for a script in order to do traffic control on a ciber cafe LAN, with linux router. Ciber has about 40 hosts, and I haven't much bandwidth (512kbit). Also, I've a squid cache and it works very good! I've found Jim QoS script, and FairNat. Which is more suitable for me ? Jim

[LARTC] ipp2p question

2004-06-18 Thread ThE LinuX_KiD
Hi, if I want to block ALL p2p traffic, ( bit torrent and apple included )... which is better ? # iptables -A FORWARD -p tcp -m ipp2p --ipp2p --bit --apple -j DROP or... # iptables -A FORWARD -p tcp -m ipp2p --ipp2p -j DROP # iptables -A FORWARD -p tcp -m ipp2p --bit -j DROP # iptables

Re: [LARTC] HTB is nor fair when 'borrowing? *bug* in HTB or some coincidence?

2004-06-18 Thread pljosh
Uytkownik Ed Wildgoose napisa: (see the htb_lookup_leaf function for details) Hope that helps... Hmm... My greatest C program was the most simple snmp client you can ever imagine - and I was writing it for 2 weeks to finish my classes... So I think it is not good idea for me to patch (or even to

[LARTC] Sharing bandwidth

2004-06-18 Thread Peter Kaagman
Hi there, I've got the following problem on my hand. I'm a sysop for a school in the netherlands. We have a network with 5 different schools (and 1 administration). Each of those have their own ip range in the private network (10.4.0.0 10.5.0.0 and so on). For all these schools we have an

Re: [LARTC] Sharing bandwidth

2004-06-18 Thread Ben
Yeah, look into HTB. It makes this problem easy. On Fri, 18 Jun 2004, Peter Kaagman wrote: Hi there, I've got the following problem on my hand. I'm a sysop for a school in the netherlands. We have a network with 5 different schools (and 1 administration). Each of those have their own

Re: [LARTC] Sharing bandwidth

2004-06-18 Thread Ed Wildgoose
Peter Kaagman wrote: Hi there, I've got the following problem on my hand. I'm a sysop for a school in the netherlands. We have a network with 5 different schools (and 1 administration). Each of those have their own ip range in the private network (10.4.0.0 10.5.0.0 and so on). For all these

Re: [LARTC] HTB is nor fair when 'borrowing? *bug* in HTB or some coincidence?

2004-06-18 Thread Andy Furniss
pljosh wrote: Ed Wildgoose wrote: Hmm, interesting. Can you switch the order of your IP mappings around on this test so that you can prove that it is some feature of HTB that user1 always gets more bandwidth, and no something about that machine (ie if you swap ip's for user1 and 3 that it

Re: [LARTC] HTB is nor fair when 'borrowing? *bug* in HTB or some coincidence?

2004-06-18 Thread pljosh
I just tested with my script and also see a 5-8% advantage for the lower handle class. I wouldn't call it a bug though - HTB is written for high traffic setups and trade off needs to be made between perfect behaviour and CPU usage and you say it gets better with more classes. Andy. Well -

Re: [LARTC] tc + snmp

2004-06-18 Thread Jason Boxman
On Friday 18 June 2004 07:41, [EMAIL PROTECTED] wrote: Hi All, I have try to compile net-snmp with QoS patch from http://x-ray.prokon.cz/data/snmp/ but got error, i have try many times but still got the same result. I have compiled it without any problems. What errors did you receive? Did

Re: [LARTC] Sharing bandwidth

2004-06-18 Thread Peter Kaagman
Ben wrote: Yeah, look into HTB. It makes this problem easy. Ok thank you both... will look into that subject Peter ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Re: [LARTC] HTB is nor fair when 'borrowing? *bug* in HTB or some coincidence?

2004-06-18 Thread Andy Furniss
pljosh wrote: I just tested with my script and also see a 5-8% advantage for the lower handle class. I wouldn't call it a bug though - HTB is written for high traffic setups and trade off needs to be made between perfect behaviour and CPU usage and you say it gets better with more classes.

Re: [LARTC] patch: HTB update for ADSL users

2004-06-18 Thread Andy Furniss
Ed Wildgoose wrote: OK, here it is. Near perfect bandwidth calculation for ADSL users. Patch iproute2 with the HTB stuff and then this: It's still a hack (as far as I can tell) because we are patching the rates tables, and hence I think it is only loosly coupled with the actual calculation

Re: [LARTC] HTB is nor fair when 'borrowing? *bug* in HTB or some coincidence?

2004-06-18 Thread Andy Furniss
Andy Furniss wrote: I also have half your bandwidth - and it was set at 400kbit for the test. I meant to say aswell, that if you are doing the tests on downloads you need to throttle to about 80% of your rate, so you can build up queues and have a bit of spare for latency. Andy.

Re: [LARTC] patch: HTB update for ADSL users

2004-06-18 Thread Ed Wildgoose
After a bit of messing about - Patch would't apply and I couldn't see why. Then did it by hand and had to move vars to top of function to get it to compile. Hmm, perhaps it got corrupted because of the change in line endings when I pasted it in on a windows machine? Piece of cake to apply

Re: [LARTC] patch: HTB update for ADSL users

2004-06-18 Thread Andy Furniss
Ed Wildgoose wrote: After a bit of messing about - Patch would't apply and I couldn't see why. Then did it by hand and had to move vars to top of function to get it to compile. Hmm, perhaps it got corrupted because of the change in line endings when I pasted it in on a windows machine? Piece

Re: [LARTC] HTB is nor fair when 'borrowing? *bug* in HTB or some coincidence?

2004-06-18 Thread pljosh
HTB_HYSTERESIS 0 in net/sched/sch_htb.c. I did it, recompiled, launched... and i looks like it is even a little bit worser: user1 has almost twice as much BW as user3... I DO NOT GET IT IT LOOKS LIKE HTB WORKS FOR EVERYONE EXCEPT ME :( ___ LARTC

Re: [LARTC] shaping a ciber cafe

2004-06-18 Thread Rio Martin
On Friday 18 June 2004 20:18, ThE LinuX_KiD wrote: Hi, I'm looking for a script in order to do traffic control on a ciber cafe LAN, with linux router. Ciber has about 40 hosts, and I haven't much bandwidth (512kbit). Also, I've a squid cache and it works very good! I've found Jim QoS