Re: [manet-dlep-rg] TCP clients, servers, and discovery (WAS: Re: notes DLEP meeting @ IETF88)

Teco Boot <teco@inf-net.nl> Thu, 14 November 2013 18:50 UTC

Return-Path: <teco@inf-net.nl>
X-Original-To: manet-dlep-rg@ietfa.amsl.com
Delivered-To: manet-dlep-rg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B65EE21F9FCF for <manet-dlep-rg@ietfa.amsl.com>; Thu, 14 Nov 2013 10:50:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.338
X-Spam-Level:
X-Spam-Status: No, score=-3.338 tagged_above=-999 required=5 tests=[AWL=0.261, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id M6IMX-RLpr6Y for <manet-dlep-rg@ietfa.amsl.com>; Thu, 14 Nov 2013 10:50:11 -0800 (PST)
Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by ietfa.amsl.com (Postfix) with ESMTP id E105221E8113 for <manet-dlep-rg@ietf.org>; Thu, 14 Nov 2013 10:49:43 -0800 (PST)
Received: by mail-wi0-f176.google.com with SMTP id f4so3959847wiw.9 for <manet-dlep-rg@ietf.org>; Thu, 14 Nov 2013 10:49:41 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=uwX7giLQ03j3822hnbmw1Io5B35NPq3E+fy0JNn+UgI=; b=VMqc7kM3yEPLh+r73whqd0M+WCMqm4PHf29ZqTDeW9bMS4+59oKbcZwgg2AyPj+uLe X1yrBuu3GBB0D2kY6fjSFMfKiRCV/QpOx0WfCTxz/Aj5qi3U9LKRmVWlpwLRXXL7kWsO ixFzXG+EoOzuIvWQk+5H2ruso2YNju4BPFE64GLjaQDZE4D8kvZQ10UxjsxX1wg/+IRi lL5wx/Mb9h1bLQgfNDiHnH/T0WxsfDOJeIjpfE9iKw7GhlK4l7BARXZsJy4MPVC94bzj PMBcWvh2oLS+ND3zVYgIqbpqQDMYO4LAxG1NBbP/BSxkDKAA2FFiQ2GbEGWK+1kuHTbR gSsw==
X-Gm-Message-State: ALoCoQlgZX/2wdI4w53xyrNCEbkjAUXMOqlmW2PA6b2jN/uB1orVdljYAzPnVTmnFtIBEaZTTqsz
X-Received: by 10.194.80.137 with SMTP id r9mr3418930wjx.88.1384454981758; Thu, 14 Nov 2013 10:49:41 -0800 (PST)
Received: from [10.175.173.26] (524A14A4.cm-4-3a.dynamic.ziggo.nl. [82.74.20.164]) by mx.google.com with ESMTPSA id a6sm2159433eei.10.2013.11.14.10.49.35 for <multiple recipients> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 14 Nov 2013 10:49:35 -0800 (PST)
Content-Type: text/plain; charset="windows-1252"
Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\))
From: Teco Boot <teco@inf-net.nl>
In-Reply-To: <64E876E6-8679-4449-B511-C296E9FE2FC8@cisco.com>
Date: Thu, 14 Nov 2013 19:49:34 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <69077813-1CE2-4FC6-B68F-7F0B13D67A4D@inf-net.nl>
References: <72FB622921C13746AD6349E70A8D9F307D9192F7@EXC-MBX03.tsn.tno.nl> <CAK=bVC85XAXR3Zkwq+JwELF-dvgrKwbowWCvwvnjeVn7VStnbw@mail.gmail.com> <72FB622921C13746AD6349E70A8D9F307D9193CD@EXC-MBX03.tsn.tno.nl> <5A8A5085482DA84995F4E70F5093AB50268E6C@XCH-BLV-503.nw.nos.boeing.com> <B2BA430A-F4E6-4DED-A7BB-7282A22802B7@inf-net.nl> <5A8A5085482DA84995F4E70F5093AB50269139@XCH-BLV-503.nw.nos.boeing.com> <DAAF2F4E-8918-4708-8D68-4792A919541B@inf-net.nl> <5A8A5085482DA84995F4E70F5093AB502691C9@XCH-BLV-503.nw.nos.boeing.com> <EBD19831-B87C-4F37-B028-E00687B59FE1@inf-net.nl> <5A8A5085482DA84995F4E70F5093AB5026926A@XCH-BLV-503.nw.nos.boeing.com> <51F083CF-62B8-4858-9C3D-5D48BFE6D8BE@inf-net.nl> <5A8A5085482DA84995F4E70F5093AB50269348@XCH-BLV-503.nw.nos.boeing.com> <57D01331-8D30-4A02-A2BA-B644DBA7A808@inf-net.nl> <5A8A5085482DA84995F4E70F5093AB50269934@XCH-BLV-503.nw.nos.boeing.com> <4840CBE1-5710-4AA1-A6F2-B8A65DE98F25@inf-net.nl> <6b9b8b9f-ad60-4128-88dd-4ecccc91526d@SUCNPTEXC01.COM.A D.UK.DS.CORP> <B177F831FB91F242972D0C35F6A0733106FB0F3F@SUCNPTEXM01.com.ad.uk.ds.corp> <CAM4esxQx4L+=8j_EsKf6zJf=405Wn1fffUEfhRq092N3=72SoQ@mail.gmail.com> <CAGnRvuo2iRwFGYB18gjbJnZQhc2rkWhOr1voXE0zkOhGVhq1sQ@mail.gmail.com> <6EB41DAA-4AD6-4E1D-B497-90275673A508@inf-net.nl> <64E876E6-8679-4449-B511-C296E9FE2FC8@cisco.com>
To: Stan Ratliff <sratliff@cisco.com>
X-Mailer: Apple Mail (2.1822)
Cc: "DLEP Research Group (manet-dlep-rg@ietf.org)" <manet-dlep-rg@ietf.org>
Subject: Re: [manet-dlep-rg] TCP clients, servers, and discovery (WAS: Re: notes DLEP meeting @ IETF88)
X-BeenThere: manet-dlep-rg@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: DLEP Radio Group <manet-dlep-rg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/manet-dlep-rg>, <mailto:manet-dlep-rg-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/manet-dlep-rg>
List-Post: <mailto:manet-dlep-rg@ietf.org>
List-Help: <mailto:manet-dlep-rg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/manet-dlep-rg>, <mailto:manet-dlep-rg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Nov 2013 18:50:16 -0000

