Layer 9. Fabric
Layer 9. Fabric. Layer page.
shc0 is the container network. It is a kernel WireGuard device on Linux and the daemon’s userspace WireGuard device on a utun on a Mac. It dials peers on the underlay, not through mesh0.
On this pin
Section titled “On this pin”ce modules/fabric/types.go names the device shc0. The listen port
is UDP 4243 (ce core/nodeports/ports.go). A node takes /26 chunks of
the fabric; its first chunk’s .1 is shc0’s address, and every container
is a routed /32 from its node’s chunks (ce core/addrblock/addrblock.go
ChunkPrefix, modules/fabric/chunk.go, pin_space.go).
ce modules/mesh/mesh.go states the split: mesh0 carries the node
plane, shc0 carries containers, and neither is carried inside the
other.
The deploy applies the fabric target after the stored render is
encoded (ce modules/app/install_runner.go). Finishing a stored
render for another node applies that node’s fabric pins
(ce modules/app/stored_render.go).