Edge Notes

Scratchpad for protocol and edge-computing notes.

Lightweight transport

Proxy protocols over a commodity CDN are mostly an exercise in framing. The interesting part is not the tunnel itself but how much of the handshake you can compress without breaking middlebox heuristics.

Observations

Implementation notes

Header layout: version | uuid[16] | optLen | opt | cmd | port[2] | atyp | addr. Command 1 is a stream, command 3 is datagram with a two-byte length prefix.