hands-on with rina: lab sessions

41
Virtual Box Image 32 and 64 bit images Get your preferred choice from ftp://pristine:[email protected]/

Upload: lamkien

Post on 14-Feb-2017

230 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Hands-on with RINA: Lab Sessions

Virtual Box Image

32 and 64 bit images

Get your preferred choice from

ftp://pristine:[email protected]/

Page 2: Hands-on with RINA: Lab Sessions

28/01/2015 2

Hands-on session

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

Eduard Grasa, Miquel Tarzan, Leonardo Bergesio, Bernat Gaston

Page 3: Hands-on with RINA: Lab Sessions

IRATI on Github

https://irati.github.io/stack

Page 4: Hands-on with RINA: Lab Sessions
Page 5: Hands-on with RINA: Lab Sessions

We host our code here:

https://github.com/IRATI/stack

Page 7: Hands-on with RINA: Lab Sessions

Goal of this tutorial

Page 8: Hands-on with RINA: Lab Sessions

28/01/2015 8

Shim IPC

Process Shim IPC

Process

Host A Host B

10.1.1.1 10.1.1.2

Page 9: Hands-on with RINA: Lab Sessions

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

Page 10: Hands-on with RINA: Lab Sessions

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

Page 11: Hands-on with RINA: Lab Sessions

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

Page 12: Hands-on with RINA: Lab Sessions

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

Page 13: Hands-on with RINA: Lab Sessions

Strapping yourselves in

Page 14: Hands-on with RINA: Lab Sessions

Virtual Box Image

32 and 64 bit images

Get your preferred choice from

ftp://pristine:[email protected]/

Page 15: Hands-on with RINA: Lab Sessions
Page 16: Hands-on with RINA: Lab Sessions

Click Settings

Page 17: Hands-on with RINA: Lab Sessions

Network Settings

Page 18: Hands-on with RINA: Lab Sessions

Clone the Virtual Machine

Page 19: Hands-on with RINA: Lab Sessions

Clone the Virtual Machine (2)

Page 20: Hands-on with RINA: Lab Sessions
Page 21: Hands-on with RINA: Lab Sessions

Start the Virtual Machines

Page 22: Hands-on with RINA: Lab Sessions

Login: pristine

Page 23: Hands-on with RINA: Lab Sessions

Password: pristine

Page 24: Hands-on with RINA: Lab Sessions

Preparing the kernel

Page 25: Hands-on with RINA: Lab Sessions

Start a terminal and open two tabs, switch to

root in both (password rina)

Page 26: Hands-on with RINA: Lab Sessions

Configure eth0 [10.1.1.1, 10.1.1.2]

Page 27: Hands-on with RINA: Lab Sessions

Modprobe the shim-tcp-udp and the normal-

ipcp modules

Page 28: Hands-on with RINA: Lab Sessions

Prepare the user-space

28 28/01/2015

Page 29: Hands-on with RINA: Lab Sessions

Configure and run the IPC

manager

Page 30: Hands-on with RINA: Lab Sessions

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

Page 31: Hands-on with RINA: Lab Sessions

On the cloned machine, edit

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

Page 32: Hands-on with RINA: Lab Sessions

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

Page 33: Hands-on with RINA: Lab Sessions

28/01/2015 33

Page 34: Hands-on with RINA: Lab Sessions

Start the IPCM on both VMs

Go to /usr/local/irati/bin/

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

28/01/2015 34

Page 35: Hands-on with RINA: Lab Sessions

28/01/2015 35

Page 36: Hands-on with RINA: Lab Sessions

28/01/2015 36

Page 37: Hands-on with RINA: Lab Sessions

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

Page 38: Hands-on with RINA: Lab Sessions

Start the server on the original VM

28/01/2015 38

In /usr/local/irati/bin

./rina-echo-time -l

Page 39: Hands-on with RINA: Lab Sessions

Start the client on the cloned VM

28/01/2015 39

In /usr/local/irati/bin/

./rina-echo-time -c 10

Page 40: Hands-on with RINA: Lab Sessions

Congratulations! You made it!

28/01/2015 40

Page 41: Hands-on with RINA: Lab Sessions

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