×

Method and apparatus for calculating packet arrival time interval

  • US 8,717,898 B2
  • Filed: 09/22/2009
  • Issued: 05/06/2014
  • Est. Priority Date: 08/04/2009
  • Status: Active Grant
First Claim
Patent Images

1. A method for calculating packet arrival time interval, used to calculate the time interval of the packet of each flow arriving at the network node so as to determine the quantity of tokens in the token bucket of each flow, wherein the method comprises:

  • when the current packet arrives, reading system current time T2 from a timer, and reading the arrival time T1, recorded in an external RAM, of previous packet of the flow to which the current packet belongs, wherein when the timer implements a cycle timing with a period of preset time period Tmax, the preset time period Tmax is larger than or equal to the time for filling the maximum depth of the token bucket of the flow at the minimum token injection rate;

    reading a current flag bit, recorded in an internal RAM, of the flow to which the current packet belongs, wherein the current flag bit is used for indicating the number of cycles of the timer between the system current time T2 and the arrival time T1 of the previous packet; and

    calculating the arrival time interval of the present packet according to the system current time T2, the arrival time T1 of the previous packet and the current flag bit.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×