Re: Trex - DNR Bench Tool

287 views
Skip to first unread message
Message has been deleted

Besart Dollma

unread,
Feb 5, 2021, 2:08:52 AM2/5/21
to TRex Traffic Generator
Hi, 
Check the mapping of the ports in the console. Also, when it fails it should print the map. 
Thanks,
Bes

On Thursday, February 4, 2021 at 9:22:21 PM UTC+2 Leonardo Asseph wrote:
Hello,
I'm trying to run the DNR Bench Tool and I'm getting an error: 

python stl_ndr_bench_tool.py --port 0 1
some given ports pairs are not configured properly 

I'm running the server with -i (interactive). I can run traffic fine using the /trex-console


/t-rex-64 -i -c 2

Here is my yaml file:

### Config file generated by dpdk_setup_ports.py ###

- version: 2
  interfaces: ['17:00.0', '17:00.1', '17:00.2', '17:00.3']
  prefix: trex1
  limit_memory: 1048
  port_info:
      - dest_mac: 00:1c:7f:6c:43:9e
        src_mac:  00:1c:7f:60:e1:90
      - dest_mac: 00:1c:7f:6c:43:9f
        src_mac:  00:1c:7f:60:e1:91

      - dest_mac: 00:1c:7f:6c:43:a0
        src_mac:  00:1c:7f:60:e1:92
      - dest_mac: 00:1c:7f:6c:43:a1
        src_mac:  00:1c:7f:60:e1:93

  platform:
      master_thread_id: 0
      latency_thread_id: 23
      dual_if:
        - socket: 0
          threads: [1,2,3,4,5,12,13,14,15,16,17]

        - socket: 0
          threads: [6,7,8,9,10,11,18,19,20,21,22]


Anyone encounter the error before or have any idea how to run the NDR Bench Tool?

Thanks in advance,
L.A.

Leonardo Asseph

unread,
Feb 5, 2021, 8:39:52 AM2/5/21
to TRex Traffic Generator
Hi Bes,
Thanks for your answer. I'm checking "map" in the console and this is what I get:
ports_mapping.JPG

It seems the ports are not mapped? How do I map the ports?

Thanks in advance!
Leo.

Besart Dollma

unread,
Feb 5, 2021, 9:36:44 AM2/5/21
to TRex Traffic Generator
Hi, 
TRex can't successfully map the ports. It probably isn't configured as it should be. 
Take a look at the configuration file, start with a simple profile.
Thanks,

Leonardo Asseph

unread,
Feb 8, 2021, 1:06:32 PM2/8/21
to TRex Traffic Generator
Hello Bes,
I created a new configuration file using IP address vs the MAC addresses I was using in my previous config (see .yaml on previous post).

config.JPG

I'm able to see the port attributes, complete an arp request, and pass traffic fine.

arps.JPG
traffic.JPG


 However, the ports are still no showing up in the map topology. Is there something that you can tell I'm doing wrong?

ports_mapping.JPG

Thus, when I try to run the DNR Bench Tool I still get error:
error.JPG


Please let me know if you have any more hints as to what could be wrong,

Thanks again,
L.A.

Besart Dollma

unread,
Feb 10, 2021, 1:33:20 PM2/10/21
to TRex Traffic Generator
Reply all
Reply to author
Forward
0 new messages