bidirectional L2 test

606 views
Skip to first unread message

zgre...@redhat.com

unread,
Feb 21, 2017, 10:16:33 AM2/21/17
to TRex Traffic Generator

Hi,

I'm still on the learning curve of TRex, please bear with me :)

Our SR-IOV test is very basic one - crossed bidirectional L2 with no switch in between, just two cables connected back-to-back between two servers.

Test scenario: 
moongen generating packet and sending it from its port 0 towards testpmd's port 1.
testpmd receiving the packet and forwards it to its second port 0.
from port 0 on testpmd, packet sends back towards mongen's port 1.

*Please see attached picture for a better understanding of my environment and test details.

How can I create the same simple test with TRex please?
Can TRex do L2 forwarding as testpmd does, or should I continue using testpmd as a client?

Appreciate your help!

Thank you,
Ziv
crossed_bidirectional_L2.png

ido barnea

unread,
Feb 21, 2017, 10:34:45 AM2/21/17
to zgre...@redhat.com, TRex Traffic Generator
Hi Ziv,

You can do what you want (and a lot more) using TRex stateless mode.
Run on one terminal:
./t-rex-64 -i (This is interactive mode, also known as stateless).
Then, run from another terminal trex-console, and send packets. 
What I described is manual using the TRex console. The documentation also shows automation API to do the same.

TRex does not do L2 forward. It is only generating traffic.

Ido


--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/b84a624a-f8ee-4610-a79c-69ff0c36d85a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<crossed_bidirectional_L2.png>

hanoh haim

unread,
Feb 23, 2017, 6:36:44 AM2/23/17
to ido barnea, zgre...@redhat.com, TRex Traffic Generator
Hi Ziv,
What you are describing is NOT SR-IOV

All the point in SR-IOV to do the same on the same machine with 2 VM without vSwitch overhead 

Suggest to read this:



Thanks
Hanoh


For more options, visit https://groups.google.com/d/optout.
--
Hanoh
Sent from my iPhone
Message has been deleted

Ziv Greenberg

unread,
Feb 26, 2017, 11:06:55 AM2/26/17
to hanoh haim, ido barnea, TRex Traffic Generator
Hi Hanoh,

The reason for this test is to make sure there is no os/kernel interruption on the pmd's threads, next step is to run it in the OpenStack env.

Regarding the test setup itself, I only was able to generate traffic while binding two PH nic's on the testpmd server.

I did the same test with two VF's devices instead, but unfortunately, in this case, there was no traffic from TRex at all, o packets.

I haven't found any specific SR-IOV configuration on the TRex side.
Is there anything I have missed?

Additional questions please:
 
Is there a way to create a summary report after each run? 

Also, I have attended your presentation (Introduction to TRex in RedHat) you have shown us Grafana integration, could you please point me on how to implement it, please?

Thank you for your help.
Ziv

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/b84a624a-f8ee-4610-a79c-69ff0c36d85a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<crossed_bidirectional_L2.png>

--
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.

Madhav !

unread,
Mar 14, 2020, 5:39:09 AM3/14/20
to TRex Traffic Generator
Hi Ziv, I'm working on a very similar project myself. And I was wondering how you were able to achieve the moongen-testpmd setup. It'd be of great help if you or someone who achieved the same, could share it with me. 
Also, were you able to achieve the same with TRex like you wanted to? If so, how do I do the same? 

Thanks in advance.

Regards,
Madhav
Reply all
Reply to author
Forward
0 new messages