Multicast
Quick definition
Multicast is a network communication method that allows a sender to distribute data to multiple recipients simultaneously, without transmitting a separate copy to each recipient. In electronic trading, multicast typically refers to UDP multicast, which is widely used by financial exchanges to distribute real-time market data efficiently and with low latency.
Most high-throughput exchange market data feeds use UDP multicast to distribute trades and order book updates to multiple subscribers simultaneously.
Unlike unicast, which requires the sender to transmit a separate copy of the data to each recipient, multicast allows the sender to transmit a single copy to a multicast group, with network switches and routers replicating packets to the subscribed recipients.
This makes multicast particularly suitable for financial exchanges, where thousands of subscribers may need to receive the same market data with minimal latency and without increasing the exchange's outbound bandwidth proportionally to the number of subscribers.
Examples of market data feeds that use UDP multicast include:
- CME Globex MDP 3.0, which uses UDP multicast to distribute futures and options market data through redundant feeds.
- Nasdaq TotalView-ITCH, which supports UDP multicast through the MoldUDP64 protocol, alongside TCP unicast through SoupBinTCP.
- Cboe PITCH, which uses UDP multicast to distribute order book updates for US equities.
- ICE iMpact, which supports multicast distribution of market data, with TCP-based services available for instrument definitions and historical replay
Unlike TCP, UDP does not guarantee packet delivery, ordering, or retransmission. Packets may be lost, duplicated, or received out of order, particularly during bursts of market activity or periods of network congestion.
To address this, exchange multicast protocols typically assign sequence numbers to messages, allowing subscribers to detect gaps in the received stream. When a gap is detected, the subscriber can attempt to recover the missing messages through a separate recovery mechanism, often using unicast.
For example, Nasdaq's MoldUDP64 protocol allows subscribers to request retransmission of missing messages from a recovery server. Other exchanges provide snapshot or replay services that allow subscribers to reconstruct the order book after packet loss.
Many exchanges also distribute market data over redundant multicast feeds, commonly called A/B feeds, which carry duplicate copies of the same data over separate network paths. A subscriber can combine packets from both feeds to recover losses without requesting retransmission, provided at least one copy of each message arrives successfully.
These recovery mechanisms are particularly important for market-by-order (MBO) feeds, where missing even a single order book update can cause the subscriber's reconstructed book to become inconsistent with the exchange and result in errant states like a crossed book (i.e., an inverted spread).
The primary advantages of UDP multicast are scalability and low latency. UDP does not require connection establishment, acknowledgments, or retransmission before delivering subsequent packets to an application. This avoids TCP's head-of-line blocking, where packet loss can delay the delivery of later messages.
However, multicast shifts the responsibility for packet sequencing, loss detection, and recovery to the application. Feed handlers must implement these mechanisms correctly to maintain an accurate view of the market.
Consequently, UDP multicast is generally preferred for high-throughput, one-to-many market data distribution, while TCP unicast is more commonly used for order entry, private execution reports, and market data recovery services.