Re: [hybi] NAT reset recovery? Was: Extensibility mechanisms?

Jamie Lokier <jamie@shareable.org> Tue, 20 April 2010 20:23 UTC

Return-Path: <jamie@shareable.org>
X-Original-To: hybi@core3.amsl.com
Delivered-To: hybi@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 09C113A6AAB for <hybi@core3.amsl.com>; Tue, 20 Apr 2010 13:23:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.015
X-Spam-Level:
X-Spam-Status: No, score=-2.015 tagged_above=-999 required=5 tests=[AWL=-1.275, BAYES_20=-0.74]
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 BFPD9kE6aIKU for <hybi@core3.amsl.com>; Tue, 20 Apr 2010 13:23:13 -0700 (PDT)
Received: from mail2.shareable.org (mail2.shareable.org [80.68.89.115]) by core3.amsl.com (Postfix) with ESMTP id 470F728C1B4 for <hybi@ietf.org>; Tue, 20 Apr 2010 13:21:33 -0700 (PDT)
Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from <jamie@shareable.org>) id 1O4Jwf-0004gY-QQ; Tue, 20 Apr 2010 21:21:21 +0100
Date: Tue, 20 Apr 2010 21:21:21 +0100
From: Jamie Lokier <jamie@shareable.org>
To: Pieter Hintjens <ph@imatix.com>
Message-ID: <20100420202121.GG11723@shareable.org>
References: <87764B8E-5872-40EE-AA2F-D4E659B94F63@d2dx.com> <20100419140423.GC3631@shareable.org> <6959E9B3-B1AC-4AFB-A53D-AB3BA340208C@d2dx.com> <B3F72E5548B10A4A8E6F4795430F841832040F78C0@NOK-EUMSG-02.mgdnok.nokia.com> <w2q5821ea241004191309t7362de42p922788d380119dc4@mail.gmail.com> <B3F72E5548B10A4A8E6F4795430F841832040F78DB@NOK-EUMSG-02.mgdnok.nokia.com> <l2v5821ea241004191326i50970f32zbda7f876eda777f1@mail.gmail.com> <B3F72E5548B10A4A8E6F4795430F841832040F78ED@NOK-EUMSG-02.mgdnok.nokia.com> <20100420014041.GD21899@shareable.org> <p2o5821ea241004192303v20afca34vf90bcd4325eb2265@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <p2o5821ea241004192303v20afca34vf90bcd4325eb2265@mail.gmail.com>
User-Agent: Mutt/1.5.13 (2006-08-11)
Cc: hybi@ietf.org, Markus.Isomaki@nokia.com
Subject: Re: [hybi] NAT reset recovery? Was: Extensibility mechanisms?
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hybi>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 20 Apr 2010 20:23:16 -0000

Pieter Hintjens wrote:
> > However for packet efficiency, synchronising timing by using
> > request-response, or another synchronisation method, may still be
> > advantageous.  Even though it's more complicated than async keepalive.
> 
> Complexity is always worth removing unless the overhead is significant
> and since KAs can be entirely switched off when there is traffic at
> all, and then reduced to once per 5 or 10 or 30 seconds, packet
> efficiency seems irrelevant here.

I'm talking about when there is no traffic.  Some applications are
idle nearly all the time; then KAs are by far the dominant cost.

Three packets exchanged every 30 seconds is a ~26GB per thousand
user-months.  You might transfer 1GB of real data in the same time.

If you have a million connections doing KAs all the time, you can
go bankrupt paying for KAs while the real data is affordable.
Same with lots of open tabs and WS apps on a mobile browser.

It's not worth obsessing over a few percent, but halving the cost is
sometimes worth it.  But anyway, leave that to each implementation.

Just make sure the protocol supports (a) ping requests, and (b)
request to set async KA idle time, and all will be fine.  [(b) is
as easy as negotiation and more versatile.]

-- Jamie