Event driven high speed interface counter polling
AssigneeArista Networks, Inc.
InventorsJefferson Alberto Etaungo Esteves, Dhruvalkumar Patel, Scott Joseph Smith
Life of this patent
Estimating the term…
Abstract
Techniques for enabling precision monitoring of one or more data-throughput counters at one or more network interfaces are disclosed. A command-batch based polling technique enables a system to monitor with precision, e.g., at a high-speed, data-packet traffic through one or more data ports at a network interface. The command-batch based polling technique may enable polling of data-throughput counters for the data ports at the network interface every 1 ms, 10 ms, or 100 ms to monitor the high-speed flow of data-packet traffic through the data ports without loss of count data from overwriting.
Claims20
One or more non-transitory computer readable media having instructions which, when executed by one or more hardware processors, cause the one or more hardware processors to facilitate a plurality of operations, the operations comprising:
- identifying a target polling frequency for polling a set of counters associated with at least one switch device by executing a set of commands, via the at least one switch device, for each polling instance, the set of counters comprising one or more counters;
- determining a number of commands to include in a set of command batches for periodic execution, via the at least one switch device, of the set of commands, the set of command batches comprising one or more command batches;
- generating the set of command batches that each include the set of commands, the set of command batches comprising at least one command batch that includes (a) a first hardware timestamp read command, (b) a set of interface polling commands, and (c) a second hardware timestamp read command;
- and
- in response to detecting a triggering event, causing execution of the set of command batches, wherein each command batch of the set of command batches is executed periodically at a respective frequency to poll the set of counters, and wherein the triggering event is selected from a group comprising at least a packet drop rate meeting a first polling initiation criterion, a time of day, a day of week, or a date meeting a second polling initiation criterion, a set of link flapping characteristics meeting a third polling initiation criterion, and a detected quality of service meeting a fourth polling initiation criterion.
A method, comprising:
- accessing a target polling frequency for polling a set of counters associated with at least one switch device by executing a set of commands, via the at least one switch device, for each polling instance, the set of counters comprising one or more counters;
- determining a number of commands to include in a set of command batches for periodic execution, via the at least one switch device, of the set of commands, the set of command batches comprising one or more command batches;
- generating the set of command batches that each include the set of commands, the set of command batches comprising at least one command batch that includes (a) a first hardware timestamp read command, (b) a set of interface polling commands, and (c) a second hardware timestamp read command;
- and
- in response to detecting a triggering event, causing execution of the set of command batches, wherein each command batch of the set of command batches is executed periodically at a respective frequency to poll the set of counters, and wherein the triggering event is selected from a group comprising at least a packet drop rate meeting a first polling initiation criterion, a time of day, a day of week, or a date meeting a second polling initiation criterion, a set of link flapping characteristics meeting a third polling initiation criterion, and a detected quality of service meeting a fourth polling initiation criterion.
A system having one or more processors configured to cause a plurality of operations, the operations comprising:
- determining a number of commands to include in a set of command batches for periodic execution, via at least one switch device associated with a set of counters, of a set of commands, wherein (a) the set of command batches comprises one or more command batches, (b) the set of counters is configured to be accessed at a target polling frequency via execution of the set of commands, by the at least one switch device, for each polling instance, and (c) the set of counters comprises one or more counters;
- generating the set of command batches that each include the set of commands, the set of command batches comprising at least one command batch that includes (a) a first hardware timestamp read command, (b) a set of interface polling commands, and (c) a second hardware timestamp read command;
- and
- in response to detecting a triggering event, causing execution of the set of command batches, wherein each command batch of the set of command batches is executed periodically at a respective frequency to poll the set of counters, and wherein the triggering event is selected from a group comprising at least a packet drop rate meeting a first polling initiation criterion, a time of day, a day of week, or a date meeting a second polling initiation criterion, a set of link flapping characteristics meeting a third polling initiation criterion, and a detected quality of service meeting a fourth polling initiation criterion.
Dependencies are inferred from the claim text.