# US 2021/0084003 A1 · Efficiently mapping a distributed resource to a virtual network

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

- Number: US 2021/0084003 A1
- Document ID: US20210084003A1
- Status: Published application
- Kind: A1
- Application number: 16/572,491
- Filed: 2019-09-16
- Published: 2021-03-18
- Earliest claimed: 2019-09-16
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Parag SHARMA; Hemant KUMAR; Xinyan ZAN; Nimish AGGARWAL
- Web page: https://patentgrep.com/patent/US20210084003A1

## CPC

- G06F 9/5077: {Logical partitioning of resources; Management or configuration of virtualized resources (specific details on emulation or internal functioning of virtual machines G06F9/455)}
- H04L 61/10: of different types
- G06F 9/45545: {Guest-host, i.e. hypervisor is an application program itself, e.g. VirtualBox}
- H04L 12/4641: {Virtual LANs, VLANs, e.g. virtual private networks [VPN] (LAN interconnection over a bridge based backbone H04L12/462; encapsulation techniques H04L12/4633; routing of packets H04L45/00; packet switches H04L49/00; virtual private networks for security H04L63/0272)}
- H04L 47/783: Distributed allocation of resources, e.g. bandwidth brokers
- H04L 61/2514: between local and global IP addresses
- H04L 61/2517: using port numbers
- H04L 61/2521: Translation architectures other than single NAT servers
- H04L 61/5007: Internet protocol [IP] addresses
- G06F 2009/4557: {Distribution of virtual machine instances; Migration and load balancing}
- G06F 2009/45595: {Network integration; Enabling network access in virtual machine instances}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A distributed resource may be mapped into a virtual network, where the resource is distributed across a large number of nodes that are uniquely addressable within the distributed resource service's address space. The resource can be represented using a relatively small number of private VIP addresses within the virtual network, while still enabling access to all of the nodes that are uniquely addressable within the address space of the distributed resource service. A resource map may be created that relates the distributed resource service's address space to the virtual network's address space. The resource map may be used by a gateway that facilitates access to a distributed resource by clients. The resource map may also be used to translate packets that are sent from clients within a virtual network into the distributed resource service's address space.

## Claims

### Claim 1

A method, comprising:
detecting that a packet comprises address information identifying a distributed resource and a node, wherein the distributed resource is distributed across a plurality of nodes that are uniquely addressable in a distributed resource service address space;
determining that the address information corresponds to a virtual network address space;
accessing a resource map that relates the virtual network address space to the distributed resource service address space such that a number of private virtual Internet protocol (VIP) addresses used by the distributed resource in the virtual network address space is less than the plurality of nodes;
translating the packet from the virtual network address space to the distributed resource service address space based on the resource map, thereby creating a translated packet; and
causing the translated packet to be sent to the node.

### Claim 2 (depends on 1)

The method of claim 1, wherein the resource map comprises, for each node of the plurality of nodes:
first information that uniquely identifies the node within the virtual network address space; and
second information that uniquely identifies the node within the distributed resource service address space.

### Claim 3 (depends on 1)

The method of claim 1, wherein the packet comprises:
a private virtual IP (VIP) address as a destination address, wherein the private VIP address identifies the distributed resource within the virtual network address space; and
a port number as a destination port, wherein the port number identifies the node within the virtual network address space.

### Claim 4 (depends on 1)

The method of claim 1, wherein the translated packet comprises:
a public virtual IP (VIP) address as a destination address; and
an endpoint identifier as a destination port, wherein a combination of the public VIP address and the endpoint identifier identifies the node within the distributed resource service address space.

### Claim 5 (depends on 1)

The method of claim 1, wherein the resource map comprises information indicating a relationship between:
a port number that uniquely identifies the node within the virtual network address space; and
a combination of a public VIP address and an endpoint identifier that uniquely identifies the node within the distributed resource service address space.

### Claim 6

