Hi Sirshak,


You are correct that the doc does not describe clearly how to use nfvbench on 
non openstack testbeds – as this feature has been added recently. I’ll make 
sure to get it added.



In the meantime, here are the instructions.

To run nfvbench without openstack, provide a config file with:

  *   an empty openrc property
  *   EXT as the chain type
  *   The 2 pci addresses to use for Trex





Example of minimal configuration (change the pci address accordingly and 
preserve indenting):



openrc_file:

service_chain: "EXT"



traffic_generator:

    generator_profile:

        - name: trex-local

          interfaces:

            - port: 0

              switch_port:

              pci: 0a:00.2

            - port: 1

              switch_port:

              pci: 0a:00.3

          intf_speed: 10Gbps





I have never tried to run Trex over SRIOV/VF, I think as long as you have the 
right pci address it should just work.

The above takes care of the Trex part.



Next step is to specify the traffic type. With the EXT chain you have 2 choices:

  *   L2 forwarding test
  *   L3 routing test



Given you have VPP routing configured, you probably want to use the L3 routing 
test.

You can simply pick the default IP addressing which is as described in

http://docs.opnfv.org/en/latest/submodules/nfvbench/docs/testing/user/userguide/advanced.html#external-chain

By default with the above config it will assume L3 routing with the IP 
addresses as defined in the diagram.



Next is to check whether you need VLAN tagging or not. The default is to tag 
VLAN. I’m not sure how your SRIOV/VF are configured.

If you do not need VLAN tags to be added by TRex, add this to your config:



vlan_tagging: false



If you need VLAN tags, add this to your configs (change the VLAN id as needed):



vlans: [1000, 1001]







Before you run, you need to configure 2 static routes in VPP as described in 
the diagram.



To summarize:

  *   Start the nfvbench container as described in the quick start guide
  *   Create the nfvbench alias





To see list of all default config options (including L3 addressing):



nfvbench --show-default-config





To see the final running config without running, simply type:



nfvbench -c /tmp/nfvbench/config.yml --show-config



(this assumes the config above is stored in “config.yml” and placed in the host 
directory that is mapped as /tmp/nfvbench in the container).



To run L3 test with fixed rate for 30 seconds (bidirectional 64B)



nfvbench -c /tmp/nfvbench/config.yml --rate 1Mpps --duration 30



To run L3 test and measure NDR/PDR:


nfvbench -c /tmp/nfvbench/config.yml



etc…



Let me know if you have any problem,



  Alec









From: <[email protected]> on behalf of Sirshak Das 
<[email protected]>

Date: Tuesday, May 1, 2018 at 9:56 PM

To: "[email protected]" <[email protected]>

Subject: [opnfv-tech-discuss] nfv-bench without openstack pod





Hi all,



I am new to nfv-bench and I wanted try the nfv-bench on bare metal most of

the documentation I found on the internet includes openrc_file in its

configuration.

So I was wondering if there is any documentation regarding getting

nfv-bench without open stack.

The configuration I have is :



+----------------------+

|                      |

| x86 t-rex            |

| server               |

| with                 |

| Mellanox CX-4        |

| 1 Phy port works     |

| with 2 VFs (SR-IOV)  |

|                      |

+----------------------+



+----------------------+

|                      |

| ARM server           |

| VPP installed        |

| Docker Installed     |

| Mellanox CX-4        |

| 1 Phy port works     |

| with 2 VFs (SR-IOV)  |

|                      |

+----------------------+





Let me know if anyone has any ideas of how to get started.



P.S. Good old VPP as an l3fwder works for starters.



Thank you

Sirshak Das

_______________________________________________

opnfv-tech-discuss mailing list

mailto:[email protected]

https://lists.opnfv.org/mailman/listinfo/opnfv-tech-discuss


_______________________________________________
opnfv-tech-discuss mailing list
[email protected]
https://lists.opnfv.org/mailman/listinfo/opnfv-tech-discuss

Reply via email to