返回排行榜

snabbco/snabb

Lua

Snabb: Simple and fast packet networking

networkingluajituserspace-driveruserspace-networkingnfv-framework
Star 增长趋势
Star
3k
Forks
298
周增长
Issues
180
1k2k3k
2012年9月2017年4月2021年12月2026年7月
README

Snabb

Snabb

Snabb (formerly "Snabb Switch") is a simple and fast packet networking toolkit.

We are also a grassroots community of programmers and network engineers who help each other to build and deploy new network elements. We care about practical applications and finding simpler ways to do things.

The Snabb community are active in applying modern programming techniques, do-it-yourself operator networking, high-level device drivers, fast userspace virtio networking, universal SIMD protocol offloads, and applying compiler technology to networking.

You are welcome to join our community! Scroll down to the bottom for tips on how you can get involved.

Documentation

How does it work?

Snabb is written using these main techniques:

  • Lua, a high-level programming language that is easy to learn.
  • LuaJIT, a just-in-time compiler that is competitive with C.
  • Ethernet I/O with no kernel overhead ("kernel bypass" mode).

Snabb compiles into a stand-alone executable called snabb. This single binary includes multiple applications and runs on any modern Linux/x86-64 distribution. (You could think of it as a busybox for networking.)

How is it being used?

The first generation of Snabb applications include:

snabbnfv

Snabb NFV makes QEMU/KVM networking performance practical for applications that require high packet rates, such as ISP core routers. This is intended for people who want to process up to 100 Gbps or 50 Mpps of Virtio-net network traffic per server. We originally developed Snabb NFV to support Deutsche Telekom's TeraStream network.

You can deploy Snabb NFV stand-alone with QEMU or you can integrate it with a cloud computing platform such as OpenStack.

lwAFTR

Snabb lwAFTR is the internet-facing component of "lightweight 4-over-6" (lw4o6), an IPv6 transition technology. An ISP can use lwAFTR functions to provide its users with access to the IPv4 internet while maintaining a simple IPv6-only internal network. An ISP deploying Snabb lwAFTR can also configure lw4o6 to share IPv4 addresses between multiple different customers, ameliorating the IPv4 address space exhaustion problem and lowering costs. See the lwAFTR documentation for more details.

VPWS

VPWS (Virtual Private Wire Service) is a Layer-2 VPN application being developed by Alexander Gall at SWITCH. His Github vpn branch is the master line of development.

packetblaster

packetblaster generates load by replaying a pcap format trace file or synthesizing customizable packets onto any number of Intel 82599 10-Gigabit network interfaces. This is very efficient: only a small % of one core per CPU is required even for hundreds of Gbps of traffic. Because so little CPU resources are required you can run packetblaster on a small server or even directly on a Device Under Test.

snsh

snsh (Snabb Shell) is a tool for interactively experimenting with Snabb. It provides direct access to all APIs using a Lua shell. You can operate snsh either from script files or from an interactive shell.

How do I get started?

Setting up a Snabb development environment takes around one minute:

$ git clone https://github.com/SnabbCo/snabb
$ cd snabb
$ make -j
$ sudo src/snabb --help

The snabb binary is stand-alone, includes all of the applications, and can be copied between machines.

For example, to install on the local machine and use as a load generator:

$ cp src/snabb /usr/local/bin/
$ sudo snabb packetblaster replay capture.pcap 01:00.0

snabb container

Basic support for building and running snabb in a Docker container is available via

$ make docker

This will build a tiny snabb container (8MB), ready to be used:

$ docker run -ti --rm snabb --help

Or simply run snabb, as you would under linux. This is made possible by using a wrapper shell script that gets linked to as part of 'make docker':

$ src/snabb --help

How do I get involved?

Here are the ways you can get involved:

  • Use the Snabb applications in your network.
  • Create your very own application: Getting Started.
  • Create Github Issues with your ideas and questions and problems.
  • Join the Snabb Slack chat to hang out and shoot the breeze.
相关仓库
ruvnet/RuView

π RuView turns commodity WiFi signals into real-time spatial intelligence, vital sign monitoring, and presence detection — all without a single pixel of video.

Rustcrates.ioMIT Licensedenseposewifi
cognitum.one/RuView
82.8k11.1k
Alamofire/Alamofire

Elegant HTTP Networking in Swift

SwiftMIT Licensenetworkingurlsession
42.4k7.7k
GyulyVGC/sniffnet

Comfortably monitor your Internet traffic 🕵️‍♂️

Rustcrates.ioApache License 2.0network-analysisnetworking
sniffnet.app
40.1k1.8k
tokio-rs/tokio

A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...

Rustcrates.ioMIT Licenserustasynchronous
tokio.rs
32.6k3.2k
MichaelCade/90DaysOfDevOps

This repository started out as a learning in public project for myself and has now become a structured learning map for many in the community. We have 3 years under our belt covering all things DevOps, including Principles, Processes, Tooling and Use Cases surrounding this vast topic.

ShellOtherdevopskubernetes
90daysofdevops.com
29.6k6.8k
libuv/libuv

Cross-platform asynchronous I/O

CMIT Licenseasynchronousio
libuv.org
27k3.9k
cilium/cilium

eBPF-based Networking, Security, and Observability

GoGo ModulesApache License 2.0containersbpf
cilium.io
24.8k3.9k
bee-san/RustScan

🤖 The Modern Port Scanner 🤖

Rustcrates.ioGNU General Public License v3.0securitypentesting
20.1k1.4k
zerotier/ZeroTierOne

A Smart Ethernet Switch for Earth

C++Otherdecentralizationnetworking
zerotier.com
16.9k2k
RustScan/RustScan

🤖 The Modern Port Scanner 🤖

Rustcrates.ioGNU General Public License v3.0securitypentesting
15.8k1.1k
Moya/Moya

Network abstraction layer written in Swift.

SwiftMIT Licenseswiftreactiveswift
moya.github.io
15.4k2k
xpipe-io/xpipe

Access your entire server infrastructure from your local desktop

JavaMavenApache License 2.0javajavafx
xpipe.io
14.4k551