Selecting a Network Model When Creating a Cluster on CCE

CCE uses high-performance container networking add-ons, which support the tunnel network and VPC network models.

After a cluster is created, the network model cannot be changed. Exercise caution when selecting a network model.

The following table lists the differences between the network models.

Table 1 Network comparison

Dimension

Tunnel Network

VPC Network

Core component

OVS

IPVlan

Applicable clusters

Hybrid cluster

VM cluster

Hybrid cluster

VM cluster

Support for network policies

(networkpolicy)

Yes

No

Support for ENI

No

Yes. The container network is deeply integrated with the VPC network, and ENI is used for pods to communicate.

IP address management

IP addresses can be migrated.

  • Each node is allocated with a small subnet.
  • A static route is added on the VPC router with the next hop set to the node IP address.

Network performance

Performance loss due to VXLAN tunnel encapsulation

  • No performance loss as no tunnel encapsulation is required; performance comparable to bare metal networks
  • Data forwarded across nodes through the VPC router

Networking scale

A maximum of 2,000 nodes are supported.

Limited by the VPC route table.

External dependency

None

Static route table of the VPC router

Application scenarios

  • Common container service scenarios
  • Scenarios that do not have high requirements on network latency and bandwidth
  • Scenarios that have high requirements on network latency and bandwidth
  • Containers can communicate with VMs using a microservice registration framework, such as Dubbo and CSE.
  1. The actual cluster scale is limited by the quota of custom routes of the VPC. Therefore, estimate the number of required nodes before creating a VPC.
  2. By default, the VPC network model supports direct communication between containers and hosts in the same VPC. If a peering connection policy is configured between the VPC and another VPC, the containers can directly communicate with hosts on the peer VPC. In addition, in hybrid networking scenarios such as Direct Connect and VPN, communication between containers and hosts on the peer end can also be achieved with proper planning.