Repository navigation
Spec 02 Requirements
Source: spec/02-requirements.md at commit a9f0d61. The file is the source of truth; this page is a summary.
Chapter 02 defines every REQ-* ID and every workload ID (WL-*). Other chapters cite these IDs and never redefine them. For each requirement it fixes where the number is measured (M-WIRE, M-TSC, M-FIN and others), the load it must hold under, and the benchmark that passes or fails it. It splits the 1 µs latency budget and the 1B msgs/s throughput budget across stages. It also defines the reference workload WL-REF and nine adversarial workloads. The chapter says what must hold, not how; each mechanism belongs to the owner chapter that the requirement names. The Spec 01 §14 decisions override anything in it.
- REQ-LAT-1 is a hard maximum, not a percentile. Every message of every received packet gets its first record within
LAT_MAX_NSatM-WIRE. That covers every type,count1–10 and index 0–9. One sample over the bound fails the run (§3.2). - REQ-LAT-1 has no load envelope. Overload is answered
BUSY, excess rateRATE_LIMITand a halted bookBOOK_HALTED, and each of these answers is itself a first record within the bound (§3.1). - Deadline admission makes the bound a maximum. Every stage after the admission test has a hard row, and every shed decision is logged so that replay never recomputes it (REQ-LAT-3, §3.4).
-
BUSYhas one bound per lane class. On paced dedicated lanes, lane-stageBUSYis 0. Pooled lanes are analysed as an M/M/7 queue (REQ-LAT-5, §4.4). - Ingress loss (policer drops, wire loss, packets sent to a crashed box) is bounded by REQ-LAT-14. Its counters are reported next to
BUSYand never summed with it (§3.4). - Maker fills leave within 1 µs of the taker packet's first bit for the first steps of a sweep. Fills from later continuation steps leave within 1 µs of the start of their own step (REQ-LAT-4).
- Exactly three physical facts limit what a client sees: AWS Nitro owns the wire, light sets the handoff window, and finality needs a timely network. None of them is an exemption (§3.5).
- Throughput: one book takes 10⁹ accepted msgs/s on
REFas long as ≤ 1% of messages cross (REQ-THR-1, §5.1). - Finality: every accepted order is final within 10 ms as a maximum. The book halts when finality lags by more than
FIN_GATE_BLOCKS(REQ-FIN-1, REQ-FIN-5). The sequencer never votes (REQ-FIN-9). - Epochs: the handoff window is finality plus one WAN one-way. Orders in the window go to an opening auction with pro-rata sharing (REQ-EPO-2, REQ-EPO-5).
- Every hard constraint (C-UNIX, C-NOCHIP, C-COTS, C-ONEBIN) is a testable requirement, REQ-PLT-1 to REQ-PLT-4 (§10).
- Benchmarks B21–B39 are new in this chapter. No benchmark may pass on a percentile, on a subset of packet sizes or on normalized latency (§13).
| Name | Value | § | Status in the spec |
|---|---|---|---|
LAT_MAX_NS |
1,000 ns | §3.2 | hard maximum |
| Cross fill, index 9 (zero wait) | 880 ns | §4.1 | budget (computed) |
| Join/cancel ack, index 9 (zero wait) | 965 ns (955 typical) | §4.1 | budget (computed) |
Shed threshold (LAT_MAX_NS − DEADLINE_GUARD_NS) |
980 ns | §4.1 | budget (threshold from 01 §14.1) |
| NIC RX + TX | 320 + 240 = 560 ns | §4.1, REQ-PLT-6 | budget; B1 qualifies a NIC on max ≤ 560, TX ≤ 240 |
REQ_BUSY_DED_FULL / _LOW
|
10⁻⁵ / 10⁻⁸ | REQ-LAT-5 | budget |
REQ_BUSY_POOL_FULL / _LOW
|
10⁻³ / 10⁻⁶ | REQ-LAT-5 | budget |
REQ_INGRESS_LOSS_MAX |
10⁻⁶ | REQ-LAT-14 | budget |
REQ_POOL_TOKEN_NS |
20 ns | §4.1 | budget |
Accepted throughput per book (REF) |
1.0 × 10⁹ msgs/s | REQ-THR-1 | requirement |
CONSUMER throughput |
2.4 × 10⁸ msgs/s | REQ-THR-11 | requirement |
FINALITY_MAX_MS |
10 ms (p50 ≤ 4 ms) | REQ-FIN-1 | hard maximum |
FAILOVER_TARGET_MS |
20 ms | REQ-FIN-6 | maximum over ≥ 50 kills |
| Expected reverted fills | ≤ 10⁻⁶ per year | REQ-FIN-4 | budget |
| Market-data lag | p99 ≤ 10 µs | REQ-LAT-11 | budget |
| Ethereum deposit finality | about 12.8 min | REQ-CHN-6 | vendor |
All values in the chapter are budgets unless marked otherwise. Draft 0.2 has no measured numbers.
-
- How to read a requirement
-
- Measurement points
-
- Latency requirements
-
- Latency budget
-
- Throughput requirements
-
- Workload model
-
- Finality and durability
-
- Epochs and handoff
-
- Chain mode
-
- Platform
-
- Security
-
- Operations
-
- Benchmarks
-
- Non-goals for v1
-
- Traceability matrix
- Interfaces to other chapters
- Local definitions
- Requests to 01
- Open questions
- §14.0 (number of facts). The chapter's preamble says "Two physical facts are stated as facts" and then lists three. 01 says exactly three, and §3.5 of this chapter lists three.
-
§14.19 A, §14.16 (dequeue-age drop). A packet older than its
BUSYdeadline at dequeue is ingress loss, notBUSY, and it fails the run. REQ-LAT-3 (§3.4) still says such a packet is "counted withBUSYin B3". 01 overrides that text. §4.4.2 item 5 and REQ-LAT-14 already follow 01. - §14.7, §14.16 (replica storage). 01 specifies 12 × 61.44 TB NVMe per replica: about 7.9 h at sustained peak, and at least 6 h required. §5.2, REQ-FIN-10, REQ-CHN-7 and Open question 8 use 12 × 30.72 TB (4.4 h at full load). 01 overrides them.
-
§14.15 item 1 (pacing). 01 says a paced client leaves at least
predicted_path_nsof its previous packet between packets. §4.4.1 paces by lane occupancy (S_n+ 10 + 25 ns) instead. 01's wording is binding until 01 changes; 04's Request 9 asks for that change. - §14.15 item 2 (BBO load). 01 gives a BBO load of about 0.21. §4.4.3 sums the rows to 0.33 and asks 01 to correct the figure (Request 5).
- §14.17.5 (maker count). 01 says about 40 makers at index 9 get their fill within 1 µs. REQ-LAT-4 computes 18 at 16 ns per maker packet on three TX cores (Open question 1).
-
§14.17.2. This section supplies the per-class
BUSYbounds that REQ-LAT-5 uses. It replaces the older "BUSY ≤ 1e-6 of all packets" wording in §14.1. - §14.18 O2, O6. The 880 ns cross at index 9 assumes a 60 ns frame gate; with 07's 142 ns worst-case gate it is 947 ns (O2). The 5 ns pass-1 and 15 ns BBO-step costs are budgets, not measurements (O6).
- §14.19 B. 07 §9.6 cases (a)–(e) are the full list of revert causes, and nothing reverts after finality. REQ-FIN-3 states only case (a) as its three conditions, but it points to that list.
Benchmarks and workloads: vyrn-bench; acceptance is tracked on Milestones and Status.
The chapter lists 9 open questions; see Open Questions.
Overview
Working on VYRN
Spec
- 00 Index
- 01 Conventions
- 02 Requirements
- 03 Architecture
- 04 Protocol
- 05 Engine
- 06 Platform
- 07 Replication
- 08 Epochs
- 09 Chain
- 10 Accounts, Risk, MD
- 11 Build
- 12 Commitment
- 13 Availability
- 14 Envelope
Engine crates
Other crates
- vyrn-nic
- vyrn-log
- vyrn-data
- vyrn-consensus
- vyrn-replica
- vyrn-epoch
- vyrn-chain
- vyrn-md
- vyrn-sim
- vyrn-bench
Binaries
- vyrn-seq (stub)
- vyrn-validator (stub)
- vyrn-admin
Outside Rust
Reflects main at a9f0d61.