# US 2021/0344603 A1 · Managing transmission control protocol (tcp) traffic

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0344603 A1
- Document ID: US20210344603A1
- Status: Published application
- Kind: A1
- Application number: 17/321,890
- Filed: 2021-05-17
- Published: 2021-11-04
- Earliest claimed: 2019-08-29
- Assignees: Hughes Network Systems, LLC
- Applicants: Hughes Network Systems, LLC
- Inventors: Ganeshan Ramachandran; Robert James Torres; George Choquette
- Web page: https://patentgrep.com/patent/US20210344603A1

## CPC

- H04L 47/193: at the transport layer, e.g. TCP related
- H04B 7/18513: {Transmission in a satellite or space-based system}
- H04L 47/11: Identifying congestion
- H04L 47/27: Evaluation or update of window size, e.g. using information derived from acknowledged [ACK] packets
- H04L 69/163: In-band adaptation of TCP data exchange; In-band control procedures
- H04L 69/168: specially adapted for link layer protocols, e.g. asynchronous transfer mode [ATM], synchronous optical network [SONET] or point-to-point protocol [PPP]
- H04W 28/0273: {adapting protocols for flow control or congestion control to wireless environment, e.g. adapting transmission control protocol [TCP] (wireless network protocols or protocol adaptations to wireless operation, e.g. wireless application protocol H04W80/00)}
- H04L 67/59: Providing operational support to end devices by off-loading in the network or by emulation, e.g. when they are unavailable
- H04W 80/06: Transport layer protocols, e.g. TCP [Transport Control Protocol] over wireless {(transmission control protocol/Internet protocol [TCP/IP] or user datagram protocol [UDP] H04L69/16)}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- H04B: TRANSMISSION
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)

## Abstract

A terrestrial terminal enables communications, over a network connection, between a local host of one or more connected local hosts and a remote host. The terrestrial terminal is configured to perform operations comprising: receiving, from the remote host, a network packet for the local host; obtaining, from the network packet, an included TCP segment; determining, from the TCP segment, a receive window size advertised by the remote host; computing, using one or more characteristics of the network connection, a target receive window size; comparing the target receive window size with the advertised receive window size; and in response to determining that the target receive window size is different from the advertised receive window size: modifying the TCP segment by replacing the advertised receive window size with the target receive window size, and forwarding the network packet with the modified TCP segment to the local host.

## Claims

### Claim 1

A system comprising:
a terrestrial terminal connecting a local host with a remote host over a network connection, wherein the terrestrial terminal is configured to perform operations comprising:
obtaining a receive window size advertised by the remote host for a Transmission Control Protocol (TCP) connection between the local host and the remote host;
determining that the advertised receive window size is different from a target receive window size for the network connection;
in response to the determining, modifying TCP segments in one or more network packets received from the remote host by replacing the advertised receive window size with the target receive window size in the TCP segments; and
forwarding the one or more network packets with respective modified TCP segments to the local host.

### Claim 2 (depends on 1)

The system of claim 1, wherein the operations further comprise:
determining the target receive window size, wherein the determining comprises computing the target receive window size based at least on one or more characteristics of the network connection.

### Claim 3 (depends on 1)

The system of claim 1, wherein the one or more network packets received from the remote host includes a first network packet received in response to sending, to the remote host, a TCP connection request, and
wherein the TCP segment included in the first network packet corresponds to a TCP SYN/ACK segment.

### Claim 4 (depends on 3)

The system of claim 3, wherein the operations further comprise:
receiving, from the local host, a plurality of network packets, each network packet including a TCP data segment;
determining that an aggregate size of TCP data segments included in the plurality of network packets is greater than the advertised receive window size of the remote host;
in response to the determination:
selecting a subset of the plurality of network packets, wherein an aggregate size of TCP data segments included in the subset is within the advertised receive window size,
sending, to the remote host over the network connection, the selected subset of the network packets, and
storing, in memory coupled to the terrestrial terminal, a remainder of the plurality of network packets;
upon sending the selected subset to the remote host, receiving a new network packet from the remote host;
obtaining, from the new network packet, a TCP ACK segment acknowledging successful reception of the selected subset of network packets by the remote host; and
in response to obtaining the TCP ACK segment from the new network packet sending one or more of the remainder of the plurality of network packets to the remote host over the network connection.

### Claim 5 (depends on 3)