Op 14 nov. 2013, om 18:53 heeft Stan Ratliff (sratliff) <sratliff@cisco.com> het volgende geschreven:

> I thought about not sending this email… perhaps I should have abided that urge, but what-the-heck… ;-) 
> 
> 
> On Nov 14, 2013, at 11:12 AM, Teco Boot <teco@inf-net.nl> wrote:
> 
>> 
>> Op 14 nov. 2013, om 16:20 heeft Henning Rogge <hrogge@googlemail.com> het volgende geschreven:
>> 
>>> I still prefer the UDP peer discovery sent by the radio.
>> 
>> +1
>> Followed by a TCP SYN response sent by router.
>> This enables set up of DLEP sessions without the UDP ignition packet. Routers can send the TCP SYN to the modem if they have knowledge on the modem IP address.
>> 
>> Teco
>> 
>> 
>>> 
>>> Henning Rogge
>>> 
> 
> If this winds up being the path taken, it means that modems are going to wind up juggling UDP and TCP sockets, including a TCP listen() socket.

No. Sending the UDP multicasts stays active. TCP listen socket stays listening.


> Multi-socket select() dispatch loops; managing listen queue depth, and dealing with non-blocking sockets (so that the select works) are also on the horizon for the modem implementers. And all of this to get a 1-hop discovery mechanism running - I wonder what the path length (libraries INCLUDED) for that is, just to avoid a single line of config (that being, the address and port of the other end of the connection)? 

I would not recommend to implement it this way.


> 
> The alternative I was shooting for, from the modem perspective, was along the lines of: 
> 1. Open a (blocking? non-blocking? don't care) UDP socket. 
> 2. Receive the discovery packet. Close that socket? Keep it open? Your call. 
> 3. Open a TCP socket. Issue connect(), from the info you got (and/or derived) from the discovery packet.
> 4. Flail away, sending and receiving actual DLEP protocol packets!

Looks complex to me.
Just use:
1. start simple DLEP discovery daemon, sending a UDP link-local multicast packet every now and then
2. start DLEP listener daemon
3. on TCP SYN, spawn a DLEP proces

For 3 there are other options. I’m pretty sure there will be a high performance open source DLEP implementations before RFC status. 


> 
> I'm beginning to think we need to pop the champagne corks and congratulate ourselves for (partially) designing something no one in their right mind would implement…

You are wrong. TCP servers on modems are implemented today. 


Teco


> 
> Stan
> 
> _______________________________________________
> manet-dlep-rg mailing list
> manet-dlep-rg@ietf.org
> https://www.ietf.org/mailman/listinfo/manet-dlep-rg