Skip to content

[Magic Transit] Clarify that Cloudflare-originated traffic counts toward bandwidth#31116

Open
alpdot wants to merge 3 commits into
productionfrom
alpdot-patch-1
Open

[Magic Transit] Clarify that Cloudflare-originated traffic counts toward bandwidth#31116
alpdot wants to merge 3 commits into
productionfrom
alpdot-patch-1

Conversation

@alpdot
Copy link
Copy Markdown
Collaborator

@alpdot alpdot commented May 28, 2026

Summary

Customers have reported unexpected bandwidth charges because it was not documented that traffic originating from Cloudflare services (for example, CDN) is routed through Magic Transit tunnels when the destination prefix is onboarded and advertised, even if a more specific route exists via their ISP.

Changes

  • Bandwidth measurement (bandwidth-measurement.mdx): Added section explaining that Cloudflare-originated traffic counts toward bandwidth, with a /20 and /24 example. Also added guidance on how to avoid this traffic pattern.

Related

This addresses customer confusion where more specific ISP routes do not affect how Cloudflare delivers traffic that originates from our own network.

@cloudflare-docs-bot
Copy link
Copy Markdown

cloudflare-docs-bot Bot commented May 28, 2026

Review

⚠️ 2 warnings found in commit 1799271.

Warnings (2)
File Issue
magic-transit/reference/bandwidth-measurement.mdx line 19 IP addresses must use monospace — Line adds 10.0.0.0/20 and 10.0.1.0/24 without backticks Fix: Wrap IP addresses in backticks: 10.0.0.0/20 and 10.0.1.0/24
magic-transit/reference/bandwidth-measurement.mdx line 21 IP addresses must use monospace — Line adds 10.0.1.0/24 without backticks Fix: Wrap IP address in backticks: 10.0.1.0/24
Commands

Only codeowners can run commands. Post a comment with the command to trigger it.

Command Description
/review Runs a review now. Incremental if a prior review exists, full if not.
/full-review Re-reviews the entire PR diff from scratch, ignoring incremental history. Useful after a rebase, when you want a fresh review, or if the bot gets out of sync and reports issues that no longer exist.

@github-actions
Copy link
Copy Markdown
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/docs/magic-transit/ @steve-cloudflare, @jeffh-cloudflare, @alpdot, @cloudflare/product-owners

Copy link
Copy Markdown
Contributor

@ask-bonk ask-bonk Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR adds a section clarifying that Cloudflare-originated traffic counts toward Magic Transit bandwidth. Found 3 style issues to fix.

Comment thread src/content/docs/magic-transit/reference/bandwidth-measurement.mdx Outdated
Comment thread src/content/docs/magic-transit/reference/bandwidth-measurement.mdx Outdated
- **Internet traffic** to 10.0.1.0/24 reaches you via your ISP because the global Internet routing table uses Longest Prefix Match.
- **Cloudflare-originated traffic** to 10.0.1.0/24 is routed through your Magic Transit tunnels and interconnects because Cloudflare keeps that traffic inside its own network when the covering /20 prefix is onboarded. This traffic counts toward your bandwidth usage.

**To avoid this:** If you do not want Cloudflare-originated traffic flowing through your Magic Transit tunnel, withdraw the prefix from Cloudflare. The traffic will then egress to the Internet and follow standard Internet routing (including your more specific ISP routes).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clarify which prefix to withdraw, and remove trailing whitespace.

Suggested change
**To avoid this:** If you do not want Cloudflare-originated traffic flowing through your Magic Transit tunnel, withdraw the prefix from Cloudflare. The traffic will then egress to the Internet and follow standard Internet routing (including your more specific ISP routes).
**To avoid this:** If you do not want Cloudflare-originated traffic flowing through your Magic Transit tunnel, withdraw the covering prefix from Cloudflare. The traffic will then egress to the Internet and follow standard Internet routing (including your more specific ISP routes).

@ask-bonk ask-bonk Bot added documentation Documentation edits content:edit Request for content edits labels May 28, 2026
@ask-bonk
Copy link
Copy Markdown
Contributor

ask-bonk Bot commented May 28, 2026

Review posted to PR #31116.

Labels applied: documentation, content:edit

Summary: I found and flagged 3 style guide issues in src/content/docs/magic-transit/reference/bandwidth-measurement.mdx:

  1. Heading level skip (line 15) — The new section uses #### (H4) directly after the page title (H1), skipping H2 and H3. Suggested changing to ##.
  2. Two-item bullet list + missing backticks (lines 19–21) — The style guide prohibits bullet lists with fewer than three items. Also, IP addresses and CIDR notations (10.0.0.0/20, 10.0.1.0/24, /20) must be in backticks. Suggested converting the bullets to prose and adding backticks.
  3. Ambiguous phrasing + trailing whitespace (line 23) — "withdraw the prefix" is vague (which prefix?). Suggested "withdraw the covering prefix" to match the example, and removed trailing whitespace.

All fixes were submitted as inline review suggestions so the author can accept them directly.

github run

….mdx

Co-authored-by: ask-bonk[bot] <249159057+ask-bonk[bot]@users.noreply.github.com>
@alpdot
Copy link
Copy Markdown
Collaborator Author

alpdot commented May 28, 2026

/review

@alpdot
Copy link
Copy Markdown
Collaborator Author

alpdot commented May 28, 2026

/review

@github-actions
Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

content:edit Request for content edits documentation Documentation edits product:magic-transit size/s

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants