119 | | = Installing Mininet-Optical disk image on COSMOS' node = |
120 | | |
121 | | Before starting this tutorial, you will need to install Mininet-Optical in the console. We have already created a disk image with a pre-installed version of Mininet-Optical with necessary codes. If you don't have access to the COSMOS' console already, you can follow the sign-up and installation instructions at [wiki:Workshops/SigComm2022/SignupInstructions] |
122 | | |
123 | | To install the Mininet-Optical disk image, follow the below steps: |
124 | | |
125 | | 1. Remove any installed disk images on the node |
126 | | {{{#!shell-session |
127 | | user@console:~$ omf tell -a reset -t <node> |
128 | | }}} |
129 | | Here, <node> is the name of the appropriate node (for example, node1-2.sb2.orbit-lab.org) |
130 | | 2. Install the Mininet-Optical OS image file. |
131 | | {{{#!shell-session |
132 | | user@console:~$ omf load -i sigcomm22-mnoptical-tutorial.ndz -t <node> |
133 | | }}} |
134 | | 3. Turn the node on |
135 | | {{{#!shell-session |
136 | | user@console:~$ omf tell -a on -t <node> |
137 | | }}} |
138 | | 3. Ping the node to check if disk image has been installed correctly. You should see the output similar to below which confirms that your console is able to ping the node you just installed in previous step. |
139 | | {{{#!shell-session |
140 | | user@console:~$ ping <node> |
141 | | PING node1-2.sb4.orbit-lab.org (10.14.1.2) 56(84) bytes of data. |
142 | | ... |
143 | | 64 bytes from <node> (10.14.1.2): icmp_seq=16 ttl=255 time=0.552 ms |
144 | | 64 bytes from <node> (10.14.1.2): icmp_seq=37 ttl=64 time=0.750 ms |
145 | | 64 bytes from <node> (10.14.1.2): icmp_seq=38 ttl=64 time=0.530 ms |
146 | | 64 bytes from <node> (10.14.1.2): icmp_seq=39 ttl=64 time=0.347 ms |
147 | | ^C |
148 | | }}} |
149 | | Press CTRL+C to stop the ping |
150 | | 4. Log in to the node, and fetch the latest version of Mininet-Optical |
| 119 | = Starting Mininet-Optical on COSMOS' node = |
| 120 | |
| 121 | Before starting this tutorial, you will have already logged in to Ubuntu image on Cosmos node. If you don't have access to the COSMOS' console already, you can follow the sign-up and installation instructions at [wiki:Workshops/SigComm2022/SignupInstructions] |
| 122 | To save the hassle of installing, we have already installed Mininet-Optical on the node you are using. |
| 123 | |
| 124 | To start our tutorial on Mininet-Optical, follow the below steps: |
| 125 | |
| 126 | 1. Log in to the node, and fetch the latest version of Mininet-Optical |
| 495 | === Ping Servers Manually (''For extra credits!!) === |
| 496 | [=#point2] |
| 497 | You can also ping all the servers manually in the mininet-optical CLI to check the connections with below steps: |
| 498 | |
| 499 | 1. Open another terminal window and login to the node; using the same steps you used to open a new terminal window previously. Jump to the section on opening another terminal window [#point1 here] |
| 500 | 2. Now, `~/mininet/util/m` can be used to 'log in' to any one of the servers much as you would with `ssh`. So you can ping any two servers. Let's try to ping srv1-lg1 from srv1-co1 like below. Note that we have assigned the address 192.168.1.2 to srv1-lg1 in the `config-sigcommtutorial.sh` file. |
| 501 | {{{#!shell-session |
| 502 | root@<node>:~/mininet-optical# ~/mininet/util/m srv1-co1 ping 192.168.1.2 |
| 503 | PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data. |
| 504 | From 192.168.1.1 icmp_seq=1 Destination Host Unreachable |
| 505 | From 192.168.1.1 icmp_seq=2 Destination Host Unreachable |
| 506 | From 192.168.1.1 icmp_seq=3 Destination Host Unreachable |
| 507 | ^C |
| 508 | --- 192.168.1.2 ping statistics --- |
| 509 | 5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4146ms |
| 510 | }}} |
| 511 | 3. Press CTRL+C to stop the ping. Similarly you can ping srv2-lg1 from srv1-co1 as below: |
| 512 | {{{#!shell-session |
| 513 | root@<node>:~/mininet-optical# ~/mininet/util/m srv1-co1 ping 192.168.1.3 |
| 514 | PING 192.168.1.3 (192.168.1.3) 56(84) bytes of data. |
| 515 | From 192.168.1.1 icmp_seq=1 Destination Host Unreachable |
| 516 | From 192.168.1.1 icmp_seq=2 Destination Host Unreachable |
| 517 | From 192.168.1.1 icmp_seq=3 Destination Host Unreachable |
| 518 | ^C |
| 519 | --- 192.168.1.3 ping statistics --- |
| 520 | 4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3156ms |
| 521 | }}} |
| 522 | Here, 192.168.1.3 is the address assigned to srv2-lg1. Press CTRL+C to exit the ping. |
| 523 | |
| 524 | As expected, you cannot ping srv1-lg1 and srv2-lg1 from srv1-co1 right now, because no connections have been established. |