wiki:Documentation/OtherApps/Iperf/IperfTCPReceiver
#
# Define a prototype
#
require 'handler/prototype'
require 'handler/filter'
require 'handler/appDefinition'

p = Prototype.create("test:proto:iperftcpreceiver")
p.name = "Iperf TCP Receiver"
p.description = "Nodes which receive packets"
p.defProperty('server', 'Client/Server')
#p.defProperty('port', 'Port to listen on')
p.defProperty('time', 'Duration of experiment (seconds)', 10)
p.defProperty('window', 'Receiver Window Size', 64000)
p.defProperty('report_interval', 'Interval beween reports', 1)


iperfr = p.addApplication('iperfr', "test:app:iperfr")
iperfr.bindProperty('server')
#iperfr.bindProperty('port','port')
iperfr.bindProperty('time')
iperfr.bindProperty('window')
iperfr.bindProperty('interval', 'report_interval')

iperfr.addMeasurement('receiverport',  Filter::SAMPLE,
  {Filter::SAMPLE_SIZE => 1},
    [
      ['flow_no'],
      ['throughput'],
      ['jitter'],
      ['packet_loss']
    ]
)
                      

if $0 == __FILE__
  p.to_xml.write($stdout, 2)
  puts
end
Last modified 18 years ago Last modified on Sep 5, 2006, 9:45:35 PM
Note: See TracWiki for help on using the wiki.