Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756746AbZKENhU (ORCPT ); Thu, 5 Nov 2009 08:37:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756575AbZKENhS (ORCPT ); Thu, 5 Nov 2009 08:37:18 -0500 Received: from mail-forward1.uio.no ([129.240.10.70]:34201 "EHLO mail-forward1.uio.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756573AbZKENhP (ORCPT ); Thu, 5 Nov 2009 08:37:15 -0500 Message-ID: <4AF2D504.5040804@simula.no> Date: Thu, 05 Nov 2009 14:37:08 +0100 From: Andreas Petlund User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: William Allen Simpson CC: Rick Jones , =?ISO-8859-1?Q?Ilpo_J=E4rvinen?= , Arnd Hannemann , Eric Dumazet , Netdev , LKML , shemminger@vyatta.com, David Miller Subject: Re: [PATCH 2/3] net: TCP thin linear timeouts References: <6980f83370cc081eb82dc2e0bd65bcf4.squirrel@webmail.uio.no> <4AEB2362.5060601@hp.com> <4AEB2C55.7040208@gmail.com> In-Reply-To: <4AEB2C55.7040208@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-UiO-Ratelimit-Test: rcpts/h 24 msgs/h 3 sum rcpts/h 25 sum msgs/h 4 total rcpts 519 max rcpts/h 37 ratelimit 0 X-UiO-Spam-info: not spam, SpamAssassin (score=-5.0, required=5.0, autolearn=disabled, UIO_MAIL_IS_INTERNAL=-5, uiobl=NO, uiouri=NO) X-UiO-Scanned: B4D79D80021675A22E1A60D1542BE946B7099F92 X-UiO-SPAM-Test: remote_host: 128.39.37.254 spam_score: -49 maxlevel 80 minaction 2 bait 0 mail/h: 26 total 5511 max/h 49 blacklist 0 greylist 0 ratelimit 0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2598 Lines: 56 William Allen Simpson wrote: >> Further blue-skying... >> >> If SACK were also enabled, it would seem that only loss of the last >> segment in the "thin train" would be an issue? Presumably, the thin >> stream receiver would be in a position to detect this, perhaps with an >> application-level timeout. Whether then it would suffice to allow the >> receiving app to make a setsockopt() call to force an extra ACK or two >> I'm not sure. Perhaps if the thin-stream had a semi-aggressive >> "heartbeat" going... >> > Heartbeats are the usual solution for gaming. Handles a host of > issues, including detection of clients that have become unreachable. > > (No, these are not the same as TCP keep-alives.) > > Beside my code in the field and widespread discussion, I know that Paul > Francis had several related papers a decade or so ago. My memory is that > younger game coders weren't particularly avid readers.... > >> But it does seem that it should be possible to deal with this sort of >> thing without having to make wholesale changes to TCP's RTO policies >> and whatnot? >> > Yep. We recognise the possibility of increasing the aggressiveness of application send rate in order to counteract the effect of thin streams on retransmission latency. Applications are by nature uninformed about the state of the layers below. To work around the fast-retransmit latency problems, an application would have to keep a very aggressive heartbeat rate even though there is no data to send, thus spamming the network with unneeded traffic. To exemplify this, let's choose an SSH session from this set of statistics: http://folk.uio.no/apetlund/lktmp/thin_apps_table.pdf. This thin stream has an averge packet interarrival time of 323ms. The application developer would have to consider how many "duds" to send in order to ensure a low retransmission latency. Let's say he considers RTTs lower than 60ms harmless, he would need to send more than 4 packets per 60ms. This would mean a heartbeat rate of one packet each 15ms. Considering this, the aggressively heartbeated application would send 67 packets per second compared to 3 in the original stream. By including thin-stream semantics into the TCP code, informed decisions can be made to minimise the overhead while still reducing the retransmission latency. Best regards, Andreas -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/