Trex installation help on X86

1,323 views
Skip to first unread message

Vamshi Krishna

unread,
Jun 28, 2017, 7:16:33 AM6/28/17
to TRex Traffic Generator
i am getting the bellow error while running the ./t-rex-64 -f cap2/dns.yaml -d 10 -l 1000

Please help me on this


The ports are bound/configured.
Starting  TRex v2.26 please wait  ...
PANIC in rte_eal_init():
Cannot get hugepage information
6: [./_t-rex-64() [0x480dbd]]
5: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f26aec63f45]]
4: [./_t-rex-64(_Z9main_testiPPc+0x22a) [0x4be8ba]]
3: [./_t-rex-64(rte_eal_init+0xc9b) [0x70284b]]
2: [./_t-rex-64(__rte_panic+0xbe) [0x47df56]]
1: [./_t-rex-64(rte_dump_stack+0x28) [0x703478]]
./t-rex-64: line 60: 40974 Aborted                 (core dumped) ./_$(basename $0) $INPUT_ARGS $EXTRA_INPUT_ARGS



below are my CPU info and console prints

root@suram-PowerEdge-R720:~/trex/v2.26# ./dpdk_setup_ports.py -s

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

Network devices using kernel driver
===================================
0000:01:00.0 'Ethernet Controller 10-Gigabit X540-AT2' if=eth2 drv=ixgbe unused=igb_uio,vfio-pci,uio_pci_generic *Active*
0000:01:00.1 'Ethernet Controller 10-Gigabit X540-AT2' if=eth3 drv=ixgbe unused=igb_uio,vfio-pci,uio_pci_generic
0000:08:00.0 'I350 Gigabit Network Connection' if=eth0 drv=igb unused=igb_uio,vfio-pci,uio_pci_generic
0000:08:00.1 'I350 Gigabit Network Connection' if=eth1 drv=igb unused=igb_uio,vfio-pci,uio_pci_generic

Other network devices
=====================
<none>
root@suram-PowerEdge-R720:~/trex/v2.26# ./dpdk_setup_ports.py -i
By default, IP based configuration file will be created. Do you want to use MAC based config? (y/N)n
+----+------+---------+-------------------+-----------------------------------------+--------+----------+----------+
| ID | NUMA |   PCI   |        MAC        |                  Name                   | Driver | Linux IF |  Active  |
+====+======+=========+===================+=========================================+========+==========+==========+
| 0  | 0    | 01:00.0 | ec:f4:bb:d4:e7:68 | Ethernet Controller 10-Gigabit X540-AT2 | ixgbe  | eth2     | *Active* |
+----+------+---------+-------------------+-----------------------------------------+--------+----------+----------+
| 1  | 0    | 01:00.1 | ec:f4:bb:d4:e7:6a | Ethernet Controller 10-Gigabit X540-AT2 | ixgbe  | eth3     |          |
+----+------+---------+-------------------+-----------------------------------------+--------+----------+----------+
| 2  | 0    | 08:00.0 | ec:f4:bb:d4:e7:6c | I350 Gigabit Network Connection         | igb    | eth0     |          |
+----+------+---------+-------------------+-----------------------------------------+--------+----------+----------+
| 3  | 0    | 08:00.1 | ec:f4:bb:d4:e7:6d | I350 Gigabit Network Connection         | igb    | eth1     |          |
+----+------+---------+-------------------+-----------------------------------------+--------+----------+----------+
Please choose even number of interfaces from the list above, either by ID , PCI or Linux IF
Stateful will use order of interfaces: Client1 Server1 Client2 Server2 etc. for flows.
Stateless can be in any order.
Enter list of interfaces separated by space (for example: 1 3) : 2 3

For interface 2, assuming loopback to it's dual interface 3.
Putting IP 1.1.1.1, default gw 2.2.2.2 Change it?(y/N).n
For interface 3, assuming loopback to it's dual interface 2.
Putting IP 2.2.2.2, default gw 1.1.1.1 Change it?(y/N).n
Print preview of generated config? (Y/n)y
### Config file generated by dpdk_setup_ports.py ###

