Cloud data center network solutions
The public cloud virtualizes traditional data centers, providing many tenants with ready-to-use and instantly elastic IT services. A cloud data center network built around a virtual private cloud (VPC) is the foundation for using the cloud. This topic describes network solutions based on VPCs.
1. Background and concepts
1.1 What is a data center network?
A data center is a physical facility that houses computing resources, such as servers, storage devices, and network equipment, along with related infrastructure like power, cooling, and fire suppression systems. Data centers centralize these resources to manage and process large volumes of data. The main drivers behind the emergence of data centers include the following:
Explosive growth in data volume: With advances in computer technology and the widespread adoption of personal computers and the Internet, businesses and society have generated data at an explosive rate. Traditional small-scale or decentralized data storage and processing methods cannot meet the demands of large-scale data management, necessitating dedicated facilities for centralized data storage and processing.
Increased demand for computing resources: As organizations undergo digital transformation, they require powerful computing capabilities to support increasingly complex business processes and applications, such as ERP systems, customer relationship management (CRM) systems, and e-commerce platforms. These systems depend on high-performance, highly reliable servers and storage devices, whose maintenance and management require professional environments and technical support—factors that have driven the formation of data centers.
Advances in network technology: The rise of the Internet, particularly the mobile Internet, enables rapid global information transmission. This has also accelerated data center development. Businesses now require not only internal data processing capabilities but also the ability to deliver external services over the network, such as website hosting and online transaction processing. Stable and efficient data centers are essential to ensure service quality.
A data center network is a network deployed within a data center to support high-speed data exchange between servers, storage systems, and network devices. It is designed to ensure efficient and reliable data transmission and provide fast access to computing resources to meet the needs of modern enterprise applications and services. As a key component of data center infrastructure, the data center network directly affects the overall performance, availability, and scalability of the data center. Key characteristics include high performance, high availability through redundancy, and flexible scalability. Consequently, the design and evolution of data center network architecture are critical.
1.2 What is a cloud network?
In the digital age, the Internet has become fundamental infrastructure. Cloud computing enables a data center to function like a single computer, delivering on-demand computing power over the Internet on a pay-as-you-go basis. This includes computing, storage, networking, databases, big data processing, and Large Language Models (LLMs). A key advantage of cloud computing is its elasticity, which lets you use services on demand, scale resources flexibly, and handle unpredictable traffic loads with ease. Networks on cloud computing platforms feature the following characteristics:
Network virtualization: Technologies such as SDN and VXLAN virtualize a physical data center network into multiple independent virtual networks.
Multi-tenant data isolation: Public clouds are inherently multi-tenant. Each tenant uses one or more of these virtual networks to deploy and manage their own cloud computing resources, and networks belonging to different tenants are mutually invisible.
Elastic scaling: Physical network devices in a data center become logical network elements on the public cloud, and physical network lines become logical connections. The number of network elements and connections scales dynamically as tenants deploy or release resources, and their capacity adjusts in real time based on workload demands.
1.3 Alibaba Cloud's tenant network: VPC
To manage its vast physical data center resources, Alibaba Cloud organizes them as follows:
Zone: A zone (AZ) is a logical grouping of physically separate data centers within the same geographic region. For simplicity, you can think of a zone as a local area network.
Each zone features independent power, cooling, and network connectivity to prevent a single point of failure from disrupting services across the entire region. This abstraction enhances application and service availability and fault tolerance. By distributing resources across multiple zones, services can continue operating in unaffected zones even if one zone fails, ensuring business continuity.
Each zone implements a hierarchical network topology to interconnect network, computing, and storage devices.
Region: A region is a geographic area that typically contains one or more zones. These zones are interconnected via low-latency, high-speed networks but remain operationally independent to provide fault isolation. Conceptually, a region resembles a metropolitan area network.
Each region resides in a distinct geographic location to meet data residency requirements, reduce access latency, and enhance disaster recovery capabilities.
Each region includes an exit point connected to the Internet Service Provider (ISP) public network for Internet access.
Each region also includes a leased line access area for dedicated leased line connections.
Inter-region connection: Businesses often need to distribute data globally, implement disaster recovery policies, or optimize user experience for global audiences. This requires private network connectivity between independent regions. Conceptually, inter-region connections resemble a wide area network.
A Virtual Private Cloud (VPC) is an isolated cloud environment created for a tenant on the public cloud, separate from other tenants. It is more than just a network—it functions as a container in the cloud that encompasses all the cloud products and services used by the tenant.
At Alibaba Cloud, this service is called a virtual private cloud (VPC), aligning with the concept of an on-premises data center network. From a communication perspective, all cloud services within the VPC rely on this private network for internal communication. The network is exclusive to a single tenant and isolated from others.
An Alibaba Cloud region is typically treated as a cloud data center. Customer business systems are deployed across multiple VPCs within this region, necessitating careful design of both intra-VPC and inter-VPC networking.
2 Target customers for this solution
All Alibaba Cloud customers. Customers must first determine how to divide their business systems into VPCs and then design the network within and between those VPCs.
3 Solution details
After dividing VPCs according to the principles above, you can construct the full network architecture:
VPC: Determine the number of VPCs, their regions, and interconnection relationships.
Internet (application delivery network): Identify which VPCs require Internet access, whether for inbound or outbound traffic, whether to use a unified Internet gateway, and the appropriate SLB configuration.
Cross-region on the cloud: Determine which regions need interconnection and the required bandwidth, which regions use leased lines and their specifications, and which regions use VPNs and their specifications.

Next, design the intra-VPC network and the inter-VPC interconnection network within the overall architecture.
3.1 Intra-VPC network solution
[Solution overview] A VPC serves as a container and platform for cloud resources. Planning and designing the intra-VPC network is crucial, as it impacts cloud resource security, future scalability, and operational convenience. Design considerations include VPC location selection, IP address planning, subnet and routing design, and security protection.

1. Determine the geographic location
Select a region based on the geographic location of your business’s users. Choose a zone based on cloud resource availability and inter-zone latency.
2. Plan IP addresses
VPC CIDR block: Based on projected network capacity (extra large: 10.0.0.0/8, large: 172.16.0.0/12, medium: 192.168.0.0/16), select at least a /16 mask.
CIDR blocks of multiple VPCs must not overlap.
Business vSwitch CIDR block: For extra-large and large VPCs, use a /20 subnet mask (4,096 addresses). For medium VPCs, use a /24 subnet mask (252 usable addresses).
3. Business subnet vSwitches
As shown in the figure, business subnets A, B, C, D, and E host cloud resources such as ECS instances and ApsaraDB instances. By default, private IP addresses of instances in these vSwitches are fully interconnected.
Deploy business subnets across multiple zones for redundancy and improved availability—for example, subnets A and B, or C and D.
If a business subnet vSwitch does not require Internet access, create a custom route table without the default route 0.0.0.0/0 and associate it with the vSwitch.
4. Inbound connections (accessed from the Internet)
For service systems in a VPC accessed by Internet clients, use Server Load Balancer (SLB).
Deploy SLB instances across multiple zones to improve availability.
Create dedicated vSwitches and subnets for SLB instances in multiple zones, as illustrated by SLB subnets A, B, C, and D in the figure.
The SLB instance handling Internet traffic is associated with an Elastic IP Address (EIP), such as EIP3 in the figure, and connects to the Internet. The vSwitch of its subnet is associated with the system route table (default, Internet). When the IPv4 gateway is enabled, the default route 0.0.0.0/0 directs response traffic to the IPv4 gateway and then to the Internet. When the IPv4 gateway is disabled, this default route is unnecessary, and traffic flows directly to the Internet.
5. Outbound connections (accessing the Internet)
For ECS instances in the VPC that require Internet access, use a NAT Gateway.
Create NAT vSwitches and subnets in the same zones as the ECS instances requiring outbound access, as shown by NAT subnets A and B in the figure. Deploy a NAT Gateway instance in each of these vSwitches to avoid cross-zone access, thereby reducing the impact of a zone failure on outbound connectivity.
The NAT Gateway is associated with EIPs, such as EIP1 and EIP4. Each NAT Gateway can bind multiple EIPs to increase bandwidth and concurrent connections. The NAT Gateway connects to the Internet. The vSwitch of its subnet is associated with the system route table (default, Internet). When the IPv4 gateway is enabled, the default route 0.0.0.0/0 directs outbound traffic to the IPv4 gateway and then to the Internet. When the IPv4 gateway is disabled, this route is not needed, and traffic goes directly to the Internet.
Configure SNAT rules on the NAT Gateway for business vSwitches or ECS instances requiring outbound access.
For business vSwitches requiring outbound access, create and associate a route table that directs traffic to the NAT Gateway, such as subnet route table 1 (NAT Gateway) in the figure. The default route 0.0.0.0/0 in this table forwards outbound traffic to the NAT Gateway.
6. ECS direct Internet access
Some application servers are launched and released on demand with random service ports—for example, game battle servers, channel servers, and audio/video conference servers. Others require dedicated outbound bandwidth to avoid interference from shared NAT Gateway resources. For these use cases, direct Internet connectivity via an EIP is more suitable than using SLB or NAT Gateway. There are two methods for an ECS instance to connect directly to the Internet:
Bind an EIP directly to the ECS instance in NAT mode. This enables bidirectional Internet traffic. In this mode, the EIP acts as a NAT IP address, with NAT mapping performed on a backend Internet gateway. Thus, the EIP does not appear on the private network interface controller (NIC) of the ECS instance, and applications inside the instance are unaware of the EIP. Consequently, they cannot perform operations such as declaring source IP and port for protocols like SIP.
Create a secondary elastic network interface (ENI) and attach it to the ECS instance. Then bind an EIP to the secondary ENI in cut-through mode. Cut-through mode is not supported for EIPs bound directly to ECS instances or to primary ENIs. In this mode, the EIP is not a NAT IP address; instead, it replaces the private IP of the secondary ENI, effectively making it a public-only NIC. This approach supports any IP-based protocol, such as FTP, H.323, SIP, DNS, RTSP, and TFTP.
7. IPv4 gateway design [Optional & Recommended]
Enable the IPv4 gateway when you need to control which servers can be assigned public IP addresses or bound to EIPs, and which Internet-facing SLBs can access the Internet directly. Once enabled, all vSwitches must have a route to the gateway in their associated route tables to access the Internet.
8. Security protection design [Optional]
A network access control list (network ACL) filters traffic at the vSwitch (subnet) level. Network ACLs are stateless.
A security group filters traffic at the server level. Security groups are stateful.
9. Monitoring and log records [Optional]
Configure NIS for routine diagnostics and observation. Use flowlog and traffic mirroring as needed, and set up corresponding CloudMonitor alerts.
10. The VPC network design for containers is similar, with the following differences:
When using the Terway network plug-in, plan additional pod vSwitches and subnets.
When using the Flannel network plug-in, account for VPC route table entry capacity and avoid conflicts in pod CIDR blocks.
For inbound connections, use NLB as a LoadBalancer or ALB as an Ingress. For more information, see the application delivery network solution section.
Pods can be associated with EIPs for direct Internet access. Cut-through mode is not supported.
3.2 Inter-VPC network solution in the same region
When business systems in different VPCs need to communicate, an inter-VPC communication solution is required. This includes designing for both interconnection and isolation, enabling access to shared services such as printers and document libraries, and centrally managing Internet gateways for large enterprises.
3.2.1 East-west inter-VPC communication solution
[Solution overview] For inter-VPC communication, the first consideration is defining which VPCs can communicate and which cannot. This can be achieved using the route tables of a Transit Router (TR) without deploying a firewall for centralized management.


