发明名称 METHOD AND SYSTEM FOR NON-TAGGED BASED LATENCY CALCULATION
摘要 A system and method for calculating latency including a latency calculation device configured to: receive an enqueue notification relating to a packet enqueue operation and including a queue identifier, increment an enqueue counter, and determine that a latency calculation flag is not set. Based on the determination that the latency calculation flag is not set, the latency calculation device is configured to: determine a first time corresponding to the enqueue notification, store the first time, store a latency start count, and set the latency calculation flag. The latency calculation device is also configured to: receive a dequeue notification relating to the packet dequeue operation and including the queue identifier, increment a dequeue counter, determine that the latency start count and the dequeue counter values match, determine a second time corresponding to the dequeue notification, and calculate latency as the difference between the first time and the second time.
申请公布号 US2016112292(A1) 申请公布日期 2016.04.21
申请号 US201414518429 申请日期 2014.10.20
申请人 Arista Networks, Inc. 发明人 Ahuja Hitesh;Teng Min
分类号 H04L12/26;H04L29/08 主分类号 H04L12/26
代理机构 代理人
主权项 1. A method for calculating latency comprising: receiving, at a latency calculation device, a first enqueue notification of a first enqueue operation from a network device engine, wherein the first enqueue notification comprises a queue identifier associated with a queue and wherein the first enqueue operation corresponds to a first packet being placed into the queue; incrementing, based on the first enqueue notification, an enqueue counter associated with the queue identifier to obtain a current enqueue counter value; determining that a latency calculation flag corresponding to the queue identifier is not set; and based on the determination that the latency calculation flag is not set: determining a first time at which the first enqueue notification of the first enqueue operation was received;storing the first time as a latency start time associated with the queue identifier;storing the current enqueue counter value as a latency start count value;setting the latency calculation flag;receiving a first dequeue notification of a first dequeue operation from the network device engine, wherein the first dequeue notification comprises the queue identifier associated with the queue and wherein the first dequeue operation corresponds to the first packet being removed from the queue;incrementing, based on the first dequeue notification, a dequeue counter associated with the queue identifier to obtain a first current dequeue counter value;determining that the first current dequeue counter value and the latency start count value match;determining a second time at which the notification of the first dequeue operation was received;storing the second time as a latency stop time associated with the queue identifier;removing the latency calculation flag; andcalculating a first latency by determining the time difference between the latency start time and the latency stop time.
地址 Santa Clara CA US