Network Working Group C. Sinko Request for Comments: 0001 World Wide RAM Project Category: Experimental December 2026 ORBIT: Planetary Delay-Line Memory and Execution Over Transoceanic UDP Reflectors Status of this Memo This memo defines an Experimental Protocol for the Internet community. It does not specify an Internet standard of any kind. Discussion and suggestions for improvement are requested. Distribution of this memo is unlimited. Abstract This document specifies ORBIT, a source-routed, erasure-coded UDP transport and bytecode execution model that stores all program state in transit across transoceanic fiber-optic links rather than in local random-access memory or non-volatile storage. A stateless local arithmetic-logic unit (ALU) transforms arriving stripes in place and re-emits them around an intercontinental itinerary. If circulation ceases, all stored state is lost. Table of Contents 1. Introduction ................................................. 1 2. Physical Memory Hierarchy .................................... 2 3. Packet Format ................................................ 3 4. Reed-Solomon Erasure Striping ................................ 5 5. Dual-Chamber Heartbeat (Ring 0) .............................. 6 6. Workspace Execution (Rings 1..65535) ......................... 6 7. In-Band Control and Rolling Deployment ....................... 7 8. Security Considerations ...................................... 8 9. References ................................................... 8 1. Introduction Early electronic computers such as EDSAC (1949) stored working memory as acoustic pulses circulating through mercury delay lines. Because the propagation speed of light in glass fiber is finite (~200,000 km/s), a closed intercontinental UDP ring exhibits a non-trivial bandwidth-delay product (BDP): Capacity (bytes) = (Bandwidth_bps / 8) * RTT_seconds Across a four-continent circuit (Iowa -> Frankfurt -> Tokyo -> Sydney -> Iowa, RTT ~320-400 ms), a 20-50 Mbps packet stream holds between 0.7 and 2.0 megabytes of usable state after erasure-coding overhead. ORBIT exploits this physical delay line as primary memory. The local CPU (`orbit-alu`) retains zero persistent state across packet arrivals. On the simulator, terminating it with SIGKILL (`kill -9`) once a second changed no result in 672 runs, and a kill delays a multi-chunk program by about one lap. A stripe can still be lost to packet loss alone (three of its six shards lost in one lap). Not yet deployed. Section 1.1 states the rules that make this hold. 1.1. Kill Safety The ALU may cache values it has seen (shards of a stripe being collected, the register carry between chunks), but every cached value is also recoverable from the ring, and nothing it caches is required for correctness. Five rules, each with a regression test in `orbit-alu`: (a) Exactly-once register chain. Each workspace stripe header carries a sweep counter and a program id (Section 6). A chunk only executes with registers tagged as the output of the step immediately before it. Execution is deterministic, so a replay after a kill is idempotent. (b) All n shards outside the ALU. The ALU peeks at each arriving shard, and if the shard is about to be held (one of the first k of a stripe not yet decoded) it first sends an echo (Flags bit 0, Section 3) round the shortest loop (Home -> next reflector on the shard's route -> Home), then consumes it. Echoes are echoed again by the same rule, at most once per shard per process. At every instant each of the stripe's n shards is therefore on the wire, in the kernel socket queue, or on the short loop, never only inside the process, and a kill leaves the stripe the same m = 2 erasure margin that packet loss alone does. An echo of another epoch's emission may start a stripe at Home (that is how the next ALU recovers what a dead one held); an echo of the process's own emission only joins its existing stripe. Cost: k = 4 extra shards per stripe per lap on the short loop. (c) Twins never mix. Every packet carries the Epoch of the process that emitted it. Shards are collected per (ring, stripe, lap, park, epoch), and a stripe whose twin from another epoch was already decoded at the same lap and park count is dropped. (d) Socket handoff. `orbit-assassin` binds Home's UDP socket once and passes it to each ALU on standard input (`--socket-from-stdin`, the inetd convention), so datagrams that arrive during a restart wait in the kernel queue instead of hitting a closed port. (e) Order repair. A kill can make the next ALU finish a chunk from echoes ~85 ms late, behind later chunks. A chunk whose predecessor step has not run yet is parked: re-emitted unchanged round the short loop at the same lap with the next park count (Flags bits 1..7), so it rejoins right behind the chunk it waits for, and ring order is restored within a lap. A copy older than the chain this process has already seen is a kill's leftover and is dropped. The kill itself costs about one lap (the dead ALU's register carry must come round again in a passing header) plus a short loop. A chunk still waiting at park count 8 (about two laps; a kill never needs more than five) belongs to a program that has lost a stripe: it keeps park count 8 and travels full laps from then on. Packet loss is outside these rules: with 0.4% loss per reflector hop (the Digital Twin default) a shard is lost in a lap with probability 1.2%, and a stripe (three of six shards) with probability 3.3e-5 per lap, about 1 in 30,000. A kill raises that for a stripe Home was holding, in that lap only, to at most 6.0e-5 (the echoes ride one extra hop). 2. Physical Memory Hierarchy The ORBIT compiler (`orbit-lang`) enforces three physical memory tiers at compile time: Tier Nominal RTT Capacity Budget Physical Medium --------- ----------- --------------- ----------------------- @reg in-packet 16 bytes Inline stripe header @regional ~25 ms 48 KB Regional fiber loop @ocean ~350 ms 2,048 KB Transoceanic fiber ring Declarations lacking a tier annotation are rejected by the compiler (error E009), as local RAM is not preserved across process restarts. Allocations exceeding a tier's physical budget fail compilation (errors E042 through E045). 3. Packet Format Every ORBIT datagram consists of a fixed 112-byte big-endian header followed by a payload of 0 to 1,024 bytes (maximum wire length 1,136 bytes, safely below standard 1,280-byte and 1,500-byte MTUs to avoid IP fragmentation): 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Magic ("ORB0", 4 bytes) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Version (1) | PacketKind | MemoryTier | RouteDir | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RingId | PayloadLen | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Lap (high 32) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Lap (low 32) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | StripeId | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ShardIdx | DataShards | ParityShards | HopCount | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | HopIdx | Flags | Epoch | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TotalDwellUs | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LapStartMs (high 32) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LapStartMs (low 32) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | + RouteHop Itinerary (8 x 8 B) + | (bytes 44 through 107) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IEEE CRC-32 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Payload (0..1024 B) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 3.1. PacketKind Values 0 = Heartbeat (Ring 0 permanent archive data shard) 1 = DataShard (Ring >= 1 workspace data shard) 2 = ParityShard (Reed-Solomon parity shard) 3 = ProgramInject (Reserved) 4 = OtaWave (Authenticated Golden Wave OTA packet) 5 = Control (Authenticated SpliceRoute or AbortRing) Flags bit 0 (Echo) marks a short-loop copy of a shard sent by the ALU for kill safety (Section 1.1). Flags bits 1..7 are the Park count of a workspace stripe waiting on the short loop (Section 1.1 (e)); it counts 1..8, and 8 means the stripe has stopped waiting and travels full laps. A packet on the short loop (Echo set or Park 1..7) carries HopCount = 2 but keeps its full itinerary in the RouteHop entries; the ALU restores it from the leading entries with a nonzero port when the stripe rejoins the ring. Epoch is the 16-bit emitter epoch of the ALU process that sent the stripe (0 for stripes injected by the CLI). These bytes were zero padding before this revision; reflectors that predate it rewrite them to zero when they forward, so reflectors are upgraded before the ALU. 3.2. RouteHop Entry (8 bytes) Bytes 0..3 : IPv4 address (network byte order) Bytes 4..5 : UDP port (big-endian u16) Byte 6 : Region identifier (0 = Home, 1..7 = Reflectors) Byte 7 : Reflector OTA version stamped during transit 3.3. Source Routing and Dwell Accounting Each stateless reflector (`orbit-reflector`) validates the CRC-32, adds its measured local processing time in microseconds to TotalDwellUs, stamps its active OTA version into hops[HopIdx], advances HopIdx modulo HopCount, recomputes CRC-32, and transmits immediately. No puzzle data is buffered on reflectors. Photon Duty Cycle is defined per completed lap as: duty_pct = ((RTT_us - TotalDwellUs) / RTT_us) * 100 4. Reed-Solomon Erasure Striping Because no local backup copy exists, an uncoded UDP drop would permanently destroy memory. ORBIT protects each 2,048-byte stripe with systematic (k = 4, m = 2) Reed-Solomon coding over GF(2^8) using primitive polynomial x^8 + x^4 + x^3 + x^2 + 1 (0x11D). Data rows 0..k-1 use the identity matrix; parity rows k..k+m-1 use the Cauchy matrix entry: M[row, col] = inv(row XOR col) in GF(2^8) Every k x k submatrix of a Cauchy matrix over GF(2^8) is invertible. Odd-indexed shards traverse the itinerary in reverse direction (RouteDir = 1, Westbound) while even-indexed shards traverse forward (RouteDir = 0, Eastbound), so Home decodes from whichever 4 shards arrive first. Both directions traverse every link of the same ring: the split tolerates random loss of up to 2 shards per stripe, but not a cut link (all 6 shards) or a one-direction outage (3). Any 4 of the 6 shards reconstruct the full stripe via Gauss-Jordan elimination. 5. Dual-Chamber Heartbeat (Ring 0) Ring 0 carries a 236-byte HeartbeatPayload holding the birth epoch, cumulative lap count, cumulative Reed-Solomon heals, survived SIGKILL count, and all 25 signed 64-bit Advent of Code answers. At ignition, two identical Ring 0 stripes (StripeId 0 and 1) are launched 150 ms apart ("dual-chamber heartbeat"). If a local SIGKILL coincides with the exact arrival millisecond of one chamber, the opposite chamber remains in flight across the ocean and preserves continuity. 6. Workspace Execution and Ocean HTTP Storage (Rings 1..3) Daily programs compile to stack-machine bytecode (`.orbc`, <= 960 bytes) packed alongside the 16-byte `@reg` header and up to 160 signed 64-bit input elements inside each 2,048-byte Ring 1 stripe. For multi-chunk workloads (total_chunks > 1), chunks execute in ascending chunk order per orbital lap, carrying the 16-byte `@reg` state forward from chunk i to chunk i+1 and committing completed stars into Ring 0 without persisting puzzle state locally. The 43-byte workspace stripe header ends with two big-endian 32-bit fields: Sweep at bytes 35..38 (how many times this chunk has executed) and ProgramId at bytes 39..42 (random per injection). Bytecode starts at byte 43. Chunk j at sweep c is step t = c * total_chunks + j. It executes only with registers tagged as the output of step t - 1, either from the ALU's carry or adopted from a passing stripe header (a header of chunk j at sweep c >= 1 holds the output of step (c - 1) * total_chunks + j). Chunk 0 at sweep 0 starts from its own (initial) registers. A chunk whose input step has not run yet is parked (Section 1.1 (e)); a chunk whose step the ALU has already seen passed is dropped as a stale copy. Ring 2 (HTTP ROM) carries gzipped chunks (<= 1,024 B) of the public observatory HTML, this RFC, the manual page, and a 64-bit visitor hit counter. The stateless HTTP gateway holds no copy on disk or in RAM: incoming requests coalesce onto the next passing Ring 2 wave, receive X-WWRAM-* transit headers, and return 503 if Ring 2 stops. Ring 3 carries a 1,040-byte circular guestbook (16 entries x 64 B; sanitized ASCII name <= 12 chars, message <= 32 chars). Writes are authenticated with HMAC-SHA256 before splicing into the next lap. 7. In-Band Control and Rolling Deployment Reflectors require no SSH access after initial provisioning. Two authenticated in-band control mechanisms govern live operations: 7.1. Live Route Splicing (PacketKind = 5) ControlAction = 1 (SpliceRoute) rewrites the itinerary of a target ring mid-flight: - Hibernation: outbound splice at Home removes region 0 so all 6 fresh shards enter a pure cloud orbit. - Wake: inbound splice armed at a cloud reflector re-inserts region 0 on the next passing lap. - Reroute: adds or removes reflectors without halting Ring 0. ControlAction = 2 (AbortRing) drains a workspace ring (Ring >= 1) without disturbing Ring 0. 7.2. Golden Wave OTA (PacketKind = 4) An authenticated OtaWave packet circulates through all reflectors in one lap (~350 ms). Each reflector atomically flips its active version slot, sets bit (1 << RegionId) in AppliedMask, and arms a 2-second watchdog that rolls back automatically unless at least 3 subsequent healthy packets pass. 8. Security Considerations All Control and OtaWave payloads carry an HMAC-SHA256 tag (RFC 2104) over their immutable fields together with a strictly monotonic 64-bit nonce. Datagrams failing constant-time verification or bearing a stale nonce are discarded silently prior to state modification. The public Mission Control server consumes a UDP telemetry mirror and sends Home two kinds of datagram: HIT1 visitor-count deltas (unsigned, capped at 100,000 per datagram, added to the Ring 2 hit counter) and GBKW guestbook writes, which carry an HMAC-SHA256 tag the ALU verifies before splicing them into Ring 3. Neither touches Ring 0 or a workspace ring. 9. References [FIPS180-4] NIST, "Secure Hash Standard (SHS)", FIPS PUB 180-4. [RFC2104] Krawczyk, H., Bellare, M., and R. Canetti, "HMAC: Keyed-Hashing for Message Authentication", RFC 2104, February 1997. [RFC4231] Nystrom, M., "Identifiers and Test Vectors for HMAC-SHA-224, HMAC-SHA-256, HMAC-SHA-384, and HMAC-SHA-512", RFC 4231, December 2005.