摘要 |
Disclosed are a traffic shaping drive method and a driver. The method comprises: when traffic shaping is executed, setting a timing time, and sending a data packet in a cache queue in accordance with a preset constant rate in the timing time; when the timing time is reached, stopping sending the data packet, and starting to send an ACK acknowledgement packet in the cache queue; and after the ACK acknowledgement packet is sent, returning to execute the traffic shaping. By conducting traffic shaping on a drive layer, the present invention enables a data packet to be sent in accordance with a constant rate, and reserves a certain bandwidth to send an ACK acknowledgement packet in time, thereby avoiding the condition of network congestion caused by the delayed sending of the ACK acknowledgement packet, and improving the user experience. |