摘要 |
Apparatus having related methods and computer programs comprises an input circuit and one or more output circuits; a forwarding engine to transfer packets to the output circuits; and a rate limiting circuit to selectively pass packets from the input circuit to the forwarding engine, the rate limiting circuit comprising a counter to keep a count, an increment circuit to increment the count when the input circuit receives a packet, a decrement circuit to decrement the count by a decrement amount, an action circuit to perform action(s) based on the count and count threshold(s), and a configuration register to store a sampling flag, wherein when the sampling flag is set, the decrement amount is set to zero and the actions include sending a packet to a predetermined destination, and setting the count to zero, when the count exceeds a count threshold.
|