Changes between Initial Version and Version 1 of Documentation/OtherApps/DITG/ITGDecoder


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

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/OtherApps/DITG/ITGDecoder

    v1 v1  
     1{{{
     2#
     3# Define a prototype
     4#
     5require 'handler/prototype'
     6require 'handler/filter'
     7require 'handler/appDefinition'
     8
     9p = Prototype.create("test:proto:itgdecoder")
     10p.name = "ITG Decoder"
     11p.description = "Decodes output and prints results"
     12p.defProperty('logfile', 'Logfile')
     13p.defProperty('tput_report_interval', 'Report interval for throughput')
     14p.defProperty('delay_report_interval', 'Report interval for Delay')
     15p.defProperty('jitter_report_interval', 'Report interval for Jitter')
     16p.defProperty('loss_report_interval', 'Report interval for Packet loss')
     17
     18itgd = p.addApplication('itgdec', "test:app:itgdec")
     19itgd.bindProperty('logfile')
     20itgd.bindProperty('d', 'delay_report_interval')
     21itgd.bindProperty('j', 'jitter_report_interval')
     22itgd.bindProperty('b', 'tput_report_interval')
     23itgd.bindProperty('p', 'loss_report_interval')
     24
     25itgd.addMeasurement('decoderport',  Filter::SAMPLE,
     26  {Filter::SAMPLE_SIZE => 1},
     27  [
     28    ['flow_no'],
     29    ['src_port'],
     30    ['dst_port'],
     31    ['throughput'],
     32    ['jitter'],
     33    ['delay'],
     34    ['pkt_loss'],
     35    ['rssi'],
     36    ['rate']
     37  ]
     38)
     39
     40if $0 == __FILE__
     41  p.to_xml.write($stdout, 2)
     42  puts
     43end
     44
     45}}}