Abstract:
A switch controller using a congestion control method can relieve congestion in a network. The Ethernet switch controller has the capacity to select a suitable congestion control mode according to each connection port and state of the connected device. If a flow control mode is selected, the switch controller issues a flow control frame and waits for the passing of a guard period roughly equivalent to a period of about inputting three packets. If the connected device continues to transmit network packets after the guard period, the switch controller switches from the flow control mode to a drop control mode. Hence, the received packets are discarded and congestion is prevented. Consequently, the switch controller of this invention can still carry out congestion control operation when the switch controller is connected to a device having no standard flow control capability.
Abstract:
A method of early release of buffers and a related media access control chip are disclosed, wherein the method includes the steps of: receiving an Ethernet packet from a port, allocating a buffer area having a plurality of buffers stitched sequentially for storing the Ethernet packet, transmitting the Ethernet packet from the destination port, and releasing the buffers when the transmission starts if the destination port is full-duplex transmission mode, or releasing the buffers after at least 128 bytes of the packet is transmitted if the destination port is half-duplex transmission mode. The Ethernet packet can be either uni-cast, multi-cast or broadcast.
Abstract:
A method and system is provided for use on a switching hub in a packet-switching network for handling the output queuing of received packets in the switching hub to be more efficient and cost-effective. This method and system is characterized in the provision of a broadcast output queue in addition to the output queues at the ports of the switching hub, with the broadcast output queue being exclusively used for sequencing broadcast packets and the output queues being used exclusively for sequencing unicast packets. When a broadcast packet is received, the method and system assigns a free-list link node to the broadcast output queue, but not to the output queues, and meanwhile adds one to the broadcast count in each of the last link node in each of the output queues. When a certain port completes the outputting of all associated unicast packets, it is checked whether the broadcast count in the last link node in each output queue is zero or nonzero; if nonzero, the switching hub then outputs every broadcast packet indicated by the broadcast count. The disclosed method and system not only allows a reduced number of memory accesses as compared to the prior art but also requires a low memory capacity to implement, and therefore is more efficient in operation and more cost-effective to implement than the prior art.