249 | | As seen above, the OML enabled monitor will work with the !MobilityFirst router and it will enable us to track and visualize the forwarding performance of MFRs. In order to report statistics to the ORBIT's OML server, the monitor periodically queries the router through a socket control port (''ctrl_port'' in our script). |
| 249 | As seen above, the OML enabled monitor will work with the !MobilityFirst router and it will enable us to track and visualize the forwarding performance of the MFRs in real time. In order to report statistics to the ORBIT's OML server, the monitor periodically queries the router through a socket control port (''ctrl_port'' in our script). Using the conveniency of OML we can define different characteristics of the stream of measurements going to the OML server. This is done using an XML configuration file; in our case the following configuration file has been preloaded on the nodes: |
| 250 | |
| 251 | {{{ |
| 252 | #!xml |
| 253 | |
| 254 | <omlc id='click_mon'> |
| 255 | <collect url='tcp:oml.orbit-lab.org:3003'> |
| 256 | <stream name='packet_stats' mp='packet_stats' samples='1'> |
| 257 | </stream> |
| 258 | <stream name='routing_stats' mp='routing_stats' samples='1'> |
| 259 | </stream> |
| 260 | <stream name='link_stats' mp='link_stats' samples='1'> |
| 261 | </stream> |
| 262 | </collect> |
| 263 | </omlc> |
| 264 | }}} |
| 265 | |
| 266 | After running the experiment which should be able to retrieve statistics on a per sample base divided among different groups, based on the analyzed layer (i.e. network layer, link layer, physical layer). |
271 | | The following snippet shows how the exercise runs. As indicated above first we will run mfping between the hosts as described in exercise 1: |
272 | | [[CollapsibleStart(If not coming from the previous exercise follow these instructions to run mfping)]] |
273 | | Once the host and router components are up, you can log in to the sender (host identified by GUID 101) and receiver (host identified by GUID 102) host nodes (two separate terminals) and run the 'mfping' application. |
274 | | |
275 | | Run the mfping 'server' specifying the application GUID: |
| 288 | Once your experiment is showing you the following line: |
| 289 | |
| 290 | {{{ |
| 291 | #!sh |
| 292 | INFO exp: Request from Experiment Script: Wait for 10000s.... |
| 293 | }}} |
| 294 | |
| 295 | you can proceed running the ping application. If coming from exercise 1, you will only need to repeat the same procedure. For conveniency, the detailed steps on how to run the application follow. |
| 296 | |
| 297 | [[CollapsibleStart(Instructions on how to run the mfping application)]] |
| 298 | |
| 299 | You can now proceed: using the previously opened consoles log in into the two host nodes (GUIDs 101 and 102) that will be used to run the simple 'mfping' application. In order to access a running Orbit node ssh into it as follow: |
| 300 | |
| 301 | {{{ |
| 302 | #!sh |
| 303 | ssh root@nodex-y |
| 304 | }}} |
| 305 | |
| 306 | Where ''x-y'' has to be replaced by the actual numbers identifying the node. |
| 307 | |
| 308 | Once logged in, run on the node with GUID 102 the mfping 'server' component properly specifying the application GUIDs: |
329 | | Note that the URL used in wget, in particular the arguments, may require to be encoded to unambiguously represent special characters when using the HTTP protocol. |
330 | | |
331 | | This data can also be downloaded using "wget" command and easily visualized using a tool such as gnuplot. You can find a helper script in the tutorial package that plots they key performance data downloaded. |
332 | | |
333 | | '''Method 2:''' Alternatively, the performance data may be visualized using ''omf-web'', OMF's web-based visualization service. It also works in concert with the result service referenced in Method 1, and makes available a variety of graph widgets to visualize live-experiment data logged using OML. Detailed documentation on the installation and usage of omf-web can be found on the [https://github.com/mytestbed/omf_web omf-web github site]. |
334 | | |
335 | | Since this is installed on all ORBIT domains, we only need to concern ourselves with defining the widget configuration required to bring up the live graphs for the performance data we are logging. In order to bring up the visualization, we only need to start the basic omf-web service with the configuration file arguments. |
| 362 | '''Method 2:''' Alternatively, the performance data may be visualized using a tool called ''omf-web'', an OMF web-based visualization service. It also works in concert with the result service referenced in Method 1, and makes available a variety of graph widgets to visualize live-experiment data logged using OML. Documentation on the installation and usage of omf-web can be found on the [https://github.com/mytestbed/omf_web omf-web github site]. |