- port_limit: 2
  version: 2
  interfaces: ['08:00.0', '08:00.1']
  port_info:
      - ip: 1.1.1.1
        default_gw: 2.2.2.2
      - ip: 2.2.2.2
        default_gw: 1.1.1.1

  platform:
      master_thread_id: 0
      latency_thread_id: 5
      dual_if:
        - socket: 0
          threads: [1,2,3,4]


Save the config to file? (Y/n)y
Default filename is /etc/trex_cfg.yaml
Press ENTER to confirm or enter new file:
File /etc/trex_cfg.yaml already exist, overwrite? (y/N)y
Saved to /etc/trex_cfg.yaml.

root@suram-PowerEdge-R720:~/trex/v2.26# /dpdk_setup_ports.py -c eth0 eth1
-bash: /dpdk_setup_ports.py: No such file or directory
root@suram-PowerEdge-R720:~/trex/v2.26# ./dpdk_setup_ports.py -c eth0 eth1
### Dumping config to screen, use -o flag to save to file
### Config file generated by dpdk_setup_ports.py ###

- port_limit: 2
  version: 2
  interfaces: ['08:00.0', '08:00.1']
  port_info:
      - ip: 1.1.1.1
        default_gw: 2.2.2.2
      - ip: 2.2.2.2
        default_gw: 1.1.1.1

  platform:
      master_thread_id: 0
      latency_thread_id: 5
      dual_if:
        - socket: 0
          threads: [1,2,3,4]



root@suram-PowerEdge-R720:~/trex/v2.26# ./t-rex-64 -f cap2/dns.yaml -c 4 -m 1 -d 10  -l 1000
Creating huge node
Trying to bind to vfio-pci ...
Trying to compile and bind to igb_uio ...
ERROR: We don't have precompiled igb_uio.ko module for your kernel version
Will try compiling automatically.

Success.
/usr/bin/python dpdk_nic_bind.py --bind=igb_uio 0000:08:00.0 0000:08:00.1
The ports are bound/configured.
Starting  TRex v2.26 please wait  ...
PANIC in rte_eal_init():
Cannot get hugepage information
6: [./_t-rex-64() [0x480dbd]]
5: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f648648bf45]]
4: [./_t-rex-64(_Z9main_testiPPc+0x22a) [0x4be8ba]]
3: [./_t-rex-64(rte_eal_init+0xc9b) [0x70284b]]
2: [./_t-rex-64(__rte_panic+0xbe) [0x47df56]]
1: [./_t-rex-64(rte_dump_stack+0x28) [0x703478]]
./t-rex-64: line 60: 40901 Aborted                 (core dumped) ./_$(basename $0) $INPUT_ARGS $EXTRA_INPUT_ARGS



root@suram-PowerEdge-R720:~/trex/v2.26# ./t-rex-64 -f cap2/dns.yaml -d 10 -l 1000
The ports are bound/configured.
Starting  TRex v2.26 please wait  ...
PANIC in rte_eal_init():
Cannot get hugepage information
6: [./_t-rex-64() [0x480dbd]]
5: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f26aec63f45]]
4: [./_t-rex-64(_Z9main_testiPPc+0x22a) [0x4be8ba]]
3: [./_t-rex-64(rte_eal_init+0xc9b) [0x70284b]]
2: [./_t-rex-64(__rte_panic+0xbe) [0x47df56]]
1: [./_t-rex-64(rte_dump_stack+0x28) [0x703478]]
./t-rex-64: line 60: 40974 Aborted                 (core dumped) ./_$(basename $0) $INPUT_ARGS $EXTRA_INPUT_ARGS



root@suram-PowerEdge-R720:~/trex/v2.26# ./t-rex-64 -f cap2/simple_http.yaml -c 4 -m 100 -d 100
The ports are bound/configured.
Starting  TRex v2.26 please wait  ...
PANIC in rte_eal_init():
Cannot get hugepage information
6: [./_t-rex-64() [0x480dbd]]
5: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7ff3c7cbdf45]]
4: [./_t-rex-64(_Z9main_testiPPc+0x22a) [0x4be8ba]]
3: [./_t-rex-64(rte_eal_init+0xc9b) [0x70284b]]
2: [./_t-rex-64(__rte_panic+0xbe) [0x47df56]]
1: [./_t-rex-64(rte_dump_stack+0x28) [0x703478]]
./t-rex-64: line 60: 41029 Aborted                 (core dumped) ./_$(basename $0) $INPUT_ARGS $EXTRA_INPUT_ARGS
root@suram-PowerEdge-R720:~/trex/v2.26#


Yaroslav Brustinov

unread,
Jun 28, 2017, 7:34:40 AM6/28/17
to Vamshi Krishna, TRex Traffic Generator
Could you share output of:

cat /proc/meminfo
cat /proc/cmdline

Could you try following:
edit file trex-cfg, and replace 2048 with lower number? 512 etc.
here:

        if [ "$(cat $file)" != "2048" ] ; then
          echo 2048 > $file


--
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/8d9530c4-06f2-43da-a628-eb0b1fcfa75e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vamshi Krishna

unread,
Jun 28, 2017, 8:41:03 AM6/28/17
to TRex Traffic Generator, babl...@gmail.com
Hi,

thank you very much for your quick responce.

it's working after modification, if i reverted to 2048 also it's working.

But i am unable to analyze the output. Please help me on this

where did i get the documents on this TREX tool. i want to comapre with comarcial tool IXIA.


output :-











-Per port stats table
      ports |               0 |               1
 -----------------------------------------------------------------------------------------
   opackets |             974 |             974
     obytes |           64383 |           64527
   ipackets |             974 |             974
     ibytes |           64527 |           64383
    ierrors |               0 |               0
    oerrors |               0 |               0
      Tx Bw |      53.63 Kbps |      53.97 Kbps

-Global stats enabled
 Cpu Utilization : 0.0  %  1.3 Gb/core
 Platform_factor : 1.0
 Total-Tx        :     107.60 Kbps
 Total-Rx        :     107.60 Kbps
 Total-PPS       :     202.98  pps
 Total-CPS       :       0.98  cps

 Expected-PPS    :       2.00  pps
 Expected-CPS    :       1.00  cps
 Expected-BPS    :       1.36 Kbps

 Active-flows    :        0  Clients :      511   Socket-util : 0.0000 %
 Open-flows      :        9  Servers :      255   Socket :        9 Socket/Clients :  0.0
 drop-rate       :       0.00  bps
 current time    : 20.6 sec
 test duration   : 0.0 sec

-Latency stats enabled
 Cpu Utilization : 0.0 %
 if|   tx_ok , rx_ok  , rx check ,error,       latency (usec) ,    Jitter          max window
   |         ,        ,          ,     ,   average   ,   max  ,    (usec)
 ----------------------------------------------------------------------------------------------------------------
 0 |      965,     965,         0,    0,         21  ,      33,       0      |  32  22  32  22  32  22  33  22  32  22  32  22  32
 1 |      965,     965,         0,    0,         22  ,      34,       0      |  33  22  33  22  33  22  32  22  33  22  33  22  34
 *** TRex is shutting down - cause: 'test has ended'
 latency daemon has stopped
 ==================
 interface sum
 ==================
 ---------------
port : 0
------------
 opackets                                 : 1035
 obytes                                   : 68409
 ipackets                                 : 1035
 ibytes                                   : 68553
 Tx :      36.24 Kbps
port : 1
------------
 opackets                                 : 1035
 obytes                                   : 68553
 ipackets                                 : 1035
 ibytes                                   : 68409
 Tx :      36.41 Kbps
 Cpu Utilization : 0.0  %  0.9 Gb/core
 Platform_factor : 1.0
 Total-Tx        :      72.64 Kbps
 Total-Rx        :      72.64 Kbps
 Total-PPS       :     137.18  pps
 Total-CPS       :       0.49  cps

 Expected-PPS    :       2.00  pps
 Expected-CPS    :       1.00  cps
 Expected-BPS    :       1.36 Kbps

 Active-flows    :        0  Clients :      511   Socket-util : 0.0000 %
 Open-flows      :        9  Servers :      255   Socket :        0 Socket/Clients :  0.0
 drop-rate       :       0.00  bps
 ==================


 ==================
 interface sum
 ==================
------------------------
 per core stats core id : 1
------------------------
------------------------
 per core per if stats id : 1
------------------------
 port 0, queue id :0  - client
 ----------------------------
 port 1, queue id :0  - server
 ----------------------------
 ==================
 generators
 ==================


normal
-------------
 min_delta  : 10 usec
 cnt        : 0
 high_cnt   : 0
 max_d_time : 0 usec
 sliding_average    : 0 usec
 precent    : -nan %
 histogram
 -----------
 m_total_bytes                           :       1.49 Kbytes
 m_total_pkt                             :      18.00  pkt
 m_total_open_flows                      :       9.00  flows
 m_total_pkt                             : 18
 m_total_open_flows                      : 9
 m_total_close_flows                     : 9
 m_total_bytes                           : 1530
 ==================
 latency
 ==================
 Cpu Utilization : 0.0 %
 if|   tx_ok , rx_ok  , rx check ,error,       latency (usec) ,    Jitter          max window
   |         ,        ,          ,     ,   average   ,   max  ,    (usec)
 ----------------------------------------------------------------------------------------------------------------
 0 |     1026,    1026,         0,    0,         21  ,      33,       0      |  32  22  32  22  32  22  33  22  32  22  32  22  32
 1 |     1026,    1026,         0,    0,         22  ,      34,       0      |  33  22  33  22  33  22  32  22  33  22  33  22  34
 cpu : 0.0  %
 port   0
 -----------------
 counter
 -----------
 m_tx_pkt_ok                              : 1026
 m_pkt_ok                                 : 1026
 -----------
 min_delta  : 10 usec
 cnt        : 50
 high_cnt   : 50
 max_d_time : 33 usec
 sliding_average    : 21 usec
 precent    : 100.0 %
 histogram
 -----------
 h[20]  :  961
 h[30]  :  65
 jitter                                   : 0
 port   1
 -----------------
 counter
 -----------
 m_tx_pkt_ok                              : 1026
 m_pkt_ok                                 : 1026
 -----------
 min_delta  : 10 usec
 cnt        : 50
 high_cnt   : 50
 max_d_time : 34 usec
 sliding_average    : 22 usec
 precent    : 100.0 %
 histogram
 -----------
 h[20]  :  963
 h[30]  :  63
 jitter                                   : 0
 rx_checker is disabled
 ---------------
port : 0
------------
 opackets                                 : 1035
 obytes                                   : 68409
 ipackets                                 : 1035
 ibytes                                   : 68553
 Tx :      36.24 Kbps
port : 1
------------
 opackets                                 : 1035
 obytes                                   : 68553
 ipackets                                 : 1035
 ibytes                                   : 68409
 Tx :      36.41 Kbps
 Cpu Utilization : 0.0  %  0.9 Gb/core
 Platform_factor : 1.0
 Total-Tx        :      72.64 Kbps
 Total-Rx        :      72.64 Kbps
 Total-PPS       :     137.18  pps
 Total-CPS       :       0.49  cps

 Expected-PPS    :       2.00  pps
 Expected-CPS    :       1.00  cps
 Expected-BPS    :       1.36 Kbps

 Active-flows    :        0  Clients :      511   Socket-util : 0.0000 %
 Open-flows      :        9  Servers :      255   Socket :        0 Socket/Clients :  0.0
 drop-rate       :       0.00  bps
 summary stats
 --------------
 Total-pkt-drop       : 0 pkts
 Total-tx-bytes       : 136962 bytes
 Total-tx-sw-bytes    : 135432 bytes
 Total-rx-bytes       : 136962 byte

 Total-tx-pkt         : 2070 pkts
 Total-rx-pkt         : 2070 pkts
 Total-sw-tx-pkt      : 2052 pkts
 Total-sw-err         : 0 pkts
 Total ARP sent       : 4 pkts
 Total ARP received   : 4 pkts
 maximum-latency   : 34 usec
 average-latency   : 22 usec
 latency-any-error : OK




