×

Determining sampling rate from randomly sampled events

  • US 9,401,853 B2
  • Filed: 09/24/2013
  • Issued: 07/26/2016
  • Est. Priority Date: 09/24/2013
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method, in a data processing system comprising a processor and a memory, for determining an event rate, the method comprising:

  • sampling, by the data processing system, a sequence of events, to generate a set of sampled events, wherein at least a subset of the sampled events in the set of sampled events have associated event sequence values indicating a position of the sampled event within the sequence of events;

    grouping, by the data processing system, the sampled events into a plurality of event groups based on a common characteristic of the events;

    determining, by the data processing system, for each event group, sequence values of sampled events associated with the event group; and

    calculating, by the data processing system, for each event group, an estimated event rate based on the sequence values of the sampled events associated with the event group and the total number of events in the sequence of events, wherein;

    the events are sampled data packets and wherein receiving the sequence of events comprises sampling the data packets from a network switch or network router,the sampled data packets are sampled at least by performing mirroring of data packets from a plurality of normal ports of the network switch or network router to a mirror port from which the data packets are sampled,the event groups are data flows through the plurality of normal ports of the network switch or network router thereby representing a plurality of data flows,all data packets flowing through the plurality of normal ports are mirrored to the mirror port and a random amount of data packets are sampled from each normal port of the plurality of normal ports as a result of the mirroring based on a data flow rate of the data flow flowing through the normal port and a saturation limit of the mirror port, wherein data packets mirrored to the mirror port in excess of the saturation limit of the mirror port are dropped while data packets mirrored to the mirror port equal to or less than the saturation limit are sampled, andcalculating the estimated event rate comprises estimating a total number of data packets flowing through each data flow in the plurality of data flows based on an estimate of data packets dropped due to oversaturation of the mirror port.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×