1. Determine the VPC division
Divide VPCs according to the previously stated principles. For two VPCs with peak intercommunication bandwidth exceeding 50 Gbps in Hangzhou, Shanghai, Beijing, Shenzhen, or Singapore, or exceeding 10 Gbps in other regions, consider merging them.
2. Use a Transit Router (TR) for inter-VPC communication
For business VPCs requiring communication, create vSwitches connected to the TR in all of them (multi-zone deployment is recommended) and attach them to the TR.
If attached VPCs require strong interconnection, configure the TR with a single system route table (default) to associate and forward traffic for all VPCs, enabling mutual communication. See the "VPC full interconnection" figure above.
If some attached VPCs require strong isolation, configure the TR with multiple custom route tables, each associated with specific VPCs. VPCs within the same route table can communicate; those in different tables cannot. See the "Inter-VPC isolation" figure above.
3. Security protection design [Optional]
An intra-VPC network ACL (network ACL) filters traffic at the vSwitch (subnet) level. Network ACLs are stateless.
An ECS security group filters traffic at the server level. Security groups are stateful.
Routing policies in a Transit Router (TR) route table can hide specific CIDR blocks of certain VPCs, rendering them invisible to the entire TR network or to designated VPCs, achieving subnet-level isolation.
4. Monitoring and log records [Optional]
Configure NIS for traffic monitoring, diagnostics, and observation.
3.2.2 Inter-VPC communication through a firewall solution
[Solution overview] When complex interconnection and isolation requirements exist between VPCs, use a firewall for centralized security management.

