Re: [tcpm] Is this a problem?

Ethan Blanton <eblanton@cs.ohiou.edu> Wed, 21 November 2007 02:42 UTC

Return-path: <tcpm-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1IufXz-000525-Fh; Tue, 20 Nov 2007 21:42:39 -0500
Received: from tcpm by megatron.ietf.org with local (Exim 4.43) id 1IufXy-000520-6l for tcpm-confirm+ok@megatron.ietf.org; Tue, 20 Nov 2007 21:42:38 -0500
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1IufXx-00051q-SJ for tcpm@ietf.org; Tue, 20 Nov 2007 21:42:37 -0500
Received: from psg.com ([147.28.0.62]) by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1IufXx-0007YK-8d for tcpm@ietf.org; Tue, 20 Nov 2007 21:42:37 -0500
Received: from [67.59.55.189] (helo=elb.elitists.net) by psg.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68 (FreeBSD)) (envelope-from <eblanton@cs.ohiou.edu>) id 1IufXq-000Nwh-I4 for tcpm@ietf.org; Wed, 21 Nov 2007 02:42:36 +0000
Received: from colt.internal (colt [192.168.33.1]) by elb.elitists.net (Postfix) with ESMTP id 9C6362BE21 for <tcpm@ietf.org>; Tue, 20 Nov 2007 21:42:27 -0500 (EST)
Received: by colt.internal (Postfix, from userid 3000) id 965FC2840D; Tue, 20 Nov 2007 21:42:26 -0500 (EST)
Date: Tue, 20 Nov 2007 21:42:26 -0500
From: Ethan Blanton <eblanton@cs.ohiou.edu>
To: tcpm@ietf.org
Subject: Re: [tcpm] Is this a problem?
Message-ID: <20071121024226.GR5881@elb.elitists.net>
Mail-Followup-To: tcpm@ietf.org
References: <299249.88905.qm@web31703.mail.mud.yahoo.com> <20071120121238.740442F6E0C@lawyers.icir.org> <200711202201.WAA05926@cisco.com> <47437551.7020205@isi.edu> <20071121004427.GI26548@cisco.com> <20071121011105.GQ5881@elb.elitists.net> <47438E69.5060701@cisco.com>
MIME-Version: 1.0
In-Reply-To: <47438E69.5060701@cisco.com>
X-GnuPG-Fingerprint: A290 14A8 C682 5C88 AE51 4787 AFD9 00F4 883C 1C14
User-Agent: Mutt/1.5.13 (2006-08-11)
X-Spam-Score: -102.6 (---------------------------------------------------)
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 5011df3e2a27abcc044eaa15befcaa87
X-BeenThere: tcpm@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: TCP Maintenance and Minor Extensions Working Group <tcpm.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tcpm>, <mailto:tcpm-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tcpm@ietf.org>
List-Help: <mailto:tcpm-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tcpm>, <mailto:tcpm-request@ietf.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1325593164=="
Errors-To: tcpm-bounces@ietf.org

Mahesh Jethanandani spake unto us the following wisdom:
> Ethan Blanton wrote:
> >Joe keeps making this point because it is _very important_.  Any
> >feature which can be accomplished at Layer N can be accomplished at
> >Layer N - 1, and vice-versa.  However, the Internet protocols have
> >enjoyed tremendous success and longevity in part because they resist
> >the urge to push application and other high-layer semantics into the
> >lower layers.
>
> But  in case of congestion control it was felt that it would be done 
> better in TCP. Why? After all nothing stopped applications from 
> implementing congestion control.

This has been answered several times; it's not clear to me that you
are actually reading the responses to your emails.

Congestion control is important for the preservation _shared
resources_.  Mistakes in congestion control lead to problems on
somebody else's network.  The timer you are asking for is a change
which affects only _local resources_, and its disposition will have
little or no effect on others.  Congestion control was determined, by
the community, to be both important and tricky enough that it should
be solveld in one place (or a very small number of places), and shared
among applications.  It appears that there is not consensus that a
persist timer tunable has impact which is anywhere near similar.

If you are trying to suggest that stale sockets in zero window probing
are anywhere near the impact of congestion control, I find your
argument disingenuous.

> >For my own part, I have not yet seen a reason why application layer
> >timeouts are not a reasonable solution to this problem, or even the
> >_correct_ solution to this problem, because only the application knows
> >how much progress is "sufficient" progress, and as such I cannot see
> >driving this feature into the TCP _standards_.  I also, however, see
> >no reason why some particular TCP stack could not provide a socket
> >tunable for persist timeout, if sufficient userspace demand were
> >present.
>
> We give reasons as to why a timeout in application will not work. For 
> one, a fixed timeout is easy to defeat. If you are not proposing a fixed 
> timeout, what kind of timeout are you proposing? Is it going to be based 
> on that applications view of how many buffers it is holding on to? What 
> if that application is not the problem, but some other application is? 
> What if the other application does not even bother about connections in 
> persist condition.

I don't follow this, for several reasons.  What do you mean, a fixed
timeout is easy to defeat?  You're *asking* for a timeout which can be
set on zero window probing, are you not?  Regarding your final
statement, are you suggesting that application A should be able to
tell the operating system that application B's sockets should time out
if they are in a persist state?  None of this makes any sense to me.

> The problem is also that the resources in question are TCP resources and 
> applications have a snapshot of the problem from their connection point 
> of view. They do not see the problem that TCP is seeing.

We fundamentally disagree on this; Joe pointed out that you _can_
indeed know whether or not a TCP connection is open or closed, by way
of blocking calls and appropriate twiddling of SO_LINGER.  The
application therefore knows exactly how many sockets it is using, and
can be tuned appropriately.  I don't see what you think kernel space
can accomplish, that user space cannot.

Ethan

-- 
The laws that forbid the carrying of arms are laws [that have no remedy
for evils].  They disarm only those who are neither inclined nor
determined to commit crimes.
		-- Cesare Beccaria, "On Crimes and Punishments", 1764
_______________________________________________
tcpm mailing list
tcpm@ietf.org
https://www1.ietf.org/mailman/listinfo/tcpm