Anuket Project

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Next »

Target Audience: Those who are new to VSPERF and would like to try it out locally.

Note:

(a) Instructions to install and configure (including tuning) VSPERF can be found here

(b) Instructions to run tests can be found here

If you are attending a VSPERF-training session (ex: IEEE NFVSDN tutorial), kindly download the necessary software and tools (VSPERF, VNFs, and preferred traffic-generator), before the training. The details of these are provided below.

Experimenting VSPERF with Oracle Virtualbox:

You would need two VMs in this scenario. Figure below shows the setup.

Network

Network/Adapter Type

(Virtualbox)

Interfaces on DUT-VMInterfaces on TGen-VMComments
test1Internaleth3eth3Interface used for data-traffic
test2Internaleth2,eth2,Interface used for data-traffic
adminBridgedeth1eth1Interface used by VSPERF to manage TGen.
InternetNATeth0eth0Interface used for connect to Internet - for downloads, and updates.

Step-1: Downloading VM-Images

Download following images for the two VMs:

  1. DUT-VM: Any Linux image. Ex: Ubuntu 16.04 (http://releases.ubuntu.com/16.04/ubuntu-16.04.5-desktop-amd64.iso
  2. TGen-VM: http://trex-tgn.cisco.com/trex/T_Rex_162_VM_Fedora_21.ova


Step-2: Installing VMs:

  1. DUT-VM: This is just a standard VM-from-ISO installation procedure. You will find many step-by-step description (Ex: https://itsfoss.com/install-linux-in-virtualbox/) of this, including Videos (Ex: https://www.youtube.com/watch?v=QbmRXJJKsvs) . 
    1. Please ensure that number of interfaces are 4 and configured according to the figure above.
  2. TGen-VM: The details of installation of the OVA can be found here: https://trex-tgn.cisco.com/trex/doc/trex_vm_manual.html, under TRex inside Virtual Box.
    1. Please ensure that number of interfaces are 4 and configured according to the figure above.

The names of the interfaces maybe different - for example on Ubuntu it may be enp0s2/3/4...


Step-3: Copying SSH keys between VMs.

To ensure smoother access, ensure DUT-VM can ssh to TGen-VM without password-probe, copy the SSH public keys. The step to follow:

  1. If no identity is created yet (ex: if you don't find id_rsa.pub in ~/.ssh folder) Run ssh-keygen. It will generate the necessary identify.
  2. Use ssh-copy-id command. ssh-copy-id username_of_tgen_vm@ipaddress_of_tgen_vm

Step-4: Installing VSPERF on DUT-VM

Instructions to install and configure (including tuning) VSPERF can be found here 

Step-5: Updating T-Rex on TGen-VM

Download the latest T-Rex: wget --no-cache http://trex-tgn.cisco.com/trex/release/latest. to the home (/home/trex) folder.

Step-6: Running Tests




  • No labels