摘要 |
<p>A method and apparatus for calculating the message arrival time interval are provided by the present invention. In the above-mentioned method, when the current message arrives, a system current time T2 is read from a timer, and an arrival time T1 of a previous message of the flow to which the current message belongs is read, the arrival time Tl is recorded in an exterior Random Access Memory RAM (301), wherein, the timer implements a cycle timing with a period of preset time segment Tmax, the preset time segment Tmax is greater than or equal to the time for filling the flow token bucket of maximum depth at the minimum token injection rate; a current flag of the flow to which the current message belongs is read, the current flag is recorded in an interior RAM (303), wherein, the current flag is used for indicating the cycle number of the timer between the system current time T2 and the arrival time T1 of the previous message; the present message arrival time interval is calculated according to the system current time T2, the arrival time T1 of the previous message and the current flag (305). Application of the present invention can reduce the consumption of the interior RAM, and improve the operability for realizing by the hardware chips.</p> |
申请人 |
ZTE CORPORATION;XIAO, JIE;WU, BIAN;WU, FENGBO;YU, CHEN |
发明人 |
XIAO, JIE;WU, BIAN;WU, FENGBO;YU, CHEN |