Skip to content

Commit badb157

Browse files
added details over geo scoping priority
1 parent c3d8273 commit badb157

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/content/partials/networking-services/reference/traffic-steering.mdx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ In the example below, `TUNNEL_2_IAD` is likely to receive twice as much traffic
8585
| `10.10.10.100/24` | `TUNNEL_3_ATL` | `100` | `192` |
8686
| `10.10.10.100/24` | `TUNNEL_4_ATL` | `100` | `255` |
8787

88+
Aside from priority, scoping static routes to specific geographic regions will also impact how traffic is steered. Refer to [Scoping routes to specific regions](#scoping-routes-to-specific-regions) for more details.
89+
8890
### Set priority for BGP routes
8991

9092
When BGP advertises a route, it is automatically added to the Magic routing table with a default priority of `100` which applies to [all regions](#scoping-routes-to-specific-regions). However, if a static route exists with the same prefix and priority, the static route will always take precedence over the BGP route. You will have to set a different priority for static routes, to be more or less than `100`, depending on which you want to prioritize. Lower values have greater priority.
@@ -136,20 +138,22 @@ Cloudflare adjusts route priority when using AS prepending with communities. For
136138

137139
If you have multiple connectivity paths to a network segment and you would like to apply different route prioritization based on where the traffic arrives at the Cloudflare network, you can scope routes to specific Cloudflare data center regions. This is useful, for example, if you run your own anycast network and want your end-user traffic to arrive at your network location closest to the user. When a route is scoped to a Cloudflare data center region it will only show up in the Magic routing table in that region, along with all global routes that do not have any region scope. Route prioritization and ECMP logic apply across both region-scoped and global routes.
138140

139-
Adding region scoping to routes is only available to statically configured routes at this time.
141+
Scoping routes to specific regions is not supported with BGP peering, and is only available to statically configured routes at this time.
140142

141143
When using region-scoped routes, you should ensure that all prefixes have routes covering all regions. Otherwise, traffic may arrive at a Cloudflare region which is not covered by any route, in which case the traffic will be dropped.
142144

143-
Scoping routes to specific regions is not supported with BGP peering at this time.
144-
145-
### Scoping configuration data example
145+
The following table exemplifies how to use geographic scoping for routes:
146146

147147
| Prefix | NextHop | Priority | Region code |
148148
| ----- | ----- | ----- | ----- |
149149
| `10.10.10.100/24` | `TUNNEL_1_IAD` | `100` | `AFR` |
150150
| `10.10.10.100/24` | `TUNNEL_2_IAD` | `100` | `EEUR` |
151151
| `10.10.10.100/24` | `TUNNEL_3_ATL` | `100` | `ENAM` |
152152
| `10.10.10.100/24` | `TUNNEL_4_ATL` | `100` | `ME` |
153+
| `10.10.10.100/24` | `TUNNEL_5_ATL` | `100` | `WNAM` |
154+
| `10.10.10.100/24` | `TUNNEL_4_ATL` | `100` | `ENAM` |
155+
156+
When there are multiple routes to the same prefix with equal priority, and those routes are assigned to different geographic regions (like WNAM and ENAM), traffic entering the network in a specific region — for example, WNAM — will egress through the route associated with that same region.
153157

154158
### Region codes and associated regions
155159

0 commit comments

Comments
 (0)