# US 2019/0173759 A1 · Network traffic management for virtualized graphics devices

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

- Number: US 2019/0173759 A1
- Document ID: US20190173759A1
- Status: Published application
- Kind: A1
- Application number: 16/265,807
- Filed: 2019-02-01
- Published: 2019-06-06
- Earliest claimed: 2016-12-09
- Assignees: Amazon Technologies, Inc.
- Applicants: Amazon Technologies, Inc.
- Inventors: Malcolm Featonby; Mihir Sadruddin Surani; Umesh Chandani; Adithya Bhat; Yuxuan Liu; Douglas Cotton Kurtz
- Web page: https://patentgrep.com/patent/US20190173759A1

## CPC

- H04L 45/64: using an overlay routing layer
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- H04L 41/0816: the condition being an adaptation, e.g. in response to network events
- G06F 9/5088: {involving task migration}
- G06F 2009/45595: {Network integration; Enabling network access in virtual machine instances}
- H04L 43/0811: by checking connectivity
- H04L 45/74: Address processing for routing
- H04L 67/01: Protocols
- 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

A determination is made that network access between a virtualized graphics device and a compute instance of a client is to be enabled. A source network address for graphics-related traffic of the compute instance is identified. From a range of source port numbers associated with the source network address, a particular source port number which is unused is found. Routing metadata is transmitted to one or more routing devices indicating that a key based at least in part on (a) the source network address and (b) the particular source port number is to be used to identify a route for network packets from the first application compute instance to a virtualized graphics device.

## Claims

### Claim 1

A system, comprising:
a network configuration manager executing on one or more computing devices of a provider network; and
a router executing on the one or more computing devices;
wherein the network configuration manager includes instructions that upon execution on a processor cause the one or more computing devices to:
determine that a remote virtualized graphics device is to be made accessible from an application compute instance allocated within an isolated virtual network established on behalf of a client;
identify a first network address of a particular virtual network interface configured for graphics-related traffic of the isolated virtual network;
determine, using an atomic update operation on a first bit map, wherein the first bit map represents a range of source port numbers associated with the first network address, a particular source port number which is unused;
generate routing metadata indicating that a particular persistent key is to be used to identify a route for a plurality of network packets between the application compute instance and a selected virtualized graphics device, wherein the particular persistent key is based at least in part on (a) the particular network address and (b) the particular source port number; and
wherein the router includes instructions that upon execution on a processor cause the one or more computing devices to:
route a particular network packet from the application compute instance to the selected virtualized graphics device in accordance with the routing metadata.

### Claim 2 (depends on 1)

The system as recited in claim 1, wherein to determine the particular source port number, the network configuration manager includes instructions that upon execution cause the one or more computing devices to:
in response to identifying, during an examination of the bit map, a particular bit which indicates an unused status of a source port, compute the particular source port number using one or more of (a) the index of the particular bit or (b) a starting port offset associated with the bit map; and
update the particular bit to indicate that the particular source port number has been reserved for use.

### Claim 3 (depends on 1)

The system as recited in claim 1, wherein to determine the particular source port number, the network configuration manager includes instructions that upon execution cause the one or more computing devices to:
in response to determining that none of the bits of the bit map indicate an unused status of a source port,
expand the bit map by a particular number of bits; and
set a bit in the expanded portion of the bit map to indicate that the particular source port number has been reserved for use.

### Claim 4 (depends on 1)

The system as recited in claim 1, wherein the network configuration manager includes instructions that upon execution cause the one or more computing devices to:
in response to determining that communication between the application compute instance and the virtualized graphics device is to be discontinued, updating the bit map to indicate that the particular source port number is no longer in use; and
utilize the particular source port number for routing network packets between a different application compute instance and a different virtualized graphics device.

### Claim 5 (depends on 1)

The system as recited in claim 1, wherein the selected virtualized graphics device is instantiated at a host comprising one or more graphic processing units (GPUs).

### Claim 6

A method, comprising:
performing, by one or more computing devices;
determining that network access is to be enabled between a virtualized graphics device and a first application compute instance allocated to a client;
obtaining a first source network address configured for graphics-related traffic of one or more application compute instances including the first application compute instances;
determining, from a range of source port numbers associated with the first source network address, a particular source port number which is unused; and
transmitting, to one or more routing intermediary devices, a first set of routing metadata indicating that a particular persistent key is to be used to identify a route for a plurality of network packets from the first application compute instance to a selected virtualized graphics device, wherein the particular persistent key is based at least in part on (a) the first source network address and (b) the particular source port number.

### Claim 7 (depends on 6)

The method as recited in claim 6, wherein said determining the particular source port number which is unused comprises performing an atomic update operation on a particular data structure representing the range of source port numbers.

### Claim 8 (depends on 7)

The method as recited in claim 7, wherein said performing an atomic update operation comprises performing a conditional write operation using an application programming interface of a database service.

