Capturing and replaying network flows are important for testing network devices. Replayed traffic should reproduce effects similar to live traffic. This work presents methods to measure the event reproduction ratio, and studies the effectiveness of stateless and stateful traffic replayers based on the events triggered by packets and connections. We use two replayers, SocketReplay and Tcpreplay, and a networking device supporting security services. SocketReplay is a stateful replayer which keeps the state of a connection during replay, while Tcpreplay is a stateless replayer that ignores the connection state. Results indicate that SocketReplay replayed a smaller ratio of the captured traffic and triggered fewer blocking events in subsequent replay tests. Triggering blocking events denotes the replayed traffic cannot fit the onsite context. SocketReplay only replayed 38.74% of the captured TCP traffic, and resulted in an effectiveness of 99.97% (0.00%) in passing (blocking) event ratio. In contrast, Tcpreplay replayed 99.99% of the captured TCP traffic, and resulted in an effectiveness of 99.73% (75.64%) in passing (blocking) event ratio. The choice of a proper replayer and the corresponding replay configuration should depend on the contents of captured traffic and avoid to a significant drop of event reproduction ratio and the effectiveness of replayers.
[1]
Kate Ching-Ju Lin,et al.
Real traffic replay over WLAN with environment emulation
,
2012,
2012 IEEE Wireless Communications and Networking Conference (WCNC).
[2]
Randy H. Katz,et al.
Protocol-Independent Adaptive Replay of Application Dialog
,
2006,
NDSS.
[3]
Shyhtsun Felix Wu,et al.
On Interactive Internet Traffic Replay
,
2005,
RAID.
[4]
Yuan-Cheng Lai,et al.
Low-storage capture and loss recovery selective replay of real flows
,
2012,
IEEE Communications Magazine.
[5]
Stefan Savage,et al.
Monkey See, Monkey Do: A Tool for TCP Tracing and Replaying
,
2004,
USENIX ATC, General Track.
[6]
David Brumley,et al.
Replayer: automatic protocol replay by binary analysis
,
2006,
CCS '06.