1. Use a Transit Router (TR) for inter-VPC communication
For both business VPCs and the security VPC, create vSwitches connected to the TR (multi-zone deployment is recommended) and attach them to the TR.
Use custom route table 1 as the untrusted route table. Configure a default route 0.0.0.0/0 with the next hop pointing to the security VPC. Associate this route table with all business VPCs to direct their traffic to the security VPC and then to the Cloud Firewall instance for traffic scrubbing.
Use the system route table (default) as the trusted route table. It automatically learns routes from all attached VPCs. Associate this route table with the Cloud Firewall VPC to forward scrubbed traffic to the destination business VPC.
2. Connect the security VPC to Cloud Firewall for centralized security management
In this VPC, create a firewall vSwitch and subnet, and deploy a Cloud Firewall instance within it.
The vSwitch subnet connected to the TR is associated with the system route table by default.
The vSwitch subnet hosting the Cloud Firewall instance is associated with custom subnet route table 1.
Configure a default route 0.0.0.0/0 in the system route table with the next hop pointing to the Cloud Firewall ENI. This ENI supports active-standby disaster recovery, with the secondary zone hidden from the customer, directing all TR traffic to the firewall.
Configure a default route 0.0.0.0/0 in custom subnet route table 1 with the next hop pointing to the TR, sending all scrubbed traffic from the Cloud Firewall instance back to the TR for forwarding.
3. Monitoring and log records [Optional]
Configure NIS for traffic monitoring, diagnostics, and observation.
3.2.3 Network solution for sharing enterprise services
3.2.4 Unified Internet gateway solution
[Solution overview] The enterprise cloud IT team centrally manages public network resources and access permissions, prohibiting business units from creating Internet-facing instances independently. Customers require a secure, compliant network architecture to maximize internal service protection against potential threats, enable centralized budgeting for Internet-facing products, and maximize reuse of public bandwidth to reduce IT costs. Therefore, a network with a unified Internet gateway—akin to a DMZ in a traditional data center—must be designed.

1. Overall scenario design
The unified Internet gateway on the cloud (DMZ VPC) is a dedicated VPC serving as an access and egress zone that isolates the external Internet (untrusted zone) from the enterprise’s internal cloud network (trusted zone). This design centralizes Internet access resource management, simplifying the deployment of high-concurrency, high-traffic application gateways, external access control, and efficient public bandwidth utilization. Integrated with security products, it also maximizes protection for the internal network.
2. Transit Router (TR) and route table design
Both business VPCs requiring Internet access and the DMZ VPC are attached to the TR.
The TR uses the system route table (default). A custom route 0.0.0.0/0 is configured with the next hop pointing to the DMZ VPC. This directs outbound Internet traffic to the DMZ VPC and then to the Internet. Inbound Internet traffic, after destination IP conversion by SLB or NAT Gateway, is forwarded to the destination VPC by matching specific routes in this table.
3. DMZ VPC design
SLB subnet: Create a dedicated SLB subnet (public subnet) and deploy SLB instances. Deploy each SLB instance across multiple zones for reliability.
NAT subnet: Create a dedicated NAT subnet (public subnet) and deploy NAT instances. For business vSwitches requiring outbound access, deploy a dedicated NAT instance in the same zone to prevent zone failures from affecting outbound NAT traffic in other zones.
IPv4 gateway: Centrally manage the Internet gateway.
Public bandwidth: 1) Internet Shared Bandwidth supports subscription (pay-by-bandwidth), pay-as-you-go (pay-by-bandwidth), pay-by-95th-percentile-bandwidth, and pay-by-data-transfer. EIPs within the shared bandwidth pool share total bandwidth and are subject to rate limits. 2) CDT public network supports pay-by-data-transfer, with cumulative regional usage per user ID qualifying for tiered pricing.
Route table: For details, see the intra-VPC network design section.
4. Security protection design [Optional]
Inbound Internet protection: Use an Internet firewall.
Outbound Internet protection: For ECS instances with public IPs or EIPs, use an Internet firewall. For outbound traffic from a NAT Gateway, use NAT firewalls. You may also use virtual private cloud (VPC) firewalls.
4 Scenarios
Scenario description | Choosing a Solution |
| 1. Intra-VPC network solution |
| 2.1 East-west inter-VPC communication solution |
Security compliance requirements or remediation efforts mandating a firewall for unified security management. | 2.2 Inter-VPC communication through a firewall solution |
Enterprise self-built services such as printers and document libraries must be shared across multiple departments. | 2.3.1 Solution for accessing self-built shared services |
An enterprise’s systems on Alibaba Cloud need to access Alibaba Cloud products and services using private IP addresses. | 2.3.2 Accessing Alibaba Cloud products and services |
The enterprise’s cloud IT team centrally manages public network resources and access permissions. | 2.4 Unified Internet gateway solution |

