Relay control circuit using hashing function algorithm
First Claim
1. A relay control circuit inside a switch device, the switch device having an address/port table and receiving a frame signal with a destination medium access control (DMAC) address, comprising:
- an address scrambling circuit for changing a byte sequence of at least part of a plurality of bytes in the DMAC address of the frame signal to generate a scrambled DMAC address; and
a transformation circuit coupled to the address scrambling circuit, for generating an index address according to the scrambled DMAC address including all bytes in the DMAC address, wherein the switch device sends out the frame signal according to the index address and the address/port table.
1 Assignment
0 Petitions
Accused Products
Abstract
A relay control circuit that uses a hashing algorithm for increasing the hit rate in a table lookup operation. Destination medium access control (DMAC) address is extracted from a network frame. The DMAC address is scrambled to put the frequently changing bytes in a position closer to each other. The scrambled address is sent to a cyclic redundancy checking circuit, where a cyclic redundancy checking operation with hashing function capability is carried out to produce a remainder. The remainder is sent to a memory unit for a table lookup operation. Hence, the relay control circuit is capable of finding a destination port that corresponds to a given DMAC address in a very short time, thereby boosting network efficiency.
-
Citations
22 Claims
-
1. A relay control circuit inside a switch device, the switch device having an address/port table and receiving a frame signal with a destination medium access control (DMAC) address, comprising:
-
an address scrambling circuit for changing a byte sequence of at least part of a plurality of bytes in the DMAC address of the frame signal to generate a scrambled DMAC address; and
a transformation circuit coupled to the address scrambling circuit, for generating an index address according to the scrambled DMAC address including all bytes in the DMAC address, wherein the switch device sends out the frame signal according to the index address and the address/port table. - View Dependent Claims (2, 3, 8, 9, 10, 11, 12)
-
-
4. A relay control method for sending out a frame signal in a switch network with an address/port table, the frame signal having a DMAC address, the relay control method comprising the steps of:
-
changing a byte sequence of at least part of a plurality of bytes in the DMAC address of the frame signal to generate a scrambled DMAC address;
transforming the scrambled DMAC address including all bytes in the DMAC address into an index with hash function;
sending out the frame signal according to the index and the address/port table. - View Dependent Claims (5, 7, 13, 14, 15, 16, 17)
-
-
6. A switch device for receiving and sending out a frame, comprising:
-
an address acquisition circuit for obtaining a destination medium access control (DMAC) address from the received frame;
a memory unit for storing an address table; and
a relay control circuit coupled to the address acquisition circuit and the memory unit for sending out the frame, the relay control circuit changing the byte sequence of at least part of a plurality of bytes in the DMAC address to generate a scrambled DMAC address and transforming the scrambled DMAC address including all bytes in the DMAC address into an index address, the frame being sent out according to the index address and the address table. - View Dependent Claims (18, 19, 20, 21, 22)
-
Specification