摘要:
A method and apparatus for accessing a non-symmetric dual-slot address table having two entries 0, 1 that are different in size. When writing data, the data is hashed to generate a hash value. Then, the data is written to a slot corresponding to the hash value in the entry 0. When there was data in the slot 0, the hash value is mapped to a sub-address and a share value, and then a slot 1 corresponding to the sub-address is selected from the entry 1. Afterwards, the SMAC tag, the share value and the source port are written to the slot 1. In addition, when transmitting the packet, a hash value is generated according to the DMAC address. Then, a SMAC tag, the share value and the source port are read according to the hash value. After compared, the packet is transmitted.
摘要:
A method for easing data transmission congestion in a switch device having a plurality of ports. The switch device includes a shared buffer capable of dividing into a plurality of buffering units. The method comprises the steps as follows. A plurality of output queues are provided, in which the output queues have a one-to-one correspondence with the ports, and each output queue has a number of reserved buffering units. The buffering unit(s) are then assigned in the shared buffer. A packet is received from a source port and storing the packet in an assigned buffering unit. The target port of a packet is determined according to a header of the packet. Then, the buffering unit containing the packet is linked to the output queue that corresponds to the target port. The free buffering units are thus controlled according to a number of reserved buffering units in the output queue and a triggering or a terminating condition of the source port.
摘要:
A output queuing method for forwarding the packets sequentially in a switching network. Each port is related to a port output queue and a global output queue is shared by all port output queues. A FIFO (First In First Out) block is allocated into each port output queue and the global output queue. The FIFO block contains a number of FIFO nodes. Based on the type and destination ports of the received packet, the fields of the related FIFO node in the port output queue and the global output queue are set. The packets are sent out or skipped based on the related fields.
摘要:
A method for transmitting multi-cast packets is provided, including the steps of (a) receiving a plurality of multi-cast packets and generating corresponding port masks to indicate a plurality of ports from which the multi-cast packets are to be transmitted, (b) selecting, based on the yet-enqueued ports indicated in port masks, a port with highest priority, enqueuing the multi-cast packet into the port, and updating the port masks, (c) checking whether the port with highest priority being full-duplex, and (d) determining when to repeat steps (b) to (d) base on the result of the checking, until finishing the transmission specified by the port masks. In step (d), when the port with highest priority is full-duplex, wait until the port with highest priority starting transmitting the packet, then repeat steps (b) to (d). On the other hand, when the port with highest priority is half-duplex, wait until the port with highest priority transmitting a certain portion of the packet, for example 64 bytes or 128 bytes, then repeat steps (b) to (d). This will repeat until finishing all the transmission specified by the port masks. Preferably, the port with highest priority means the port of the highest priority group with the shortest output queue. When finishing all the transmission specified by the port masks, the switch will release all the related buffers of the multi-cast packets.
摘要:
A method for performing a MAC address lookup in a network switch of an Ethernet network is provided, using a memory structure including a number of multi-slot buckets. Each of the multi-slot buckets is mapped to a hash key derived from a MAC Address. Each of the multi-slot buckets has a number of forwarding table section, each storing a number of the forwarding table entries. If two forwarding table entries are stored in each forwarding table section of a 4-slot bucket ¼ memory space and ½ access time can be saved. Thus, the lookup for the forwarding table according to the MAC address in the Ethernet switch IC can be effectively performed.
摘要:
The present invention constructs a SD Flash card by plugging two micro-SD cards into a new apparatus that has the same form factor as a SD Flash card. In this new apparatus, there is a controller to bridge the two micro-SD cards of any SD interface speed type (DS, HS, UHS50 or UHS104) to UHS104. The controller performs striping access function to achieve almost double performance in sequential read/write throughput if it is not limited by the target SD interface speed.
摘要:
A network switching apparatus and method for congestion control. Each one of the connection ports of the switching apparatus includes a low priority queue and a high priority queue. When a data packet enters a switching apparatus, the switching apparatus according to the type of the data packet enqueues the data packet to the low priority queue or the high priority queue. When congestion occurs at the switching apparatus, the low priority queue and the high priority queue can respectively perform the different ways of the congestion control, according to the input congestion mode. Also, when the switching apparatus receives a pause frame, response flow control can be performed, according to the output congestion mode. Since the different ways of the congestion control are performed according to the different types of the data packet, the congestion control can be optimized.
摘要:
A method for compensating for clock signal difference between a switch and peripheral device, including a receiving process and a transmitting process. For the receiving process, after an N-th packet is received, a first counter is triggered and begins to count. When an (N+1)-th packet is inputted, the counter stops counting and then an inter-packet gap IPG(N, N+1) between the N-th packet and the (N+1)-th packet is recorded into the N+1 queue link node QLN(N+1) according a counting value by the first counter; otherwise, the first counter keeps counting. For the transmitting process, after an inter-packet gap IPG(M−1, M) is obtained, and the M-th packet is transmitted, and then the second counter is triggered to begin to count. When a counted value by the second counter is equal to the clock cycle value corresponding to the inter-packet gap IPG(M−1, M), the second counter stops counting. When an inter-packet gap IPG(M, M+1) is obtained, and the (M+1)-th packet is then transmitted; otherwise, the second counter keeps counting.
摘要:
A method for buffer management and a controller of the same are disclosed. In the buffer management method, a first control mode is performed, and a plurality of bits are used to control a bit mask region of a memory. A second control mode is performed, and a plurality of unused addresses in a link region of the memory is cached. A third control mode is performed, to control a plurality of second unused addresses in the link region by a linked list. The controller comprises a plurality of bits for controlling a bit mask region; a plurality of address cache units for caching a plurality of first unused address of a linked list in a link region; and a pointer for always pointing to a head of the linked list in the link region, wherein the linked list links a plurality of second unused addresses.
摘要:
An Ethernet switch with rate control and associated method is provided. Each port in the switch has individual settings of egress/ingress) rate control, which are stored in a register and configured based on required rates. The switch uses data volume that a port can output/input within each unit time to control egress/ingress rate of the port. Further, the egress rate can be precisely controlled by using uniform random numbers provided by an random number generator of the switch, and the ingress rate can be advantageously controlled by combining a proper kind of congestion control, which is performed according to the capability of a device connected to the port, such as full-duplex or half-duplex, and flow control.