As the spec says:
Flow control is specific to a connection. Both types of flow control are between the endpoints of a single hop and not over the entire end-to-end path.
And in 6.9 WINDOW_UPDATE
Both types of flow control are hop by hop, that is, only between the two endpoints. Intermediaries do not forward WINDOW_UPDATE frames between dependent connections. However, throttling of data transfer by any receiver can indirectly cause the propagation of flow-control information toward the original sender.
But how is this even possible? It seems it requires all intermediaries to understand h2
or h2c
protocol, and I've got two questions:
HTTP/2 is a relatively new standard, and I've seen many websites have it enabled(my blog included). While I can visit these websites without any problem, does that mean every intermediary device along the way like routers and hubs etc already has implemented its own HTTP/2 stack and flow control algorithms(since RFC7540 doesn't stipulate a flow control algorithm)?
Most websites use
h2
rather thanh2c
, which encrypts application layer data. HTTP/2's flow control is done by receivers sendingWINDOW_UPDATE
frame, which is also application layer data, then how do intermediary devices know what these data is? If they can't decrypt data and see theWindow Size Increment
part, how do they accomplish flow control while not forwardingWINDOW_UPDATE
frame?