TRex beginner guide

847 views
Skip to first unread message

Praveen Rai

unread,
Jul 29, 2018, 1:56:38 AM7/29/18
to TRex Traffic Generator
Hi Folks,

I am very new to traffic Generator world. Today I download TRex Docker version I read the documentation available on TRex portal but not much useful documentation available on the website. I follow steps mentioned over there but I am only able to see 1 interface in my docker but I added 3 interfaces to my docker Unit.

getting so many error.

[root@TRex v2.41]# ./dpdk_nic_bind.py --status

Network devices using DPDK-compatible driver
============================================
<none>

Network devices using kernel driver
===================================
<none>

Other network devices
=====================
0000:02:01.0 '82545EM Gigabit Ethernet Controller (Copper)' unused=

================================================

[root@TRex v2.41]# cap2/imix_64.yaml
cap2/imix_64.yaml: line 4: -: command not found
cap2/imix_64.yaml: line 5: generator: command not found
cap2/imix_64.yaml: line 6: distribution: command not found
cap2/imix_64.yaml: line 7: clients_start: command not found
cap2/imix_64.yaml: line 8: clients_end: command not found
cap2/imix_64.yaml: line 9: servers_start: command not found
cap2/imix_64.yaml: line 10: servers_end: command not found
cap2/imix_64.yaml: line 11: clients_per_gb: command not found
cap2/imix_64.yaml: line 12: min_clients: command not found
cap2/imix_64.yaml: line 13: dual_port_mask: command not found
cap2/imix_64.yaml: line 14: tcp_aging: command not found
cap2/imix_64.yaml: line 15: udp_aging: command not found
cap2/imix_64.yaml: line 20: cap_info: command not found
cap2/imix_64.yaml: line 21: -: command not found
cap2/imix_64.yaml: line 22: cps: command not found
cap2/imix_64.yaml: line 23: ipg: command not found
cap2/imix_64.yaml: line 24: rtt: command not found
22:40:09 up 2 days, 19:59, 1 user, load average: 2.71, 3.15, 3.25
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
cap2/imix_64.yaml: line 26: limit: command not found
cap2/imix_64.yaml: line 27: -: command not found
cap2/imix_64.yaml: line 28: cps: command not found
cap2/imix_64.yaml: line 29: ipg: command not found
cap2/imix_64.yaml: line 30: rtt: command not found
22:40:09 up 2 days, 19:59, 1 user, load average: 2.71, 3.15, 3.25
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT


I don't have much clue how to start learning TRex for my topology and use it max.can somebody here help me to play with TRex and docker version initial Trex setup.

I am struggling with TRex really need some help to begin with

-Praveen

hanoh haim

unread,
Jul 29, 2018, 4:39:03 PM7/29/18
to Praveen Rai, TRex Traffic Generator
The docker image intended for tutorials.
We have a startup script that creates two interfaces (veth0 and veth1) in loopback for making traffic command works.

You can create other interface if you want and change the configuration file accordingly

I suggest to keep this configuration and learn the basic first using the manuals

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+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/cafe7a8e-12e5-4682-a597-8f2d4d4b1b87%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Hanoh
Sent from my iPhone

Praveen Rai

unread,
Aug 5, 2018, 3:19:36 PM8/5/18
to TRex Traffic Generator
Thanks, Hanoh for a response.

Suppose I have topology like this :--

                                 (eth1) TRex(eth2)_____
                                     |                                  |
                                     |                                  |
                                     |__(eth0)DUT(eth1)__|
                                         
so int his case how default config of TRex works with ports veth0 & veth1. as in my topology, TRex connected with DUT on eth1 & eth2 port respectively.

as per my understanding, I have to change default config to match these 2 interfaces. 

Sorry but in your docker TRex documentation section not much discussed or written on this .how to use docker version.

please clear my doubts if possible.

-Praveen

hanoh haim

unread,
Aug 6, 2018, 1:42:41 AM8/6/18
to Praveen Rai, TRex Traffic Generator
Try reading the manual, configuration file descriptions is there.

Hanoh


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

Matt Callaghan

unread,
Aug 15, 2018, 11:26:39 AM8/15/18
to TRex Traffic Generator
Reply all
Reply to author
Forward
0 new messages