All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Furniss <andy.furniss@dsl.pipex.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] newbie: TC[NG] with (256kbit/s down and 768kbit/s up)
Date: Wed, 05 May 2004 12:33:21 +0000	[thread overview]
Message-ID: <4098DF11.8030803@dsl.pipex.com> (raw)
In-Reply-To: <46799.82.82.95.252.1082769835.squirrel@mail.surakware.net>

Andreas Klauer wrote:
> Am Wednesday 05 May 2004 10:34 schrieb Andy Furniss:
> 
>>Andreas Klauer wrote:
>>
>>>Maybe my script will do: http://www.metamorpher.de/ipshape/
> 
> 
> I renamed it to 'Fair NAT' and moved it to 
> http://www.metamorpher.de/fairnat/, because there already was another 
> script called ipshape. I didn't like the name anyway :-)
> 
> 
>>Nice script - one thing I found was that HTB dequeued packets in pairs -
>>with MTU 1500 and your 128kbit up this will hurt latency a bit.
>>
>>The solution was to change from 1 to 0
>>
>>#define HTB_HYSTERESIS 0 in net/sched/sch_htb.c
> 
> 
> Thanks for the suggestion. I just recompiled the kernel - we'll see if I 
> notice any change. However, I don't yet fully understand what HYSTERESIS 
> actually does. There's a FAQ on docum.org, but I still don't get it.
> What does 'packets in pairs' mean? Multiple packages at once sounds to me 
> like burst.

YMMV of course - I have posted this here before.

I was using tcpdump a while back, to sus how (e)sfq worked. I had a very 
simple test setup, which just throttled bulk traffic to 51kbit my link 
is 256/512. I had burst set low and quantum to my MTU. Sniffing tcp 
after shaping I could see from the timestamps that the packets were 
being released in pairs - the rate was OK though. I changed timing from 
jiffies to cpu - no difference, I then remembered seeing the hysteresis 
page on stefs' site and tried that and it fixed it.

I saw an improvement in my latency when my upstream was full - doing the 
maths, it behaves as expected now, ie. the worst case delay is my 
baseline latency + bitrate for my speed/mtu.

If your real (ie. not a cable modem) upstream is 128k then a 1500 byte 
packet is going to take about 80-90ms - so in theory when your up is 
full you should be able to notice the difference in max reading on ping. 
It will pull avg down aswell.

There are reasons it may make no difference for you though -

Your setup shares all traffic per IP - so if others are using their 
uprate you will queue anyway, I only do bulk per IP so in theory my 
interactive packets never queue (the rate/burst for my interactive class 
is way higher than the traffic should ever be - easy on a home setup, 
probably not so easy in real world)

I use MTU/quantum 1478 - which may or may not have caused the pairing in 
the first place - I didn't test 1500.

I explicitly set low (c)bursts for bulk - I don't know what the defaults 
will be for you not setting them - but I guess they should soon get used 
up anyway.

Andy.


> 
> I wish they would make such things available in kernel configuration menu,
> with a proper explanation. If you look in the code, there is loads of stuff 
> that can be customized in the kernel by changing defines directly, but you 
> rarely can change those things via kernel config. :-(
> 
> Andreas
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> 


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

      parent reply	other threads:[~2004-05-05 12:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-24  1:23 [LARTC] newbie: TC[NG] with (256kbit/s down and 768kbit/s up) on a router trapni
2004-04-24  5:27 ` Jason Boxman
2004-04-25  7:06 ` [LARTC] newbie: TC[NG] with (256kbit/s down and 768kbit/s up) Andy Furniss
2004-04-25 17:43 ` [LARTC] newbie: TC[NG] with (256kbit/s down and 768kbit/s up) on a router Christian Parpart
2004-04-26  8:01 ` [LARTC] newbie: TC[NG] with (256kbit/s down and 768kbit/s up) Andy Furniss
2004-04-28  8:42 ` [LARTC] newbie: TC[NG] with (256kbit/s down and 768kbit/s up) on a router Christian Parpart
2004-05-02 23:44 ` Andreas Klauer
2004-05-05  8:34 ` [LARTC] newbie: TC[NG] with (256kbit/s down and 768kbit/s up) Andy Furniss
2004-05-05 10:39 ` [LARTC] newbie: TC[NG] with (256kbit/s down and 768kbit/s up) on a router Andreas Klauer
2004-05-05 12:33 ` Andy Furniss [this message]

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=4098DF11.8030803@dsl.pipex.com \
    --to=andy.furniss@dsl.pipex.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 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.