On Friday 18 June 2004 07:45, Ed Wildgoose wrote:
OK, here it is. Near perfect bandwidth calculation for ADSL users.
Patch iproute2 with the HTB stuff and then this:
Did I miss this the first time around? There's a patch to sch_htb.c as well, or not? If there is, I haven't applied it which would explain why the original tc patch did not have any effect for me.
Nope, it's just a case of patching the TC prog. Make sure it is all up to date with the latest HTB patches first though (not the HTB 2 stuff for example).
It works by changing the "rate" calculations which are then later used in the HTB, policer and CBQ modules. I haven't tested the effect in anything other than HTB though, and it seems to be pretty reliable. I *think* it might be a hack because now "rates" are measured correctly, but bytes per bucket are measured in the original units. However, it seems to be very accurate, so I think it is "good enough"
Basically, just lie slightly about the rates that the device can achieve for a given packet size... It's actually just a one line patch done in a slightly verbose way (you might need to patch manually if line endings got mangled in my email - easy though)
Ed W _______________________________________________ LARTC mailing list / LARTC@xxxxxxxxxxxxxxx http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/