Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Ed Wildgoose <lists@wildgooses.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] patch: HTB update for ADSL users
Date: Sun, 20 Jun 2004 13:16:05 +0000	[thread overview]
Message-ID: <40D58E15.2040704@wildgooses.com> (raw)
In-Reply-To: <40D2D5CB.2000804@wildgooses.com>

Jason Boxman wrote:

>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@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

  parent reply	other threads:[~2004-06-20 13:16 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-18 11:45 [LARTC] patch: HTB update for ADSL users Ed Wildgoose
2004-06-18 21:43 ` Andy Furniss
2004-06-18 23:00 ` Ed Wildgoose
2004-06-19  0:33 ` Andy Furniss
2004-06-19 12:29 ` Ed Wildgoose
2004-06-19 12:54 ` syrius.ml
2004-06-19 13:40 ` Ed Wildgoose
2004-06-20  7:27 ` Jason Boxman
2004-06-20 12:31 ` Andy Furniss
2004-06-20 13:16 ` Ed Wildgoose [this message]
2004-06-20 16:46 ` Ed Wildgoose
2004-06-20 17:10 ` Ed Wildgoose
2004-06-21  6:08 ` Jason Boxman
2004-06-21 10:04 ` Ed Wildgoose
2004-06-22  0:38 ` Damion de Soto
2004-06-22  5:15 ` Jason Boxman
2004-06-22  9:54 ` Ed Wildgoose
2004-06-22 10:00 ` Ed Wildgoose
2004-06-22 17:16 ` Jason Boxman
2004-06-22 21:52 ` Jason Boxman
2004-06-23 12:52 ` ThE LinuX_KiD
2004-06-23 14:00 ` Ed Wildgoose

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40D58E15.2040704@wildgooses.com \
    --to=lists@wildgooses.com \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox