# US 2002/0120743 A1 · Splicing persistent connections

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

- Number: US 2002/0120743 A1
- Document ID: US20020120743A1
- Status: Published application
- Kind: A1
- Application number: 09/793,455
- Filed: 2001-02-26
- Published: 2002-08-29
- Earliest claimed: 2001-02-26
- Inventors: Lior Shabtay; Dan Beiser; Ofir Friedman; Eyal Amitai; Guy Kronental
- Web page: https://patentgrep.com/patent/US20020120743A1

## CPC

- H04L 65/1069: Session establishment or de-establishment
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L 67/1001: for accessing one among a plurality of replicated servers
- H04L 67/1008: based on parameters of servers, e.g. available memory or workload (monitoring of computer activity G06F11/30)
- H04L 67/1014: based on the content of a request
- H04L 67/1027: Persistence of sessions during load balancing
- H04L 67/14: Session management (for real-time applications in data packet communications networks H04L65/1066)
- H04L 67/142: Managing session states for stateless protocols; Signalling session states; State transitions; Keeping-state mechanisms
- H04L 69/16: Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L 69/163: In-band adaptation of TCP data exchange; In-band control procedures
- H04L 69/329: in the application layer [OSI layer 7]
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method of connecting a client to a server by a load balancer associated with a plurality of servers. The method includes establishing a first connection for transmission of packets between the load balancer and the client, selecting a server to service the client, and splicing the first connection with a second connection between the load balancer and the selected server, the second connection being established before the first connection.

## Claims

### Claim 1

A method of connecting a client to a server by a load balancer associated with a plurality of servers, comprising:
establishing a first connection for transmission of packets between the load balancer and the client;
selecting a server to service the client; and
splicing the first connection with a second connection between the load balancer and the selected server, the second connection being established before the first connection.

### Claim 2 (depends on 1)

A method according to claim 1, wherein selecting the server comprises selecting a server responsive to the contents of an HTTP request transmitted on the first connection.

### Claim 3 (depends on 1)

A method according to claim 1, wherein selecting the server comprises selecting a server responsive to a number of available connections between the load balancer and one or more of the servers with which the load balancer is associated.

### Claim 4 (depends on 3)

A method according to claim 3, wherein selecting the server comprises selecting a server which has at least one available connection with the load balancer.

### Claim 5 (depends on 1)

A method according to claim 1, comprising monitoring the number of connections between the load balancer and at least one of the servers, such that the number of connections which are not spliced with connections to clients is within a predetermined range, when the total number of connections handled by the server is below a predetermined maximal number of connections allowed by the server.

### Claim 6 (depends on 1)

A method according to claim 1, comprising disconnecting the splicing of the first and second connections and splicing the second connection with a third connection established between the load balancer and a client.

### Claim 7 (depends on 6)

A method according to claim 6, wherein the first and third connections are formed between the load balancer and the same client.

### Claim 8 (depends on 6)

A method according to claim 6, wherein the first and third connections are formed between the load balancer and different clients.

### Claim 9 (depends on 6)

A method according to claim 6, comprising closing the first connection substantially concurrently with disconnecting the splicing of the first and second connections.

### Claim 10 (depends on 6)

A method according to claim 6, comprising splicing the first connection to a fourth connection which connects the load balancer to a server.

### Claim 11 (depends on 10)

A method according to claim 10, wherein the fourth connection comprises a previously established connection.

### Claim 12 (depends on 1)

A method according to claim 1, comprising examining the contents of packets transmitted on the first connection to determine when a new request is transmitted on the first connection.

### Claim 13 (depends on 12)

A method according to claim 12, comprising selecting a server to service the new request and splicing the first connection to a connection leading to the server selected to service the new request.

### Claim 14 (depends on 13)

A method according to claim 13, wherein splicing the first connection to a connection leading to the server selected to service the new request comprises continuing the splicing of the first connection and a currently spliced connection, if the current connection spliced to the first connection leads to the server selected to service the new request.

### Claim 15 (depends on 13)

A method according to claim 13, wherein splicing the first connection to a connection leading to the server selected to service the new request comprises disconnecting the current splicing of the first connection and splicing the first connection to a connection leading to the server selected to service the new request, if the current connection spliced to the first connection does not lead to the server selected to service the new request.

### Claim 16 (depends on 15)

