netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] tcp: change pingpong to 3 in delayed ack logic
@ 2019-01-25 18:53 Wei Wang
  2019-01-25 18:53 ` [PATCH net-next 1/2] tcp: Refactor pingpong code Wei Wang
  2019-01-27 21:29 ` [PATCH net-next 0/2] tcp: change pingpong to 3 in delayed ack logic David Miller
  0 siblings, 2 replies; 4+ messages in thread
From: Wei Wang @ 2019-01-25 18:53 UTC (permalink / raw)
  To: David Miller, netdev; +Cc: Yuchung Cheng, Neal Cardwell, Eric Dumazet, Wei Wang

TCP receiver today tries not to delay the ACKs to speed up the initial
slow start (a.k.a QUICK ACK mechanism). However the previous design
does not work well with modern TCP applications that starts with an
application-level handshake. For example, a HTTPs server often
receives the SSL hello and responds right away which triggers the TCP
stack to stop the quick ack and start delaying the ACKs based only one
instance of ping-pong. This patchset changes the threshold from 1 to 3
ping-pong transactions, so that we only start to delay the acks after
the receiver responds data quickly three times.

Wei Wang (2):
  tcp: Refactor pingpong code
  tcp: change pingpong threshold to 3

 include/net/inet_connection_sock.h | 25 +++++++++++++++++++++++++
 net/dccp/input.c                   |  2 +-
 net/dccp/timer.c                   |  4 ++--
 net/ipv4/tcp.c                     | 10 +++++-----
 net/ipv4/tcp_input.c               |  8 ++++----
 net/ipv4/tcp_ipv4.c                |  2 +-
 net/ipv4/tcp_output.c              | 17 ++++++++++-------
 net/ipv4/tcp_timer.c               |  4 ++--
 net/ipv6/tcp_ipv6.c                |  2 +-
 9 files changed, 51 insertions(+), 23 deletions(-)

-- 
2.20.1.321.g9e740568ce-goog


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

end of thread, other threads:[~2019-01-27 21:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-25 18:53 [PATCH net-next 0/2] tcp: change pingpong to 3 in delayed ack logic Wei Wang
2019-01-25 18:53 ` [PATCH net-next 1/2] tcp: Refactor pingpong code Wei Wang
2019-01-25 18:53   ` [PATCH net-next 2/2] tcp: change pingpong threshold to 3 Wei Wang
2019-01-27 21:29 ` [PATCH net-next 0/2] tcp: change pingpong to 3 in delayed ack logic David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).