# US 9,354,941 B2 · Load balancing for single-address tenants

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

- Number: US 9,354,941 B2
- Document ID: US9354941B2
- Status: Granted
- Kind: B2
- Application number: 14/804,381
- Filed: 2015-07-21
- Published: 2016-01-28
- Granted: 2016-05-31
- Earliest claimed: 2012-07-12
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Ashwin Murthy; Parveen Kumar Patel; Deepak Bansal; Marios Zikos
- Web page: https://patentgrep.com/patent/US9354941B2

## CPC

- H04L 67/1027: Persistence of sessions during load balancing
- G06F 9/5083: {Techniques for rebalancing the load in a distributed system}
- G06F 15/173: using an interconnection network, e.g. matrix, shuffle, pyramid, star, snowflake
- H04L 45/72: {Routing based on the source address}
- H04L 45/76: Routing in software-defined topologies, e.g. routing between virtual machines
- H04L 67/10: in which an application is distributed across nodes in the network (software deployment G06F8/60; multiprogramming arrangements G06F9/46)
- H04L 67/34: {involving the movement of software or configuration parameters (network booting or remote initial program loading [RIPL] G06F9/4416)}
- H04L 45/38: {Flow based routing}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

When a load balancer detects that a virtual address is associated with a single destination address, the load balancer sets a flag to distinguish the virtual address from virtual addresses that are associated with a plurality of destination addresses. The load balancer instructs the router to bypass the load balancer for network packets that are addressed to the virtual address, and refrains from storing subsequent flow state for the virtual address. When the virtual address is to be scaled up with an additional destination address, the load balancer sets a flag to distinguish the virtual address from virtual addresses that are associated with a single destination addresses. The load balancer instructs the router to route network packets that are addressed to the virtual address through the load balancer, instead of bypassing the load balancer, and starts storing flow state for the virtual address.

## Claims

### Claim 1

A computer-readable storage device containing computer-executable instructions which, when executed by one or more processors, cause the one or more processors to perform a computer-implemented method for configuring load balancing for a virtual address that maps to a single address, and the computer-implemented method comprising:
an act of detecting at a load balancer that a virtual address that is being managed by the load balancer is associated with only a single destination address;
in response to detecting, an act of the load balancer setting a flag for the virtual address to distinguish the virtual address from other virtual addresses that are associated with a plurality of destination addresses;
in response to detecting, an act of the load balancer sending a configuration message to a router, the configuration message interpretable by the router as an instruction to send network packets that are addressed to the virtual address to the destination address in a manner that bypasses the load balancer; and
subsequent to sending the configuration message to the router, an act of the load balancer refraining from storing subsequent flow state for the virtual address.

### Claim 2

A computer-implemented method for configuring load balancing for a virtual address that maps to a single address, the computer-implemented method being performed by one or more processors executing computer executable instructions for the computer-implemented method, and the computer-implemented method comprising:
an act of detecting at a load balancer that a virtual address that is being managed by the load balancer is associated with only a single destination address;
in response to detecting, an act of the load balancer setting a flag for the virtual address to distinguish the virtual address from other virtual addresses that are associated with a plurality of destination addresses;
in response to detecting, an act of the load balancer sending a configuration message to a router, the configuration message interpretable by the router as an instruction to send network packets that are addressed to the virtual address to the destination address in a manner that bypasses the load balancer; and
subsequent to sending the configuration message to the router, an act of the load balancer refraining from storing subsequent flow state for the virtual address.

### Claim 3 (depends on 2)

The method as recited in claim 2, wherein the single destination address is associated with a virtual machine.

### Claim 4 (depends on 3)

The method as recited in claim 3, wherein the single destination address is a first single destination address and the configuration message is a first configuration message, and wherein the load balancer is also configured to:
detect that the virtual machine is now only associated with a second single destination address; and
in response to detecting, send a second configuration message to the router, the second configuration message interpretable by the router as an instruction to send network packets that are addressed to the virtual address to the second single destination address in a manner that bypasses the load balancer.

### Claim 5 (depends on 2)

The method as recited in claim 2, wherein, subsequent to sending the configuration message to the router, an agent along a path between the router and the destination address:
receives a network packet that is addressed to the virtual address; and
translates the network packet so that it is addressed to the associated single destination address.

### Claim 6 (depends on 5)

The method as recited in claim 5, wherein the agent resides at a virtualization host computer system.

### Claim 7 (depends on 5)

The method as recited in claim 5, wherein the agent resides at a computer system that is associated with the destination address.

### Claim 8 (depends on 5)

The method as recited in claim 5, wherein the agent detects whether the network packet was sent by the router or by the load balancer, and translates the network packet when it was sent by the router.

### Claim 9 (depends on 5)

The method as recited in claim 5, wherein the agent translating the network packet comprises the agent performing a Network Address Translation (NAT) operation on the network packet.

### Claim 10 (depends on 9)

The method as recited in claim 9, wherein the agent performing a NAT operation on the network packet comprises the agent changing a destination address of the network packet from the virtual address to the destination address.

### Claim 11 (depends on 2)

The method as recited in claim 2, wherein the load balancer is also configured to:
detect that a virtual machine that is associated with the single destination address has migrated from a first virtualization host computer to a second virtualization host computer; and
in response to detecting, sending a configuration message to the router, the configuration message interpretable by the router as an instruction to send network packets for the virtual address to the second virtualization host computer.

### Claim 12

A computer system comprising:
a system architecture for configuring load balancing for a virtual address that maps to a single address, the system architecture being provided by one or more processors executing computer executable instructions for a computer-implemented method, and the system architecture comprising:
a router;
a load balancer configured to perform:
detection that a virtual address of a tenant that is being managed by the load balancer is associated with only a single virtual machine instance of the tenant; in response to the detection, setting a flag for the virtual address to distinguish the virtual address from other virtual addresses that are associated with multi-address tenants;
in response to the detection, sending a configuration message to the router, the configuration message being interpretable by the router as an instruction to send network packets that are addressed to the virtual address to the virtual machine in a manner that bypasses the load balancer; and
refraining from storing subsequent flow state for the virtual address; and
a virtualization host computer system configured to execute the virtual machine instance, the virtualization host computer system comprising a host agent that is configured to:
detect that a network packet is addressed to the virtual address, and
translate the network packet to be addressed to the virtual machine instance.

### Claim 13 (depends on 12)

The computer system as recited in claim 12, wherein the single destination address is associated with a virtual machine.

### Claim 14 (depends on 13)

The computer system as recited in claim 13, wherein the single destination address is a first single destination address and the configuration message is a first configuration message, and wherein the load balancer is also configured to:
detect that the virtual machine is now only associated with a second single destination address; and
in response to detecting, send a second configuration message to the router, the second configuration message interpretable by the router as an instruction to send network packets that are addressed to the virtual address to the second single destination address in a manner that bypasses the load balancer.

### Claim 15 (depends on 12)

The computer system as recited in claim 12, wherein, subsequent to sending the configuration message to the router, an agent along a path between the router and the destination address:
receives a network packet that is addressed to the virtual address; and
translates the network packet so that it is addressed to the associated single destination address.

### Claim 16 (depends on 15)

The computer system as recited in claim 15, wherein the agent resides at a virtualization host computer system.

### Claim 17 (depends on 15)

The computer system as recited in claim 15, wherein the agent resides at a computer system that is associated with the destination address.

### Claim 18 (depends on 15)

The computer system as recited in claim 15, wherein the agent detects whether the network packet was sent by the router or by the load balancer, and translates the network packet when it was sent by the router.

### Claim 19 (depends on 12)

The computer system as recited in claim 12, wherein the load balancer is further configured to:
detect that a virtual machine that is associated with the single destination address has migrated from a first virtualization host computer to a second virtualization host computer; and
in response to detecting, sending a configuration message to the router, the configuration message interpretable by the router as an instruction to send network packets for the virtual address to the second virtualization host computer.