A method according to claim 15, wherein disconnecting the current splicing of the first connection comprises examining the contents of packets transmitted on the first connection to determine when a response to a previous request was transmitted on the connection and disconnecting the current splicing only after the entire response was transmitted to the client.

### Claim 17 (depends on 15)

A method according to claim 15, wherein disconnecting the current splicing of the first connection comprises disconnecting the current splicing only after receiving from the client acknowledgment of receipt of the entire response.

### Claim 18 (depends on 13)

A method according to claim 13, wherein selecting a server to service the new HTTP request gives preference to the server to which the connection currently spliced to the first connection leads.

### Claim 19 (depends on 1)

A method according to claim 1, wherein the first and second connections comprise TCP connections.

### Claim 20

A method of operating a load balancer associated with a plurality of servers, comprising:
establishing one or more connections with at least one of the plurality of servers;
splicing one or more of the established connections to client connections responsive to requests of clients to connect to one or more of the servers; and
monitoring the number of connections between the load balancer and the at least one of the plurality of servers, such that at least one of the connections leading to one or more of the servers is not spliced to connections with clients, when the total number of connections handled by each of the servers is below a respective predetermined maximal number of connections allowed by the server.

### Claim 21 (depends on 20)

A method according to claim 20, wherein monitoring the number of connections comprises monitoring such that the number of connections which are not spliced with connections to clients is within a predetermined range, when the total number of connections handled by the server is below a predetermined maximal number of connections allowed by the server.

### Claim 22 (depends on 21)

A method according to claim 21, wherein monitoring the number of connections comprises monitoring such that the number of connections which are not spliced with connections to clients is equal to a predetermined number except during short transient periods, when the total number of connections handled by the server is below a predetermined maximal number of connections allowed by the server.

### Claim 23 (depends on 21)

A method according to claim 21, wherein the predetermined range is different for at least two of the plurality of servers.

### Claim 24

A method of transmitting packets from a load balancer to a server, comprising:
establishing a TCP connection for transmission of packets between a load balancer and a server; and
transmitting packets received by the load balancer from a plurality of different clients, to the server, on the same TCP connection.

### Claim 25 (depends on 24)

A method according to claim 24, wherein transmitting packets from a plurality of different clients on the connection comprises splicing the connection to a first client connection for transmitting packets from the first client and then splicing the connection to a second client connection for transmitting packets from the second client.

### Claim 26 (depends on 24)

A method according to claim 24, wherein the established TCP connection is kept open for at least an hour.

### Claim 27 (depends on 24)

A method according to claim 24, wherein the established TCP connection is kept open for at least a day.

### Claim 28 (depends on 24)

A method according to claim 24, wherein at least some of the packets are received by the load balancer over non-persistent HTTP connections.

### Claim 29

A method of connecting a client to a server by a load balancer associated with a plurality of servers, comprising:
establishing a first TCP connection between the load balancer and the client;
receiving a plurality of HTTP requests on the first connection;
selecting a server to service each of the HTTP requests, at least partially responsive to a content of the requests;
forwarding the requests to the selected respective servers, the selected servers including at least two servers;
receiving responses to the forwarded requests from the respective servers; and
forwarding the received responses to the client without storing the responses, for repeated use, by the load balancer.

### Claim 30 (depends on 29)

A method according to claim 29, wherein establishing the first connection comprises establishing an HTTP persistent connection.

### Claim 31 (depends on 29)

A method according to claim 29, wherein selecting a server comprises selecting responsive to a URL in the request.

### Claim 32 (depends on 29)

A method according to claim 29, wherein selecting a server comprises selecting responsive to a cookie field in the request.

### Claim 33

A method of connecting a client to a server by a load balancer associated with a plurality of servers, comprising:
establishing a first TCP connection between the load balancer and the client;
splicing the first connection to a second connection between the load balancer and a server;
transmitting a plurality of packets on the spliced first and second connections; and
examining the application level contents of the plurality of packets transmitted on the connections to determine when to disconnect the splicing.

### Claim 34 (depends on 33)

A method according to claim 33, wherein examining the plurality of packets comprises determining when a response message ends and when an acknowledgment of receipt of a last byte of the response was received from the client.

### Claim 35 (depends on 33)

A method according to claim 33, wherein examining the plurality of packets comprises determining when a new request is transmitted on the first connection.

### Claim 36 (depends on 35)

A method according to claim 35, comprising determining for the new request whether it can be handled by the server to which the second connection leads.
