An In-Depth Technical Deep Dive into the TPU Pipeline, Scheduler Concurrency, Local Fee Markets, and Jito Block Building
Author: Magomed Taneev (@magomedta)
Target: Superteam Ukraine Technical Research Bounty
Category: Solana Architecture, Validator Mechanics, MEV & Infrastructure
Unlike traditional discrete-slot blockchains like Ethereum—where block builders assemble an entire block from an off-chain mempool every 12 seconds via Proposer-Builder Separation (PBS)—Solana operates on a continuous block production pipeline. Every 400 milliseconds, the designated leader streams freshly executed batches of transactions ("entries") into the network in real-time, shredded and propagated across the cluster before the slot has even concluded.
This paper provides an end-to-end, source-level technical analysis of how Solana validators receive, verify, schedule, and order transactions. We deconstruct the Transaction Processing Unit (TPU) pipeline, examine the internal locking mechanisms of the Banking Stage, demystify Priority Fees and Compute Budget scheduling, explore the evolution of Solana MEV through Jito-Solana bundle auctions, and evaluate next-generation scaling paradigms including Stake-Weighted QoS (SWQoS) and Firedancer.
In discrete architectures (e.g., Ethereum), validators collect transactions in a public or private mempool, execute an auction (via MEV-Boost / PBS), build a single sealed Merkle-patricia tree block, and broadcast it atomically.
Solana fundamentally departs from this:
- Slot Duration: ~400 ms.
- Epoch: 432,000 slots (~2–2.5 days).
- Leader Schedule: Deterministically computed at the start of each epoch based on stake weight. Leaders are assigned consecutive runs of 4 slots (1.6 seconds).
- Streaming Pipeline: The leader does not wait 400 ms to compile a block. As soon as transactions arrive, they are parsed, signature-verified, sequenced into the Proof of History (PoH) hash chain, executed against accounts in memory, and immediately shredded into Erasure-coded packets transmitted via Turbine.
flowchart LR
subgraph Traditional["Discrete Blockchains (e.g., Ethereum)"]
direction TB
Mempool["Mempool Accumulation (12s)"] --> Auction["PBS / Builder Auction"]
Auction --> FullBlock["Single Sealed Block Broadcast"]
end
subgraph Solana["Solana Continuous Streaming"]
direction TB
QUIC["QUIC Stream Packets"] --> TPU["TPU Banking Stage Pipeline"]
TPU --> PoH["PoH Sequential Tick Hash"]
PoH --> Shreds["Continuous Shredding & Turbine Propagation (<400ms)"]
end
Proof of History (
Transactions are serialized into the stream by hashing their message hashes directly into the running PoH state:
Because cryptographic hashing cannot be parallelized, PoH guarantees that transaction
When an RPC node or searcher sends a transaction to the current leader, it enters the TPU Pipeline. The TPU consists of five concurrent stages running across dedicated hardware threads:
flowchart TD
Packets["Incoming UDP/QUIC Traffic"] --> FetchStage["Fetch Stage (QUIC Endpoints & SWQoS Filtering)"]
FetchStage --> SigVerify["SigVerify Stage (GPU/SIMD Batch Verification)"]
SigVerify --> BankingStage["Banking Stage (Scheduler, Lock Management, Execution)"]
BankingStage --> PoHRecorder["PoH Recorder (Cryptographic Serialization & Ticks)"]
PoHRecorder --> BroadcastStage["Broadcast Stage (Erasure Coding & Turbine Tree)"]
Historically, Solana used raw UDP. This caused vulnerability to UDP packet spoofing and massive packet-drop storms during high-volatility events (e.g., NFT mints or DEX liquidations).
In 2022–2023, Solana transitioned fully to QUIC over UDP. QUIC provides:
- Connection-oriented streams: Transport-level flow control prevents unbounded buffer saturation.
- Backpressure: Validators throttle clients exceeding packet thresholds.
- Stake-Weighted QoS (SWQoS): Connections and packet bandwidth allocations are prioritized proportionally to the validator/RPC's staked SOL.
Cryptographic verification of Ed25519 signatures is computationally expensive. Solana offloads this step to high-throughput batch verifiers:
- Packets are collected into batches (up to 128 packets per batch).
- Verification runs in parallel using SIMD vector instructions (AVX-512) or hardware GPU acceleration (
sigverify::ed25519_verify). - Invalid packets are discarded before reaching the Banking Stage, shielding the core execution engine from invalid-signature denial of service.
The Banking Stage is the true engine of transaction ordering. It is where transactions are scheduled, account locks are acquired, and the Solana Virtual Machine (SVM) executes contract logic.
In the Agave (standard validator) client, the Banking Stage operates with multiple worker threads (typically 4, 8, or 16 depending on CPU topology).
flowchart TD
SigVerifiedPackets["Verified Transaction Packets"] --> Router["Channel Router / Packet Demux"]
subgraph BankingThreads["Concurrent Banking Threads"]
Thread1["Worker Thread 1 (Priority Queue)"]
Thread2["Worker Thread 2 (Priority Queue)"]
Thread3["Worker Thread 3 (Priority Queue)"]
Thread4["Worker Thread 4 (Priority Queue)"]
end
Router --> Thread1
Router --> Thread2
Router --> Thread3
Router --> Thread4
subgraph Execution["State Lock Manager"]
Locks["Account Lock Table (Read-Write Locks)"]
SVM["Solana Virtual Machine (SVM) Runtime"]
end
Thread1 --> Locks
Thread2 --> Locks
Thread3 --> Locks
Thread4 --> Locks
Locks --> SVM
Solana achieves high throughput (thousands of TPS) through parallel execution of non-overlapping transactions.
Every Solana transaction explicitly declares all accounts it will read and write in its header:
readonly_accounts: Concurrent reads allowed.writable_accounts: Exclusive read/write lock required.
// Solana account locking logic representation
pub struct TransactionAccountLocks<'a> {
pub writable: Vec<&'a Pubkey>,
pub readonly: Vec<&'a Pubkey>,
}When a Banking Stage thread attempts to process a batch:
- Lock Acquisition: It attempts to acquire non-blocking write locks on all writable accounts and read locks on all read-only accounts.
- Conflict Resolution: If any account in the transaction is currently locked by another concurrent thread, lock acquisition fails.
- Retry / Stashing: The conflicted transaction is not discarded; it is held in a local buffer or re-queued to be executed in the next scheduling cycle once the occupying transaction completes and releases its locks.
Unlike Ethereum's EIP-1559 (where a single global base fee governs all block inclusion), Solana implements Local Fee Markets driven by the Compute Budget Program:
Transactions specify two compute parameters:
-
SetComputeUnitLimit(limit): Maximum compute units ($CU$ , e.g., 200,000). -
SetComputeUnitPrice(micro_lamports): Priority fee per$CU$ offered to the validator.
The total fee paid by the transaction is:
In modern Agave scheduler implementations (CentralScheduler and ThreadScheduler):
- Incoming transactions are queued in priority order:
- Transactions offering higher Micro-Lamports per CU are pulled from the queue first.
- Account-Level CU Limits (Anti-Hotspotting): To prevent a single popular decentralized exchange pool (e.g., SOL/USDC Raydium pool) from monopolizing the entire block, Solana enforces a hard account-write saturation limit:
- Max compute units per block: 48,000,000 CU.
- Max compute units per write account: 12,000,000 CU (25% of the block limit).
Once an account hits the 12M CU cap in a given slot, no further transactions writing to that account can be scheduled, regardless of how high a priority fee they offer. Transactions writing to unrelated accounts (e.g., Orca, Meteora, Phoenix) continue processing unobstructed.
xychart-beta
title "Block Compute Unit (CU) Allocation per Slot (48M Total)"
x-axis ["Global Block Limit", "Hotspot Account Cap (Raydium)", "Remaining Blockspace for Other Apps"]
y-axis "Compute Units (Millions)" 0 --> 50
bar [48, 12, 36]
Despite priority fees, default validator scheduling is subject to network jitter, packet drops, and thread race conditions. This created a major MEV challenge: searchers spammed thousands of duplicate transactions per second to win arbitrage race conditions.
To eliminate spam and capture MEV efficiently, Jito Labs introduced a modified validator client (jito-solana) now run by >80% of Solana's validator stake.
flowchart TD
subgraph Searchers["MEV Searchers & Arbitrage Bots"]
Bot1["Searcher Bot A"]
Bot2["Searcher Bot B"]
end
subgraph JitoRelayer["Jito Block Engine (Off-Chain Auction)"]
BE["Flashbots-style Bundle Auction Engine"]
Auction["Calculates Highest Tip per CU Bundle"]
end
subgraph JitoValidator["Jito-Modified Validator Leader"]
JitoTPU["Jito TPU Receiver"]
VanillaTPU["Standard QUIC Stream"]
Scheduler["Hybrid Scheduler"]
Banking["Banking Stage Execution"]
TipProgram["Jito Tip Payment Program"]
end
Bot1 -- "Atomic Bundle + Tip" --> BE
Bot2 -- "Atomic Bundle + Tip" --> BE
BE --> Auction
Auction -- "Winning Bundle (Guaranteed Order)" --> JitoTPU
JitoTPU --> Scheduler
VanillaTPU --> Scheduler
Scheduler --> Banking
Banking --> TipProgram
- Atomic Execution: A Jito bundle is a sequential list of up to 5 transactions executed atomically: either all execute in the exact order specified, or all fail.
- Reversion Protection: If a bundle reverts, it is discarded before committing state, saving blockspace.
- Explicit Tipping: Instead of burning fees, bundles transfer a direct tip to an official Jito tip account (
TipDistributionAccount), which distributes rewards:- Validator operator: ~5% commission.
- SOL Stakers: ~95% distributed directly to stakers as MEV yield.
- Ordering Priority: Jito-Solana reserves the first positions of execution slots or interleaves bundles at top-priority execution intervals directly ahead of vanilla QUIC packets.
In March 2024, Jito took the unprecedented step of disabling the Jito public mempool to eliminate malicious "sandwich attacks" on retail users. Today, Jito bundles are strictly routed through private searcher endpoints directly into the Block Engine, protecting everyday users from front-running while enabling pure backrunning arbitrage and liquidation auctions.
To illustrate transaction ordering in practice, consider a large DEX swap followed by an arbitrage opportunity:
[Transaction 0: Retail Swap]
User swaps 500 SOL for USDC on Raydium AMM
-> Pushes Raydium price of SOL down relative to Orca Whirlpool
[Transaction 1: Jito Searcher Backrun Bundle]
Searcher detects the price discrepancy
-> Step 1: Buy undervalued SOL on Raydium
-> Step 2: Sell SOL on Orca Whirlpools for USDC
-> Step 3: Transfer 0.05 SOL to Jito Tip Distribution Account
Under vanilla ordering:
- Multiple searchers spam hundreds of transactions competing to land immediately after Transaction 0.
- Packet drops and latency determine the winner, congesting the network.
Under Jito-Solana:
- The searcher simulates the backrun off-chain.
- Submits an atomic bundle
[Tx_User, Tx_Arbitrage, Tx_Tip]. - Jito Block Engine evaluates all searcher bids, selects the highest tip, and commits the ordered bundle directly to the leader's Banking Stage.
Implemented in Solana v1.18+, SWQoS addresses Sybil attacks at the network layer:
- A leader allocates its QUIC bandwidth and connection pool proportionally to the stake backing the incoming transaction source.
- An RPC staked with 2% of network stake is guaranteed 2% of the leader's incoming packet capacity.
- This creates predictable transaction delivery for legitimate dApps and trading desks without network congestion.
Developed by Jump Crypto, Firedancer completely rearchitects the TPU pipeline:
- Written in pure C/C++ with zero external runtime dependencies.
- Replaces the multi-threaded lock-contended Banking Stage with modular hardware-isolated cores communicating via lock-free ring buffers (tiles):
net tile: Line-rate packet capture via AF_XDP.quilt tile: QUIC stream reassembly.poh tile: Hardware-accelerated continuous PoH hashing.bank tile: Custom parallel execution engine capable of executing >1,000,000 TPS in synthetic benchmarks.
flowchart LR
NIC["100GbE NIC (AF_XDP)"] --> NetTile["net tile"]
NetTile --> QuiltTile["quilt tile (QUIC Reassembly)"]
QuiltTile --> PackTile["pack tile (Priority & Dedupe)"]
PackTile --> BankTile["bank tile (SVM Execution)"]
BankTile --> PoHTile["poh tile (Tick Recording)"]
PoHTile --> ShredTile["shred tile (Turbine Broadcast)"]
| Attribute | Vanilla Solana (Agave) | Jito-Solana | Firedancer (Next-Gen) |
|---|---|---|---|
| Ingress Transport | QUIC over UDP | QUIC + Private Relayer RPC | Zero-copy AF_XDP QUIC |
| Queue Mechanism | Per-thread Priority Queue | Off-chain Bundle Auction + Priority Queue | Lock-free Ring Buffer Tiles |
| Priority Metric | Micro-lamports per CU | Jito Tip in SOL + Priority Fee | Micro-lamports per CU + SWQoS Weight |
| Atomicity | Single Transaction | Atomic Bundles (up to 5 Txs) | Single Transaction + Native Bundles |
| Reversion Penalty | Failed Txs included in block & pay fee | Unsuccessful bundles dropped off-chain | High-speed filtering & minimal overhead |
| Sandwich Attack Defense | Natural latency barrier | Private Auction (No public mempool) | Microsecond packet pipeline |
Transaction ordering in Solana is a masterclass in distributed systems design. By discarding the traditional global mempool in favor of a continuous pipeline bound to Proof of History, Solana achieves sub-second settlement and massive scale.
Transaction sequencing is governed not by miners reordering historical blocks, but by a deterministic interplay between:
- QUIC & SWQoS at the ingress layer.
- Account lock contention & Compute Budget prioritization in the Banking Stage.
- Off-chain bundle auctions (Jito-Solana) optimizing MEV capture and staker yields.
- Hardware-level optimizations (Firedancer) pushing validator execution to the theoretical physical limits of modern silicon.
Submitted for the Superteam Ukraine Research Bounty | Wallet: magomedta