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.

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

Calls answered as loss growsLine chart of the share of calls answered against the loss on every link, one line per mode.97%98%99%100%0%1%5%loss on every linkcalls answeredB0 · B2 · B3 · N2N3

Hover, touch or use the arrow keys to read exact values. Press a legend entry to hide or show a series.

8 agents × 20 calls, W-syn at the E2 base point, 3 seeds per point. Whiskers: 95% confidence interval. Pages are capped to fit one NDN packet, so every mode serves the same pages.

Emulation3 seeds per pointrun e4/20261118T141957Z-de2bcf73

Table of values
What loss does to each mode. Mean over seeds ± half-width of the 95% confidence interval.
Mode · lossAnsweredp50p95Producer linkRetransmissions
B0 · 0%100.0% ± 0.0251.6 ms ± 17.8462.7 ms ± 86.2520.1 KiB ± 23.8 KiB0.0 ± 0.0
B2 · 0%100.0% ± 0.0221.1 ms ± 3.8433.7 ms ± 81.1470.8 KiB ± 10.9 KiB0.0 ± 0.0
B3 · 0%100.0% ± 0.0225.7 ms ± 20.1443.7 ms ± 82.1471.2 KiB ± 11.6 KiB0.0 ± 0.0
N2 · 0%100.0% ± 0.0218.3 ms ± 4.9434.2 ms ± 91.6400.4 KiB ± 11.9 KiB0.0 ± 0.0
N3 · 0%100.0% ± 0.0218.4 ms ± 12.3429.2 ms ± 60.5400.3 KiB ± 12.1 KiB0.0 ± 0.0
B0 · 1%100.0% ± 0.0253.0 ms ± 21.8512.3 ms ± 49.6521.5 KiB ± 24.3 KiB0.0 ± 0.0
B2 · 1%100.0% ± 0.0223.4 ms ± 10.1473.7 ms ± 107.0471.4 KiB ± 11.3 KiB0.0 ± 0.0
B3 · 1%100.0% ± 0.0231.4 ms ± 12.1512.1 ms ± 30.4471.1 KiB ± 13.6 KiB0.0 ± 0.0
N2 · 1%100.0% ± 0.0221.3 ms ± 11.5723.1 ms ± 640.4400.9 KiB ± 12.4 KiB9.7 ± 7.2
N3 · 1%100.0% ± 0.0231.6 ms ± 6.51,025.3 ms ± 28.3400.7 KiB ± 12.6 KiB14.3 ± 3.8
B0 · 5%100.0% ± 0.0282.0 ms ± 15.9675.3 ms ± 185.8529 KiB ± 28.3 KiB0.0 ± 0.0
B2 · 5%100.0% ± 0.0251.8 ms ± 12.6677.0 ms ± 83.0481.7 KiB ± 10.8 KiB0.0 ± 0.0
B3 · 5%100.0% ± 0.0257.3 ms ± 33.1679.0 ms ± 102.0477.1 KiB ± 16.7 KiB0.0 ± 0.0
N2 · 5%100.0% ± 0.0262.9 ms ± 17.32,051.4 ms ± 105.8406.5 KiB ± 13.1 KiB65.0 ± 10.8
N3 · 5%99.2% ± 2.4326.1 ms ± 182.22,450.7 ms ± 1,294.4405.6 KiB ± 9.1 KiB97.0 ± 30.5

Latency of every answered call

Latency of every answered callCumulative distribution of the latency of answered calls up to the 99th percentile, one curve per mode, for the chosen loss level.0%25%50%75%100%0100200300400500latency (ms)share of callsB0B2 · N2 · N3B3

Hover, touch or use the arrow keys to read exact values. Press a legend entry to hide or show a series.

