Changes between Version 8 and Version 9 of Tutorials/a0Basic/Tutorial2


Ignore:
Timestamp:
Jul 26, 2006, 10:30:59 PM (18 years ago)
Author:
Surya Satyavolu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/a0Basic/Tutorial2

    v8 v9  
    5151
    5252The first part of the script creates a group called ''sender'' and assigns node1-1 to it.
    53 Next, we instruct nodehandler to assign the prototype ''test:proto:sender'' to node1-1. A prototype is similar to a function or macro in conventional programming languages and defines in this case a re-usable configuration. The prototypes are normally defined in separate files .  In this case, the prototype contains instructions to install a traffic generator, but we will learn about this later. What is important here is that a prototype can define properties which allows us to customize it for the specific experiment. In this experiment, we can set the address of the sender, and various properties of the traffic generator itself, such as packet size, rate, and the protocol over which to send the traffic.
     53Next, we instruct nodehandler to assign the prototype [http://www.orbit-lab.org/wiki/Documentation/OTG/ScriptsRepository/ProtoDefSender ''test:proto:sender'']  to node1-1. A prototype is similar to a function or macro in conventional programming languages and defines in this case a re-usable configuration. The prototypes are normally defined in separate files.  In this case, the prototype contains instructions to install a traffic generator, but we will learn about this later. What is important here is that a prototype can define properties which allows us to customize it for the specific experiment. In this experiment, we can set the address of the sender, and various properties of the traffic generator itself, such as packet size, rate, and the protocol over which to send the traffic.
    5454
    5555{{{
     
    102102The next line 'wait 40' will instruct the experiment controller to wait for 40 seconds before concluding the experiment (''Experiment.done'').
    103103
     104== Prototypes and application definitions used with helloworld ==
     105
     106 * [http://www.orbit-lab.org/attachment/wiki/Documentation/OTG/ScriptsRepository/otg.rb otg.rb]
     107 * [wiki:Documentation/OTG/ScriptsRepository/OtrAppdef otr.rb]
     108 
     109 * [wiki:Documentation/OTG/ScriptsRepository/ProtoDefSender sender.rb]
     110 * [wiki:Documentation/OTG/ScriptsRepository/ProtoDefReceiver receiver.rb]