Re: [ledbat] list of reasons for needing multiple TCP connections

Richard Bennett <richard@bennett.com> Mon, 01 December 2008 23:35 UTC

Return-Path: <ledbat-bounces@ietf.org>
X-Original-To: tana-archive@ietf.org
Delivered-To: ietfarch-tana-archive@core3.amsl.com
Received: from [127.0.0.1] (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 495F728C13F; Mon, 1 Dec 2008 15:35:25 -0800 (PST)
X-Original-To: ledbat@core3.amsl.com
Delivered-To: ledbat@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 7407328C103 for <ledbat@core3.amsl.com>; Mon, 1 Dec 2008 15:35:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.264
X-Spam-Level:
X-Spam-Status: No, score=-2.264 tagged_above=-999 required=5 tests=[AWL=-0.000, BAYES_00=-2.599, HTML_MESSAGE=0.001, IP_NOT_FRIENDLY=0.334]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QmpgibBT+HG2 for <ledbat@core3.amsl.com>; Mon, 1 Dec 2008 15:35:22 -0800 (PST)
Received: from outbound-mail-129.bluehost.com (outbound-mail-129.bluehost.com [67.222.38.29]) by core3.amsl.com (Postfix) with SMTP id 16FCE28C13F for <ledbat@ietf.org>; Mon, 1 Dec 2008 15:35:21 -0800 (PST)
Received: (qmail 20004 invoked by uid 0); 1 Dec 2008 23:35:15 -0000
Received: from unknown (HELO host46.hostmonster.com) (74.220.202.46) by outboundproxy4.bluehost.com with SMTP; 1 Dec 2008 23:35:15 -0000
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=bennett.com; h=Received:Message-ID:Date:From:Organization:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:X-Identified-User; b=xgAj76TgvMYUCnmPzV0ay159R6e1hZoBONYRQuSDxdF0lWydYvTfG+CRhjPMyN3jDNW1IvEn95EisJ8H9F94/rK0UuSolDp65ARkHOM7hg+INX050bh84qPdkC1v1p3O;
Received: from adsl-69-107-1-212.dsl.pltn13.pacbell.net ([69.107.1.212] helo=[192.168.1.4]) by host46.hostmonster.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from <richard@bennett.com>) id 1L7IIM-0000BK-HL; Mon, 01 Dec 2008 16:35:14 -0700
Message-ID: <493474B4.40607@bennett.com>
Date: Mon, 01 Dec 2008 15:35:16 -0800
From: Richard Bennett <richard@bennett.com>
Organization: Network Strategies
User-Agent: Thunderbird 2.0.0.18 (X11/20081119)
MIME-Version: 1.0
To: Robb Topolski <robb@funchords.com>
References: <4925BDEE.6090101@isi.edu> <8c99930d0811201206yb0ef259v28c361438cb14773@mail.gmail.com> <DC2CEB0C-4C70-42CD-8ADE-AFF4E45B1915@shlang.com> <C3E8A5B2-16BE-47FD-9DD9-5AFCBA6BEBED@nokia.com> <492F27F3.3020309@bennett.com> <3efc39a60812011438s71066079s4b467eab43d7a998@mail.gmail.com> <49346C79.8090308@bennett.com> <3efc39a60812011527s361af2ben9a333f5f92bfa1cc@mail.gmail.com>
In-Reply-To: <3efc39a60812011527s361af2ben9a333f5f92bfa1cc@mail.gmail.com>
X-Identified-User: {842:host46.hostmonster.com:bennett1:bennett.com} {sentby:smtp auth 69.107.1.212 authed with richard@bennett.com}
Cc: "ledbat@ietf.org" <ledbat@ietf.org>
Subject: Re: [ledbat] list of reasons for needing multiple TCP connections
X-BeenThere: ledbat@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Mailing list of the LEDBAT WG <ledbat.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ledbat>, <mailto:ledbat-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/pipermail/ledbat>
List-Post: <mailto:ledbat@ietf.org>
List-Help: <mailto:ledbat-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ledbat>, <mailto:ledbat-request@ietf.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1363700186=="
Sender: ledbat-bounces@ietf.org
Errors-To: ledbat-bounces@ietf.org

Setting an expiration period of 5 minutes for UDP entries in a NAT table 
will certainly kill UTP. Is that what you really want, Robb? The mapping 
entries have to be kept around as long as there's any likelihood of 
traffic coming in for them, which can be a very long time for P2P.

A little more tech and a little less snark would actually be beneficial.

RB