Answered calls pooled over seeds, up to the 99th percentile. Calls that failed are not in it; the share answered is in the chart above.

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.

  1. passS1 Round trip and manifest bootstrap[P-9.1] [P-9.3] [P-6.2]15 checks
  2. passS2 PIT aggregation[P-9.1] [P-9.3]7 checks
  3. passS3 Content Store and freshness[P-9.1] [P-5.3]12 checks
  4. passS4 Equivalent spellings share one name[P-2.1] [P-9.1]6 checks
  5. passS5 private is never sent on NDN[P-9.4] [P-8.3]12 checks
  6. passS6 Tampered Data is rejected[P-9.3] [P-5.5]15 checks
  7. passS7 The packet size limit[§9.2 size]4 checks
  8. failS8 Two-forwarder chain[P-9.1] [P-9.3]stopped before any check: Error: Command failed: docker exec idem-nfd-edge1 nfdc route add /idem 366
  9. passS9 WebSocket face[P-9.1] [P-9.3]5 checks

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.
  1. H1
    Supported

    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.

  2. H2
    Supported

    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.

  3. H3
    Partly 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.

  4. H4
    Not 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

Upstream reduction as the swarm growsLine chart of upstream reduction against direct MCP for 1 to 32 agents. The per-agent cache stays near 9 percent; IDEM grows with the swarm and follows the perfect shared cache.0%10%20%30%40%12481632agentsupstream reductionB1B2 · B3

Hover, touch or use the arrow keys to read exact values. Press a legend entry to hide or show a series.

W-syn at overlap 0.5. Whiskers: 95% confidence interval. The dotted line is a perfect shared cache, every distinct name fetched once.

Simulation30 seeds per pointrun e2-agents/20261117T133348Z-90135038

Table of values
Upstream reduction as the swarm grows. Mean over seeds ± half-width of the 95% confidence interval.
agentsB1 per-agent cacheB2 IDEMB3 IDEM, two tiersperfect shared cache
18.0% ± 1.88.0% ± 1.88.0% ± 1.88.0%
29.9% ± 1.715.5% ± 2.115.5% ± 2.115.6%
49.2% ± 1.221.9% ± 1.821.9% ± 1.822.0%
89.1% ± 1.129.2% ± 1.629.2% ± 1.629.2%
169.4% ± 0.836.7% ± 1.236.7% ± 1.236.8%
329.4% ± 0.442.3% ± 0.742.3% ± 0.742.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

Upstream reduction as agents ask for more of the sameLine chart of upstream reduction against direct MCP for overlap from 0 to 1 at 8 agents. With no overlap every mode is at zero; IDEM grows faster than the per-agent cache.0%20%40%60%0.00.20.40.60.81.0cross-agent overlapupstream reductionB1B2 · B3

Hover, touch or use the arrow keys to read exact values. Press a legend entry to hide or show a series.

W-syn at 8 agents. Whiskers: 95% confidence interval.

Simulation30 seeds per pointrun e2-overlap/20261117T133428Z-90135038

Table of values
Upstream reduction as agents ask for more of the same. Mean over seeds ± half-width of the 95% confidence interval.
cross-agent overlapB1 per-agent cacheB2 IDEMB3 IDEM, two tiersperfect shared cache
0.00.0% ± 0.00.0% ± 0.00.0% ± 0.00.0%
0.21.6% ± 0.58.1% ± 1.08.1% ± 1.08.1%
0.45.8% ± 0.821.6% ± 1.321.6% ± 1.321.6%
0.612.3% ± 1.236.4% ± 1.636.4% ± 1.636.5%
0.820.5% ± 1.354.5% ± 1.654.5% ± 1.654.5%
1.029.5% ± 1.073.1% ± 0.573.1% ± 0.573.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
Upstream reduction as the swarm grows: B2. Mean over seeds ± half-width of the 95% confidence interval.
agentsvs. B0vs. B1bytes vs. B0CS hit ratioPIT aggregation
18.0% ± 1.80.0% ± 0.01.4% ± 2.58.0% ± 1.80.0% ± 0.0
215.5% ± 2.16.2% ± 1.29.3% ± 2.915.5% ± 2.10.0% ± 0.0
421.9% ± 1.814.0% ± 1.415.9% ± 2.521.7% ± 1.80.3% ± 0.2
829.2% ± 1.622.2% ± 1.223.4% ± 2.329.2% ± 1.60.0% ± 0.0
1636.7% ± 1.230.1% ± 0.931.1% ± 2.436.4% ± 1.20.3% ± 0.1
3242.3% ± 0.736.3% ± 0.737.3% ± 2.342.0% ± 0.70.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

