Home > OS >  TcpReplay recorded playback
TcpReplay recorded playback

Time:09-30

Problem description:
Front: outside call interface, and then being invoked application installed on the server TcpReplay
1. In the application server using sudo/usr/sbin/tcpdump -w request. Pcap -i eth0 TCP port 22002 command to record the current application server port 2202 TCP requests, and respond to

2. Another xshell page has been tailf console. The log view the current server if the application was called log log

3. In the current application server use: tcpreplay -i eth0 - t request. Pcap play back flow, results show that the playback success
Actual: 94 packets (12087 bytes) sent in 0.000566 seconds.
Rated: 21355123.6 Bps, 170.84 Mbps, 166077.73 PPS
Flows: 25 Flows, 44169.61 FPS, 94 flow packets, 0 non - flow
The Statistics for the network device: eth0
Attempted packets: 94
Successful packets: 94
Failed packets: 0
Truncated packets: 0
Retried packets (ENOBUFS) : 0
Retried packets (EAGAIN) : 0

At the same time use tcpdump to/usr/sbin/tcpdump TCP port 22002 monitors all TCP requests and responses of the port, you can see already send

4. But on the other a page have been use xshell tailf console. The log view, really, in fact, the interface of the application has not been called, because there is no any log output




Access to information on the Internet said tcpReplay is double card
But in the shard, is to use this command
Tcprewrite - e 192.168.166.10:192.168.166.10 -- enet - 10-channel dmac=FA: e: us B3: A0:59, FA: e: us B3: A0:59 - enet - smac=FA: e: us B3: A0:59, FA: e: us B3: A0:59 - c request. Cache - I request. Pcap - o requestRun. Pcap
Who is a great god to explain what this command, behind - e 192.168.166.10:192.168.166.10 behind the IP and IP respectively represent?
- enet - 10-channel dmac=FA: E: us B3: A0:59, FA: E: us B3: A0:59 the MAC address, MAC and in front of the back of the MAC respectively represent?
And - enet - 10-channel dmac and enet - smac respectively, what do you mean?
And when I was played back if use double nic mode is: tcpreplay -i eth0 eth1 I - 2 - l t - c request. Cache requestRun. Pcap

But actually, I only have a Linux host eth0, how can that this command execution success? What's the meaning and the command?
Already see the corresponding command explanation, seek a great god answer still don't understand!

Worried for great god help, recorded the request, response, but playback doesn't call me applications and interfaces, ask for help!
  • Related