Design Peer-to-Peer Model Distribution
Design a topology-independent peer-to-peer system that disseminates one large immutable model while respecting a shared per-node bandwidth limit.
Problem statement
For this exercise, assume one origin initially holds a 200 GB immutable model artifact and a fixed cohort of 10,000 recipient nodes must each obtain and verify the complete artifact. The artifact is divided into content-addressed chunks, and a node may serve a chunk as soon as it has verified it.
At every node, aggregate inbound plus outbound model traffic shares one 10 Gbps limit; do not assume separate full-rate upload and download links or a favorable topology.
First derive defensible lower bounds on completion time, then design the control plane, peer protocol, chunk scheduling, bandwidth enforcement, progress tracking, integrity verification, and recovery needed to approach the tightest bound. Assume one percent of recipients may be transiently unavailable.
Model training, rollout approval, inference routing, model-quality evaluation, Internet NAT traversal, and cross-model deduplication are outside scope.
What to build
- An authorized operator can create one distribution run bound to an immutable manifest and a fixed recipient cohort and inspect its durable state.
- Recipient agents can discover peers, acquire chunk assignments, download and verify chunks, and immediately make verified chunks available to other recipients without exceeding their shared bandwidth budget.
- Operators can observe verified progress, stalled recipients, rare chunks, bandwidth utilization, and an authoritative complete or failed outcome for every recipient and run.
- The system can replace failed transfers, reseed scarce chunks, and let transiently unavailable recipients resume without restarting verified work or corrupting completion state.
At scale
- For this exercise, assume one 200 GB artifact, one initial origin, and 10,000 recipient nodes in a fixed run cohort.
- For this exercise, each node has one shared 10 Gbps aggregate budget across inbound and outbound model traffic, and every transfer consumes capacity at both endpoints.
- For this exercise, target healthy-fleet completion within 1.5 times a defensible topology-independent lower bound while allowing one percent transient node unavailability.
- For this exercise, retain run manifests, terminal recipient outcomes, and integrity evidence for 30 days; loss of a coordinator instance must not lose verified chunk progress or create competing run authority.