Latency of every callCumulative distribution of per-call latency for direct MCP, per-agent cache and IDEM. IDEM answers a share of the calls in about 10 milliseconds, then follows the same curve as the others.0%25%50%75%100%0100200300400500latency per call (ms)share of callsB0B1B2 · B3

Hover, touch or use the arrow keys to read exact values. Press a legend entry to hide or show a series.

All calls at 8 agents, pooled over seeds, up to the 99th percentile. The step on the left is the share a cache answered: 29.2% at the edge for B2, 9.1% locally for B1. A miss costs the same in every mode.

Simulation30 seeds per pointrun e2-agents/20261117T133348Z-90135038

Table of values
Latency of every call
share of callsB0 direct MCPB1 per-agent cacheB2 IDEMB3 IDEM, two tiers
10%167.8 ms134.7 ms10.1 ms10.1 ms
25%194.4 ms181.4 ms10.1 ms30.2 ms
50%236.7 ms227.3 ms202.6 ms202.7 ms
75%293.7 ms286.0 ms266.1 ms266.2 ms
90%372.9 ms366.2 ms344.9 ms345.0 ms
95%433.2 ms426.9 ms407.7 ms407.8 ms
99%586.0 ms569.4 ms561.6 ms561.7 ms

Change of the median against direct MCP

Change of the median against direct MCPLine chart of the change in median latency against direct MCP, paired by seed, for 1 to 32 agents. The per-agent cache stays near minus 9 milliseconds; IDEM falls further as the swarm grows.−60−40−20012481632agentsmedian − B0 (ms)B1B2 · B3

Hover, touch or use the arrow keys to read exact values. Press a legend entry to hide or show a series.

Per-run median latency minus the same seed's B0. Whiskers: 95% confidence interval.

Simulation30 seeds per pointrun e2-agents/20261117T133348Z-90135038

Table of values
Change of the median against direct MCP. Mean over seeds ± half-width of the 95% confidence interval.
agentsB1 per-agent cacheB2 IDEMB3 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

Modep50p95p99Δ p50Δ p95Δ p99
B0 direct MCP235.7 ms ± 2.1430.1 ms ± 10.4584.8 ms ± 21.5–––
B1 per-agent cache226.6 ms ± 2.4423.1 ms ± 9.8570.5 ms ± 20.2−9.1 ms ± 1.6−7.0 ms ± 4.9−14.3 ms ± 16.3
B2 IDEM201.1 ms ± 4.1400.2 ms ± 10.8562.6 ms ± 22.5−34.6 ms ± 3.8−29.9 ms ± 9.1−22.2 ms ± 16.9
B3 IDEM, two tiers201.2 ms ± 4.1400.3 ms ± 10.8562.7 ms ± 22.5−34.5 ms ± 3.8−29.8 ms ± 9.1−22.1 ms ± 16.9
B4 IDEM, no verify at forwarders201.0 ms ± 4.1400.1 ms ± 10.8562.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:

CPU added to a miss, by step
  1. consumercanonicalizeArgs + makeName25.6 µs · 9%
  2. edgeargs digest16.7 µs · 6%
  3. producercanonicalizeArgs + makeName + signData74.9 µs · 28%
  4. edgeverifyData77.6 µs · 28%
  5. consumerverifyData77.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)

Freshness (TTL)Line chart of upstream reduction against the manifest TTL from 250 milliseconds to 5 minutes. Reduction grows with the TTL and levels off at 60 seconds.0%10%20%30%250 ms1 s5 s15 s1 min5 minmanifest TTLupstream reductionB1B2 · B3

