OpenAICloudflareJul 24, 2026, 5:25 PM

BGP ORIGIN attribute manipulation and its impact on the Internet

A condensed section focused on the key takeaways first.

Original Post

Quick Digest

Summary

A condensed section focused on the key takeaways first.

openaienmodel: gpt-5-mini-2025-08-07

BGP ORIGIN attribute manipulation and its impact on the Internet

Key Points

  • ~70% of observed paths show ORIGIN mismatch
  • ORIGIN is an early BGP tie‑breaker (lower preferred)
  • RFC4271: ORIGIN should not be modified

Summary

The post investigates manipulation of the BGP ORIGIN attribute and shows it is frequently altered in transit. ORIGIN (IGP=0, EGP=1, INCOMPLETE=2) is evaluated early in BGP's tie‑breaker (after Local Preference and AS_PATH length), with lower values preferred. Cloudflare’s experiments observed that ~70% of paths from multiple vantage points had an ORIGIN value different from what the originating AS set. Public collectors show 89.8% of routes as IGP, 3.5% EGP, and 6.7% INCOMPLETE. RFC4271 states ORIGIN should be set by the origin and not modified by others, but operational behavior deviates in practice.

Key Points

  • ORIGIN indicates how a route was injected (IGP/EGP/INCOMPLETE); it is distinct from origin AS.
  • ORIGIN is evaluated early in the BGP path selection process and can change route selection when other attributes tie.
  • Experiments found ~70% of observed paths had an ORIGIN value different from the origin AS’s setting.
  • Global collectors report ~89.8% IGP, 3.5% EGP, 6.7% INCOMPLETE across observable routes.
  • RFC4271 advises against modifying ORIGIN, but many routers or interconnection policies alter it in practice.

Practical recommendations for engineers

  • Monitor ORIGIN consistency for your prefixes using public collectors (RIPE RIS, RouteViews) and your own peers.
  • Add ORIGIN checks to BGP monitoring/alerting pipelines to detect unexpected changes or patterns.
  • Use prefix and peer filtering, max‑prefix limits, and clear export policies to reduce attribute tampering.
  • Apply Local Preference or other policy controls where you need to enforce path selection despite ORIGIN differences.
  • Deploy RPKI/ROV and other origin validation tools to improve routing security and detect anomalous injections.
  • Coordinate with upstream providers and peers to trace and remediate ORIGIN mismatches when detected.

Why it matters

Because ORIGIN is an early tie‑breaker, widespread manipulation can meaningfully alter traffic flows and routing stability. Engineers should treat unexpected ORIGIN changes as operational or security signals and incorporate detection and mitigation into BGP hygiene processes.

Full Translation

Translations

A translation section that keeps the flow of the original article.

openaijamodel: gpt-5-mini-2025-08-07

BGPのORIGIN属性の改変とそれがインターネットに与える影響

BGPのORIGIN属性の改変とそれがインターネットに与える影響

著者: Iliana Xygkou and Bryton Herdes
読了時間: 11分

Border Gateway Protocol(BGP)はインターネットにおける事実上のルーティングプロトコルです。BGPは、Autonomous Systems(ASes)で表されるエンティティがインターネット上でトラフィックの送受信方法を表現するための組み込みの仕組みを提供します。その一例がパス属性(path attributes)であり、これらは関連するプレフィックスに対する重要なルーティング情報やメタデータを運びます。パス選択アルゴリズムは、特定のプレフィックスに対する最良経路を算出するために、いくつかのパス属性を決定順に処理します。

私たちはインターネット上の独自の観測位置を利用して、BGPのよく知られた必須属性の一つであるORIGIN属性を調査しました。ORIGINはすべてのBGPプレフィックスアナウンスに存在しなければならず、発信元によって設定された後に他のルータが変更してはならないとされています。私たちの実験で判明したことは、複数の観測点で観測された経路の約70%が、発信元ASによって設定された値と異なるORIGIN値を持っているという衝撃的な事実でした。このORIGIN属性の改変は、インターネット上でのトラフィック転送方法に大きな影響を与えます。本投稿でその影響を詳しく見ていきます。

BGPのORIGINとその運用履歴

ORIGIN属性は、経路がどのようにしてBGPに注入されたかを示します(どのASが経路をアナウンスしたかを示すorigin ASとは混同しないでください)。ORIGINには3つの可能な値があります。

  • 0 — IGP: 経路が発信元AS内部の経路であることを示します。
  • 1 — EGP: 旧来のExterior Gateway Protocol(EGP)を介して学習されたことを示す歴史的な値であり、現在のインターネットでは廃止されるべきものです。
  • 2 — INCOMPLETE: 経路が不明または外部のソースから学習されたことを示します。

RIPE RISやRouteViewsといった公開BGPコレクタから観測される全ルートのうち、89.8%がORIGINをIGPに、3.5%がEGPに、6.7%がINCOMPLETEに設定しています。前述のとおり、EGPは完全に廃止されるべきものとされ、INCOMPLETEはルート全体の少数を占めます。これらの数値は、IGPが圧倒的に多い一方で、10%以上のルートがEGPまたはINCOMPLETEという値を持ち、ルーティングの決定に影響を与える可能性があることを示唆しています。

BGPのパス選択プロセスの一部として、ルータは2つの経路のLocal PreferenceとAS_PATH長が等しい場合にORIGINを評価し、値が小さい方の経路を選択・インストールします。経路選択の判断とは別に、RFC4271はORIGINについて次のように述べています。

ORIGIN属性は、関連するルーティング情報を起源させるスピーカによって生成されます。その値は他のいかなるスピーカによっても変更されるべきではありません(SHOULD NOT)。

この指針はORIGIN属性を変更しないことを推奨していますが、経路選択プロセスで早期に評価されるため、この属性は魅力的な…