摘要 |
A traffic shaping drive method and a driver are described. The method includes that: when traffic shaping is executed, timing time is set, and a data packet in a cache queue is sent at a preset constant rate in the timing time; when the timing time is reached, sending the data packet is stopped, and sending an ACK acknowledgement packet in the cache queue is started; and after the ACK acknowledgement packet is sent, returning to execute the traffic shaping. By conducting the traffic shaping on a drive layer, the disclosure enables the data packet to be sent at the constant rate, and reserves a certain bandwidth to send the ACK acknowledgement packet in time, thereby avoiding network congestion caused by delayed sending of the ACK acknowledgement packet, and improving the user experience. |