Hover, touch or use the arrow keys to read exact values. Press a legend entry to hide or show a series.

A run lasts about 45 s of virtual time, so a TTL of a minute or more never expires within it. Short TTLs cost IDEM and private caches alike.

Simulation30 seeds per pointrun e2-ttl/20261117T133501Z-90135038

Table of values
Freshness (TTL). Mean over seeds ± half-width of the 95% confidence interval.
manifest TTLB1 per-agent cacheB2 IDEMB3 IDEM, two tiers
250 ms0.1% ± 0.11.6% ± 0.41.6% ± 0.4
1 s0.5% ± 0.24.0% ± 0.54.0% ± 0.5
5 s2.1% ± 0.511.5% ± 1.111.5% ± 1.1
15 s5.3% ± 0.820.3% ± 1.420.3% ± 1.4
1 min9.1% ± 1.129.2% ± 1.629.2% ± 1.6
5 min9.1% ± 1.129.2% ± 1.629.2% ± 1.6

Content Store budget

Content Store budgetLine chart of upstream reduction against the Content Store byte budget from 0 to 8 mebibytes. Below 64 kibibytes IDEM does worse than the per-agent cache.0%10%20%30%016 KiB64 KiB256 KiB1 MiB8 MiBbyte budget per store (LRU)upstream reductionB1B2 · B3

Hover, touch or use the arrow keys to read exact values. Press a legend entry to hide or show a series.

The median result is 6 KiB. With 16 KiB or less, the shared store evicts faster than agents ask again and B2 (3.1%) does worse than private caches (9.1%), which are not bounded here. Two tiers help a little: the regional store is a second budget.

Simulation30 seeds per pointrun e2-cs-size/20261117T133536Z-90135038

Table of values
Content Store budget. Mean over seeds ± half-width of the 95% confidence interval.
byte budget per store (LRU)B1 per-agent cacheB2 IDEMB3 IDEM, two tiers
09.1% ± 1.10.8% ± 0.20.8% ± 0.2
16 KiB9.1% ± 1.13.1% ± 0.64.1% ± 0.7
64 KiB9.1% ± 1.18.3% ± 1.010.3% ± 1.2
256 KiB9.1% ± 1.120.4% ± 1.822.7% ± 1.7
1 MiB9.1% ± 1.129.2% ± 1.629.2% ± 1.6
8 MiB9.1% ± 1.129.2% ± 1.629.2% ± 1.6

Think time

Think timeLine chart of upstream reduction against the mean think time from 100 milliseconds to 10 seconds. Reduction is flat up to 2 seconds and falls beyond, as runs outlast the TTL.0%10%20%30%100 ms300 ms1 s2 s5 s10 smean think time between callsupstream reductionB1B2 · B3

Hover, touch or use the arrow keys to read exact values. Press a legend entry to hide or show a series.

Faster agents do not gain: the store already answers every repeat. Slower agents lose, because a run then outlasts the 60 s TTL.

Simulation30 seeds per pointrun e2-think-time/20261117T133604Z-90135038

Table of values
Think time. Mean over seeds ± half-width of the 95% confidence interval.
mean think time between callsB1 per-agent cacheB2 IDEMB3 IDEM, two tiers
100 ms9.1% ± 1.129.2% ± 1.629.2% ± 1.6
300 ms9.1% ± 1.129.2% ± 1.629.2% ± 1.6
1 s9.1% ± 1.129.2% ± 1.629.2% ± 1.6
2 s9.1% ± 1.129.2% ± 1.629.2% ± 1.6
5 s7.3% ± 0.924.5% ± 1.524.5% ± 1.5
10 s4.9% ± 0.818.9% ± 1.318.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 callsB1 per-agent cacheB2 IDEMperfect shared cachepassthrough at the edge (B2, per run)
0%12.5% ± 1.230.8% ± 1.530.8%0.0
10%10.6% ± 0.926.7% ± 1.326.7%15.9
20%10.6% ± 1.124.0% ± 1.224.0%30.8
40%7.9% ± 0.916.2% ± 1.116.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