The system of claim 3, wherein the operations further comprise:
receiving, from the remote host, a new network packet;
obtaining, from the new network packet, a TCP segment that includes the advertised receive window size;
following receiving the new network packet, computing, based at least on one or more characteristics of the network connection, a new target receive window size for the network connection;
comparing the new target receive window size with the advertised receive window size;
determining, based on the comparison, that the new target receive window size is different from the advertised receive window size; and
in response to the determining,
modifying the TCP segment by replacing the advertised receive window size with the new target receive window size in the TCP segment, and
forwarding the new network packet with the modified TCP segment to the local host.

### Claim 6 (depends on 5)

The system of claim 5, wherein determining that the new target receive window size is different from the advertised receive window size comprises:
determining that the new target receive window size is greater than the advertised receive window size.

### Claim 7 (depends on 3)

The system of claim 3, wherein the target receive window size is greater than the advertised receive window size, and wherein the operations further comprise:
reducing the target receive window size to the advertised receive window size based on a local condition;
receiving, from the remote host, new network packets, each including a TCP segment indicating the advertised receive window size; and
forwarding, to the local host, the new network packets, including modifying the TCP segment in each successive network packet by replacing the advertised receive window size with a successively lower target receive window size, wherein a last network packet forwarded to the local host includes a lowered target receive window size in the corresponding TCP segment equal to the advertised receive window size.

### Claim 8 (depends on 3)

The system of claim 3, wherein the operations further comprise:
receiving, from the remote host over the network connection, one or more new network packets, each new network packet including a TCP data segment;
forwarding, to the local host, the one or more new network packets;
receiving, from the local host, a first network packet that includes a first TCP ACK segment acknowledging successful reception by the local host of a new network packet of the one or more new network packets;
upon receiving the first network packet, starting a timer and storing the first network packet in memory coupled to the terrestrial terminal;
before expiration of the timer, receiving, from the local host, a second network packet that includes a second TCP ACK segment acknowledging successful reception of another new network packet of the one or more new network packets by the local host; and
in response to receiving the second network packet before expiration of the timer:
sending the second network packet to the remote host over the network connection, and
dropping the first network packet.

### Claim 9

A method performed by a terrestrial terminal connecting a local host with a remote host over a network connection, the method comprising:
obtaining a receive window size advertised by the remote host for a Transmission Control Protocol (TCP) connection between the local host and the remote host;
determining that the advertised receive window size is different from a target receive window size for the network connection;
in response to the determining, modifying TCP segments in one or more network packets received from the remote host by replacing the advertised receive window size with the target receive window size in the TCP segments; and
forwarding the one or more network packets with respective modified TCP segments to the local host.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
determining the target receive window size, wherein the determining comprises computing the target receive window size based at least on one or more characteristics of the network connection.

### Claim 11 (depends on 9)

The method of claim 9, wherein the one or more network packets received from the remote host includes a first network packet received in response to sending, to the remote host, a TCP connection request, and
wherein the TCP segment included in the first network packet corresponds to a TCP SYN/ACK segment.

### Claim 12 (depends on 11)

The method of claim 11, further comprising:
receiving, from the local host, a plurality of network packets, each network packet including a TCP data segment;
determining that an aggregate size of TCP data segments included in the plurality of network packets is greater than the advertised receive window size of the remote host;
in response to the determination:
selecting a subset of the plurality of network packets, wherein an aggregate size of TCP data segments included in the subset is within the advertised receive window size,
sending, to the remote host over the network connection, the selected subset of the network packets, and
storing, in memory coupled to the terrestrial terminal, a remainder of the plurality of network packets;
upon sending the selected subset to the remote host, receiving a new network packet from the remote host;
obtaining, from the new network packet, a TCP ACK segment acknowledging successful reception of the selected subset of network packets by the remote host; and
in response to obtaining the TCP ACK segment from the new network packet sending one or more of the remainder of the plurality of network packets to the remote host over the network connection.

### Claim 13 (depends on 11)

The method of claim 11, further comprising:
receiving, from the remote host, a new network packet;
obtaining, from the new network packet, a TCP segment that includes the advertised receive window size;
following receiving the new network packet, computing, based at least on one or more characteristics of the network connection, a new target receive window size for the network connection;
comparing the new target receive window size with the advertised receive window size;
determining, based on the comparison, that the new target receive window size is different from the advertised receive window size; and
in response to the determining,
modifying the TCP segment by replacing the advertised receive window size with the new target receive window size in the TCP segment, and
forwarding the new network packet with the modified TCP segment to the local host.

### Claim 14 (depends on 13)

