Purpose: explain why a port is a UDP endpoint and what that means for a client.
Template. This page is an outline. Each TODO heading lists what the section should cover; replace the notes with prose.
TODO: One datagram, one frame
- A DATA message is a raw Ethernet frame, no header, no FCS.
- The source address:port is the port; a client must send and receive on one socket.
TODO: Why this is easy for emulators
- QEMU's
-netdev dgramand-netdev socket,udp=already speak it. - An 86Box backend can be small, or just link libude.
TODO: Addresses
- The switch binds 127.0.0.1:7500 by default; clients use ephemeral local ports; what binding 0.0.0.0 means (see Security).
A: box "client A" "UDP :40001" fit B: box "client B" "UDP :40002" fit at A + (0, -1.2) S: box "udeswitch" "127.0.0.1:7500" fit at A + (3, -0.6) arrow from A.e to S.w + (0, 0.1) F: oval "frame" fit at 1/2 of the way between A.e and S.w arrow from S.w + (0, -0.1) to B.e text "TODO: frames in and out of one socket each" at S + (0, -1.1)→ /pikchrshow