Time per call by payload sizeLog-log line chart of the median time per call of canonicalizeArgs, makeName, signData and verifyData for payloads from 1 kibibyte to 1 mebibyte. All grow linearly with size at large payloads; canonicalizeArgs is the steepest.10 µs100 µs1 ms10 ms1 KiB4 KiB16 KiB64 KiB256 KiB1 MiBpayloadmedian time per callcanonicalizeArgsmakeNamesignData · verifyData

Hover, touch or use the arrow keys to read exact values. Press a legend entry to hide or show a series.

Median over 10 runs of each run's median, on Apple M5, Node v26.7.0. Whiskers: the fastest and the slowest run. Both axes are logarithmic.

Wall clock10 runs e1-node/20261117T072542Z-b1fe1c14 … 20261117T125716Z-15f0097f

Table of values
Time per call by payload size: median time per call
Payloadmedianruns: fastest to slowest medianp95p99iterations per run
canonicalizeArgs 1 KiB8.9 µs8.4 µs – 34.1 µs11.8 µs43.1 µs5,000
canonicalizeArgs 4 KiB25.5 µs22.6 µs – 44.4 µs30.3 µs61.9 µs5,000
canonicalizeArgs 16 KiB107 µs80.8 µs – 348 µs142 µs167 µs4,000
canonicalizeArgs 64 KiB469 µs352 µs – 1.15 ms1.11 ms1.52 ms2,000
canonicalizeArgs 256 KiB1.90 ms1.61 ms – 4.85 ms3.12 ms4.36 ms1,000
canonicalizeArgs 1 MiB9.97 ms6.72 ms – 27.69 ms22.82 ms37.62 ms400
makeName 1 KiB16.7 µs16.2 µs – 36.8 µs33.3 µs56.7 µs5,000
makeName 4 KiB17.3 µs16.2 µs – 38.5 µs22.1 µs42.3 µs5,000
makeName 16 KiB28.9 µs22.1 µs – 51.9 µs35.5 µs78.0 µs4,000
makeName 64 KiB47.9 µs41.5 µs – 126 µs57.6 µs118 µs2,000
makeName 256 KiB155 µs105 µs – 324 µs174 µs277 µs1,000
makeName 1 MiB688 µs363 µs – 1.15 ms1.10 ms2.45 ms400
signData 1 KiB37.6 µs32.4 µs – 112 µs49.8 µs89.1 µs5,000
signData 4 KiB39.5 µs35.1 µs – 143 µs48.9 µs85.8 µs5,000
signData 16 KiB98.4 µs47.9 µs – 148 µs178 µs305 µs4,000
signData 64 KiB109 µs85.6 µs – 235 µs120 µs179 µs2,000
signData 256 KiB395 µs276 µs – 816 µs542 µs1.16 ms1,000
signData 1 MiB1.23 ms507 µs – 2.01 ms2.56 ms4.06 ms400
verifyData 1 KiB60.6 µs54.4 µs – 202 µs71.1 µs98.2 µs5,000
verifyData 4 KiB70.0 µs61.2 µs – 301 µs78.6 µs106 µs5,000
verifyData 16 KiB115 µs74.0 µs – 240 µs162 µs214 µs4,000
verifyData 64 KiB135 µs109 µs – 347 µs154 µs248 µs2,000
verifyData 256 KiB496 µs317 µs – 740 µs810 µs1.44 ms1,000
verifyData 1 MiB1.18 ms529 µs – 1.84 ms2.08 ms3.60 ms400

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 trials

    The 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 trials

    Stale 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 trials

    The 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 trials

    Timing. 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.

VariantAttacker atRejectedHow it ended (suite output)
Tamper: Data changed in flight
tamper/content@upstreamRewrites the result text between the producer and the edge.producer link250 / 250250 / 250Rejected: 250accepted: 0
  • forwarder verify_fail → Nack BAD_SIGNATURE × 250
