Target Audience: Those who are new to VSPERF and would like to try it out locally.
If you are attending a VSPERF-training session (ex: IEEE NFVSDN tutorial), kindly download and install following, before the training-sessions.
(Note: Of the three options described below, we'll only use Option-1 for IEEE NFVSDN Tutorial).
System / Software | Source / Image / command / | Comments |
---|---|---|
Virtualization /Hypervisor | Oracle Virtualbox | To run VMs. |
Virtual Machine Image DUT-VM | http://releases.ubuntu.com/16.04/ubuntu-16.04.5-desktop-amd64.iso | Please install Docker on this system* Reuse of thttp://nof2020.dnac.org/tutorials/his VM to try NFVBench |
TGen-VM | http://trex-tgn.cisco.com/trex/T_Rex_162_VM_Fedora_21.ova | T-Rex Traffic Generator VM. |
OPNFV/NFVBench Docker Image | docker pull opnfv/nfvbench | This should be done on DUT-VM |
Exchange of SSH-Keys between VMs | Step-3 below. (option-1) | To allow pwd-less access b/w VMs |
New Version of T-Rex | Step-5 below (option-1) | This should be done on TGen-VM |
VSPERF | Step-4 below (option-1) | This should be done on DUT-VM |
The Installation and configuration details are provided below.
You would need two VMs in this scenario. Figure below shows the setup.
Network | Network/Adapter Type (Virtualbox) | Interfaces on DUT-VM | Interfaces on TGen-VM | Comments |
---|---|---|---|---|
test1 | Internal | eth3 | eth3 | Interface used for data-traffic |
test2 | Internal | eth2, | eth2, | Interface used for data-traffic |
admin | Bridged | eth1 | eth1 | Interface used by VSPERF to manage TGen. |
Internet | NAT | eth0 | eth0 | Interface used for connect to Internet - for downloads, and updates. |
Download following images for the two VMs:
The names of the interfaces maybe different - for example on Ubuntu it may be enp0s2/3/4...
To ensure smoother access, ensure DUT-VM can ssh to TGen-VM without password-probe, copy the SSH public keys. The step to follow:
Instructions to install and configure (including tuning) VSPERF can be found here
You may have to configure hugepages before running the install script - by running following commands:
Download the latest T-Rex: wget --no-cache http://trex-tgn.cisco.com/trex/release/latest. to the home (/home/trex) folder.
Untar it.
Install Docker on DUT-VM. You can follow the steps described here for Ubuntu.
Instructions to run tests can be found here. This would be covered during the training session.
In this scenario, both the DUT (vswitch with/without VNFs) and the Traffic-Generator run on same System.
In this scenario, DUT runs on first system and the Traffic-generator runs on a different system. (Note: The second system could be a hardware traffic-generator - Spirent, Ixia, Xena, etc.)
There are multiple options here - user can choose any one of the following