# US 8,578,052 B1 · Generation and use of network maps based on race methods

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

- Number: US 8,578,052 B1
- Document ID: US8578052B1
- Status: Granted
- Kind: B1
- Application number: 12/491,798
- Filed: 2009-06-25
- Granted: 2013-11-05
- Earliest claimed: 2004-10-29
- Assignees: Akamai Technologies, Inc.
- Applicants: Zaide Liu; Richard David Day; Eric Sven-Johan Swildens
- Inventors: Zaide Liu; Richard David Day; Eric Sven-Johan Swildens
- Web page: https://patentgrep.com/patent/US8578052B1

## CPC

- H04L 63/102: {Entity profiles}
- H04L 63/12: {Applying verification of the received information (cryptographic mechanisms or cryptographic arrangements for data integrity or data verification H04L9/32)}
- H04L 2463/101: applying security measures for digital rights management
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Techniques are provided for using the mobility support features of IPv6 to allow client and server nodes to communicate without the continuing intervention of a load-balancing node that selected the server node. A load-balancing node intercepts a TCP SYN packet addressed to a virtual IP address. The load-balancing node selects a server node from among multiple server nodes, and sends the packet toward the server node. The server node sends an IPv6 packet toward the client node. The packet contains a Binding Update option that specifies the virtual IP address as a Home Address. This information causes the client node to replace destination addresses in outgoing IP packets so that packets that the client node would have sent toward the virtual IP address are sent toward the selected server node's IP address instead. Consequently, the IP packets are routed toward the selected server node instead of the load-balancing node.

## Claims

### Claim 1

A computer-implemented method, comprising:
generating a network map that reflects latencies between a plurality of clients and a plurality of servers;
receiving, at a load-balancing node, a request from a client;
determining, at the load-balancing node, in response to receiving the request from the client and based at least in part on the network map, that a particular server has less latency to the client than does another server in the plurality of servers; and
the load-balancing node selecting the particular server to handle the request;
wherein generating the network map comprises:
conducting at least one race between two or more servers, in which each of the two or more servers is part of an attempt to establish a connection with a given client at substantially the same time, and as a result of the at least one race, one of the two or more servers establishes a connection with the given client before another, if any, of the two or more servers does so, thereby reflecting relative latency amongst the two or more servers to the given client; and,
at the one of the two or more servers that first established the connection with the given client, (i) logging information identifying the given client, in response to the establishment of the connection with the given client, and (ii) sending the information identifying the given client from the one of the two or more servers, for use in generating the network map; and,
generating the network map based at least in part on the information.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
receiving, at the load-balancing node, a request from a second client that is different than the client;
determining, at the load-balancing node, in response to receiving the request from the second client and based at least in part on the network map, that a second particular server has less latency to the second client than does another server in the plurality of servers; and
the load-balancing node selecting the second particular server to handle the request from the second client;
wherein the second particular server is in a different local area network (LAN) from the particular server.

### Claim 3 (depends on 1)

The method of claim 1, wherein the network map indicates, for a given client, a server that has a least amount of latency relative to that given client among servers in the plurality of servers, as determined by the at least one race.

### Claim 4 (depends on 1)

The method of claim 1, wherein the network map indicates, for a given client subnet, a server that has a least amount of latency relative to that given subnet among servers in the plurality of servers, as determined by the at least one race.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
determining, at the load balancing node, after selecting the particular server to handle the request, that the particular server has stopped operating;
receiving, at the load-balancing node, after determining that the particular server has stopped operating, a second request from the client;
determining, at the load-balancing node, in response to receiving the second request from the client and based at least in part on the network map, that a second particular server, which is different than the particular server, has less latency to the client than does another server in the plurality of servers; and
the load-balancing node selecting the second particular server to handle the second request from the client.

### Claim 6 (depends on 1)

The method of claim 1, wherein the information identifying the given client comprises a client IP address.

### Claim 7 (depends on 1)

The method of claim 1, wherein establishment of a connection with the given client by a winning one of the two or more servers prevents another of the two or more servers from establishing a connection with the given client.

### Claim 8 (depends on 1)

The method of claim 1, wherein the at least one race comprises a plurality of races, and generating the network map comprises: for a period of time, conducting the plurality of races between the two or more servers; ending the races after the period of time ends; and then generating the network map.

### Claim 9 (depends on 1)

The method of claim 1, wherein the connection is a TCP connection.

### Claim 10

An apparatus for enabling communication between nodes, the apparatus comprising one or more computers that have one or more processors and computer memory holding instructions that, upon execution by the one or more processors, cause the apparatus to:
(a) generate a network map that reflects latencies between a plurality of clients and a plurality of servers;
(b) receive a request from a client;
(c) determine, in response to receiving the request from the client, and based at least in part on the network map, that a particular server has less latency to the client than does another server in the plurality of servers; and
(d) select the particular server to handle the request;
(e) wherein generating the network map comprises:
(i) conducting at least one race between two or more servers, in which each of the two or more servers is part of an attempt to establish a connection with a given client at substantially the same time, and as a result of the at least one race, one of the two or more servers establishes a connection with the given client before another, if any, of the two or more servers does so, thereby reflecting relative latency amongst the two or more servers to the given client; and,
(ii) receiving information identifying the given client sent from the one of the two or more servers for use in generating the network map, the information having been logged by the one of the two or more servers that first established the connection with the given client in response to the establishment of the connection with the given client; and,
(iii) generating the network map based at least in part on the information.

