From nobody Sun Apr 17 17:55:28 2022 X-Original-To: freebsd-virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id C499CCF9BB8 for ; Sun, 17 Apr 2022 17:55:40 +0000 (UTC) (envelope-from erik@nstr.no) Received: from pv50p00im-ztdg10012001.me.com (pv50p00im-ztdg10012001.me.com [17.58.6.51]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4KhHmC6gdcz4j66 for ; Sun, 17 Apr 2022 17:55:39 +0000 (UTC) (envelope-from erik@nstr.no) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nstr.no; s=sig1; t=1650218133; bh=Gp+zV+BOXyezK85SSmebyaur6WZPxlvTA413SO4i8RU=; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date:To; b=go5T0Dxn/7yGWjo1Xd/s8e5P0cnh3h8kVk4+Ih20nn987UkMrWL6kxv6JfJUNfi3e axGBRszG5+tTkEHeUtFjED23l+bKqm9KmQIatLvVjEo7VJ0wAZ5mn9P+g7fViUThfX t/NnUN7E0JSDVphMi/8AJsgx38F3Th/BPXgCw1qgro8SY+6rAVoQ4mdXVcsYniExkz 7XBT7vHOODjuxhc0P9S35CCipGHo7EYEAJnrco/hUu1Gjkg2WpsER7NYmPhiPGOGQk /C9IerK/Anrblijnt5Ivy2OKdHNT3Hs1U3Y4y6wbvvFLj3j1DVh/UkDExkaQHAPEHz 5+lfVl86rvjIg== Received: from smtpclient.apple (pv50p00im-dlb-asmtp-mailmevip.me.com [17.56.9.10]) by pv50p00im-ztdg10012001.me.com (Postfix) with ESMTPSA id 54A23A0397; Sun, 17 Apr 2022 17:55:30 +0000 (UTC) From: erik@nstr.no Message-Id: <5E1FDCD3-8406-460D-ACC3-C727E7BB9E53@nstr.no> Content-Type: multipart/alternative; boundary="Apple-Mail=_171BE1C9-2914-4867-98C3-237379371987" List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) Subject: =?utf-8?Q?Re=3A_Anyone_have_a_copy_of_the_work_that_Joyent_did_on?= =?utf-8?Q?_FreeBSD_=E2=80=9CVPC=E2=80=9D_software_defined_networking=3F?= Date: Sun, 17 Apr 2022 19:55:28 +0200 In-Reply-To: Cc: freebsd-virtualization@freebsd.org, "Philip M. Gollucci" , Mark Peek To: Mark Peek References: X-Mailer: Apple Mail (2.3696.80.82.1.1) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.486,18.0.858 definitions=2022-04-16_09:2022-04-15,2022-04-16 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1030 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2009150000 definitions=main-2204170125 X-Rspamd-Queue-Id: 4KhHmC6gdcz4j66 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=nstr.no header.s=sig1 header.b=go5T0Dxn; dmarc=none; spf=pass (mx1.freebsd.org: domain of erik@nstr.no designates 17.58.6.51 as permitted sender) smtp.mailfrom=erik@nstr.no X-Spamd-Result: default: False [-0.10 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:17.58.0.0/16]; DKIM_TRACE(0.00)[nstr.no:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RECEIVED_SPAMHAUS_PBL(0.00)[17.56.9.10:received]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:714, ipnet:17.58.0.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[17.58.6.51:from]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[nstr.no:s=sig1]; FREEFALL_USER(0.00)[erik]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[nstr.no]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; SUBJECT_ENDS_QUESTION(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_NO_DN(0.00)[]; MLMMJ_DEST(0.00)[freebsd-virtualization]; RWL_MAILSPIKE_VERYGOOD(0.00)[17.58.6.51:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_171BE1C9-2914-4867-98C3-237379371987 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 That=E2=80=99s the one! Awesome! Thank you very much Mark! Erik > On 17 Apr 2022, at 19:30, Mark Peek wrote: >=20 > Erik, > Sorry about that, teach me to respond from my phone. >=20 > How about this for the FreeBSD related code? > https://github.com/sean-/freebsd >=20 > which has a default branch of projects/VPC? >=20 > Mark >=20 > On Sun, Apr 17, 2022 at 9:10 AM Erik N > wrote: > Thank you Mark but as mentioned that=E2=80=99s not it. >=20 > Erik >=20 >> On 17 Apr 2022, at 16:58, Mark Peek > wrote: >>=20 >> =EF=BB=BF >> Perhaps this? >> https://github.com/joyent/freebsd-vpc = >>=20 >> Mark >>=20 >> On Sun, Apr 17, 2022 at 6:03 AM Philip M. Gollucci = > wrote: >> I may be able to get ahold of Brian Cantrill. He's likely the best = PoC too. >>=20 >> On Sun, Apr 17, 2022 at 2:49 AM Erik N > wrote: >> I was watching this presentation from BSDCan 2018, by Sean = Chittenden, titled =E2=80=9CIntroducing FreeBSD VPC=E2=80=9D. >>=20 >> The video recording of said presentation is at = https://youtu.be/La4ekkKbM5o and slides = are at = https://papers.freebsd.org/2018/chittenden-freebsd_vpc.files/chittenden-fr= eebsd_vpc-slides.pdf = >>=20 >> The presentation details enhancements to FreeBSD, to allow efficient = private networking between bhyve guests as well as jails on overlay = networks, running across separate FreeBSD hosts. This, according to the = presentation, comes in the form of a suite of VXLAN-related network = interfaces. >>=20 >> =46rom two of the slides: >>=20 >> vpc(4) Interfaces >> vpcsw(4) - switches packets - one packet per customer, multiple = subnets supported in the same switch >> vmnic(4) - dedicated guest NIC, looks like a virtio network device to = guests >> vpcp(4) - plugs vmnic(4) ports into vpcsw(4) switches vpci(4) - = Non-bhyve(4) interface, usable in jails(2) >> ethlink(4) - Performs unencapsulated packet forwarding, wraps a = cloned or physical ethernet interface >> vpclink(4) - Performs VXLAN encapsulation >>=20 >> New System Calls >> vpc_open(2) - Creates a new VPC descriptor vpc_ctl(2) - Manipulates = VPC descriptors Capsicum-like, intended for privilege separation = Intended for idempotent tooling >> Makes aggressive use of UUIDs as operator handles to be compatible = with Triton >>=20 >> At the very end of the presentation slides are links to for kernel = code and kernel library code on GitHub: >>=20 >> https://github.com/joyent/freebsd/tree/projects/VPC = >>=20 >> = https://github.com/joyent/freebsd/tree/projects/VPC/libexec/go/src/go.free= bsd.org/sys/vpc = >>=20 >> Unfortunately, the whole repository on GitHub is gone. 404. And I = couldn=E2=80=99t find any forks of it either. >>=20 >> Does anyone have a copy of the VPC branch that Joyent had in that = repository? >>=20 >> All that seems to be left of the project on Joyent's GitHub is a = separate, archived repository https://github.com/joyent/freebsd-vpc = that only has code for a utility = that would interact with the code from the aforementioned now gone = repository. >>=20 >> Erik N. >>=20 >>=20 >> --=20 >> Philip M. Gollucci >> IT Executive and Engineering Leader >> http://www.linkedin.com/in/pgollucci/ = >> 301.818.0719 >>=20 >> TRULY HUMAN NOTICE: Getting this email out of normal working hours? = We work at a digitally-enabled relentless pace, which can disrupt our = ability to sleep enough, eat right, exercise, and spend time with the = people that matter most. I am sending you this email at a time that = works for me. I only expect you to respond to it when convenient to you. >>=20 --Apple-Mail=_171BE1C9-2914-4867-98C3-237379371987 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 That=E2=80=99s the one! Awesome! Thank you very much = Mark!

Erik

On 17 Apr 2022, at 19:30, Mark = Peek <mp@freebsd.org> wrote:

Erik,
Sorry about that, teach me to respond = from my phone.

How about this for the FreeBSD related code?

which has a default = branch of projects/VPC?

Mark

On Sun, Apr 17, 2022 at 9:10 AM Erik N = <erik@nstr.no> = wrote:
Thank = you Mark but as mentioned that=E2=80=99s not it.

Erik

On 17 Apr = 2022, at 16:58, Mark Peek <mp@freebsd.org> wrote:

=EF=BB=BF
On Sun, Apr 17, 2022 at 6:03 AM Philip M. Gollucci = <pgollucci@p6m7g8.com> wrote:
I may be able to get ahold of Brian Cantrill.  = He's likely the best PoC too.

On Sun, Apr = 17, 2022 at 2:49 AM Erik N <erik@nstr.no> wrote:
I was = watching this presentation from BSDCan 2018, by Sean Chittenden, titled = =E2=80=9CIntroducing FreeBSD VPC=E2=80=9D.


The presentation details enhancements = to FreeBSD, to allow efficient private networking between bhyve guests = as well as jails on overlay networks, running across separate FreeBSD = hosts. This, according to the presentation, comes in the form of a suite = of VXLAN-related network interfaces.

=46rom two of the slides:

vpc(4) = Interfaces
vpcsw(4) - switches packets - one packet = per customer, multiple subnets supported in the same switch
vmnic(4) - dedicated guest NIC, looks like a virtio network = device to guests
vpcp(4) - plugs vmnic(4) ports = into vpcsw(4) switches vpci(4) - Non-bhyve(4) interface, usable in = jails(2)
ethlink(4) - Performs unencapsulated = packet forwarding, wraps a cloned or physical ethernet = interface
vpclink(4) - Performs VXLAN = encapsulation

New System Calls
vpc_open(2) - Creates a new VPC descriptor vpc_ctl(2) - = Manipulates VPC descriptors Capsicum-like, intended for privilege = separation Intended for idempotent tooling
Makes = aggressive use of UUIDs as operator handles to be compatible with = Triton

At = the very end of the presentation slides are links to for kernel code and = kernel library code on GitHub:


Unfortunately, the whole repository on = GitHub is gone. 404. And I couldn=E2=80=99t find any forks of it = either.

Does = anyone have a copy of the VPC branch that Joyent had in that = repository?

All = that seems to be left of the project on Joyent's GitHub is a separate, = archived repository https://github.com/joyent/freebsd-vpc that only has = code for a utility that would interact with the code from the = aforementioned now gone repository.

Erik = N.


--
Philip M. = Gollucci
IT Executive and Engineering Leader
301.818.0719

TRULY HUMAN NOTICE:  Getting this email out of = normal working hours? We work at a digitally-enabled relentless pace, = which can disrupt our ability to sleep enough, eat right, exercise, and = spend time with the people that matter most. I am sending you this email = at a time that works for me. I only expect you to respond to it when = convenient to you.


= --Apple-Mail=_171BE1C9-2914-4867-98C3-237379371987--