# US 2019/0173780 A1 · Failover of centralized routers in public cloud logical networks

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

- Number: US 2019/0173780 A1
- Document ID: US20190173780A1
- Status: Published application
- Kind: A1
- Application number: 15/831,369
- Filed: 2017-12-04
- Published: 2019-06-06
- Earliest claimed: 2017-12-04
- Assignees: Nicira, Inc.
- Applicants: Nicira, Inc.
- Inventors: Mukesh Hira; Ganesan Chandrashekhar; Jayant Jain; Rahul Jain
- Web page: https://patentgrep.com/patent/US20190173780A1

## CPC

- H04L 61/256: NAT traversal
- H04L 45/22: {Alternate routing}
- H04L 45/42: Centralised routing
- H04L 45/745: Address table lookup; Address filtering
- H04L 49/355: {Application aware switches, e.g. for HTTP}
- H04L 67/10: in which an application is distributed across nodes in the network (software deployment G06F8/60; multiprogramming arrangements G06F9/46)
- H04L 61/2514: between local and global IP addresses
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Some embodiments provide a method for a first DCN operating in a first datacenter as a logical network gateway that processes messages between other DCNs of the logical network and external entities, which address the logical network gateway using a first address. The first DCN has an interface with a second address for use in the first datacenter. The method stores a mapping between the second address and a third address. A second DCN operates the logical network gateway in a second datacenter and has an interface with the third address for use in the second datacenter. From the second DCN, the method receives connection state data, describing connections between the external entities and the DCNs of the logical network, that uses the third address. The method replaces the third address with the second address in the connection state data using the stored mapping and stores the connection state data.

## Claims

### Claim 1

A method for a first data compute node (DCN) operating in a first datacenter as a logical network gateway that processes data messages between other DCNs of the logical network and external entities, wherein the external entities address the logical network gateway using a first network address and the first DCN has an interface with a second network address for use in the first datacenter, the method comprising:
storing a mapping between the second network address and a third network address, wherein a second DCN operates in a second datacenter as the logical network gateway and has an interface with the third network address for use in the second datacenter;
receiving connection state data from the second DCN describing connections between the external entities and the DCNs of the logical network, the connection state data using the third network address;
replacing the third network address with the second network address in the connection state data using the stored mapping; and
storing the connection state data with the replaced network address.

### Claim 2 (depends on 1)

The method of claim 1, wherein the first and second datacenters are both datacenters of a same public cloud provider.

### Claim 3 (depends on 2)

The method of claim 2, wherein the first and second datacenters have different available subnets for DCN interfaces, wherein the second network address belongs to a subnet available in the first datacenter and the third network address belongs to a subnet available in the second datacenter.

### Claim 4 (depends on 2)

The method of claim 2, wherein the first network address is a public network address while the second and third network addresses are private network addresses.

### Claim 5 (depends on 4)

The method of claim 4, wherein when an external entity sends a data message to the first network address, a forwarding element managed by the public cloud provider translates a destination network address of the public network address to one of the second and third network addresses.

### Claim 6 (depends on 1)

The method of claim 1, wherein:
the logical network comprises a logical router and a set of logical switches that logically connect to the logical router;
the other DCNs logically connect to the logical switches; and
the logical network gateway implements a centralized routing component of the logical router.

### Claim 7 (depends on 6)

The method of claim 6, wherein the other DCNs execute managed forwarding elements that implement the logical switches and a distributed routing component of the logical router.

### Claim 8 (depends on 1)

The method of claim 1, wherein the connection state data comprises data regarding existing connections for use by a firewall function of the logical network gateway.

### Claim 9 (depends on 1)

The method of claim 1, wherein the other DCNs of the logical network operate in the second datacenter and preferentially exchange data messages with external entities via the second DCN.

### Claim 10 (depends on 9)

The method of claim 9, wherein the first and second datacenters are both datacenters of a public cloud provider, wherein the public cloud provider charges more for data traffic between datacenters than for data traffic within a single datacenter.

### Claim 11 (depends on 1)

The method of claim 1, wherein storing the mapping comprises receiving the mapping from a network controller.

### Claim 12 (depends on 1)

The method of claim 1, wherein storing the mapping comprises interacting with a public cloud provider management system to determine that the first network address is mapped to both the second network address and the third network address.

### Claim 13 (depends on 1)

The method of claim 1 further comprising:
receiving a set of rules from a network controller, the set of rules using the first network address; and
replacing the first network address with the second network address in the received set of rules; and
using the set of rules with the second network address to process new connections between the external entities and the other DCNs of the logical network.

### Claim 14 (depends on 13)

The method of claim 13, wherein the second DCN receives the same set of rules, replaces the first network address with the third network address, and uses the set of rules with the third network address to process new connections between the external entities and the other DCNs of the logical network.

### Claim 15 (depends on 1)

The method of claim 1, wherein the first DCN executes (i) the logical network gateway and (ii) a first network controller for receiving configuration data for the logical network gateway from a second network controller.

### Claim 16 (depends on 15)

The method of claim 15, wherein the second network controller operates in a private datacenter separate from the first and second datacenters.

### Claim 17 (depends on 15)

The method of claim 15, wherein the first network controller further receives configuration data for the other DCNs of the logical network.

### Claim 18

A non-transitory machine-readable medium storing a program which when executed by at least one processing unit of a host machine executes in a first data compute node operating in a first datacenter as a logical network gateway that processes data messages between other DCNs of the logical network and external entities, wherein the external entities address the logical network gateway using a first network address and the first DCN has an interface with a second network address for use in the first datacenter, the program comprising sets of instructions for:
storing a mapping between the second network address and a third network address, wherein a second DCN operates in a second datacenter as the logical network gateway and has an interface with the third network address for use in the second datacenter;
receiving connection state data from the second DCN describing connections between the external entities and the DCNs of the logical network, the connection state data using the third network address;
replacing the third network address with the second network address in the connection state data using the stored mapping; and
storing the connection state data with the replaced network address.

### Claim 19 (depends on 18)

The non-transitory machine-readable medium of claim 18, wherein:
the first and second datacenters are both datacenters of a same public cloud provider;
the first and second datacenters have different available subnets for DCN interfaces; and
the second network address belongs to a subnet available in the first datacenter and the third network address belongs to a subnet available in the second datacenter.

### Claim 20 (depends on 18)

The non-transitory machine-readable medium of claim 18, wherein:
the first and second datacenters are both datacenters of a same public cloud provider;
the first network address is a public network address while the second and third network addresses are private network addresses; and
when an external entity sends a data message to the first network address, a forwarding element managed by the public cloud provider translates a destination network address of the public network address to one of the second and third network addresses.

### Claim 21 (depends on 18)

The non-transitory machine-readable medium of claim 18, wherein the other DCNs of the logical network operate in the second datacenter and preferentially exchange data messages with external entities via the second DCN.

### Claim 22 (depends on 18)

The non-transitory machine-readable medium of claim 18, wherein the program further comprises sets of instructions for:
receiving a set of rules from a network controller, the set of rules using the first network address; and
replacing the first network address with the second network address in the received set of rules; and
using the set of rules with the second network address to process new connections between the external entities and the other DCNs of the logical network.

### Claim 23 (depends on 22)

The non-transitory machine-readable medium of claim 22, wherein the second DCN receives the same set of rules, replaces the first network address with the third network address, and uses the set of rules with the third network address to process new connections between the external entities and the other DCNs of the logical network.
