You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/partials/networking-services/reference/traffic-steering.mdx
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,8 @@ The priority value for static routes is directly configured as part of the route
74
74
|`10.10.10.100/24`|`TUNNEL_3_ATL`|`100`|
75
75
|`10.10.10.100/24`|`TUNNEL_4_ATL`|`100`|
76
76
77
+
In the example above, tunnels with priority of `100` will be preferred to tunnels with priority of `200` since lower numbers have greater priority.
78
+
77
79
Optionally, you can assign weights to distribute traffic more effectively among multiple tunnels. The weight values determine the proportion of traffic directed to each tunnel, with higher weights resulting in a greater share of traffic. The maximum weight value is `256`.
78
80
79
81
In the example below, `TUNNEL_2_IAD` is likely to receive twice as much traffic as `TUNNEL_1_IAD`.
@@ -85,6 +87,8 @@ In the example below, `TUNNEL_2_IAD` is likely to receive twice as much traffic
85
87
|`10.10.10.100/24`|`TUNNEL_3_ATL`|`100`|`192`|
86
88
|`10.10.10.100/24`|`TUNNEL_4_ATL`|`100`|`255`|
87
89
90
+
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.
91
+
88
92
### Set priority for BGP routes
89
93
90
94
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 +140,24 @@ Cloudflare adjusts route priority when using AS prepending with communities. For
136
140
137
141
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.
138
142
139
-
Adding region scoping to routes is only available to statically configured routes at this time.
143
+
:::note
144
+
Scoping routes to specific regions is not supported with BGP peering, and is only available to statically configured routes at this time.
145
+
:::
140
146
141
147
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.
142
148
143
-
Scoping routes to specific regions is not supported with BGP peering at this time.
144
-
145
-
### Scoping configuration data example
149
+
The following table exemplifies how to use geographic scoping for routes:
146
150
147
151
| Prefix | NextHop | Priority | Region code |
148
152
| ----- | ----- | ----- | ----- |
149
153
|`10.10.10.100/24`|`TUNNEL_1_IAD`|`100`|`AFR`|
150
154
|`10.10.10.100/24`|`TUNNEL_2_IAD`|`100`|`EEUR`|
151
155
|`10.10.10.100/24`|`TUNNEL_3_ATL`|`100`|`ENAM`|
152
156
|`10.10.10.100/24`|`TUNNEL_4_ATL`|`100`|`ME`|
157
+
|`10.10.10.100/24`|`TUNNEL_5_ATL`|`100`|`WNAM`|
158
+
|`10.10.10.100/24`|`TUNNEL_4_ATL`|`100`|`ENAM`|
159
+
160
+
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.
0 commit comments