Patent ID: 7756991

Claim:
A data-packet processing method for transferring a data packet in a network system, comprising steps of: determining a type of the data packet to be transferred; defining a buffer with a plurality of private storage zones and a global storage zone, wherein each of the plurality of private storage zones corresponds to one type of data packet, and the global storage zone is common to a plurality of types of data packets; determining that the buffer is in a packet-accepting storage state when one of the plurality of private storage zones, which corresponds to the type of the data packet to be transferred, is not full or when the one of the plurality of private storage zones is full but the global storage zone is not so full as to a specified extent; and storing the data packet to be transferred into the buffer if the buffer is in the packet-accepting storage state; wherein the specified extent varies with the type of the data packet to be transferred; wherein the type of the data packet is determined according to contents of Level 2 to Level 7 (L2-L7 contents) recorded in the data packet; and wherein the step of storing the data packet to be transferred into the buffer comprises steps of: storing the data packet in one of the plurality of private storage zones corresponding to the type of the data packet when the corresponding private storage zone is not full; and storing the data packet in the global storage zone when the corresponding private storage zone is full but the global storage zone is not so full as to the specified extent.