[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tcpreplay-users
Subject:    Re: [Tcpreplay-users] Generating flows between virtual hosts using tcpreplay
From:       Fred Klassen <fklassen () appneta ! com>
Date:       2014-05-02 15:38:00
Message-ID: CF890959.16F6F%fklassen () appneta ! com
[Download RAW message or body]

Stop using =96K. You are probably running out of memory when you try to pre=
load a 2GB file in a VM.

Please start a new discussion thread if you want to continue this new topic=
, or open an issue here https://github.com/appneta/tcpreplay/issues

Fred.

From: Reham Mohamed <reham.fmohamed@gmail.com<mailto:reham.fmohamed@gmail.c=
om>>
Reply-To: Main forum for tcpreplay <tcpreplay-users@lists.sourceforge.net<m=
ailto:tcpreplay-users@lists.sourceforge.net>>
Date: Friday, May 2, 2014 at 8:32 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

I am using the "-K",  I am using ubuntu 12.04 version, tcpreplay: 4.0.4, an=
d I am using mininet to create an SDN network.


On Fri, May 2, 2014 at 5:28 PM, Reham Mohamed <reham.fmohamed@gmail.com<mai=
lto:reham.fmohamed@gmail.com>> wrote:
and how can i split the file?


On Fri, May 2, 2014 at 1:22 PM, Sandeep Kumar <sandeepdas.cse@gmail.com<mai=
lto:sandeepdas.cse@gmail.com>> wrote:
Split the files into multiple files and then play them.


Regards,
Sandeep


On Fri, May 2, 2014 at 4:03 PM, Reham Mohamed <reham.fmohamed@gmail.com<mai=
lto:reham.fmohamed@gmail.com>> wrote:
Thanks a lot for your help.

Now i am trying to replay a pcap file on one virtual machine, but once the =
computer starts to run this file, the whole system stop working. The pcap f=
ile is almost 2 GB. What should i do to solve this problem?

Thanks


On Thu, May 1, 2014 at 6:32 PM, Sandeep Kumar <sandeepdas.cse@gmail.com<mai=
lto:sandeepdas.cse@gmail.com>> wrote:
If i'm not mistaken then tcpwrite/tcpedit is right tool to change pcap file=
s.

Its simple to use. Just do a little bit of search and you will be easily ab=
le to do that.

Regards,
Sandeep


On Thu, May 1, 2014 at 9:07 PM, Reham Mohamed <reham.fmohamed@gmail.com<mai=
lto:reham.fmohamed@gmail.com>> wrote:
Thanks for your reply.

I am a beginner in using tcpreplay. I could not understand how should i cha=
nge in the pcap file. The pcap file i am using contains  a lot of packets t=
hat are destined to many hosts other than host B i want to send the flows t=
o.  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.cse@gmail.com<mai=
lto:sandeepdas.cse@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 chan=
ge the destination MAC address and set it to the either the MAC of next swi=
tch 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 dest=
ination.



Regards,
Sandeep


On Thu, May 1, 2014 at 7:48 PM, Reham Mohamed <reham.fmohamed@gmail.com<mai=
lto:reham.fmohamed@gmail.com>> wrote:
Hello,

I am using mininet to create an emulated topology which contains two switch=
es, each one of them is connected to two hosts. I am trying to use tcprepla=
y 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.sourcefo=
rge.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.sourcefo=
rge.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.sourcefo=
rge.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.sourcefo=
rge.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.sourcefo=
rge.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.sourcefo=
rge.net>
https://lists.sourceforge.net/lists/listinfo/tcpreplay-users
Support Information: http://tcpreplay.synfin.net/trac/wiki/Support



[Attachment #3 (text/html)]

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: \
after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, \
sans-serif;"> <div>Stop using –K. You are probably running out of memory when you try \
to preload a 2GB file in a VM.</div> <div><br>
</div>
<div>Please start a new discussion thread if you want to continue this new topic, or \
open an issue here&nbsp;<a \
href="https://github.com/appneta/tcpreplay/issues">https://github.com/appneta/tcpreplay/issues</a></div>
 <div><br>
</div>
<div>Fred.</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; \
BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; \
PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: \
medium none; PADDING-TOP: 3pt"> <span style="font-weight:bold">From: </span>Reham \
Mohamed &lt;<a href="mailto:reham.fmohamed@gmail.com">reham.fmohamed@gmail.com</a>&gt;<br>
 <span style="font-weight:bold">Reply-To: </span>Main forum for tcpreplay &lt;<a \
href="mailto:tcpreplay-users@lists.sourceforge.net">tcpreplay-users@lists.sourceforge.net</a>&gt;<br>
 <span style="font-weight:bold">Date: </span>Friday, May 2, 2014 at 8:32 AM<br>
<span style="font-weight:bold">To: </span>Main forum for tcpreplay &lt;<a \
href="mailto:tcpreplay-users@lists.sourceforge.net">tcpreplay-users@lists.sourceforge.net</a>&gt;<br>
 <span style="font-weight:bold">Subject: </span>Re: [Tcpreplay-users] Generating \
flows between virtual hosts using tcpreplay<br> </div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">I am using the &quot;-K&quot;,&nbsp; I am using ubuntu 12.04 version, \
tcpreplay: 4.0.4, and I am using mininet to create an SDN network. <br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Fri, May 2, 2014 at 5:28 PM, Reham Mohamed <span \
dir="ltr"> &lt;<a href="mailto:reham.fmohamed@gmail.com" \
target="_blank">reham.fmohamed@gmail.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <div dir="ltr">and how can i split the file?<br>
</div>
<div class="HOEnZb">
<div class="h5">
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Fri, May 2, 2014 at 1:22 PM, Sandeep Kumar <span \
dir="ltr"> &lt;<a href="mailto:sandeepdas.cse@gmail.com" \
target="_blank">sandeepdas.cse@gmail.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <div dir="ltr">Split the files into multiple files and then \
play them.<br> <br>
<br>
Regards,<br>
Sandeep<br>
</div>
<div>
<div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Fri, May 2, 2014 at 4:03 PM, Reham Mohamed <span \
dir="ltr"> &lt;<a href="mailto:reham.fmohamed@gmail.com" \
target="_blank">reham.fmohamed@gmail.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <div dir="ltr">
<div>
<div>Thanks a lot for your help.<br>
<br>
</div>
Now i am trying to replay a pcap file on one virtual machine, but once the computer \
starts to run this file, the whole system stop working. The pcap file is almost 2 GB. \
What should i do to solve this problem?<br> <br>
</div>
Thanks<br>
</div>
<div>
<div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Thu, May 1, 2014 at 6:32 PM, Sandeep Kumar <span \
dir="ltr"> &lt;<a href="mailto:sandeepdas.cse@gmail.com" \
target="_blank">sandeepdas.cse@gmail.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <div dir="ltr">If i'm not mistaken then tcpwrite/tcpedit is \
right tool to change pcap files. <div><br>
</div>
<div>Its simple to use. Just do a little bit of search and you will be easily able to \
do that.</div> <div><br>
</div>
<div>Regards,</div>
<div>Sandeep</div>
</div>
<div>
<div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Thu, May 1, 2014 at 9:07 PM, Reham Mohamed <span \
dir="ltr"> &lt;<a href="mailto:reham.fmohamed@gmail.com" \
target="_blank">reham.fmohamed@gmail.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <div dir="ltr">
<div>
<div>Thanks for your reply.<br>
<br>
</div>
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&nbsp; a lot of packets that are destined \
to many hosts other than host B i want to send the flows to.&nbsp; 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?<br> <br>
</div>
Thank you!<br>
</div>
<div>
<div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Thu, May 1, 2014 at 5:10 PM, Sandeep Kumar <span \
dir="ltr"> &lt;<a href="mailto:sandeepdas.cse@gmail.com" \
target="_blank">sandeepdas.cse@gmail.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <div dir="ltr">You need to edit your pcap files before \
playing them using tcpreplay.&nbsp; <div><br>
</div>
<div>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.&nbsp;</div> <div>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.&nbsp;</div> <div><br>
</div>
<div>Make sure that you set proper Checksum at both Network and transport \
level.&nbsp;</div> <div><br>
</div>
<div>Then play your file using tcpreplay the packets will reach to required \
destination.</div> <div>&nbsp;</div>
<div><br>
</div>
<div><br>
</div>
<div>Regards,</div>
<div>Sandeep</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">
<div>
<div>On Thu, May 1, 2014 at 7:48 PM, Reham Mohamed <span dir="ltr">&lt;<a \
href="mailto:reham.fmohamed@gmail.com" \
target="_blank">reham.fmohamed@gmail.com</a>&gt;</span> wrote:<br> </div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <div>
<div>
<div dir="ltr">
<div>
<div>
<div>Hello,<br>
<br>
</div>
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?<br>
<br>
</div>
Your help is highly appreciated,<br>
<br>
</div>
Thanks in advance,</div>
<br>
</div>
</div>
------------------------------------------------------------------------------<br>
&quot;Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE<br>
Instantly run your Selenium tests across 300&#43; browser/OS combos. &nbsp;Get<br>
unparalleled scalability from the best Selenium testing platform available.<br>
Simple to use. Nothing to install. Get started now for free.&quot;<br>
<a href="http://p.sf.net/sfu/SauceLabs" \
target="_blank">http://p.sf.net/sfu/SauceLabs</a><br> \
_______________________________________________<br> Tcpreplay-users mailing list<br>
<a href="mailto:Tcpreplay-users@lists.sourceforge.net" \
target="_blank">Tcpreplay-users@lists.sourceforge.net</a><br> <a \
href="https://lists.sourceforge.net/lists/listinfo/tcpreplay-users" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/tcpreplay-users</a><br> \
Support Information: <a href="http://tcpreplay.synfin.net/trac/wiki/Support" \
target="_blank"> http://tcpreplay.synfin.net/trac/wiki/Support</a><br>
</blockquote>
</div>
<br>
</div>
<br>
------------------------------------------------------------------------------<br>
&quot;Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE<br>
Instantly run your Selenium tests across 300&#43; browser/OS combos. &nbsp;Get<br>
unparalleled scalability from the best Selenium testing platform available.<br>
Simple to use. Nothing to install. Get started now for free.&quot;<br>
<a href="http://p.sf.net/sfu/SauceLabs" \
target="_blank">http://p.sf.net/sfu/SauceLabs</a><br> \
_______________________________________________<br> Tcpreplay-users mailing list<br>
<a href="mailto:Tcpreplay-users@lists.sourceforge.net" \
target="_blank">Tcpreplay-users@lists.sourceforge.net</a><br> <a \
href="https://lists.sourceforge.net/lists/listinfo/tcpreplay-users" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/tcpreplay-users</a><br> \
Support Information: <a href="http://tcpreplay.synfin.net/trac/wiki/Support" \
target="_blank"> http://tcpreplay.synfin.net/trac/wiki/Support</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
<br>
------------------------------------------------------------------------------<br>
&quot;Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE<br>
Instantly run your Selenium tests across 300&#43; browser/OS combos. &nbsp;Get<br>
unparalleled scalability from the best Selenium testing platform available.<br>
Simple to use. Nothing to install. Get started now for free.&quot;<br>
<a href="http://p.sf.net/sfu/SauceLabs" \
target="_blank">http://p.sf.net/sfu/SauceLabs</a><br> \
_______________________________________________<br> Tcpreplay-users mailing list<br>
<a href="mailto:Tcpreplay-users@lists.sourceforge.net" \
target="_blank">Tcpreplay-users@lists.sourceforge.net</a><br> <a \
href="https://lists.sourceforge.net/lists/listinfo/tcpreplay-users" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/tcpreplay-users</a><br> \
Support Information: <a href="http://tcpreplay.synfin.net/trac/wiki/Support" \
target="_blank"> http://tcpreplay.synfin.net/trac/wiki/Support</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
<br>
------------------------------------------------------------------------------<br>
&quot;Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE<br>
Instantly run your Selenium tests across 300&#43; browser/OS combos. &nbsp;Get<br>
unparalleled scalability from the best Selenium testing platform available.<br>
Simple to use. Nothing to install. Get started now for free.&quot;<br>
<a href="http://p.sf.net/sfu/SauceLabs" \
target="_blank">http://p.sf.net/sfu/SauceLabs</a><br> \
_______________________________________________<br> Tcpreplay-users mailing list<br>
<a href="mailto:Tcpreplay-users@lists.sourceforge.net" \
target="_blank">Tcpreplay-users@lists.sourceforge.net</a><br> <a \
href="https://lists.sourceforge.net/lists/listinfo/tcpreplay-users" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/tcpreplay-users</a><br> \
Support Information: <a href="http://tcpreplay.synfin.net/trac/wiki/Support" \
target="_blank"> http://tcpreplay.synfin.net/trac/wiki/Support</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
<br>
------------------------------------------------------------------------------<br>
&quot;Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE<br>
Instantly run your Selenium tests across 300&#43; browser/OS combos. &nbsp;Get<br>
unparalleled scalability from the best Selenium testing platform available.<br>
Simple to use. Nothing to install. Get started now for free.&quot;<br>
<a href="http://p.sf.net/sfu/SauceLabs" \
target="_blank">http://p.sf.net/sfu/SauceLabs</a><br> \
_______________________________________________<br> Tcpreplay-users mailing list<br>
<a href="mailto:Tcpreplay-users@lists.sourceforge.net" \
target="_blank">Tcpreplay-users@lists.sourceforge.net</a><br> <a \
href="https://lists.sourceforge.net/lists/listinfo/tcpreplay-users" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/tcpreplay-users</a><br> \
Support Information: <a href="http://tcpreplay.synfin.net/trac/wiki/Support" \
target="_blank"> http://tcpreplay.synfin.net/trac/wiki/Support</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
<br>
------------------------------------------------------------------------------<br>
&quot;Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE<br>
Instantly run your Selenium tests across 300&#43; browser/OS combos. &nbsp;Get<br>
unparalleled scalability from the best Selenium testing platform available.<br>
Simple to use. Nothing to install. Get started now for free.&quot;<br>
<a href="http://p.sf.net/sfu/SauceLabs" \
target="_blank">http://p.sf.net/sfu/SauceLabs</a><br> \
_______________________________________________<br> Tcpreplay-users mailing list<br>
<a href="mailto:Tcpreplay-users@lists.sourceforge.net" \
target="_blank">Tcpreplay-users@lists.sourceforge.net</a><br> <a \
href="https://lists.sourceforge.net/lists/listinfo/tcpreplay-users" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/tcpreplay-users</a><br> \
Support Information: <a href="http://tcpreplay.synfin.net/trac/wiki/Support" \
target="_blank"> http://tcpreplay.synfin.net/trac/wiki/Support</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</span>
</body>
</html>


[Attachment #4 (--===============2887755965123859110==)]
------------------------------------------------------------------------------
"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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic