DPDK in a box aka loopback scenario - No traffic on Port 1

514 views
Skip to first unread message

Sandeep Raman

unread,
Feb 18, 2018, 10:30:02 AM2/18/18
to TRex Traffic Generator
Hi,

I am testing RFC2544 based scenario with TRex and 2-port Intel 560 NIC.

ens2f0 - 10.70.12.200/24 - 14:02:ec:74:2b:ec - 05:00.0
ens2f1 - 10.70.3.200/24  - 14:02:ec:74:2b:ed - 05:00.1

I configured the yaml file for 2 scenarios, one ip based and the other mac based.

The command used: ./t-rex-64 -f cap2/imix_64_100k.yaml -c 4 -d 30

IP based: Failed resolving dest MAC for default gateway:10.70.3.1 on port 1

[root@trexnode v2.36]# cat /etc/trex_cfg.yaml
- port_limit      : 2
  version         : 2
#List of interfaces. Change to suit your setup. Use ./dpdk_setup_ports.py -s to see available options
  interfaces    : ["05:00.0","05:00.1"]
  port_info       :  # Port IPs. Change to suit your needs. In case of loopback, you can leave as is.
          - ip         : 10.70.12.205
            default_gw : 10.70.12.1
          - ip         : 10.70.3.205
            default_gw : 10.70.3.1
[root@trexnode v2.36]#

The ip's 10.70.12.205 and 10.70.3.205 fall in the same network as the ip assigned to ens2f0 and ens2f1.
Ip assigned to ens2f0 and ens2f1 is 10.70.12.200 and 10.70.3.200 as mentioned above.

[root@trexnode v2.36]# ./t-rex-64 -f cap2/imix_64_100k.yaml -c 4 -d 30
The ports are bound/configured.
Starting  TRex v2.36 please wait  ...
 set driver name net_ixgbe
 driver capability  : TCP_UDP_OFFLOAD  TSO
 Number of ports found: 2
zmq publisher at: tcp://*:4500
 wait 1 sec .
port : 0
------------
link         :  link : Link Up - speed 10000 Mbps - full-duplex
promiscuous  : 0
port : 1
------------
link         :  link : Link Up - speed 10000 Mbps - full-duplex
promiscuous  : 0
 number of ports         : 2
 max cores for 2 ports   : 4
 max queue per port      : 6
no client generator pool configured, using default pool
no server generator pool configured, using default pool
 -------------------------------
RX core uses TX queue number 5 on all ports
 core, c-port, c-queue, s-port, s-queue, lat-queue
 ------------------------------------------
 1        0      0       1       0    255
 2        0      1       1       1    255
 3        0      2       1       2    255
 4        0      3       1       3    255
 -------------------------------
no client generator pool configured, using default pool
no server generator pool configured, using default pool
 -- loading cap file cap2/udp_64B.pcap
 -- loading cap file cap2/udp_64B.pcap
 -- loading cap file cap2/udp_64B.pcap
 -- loading cap file cap2/udp_64B.pcap
 -- loading cap file cap2/udp_64B.pcap
 -- loading cap file cap2/udp_64B.pcap
 -- loading cap file cap2/udp_64B.pcap
 -- loading cap file cap2/udp_64B.pcap
Failed resolving dest MAC for default gateway:10.70.3.1 on port 1
[root@trexnode v2.36]#


MAC based: No traffic on Port 1

[root@trexnode v2.36]# cat ../trex_cfg_files/trex_mac_cfg.yaml
- port_limit      : 2         # this option can limit the number of port of the platform
  version       : 2
  interfaces    : ["05:00.0","05:00.1"]   # list of the interfaces to bind run ./dpdk_nic_bind.py --status
  port_info       :  # set eh mac addr
          - dest_mac        : '14:02:ec:74:2b:ed'
            src_mac         : '14:02:ec:74:2b:ec'
          - dest_mac        : '14:02:ec:74:2b:ec'
            src_mac         : '14:02:ec:74:2b:ed'
[root@trexnode v2.36]#

ens2f0: 14:02:ec:74:2b:ec
ens2f1: 14:02:ec:74:2b:ed



Am i missing any configuration. Any pointers what needs to be done so traffic is generated on Port 1 also.

Thanks,
Sandeep.

Sandeep Raman

unread,
Feb 19, 2018, 11:31:29 AM2/19/18
to TRex Traffic Generator
I found a similar post for a XL710 https://groups.google.com/forum/#!topic/trex-tgn/LOYxOXdZuKY. I do not see the EAL lines to say if it is a similar footprint.
I started TRex in stateless mode and it failed for both the MACS as below:

[root@trexnode v2.36]# ./t-rex-64 -i
Starting Scapy server.... Scapy server is started
The ports are bound/configured.
Starting  TRex v2.36 please wait  ...
 set driver name net_ixgbe
 driver capability  : TCP_UDP_OFFLOAD  TSO
 Number of ports found: 2
