ARTICLE - Domains & Website Hosting

Choosing C4N Network-Optimized VMs

C4N is worth evaluating when a workload is constrained by network or block-storage I/O, not simply because of its latency target or share of internal traffic.

2026-07-03 Google Cloud Blog 46 views
Advertisement

When a website gateway, service-to-service connection or database hits an I/O bottleneck, compare Google Cloud C4N with the existing general-purpose VM under the same workload. Locate the limiting component first, then check the candidate shape's network, disk and cost; end-to-end latency or the share of internal traffic alone does not establish a need to switch.

Google announced C4N preview on 2026-04-23 and general availability for regular C4N instances on 2026-07-09. The Titanium Local SSD -lssd shapes entered preview on 2026-09-15. For launch details and specifications see C4N launch and specifications; this article focuses on evaluating website workloads. Sources: preview announcement and GA announcement, checked 2026-11-28.

Locate the bottleneck before selecting a VM

The diagram separates three diagnostic paths: test C4N further only when a network or storage constraint is established.

C4N selection decision Locate bottleneck Network limit Storage limit Other cause Compare bandwidth and PPS Check disk and VM limits Investigate application and path Scope: diagnostic branches, not measured performance
Figure 1: C4N selection decision (Source: diagnostic branches, not measured performance)
Observation Next step
VM egress throughput or packets per second approach the applicable machine and path limit while requests queue Compare C4N with the same direction, packet size and concurrency
Disk throughput, IOPS or wait time is abnormal at peak load Separate provisioned disk performance, VM limits and access patterns before comparing Hyperdisk configurations
CPU, application locks, database queries or a remote path limit the workload first Investigate that constraint; C4N does not guarantee better end-to-end latency

For static assets, first check cache hits and origin requests; for an API gateway, examine client ingress and service-to-service traffic separately. Being below network or disk limits does not prove that CPU is the bottleneck: correlate application metrics with traces. Keep workload, dataset, region, concurrency and duration consistent, and record throughput, error rates and latency distributions. Do not shift all production traffic during the trial.

A bandwidth ceiling is not measured throughput

According to the C4N machine documentation, checked 2026-11-28, c4n-standard-16 offers up to 50 Gbps VM-to-VM and up to 25 Gbps internet egress. The 192-vCPU shape offers up to 400 Gbps VM-to-VM and up to 200 Gbps internet egress. These are different paths: 400 Gbps is not the speed of every client connection.

Between C4N instances routed within the same VPC, a single flow can reach up to 50 Gbps. Full network throughput on a 192-vCPU shape requires at least two vNICs mapped to different physical NICs, 8896-byte jumbo frames, and traffic distributed across those interfaces by the OS or application. C4N requires gVNIC and a compatible image; the peer, route, protocol, packet size and application also affect results. Internet egress is not equivalent to the same-VPC single-flow case. See network bandwidth.

Check the zone and cost

Install and sign in to the Google Cloud CLI with a project that has the Compute Engine API enabled and permission to read machine types. Replace the project and zone below with your own values. This read-only query creates no VM:

gcloud compute machine-types list \
  --project="YOUR_PROJECT_ID" \
  --zones="YOUR_ZONE" \
  --filter="name~'^c4n-'" \
  --format="table(name,guestCpus,memoryMb)"

Verification: on a successful query you should see matching machine types, vCPUs and memory in the zone. If no rows appear, try another zone or check the filter; resolve any permission or API error first. The list does not guarantee quota, capacity or preview access; check the console before creating a VM.

Compare VM runtime and purchase model, disk capacity and the chosen Hyperdisk's provisioned performance, network transfer, image licenses and other dependencies separately. On the C4N pricing page, checked 2026-11-28, the default price for c4n-standard-16 in us-central1 is USD 1.2651 per hour for the machine alone, excluding disk, traffic and other charges. On-demand, Spot, reservations and committed use discounts have different conditions; prices can also vary by region and billing account. Compare the same usage and purchase terms.

Limitations

  • C4N uses predefined shapes: custom vCPU and memory combinations and attached GPUs are not supported. GPU compute requires a different supported instance.
  • Do not assume a disk interface from the old VM will work unchanged: C4N uses NVMe, and supported disk types are listed in the machine documentation. Check the image, drivers, backups and rollback path before migration.
  • Test with controlled traffic before a gradual cutover. Retain the old instance and recoverable data, and verify that routing can be restored if the trial fails.

FAQ

Should a slow website move to C4N?

Not necessarily. The browser-to-edge path, application processing, database and external APIs can all add latency. Use traces and workload metrics to locate the wait first. If network or disk approaches its applicable limit, compare C4N under the same conditions rather than treating advertised bandwidth as page response time.

Can packet rate be a bottleneck when bandwidth is not full?

Yes. Many small packets can produce a high packet rate without high byte throughput. Observe PPS, packet loss and application latency together and check the machine and path limits. Google's maximum 95 MPPS is an official figure measured with a specific tool; it is not guaranteed for every shape or application.

Does a region on the price page guarantee that a VM can be created?

No. A listed price does not guarantee that the desired zone offers the shape, the project has enough quota, or capacity is available at that moment. Check preview conditions for -lssd as well. Query the machine type, then check quota and actual creation options in the console.

Related Providers

  • Google Cloud: check C4N, Hyperdisk and regional conditions for the target Compute Engine project.

Community & Resources

Original source: Google Cloud Blog ↗