A method, comprising:
receiving a request to map a distributed resource to a first virtual network, wherein the distributed resource is distributed across a plurality of nodes that are uniquely addressable in a distributed resource service address space;
mapping the distributed resource to the first virtual network such that a number of private virtual Internet protocol (VIP) addresses used by the distributed resource in a first virtual network address space is less than the plurality of nodes, wherein mapping the distributed resource to the first virtual network comprises assigning the distributed resource a first private VIP address from within the first virtual network address space, and wherein mapping the distributed resource to the first virtual network further comprises assigning each node of the plurality of nodes a port number that uniquely identifies the node within the first virtual network address space; and
distributing a resource map to entities within the first virtual network, wherein the resource map relates the first virtual network address space to the distributed resource service address space.

### Claim 7 (depends on 6)

The method of claim 6, further comprising mapping the distributed resource to a second virtual network, wherein mapping the distributed resource to the second virtual network comprises:
assigning the distributed resource a second private VIP address from within a second virtual network address space; and
assigning each node of the plurality of nodes a same port number that was assigned to the node within the first virtual network address space.

### Claim 8 (depends on 6)

The method of claim 6, wherein the resource map comprises, for each node of the plurality of nodes:
first address information that uniquely identifies the node within the first virtual network address space; and
second address information that uniquely identifies the node within the distributed resource service address space.

### Claim 9 (depends on 6)

The method of claim 6, wherein the resource map comprises, for each node of the plurality of nodes, information indicating a relationship between:
the port number that uniquely identifies the node within the first virtual network address space; and
a combination of a public VIP address and an endpoint identifier that uniquely identifies the node within the distributed resource service address space.

### Claim 10 (depends on 6)

The method of claim 6, wherein distributing the resource map to the entities within the first virtual network comprises causing the resource map to be delivered to a plurality of networking stacks within host machines corresponding to the first virtual network.

### Claim 11 (depends on 6)

The method of claim 6, further comprising causing the resource map to be delivered to a gateway within a distributed resource service that manages the distributed resource.

### Claim 12 (depends on 6)

The method of claim 6, further comprising:
adding new information to the resource map that maps a previously unused port number to a combination of a public VIP address and an endpoint identifier; and
pushing an updated resource map to networking stacks within host machines corresponding to the first virtual network.

### Claim 13 (depends on 6)

The method of claim 6, further comprising:
receiving a request from a distributed resource service to remove an entry from the resource map; and
providing an updated resource map to networking stacks within host machines corresponding to the first virtual network, wherein the updated resource map does not include the entry.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
determining that the updated resource map has been made available to all of the networking stacks within all of the host machines corresponding to the first virtual network; and
notifying the distributed resource service that the entry has been successfully removed from the resource map.

### Claim 15

A method, comprising:
receiving a redirect request message that comprises a request to access a distributed resource, wherein the distributed resource is distributed across a plurality of nodes;
detecting that the redirect request message is from a client that belongs to a virtual network that has mapped the distributed resource to a private virtual Internet protocol (VIP) address;
accessing a resource map to determine address information that indicates how to access the distributed resource in a virtual network address space, wherein the resource map comprises, for each node of the plurality of nodes, first information that uniquely identifies the node within the virtual network address space and second information that uniquely identifies the node within a distributed resource service address space; and
sending the address information to the client in response to the redirect request message.

### Claim 16 (depends on 15)

The method of claim 15, wherein the address information comprises a plurality of address-port pairs, each address-port pair comprising the private VIP address and a different port number that uniquely identifies a different node in the virtual network address space.

### Claim 17 (depends on 15)

The method of claim 15, wherein the address information comprises a plurality of name-port pairs, each name-port pair comprising a domain name server (DNS) name that resolves to the private VIP address and a different port number that uniquely identifies a different node in the virtual network address space.

### Claim 18 (depends on 15)

The method of claim 15, wherein the resource map comprises, for each node of the plurality of nodes:
a port number that uniquely identifies the node within the virtual network address space; and
a combination of a public VIP address and an endpoint identifier that uniquely identifies the node within the distributed resource service address space.

### Claim 19 (depends on 15)

The method of claim 15, wherein:
the redirect request message is received at a gateway for a distributed resource service; and
the distributed resource service manages the distributed resource.

### Claim 20 (depends on 15)

The method of claim 15, wherein the redirect request message is received at a host machine that comprises a virtual machine that belongs to the virtual network.
