↓ Skip to main content
  1. Posts/

Reliable Multicast × Securities & Fund Fintech: The Nervous System of Ultra-Fast Trading

Table of Contents

Reliable Multicast × Securities & Fund Fintech: The Nervous System of Ultra-Fast Trading
#

In the ultra-fast trading and in-memory database architecture of securities and fund fintech, if the “in-memory matching engine” is the heart and the “in-memory database” is the brain, then Reliable Multicast is the central nervous system and invisible highway connecting them.

In traditional internet architectures, TCP unicast is the absolute mainstream. But in the core link of financial trading — facing scenarios like “millions of concurrent market data pushes” or “millisecond-level risk control bypass monitoring” — TCP becomes a fatal performance bottleneck. At this point, Reliable Multicast emerges as the foundational bedrock supporting ultra-fast trading, in-memory data grids, and distributed risk control.


1. Why Does Financial Trading Need “Multicast”? And Why Must It Be “Reliable”?
#

1.1 The Achilles’ Heel of Unicast (TCP)
#

In traditional broker market data distribution or in-memory database cluster synchronization, using TCP unicast leads to:

  • Bandwidth black hole: Suppose an ultra-fast trading counter has 10,000 quantitative client subscriptions to the same stock’s tick data. With TCP, the server must replicate the same data 10,000 times, consuming enormous CPU and network bandwidth.
  • Head-of-line blocking: TCP is a byte-stream-oriented reliable protocol. If just one client experiences packet loss due to network jitter, TCP triggers retransmission and blocks all subsequent data transmission. In financial trading, “correct data that arrives late” equals “wrong data.”

1.2 The Fatal Flaw of Native Multicast (UDP Multicast)
#

To solve the bandwidth problem, the network layer offers UDP multicast (IP Multicast). The server sends a data packet once, and network switches (supporting IGMP/PIM protocols) automatically replicate the packet at branch nodes and distribute it to all subscribers.

  • Flaw: UDP provides “best-effort delivery” — no guarantee of arrival, no ordering, no congestion control. In complex financial data center networks, microburst traffic easily causes switch queue overflow and packet loss.

1.3 The Breakthrough: Reliable Multicast
#

Reliable Multicast = Broadcast efficiency of UDP multicast + Reliability guarantees at the application/protocol layer. It preserves the extremely low network overhead of “send once, receive many” while ensuring eventual data consistency without global blocking, through mechanisms such as Forward Error Correction (FEC) and selective Negative Acknowledgement (NACK) retransmission.


2. Core Technology Stack of Financial-Grade Reliable Multicast
#

In the securities and fund fintech domain, Reliable Multicast is not a single protocol but a highly customized engineering architecture.

2.1 Protocol Evolution
#

ProtocolMechanismUse CasesLimitations
PGM (Pragmatic General Multicast)NACK-based; receivers request retransmission only upon detecting lossEarly financial market data distributionRequires router support; difficult to deploy across public networks or clouds
NORM (NACK-Oriented Reliable Multicast)IETF standard; NACK-driven, supports congestion controlMilitary, satellite communications; some HFT firms adapt it for cross-datacenter synchronizationHigher complexity
Application-Level Reliable MulticastImplements multicast logic within the application layer (C++/Java engine); combines FEC and ARQCurrently the mainstream in financeNo network device dependency, but requires custom reliability handling

2.2 The “Three Pillars” of Financial Trading Systems
#

In modern ultra-fast trading and in-memory database architectures, the following three components/frameworks are the absolute workhorses of Reliable Multicast:

Aeron (High-Performance Messaging)
#

Developed by Real Logic, Aeron is currently the most revered ultra-low-latency messaging system on Wall Street and among top-tier quantitative firms in China. Built on UDP, it supports unicast, multicast, and IPC (inter-process communication). Its “Reliable Multicast” implementation is remarkably elegant: using memory-mapped files and lock-free ring buffers, combined with application-layer FEC encoding, it achieves microsecond-level latency for reliable multicast.

LMAX Disruptor (Multicast Event Handler)
#

In Java-based ultra-fast trading engines, the Disruptor is not only used for lock-free queues within a single thread; its Multicast EventProcessor mechanism allows a single trading event (e.g., an order execution) to be simultaneously and reliably dispatched to multiple downstream components (such as the clearing engine, risk control engine, and logging engine), with each component processing at its own pace without blocking others.

DPDK + RDMA (Kernel Bypass and Hardware Acceleration)
#

To squeeze multicast latency down to nanoseconds, modern ultra-fast trading counters employ DPDK (Data Plane Development Kit) to bypass the Linux kernel protocol stack and handle UDP multicast packets directly in user space. Combined with RDMA (Remote Direct Memory Access), they achieve zero-copy reliable multicast synchronization between in-memory database nodes.


3. Four Core Scenarios of Reliable Multicast in Securities & Fund Fintech
#

Scenario 1: Exchange Market Data Distribution and Ultra-Fast Counter Connectivity
#

  • Pain point: The Shanghai and Shenzhen exchanges’ Level-2 market data (step-by-step feed) is massive in volume and requires strict ordering and completeness (out-of-order data corrupts candlestick charts).
  • Application: Exchanges push market data to broker server rooms via physical multicast networks. The broker’s ultra-fast market data gateway receives the UDP multicast stream and uses a Reliable Multicast protocol (e.g., FEC-based correction) to reassemble data packets in memory. If a sequence gap (packet loss) is detected, the gateway does not block the entire stream. Instead, it requests retransmission of specific sequence numbers from the exchange via a dedicated TCP channel or a separate NACK multicast channel, ensuring zero-delay progression of the primary market data stream.

