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


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

Legend:

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

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