Projects / ipv1
ipv1
A flat-address UDP protocol. Names like 1 and host-3, resolved by a JSON file.
Why
Dotted quads are a lot of ceremony for a lab where every process is on one machine. I wanted names, a registry, and a packet with an address that is not IPv4. Plate already owns real addresses. This file does not get to hand those out.
Diagrams
A solid outline is the path in the repo. A dashed outline is the alternative that shape is refusing.
A name such as 1 or host-3 is a row in a JSON file. The file maps it to a UDP endpoint. There is no lease and no DHCP.
flowchart TD
name["Name such as host-3"]
file["JSON file"]
udp["UDP endpoint"]
name --> file --> udp
class name,file,udp chosen
Plate’s ippool assigns real IPv4 and skips the network and broadcast addresses. ipv1 does not. Two copies of the JSON file can disagree, and nothing gossips a correction.
flowchart TD
q{What ipv1 is allowed to assign}
q -->|"flat names in one file"| names["Lab names"]
q -->|"leases and public IPv4"| real["ipv1 as an address pool"]
class names chosen
class real rejected
Why this shape
The registry is JSON on disk. A name maps to an endpoint. There is no DHCP, no lease time, and no overlap check against plate’s ippool. The split is the point. ipv1 can be silly. The pool that assigns 203.0.113.10 cannot be.
Where it breaks
Two processes with different copies of the JSON file disagree about who host-3 is. There is no gossip. Edit the file, restart the listener.