### Claim 9 (depends on 7)

The method as recited in claim 7, wherein the particular data structure comprises a bit map, wherein indexes of respective bits of the bit map correspond to respective source port numbers.

### Claim 10 (depends on 9)

The method as recited in claim 9, wherein said determining the particular source port number comprises:
in response to identifying a particular bit of the bit map which indicates an unused status of a source port, using one or more of (a) the index of the particular bit or (b) a starting port offset associated with the bit map to compute the particular source port number; and
updating the particular bit to indicate that the particular source port number has been reserved for use.

### Claim 11 (depends on 9)

The method as recited in claim 9, wherein said determining the particular source port number comprises:
in response to determining that none of the bits of the bit map indicate an unused status of a source port,
expanding the bit map by a particular number of bits; and
setting a bit in the expanded portion of the bit map to indicate that the particular source port number has been reserved for use.

### Claim 12 (depends on 6)

The method as recited in claim 6, further comprising performing, by the one or more computing devices:
transmitting, to the first application compute instance, mapping information indicating that the particular source port number is to be used for communicating with the selected virtualized graphics device; and
verifying, at the first application compute instance, using the mapping information, that a particular packet received at the first application compute instance originated at the selected virtualized graphics device.

### Claim 13 (depends on 6)

The method as recited in claim 6, further comprising performing, by the one or more computing devices:
transmitting, to the selected virtualized graphics device, mapping information indicating that the particular source port number is to be used for communicating with the first application compute instance; and
verifying, at the selected virtualized graphics device, using the mapping information, that a particular packet received at the selected virtualized graphics device originated at the first application compute instance.

### Claim 14 (depends on 6)

The method as recited in claim 6, further comprising performing, by the one or more computing devices:
determining that a second virtualized graphics device is to be configured for network access from the first application compute instance;
determining, from the range of source port numbers associated with the first source network address, a second source port number which is unused; and
transmitting, to the one or more routing intermediary devices, a second set of routing metadata indicating that a second persistent key is to be used to identify a route for a plurality of network packets from the first application compute instance to the second virtualized graphics device, wherein the second persistent key comprises (a) the first network address and (b) the second source port number.

### Claim 15 (depends on 6)

The method as recited in claim 6, further comprising performing, by the one or more computing devices:
transmitting, to the one or more routing intermediary devices, an indication that one or more packets from a second application compute instance are to be routed to the selected virtualized graphics device.

### Claim 16 (depends on 6)

The method as recited in claim 6, further comprising performing, by the one or more computing devices:
in response to determining that communication between the first application compute instance and the selected remote virtualized graphics device is to be discontinued, updating a data structure representing the range of source port numbers to indicate that the particular source port number is no longer in use; and
utilizing the particular source port number for routing network packets between a different application compute instance and a different virtualized graphics device.

### Claim 17

A non-transitory computer-accessible storage medium storing program instruction that when executed on one or more processors cause the one or more processors to:
determine that network access is to be enabled between a virtualized graphics device and a first application compute instance allocated to a client;
obtain a first source network address configured for graphics-related traffic of one or more application compute instances including the first application compute instances;
determine, from a range of source port numbers associated with the first source network address, a particular source port number which is unused; and
transmit, to one or more routing intermediary devices, a first set of routing metadata indicating that a particular persistent key is to be used to identify a route for a plurality of network packets from the first application compute instance to a selected virtualized graphics device, wherein the particular persistent key is based at least in part on (a) the first source network address and (b) the particular source port number.

### Claim 18 (depends on 17)

The non-transitory computer-accessible storage medium as recited in claim 17, wherein to determine the particular source port number which is unused, the instructions when executed on the one or more processors cause the one or more processors to perform an atomic update operation on a particular bit map representing the range of source port numbers.

### Claim 19 (depends on 18)

The non-transitory computer-accessible storage medium as recited in claim 18, wherein to determine the particular source port number, the instructions when executed on the one or more processors cause the one or more processors to:
examine, starting from one end of the bit map, individual bits of the bit map; and,
in response to identifying a particular bit which indicates an unused status of a source port, using (a) the index of the particular bit and (b) a starting port offset associated with the bit map to compute the particular source port number; and
wherein the atomic update operation comprises modifying the particular bit to indicate that the particular source port number has been reserved for use.

### Claim 20 (depends on 18)

The non-transitory computer-accessible storage medium as recited in claim 18, wherein to determine the particular source port number, the instructions when executed on the one or more processors cause the one or more processors to:
examine, starting from one end of the bit map, individual bits of the bit map; and,
in response to determining that none of the bits of the bit map indicate an unused status of a source port,
expand, as part of the atomic update operation, the bit map by a particular number of bits; and
set, as part of the atomic update operation, a bit in the expanded portion of the bit map to indicate that the particular source port number has been reserved for use.

### Claim 21

(canceled)
