A suite of tools to edit and replay captured network traffic. It allows to classify traffic as client or server, rewrite Layer 2, 3 and 4 headers and replay the traffic back onto the network and through network devices.
Questions tagged [tcpreplay]
64 questions
1
vote
0 answers
Network traffic recording-playback system
I am using tcpreplay and I need to synchronize two or more machines replaying recorded network traffic.
Do You know how can I synchronize replaying pcap file on multiple hosts ?
Maybe there is a better way than using tcpreplay?
Thanks for answer.

Jakub
- 11
- 2
1
vote
1 answer
How do I pump traffic using tcpreplay at 100 MBps, 500 MBps and 1Gbps speeds?
I used the -R and -K option but it doesnt seem to be working as I captured the pumped traffic using tcpdump and the number of packets that I see there dont seem to match the number of packets that I expect in the time frame.

kartz
- 21
- 1
- 1
- 4
0
votes
0 answers
Want to run below tcpreplay using python code on Linux
Want to run below tcpreplay command using python code on Linux instance can you please give a working sample
tcpreplay-edit -i ens7 -I ens8 --loop=20000 --enet-smac srcmac,dstmac --enet-dmac dstmac,srcmac -c /home/cache.cache /home/pcap.pcap…

Arun K
- 1
0
votes
0 answers
How to replay packets using a specific source-destination port pair?
I have a pcap file with ISAKMP packets and the source port of the packet is a random port and the destination port is 500. I am trying to replay the packets using tcpreplay, but the packets are getting dropped at the receiving device because the…

N.C.
- 33
- 7
0
votes
1 answer
Network interface drop 1518 bytes Ethernet frame received from direct Ethernet link cable sent by tcpreplay. why?
I have two server linked to each other. I tried to send a pcap from one of the servers via direct link using tcpreplay command. The pcap contains an HTTP POST session which size of some frames is 1518 bytes [Ethernet header(14 bytes)][payload(1500…

sajjad valaei
- 27
- 4
0
votes
1 answer
How to correct all packet frame check sequences(FCS) of a pcap to send with tcpreplay?
I used pcap4j to manipulate pcap files in java. Unfortunately, pcap4j can fix all checksums except frame check sequence(FCS). I want to send pcaps using tcpreplay. I am looking for a tool, library or package that can resolve FCS of every packet in a…

sajjad valaei
- 27
- 4
0
votes
0 answers
How to scale Cisco Joy capturing speed over 5 GBPS or even more
Currently I am capturing network packets using tcpreplay at a speed of 800 MBPS but I want to scale it over 5 GBPS.
I am running Joy on a server with 16GB Ram and 8 Cores
Tcpreplay Output:
`Actual: 2427978 packets (2098973496 bytes) sent in 20.98…

Tushar Pasi
- 1
- 2
0
votes
0 answers
Slow Ingestion of Network Packets
I am using a Packet Capturing and Analysis Tool named as Cisco Joy for generating network flows.
Here is the link: https://github.com/cisco/joy
So Joy is a Packet capturing and analysis tool which uses a configuration file to capture Packets on a…

Tushar Pasi
- 1
- 2
0
votes
0 answers
Python Scapy execution problem with sendpfast
In Linux, I have a problem with scapy using sendpfast
Is there anyone who experiences the same problem as me?
I will be very grateful to someone who has a solution to this.
my code after I implemented python on Linux terminal
import sys
from…

kyeong tak Lee
- 1
- 1
0
votes
0 answers
How to simulate the exact same network traffic that was previoulsy recorded?
On Unix, how to simulate the exact same network traffic that was previously recorded?
I have a LAN made of 2 machines:
A local PC with interface eth0 and IP 192.168.1.1. On this PC runs a code C that listens to eth0, grab UDP packets and produce a…

fghoussen
- 393
- 3
- 16
0
votes
0 answers
Rewrite pcap destination port with tcprewrite
I want to change the destination port from 18920 to 8080.
I don't know which step is wrong.

zpzhuang
- 61
- 1
- 3
0
votes
0 answers
tcpreplay cann't replay udp traffic/
I want to use tcpreplay to replay udp traffic ,but it doesn't work . I don't know which step mistake .

zpzhuang
- 61
- 1
- 3
0
votes
1 answer
Use tcpreplay .pcap with raw packet data fail
I'm using tcpreplay to generate traffic from the .pcap file for my experiments. More specifically I'm using files from the ISCX-VPN-NONVPN-2016 public dataset.
However, I'm having problems retransmitting encrypted traffic, as they present the L2 Raw…

Leandro Pereira
- 41
- 6
0
votes
0 answers
replaying multicast UDP packet capture via tcpreplay not being seen by client
I'm having no joy in getting a replayed UDP Multicast packet to be "seen" by a client program on a different machine.
Details:
I have two machines on my local (wired) network connected through one unmanaged switch. One machine (running tcpreplay) is…

Sinistar
- 1
- 1
0
votes
1 answer
tcpreplay how to add all pcap files under one directory to let the tcpreplay pcap files
the latest tcpreplay still only support to replay a file(files).
for example the command is
tcpreplay -i eth0 sample.pcap sample1.pcap
I have over 100 pcaps that need to replay. they r all under folder is there a way to let tcpreplay plays all files…

crazy stone
- 13
- 1
- 3