- Documentation
Transit Router
User Guide
Route tables
Route Table overview
Route tables
Route Table overview
Route Table overview
Overview
Transit Router (TR) route table consists of a series of route entries and supports association forwarding, route learning, and static routing. This allows quick addition of routes and flexible control of traffic direction in and out of the TR. For details, see Route planning. Route type
Route table type
TR route table includes System Route Table and Custom Route Table. After a TR route table is created, it contains no route entries by default. You need to configure route learning and auto publishing for it based on List of routing capabilities. tip
Route entries are isolated between separate route tables. Route tables do not learn from each other.
The differences between System Route Table and Custom Route Table are shown in the table below.
Route entry type
The TR routes include the following three types:
- Blackhole route: This route is manually configured by the user. All traffic matching this route entry will be automatically discarded.
- Static route: This route is manually configured by the user. All traffic matching this route entry will be forwarded to the next hop.
- Auto-learned route: This route is automatically learned from the network instance through the route learning feature. All traffic matching this route entry will be forwarded to the next hop.
List of routing capabilities
TR offers rich routing capabilities that you can flexibly combine and use. The table below details all routing capabilities.
Route matching and synchronization
Route matching
The priority order for route matching in the TR is as follows:
- Follow the Longest Prefix Match (LPM) principle to prefer the route with the longest mask of the destination CIDR block.
- For routes with an identical destination CIDR block, the priority order is as follows:
- For routes that have the same destination CIDR block and learned from multiple VPCs, prefer the earliest learned route. Later learned routes become not effective.
- After the TR forwards traffic to a VPC, the VPC's routing subsystem performs a second route lookup. This lookup queries the route table of the specific subnet where the attachment point resides. The subsystem then applies the Longest Prefix Match (LPM) rule to select the most specific route from that subnet's route table.
- Routes that are automatically learned from the TR, Direct Connect (DC) and Virtual Private Network (VPN) instances in the same region and the TR instances across regions.
- Prefer the route with the shortest AsPath.
- For DC routes that lack an AsPath attribute, the AsPath length defaults to 0. A common example is static routes learned from the DC Gateway.
- When the AsPath length is identical, the routing priority order is as follows:
- Routes learned from DC Gateways
- Routes from multiple DC Gateways with identical CIDR blocks and AsPath lengths form equal-cost multi-path routing (ECMP).
- Routes learned from VPNs
- Routes from multiple IPsec-VPN connections with identical CIDR blocks and AsPath lengths form ECMP.
- Routes learned from inter-region TRs
- Routes from multiple TRs across regions with identical CIDR blocks and AsPath lengths are sorted by the string comparison of peer TR instance IDs, preferring the route with the smallest TR instance ID.
Route synchronization
The logic for TR synchronizing routes to network instances is described in the following table.
Route limits
- Each network instance attachment can configure only one TR route table associated with forwarding.
- When creating a cross-account network instance attachment, if you need to configure association forwarding or route learning simultaneously, you can only select the TR system route table, which can only be modified by the TR instance’s Owner.
For more information, see Limits. Last updated: 2026.09.01 11:37:11