TRex and VPP

185 views
Skip to first unread message

linxing...@gmail.com

unread,
Apr 5, 2017, 7:41:11 AM4/5/17
to TRex Traffic Generator, linxch...@163.com
Hi all,
I'm trying to use TRex to test VPP performance. I installed TRex and VPP on the same VM. How can I use TRex to send packages to VPP?

Thanks!
Xingchen

hanoh haim

unread,
Apr 5, 2017, 8:43:03 AM4/5/17
to linxing...@gmail.com, TRex Traffic Generator, linxch...@163.com
Hi Xingchen, 


It is a bit more difficult to run both VPP and TRex on the same machine. (DPDK init)

It is not clear if you want to use phy interfaces or not.

I would start by running each of them separately on the same machine (phy or virt interfaces)

then look into the thread (on this forum) for how to run L2FW and TRex on the same machine for the detail how to do them both


thanks,

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+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/cefff9b0-b4b3-44a5-8de3-c792957eee3d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Hanoh
Sent from my iPhone
Message has been deleted
Message has been deleted

linxing...@gmail.com

unread,
Apr 5, 2017, 9:13:52 AM4/5/17
to TRex Traffic Generator, linxing...@gmail.com, linxch...@163.com, hhaim...@gmail.com
Hi Hanoh,


 I installed them on VMware and binded some virtual Ethernet adapters to igb_uio.ko (dpdk). When configuring the trex_cfg.yaml file, I used two of them. Is the one used as server port and the other as client port?
 And then how can I configure the interfaces by VPP in order to make the packages sent to VPP?


Thanks!
Xingchen




> On Wed, Apr 5, 2017 at 8:43 PM, Hanoch Haim wrote:
> Hi Xingchen, 
>
>
>
> It is a bit more difficult to
> run both VPP and TRex on the same machine. (DPDK init)
>
>
> It is not clear if you want
> to use phy interfaces or not.
>
>
> I would start by running
> each of them separately on the same machine (phy or virt interfaces)
>
>
> then look into the thread (on
> this forum) for how to run L2FW and TRex on the same machine for the detail how
> to do them both
>
>
>
>
> thanks,
>
>
> Hanoh
>
>
>
>
> On Wed, Apr 5, 2017 at 2:41 PM, <linxing...@gmail.com> wrote:
> Hi all,
>
>  I'm trying to use TRex to test VPP performance. I installed TRex and VPP on the same VM. How can I use TRex to send packages to VPP?
>
>
>
> Thanks!
>
> Xingchen
>
>
>
> --
>
> 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.

hanoh haim

unread,
Apr 5, 2017, 11:05:55 AM4/5/17
to linxing...@gmail.com, TRex Traffic Generator, linxch...@163.com
Is that case try to run TRex in a separate VM first with two VMXNET3 interfaces .
not sure about the performance as vSwitch will limit you 

Hanoh

linxing...@gmail.com

unread,
Apr 5, 2017, 9:37:35 PM4/5/17
to TRex Traffic Generator, linxing...@gmail.com, linxch...@163.com, hhaim...@gmail.com
If I run TRex in a separate VM first, and run VPP in the other separate VM, is there some methods to connect the interfaces between the two VMs?
I'm new here and don't konw much about it. Thanks a lot for your patience!




Thanks,
Xingchen

Yaroslav Brustinov

unread,
Apr 6, 2017, 3:47:39 AM4/6/17
to linxing...@gmail.com, TRex Traffic Generator, linxch...@163.com, hanoh haim
Hi,

You have several options:
  1. Connect virtual interfaces via vSwitch or bridge.
  2. Use VFs of real NICs (SR-IOV)
  3. Give real NICs to VMs and connect them via loopback cable.
Thanks,
Yaroslav.

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.
Reply all
Reply to author
Forward
0 new messages