With Tcpreplay 4.0.x you may be able to generate flows with the new 
"--unique-ip" option. Use it alone with the "--loop" and "-K" options to get 
really high speeds. A sample can be shown on the front page of the wiki. 
http://tcpreplay.appneta.com. Notice that every pass the IP addresses are 
changed, which results in unique flows. In this example we are achieving 156K 
flows/sec.

For more info see http://tcpreplay.appneta.com/wiki/howto.html. You may also 
want to add netmap driver mods to achieve full 10GigE (or higher) wire rates.

You may still need to edit the pcap file to target a MAC or IP address on the 
other side of the switch, otherwise the traffic may not pass through the switch.

Fred.

From: Reham Mohamed <reham.fmoha...@gmail.com<mailto:reham.fmoha...@gmail.com>>
Reply-To: Main forum for tcpreplay 
<tcpreplay-users@lists.sourceforge.net<mailto:tcpreplay-users@lists.sourceforge.net>>
Date: Thursday, May 1, 2014 at 8:37 AM
To: Main forum for tcpreplay 
<tcpreplay-users@lists.sourceforge.net<mailto:tcpreplay-users@lists.sourceforge.net>>
Subject: Re: [Tcpreplay-users] Generating flows between virtual hosts using 
tcpreplay

Thanks for your reply.

I am a beginner in using tcpreplay. I could not understand how should i change 
in the pcap file. The pcap file i am using contains  a lot of packets that are 
destined to many hosts other than host B i want to send the flows to.  What i 
want to do it forward the flows in the pcap file from host A to host B using 
tcpreplay. What are the command i should use to be able to do so?

Thank you!


On Thu, May 1, 2014 at 5:10 PM, Sandeep Kumar 
<sandeepdas....@gmail.com<mailto:sandeepdas....@gmail.com>> wrote:
You need to edit your pcap files before playing them using tcpreplay.

So for example in your pcap file there are few packets which you want to be 
destined to a certain Host A's IP X.X.X.X.
You need to change the destination IP address of packets in your pcap file and 
set it to IP address of Host A X.X.X.X along with that you need to change the 
destination MAC address and set it to the either the MAC of next switch or the 
MAC of Host A.

Make sure that you set proper Checksum at both Network and transport level.

Then play your file using tcpreplay the packets will reach to required 
destination.



Regards,
Sandeep


On Thu, May 1, 2014 at 7:48 PM, Reham Mohamed 
<reham.fmoha...@gmail.com<mailto:reham.fmoha...@gmail.com>> wrote:
Hello,

I am using mininet to create an emulated topology which contains two switches, 
each one of them is connected to two hosts. I am trying to use tcpreplay to use 
a pcap file to generate flows from host 1 to host 2. How can this be done? how 
can i sent flows using pcap files from one host to another?

Your help is highly appreciated,

Thanks in advance,

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Tcpreplay-users mailing list
Tcpreplay-users@lists.sourceforge.net<mailto:Tcpreplay-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/tcpreplay-users
Support Information: http://tcpreplay.synfin.net/trac/wiki/Support


------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Tcpreplay-users mailing list
Tcpreplay-users@lists.sourceforge.net<mailto:Tcpreplay-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/tcpreplay-users
Support Information: http://tcpreplay.synfin.net/trac/wiki/Support

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Tcpreplay-users mailing list
Tcpreplay-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tcpreplay-users
Support Information: http://tcpreplay.synfin.net/trac/wiki/Support

Reply via email to