Layer 1 gave every node an unforgeable cryptographic identity. Layer 2 solves the next hard question: how do two strangers find each other, punch through firewalls and home routers, survive internet outages, let ordinary browser tabs join safely, and speak across Nostr, ATProto, and the Fediverse?
2.0 · Layer 2 Big Picture
Real-world networks are messy. Two nodes in the same office can speak direct LAN packets; two home servers behind carrier-grade NAT need UDP hole-punching; a traveler on airport Wi-Fi may only have outbound HTTPS port 443; and a smartphone browser tab cannot open raw UDP sockets at all.
Instead of betting on a single fragile socket, FleetMesh decouples who you are (did:nostr)
from which wire carries your packets. Nodes negotiate the highest shared rung on an 8-rung priority
ladder—from FIPS Noise XK (rank 5) and the iroh rung (rank 10) down through
WSS (rank 40) and Nostr gift-wrap relays (rank 100)—while bilateral grants,
signatures, and 1 KB Bao proofs stay completely unbroken across every fallback.
The Concept
How do you find a peer without a central directory? Nostr (Notes and Other Stuff Transmitted
by Relays) treats relays as simple, interchangeable bulletin boards. Every event is signed by its author’s
secp256k1 key, so a relay can never forge or alter a record—and if one relay bans you or goes
offline, you simply publish the same signed card to any other relay.
FleetMesh Implementation
kind 11801): Every node publishes its X25519 agreement key, supported transport ranks, and canonical schema/DIGEST.kind 10050 inbox relays.The Concept
Traditional VPNs route traffic through a central concentrator and assign arbitrary IPs from a database.
FIPS derives each node’s self-certifying fd00::/8 IPv6 mesh address
mathematically from its secp256k1 public key and wraps every hop in Noise IK/XK encryption—so
packets route across multiple hops directly by cryptographic identity with zero DNS or VPN hub.
FleetMesh Implementation
fleetmesh-fips in their descriptor.fips-native Mode: The Rust fleetmesh-fips sidecar passes 16-bit FSP service sockets over Unix SCM_RIGHTS file descriptors with zero root privileges.fips0): Supports standard IPv6 overlay routing when operators want OS-level mesh sockets. See fips-peering.html.The Concept
Home Wi-Fi routers and mobile carriers use NAT (Network Address Translation) that drops
unsolicited inbound connections. The iroh rung addresses peers by their Ed25519
NodeId so nodes can exchange framed streams directly, and pairs with an optional external
iroh sidecar when relay-assisted UDP hole-punching across NAT is needed.
FleetMesh Implementation
fleetmesh_node/transport/iroh_rung.iroh_rung wire itself is neither encrypted nor authenticated—there is no TLS 1.3 handshake or QUIC packet protection. Confidentiality and authenticity come from the inner DIDComm v2 JWE envelope.meshnode.The Concept
If 10,000 nodes each connected to every other node, the network would collapse under connection overhead.
GossipSub v1.1 solves broadcast scale by giving each node a small active topic mesh
(D ≈ 6 eager neighbors) plus lightweight IHAVE/IWANT metadata gossip to
wider peers—reaching the entire network in logarithmic hops while scoring and pruning spammers locally.
FleetMesh Implementation
fleetmesh_p2p to scale pub/sub fanout without full-mesh socket explosion.kind 30804 topic announcements and gossip/1.0 envelopes directly onto GossipSub v1.1.The Concept
In centralized cloud apps, cutting the neighborhood fiber cable stops two laptops sitting on the same table from talking. Multicast DNS (mDNS, RFC 6762) lets devices on the same Wi-Fi router or Ethernet switch announce themselves locally with zero DNS server or internet uplink.
FleetMesh Implementation
LanConfig.enabled = False in config/compartments.py); when explicitly enabled by the operator, nodes listen for local mDNS beacons so LAN clusters stay operational during internet outages.did:nostr signature verification, DIDComm encryption, and bilateral grant metering.The Concept
Asking newcomers to install a daemon or forward router ports kills adoption. Yet browser tabs cannot bind raw UDP sockets, and WebRTC ICE leaks home IP addresses. A mediated Leaf keeps all signing keys, encryption, and verification inside the browser tab while using lightweight relay mediators strictly as blind ciphertext postboxes.
FleetMesh Implementation
@fleetmesh/leaf rides one TLS 1.3 WebSocket per mediator across at least two independent Anchors via coordinate-mediation/2.0.The Concept
AT Protocol (powering Bluesky) gives every user a portable signed repository stored as a
Merkle Search Tree (MST), addressed by did:plc or did:web, with
structured Lexicon schemas and timestamped IDs (TIDs) streamed over a public firehose.
FleetMesh Implementation
com.atproto.{repo,server,sync} endpoints to ingest and serve ATProto commits.@fleetmesh/protocols into Layer 3 Textile Strands and Bao Fibers.The Concept
Decentralized communities shouldn’t be trapped in incompatible silos. Federated servers speak ActivityPub (Mastodon, PeerTube, Pixelfed); offline-first P2P communities use p2panda CBOR operation logs and Secure Scuttlebutt (SSB) gossip feeds; and high-throughput clusters pair Rhio with NATS JetStream.
FleetMesh Implementation