Skip to content

Commit 97ad5a6

Browse files
[Magic] Updates to BGP peering docs (#19101)
* added timers * added mt limitations * refined code * updated step 8 * refined text * corrected text
1 parent edef4f7 commit 97ad5a6

File tree

3 files changed

+29
-4
lines changed

3 files changed

+29
-4
lines changed

src/content/docs/magic-transit/how-to/bgp-peering.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import { Render } from "~/components"
1414
productName: "Magic Transit",
1515
productPath: "/magic-transit/reference/tunnel-health-checks/",
1616
legacyHCs: "/magic-transit/reference/tunnel-health-checks/#legacy-health-checks-system",
17-
asnProduct: "<br /> Magic Transit customers should also be aware of the following: <br /> <ul><li>The Cloudflare side ASN will never be exposed in <code>AS_PATH</code> of anycast announcements from the Cloudflare edge. In those announcements, Cloudflare will always use the Cloudflare ASN of <code>13335</code> optionally prepended with a bring-your-own ASN as described in [Cloudflare ASN vs. your own ASN](/magic-transit/how-to/advertise-prefixes/#cloudflare-asn-vs-your-own-asn)</li><li>The customer device ASN can be a private ASN or the ASN they are using for Magic Transit anycast announcements at the edge: this has no impact on the ASN for the anycast announced prefix at the edge of the Cloudflare global network.</li></ul>"
17+
asnProduct: "<br /> Magic Transit customers should also be aware of the following: <br /> <ul><li>The Cloudflare side ASN will never be exposed in <code>AS_PATH</code> of anycast announcements from the Cloudflare edge. In those announcements, Cloudflare will always use the Cloudflare ASN of <code>13335</code> optionally prepended with a bring-your-own ASN as described in [Cloudflare ASN vs. your own ASN](/magic-transit/how-to/advertise-prefixes/#cloudflare-asn-vs-your-own-asn)</li><li>The customer device ASN can be a private ASN or the ASN they are using for Magic Transit anycast announcements at the edge: this has no impact on the ASN for the anycast announced prefix at the edge of the Cloudflare global network.</li></ul>",
18+
mtLimitations: "<br /> For Magic Transit customers, BGP with the Magic routing table is separated from the announcement of anycast prefixes at the Cloudflare edge. Anycast withdrawal must be controlled with existing methods documented in [Advertise prefixes](/magic-transit/how-to/advertise-prefixes/).",
19+
productGatewayOrEgress: "Magic Transit with Egress"
1820
}}
1921
/>

src/content/docs/magic-wan/configuration/manually/how-to/bgp-peering.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import { Render } from "~/components"
1414
productName: "Magic WAN",
1515
productPath: "/magic-wan/reference/tunnel-health-checks/",
1616
legacyHCs: "/magic-wan/reference/tunnel-health-checks/#legacy-health-checks-system",
17-
asnProduct: "<br /> Magic WAN customers should also be aware of the following: <br /> <ul><li>The Cloudflare side ASN will be included in the <code>AS_PATH</code> of announced routes to any BGP enabled interconnect.</li><li>The customer chooses their device ASN, which should be different to the Cloudflare-side ASN.</li></ul>"
17+
asnProduct: "<br /> Magic WAN customers should also be aware of the following: <br /> <ul><li>The Cloudflare side ASN will be included in the <code>AS_PATH</code> of announced routes to any BGP enabled interconnect.</li><li>The customer chooses their device ASN, which should be different to the Cloudflare-side ASN.</li></ul>",
18+
mtLimitations: " ",
19+
productGatewayOrEgress: "Magic WAN with Gateway"
1820
}}
1921
/>

src/content/partials/network-interconnect/bgp-peering.mdx

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ params:
44
- productPath
55
- legacyHCs
66
- asnProduct
7+
- mtLimitations
8+
- productGatewayOrEgress
79
---
810

911
import { Markdown } from "~/components";
@@ -27,6 +29,21 @@ All routes in the Magic routing table are advertised to BGP peers. Each BGP peer
2729

2830
BGP peering sessions can advertise reachable prefixes to a peer and withdraw previously advertised prefixes. This should not take more than a few minutes to propagate.
2931

32+
## BGP timers and settings
33+
34+
Cloudflare uses the timers as described below. These are not configurable:
35+
36+
| Setting | Description |
37+
| --- | --- |
38+
| **Hold timer** | 240 seconds <br /> (_To establish a session, Cloudflare will compare our hold timer and the peer's hold timer, and use the smaller of the two values to establish the BGP session._) |
39+
| **Keepalive timer** | One third of the hold time. |
40+
| **Graceful restart** | 120 seconds |
41+
42+
- **Hold timer**: Specifies the maximum amount of time that a BGP peer will wait to receive a keepalive, update, or notification message before declaring the BGP session down. Cloudflare will use the smaller of this default hold time and that received from the peer in the open message.
43+
- **Keepalive timer**: BGP systems exchange keepalive messages to determine whether the peer router is reachable. If keepalive messages are not received within the Hold Timer, the session is assumed to be down, indicating that the peer is no longer reachable at the BGP protocol level.
44+
- **Graceful restart timer**: Tracks how long a router will wait for a peer to re-establish a BGP session after the peer initiates a graceful restart. If the peer does not reconnect within this time, the router declares the session down and removes stale routes.
45+
46+
3047
## Limitations
3148

3249
BGP multipath is supported. If the same prefix is learned on two different interconnects then traffic destined for that prefix will be distributed across each interconnect according to the usual ECMP behavior.
@@ -37,6 +54,8 @@ BGP support currently has the following limitations:
3754
- Bidirectional Forwarding Detection (BFD) is not supported.
3855
- 4-byte ASNs are not supported.
3956

57+
<Markdown text={props.mtLimitations} />
58+
4059
## Tunnel health checks
4160

4261
{props.productName} customers need to enable legacy <a href={props.legacyHCs}>health checks</a> alongside BGP. This is essential to determine if a specific Cloudflare data center is reachable from a customer device or not. <a href={props.productPath}>Tunnel health checks</a> will modify the route's priorities for dynamically learned BGP routes.
@@ -73,5 +92,7 @@ If you already have set up your Cloudflare account ASN, you can skip steps two a
7392
5. Find the Direct CNI interconnect you want to configure with BGP > select the **three dots** next to it > **Configure BGP**.
7493
6. In **Customer device ASN**, enter the ASN for your network.
7594
7. In **MD5 key**, you can optionally enter the key for your network. Note that this is meant to prevent accidental misconfigurations, and is not a security mechanism.
76-
8. (Optional) In **Advertised prefix list**, input the additional static prefixes automatically assigned by Cloudflare during the creation of the CNI interconnect, to advertise alongside your existing routes. Leave blank if you do not want to advertise extra routes.
77-
9. Select **Enable BGP**.
95+
8. (Optional) In **Advertised prefix list**, input the additional prefixes automatically assigned by Cloudflare during the creation of the CNI interconnect, to advertise alongside your existing routes. Leave blank if you do not want to advertise extra routes. <br /> Typical prefixes to configure here include:
96+
- A route to `0.0.0.0/0`, the default route — to attract all Internet-bound traffic if using {props.productGatewayOrEgress}.
97+
- A route to `100.96.0.0/12`, the portion of CGNAT space [used by default with WARP clients](/cloudflare-one/connections/connect-networks/private-net/warp-connector/user-to-site/#add-route-to-router).
98+
9. Select **Enable BGP**.

0 commit comments

Comments
 (0)