Robb Topolski wrote:
>
>     in the course of a 24 hour period you will typically see a total
>     of well over 4000 NAT table entries for BitTorrent when it's in use.
>
>
> Good grief. 
>
> "In the course of a 24-hour period" is a huge qualifier, not to 
> mention irrelevant.  How big is the NAT table over the course of a 
> year?   You can really demonize P2P with a stat like that!! 
>
> The only relevant NAT table is the one you have, now. 
>
>     TCP is actually more friendly to this problem than UDP, because it
>     give the NAT a clue about when it's safe to free an entry.
>
>
> I don't know that TCP is any more or less friendly.  Sure, it gives 
> state, but you have to track that state and do an orphan timer.  
> Meanwhile, a lot of TCP apps send keepalives anyway, rendering all 
> that pretty much meaningless. 
>
>     Stateless  UDP is much more of a problem.
>
>
> With UDP, it's much less of a problem.  Devices can just expire the 
> entry after sufficient time has passed since the last traversal -- 
> which is what they already do.
>
> With TCP entries, owing to the chance that keepalives aren't used, my 
> favorite router sets a 2.5 hour timer.  With UDP entries, it's 5 
> minutes. 
>
>
>
>  
>
> On Mon, Dec 1, 2008 at 3:00 PM, Richard Bennett <richard@bennett.com 
> <mailto:richard@bennett.com>> wrote:
>
>     Au contraire, Robb, in the course of a 24 hour period you will
>     typically see a total of well over 4000 NAT table entries for
>     BitTorrent when it's in use. The fact that BitTorrent doesn't use
>     all the thousands at the same time isn't the issue, it's the fact
>     that a mapping entry has to be made in the table each time a
>     packet is sent from an end system behind the NAT to one in front
>     of the NAT. TCP is actually more friendly to this problem than
>     UDP, because it give the NAT a clue about when it's safe to free
>     an entry. Stateless  UDP is much more of a problem.
>
>     RB
>
>     Robb Topolski wrote:
>>
>>
>>         Most home "routers" have all been modified by now not to
>>         crash when BitTorrent has opened thousands of TCP
>>         connections. These connections consume mapping table
>>         resources and were a problem until it they were
>>         garbage-collected.
>>
>>
>>     I claim to have no handle on what "most" home routers do, but I
>>     doubt this assertion.
>>
>>     NAT table size continues to be a problem with NAT limit, and not
>>     because BitTorrent typically opens thousands of TCP connections
>>     (it doesn't, nor do trackers generally provide the thousands of
>>     peer addresses necessary to go with those connections), but
>>     because the combination of the UDP-based DHT in addition to 100
>>     TCP connections and a decent amount of WAN-LAN traffic is enough
>>     to overcome NAT tables in popular routers being sold today. 
>>
>>     http://www.smallnetbuilder.com/component/option,com_chart/Itemid,189/chart,124/
>>     (note 200 is the upper limit of their test method, but of use to
>>     this message is the number and market position of routers that
>>     support less than 200)
>>
>>     Belkin's F5D8232-4 is 41st in Amazon's sales rank for "routers"
>>     and maxed out at 180 connections.
>>     Netgear FVS124G is 14th in "gigabit routers" and maxes out at 196.
>>     Apple's BL053LL/A is 1st in "gigabit routers" and maxes out at 128.
>>
>>     Do they crash?  Beats me.  But NAT table size limit is definitely
>>     a consideration.  The behaviors when those limits are reached are
>>     varied and, even on some recently sold equipment, sometimes less
>>     than graceful. One of the most common failure modes I've run
>>     across is that DNS Relay stops working or the configuration pages
>>     stop responding while pre-existing connections continue
>>     uninterrupted!  (I'm guessing that the daemons supporting these
>>     functions either get killed or lack enough memory to do anything,
>>     they themselves are shut out of the NAT table, or maybe they
>>     won't launch when CPU load is greater than some amount.) 
>>
>>     I think it continues to deserve inclusion.  If someone has data
>>     to the contrary, please bring it.
>>
>>
>>     -- 
>>     Robb Topolski (robb@funchords.com <mailto:robb@funchords.com>)
>>     Hillsboro, Oregon USA
>>     http://www.funchords.com/
>>     ------------------------------------------------------------------------
>>     _______________________________________________ ledbat mailing
>>     list ledbat@ietf.org <mailto:ledbat@ietf.org>
>>     https://www.ietf.org/mailman/listinfo/ledbat
>
>     -- 
>     Richard Bennett
>         
>
>
>
>
> -- 
> Robb Topolski (robb@funchords.com <mailto:robb@funchords.com>)
> Hillsboro, Oregon USA
> http://www.funchords.com/
> ------------------------------------------------------------------------
>
> _______________________________________________
> ledbat mailing list
> ledbat@ietf.org
> https://www.ietf.org/mailman/listinfo/ledbat
>   

-- 
Richard Bennett

_______________________________________________
ledbat mailing list
ledbat@ietf.org
https://www.ietf.org/mailman/listinfo/ledbat