Using Trex to generate traffic to a windows PC

658 views
Skip to first unread message

michael...@gmail.com

unread,
Jun 1, 2018, 1:00:08 PM6/1/18
to TRex Traffic Generator
Hello,

I am looking for a way to generate traffic to test an application on a Windows endpoint that would filter that traffic.
Is that possible with Trex.
From what I've read so far it appears that installing Trex is only possible onto Linux machines or VM not Windows.
That would be fine if I can then use it to send the traffic to a Windows endpoint to be consumed by my application.
I'd appreciate any input, thanks
Michael

Yaroslav Brustinov

unread,
Jun 1, 2018, 3:12:58 PM6/1/18
to michael...@gmail.com, TRex Traffic Generator

Hi,

You can use Virtual Box, that would give Linux inside Windows.
You can setup it to bridge interfaces Linux <-> Windows.
Use virtual E1000 inside Linux.

Thanks,
Yaroslav

--
You received this message because you are subscribed to the Google Groups "TRex Traffic Generator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+unsubscribe@googlegroups.com.
To post to this group, send email to trex...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/07a71057-0bb9-4dca-87ac-96e435b3f755%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

michael...@gmail.com

unread,
Jun 1, 2018, 5:08:03 PM6/1/18
to TRex Traffic Generator
Thanks Yaroslav,
Would you have more detailed instructions available on how to set up the bridge interface?
I am running Trex on a Fedora_21 VM in Virtual Box, my PC is running Win10 outside VB.
Cheers
Michael

hanoh haim

unread,
Jun 3, 2018, 4:25:11 AM6/3/18
to michael...@gmail.com, TRex Traffic Generator
Hi, 
Another alternative, 
with Windows 10 you can run Linux docker in native manner. 

Have a look here

thanks,
Hanoh


 

Michael

--
You received this message because you are subscribed to the Google Groups "TRex Traffic Generator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+unsubscribe@googlegroups.com.
To post to this group, send email to trex...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Hanoh
Sent from my iPhone

michael...@gmail.com

unread,
Jun 6, 2018, 3:13:18 PM6/6/18
to TRex Traffic Generator
I set up a Bridged Adapter as suggested in the Fedora VM under Virtual Box.
I then start T-rex server using different profiles from the cap2 folder.
While running and sending traffic I am attempting to capture it on the other side in Wireshark in my host Windows machine.
Sometimes the traffic does show up, sometimes it does not.
Question 1: I wonder why the inconsistency?
Also when traffic does show up it shows up as lots of Malformed packets in Wireshark.
I took the pcap file that the yaml file is using inside it (eg http_simple.yaml has delay_10_http_browsing_0.pcap inside it so I'm assuming it uses this pcap to generate traffic), opened the pcap in my windows host in Wireshark and it looks like normal traffic, no Malformed packets.
Question 2: Can you help with why the same traffic when sent through T-Rex and captured with Wireshark in my host shows up as a long list of Malformed packets?
Thanks
Michael

hanoh haim

unread,
Jun 6, 2018, 3:34:23 PM6/6/18
to michael...@gmail.com, TRex Traffic Generator
Hi Michael,
Could you provide more info about what is malform?
Capfile would be good too

Hanoh

--
You received this message because you are subscribed to the Google Groups "TRex Traffic Generator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+u...@googlegroups.com.

To post to this group, send email to trex...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

michael...@gmail.com

unread,
Jun 6, 2018, 4:27:21 PM6/6/18
to TRex Traffic Generator
I'll try to capture and post.
Right now I'm struggling with getting data flowing to my windows host again for some reason.
When I open wireshark there expecting traffic from the trex server running inside the VM guest in VirtualBox ... I only see ARP request in Wireshark
Who has 2.2.2.2? Tell 1.1.1.1
Who has 1.1.1.1? Tell 2.2.2.2
I'm guessing I messed up something but not sure what :(
Michael
Reply all
Reply to author
Forward
0 new messages