Patent ID: 9705808
Date: 2017-07-11
CPC Classifications: G06F,H04L

Claim:
1. A method comprising: storing in a queue of a buffer a first type of traffic; storing in the queue of the buffer a second type of traffic, wherein the first type of traffic is less sensitive to latency than the second type of traffic; maintaining a first counter indicative of a total number of bytes stored in the buffer, and maintaining a second counter indicative of a total number of bytes stored in the buffer that are attributable to the first type of traffic, wherein the second counter is responsive to an indication that is generated by a trap configured to detect the first type of traffic and that is passed via a descriptor block; and when, based on a value of the second counter, an amount of the first type of traffic meets or exceeds a first threshold, effecting flow control of the first type of traffic to slow a flow of the first type of traffic into the buffer, wherein effecting flow control of the first type of traffic comprises effecting flow control of the first type of traffic in accordance with a first probability when the amount of the first type of traffic meets or exceeds the first threshold, and effecting flow control of the first type of traffic in accordance with a second probability, higher than the first probability, when the amount of the first type of traffic meets or exceeds a second threshold, and wherein a frequency with which effecting flow control is performed is set separately from a timing of ingress and egress of packets into and out of the buffer.