Patent ID: 7382728

Claim:
A network switching apparatus with congestion control, the network switching apparatus comprising: a share buffer; a plurality of connection ports; a buffer control device, coupled to the share buffer; a plurality of connection port control devices, coupled to the buffer control device, wherein the connection port control devices correspond to the connection ports one by one, when a connection port control device of the connection port control devices receives a data packet from a source of a connection port, said connection port control device makes a request to the buffer control device, according to a size of the data packet, for allocating at least one segment needed by the data packet, and thereby the data packet is stored in the at least one segment; a forwarding device, coupled to the connection port control devices, and determining a target connection port, for the data packet, according to a type of service of the data packet; and a queue control device, which is coupled to the buffer control device and the forwarding device, wherein the queue control device comprises a plurality of high priority queues and a plurality of low priority queues, one of the high priority queues and one of the low priority queues corresponding to one of the connection port control devices, and wherein the queue control device associates said at least one segment, to one of the priority queues, according to the type of service of the data packet; wherein each one of the connection port control devices respectively includes: a receiving media access control (RMAC) unit, coupled to one workstation or one Local Area Network (LAN), so as to receive the data packet, a receiving control unit, coupled to the receiving media access control unit, the queue control device, and the buffer control device, wherein when the receiving media access control unit receives the data packet, the receiving control unit then makes a request to the buffer control device to allocate said at least one segment, so as to store the data packet, and also makes a request to the queue control device to associate said at least one segment with an associated one of the queues; a transmitting control unit, coupled to the queue control device and the buffer control device, so as to export the data packet from the associated one of the queues, and cause the buffer control device to free the at least one segment, originally occupied by the data packet, and a transmitting media access control (TMAC) unit, coupled to the transmitting control unit and said workstation or LAN, so as to export the data packet to a corresponding one of the connection ports.