User Tools

Site Tools


onelab_experiment

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
onelab_experiment [2015/03/07 12:06]
arsany
onelab_experiment [2015/03/07 16:02] (current)
arsany
Line 17: Line 17:
 6- After making sure that your nodes are up and connected to each other, it is the time for your first experiment :) 6- After making sure that your nodes are up and connected to each other, it is the time for your first experiment :)
  
-====== ​Topology ​======+====== ​Simple Experiment ​====== 
 +===== Topology ​=====
  
 6 nodes are used with 2 transmitter,​ 2 receivers and 2 relay nodes.\\ 6 nodes are used with 2 transmitter,​ 2 receivers and 2 relay nodes.\\
Line 28: Line 29:
 n2 sends traffic to n6 (through n3 and n4)\\ n2 sends traffic to n6 (through n3 and n4)\\
  
-====== Nodes ======+===== Nodes =====
  
 n1 and n2 are very simple clients (no more than one telnet command line).\\ n1 and n2 are very simple clients (no more than one telnet command line).\\
Line 34: Line 35:
 n4 does processing on the received message and sends this message to n5 or n6 according to the message itself.\\ n4 does processing on the received message and sends this message to n5 or n6 according to the message itself.\\
 n5 and n6 are simple servers which receive the message and just print it.\\ n5 and n6 are simple servers which receive the message and just print it.\\
-The whole experiment is written in python since it's supported by default machines of PlanetLab Europe (which run linux)\\+The whole experiment is written in python since it's supported by default machines of PlanetLab Europe (which run linux). From the reserved nodes: **planetlab-2.ing.unimo.it** and **planetlab2.polito.it** ​\\
 It is important to note that no routing is done in this experiment but the paths (including destinations) and the forwarding rules are determined inside the code\\ It is important to note that no routing is done in this experiment but the paths (including destinations) and the forwarding rules are determined inside the code\\
 To make this part easy, client sends their names in the message so, if the message starts with "​n1",​ this should go to n5 and if the message starts with "​n2",​ this should go to n6\\ To make this part easy, client sends their names in the message so, if the message starts with "​n1",​ this should go to n5 and if the message starts with "​n2",​ this should go to n6\\
 Last note: The whole experiment works on a fixed port-Number (let it be 5005). Last note: The whole experiment works on a fixed port-Number (let it be 5005).
  
-====== Running the experiment ​======+===== Running the experiment =====
  
-  - clients (n1 and n2) command: telnet IP(of n3) 5005 +  - clients (n1 and n2) command: telnet IP(of n3) 5005. 
-  - n3 runs n3server.py +  - n3 runs simple server which just receives messages and forward it to n4
-  - n4 runs n4server.py +  - n4 runs simple server which receives messages from n3 and forward it to n5 or n6 depending on the information in the message itself
-  - receivers (n5 and n6) run receivers.py+  - receivers (n5 and n6) run simple receiver which prints the received messages.
  
 ====== References ====== ====== References ======
  
 https://​portal.onelab.eu/​slice/​yourslicename#​experiment https://​portal.onelab.eu/​slice/​yourslicename#​experiment
onelab_experiment.1425722778.txt.gz · Last modified: 2015/03/07 12:06 by arsany