General list for discussing Bufferbloat
 help / color / mirror / Atom feed
* [Bloat] What is wrong with Microsoft's receive window auto-tuning?
@ 2014-09-01 17:23 Jerry Jongerius
  2014-09-11 17:05 ` Eric Dumazet
  0 siblings, 1 reply; 5+ messages in thread
From: Jerry Jongerius @ 2014-09-01 17:23 UTC (permalink / raw)
  To: bloat

I am noticing (via WireShark traces) at times that Microsoft's (Windows 7)
receive window auto-tuning goes horribly wrong, causing significant buffer
bloat.  And at other times, the tuning appears to work just fine.

For example, BDP suggests a receive window of 750k, and most often Windows
tunes around 1MB -- but at other times, it will tune to 3.8MB (way more than
it should).

Is anyone aware of any research either pointing out how their tuning
algorithm works, or of known bugs/problems with the algorithm?



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bloat] What is wrong with Microsoft's receive window auto-tuning?
  2014-09-01 17:23 [Bloat] What is wrong with Microsoft's receive window auto-tuning? Jerry Jongerius
@ 2014-09-11 17:05 ` Eric Dumazet
  2014-09-11 17:40   ` Steinar H. Gunderson
  2014-09-12 11:03   ` Jerry Jongerius
  0 siblings, 2 replies; 5+ messages in thread
From: Eric Dumazet @ 2014-09-11 17:05 UTC (permalink / raw)
  To: Jerry Jongerius; +Cc: bloat

On Mon, 2014-09-01 at 13:23 -0400, Jerry Jongerius wrote:
> I am noticing (via WireShark traces) at times that Microsoft's (Windows 7)
> receive window auto-tuning goes horribly wrong, causing significant buffer
> bloat.  And at other times, the tuning appears to work just fine.
> 
> For example, BDP suggests a receive window of 750k, and most often Windows
> tunes around 1MB -- but at other times, it will tune to 3.8MB (way more than
> it should).
> 
> Is anyone aware of any research either pointing out how their tuning
> algorithm works, or of known bugs/problems with the algorithm?

How BDP suggests a receive window of 750k ?

If BDP _is_ 750k, then 3.8 MB receive window is not insane, it depends
on the amount of drops and how fast you want to recover from drops.

1MB would be to small as a matter of fact.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bloat] What is wrong with Microsoft's receive window auto-tuning?
  2014-09-11 17:05 ` Eric Dumazet
@ 2014-09-11 17:40   ` Steinar H. Gunderson
  2014-09-11 21:13     ` Eric Dumazet
  2014-09-12 11:03   ` Jerry Jongerius
  1 sibling, 1 reply; 5+ messages in thread
From: Steinar H. Gunderson @ 2014-09-11 17:40 UTC (permalink / raw)
  To: bloat

On Thu, Sep 11, 2014 at 10:05:46AM -0700, Eric Dumazet wrote:
>> Is anyone aware of any research either pointing out how their tuning
>> algorithm works, or of known bugs/problems with the algorithm?
> How BDP suggests a receive window of 750k ?
> 
> If BDP _is_ 750k, then 3.8 MB receive window is not insane, it depends
> on the amount of drops and how fast you want to recover from drops.

If it helps, I've seen problems in Linux' auto-tuning as well, so this is
seemingly a hard problem :-)

/* Steinar */
-- 
Homepage: http://www.sesse.net/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bloat] What is wrong with Microsoft's receive window auto-tuning?
  2014-09-11 17:40   ` Steinar H. Gunderson
@ 2014-09-11 21:13     ` Eric Dumazet
  0 siblings, 0 replies; 5+ messages in thread
From: Eric Dumazet @ 2014-09-11 21:13 UTC (permalink / raw)
  To: Steinar H. Gunderson; +Cc: bloat

On Thu, 2014-09-11 at 19:40 +0200, Steinar H. Gunderson wrote:
> On Thu, Sep 11, 2014 at 10:05:46AM -0700, Eric Dumazet wrote:
> >> Is anyone aware of any research either pointing out how their tuning
> >> algorithm works, or of known bugs/problems with the algorithm?
> > How BDP suggests a receive window of 750k ?
> > 
> > If BDP _is_ 750k, then 3.8 MB receive window is not insane, it depends
> > on the amount of drops and how fast you want to recover from drops.
> 
> If it helps, I've seen problems in Linux' auto-tuning as well, so this is
> seemingly a hard problem :-)

Right. Note we did some changes in the DRS code in latest linux versions
(3.13 If I remember well)

http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=b0983d3c9b132c33b6fb2e28d157a1edc18a173c






^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bloat] What is wrong with Microsoft's receive window auto-tuning?
  2014-09-11 17:05 ` Eric Dumazet
  2014-09-11 17:40   ` Steinar H. Gunderson
@ 2014-09-12 11:03   ` Jerry Jongerius
  1 sibling, 0 replies; 5+ messages in thread
From: Jerry Jongerius @ 2014-09-12 11:03 UTC (permalink / raw)
  To: 'Eric Dumazet'; +Cc: bloat

I have published some more details here:

http://www.duckware.com/blog/microsoft-windows-receive-window-auto-tuning-causes-bufferbloat/index.html

The problem is that a 'receive window set too large' causes (bufferbloat and) RTT times to increase to over 200ms, which then all of sudden causes bad things to start happening when there is a lost packet.

It almost looks like the algorithm does not account for bufferbloat -- which means that during bufferbloat, RTT times increase, and the algorithm computes an even large receive window, which causes even more bufferbloat.

Just curious.  There seems to be a lot of room for improvement in the algorithms...

- Jerry


-----Original Message-----
From: Eric Dumazet [mailto:eric.dumazet@gmail.com] 
Sent: Thursday, September 11, 2014 1:06 PM
To: Jerry Jongerius
Cc: bloat@lists.bufferbloat.net
Subject: Re: [Bloat] What is wrong with Microsoft's receive window auto-tuning?

On Mon, 2014-09-01 at 13:23 -0400, Jerry Jongerius wrote:
> I am noticing (via WireShark traces) at times that Microsoft's 
> (Windows 7) receive window auto-tuning goes horribly wrong, causing 
> significant buffer bloat.  And at other times, the tuning appears to work just fine.
> 
> For example, BDP suggests a receive window of 750k, and most often 
> Windows tunes around 1MB -- but at other times, it will tune to 3.8MB 
> (way more than it should).
> 
> Is anyone aware of any research either pointing out how their tuning 
> algorithm works, or of known bugs/problems with the algorithm?

How BDP suggests a receive window of 750k ?

If BDP _is_ 750k, then 3.8 MB receive window is not insane, it depends on the amount of drops and how fast you want to recover from drops.

1MB would be to small as a matter of fact.




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-09-12 11:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-01 17:23 [Bloat] What is wrong with Microsoft's receive window auto-tuning? Jerry Jongerius
2014-09-11 17:05 ` Eric Dumazet
2014-09-11 17:40   ` Steinar H. Gunderson
2014-09-11 21:13     ` Eric Dumazet
2014-09-12 11:03   ` Jerry Jongerius

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox