Why a Network of Nodes Can Beat a Single Node: How Solana Shreds Mesh Delivery Works

ERPC adopted Shreds Mesh for its high-speed Premium delivery to capture changing first arrivals and expand first-arrival coverage. Alongside direct delivery from a single node, this design uses the earliest copy received across multiple nodes. This article explains the reasoning behind that choice and how to apply it to your own project. [13]
A Solana Shred is a small fragment carrying block data. If the same Shred arrives over several paths, you can use the earliest valid copy each time. This is the idea behind First Arrival. Instead of fixing one node as the fastest source, you take advantage of an arrival order that can change for every Shred.
Here, first-arrival coverage means how broadly a configuration captures the first-arrival opportunities offered by different paths. A source that is usually fastest can be beaten on the next Shred. A source that is usually a little slower may be the only one to deliver a piece the application needs.
The same idea applies when combining ERPC with other delivery feeds. Capturing first arrivals from different paths lets a configuration use opportunities that one path alone would miss. Whether to do this in one region or across several or all target regions depends on where the project needs to process information sooner.
Multiple paths can help when they complement one another's late or missing pieces and the benefit reaches the application after accounting for reception, verification and reconstruction. We will follow three questions. Which path delivered first? When were all the pieces needed by the application available? What never arrived during observation? Separating these questions gives you a way to test the benefit at your own receiver.
Choose the reading path that fits your starting point.
| Goal | Reading path |
|---|---|
| Understand the mechanism and receive your first stream | Chapters 1–3 → Chapter 8 |
| Evaluate an additional path with an existing receiver | Chapter 7 → Implementation appendix |
Use Chapters 4–6 when you need to check duplicates, missing data and measurement conditions. Both routes begin by choosing one thing to observe.
1. The best-performing node does not arrive first every time
Imagine receiving the same Shred over three paths, A, B and C. For S1, B arrives first, then A, then C. For S2, A wins. For S3, C wins.
Figure 1|The first path changes from one Shred to the next.

If you use A alone, you receive the first copy of S2. For S1, however, you wait without being able to use the copy delivered by B. The same problem occurs for S3. As long as you select one fixed source, you miss the opportunity to use the first arrival whenever that source loses.
Multiple paths can reduce this waiting. For the same valid Shred, observed at one measurement point, the ideal first-arrival timestamp is
min(A, B, C). One path does not need to win every item. You can use B for S1, A for S2 and C for S3.The order changes because delivery nodes receive Shreds at different times, follow different paths to the receiver, and encounter different congestion and send/receive queues. A fast CPU and a short geographical distance matter, but they do not determine the order of every arrival. First-arrival selection reduces waiting by using a copy that another path has delivered sooner.
The minimum is a model in which adding a path does not change existing arrivals and selection has no cost. The practical benefit depends on whether the receiver can absorb the additional input and pass useful data to the application sooner.
2. From Shreds in flight to the information an application needs
Solana's leader, the node responsible for producing a block, divides data into Shreds and sends them out. Data Shreds carry the data itself. Coding Shreds help recover missing fragments. With a sufficient combination, a receiver can reconstruct Data Shreds that did not arrive. This error-correction mechanism is called FEC. [1] [2]
In Turbine, the protocol that propagates Shreds, validators forward fragments to other nodes. The forwarding arrangement changes between Shreds. Delivery nodes receive data during this propagation and pass it to their users. Differences exist both between the leader and a delivery node and between that node and the user. A path that is well placed for one Shred need not arrive first for the next. [1]
Those differences also matter when an application assembles the information it needs. Consider a simple task requiring all three pieces X, Y and Z. On A, they arrive at 2, 4 and 12 ms, so the set is complete at 12 ms. Receiving X over another path at 1 ms leaves the wait for Z unchanged. If another path delivers Z at 5 ms, all three pieces are available at 5 ms instead.
Figure 2|Delivering the missing piece changes when the set is complete.

Take this example one step further. Suppose X, Y and Z arrive on B at 1, 7 and 5 ms. B alone completes the set at 7 ms. Combining compatible pieces of the same content, however, makes the set complete at 5 ms: X from B, Y from A and Z from B. Taking the minimum of the standalone completion times, 12 and 7 ms, would not reveal that result. A receiver that merges fragments needs its own completion timestamp.
In Solana, the sufficient combination of Data and Coding Shreds and the location of the transaction of interest change what the receiver must wait for. The underlying point remains: the first fragment's arrival does not tell the whole story. A path that is usually slower can still be valuable if it supplies the piece the application is waiting for now.
Receipt, verification, reconstruction, application use and on-chain finality are separate stages. An application detecting activity in a particular pool should also measure when the relevant transaction has been reconstructed and the required instructions or accounts identified. A Shred's first-arrival advantage is not automatically the same reduction in transaction-detection time.
Reading a transaction's instructions does not establish that it succeeded or changed a balance. Shred-derived observations can include failed transactions. Applications that need actual fills or balance changes must also check execution results at their required commitment level. [5]
3. Why ERPC adopted Shreds Mesh for Premium
Delivery from a single node cannot use a copy of the same Shred that has already reached another node. ERPC adopted a mesh for Premium to reduce that wait. It receives Shreds from multiple nodes in each region and forwards the copy that reaches the mesh first. When a different node wins the next Shred, the delivery side can take advantage of that change. [13]
ERPC's product name is Direct Shreds. gRPC and UDP Forwarding are delivery forms. UDP Forwarding offers both single-node Standard and mesh-based Premium. The Direct product name does not mean that every plan delivers from a single node. [3] [4]
The public specifications checked on November 27, 2026 describe the UDP Forwarding plans as follows. [3]
| Plan | Published delivery behavior | What to check at the receiver |
|---|---|---|
| Standard | Forwards raw Shreds over UDP from one ERPC node in the selected region | The source IP and destination shown in the dashboard |
| Premium | The delivery mesh forwards the copy of each Shred that reaches it first | Reception from every source IP listed in the dashboard |
With Premium, ERPC's delivery mesh handles first-arrival selection for each Shred. Customers receive Shreds after that selection without building and operating the delivery infrastructure that gathers first arrivals from multiple nodes. This places the selection on the provider's side, rather than requiring the customer's receiver to collect every copy from several feeds. Compare Standard and Premium at the same receiver to assess the value for your application: their arrival differences, the data each supplies when the other does not, and when the application can use that data.
Measure the customer's actual input volume and duplicate-processing load instead of inferring them from an assumed internal path count. The selected region alone does not establish the location of the entire mesh or path independence. Measure the benefit at your own receiving point.
4. Passing the same Shred downstream once
Follow S1 from Figure 1 more closely. Suppose B's copy arrives first, A's follows 3 ms later, and C's follows 5 ms later. If they contain the same valid content, one downstream delivery is enough. The other two copies count as duplicates.
Figure 3|Three copies, one downstream job.

First, define identity. Agave's Shred identifier includes the slot, index and Data/Coding type. A slot is an opportunity assigned to a leader to produce a block; an index identifies a fragment within that slot. Retain the network and cluster Shred version in the observation record so that separate domains are not mixed. [2]
Matching coordinates do not guarantee matching content. Verify format and authenticity, and retain an identifier for the verified content. Different content under the same logical key must be quarantined separately from ordinary duplicates. Accepting the first packet unconditionally could allow an invalid early copy to suppress a valid later one. Arrival order does not determine the correct block or finalized history.
Timestamps serve two purposes. For measurement, preserve the time immediately after receipt and later compare the original receipt times of copies that passed verification. Online processing can use a copy once its validity has been established. If parallel verification finishes a later copy first, these two orders differ. That is why receipt, verification completion and application availability need separate timestamps.
Bound duplicate state by slot range, entry count, memory and retention time. An old copy arriving after its state has been evicted may appear new. Finite-memory duplicate suppression is not a permanent exactly-once delivery guarantee. Include downstream protection against repeated processing and a resynchronization policy in the design.
5. Five out of five can still miss a required sixth item
Arrival speed cannot assess data that never arrived. Consider an explanatory example in which six items, S1 through S6, are known to be required. Each Shred has a receiver-side reference time. Arrival within 8 ms of that reference is on time; observation continues until 20 ms. The reference is not generation time. It is a defined origin for this section's deadline model.
| Shred | Path A | Path B | Path C | First copy |
|---|---|---|---|---|
| S1 | 4 ms | 1 ms | 6 ms | 1 ms |
| S2 | 2 ms | 7 ms | 4 ms | 2 ms |
| S3 | 9 ms | 5 ms | 2 ms | 2 ms |
| S4 | 5 ms | Unobserved | 12 ms | 5 ms |
| S5 | Unobserved | 3 ms | Unobserved | 3 ms |
| S6 | Unobserved | Unobserved | Unobserved | Unobserved |
Scroll horizontally to compare paths →
Figure 4|The observed set and the required set differ.

On A alone, S3 arrives after the deadline. First-arrival selection can use C's on-time copy. S5 represents a different improvement: A never observes it, but B supplies it. Multiple paths can both advance late arrivals and fill gaps.
S6 still does not arrive. If the denominator is only the union of observed data, it contains S1 through S5 and the merged result is five out of five. Against the required reference population, the result is five out of six. Distinguishing coverage of the observed set from reception of the required set prevents this blind spot.
In production, a complete inventory of all Shreds may not be available. State the reference population used as the denominator and whether that reference can itself miss data. A list of reconstructed transactions is not a complete inventory of raw Shreds. Count received Data/Coding Shreds separately from data recovered through FEC.
Unobserved means unseen by the end of observation, not proven permanently lost. Separate the period for admitting target items from the subsequent period for waiting for arrivals. Otherwise, Shreds near the end of the run receive less follow-up time. Retaining late arrivals and items still unseen after waiting is what makes a speed comparison meaningful.
6. Measuring mesh performance correctly
To measure the idea of first-arrival coverage, separate it into first-arrival share among paths compared at the same receiver, items delivered by only one path, and items usable before the application's deadline. State the set of paths and the receiving point so that the scope of the captured first arrivals is clear.
Compare the same data
The basis of a comparison is the same Shred, the same receiving environment and the same observation window. Comparing a mean over A's received set with a mean over B's different received set mixes arrival differences with differences in which data was received.
Compare arrival differences on the common set of identical content received by both.
Figure 5|Look at the arrival distribution, not only the average difference.

For the same fraction, a point farther left means that this set was received sooner. But first-arrival rate, the slow end of the distribution and reception of required data answer different questions. The p50 is the median. The p95 and p99 are quantiles at the 95% and 99% positions in the ordered measurements, used to examine the slower end.
Name the distribution being reported: paired arrival differences, time from the reference to receipt, or time to application availability. The difference between per-path p95 values is not the p95 of per-Shred arrival differences.
Compare only S1–S3 from Chapter 5, which all three paths received. A arrives before C on two of the three, C before B on two, and B before A on two. Even on the same items, these pairwise majorities form a cycle: no single ordering preserves all three results. Ranking by mean arrival offset answers a different question. Ideal first-arrival selection in this model can use B for S1, A for S2 and C for S3.
Align clocks and origins
Measure elapsed time with a monotonic clock, which does not go backwards when calendar time is corrected. Recording each copy with one receiver's monotonic clock lets you compare arrivals without knowing generation time. Store the calendar date and time separately using a wall clock. Differences between timestamps on separate hosts are not one-way network latency unless clock synchronization accuracy is established. Recording nanoseconds does not make the measurement accurate to one nanosecond. [6]
Within one analysis of the same items, fix one reference set and one origin per item for every configuration. If the observed union uses each item’s first valid receipt as its origin, ideal first arrival has a delay of zero for every non-conflicting item by definition. That alone does not establish compliance with an external application deadline.
Changing only the origin can change a result even when the receipt timestamp stays the same. The appendix section “Align measurement points, origins and load” works through an example.
Keep missing data beside the speed result
Alongside the paired arrival comparison, retain reference items seen only on A, only on B, or on neither. Excluding unobserved items from an overall assessment can create survivorship bias, even when the common-set arrival comparison itself is valid.
A candidate can also reveal new items and enlarge the denominator. A lower apparent reception rate can mean that previously invisible gaps became visible, rather than that the existing path dropped more data. If the reference expands, recalculate both configurations against the same expanded reference and retain the newly revealed items separately.
Measure receiver load over the same window
The measurement point, socket-read order and recording load can all enter an arrival difference. Count NIC and socket drops, recording-queue losses, verification failures and conflicts, and investigate the effect of simultaneous configurations sharing CPU and queues. The appendix gives the procedures for aligning measurement points, reassigning ports, alternating configurations and replay.
Even a large packet count need not represent independent trials when packets share a congestion event. Measure across several windows and leaders, and inspect variation between windows alongside the median or p99. A short interruption that disappears in the overall mean may matter most to the application.
Read your own comparison results
For each metric, retain what was compared and how many items were counted.
| Metric | What it tells you | Conditions to fix and retain |
|---|---|---|
| Mean and median | The mean and median of paired arrival differences on the common population | Population, count and measurement point |
| p95 and p99 | How far the slow end of the measured distribution extends | Measured quantity, count, observation period and quantile method |
| First-arrival rate | How many compared items a path delivered first | Denominator, ties and clock resolution |
| On-time reception rate | How many required items arrived by their deadline | Reference population, deadline origin, missingness and conflicts |
| Application availability time | Where the application waited before it could use the information | The same logical event and completion criteria |
ERPC's public documentation reports an existing observation in which Premium often arrived 1–3 ms sooner than Standard. Its conditions were one simultaneous 120-second capture on an ERPC receiver in Frankfurt on October 30, 2026, comparing the first arrival of the same Shreds received on both feeds. [3]
This is evidence of an arrival difference under those conditions. It does not establish a mean improvement percentage, long-term p99, reception of all Shreds, results in other regions or completion time after reconstruction. This article includes no new live measurement. Use the published observation as a hypothesis for your own comparison, rather than importing it as the conclusion.
7. Which paths and regions should first-arrival coverage include?
Combining ERPC with other delivery feeds
ERPC's mesh can itself be one input to a project's wider architecture. The same principle applies when combining ERPC with other feeds and using the first valid copy of each Shred. No single provider needs to be the overall winner. Use A for Shreds on which A arrives first and B for those on which B arrives first, capturing the opportunities each path offers.
Align Shred identity and validation for data from the same network, then compare arrivals at your receiving point. Assess a candidate by the data it supplies while the current configuration is waiting, as well as by its average speed.
Use Chapter 5's six-item explanation model to ask whether C is worth adding. On S1–S4, the same four Shreds received by both A and C, the mean offset from each Shred's reference is 5 ms for A and 6 ms for C. C arrives first on only one of the four. Yet that item is S3, which A does not deliver by the 8 ms deadline. The path with the slower average fills a gap in A's delivery.
Count how many items the current configuration fails to deliver on time that the candidate path can supply before the deadline. A misses the deadline for S3, S5 and S6. C rescues S3; B rescues S3 and S5.
| Path added to the current configuration | Remaining misses it can rescue | Change in on-time items |
|---|---|---|
| Add C to A | S3: one of three misses | 3/6 → 4/6 |
| Add B to A | S3 and S5: two of three misses | 3/6 → 5/6 |
| Add C to A+B | None: the remaining item, S6, still does not arrive | 5/6 → 5/6 |
The same C adds no on-time items at an 8 ms deadline once B is already present. It still brings S3 forward from 5 ms to 2 ms, which can matter to an application that needs that reduction. For example, at a 4 ms deadline, C rescues S3 when A+B cannot deliver it on time. A path's marginal value depends on the existing configuration and the application's deadline.
This table selects copies ideally from the same observation record. When customers add every copy from multiple feeds to their own receiver, the added load can cause items that previously met the deadline to miss it. When the same reference items can be matched across two measured configurations, with aligned origins, deadlines and validity rules, let r count baseline misses that are candidate hits, l the reverse, and N the reference count. The observed difference in on-time receipt rate is
(r − l) / N.An offline minimum forces l to zero, so record both rescues and worse outcomes in actual configurations. Different events from separate before-and-after windows cannot be paired to obtain r and l. The formula alone cannot reveal items absent from the reference or establish what caused the difference.
Focusing on one region or extending the approach across regions
For an application that makes decisions and executes in one region, start by capturing first arrivals from multiple feeds at that receiving point. The goal is to make required data usable sooner by the application in that region. When adding a feed from another region, evaluate its arrival after the transfer to your own receiving point.
A project operating applications in several regions can apply the same idea in each one. Select first arrivals from multiple paths at each regional receiver and deliver them to the local application. Whether to cover all target regions or begin with the most important ones depends on where processing takes place, latency priorities, required reception scope and operating cost.
Selecting first arrivals within each region and collecting all remote-region data at one central receiver create different paths to the application. Measure at the point where decisions and execution actually happen, including remote transfer time, to choose the scope that fits the project.
Checking path complementarity and receiver capacity
Next, investigate why paths can complement each other. Different source IPs can still share upstream infrastructure, carriers, physical links, racks or power. They may therefore share the cause of a delay.
Figure 6|Different entrances can still share the same point of failure.

If two paths each miss a deadline with probability p and those events are independent, the probability that both miss it is p². That calculation cannot be transferred unchanged to paths affected by a shared failure or congestion. Alongside the path count, measure how often paths become late together and how many items only one of them supplies.
Costs begin before copies are discarded. If a customer receives k streams of similar volume, input bandwidth is approximately their sum. The output may be one stream's worth, but the NIC and operating system still process the larger input. Transfer cost, packet processing, signature verification, memory and duplicate-state lookups increase. For a provider-side selection service, measure the customer's actual received volume instead of assuming the same multiplication applies.
If receipt improves by 2 ms but the additional processing adds a 3 ms wait, the application receives useful data later. Measure input bandwidth, CPU, resident memory (RSS), queue residence time, duplicate rate and receive drops over the same window as application availability. The Backpressure article explains how to investigate congestion after receipt.
| Observed condition | Direction for the decision |
|---|---|
| One path already meets deadline, reception and failure requirements | Keeping it can be the right choice after considering operating cost |
| Another path complements late or missing items, and the receiver has headroom | Run a limited comparison of multiple paths or a delivery mesh |
| Paths become late together and add little coverage | Investigate shared upstreams, failure domains and placement |
| Adding a path increases drops or queue waits | Revisit reception, verification and aggregation capacity and placement |
| Shreds arrive sooner, but useful information is available at the same time | Locate the wait in reconstruction, decoding or downstream work |
8. Test one question in your own application
You can first try the mechanism using the example ZIP in the appendix, without a receiver or subscription. With Python 3.10 or later and its standard library, run
python3 compare_arrivals.py --example from the extracted shreds-measurement folder. The example uses no network connection and shows how to read paired Shred arrival differences and data received by only one path.Choose the next step for the receiver you have today. If you are receiving a live stream for the first time, bring one ERPC notification into your own code. If you already have a receiver, build a record that compares the same data. The eventual question is when your application can use the information it needs.
| Current situation | First step | First useful result |
|---|---|---|
| You want to try the mechanism locally; no receiver or subscription is needed | Run python3 compare_arrivals.py --example from the appendix | Learn to distinguish paired Shred arrival differences from one-sided reception |
| You already have a UDP receiver | Record receipt, validation and application-use timestamps in your current code | A record for comparing the same data in your own receiving environment |
| You do not yet receive a Solana stream | Choose the TypeScript or Rust example in the official quick start and prepare to receive slot updates | An entry point in your own code for receiving and recording notifications |
With a UDP receiver: Build the comparison record
Compare Standard and Premium as candidate inputs for your own application. These three stages connect reception speed to when the information becomes usable.
- After reading the example’s arrival differences and one-sided receipts, locate receipt, verification, reconstruction and application use in your current code. Define the required data population and deadline, then add application completion to the receipt and validation records. If the deadline origin or a complete reference population is unknown, start with copy-to-copy arrival differences at the same receiver.
- Receive Standard and Premium simultaneously on distinguishable ports, using the same clock and observation window. Allow every listed source IP for Premium. Measure Premium alone separately from a customer-side configuration that also merges Standard. [3]
- Check recording loss and conflicts, then compare paired arrival differences and count items seen on only one path. For application events, count rescued deadlines and newly missed deadlines against the same reference. Record bandwidth, CPU, memory and queue residence time over the same window, and check the decision across several windows. Speed gained by removing verification or required information is not an adoption argument.
For an application detecting transactions in a particular pool, one completion point can be the moment it identifies the target transaction from validated data. Match the transaction identifier, slot, content and fork information. Compare timestamps for the same events seen on both paths, and count events seen on only one separately. This gives you an event-level comparison even without a complete list of Shreds. Report it separately from raw-Shred receipt rates.
Before starting, check the region, rates, billing unit and stopping procedure in the dashboard. For hourly use, estimate
Standard hours × rate + Premium hours × rate + receiver host + transfer. Account for billing-unit rounding where applicable, and set an end time and spending limit. [3] [9]Pricing: https://erpc.global/en/price/
UDP Forwarding: https://erpc.global/en/doc/shredstream/udp-forwarding/
With your first receiver: Bring in one update
If this is your first receiver, Geyser gRPC in Bundle Standard lets you bring structured updates into your own code. Open the official quick start and filter examples, then work through three stages. [10] [11]
- Before starting the trial, choose the official TypeScript or Rust example and prepare its dependencies and configuration. Begin with the “Subscribe to slots” filter example and decide where to save the logs.
- After starting, enter the assigned stream endpoint from the dashboard. The RPC key serves auxiliary RPC calls in the example; it does not replace the stream endpoint. Remove sample endpoints and unused token placeholders, and keep credentials out of logs.
- Run it in a development environment and confirm that notifications for several slot numbers arrive. Then narrow the subscription to one account of interest, or transactions involving that account, and record receipt and the completion of your identification step on the same monotonic clock.
The first log needs a run identifier, slot, update type and monotonic receipt timestamp. When you start processing target events, add an identifier that joins the same event and its completion timestamp. This measures the time from receiving an update through your own processing. Receiving slot updates alone does not establish raw-Shred coverage.
Bundle Standard offers a trial for this first step. Eligible first-time users automatically receive 24 hours after a one-time €5 payment verification. The benefit is available once per person across accounts and ends automatically unless you choose to continue. The €5 verification fee is charged immediately and is not a subscription payment or credit top-up. Finish preparing your receiver, then check eligibility in the dashboard. [8]
The shared RPC, Geyser gRPC and Direct Shreds trial is separate from UDP Forwarding Standard / Premium. The former lets you establish reception and processing measurement points; check the latter's terms when moving on to raw-Shred comparison. [3] [9]
First-receiver instructions: https://erpc.global/en/doc/geyser-grpc/quickstart/
ERPC Web Dashboard: https://dashboard.erpc.global/en
Once the first updates arrive, check whether the data meets your application’s requirements. If you need raw Shreds, use “Prepare to compare raw Shreds” in the appendix to verify reception on one input before comparing two.
Can another path deliver the Shred your current path is still waiting for? If winners change, gaps are filled and required information becomes available sooner, multiple paths have concrete value. Confirming that value together with receiver capacity and cost gives you a basis for choosing a mesh.
ERPC adopted Shreds Mesh for Premium to place first-arrival selection on the delivery side. The same idea lets you combine ERPC with other feeds and extend first-arrival coverage across the paths and regions your project needs. Start with one target event and receiving point, then measure through to the time the information becomes usable. That is the starting point for choosing the next configuration.
Implementation appendix: Reproduce the model, then connect real logs
The accompanying measurement examples ZIP contains Python recording and analysis examples, plus a Rust UDP capture example. Start with the teaching model in the extracted
shreds-measurement directory, using Python 3.10 or later and the standard library. The following two analysis entry points need no network connection or subscription.Run the arrival-difference example first
First, examine arrival differences without setting a deadline or supplying a complete reference population.
bash
python3 compare_arrivals.py --examplepython3 compare_arrivals.py --exampleThe Shreds visible in this input are S1–S5: five items. A and B share three, with one A-only and one B-only item. For those same three items, the median receipt difference A−B is +3 ms and the validation-completion difference is −0.5 ms. S6 never appears in this log, so this entry point cannot discover its existence or its absence. Your first result is being able to distinguish Chapter 5's six-item reference from the five items observed here.
The cohort is selected by the earliest observed receipt of a copy subsequently validated.
followup_ns specifies how long to wait for other copies after that origin; it is an observation duration, not the application's deadline. For real logs, supply configuration, receipt/validation events and recorder status. README.en.md provides the command and minimal configuration. No generation timestamp, external Shred reference or application reference is required. This entry point measures arrival differences within the observed union; it does not report reception of all generated Shreds or actual deadline-hit rates.Read results with deadlines and a reference population
Once you can define the deadline and reference population, use the next entry point. It passes teaching events through a bounded recording queue and includes deadline rescue and supplied application-completion callbacks.
bash
python3 run_example.py
python3 -m unittest discover -vpython3 run_example.py
python3 -m unittest discover -vTo save the result, run
python3 run_example.py --output local-model-run with an output directory that does not yet exist. This preserves the run configuration, event log, recorder status, and Markdown and JSON reports together. The five results below use the default 8 ms deadline. All values are invented teaching inputs, not live delivery measurements.In the output,
p50 means median and Δ means left path minus right path. For A/B, Receipt Δ p50 is +3 ms: the median receipt difference places A 3 ms later. Same-cohort validation Δ p50 is −0.5 ms: for those same three items, the median validation-completion difference places A 0.5 ms earlier. Same-cohort means the same comparison population. Neither in declared reference counts items in the declared reference observed on neither side.| Report item | Result for this input | What it tells you |
|---|---|---|
| Recorder status | 44 events attempted and 44 written; no recording-queue drops | This checks recorder loss, not the absence of upstream or NIC loss |
| A/B receipt populations | 3 common, 1 A-only, 1 B-only, 1 seen by neither | Speed on the common set cannot explain the other three items |
| Median A−B for the same three items | +3 ms at receipt; −0.5 ms at validation completion | B can arrive earlier while the advantage changes at the usable stage |
| Deadline rescue from adding C | 1/3 when added to A; 0/1 when added to A+B | The candidate's value depends on the paths already in use |
| A → A+B for two separate application events | 1 rescued, 1 newly missed; difference 0/2 | Rescues alone are not an adoption decision |
Receipt populations use S1–S6 from Chapter 5. The application example uses separate events E1 and E2. E1 completes at 14 ms on A, 9 ms on B and 5 ms on A+B. E2 completes at 4 ms on A and 12 ms on A+B. Against the 8 ms deadline, one event is rescued and another is delayed. A+B's timestamps are supplied completion callbacks from the combined processing strategy, not minima computed from A's and B's completion times.
Keep the same input and change only the deadline to 4 ms.
bash
python3 run_example.py --deadline-ms 4python3 run_example.py --deadline-ms 4The Chapter 7 row that adds C to A+B now moves from 3/6 to 4/6 on-time items. Without changing any recorded arrival, you can reproduce how the chosen deadline changes the candidate's marginal value.
Connect recording points to real logs
For arrival comparisons, record receipt and verification. Add completion records to compare when data becomes usable by the application. The recording points in an existing receiver are:
received: join the source and acopy_idunique to that copy with the monotonic timestamp retained immediately after the socket read.validated/rejected: join the same source andcopy_idwith the existing verification outcome and its completion timestamp.application_ready: join the actual completion of identifying the required information with network, slot, event ID, content/fork identity and strategy name. Do not emit this record after every individual Shred validation.
For verified Shreds, retain network, slot, Shred version, index, Data/Coding type and a verified content identifier. The example uses a verified Merkle root, a hash used to verify a group of fragments. Recording
validated or payload_valid: true does not perform cryptographic verification. Join application completions by the same logical event, rather than a Shred copy ID.recorder.py handles bounded queue recording; experiment.py performs analysis. For analysis that includes deadlines and application completion, use real logs in this format with the WORKFLOW.md command, supplying the configuration, Shred reference, event log, recorder status and application reference. Declare the application population and completion boundary separately from those for Shreds. When recording loss is known or unknown, or receipt and validation stages cannot be joined, the tool retains diagnostic counts and withholds comparison tables.A hash of the entire raw UDP payload can identify byte-for-byte copies. It is not necessarily an identity for the same verified Shred, because some formats contain fields such as retransmitter signatures that can differ between copies. Cluster Shred version is also distinct from wire-format version. Record the parsed variant, decoder version and content-comparison rule. [2] [5]
Connect real logs by preserving the timestamp immediately after receipt, passing the input through the existing correct verification boundary, and sending the result with its original timestamp to a bounded recording queue. Keep heavy aggregation outside the receive loop and count recording-queue losses. The same
clock_id label does not make monotonic clocks on different hosts directly comparable.Align measurement points, origins and load
The reference itself can also move. Consider a separate one-item explanatory model: the same receiver clock records B receiving a Shred at 100 ms and A at 110 ms. From that same record, using A’s first receipt as the origin gives A a delay of 0 ms. Changing the origin to the first receipt across A+B gives A a delay of 10 ms. A still arrived at 110 ms. If A now misses an 8 ms allowance from the origin, that is not evidence that added load made A slower.
Keep the measurement point consistent. User-space timestamps immediately after receipt include operating-system queuing and scheduling. NIC or kernel timestamps must likewise be used consistently across compared inputs. Count NIC and socket drops, recording-queue losses, verification failures and conflicts. Check that the measurement system is not losing its own observations.
Even on one host, socket-read order and logging load can enter the measured difference. Repeat the experiment with ports assigned to different processing tasks, and with different recording loads, to check whether the result follows the receiver's processing arrangement.
Two configurations running simultaneously on one host share CPU and queues. Their results need not match either configuration running alone. Investigate added load through repeated alternating configurations or replay of the same saved input, and report live and replay results separately. Different events from separate windows are not a same-item comparison, and replay cannot recover data dropped during recording.
Prepare to compare raw Shreds
After receiving the first updates, check whether that data meets your application's needs. If you need raw Shreds, prepare the comparison in this order.
- Receive one UDP input: A receiver supports the required format and records immediate receipt timestamps and packet drops.
- Verify the Shreds: Slot leader information comes from a trusted source, and format, expected cluster Shred version, proofs and signatures are checked. Copies that cannot be verified are not accepted as valid.
- Produce validated records: Each copy's receipt is joined to its validation outcome, retaining the original timestamp, content identity, duplicates, conflicts and recording loss.
- Compare two inputs: Both inputs use the same clock and observation window, allowing comparison of same-Shred arrival differences and one-sided receipts.
The accompanying Rust example receives and verifies UDP input through the public SDK, then produces records for the Python analyzer. You can first check that connection with one synthetic packet and no subscription. Connecting an actual feed requires your own reception settings and verification inputs. One way to obtain slot leader information is to call
getSlotLeaders on a trusted RPC for the same network, obtaining the validator identity for each slot. Trust in that source is part of the verification conditions. [5] [12]shreds-capture-rs/README.en.md gives the first-start-to-analysis commands; CAPTURE-GUIDE.md identifies the recording points in an existing receiver. Choose the entry point that matches your current reception stage.Follow one Rust input from receipt to analysis
One public implementation option is the Rust UDP pipeline in Solana Stream SDK. The version checked is 5.0.0, at reference commit
3b22307033ec6d7b78242d3b4cc9f3168209dcfd, under Apache-2.0. As of November 27, 2026, the repository is not archived and this decoder targets the Agave 4.4.1 Shred format. [5] [7]Move to
shreds-capture-rs in the same ZIP to connect one packet's receipt to its analysis using this SDK. It requires Rust 1.99.1 and a build environment; the first build downloads the pinned SDK and dependencies. See README.en.md in that directory for preparation, and choose an output directory that does not yet exist.bash
python3 run_loopback.py --output first-udp-checkpython3 run_loopback.py --output first-udp-checkThe command creates a synthetic signed Shred and sends it to a local UDP socket. Success produces
listening and first_verified messages, two rows (received and validated) with the same copy_id, recorder status, and a Python report. This is a one-input check, so it reports no between-path arrival difference. You can confirm that socket initialization, verification, preservation of the original receipt time and transfer into analysis work together.For this article, the example was built and run from receipt of one packet through report generation. The packet contents are synthetic; the receipt and validation-completion times are actual local observations. They do not measure ERPC delivery performance or latency from generation.
For your own feed, pass the README's one-input command your existing reception settings, trusted slot leader information for the same network, and the expected Shred version. A
getSlotLeaders response does not supply the Shred version. Confirm one input's records before adding a second distinguishable port for comparison. The user supplies the socket-to-plan mapping; the code does not authenticate a sender's subscription plan.The capture example converts
UdpDatagram.received_at to one shared Instant origin and preserves that receipt time. Because the standard UDP loop does not automatically verify the leader signature, the example explicitly calls shred::wire::verify_shred, runs the SDK's structural checks and checks the expected version. It records each passing copy before deduplication and retains failed verification as a rejection. [5]This is a finite connection check. Synchronous verification and writing can delay socket draining. NIC and operating-system drop counts remain unknown, and it implements neither FEC nor application completion. For a workload comparison, integrate the observation points into your existing receiver and measure reception and recording costs. Before using the pinned SDK in a live receiver, review the dependency-maintenance advisory and adoption notes in the accompanying README. [7]
Analyzer conditions and implementation languages
The accompanying analyzer retains minimum receipt times independently of file order. It rejects mixed runs or clocks, insufficient observation time, and exceeded input/state limits. A conflicting reference item stays in the denominator and is quarantined. Conflict adjudication uses the whole capture, so a conflict found after an arrival deadline can change that item's classification retroactively. Align both the set of paths and the time window used for conflict adjudication in before-and-after comparisons.
Do not fill unknown generation times or an incomplete reference population with invented values. The accompanying README describes using the observed union as the reference and each Shred's first valid receipt as its origin. The resulting offsets measure delay from first observation, not generation, and cannot count Shreds missed by every path.
Choose languages by their role. Designs using Rust, C/C++ or Zig for control over reception and memory layout, and designs integrating existing applications with Go or TypeScript on Node.js or Deno, should be evaluated against the required throughput and waiting time. Python can also serve post-capture analysis, as it does here. Preserve the same identity, verification and missing-data handling in every comparison.
For the different uses of Shreds and Geyser gRPC: https://erpc.global/en/news/2026/11/22/erpc-solana-grpc-getting-started-20261122/
The following instructions can be copied when asking an AI to investigate or implement changes. Choose A to inspect the current system, B to implement measurement, or C to decide whether to adopt a mesh.
Copyable instruction A: Analyze the current reception paths
text
Investigate my Solana receiver from its current code and configuration.
First read repository instructions and existing permissions. Identify the data
sources, receiving nodes, sockets/SDKs, forwarding, queues, verification,
deduplication, reconstruction and application-use points.
Separate public specifications, implementation facts, inferences and unknowns.
Do not infer internal paths or independence from product names or different IPs.
Inspect Shred identity, conflicting content, signature verification, missingness
and reconnection state. Preserve processing required for correctness.
Do not expose secrets or customer information.
Using records available within existing permissions, relate on-time reception,
unobserved items, duplicates, application availability, bandwidth, CPU, memory
and queue residence time. Distinguish monotonic from wall clocks, receipt from
verification completion, and clocks on different hosts. If records are missing,
specify the smallest useful recording change and observation period.
Return a path diagram, confirmed failure domains, evidence explaining symptoms,
a decision among no change / more observation / candidate changes, and a plan
for before-and-after comparison under the same conditions.
Do not change production settings, start subscriptions, incur charges, execute
real trades or send external messages. Identify the specific action and reason
if additional permission is needed.Investigate my Solana receiver from its current code and configuration.
First read repository instructions and existing permissions. Identify the data
sources, receiving nodes, sockets/SDKs, forwarding, queues, verification,
deduplication, reconstruction and application-use points.
Separate public specifications, implementation facts, inferences and unknowns.
Do not infer internal paths or independence from product names or different IPs.
Inspect Shred identity, conflicting content, signature verification, missingness
and reconnection state. Preserve processing required for correctness.
Do not expose secrets or customer information.
Using records available within existing permissions, relate on-time reception,
unobserved items, duplicates, application availability, bandwidth, CPU, memory
and queue residence time. Distinguish monotonic from wall clocks, receipt from
verification completion, and clocks on different hosts. If records are missing,
specify the smallest useful recording change and observation period.
Return a path diagram, confirmed failure domains, evidence explaining symptoms,
a decision among no change / more observation / candidate changes, and a plan
for before-and-after comparison under the same conditions.
Do not change production settings, start subscriptions, incur charges, execute
real trades or send external messages. Identify the specific action and reason
if additional permission is needed.Copyable instruction B: Measure First Arrival
text
Read my existing Solana receive code, then implement and verify First Arrival
measurement. Follow current repository instructions and existing permissions.
Preserve verification and state consistency.
Define the same Shred using network, Shred version, slot, index, Data/Coding type
and verified content. Keep conflicts separate from ordinary duplicates.
If comparing entire UDP payloads, label this as byte-for-byte equality.
Record the monotonic time immediately after receipt in the same receiving
environment, observation window and measurement point. Separate verification
completion and application availability. Do not reinterpret asynchronous
completion order as receipt order.
Define the application reference, content/fork identity and completion boundary
separately from Shreds. Record the merged strategy's actual final callback.
Do not infer its completion time from the minimum of standalone completions.
Fix the reference population and completeness, target slots/window, Data/Coding
scope, deadline and origin, observation grace period, drop counters,
verification failures, conflicts and tie policy. Within one analysis, share
one reference set and per-item origins across configurations; do not rebuild
them separately. Distinguish gaps revealed by a larger reference from new drops.
Report common-set arrival differences alongside per-path on-time, late
and unobserved items.
If using the observed union as reference, state that it cannot count items
missed by every path. Give the population, count and quantile method for means,
medians, p95/p99 and first-arrival rates.
Check recording losses. Verify identity, duplicates, conflicts and deadlines
with finite inputs. Compare before and after under the same conditions, and
do not invent unmeasured improvement rates.
Do not change production, start subscriptions, incur charges, execute real
trades, send external messages or expose secrets. Report completed checks,
unknowns and reproduction commands separately.Read my existing Solana receive code, then implement and verify First Arrival
measurement. Follow current repository instructions and existing permissions.
Preserve verification and state consistency.
Define the same Shred using network, Shred version, slot, index, Data/Coding type
and verified content. Keep conflicts separate from ordinary duplicates.
If comparing entire UDP payloads, label this as byte-for-byte equality.
Record the monotonic time immediately after receipt in the same receiving
environment, observation window and measurement point. Separate verification
completion and application availability. Do not reinterpret asynchronous
completion order as receipt order.
Define the application reference, content/fork identity and completion boundary
separately from Shreds. Record the merged strategy's actual final callback.
Do not infer its completion time from the minimum of standalone completions.
Fix the reference population and completeness, target slots/window, Data/Coding
scope, deadline and origin, observation grace period, drop counters,
verification failures, conflicts and tie policy. Within one analysis, share
one reference set and per-item origins across configurations; do not rebuild
them separately. Distinguish gaps revealed by a larger reference from new drops.
Report common-set arrival differences alongside per-path on-time, late
and unobserved items.
If using the observed union as reference, state that it cannot count items
missed by every path. Give the population, count and quantile method for means,
medians, p95/p99 and first-arrival rates.
Check recording losses. Verify identity, duplicates, conflicts and deadlines
with finite inputs. Compare before and after under the same conditions, and
do not invent unmeasured improvement rates.
Do not change production, start subscriptions, incur charges, execute real
trades, send external messages or expose secrets. Report completed checks,
unknowns and reproduction commands separately.Copyable instruction C: Decide whether to adopt a mesh
text
Inspect current code, configuration, operating requirements, repository
instructions and existing permissions. Decide whether to keep one path or
use multiple paths or a delivery mesh. Define required data, deadlines,
correctness and tolerable failures without assuming adoption is the answer.
Compare candidate combinations of ERPC and other feeds at the same receiver.
Distinguish focusing on one region from selecting first arrivals in several
or all target regions. Evaluate processing location, latency priorities,
required scope and cost. Distinguish transfer time for selection within each
region from transfer time for aggregation at one central receiver.
Inspect actual on-time reception, unobserved items, ties, conflicts,
arrival-difference distributions and application availability. Do not confuse
a mean over common items with overall reception. Investigate shared upstreams,
network paths, providers, receivers and other failure domains, and count items
one path supplies when another does not. Different IPs or region names do not
establish independence. Separate provider-side first-arrival selection from
merging multiple inputs at the customer's receiver.
Compare bandwidth, transfer cost, CPU, RSS, signature verification, duplicate
state, queues and operating work. Preserve correctness checks and compare
before and after with the same inputs and completion criteria. Detect cases
where earlier receipt makes reconstruction or application use later.
Among the current paths' deadline misses, count those the candidate rescues.
For observed configurations, also count newly missed deadlines for the same
reference events. Separate offline minima from observations that include
the processing load.
Return adoption conditions, conditions for keeping the current configuration,
evidence, missing information, the smallest useful comparison, and limits,
monitoring and rollback for adoption.
Do not change production settings, start subscriptions, incur charges, execute
real trades or send external messages. State the reason and target for any
additional permissions; do not expand existing authorization yourself.Inspect current code, configuration, operating requirements, repository
instructions and existing permissions. Decide whether to keep one path or
use multiple paths or a delivery mesh. Define required data, deadlines,
correctness and tolerable failures without assuming adoption is the answer.
Compare candidate combinations of ERPC and other feeds at the same receiver.
Distinguish focusing on one region from selecting first arrivals in several
or all target regions. Evaluate processing location, latency priorities,
required scope and cost. Distinguish transfer time for selection within each
region from transfer time for aggregation at one central receiver.
Inspect actual on-time reception, unobserved items, ties, conflicts,
arrival-difference distributions and application availability. Do not confuse
a mean over common items with overall reception. Investigate shared upstreams,
network paths, providers, receivers and other failure domains, and count items
one path supplies when another does not. Different IPs or region names do not
establish independence. Separate provider-side first-arrival selection from
merging multiple inputs at the customer's receiver.
Compare bandwidth, transfer cost, CPU, RSS, signature verification, duplicate
state, queues and operating work. Preserve correctness checks and compare
before and after with the same inputs and completion criteria. Detect cases
where earlier receipt makes reconstruction or application use later.
Among the current paths' deadline misses, count those the candidate rescues.
For observed configurations, also count newly missed deadlines for the same
reference events. Separate offline minima from observations that include
the processing load.
Return adoption conditions, conditions for keeping the current configuration,
evidence, missing information, the smallest useful comparison, and limits,
monitoring and rollback for adoption.
Do not change production settings, start subscriptions, incur charges, execute
real trades or send external messages. State the reason and target for any
additional permissions; do not expand existing authorization yourself.References
Checked November 27, 2026. Figure values and the Python teaching inputs are explanatory models. The sources below support public product specifications, open-source details, existing observations and eligibility terms.
- Solana Validator Documentation, Turbine Block Propagation https://edge.docs.solanalabs.com/consensus/turbine-block-propagation
- Agave, Shred identity, format and Merkle implementation. This reference commit does not identify ERPC's deployed version. https://github.com/anza-xyz/agave/blob/318c00ca5aab27ad348e19f7a0c3c3ae7f229ed6/ledger/src/shred.rs https://github.com/anza-xyz/agave/blob/318c00ca5aab27ad348e19f7a0c3c3ae7f229ed6/ledger/src/shred/merkle.rs
- ERPC, published UDP Forwarding specifications and existing observation conditions https://erpc.global/en/doc/shredstream/udp-forwarding/
- ERPC, Shreds FAQ https://erpc.global/en/faq/shreds/general/
- Solana Stream SDK, UDP Shreds and signature verification https://github.com/ValidatorsDAO/solana-stream/blob/3b22307033ec6d7b78242d3b4cc9f3168209dcfd/docs/udp-shreds.md https://github.com/ValidatorsDAO/solana-stream/blob/3b22307033ec6d7b78242d3b4cc9f3168209dcfd/docs/migration-v5.md https://github.com/ValidatorsDAO/solana-stream/blob/3b22307033ec6d7b78242d3b4cc9f3168209dcfd/crate/solana-stream-sdk/src/shreds_udp.rs
- Python, monotonic clocks https://docs.python.org/3/library/time.html#time.monotonic_ns
- Solana Stream SDK 5.0.0, manifest and license https://github.com/ValidatorsDAO/solana-stream/releases/tag/v5.0.0 https://github.com/ValidatorsDAO/solana-stream/blob/3b22307033ec6d7b78242d3b4cc9f3168209dcfd/crate/solana-stream-sdk/Cargo.toml https://github.com/ValidatorsDAO/solana-stream/actions/runs/44748190064
- ERPC, first-use trial eligibility and terms https://erpc.global/en/faq/how-to-start/general/
- ERPC, Shreds delivery forms and terms https://erpc.global/en/shreds/
- ERPC, first-receiver Geyser gRPC instructions. Follow the linked guide for language-specific SDK setup. https://erpc.global/en/doc/geyser-grpc/quickstart/
- ERPC, Geyser gRPC filters and current Shared subscription rules https://erpc.global/en/doc/geyser-grpc/filter/
- Solana Developer Docs, getSlotLeaders: validator identities for a specified slot range https://solana.com/developers/docs/rpc/http/getslotleaders
- ERPC, Shreds UDP Forwarding Premium launch: single-node Standard and mesh delivery using first arrivals from multiple nodes https://erpc.global/en/news/2026/11/03/erpc-shreds-udp-forwarding-premium-20261103/









