Download - Hands-on with RINA: Lab Sessions
![Page 1: Hands-on with RINA: Lab Sessions](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/1.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/2.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/3.jpg)
IRATI on Github
https://irati.github.io/stack
![Page 4: Hands-on with RINA: Lab Sessions](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/4.jpg)
![Page 5: Hands-on with RINA: Lab Sessions](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/5.jpg)
We host our code here:
https://github.com/IRATI/stack
![Page 6: Hands-on with RINA: Lab Sessions](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/6.jpg)
https://github.com/IRATI/stack/wiki
28/01/2015 6
Public ML: http://www.freelists.org/list/irati
![Page 7: Hands-on with RINA: Lab Sessions](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/7.jpg)
Goal of this tutorial
![Page 8: Hands-on with RINA: Lab Sessions](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/8.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/9.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/10.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/11.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/12.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/13.jpg)
Strapping yourselves in
![Page 14: Hands-on with RINA: Lab Sessions](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/14.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/15.jpg)
![Page 16: Hands-on with RINA: Lab Sessions](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/16.jpg)
Click Settings
![Page 17: Hands-on with RINA: Lab Sessions](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/17.jpg)
Network Settings
![Page 18: Hands-on with RINA: Lab Sessions](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/18.jpg)
Clone the Virtual Machine
![Page 19: Hands-on with RINA: Lab Sessions](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/19.jpg)
Clone the Virtual Machine (2)
![Page 20: Hands-on with RINA: Lab Sessions](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/20.jpg)
![Page 21: Hands-on with RINA: Lab Sessions](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/21.jpg)
Start the Virtual Machines
![Page 22: Hands-on with RINA: Lab Sessions](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/22.jpg)
Login: pristine
![Page 23: Hands-on with RINA: Lab Sessions](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/23.jpg)
Password: pristine
![Page 24: Hands-on with RINA: Lab Sessions](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/24.jpg)
Preparing the kernel
![Page 25: Hands-on with RINA: Lab Sessions](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/25.jpg)
Start a terminal and open two tabs, switch to
root in both (password rina)
![Page 26: Hands-on with RINA: Lab Sessions](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/26.jpg)
Configure eth0 [10.1.1.1, 10.1.1.2]
![Page 27: Hands-on with RINA: Lab Sessions](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/27.jpg)
Modprobe the shim-tcp-udp and the normal-
ipcp modules
![Page 28: Hands-on with RINA: Lab Sessions](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/28.jpg)
Prepare the user-space
28 28/01/2015
![Page 29: Hands-on with RINA: Lab Sessions](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/29.jpg)
Configure and run the IPC
manager
![Page 30: Hands-on with RINA: Lab Sessions](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/30.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/31.jpg)
On the cloned machine, edit
/usr/local/irati/etc/ipcmanager.conf
![Page 32: Hands-on with RINA: Lab Sessions](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/32.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/33.jpg)
28/01/2015 33
![Page 34: Hands-on with RINA: Lab Sessions](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/34.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/35.jpg)
28/01/2015 35
![Page 36: Hands-on with RINA: Lab Sessions](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/36.jpg)
28/01/2015 36
![Page 37: Hands-on with RINA: Lab Sessions](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/37.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/38.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/39.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/40.jpg)
Congratulations! You made it!
28/01/2015 40
![Page 41: Hands-on with RINA: Lab Sessions](https://reader033.vdocuments.us/reader033/viewer/2022051522/58a2e5a71a28ab90398be160/html5/thumbnails/41.jpg)
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