nanog mailing list archives
Re: Linux BNG
From: Stefan Bethke <stb () lassitu de>
Date: Sun, 15 Jul 2018 11:03:53 +0200
Am 14.07.2018 um 14:13 schrieb Baldur Norddahl <baldur.norddahl () gmail com>:
I am considering writing a small program or kernel module. This would create two TAP devices (tap0 and tap1). Traffic received on tap0 with VLAN tagging, will be stripped of VLAN tagging and delivered on tap1. Traffic received on tap1 without VLAN tagging, will be tagged according to a lookup table using the destination IP address and then delivered on tap0. ARP and DHCP would need some special handling.
As a proof of concept, a userland implementation using tap is likely the easiest to implement. But it won’t give you the throughput you’re looking for. I’d look at https://www.dpdk.org if you want to stay in userland. If FreeBSD ist an option, netgraph(4) is designed to allow packet filtering, manipulation and distribution in a set of small processing modules. In either case, Ethernet frames would be processed outside the regular network stack, but could be handed over to the kernel for further processing, i.e. DHCP or SLAAC. Stefan -- Stefan Bethke <stb () lassitu de> Fon +49 151 14070811
Current thread:
- Re: Linux BNG, (continued)
- Re: Linux BNG Denys Fedoryshchenko (Jul 15)
- Re: Linux BNG Baldur Norddahl (Jul 15)
- Re: Linux BNG Raymond Burkholder (Jul 15)
- RE: Linux BNG tony (Jul 14)
- Re: Linux BNG Mark Tinka (Jul 16)
- Re: Linux BNG Denys Fedoryshchenko (Jul 14)
- Re: Linux BNG Jérôme Nicolle (Jul 14)
- Re: Linux BNG Denys Fedoryshchenko (Jul 15)
- Re: Linux BNG James Bensley (Jul 15)
- Re: Linux BNG Ahad Aboss (Jul 15)
- Re: Linux BNG Stefan Bethke (Jul 16)