Changes between Version 1 and Version 2 of Old/Documentation/OTG/ScriptsRepository/ProtoDefColocateSender


Ignore:
Timestamp:
Sep 30, 2005, 3:26:38 AM (19 years ago)
Author:
zhibinwu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Old/Documentation/OTG/ScriptsRepository/ProtoDefColocateSender

    v1 v2  
    3333otg1 = p.addApplication(:otg, "test:app:otg")
    3434otg1.bindProperty('protocol')
    35 otg1.bindProperty('port')
     35otg1.bindProperty('port','port1')
    3636otg1.bindProperty('generator')
    3737otg1.bindProperty('dsthostname', 'destinationHost')
     
    5050)
    5151
     52otg2 = p.addApplication(:otg, "test:app:otg")
     53otg2.bindProperty('protocol')
     54otg2.bindProperty('port','port2')
     55otg2.bindProperty('generator')
     56otg2.bindProperty('dsthostname', 'destinationHost')
     57otg2.bindProperty('size', 'packetSize')
     58otg2.bindProperty('rate')
     59otg2.bindProperty('broadcast')
     60
     61otg3.addMeasurement('senderport',  Filter::TIME,
     62  {Filter::SAMPLE_SIZE => 1},
     63  [ 
     64    ['pkt_seqno'],
     65    ['pkt_size', Filter::SUM],
     66    ['gen_timestamp'],
     67    ['tx_timestamp']
     68  ]
     69)
    5270otg3 = p.addApplication(:otg, "test:app:otg")
    5371otg3.bindProperty('protocol')
    54 otg3.bindProperty('port')
     72otg3.bindProperty('port','port3')
    5573otg3.bindProperty('generator')
    5674otg3.bindProperty('dsthostname', 'destinationHost')