Direct Connect Gateway Overview

Last updated: 2021-09-30 17:42:47

    A direct connect gateway is a traffic entry for Direct Connect that is used to connect Tencent Cloud VPCs with connections (dedicated tunnels). There are two types: VPC-based direct connect gateway and CCN-based direct connect gateway, which are suitable for different use cases.

    Use Limits

    A standard direct connect gateway supports propagating secondary CIDR blocks. Note the following limits:

    • This feature is unavailable in the Finance Cloud regions.
    • Up to 10 secondary CIDR blocks can be propagated.
    • This feature is unavailable to a NAT direct connect gateway.

    VPC-based Direct Connect Gateway

    As shown in the Direct Connect network architecture, dedicated tunnel mode will affect the destination IP range of the IDC routes to Tencent Cloud VPCs. See the following table for details.

    Dedicated Tunnel Mode IDC Routes to Tencent Cloud
    Static The IDC routes to Tencent Cloud VPCs are configured in the local router.
    BGP The IDC automatically obtains the VPC CIDR block based on the BGP protocol.
    For example, if a VPC-based direct connect gateway is used between a Tencent Cloud VPC and an IDC in the Direct Connect network architecture, the routes for different dedicated tunnels are configured as follows:
    • For a static dedicated tunnel, the destination IP range of IDC routes to a Tencent Cloud VPC is configured in the local router, such as VPC CIDR block (172.21.0.0/16).
    • For a BGP dedicated tunnel, the destination IP range of IDC routes to a Tencent Cloud VPC is the VPC CIDR block (172.21.0.0/16) obtained by the local router based on the BGP protocol.

    CCN-based Direct Connect Gateway

    A CCN-based direct connect gateway can associate one CCN with multiple dedicated tunnels to implement the interconnection between VPCs in the CCN and IDCs. As shown in the Direct Connect network architecture, both the creation time of the direct connect gateway and dedicated tunnel mode will affect the destination IP range of the IDC routes to Tencent Cloud VPCs. See the following table for details.

    Creation Time Dedicated Tunnel Mode IDC Routes to Tencent Cloud
    Before 00:00:00 on September 15, 2020 Static The IDC routes to Tencent Cloud VPCs are configured in the local router.
    BGP The IDC automatically obtains the VPC subnet CIDR block based on the BGP protocol.
    After 00:00:00 on September 15, 2020 Static The IDC routes to Tencent Cloud VPCs are configured in the local router.
    BGP The IDC automatically obtains the VPC CIDR block based on the BGP protocol.
    In a Direct Connect network architecture, if the direct connect gateways A and B are created before and after September 15, 2020, 00:00:00 respectively, the routes for different dedicated tunnel modes are as follows:
    • When both dedicated tunnels are static, the destination IP range of IDC routes to Tencent Cloud VPCs is the VPC CIDR block (172.21.0.0/16) configured in the local router. The direct connect gateways A and B have the same routes and receive local IDC traffic evenly.

    • When both dedicated tunnels are BGP, the destination IP range synced from the direct connect gateway A to the local router based on the BGP protocol is the subnet CIDR blocks (172.21.0.0/20, 172.21.16.0/20), while that synced from the direct connect gateway B is the VPC CIDR block (172.21.0.0/16). The route with the longest mask will be matched and used for forwarding. Therefore, the local router will forward all traffic to the direct connect gateway A. The traffic will be forwarded to the direct connect gateway B only when the direct connect gateway A fails and loses routes.

      Note:

      For a direct connect gateway created before September 15, 2020, 00:00:00, you can submit a ticket to change its routing policy to VPC CIDR block.