allmende-sim: latency and connection loss, attackers, seeds down, anti-entropy repair, 300 nodes
Findings: default libp2p connection limits strand nodes on a bootstrap node beyond ~190 peers, there is no peer scoring, and newcomers cannot find their region without DHT servers when their remembered peers are elsewhere. Documented in docs/PROTOCOL.md and SPECS.md. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw
This commit is contained in:
@@ -111,6 +111,7 @@ in the middle.
|
||||
| Expiry reminder in the terminal (≤5 days left) | done |
|
||||
| Packaging: Dockerfile, Nix flake and module, `make image` | done |
|
||||
| Kubernetes bootstrap node (`k8s/`, kustomize, Traefik IngressRoute) | written and **deployed by the owner**; running image is older than digest sync, anti-entropy, reports |
|
||||
| Network simulator `cmd/allmende-sim`: 100-300 real nodes, latency, connection loss, attackers, seeds down, repair (results in docs/PROTOCOL.md) | done |
|
||||
| Tests: Go (`-race`), web (`node:test` + jsdom), end-to-end with real binaries (`make e2e`) | all passing |
|
||||
|
||||
The public bootstrap node is `bootstrap.allmende.stinnesbeck.com` (TCP and UDP
|
||||
@@ -140,7 +141,18 @@ starting a design-heavy item; see "Working with the owner".
|
||||
access exists. Listings already have an `images` field of hashes.
|
||||
- **Recovering listings onto an empty database** (after losing the data
|
||||
directory but not the phrase).
|
||||
- **Peer scoring and rate limits** beyond what the validators do now.
|
||||
- **Connection limits for `--public` nodes.** Found by `allmende-sim`: libp2p's
|
||||
default inbound cap scales with RAM (~190 on 16 GB), so a bootstrap node
|
||||
strands newcomers beyond that. Set explicit limits for public nodes (and
|
||||
check the k8s memory limit).
|
||||
- **Peer scoring and rate limits** beyond what the validators do now. The
|
||||
simulator's attacker stays connected after 500 bad messages.
|
||||
- **Joining without the seeds.** A newcomer whose remembered peers are all in
|
||||
another region cannot find its region when no DHT server is up (sim: 0 of
|
||||
114 listings). Remember region peers separately, or ask connected peers.
|
||||
- **Faster repair.** Anti-entropy at 30 min takes hours to spread one missed
|
||||
listing (median ~2 h by the sim); consider a shorter interval or syncing
|
||||
with several peers per round.
|
||||
- **Message-sender abuse** (reports cover listings only).
|
||||
|
||||
**Decisions and non-code work (the owner's)**
|
||||
|
||||
Reference in New Issue
Block a user