zmq publisher at: tcp://*:4500
 wait 1 sec .
port : 0
------------
link         :  link : Link Up - speed 10000 Mbps - full-duplex
promiscuous  : 0
port : 1
------------
link         :  link : Link Up - speed 10000 Mbps - full-duplex
promiscuous  : 0
 number of ports         : 2
 max cores for 2 ports   : 1
 max queue per port      : 3
 -------------------------------
RX core uses TX queue number 1 on all ports
 core, c-port, c-queue, s-port, s-queue, lat-queue
 ------------------------------------------
 1        0      0       1       0      2
 -------------------------------
Failed resolving dest MAC for default gateway:10.70.12.200 on port 0
Failed resolving dest MAC for default gateway:10.70.3.200 on port 1

What is TRex looking for in order to be able to resolve the MAC.

Sandeep Raman

unread,
Feb 20, 2018, 7:03:44 AM2/20/18
to TRex Traffic Generator
This is working now. See output below. The issue was in the Switch configuration, the two interfaces were in a BAGG. I removed the interfaces from the BAGG and it was able to reach the gateway.

 ---------------
port : 0
------------
 opackets                                 : 1098149
 obytes                                   : 70525834
 ipackets                                 : 1094
 ibytes                                   : 73896
 Tx :       2.65 Mbps
port : 1
------------
 opackets                                 : 122149
 obytes                                   : 8061834
 ipackets                                 : 1103
 ibytes                                   : 74408
 Tx :     306.13 Kbps
 Cpu Utilization : 0.3  %  0.6 Gb/core
 Platform_factor : 1.0
 Total-Tx        :       2.95 Mbps
 Total-Rx        :      10.19 Kbps
 Total-PPS       :       5.73 Kpps
 Total-CPS       :       0.00  cps


--
You received this message because you are subscribed to a topic in the Google Groups "TRex Traffic Generator" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/trex-tgn/kH6vFIEt-A0/unsubscribe.
To unsubscribe from this group and all its topics, 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/d224e735-530a-40c4-a8dc-014a52ab2425%40googlegroups.com.

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

telu...@gmail.com

unread,
May 29, 2019, 5:42:29 AM5/29/19
to TRex Traffic Generator
root@mao-vm:/home/mao/v2.56# sudo ./t-rex-64 -f cap2/dns.yaml -d 1 -l 1000
The ports are bound/configured.
Starting TRex v2.56 please wait ...
set driver name net_e1000_em
driver capability : TCP_UDP_OFFLOAD
set dpdk queues mode to ONE_QUE
Number of ports found: 2
zmq publisher at: tcp://*:4500
EAL: Error enabling interrupts for fd 19 (Input/output error)
EAL: Error enabling interrupts for fd 21 (Input/output error)

wait 1 sec .
port : 0
------------
link : link : Link Up - speed 1000 Mbps - full-duplex

promiscuous : 0
port : 1
------------
link : link : Link Up - speed 1000 Mbps - full-duplex

promiscuous : 0
number of ports : 2
max cores for 2 ports : 1
tx queues per port : 3
no client generator pool configured, using default pool
no server generator pool configured, using default pool
-------------------------------
RX core uses TX queue number 65535 on all ports

core, c-port, c-queue, s-port, s-queue, lat-queue
------------------------------------------
1 0 0 1 0 0
-------------------------------
no client generator pool configured, using default pool
no server generator pool configured, using default pool
-- loading cap file cap2/dns.pcap
Failed resolving dest MAC for default gateway:10.10.2.1 on port 1
root@mao-vm:/home/mao/v2.56# sudo ./t-rex-64 -f cap2/dns.yaml -d 1 -l 1000
The ports are bound/configured.
Starting TRex v2.56 please wait ...
set driver name net_e1000_em
driver capability : TCP_UDP_OFFLOAD
set dpdk queues mode to ONE_QUE
Number of ports found: 2
zmq publisher at: tcp://*:4500
EAL: Error enabling interrupts for fd 19 (Input/output error)
EAL: Error enabling interrupts for fd 21 (Input/output error)

wait 1 sec .
port : 0
------------
link : link : Link Up - speed 1000 Mbps - full-duplex

promiscuous : 0
port : 1
------------
link : link : Link Up - speed 1000 Mbps - full-duplex

promiscuous : 0
number of ports : 2
max cores for 2 ports : 1
tx queues per port : 3
no client generator pool configured, using default pool
no server generator pool configured, using default pool
-------------------------------
RX core uses TX queue number 65535 on all ports

core, c-port, c-queue, s-port, s-queue, lat-queue
------------------------------------------
1 0 0 1 0 0
-------------------------------
no client generator pool configured, using default pool
no server generator pool configured, using default pool
-- loading cap file cap2/dns.pcap
Failed resolving dest MAC for default gateway:10.10.2.1 on port 1

I don't why this situation happened, and how to configured the generator pool

Reply all
Reply to author
Forward
0 new messages