Troubleshoot network latency issues
For information about the ways you can improve connection latency between processes within Google Cloud and decrease the latency of TCP connections, see TCP optimization for network performance in Google Cloud and hybrid scenarios.
Troubleshooting dropped network traffic
Compute Engine only allows network traffic that is explicitly permitted by your project's Firewall rules to reach your instance. By default, all projects automatically come with a default network that allows certain kinds of connections. If you deny all traffic, by default, that also denies SSH connections and all internal traffic. For more information, see the Firewall rules page.
In addition, you may need to adjust TCP keep-alive settings to work around the default idle connection timeout of 10 minutes. For more information, see Communicating between your instances and the internet.
Troubleshooting firewall rules or routes on an instance
The Google Cloud console provides network details for each network interface of an instance. You can view all of the firewall rules or routes that apply to an interface, or you can view just the rules and routes that the interface uses. Either view can help you troubleshoot which firewall rules and routes apply to the instance and which ones are actually being used (where priority and processing order override other rules or routes).
For more information, see the troubleshooting information in the Virtual Private Cloud documentation:
Troubleshooting protocol forwarding for private forwarding rules
Use the following sections to resolve common issue related to protocol forwarding for private forwarding rules.
Regional restriction
Protocol forwarding for private forwarding rules is a regional product. All clients and target instance VMs must be in the same region.
Error message: "An internal target instance can only be the target of one forwarding rule"
If you see the error message An internal target instance can only be the target
of one forwarding rule
, you might be trying to configure two forwarding rules
pointing to the same target instance. You cannot point multiple forwarding
rules to the same target instance.
Troubleshooting latency on Compute Engine VMs when processing high packet rates
If your VM experiences latency, dropped packets, or packet retransmissions when processing high packet rates, your VM might not have enough receive queues (RX) or transmit queues (TX) on the network interface (NIC) processing those packets.
To resolve these issues, see Receive and transmit queues for information about how Compute Engine allocates RX and TX queues.
Troubleshooting custom NIC queue oversubscription
With queue oversubscription, the maximum queue count for the VM is:
[maximum queue count per VM] * [number of NICs]
However, you must satisfy the conditions specified in Custom queue allocation. For example, if you didn't specify a custom queue count for one of the NICs configured for the VM, you get an error similar to the following:
ERROR: (gcloud.compute.instances.create) Could not fetch resource: - Invalid value for field 'resource.networkInterfaces': ''. The total networking queue number is more than the number of vCPUs. Please specify the queue count for all of the interfaces.
Projects migrated to zonal DNS but VMs in new project are using global DNS
If you completed the migration of your existing projects from using global DNS
to using zonal DNS, but discover that VMs in a newly created project have
global DNS names, you didn't enforce the boolean organization policy
constraints/compute.setNewProjectDefaultToZonalDNSOnly
at an organization or
folder level. This policy overrides the default DNS setting, so that newly
created projects use internal zonal DNS by default.
For instructions on enforcing this policy, see Enforce zonal DNS only by default for new projects.
If you aren't using an organization policy, but instead use the metadata entry
VmDnsSetting=ZonalOnly
for projects or VMs, check the metadata value for
the VM. If the VM has VmDnsSetting=GlobalDefault
configured in its metadata,
this value overrides the metadata value set at the project level.
For information about how to set project metadata or VM metadata values,
see Setting custom metadata.