Benchmarks
IDEM, measured.
IDEM names a tool call, signs the answer and lets any forwarder on the path serve it. This page starts with IDEM on real NDN forwarders: the native binding against NFD, and the HTTP overlay against native NDN under loss (E4). Below come the experiments that back it: what sharing saves (E2), what the crypto costs (E1) and what an attacker can do (E5). Every number is read from a committed run folder, and each figure names its runs.
- NFD check
- The native binding against real NFD forwarders in Docker. Pass or fail, not a measurement.
- E4
- The HTTP overlay and native NDN on the same emulated links with packet loss (Docker, tc netem). Wall-clock time on one machine.
- E2, E5
- Simulation on a virtual clock, not a measurement of a deployed network.
- E1
- Wall-clock time of the naming and crypto operations, on one machine.
- 8 of 9scenarios pass against real NFD forwarders, latest run1 stopped on an error before any check ran. The run before: 9 of 9.
- 100%of calls answered over native NDN at 5% lossHTTP overlay, same star topology: 100%
- 29.2%fewer calls reach the producer (simulation)B2 against direct MCP, 8 agents, overlap 0.5 · ±1.6 points
- 23 of 24attack variants the protocol must stop, stopped in every trial1 accepted; 3 documented limits measured
IDEM on real NDN
The question the project stands on: does IDEM work when its names and signed Data cross real NDN forwarders, and what does that change against the HTTP overlay when the network drops packets? Two pieces of evidence, E4 first.
- Question
- Does IDEM work on real NDN forwarders, and what does the native binding change compared with the HTTP overlay when the network loses packets?
- What the data says
- At 5% loss on every link, the native star (N2) answered 100.0% of its calls and the overlay star (B2) 100.0%; median latency 262.9 ms against 251.8 ms, 95th percentile 2,051.4 ms against 677.0 ms; bytes over the producer link 406.5 KiB against 481.7 KiB. Against real NFD forwarders the latest conformance run passed 8 of 9 scenarios; S8 stopped on an error before any check ran. The run before it passed 9 of 9.
E4: HTTP overlay against native NDN under loss
The same agents, producer and links (Docker, with tc netem delay and loss on every link) carry IDEM two ways: over HTTP forwarders (B2, B3) and as native NDN Interests and Data through NFD (N2, N3). B0 is plain MCP. The loss on every link, in each direction, is the x axis.
What loss does to each mode
Hover, touch or use the arrow keys to read exact values. Press a legend entry to hide or show a series.
Emulation3 seeds per pointrun e4/20261118T141957Z-de2bcf73
Table of values
| Mode · loss | Answered | p50 | p95 | Producer link | Retransmissions |
|---|---|---|---|---|---|
| B0 · 0% | 100.0% ± 0.0 | 251.6 ms ± 17.8 | 462.7 ms ± 86.2 | 520.1 KiB ± 23.8 KiB | 0.0 ± 0.0 |
| B2 · 0% | 100.0% ± 0.0 | 221.1 ms ± 3.8 | 433.7 ms ± 81.1 | 470.8 KiB ± 10.9 KiB | 0.0 ± 0.0 |
| B3 · 0% | 100.0% ± 0.0 | 225.7 ms ± 20.1 | 443.7 ms ± 82.1 | 471.2 KiB ± 11.6 KiB | 0.0 ± 0.0 |
| N2 · 0% | 100.0% ± 0.0 | 218.3 ms ± 4.9 | 434.2 ms ± 91.6 | 400.4 KiB ± 11.9 KiB | 0.0 ± 0.0 |
| N3 · 0% | 100.0% ± 0.0 | 218.4 ms ± 12.3 | 429.2 ms ± 60.5 | 400.3 KiB ± 12.1 KiB | 0.0 ± 0.0 |
| B0 · 1% | 100.0% ± 0.0 | 253.0 ms ± 21.8 | 512.3 ms ± 49.6 | 521.5 KiB ± 24.3 KiB | 0.0 ± 0.0 |
| B2 · 1% | 100.0% ± 0.0 | 223.4 ms ± 10.1 | 473.7 ms ± 107.0 | 471.4 KiB ± 11.3 KiB | 0.0 ± 0.0 |
| B3 · 1% | 100.0% ± 0.0 | 231.4 ms ± 12.1 | 512.1 ms ± 30.4 | 471.1 KiB ± 13.6 KiB | 0.0 ± 0.0 |
| N2 · 1% | 100.0% ± 0.0 | 221.3 ms ± 11.5 | 723.1 ms ± 640.4 | 400.9 KiB ± 12.4 KiB | 9.7 ± 7.2 |
| N3 · 1% | 100.0% ± 0.0 | 231.6 ms ± 6.5 | 1,025.3 ms ± 28.3 | 400.7 KiB ± 12.6 KiB | 14.3 ± 3.8 |
| B0 · 5% | 100.0% ± 0.0 | 282.0 ms ± 15.9 | 675.3 ms ± 185.8 | 529 KiB ± 28.3 KiB | 0.0 ± 0.0 |
| B2 · 5% | 100.0% ± 0.0 | 251.8 ms ± 12.6 | 677.0 ms ± 83.0 | 481.7 KiB ± 10.8 KiB | 0.0 ± 0.0 |
| B3 · 5% | 100.0% ± 0.0 | 257.3 ms ± 33.1 | 679.0 ms ± 102.0 | 477.1 KiB ± 16.7 KiB | 0.0 ± 0.0 |
| N2 · 5% | 100.0% ± 0.0 | 262.9 ms ± 17.3 | 2,051.4 ms ± 105.8 | 406.5 KiB ± 13.1 KiB | 65.0 ± 10.8 |
| N3 · 5% | 99.2% ± 2.4 | 326.1 ms ± 182.2 | 2,450.7 ms ± 1,294.4 | 405.6 KiB ± 9.1 KiB | 97.0 ± 30.5 |
Latency of every answered call
Hover, touch or use the arrow keys to read exact values. Press a legend entry to hide or show a series.
Emulation3 seeds per pointrun e4/20261118T141957Z-de2bcf73
The native binding against real NFD
@idem/ndn talks to NFD forwarders in Docker over TCP, UDP and WebSocket faces. Each scenario checks rules of the protocol on the wire. It reports pass or fail, not a measurement.
- pass
S1Round trip and manifest bootstrap - pass
S2PIT aggregation - pass
S3Content Store and freshness - pass
S4Equivalent spellings share one name - pass
S5private is never sent on NDN - pass
S6Tampered Data is rejected - pass
S7The packet size limit - fail
S8Two-forwarder chain - pass
S9WebSocket face
NFD 24.07+git.23c53535, NDNts 0.0.20260427, image ghcr.io/named-data/nfd:20261105. The latest run is shown. The run before it (20261118T052108Z-eb7ced2e) passed 9 of 9.
Wall clockrun ndn-nfd/20261118T052519Z-eb7ced2e
The hypotheses
The project stated four falsifiable hypotheses before any experiment ran. The verdicts are computed from the data, with the rule given next to each.
- Question
- Do the four hypotheses the project stated before running anything hold?
- What the data says
- 2 supported, 1 partly supported, 0 refuted and 1 not evaluated, by the rules written next to each.
- H1Supported
On swarm workloads with cross-agent overlap, IDEM reduces the calls reaching the producer compared with direct MCP and with a per-agent local cache.
At 8 agents and overlap 0.5, B2 sent 29.2% (±1.6 points) fewer calls upstream than direct MCP and 22.2% (±1.2) fewer than per-agent caches. At 32 agents: 42.3% and 36.3%.
With a single agent, or with no overlap, there is nothing to share and B2 does exactly what B1 does.
Rule: the 95% interval of the reduction is above zero wherever agents can share (two or more agents, overlap above zero). Against B0: 10 of 10 points. Against B1: 10 of 10.
- H2Supported
p50 and p95 latency per call drop when there is a CS hit or PIT aggregation, and the extra cost on a miss (canonicalize, sign, verify) is small relative to the round trip to the producer.
At 8 agents the per-run median fell by 34.6 ms (±3.8) and the 95th percentile by 29.9 ms (±9.1) against direct MCP, paired by seed.
A miss pays 272 µs of extra CPU, 0.30% of the round trip. With no overlap that cost is all IDEM adds: the median call is 0.30 ms slower than direct MCP.
Rule: the 95% interval of the change is below zero at every point with two or more agents. p50: 5 of 5. p95: 5 of 5. The 99th percentile is not part of the hypothesis and moved less: 3 of 5.
- H3Partly supported
No tampered response is accepted and no private result is served to another context.
Tampered, forged or wrongly signed Data accepted: 0 of 4,000 trials (16 variants).
Private results served to another context: 250 of 1,500 trials (6 variants), all in private/authcontext-known, where the attacker already knows the victim's authContext.
Rule: zero accepted in both groups. Replaying expired Data is outside this hypothesis: it is a documented limit of v1 (ADR-025), measured under Safety.
- H4Not evaluated
Under loss and multi-hop topologies, on-path caching reduces bytes on the producer's link and recovery time, compared with end-to-end TCP/HTTP.
E4 has run and is shown first on this page. This page encodes no rule for H4, so it states no verdict.
Calls that never reach the producer
Upstream reduction is the share of tool calls that did not reach the producer, relative to direct MCP on the same workload and seed. The workload is synthetic (W-syn): every agent makes 20 calls with a think time between them, and a fraction of them, the overlap, is drawn from a catalog the whole swarm shares.
- Question
- How many tool calls does sharing keep from reaching the producer?
- What the data says
- At 8 agents and overlap 0.5, IDEM sent 29.2% (±1.6 points) fewer calls to the producer than direct MCP; per-agent caches, 9.1%.
Upstream reduction as the swarm grows
Hover, touch or use the arrow keys to read exact values. Press a legend entry to hide or show a series.
Simulation30 seeds per pointrun e2-agents/20261117T133348Z-90135038
Table of values
| agents | B1 per-agent cache | B2 IDEM | B3 IDEM, two tiers | perfect shared cache |
|---|---|---|---|---|
| 1 | 8.0% ± 1.8 | 8.0% ± 1.8 | 8.0% ± 1.8 | 8.0% |
| 2 | 9.9% ± 1.7 | 15.5% ± 2.1 | 15.5% ± 2.1 | 15.6% |
| 4 | 9.2% ± 1.2 | 21.9% ± 1.8 | 21.9% ± 1.8 | 22.0% |
| 8 | 9.1% ± 1.1 | 29.2% ± 1.6 | 29.2% ± 1.6 | 29.2% |
| 16 | 9.4% ± 0.8 | 36.7% ± 1.2 | 36.7% ± 1.2 | 36.8% |
| 32 | 9.4% ± 0.4 | 42.3% ± 0.7 | 42.3% ± 0.7 | 42.4% |
IDEM follows the bound: with a 60 s TTL and an 8 MiB store, nothing expires or is evicted during a run. B3 and B4 reach the producer exactly as often as B2. The halftone area is what sharing across agents adds over private caches.
Upstream reduction as agents ask for more of the same
Hover, touch or use the arrow keys to read exact values. Press a legend entry to hide or show a series.
Simulation30 seeds per pointrun e2-overlap/20261117T133428Z-90135038
Table of values
| cross-agent overlap | B1 per-agent cache | B2 IDEM | B3 IDEM, two tiers | perfect shared cache |
|---|---|---|---|---|
| 0.0 | 0.0% ± 0.0 | 0.0% ± 0.0 | 0.0% ± 0.0 | 0.0% |
| 0.2 | 1.6% ± 0.5 | 8.1% ± 1.0 | 8.1% ± 1.0 | 8.1% |
| 0.4 | 5.8% ± 0.8 | 21.6% ± 1.3 | 21.6% ± 1.3 | 21.6% |
| 0.6 | 12.3% ± 1.2 | 36.4% ± 1.6 | 36.4% ± 1.6 | 36.5% |
| 0.8 | 20.5% ± 1.3 | 54.5% ± 1.6 | 54.5% ± 1.6 | 54.5% |
| 1.0 | 29.5% ± 1.0 | 73.1% ± 0.5 | 73.1% ± 0.5 | 73.1% |
Nearly all of the reduction is the Content Store. PIT aggregation, two identical requests in flight at once, happened for at most 0.4% of the Interests in the swarm sweep, and for 1.4% at the shortest think time tested (100 ms). This workload has no burst in which many agents ask for one new thing at the same instant, which is where aggregation would matter.
Bytes on the producer link fall less than calls do, because an Interest and its signed Data are larger than a plain call and its result. With one agent B2 saves 1.4% of the bytes where B1 saves 8.2%; at the base point it saves 23.4% of the bytes for 29.2% of the calls.
Table of values
| agents | vs. B0 | vs. B1 | bytes vs. B0 | CS hit ratio | PIT aggregation |
|---|---|---|---|---|---|
| 1 | 8.0% ± 1.8 | 0.0% ± 0.0 | 1.4% ± 2.5 | 8.0% ± 1.8 | 0.0% ± 0.0 |
| 2 | 15.5% ± 2.1 | 6.2% ± 1.2 | 9.3% ± 2.9 | 15.5% ± 2.1 | 0.0% ± 0.0 |
| 4 | 21.9% ± 1.8 | 14.0% ± 1.4 | 15.9% ± 2.5 | 21.7% ± 1.8 | 0.3% ± 0.2 |
| 8 | 29.2% ± 1.6 | 22.2% ± 1.2 | 23.4% ± 2.3 | 29.2% ± 1.6 | 0.0% ± 0.0 |
| 16 | 36.7% ± 1.2 | 30.1% ± 0.9 | 31.1% ± 2.4 | 36.4% ± 1.2 | 0.3% ± 0.1 |
| 32 | 42.3% ± 0.7 | 36.3% ± 0.7 | 37.3% ± 2.3 | 42.0% ± 0.7 | 0.4% ± 0.1 |
Latency
Latency is what the agent observes per call on the virtual clock: 5 ms to the edge, 40 ms on to the producer, each way, and a log-normal service time with a median of 150 ms. In the IDEM modes the clock is also charged for the CPU work measured in E1.
- Question
- Does a call get faster, and what does the extra work on a miss cost?
- What the data says
- At 8 agents the per-run median latency changed by 34.6 ms (±3.8) against direct MCP, paired by seed; a miss pays 272 µs of extra CPU, 0.30% of the round trip.
Latency of every call
Hover, touch or use the arrow keys to read exact values. Press a legend entry to hide or show a series.
Simulation30 seeds per pointrun e2-agents/20261117T133348Z-90135038
Table of values
| share of calls | B0 direct MCP | B1 per-agent cache | B2 IDEM | B3 IDEM, two tiers |
|---|---|---|---|---|
| 10% | 167.8 ms | 134.7 ms | 10.1 ms | 10.1 ms |
| 25% | 194.4 ms | 181.4 ms | 10.1 ms | 30.2 ms |
| 50% | 236.7 ms | 227.3 ms | 202.6 ms | 202.7 ms |
| 75% | 293.7 ms | 286.0 ms | 266.1 ms | 266.2 ms |
| 90% | 372.9 ms | 366.2 ms | 344.9 ms | 345.0 ms |
| 95% | 433.2 ms | 426.9 ms | 407.7 ms | 407.8 ms |
| 99% | 586.0 ms | 569.4 ms | 561.6 ms | 561.7 ms |
Change of the median against direct MCP
Hover, touch or use the arrow keys to read exact values. Press a legend entry to hide or show a series.
Simulation30 seeds per pointrun e2-agents/20261117T133348Z-90135038
Table of values
| agents | B1 per-agent cache | B2 IDEM | B3 IDEM, two tiers |
|---|---|---|---|
| 1 | −7.2 ms ± 3.4 | −6.9 ms ± 3.4 | −6.8 ms ± 3.4 |
| 2 | −9.8 ms ± 4.4 | −17.6 ms ± 4.7 | −17.5 ms ± 4.7 |
| 4 | −9.2 ms ± 2.8 | −25.2 ms ± 4.5 | −25.1 ms ± 4.5 |
| 8 | −9.1 ms ± 1.6 | −34.6 ms ± 3.8 | −34.5 ms ± 3.8 |
| 16 | −9.6 ms ± 1.5 | −50.0 ms ± 3.7 | −49.8 ms ± 3.6 |
| 32 | −9.1 ms ± 0.8 | −63.8 ms ± 2.7 | −63.7 ms ± 2.7 |
Percentiles at 8 agents
| Mode | p50 | p95 | p99 | Δ p50 | Δ p95 | Δ p99 |
|---|---|---|---|---|---|---|
| B0 direct MCP | 235.7 ms ± 2.1 | 430.1 ms ± 10.4 | 584.8 ms ± 21.5 | – | – | – |
| B1 per-agent cache | 226.6 ms ± 2.4 | 423.1 ms ± 9.8 | 570.5 ms ± 20.2 | −9.1 ms ± 1.6 | −7.0 ms ± 4.9 | −14.3 ms ± 16.3 |
| B2 IDEM | 201.1 ms ± 4.1 | 400.2 ms ± 10.8 | 562.6 ms ± 22.5 | −34.6 ms ± 3.8 | −29.9 ms ± 9.1 | −22.2 ms ± 16.9 |
| B3 IDEM, two tiers | 201.2 ms ± 4.1 | 400.3 ms ± 10.8 | 562.7 ms ± 22.5 | −34.5 ms ± 3.8 | −29.8 ms ± 9.1 | −22.1 ms ± 16.9 |
| B4 IDEM, no verify at forwarders | 201.0 ms ± 4.1 | 400.1 ms ± 10.8 | 562.5 ms ± 22.5 | −34.6 ms ± 3.8 | −30.0 ms ± 9.1 | −22.3 ms ± 16.9 |
p50, p95, p99: per-run percentile, mean ± 95% CI. Δ: change against B0, same seed.
The tail barely moves: the slowest calls are misses, and a miss still pays the full trip and the tool's service time.
What a miss pays for names and signatures
On a miss, IDEM does work plain MCP does not. Priced with E1's medians for 1 KiB of arguments and the median 6 KiB result:
- consumer
canonicalizeArgs + makeName25.6 µs · 9% - edge
args digest16.7 µs · 6% - producer
canonicalizeArgs + makeName + signData74.9 µs · 28% - edge
verifyData77.6 µs · 28% - consumer
verifyData77.6 µs · 28%
272 µs in all: 0.30% of the 90 ms round trip, before the 150 ms median service time. Skipping the forwarder's verification (B4) made the mean call 59.4 µs faster. That is the whole price of [P-7.1], verify before caching. The second tier (B3) made it 1.56 ms slower: one more hop on each hit that the edge misses.
Wall clock10 runs e1-node/20261117T072542Z-b1fe1c14 … 20261117T125716Z-15f0097f
Where it stops helping
Three sweeps move one parameter of the base workload (8 agents, overlap 0.5) at a time.
- Question
- When does sharing stop helping?
- What the data says
- A shared store of 16 KiB or less is clearly beaten by private caches; measured on the producer's clock, up to 0.4 answers per run arrived past their freshness, by 45.0 ms at most.
Freshness (TTL)
Hover, touch or use the arrow keys to read exact values. Press a legend entry to hide or show a series.
Simulation30 seeds per pointrun e2-ttl/20261117T133501Z-90135038
Table of values
| manifest TTL | B1 per-agent cache | B2 IDEM | B3 IDEM, two tiers |
|---|---|---|---|
| 250 ms | 0.1% ± 0.1 | 1.6% ± 0.4 | 1.6% ± 0.4 |
| 1 s | 0.5% ± 0.2 | 4.0% ± 0.5 | 4.0% ± 0.5 |
| 5 s | 2.1% ± 0.5 | 11.5% ± 1.1 | 11.5% ± 1.1 |
| 15 s | 5.3% ± 0.8 | 20.3% ± 1.4 | 20.3% ± 1.4 |
| 1 min | 9.1% ± 1.1 | 29.2% ± 1.6 | 29.2% ± 1.6 |
| 5 min | 9.1% ± 1.1 | 29.2% ± 1.6 | 29.2% ± 1.6 |
Content Store budget
Hover, touch or use the arrow keys to read exact values. Press a legend entry to hide or show a series.
Simulation30 seeds per pointrun e2-cs-size/20261117T133536Z-90135038
Table of values
| byte budget per store (LRU) | B1 per-agent cache | B2 IDEM | B3 IDEM, two tiers |
|---|---|---|---|
| 0 | 9.1% ± 1.1 | 0.8% ± 0.2 | 0.8% ± 0.2 |
| 16 KiB | 9.1% ± 1.1 | 3.1% ± 0.6 | 4.1% ± 0.7 |
| 64 KiB | 9.1% ± 1.1 | 8.3% ± 1.0 | 10.3% ± 1.2 |
| 256 KiB | 9.1% ± 1.1 | 20.4% ± 1.8 | 22.7% ± 1.7 |
| 1 MiB | 9.1% ± 1.1 | 29.2% ± 1.6 | 29.2% ± 1.6 |
| 8 MiB | 9.1% ± 1.1 | 29.2% ± 1.6 | 29.2% ± 1.6 |
Think time
Hover, touch or use the arrow keys to read exact values. Press a legend entry to hide or show a series.
Simulation30 seeds per pointrun e2-think-time/20261117T133604Z-90135038
Table of values
| mean think time between calls | B1 per-agent cache | B2 IDEM | B3 IDEM, two tiers |
|---|---|---|---|
| 100 ms | 9.1% ± 1.1 | 29.2% ± 1.6 | 29.2% ± 1.6 |
| 300 ms | 9.1% ± 1.1 | 29.2% ± 1.6 | 29.2% ± 1.6 |
| 1 s | 9.1% ± 1.1 | 29.2% ± 1.6 | 29.2% ± 1.6 |
| 2 s | 9.1% ± 1.1 | 29.2% ± 1.6 | 29.2% ± 1.6 |
| 5 s | 7.3% ± 0.9 | 24.5% ± 1.5 | 24.5% ± 1.5 |
| 10 s | 4.9% ± 0.8 | 18.9% ± 1.3 | 18.9% ± 1.3 |
Calls that must not be cached
W-mixed sends 10% of the calls to a private tool and a growing share to a tool with side effects, which is never cacheable and passes through.
| side-effecting calls | B1 per-agent cache | B2 IDEM | perfect shared cache | passthrough at the edge (B2, per run) |
|---|---|---|---|---|
| 0% | 12.5% ± 1.2 | 30.8% ± 1.5 | 30.8% | 0.0 |
| 10% | 10.6% ± 0.9 | 26.7% ± 1.3 | 26.7% | 15.9 |
| 20% | 10.6% ± 1.1 | 24.0% ± 1.2 | 24.0% | 30.8 |
| 40% | 7.9% ± 0.9 | 16.2% ± 1.1 | 16.2% | 63.4 |
Across the 480 runs of this sweep: 0 failed calls, 0 stale serves, 0 private results delivered to the wrong agent.
Simulation30 seeds per pointrun e2-mixed/20261117T133631Z-90135038
The cost of the crypto path
One call of each operation in @idem/core, timed with performance.now() after a warm-up, for payloads from 1 KiB to 1 MiB. The payload is the argument text for canonicalizeArgs and makeName, and the result text for signData and verifyData.
- Question
- What does naming, signing and verifying a call cost?
- What the data says
- verifyData takes 70.0 µs at 4 KiB and canonicalizeArgs 9.97 ms at 1 MiB (medians over runs).
Time per call by payload size
Hover, touch or use the arrow keys to read exact values. Press a legend entry to hide or show a series.
Wall clock10 runs e1-node/20261117T072542Z-b1fe1c14 … 20261117T125716Z-15f0097f
Table of values
| Payload | median | runs: fastest to slowest median | p95 | p99 | iterations per run |
|---|---|---|---|---|---|
canonicalizeArgs 1 KiB | 8.9 µs | 8.4 µs – 34.1 µs | 11.8 µs | 43.1 µs | 5,000 |
canonicalizeArgs 4 KiB | 25.5 µs | 22.6 µs – 44.4 µs | 30.3 µs | 61.9 µs | 5,000 |
canonicalizeArgs 16 KiB | 107 µs | 80.8 µs – 348 µs | 142 µs | 167 µs | 4,000 |
canonicalizeArgs 64 KiB | 469 µs | 352 µs – 1.15 ms | 1.11 ms | 1.52 ms | 2,000 |
canonicalizeArgs 256 KiB | 1.90 ms | 1.61 ms – 4.85 ms | 3.12 ms | 4.36 ms | 1,000 |
canonicalizeArgs 1 MiB | 9.97 ms | 6.72 ms – 27.69 ms | 22.82 ms | 37.62 ms | 400 |
makeName 1 KiB | 16.7 µs | 16.2 µs – 36.8 µs | 33.3 µs | 56.7 µs | 5,000 |
makeName 4 KiB | 17.3 µs | 16.2 µs – 38.5 µs | 22.1 µs | 42.3 µs | 5,000 |
makeName 16 KiB | 28.9 µs | 22.1 µs – 51.9 µs | 35.5 µs | 78.0 µs | 4,000 |
makeName 64 KiB | 47.9 µs | 41.5 µs – 126 µs | 57.6 µs | 118 µs | 2,000 |
makeName 256 KiB | 155 µs | 105 µs – 324 µs | 174 µs | 277 µs | 1,000 |
makeName 1 MiB | 688 µs | 363 µs – 1.15 ms | 1.10 ms | 2.45 ms | 400 |
signData 1 KiB | 37.6 µs | 32.4 µs – 112 µs | 49.8 µs | 89.1 µs | 5,000 |
signData 4 KiB | 39.5 µs | 35.1 µs – 143 µs | 48.9 µs | 85.8 µs | 5,000 |
signData 16 KiB | 98.4 µs | 47.9 µs – 148 µs | 178 µs | 305 µs | 4,000 |
signData 64 KiB | 109 µs | 85.6 µs – 235 µs | 120 µs | 179 µs | 2,000 |
signData 256 KiB | 395 µs | 276 µs – 816 µs | 542 µs | 1.16 ms | 1,000 |
signData 1 MiB | 1.23 ms | 507 µs – 2.01 ms | 2.56 ms | 4.06 ms | 400 |
verifyData 1 KiB | 60.6 µs | 54.4 µs – 202 µs | 71.1 µs | 98.2 µs | 5,000 |
verifyData 4 KiB | 70.0 µs | 61.2 µs – 301 µs | 78.6 µs | 106 µs | 5,000 |
verifyData 16 KiB | 115 µs | 74.0 µs – 240 µs | 162 µs | 214 µs | 4,000 |
verifyData 64 KiB | 135 µs | 109 µs – 347 µs | 154 µs | 248 µs | 2,000 |
verifyData 256 KiB | 496 µs | 317 µs – 740 µs | 810 µs | 1.44 ms | 1,000 |
verifyData 1 MiB | 1.18 ms | 529 µs – 1.84 ms | 2.08 ms | 3.60 ms | 400 |
For a result of a few kibibytes the signature dominates: verifyData takes 70.0 µs at 4 KiB. Past that, hashing and JSON canonicalization take over and every operation grows with the payload; canonicalizeArgs is the steepest (9.97 ms at 1 MiB), because it validates, normalizes and re-serializes its input.
5 of the 10 runs were taken while the machine was busy with other work (1-minute load average above its 10 cores, up to 169). They are kept, and they are why the whiskers reach so far up. The browser half of E1 (Playwright, headless Chromium) has not run.
Safety
27 attack variants, 250 trials each, against the real forwarder, producer, trust store and verifier of @idem/core on a virtual clock. Each trial builds a fresh world from its seed and is judged on ground truth: a variant counts as rejected only if no victim accepted forged, foreign or expired content and no cache kept any.
- Question
- Does any attack on a claim of the protocol get through?
- What the data says
- 23 of 24 attack variants the protocol must stop were stopped in every trial; 1 open finding, 3 documented limits measured.
One variant the engine should stop was accepted
The protocol claims to stop this. The engine did not. It is reported as found; nothing was changed in the engine to hide it.
private/authcontext-knownaccepted in 250 of 250 trialsThe core forwarder trusts an authContext that already sits in an Interest arriving on a consumer face, so an attacker who knows the victim's value reads the victim's partition. That value is an HMAC the edge derives and never sends to anyone, and the HTTP gateway drops the field from incoming Interests; the engine itself does not. Open: ADR-023, question Q7.
Documented limits of v1
The protocol does not claim to stop these in v1. The suite runs them all the same, so that a limit is a number and not a footnote.
replay/expired@upstreamaccepted in 250 of 250 trialsStale replay. A party on the producer link records a genuine Data and, after its freshness has run out, substitutes it for the producer's new answer. The signature is valid and nothing compares the signed producedAt with a clock, so the edge verifies it, caches it as fresh and serves it. An honest cache never serves expired Data (replay/expired-cache below), and a party off the path cannot inject any. ADR-025 states the limit and records the rule that would close it.
replay/expired@last-hopaccepted in 250 of 250 trialsThe same replay on the agent's own link passes the consumer's verification: a signature says who produced the Data, not that it is still current (ADR-025).
timing/cache-probeinferred correctly in 250 of 250 trialsTiming. A fast answer reveals that someone asked for that public name before. Open question Q3 lists it as an accepted risk, with no defence in v1.
| Variant | Attacker at | Rejected | How it ended (suite output) |
|---|---|---|---|
| Tamper: Data changed in flight | |||
tamper/content@upstreamRewrites the result text between the producer and the edge. | producer link | 250 / 250 |
|
tamper/content@last-hopRewrites the result text between the edge and the agent. | agent link | 250 / 250 |
|
tamper/freshness@upstreamRaises the signed freshnessMs a thousandfold so caches keep the Data longer. | producer link | 250 / 250 |
|
tamper/signature@upstreamChanges one character of the signature. | producer link | 250 / 250 |
|
tamper/swap-name@upstreamAnswers with a genuine, correctly signed Data of a different document. | producer link | 250 / 250 |
|
tamper/swap-name@last-hopHands the agent a genuine, correctly signed Data of a different document. | agent link | 250 / 250 |
|
tamper/scope@upstreamRelabels a private result as public so the edge would share it. | producer link | 250 / 250 |
|
| Forge: a name that does not match its arguments | |||
forge/args-swap@edgeSends the name of one document with the arguments of another. | consumer | 250 / 250 |
|
forge/random-digest@edgeSends real arguments under a name with a random args digest. | consumer | 250 / 250 |
|
forge/args-swap@producerA forwarder that skips its check passes the mismatched Interest to the producer. | malicious forwarder | 250 / 250 |
|
| Replay: a genuine Data shown again after it expired | |||
replay/expired-cacheAsks again after the cached copy expired; the edge must not serve it. | nobody (honest path) | 250 / 250 |
|
replay/expired@upstreamSubstitutes a recorded, expired Data for the producer's new answer. | producer link | 0 / 250250 accepted (documented limit) |
|
replay/expired@last-hopAnswers the victim's Interest with an expired Data it once fetched. | agent link | 0 / 250250 accepted (documented limit) |
|
replay/unsolicited@consumer-facePushes an old genuine Data into the edge from a consumer face. | consumer | 250 / 250 |
|
| Private: asking across authorization contexts | |||
private/sequentialAsks for the private name right after another user's result was cached. | consumer | 250 / 250 |
|
private/concurrentAsks for the private name while another user's Interest is pending. | consumer | 250 / 250 |
|
private/anonymousAsks for the private name with no credential at all. | consumer | 250 / 250 |
|
private/treeTwo users behind different edges ask at once; the regional forwarder sees no authContext. | consumer | 250 / 250 |
|
private/authcontext-guessFills the Interest's authContext field itself with a random value. | consumer | 250 / 250 |
|
private/authcontext-knownFills the Interest's authContext field itself with the victim's value.Assumes the attacker knows the victim's authContext, a value the edge derives and never sends to anyone. | consumer | 0 / 250250 accepted |
|
| Poison: Data signed by a key outside the manifest | |||
poison/unknown-key@upstreamReplaces the answer with Data validly signed by its own key. | producer link | 250 / 250 |
|
poison/spoofed-key-id@upstreamSigns with its own key but names the producer's key in the locator. | producer link | 250 / 250 |
|
poison/other-producer@upstreamSigns the victim's name with the key of another, trusted producer.Assumes the attacker is itself a producer every node trusts, for its own names. | producer link | 250 / 250 |
|
poison/rogue-manifest@upstreamOffers a newer manifest listing only its own key, then signs with it. | producer link | 250 / 250 |
|
poison/unknown-key@last-hopHands the agent Data validly signed by its own key. | agent link | 250 / 250 |
|
poison/unsolicited@consumer-facePushes its own signed Data into the edge from a consumer face. | consumer | 250 / 250 |
|
| Timing: the side channel of open question Q3 | |||
timing/cache-probeInfers from an answer's latency whether someone asked for the name before.Assumes the attacker can time its own requests. | consumer | 0 / 250250 leaked (accepted risk) |
|
Simulationrun e5-safety/20261117T133645Z-90135038
Method
The plan for all five experiments, the metrics and the reporting rules are in the documentation.
- Question
- How were these numbers produced, and what has not run?
Modes compared
B0direct MCP- Every call goes to the producer, a plain MCP server. The edge only relays.
B1per-agent cache- Each agent keeps its own cache of results, keyed by the canonical name (so it gets IDEM's canonicalization for free). The strongest baseline that changes nothing in the network.
B2IDEM- Agents → one edge forwarder (PIT and Content Store) → producer. Every hop and every agent verifies.
B3IDEM, two tiers- Agents → two edges → one regional forwarder → producer, with the same end-to-end delay as B2.
B4IDEM, no verify at forwarders- B2 with verification before caching switched off at the forwarder, only to isolate what it costs.
Base configuration of the sweeps
Each sweep changes one of these and keeps the rest. They are assumptions about a swarm, not measurements of one: real traces (E3) would replace them.
- agents
- 8
- calls per agent
- 20
- shared catalog
- 50 documents, Zipf α = 0.8
- overlap
- 0.5
- think time
- exponential, mean 2 s
- equivalent spellings of a URL
- 30% of the calls
- links, one way
- agent to edge 5 ms, edge to producer 40 ms
- two tiers (B3)
- 2 edges, edge to regional 10 ms, regional to producer 30 ms
- service time
- log-normal, median 150 ms, σ = 0.5
- result size
- log-normal, median 6 KiB
- TTL
- 1 min
- Content Store
- 8 MiB per forwarder, LRU
- loss
- 0%
- seeds
- 30 per point (1..30), the same at every point
- CPU cost
- charged in the IDEM modes from the medians of 10 E1 runs; the baselines are charged nothing
Not run
- E3, real-agent traces: needs a budgeted LLM swarm. Until it runs, the workload is synthetic and no trace is replayed.
- E4, network emulation: needs Docker and Mini-NDN. Hypothesis H4 waits for it.
- E1 in a browser: the Playwright half of the microbenchmarks.
Reproduce
One command reruns E1, E2 and E5 from a clean checkout and regenerates this page's data. The simulations are deterministic for their seeds; E1 depends on the machine.
pnpm i
experiments/run-all.shRuns behind this page
The checkout is not a git repository yet, so each run records a SHA-256 digest of the package sources (tests excluded) in place of a commit. This page's data was exported at source digest 8b8f1b84.
| Run id | Seeds | Source digest | Load average, start → end | Took |
|---|---|---|---|---|
e4/20261118T141957Z-de2bcf73 | 1..3 | de2bcf73 | 2.6 → 2.2 | 44.6 min |
ndn-nfd/20261118T052108Z-eb7ced2e | 7 | eb7ced2e | 2.5 → 2.7 | 45.2 s |
ndn-nfd/20261118T052519Z-eb7ced2e | 7 | eb7ced2e | 2.6 → 2.9 | 4.7 min |
e1-node/20261117T072542Z-b1fe1c14 | 1 | b1fe1c14 | 1.8 → 1.9 | 13.3 s |
e1-node/20261117T072557Z-b1fe1c14 | 1 | b1fe1c14 | 1.8 → 1.8 | 15.2 min |
e1-node/20261117T074111Z-b1fe1c14 | 1 | b1fe1c14 | 1.8 → 2.3 | 14.0 s |
e1-node/20261117T074126Z-b1fe1c14 | 1 | b1fe1c14 | 2.4 → 2.2 | 15.2 min |
e1-node/20261117T075642Z-b1fe1c14 | 1 | b1fe1c14 | 2.3 → 2.4 | 13.1 s |
e1-node/20261117T125444Z-15f0097f | 1 | 15f0097f | 1.8 → 26.2 | 19.0 s |
e1-node/20261117T125507Z-15f0097f | 1 | 15f0097f | 45.8 → 99.2 | 32.7 s |
e1-node/20261117T125542Z-15f0097f | 1 | 15f0097f | 106.0 → 148.8 | 42.9 s |
e1-node/20261117T125628Z-15f0097f | 1 | 15f0097f | 149.5 → 169.3 | 45.1 s |
e1-node/20261117T125716Z-15f0097f | 1 | 15f0097f | 169.3 → 151.0 | 40.3 s |
e2-agents/20261117T133348Z-90135038 | 1..30 | 90135038 | 2.5 → 2.5 | 40.0 s |
e2-cs-size/20261117T133536Z-90135038 | 1..30 | 90135038 | 2.6 → 2.3 | 27.7 s |
e2-mixed/20261117T133631Z-90135038 | 1..30 | 90135038 | 2.3 → 2.1 | 14.2 s |
e2-overlap/20261117T133428Z-90135038 | 1..30 | 90135038 | 2.5 → 2.6 | 31.8 s |
e2-think-time/20261117T133604Z-90135038 | 1..30 | 90135038 | 2.3 → 2.3 | 25.8 s |
e2-ttl/20261117T133501Z-90135038 | 1..30 | 90135038 | 2.6 → 2.6 | 35.0 s |
e5-safety/20261117T133645Z-90135038 | 1..250 | 90135038 | 2.0 → 2.0 | 4.4 s |
All runs: Node v26.7.0, Apple M5 (10 cores), darwin arm64.