Netdev 0x17 venue
Vancouver, Canada
Previous editions
Fosstodon
NETDEV VIDEOS
Session
Scripting the Linux Routing Table with Lua
Speakers
Lourival Vieira Neto
Marcel Moura
Ana Lúcia de Moura
Roberto Ierusalimschy
Label
Moonshot
Session Type
Talk
Contents
Description
Lunatik is a framework for scripting the Linux kernel with Lua [1], based on the design concept of Scriptable Operating Systems [2]. This framework was previously used for scripting Netfilter and XDP subsystems [3], allowing users to create complex network filters using Lua. For instance, it has been used for filtering L7 traffic such as HTTP and HTTPS.
In this talk we present the evolution of this framework and its usage on implementing a kernel-level adaptive routing service. This service allows the system to monitor the reliability of a network route and adjust its routing table dynamically in case of failure. For instance, a home router might use such service to fall back to the cellular network using a mobile phone as a gateway. For implementing this adaptive routing service, we relied on Lunatik libraries for binding kernel subsystems, such as netdevice notification chain, kthread, socket, RCU and FIB. This service also implements a protocol that allows nodes to advertise themselves as alternative gateways and the router to notify a node that it has been elected as the new gateway (or that the network has been reestablished and using that node as gateway is not necessary anymore).
[1] https://github.com/luainkernel/lunatik [2] http://netbsd.org/~lneto/dls14.pdf [3] https://netdevconf.info/0x14/session.html?talk-linux-network-scripting-with-lua
Recent News
Group Booking Discount at Paradox Hotel
[Mon, 16, Oct. 2023]
Bronze Sponsor, Relianoid
[Fri, 06, Oct. 2023]
Registration is now Open
[Mon, 18, Sep. 2023]
Bronze Sponsor, NVIDIA
[Fri, 15, Sep. 2023]
Silver Sponsor, Intel®
[Tue, 12, Sep. 2023]
Important Dates
Closing of CFS | Aug 27th, 2023 |
Notification by | Sep 15th, 2023 |
Conference dates | Oct 30th - Nov 3rd, 2023 |