Changes between Version 14 and Version 15 of Tutorials/g0WmLTE/Tutorial2


Ignore:
Timestamp:
Jul 4, 2012, 2:34:29 PM (12 years ago)
Author:
jeffrabi
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/g0WmLTE/Tutorial2

    v14 v15  
    8484 * ''app.measure('status_link')'' tells this application to use its predefined code to measure the 'status_link' property. OML will save these data for later. The exact behavior of this application is outside the scope of this discussion; suffice it to say that the implementation of the application is defined in the ''wimaxcu_app.rb'' and ''wmxstat'' programs mentioned previously.
    8585
     86{{{
     87  node.addApplication("test:app:iperf") do |app|
     88    app.setProperty('udp', true)
     89    app.setProperty('server', true)
     90    app.setProperty('interval', "1")
     91    app.setProperty('bind', "10.41.255.255")
     92    app.measure('UDP_Rich_Info', :samples =>1)
     93  end
     94}}}
     95
     96 * As before, this application is contained in a subdirectory accessed through ''/test/app/''.
     97
     98This adds the ''iperf'' application functionality to the group. ''iperf'' is an application which measures connectivity by sending data packets between groups.
     99
     100''setProperty'' is fairly self-explanatory. It simply configures individual parameters germane to the operation of iperf.
     101
     102Here, ''app.measure'' is interesting because it is only one of the possible measurements that can be taken by the iperf app. For the others, see the ''iperf.rb'' code.
     103
     104{{{
     105  node.exec('ifconfig', ['wmx0 10.41.14.1 netmask 255.255.0.0 up'])
     106}}}
     107
     108''node.exec'' launches a program from the terminal. Specifically, this execution launches ifconfig and configure the WiMAX card manually. This is a useful demonstration of how to 'force' certain behavior from the nodes.
    86109----
    87110== Launch Experiment ==