Patent ID: 9325628
Filing Date: 2016-04-26
CPC Classification: H04L

Claim Text:
1. A packet handling method, comprising: receiving, by a forwarding device, a TCP ACK packet sent by a client via a TCP connection; determining, by the forwarding device, that an Acknowledge Number field value in the TCP header of the TCP ACK packet sent by the client is equal to an Acknowledge Number field value in the TCP header of a TCP ACK packet previously sent by the client via the same TCP connection; searching, in response to the determining, in a storage device for a TCP packet for retransmission based on the TCP ACK packet sent by the client; and discarding the TCP ACK packet sent by the client and transmitting the TCP packet for retransmission to the client in response to finding the TCP packet for retransmission in the storage device; determining, by the forwarding device: obtaining, in response to determining (a) or (b), a current receiving window and an advised receiving window of the client; selecting a smaller one of the current receiving window and the advised receiving window as the new receiving window of the client, the receiving window being a current maximum receiving size of the client; and replacing the window field value in TCP header of the TCP ACK packet sent by the client with the new receiving window, and sending the TCP ACK packet with the replaced window field value to a server so as to enable the server to control the size of TCP packets to be sent to the client according to the new receiving window.