Re: [lisp] Wireguard and LISP [Was: Virtual meeting]

Dino Farinacci <farinacci@gmail.com> Thu, 26 March 2020 20:36 UTC

Return-Path: <farinacci@gmail.com>
X-Original-To: lisp@ietfa.amsl.com
Delivered-To: lisp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E089C3A0E9B for <lisp@ietfa.amsl.com>; Thu, 26 Mar 2020 13:36:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level:
X-Spam-Status: No, score=-2.099 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, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-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 yeyhJUamXCFt for <lisp@ietfa.amsl.com>; Thu, 26 Mar 2020 13:36:41 -0700 (PDT)
Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) (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 AD06F3A0E00 for <lisp@ietf.org>; Thu, 26 Mar 2020 13:36:20 -0700 (PDT)
Received: by mail-pf1-x42c.google.com with SMTP id q3so3353074pff.13 for <lisp@ietf.org>; Thu, 26 Mar 2020 13:36:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ikdD0nqYCrA7Reafyfh953km1LtGuJx7c8sEXx2ktLQ=; b=ek/wqqt8m5KfgzKj+7n4JwhzV0bKIuH2bf982iAEEA7MAvc7lINOmca3G3qjB71NAB TsD9vZexhBiKXW6Xr6/4BXPjVA9r5UlslwQi6GBXpvj4QJ+NyV2WtXhzZvQEHc6ZsqgG az4M5anaxrZfxdI+0sUdh84QkOg0i+dKKnOBWDP4ypUE1TTKQpl73WI1K5Kt4gzMD1OU Ka163LsJf4oTg4RcokVgZe6jzh2O8W7T/8JRXnwnspE3nmZtdRRwhWjFBNqUx82kiRRv PPHYuUY+kN8lEx+6xAv6X2P8E/0rdDoE4WUjtvznmUQMCgM+6LznGaRqwyE/fTUS/s6O WN3A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ikdD0nqYCrA7Reafyfh953km1LtGuJx7c8sEXx2ktLQ=; b=IbbATqxKd3/NovJ86qnjsMXJAc/coTCTdUAR8jqb6586W080qFTP5PZZhF1YdjMHEP ymw8wuXv7QUBlC4imodxh6OoQ/qZUaJyVL2WMQmPh5jYnixwLBjxRcOBcbzILRl1wGdj GVGDPjfijjazUx+ZzdocBST8Cj+nUFx42hmcjBtcePnlMwyj9kvVxXywiEYFNZ/CT2fm KG+ENiV3DrvU/eJMzt8A5+1DKnODTbrxNQAqUk/TXNVrtWbZ8ou8XUcXE+oBxo/vnSHx vV2FidtTJIKDgbQsefiD7/DzRdSrC7xLhTaOW7M1ldlLQlZKl/+Zc5XoR/mfjWkpVAKW YF+g==
X-Gm-Message-State: ANhLgQ2ZpBsufxw8WEvuPEkBLrq1NxTqqL79GB8OYAzOZB+h2+6oJ6eX fmW/Lb78r9o+ltNnbofhdN0RDTrVj6M=
X-Google-Smtp-Source: ADFU+vvwUlAR7Ap3XmqLWzJ1hH3iC6SWon7xBKaPXiEtfJ7eKdM/RwOrSg/b0ZGPf1xgUOWRhJn5NQ==
X-Received: by 2002:a63:2d6:: with SMTP id 205mr10733507pgc.257.1585254973746; Thu, 26 Mar 2020 13:36:13 -0700 (PDT)
Received: from ?IPv6:2601:646:9600:af10:cda6:d5d2:bb4a:ed4b? ([2601:646:9600:af10:cda6:d5d2:bb4a:ed4b]) by smtp.gmail.com with ESMTPSA id h71sm2303329pge.32.2020.03.26.13.36.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Mar 2020 13:36:13 -0700 (PDT)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\))
From: Dino Farinacci <farinacci@gmail.com>
In-Reply-To: <B5A62AB5-C734-4128-A0DD-C0E70F4407AD@ac.upc.edu>
Date: Thu, 26 Mar 2020 13:36:12 -0700
Cc: "Marc Portoles Comeras (mportole)" <mportole@cisco.com>, "lisp@ietf.org list" <lisp@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <EF22D1C3-BD28-4B5E-BED0-CF48E2900A22@gmail.com>
References: <95B658E8-B629-4E44-AB99-E9E406D11FF1@cisco.com> <39E32C9F-28FF-44B4-BE28-255199CEC968@gmail.com> <8A1B78BF-7677-4D8B-9D9B-0741BD037F46@cisco.com> <6E6DACF7-0FBB-48E6-B432-3413646EC3D6@gmail.com> <bcf659e8-c380-2d3c-d27b-46b41381c82c@ac.upc.edu> <F550EC7D-65BD-4DF2-B276-F44B40E89BF4@gmail.com> <B5A62AB5-C734-4128-A0DD-C0E70F4407AD@ac.upc.edu>
To: Jordi Paillissé Vilanova <jordip@ac.upc.edu>
X-Mailer: Apple Mail (2.3608.60.0.2.5)
Archived-At: <https://mailarchive.ietf.org/arch/msg/lisp/xXwpn2v3utskjAZMw2gN0nJjLLw>
Subject: Re: [lisp] Wireguard and LISP [Was: Virtual meeting]
X-BeenThere: lisp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: List for the discussion of the Locator/ID Separation Protocol <lisp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/lisp>, <mailto:lisp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/lisp/>
List-Post: <mailto:lisp@ietf.org>
List-Help: <mailto:lisp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/lisp>, <mailto:lisp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 26 Mar 2020 20:37:14 -0000

> I agree with both of your points, my concern was that the moment the data plane traffic hits user space we degrade performance. Not a problem though if we're just prototyping __

There are various forms of UDP tunneling implemented in the kernel. So adding a LISP header is a minor addition. Then you got IIDs in the data-plane.

> I'm trying to think of a solution that does not need to modify WG but I can't come up with any.  For example if we 

I don’t know what you mean. If you want a newer form of VPN support, you have to change the code.

> want to control the src UDP port that WG puts in the packets, we need a way to specify this, and I'm not aware you can do it (from userspace).

If you bind a UDP socket, you can select the source-port. And then you use that socket to send from. So for instance:

   sock = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM)
   iid = port = 13000
   sock.bind((“0.0.0.0", int(port)))

And when you send a packet to RLOC 1.1.1.1:

   rloc = “1.1.1.1"
   sock.sendto(packet, (rloc, 4341))

Dino