Changes between Version 5 and Version 6 of Old/Documentation/OTG/FuncSpec/TimingControl


Ignore:
Timestamp:
Oct 6, 2005, 6:06:30 PM (19 years ago)
Author:
zhibinwu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Old/Documentation/OTG/FuncSpec/TimingControl

    v5 v6  
    1414 * Relative Time: Clock refer to the start of the program(construction of the [source:otg/trunk/src/cpp/unixtime.h#latest UnixTime] class object)
    1515
    16 Absolute time is used for showing the rx_timestamp and tx_timestamp. Because those two timestamps will be compared to show packet delay, they have to be of some absoulte referrence which beyonds its respective process.
     16Absolute time is used for showing the rx_timestamp and tx_timestamp. Because those two timestamps will be compared to show packet delay, they have to be of some absolute reference which beyonds its respective process.
    1717
    1818Relative clock is used to report gen_timestamp ( packet generation time). Also, this clock could be paused and resumed.
    19 To realize this, its origin_ (orgin time) would be shifted whenever an pasue-resume operation occured.
     19To realize this, its origin_ (orgin time) would be shifted whenever an pasue-resume operation occurred.
    2020
    2121== How to get Absolute time ==
    2222
    2323When the !UnixTime object is constructed, it will get system time and set the reference point to the 12am of ''today''.
    24 Therfore, packet tx_timestamp and rx_timestamp are reporting the milliseconds passed since the 12am of the experiment day by OTG and OTR indepdently.
     24Therefore, packet tx_timestamp and rx_timestamp are reporting the milliseconds passed since the 12am of the experiment day by OTG and OTR independently.
    2525As long as the nodes are NTP synced, the comparison of stamps to calculate delay would be no problem.
    2626
    2727For experiments around 12am, this is still an incomplete solution.
    28 So --clockref parameters are added in both OTG/OTR. The nodehandler could give an integer number to this option when starting otr/otg, to caliberating
     28So --clockref parameters are added in both OTG/OTR. The nodehandler could give an integer number to this option when starting otr/otg, to calibrate
    2929the timestamp-clock reference.
    3030This integer is the # of hours passed since 01/01/1970, for example, 313171 will shift the clock reference to 3pm 09/22/2005. I suggest nodehandler add
     
    3434== TimeStamp Report in Measurements ==
    3535
    36 As mentioned before, the rx_timestamp and tx_timestamp are of abosolute clock. Ideally, they should be report as floating point numbers. However, those valuse are usually very big. Because MySQL database does not show large float value very well, we cast them to integers. The timestamps are of integer millisecond unit.
     36As mentioned before, the rx_timestamp and tx_timestamp are of absolute clock. Ideally, they should be report as floating point numbers. However, those values are usually very big. Because MySQL database does not show large float value very well, we cast them to integers. The timestamps are of integer millisecond unit.
    3737
    3838packet generation timestamp is reported as a float variable.