A network device, comprising: a traffic management, TM, implementation apparatus, a processor, and a switching fabric chip and a communication port, wherein: the processor comprises a first interface and a second interface, wherein the processor communicates with the TM implementation apparatus through the first interface, and communicates with the switching fabric chip through the second interface; the communication port is used to communicate with another network device, wherein after the network device receiving a data packet from the communication port, the network device sends the data packet to the processor for processing by using the switching fabric chip; the switching fabric chip is configured to send the data packet to the processor through the second interface; the processor is configured to parse the data packet to acquire a flow identifier; acquire a queue identifier of a corresponding flow queue according to the flow identifier and store the data packet into the flow queue; and send a packet management request to the TM implementation apparatus through the first interface, wherein the packet management request comprises the queue identifier; the TM implementation apparatus is configured to receive the packet management request; perform traffic management on the packet management request; generate a packet management response according to a management result, wherein the packet management response comprises a management indication and the queue identifier, the management indication is a discard processing indication or a forward processing indication; and send the packet management response to the processor; and the processor is further configured to receive the packet management response through the first interface, and process, according to the management indication, the data packet in the flow queue corresponding to the queue identifier. the processor comprises a first interface and a second interface, wherein the processor communicates with the TM implementation apparatus through the first interface, and communicates with the switching fabric chip through the second interface; the communication port is used to communicate with another network device, wherein after the network device receiving a data packet from the communication port, the network device sends the data packet to the processor for processing by using the switching fabric chip; the switching fabric chip is configured to send the data packet to the processor through the second interface; the processor is configured to parse the data packet to acquire a flow identifier; acquire a queue identifier of a corresponding flow queue according to the flow identifier and store the data packet into the flow queue; and send a packet management request to the TM implementation apparatus through the first interface, wherein the packet management request comprises the queue identifier; the TM implementation apparatus is configured to receive the packet management request; perform traffic management on the packet management request; generate a packet management response according to a management result, wherein the packet management response comprises a management indication and the queue identifier, the management indication is a discard processing indication or a forward processing indication; and send the packet management response to the processor; and the processor is further configured to receive the packet management response through the first interface, and process, according to the management indication, the data packet in the flow queue corresponding to the queue identifier.