Changes between Initial Version and Version 1 of Documentation/OtherApps/Iperf/IperfUDPReceiver


Ignore:
Timestamp:
Sep 5, 2006, 9:44:42 PM (18 years ago)
Author:
Surya Satyavolu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/OtherApps/Iperf/IperfUDPReceiver

    v1 v1  
     1{{{
     2#
     3# Define a prototype
     4#
     5
     6require 'handler/prototype'
     7require 'handler/filter'
     8require 'handler/appDefinition'
     9
     10p = Prototype.create("test:proto:iperfudpreceiver")
     11p.name = "Iperf UDP Receiver"
     12p.description = "Nodes which receive packets"
     13p.defProperty('use_udp', 'Protocol to use')
     14p.defProperty('server', 'Client/Server')
     15#p.defProperty('port', 'Port to listen on')
     16p.defProperty('time', 'Duration of experiment (seconds)', 10)
     17p.defProperty('len', 'Payload length', 512)
     18p.defProperty('report_interval', 'Interval between bandwidth reports', 1)
     19
     20iperfr = p.addApplication('iperfr', "test:app:iperfr")
     21iperfr.bindProperty('udp')
     22iperfr.bindProperty('server')
     23#iperfr.bindProperty('port','port')
     24iperfr.bindProperty('time')
     25iperfr.bindProperty('len')
     26iperfr.bindProperty('interval','report_interval')
     27
     28iperfr.addMeasurement('receiverport',  Filter::SAMPLE,
     29  {Filter::SAMPLE_SIZE => 1},
     30  [
     31    ['flow_no'],
     32    ['throughput'],
     33    ['jitter'],     
     34    ['packet_loss']
     35  ]
     36)
     37
     38if $0 == __FILE__
     39  p.to_xml.write($stdout, 2)
     40  puts
     41end
     42
     43
     44}}}