Skip to content

1. Set up and installation

Víctor Uceda edited this page Mar 11, 2016 · 4 revisions

Virtualization environment installation

Two VMs are required to run the scenario: ABNOP/pceserver and tn1. The pceserver is an Ubuntu VM, which not only acts as a PCE, but also as a manager to start, stop GMPLS scenarios as well as sync new versions of the code or scenarios. The two VMs must be installed on a virtualization environment. The number of transport nodes (tnX) depends on the size of the scenario that we want to emulate, but the minimum set-up would have three nodes. Once tn1 is installed in the host, we can clone this image to have more nodes. The pceserver and the tnX must share the same LAN in the installation to have network connectivity.

The VMs can be downloaded from this page.

Creating multiple tnX nodes on a VMWare environment

Once the installation is done for the two VMs, we have to clone tn1 image.

Once the clone is done, we log in in the new VM. The user pass combination is tid/usertn1. We have to perform the following modifications in the configuration:

  • Hostname. This must be updated to tnX (f.i. tn2) in /etc/hostname. After reboot the hostname is updated, but this can be done using the command sudo hostname tnX.
  • IP address. tn1 has the IP address 192.168.1.1, so the tnX should have 192.168.1.X. This must be done in /etc/networking/interfaces.
  • Hosts. The name solving is done in /etc/hosts. This file contains a line 127.0.0.1 tn1 that should contain tnX.

##First steps After download and install these VM, you can replicate some TN* VM as you need for your scenario.

You must consider change its hostname in /etc/hostname and /etc/hosts and its IP Address in /etc/network/interfaces because the current configurations is static.

Modify and Compile source code

To modify and compile the code we can create a eclipse project. See ReadMe page for more details.

Add or Modify files

If it’s necessary modify one or some files, we can use some programs as filezilla or WinSCP to do it. We select New Site

  • File protocol: SFTP
  • Host name: pceserver
  • Port number: 22
  • User name: tid
  • Password: tid
  • Login

As we see in the picture below, we can access any file from the virtual machine and therefore modify, delete or create a new one. emulator-sftp

To be able to check the modifications we do, updating or including new code or files, we must restart the scenario with PCE. For this we have to create a new PCE.jar file with the code updates (we export the new code in a PCE.jar file). The PCE.jar file is located in: /usr/local/pce/lib/PCE.jar.

To test the modifications, we must replace, using filezilla or WinSCP, the old PCE.jar file (located in vm) by the new PCE.jar (located in our pc) and then restart the scenario tid@pceserver:~/execution$ ./restart_emulation.sh TriangleSSON

See next pages for more details about how to run and modify an scenario.