← Technical Guides

Decode a trading PCAP with a venue specification

Bind captured TCP and UDP ports to a versioned trading protocol, decode a mixed OUCH, ITCH and FIX capture, and map a private quote layout without uploading either file.

A packet capture records network bytes and capture timestamps. A venue specification supplies the application version, channel framing, direction and field layout. The same one-byte message type can have different meanings in an order request, an acknowledgement and a multicast feed. Select the revision used by your gateway and the service ports at the observation point. Address translation can change those ports. Open Packet Capture

See the edition and transport matrix for every built-in FIX, ITCH and OUCH profile and its wire identifiers.

Work through a mixed capture

Open Run synthetic example or download the capture and its matching JSON. Both capture files contain the same ten Ethernet packets. The PCAPNG example carries nanosecond timestamps and the classic PCAP carries microsecond timestamps. Choose Upload venue spec JSON, select the file, then Decode capture. The result identifies the specification by name, revision and SHA-256. Example PCAP · Example PCAPNG · Matching specification

The OUCH enter order was split across two TCP segments. Packet 3 contains the end of the order, packet 4 contains its beginning, and packet 5 repeats the first twenty bytes. The reconstructed order appears once. Its start and end packet numbers follow the wire bytes and can run backwards relative to capture order. The private execution and the ITCH execution reference match number 9007199254740993. The local decoder preserves all its digits. The other channels contain a FIX 4.4 Heartbeat and a synthetic quote. The quote price is 100.2500 and its signed change is -1.25.

Choose or supply the specification

The bundled Nasdaq profile binds one OUCH 5.0 order port, one ITCH 5.0 SoupBinTCP feed port and one ITCH 5.0 MoldUDP64 destination port. Enter the actual port numbers before decoding. A dedicated FIX preset binds the advertised edition to a TCP service port. For a mid-session FIXT capture it supplies the negotiated default. A contradictory explicit application version is reported. Optional QuickFIX or Orchestra XML supplies venue field names. Upload multiple dictionaries for mixed-version captures, including a separate FIXT transport dictionary when needed. A QuickFIX 5.0 file without a service-pack attribute requires one unambiguous selected 5.0 edition. Version and transport matrix

For private protocols, use the downloadable JSON as a template. Set schema to 1, give the document a name and revision and declare each channel’s unique name, port and protocol. A profile can combine up to 16 channels. TCP bindings match the service port on either side. UDP bindings match the destination port. The report counts unbound TCP/UDP traffic. An ambiguous TCP port pair generates a finding.

Protocol identifier Framing
iex-gap-tcp, iex-gap-udp Native gap requests to the configured port and IEX-TP response segments from that port. Work through a missing range
iex-tops, iex-deep, iex-feed IEX-TP datagrams on a UDP destination port with TOPS 1.66 or DEEP 1.08 application messages. The combined feed binding reads the published protocol ID. Inspect an IEX quote alongside an order
ouch5-soup, itch5-soup Big-endian SoupBinTCP packet length and direction-specific packet type
itch5-mold One downstream MoldUDP64 datagram with a session and starting sequence
fix27, fix30, fix40, fix41, fix42, fix43, fix44, fix50, fix50sp1, fix50sp2, latest Raw SOH FIX on TCP, framed by BodyLength and the CheckSum trailer
binary-udp One custom application message per UDP datagram
binary-length TCP with a two-byte big-endian application length
binary-soup2, binary-soup3, binary-ouch-line, binary-mold32 LF-framed SoupTCP, CR-framed records or classic little-endian MoldUDP
binary-soup, binary-mold Custom application layouts within SoupBinTCP or downstream MoldUDP64

Custom messages use a one-byte discriminator. The channel’s optional integer typeOffset places it at a field boundary, counted from byte zero. List every field before and after it in wire order. The default offset is zero. Use its two-digit uppercase hex value as the key in messages. For example, 51 is the ASCII byte Q. To distinguish TCP request and response layouts for the same byte, use in:51 and out:51. In means traffic toward the declared service port. A direction-specific layout takes precedence over the common layout.

Omit the discriminator from the fields list. The digits type reads right-justified ASCII digits with optional left spaces and an optional decimal scale. Each field has a unique identifier, type and byte size. Unsigned uint and signed two’s-complement int fields take one through eight bytes. The optional scale is the number of implied decimal places. The channel endian setting defaults to big and an integer field can override it with little. ASCII and bytes fields take one through 256 bytes. A field marked redact is withheld from the display and export. A fixed-layout message must match its declared length exactly. Unknown types and mismatched lengths retain a diagnostic and their packet location.

