Electrical computers and digital processing systems: multicomput – Computer-to-computer data routing
Reexamination Certificate
2001-07-12
2002-09-24
Geckil, Mehmet B. (Department: 2152)
Electrical computers and digital processing systems: multicomput
Computer-to-computer data routing
C709S245000
Reexamination Certificate
active
06457058
ABSTRACT:
FIELD OF THE INVENTION
This invention relates generally to network switches and, more specifically, to an improved look up mechanism and associated multi-page hash table used for improved performance in retrieving information and making forwarding decisions in a network switch.
BACKGROUND OF THE INVENTION
A network switch of a data communications network provides a “switching function” for transferring information, such as data frames, among entities of the network. Typically, the switch is a computer comprising a collection of components (e.g., cards) interconnected by a backplane of wires. Each card may include a limited number of ports that couple the switch to the other network entities over various types of media, such Ethernet, FDDI or token ring connections. A network entity may consist of any device that “sources” (i.e., transmits) or “sinks” (i.e., receives) data frames over such media.
The switching function provided by the switch typically comprises receiving data at a source port from a network entity, transferring the data over the backplane to a destination port and, thereafter, transmitting that data over a medium to another entity of the network. In order for the data to be transferred, the switch may include a forwarding engine and associated address translation mechanism. An example of such an address translation mechanism is described in U.S. Pat. No. 5,740,171, issued Apr. 14, 1998, entitled ADDRESS TRANSLATION MECHANISM FOR A HIGH PERFORMANCE NETWORK SWITCH, which is commonly owned by the assignee of the present invention. The address translation mechanism described therein quickly and efficiently renders forwarding decisions for data frames transported among ports of a high-performance switch on the basis of, inter alia, virtual local area network (VLAN) associations among the ports.
The translation mechanism comprises a plurality of forwarding tables, each of which contains entries having unique index values that translate to selection signals for ports destined to receive the data frames. Each port is associated with a unique index value and a VLAN identifier to facilitate data transfers within the switch at accelerated to speeds and addressing capabilities.
As described in the patent, a media access control (MAC) address is combined with the VLAN identifier to produce a base line numerical quantity for searching the forwarding tables. Each table entry is directly accessed, however, by a key comprising a hash transformation of this MAC/VLAN quantity. A comparison circuit arrangement of is the mechanism is also provided to validate the forwarding table entry mapped by the hashed MAC/VLAN quantity. That is, the circuit arrangement compares the base line numerical quantity to a MAC/VLAN value stored in the mapped entry to ensure that the entry contains the correct index value. If the compared items match, the index value stored in the table is provided to a target logic circuit for translation to a signal that selects a port or group of ports for receiving the data frame. If the items do not match, the VLAN identifier is passed to the target logic circuit with the result that all ports having that VLAN identifier receive the frame in accordance with a multicast transfer.
The hash function used to find the index value maps a large address space with a much smaller address space. In doing so, however, aliasing can occur in that more than one key, for example, a MAC address/VLAN pair, can hash to the same table entry. One solution to this limitation has been to provide a hash table comprising several pages which can be used as alternates when a particular key (e.g., MAC address/VLAN pair) hashes to the same table entry. For example, a first MAC address/VLAN pair may hash to a particular table entry in which case that entry (or line) corresponding to the first page of the table is thereafter associated with that MAC address/VLAN pair. If a second MAC address/VLAN pair hashes to the same value, thus pointing to that same entry, then it is stored in the corresponding entry on the second page of the table.
The problem with this type of paging scheme, however, is that it increases the overall table access time because the hash transformation may not always result in a “hit” on the first page accessed. Specifically, after the hashed address is calculated, it is used to point to the entry (or line) to access, but the look up always begins on the first page. If a match is not found, the corresponding entry on the second page is checked, and if there is no match this procedure continues through all the pages of the table until a match is realized. In such conventional systems, the order in which pages are accessed, including which page is accessed first, is the same for all hashed addresses. But, serially checking the various pages consumes time, perhaps on the order of several cycles. Optimum performance, namely highest speed, is achieved when the desired entry is found on the first is page checked.
Therefore, it is among the objects of the present invention to provide a mechanism for high-speed look up of hash table information needed for rendering forwarding decisions in a network switch.
Another object of the present invention is to provide a hashing technique which increases the likelihood of accessing desired data upon a first look up of a hash table.
It is a further object of the present invention to provide a mechanism that efficiently implements “port-based” VLAN association operations within a high-performance network switch.
SUMMARY OF THE INVENTION
Briefly, the invention relates to an improved look-up mechanism for storing and retrieving forwarding information used to transport data frames among ports of a high-performance network switch. The look-up mechanism includes a look-up table having a multi-page architecture that is accessed in accordance with a novel, dual hashing technique. Broadly stated, the dual hashing technique first assigns a mapping between a first virtual page to the physical page of the look-up table to be initially accessed. Secondly, the hashing technique points to a particular entry (or line) in the table on that identified page. The dual hashing technique is used for both initially storing and for ultimately retrieving information from the look-up table. Use of the technique increases the likelihood that a match will be found on a first look up operation to the table.
In the illustrative embodiment, the hash table is configured as a number of physical pages with each page containing an equal number of entries. Equivalent entries on each page form a line. In accordance with one embodiment of the invention, a single, large hash key is derived from a MAC address/VLAN pair involved in the forwarding decision. The larger hash key is generated to effectively produce two hashes. One set of predetermined bits (e.g., the most significant bits (MSBs)) of the hash key are decoded to obtain a value which designates the mapping between the virtual first page and the physical page to access first for that hash key. The remaining bits in the large hash key are used to identify the particular line on that page in the table to access. Initially, the corresponding forwarding information (i.e., the MAC/VLAN pair and the corresponding index) is stored in that location in the look-up table. In this manner, each time that particular MAC address/VLAN pair subsequently is received by the forwarding engine in a forwarding operation, the same physical location of the look-up table is checked first, and the forwarding index is thus retrieved upon a single access. In an alternative embodiment, two separate hashes can be performed, one may be used to obtain the page-to-page mapping, and the other, to identify the line on the corresponding page.
More specifically, when the forwarding engine receives a frame, it contains a destination address and a source address. The destination address is hashed to obtain the hash key and the virtual first page (VFP) is determined from a predetermined number of bits of the key. That VFP is initially accessed. The remaining bit
Edsall Thomas J.
Hang Soei-Shin
Ullum Daniel
Cesari and McKenna LLP
Cisco Technology Inc.
Geckil Mehmet B.
LandOfFree
Network switch with hash table look up does not yet have a rating. At this time, there are no reviews or comments for this patent.
If you have personal experience with Network switch with hash table look up, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Network switch with hash table look up will most certainly appreciate the feedback.
Profile ID: LFUS-PAI-O-2899919