Thank's & regard's
vamshi.P
To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+u...@googlegroups.com.

Yaroslav Brustinov

unread,
Jun 28, 2017, 9:44:20 AM6/28/17
to Vamshi Krishna, TRex Traffic Generator
Here is example of stateful run + statistics: (might want to uncomment the dump)

    automation/trex_control_plane/stf/examples/stf_example.py

You will need to run daemon prior the Python script:

    sudo ./trex_daemon_server start


All the documentation is here:

Specifically for stateful:



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.

hanoh haim

unread,
Jun 28, 2017, 7:44:46 PM6/28/17
to Vamshi Krishna, Yaroslav Brustinov, TRex Traffic Generator
We have two different modes of operations,
Suggest to look into the right one.

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.
--
Hanoh
Sent from my iPhone

Vamshi Krishna

unread,
Jun 29, 2017, 11:09:52 AM6/29/17
to TRex Traffic Generator, babl...@gmail.com, y.bru...@gmail.com
Hi Hanoh,

Thanks for your help,

I am trying to send the DNS.PCAP file using "./t-rex-64" command. Below is my setup.

Trex PC(x86 PC)-port1--------------DUT---------------Trex PC(x86 PC)-port2

I see that the traffic from the PC is being dropped by the DUT, I had disabled firewall on the DUT and also there is no NAT. It is just a plane forwarding Router.
But I see that the traffic is being dropped by the DUT instead of forwarding.

While trying to debug the issue, I had observed that the traffic sent by the TREX PC is 'SCTP'.

Can you please advice me on how to send the normal UDP & TCP traffic.
Also it will be very helpful if you can advice on how to configure the setup successfully. I would like to run a UDP/TCP performance tests.

Using T-REX, can we measure the connection rate in case of TCP??



Thanks,
Vamshi P

hanoh haim

unread,
Jun 29, 2017, 1:44:31 PM6/29/17
to TRex Traffic Generator, Vamshi Krishna, y.bru...@gmail.com
Can you describe in high level your DUT and the feature?


For more options, visit https://groups.google.com/d/optout.
Message has been deleted

Vamshi Krishna

unread,
Jun 30, 2017, 5:13:42 AM6/30/17
to TRex Traffic Generator, babl...@gmail.com, y.bru...@gmail.com
Hi Hanoh,

it's small business scale router, i disable the firewall also on that.
if i captured a file on my router it's showing SCTP while sending the UDP traffic


Can you please advice me on how to send the normal UDP & TCP traffic.
Also it will be very helpful if you can advice on how to configure the setup successfully. I would like to run a UDP/TCP performance tests.

Using T-REX, can we measure the connection rate in case of TCP??


Regard's
vamshi.P

hanoh haim

unread,
Jul 3, 2017, 2:35:25 AM7/3/17
to TRex Traffic Generator, Vamshi Krishna, y.bru...@gmail.com
SCTP is used for latency check. You could change it to be ICMP.
If you are trying to benchmark firewall performance, stateful is the right way 

Doc can be found here:


Thanks,
Hanoh 


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

Vamshi Krishna

unread,
Jul 5, 2017, 3:53:40 AM7/5/17
to TRex Traffic Generator, babl...@gmail.com, y.bru...@gmail.com
HI Hanoh,

can you please tell me how to change to ICMP, TCP and UDP packets.

Thank's & Regard's
Vamshi.P

hanoh haim

unread,
Jul 5, 2017, 4:30:27 AM7/5/17
to Vamshi Krishna, TRex Traffic Generator, Yaroslav Brustinov

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