UDE

UDE documentation
Login

UDE documentation

UDE (UDP Distributed Ethernet) is a portable virtual Ethernet switch that carries frames over localhost UDP, together with a client library, optional IPv4, UDP, TCP and DHCP libraries, and a small set of tools. It plays the role of VDE for emulators and test networks, runs on POSIX systems and on Windows back to Windows 95 and NT 4.0, and has no dependencies.

86Box guest NIC udedhcpd 10.0.0.1/24 udeping udeswitch 127.0.0.1:7500 udelink cable vde_switch /tmp/sw QEMU vde:/// vde_plug or TAP udedump monitor
scale = 0.85
linewid = 0.6
boxht = 0.55
boxwid = 1.15
down
Box86: box "86Box" "guest NIC" fit
move 0.35
Dhcp: box "udedhcpd" "10.0.0.1/24" fit
move 0.35
Ping: box "udeping" fit
SW: box "udeswitch" "127.0.0.1:7500" wid 1.6 ht 0.8 at Dhcp + (2.3, 0)
Link: box "udelink" "cable" fit at SW + (2.0, 0)
VDE: box "vde_switch" "/tmp/sw" wid 1.5 ht 0.7 at Link + (2.0, 0)
Qemu: box "QEMU" "vde:///" fit at VDE + (1.9, 0.7)
Tap:  box "vde_plug" "or TAP" fit at VDE + (1.9, -0.7)
line from Box86.e to SW.nw
line from Dhcp.e to SW.w
line from Ping.e to SW.sw
arrow from SW.e to Link.w
arrow from Link.e to VDE.w
line from VDE.e to Qemu.w
line from VDE.e to Tap.w
Mon: box "udedump" "monitor" fit at SW + (0, -1.25)
arrow <-> from SW.s to Mon.n

I want to…

I want to… Read
understand what UDE is Introduction
run a switch udeswitch
give my virtual machines addresses udedhcpd
boot a machine from the network Network booting
give my virtual machines the Internet Internet access for guests
join two switches, or UDE and VDE Linking switches
make a link slow or lossy Link impairment
see the traffic Capture and monitor ports
connect QEMU, 86Box or a TAP interface How-to recipes
write a client The libraries
compare UDE with VDE UDE and VDE
build and install it Building, Windows
know who can reach my switch Security
read the wire protocol Protocol

Programs

Program What it does Manual
udeswitch the switch udeswitch(8)
udectl capture control, port and MAC lists, kick, flush udectl(1)
udedump a monitor port: text summary or pcapng udedump(1)
udelink a cable between two switches, optionally impaired udelink(1), ude-impair(7)
udeping ICMP echo, or a layer-2 ping udeping(1)
udenc netcat, TCP and UDP udenc(1)
udedhcpd a DHCP server udedhcpd(8), udedhcpd-leases(5)
udetftpd a read-only TFTP server, for network booting udetftpd(8)
udeslirp a NAT gateway to the host's network, like QEMU's user networking udeslirp(8)
uderouter an IPv4 router between switches uderouter(8)
udetap a bridge to a Linux TAP interface udetap(1)

Libraries

Library What it does Manual
libude a switch connection and Ethernet frames libude(3)
libude-ipv4 an IPv4 host: ARP, IPv4, ICMP libude-ipv4(3)
libude-udp UDP sockets libude-udp(3)
libude-tcp TCP connections libude-tcp(3)
libude-dhcp DHCP client and server libude-dhcp(3)

The overview manual is ude(7), and the wire protocol is ude-protocol(7).

All pages

Version

These pages describe the check-in they are part of. Every program prints its version, check-in date and hash with -V; the manual pages carry the same date and version once installed. The history is in the repository timeline (fossil timeline, or /timeline on its web server).

To read these pages offline, run make html or make pdf; see Building.