tamper/content@last-hopRewrites the result text between the edge and the agent.agent link250 / 250250 / 250Rejected: 250accepted: 0
  • consumer refused: BAD_SIGNATURE × 250
tamper/freshness@upstreamRaises the signed freshnessMs a thousandfold so caches keep the Data longer.producer link250 / 250250 / 250Rejected: 250accepted: 0
  • forwarder verify_fail → Nack BAD_SIGNATURE × 250
tamper/signature@upstreamChanges one character of the signature.producer link250 / 250250 / 250Rejected: 250accepted: 0
  • forwarder verify_fail → Nack BAD_SIGNATURE × 250
tamper/swap-name@upstreamAnswers with a genuine, correctly signed Data of a different document.producer link250 / 250250 / 250Rejected: 250accepted: 0
  • forwarder drop: unsolicited → Nack TIMEOUT × 250
tamper/swap-name@last-hopHands the agent a genuine, correctly signed Data of a different document.agent link250 / 250250 / 250Rejected: 250accepted: 0
  • consumer refused: name mismatch × 250
tamper/scope@upstreamRelabels a private result as public so the edge would share it.producer link250 / 250250 / 250Rejected: 250accepted: 0
  • forwarder verify_fail → Nack BAD_SIGNATURE × 250
Forge: a name that does not match its arguments
forge/args-swap@edgeSends the name of one document with the arguments of another.consumer250 / 250250 / 250Rejected: 250accepted: 0
  • edge drop → Nack DIGEST_MISMATCH × 250
forge/random-digest@edgeSends real arguments under a name with a random args digest.consumer250 / 250250 / 250Rejected: 250accepted: 0
  • edge drop → Nack DIGEST_MISMATCH × 250
forge/args-swap@producerA forwarder that skips its check passes the mismatched Interest to the producer.malicious forwarder250 / 250250 / 250Rejected: 250accepted: 0
  • producer refuses: DIGEST_MISMATCH × 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 / 250250 / 250Rejected: 250accepted: 0
  • edge refetched from the producer × 250
replay/expired@upstreamSubstitutes a recorded, expired Data for the producer's new answer.producer link0 / 2500 / 250Rejected: 0accepted (documented limit): 250250 accepted (documented limit)
  • ACCEPTED: expired Data verified by the edge, cached as fresh and delivered × 250
replay/expired@last-hopAnswers the victim's Interest with an expired Data it once fetched.agent link0 / 2500 / 250Rejected: 0accepted (documented limit): 250250 accepted (documented limit)
  • ACCEPTED: expired Data passed the consumer's verification × 250
replay/unsolicited@consumer-facePushes an old genuine Data into the edge from a consumer face.consumer250 / 250250 / 250Rejected: 250accepted: 0
  • edge drop: unsolicited × 250
Private: asking across authorization contexts
private/sequentialAsks for the private name right after another user's result was cached.consumer250 / 250250 / 250Rejected: 250accepted: 0
  • got its own result; no shared cache or PIT entry × 250
private/concurrentAsks for the private name while another user's Interest is pending.consumer250 / 250250 / 250Rejected: 250accepted: 0
  • got its own result; no shared cache or PIT entry × 250
private/anonymousAsks for the private name with no credential at all.consumer250 / 250250 / 250Rejected: 250accepted: 0
  • got its own result; no shared cache or PIT entry × 250
private/treeTwo users behind different edges ask at once; the regional forwarder sees no authContext.consumer250 / 250250 / 250Rejected: 250accepted: 0
  • got its own result; no shared cache or PIT entry × 250
private/authcontext-guessFills the Interest's authContext field itself with a random value.consumer250 / 250250 / 250Rejected: 250accepted: 0
  • got its own result; no shared cache or PIT entry × 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.consumer0 / 2500 / 250Rejected: 0accepted: 250250 accepted
  • ACCEPTED: another user's private result served from the edge cache × 250
