All Products
Search
Document Center

Express Connect:Configure the forwarding mode of an ECR

Last Updated:Apr 01, 2026

When multiple Express Connect circuits in the same region connect to different access points, the forwarding mode you choose determines how traffic is distributed across those paths. An Express Connect router (ECR) supports two modes: equal-cost multi-path (ECMP) load balancing (default) and nearby forwarding.

Choose a forwarding mode

ECMP load balancing (default)Nearby forwarding
How traffic is routedDistributed across all equal-cost pathsSteered to the path closest to the originating zone
Primary benefitPrevents single-path congestion; improves throughput and stabilityMinimizes detours; reduces transmission latency
Fault behaviorTraffic continues on remaining pathsIf one path fails, nearby forwarding becomes invalid and all traffic switches to the remaining path

ECMP load balancing mode

ECMP load balancing distributes packets across multiple equal-cost paths. This prevents congestion on any single path and improves network resource efficiency and service stability.

ECMP load balancing diagram

For an example architecture that uses ECMP load balancing to build active/active connections between a data center and Alibaba Cloud, see Establish active/active connections between a data center and Alibaba Cloud by using an ECR.

Nearby forwarding mode

Nearby forwarding steers traffic to the optimal path. This minimizes traffic detours and reduces transmission latency.

Important

Contact your account manager to get the zone-to-access-point mappings before enabling this mode. If one of the two paths fails, nearby forwarding automatically becomes invalid and all traffic switches to the remaining path.

Note

If a zone has no nearby access point, traffic for that zone continues to use ECMP load balancing. If an Enterprise Edition transit router (TR) acts as a forwarding gateway in the cloud, create at least two zones in the TR's region before creating a virtual private cloud (VPC) connection to the TR. This minimizes detours between the VPC and the TR. See Announcement: Optimization on VPC-connected Enterprise Edition transit routers and Scenario 1: Your data center needs to communicate with multiple VPCs in the same area, and the VPCs need to communicate with each other.

Nearby forwarding diagram

Change the forwarding mode

  1. Log on to the Express Connect console.

  2. In the left-side navigation pane, click Express Connect Router (ECR). On the Express Connect Router (ECR) page, find the ECR and click its name. The details page appears.

  3. In the Basic Information section, click Edit next to Forwarding Mode.

  4. In the Edit Forwarding Mode among Regions dialog box, select ECMP Load Balancing or Nearby Forwarding, then click OK.

    Forwarding mode selection dialog

Set up nearby forwarding

Before switching to nearby forwarding, complete the following steps to establish the required Express Connect circuits and ECR associations.

Prerequisites

Before you begin, ensure that you have:

  • The location of the data center where your cloud resources are deployed (contact your business manager)

  • The access points for Express Connect circuits in the data center (contact your business manager)

  • The zone-to-access-point mappings (contact your account manager)

Procedure

  1. Connect to the Alibaba Cloud data center from your access points using Express Connect circuits. See Connect to Alibaba Cloud over a dedicated Express Connect circuit and Overview of hosted connections.

  2. Create Express Connect circuits and virtual border routers (VBRs), and configure Border Gateway Protocol (BGP). See Create and manage a dedicated connection over an Express Connect circuit and Create and manage a VBR.

  3. Create an ECR and associate it with the corresponding VBRs and VPC. See Create and manage an ECR.

  4. Follow the steps in Change the forwarding mode to switch to Nearby Forwarding.

API reference

APIDescription
DescribeExpressConnectRouterInterRegionTransitModeQueries the cross-region forwarding mode of an ECR
ModifyExpressConnectRouterInterRegionTransitModeModifies the cross-region forwarding mode of an ECR