Re: HTTP/2 and TCP CWND

Hi All,

The problem being addressed here isn't a hypothetical one, nor is it
resolved separately by IW10.. but it is one that specially impacts HTTP
because of its history of parallel connection [ab]use and the goal of
HTTP/2 to transition away from that. SETTINGS may or may not be the way to
do it. Expertise is always welcome, but the topic is completely germane as
far as I am concerned.

One of the deficiencies of IW10 is derived from its adherence to layering
separation - it works only on the TCP level. So you get IW=10 whether there
is 1 connection (SPDY), 6 connections (HTTP/1), or 36 connections (6 way
sharded HTTP/1). At the TCP level of course, the stack has no idea which to
use - IW is just a default config for new connections. If it uses IW=3 and
there is 1 SPDY connection then that decision likely has a large
opportunity cost in terms of un-utilized bandwidth.. if it uses IW=10 and
there are 36 HTTP/1 connections then congestion is self-induced and a train
wreck of packet loss ensues and the cost is paid in retransmissions, out of
order deliveries, timers, etc.. (This happens today on a fairly prominent
CDN). Both scenarios are suboptimal, as there is no perfect constant, but
in neither case does the Internet collapse or the page even fail to load.

Its totally reasonable to experiment with how HTTP/2 can improve this
unfortunate situation.

As Roberto says, giving applications a knob to do this reasonably removes
the need for them to do it unreasonably and less effectively with a hammer.

If we break down the arbitrary layer barrier and inject some history into
the algorithm, in this case via SETTINGS, you get something more powerful
than a default constant. Part of what you inject is traditional L4
information (what was our CWND before) which is much more interesting than
a constant, but the other thing you implicitly inject is information that
this flow carries SPDY and therefore won't be engaging in rampant
parallelization. (This latter bit can actually be done by the
implementation without help from the wire protocol, but being comfortable
with that opens the door for the protocol to create a better implementation
via the SETTINGS frame).

-Patrick

Received on Tuesday, 16 April 2013 01:45:38 UTC