The method of claim 13, wherein determining that the new target receive window size is different from the advertised receive window size comprises:
determining that the new target receive window size is greater than the advertised receive window size.

### Claim 15 (depends on 11)

The method of claim 11, wherein the target receive window size is greater than the advertised receive window size, the method further comprising:
reducing the target receive window size to the advertised receive window size based on a local condition;
receiving, from the remote host, new network packets, each including a TCP segment indicating the advertised receive window size; and
forwarding, to the local host, the new network packets, including modifying the TCP segment in each successive network packet by replacing the advertised receive window size with a successively lower target receive window size, wherein a last network packet forwarded to the local host includes a lowered target receive window size in the corresponding TCP segment equal to the advertised receive window size.

### Claim 16 (depends on 11)

The method of claim 11, further comprising:
receiving, from the remote host over the network connection, one or more new network packets, each new network packet including a TCP data segment;
forwarding, to the local host, the one or more new network packets;
receiving, from the local host, a first network packet that includes a first TCP ACK segment acknowledging successful reception by the local host of a new network packet of the one or more new network packets;
upon receiving the first network packet, starting a timer and storing the first network packet in memory coupled to the terrestrial terminal;
before expiration of the timer, receiving, from the local host, a second network packet that includes a second TCP ACK segment acknowledging successful reception of another new network packet of the one or more new network packets by the local host; and
in response to receiving the second network packet before expiration of the timer:
sending the second network packet to the remote host over the network connection, and
dropping the first network packet.

### Claim 17

One or more non-transitory machine-readable media storing instructions that, when executed, are configured to cause one or more processors to perform operations comprising:
obtaining, at a terrestrial terminal connecting a local host with a remote host over a network connection, a receive window size advertised by the remote host for a Transmission Control Protocol (TCP) connection between the local host and the remote host;
determining that the advertised receive window size is different from a target receive window size for the network connection;
in response to the determining, modifying TCP segments in one or more network packets received from the remote host by replacing the advertised receive window size with the target receive window size in the TCP segments; and
forwarding the one or more network packets with respective modified TCP segments to the local host.

### Claim 18 (depends on 17)

The one or more non-transitory machine-readable media of claim 17, wherein the one or more network packets received from the remote host includes a first network packet received in response to sending, to the remote host, a TCP connection request and the TCP segment included in the first network packet corresponds to a TCP SYN/ACK segment, and wherein the operations further comprise:
receiving, from the local host, a plurality of network packets, each network packet including a TCP data segment;
determining that an aggregate size of TCP data segments included in the plurality of network packets is greater than the advertised receive window size of the remote host;
in response to the determination:
selecting a subset of the plurality of network packets, wherein an aggregate size of TCP data segments included in the subset is within the advertised receive window size,
sending, to the remote host over the network connection, the selected subset of the network packets, and
storing, in memory coupled to the terrestrial terminal, a remainder of the plurality of network packets;
upon sending the selected subset to the remote host, receiving a new network packet from the remote host;
obtaining, from the new network packet, a TCP ACK segment acknowledging successful reception of the selected subset of network packets by the remote host; and
in response to obtaining the TCP ACK segment from the new network packet sending one or more of the remainder of the plurality of network packets to the remote host over the network connection.

### Claim 19 (depends on 18)

The one or more non-transitory machine-readable media of claim 18, wherein the operations further comprise:
receiving, from the remote host, a new network packet;
obtaining, from the new network packet, a TCP segment that includes the advertised receive window size;
following receiving the new network packet, computing, based at least on one or more characteristics of the network connection, a new target receive window size for the network connection;
comparing the new target receive window size with the advertised receive window size;
determining, based on the comparison, that the new target receive window size is different from the advertised receive window size; and
in response to the determining,
modifying the TCP segment by replacing the advertised receive window size with the new target receive window size in the TCP segment, and
forwarding the new network packet with the modified TCP segment to the local host.

### Claim 20 (depends on 18)

The one or more non-transitory machine-readable media of claim 18, wherein the target receive window size is greater than the advertised receive window size, and wherein the operations further comprise:
reducing the target receive window size to the advertised receive window size based on a local condition;
receiving, from the remote host, new network packets, each including a TCP segment indicating the advertised receive window size; and
forwarding, to the local host, the new network packets, including modifying the TCP segment in each successive network packet by replacing the advertised receive window size with a successively lower target receive window size, wherein a last network packet forwarded to the local host includes a lowered target receive window size in the corresponding TCP segment equal to the advertised receive window size.
