Changes between Version 4 and Version 5 of tutorials/mf-exp1


Ignore:
Timestamp:
May 3, 2020, 4:21:19 AM (5 years ago)
Author:
pnetalkar
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • tutorials/mf-exp1

    v4 v5  
    1212Fig.1 MF Topology setup for Experiment 1
    1313
     14=== Configuration ===
     151. Load the images on the required node using the command below, the image mf-exp1.ndz has all the required source code files for host stack, routers and GNRS.
     16{{{
     17console:~$ omf load -i mf-exp1.ndz -t node1-3,node1-4,node1-7,node1-6,node1-8
     18}}}
    1419
     202. Please turn on the node after loading images
     21{{{
     22console:~$ omf tell -a on -t node1-3,node1-4,node1-7,node1-6,node1-8
     23}}}
    1524
     253. Open separate terminals for each of the nodes either using mobaxterm or putty
    1626
     274. Configuration of GNRS
     28* Login into the GNRS node (node1-8 in this case)
     29* Change the ipv4 address in {{{~/mf/gnrs/jserver/sample-configs/single-server/net-ipv4.xml}}} file to X.X.X.X (eth1 address – 10.14.1.8)
     30* Change the ipv4 address and the binding port in {{{~/mf/gnrs/jserver/sample-configs/single-server/as-binding.ipv4}}} file to X.X.X.X (eth1 address-10.14.1.8)
    1731
     325. Download the bash script into your console environment
     33{{{
     34console:~$ git clone https://gitlab.orbit-lab.org/pnetalkar/cosmos-mf-tutorial.git
     35}}}
    1836
     376. Run/Execute the scripts present in {{{exp1}}} folder from the console (see below for more instruction)
     38
     397. Configure the config.sh file according to your node setup
     40{{{
     41#!/bin/bash
     42
     43log_level="1"
     44
     45#Node IDs
     46n1="1"
     47n2="2"
     48n3="3"
     49n4="4"
     50
     51#Node Address
     52node1="node1-3"
     53node2="node1-4"
     54node3="node1-7"
     55node4="node1-6"
     56nodegnrs="node1-8"
     57}}}
     58
     598. Execute ./setup_interfaces.sh to configure the IP address of the respective {{{eth0}}} interfaces as shown in the topology figure above
     60{{{
     61console:~/cosmos_tutorial/exp1$./setup_interfaces.sh
     62}}}
     63
     649. Execute ./copy_router_conf.sh to copy {{{topo}}} file required by click routers
     65{{{
     66console:~/cosmos_tutorial/exp1$./copy_router_conf.sh
     67}}}
     68
     6910. Use ./copy_hostconf.sh to copy host stack configuration files to the respective hosts
     70*  Before copying host config file, make sure you edit these mfstack files present in conf folder.
     71*  Inside {{{mfstack.conf}}}, configure the interfaces with the respective next hop IP and MAC address of the router.
     72{{{
     73# Required.
     74DEFAULT_GUID = 1
     75
     76#INTERFACE = ether,eth0,ip,auto
     77INTERFACE = ether,eth0,ip,manual,192.168.1.2,d8:50:e6:d4:f5:2d
     78}}}
     79
     8011. Run ./start_gnrs.sh to start the GNRS at node1-8
     81{{{
     82console:~/cosmos_tutorial/exp1$./start_gnrs.sh
     83}}}
     84
     85Verify the status of the GNRS using command: {{{root@node1-8:~# tail -f /var/log/mfgnrs.log}}} at node1-8
     86
     8712. Run ./start_routers.sh to start the routers on node1-4 and node1-7.
     88{{{
     89console:~/cosmos_tutorial/exp1$./start_routers.sh
     90}}}
     91
     92Verify the status of the routers using command: {{{root@node1-4:~# tail -f /var/log/mfrouter2.log}}} to read the logs of router with id 2 and {{{root@node1-7:~# tail -f /var/log/mfrouter3.log}}} to read the logs of router with id 3.
     93
     9413. Run ./start_hosts.sh to start the host on node1-3, node1-6 respectively.
     95{{{
     96console:~/cosmos_tutorial/exp1$./start_hosts.sh
     97}}}
     98Use {{{root@node1-3:~# tail -f /var/log/mfhost1.log}}} and {{{root@node1-6:~# tail -f /var/log/mfhost4.log}}} to read the logs/status of host with id 1 and id 4 respectively.
     99
     100=== Running MFPING ===
     1011. At Host 4: Server(Start server first)
     102{{{
     103root@node1-6:~# mfping -m 4 -o 1 -s -d
     104}}}
     105
     1062. At Host 1: Client
     107{{{
     108root@node1-3:~# mfping -d -m 1 -o 4 -c -n 10
     109}}}
     110
     1113. Use the stop script to stop the respective host, routers and GNRS
     112
     113=== Additional Details ===
     1141. Starting GNRS:
     115*  {{{cd mf/gnrs/jserver}}}
     116*  {{{mf/gnrs/jserver# java -Dlog4j.configuration=file:sample-configs/single-server/log4j.xml -jar target/gnrs-server-1.0.0-SNAPSHOT-jar-with-dependencies.jar sample-configs/single-server/server.xml}}}
     1172. Starting Routers:
     118* {{{cd ~/mf/router/click/conf}}}
     119* {{{~/mf/router/click/conf# click MF_IPAccessMultiRouter.click my_GUID=X topo_file=topo core_dev=ethX GNRS_server_ip=x.x.x.x GNRS_server_port=5000 GNRS_listen_ip=y.y.y.y GNRS_listen_port=5001 edge_dev=ethx edge_dev_ip=z.z.z.z}}}
     1203. Staring Host:
     121* {{{cd mf/mfclient/hoststack/conf}}}
     122* {{{mf/mfclient/hoststack/conf# mfstack -d mfstack.conf}}}
    19123
    20124= Experiment 2 (WIFI) =