# US 8,578,022 B2 · Adaptive idle timeout for TCP connections in ESTAB state

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

- Number: US 8,578,022 B2
- Document ID: US8578022B2
- Status: Granted
- Kind: B2
- Application number: 13/009,516
- Filed: 2011-01-19
- Published: 2012-07-19
- Granted: 2013-11-05
- Earliest claimed: 2011-01-19
- Assignees: Cisco Technology, Inc.
- Applicants: Mitesh Bhate
- Inventors: Mitesh Bhate
- Web page: https://patentgrep.com/patent/US8578022B2

## CPC

- H04L 63/1458: {Denial of Service}
- H04L 63/1425: {Traffic logging, e.g. anomaly detection}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

In various embodiments, a method may be provided comprising: determining a number of established TCP connections to a server; comparing the number of established TCP connections to the server to a upper threshold value; and if the number of established TCP connections to the server is greater than or equal to the upper threshold value, determine an adaptive idle timeout value based on the relationship between the number of established TCP connections to a server and the upper threshold value.

## Claims

### Claim 1

A method comprising:
determining a number of established transmission control protocol (TCP) connections to a server;
comparing the number of established TCP connections to the server to a upper threshold value; and
if the number of established TCP connections to the server is greater than or equal to the upper threshold value, determine an adaptive idle timeout value based on a relationship between the number of established TCP connections to a server and the upper threshold value by multiplying a previous adaptive idle timeout value with an alpha value.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
scanning for idle TCP connections; and
clearing idle TCP connections that have been idle for a period longer than the adaptive idle timeout value.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
decreasing the adaptive idle timeout by multiplication with an alpha value when the number of established TCP connections to the server is greater than or equal to the upper threshold value.

### Claim 4 (depends on 3)

The method of claim 3, wherein the upper threshold value is a user-configurable value.

### Claim 5 (depends on 3)

The method of claim 3, wherein the alpha value is one of: user-configured or automatically calculated based on system conditions.

### Claim 6 (depends on 5)

The method of claim 5, further comprising: determining a lower threshold value; and disabling the adaptive idle timeout value when the number of established TCP connections to the server is lower than the lower threshold value.

### Claim 7 (depends on 5)

The method of claim 5, further comprising:
decreasing the alpha value as the number of established TCP connections to the server increases.

### Claim 8 (depends on 5)

The method of claim 5, further comprising:
decreasing the alpha value as the rate of newly established TCP connections to the server increases.

### Claim 9 (depends on 7)

The method of claim 7, further comprising:
dividing the difference between the upper threshold value and a maximum number of available connections into equal intervals; and
decreasing the alpha value as the number of established TCP connections to the server reaches each interval.

### Claim 10 (depends on 9)

The method of claim 9, wherein the number of intervals is a user-configurable value.

### Claim 11

A method comprising:
scanning established transmission control protocol (TCP) connections to a server to identify idle and active connections; and
removing TCP connections that have been idle for a period longer than an adaptive idle timeout, wherein the adaptive idle timeout value is determined based on a determination of whether a total number of established TCP connections is greater than an upper threshold value by multiplying a previous adaptive idle timeout value with an alpha value.

### Claim 12 (depends on 11)

The method of claim 11, further comprising:
decreasing the adaptive idle timeout value as the total number of established TCP connections increases.

### Claim 13 (depends on 12)

The method of claim 12, wherein the step of decreasing the adaptive idle timeout value only occurs when the total number of established TCP connections is above an upper threshold value.

### Claim 14 (depends on 12)

The method of claim 12, further comprising: defining a plurality of interval thresholds which trigger a modification of the adaptive idle timeout value.

### Claim 15

A system comprising: a server device, wherein the server device is programmed to:
determine a number of established transmission control protocol (TCP) connections to a server;
establish whether the server is in attack time or peace time;
if the sever is in attack time, discontinuing the use of keepalives;
compare the number of established TCP connections to the server to an upper threshold value; and
if the number of established TCP connections to the server is greater than or equal to the upper threshold value, determine an adaptive idle timeout value based on a relationship between the number of established TCP connections to the server and the upper threshold value by multiplying a previous adaptive idle timeout value with an alpha value.

### Claim 16 (depends on 15)

The system of claim 15, wherein the server device is a proxy device.

### Claim 17 (depends on 15)

The system of claim 15, further comprising a scanner programmed to determine a time which each established TCP connection has been idle.

### Claim 18 (depends on 16)

The system of claim 16, wherein the proxy device is programmed to remove TCP connections which have been idle for a period longer than the adaptive idle timeout value.

### Claim 19 (depends on 15)

The system of claim 15, wherein the server device is further programmed to:
decrease the adaptive idle timeout by multiplication with an alpha value when the number of established TCP connections to the server is greater than or equal to the upper threshold value.

### Claim 20 (depends on 19)

The system of claim 19, wherein the server device is further programmed to: decrease the alpha value as one of: the number of established TCP connections to the server increases or a rate of newly established TCP connection to the server increases.
