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


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

Legend:

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

    v1 v1  
     1{{{
     2#
     3# Define a prototype
     4#
     5require 'handler/prototype'
     6require 'handler/filter'
     7require 'handler/appDefinition'
     8
     9p = Prototype.create("test:proto:itgcbrsender")
     10p.name = "ITG Sender"
     11p.description = "Nodes which send a stream of packets"
     12p.defProperty('meter', 'one way delay or RTT', 'owdm')
     13p.defProperty('protocol', 'Protocol to use', 'udp')
     14p.defProperty('destinationHost', 'Host to send packets to')
     15#p.defProperty('sender_port', 'Host to send packets to')
     16p.defProperty('constsize', 'Size of packets', 1000)
     17p.defProperty('constrate', 'Number of bits per second', 1000)
     18p.defProperty('duration', 'Time for sending (millisec)', 1000)
     19p.defProperty('gen_delay', 'Generation delay (millisec)', 10000)
     20#p.defProperty('recv_logfile', 'Recv log')
     21p.defProperty('recv_port', 'Receiver_port', 8000)
     22
     23itgs = p.addApplication(:itgs, "test:app:itgs")
     24itgs.bindProperty('m','meter')
     25itgs.bindProperty('T','protocol')
     26itgs.bindProperty('a', 'destinationHost')
     27itgs.bindProperty('c', 'constsize')
     28itgs.bindProperty('C', 'constrate')
     29itgs.bindProperty('t', 'duration')
     30itgs.bindProperty('d', 'gen_delay')
     31#itgs.bindProperty('l', 'logfile')
     32#itgs.bindProperty('x', 'recv_logfile')
     33itgs.bindProperty('r', 'recv_port')
     34
     35itgs.addMeasurement('senderport',  Filter::TIME,
     36  {Filter::SAMPLE_SIZE => 1},
     37  [
     38    ['stream_no'],
     39    ['pkt_seqno'],
     40    ['pkt_size', Filter::SUM],
     41    ['gen_timestamp'],
     42    ['tx_timestamp']
     43  ]
     44)
     45
     46if $0 == __FILE__
     47  p.to_xml.write($stdout, 2)
     48#
     49# Define a prototype
     50#
     51require 'handler/prototype'
     52require 'handler/filter'
     53require 'handler/appDefinition'
     54
     55p = Prototype.create("test:proto:itgcbrsender")
     56p.name = "ITG Sender"
     57p.description = "Nodes which send a stream of packets"
     58p.defProperty('meter', 'one way delay or RTT', 'owdm')
     59p.defProperty('protocol', 'Protocol to use', 'udp')
     60p.defProperty('destinationHost', 'Host to send packets to')
     61#p.defProperty('sender_port', 'Host to send packets to')
     62p.defProperty('constsize', 'Size of packets', 1000)
     63p.defProperty('constrate', 'Number of bits per second', 1000)
     64p.defProperty('duration', 'Time for sending (millisec)', 1000)
     65p.defProperty('gen_delay', 'Generation delay (millisec)', 10000)
     66#p.defProperty('recv_logfile', 'Recv log')
     67p.defProperty('recv_port', 'Receiver_port', 8000)
     68
     69itgs = p.addApplication(:itgs, "test:app:itgs")
     70itgs.bindProperty('m','meter')
     71itgs.bindProperty('T','protocol')
     72itgs.bindProperty('a', 'destinationHost')
     73itgs.bindProperty('c', 'constsize')
     74itgs.bindProperty('C', 'constrate')
     75itgs.bindProperty('t', 'duration')
     76itgs.bindProperty('d', 'gen_delay')
     77#itgs.bindProperty('l', 'logfile')
     78#itgs.bindProperty('x', 'recv_logfile')
     79itgs.bindProperty('r', 'recv_port')
     80
     81itgs.addMeasurement('senderport',  Filter::TIME,
     82  {Filter::SAMPLE_SIZE => 1},
     83  [
     84    ['stream_no'],
     85    ['pkt_seqno'],
     86    ['pkt_size', Filter::SUM],
     87    ['gen_timestamp'],
     88    ['tx_timestamp']
     89  ]
     90)
     91
     92if $0 == __FILE__
     93  p.to_xml.write($stdout, 2)
     94#
     95# Define a prototype
     96#
     97require 'handler/prototype'
     98require 'handler/filter'
     99require 'handler/appDefinition'
     100
     101p = Prototype.create("test:proto:itgcbrsender")
     102p.name = "ITG Sender"
     103p.description = "Nodes which send a stream of packets"
     104p.defProperty('meter', 'one way delay or RTT', 'owdm')
     105p.defProperty('protocol', 'Protocol to use', 'udp')
     106p.defProperty('destinationHost', 'Host to send packets to')
     107#p.defProperty('sender_port', 'Host to send packets to')
     108p.defProperty('constsize', 'Size of packets', 1000)
     109p.defProperty('constrate', 'Number of bits per second', 1000)
     110p.defProperty('duration', 'Time for sending (millisec)', 1000)
     111p.defProperty('gen_delay', 'Generation delay (millisec)', 10000)
     112#p.defProperty('recv_logfile', 'Recv log')
     113p.defProperty('recv_port', 'Receiver_port', 8000)
     114
     115itgs = p.addApplication(:itgs, "test:app:itgs")
     116itgs.bindProperty('m','meter')
     117itgs.bindProperty('T','protocol')
     118itgs.bindProperty('a', 'destinationHost')
     119itgs.bindProperty('c', 'constsize')
     120itgs.bindProperty('C', 'constrate')
     121itgs.bindProperty('t', 'duration')
     122itgs.bindProperty('d', 'gen_delay')
     123#itgs.bindProperty('l', 'logfile')
     124#itgs.bindProperty('x', 'recv_logfile')
     125itgs.bindProperty('r', 'recv_port')
     126
     127
     128if $0 == __FILE__
     129  p.to_xml.write($stdout, 2)
     130  puts
     131end
     132
     133
     134}}}