Skip to main content

PCAP Replay

PCAP Replay reproduces traffic from an uploaded PCAP/PCAPNG file. Version 2.1 supports two modes: stateless replay of raw packets and stateful replay of selected TCP/UDP sessions using the task settings.

Upload PCAP files under Library → PCAP files.

Figure 17 — PCAP file library

Figure 17 — PCAP file library

Table 183 — PCAP Replay settings

NameDescriptionValue
PCAP fileLibrary file to replayClick Select PCAP file
ModeReplay methodStateless sends packets from the capture; Stateful replays TCP/UDP sessions
SessionsTCP/UDP sessions detected in the PCAPSelect one or more sessions for stateful mode
Playback modeRepeat playback after reaching the end of the file or run one passOne pass replays the selected file or sessions once; loop mode repeats the scenario until the task stops
Follow timingPreserve the timing of the original captureEnable to reproduce the actual exchange dynamics
Session close behaviorBehavior after the selected session completesAs in PCAP, always close, or do not close automatically
Replace L2Replace MAC addresses from the PCAP with task valuesUse when the capture was recorded in a different L2 environment
Replace L3Replace IP addresses from the PCAP with source and target valuesUse to move the scenario to another test environment
Replace L4Replace source and destination portsUse when the 4-tuple must be adapted
Client/server IPEndpoint addresses inferred from the selected sessionPopulated automatically after session selection, or entered manually
Custom rulesSearch and replace within a packetHex, string, or regex; scope: Ethernet, IP, L4, payload, or entire packet
L7 rulesSearch and replace within application dataUse to modify HTTP bodies, tokens, paths, and other L7 values
Update Content-LengthAutomatically recalculate HTTP Content-Length after an L7 replacementEnable when a replacement changes the HTTP message body size
PPS/CPSPacket transmission or session opening rateDepends on the selected mode
DurationScenario runtimeSpecify a duration or use loop mode
One-pass timing limit

In PCAP Replay, One pass mode without looping runs the selected file or sessions once. If Follow timing is enabled, the platform preserves pauses from the original capture, but the playback window is limited to 86400 seconds (24 hours). Packets or steps that occur later than this window in the source PCAP are not replayed. For such scenarios, shorten the capture, disable Follow timing, or use loop mode.

If the selected PCAP does not contain the required sessions, check the traffic direction, confirm that the capture contains TCP/UDP exchanges, and verify that the file was uploaded correctly.