A human-readable PDF can supply the message tables. Transcribe its type byte, field widths, byte order and price scale into the JSON, then check an independently known message before applying it to a larger capture. Variable-length private structures, executable dissectors and encrypted application payloads require additional decoder support. The tool reads declarative JSON and FIX XML.

Inspect an IEX TOPS datagram

Select Investors Exchange (IEX) and bind the market-data UDP destination port observed in your capture. The FIX order-entry TCP port is a separate binding. The synthetic example includes both. For an isolated message body or segment, choose the IEX market-data interface in the Decoder.

TOPS 1.66 identifies its stream with protocol 0x8003 on IEX-TP channel 1. A segment begins with a 40-byte little-endian header. Each message contributes a two-byte length prefix and the declared number of bytes to the stream offset. The first sequence number applies to the first block, and increments once per block. A heartbeat has no blocks and advertises the next sequence and byte offset. IEX Transport 1.26, pp. 5–7

The workbench reads quote updates (Q) and trade reports (T), preserves nanosecond timestamps and trade IDs, and displays prices to four decimal places. A zero-size, zero-price quote is valid. Other message types retain their framing and an explicit coverage note. New trailing fields on known messages are reported as extension bytes. DEEP uses protocol ID 0x8004. Its native trade and price-level updates, and TCP/UDP gap requests and responses, can be inspected on their configured service ports. IEX Equities TOPS 1.66, pp. 3–4 and 16–18

The inspector accepts empty or one-sided books, and flags crossed quotes, inconsistent price and size, and nonpositive execution prices for review. A trade with no executed shares is an error. Undocumented flag bits are reported as warnings and retained for inspection. TOPS describes prices as signed and allows new flag values in future revisions. IEX Equities TOPS 1.66, pp. 3–4, 16–18 and 26–27

Interpret gaps and timestamps

A TCP sequence number counts bytes. A MoldUDP64 sequence counts application messages. The analyzer unwraps TCP numbers across a 32-bit boundary, orders captured bytes per direction and compares retransmitted overlaps. A gap stops decoding that direction at the end of the contiguous prefix. A conflicting overlap withholds the ambiguous direction. A capture that starts without a handshake requires its earliest bytes to land on a known frame boundary. Separate TCP connections, directions, PCAPNG interfaces and VLANs keep independent histories. An observed new handshake starts a new connection when endpoints are reused.

For MoldUDP64, the first observed datagram establishes the session baseline. Later datagrams can expose missing, repeated or earlier sequence positions. A missing position describes what this capture observed. Packet loss at the recorder and a missing upstream transmission can produce the same evidence. Capture timestamps identify the first byte’s source packet. Exchange timestamps remain in application fields. Interface timestamp resolution and offset govern PCAPNG times, with fractions below a nanosecond rounded down. Simple Packet Blocks have no capture timestamp.

File and privacy boundaries

The reader accepts PCAP 2.4 in either byte order and PCAPNG 1.0 with multiple sections and interfaces, Enhanced, Simple and legacy Packet Blocks. It supports Ethernet with up to two VLAN headers, raw IPv4/IPv6 and Linux cooked captures v1 and v2. Complete unfragmented UDP and TCP payloads are supported. IP fragmentation, TLS decryption, IP/TCP/UDP checksum verification and arbitrary network tunnels are outside this reader. Capturing plaintext before encryption can provide application bytes when local policy permits.

Capture files are limited to 32 MiB, 100,000 packets, 256 matched flows, 8 MiB per reassembled TCP direction and 4,096 application records. JSON specifications are limited to 256 KiB. The first 200 findings are displayed with a total. Both inputs stay in a browser worker on your device. Exports contain decoded fields, capture times, anonymous flow numbers, packet references and the specification fingerprint. Check the displayed fields before sharing an export. Privacy and processing

The capture reader follows the published file format descriptions and TCP sequence rules. PCAP specification · PCAPNG specification · TCP sequence numbers

SBE channels

For SBE, select the customer XML and either a TCP service using SOFH or one raw SBE message per UDP datagram. A mixed capture spec can select sbe-sofh or sbe-udp per channel with its own schemaXml. The two-byte SOFH encoding identifier must agree with the schema byte order. Each message carries its template ID, acting version and schema ID. The worker preserves nested group values and records the selected XML in the specification fingerprint. SBE schema and wire example