Five-Minute Triage for pcap Captures and Arrow Files
A capture.pcap on an incident ticket, a data.arrow from a pipeline. What each file says about itself, how to read it in the browser without uploading it, and when to hand over to Wireshark or pyarrow.
By Redbison Dev · · Updated · 8 min read

Two files resist double-clicking more stubbornly than most: the capture.pcap attached to an incident ticket and the data.arrow a pipeline left in a bucket. Both describe themselves completely in their own bytes, so both can be read without installing anything and without uploading them anywhere. The PCAP File Inspector turns a capture into packet counts, protocol shares, top talkers and unanswered connection attempts; the Arrow File Inspector turns an Arrow or Feather v2 file into its schema, batch structure and exact row count. Both parse in your tab, which for a packet capture is not a convenience but the whole point.
The first four bytes name the file
Every format here opens with a signature, and checking it beats trusting the extension. Classic pcap starts with A1 B2 C3 D4 (microsecond timestamps) or A1 B2 3C 4D (nanoseconds), written in the capturing machine's own byte order, so a little-endian file shows them reversed; the IETF pcap draft makes that magic double as the endianness detector. pcapng starts with the Section Header Block type 0A 0D 0D 0A, bytes chosen so that text-mode file transfers that mangle line endings break the magic visibly. An Arrow IPC file starts and ends with the ASCII magic ARROW1; an Arrow IPC stream has no magic at all, just the FF FF FF FF continuation marker that fronts every message frame.
The lookalike to know: a file opening with PAR1 is Apache Parquet, a sibling project with an unrelated disk layout. The two get confused in buckets and tickets constantly, and the Parquet Viewer is the reader for that one. For bytes nothing recognises, the Binary Hex Editor shows the raw dump, and the binary files guide covers the executable, wasm, pprof and font signatures the same way.
Five minutes with a capture
Load the sample in the PCAP File Inspector and a small but complete story reads out: 13 packets over 4.0 seconds, 4.0 KiB of traffic on Ethernet, 3 IPv4 hosts, 1 DNS query, 1 SYN never answered. The protocol table splits it as TCP 8 packets (3.7 KiB), ICMP 2 (180 B), UDP 2 (166 B) and ARP 1 (42 B); the services table reads https 7, dns 2, http-alt 1; the top conversation is 192.0.2.10 and 198.51.100.7 exchanging 3.7 KiB over TCP in 8 packets.
That is the shape of real triage. The glance row answers whether the capture even holds the repro: a 90-minute file with 40 packets says the filter or interface was wrong before anyone scrolls a packet list. The conversation table names the flow worth following, because one host pair almost always carries most of the bytes. And the warning counters condense whole filter sessions: the sample's unanswered SYN is a connection attempt to port 8080 that nothing accepted, which in volume toward one port means a dead service or a dropped firewall rule, and in volume from one source across many ports means a scan.
Two caveats keep the numbers honest. Service names are port labels, so bytes to 443 are called https whether or not TLS is inside; verifying is Wireshark's job. And the DNS counter sees only UDP queries to port 53 with the QR bit clear, so a machine using DNS over HTTPS or DNS over TLS shows almost none; on modern networks a low count usually means encrypted DNS rather than little DNS.
What a capture gives away
A packet capture is the most sensitive file type this site's inspectors touch. It records every byte on the wire for its window: credentials sit verbatim in plain-text protocols like HTTP basic auth, FTP and telnet; cookies and session tokens ride in headers; and even an all-TLS capture maps your internal network, naming every host, service and address a machine talked to. The host and service tables in the inspector double as a disclosure review: that is the list of what the file would tell a stranger.
The handling rules follow from that. Store captures where you store secrets, expire them, and strip or shorten them before sharing a ticket. And never upload one to a web converter to "just have a look": the look is exactly what should not leave the machine. Parsing in the browser tab keeps the bytes local, which is why the inspector works that way and says so.
Arrow files: identity without a notebook
The Arrow File Inspector's sample is a real file written by pyarrow, the same one pinned in this site's test suite. It reads: Arrow IPC file, 1,200 rows in 3 batches, 31.7 KiB of data in a 33.2 KiB file, four fields all nullable: id Int64, name Utf8, score Float64, active Bool. The row count is exact, not sampled, because the Arrow Columnar IPC specification makes every record batch header state its own length; the total is arithmetic over the file's declarations, and a 2 GB file answers as fast as this one, since only metadata frames are read.
That covers the questions a mystery .arrow handoff actually poses. Is it the full export: compare the row count against the source. Does the schema match the contract: four declared fields with types, read before any load job runs. Was compression applied: the codec sits in each batch header, LZ4 frame or ZSTD per the spec, uncompressed by default. Is it a Feather file: yes and no is the honest answer, because Feather v2 is exactly the Arrow IPC file format under another name, while the 2016 Feather v1 is a separate legacy layout.
One distinction decides which reader works afterwards. A file (ARROW1 magic, footer at the end) opens with pyarrow.ipc.open_file and supports seeking; a stream (frames only, from sockets and Arrow Flight) opens with open_stream and must be walked in order. The inspector names which you have, which turns the usual "invalid file" guesswork into a one-word answer. What it will not do is render the rows: the columnar buffers stay encoded, and reading values belongs to pyarrow or polars, not to a browser page measuring frames.
Where the real tools take over
Triage earns its five minutes by knowing where it ends. For captures, Wireshark owns everything past the counts: display filters, TCP stream reassembly, the dissectors that decode protocols instead of labeling ports, and decryption when you hold the session keys. The inspector's job is to tell you whether the file deserves that session and which conversation to start with. For Arrow files, pyarrow and polars own the data: pyarrow.feather.read_table or polars.read_ipc load what the inspector only measured. And a network question that arrived as a browser export rather than a capture belongs in the HAR File Analyzer, which reads request-level timings the packet layer cannot see, covered in the HAR, GC log and SQLite guide.
Tools for this job
- PCAP File Inspector: packets, bytes, duration, protocol breakdown, services, top conversations, DNS queries and unanswered SYNs from a .pcap or .pcapng.
- Arrow File Inspector: schema fields with types, record batches, exact row counts, dictionary batches, sizes and compression from an Arrow IPC file or stream.
- Parquet Viewer: the reader for files that open with PAR1, the format Arrow files are most often confused with.
- HAR File Analyzer: the browser's own network log, when the question is requests and timings rather than packets.
- Binary Hex Editor: the raw byte view for checking magics by eye when nothing accepts a file.
- ZIP File Inspector: the same local, header-first treatment for archives.
Related reading: how to read binary files without running them for executables, wasm, pprof and fonts, and decoding binary payloads without a schema for protobuf, MessagePack and CBOR.
Frequently asked questions
How large a capture can a browser page handle?
The file is read into one in-memory buffer, so the practical ceiling is your tab's memory, typically a few hundred megabytes comfortably. Captures beyond that are better rotated at collection time (tcpdump -C splits by size), and each piece triages fine. The Arrow inspector is lighter: it reads only metadata frames, so file size barely matters.
Is it safe to attach a pcap to a support ticket?
Treat it as sensitive by default. Check the host and service tables first: they list exactly what the file discloses, including internal addresses and every service touched. Strip it to the relevant conversation with your capture tool, shorten the window, and share through the same channel you would use for credentials, because plain-text protocols put real ones in it.
Why is my Arrow file smaller than the CSV it came from?
Three compounding reasons: columnar layout stores each column's values together, so similar bytes sit adjacent; dictionary encoding stores repeated strings once and references them by index; and the optional LZ4 or ZSTD codec compresses each batch's buffers. The inspector shows the codec and the stored body bytes, so you can see which of the three is doing the work.
What does the PAR1 magic at the start of a file mean?
The file is Apache Parquet, not Arrow, whatever its extension says. Parquet wraps its data in PAR1 at both ends with a footer of its own design, built for on-disk analytics scans, while Arrow IPC is the wire and memory format. Both can hold the same table; the readers are not interchangeable, so check the first four bytes before blaming the file.
Sources and further reading
- PCAP Capture File Format (draft-ietf-opsawg-pcap), IETF OPSAWG. The classic pcap magic numbers, native byte order, file header and packet records; an Internet-Draft, cited as such.
- PCAP Now Generic (pcapng) Capture File Format (draft-ietf-opsawg-pcapng), IETF OPSAWG. The Section Header, Interface Description and Enhanced Packet Blocks, timestamp resolution options and block alignment.
- Link-layer header types, The Tcpdump Group. The LINKTYPE registry mapping link-type numbers (1 Ethernet, 113 Linux cooked) to their framing.
- Arrow Columnar Format: Serialization and IPC, Apache Arrow. The message framing, file and stream layouts, record and dictionary batches, and the per-batch compression field.
- Feather File Format, Apache Arrow. Feather V2 as the Arrow IPC file format on disk, V1 as legacy, and the LZ4/ZSTD options.
More Debugging
Every tool in the Debugging section, free and in your browser.