# RDMA network profiles

This page provides an overview of
[Remote Direct Memory Access (RDMA)](https://en.wikipedia.org/wiki/Remote_direct_memory_access)
network profiles in Google Cloud.

## Overview

RDMA network profiles let you create Virtual Private Cloud (VPC)
networks that provide low-latency, high-bandwidth RDMA communication between
the memory or GPUs of Compute Engine instances that are created in the network.

RDMA network profiles are useful for running AI workloads. For more
information about running AI workloads in Google Cloud, see
[AI Hypercomputer overview](https://docs.cloud.google.com/ai-hypercomputer/docs/overview.md.txt).

You can create the following types of VPC networks
by using RDMA network profiles:

| VPC network type | Protocol | Network profile resource name | Instance types | vNIC type |
|---|---|---|---|---|
| Falcon VPC network | [RDMA over Falcon transport](https://www.opencompute.org/documents/rdma-over-falcon-spec-v1-1-pdf) | `ZONE-vpc-falcon` | VM: [H4D](https://docs.cloud.google.com/compute/docs/compute-optimized-machines.md.txt#h4d_series), [Z4M](https://docs.cloud.google.com/compute/docs/storage-optimized-machines.md.txt#z4m_series) Bare metal: [Z4M](https://docs.cloud.google.com/compute/docs/storage-optimized-machines.md.txt#z4m_series) | `IRDMA` |
| RoCE VPC network | [RDMA over converged ethernet v2 (RoCE v2)](https://en.wikipedia.org/wiki/RDMA_over_Converged_Ethernet) | For VM instances: `ZONE-vpc-roce` For bare metal instances: `ZONE-vpc-roce-metal` | VM: [A3 Ultra](https://docs.cloud.google.com/compute/docs/accelerator-optimized-machines.md.txt#a3-ultra-vms), [A4](https://docs.cloud.google.com/compute/docs/accelerator-optimized-machines.md.txt#a4-vms), [A4X](https://docs.cloud.google.com/compute/docs/accelerator-optimized-machines.md.txt#a4x-machine-type) Bare metal: [A4X Max](https://docs.cloud.google.com/compute/docs/accelerator-optimized-machines.md.txt#a4x-max-metal-machine-type), [A5X](https://docs.cloud.google.com/compute/docs/accelerator-optimized-machines.md.txt#a5x-metal-machine-type) | `MRDMA` |

For more information about creating instances in VPC networks
that have RDMA network profiles, see the procedure that corresponds to your
instance type and deployment method:

- For GPU instances, see [Deployment options overview](https://docs.cloud.google.com/ai-hypercomputer/docs/create/create-overview.md.txt)
- For H4D instances, see [Create a VM with IRDMA driver support](https://docs.cloud.google.com/compute/docs/networking/using-irdma.md.txt#create_a_vm_with_irdma_driver_support)

## Supported zones

RDMA network profiles are available in a limited set of zones. You can only
create a Falcon VPC network or RoCE VPC network in a zone where the
corresponding network profile is available.

To view the supported zones, see
[List network profiles](https://docs.cloud.google.com/vpc/docs/view-network-profiles.md.txt#list_network_profiles).

Alternatively, you can view the supported zones for the machine type
that you intend to create in the network. RDMA
network profiles are available in the same zones as their supported machine
types. For more information, see the following:

- For GPU machine types, see [GPU locations](https://docs.cloud.google.com/compute/docs/regions-zones/gpu-regions-zones.md.txt).
- For other machine types, see [Available regions and zones](https://docs.cloud.google.com/compute/docs/regions-zones.md.txt#available).

## Specifications

VPC networks created with an RDMA network profile have the
following specifications:

- **Zonal constraint**. Resources using a VPC network with an
  RDMA network profile are limited to the same zone as the RDMA network profile
  associated with the VPC network during the network creation.
  This zonal limit has the following effects:

  - All instances that have virtual network interfaces (vNICs) in the VPC
    network must be created in the zone that matches the zone of the RDMA
    network profile used by the VPC network.

  - All subnets created in the VPC network must be located
    in the region that contains the zone of the RDMA network profile used by
    the VPC network.

- **RDMA network interfaces only**. A VPC network with an RDMA
  network profile supports attachments only from specific network interfaces:

  - Falcon VPC networks only support `IRDMA` vNICs.
  - RoCE VPC networks only support `MRDMA` vNICs.

  All non-RDMA vNICs of an instance, such as its `GVNIC` or `IDPF` vNICs, must
  be attached to a regular VPC network. Regular
  VPC networks have no
  [network profile](https://docs.cloud.google.com/vpc/docs/network-profiles.md.txt). Consequently, the
  [Supported and unsupported features](https://docs.cloud.google.com/vpc/docs/rdma-network-profiles.md.txt#supported-features) listed for RDMA
  network profiles don't apply to an instance's non-RDMA vNICs.
- **8896 byte MTU** . For best performance, we recommend a [maximum transmission unit
  (MTU)](https://en.wikipedia.org/wiki/Maximum_transmission_unit) of `8896` bytes
  for VPC networks with an RDMA network profile. This allows the
  RDMA driver in the instance's guest operating system to use smaller MTUs if needed.

  If you create a VPC network with an RDMA network profile, then
  `8896` bytes is the default MTU.
- **Firewall differences**. See the following information about firewall
  differences in VPC networks with an RDMA network profile:

  - VPC networks with an RDMA network profile use the following implied firewall rules, which are different from the implied firewall rules used by regular VPC networks:

    - Implied allow egress
    - Implied allow ingress
  - Cloud NGFW support depends on the type of VPC network:

    - For RoCE VPC networks, see the following:

      - RoCE VPC networks for VM instances only support regional network firewall policies that have an RoCE firewall policy type. The set of parameters for rules within a supported regional network firewall policy are limited. For more information, see [Cloud NGFW for RoCE VPC networks](https://docs.cloud.google.com/firewall/docs/firewall-for-roce.md.txt).
      - RoCE VPC networks for bare metal instances don't support configuring Cloud NGFW rules or policies.
    - Falcon VPC networks don't support configuring Cloud NGFW
      rules or policies.

- **No Connectivity Tests support** .
  [Connectivity Tests](https://docs.cloud.google.com/network-intelligence-center/docs/connectivity-tests/concepts/overview.md.txt)
  doesn't support VPC networks with an RDMA network profile.

- **Other VPC features** . VPC networks with an
  RDMA network profile support a limited set of other VPC features. For more
  information, see the following [Supported and unsupported features](https://docs.cloud.google.com/vpc/docs/rdma-network-profiles.md.txt#supported-features) section.

## Supported and unsupported features

The following sections describe which VPC features are supported
and unsupported for each type of VPC network that you can create
by using an RDMA network profile:

- [Falcon VPC networks (`falcon`)](https://docs.cloud.google.com/vpc/docs/rdma-network-profiles.md.txt#falcon-supported-features)
- [RoCE VPC networks for VM instances (`roce`)](https://docs.cloud.google.com/vpc/docs/rdma-network-profiles.md.txt#roce-supported-features)
- [RoCE VPC networks for bare metal instances (`roce-metal`)](https://docs.cloud.google.com/vpc/docs/rdma-network-profiles.md.txt#roce-metal-supported-features)

### Falcon VPC networks (`falcon`)

The following table lists the features that are supported by
Falcon VPC networks, which are created by using the
`falcon` network profile.

| Feature | Supported | Network profile property | Network profile property value | Details |
|---|---|---|---|---|
| RDMA NICs | Yes | `interfaceTypes` | `IRDMA` | Falcon VPC networks support only `IRDMA` NICs Other NIC types, such as `MRDMA`, `GVNIC`, `IDPF`, and `VIRTIO_NET`, aren't supported. |
| Multi-NIC in the same network | Yes | `allowMultiNicInSameNetwork` | `MULTI_NIC_IN_SAME_NETWORK_ALLOWED` | Falcon VPC networks support [multi-NIC instances](https://docs.cloud.google.com/vpc/docs/multiple-interfaces-concepts.md.txt), allowing two or more RDMA NICs of the same instance to be in the same VPC network. Each NIC must attach to a unique subnet in the VPC network. |
| IPv4-only subnets | Yes | `subnetworkStackTypes` | `SUBNET_STACK_TYPE_IPV4_ONLY` | Falcon VPC networks support IPv4-only subnets, including the same [Valid IPv4 ranges](https://docs.cloud.google.com/vpc/docs/subnets.md.txt#valid-ranges) as regular VPC networks. Falcon VPC networks don't support dual-stack or IPv6-only subnets. For more information, see [Types of subnets](https://docs.cloud.google.com/vpc/docs/subnets.md.txt#subnet-types). |
| `PRIVATE` subnet purpose | Yes | `subnetworkPurposes` | `SUBNET_PURPOSE_PRIVATE` | Falcon VPC networks support regular subnets, which have a `purpose` attribute value of `PRIVATE`. Falcon VPC networks don't support Private Service Connect subnets, proxy-only subnets, or Private NAT subnets. For more information, see [Purposes of subnets](https://docs.cloud.google.com/vpc/docs/subnets.md.txt#purpose). |
| `GCE_ENDPOINT` address purpose | Yes | `addressPurposes` | `GCE_ENDPOINT` | Falcon VPC networks support IP addresses with a `purpose` attribute value of `GCE_ENDPOINT`, which is used by internal IP addresses of instance NICs. Falcon VPC networks don't support special purpose IP addresses, such as the `SHARED_LOADBALANCER_VIP` purpose. For more information, see the [addresses resource reference](https://docs.cloud.google.com/compute/docs/reference/rest/v1/addresses.md.txt). |
| Private Service Connect interfaces | Yes | `allowPscInterface` | `PSC_INTERFACE_ALLOWED` | Falcon VPC networks support [network attachments](https://docs.cloud.google.com/vpc/docs/about-network-attachments.md.txt) and connections from [virtual Private Service Connect interfaces](https://docs.cloud.google.com/vpc/docs/about-private-service-connect-interfaces.md.txt#virtual-specifications). |
| Dynamic Network Interfaces | No | `allowSubInterfaces` | `SUBINTERFACES_BLOCKED` | Falcon VPC networks don't support [Dynamic NICs](https://docs.cloud.google.com/vpc/docs/multiple-interfaces-concepts.md.txt#nic-types). |
| Attachments from `nic0` | No | `allowDefaultNicAttachment` | `DEFAULT_NIC_ATTACHMENT_BLOCKED` | Falcon VPC networks don't support attaching the `nic0` network interface of an instance to the network. Each RDMA NIC attached to the VPC network must not be `nic0`. |
| External IP addresses for instances | No | `allowExternalIpAccess` | `EXTERNAL_IP_ACCESS_BLOCKED` | Falcon VPC networks don't support assigning [external IP addresses](https://docs.cloud.google.com/vpc/docs/ip-addresses.md.txt) to RDMA NICs. Consequently, RDMA NICs don't have internet access. |
| Alias IP ranges | No | `allowAliasIpRanges` | `ALIAS_IP_RANGE_BLOCKED` | Falcon VPC networks don't support assigning [alias IP ranges](https://docs.cloud.google.com/vpc/docs/alias-ip.md.txt) to RDMA NICs. |
| IP forwarding | No | `allowIpForwarding` | `IP_FORWARDING_BLOCKED` | Falcon VPC networks don't support [IP forwarding](https://docs.cloud.google.com/vpc/docs/using-routes.md.txt#canipforward). |
| Instance network migration | No | `allowNetworkMigration` | `NETWORK_MIGRATION_BLOCKED` | Falcon VPC networks don't support [migrating instance NICs between networks](https://docs.cloud.google.com/compute/docs/instances/migrating-interfaces-between-networks.md.txt). |
| Auto mode | No | `allowAutoModeSubnet` | `AUTO_MODE_SUBNET_BLOCKED` | Falcon VPC networks can't be auto mode networks. For more information, see [subnet creation mode](https://docs.cloud.google.com/vpc/docs/vpc.md.txt#subnet-ranges). |
| VPC Network Peering | No | `allowVpcPeering` | `VPC_PEERING_BLOCKED` | Falcon VPC networks don't support connecting to other VPC networks using [VPC Network Peering](https://docs.cloud.google.com/vpc/docs/vpc-peering.md.txt). Consequently, Falcon VPC networks don't support connecting to services using [private services access](https://docs.cloud.google.com/vpc/docs/private-services-access.md.txt). |
| Static routes | No | `allowStaticRoutes` | `STATIC_ROUTES_BLOCKED` | Falcon VPC networks don't support [static routes](https://docs.cloud.google.com/vpc/docs/static-routes.md.txt). |
| Packet Mirroring | No | `allowPacketMirroring` | `PACKET_MIRRORING_BLOCKED` | Falcon VPC networks don't support [Packet Mirroring](https://docs.cloud.google.com/vpc/docs/packet-mirroring.md.txt). |
| Cloud NAT | No | `allowCloudNat` | `CLOUD_NAT_BLOCKED` | Falcon VPC networks don't support [Cloud NAT](https://docs.cloud.google.com/nat/docs.md.txt). |
| Cloud Router | No | `allowCloudRouter` | `CLOUD_ROUTER_BLOCKED` | Falcon VPC networks don't support [Cloud Routers](https://docs.cloud.google.com/network-connectivity/docs/router/concepts/overview.md.txt) and dynamic routes. |
| Cloud Interconnect | No | `allowInterconnect` | `INTERCONNECT_BLOCKED` | Falcon VPC networks don't support [Cloud Interconnect](https://docs.cloud.google.com/network-connectivity/docs/interconnect/concepts/overview.md.txt) VLAN attachments. |
| Cloud VPN | No | `allowVpn` | `VPN_BLOCKED` | Falcon VPC networks don't support [Cloud VPN](https://docs.cloud.google.com/network-connectivity/docs/vpn/concepts/overview.md.txt) tunnels. |
| Network Connectivity Center | No | `allowNcc` | `NCC_BLOCKED` | Falcon VPC networks don't support [NCC](https://docs.cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/overview.md.txt). You can't add a Falcon VPC network as a VPC spoke to a NCC hub. |
| Cloud Load Balancing | No | `allowLoadBalancing` | `LOAD_BALANCING_BLOCKED` | Falcon VPC networks don't support [Cloud Load Balancing](https://docs.cloud.google.com/load-balancing/docs/load-balancing-overview.md.txt). Consequently, Falcon VPC networks don't support load balancer features, including [Google Cloud Armor](https://docs.cloud.google.com/armor/docs/cloud-armor-overview.md.txt). |
| Private Google Access | No | `allowPrivateGoogleAccess` | `PRIVATE_GOOGLE_ACCESS_BLOCKED` | Falcon VPC networks don't support [Private Google Access](https://docs.cloud.google.com/vpc/docs/private-google-access.md.txt). |
| Private Service Connect | No | `allowPsc` | `PSC_BLOCKED` | Falcon VPC networks don't support Private Service Connect [published services](https://docs.cloud.google.com/vpc/docs/about-vpc-hosted-services.md.txt), [endpoints](https://docs.cloud.google.com/vpc/docs/about-accessing-vpc-hosted-services-endpoints.md.txt), or [backends](https://docs.cloud.google.com/vpc/docs/private-service-connect-backends.md.txt). |

### RoCE VPC networks for VM instances (`roce`)

The following table lists the features that are supported
by RoCE VPC networks for VM instances, which are created by using the
`roce` network profile.

| Feature | Supported | Network profile property | Network profile property value | Details |
|---|---|---|---|---|
| RDMA NICs | Yes | `interfaceTypes` | `MRDMA` | RoCE VPC networks for VM instances support only `MRDMA` NICs Other NIC types, such as `IRDMA`, `GVNIC`, `IDPF`, and `VIRTIO_NET`, aren't supported. |
| Multi-NIC in the same network | Yes | `allowMultiNicInSameNetwork` | `MULTI_NIC_IN_SAME_NETWORK_ALLOWED` | RoCE VPC networks for VM instances support [multi-NIC instances](https://docs.cloud.google.com/vpc/docs/multiple-interfaces-concepts.md.txt), allowing two or more RDMA NICs of the same instance to be in the same VPC network. Each NIC must attach to a unique subnet in the VPC network. See also [RoCE VPC network multi-NIC considerations](https://docs.cloud.google.com/vpc/docs/rdma-network-profiles.md.txt#multi-nic-considerations). |
| IPv4-only subnets | Yes | `subnetworkStackTypes` | `SUBNET_STACK_TYPE_IPV4_ONLY` | RoCE VPC networks for VM instances support IPv4-only subnets, including the same [Valid IPv4 ranges](https://docs.cloud.google.com/vpc/docs/subnets.md.txt#valid-ranges) as regular VPC networks. RoCE VPC networks for VM instances don't support dual-stack or IPv6-only subnets. For more information, see [Types of subnets](https://docs.cloud.google.com/vpc/docs/subnets.md.txt#subnet-types). |
| `PRIVATE` subnet purpose | Yes | `subnetworkPurposes` | `SUBNET_PURPOSE_PRIVATE` | RoCE VPC networks for VM instances support regular subnets, which have a `purpose` attribute value of `PRIVATE`. RoCE VPC networks for VM instances don't support Private Service Connect subnets, proxy-only subnets, or Private NAT subnets. For more information, see [Purposes of subnets](https://docs.cloud.google.com/vpc/docs/subnets.md.txt#purpose). |
| `GCE_ENDPOINT` address purpose | Yes | `addressPurposes` | `GCE_ENDPOINT` | RoCE VPC networks for VM instances support IP addresses with a `purpose` attribute value of `GCE_ENDPOINT`, which is used by internal IP addresses of instance NICs. RoCE VPC networks for VM instances don't support special purpose IP addresses, such as the `SHARED_LOADBALANCER_VIP` purpose. For more information, see the [addresses resource reference](https://docs.cloud.google.com/compute/docs/reference/rest/v1/addresses.md.txt). |
| Alias IP ranges | Yes | `allowAliasIpRanges` | `ALIAS_IP_RANGES_ALLOWED` | RoCE VPC networks for VM instances support assigning [alias IP ranges](https://docs.cloud.google.com/vpc/docs/alias-ip.md.txt) to MRDMA NICs. For more information, see [Considerations for RoCE VPC networks](https://docs.cloud.google.com/vpc/docs/alias-ip.md.txt#roce-considerations) in the Alias IP ranges overview. |
| Attachments from `nic0` | No | `allowDefaultNicAttachment` | `DEFAULT_NIC_ATTACHMENT_BLOCKED` | RoCE VPC networks for VM instances don't support attaching the `nic0` network interfaces of an instance to the network. Each RDMA NIC attached to the VPC network must not be `nic0`. |
| External IP addresses for instances | No | `allowExternalIpAccess` | `EXTERNAL_IP_ACCESS_BLOCKED` | RoCE VPC networks for VM instances don't support assigning [external IP addresses](https://docs.cloud.google.com/vpc/docs/ip-addresses.md.txt) to RDMA NICs. Consequently, RDMA NICs don't have internet access. |
| Dynamic Network Interfaces | No | `allowSubInterfaces` | `SUBINTERFACES_BLOCKED` | RoCE VPC networks for VM instances don't support [Dynamic NICs](https://docs.cloud.google.com/vpc/docs/multiple-interfaces-concepts.md.txt#nic-types). |
| Private Service Connect interfaces | No | `allowPscInterface` | `PSC_INTERFACE_BLOCKED` | RoCE VPC networks don't support [network attachments](https://docs.cloud.google.com/vpc/docs/about-network-attachments.md.txt) or connections from [Private Service Connect interfaces](https://docs.cloud.google.com/vpc/docs/about-private-service-connect-interfaces.md.txt). |
| IP forwarding | No | `allowIpForwarding` | `IP_FORWARDING_BLOCKED` | RoCE VPC networks for VM instances don't support [IP forwarding](https://docs.cloud.google.com/vpc/docs/using-routes.md.txt#canipforward). |
| Instance network migration | No | `allowNetworkMigration` | `NETWORK_MIGRATION_BLOCKED` | RoCE VPC networks for VM instances don't support [migrating instance NICs between networks](https://docs.cloud.google.com/compute/docs/instances/migrating-interfaces-between-networks.md.txt). |
| Auto mode | No | `allowAutoModeSubnet` | `AUTO_MODE_SUBNET_BLOCKED` | RoCE VPC networks for VM instances can't be auto mode networks. For more information, see [subnet creation mode](https://docs.cloud.google.com/vpc/docs/vpc.md.txt#subnet-ranges). |
| VPC Network Peering | No | `allowVpcPeering` | `VPC_PEERING_BLOCKED` | RoCE VPC networks for VM instances don't support connecting to other VPC networks using [VPC Network Peering](https://docs.cloud.google.com/vpc/docs/vpc-peering.md.txt). Consequently, RoCE VPC networks for VM instances don't support connecting to services using [private services access](https://docs.cloud.google.com/vpc/docs/private-services-access.md.txt). |
| Static routes | No | `allowStaticRoutes` | `STATIC_ROUTES_BLOCKED` | RoCE VPC networks for VM instances don't support [static routes](https://docs.cloud.google.com/vpc/docs/static-routes.md.txt). |
| Packet Mirroring | No | `allowPacketMirroring` | `PACKET_MIRRORING_BLOCKED` | RoCE VPC networks for VM instances don't support [Packet Mirroring](https://docs.cloud.google.com/vpc/docs/packet-mirroring.md.txt). |
| Cloud NAT | No | `allowCloudNat` | `CLOUD_NAT_BLOCKED` | RoCE VPC networks for VM instances don't support [Cloud NAT](https://docs.cloud.google.com/nat/docs.md.txt). |
| Cloud Router | No | `allowCloudRouter` | `CLOUD_ROUTER_BLOCKED` | RoCE VPC networks for VM instances don't support [Cloud Routers](https://docs.cloud.google.com/network-connectivity/docs/router/concepts/overview.md.txt) and dynamic routes. |
| Cloud Interconnect | No | `allowInterconnect` | `INTERCONNECT_BLOCKED` | RoCE VPC networks for VM instances don't support [Cloud Interconnect](https://docs.cloud.google.com/network-connectivity/docs/interconnect/concepts/overview.md.txt) VLAN attachments. |
| Cloud VPN | No | `allowVpn` | `VPN_BLOCKED` | RoCE VPC networks for VM instances don't support [Cloud VPN](https://docs.cloud.google.com/network-connectivity/docs/vpn/concepts/overview.md.txt) tunnels. |
| Network Connectivity Center | No | `allowNcc` | `NCC_BLOCKED` | RoCE VPC networks for VM instances don't support [NCC](https://docs.cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/overview.md.txt). You can't add a VPC network with an RDMA network profile as a VPC spoke to a NCC hub. |
| Cloud Load Balancing | No | `allowLoadBalancing` | `LOAD_BALANCING_BLOCKED` | RoCE VPC networks for VM instances don't support [Cloud Load Balancing](https://docs.cloud.google.com/load-balancing/docs/load-balancing-overview.md.txt). Consequently, RoCE VPC networks for VM instances don't support load balancer features, including [Google Cloud Armor](https://docs.cloud.google.com/armor/docs/cloud-armor-overview.md.txt). |
| Private Google Access | No | `allowPrivateGoogleAccess` | `PRIVATE_GOOGLE_ACCESS_BLOCKED` | RoCE VPC networks for VM instances don't support [Private Google Access](https://docs.cloud.google.com/vpc/docs/private-google-access.md.txt). |
| Private Service Connect | No | `allowPsc` | `PSC_BLOCKED` | RoCE VPC networks don't support Private Service Connect [published services](https://docs.cloud.google.com/vpc/docs/about-vpc-hosted-services.md.txt), [endpoints](https://docs.cloud.google.com/vpc/docs/about-accessing-vpc-hosted-services-endpoints.md.txt), or [backends](https://docs.cloud.google.com/vpc/docs/private-service-connect-backends.md.txt). |

### RoCE VPC networks for bare metal instances (`roce-metal`)

The following table lists the features that are supported
by RoCE VPC networks for bare metal instances, which are created by using the
`roce-metal` network profile.

In addition to the properties described in the table, see the following
limitations that apply to GPU bare metal instances:

- GPU bare metal instances can't use the following UDP ports in RoCE VPC networks because they are reserved by Google Cloud: `3882-3895` and `13882-13895`.
- GPU bare metal instances can't use the following IPv6 link-local address range, because it is reserved by Google Cloud: `fe80::badd:c0de:cafe:0/120`.

| Feature | Supported | Network profile property | Network profile property value | Details |
|---|---|---|---|---|
| RDMA NICs | Yes | `interfaceTypes` | `MRDMA` | RoCE VPC networks for bare metal instances support only `MRDMA` NICs Other NIC types, such as `IRDMA`, `GVNIC`, `IDPF`, and `VIRTIO_NET`, aren't supported. |
| Multi-NIC in the same network | Yes | `allowMultiNicInSameNetwork` | `MULTI_NIC_IN_SAME_NETWORK_ALLOWED` | RoCE VPC networks for bare metal instances support [multi-NIC instances](https://docs.cloud.google.com/vpc/docs/multiple-interfaces-concepts.md.txt), allowing two or more RDMA NICs of the same instance to be in the same VPC network. See also [RoCE VPC network multi-NIC considerations](https://docs.cloud.google.com/vpc/docs/rdma-network-profiles.md.txt#multi-nic-considerations). |
| Multi-NIC in the same subnet | Yes | `allowMultiNicInSameSubnetwork` | `MULTI_NIC_IN_SAME_SUBNETWORK_ALLOWED` | RoCE VPC networks for bare metal instances support [multi-NIC instances](https://docs.cloud.google.com/vpc/docs/multiple-interfaces-concepts.md.txt), allowing two or more RDMA NICs of the same instance to be in the same subnet of a VPC network. See also [RoCE VPC network multi-NIC considerations](https://docs.cloud.google.com/vpc/docs/rdma-network-profiles.md.txt#multi-nic-considerations). |
| Predefined network ULA IPv6 range | Yes | `predefinedNetworkInternalIpv6Range` | <var translate="no">ULA_IPV6_RANGE</var> | RoCE VPC networks for bare metal instances support internal IPv6 and have a predefined `/48` [unique local address (ULA)](https://datatracker.ietf.org/doc/html/rfc4193) range. The predefined range is provided by Google Cloud for each network profile instance and isn't configurable. |
| One IPv6-only subnet | Yes | `subnetworkStackTypes` | `SUBNET_STACK_TYPE_IPV6_ONLY` | RoCE VPC networks for bare metal instances support a single, automatically-provided IPv6-only subnet that uses a predefined IPv6 subnet range and naming convention as described in the following table row. RoCE VPC networks for bare metal instances don't support dual-stack or IPv4-only subnets, or the creation of additional IPv6-only subnets. For more information, see [Types of subnets](https://docs.cloud.google.com/vpc/docs/subnets.md.txt#subnet-types). |
| Predefined IPv6 subnet range and name prefix | Yes | `predefinedSubnetworkRanges` | `ipv6Range: ULA_IPV6_RANGE` `namePrefix: default-subnet-1` | RoCE VPC networks for bare metal instances have a single subnet that is automatically-provided and has the following properties: - The subnet uses a predefined `/48` IPv6 range that exactly matches the network's `/48` range. - The subnet uses the following naming format: `default-subnet-1-NETWORK_NAME`, where <var translate="no">NETWORK_NAME</var> is the name that you provided when you created the network. |
| `PRIVATE` subnet purpose | Yes | `subnetworkPurposes` | `SUBNET_PURPOSE_PRIVATE` | RoCE VPC networks for bare metal instances support regular subnets, which have a `purpose` attribute value of `PRIVATE`. RoCE VPC networks for bare metal instances don't support Private Service Connect subnets, proxy-only subnets, or Private NAT subnets. For more information, see [Purposes of subnets](https://docs.cloud.google.com/vpc/docs/subnets.md.txt#purpose). |
| `GCE_ENDPOINT` address purpose | Yes | `addressPurposes` | `GCE_ENDPOINT` | RoCE VPC networks for bare metal instances support IP addresses with a `purpose` attribute value of `GCE_ENDPOINT`, which is used by internal IP addresses of instance NICs. RoCE VPC networks for bare metal instances don't support special purpose IP addresses, such as the `SHARED_LOADBALANCER_VIP` purpose. For more information, see the [addresses resource reference](https://docs.cloud.google.com/compute/docs/reference/rest/v1/addresses.md.txt). |
| Subnet creation | No | `allowSubnetworkCreation` | `SUBNETWORK_CREATION_BLOCKED` | RoCE VPC networks for bare metal instances don't support [creating subnets](https://docs.cloud.google.com/vpc/docs/create-modify-vpc-networks.md.txt#add-subnet-ipv6-only) in the network. |
| Attachments from `nic0` | No | `allowDefaultNicAttachment` | `DEFAULT_NIC_ATTACHMENT_BLOCKED` | RoCE VPC networks for bare metal instances don't support attaching the `nic0` network interfaces of an instance to the network. Each RDMA NIC attached to the VPC network must not be `nic0`. |
| Static IP addresses for instances | No | `allowAddressCreation` | `ADDRESS_CREATION_BLOCKED` | RoCE VPC networks for bare metal instances don't support reserving static [internal](https://docs.cloud.google.com/vpc/docs/reserve-static-internal-ip-address.md.txt) or [external](https://docs.cloud.google.com/vpc/docs/reserve-static-external-ip-address.md.txt) IP addresses, or configuring static [internal](https://docs.cloud.google.com/compute/docs/ip-addresses/configure-static-internal-ip-address.md.txt) or [external](https://docs.cloud.google.com/compute/docs/ip-addresses/configure-static-external-ip-address.md.txt) IP addresses for instances. Consequently, instances in the network can use only ephemeral internal IP addresses. |
| External IP addresses for instances | No | `allowExternalIpAccess` | `EXTERNAL_IP_ACCESS_BLOCKED` | RoCE VPC networks for bare metal instances don't support assigning [external IP addresses](https://docs.cloud.google.com/vpc/docs/ip-addresses.md.txt), either static or ephemeral, to RDMA NICs. Consequently, RDMA NICs don't have internet access. |
| Dynamic Network Interfaces | No | `allowSubInterfaces` | `SUBINTERFACES_BLOCKED` | RoCE VPC networks for bare metal instances don't support [Dynamic NICs](https://docs.cloud.google.com/vpc/docs/multiple-interfaces-concepts.md.txt#nic-types). |
| Private Service Connect interfaces | No | `allowPscInterface` | `PSC_INTERFACE_BLOCKED` | RoCE VPC networks don't support [network attachments](https://docs.cloud.google.com/vpc/docs/about-network-attachments.md.txt) or connections from [Private Service Connect interfaces](https://docs.cloud.google.com/vpc/docs/about-private-service-connect-interfaces.md.txt). |
| Alias IP ranges | No | `allowAliasIpRanges` | `ALIAS_IP_RANGE_BLOCKED` | RoCE VPC networks for bare metal instances don't support assigning [alias IP ranges](https://docs.cloud.google.com/vpc/docs/alias-ip.md.txt) to RDMA NICs. |
| IP forwarding | No | `allowIpForwarding` | `IP_FORWARDING_BLOCKED` | RoCE VPC networks for bare metal instances don't support [IP forwarding](https://docs.cloud.google.com/vpc/docs/using-routes.md.txt#canipforward). |
| Instance network migration | No | `allowNetworkMigration` | `NETWORK_MIGRATION_BLOCKED` | RoCE VPC networks for bare metal instances don't support [migrating instance NICs between networks](https://docs.cloud.google.com/compute/docs/instances/migrating-interfaces-between-networks.md.txt). |
| Auto mode | No | `allowAutoModeSubnet` | `AUTO_MODE_SUBNET_BLOCKED` | RoCE VPC networks for bare metal instances can't be auto mode networks. For more information, see [subnet creation mode](https://docs.cloud.google.com/vpc/docs/vpc.md.txt#subnet-ranges). |
| VPC Network Peering | No | `allowVpcPeering` | `VPC_PEERING_BLOCKED` | RoCE VPC networks for bare metal instances don't support connecting to other VPC networks using [VPC Network Peering](https://docs.cloud.google.com/vpc/docs/vpc-peering.md.txt). Consequently, RoCE VPC networks for bare metal instances don't support connecting to services using [private services access](https://docs.cloud.google.com/vpc/docs/private-services-access.md.txt). |
| Static routes | No | `allowStaticRoutes` | `STATIC_ROUTES_BLOCKED` | RoCE VPC networks for bare metal instances don't support [static routes](https://docs.cloud.google.com/vpc/docs/static-routes.md.txt). |
| VPC firewall rules | No | `allowVpcFirewallRules` | `VPC_FIREWALL_RULES_BLOCKED` | RoCE VPC networks for bare metal instances don't support [VPC firewall rules](https://docs.cloud.google.com/firewall/docs/firewalls.md.txt). |
| Firewall policies | No | `allowFirewallPolicy` | `FIREWALL_POLICY_BLOCKED` | RoCE VPC networks for bare metal instances don't support [firewall policies](https://docs.cloud.google.com/firewall/docs/firewall-policies-overview.md.txt). |
| Packet Mirroring | No | `allowPacketMirroring` | `PACKET_MIRRORING_BLOCKED` | RoCE VPC networks for bare metal instances don't support [Packet Mirroring](https://docs.cloud.google.com/vpc/docs/packet-mirroring.md.txt). |
| Cloud NAT | No | `allowCloudNat` | `CLOUD_NAT_BLOCKED` | RoCE VPC networks for bare metal instances don't support [Cloud NAT](https://docs.cloud.google.com/nat/docs.md.txt). |
| Cloud Router | No | `allowCloudRouter` | `CLOUD_ROUTER_BLOCKED` | RoCE VPC networks for bare metal instances don't support [Cloud Routers](https://docs.cloud.google.com/network-connectivity/docs/router/concepts/overview.md.txt) and dynamic routes. |
| Cloud Interconnect | No | `allowInterconnect` | `INTERCONNECT_BLOCKED` | RoCE VPC networks for bare metal instances don't support [Cloud Interconnect](https://docs.cloud.google.com/network-connectivity/docs/interconnect/concepts/overview.md.txt) VLAN attachments. |
| Cloud VPN | No | `allowVpn` | `VPN_BLOCKED` | RoCE VPC networks for bare metal instances don't support [Cloud VPN](https://docs.cloud.google.com/network-connectivity/docs/vpn/concepts/overview.md.txt) tunnels. |
| Network Connectivity Center | No | `allowNcc` | `NCC_BLOCKED` | RoCE VPC networks for bare metal instances don't support [NCC](https://docs.cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/overview.md.txt). You can't add a RoCE VPC network as a VPC spoke to a NCC hub. |
| Cloud Load Balancing | No | `allowLoadBalancing` | `LOAD_BALANCING_BLOCKED` | RoCE VPC networks for bare metal instances don't support [Cloud Load Balancing](https://docs.cloud.google.com/load-balancing/docs/load-balancing-overview.md.txt). Consequently, RoCE VPC networks for bare metal instances don't support load balancer features, including [Google Cloud Armor](https://docs.cloud.google.com/armor/docs/cloud-armor-overview.md.txt). |
| Private Google Access | No | `allowPrivateGoogleAccess` | `PRIVATE_GOOGLE_ACCESS_BLOCKED` | RoCE VPC networks for bare metal instances don't support [Private Google Access](https://docs.cloud.google.com/vpc/docs/private-google-access.md.txt). |
| Private Service Connect | No | `allowPsc` | `PSC_BLOCKED` | RoCE VPC networks for bare metal instances don't support Private Service Connect [published services](https://docs.cloud.google.com/vpc/docs/about-vpc-hosted-services.md.txt), [endpoints](https://docs.cloud.google.com/vpc/docs/about-accessing-vpc-hosted-services-endpoints.md.txt), or [backends](https://docs.cloud.google.com/vpc/docs/private-service-connect-backends.md.txt). |

## Multi-NIC considerations for RoCE VPC networks

To support workloads that benefit from cross-rail GPU-to-GPU communication, RoCE
VPC networks support instances that have multiple `MRDMA` NICs in the
network. Placing two or more
`MRDMA` NICs in the same RoCE VPC network might affect network
performance, including increased latency. `MRDMA` NICs use
[NCCL](https://developer.nvidia.com/nccl). NCCL attempts to align all network
transfers, even for cross-rail communication. For example, it uses PXN to copy
data through NVlink to a rail-aligned GPU before transferring it over the
network.

## Number of connections limit for RoCE VPC networks

A given RoCE VPC network has the following system limit:

| Item | Limit | Notes |
|---|---|---|
| Maximum number of connections | 20,000 | The maximum number of connections over `MRDMA` vNICs per 2-tuple (source IP address, destination IP address). A connection is established when a source IP address and destination IP address communicate for the first time. For a given 2-tuple, [multiple receive and transmit queue pairs](https://docs.cloud.google.com/compute/docs/network-bandwidth.md.txt#rx-tx) share the connection. For example, assume `instance-a` and `instance-b` both have 8 `MRDMA` vNICs, each with 2 routable IP addresses: - The initial connection count is 0. - When the first IP address on the first vNIC of `instance-a` communicates with the first IP address on the first vNIC of `instance-b`, the connection count becomes 1. - When `instance-a` opens another queue pair to `instance-b` using the same IP addresses on the same vNICs, the connection count remains 1. - When `instance-a` starts a rail-aligned all-to-all communicator engaging all 8 vNICs, the connection count becomes 8. If the connection count goes beyond the limit of 20,000, new connections might see failures, but existing connections aren't impacted. |

## What's next

- [Network profiles for specific use cases](https://docs.cloud.google.com/vpc/docs/network-profiles.md.txt)
- [Create a VPC network for RDMA NICs](https://docs.cloud.google.com/vpc/docs/create-vpc-network-rdma.md.txt)
- [Cloud NGFW for RoCE VPC networks](https://docs.cloud.google.com/firewall/docs/firewall-for-roce.md.txt)