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

Teco Boot <teco@inf-net.nl> Fri, 15 November 2013 12:11 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 EF8EC21F9D7A for <manet-dlep-rg@ietfa.amsl.com>; Fri, 15 Nov 2013 04:11:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.999
X-Spam-Level:
X-Spam-Status: No, score=-2.999 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, J_CHICKENPOX_21=0.6, 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 VW+gmZr0IC+j for <manet-dlep-rg@ietfa.amsl.com>; Fri, 15 Nov 2013 04:11:04 -0800 (PST)
Received: from mail-ee0-f49.google.com (mail-ee0-f49.google.com [74.125.83.49]) by ietfa.amsl.com (Postfix) with ESMTP id 2C4AF21F99FD for <manet-dlep-rg@ietf.org>; Fri, 15 Nov 2013 04:11:03 -0800 (PST)
Received: by mail-ee0-f49.google.com with SMTP id b15so1019808eek.22 for <manet-dlep-rg@ietf.org>; Fri, 15 Nov 2013 04:11:02 -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=iKOugomGPDhrMuai3Et86BrdYLoQSO/F+D6v23d8j80=; b=g/6BBLSr6PnsA6gY6Gc2jF1r6LphmvSvV5dLvcnRLcnm3zUjzaxggbFEdUF4AhxmvL Nhblvgcr7KRRYPuY38XLUcZelUUMHhmujRlc12hb6RM/MopPhBtQ71r9/bec/JrGYVnC 7SYf3OkBGXHxypu0LLlcQSR2umGj/7rJYcDMeBROZ6vAu7lBDLFvPbeYcOVQg1GaPfgF fhejIuvWAMgjZCLiLbzCaA9/ZCT2znYIUxKYCOHBzXy7hP//20dmhTBkx7m7nfz8zRc9 b8dJ0iMzRHjWoXxAxRoNyMi03dVjkWUlZ0PFQ2gzdS96WwDOTE2tyoN2ekVEgBHbS6xU j3eA==
X-Gm-Message-State: ALoCoQnWqea5hz4kuGNE8PI1h9WdmP8bfJppwkR/e3MpBW3uxEnFHzHfnaJM/QPNf95NKSHjGXwp
X-Received: by 10.14.109.1 with SMTP id r1mr3100784eeg.32.1384517462442; Fri, 15 Nov 2013 04:11:02 -0800 (PST)
Received: from [10.175.173.95] (524A14A4.cm-4-3a.dynamic.ziggo.nl. [82.74.20.164]) by mx.google.com with ESMTPSA id x4sm5863453eef.1.2013.11.15.04.11.01 for <multiple recipients> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 15 Nov 2013 04:11:01 -0800 (PST)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\))
From: Teco Boot <teco@inf-net.nl>
In-Reply-To: <979927df-e29f-4d41-b5c6-4c3c0ec70db7@SUCNPTEXC01.COM.AD.UK.DS.CORP>
Date: Fri, 15 Nov 2013 13:11:08 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <32D9AC84-DF7C-49D0-83A9-A2EC31BB8ABC@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> <B177F831FB91F242972D0C35F6A0733106FB0F3F@SUCNPTEXM01.c om.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> <69077813-1CE2-4FC6-B68F-7F0B13D67A4D@inf-net.nl> <f59a8090-e5e2-487a-83ad-892f5c0774d7@SUCNPTEXC01.COM.AD.UK.DS.CORP> <979927df-e29f-4d41-b5c6-4c3c0ec70db7@SUCNPTEXC01.COM.AD.UK.DS.CORP>
To: "Taylor, Rick" <Rick.Taylor@cassidian.com>
X-Mailer: Apple Mail (2.1822)
Cc: "DLEP Research Group (manet-dlep-rg@ietf.org)" <manet-dlep-rg@ietf.org>, "Dowdell, John" <John.Dowdell@Cassidian.com>
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: Fri, 15 Nov 2013 12:11:09 -0000

Op 15 nov. 2013, om 11:33 heeft Taylor, Rick <Rick.Taylor@cassidian.com> het volgende geschreven:

> Okay, just to back it up a bit, and try to get some clarity in the debate.
> 
> As I understand it, we are all happy with:
> 
>    Server                                          Client
>    ======================================================
> 
> 1)  TCP Listen()
> 
> 2*) Peer_Discovery (UDP) ------------Multicast----------->
>      + Version
> 
> 3)  <--------------------------------------- TCP Connect()
> 
> 4)  <---------------------------------- Peer_Request (TCP)
>                                                 + Version
>                                       + optional extras 1
> 
> 5)  Peer_Accept (TCP) ----------------------------------->
>      + Status
>      + Version
>      + optional extras 2
> 
> *Step 2 may be replaced with a-priori configuration, mDNS, etc...
> 
> What we are arguing about is who should be the Client, and who should be the Server.
> 
> So, I am now calling for everyone's answer to the following question:
> 
> "Should the modem be the Client or the Server in the above diagram, and why?"

Modem should be the server:
 - modems are servers today, for link metrics, OA&M etc.
 - modems provide a service, so they act as server
 - modems are "thumb" devices and can be reach from anywhere in the Internet, if permitted. No need to configure the modem for it, except setting access rights. No need to fire an "ignition packet".
 - modems can easily handle many TCP sockets, either TCP server or TCP client
 - TCP server programming is not more difficult than TCP client


> 
> I have intentionally left 'optional extras' 1 and 2 undefined as they may be relevant in your answers.

The Ack in the 3-way handshake is missing. After 5, Server thinks the DLEP session is open, but Client is not aware of it yet. This is minor detail, perhaps indeed use as few packets as possible. Also less state.


> 
> I will give my answers in a separate email.
> 
> If anyone has a problem with the above diagram, now is your chance to shout!

Yes, TCP server socket must be opened before the Peer_Discovery. 
After connection, Peer_Discovery packets SHOULD continue to be sent, for the following reasons:
 - no relation between UDP and TCP sockets, more lightweight
 - for modems that support it, other routers may set up DLEP sessions also
 - better recovery in case of failures, router knows modem is still present (think of heartbeat=zero)
 - in line with other discovery protocols (CDP, LLDP, Bonjour etc).


Teco

> 
> Cheers,
> 
> Rick
> 
> The information contained within this e-mail and any files attached to this e-mail is private and in addition may include commercially sensitive information. The contents of this e-mail are for the intended recipient only and therefore if you wish to disclose the information contained within this e-mail or attached files, please contact the sender prior to any such disclosure. If you are not the intended recipient, any disclosure, copying or distribution is prohibited. Please also contact the sender and inform them of the error and delete the e-mail, including any attached files from your system. Cassidian Limited, Registered Office : Quadrant House, Celtic Springs, Coedkernew, Newport, NP10 8FZ Company No: 04191036 http://www.cassidian.com
> _______________________________________________
> manet-dlep-rg mailing list
> manet-dlep-rg@ietf.org
> https://www.ietf.org/mailman/listinfo/manet-dlep-rg