×

System and method for range matching

  • US 10,630,588 B2
  • Filed: 07/23/2015
  • Issued: 04/21/2020
  • Est. Priority Date: 07/24/2014
  • Status: Active Grant
First Claim
Patent Images

1. A method for IP address range matching, the method comprising:

  • constructing a hash table comprising a plurality of entries corresponding to predefined ranges of IP addresses, wherein the hash table specifies relative priorities among the predefined ranges of IP addresses;

    storing the hash table in a processor cache memory;

    monitoring packets exchanged over a network to obtain an IP address from a packet;

    generating a first key, wherein the first key comprises a first sequence of bits of the IP address that begins with the most significant bit and wherein the first key is generated by applying a first template to the IP address by calculating a bit-wise AND between a bit mask and the IP address;

    querying the hash table using the first key to obtain a first entry that specifies an inconclusive result, wherein the inconclusive result includes an updated template;

    applying, after obtaining the inconclusive result, the updated template to the IP address to obtain an updated key, wherein the updated key comprises an updated sequence of bits of the IP address that begins with the most significant bit, and wherein the updated key includes more bits of the IP address than the first key;

    repeating the querying using updated keys and the applying updated templates until a conclusive result is achieved;

    matching, based on the entry specifying the conclusive result with the highest priority, the IP address to one of the predefined ranges of IP addresses; and

    discarding packets according to results of said matching step.

View all claims
  • 3 Assignments
Timeline View
Assignment View
    ×
    ×