### Claim 11 (depends on 10)

The apparatus of claim 10 wherein upon execution by the one or more processors, the instructions further cause the apparatus to:
receive a request from a second client that is different than the client;
determine, in response to receiving the request from the second client, and based at least in part on the network map, that a second particular server has a less latency to the second client than does another server in the plurality of servers; and
select the second particular server to handle the request from the second client;
wherein the second particular server is in a different local area network (LAN) from the particular server.

### Claim 12 (depends on 10)

The apparatus of claim 10, wherein the information identifying the given client comprises a client IP address.

### Claim 13 (depends on 10)

The apparatus of claim 10, wherein establishment of a connection with the given client by a winning one of the two or more servers prevents another of the two or more servers from establishing a connection with the given client.

### Claim 14 (depends on 10)

The apparatus of claim 10, wherein the at least one race comprises a plurality of races, and generating the network map comprises: for a period of time, conducting the plurality of races between the two or more servers; ending the races after the period of time ends; and then generating the network map.

### Claim 15 (depends on 10)

The apparatus of claim 10, wherein the connection is a TCP connection.

### Claim 16 (depends on 10)

The apparatus of claim 10, wherein the network map indicates, for a given client, a server that has a least amount of latency relative to that given client among servers in the plurality of servers, as determined by the at least one race.

### Claim 17 (depends on 10)

The apparatus of claim 10, wherein the network map indicates, for a given client subnet, a server that has a least amount of latency relative to that given subnet among servers in the plurality of servers, as determined by the at least one race.

### Claim 18

A non-transitory machine-readable medium storing one or more sequences of instructions, wherein execution of the one or more sequences of instructions by one or more processors causes one or more computing machines to perform steps comprising:
generating a network map that reflects latencies between a plurality of clients and a plurality of servers;
receiving a request from a client;
in response to receiving the request from the client, and based at least in part on the network map, determining that a particular server has less latency to the client than does another server in the plurality of servers; and
selecting the particular server to handle the request;
wherein generating the network map comprises:
conducting at least one race between two or more servers, in which each of the two or more servers is part of an attempt to establish a connection with a given client at substantially the same time, and as a result of the at least one race, one of the two or more servers establishes a connection with the given client before another, if any, of the two or more servers does so, thereby reflecting relative latency amongst the two or more servers to the given client; and,
at the one of the two or more servers that first established the connection with the given client, (i) logging information identifying the given client, in response to the establishment of the connection with the given client, and (ii) sending the information identifying the given client from the one of the two or more servers for use in generating the network map; and,
generating the network map based at least in part on the information.

### Claim 19 (depends on 18)

The machine-readable medium of claim 18, wherein the steps further comprise:
receiving a request from a second client that is different than the first client;
determining, in response to receiving the request from the second client and based at least in part on the network map, that a second particular server has less latency to the second client than does another server in the plurality of servers; and
selecting the second particular server to handle the request from the second client;
wherein the second particular server is in a different local area network (LAN) from the particular server.

### Claim 20 (depends on 18)

The machine-readable medium of claim 18, wherein the network map indicates, for a given client, a server that has a least amount of latency relative to that given client among servers in the plurality of servers, as determined by the at least one race.

### Claim 21 (depends on 18)

The machine-readable medium of claim 18, wherein the network map indicates, for a given client subnet, a server that has a least amount of latency relative to that given subnet among servers in the plurality of servers, as determined by the at least one race.

### Claim 22 (depends on 18)

The machine-readable medium of claim 18, wherein the steps further comprise:
determining after selecting the particular server to handle the request, that the particular server has stopped operating;
receiving after determining that the particular server has stopped operating, a second request from the client;
determining, in response to receiving the second request from the client and based at least in part on the network map, that a second particular server, which is different than the particular server, has less latency to the client than does another server in the plurality of servers; and
selecting the second particular server to handle the second request from the client.

### Claim 23 (depends on 18)

The machine-readable medium of claim 18, wherein the information identifying the given client comprises a client IP address.

### Claim 24 (depends on 18)

The machine-readable medium of claim 18, wherein establishment of a connection with the given client by a winning one of the two or more servers prevents another of the two or more servers from establishing a connection with the given client.

### Claim 25 (depends on 18)

The machine-readable medium of claim 18, wherein the at least one race comprises a plurality of races, and generating the network map comprises: for a period of time, conducting the plurality of races between the two or more servers; ending the races after the period of time ends; and then generating the network map.

### Claim 26 (depends on 18)

The machine-readable medium of claim 18, wherein the connection is a TCP connection.
