arXiv Open Access 2019

The Case for Writing Network Drivers in High-Level Programming Languages

Paul Emmerich Simon Ellmann Fabian Bonk Alex Egger Esaú García Sánchez-Torija +6 lainnya
Lihat Sumber

Abstrak

Drivers are written in C or restricted subsets of C++ on all production-grade server, desktop, and mobile operating systems. They account for 66% of the code in Linux, but 39 out of 40 security bugs related to memory safety found in Linux in 2017 are located in drivers. These bugs could have been prevented by using high-level languages for drivers. We present user space drivers for the Intel ixgbe 10 Gbit/s network cards implemented in Rust, Go, C#, Java, OCaml, Haskell, Swift, JavaScript, and Python written from scratch in idiomatic style for the respective languages. We quantify costs and benefits of using these languages: High-level languages are safer (fewer bugs, more safety checks), but run-time safety checks reduce throughput and garbage collection leads to latency spikes. Out-of-order CPUs mitigate the cost of safety checks: Our Rust driver executes 63% more instructions per packet but is only 4% slower than a reference C implementation. Go's garbage collector keeps latencies below 100 $μ$s even under heavy load. Other languages fare worse, but their unique properties make for an interesting case study. All implementations are available as free and open source at https://github.com/ixy-languages/ixy-languages.

Topik & Kata Kunci

Penulis (11)

P

Paul Emmerich

S

Simon Ellmann

F

Fabian Bonk

A

Alex Egger

E

Esaú García Sánchez-Torija

T

Thomas Günzel

S

Sebastian Di Luzio

A

Alexandru Obada

M

Maximilian Stadlmeier

S

Sebastian Voit

G

Georg Carle

Format Sitasi

Emmerich, P., Ellmann, S., Bonk, F., Egger, A., Sánchez-Torija, E.G., Günzel, T. et al. (2019). The Case for Writing Network Drivers in High-Level Programming Languages. https://arxiv.org/abs/1909.06344

Akses Cepat

Lihat di Sumber
Informasi Jurnal
Tahun Terbit
2019
Bahasa
en
Sumber Database
arXiv
Akses
Open Access ✓