Help Center/ Direct Connect/ Best Practices/ Direct Connect Best Practices
Updated on 2024-12-02 GMT+08:00

Direct Connect Best Practices

Direct Connect establishes high-speed, low-latency, stable, and secure dedicated network connections that connect your on-premises data center to the cloud.

You can use Direct Connect together with other cloud services to set up networks flexibly. You can refer to the best practices provided here for typical networking solutions.

Table 1 Scenarios

Solution

Example Scenario

Cloud Services

Description

Connecting an on-premises data center to VPCs in the same region

Using a single Direct Connect connection:

  • Direct Connect
  • VPC
  • ECS

You can use a single connection with a virtual gateway associated to connect an-premises data center to a VPC and leverage the large bandwidth and private connectivity for fast, secure, stable data transmission

Connecting an On-Premises Data Center to a VPC over Two Connections in Load Balancing Mode (Virtual Gateway)

  • Direct Connect
  • VPC
  • ECS

To improve the network performance and reliability, you can deploy two connections to connect an on-premises data center to the VPC. The two connections work in load balancing mode.

  • When both connections work normally, the network transmission capability is greatly improved.
  • If one connection becomes faulty, the other connection is not a single point of failure, and your on-premises data center can still access the VPCs.

Connecting an On-Premises Data Center to a VPC over Two Connections in an Active/Standby Pair (Virtual Gateway)

  • Direct Connect
  • VPC
  • ECS

You want to ensure high reliability of the hybrid cloud network, while enjoying the following benefits:

  • A more cost-effective connection can be used as the standby one to lower costs.
  • The outbound connection is specified, which simplifies O&M.

You can create two connections that work in an active/standby pair. If the active connection becomes faulty, the standby one will automatically take over, which minimizes service interruptions.

Connecting an On-Premises Data Center to Multiple VPCs that Do Not Need to Communicate with Each Other

  • Direct Connect
  • VPC
  • ECS

You can create a single standard connection with multiple virtual gateways associated to access different VPCs. This enables end-to-end route isolation for different services.

Connecting an On-Premises Data Center to Multiple VPCs in the Same Region Using Direct Connect and VPC Peering

  • Direct Connect
  • VPC
  • ECS

After you connect an on-premises data center to a VPC using Direct Connect, you can use VPC Peering to peer this VPC with other VPCs in the same region, so that the on-premises data center can access all connected VPCs.

Using a public NAT gateway and Direct Connect to accelerate Internet access

Using a Public NAT Gateway and Direct Connect to Accelerate Internet Access

  • Direct Connect
  • VPC
  • EIP
  • NAT Gateway

You can use Direct Connect to connect your on-premises data center to the cloud and then buy a public NAT gateway to allow on-premises servers to access the Internet by setting SNAT rules or provide publicly accessible services by setting DNAT rules.