hands-on with rina: lab sessions

Post on 14-Feb-2017

229 Views

Category:

Documents

1 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Virtual Box Image

32 and 64 bit images

Get your preferred choice from

ftp://pristine:pr1stine@intecftp.intec.ugent.be/

28/01/2015 2

Hands-on session

Sander Vrijders, Dimitri Staessens, Douwe De Bock, Francesco Salvestrini,

Eduard Grasa, Miquel Tarzan, Leonardo Bergesio, Bernat Gaston

IRATI on Github

https://irati.github.io/stack

We host our code here:

https://github.com/IRATI/stack

Goal of this tutorial

28/01/2015 8

Shim IPC

Process Shim IPC

Process

Host A Host B

10.1.1.1 10.1.1.2

28/01/2015 9

Shim IPC

Process Shim IPC

Process

test1.

IRATI

test2.

IRATI

Shim DIF over TCP/UDP Shim IPC

Process

ipcm

ipcm

Host A Host B

28/01/2015 10

Shim IPC

Process Shim IPC

Process

test1.

IRATI

test2.

IRATI

Shim DIF over TCP/UDP Shim IPC

Process

ipcm

ipcm

Normal DIF A

Host A Host B

28/01/2015 11

Shim IPC

Process Shim IPC

Process

test1.

IRATI

test2.

IRATI

Shim DIF over TCP/UDP Shim IPC

Process

ipcm

ipcm

Normal DIF A

Host A Host B

rina-echo

time

server

28/01/2015 12

Shim IPC

Process Shim IPC

Process

test1.

IRATI

test2.

IRATI

Shim DIF over TCP/UDP Shim IPC

Process

ipcm

ipcm

Normal DIF A

Host A Host B

rina-echo

time

server

rina-echo

time

client

Strapping yourselves in

Virtual Box Image

32 and 64 bit images

Get your preferred choice from

ftp://pristine:pr1stine@intecftp.intec.ugent.be/

Click Settings

Network Settings

Clone the Virtual Machine

Clone the Virtual Machine (2)

Start the Virtual Machines

Login: pristine

Password: pristine

Preparing the kernel

Start a terminal and open two tabs, switch to

root in both (password rina)

Configure eth0 [10.1.1.1, 10.1.1.2]

Modprobe the shim-tcp-udp and the normal-

ipcp modules

Prepare the user-space

28 28/01/2015

Configure and run the IPC

manager

The ipcmanager.conf config file

Can be found in /usr/local/irati/etc in the VM

Main sections

localConfiguration

applicationToDIFMappings

ipcProcessesToCreate

difConfigurations

28/01/2015 30

On the cloned machine, edit

/usr/local/irati/etc/ipcmanager.conf

Changes on the cloned VM

In ipcProcessesToCreate, change the apName

of the IPC process in the normal DIF from

test1.IRATI to test2.IRATI

Change the parameters of the shim DIF:

Set the hostname to 10.1.1.2

In expReg

Change test1.IRATI to test2.IRATI

Change the port number to 2627

28/01/2015 33

Start the IPCM on both VMs

Go to /usr/local/irati/bin/

Run ./ipcm –c ../etc/ipcmanager.conf

28/01/2015 34

28/01/2015 35

28/01/2015 36

Enroll the IPC processes in the console

on the original VM

28/01/2015 37

• telnet to localhost, port 32766

• ‘help’ displays all commands

• enroll from test1.IRATI to test2.IRATI • enroll-to-dif 2 normal.DIF shim.DIF test2.IRATI 1

Start the server on the original VM

28/01/2015 38

In /usr/local/irati/bin

./rina-echo-time -l

Start the client on the cloned VM

28/01/2015 39

In /usr/local/irati/bin/

./rina-echo-time -c 10

Congratulations! You made it!

28/01/2015 40

Now try with the shim DIF over 802.1Q

https://github.com/IRATI/stack/wiki/Tutorial-1:-

DIF-over-a-VLAN-(point-to-point-DIF)

28/01/2015 41

top related