Poison: Data signed by a key outside the manifest
poison/unknown-key@upstreamReplaces the answer with Data validly signed by its own key.producer link250 / 250250 / 250Rejected: 250accepted: 0
  • forwarder verify_fail → Nack BAD_SIGNATURE × 250
poison/spoofed-key-id@upstreamSigns with its own key but names the producer's key in the locator.producer link250 / 250250 / 250Rejected: 250accepted: 0
  • forwarder verify_fail → Nack BAD_SIGNATURE × 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 link250 / 250250 / 250Rejected: 250accepted: 0
  • forwarder verify_fail → Nack BAD_SIGNATURE × 250
poison/rogue-manifest@upstreamOffers a newer manifest listing only its own key, then signs with it.producer link250 / 250250 / 250Rejected: 250accepted: 0
  • manifest refused: UNTRUSTED_KEY; forwarder verify_fail → Nack BAD_SIGNATURE × 250
poison/unknown-key@last-hopHands the agent Data validly signed by its own key.agent link250 / 250250 / 250Rejected: 250accepted: 0
  • consumer refused: UNTRUSTED_KEY × 250
poison/unsolicited@consumer-facePushes its own signed Data into the edge from a consumer face.consumer250 / 250250 / 250Rejected: 250accepted: 0
  • edge drop: unsolicited × 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.consumer0 / 2500 / 250Rejected: 0leaked (accepted risk): 250250 leaked (accepted risk)
  • LEAK: inferred "never asked" from latency × 127
  • LEAK: inferred "asked before" from latency × 123

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?

Read the evaluation method →

Modes compared

B0 direct MCP
Every call goes to the producer, a plain MCP server. The edge only relays.
B1 per-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.
B2 IDEM
Agents → one edge forwarder (PIT and Content Store) → producer. Every hop and every agent verifies.
B3 IDEM, two tiers
Agents → two edges → one regional forwarder → producer, with the same end-to-end delay as B2.
B4 IDEM, 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.sh

Runs 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 idSeedsSource digestLoad average, start → endTook
e4/20261118T141957Z-de2bcf731..3de2bcf732.6 → 2.244.6 min
ndn-nfd/20261118T052108Z-eb7ced2e7eb7ced2e2.5 → 2.745.2 s
ndn-nfd/20261118T052519Z-eb7ced2e7eb7ced2e2.6 → 2.94.7 min
e1-node/20261117T072542Z-b1fe1c141b1fe1c141.8 → 1.913.3 s
e1-node/20261117T072557Z-b1fe1c141b1fe1c141.8 → 1.815.2 min
e1-node/20261117T074111Z-b1fe1c141b1fe1c141.8 → 2.314.0 s
e1-node/20261117T074126Z-b1fe1c141b1fe1c142.4 → 2.215.2 min
e1-node/20261117T075642Z-b1fe1c141b1fe1c142.3 → 2.413.1 s
e1-node/20261117T125444Z-15f0097f115f0097f1.8 → 26.219.0 s
e1-node/20261117T125507Z-15f0097f115f0097f45.8 → 99.232.7 s
e1-node/20261117T125542Z-15f0097f115f0097f106.0 → 148.842.9 s
e1-node/20261117T125628Z-15f0097f115f0097f149.5 → 169.345.1 s
e1-node/20261117T125716Z-15f0097f115f0097f169.3 → 151.040.3 s
e2-agents/20261117T133348Z-901350381..30901350382.5 → 2.540.0 s
e2-cs-size/20261117T133536Z-901350381..30901350382.6 → 2.327.7 s
e2-mixed/20261117T133631Z-901350381..30901350382.3 → 2.114.2 s
e2-overlap/20261117T133428Z-901350381..30901350382.5 → 2.631.8 s
e2-think-time/20261117T133604Z-901350381..30901350382.3 → 2.325.8 s
e2-ttl/20261117T133501Z-901350381..30901350382.6 → 2.635.0 s
e5-safety/20261117T133645Z-901350381..250901350382.0 → 2.04.4 s

All runs: Node v26.7.0, Apple M5 (10 cores), darwin arm64.