Hi Peter,

Traffic generation used to be gated by a phase that tries to make sure packets 
are flowing in both directions at low rate (used to be 100pps). This means that 
as soon as we seen packets flowing in both directions, traffic generation at 
requested rate will start.
Is that not sufficient in your case?

I’d like to note that we had some gating issues for multi-chain support – where 
the traffic generation was started too early due to a flaw in the gating logic 
(https://jira.opnfv.org/projects/NFVBENCH/issues/NFVBENCH-56?filter=allissues)
But this has been fixed recently by using an algorithm that actually checks the 
src MAC or returning frames. So perhaps you ran into the same issue?
The important point in your case is to understand how soon traffic can be 
blasted after the first packet comes back in each direction. Typically 
forwarders that use MAC learning only need the first packet to go through to 
guarantee optimal forwarding conditions. If your SUT requires a pause, this can 
be added to NFVbench relatively easily.

Thanks

  Alec

From: "Balint, Peter (Nokia - HU/Budapest)" <peter.bal...@nokia.com>
Date: Thursday, March 29, 2018 at 1:39 AM
To: "Alec Hothan (ahothan)" <ahot...@cisco.com>, 
"opnfv-tech-discuss@lists.opnfv.org" <opnfv-tech-discuss@lists.opnfv.org>
Subject: RE: [opnfv-tech-discuss] [nfvbench] testpmd

Hi Alec,

I faced with an other problem.

When I start the test, NFVBench is blasting traffic immediately and not setting 
up a flow, as a result there incur some initial losses as the flows are being 
added to the kernel and dpdk.

My question is it possible to postpone the start of measurement with a few sec 
after traffic generation started?


Br,

Peter



From: Balint, Peter (Nokia - HU/Budapest)
Sent: Thursday, February 22, 2018 2:20 PM
To: 'Alec Hothan (ahothan)' <ahot...@cisco.com>; 
opnfv-tech-discuss@lists.opnfv.org
Subject: RE: [opnfv-tech-discuss] [nfvbench] testpmd

Hi Alec,

I removed the block ant it works. Many Thanks .

Br,

Peter


From: Alec Hothan (ahothan) [mailto:ahot...@cisco.com]
Sent: Thursday, February 22, 2018 11:49 AM
To: Balint, Peter (Nokia - HU/Budapest) 
<peter.bal...@nokia.com<mailto:peter.bal...@nokia.com>>; 
opnfv-tech-discuss@lists.opnfv.org<mailto:opnfv-tech-discuss@lists.opnfv.org>
Subject: Re: [opnfv-tech-discuss] [nfvbench] testpmd

I think there is a bug in that new piece of code, let me check with the person 
who wrote it.
In the meantime if you want a workaround, you could go ahead and remove that 
whole if block (in container, edit /nfvbench/nfvbench/nfvbench.py L169) - it 
can be safely removed.

Thanks
  Alec


From: "Balint, Peter (Nokia - HU/Budapest)" 
<peter.bal...@nokia.com<mailto:peter.bal...@nokia.com>>
Date: Wednesday, February 21, 2018 at 12:49 PM
To: "Alec Hothan (ahothan)" <ahot...@cisco.com<mailto:ahot...@cisco.com>>, 
"opnfv-tech-discuss@lists.opnfv.org<mailto:opnfv-tech-discuss@lists.opnfv.org>" 
<opnfv-tech-discuss@lists.opnfv.org<mailto:opnfv-tech-discuss@lists.opnfv.org>>
Subject: RE: [opnfv-tech-discuss] [nfvbench] testpmd

Hi Alec,


I tried but I get this error:
[root@dc ~]# sudo docker exec -it nfvbench nfvbench -c 
/tmp/nfvbench/my_nfvbench.cfg --rate 0.6% --service-chain EXT -fs 512
2018-02-21 20:41:47,465 INFO Loading configuration file: 
/tmp/nfvbench/my_nfvbench.cfg
2018-02-21 20:41:47,471 INFO EXT chain with OpenStack mode disabled
2018-02-21 20:41:47,471 INFO -c /tmp/nfvbench/my_nfvbench.cfg --rate 0.6% 
--service-chain EXT -fs 512
2018-02-21 20:41:47,472 ERROR {'status': 'ERROR', 'error_message': 'Traceback 
(most recent call last):\n  File "/nfvbench/nfvbench/nfvbench.py", line 593, in 
main\n    raise Exception(result[\'error_message\'])\nException: Traceback 
(most recent call last):\n  File "/nfvbench/nfvbench/nfvbench.py", line 92, in 
run\n    self.update_config(opts)\n  File "/nfvbench/nfvbench/nfvbench.py", 
line 169, in update_config\n    if not 
(self.config.generator_config.mac_addrs_left is None and\n  File 
"/usr/local/lib/python2.7/dist-packages/attrdict/mixins.py", line 82, in 
__getattr__\n    cls=self.__class__.__name__, name=key\nAttributeError: 
\'AttrDict\' instance has no attribute \'generator_config\'\n\n'}
Traceback (most recent call last):
  File "/nfvbench/nfvbench/nfvbench.py", line 92, in run
    self.update_config(opts)
  File "/nfvbench/nfvbench/nfvbench.py", line 169, in update_config
    if not (self.config.generator_config.mac_addrs_left is None and
  File "/usr/local/lib/python2.7/dist-packages/attrdict/mixins.py", line 82, in 
__getattr__
    cls=self.__class__.__name__, name=key
AttributeError: 'AttrDict' instance has no attribute 'generator_config'

[root@dc ~]# cat  my_nfvbench.cfg
traffic_generator:
    ip_addrs: ['16.0.0.0/24', '48.0.0.0/24']
    #tg_gateway_ip_addrs: ['192.168.0.2', '192.168.2.2']
    #gateway_ip_addrs: ['192.168.0.12', '192.168.2.12']
    mac_addrs_left: ['FA:16:3E:2B:B0:D1']
    mac_addrs_right: ['FA:16:3E:D0:47:B1']
    generator_profile:
        - name: trex-local
          tool: TRex
          ip: 127.0.0.1
          cores: 1
          software_mode: false,
          interfaces:
            - port: 0
              switch_port:
              pci: "03:00.0"
            - port: 1
              switch_port:
              pci: "03:00.1"
          intf_speed: 25Gbps
vlan_tagging: false
no_arp: true

Could you Please check.


Thanks in advance.

Peter



From: Alec Hothan (ahothan) [mailto:ahot...@cisco.com]
Sent: Wednesday, February 21, 2018 5:07 PM
To: Balint, Peter (Nokia - HU/Budapest) 
<peter.bal...@nokia.com<mailto:peter.bal...@nokia.com>>; 
opnfv-tech-discuss@lists.opnfv.org<mailto:opnfv-tech-discuss@lists.opnfv.org>
Subject: Re: [opnfv-tech-discuss] [nfvbench] testpmd


Since you are using only 1 external chain, you only need 1 entry in each list.
You also probably will need more than 1 core for TRex.

traffic_generator:
    ip_addrs: ['16.0.0.0/24', '48.0.0.0/24']
    #tg_gateway_ip_addrs: ['192.168.0.2', '192.168.2.2']
    #gateway_ip_addrs: ['192.168.0.12', '192.168.2.12']
    mac_addrs_left: [‘FA:16:3E:2B:B0:D1]
    mac_addrs_right: [‘FA:16:3E:D0:47:B1']
    generator_profile:
        - name: trex-local
          tool: TRex
          ip: 127.0.0.1
          cores: 2
          software_mode: false,
          interfaces:
            - port: 0
              switch_port:
              pci: "03:00.0"
            - port: 1
              switch_port:
              pci: "03:00.1"
          intf_speed: 25Gbps
vlan_tagging: false
no_arp: true



   Alec


From: "Balint, Peter (Nokia - HU/Budapest)" 
<peter.bal...@nokia.com<mailto:peter.bal...@nokia.com>>
Date: Wednesday, February 21, 2018 at 4:20 AM
To: "Alec Hothan (ahothan)" <ahot...@cisco.com<mailto:ahot...@cisco.com>>, 
"opnfv-tech-discuss@lists.opnfv.org<mailto:opnfv-tech-discuss@lists.opnfv.org>" 
<opnfv-tech-discuss@lists.opnfv.org<mailto:opnfv-tech-discuss@lists.opnfv.org>>
Subject: RE: [opnfv-tech-discuss] [nfvbench] testpmd

Hi Alec,

I do not fully get/know what I should modify

cfg. file(should look like this?):

traffic_generator:
    ip_addrs: ['16.0.0.0/24', '48.0.0.0/24']
    #tg_gateway_ip_addrs: ['192.168.0.2', '192.168.2.2']
    #gateway_ip_addrs: ['192.168.0.12', '192.168.2.12']
    mac_addrs_left: [FA:16:3E:2B:B0:D1 ', FA:16:3E:2B:B0:D1]
    mac_addrs_right: [FA:16:3E:D0:47:B1', ‘FA:16:3E:D0:47:B1’]
    generator_profile:
        - name: trex-local
          tool: TRex
          ip: 127.0.0.1
          cores: 1
          software_mode: false,
          interfaces:
            - port: 0
              switch_port:
              pci: "03:00.0"
            - port: 1
              switch_port:
              pci: "03:00.1"
          intf_speed: 25Gbps
vlan_tagging: false
no_arp: true


I should

dest_mac: FA:16:3E:2B:B0:D1 (DUT int 1)
src_mac:  24:8a:07:8e:d3:14 (tester int 1)
dest_mac: FA:16:3E:D0:47:B1 (DUT int 2)
src_mac:  24:8a:07:8e:d3:15 (tester int 2)


Br,

Peter



From: Alec Hothan (ahothan) [mailto:ahot...@cisco.com]
Sent: Tuesday, February 20, 2018 5:42 PM
To: Balint, Peter (Nokia - HU/Budapest) 
<peter.bal...@nokia.com<mailto:peter.bal...@nokia.com>>; 
opnfv-tech-discuss@lists.opnfv.org<mailto:opnfv-tech-discuss@lists.opnfv.org>
Subject: Re: [opnfv-tech-discuss] [nfvbench] testpmd

Hi Peter,


From: "Balint, Peter (Nokia - HU/Budapest)" 
<peter.bal...@nokia.com<mailto:peter.bal...@nokia.com>>
Date: Tuesday, February 20, 2018 at 6:28 AM
To: "Alec Hothan (ahothan)" <ahot...@cisco.com<mailto:ahot...@cisco.com>>, 
"opnfv-tech-discuss@lists.opnfv.org<mailto:opnfv-tech-discuss@lists.opnfv.org>" 
<opnfv-tech-discuss@lists.opnfv.org<mailto:opnfv-tech-discuss@lists.opnfv.org>>
Subject: RE: [opnfv-tech-discuss] [nfvbench] testpmd

Hi Alec,


thank you for information. I have deployed it successfully.

Not quite sure about what you mean by “deployed it successfully”. Did you 
launch the VM directly using libvirt and did you manage to pass the right 
config file?


I have one other question, how can I configure nfvbench to work in L2 mode 
without gateway IP settings( DUT put an L2 loop on the end/testPMD mac forward)
ip_addrs: ['16.0.0.0/24', '48.0.0.0/24']
tg_gateway_ip_addrs: ['192.168.0.2', '192.168.2.2']
gateway_ip_addrs: ['192.168.0.12', '192.168.2.12']

where I configure destination MAC


like in trex
port_limit: 2
  version: 2
  interfaces: ['03:00.0', '03:00.1']
  port_info:
      - dest_mac: fa:16:3e:c5:0b:22
        src_mac:  24:8a:07:8e:d3:14
      - dest_mac: fa:16:3e:a0:cc:3f
        src_mac:  24:8a:07:8e:d3:15

  platform:
      master_thread_id: 0
      latency_thread_id: 14
      dual_if:
        - socket: 0
          threads: 
[1,2,3,4,5,6,7,8,9,10,11,12,13,28,29,30,31,32,33,34,35,36,37,38,39,40,41]


Please check the comment in the config file related to the use of MAC addresses:
https://github.com/opnfv/nfvbench/blob/master/nfvbench/cfg.default.yaml#L159

You basically need to configure nfvbench in EXT + no arp and put the dest MAC 
in the 2 fields (as described in the comment example)

Let me know if that addresses your problem.

Thanks

  Alec

Thanks,

Peter

From: Alec Hothan (ahothan) [mailto:ahot...@cisco.com]
Sent: Monday, February 12, 2018 5:34 PM
To: Balint, Peter (Nokia - HU/Budapest) 
<peter.bal...@nokia.com<mailto:peter.bal...@nokia.com>>; 
opnfv-tech-discuss@lists.opnfv.org<mailto:opnfv-tech-discuss@lists.opnfv.org>
Subject: Re: [opnfv-tech-discuss] [nfvbench] testpmd


You will need to be familiar with libvirt to try to replicate what openstack 
does to setup the VM properly: setup 2 virtual interfaces and provide a 
cloud-init config file.
This VM has VPP L3 routing included and that can be enabled/configured using 
the cloud-init file.
How well it will perform will really depends on your virtio network emulation 
(for example if you use OVS, it will likely not go very fast and start dropping 
packets very early).
Anyway, I can only help you to some extent as this stretches beyond what 
NFVbench handles.

Regards,

   Alec

From: "Balint, Peter (Nokia - HU/Budapest)" 
<peter.bal...@nokia.com<mailto:peter.bal...@nokia.com>>
Date: Sunday, February 11, 2018 at 11:06 PM
To: "Alec Hothan (ahothan)" <ahot...@cisco.com<mailto:ahot...@cisco.com>>, 
"opnfv-tech-discuss@lists.opnfv.org<mailto:opnfv-tech-discuss@lists.opnfv.org>" 
<opnfv-tech-discuss@lists.opnfv.org<mailto:opnfv-tech-discuss@lists.opnfv.org>>
Subject: RE: [opnfv-tech-discuss] [nfvbench] testpmd

Hi Alec,

Thank you for information, I would like to add an L3 loop VM (this would be the 
DUT to benchmark VMs performance). But I use NFVBench in EXT mode( so without 
openstack)


Br,

Peter





From: Alec Hothan (ahothan) [mailto:ahot...@cisco.com]
Sent: Friday, February 9, 2018 6:31 PM
To: Balint, Peter (Nokia - HU/Budapest) 
<peter.bal...@nokia.com<mailto:peter.bal...@nokia.com>>; 
opnfv-tech-discuss@lists.opnfv.org<mailto:opnfv-tech-discuss@lists.opnfv.org>
Subject: Re: [opnfv-tech-discuss] [nfvbench] testpmd

Peter,

This is outdated information.
With the latest versions of NFVbench, the testpmd VM image is included in the 
docker container itself (that way we make sure NFVbench always uses the right 
version of the VM image).
May I ask why you want to access this VM image?  To use it you will need to 
pass the proper config file to configure the forwarding dest MAC addresses 
(this is taken care of by NFVbench through openstack). If use openstack you do 
not need to manually get the qcow2 image and upload because it is done by 
NFVbench when using the PVP and PVVP chain types.

If you still need the VM qcow2 file, you can simply copy it out from the 
container using “docker cp” command. For example:

# docker exec nfvbench ls -l /nfvbench
total 646524
-rw-r--r--. 1 root root       888 Feb  7 19:33 INFO
-rw-r--r--. 1 root root       624 Feb  7 19:33 LICENSE
-rw-r--r--. 1 root root      1302 Feb  7 19:33 README.rst
-rw-r--r--. 1 root root       708 Feb  7 19:33 backup.requirements.txt
drwxr-xr-x. 2 root root      4096 Feb  8 22:26 ciscovim
drwxr-xr-x. 2 root root        52 Feb  7 19:33 cleanup
drwxr-xr-x. 2 root root        92 Feb  7 19:33 client
drwxr-xr-x. 2 root root        83 Feb  7 19:33 docker
drwxr-xr-x. 5 root root        88 Feb  7 19:33 docs
drwxr-xr-x. 4 root root      4096 Feb  8 22:26 nfvbench
drwxr-xr-x. 2 root root       150 Feb  7 19:33 nfvbench.egg-info
drwxr-xr-x. 3 root root        35 Feb  7 19:33 nfvbenchvm
-rw-r--r--. 1 root root 661979136 Dec  4 11:12 nfvbenchvm-0.5.qcow2
-rw-r--r--. 1 root root     15079 Feb  7 19:33 pylint.rc
-rw-r--r--. 1 root root       124 Feb  7 19:33 requirements-dev.txt
-rw-r--r--. 1 root root      1809 Feb  7 19:33 setup.cfg
-rw-r--r--. 1 root root      1157 Feb  7 19:33 setup.py
drwxr-xr-x. 2 root root        49 Feb  7 19:33 test
-rw-r--r--. 1 root root       468 Feb  7 19:33 test-requirements.txt
-rw-r--r--. 1 root root      1333 Feb  7 19:33 tox.ini
# docker cp nfvbench:/nfvbench/nfvbenchvm-0.5.qcow2 /tmp


  Alec


From: 
<opnfv-tech-discuss-boun...@lists.opnfv.org<mailto:opnfv-tech-discuss-boun...@lists.opnfv.org>>
 on behalf of "Balint, Peter (Nokia - HU/Budapest)" 
<peter.bal...@nokia.com<mailto:peter.bal...@nokia.com>>
Date: Friday, February 9, 2018 at 9:08 AM
To: 
"opnfv-tech-discuss@lists.opnfv.org<mailto:opnfv-tech-discuss@lists.opnfv.org>" 
<opnfv-tech-discuss@lists.opnfv.org<mailto:opnfv-tech-discuss@lists.opnfv.org>>
Subject: [opnfv-tech-discuss] [nfvbench] testpmd

Dear All,

I wanted to download testpmdvm-latest.qcow2 as recommended here 
https://wiki.opnfv.org/display/fds/Environment+setup+for+Performance+testing


but testpmd VMs link looks as an internal 
http://172.29.172.152/downloads/nfvbench/testpmdvm-latest.qcow2

is this IP/link correct could you please send me the correct link.


Br,

Peter



Peter Balint
Datacenter Test Architect
MN Cloud Core
NOKIA

Nokia Solutions and Networks Kft.
H-1082 Budapest, Hungary, Bókay János u. 36-42.
Mobile: +36 70 501 89 01
peter.bal...@nokia.com<mailto:peter.bal...@nokia.com>
https://networks.nokia.com/

_______________________________________________
opnfv-tech-discuss mailing list
opnfv-tech-discuss@lists.opnfv.org
https://lists.opnfv.org/mailman/listinfo/opnfv-tech-discuss

Reply via email to