Scenario 2: Cluster State Synchronization for In-Memory Databases / Data Grids
#

  • Pain point: In distributed in-memory databases (e.g., Hazelcast, Apache Ignite, or proprietary ultra-fast trading in-memory ledgers), multiple nodes must maintain strong consistency of in-memory state (e.g., positions, balances).
  • Application: State machine replication is performed via Reliable Multicast. When a balance deduction occurs in the primary node’s memory, the operation is encapsulated as an instruction and sent to all standby nodes via Reliable Multicast. Standby nodes execute the instruction in the same order. If a standby node loses a packet, the system performs microsecond-level data repair within the in-memory grid using gossip protocols or NACK mechanisms, ensuring instantaneous failover with zero Recovery Point Objective (RPO).

Scenario 3: Bypass Risk Control (Tap & Mirror) and the “Non-Blocking” Principle
#

  • Pain point: Pre-trade risk control is a regulatory compliance baseline for securities trading. However, if the risk control engine is placed in series with the trading engine, even a few milliseconds of delay from risk control will cripple trading throughput.
  • Application: A “tap/mirror” mode using Reliable Multicast is employed. After the trading engine completes order validation and matching in memory, it “broadcasts” the order flow to a bypass risk control engine via Reliable Multicast.
    • Reliability guarantee: If the risk control engine processes slowly and drops packets, the trading engine does not wait — it continues processing the next order (ensuring ultra-fast trading). The risk control engine silently catches up by leveraging underlying Reliable Multicast mechanisms (e.g., persisting to an in-memory WAL or requesting retransmission) for “post-trade/near-real-time” compliance auditing. If the risk control engine detects a serious violation, it sends a “forced liquidation/cancel order” command to the trading engine via a unicast channel.

Scenario 4: Internal Strategy Distribution for Quantitative Hedge Funds (Algo Routing)
#

  • Pain point: Large quantitative firms have multiple strategy nodes (alpha research, portfolio optimization, order execution) that need to share real-time market microstructure data.
  • Application: Within the firm’s internal ultra-fast LAN, a data bus based on application-layer Reliable Multicast is constructed. After parsing tick data, the market data gateway publishes it via multicast onto the internal bus. All strategy nodes subscribe simultaneously. By introducing FEC (Forward Error Correction) redundant coding (e.g., sending 2 extra correction packets for every 10 data packets), even if the network suffers minor packet loss, strategy nodes can reconstruct the data directly from the correction packets, completely eliminating latency spikes caused by retransmission.

4. Engineering Challenge: How to Eliminate Latency Spikes?
#

In financial fintech, average latency is irrelevant; tail latency (99.99th percentile latency) is what determines life or death. The biggest challenge faced by Reliable Multicast is latency spikes caused by retransmission.

4.1 The Game-Changing Power of FEC (Forward Error Correction)
#

Traditional ARQ (Automatic Repeat reQuest) must wait for retransmitted packets when loss occurs, causing latency spikes. Financial-grade Reliable Multicast heavily employs FEC (e.g., Reed-Solomon coding).

  • Principle: The sender encodes \(K\) original data blocks into \(N\) blocks (\(N > K\)) and multicasts them together. As long as the receiver gets any \(K\) blocks (whether original or redundant), it can recover all original data through matrix operations.
  • Effect: Using a small amount of bandwidth redundancy (typically 10%–20%), zero retransmission is achieved, completely smoothing out tail latency spikes.

4.2 Multicast Trees and Topology Awareness
#

In cross-datacenter Reliable Multicast (e.g., Shanghai Zhangjiang to Shenzhen Futian), network topology is complex. The system must be aware of the physical network topology to construct optimal multicast trees. Through intelligent routing, multicast flows avoid microburst congestion at core switches, reducing packet loss at the physical level.

4.3 Timestamps and Reordering
#

Since multicast packets may arrive via different paths, the receiver must maintain a sliding window in memory. Using hardware timestamps (e.g., PTP/IEEE 1588 Precision Time Protocol) or sequence numbers, out-of-order multicast packets are reordered at microsecond granularity, ensuring that the upper-layer in-memory database or matching engine sees an absolutely ordered data stream.


5. Conclusion: The Philosophy of Reliable Multicast
#

In the context of securities and fund fintech, Reliable Multicast embodies an extreme engineering trade-off and balancing philosophy:

  1. Space for time: Sacrificing additional network bandwidth through FEC redundant coding in exchange for absolute “zero-retransmission” low latency.
  2. Decoupling and parallelism: Through the “send once, receive many” nature of multicast, originally serialized business functions (trading, risk control, clearing, logging) are fully decoupled, enabling memory-level parallel processing.
  3. Boundary between eventual consistency and strong consistency: Strong consistency is pursued in the primary trading chain (via in-memory WAL + multicast replication), while eventual consistency is tolerated in bypass monitoring (tolerating slight delays in Reliable Multicast), precisely delineating system boundaries.

In the future, with the proliferation of fully in-memory trading architectures and the intensification of quantitative high-frequency strategies, application-layer Reliable Multicast based on DPDK, Aeron, and FEC will completely replace traditional TCP messaging middleware (such as Kafka/RabbitMQ in core links), becoming the indispensable “main artery” of next-generation securities and fund fintech infrastructure.


References: This article is based on publicly available technical documentation, industry white papers, and engineering practices.

Related