Skip to content

Tutorial 4: Multi tenant DCN TNC 2016

Eduard Grasa edited this page Jun 22, 2016 · 28 revisions

Introduction

The goal of this tutorial is to experiment with the configuration of a small RINA-based data centre network using the Network Management System DAF (NMS-DAF) developed in the PRISTINE project. This experiment was demonstrated live at the TNC 2016 conference. This scenario has been tested with the pristine-1.5 branch, using 12 XEN Virtual Machines running in the same Host.

Tutorial 4 scenario: top view

The image above shows the top view of the DCN scenario, except for the Management DIF (not shown to not overcomplicate the picture). In the demo configuration the NMS-DAF was running over a dedicated DIF - to better enforce separation of user and management traffic - but this is just a possible configuration: the NMS-DAF can use any underlying DIF. The image below shows a side view of the different levels of DIFs in the DC.

Tutorial 4 scenario: side view

1. Bootstrapping the systems

Configuration files must be copied to the stack's installation path "etc" folder (e.g. if you installed it in /usr/local/irati, config files must be in /usr/local/irati/etc). The configuration files only create the shim IPCPs in each system as well the IPCP in the NMS DIF, all the other DIFs will be created via the Manager.

1.1 M1

1.1.1 M1 system configuration

Copy the following files into <installation_path>/etc.

1.1.2 M1 system initialization

Configure the required VLANs

modprobe 8021q
ip link add link eth1 name eth1.12 type vlan id 12
ip link set dev eth1 up
ip link set dev eth1.12 up
ip link add link eth2 name eth2.13 type vlan id 13
ip link set dev eth2 up
ip link set dev eth2.13 up
ip link add link eth3 name eth3.14 type vlan id 14
ip link set dev eth3 up
ip link set dev eth3.14 up
ip link add link eth4 name eth4.15 type vlan id 15
ip link set dev eth4 up
ip link set dev eth4.15 up
ip link add link eth5 name eth5.16 type vlan id 16
ip link set dev eth5 up
ip link set dev eth5.16 up
ip link add link eth6 name eth6.17 type vlan id 17
ip link set dev eth6 up
ip link set dev eth6.17 up
ip link add link eth7 name eth7.18 type vlan id 18
ip link set dev eth7 up
ip link set dev eth7.18 up
ip link add link eth8 name eth8.19 type vlan id 19
ip link set dev eth8 up
ip link set dev eth8.19 up
ip link add link eth9 name eth9.110 type vlan id 110
ip link set dev eth9 up
ip link set dev eth9.110 up
ip link add link eth10 name eth10.111 type vlan id 111
ip link set dev eth10 up
ip link set dev eth10.111 up
ip link add link eth11 name eth11.112 type vlan id 112
ip link set dev eth11 up
ip link set dev eth11.112 up

Load the RINA kernel modules

modprobe shim-eth-vlan
modprobe rina-default-plugin
modprobe normal-ipcp

Startup the IPC Manager in the background

cd <installation_path>/bin
./ipcm -c ../etc/ipcm-t4.conf -l DEBUG -a "console, scripting, mad" &

1.2 M2

1.2.1 M2 system configuration

Copy the following files into <installation_path>/etc.

1.2.2 M2 system initialization

Configure the required VLANs

modprobe 8021q
ip link add link eth1 name eth1.12 type vlan id 12
ip link set dev eth1 up
ip link set dev eth1.12 up
ip link add link eth8 name eth8.29 type vlan id 29
ip link set dev eth8 up
ip link set dev eth8.29 up

Load the RINA kernel modules

modprobe shim-eth-vlan
modprobe rina-default-plugin
modprobe normal-ipcp

Startup the IPC Manager in the background

cd <installation_path>/bin
./ipcm -c ../etc/ipcm-t4.conf -l DEBUG -a "console, scripting, mad" &

Log into the IPC Manager console and enroll with system m1 in the NMS DIF

root@m2:~# socat - UNIX:/usr/local/irati/var/run/ipcm-console.sock 
IPCM >>> enroll-to-dif 3 NMS.DIF 12 m1.nms 1
IPCM >>> DIF enrollment successfully completed
IPCM >>> list-ipcps
    Current IPC processes (id | name | type | state | Registered applications | Port-ids of flows provided)
        1 | m2.12:1:: | shim-eth-vlan | ASSIGNED TO DIF 12 | m2.nms-1-- | 2
        2 | m2.29:1:: | shim-eth-vlan | ASSIGNED TO DIF 29 | - | -
        3 | m2.nms:1:: | normal-ipc | ASSIGNED TO DIF NMS.DIF | - | -
IPCM >>> exit
root@m2:~#

1.3 M3

1.3.1 M3 system configuration

Copy the following files into <installation_path>/etc.

1.3.2 M3 system initialization

Configure the required VLANs

modprobe 8021q
ip link add link eth1 name eth1.13 type vlan id 13
ip link set dev eth1 up
ip link set dev eth1.13 up
ip link add link eth8 name eth8.39 type vlan id 39
ip link set dev eth8 up
ip link set dev eth8.39 up

Load the RINA kernel modules

modprobe shim-eth-vlan
modprobe rina-default-plugin
modprobe normal-ipcp

Startup the IPC Manager in the background

cd <installation_path>/bin
./ipcm -c ../etc/ipcm-t4.conf -l DEBUG -a "console, scripting, mad" &

Log into the IPC Manager console and enroll with system m1 in the NMS DIF

root@m2:~# socat - UNIX:/usr/local/irati/var/run/ipcm-console.sock 
IPCM >>> enroll-to-dif 3 NMS.DIF 12 m1.nms 1
IPCM >>> DIF enrollment successfully completed
IPCM >>> list-ipcps
    Current IPC processes (id | name | type | state | Registered applications | Port-ids of flows provided)
        1 | m3.13:1:: | shim-eth-vlan | ASSIGNED TO DIF 13 | m3.nms-1-- | 2
        2 | m3.39:1:: | shim-eth-vlan | ASSIGNED TO DIF 39 | - | -
        3 | m3.nms:1:: | normal-ipc | ASSIGNED TO DIF NMS.DIF | - | -
IPCM >>> exit
root@m2:~#