[babel] Babel over DTLS and UDP ports

David Schinazi <dschinazi.ietf@gmail.com> Thu, 30 May 2019 16:11 UTC

Return-Path: <dschinazi.ietf@gmail.com>
X-Original-To: babel@ietfa.amsl.com
Delivered-To: babel@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6AEE2120151 for <babel@ietfa.amsl.com>; Thu, 30 May 2019 09:11:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.997
X-Spam-Level:
X-Spam-Status: No, score=-1.997 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fBw2ymFJH0ON for <babel@ietfa.amsl.com>; Thu, 30 May 2019 09:11:26 -0700 (PDT)
Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 83A80120141 for <babel@ietf.org>; Thu, 30 May 2019 09:11:26 -0700 (PDT)
Received: by mail-lj1-x22b.google.com with SMTP id m15so6577517ljg.13 for <babel@ietf.org>; Thu, 30 May 2019 09:11:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=EckkHD57fdxtOCu+lxpdjb+Xp19BqbgtxvhHsx+o6o8=; b=TICE1GpK7JmDWZtscu+Xh1mGFbWslV/U+qC6HAahnFKV5CYhu++vtWJ2WfN3DqH1C5 1yQQnqhwrOAKFeSY2Dj1LXXQs80pSv6yjjYp+UTHVrlLjH1ZRP1KA87qAUi/mx56GvWM 3h7QbrSiVNqOxT85Paa47USlO3TsTbiJ8blrZ0t8fjzihks95+pcjJ8KSSHiW9RqVvZd YYenlhHmrWsIAKF9CYcKM4W2/Yy9GvYjsInrhAEBoQo3npj2ocz5Utt8fHBhbnOB/daf 7gzkMS1FxiMc+VIU48xRejd3WRsDzk2Ke9pF4snpfUWYPfYq0UggnGCBetYR8i16dAJ9 Mmew==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=EckkHD57fdxtOCu+lxpdjb+Xp19BqbgtxvhHsx+o6o8=; b=haA/TpPCNB9Ii+TwCNGb82qR551Eia14yaxjv6vmHmk7ucznuA2gn8Kib6V5laFBVs lRHfoxid5M4HROhlS/hrKwqrwh484m57Hz+hvODwhfRtOJNwNkfXZrq7fhpMVs3CqJOf 6ofuIye2bkzjwKBFQAYRywMz6SJ3BG7mJLK+SyOCe6vheKkX5okJZbBLlB9fCEj0/fAG N2aFP6j/TTLeTcZEsR17F7ahPHzF0PMnYr//zKyRfy6x7d9UXCtoy5Bc2YOkUIwVEq5s EbXZJL+OMOhz0Y+yoYZPwdWrAHE9HGWpo45hnn5UfIz3jzcfl49N/aHVvCYmYIMnJCvi /ujA==
X-Gm-Message-State: APjAAAVU8ovM2mu0KgO9txgF6gjhFly+oJMreSu45TM47k9jj4O9oJxv BNXcY7xptsAb7b1sMoegz0zLfWmUttIEgzgajAfNJWKGFxI=
X-Google-Smtp-Source: APXvYqyo6UUhKOUhqMPCjneuZGz0nawHxx3jTXbrCgk3sMqBl30tGGq+dzHKGpaovE7goHuvBWU4K2uGpekDMdKPvVE=
X-Received: by 2002:a2e:890c:: with SMTP id d12mr2577229lji.107.1559232684450; Thu, 30 May 2019 09:11:24 -0700 (PDT)
MIME-Version: 1.0
From: David Schinazi <dschinazi.ietf@gmail.com>
Date: Thu, 30 May 2019 18:11:13 +0200
Message-ID: <CAPDSy+45_gEo=SfLWnODa6jMqnUdC9a10nhL6ZxRLh7EXabxaw@mail.gmail.com>
To: Babel at IETF <babel@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000476818058a1d264b"
Archived-At: <https://mailarchive.ietf.org/arch/msg/babel/Mo4wxCQbgcNK8rPcKuNvOqxCopU>
Subject: [babel] Babel over DTLS and UDP ports
X-BeenThere: babel@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "A list for discussion of the Babel Routing Protocol." <babel.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/babel>, <mailto:babel-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/babel/>
List-Post: <mailto:babel@ietf.org>
List-Help: <mailto:babel-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/babel>, <mailto:babel-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 30 May 2019 16:11:28 -0000

Hi Babel enthusiasts,

As currently documented
<https://tools.ietf.org/html/draft-ietf-babel-dtls-04>, Babel over DTLS
uses two UDP listening ports:
- 6696 for regular unencrypted Babel packets
- a separate port (number TBD) for Babel-over-DTLS packets

When the authors requested the new port from IANA, we received some
pushback. The position of the IANA port expert was that UDP ports are a
scarce resource and they strongly prefer to not allocate them unless it is
necessary. So the question for the Babel WG is: is the separate port
necessary?

One possible solution could be for us to have unencrypted packets and DTLS
packets share the same port. For that we can leverage the fact that all
Babel packets start with a first byte set to 42, and say that DTLS packets
use the same port, prefixed with 43 instead of 42.

What are people's thoughts? In particular, if you have an implementation of
Babel over DTLS (or if you are considering building one), do you think the
proposal above could be fit into your implementation?

Thanks,
David