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

Henning Rogge <hrogge@googlemail.com> Thu, 14 November 2013 17:58 UTC

Return-Path: <hrogge@googlemail.com>
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 27FD321E8115 for <manet-dlep-rg@ietfa.amsl.com>; Thu, 14 Nov 2013 09:58:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.911
X-Spam-Level:
X-Spam-Status: No, score=-1.911 tagged_above=-999 required=5 tests=[AWL=0.067, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, NO_RELAYS=-0.001]
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 xYtcwfBClOcJ for <manet-dlep-rg@ietfa.amsl.com>; Thu, 14 Nov 2013 09:58:27 -0800 (PST)
Received: from mail-qc0-x22f.google.com (mail-qc0-x22f.google.com [IPv6:2607:f8b0:400d:c01::22f]) by ietfa.amsl.com (Postfix) with ESMTP id 2F7EF21E8082 for <manet-dlep-rg@ietf.org>; Thu, 14 Nov 2013 09:58:27 -0800 (PST)
Received: by mail-qc0-f175.google.com with SMTP id x12so1360098qcv.6 for <manet-dlep-rg@ietf.org>; Thu, 14 Nov 2013 09:58:26 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=orkFKNG/XBMf/fZs99dqzYmAaxgXXDssTOz+/uU5yZ0=; b=GBFYzRSLDoMK/Dg7Fpmv2fSaGphOokQV4qiXJ8llMOg4fljeZYxpgY7GE+S95DZcd1 uzv777DuvDWJ2hJm6nG4s3GfkFNztAmJe9N4oLvwq3Mz/hUEEcH8A9+T64AQqpmO1RNE 5FSEgVAtdAraJ7yCsocREb9RFCssuFvaGOzYlTLPpmV4cuZCBZNJQb0ZQEKmUFgvBJjB CvqZBS8VSJf/hIHi4kY34A8Ph7k/2uq+SOyWyMDhki63OmlT7zh6hdYNP0l0LdTawyc/ TqjxRFX0QCWMpEe8LWFpqfVX99IuRzzUPnesumt+1amcdcuL+xdb5ilTubs+o9TIP3VB ukuw==
X-Received: by 10.49.15.5 with SMTP id t5mr4282696qec.38.1384451906598; Thu, 14 Nov 2013 09:58:26 -0800 (PST)
MIME-Version: 1.0
Received: by 10.224.36.200 with HTTP; Thu, 14 Nov 2013 09:58:06 -0800 (PST)
In-Reply-To: <64E876E6-8679-4449-B511-C296E9FE2FC8@cisco.com>
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> <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>
From: Henning Rogge <hrogge@googlemail.com>
Date: Thu, 14 Nov 2013 18:58:06 +0100
Message-ID: <CAGnRvuoWHvVOQKuf+o-tCPL5VJLRHSgTpYcB+-Z4s0rR2EF3jg@mail.gmail.com>
To: "Stan Ratliff (sratliff)" <sratliff@cisco.com>
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: quoted-printable
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 17:58:28 -0000

Stan,

maybe you should think about the argument again... it doesn't matter
if the radio or the router sends the UDP discovery packet... it
doesn't matter either if the radio is the TCP server or client.

In all cases both radio and router will handle UDP and TCP... and most
likely nobody will care about the few lines of codes.

Many modern radio vendors implement their radio software by buying an
embedded operation system including a full TCP/IP stack... or they
just use an open source one, which also will already have a posix
compatible IP stack. They wont have to implement it themselves.

Henning Rogge

On Thu, Nov 14, 2013 at 6:53 PM, Stan Ratliff (sratliff)
<sratliff@cisco.com> wrote:
> 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. 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)?
>
> 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!
>
> 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…
>
> Stan
>
> _______________________________________________
> manet-dlep-rg mailing list
> manet-dlep-rg@ietf.org
> https://www.ietf.org/mailman/listinfo/manet-dlep-rg



-- 
We began as wanderers, and we are wanderers still. We have lingered
long enough on the shores of the cosmic ocean. We are ready at last to
set sail for the stars - Carl Sagan