US20100082895A1 - Multi-level content addressable memory - Google Patents
Multi-level content addressable memory Download PDFInfo
- Publication number
- US20100082895A1 US20100082895A1 US12/567,624 US56762409A US2010082895A1 US 20100082895 A1 US20100082895 A1 US 20100082895A1 US 56762409 A US56762409 A US 56762409A US 2010082895 A1 US2010082895 A1 US 2010082895A1
- Authority
- US
- United States
- Prior art keywords
- search
- content addressable
- addressable memory
- search result
- output
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Abandoned
Links
Images
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C15/00—Digital stores in which information comprising one or more characteristic parts is written into the store and in which information is read-out by searching for one or more of these characteristic parts, i.e. associative or content-addressed stores
Definitions
- the invention relates generally to a content addressable memory (CAM), and more particularly to a multi-level CAM.
- CAM content addressable memory
- a storage area network may be implemented as a high-speed, special purpose network that interconnects different kinds of data storage devices with associated data servers on behalf of a large network of users.
- a SAN is part of the overall network of computing resources for an enterprise.
- SAN switch products are an integral part of the network providing switching/routing functionality to connect the disparate devices on the network such that data frames sent between the devices travel an efficient route across the network.
- SAN switches generally receive data frames at ports of the switch (referred to as source or ingress ports for a given port-to-port path) and forward the data frames to appropriate other ports of the switch (referred to as destination or egress ports for a given port-to-port path) to assist in routing the data frame from a source device in the SAN (e.g., a storage device designated by a source identifier or SID) to a destination device in the SAN (e.g., a server designated by a destination identifier or DID).
- a CAM is used to forward such data frames from individual source ports in a switch to appropriate destination ports in the switch.
- the CAM provides the functionality of a forwarding database. For example, the switch can extract a DID from the header of a received data frame and use the DID to “look up” (in the CAM) the appropriate destination port through which to transmit the data frame.
- CAM devices are expensive, particularly as they increase in capacity, and therefore a traditional CAM structure does not economically scale to handle the growing size and complexity of modern and future SANs.
- previous SANs have required that a CAM map thousands of addresses in a 24-bit address space, whereas current and future SAN architectures will map millions of address combinations (e.g., source and destination addresses, etc.) in a 48-bit address space, at a minimum, to accommodate modern routing, zoning, and load balancing requirements. Therefore, as SAN architectures continue to scale upwards in size and complexity, addressing requirements are expected to exceed the capacity of a single affordable CAM device.
- Implementations described and claimed herein address the foregoing problems by providing a multi-level CAM architecture that compresses out much of the redundancy encountered in the search space of a single CAM, particularly for flow-based lookups.
- destination and source address may be associated with internal equivalence classes independently in one level of the multi-level CAM architecture, while flow-specific properties linking arbitrary classes of the destination and source addresses may be applied in a later level of the multi-level CAM.
- FIG. 1 illustrates an exemplary computing and storage framework including a local area network (LAN) and a storage area network (SAN).
- LAN local area network
- SAN storage area network
- FIG. 2 illustrates an exemplary port module within a switch.
- FIG. 3 schematically illustrates an exemplary multi-level CAM.
- FIG. 4 illustrates an exemplary flow zoning matrix
- FIG. 5 illustrates an exemplary configuration of a switch having a multi-level CAM.
- FIG. 6 illustrates exemplary operations for processing a data frame using a multi-level CAM.
- FIG. 7 illustrates an alternative implementation of an exemplary multi-level CAM.
- FIG. 8 illustrates another alternative implementation of an exemplary multi-level CAM.
- FIG. 9 illustrates yet another alternative implementation of an exemplary multi-level CAM.
- FIG. 10 illustrates yet another alternative implementation of an exemplary multi-level CAM.
- FIG. 1 illustrates an exemplary computing and storage framework 100 including a local area network (LAN) 102 and a storage area network (SAN) 104 .
- Various application clients 106 are networked to application servers 108 and 109 via the LAN 102 . Users can access applications resident on the application servers 108 and 109 through the application clients 106 .
- the applications may depend on data (e.g., an email database) stored at one or more of the application data storage devices 110 .
- the SAN 104 provides connectivity between the application servers 108 and 109 and the application data storage devices 110 to allow the applications to access the data they need to operate.
- a wide area network may also be included on either side of the application servers 108 and 109 (i.e., either combined with the LAN 102 or combined with the SAN 104 ).
- switches 112 provide connectivity, routing and other SAN functionality. Switches are examples of network communications devices. Other examples may include routers, firewalls, gateways, servers, modems, and other such devices. Some such switches 112 may be configured as a set of blade components inserted into a chassis or as rackable or stackable modules.
- the chassis has a back plane or mid-plane into which the various blade components, such as switching blades and control processor blades, may be inserted.
- Rackable or stackable modules may be interconnected using discrete connections, such as individual or bundled cabling.
- CAMs can associate a relatively small set K of arbitrarily sparse vectors originating from a very large vector space V.
- the vector space V is sufficiently large to preclude storage associating all of its elements, and the vector set K is sufficiently small relative to V that such a total mapping would be very wasteful.
- a switch that performs only destination-based routing would typically use a CAM to associate a small, sparse set K of node port identifiers (NPIDs) or addresses, such as SIDs and/or DIDs, from the total address space V with specific properties, such as output port numbers, routing information, etc.
- NPIDs node port identifiers
- the CAM can be used to forward a data frame addressing any clement of the address set K to a correct destination port in the switch, for example.
- a CAM can be used as a searchable forwarding database for a switching device in Fibre Channel and other networking environments, although other applications are also contemplated.
- a multi-level CAM architecture can be used to economically increase the supportable size of the total address space V.
- a 24-bit address space has been used in Fibre Channel switches
- future switches will support larger address spaces, such as 48-bit address spaces and larger.
- enhanced functionality relating to traffic flows dramatically increase the total address space by introducing combinations of source addresses and destination addresses, for example.
- one or more of the switches 112 within the SAN 104 include a multi-level CAM device for implement a forwarding database. In this manner, such switches can support an expanded search space over previous approaches and can provide enhanced functionality such as hard zoning, N_port ID Virtualization (NPIV), load balancing, support for extremely large fabrics, etc.
- NPIV N_port ID Virtualization
- a “flow” represents a transmission from a source device to a destination device.
- a flow represents a set of one or more transmissions from a set of one or more source devices to a set of one or more destination devices, where intermediate data transport devices (e.g., switches and routers) may, at their discretion, define and further combine (superclass) or divide (subclass) any flow based upon temporal, spatial, and/or embedded data characteristics in herein to each constituent data unit, such as a frame or packet. It should be understood that this latter perspective is merely exemplary.
- CAMs may be implemented as conventional semiconductor memory (e.g., SRAM) with added comparison circuitry that enables a search operation to complete quickly (e.g., a single clock cycle).
- SRAM semiconductor memory
- a binary CAM supports storage and searching of binary bits: (0, 1).
- a ternary CAM i.e., a “TCAM” supports storage and searching of three bits: (0, 1, X), where X represents a wildcard or “don't care” bit that can match any bit value of a search key.
- CAM core cells contain both storage and comparison circuitry and are arranged into an array of horizontal words the width of a search key. Search words are stored in the horizontal words of the array.
- Search lines run vertically through the array and broadcast the search key to the CAM core cells.
- Matchlines run horizontally across the array and indicate whether the search key matches the horizontal search word in each row.
- An activated matchline indicates a match of the corresponding search word and a deactivated matchline indicates a non-match or mismatch.
- the matchlines are input to an encoder that generates the address corresponding to the match location.
- Other CAM implementations are also contemplated, including RAM-based binary search trees.
- FIG. 2 illustrates an exemplary port module 200 within a switch.
- the port module 200 includes a front media access controller (MAC) 202 that interfaces the port module 200 to network connections, such as a Fibre Channel link 230 .
- the illustrated port module 200 also includes a back MAC 210 that interfaces the port module to interconnections that can be coupled to other switch components, such as another port module 220 or a switch module (not shown).
- cabling between the port modules 200 and 220 interconnects extender ports (see e.g., extender port 211 ) of each device to allow intra-switch communications between the port modules 200 and 220 of the switch, although other intra-switch communication schemes are contemplated.
- the port module 200 may receive a data frame through a port 232 on the front MAC 202 .
- a data frame represents a set of data communicated between entities in a network, such as a data frame in Fibre Channel vernacular or a data packet in Ethernet vernacular.
- the front MAC 202 passes the data frame to forwarding logic module 206 , which extracts data elements from the frame's header information (or other information) to search the multi-level CAM 204 .
- the data elements used to search the CAM such as DIDs and SIDs, may be used to form one or more “search keys”.
- the forwarding logic module 206 extracts the associated destination port number associated with the satisfied entries from the CAM 204 and then outputs the destination port number and the received data frame to a decision module 208 .
- the decision module 208 determines whether the identified destination port exists in the port module 200 or on another port module, such as port module 220 . If the destination port exists in the port module 200 , the decision module 208 directs the data frame to the appropriate port (e.g., port 234 ) in the port module 200 . In contrast, if the destination port exists outside the port module 200 , the decision module 208 determines which extender port on the back MAC 210 is coupled to the port module 200 that includes the identified destination port and directs the data frame to that extender port. The extender port then communicates the data frame to a back MAC 226 of the port module 220 .
- the appropriate port e.g., port 234
- the decision module 208 determines which extender port on the back MAC 210 is coupled to the port module 200 that includes the identified destination port and directs the data frame to that extender port.
- the extender port then communicates the data frame to a back MAC 226 of the port module 220 .
- the back MAC 226 may also communicate with the forwarding logic module 206 to forward incoming data frames (transmitted from another port module) from the back MAC 226 to the appropriate destination front port of the port module 200 .
- the logic 224 of the port module 220 may construct one or more search keys from the received data frame, use a multi-level CAM 228 to determine the appropriate destination port number from the CAM 228 , and forward the data frame to the identified destination port 236 of the front MAC 222 for communication via a network connection.
- a CAM may be used for other purposes within a switching device.
- an SID may be extracted from the data frame header and used as a search key to identify a valid DID within a zone.
- an SID may be extracted from the data frame header and used as a search key (whether or not associated with a specific port or pair of ports on the switch) to identify an appropriate DID to handle the communication.
- a multi-level CAM may be used in non-networking applications, including processor caches, translation look-aside buffers (TLB), data compression applications, database accelerators, and neural networks.
- FIG. 3 schematically illustrates an exemplary multi-level CAM 300 , including two address CAM modules 302 and 304 and a flow CAM module 306 .
- the exemplary CAM 300 is configured for flow-specific switching/routing (e.g., distinguishing both destination and source addresses).
- the destination address CAM module 302 receives a destination search key consisting of data frame header fields relating to the destination address, such as the data frame's virtual fabric identifier (e.g., VF_ID or dFID), DID, and/or other properties, such as specific sequence numbers, exchanged identifiers, SOF (start of frame) values, etc.
- the source address CAM module 304 receives a source search key consisting of data frame header fields relating to the source address, such as the data frame's virtual fabric identifier (e.g., VF_ID or sFID), SID, and/or other properties, such as specific sequence numbers, exchanged identifiers, SOF values, etc. Individual header fields as well as other data may be mixed and matched to form a search key for a specific type of look-up.
- the use of separate source and destination address CAM modules allows different aspects of the packet flow to be looked-up separately in one level of the multi-level CAM, thereby reducing the number of total CAM entries.
- the destination address CAM module 302 has a width equal to the length of a destination search key SK D and a depth equal to D, where D is dependent on the total number of destination devices that can be addressed through the multi-level CAM 300 , although other definitions of D may be employed (e.g., in one implementation, D represents half of the total number of destination devices that can be addressed through the multi-level CAM).
- the source address CAM module 304 has a width equal to the length of a source search key SK S and a depth equal to S, where S is dependent on the total number of source devices that can be addressed through the multi-level CAM 300 , although other definitions of S may be employed.
- the total number of address CAM entries between the CAM modules 302 and 304 (i.e., D+S) will not exceed two times the total number of devices that can be addressed through the multi-level CAM 300 , although other configurations are contemplated (e.g., D+S can grow larger with features such as Fibre Channel Inter-Fabric Routing).
- one or more of the address CAM modules comprise TCAMs, although binary CAM implementations and other search implementations are also contemplated. It also should be understood that multiple CAM devices may be employed in a single level of the multi-level CAM 300 , and even in a single CAM module, such as CAM module 302 and/or CAM module 304 .
- Each address CAM module outputs one or more bit vectors representing zero or more match locations resulting from an input search key.
- a priority encoder and equivalence class memory combine to translate one or more bit vectors into an equivalence class identifier, represented by a search result reference (e.g., an address or pointer), P D or P s into a flow zoning matrix implemented in part by the flow CAM 306 .
- the flow zoning matrix relates combinations of destination and source pointers to individual destination port numbers, although generically, the flow CAM 306 can output an address representing any arbitrary value.
- the flow CAM entries can also be conserved and compressed by swapping columns and rows to make larger cubes and then collapsing multiple rows into a single row associated with a range of source pointers and/or collapsing multiple columns into a single column associated with a range of destination pointers (similar to Karnaugh map (i.e., K-map) minimization).
- the flow CAM 306 can output Protocol Conversion Table (PCT) indices and multicast information, where a PCT index represents a pointer into separate storage. The PCT index indicates the fundamental changes to be made to a data frame (before it leaves the switch) in order to convert to a specified protocol.
- PCT Protocol Conversion Table
- protocol conversion can be used to perform layer 3 routing, as opposed to the layer 2 switching, where the extra level of networking abstraction can require some changes to the data frame (e.g., removing a header, changing the value of an address field, etc.)
- Another use of protocol conversion may involve changing layer 2 protocols between ports (e.g., moving an Ethernet packet out of a Fibre Channel port).
- FIG. 4 illustrates an exemplary flow zoning matrix 400 .
- the horizontal axis relates to destination search result references and the vertical axis relates to source search result references.
- the entries in a flow CAM have been configured to form “cubes” within the matrix 400 , so as to allow compression using K-map minimization or other compression techniques.
- the variable M represents the number of possible source or destination search result references supported by the flow CAM. For example, if the source and destination search result references are 16-bit values, then M would equal 64K. It should be understood that the source and destination search result references may be of different lengths, resulting in a matrix having a different width than depth (e.g., L ⁇ M).
- matrix 400 includes search result references associated with destination search keys along columns and search result references associated with source search keys along rows.
- Each cell of the matrix represents a port number (e.g., A and B are distinct port numbers in the illustration).
- cells of the matrix can reference Virtual Output Queues (VOQs), which can be mapped in combinations to individual physical output ports.
- VOQs Virtual Output Queues
- VIQs Virtual Input Queues
- the matrix 400 shows that port A is referenced in cells 402 and 404 . Accordingly, some compression may be achieved by swapping rows M-2 and M-1 and then compressing rows M-3 and the new M-2 (using an equivalence relation) into a single row referenced by an equivalence class identifier (e.g., a search result reference output by the first level CAMs). It should be understood that such operations may be applied to both rows and columns and are dependent on the data stored in other cells in the affected rows and columns. Nevertheless, many equivalence relations may be identified and applied in the matrix 400 to compress the data into a set of equivalence classes.
- an equivalence class identifier e.g., a search result reference output by the first level CAMs
- a single entry acts as boundary specification of one, two or three cubes, in terms of coordinate pairs in the flow zoning matrix. Depending on whether the entry is in the horizontal or vertical flow CAM, the cube opens either horizontally or vertically from the given coordinate pair until another flow CAM entry's coordinate pair closes the cube and optionally opens a new cube itself.
- a case of a single entry specifying the boundary of three cubes is provided by the masking capabilities of each flow CAM entry: since each flow CAM entry can permit power-of-two bit masking, a full cube may be specified by the flow CAM entry (beginning and ending on power-of-2 alignments), while a distinctly different cube may also be opened (to be closed by another entry).
- a single vertical flow CAM entry may utilize its bitmask capability to stipulate that classes (0,0) through (0,3) form one cube that maps to the same output port, while entry (0,4) is the coordinate pair that begins the next adjacent cube, extending vertically and mapping to a different output port.
- Flow CAM minimization therefore, can involve manipulations to form adjacency among output port targets.
- address CAMs group addresses into equivalence classes according to which sources can communicate with common destinations (e.g., source address CAM) and which destinations can communicate with common sources (e.g., destination address CAM), in a manner that minimizes the number of address CAM entries.
- An exemplary grouping scheme considers equivalence relations based on mutual membership in one or more network zones, although more intricate relations can be established to improve compression. The number of address CAM entries can be further minimized if TCAM devices are employed.
- the input node addresses may be specified in a manner that maximizes masking opportunities, including use of longest-prefix and general nested sub-range matching.
- Equivalence class numbers themselves are chosen to optimize adjacency in the flow zoning matrix (e.g., by common output port or VOQ number), although gaps may be left to accommodate possible growth and changes in the topology.
- flow CAM cubes Given high adjacency in the flow zoning matrix and a minimal number of equivalence classes, flow CAM cubes can be formed to maximize the output-port-to-flow-CAM-entry expense ratio. As such, the flow CAM cubes can result in the fewest flow CAM entries for the mappings that may be represented. It should be understood, also, that the address CAM entries and equivalence classes can be periodically reconfigured to re-optimize the compression after zoning and topology changes.
- FIG. 5 illustrates an exemplary configuration of a switch having a multi-level CAM 500 .
- Data frames are received at ports 502 and communicated through the front MAC 504 to the forwarding logic 506 .
- the forwarding logic 506 extracts data from the data frame (e.g., from the data frame header), from which it forms one or more search keys.
- the search keys are input to an address CAM that includes one or more CAM devices, each CAM device being coupled to receive and search on search keys from the forwarding logic 506 .
- the address CAM includes twenty-four TCAM devices, although other search devices and configurations may be employed.
- the TCAM devices 508 , 510 , 512 , and 514 , priority encoders 518 , and RAM 519 may be considered a CAM module for a first level of the multi-level CAM.
- the forwarding logic 506 is configured to direct individual search keys for individual ports in specific combinations to the address CAM devices.
- the forwarding logic 508 can construct a destination search key that includes the Fibre Channel destination address (DID) (and potentially other fields) of a data frame received at a port X.
- the forwarding logic 508 sends the destination search key to TCAMs 508 , 510 , and 514 .
- the forwarding logic 508 can construct a source search key to include the Fibre Channel source address (SID) of the same data frame and send the source search key to TCAMs 512 and 514 .
- SID Fibre Channel source address
- a destination search key associated with a data frame received at a port Y may be sent to TCAMs 508 and 512 .
- Search keys for individual data frames can be steered to individual TCAMs using a settable bitmask provided at each input port, where each bit of the port's bitmask represents the use of a corresponding TCAM by packets ingressing that port.
- a binary ‘1’ in the bitmask is used to send destination search keys from a given port to a corresponding TCAM; whereas a binary ‘0’ in the bitmask is used to send source search keys from a given port to a corresponding TCAM.
- Each TCAM will search for the received search key and forward the search results, in the form of bit vectors, to priority encoders 518 .
- resulting bit vectors from destination search key searches and source search key searches are directed to separate priority encoders, although a single priority encoder may be employed (e.g., using a multiplexer).
- Each bit vector resulting from a TCAM identifies the TCAM location(s) satisfying the search key, if any.
- the search results are received by a priority encoder 518 , which selects a priority bit across all the bit vectors based on one or more rules and then encodes the priority bit into a memory address. For example, in one implementation, the highest numbered bit (across all received bit vectors) is selected and encoded into a memory address, which is output from the priority encoder 518 .
- Alternative rules may be employed, such as “the lowest numbered bit (across all received bit vectors) has priority” and other selection criteria.
- the address output by the priority encoder 518 is an address into the RAM 519 , which outputs a search result reference value stored at the provided address.
- This value represents an equivalence class identifier (e.g., C S for the source equivalence class and C D ) for the destination equivalence class) in the flow zoning matrix partially defined in the flow CAM 520 .
- An equivalence class represents a subset of given set induced by an equivalence relation on that given set. Elements of an equivalence class are said to be equivalent under the equivalence relation to all the other elements of the same equivalence class.
- Equivalence classes and their corresponding equivalence relations are generally defined in the mathematical field of set theory. As such, an equivalence class identifier associates one or more TCAM entries for look-up in the flow CAM 250 .
- two different search result bits from a source search key search in the first CAM level may be considered equivalent. Therefore, the priority encoder 518 and RAM 519 may combine to provide an equivalence class identifier common to both of the search result bits. As such, the different search result bits would yield an equivalence class identifier that designates the same row in the flow zoning matrix defined by the flow CAM 520 .
- the equivalence class identifiers from the RAM 519 are input to the flow CAM 520 , which defines the flow zoning matrix. Given the equivalence class identifiers from both the source and destination searches, the flow CAM 520 can determine and output the port number to which the data frame should be forwarded. In an alternative implementation, the flow CAM 520 can output multicast information and a PCT index into separate storage (not shown). Other flow CAM outputs are also contemplated.
- the flow CAM output is sent to the decision module 522 , which determines whether the port number is on the current device (and therefore that the data frame should be forwarded to that port of the front MAC 504 ) or whether the data frame should be forwarded out an extender port 526 of a back MAC 524 to another port module.
- FIG. 6 illustrates exemplary operations 600 for processing a data frame using a multi-level CAM.
- a data frame is received by a switch and directed through a MAC to the forwarding logic in receiving operation 602 .
- a parsing operation 604 extracts information (e.g., from the data frame header) to form a source search key and a destination search key.
- the SID may be used to form the source search key
- the DID may be used to form the destination search key.
- VF_ID Fibre Channel Virtual Address
- VID Ethernet Virtual LAN ID
- IPv4 DA destination IP address
- IPv4 SA source IP address
- ingress port number SOF values
- IPv6 source and destination addresses routing parameters, etc.
- each search key is input to a first level CAM.
- the first level CAM is configured from a selection of individual CAM devices. Depending on which port the data frame is received through and whether the search key is based on a destination search key or a source search key, the search key is directed to a selected set of these individual CAM devices.
- the first level CAM devices may be TCAMs, binary CAMs, or other CAM or search structures, such as a RAM-based search tree.
- the searching operation 606 results in one or more bit vectors representing search results on the associated search keys, which are input to a priority encoder.
- the bit vectors of each search type e.g., source search and destination search
- the search results relating to a destination search key are directed to a first priority encoder and the search results relating to a source search key are directed to a second priority encoder, although other configurations may be employed.
- each priority encoder applies a priority rule that selects a priority bit from the search result bit vectors and encodes the priority bit into an address in an equivalence class memory.
- the priority rule selects the highest number bit representing a search “hit”, although alternative rules may be employed (e.g., the lowest number bit or some other more complex algorithm).
- the priority encoder then encodes the priority bit into an address in an equivalence class memory to yield an equivalence class identifier corresponding to the priority bit.
- a memory operation 610 determines the equivalence class from the equivalence class memory by outputting the equivalence class identifier that resides at the priority memory address in the equivalence class memory. Similar operations (e.g., 606 , 608 , and 610 ) are performed on the search results of each search type to yield individual equivalence class identifiers for each search type.
- the individual equivalence class identifiers are input to a second level CAM in a determination operation 612 .
- the second level. CAM operates as a flow CAM implementing a flow zoning matrix, which associates the equivalence classes to a flow CAM search result.
- a flow CAM search result may represent a port number to which a given data frame should be forwarded.
- a flow CAM search result may represent other data, including a PCT index, multicast information, Ethernet packet parameters, protocol conversion information, inter-fabric routing information, diagnostic information for monitoring specific flows, etc.
- a forwarding operation 614 directs the data frame to the port identified by the resulting port number.
- FIG. 7 illustrates an alternative implementation of an exemplary multi-level CAM 700 , including three parallel CAMs 702 , 704 , and 706 . Each of the parallel CAMs receives the same input data 708 .
- a priority multiplexer 710 selects and encodes the outputs of the parallel CAMs and can output the output port number, multicast information, PCT index, etc.
- the illustrated configuration demonstrates that a structurally hierarchical CAM set may be altered to provide flat CAM functionality.
- a topology having mainly distinct one-to-one SD-to-DID associations does not benefit as much from the compression provided by other configurations.
- this configuration provides better utilization of the available CAM storage by flattening the hierarchical CAM structure and using each entry for a distinct SID-to-DID flow.
- this configuration would be beneficial in an application in which SID-based observations are not required (e.g., no hard zoning, no source-based load balancing, etc.).
- utilization of existing CAM storage space can be more efficient with the illustrated configuration, although the total address space serviced by the illustrated CAM configuration may be smaller than in a hierarchical CAM configuration.
- FIG. 8 illustrates another alternative implementation of an exemplary multi-level CAM 800 , including two address CAMs 802 and 804 and a composite CAM 806 .
- the composite CAM 806 includes both direct CAM entries 808 and flow CAM entries 810 .
- the address CAMs 802 and 804 operate as described with regard to FIG. 2 . If either address CAM misses (i.e., does not match the search key), the direct CAM entries 808 in the composite CAM 806 are searched using a search key formed from both the source search key data and the destination search key data. Otherwise, the source and destination search result references are used to search the flow CAM entries, as described with regard to FIG. 2 . Such a configuration may be described as “predicated direct CAM lookup”.
- FIG. 9 illustrates yet another alternative implementation of an exemplary multi-level CAM, including two address CAMs 902 and 904 and two flow CAMs 906 and 908 , one representing the vertical axis of the flow zoning matrix (e.g., source) and the other representing the horizontal axis of the flow zoning matrix (e.g., destination).
- the address CAMs 902 and 904 operate as described with regard to FIG. 2 , outputting search result references into the flow zoning matrix 912 .
- the flow CAMs 906 and 908 provide independent source and destination searches, where CAM entries can reference cubes in respective orientations (e.g., vertical and horizontal). For example, vertical flow CAM entries form cubes to cover the matrix vertically (see e.g., cubes 914 and 916 ), and horizontal flow CAM entries form cubes to cover the matrix horizontally (see e.g., cube 918 ). As a result, full rectangular cubing is available to flow CAM searching so that entire rectangular blocks of contiguous matrix elements may be covered without restricting cubes in other directions. “Rectangular cubing” generally refers to the formation of cubes that cover multiple rows and columns (i.e., that extend both vertically and horizontally). Performing rectangular cubing in a RAM-based binary search tree flow CAM can be implemented using a mask bit in each of the source search result reference P S and the destination search result reference P D .
- FIG. 10 illustrates an example multi-level CAM configuration 1000 with more than two CAM levels.
- the CAM configuration 1000 as with all of the described configurations, may have general applicability, and is not limited to SAN applications.
- the function F represents a CAM function for an individual CAM device.
- the variable p represents the number of CAM devices in the top row of the multi-level CAM configuration 1000 .
- the variable L represents the number of levels in the multi-level CAM configuration 1000 .
- the embodiments of the invention described herein can be implemented as logical steps in one or more computer systems.
- the logical operations of the present invention can be implemented (1) as a sequence of processor-implemented steps executing in one or more computer systems and (2) as interconnected machine or circuit modules within one or more computer systems.
- the implementation is a matter of choice, dependent on the performance requirements of the computer system implementing the invention. Accordingly, the logical operations making up the embodiments of the invention described herein are referred to variously as operations, steps, objects, or modules.
- logical operations may be performed in any order, unless explicitly claimed otherwise or a specific order is inherently necessitated by the claim language.
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
- This patent application is a continuation of U.S. Patent Application Ser. No. 11/430,389, filed May 8, 2006, entitled “Multi-Level Content Addressable Memory,” Attorney Docket No. 112-0328US/233-579-USP, which is incorporated herein by reference for all purposes.
- The invention relates generally to a content addressable memory (CAM), and more particularly to a multi-level CAM.
- A storage area network (SAN) may be implemented as a high-speed, special purpose network that interconnects different kinds of data storage devices with associated data servers on behalf of a large network of users. Typically, a SAN is part of the overall network of computing resources for an enterprise. SAN switch products are an integral part of the network providing switching/routing functionality to connect the disparate devices on the network such that data frames sent between the devices travel an efficient route across the network.
- SAN switches generally receive data frames at ports of the switch (referred to as source or ingress ports for a given port-to-port path) and forward the data frames to appropriate other ports of the switch (referred to as destination or egress ports for a given port-to-port path) to assist in routing the data frame from a source device in the SAN (e.g., a storage device designated by a source identifier or SID) to a destination device in the SAN (e.g., a server designated by a destination identifier or DID). In some implementations, a CAM is used to forward such data frames from individual source ports in a switch to appropriate destination ports in the switch. In one view, therefore, the CAM provides the functionality of a forwarding database. For example, the switch can extract a DID from the header of a received data frame and use the DID to “look up” (in the CAM) the appropriate destination port through which to transmit the data frame.
- However, CAM devices are expensive, particularly as they increase in capacity, and therefore a traditional CAM structure does not economically scale to handle the growing size and complexity of modern and future SANs. For example, previous SANs have required that a CAM map thousands of addresses in a 24-bit address space, whereas current and future SAN architectures will map millions of address combinations (e.g., source and destination addresses, etc.) in a 48-bit address space, at a minimum, to accommodate modern routing, zoning, and load balancing requirements. Therefore, as SAN architectures continue to scale upwards in size and complexity, addressing requirements are expected to exceed the capacity of a single affordable CAM device.
- Implementations described and claimed herein address the foregoing problems by providing a multi-level CAM architecture that compresses out much of the redundancy encountered in the search space of a single CAM, particularly for flow-based lookups. For example, destination and source address may be associated with internal equivalence classes independently in one level of the multi-level CAM architecture, while flow-specific properties linking arbitrary classes of the destination and source addresses may be applied in a later level of the multi-level CAM.
-
FIG. 1 illustrates an exemplary computing and storage framework including a local area network (LAN) and a storage area network (SAN). -
FIG. 2 illustrates an exemplary port module within a switch. -
FIG. 3 schematically illustrates an exemplary multi-level CAM. -
FIG. 4 illustrates an exemplary flow zoning matrix. -
FIG. 5 illustrates an exemplary configuration of a switch having a multi-level CAM. -
FIG. 6 illustrates exemplary operations for processing a data frame using a multi-level CAM. -
FIG. 7 illustrates an alternative implementation of an exemplary multi-level CAM. -
FIG. 8 illustrates another alternative implementation of an exemplary multi-level CAM. -
FIG. 9 illustrates yet another alternative implementation of an exemplary multi-level CAM. -
FIG. 10 illustrates yet another alternative implementation of an exemplary multi-level CAM. -
FIG. 1 illustrates an exemplary computing andstorage framework 100 including a local area network (LAN) 102 and a storage area network (SAN) 104.Various application clients 106 are networked toapplication servers LAN 102. Users can access applications resident on theapplication servers application clients 106. The applications may depend on data (e.g., an email database) stored at one or more of the applicationdata storage devices 110. Accordingly, the SAN 104 provides connectivity between theapplication servers data storage devices 110 to allow the applications to access the data they need to operate. It should be understood that a wide area network (WAN) may also be included on either side of theapplication servers 108 and 109 (i.e., either combined with theLAN 102 or combined with the SAN 104). - Within the SAN 104, one or
more switches 112 provide connectivity, routing and other SAN functionality. Switches are examples of network communications devices. Other examples may include routers, firewalls, gateways, servers, modems, and other such devices. Somesuch switches 112 may be configured as a set of blade components inserted into a chassis or as rackable or stackable modules. The chassis has a back plane or mid-plane into which the various blade components, such as switching blades and control processor blades, may be inserted. Rackable or stackable modules may be interconnected using discrete connections, such as individual or bundled cabling. - CAMs can associate a relatively small set K of arbitrarily sparse vectors originating from a very large vector space V. The vector space V is sufficiently large to preclude storage associating all of its elements, and the vector set K is sufficiently small relative to V that such a total mapping would be very wasteful. In a networking environment, a switch that performs only destination-based routing would typically use a CAM to associate a small, sparse set K of node port identifiers (NPIDs) or addresses, such as SIDs and/or DIDs, from the total address space V with specific properties, such as output port numbers, routing information, etc. In one implementation of a switch, the CAM can be used to forward a data frame addressing any clement of the address set K to a correct destination port in the switch, for example. In this manner, a CAM can be used as a searchable forwarding database for a switching device in Fibre Channel and other networking environments, although other applications are also contemplated.
- Further, a multi-level CAM architecture can be used to economically increase the supportable size of the total address space V. For example, whereas a 24-bit address space has been used in Fibre Channel switches, it is anticipated that future switches will support larger address spaces, such as 48-bit address spaces and larger. Furthermore, enhanced functionality relating to traffic flows dramatically increase the total address space by introducing combinations of source addresses and destination addresses, for example. In the illustration of
FIG. 1 , one or more of theswitches 112 within the SAN 104 include a multi-level CAM device for implement a forwarding database. In this manner, such switches can support an expanded search space over previous approaches and can provide enhanced functionality such as hard zoning, N_port ID Virtualization (NPIV), load balancing, support for extremely large fabrics, etc. - Generally, a “flow” represents a transmission from a source device to a destination device. From another perspective, a flow represents a set of one or more transmissions from a set of one or more source devices to a set of one or more destination devices, where intermediate data transport devices (e.g., switches and routers) may, at their discretion, define and further combine (superclass) or divide (subclass) any flow based upon temporal, spatial, and/or embedded data characteristics in herein to each constituent data unit, such as a frame or packet. It should be understood that this latter perspective is merely exemplary.
- CAMs may be implemented as conventional semiconductor memory (e.g., SRAM) with added comparison circuitry that enables a search operation to complete quickly (e.g., a single clock cycle). There are two basic forms of CAM: binary and ternary (although other forms may be employed). A binary CAM supports storage and searching of binary bits: (0, 1). A ternary CAM (i.e., a “TCAM”) supports storage and searching of three bits: (0, 1, X), where X represents a wildcard or “don't care” bit that can match any bit value of a search key. In one implementation, CAM core cells contain both storage and comparison circuitry and are arranged into an array of horizontal words the width of a search key. Search words are stored in the horizontal words of the array. Search lines run vertically through the array and broadcast the search key to the CAM core cells. Matchlines run horizontally across the array and indicate whether the search key matches the horizontal search word in each row. An activated matchline indicates a match of the corresponding search word and a deactivated matchline indicates a non-match or mismatch. The matchlines are input to an encoder that generates the address corresponding to the match location. Other CAM implementations are also contemplated, including RAM-based binary search trees.
-
FIG. 2 illustrates anexemplary port module 200 within a switch. Theport module 200 includes a front media access controller (MAC) 202 that interfaces theport module 200 to network connections, such as a Fibre Channel link 230. The illustratedport module 200 also includes aback MAC 210 that interfaces the port module to interconnections that can be coupled to other switch components, such as anotherport module 220 or a switch module (not shown). In one implementation, cabling between theport modules port modules - In operation, for example, the
port module 200 may receive a data frame through aport 232 on thefront MAC 202. Generically, a data frame represents a set of data communicated between entities in a network, such as a data frame in Fibre Channel vernacular or a data packet in Ethernet vernacular. Thefront MAC 202 passes the data frame to forwardinglogic module 206, which extracts data elements from the frame's header information (or other information) to search themulti-level CAM 204. The data elements used to search the CAM, such as DIDs and SIDs, may be used to form one or more “search keys”. Assuming the one or more search keys satisfies one or more appropriate entries in theCAM 204, the forwardinglogic module 206 extracts the associated destination port number associated with the satisfied entries from theCAM 204 and then outputs the destination port number and the received data frame to adecision module 208. - The
decision module 208 determines whether the identified destination port exists in theport module 200 or on another port module, such asport module 220. If the destination port exists in theport module 200, thedecision module 208 directs the data frame to the appropriate port (e.g., port 234) in theport module 200. In contrast, if the destination port exists outside theport module 200, thedecision module 208 determines which extender port on theback MAC 210 is coupled to theport module 200 that includes the identified destination port and directs the data frame to that extender port. The extender port then communicates the data frame to aback MAC 226 of theport module 220. It should be understood that theback MAC 226 may also communicate with the forwardinglogic module 206 to forward incoming data frames (transmitted from another port module) from theback MAC 226 to the appropriate destination front port of theport module 200. For completeness, thelogic 224 of theport module 220 may construct one or more search keys from the received data frame, use amulti-level CAM 228 to determine the appropriate destination port number from theCAM 228, and forward the data frame to the identifieddestination port 236 of thefront MAC 222 for communication via a network connection. - It should also be understood that a CAM may be used for other purposes within a switching device. For example, in the case of hard zoning, an SID may be extracted from the data frame header and used as a search key to identify a valid DID within a zone. Alternatively, in the case of load balancing, an SID may be extracted from the data frame header and used as a search key (whether or not associated with a specific port or pair of ports on the switch) to identify an appropriate DID to handle the communication. Moreover, a multi-level CAM may be used in non-networking applications, including processor caches, translation look-aside buffers (TLB), data compression applications, database accelerators, and neural networks.
-
FIG. 3 schematically illustrates an exemplarymulti-level CAM 300, including twoaddress CAM modules flow CAM module 306. Theexemplary CAM 300 is configured for flow-specific switching/routing (e.g., distinguishing both destination and source addresses). The destinationaddress CAM module 302 receives a destination search key consisting of data frame header fields relating to the destination address, such as the data frame's virtual fabric identifier (e.g., VF_ID or dFID), DID, and/or other properties, such as specific sequence numbers, exchanged identifiers, SOF (start of frame) values, etc. The sourceaddress CAM module 304 receives a source search key consisting of data frame header fields relating to the source address, such as the data frame's virtual fabric identifier (e.g., VF_ID or sFID), SID, and/or other properties, such as specific sequence numbers, exchanged identifiers, SOF values, etc. Individual header fields as well as other data may be mixed and matched to form a search key for a specific type of look-up. The use of separate source and destination address CAM modules allows different aspects of the packet flow to be looked-up separately in one level of the multi-level CAM, thereby reducing the number of total CAM entries. - In the illustrated implementation, the destination
address CAM module 302 has a width equal to the length of a destination search key SKD and a depth equal to D, where D is dependent on the total number of destination devices that can be addressed through themulti-level CAM 300, although other definitions of D may be employed (e.g., in one implementation, D represents half of the total number of destination devices that can be addressed through the multi-level CAM). In the illustrated implementation, the sourceaddress CAM module 304 has a width equal to the length of a source search key SKS and a depth equal to S, where S is dependent on the total number of source devices that can be addressed through themulti-level CAM 300, although other definitions of S may be employed. Generally, the total number of address CAM entries between theCAM modules 302 and 304 (i.e., D+S) will not exceed two times the total number of devices that can be addressed through themulti-level CAM 300, although other configurations are contemplated (e.g., D+S can grow larger with features such as Fibre Channel Inter-Fabric Routing). In one implementation, one or more of the address CAM modules comprise TCAMs, although binary CAM implementations and other search implementations are also contemplated. It also should be understood that multiple CAM devices may be employed in a single level of themulti-level CAM 300, and even in a single CAM module, such asCAM module 302 and/orCAM module 304. - Each address CAM module outputs one or more bit vectors representing zero or more match locations resulting from an input search key. Within an address CAM module, a priority encoder and equivalence class memory combine to translate one or more bit vectors into an equivalence class identifier, represented by a search result reference (e.g., an address or pointer), PD or Ps into a flow zoning matrix implemented in part by the
flow CAM 306. The flow zoning matrix relates combinations of destination and source pointers to individual destination port numbers, although generically, theflow CAM 306 can output an address representing any arbitrary value. The flow CAM entries can also be conserved and compressed by swapping columns and rows to make larger cubes and then collapsing multiple rows into a single row associated with a range of source pointers and/or collapsing multiple columns into a single column associated with a range of destination pointers (similar to Karnaugh map (i.e., K-map) minimization). In another implementation, theflow CAM 306 can output Protocol Conversion Table (PCT) indices and multicast information, where a PCT index represents a pointer into separate storage. The PCT index indicates the fundamental changes to be made to a data frame (before it leaves the switch) in order to convert to a specified protocol. Primarily, protocol conversion can be used to performlayer 3 routing, as opposed to thelayer 2 switching, where the extra level of networking abstraction can require some changes to the data frame (e.g., removing a header, changing the value of an address field, etc.) Another use of protocol conversion may involve changinglayer 2 protocols between ports (e.g., moving an Ethernet packet out of a Fibre Channel port). -
FIG. 4 illustrates an exemplaryflow zoning matrix 400. The horizontal axis relates to destination search result references and the vertical axis relates to source search result references. The entries in a flow CAM have been configured to form “cubes” within thematrix 400, so as to allow compression using K-map minimization or other compression techniques. In one implementation, the variable M represents the number of possible source or destination search result references supported by the flow CAM. For example, if the source and destination search result references are 16-bit values, then M would equal 64K. It should be understood that the source and destination search result references may be of different lengths, resulting in a matrix having a different width than depth (e.g., L×M). - In the illustrated implementation,
matrix 400 includes search result references associated with destination search keys along columns and search result references associated with source search keys along rows. Each cell of the matrix represents a port number (e.g., A and B are distinct port numbers in the illustration). In an alternative implementation, cells of the matrix can reference Virtual Output Queues (VOQs), which can be mapped in combinations to individual physical output ports. In yet another alternative implementation, cells of the matrix can reference Virtual Input Queues (VIQs), which can be mapped in combinations to individual physical input ports. - As shown in
FIG. 4 , thematrix 400 shows that port A is referenced incells matrix 400 to compress the data into a set of equivalence classes. - In one implementation, a single entry acts as boundary specification of one, two or three cubes, in terms of coordinate pairs in the flow zoning matrix. Depending on whether the entry is in the horizontal or vertical flow CAM, the cube opens either horizontally or vertically from the given coordinate pair until another flow CAM entry's coordinate pair closes the cube and optionally opens a new cube itself. A case of a single entry specifying the boundary of three cubes is provided by the masking capabilities of each flow CAM entry: since each flow CAM entry can permit power-of-two bit masking, a full cube may be specified by the flow CAM entry (beginning and ending on power-of-2 alignments), while a distinctly different cube may also be opened (to be closed by another entry).
- For example, a single vertical flow CAM entry may utilize its bitmask capability to stipulate that classes (0,0) through (0,3) form one cube that maps to the same output port, while entry (0,4) is the coordinate pair that begins the next adjacent cube, extending vertically and mapping to a different output port. Flow CAM minimization, therefore, can involve manipulations to form adjacency among output port targets.
- In one implementation, address CAMs group addresses into equivalence classes according to which sources can communicate with common destinations (e.g., source address CAM) and which destinations can communicate with common sources (e.g., destination address CAM), in a manner that minimizes the number of address CAM entries. An exemplary grouping scheme considers equivalence relations based on mutual membership in one or more network zones, although more intricate relations can be established to improve compression. The number of address CAM entries can be further minimized if TCAM devices are employed. With TCAM masking and priority detection features, the input node addresses may be specified in a manner that maximizes masking opportunities, including use of longest-prefix and general nested sub-range matching.
- Equivalence class numbers themselves are chosen to optimize adjacency in the flow zoning matrix (e.g., by common output port or VOQ number), although gaps may be left to accommodate possible growth and changes in the topology. Given high adjacency in the flow zoning matrix and a minimal number of equivalence classes, flow CAM cubes can be formed to maximize the output-port-to-flow-CAM-entry expense ratio. As such, the flow CAM cubes can result in the fewest flow CAM entries for the mappings that may be represented. It should be understood, also, that the address CAM entries and equivalence classes can be periodically reconfigured to re-optimize the compression after zoning and topology changes.
-
FIG. 5 illustrates an exemplary configuration of a switch having amulti-level CAM 500. Data frames are received atports 502 and communicated through thefront MAC 504 to the forwardinglogic 506. The forwardinglogic 506 extracts data from the data frame (e.g., from the data frame header), from which it forms one or more search keys. The search keys are input to an address CAM that includes one or more CAM devices, each CAM device being coupled to receive and search on search keys from the forwardinglogic 506. In one implementation, the address CAM includes twenty-four TCAM devices, although other search devices and configurations may be employed. In one implementation, theTCAM devices priority encoders 518, andRAM 519 may be considered a CAM module for a first level of the multi-level CAM. - The forwarding
logic 506 is configured to direct individual search keys for individual ports in specific combinations to the address CAM devices. For example, the forwardinglogic 508 can construct a destination search key that includes the Fibre Channel destination address (DID) (and potentially other fields) of a data frame received at a port X. The forwardinglogic 508 sends the destination search key toTCAMs logic 508 can construct a source search key to include the Fibre Channel source address (SID) of the same data frame and send the source search key toTCAMs TCAMs - Each TCAM will search for the received search key and forward the search results, in the form of bit vectors, to
priority encoders 518. In one implementation, resulting bit vectors from destination search key searches and source search key searches are directed to separate priority encoders, although a single priority encoder may be employed (e.g., using a multiplexer). Each bit vector resulting from a TCAM identifies the TCAM location(s) satisfying the search key, if any. - The search results are received by a
priority encoder 518, which selects a priority bit across all the bit vectors based on one or more rules and then encodes the priority bit into a memory address. For example, in one implementation, the highest numbered bit (across all received bit vectors) is selected and encoded into a memory address, which is output from thepriority encoder 518. Alternative rules may be employed, such as “the lowest numbered bit (across all received bit vectors) has priority” and other selection criteria. - The address output by the
priority encoder 518 is an address into theRAM 519, which outputs a search result reference value stored at the provided address. This value represents an equivalence class identifier (e.g., CS for the source equivalence class and CD ) for the destination equivalence class) in the flow zoning matrix partially defined in theflow CAM 520. An equivalence class represents a subset of given set induced by an equivalence relation on that given set. Elements of an equivalence class are said to be equivalent under the equivalence relation to all the other elements of the same equivalence class. Equivalence classes and their corresponding equivalence relations are generally defined in the mathematical field of set theory. As such, an equivalence class identifier associates one or more TCAM entries for look-up in the flow CAM 250. - For an example of the application of equivalence classes, using a technique similar to K-map minimization, two different search result bits from a source search key search in the first CAM level may be considered equivalent. Therefore, the
priority encoder 518 andRAM 519 may combine to provide an equivalence class identifier common to both of the search result bits. As such, the different search result bits would yield an equivalence class identifier that designates the same row in the flow zoning matrix defined by theflow CAM 520. - The equivalence class identifiers from the
RAM 519 are input to theflow CAM 520, which defines the flow zoning matrix. Given the equivalence class identifiers from both the source and destination searches, theflow CAM 520 can determine and output the port number to which the data frame should be forwarded. In an alternative implementation, theflow CAM 520 can output multicast information and a PCT index into separate storage (not shown). Other flow CAM outputs are also contemplated. The flow CAM output is sent to thedecision module 522, which determines whether the port number is on the current device (and therefore that the data frame should be forwarded to that port of the front MAC 504) or whether the data frame should be forwarded out anextender port 526 of aback MAC 524 to another port module. -
FIG. 6 illustratesexemplary operations 600 for processing a data frame using a multi-level CAM. A data frame is received by a switch and directed through a MAC to the forwarding logic in receivingoperation 602. A parsingoperation 604 extracts information (e.g., from the data frame header) to form a source search key and a destination search key. For example, the SID may be used to form the source search key and the DID may be used to form the destination search key. Other data fields may be used to form search keys, including VF_ID (“Fibre Channel Virtual Address”), VID (“Ethernet Virtual LAN ID”), IPv4 DA (“destination IP address”), IPv4 SA (“source IP address”), ingress port number, SOF values, IPv6 source and destination addresses, routing parameters, etc. - In searching
operation 606, each search key is input to a first level CAM. In one implementation, the first level CAM is configured from a selection of individual CAM devices. Depending on which port the data frame is received through and whether the search key is based on a destination search key or a source search key, the search key is directed to a selected set of these individual CAM devices. The first level CAM devices may be TCAMs, binary CAMs, or other CAM or search structures, such as a RAM-based search tree. - The searching
operation 606 results in one or more bit vectors representing search results on the associated search keys, which are input to a priority encoder. The bit vectors of each search type (e.g., source search and destination search) are concatenated into an aggregate bit vector and input to the priority encoder. In one implementation, the search results relating to a destination search key are directed to a first priority encoder and the search results relating to a source search key are directed to a second priority encoder, although other configurations may be employed. - In an
encoding operation 608, each priority encoder applies a priority rule that selects a priority bit from the search result bit vectors and encodes the priority bit into an address in an equivalence class memory. In one implementation, the priority rule selects the highest number bit representing a search “hit”, although alternative rules may be employed (e.g., the lowest number bit or some other more complex algorithm). The priority encoder then encodes the priority bit into an address in an equivalence class memory to yield an equivalence class identifier corresponding to the priority bit. Amemory operation 610 determines the equivalence class from the equivalence class memory by outputting the equivalence class identifier that resides at the priority memory address in the equivalence class memory. Similar operations (e.g., 606, 608, and 610) are performed on the search results of each search type to yield individual equivalence class identifiers for each search type. - The individual equivalence class identifiers are input to a second level CAM in a
determination operation 612. The second level. CAM operates as a flow CAM implementing a flow zoning matrix, which associates the equivalence classes to a flow CAM search result. In one implementation, a flow CAM search result may represent a port number to which a given data frame should be forwarded. Alternatively, a flow CAM search result may represent other data, including a PCT index, multicast information, Ethernet packet parameters, protocol conversion information, inter-fabric routing information, diagnostic information for monitoring specific flows, etc. In the illustrated process, aforwarding operation 614 directs the data frame to the port identified by the resulting port number. -
FIG. 7 illustrates an alternative implementation of an exemplarymulti-level CAM 700, including threeparallel CAMs same input data 708. Apriority multiplexer 710 selects and encodes the outputs of the parallel CAMs and can output the output port number, multicast information, PCT index, etc. - The illustrated configuration demonstrates that a structurally hierarchical CAM set may be altered to provide flat CAM functionality. A topology having mainly distinct one-to-one SD-to-DID associations does not benefit as much from the compression provided by other configurations. As such, this configuration provides better utilization of the available CAM storage by flattening the hierarchical CAM structure and using each entry for a distinct SID-to-DID flow. Alternatively, this configuration would be beneficial in an application in which SID-based observations are not required (e.g., no hard zoning, no source-based load balancing, etc.). In any case, utilization of existing CAM storage space can be more efficient with the illustrated configuration, although the total address space serviced by the illustrated CAM configuration may be smaller than in a hierarchical CAM configuration.
-
FIG. 8 illustrates another alternative implementation of an exemplarymulti-level CAM 800, including twoaddress CAMs composite CAM 806. Thecomposite CAM 806 includes bothdirect CAM entries 808 and flowCAM entries 810. Theaddress CAMs FIG. 2 . If either address CAM misses (i.e., does not match the search key), thedirect CAM entries 808 in thecomposite CAM 806 are searched using a search key formed from both the source search key data and the destination search key data. Otherwise, the source and destination search result references are used to search the flow CAM entries, as described with regard toFIG. 2 . Such a configuration may be described as “predicated direct CAM lookup”. -
FIG. 9 illustrates yet another alternative implementation of an exemplary multi-level CAM, including twoaddress CAMs CAMs address CAMs FIG. 2 , outputting search result references into theflow zoning matrix 912. - The
flow CAMs cubes 914 and 916), and horizontal flow CAM entries form cubes to cover the matrix horizontally (see e.g., cube 918). As a result, full rectangular cubing is available to flow CAM searching so that entire rectangular blocks of contiguous matrix elements may be covered without restricting cubes in other directions. “Rectangular cubing” generally refers to the formation of cubes that cover multiple rows and columns (i.e., that extend both vertically and horizontally). Performing rectangular cubing in a RAM-based binary search tree flow CAM can be implemented using a mask bit in each of the source search result reference PS and the destination search result reference PD. - It should be understood that predicated direct CAM lookup may be combined with this and any other multi-level CAM configuration. Further, more than two CAM levels may be employed in various multi-level CAM configuration using the principles described herein.
FIG. 10 illustrates an examplemulti-level CAM configuration 1000 with more than two CAM levels. TheCAM configuration 1000, as with all of the described configurations, may have general applicability, and is not limited to SAN applications. - In
FIG. 10 , the function F represents a CAM function for an individual CAM device. The variable p represents the number of CAM devices in the top row of themulti-level CAM configuration 1000. The variable L represents the number of levels in themulti-level CAM configuration 1000. - The embodiments of the invention described herein can be implemented as logical steps in one or more computer systems. The logical operations of the present invention can be implemented (1) as a sequence of processor-implemented steps executing in one or more computer systems and (2) as interconnected machine or circuit modules within one or more computer systems. The implementation is a matter of choice, dependent on the performance requirements of the computer system implementing the invention. Accordingly, the logical operations making up the embodiments of the invention described herein are referred to variously as operations, steps, objects, or modules. Furthermore, it should be understood that logical operations may be performed in any order, unless explicitly claimed otherwise or a specific order is inherently necessitated by the claim language.
- The above specification, examples and data provide a complete description of the structure and use of exemplary embodiments of the invention. Since many embodiments of the invention can be made without departing from the spirit and scope of the invention, the invention resides in the claims hereinafter appended. Furthermore, structural features of the different embodiments may be combined in yet another embodiment without departing from the recited claims.
Claims (23)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US12/567,624 US20100082895A1 (en) | 2006-05-08 | 2009-09-25 | Multi-level content addressable memory |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US11/430,389 US7606968B2 (en) | 2006-05-08 | 2006-05-08 | Multi-level content addressable memory |
US12/567,624 US20100082895A1 (en) | 2006-05-08 | 2009-09-25 | Multi-level content addressable memory |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US11/430,389 Continuation US7606968B2 (en) | 2006-05-08 | 2006-05-08 | Multi-level content addressable memory |
Publications (1)
Publication Number | Publication Date |
---|---|
US20100082895A1 true US20100082895A1 (en) | 2010-04-01 |
Family
ID=38662451
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US11/430,389 Expired - Fee Related US7606968B2 (en) | 2006-05-08 | 2006-05-08 | Multi-level content addressable memory |
US12/567,624 Abandoned US20100082895A1 (en) | 2006-05-08 | 2009-09-25 | Multi-level content addressable memory |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US11/430,389 Expired - Fee Related US7606968B2 (en) | 2006-05-08 | 2006-05-08 | Multi-level content addressable memory |
Country Status (1)
Country | Link |
---|---|
US (2) | US7606968B2 (en) |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110022693A1 (en) * | 2009-07-22 | 2011-01-27 | Madhava Rao Cheethirala | Hard zoning on npiv proxy/npv devices |
US20110219183A1 (en) * | 2010-03-03 | 2011-09-08 | Christian Sasso | Sub-area fcid allocation scheme |
US20120131222A1 (en) * | 2010-11-22 | 2012-05-24 | Andrew Robert Curtis | Elephant flow detection in a computing device |
US20120201138A1 (en) * | 2011-02-07 | 2012-08-09 | Brocade Communications Systems, Inc. | Quality of service in a heterogeneous network |
CN103345937A (en) * | 2013-06-18 | 2013-10-09 | 苏州雄立科技有限公司 | Priority coding method capable of supporting a plurality of search modes in comparison search chip |
US8737606B2 (en) | 2006-03-23 | 2014-05-27 | Ip Reservoir, Llc | Method and system for high throughput blockwise independent encryption/decryption |
US8843408B2 (en) | 2006-06-19 | 2014-09-23 | Ip Reservoir, Llc | Method and system for high speed options pricing |
US8880501B2 (en) | 2006-11-13 | 2014-11-04 | Ip Reservoir, Llc | Method and system for high performance integration, processing and searching of structured and unstructured data using coprocessors |
US20150326477A1 (en) * | 2012-12-19 | 2015-11-12 | Nec Corporation | Packet processing apparatus, flow entry configuration method and program |
US9224091B2 (en) | 2014-03-10 | 2015-12-29 | Globalfoundries Inc. | Learning artificial neural network using ternary content addressable memory (TCAM) |
US9323794B2 (en) | 2006-11-13 | 2016-04-26 | Ip Reservoir, Llc | Method and system for high performance pattern indexing |
US9990393B2 (en) | 2012-03-27 | 2018-06-05 | Ip Reservoir, Llc | Intelligent feed switch |
US10037568B2 (en) | 2010-12-09 | 2018-07-31 | Ip Reservoir, Llc | Method and apparatus for managing orders in financial markets |
US10121196B2 (en) | 2012-03-27 | 2018-11-06 | Ip Reservoir, Llc | Offload processing of data packets containing financial market data |
US10650452B2 (en) | 2012-03-27 | 2020-05-12 | Ip Reservoir, Llc | Offload processing of data packets |
TWI766773B (en) * | 2021-07-23 | 2022-06-01 | 旺宏電子股份有限公司 | Multilevel content addressable memory, multilevel coding method and multilevel searching method |
US11436672B2 (en) | 2012-03-27 | 2022-09-06 | Exegy Incorporated | Intelligent switch for processing financial market data |
Families Citing this family (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7596139B2 (en) | 2000-11-17 | 2009-09-29 | Foundry Networks, Inc. | Backplane interface adapter with error control and redundant fabric |
US7187687B1 (en) | 2002-05-06 | 2007-03-06 | Foundry Networks, Inc. | Pipeline method and system for switching packets |
US20120155466A1 (en) | 2002-05-06 | 2012-06-21 | Ian Edward Davis | Method and apparatus for efficiently processing data packets in a computer network |
US6901072B1 (en) | 2003-05-15 | 2005-05-31 | Foundry Networks, Inc. | System and method for high speed packet transmission implementing dual transmit and receive pipelines |
US7817659B2 (en) | 2004-03-26 | 2010-10-19 | Foundry Networks, Llc | Method and apparatus for aggregating input data streams |
US8730961B1 (en) | 2004-04-26 | 2014-05-20 | Foundry Networks, Llc | System and method for optimizing router lookup |
US8504548B2 (en) | 2008-10-03 | 2013-08-06 | Adaptive Computing Enterprises, Inc. | System and method for dynamically managing data centric searches |
US8448162B2 (en) | 2005-12-28 | 2013-05-21 | Foundry Networks, Llc | Hitless software upgrades |
US8238255B2 (en) | 2006-11-22 | 2012-08-07 | Foundry Networks, Llc | Recovering from failures without impact on data traffic in a shared bus architecture |
US20090279441A1 (en) | 2007-01-11 | 2009-11-12 | Foundry Networks, Inc. | Techniques for transmitting failure detection protocol packets |
US8050260B1 (en) | 2007-01-30 | 2011-11-01 | Qlogic, Corporation | Method and system for load balancing in infiniband switches and networks |
US7760135B2 (en) * | 2007-11-27 | 2010-07-20 | Lockheed Martin Corporation | Robust pulse deinterleaving |
US20100268703A1 (en) * | 2009-04-17 | 2010-10-21 | Buck Brian J | Method of search strategy visualization and interaction |
US8599850B2 (en) | 2009-09-21 | 2013-12-03 | Brocade Communications Systems, Inc. | Provisioning single or multistage networks using ethernet service instances (ESIs) |
US20150082142A1 (en) * | 2012-04-27 | 2015-03-19 | Citadel Corporation Pty Ltd | Method for storing and applying related sets of pattern/message rules |
JP6096690B2 (en) * | 2014-02-25 | 2017-03-15 | アラクサラネットワークス株式会社 | Communication apparatus and CAM abnormality diagnosis method |
US9653165B2 (en) * | 2015-03-31 | 2017-05-16 | Xilinx, Inc. | Multiplexer-based ternary content addressable memory |
US10440152B2 (en) | 2016-01-27 | 2019-10-08 | Oracle International Corporation | System and method of initiating virtual machine configuration on a subordinate node from a privileged node in a high-performance computing environment |
JP6755541B2 (en) * | 2017-04-17 | 2020-09-16 | セレブラス システムズ インク. | Accelerated deep learning neuron smearing |
US12086414B2 (en) * | 2022-10-06 | 2024-09-10 | Macronix International Co., Ltd. | Managing content addressable memory devices |
US20240414085A1 (en) * | 2023-06-07 | 2024-12-12 | Marvell Asia Pte Ltd | Multi-stage tcam matching in a network device |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6646899B2 (en) * | 2001-09-21 | 2003-11-11 | Broadcom Corporation | Content addressable memory with power reduction technique |
US6735218B2 (en) * | 2000-11-17 | 2004-05-11 | Foundry Networks, Inc. | Method and system for encoding wide striped cells |
US6763426B1 (en) * | 2001-12-27 | 2004-07-13 | Cypress Semiconductor Corporation | Cascadable content addressable memory (CAM) device and architecture |
US6809945B2 (en) * | 2001-11-15 | 2004-10-26 | Broadcom Corporation | Content addressable memory match line sensing techniques |
US6901072B1 (en) * | 2003-05-15 | 2005-05-31 | Foundry Networks, Inc. | System and method for high speed packet transmission implementing dual transmit and receive pipelines |
US7088735B1 (en) * | 2002-02-05 | 2006-08-08 | Sanera Systems, Inc. | Processing data packets in a multiple protocol system area network |
US7188211B2 (en) * | 2002-11-29 | 2007-03-06 | Mosaid Technologies Incorporated | Block programmable priority encoder in a CAM |
US7193997B2 (en) * | 2001-03-19 | 2007-03-20 | International Business Machines Corporation | Packet classification |
US7266117B1 (en) * | 2002-05-06 | 2007-09-04 | Foundry Networks, Inc. | System architecture for very fast ethernet blade |
US7366165B2 (en) * | 2001-03-05 | 2008-04-29 | Fujitsu Limited | Input line interface device and packet communication device |
US7468975B1 (en) * | 2002-05-06 | 2008-12-23 | Foundry Networks, Inc. | Flexible method for processing data packets in a network routing system for enhanced efficiency and monitoring capability |
US7610441B2 (en) * | 2005-11-10 | 2009-10-27 | Broadcom Corporation | Multiple mode content-addressable memory |
-
2006
- 2006-05-08 US US11/430,389 patent/US7606968B2/en not_active Expired - Fee Related
-
2009
- 2009-09-25 US US12/567,624 patent/US20100082895A1/en not_active Abandoned
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6735218B2 (en) * | 2000-11-17 | 2004-05-11 | Foundry Networks, Inc. | Method and system for encoding wide striped cells |
US7366165B2 (en) * | 2001-03-05 | 2008-04-29 | Fujitsu Limited | Input line interface device and packet communication device |
US7193997B2 (en) * | 2001-03-19 | 2007-03-20 | International Business Machines Corporation | Packet classification |
US6785152B2 (en) * | 2001-09-21 | 2004-08-31 | Broadcom Corporation | Content addressable memory with power reduction technique |
US6646899B2 (en) * | 2001-09-21 | 2003-11-11 | Broadcom Corporation | Content addressable memory with power reduction technique |
US6809945B2 (en) * | 2001-11-15 | 2004-10-26 | Broadcom Corporation | Content addressable memory match line sensing techniques |
US6763426B1 (en) * | 2001-12-27 | 2004-07-13 | Cypress Semiconductor Corporation | Cascadable content addressable memory (CAM) device and architecture |
US7088735B1 (en) * | 2002-02-05 | 2006-08-08 | Sanera Systems, Inc. | Processing data packets in a multiple protocol system area network |
US7266117B1 (en) * | 2002-05-06 | 2007-09-04 | Foundry Networks, Inc. | System architecture for very fast ethernet blade |
US7468975B1 (en) * | 2002-05-06 | 2008-12-23 | Foundry Networks, Inc. | Flexible method for processing data packets in a network routing system for enhanced efficiency and monitoring capability |
US7188211B2 (en) * | 2002-11-29 | 2007-03-06 | Mosaid Technologies Incorporated | Block programmable priority encoder in a CAM |
US6901072B1 (en) * | 2003-05-15 | 2005-05-31 | Foundry Networks, Inc. | System and method for high speed packet transmission implementing dual transmit and receive pipelines |
US7610441B2 (en) * | 2005-11-10 | 2009-10-27 | Broadcom Corporation | Multiple mode content-addressable memory |
Cited By (32)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8737606B2 (en) | 2006-03-23 | 2014-05-27 | Ip Reservoir, Llc | Method and system for high throughput blockwise independent encryption/decryption |
US8983063B1 (en) | 2006-03-23 | 2015-03-17 | Ip Reservoir, Llc | Method and system for high throughput blockwise independent encryption/decryption |
US8843408B2 (en) | 2006-06-19 | 2014-09-23 | Ip Reservoir, Llc | Method and system for high speed options pricing |
US9396222B2 (en) | 2006-11-13 | 2016-07-19 | Ip Reservoir, Llc | Method and system for high performance integration, processing and searching of structured and unstructured data using coprocessors |
US8880501B2 (en) | 2006-11-13 | 2014-11-04 | Ip Reservoir, Llc | Method and system for high performance integration, processing and searching of structured and unstructured data using coprocessors |
US10191974B2 (en) | 2006-11-13 | 2019-01-29 | Ip Reservoir, Llc | Method and system for high performance integration, processing and searching of structured and unstructured data |
US9323794B2 (en) | 2006-11-13 | 2016-04-26 | Ip Reservoir, Llc | Method and system for high performance pattern indexing |
US11449538B2 (en) | 2006-11-13 | 2022-09-20 | Ip Reservoir, Llc | Method and system for high performance integration, processing and searching of structured and unstructured data |
US20110022693A1 (en) * | 2009-07-22 | 2011-01-27 | Madhava Rao Cheethirala | Hard zoning on npiv proxy/npv devices |
US8775580B2 (en) * | 2009-07-22 | 2014-07-08 | Cisco Technology, Inc. | Hard zoning on NPIV proxy/NPV devices |
US20110219183A1 (en) * | 2010-03-03 | 2011-09-08 | Christian Sasso | Sub-area fcid allocation scheme |
US9632930B2 (en) * | 2010-03-03 | 2017-04-25 | Cisco Technology, Inc. | Sub-area FCID allocation scheme |
US9124515B2 (en) * | 2010-11-22 | 2015-09-01 | Hewlett-Packard Development Company, L.P. | Elephant flow detection in a computing device |
US20150341247A1 (en) * | 2010-11-22 | 2015-11-26 | Hewlett-Packard Development Company, L.P. | Elephant flow detection in a computing device |
US20120131222A1 (en) * | 2010-11-22 | 2012-05-24 | Andrew Robert Curtis | Elephant flow detection in a computing device |
US11803912B2 (en) | 2010-12-09 | 2023-10-31 | Exegy Incorporated | Method and apparatus for managing orders in financial markets |
US10037568B2 (en) | 2010-12-09 | 2018-07-31 | Ip Reservoir, Llc | Method and apparatus for managing orders in financial markets |
US11397985B2 (en) | 2010-12-09 | 2022-07-26 | Exegy Incorporated | Method and apparatus for managing orders in financial markets |
US9225656B2 (en) * | 2011-02-07 | 2015-12-29 | Brocade Communications Systems, Inc. | Quality of service in a heterogeneous network |
US20120201138A1 (en) * | 2011-02-07 | 2012-08-09 | Brocade Communications Systems, Inc. | Quality of service in a heterogeneous network |
US10963962B2 (en) | 2012-03-27 | 2021-03-30 | Ip Reservoir, Llc | Offload processing of data packets containing financial market data |
US10121196B2 (en) | 2012-03-27 | 2018-11-06 | Ip Reservoir, Llc | Offload processing of data packets containing financial market data |
US10650452B2 (en) | 2012-03-27 | 2020-05-12 | Ip Reservoir, Llc | Offload processing of data packets |
US10872078B2 (en) | 2012-03-27 | 2020-12-22 | Ip Reservoir, Llc | Intelligent feed switch |
US9990393B2 (en) | 2012-03-27 | 2018-06-05 | Ip Reservoir, Llc | Intelligent feed switch |
US11436672B2 (en) | 2012-03-27 | 2022-09-06 | Exegy Incorporated | Intelligent switch for processing financial market data |
US12148032B2 (en) | 2012-03-27 | 2024-11-19 | Exegy Incorporated | Intelligent packet switch |
US9876716B2 (en) * | 2012-12-19 | 2018-01-23 | Nec Corporation | Packet processing apparatus, flow entry configuration method and program |
US20150326477A1 (en) * | 2012-12-19 | 2015-11-12 | Nec Corporation | Packet processing apparatus, flow entry configuration method and program |
CN103345937A (en) * | 2013-06-18 | 2013-10-09 | 苏州雄立科技有限公司 | Priority coding method capable of supporting a plurality of search modes in comparison search chip |
US9224091B2 (en) | 2014-03-10 | 2015-12-29 | Globalfoundries Inc. | Learning artificial neural network using ternary content addressable memory (TCAM) |
TWI766773B (en) * | 2021-07-23 | 2022-06-01 | 旺宏電子股份有限公司 | Multilevel content addressable memory, multilevel coding method and multilevel searching method |
Also Published As
Publication number | Publication date |
---|---|
US20070260814A1 (en) | 2007-11-08 |
US7606968B2 (en) | 2009-10-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7606968B2 (en) | Multi-level content addressable memory | |
US8861347B2 (en) | Configurable access control lists using TCAM | |
US9627063B2 (en) | Ternary content addressable memory utilizing common masks and hash lookups | |
Jedhe et al. | A scalable high throughput firewall in FPGA | |
US7440460B2 (en) | Apparatus and method for forwarding mixed data packet types in a high-speed router | |
CN102970150A (en) | Extensible multicast forwarding method and device for data center (DC) | |
Veeramani et al. | Minimization of flow table for TCAM based openflow switches by virtual compression approach | |
Li et al. | TabTree: A TSS-assisted bit-selecting tree scheme for packet classification with balanced rule mapping | |
US9485179B2 (en) | Apparatus and method for scalable and flexible table search in a network switch | |
Jiang et al. | A FPGA-based parallel architecture for scalable high-speed packet classification | |
Le et al. | Scalable high throughput and power efficient ip-lookup on fpga | |
US9742702B1 (en) | End-to-end cache for network elements | |
Lim et al. | Two-dimensional packet classification algorithm using a quad-tree | |
US20050195812A1 (en) | Apparatus and method for performing forwarding table searches using consecutive symbols tables | |
Erdem et al. | Hierarchical hybrid search structure for high performance packet classification | |
Rasmussen et al. | TCAM-based high speed longest prefix matching with fast incremental table updates | |
Vijay et al. | Implementation of memory-efficient linear pipelined IPv6 lookup and its significance in smart cities | |
Erdem et al. | Clustered hierarchical search structure for large-scale packet classification on FPGA | |
Jiang et al. | Scalable packet classification: Cutting or merging? | |
Mahini et al. | MLET: a power efficient approach for TCAM based, IP lookup engines in Internet routers | |
US11968285B2 (en) | Efficient memory utilization for cartesian products of rules | |
Perez et al. | Memory cost analysis for OpenFlow multiple table lookup | |
Wagner et al. | A scalable pipeline architecture for line rate packet classification on FPGAs | |
Mohan et al. | Multimatch packet classification schemes | |
Erdem et al. | Range tree-linked list hierarchical search structure for packet classification on FPGAs |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: WELLS FARGO BANK, NATIONAL ASSOCIATION, AS COLLATE Free format text: SECURITY AGREEMENT;ASSIGNORS:BROCADE COMMUNICATIONS SYSTEMS, INC.;FOUNDRY NETWORKS, LLC;INRANGE TECHNOLOGIES CORPORATION;AND OTHERS;REEL/FRAME:023814/0587 Effective date: 20100120 |
|
AS | Assignment |
Owner name: BROCADE COMMUNICATIONS SYSTEMS, INC., CALIFORNIA Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:MCDATA CORPORATION;REEL/FRAME:029486/0074 Effective date: 20121025 |
|
STCB | Information on status: application discontinuation |
Free format text: ABANDONED -- AFTER EXAMINER'S ANSWER OR BOARD OF APPEALS DECISION |
|
AS | Assignment |
Owner name: FOUNDRY NETWORKS, LLC, CALIFORNIA Free format text: RELEASE BY SECURED PARTY;ASSIGNOR:WELLS FARGO BANK, NATIONAL ASSOCIATION, AS COLLATERAL AGENT;REEL/FRAME:034804/0793 Effective date: 20150114 Owner name: BROCADE COMMUNICATIONS SYSTEMS, INC., CALIFORNIA Free format text: RELEASE BY SECURED PARTY;ASSIGNOR:WELLS FARGO BANK, NATIONAL ASSOCIATION, AS COLLATERAL AGENT;REEL/FRAME:034804/0793 Effective date: 20150114 |