Re: [dtn] [External] Concept of BP conversations and ephemeral services

"Ostermann, Shawn" <osterman@ohio.edu> Fri, 14 April 2023 13:39 UTC

Return-Path: <osterman@ohio.edu>
X-Original-To: dtn@ietfa.amsl.com
Delivered-To: dtn@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A6693C151707 for <dtn@ietfa.amsl.com>; Fri, 14 Apr 2023 06:39:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.094
X-Spam-Level:
X-Spam-Status: No, score=-2.094 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ohio.edu
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5vb04WVRdcgM for <dtn@ietfa.amsl.com>; Fri, 14 Apr 2023 06:39:30 -0700 (PDT)
Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2070e.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e88::70e]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CCF0DC14CE53 for <dtn@ietf.org>; Fri, 14 Apr 2023 06:39:29 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gT2/m2JM/vjCVhbRyqVewLBiCg2/QrcczVtqQ4lGW4ROxnXcrz/wQYhGqZntGQcC0cOEjFy4MyxL1/ta2P9QYKRfVVHwX49b5sHh+YzriFuE2bnJ+sAVLDDcRBt4Mqv/z3/HCdh8XuHZtPWJuLR62SofhZQ6KF3uK8x2kfBN1yyNZ6yOj3YGGhi2rKj1sDfiNBfwcOuOL6MH8s8Ci1y2eqwPXAjHvzjS+0RWyI4kpXhoPEyWRLqzvm30zeqVIVcVMGMTdkMCGcT51XL/RQ1jj9dn7/E5FncH6clEGsO130lypXZRX8Kb6YN+kNK1jyb5sDdR8oLpmFSKedA0GcVwtA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=oR/lZd8DmHaXRxZbBRqsB1dt9gLEPW3oiNAcbWSclIY=; b=S0+c08bcwc7lLodSY1ywHYVOxJVrWUaANUzCoyzWrnWDkAphSU4vvnpV72Ru0QqHvvGymuFAQnBoFu9+cRM0lVltgU974Skn/n/sjfZKDIe6KBwEUO+NUEworfvvKcyzaC4ZxdquMmqTUvJLhmT/6bQx0y53rwsRLfG48VrxsIAZwtkgxYvYj95KkQsqo2q0lgNC66Sj9hAivm8lijIwnjMOfYLl8vLWYppH6BOxDbdj7qsEkmiT1T/AeE6QK1D3dCRg8NDzST84iNH+dVUYxWNs6jGeTw7CmBGP80Yv7kxy4Hrx+/2McTT7ZUVCneEV75dNCvWMWWMiF0wxuJ8crg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ohio.edu; dmarc=pass action=none header.from=ohio.edu; dkim=pass header.d=ohio.edu; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ohio.edu; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oR/lZd8DmHaXRxZbBRqsB1dt9gLEPW3oiNAcbWSclIY=; b=RHHGSYCIeRsGALvAX/0WBVQ/2LaDvxdnboDOVAktJHRApY5w99O3fsJT/na/nfDKzVg+PHg74olg2ayBI75iPSwR9b1bal+B6ODYckEeksJfb5XumypnyVQ+FSNV1wGVW4V4cnYYe3Ly8ng0xipC+x4IMFRL14UbdH15lEFF980=
Received: from BL3PR01MB6948.prod.exchangelabs.com (2603:10b6:208:35b::19) by PH0PR01MB6699.prod.exchangelabs.com (2603:10b6:510:74::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.4; Fri, 14 Apr 2023 13:39:26 +0000
Received: from BL3PR01MB6948.prod.exchangelabs.com ([fe80::43da:be88:5568:b46b]) by BL3PR01MB6948.prod.exchangelabs.com ([fe80::43da:be88:5568:b46b%3]) with mapi id 15.20.6319.004; Fri, 14 Apr 2023 13:39:26 +0000
From: "Ostermann, Shawn" <osterman@ohio.edu>
To: "Sipos, Brian J." <Brian.Sipos@jhuapl.edu>
CC: "Ostermann, Shawn" <osterman@ohio.edu>, "dtn@ietf.org" <dtn@ietf.org>
Thread-Topic: [External] [dtn] Concept of BP conversations and ephemeral services
Thread-Index: AdluCVOhKadky8XQQPmJoLY2djfAjQAzS1aA
Date: Fri, 14 Apr 2023 13:39:26 +0000
Message-ID: <D9AF417B-93AA-43DD-84D2-2BB4BC1DFCA8@ohio.edu>
References: <46c2da786c3f490f89dbf8880249809b@jhuapl.edu>
In-Reply-To: <46c2da786c3f490f89dbf8880249809b@jhuapl.edu>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
x-mailer: Apple Mail (2.3731.500.231)
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ohio.edu;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: BL3PR01MB6948:EE_|PH0PR01MB6699:EE_
x-ms-office365-filtering-correlation-id: fa94a3f5-fa4d-4e58-2f76-08db3cedaa0d
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: OKsgrsBJkPffWXg8B+EWoMGXsBvq2OS94OKjXAy4O577n1QBqdefbz/WxTGX5ejfxMLEYCZrXNUODZazvZ3nb9tjPMXtGr7AzGrqMIx7lZXDDLGtdUxZCVm5MM4IMJuBPv4stDZAhR3f93ULUJBSXFkjgXKLmA22bwIPR0Td6e8stbo16FPj4RaX0PFXoMJAFBOqYN9yD9L4t81WfvRX+paRumUB72Cs0+9/JYgBICwEX91izYFSWOm5NW8edrqiqiUdIcmUFumEhBuGBcy5Ge2vVnlgRTLi/LUBiIbJqdR3ZXqUNE2BQWOih7g+rS6UjPJdkniyvbUOLHh0GVXqVTmvJW6kSwSKyxeZp8c0RRiwnH7ii2JsLEUEojfjJ50d+AGWU+JzI/qKj3/zXSYHtuLBtfBAziaPvuRZW+RjCq7TQrHug9HWkTa4XEacjgYXx5LeBfrmxsW/tctw9qOyBe3Ekl2yJ7LMWohY4jhre6597GiW8XPBGxg2JK8X3S+LfCPctS168JQKJXOVHGeNSrJw9RbM+yvJmRc/CUhoNo5upSjdKV/3Buy8Rx/FU5hbiAfVmTmm3ysxC+vZ1oZOKpaRBNUuS8gZVMOaXQWIt4k=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BL3PR01MB6948.prod.exchangelabs.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(376002)(346002)(396003)(136003)(39860400002)(366004)(451199021)(33656002)(36756003)(38100700002)(40140700001)(5660300002)(2906002)(122000001)(21615005)(38070700005)(8936002)(86362001)(166002)(786003)(8676002)(99936003)(66946007)(6916009)(66476007)(66556008)(66446008)(316002)(41300700001)(64756008)(4326008)(6506007)(966005)(83380400001)(76116006)(41320700001)(54906003)(2616005)(26005)(6512007)(75432002)(53546011)(91956017)(6486002)(71200400001)(186003)(478600001); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: aJQpo+dvViOppgKkf2LoRx1/XHnSp9MZvzVr7CGojFwtJjujESjJ8b+bSfBFvhib3FdjwLwAszD6RQHXoCZDzxja9FLNVYHIa21Yip5F04+HKx++JptCWLa+tobM9zj/Jbsv06yfFc3bItJTVy7E2PblOwPZbrz7JISkiNS0m7bpBzZejtNztuIV2mpHSTenrmcFXCxn7tbVMDGw9QMD5iLRpKmgwGZKZBXgHnUTg/90dDzxUCyd2PJvV+f3zBzfAIbWTBUP4RgknbA0U9phM/Wuxz4+Dhz+Sz23yDMVVn/bDrJILVh0pXWdgQVtZeJ/JnMl305qfRx8oOyn+s+Sq0bH2clwhJlkwBBFqRXdgjlB89KAwuh1iAij06Stjr0XYY2qWVwX4gE16Tt9WovVUYaWkevzl19osQPlPy0GOMg69MAOQ1AMTuIhf+9tC99BEUuow8fbKVbXnOuJQIvFrEpLw9L5E8HP4rZLkklOL7neJ3ar9gb+jF0f46sp36db7xO5nUg2kQYv7NzxiiRUtjtH2uh03AGG6dAJemeIErIeRHrJ93o1RD7xOl74tmNVGXORenmAnmGi57YTp6m0/tJpEckOKWkq7e+ei3UaTiv/nOHuPvaMMZybidG7zPbOaR2bNmXzjswZdMNRWdkVnHr80UhOoixZcrMnEzqzSlFPX9rzcJU5kHlPJo4s+CrNvnmgKzYL818Dus77W3a2n/x/M55wG/mFkwgrlmVARck9BidgUvqEzNh3yRukqYSMjZzp0ZQ8ES1YRe9bc7UtASVhG8wUGtr5ob7lj4VsDmFQJKbxrPo4XC5IUqhOjXtrKWabJgVJhMWLDggTCNIkhIxsSOtW7FadYqs7333zEjoSMd/ciuEk/m8/QBT0KI/UZKh6XgWzorUcvy/IsFShC3rkwj3UCPHsqHiPJ/gic1nZ2vCoXA+Jl1MUiji+FjgfCMGBSeU/CKEE97qv3XDnbrxVQxch+PRBsNyAknXVHxBLPMGSNIZC+qHSWSevfi3KAeNRcA4I1JBu8n+fWQvsbAwRDSiXM2OYpG1t8aaBZJk38cByC+i0Iun/itNDsG5+AQ5vvn5pbEKl4twUxvQNTgU9IcsbnLJ+2uiRI+HeRHjMeyJCV2bbbg6Oe3aRgQrNmFdWqY0qjE7XgSw1hjHdAg7vE4q/5ghBWocQE3zEnQ5K6um5ppJbXht27/EXw5HxwBifzCZol2+leUIQGZcL4d/FMVCRfopJGA31JdVb0+FLoA/j0artsxjMhfU9Qaf8mFeniTlvYYo5fSNm7qSYnmMYFRKSN3xm3fQeM5qKqFWG1/FJkGxgK+2lNPJiMO7zJ9mVFPSpx0pya18HdSr3Wf859Z3Z2NB1Wb+t23qV0tLYgt8i85LlOH88/e3q7pVyGjY8UoY1R1Gd+YD+bxw4q/3iBSEGSkklxustR9oGG//WpA5yxtG8KwrMZ16R3w4+AnXQjb15Mz5oQz70O3EEqcVZPh/DGOXE+CYnU4CxqMxWjqBrUop5klBWrTPcBP27cLtrnk9VSf4RZD3TB1xLNiY7uM4ppcX5M0mwSprFneE6SaWLsVoQSNoFTHcOrF5N
Content-Type: multipart/signed; boundary="Apple-Mail=_25FE180D-28CE-4736-B531-FCEB8570DF4A"; protocol="application/pgp-signature"; micalg="pgp-sha1"
MIME-Version: 1.0
X-OriginatorOrg: ohio.edu
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: BL3PR01MB6948.prod.exchangelabs.com
X-MS-Exchange-CrossTenant-Network-Message-Id: fa94a3f5-fa4d-4e58-2f76-08db3cedaa0d
X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Apr 2023 13:39:26.0409 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: f3308007-477c-4a70-8889-34611817c55a
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 24A0CVUO+Q2jCT/Oz4oeM68xb1PLRwFb7h8KKx5174pX/mKu5Uz7nl0SpgV4tegm0uwfWYyeTQphpCuds33qsg==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR01MB6699
Archived-At: <https://mailarchive.ietf.org/arch/msg/dtn/Q1X96fUE8eSaqOquX5tpNUc59hw>
Subject: Re: [dtn] [External] Concept of BP conversations and ephemeral services
X-BeenThere: dtn@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "Delay Tolerant Networking \(DTN\) discussion list at the IETF." <dtn.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dtn>, <mailto:dtn-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dtn/>
List-Post: <mailto:dtn@ietf.org>
List-Help: <mailto:dtn-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dtn>, <mailto:dtn-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Apr 2023 13:39:34 -0000

I think that suggestion makes good sense. It would probably be many years before there were “a lot” of DTN applications, but it makes sense to me to borrow the ideas from TCP/IP that worked well in practice (like well-known vs. random (in an isolated range) ports).

Shawn


> On Apr 13, 2023, at 10:21 AM, Sipos, Brian J. <Brian.Sipos@jhuapl.edu> wrote:
> 
> Use caution with links and attachments.
> All,
> Now that we are getting into discussions of codifying BP application protocols (e.g. Marc’s proposals for SNMP/BP and HTTP/BP, the DTN management protocol, etc.) there is a need to codify what is required, allowed, and not allowed regarding what some protocols and tools would call a “conversation” which means a multi-datagram sequence between two endpoints. My suggestion for how BP can handle this is to simply swap the Source and Destination EID as a way to participate in a conversation. This is terribly simple but does impose constraints on the application-side API for a BPA, which is that an application has some visibility into a received bundle’s source and destination EID (in the same way that POSIX socket API allows `bind`, `recvfrom`, and `sendto` to identify port number).
> 
> This is equivalent to how TCP, SCTP, and DCCP operate but because the BP EIDs are names and are separated from the CL transport there is no need for BP to ever introduce an explicit (and complex) logic for multi-homing, multi-pathing, etc. The EID is a stable name for one end of a conversation regardless of how the bundles are transported in either direction or how that may change over time. The point of codifying the notion of a conversation is so that both applications and diagnostic tools (like Wireshark) can have a shared understanding of “how things are supposed to work” that is independent of how the application protocol is actually using the conversation. There is even a bundle signaling flag in the form of “Acknowledgement by application is requested” [2] which seems to be otherwise undefined and could be used as an indication that a bundle is the start of a (possibly brief, one response) conversation.
> 
> Taking analogy from protocols that use UDP, but not required by UDP itself, there are two general types of UDP port used: assigned and dynamic [1]. For many uses of UDP one side of a conversation will use an assigned port for a well-known service but the other side is free to use a dynamic port number. This has a few benefits, but the one most applicable to scaling of services is that while the “provider” of a service can use an assigned number, the “user” of a service can use a dynamic number without the need for any pre-configuration or negotiation. The disambiguation between users/conversations is by allowing each user to register its own ephemeral endpoint in the local BPA without the need to coordinate with any other endpoint. This also doesn’t exclude the case where both endpoints use assigned numbers (which is how some protocols like SNMP or DNS can operate) but makes that more of a special case. The concrete effect of this would be to reserve a large chunk of 32-bit IPN service number space [3] and maybe reserve a prefix or pattern in the DTN service demux space for ephemeral endpoints (the tilde prefix is already reserved for non-singleton endpoints).
> 
> The reason for all of this is that I think applications are going to naturally fall into this pattern, both because existing protocols (over UDP and the other connection-oriented transport) already use this pattern and because it is a genuinely useful thing to not need to reinvent every time there is a two-way exchange of bundles between applications. Finally, this isn’t a proposal for “this is what you must do” but more like “if you need a conversation this is the standard pattern of behavior,” which is equivalent to BPSec as “if you need bundle security this is what you use.”
> 
> Any thoughts or interest in a short draft to nail down some of these concepts?
> Brian S.
> 
> [1] https://www.rfc-editor.org/rfc/rfc6335.html
> [2] https://www.rfc-editor.org/rfc/rfc9171#section-4.2.3
> [3] https://www.ietf.org/id/draft-ietf-dtn-ipn-update-01.html#section-8.3
> 
> _______________________________________________
> dtn mailing list
> dtn@ietf.org <mailto:dtn@ietf.org>
> https://www.ietf.org/mailman/listinfo/dtn

-----------------------------------------------------------------------------------------------------------------
Dr. Shawn Ostermann  - Ohio University
Computer Science Faculty
341 Stocker Center, Ohio University, Athens, Ohio  45701-2979
ostermann@ohio.edu -- (740)593-1234