Keeping what matters of a 10 Gbps link¶
A protocol analyser on a network link sees every frame that passes, in both directions. At 10 Gbps a second of the link takes gigabytes, more than the disk of a common PC writes. How does an analyser keep up, and what does it keep?
It captures into memory at the line rate, analyses each stretch there while the capture goes on, and writes only what
matters to disk. The case here is an analyser on a tap of a full-duplex Ethernet link. Its traffic is synthetic, made
by example_ethernet from fixed numbers, so every run sees the same frames.
Frames as events¶
A frame is an event of its own: it arrives at one instant and carries bytes. The analyser stamps each frame with
the nanosecond its first bit arrived. The frame's bytes, from its destination address to its last payload byte, are
the event's payload. The track's items are plain bytes with no type, RawBytes.
A capture thread takes the frames in batches, as a network card hands them over, and pushes each batch in one call:
let mut frames = mux.events(
tracks.frames,
EventsOptions {
chunk_bytes: exact_units::Bytes::new(self.chunk_bytes),
latency: None, // a capture at line rate fills its chunks
payload_codec: self.payload_codec,
..EventsOptions::default()
},
)?;
let mut traffic = Traffic::new(*self, tracks.rx);
let mut sent = Sent::default();
loop {
let mut batch = from_decoder.try_recv().unwrap_or_default();
batch.restart(frames.next_item().get());
while batch.len() < BATCH_FRAMES && traffic.next_into(&mut batch) {}
if batch.is_empty() {
break;
}
let events: Vec<Event<'_>> = batch
.frames()
.map(|(tick, bytes)| Event {
start: tick,
end: tick,
payload: bytes,
..Event::default()
})
.collect();
frames.push_all(&events)?;
sent.add(&batch);
if to_decoder.send(batch).is_err() {
return Err(EthError::Thread("a decoder"));
}
}
frames.finish()?;
The handle copies the batch into its open events chunk and completes the chunk at 1 MiB of frames. It codes the
payload column with the track's payload codec, here Raw, and hashes it on the capture thread (why raw). A tool that already writes the pcap format could store those
records instead, as a Foreign item with the media type application/vnd.tcpdump.pcap (Tracks).
What the example uses here: Link
/// A capture of the link: how loaded it is, how long, and how its frames are cut into chunks.
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub struct Link {
/// The load of each direction, percent of the line rate, 1 to 100.
pub load_percent: u64,
/// Length of the capture, µs.
pub micros: u64,
/// Frame bytes of a chunk of `frames` at most.
pub chunk_bytes: u32,
/// The receive queues of each port, 1 to [QUEUES_MAX]: the flows are spread over them, and each is a thread
/// and tracks of its own.
pub queues: u32,
/// One frame of a port in this many is a TCP reset, where its flow is TCP; 0 for none.
pub reset_every: u64,
/// What the frames' payloads are made of.
pub payload: PayloadMix,
/// How each chunk of `frames` codes its payloads column: [PayloadCodec::Raw] by default, as the random payloads
/// do not compress and LZ4 would only cost its time.
pub payload_codec: PayloadCodec,
}
Decoded layers as tracks¶
A decoder reads each frame's IPv4 header and its TCP or UDP header. It keeps a few fields of each. From the IPv4 header it keeps the addresses, the protocol, the time to live and the length. From the transport header it keeps the ports, the flags and the payload length.
Each layer goes into a track of its own, ipv4 and l4. A reader looking for one flow's packets then reads 12 or 8
bytes per frame instead of the whole frame.
A decoded header must lead back to its frame. Each item of ipv4 and l4 keeps its frame's item number in a
relation named frame:
/// The relation of a decoded header to its frame: the frame's item number in `frames` of the same receive queue,
/// never decreasing, its range per chunk in the index.
pub fn frame_relation(rx: Rx) -> RelationDef<'static> {
RelationDef {
name: "frame",
target: Some(RelationTarget {
run: [0; 16], // this run
track: frames_id(rx),
}),
values: RelationValues::Stored,
monotone: true,
index: RelationIndex::Range,
}
}
The decoder thread pushes the headers of a batch with their frames' numbers, one value each:
// each header keeps the number of its frame in the relation `frame`
ipv4.push_all(&ip_items.events(IPV4_BYTES))?;
l4.push_all(&l4_items.events(L4_BYTES))?;
The numbers only grow, so the relation is a monotone relation. The index then keeps each chunk's smallest and largest frame number, and a reader finds the headers of a given frame without reading other chunks. A frame without IPv4, one in a thousand here, has no header item, so the two tracks skip its number.
What the link takes on a tape¶
The link carries the simple mix of frame lengths that network tests use: 7 frames of 60 bytes, 4 of 590 and 1 of 1514. Three flows in four are TCP and the rest UDP. The payloads are random bytes, as encrypted traffic is, so they do not compress. Each direction runs at the line rate, 10 Gbps of frames, their preambles and gaps included.
cargo run --release -p example_ethernet --bin ethernet_sizes records 10 ms of the link into one chain and reads it
back:
| Track | Items | Bytes per item | Bytes per item in the chain | Chunks | Summary bytes |
|---|---|---|---|---|---|
frames |
65663 | 356.7 | 360.2 | 24 | 1408 |
ipv4 |
65595 | 12.0 | 7.1 | 18 | 1408 |
l4 |
65595 | 8.0 | 7.0 | 18 | 1408 |
10 ms of both directions at the line rate, two receive queues a port, one chain. Drawn by ww_tape_figures from example_ethernet.
10 ms of the link hold 65 663 frames of 23 MB in both directions. The chain takes 1.051 bytes per byte of the frames. The frames' own chunks are raw, so each takes its bytes and a little more. A decoded header takes about 7 bytes in the chain, against 12 or 8 bytes as the decoder gives it. A second of the link at its line rate therefore takes about 2.5 GB on a tape.
A window in memory¶
Memory takes the link at its line rate where a disk does not. So the analyser records into a chain of pieces kept
in memory, a MemPieces that holds each piece apart. The mux cuts a piece every 64 MiB, about 27 ms of the
link, as it does in a chain of piece files.
The pieces held in memory form the memory window: the tape of the capture held in RAM, its newest stretch. Each piece holds the same tracks, blocks and summaries a piece in a file holds, and the tracks run across the pieces. The oldest pieces leave memory as the capture goes on.
A mux writes its chain from one thread, which copies every byte of the capture into memory. One such thread for both
ports keeps the link's pace with little to spare, as the bench below shows. So each port goes into a chain of its own,
with a mux of its own and a triage thread of its own (RamCapture::chains).
A triage thread reads each chain's window while the capture goes on. It waits on the mux's ProgressWatch and opens
each piece as it closes, a TapeReader over the bytes in memory without a copy. The analyser decides whether the
piece holds something worth keeping. A kept piece is copied whole to the chain's own directory of piece files, where it
reads alone. Every other piece leaves memory unwritten (MemPieces::remove).
The chunks of a piece are independent, so the analyser decodes them in parallel on a rayon pool, shared by the chains'
triages. By default the pool has 2 threads a chain (RamCapture::triage_threads). Nothing keeps the pool off the
capture's cores, so a large pool can take time from the capture. The capture itself keeps its explicit threads, one per
queue and one per mux.
/// A capture of the link into a window in memory, the pieces around each TCP reset kept.
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub struct RamCapture {
pub link: Link,
/// Chains in memory, each written by a mux and read by a triage of its own: 1 or 2, one per port.
pub chains: u32,
/// Bytes of a piece in memory at most: the unit the window keeps or drops.
pub piece_bytes: u64,
pub window: Window,
/// Threads the triages of every chain share to decode the chunks of a piece in parallel; None: 2 a chain
/// ([Self::triage_threads_used]). Nothing keeps these threads off the capture's cores: a pool larger than the
/// cores the capture leaves free takes time from the capture.
pub triage_threads: Option<NonZeroU32>,
}
A verdict often depends on what came before. The window therefore keeps Window::before pieces after it read them,
until no later verdict can keep them, and Window::after pieces after a kept one are kept too. Here one piece on each
side goes with each kept piece.
Each chain's window has a size, Window::bytes_max. An analyser that falls behind lets the window grow until it is
full. The oldest pieces then leave memory unread, and Triaged::overrun counts them, as a capture card counts the
frames it drops. The test tests/window.rs holds the analyser back until the capture ends and checks that every piece
was read or counted.
The pipeline¶
The crate's binary runs the analyser headless: cargo run --release -p example_ethernet -- DIR captures a second of
the link and keeps the pieces around each reset under DIR. Its main reads like a block diagram of the threads and
what connects them:
fn main() -> Result<(), Box<dyn std::error::Error>> {
let (dir, ms) = args()?;
let capture = capture(ms);
// where the triage keeps: DIR/kept-<chain>/ per chain, DIR/results/ for what the analysers find
let kept = files::kept(&dir, capture.chains)?;
let results = files::results(&dir, RESULTS_OWNER)?;
// capture and decoder threads -> a mux per port -> the memory window -> a triage thread per chain
let running = capture.start(kept, &results)?;
// a viewer beside the triage: the pieces each chain begins
follow(&running)?;
// the capture ended, every triage read its last piece
let ran = running.join()?;
let closed = results.close()?;
report(&capture, &ran, &closed);
Ok(())
}
RamCapture::start starts the capture threads, the muxes and a triage thread per chain, and returns at once. The
RamRunning it gives hands out the memory window while the capture runs: per chain a MemChain, its pieces in
memory and the ProgressWatch of its mux. A viewer in another thread follows the window from it, as follow does
here with a Follower, and reads each closed piece as the triage does. The triage removes a piece once no verdict
can keep it, so a viewer finds the newest pieces only. RamRunning::join waits for the end.
The analyser: TCP resets¶
The analyser here looks for TCP resets, the frames that end a connection abruptly. The link sends one in 4 million frames of a port. The analyser decodes every frame of each piece and tests its flags:
/// The resets among the frames of queue `frames` (its id) in piece `seq` of chain `chain`: each frame decoded, its
/// TCP flags tested.
fn resets_of(
piece: &TapeReader<MemPiece>,
(chain, seq): (u32, u64),
rx: Rx,
frames: TrackId,
) -> Result<Vec<Reset>, EthError<MemError>> {
let entries: Vec<_> = piece
.track_entries(0, frames)?
.into_iter()
.filter(|entry| entry.kind == BlockKind::Events)
.collect();
// the chunks of a piece are independent: each worker decodes whole chunks, the resets stay in chunk order
let per_chunk = entries
.par_iter()
.map_init(Vec::new, |buf, entry| {
let block = piece.read_block(0, entry, buf)?;
let chunk = block.chunk().ok_or(EthError::Read("a chunk"))?;
let times = EventTimes::read(&chunk)?;
let payloads = Payloads::read(&chunk)?.ok_or(EthError::Read("payloads"))?;
let mut out = Vec::new();
for j in 0..times.len() {
let frame = payloads.get(j).ok_or(EthError::Read("a frame"))?;
if let Some((ipv4, Some(l4))) = decode_frame(frame)
&& l4.is_reset()
{
out.push(Reset {
tick: times.start(j),
rx,
frame: entry.first_item.get() + j as u64,
ipv4,
l4,
chain,
piece: seq,
});
}
}
Ok::<_, EthError<MemError>>(out)
})
.collect::<Result<Vec<_>, _>>()?;
Ok(per_chunk.concat())
}
Its findings go to a second chain, the results, which a mux of its own writes to disk beside the kept pieces. Each
receive queue has a track resets, one item per reset with its IPv4 and TCP headers. Like a decoded header, a reset
keeps its frame's number in the relation frame. The frame lies in the kept piece the analyser found it in. Each chain
has a track kept, which names each kept piece of the chain with the span of time it covers.
The kept pieces of a chain form a chain with holes, where the pieces left memory. Each piece reads alone, and the
results say why it was kept. The test tests/ethernet_ram.rs checks that the kept pieces hold the frames the link sent,
and that every reset is found.
What one PC holds and keeps¶
just bench-ethernet captures 2 s of the link into the window at full speed. The capture threads take the frames as
fast as they can, not at the link's pace. Meanwhile the triage reads each piece and keeps those around a reset.
The bench runs in one chain and in a chain per port, the kept pieces in memory. Each runs with 2 and with 4 receive queues a port. With a chain per port and 4 queues it runs once more, the kept pieces in piece files on the machine's disk.
| Kept to | Chains | Queues a port | Triage threads | Capture ms | Of the pace | Wall ms | Pieces | Overrun | Held max MB | Tape MB per s | Window s |
|---|---|---|---|---|---|---|---|---|---|---|---|
| memory | 1 | 2 | 2 (default) | 1876 | 1.07 | 1892 | 73 | 0 | 168 | 2460 | 6.6 |
| memory | 1 | 4 | 2 (default) | 1932 | 1.03 | 1949 | 73 | 0 | 217 | 2459 | 6.7 |
| memory | 2 | 2 | 4 (default) | 1591 | 1.26 | 1603 | 74 | 0 | 274 | 2459 | 6.6 |
| memory | 2 | 4 | 4 (default) | 1424 | 1.40 | 1440 | 74 | 0 | 341 | 2458 | 6.7 |
| memory | 2 | 4 | 1 | 1433 | 1.40 | 1465 | 74 | 0 | 472 | 2458 | 6.7 |
| memory | 2 | 4 | 2 | 1414 | 1.41 | 1438 | 74 | 0 | 293 | 2458 | 6.7 |
| memory | 2 | 4 | 4 | 1483 | 1.35 | 1493 | 74 | 0 | 398 | 2458 | 6.7 |
| memory | 2 | 4 | 24 | 1547 | 1.29 | 1558 | 74 | 0 | 393 | 2458 | 6.7 |
| piece files | 2 | 4 | 4 (default) | 1474 | 1.36 | 1479 | 74 | 0 | 1140 | 2458 | 6.7 |
just bench-ethernet on gpd-omarchy, load average 4.83 before, 5.22 after.
The benches ran on gpd-omarchy, a machine with 24 logical CPUs (AMD Ryzen AI 9 HX 370 w/ Radeon 890M, x86_64) and 30 GiB of memory. Each was a release build at opt-level 3 of commit 28d4e3e28, built with 24 jobs. The load average ran from 2.47 to 6.61 across the tables.
"Capture ms" is the time until every frame was in memory. The column "Of the pace" is the seconds of the link captured per second of that time: a value of 1 or more keeps up with the link. "Wall ms" adds the time the triage took to read the last pieces. "Tape MB per s" is what a second of the link takes in memory. "Window s" is how many seconds of the link half the machine's memory holds: how long a verdict may wait.
In one chain, the mux's writing thread sets the pace: more receive queues do not raise it. A chain per port splits the copying over two writing threads, and with 4 queues a port the capture runs ahead of the link.
| Kept to | Chains | Queues a port | Triage threads | Triage MB/s | Of the pace | Kept pieces | Kept % | Results KB | To disk MB per s | Copy MB/s |
|---|---|---|---|---|---|---|---|---|---|---|
| memory | 1 | 2 | 2 (default) | 8193 | 3.3 | 3 | 4.1 | 4 | 101.8 | 3980 |
| memory | 1 | 4 | 2 (default) | 7220 | 2.9 | 3 | 4.1 | 4 | 101.2 | 3062 |
| memory | 2 | 2 | 4 (default) | 9845 | 7.7 | 3 | 4.1 | 4 | 101.7 | 3308 |
| memory | 2 | 4 | 4 (default) | 6885 | 5.4 | 3 | 4.2 | 4 | 102.2 | 1833 |
| memory | 2 | 4 | 1 | 2888 | 2.3 | 3 | 4.2 | 4 | 102.1 | 1581 |
| memory | 2 | 4 | 2 | 4669 | 3.8 | 3 | 4.2 | 4 | 102.1 | 2704 |
| memory | 2 | 4 | 4 | 7402 | 5.9 | 3 | 4.2 | 4 | 102.1 | 1888 |
| memory | 2 | 4 | 24 | 6962 | 5.6 | 3 | 4.2 | 4 | 102.1 | 2028 |
| piece files | 2 | 4 | 4 (default) | 8488 | 6.5 | 3 | 4.2 | 4 | 102.1 | 331 |
just bench-ethernet on gpd-omarchy, load average 4.83 before, 5.22 after.
"Triage threads" is the size of the pool, marked where it is the default.
The largest capture runs again with 1, 2 and 4 threads, and with every core of the machine. One thread decodes the chunks one after the other, as a triage without a pool does.
"Triage MB/s" is what one chain's triage reads a second. Its "Of the pace" is the seconds of the link the slowest triage reads per second of its work: 1 or more keeps up. Compare the rows of one capture: "Capture ms" in the first table shows what each size of the pool costs the capture.
"Kept %" is the share of the capture's bytes that reaches the kept store. "To disk MB per s" is what the disk writes per second of the link, the results included.
Writing every frame to disk¶
Some captures must keep every frame. The analyser then writes its chain straight to piece files, and the disk sets the pace. A chain at the line rate writes about 2.5 GB a second.
One track has one producer: its handle encodes and hashes its chunks on that producer's thread. A port's 1.2 GB of
frames a second on one thread is more than one core encodes, hashes and copies. So each port spreads its flows over
receive queues, as a network card does. Each queue has a capture thread, a decoder thread and its own three tracks.
The test tests/ethernet.rs checks that four queues hold exactly the frames of one, at the same ticks.
just bench-ethernet also records 2 s of the link at full speed through one or two muxes. It first writes into a store
that keeps no bytes, which measures the encoding and the writing thread. It then writes chains of piece files on the
disk:
| Store | Queues a port | Muxes | Frames | Wall ms | M frames/s | Gbit/s | Of the link | MB/s written | Waits |
|---|---|---|---|---|---|---|---|---|---|
| no bytes kept | 1 | 1 | 13 104 037 | 2242 | 5.85 | 17.8 | 0.89 | 2197 | 0 |
| no bytes kept | 2 | 1 | 13 104 037 | 1353 | 9.69 | 29.6 | 1.48 | 3635 | 0 |
| no bytes kept | 4 | 1 | 13 104 037 | 982 | 13.34 | 40.7 | 2.04 | 5005 | 176 |
| piece files | 4 | 1 | 13 104 037 | 9124 | 1.44 | 4.4 | 0.22 | 539 | 10 012 |
| no bytes kept | 1 | 2 | 13 104 037 | 2092 | 6.26 | 19.1 | 0.96 | 2354 | 0 |
| no bytes kept | 2 | 2 | 13 104 037 | 1364 | 9.61 | 29.3 | 1.47 | 3605 | 0 |
| no bytes kept | 4 | 2 | 13 104 037 | 966 | 13.56 | 41.4 | 2.07 | 5086 | 0 |
| piece files | 4 | 2 | 13 104 037 | 6849 | 1.91 | 5.8 | 0.29 | 718 | 3764 |
just bench-ethernet on gpd-omarchy, load average 2.47 before, 4.35 after.
The waits count the times a handle found the mux's queue full. Without a disk, enough receive queues keep up with the link. With a disk, the disk is the limit, which is why the analyser keeps the link in memory and writes only what it keeps.
Compressing the payloads¶
A track's writer chooses how each chunk codes its payload column. Raw runs no encoder. Auto tries LZ4 and keeps
it when it is smaller (Choosing the codec). The capture above records the
frames track Raw, because its payloads are random bytes, as encrypted traffic is. The ipv4 and l4 tracks keep
Auto: their repeated headers do compress.
just bench-ethernet records the link with both choices. It also records a second mix of payloads, made by
PayloadMix::Plain: plaintext protocols (HTTP, JSON, log lines and SQL) drawn from a small vocabulary. The mix is synthetic. It stands
for the traffic of an unencrypted network, where each frame repeats the headers of its neighbours.
The run writes into a store that keeps no bytes, with 2 receive queues a port in one chain. "CPU ns per frame" counts every thread of the process, the one that makes the frames included, so the difference between two rows is what the codec costs.
| Payloads | Codec | Frames | Wall ms | M frames/s | Chain MB | Bytes per frame | CPU ns per frame |
|---|---|---|---|---|---|---|---|
| random | Raw | 13 104 037 | 1352 | 9.69 | 4918 | 375.3 | 580 |
| random | Auto | 13 104 037 | 1781 | 7.36 | 4788 | 365.4 | 721 |
| plain | Raw | 13 104 037 | 1328 | 9.87 | 4918 | 375.3 | 591 |
| plain | Auto | 13 104 037 | 2127 | 6.16 | 1289 | 98.4 | 804 |
just bench-ethernet on gpd-omarchy, load average 4.35 before, 4.83 after.
On random payloads, LZ4 saves the few percent that the repeated headers of a chunk give. It costs the encoder's CPU
time on every byte it cannot shrink, so the Raw rows run faster. On plaintext, LZ4 cuts the chain to a quarter of its
bytes, at the price of more CPU time per frame.
Which is worth it depends on what the chain is short of: the disk's bytes or the capture's cores. This capture is
limited by its cores and its payloads are random, so it is Raw. A link of plaintext protocols recorded to a disk that
is the limit wants Auto.
pub struct MemPieces<K = u64>(Arc<Mutex<BTreeMap<K, MemPiece<K>>>>);
Pieces in memory by key, shared by every clone: a PieceStore (keyed by a piece's seq with K = u64), and
where its readers find each piece (Self::get).
pub chains: u32,
Chains in memory, each written by a mux and read by a triage of its own: 1 or 2, one per port.
pub struct ProgressWatch {
watch: Arc<Watch>,
}
Wakes a reader in the writer's process when the writing thread placed more (crate::TapeMux::watch).
pub struct TapeReader<S> {
src: S,
len: u64,
/// [ByteSource::start]: no piece is looked for before it
front: u64,
/// [OpenOptions::check_payloads] as it applies to the source
check_payloads: bool,
pieces: Vec<PieceInfo>,
/// [OpenOptions::state_read_max]
state_read_max: u64,
/// The pieces' state entries sorted, shared by the reader's lookups
states: state::StateCache,
}
A tape read by positional reads, see the module docs.
pub fn remove(&self, key: &K) -> Result<bool, MemError<K>> {
let mut map = self.lock()?;
match map.get(key) {
None => Ok(false),
Some(t) if !t.is_closed() => Err(MemError::Unclosed(key.clone())),
Some(_) => Ok(map.remove(key).is_some()),
}
}
Take the closed piece under key out of the map: true when it was there, false when it was not.
pub triage_threads: Option<NonZeroU32>,
Threads the triages of every chain share to decode the chunks of a piece in parallel; None: 2 a chain (Self::triage_threads_used). Nothing keeps these threads off the capture's cores: a pool larger than the cores the capture leaves free takes time from the capture.
pub before: u32,
Pieces before a piece the analyser keeps that are kept with it.
pub after: u32,
Pieces after a piece the analyser keeps that are kept with it.
pub bytes_max: u64,
Bytes the pieces of a chain in memory take at most, the piece being written included. Past it the oldest pieces leave memory: first those already read, then those not yet read (Triaged::overrun).
pub overrun: Vec<u64>,
Pieces that left memory unread, since the window was full.
pub fn start<K, R>(
&self,
kept: Vec<K>,
results: &TapeMux<R>,
) -> Result<RamRunning<K, R>, RamError<K::Error, R::Error>>
where
K: PieceStore + Send + 'static,
K::Error: Send,
R: PieceStore + Send + 'static,
R::Sink: Send,
R::Key: Send,
R::Error: Send + Sync,
Start recording the link into memory, the pieces of chain c around each reset kept in keptc and the
analysers' results pushed through results, as the module docs say.
pub struct RamRunning<K, R>
where
K: PieceStore,
R: PieceStore + Send + 'static,
R::Sink: Send,
R::Key: Send,
R::Error: Send + Sync,
{
running: window::Running<Captured, EthError<MemError>, K, Resets<R>>,
}
A capture of the link into memory, running (RamCapture::start).
pub struct MemChain {
pub pieces: MemPieces,
/// Wakes a reader on each change of the chain: a chunk written, a piece cut, the end.
pub watch: ProgressWatch,
}
A chain of the memory window as a reader beside the triage sees it: its pieces in memory and the watch of the mux that writes them.
pub struct Follower {
/// Per chain: the version of its progress last seen, and the piece being written then.
seen: Vec<(u64, u64)>,
}
Follows the chains of a memory window from another thread, as a viewer does: which pieces they begin.
pub fn join(self) -> Result<RamRun, RamError<K::Error, R::Error>> {
let (ran, chains) = self.running.join().map_err(RamError::Run)?;
let mut resets = Vec::new();
for c in chains {
resets.extend(c.analyser.finish().map_err(RamError::Results)?);
}
Ok(RamRun {
captured: ran.recorded,
capture_time: ran.capture_time,
triaged: ran.triaged,
resets,
})
}
Wait for the end: what the ports sent, what each chain's window kept and every reset found. The results'
handles end, so results may close after.
Errors
The capture's, a triage's or the results' error.