A Deep Dive into BGP, RPKI, Routing Attacks and Global Internet Defense
Introduction: Why Routing Security Is Harder Than It Looks
Chapter 1: The Architecture of Global Connectivity
- IP Addressing and the Prefix Hierarchy
- Autonomous Systems and Administrative Boundaries
- The Transit-Peering Model and Its Economics
- Delegation: How Addresses and ASNs Become Someone’s Responsibility
- Scalability Through Hierarchical Aggregation
Chapter 2: Interdomain Routing Fundamentals
- What Interdomain Routing Must Achieve
- Direct Connectivity: iBGP and eBGP Sessions
- Route Advertisements and Withdrawals in Practice
- Import and Export Policies: The Operator’s Control Point
- Propagation Through the Transit Web
Chapter 3: BGP Protocol Architecture
- The BGP Message Types: OPEN, UPDATE, NOTIFICATION, KEEPALIVE
- The BGP Finite State Machine: From Idle to Established
- TCP Port 179 and Transport Considerations
- BGP-4 UPDATE Message Structure and TLV Encoding
- Capabilities Negotiation and Modern Extensions
Chapter 4: BGP Path Attributes and Policy Expression
- Well-Known Mandatory, Well-Known Discretionary, Optional Transitive, Optional Non-Transitive
- AS_PATH: Loop Detection and Policy Signal
- NEXT_HOP, LOCAL_PREF, MED and ORIGIN: Comparative Selection Logic
- BGP Communities and Extended Communities: Encoding Policy at Scale
- ADD-PATH, TTL Security Mechanisms (GTSM) and Other Modern Attributes
Chapter 5: The BGP Decision Process and Route Selection
- The Step-by-Step BGP Decision Process
- Weight, LOCAL_PREF and Administrative Distance
- AS_PATH Length, ORIGIN and MED Comparisons
- Route Preference and IGP Influence: eBGP vs iBGP vs Static vs IGP
- Multi-Exit Discrimination, Tie-Breakers and Stability
Chapter 6: Convergence, Stability and Propagation Dynamics
- Convergence Time and Global Propagation Delays
- Route Flapping and Dampening (RFC 2439)
- Hot Potato Routing and Path Instability
- Slow Convergence as an Attack Surface
- Measurement Data on Convergence Behavior
Chapter 7: Historical Design Decisions and Their Security Consequences
- EGP, CGE and the Origins of Interdomain Routing Protocols
- The Scalability Imperative: Why End-to-End Verification Was Abandoned
- The Trust Assumptions Embedded in BGP-4’s Design
- Operational Flexibility Over Consistency: A Deliberate Choice
- Why Security Was Added as an Afterthought
Chapter 8: The Threat Landscape: Accidents and Intentional Attacks
- Accidental Misconfiguration: The Most Common Disruption
- Origin Prefix Hijacking and Impersonation
- Route Leaks: Transit Rules Violated
- Subprefix Hijacking and Splitting
- Blackholing and Traffic Interception
- AS_PATH Manipulation and Policy Exploitation
- Control-Plane Exhaustion and Volumetric Attacks
- Compromised Routers and Network Operators
Chapter 9: Origin Hijacking Attacks: Mechanics, Impact and Detection
- Attack Prerequisites and Execution Steps
- Complete vs. Partial Hijacking
- Confidentiality and Integrity Implications
- How Hijacking Enables Phishing and MITM
- Detection via Route Monitors, Looking Glasses and Real-Time Alerts
- The Role of RPKI and ROV in Origin Hijacking Prevention
Chapter 10: Route Leaks and Policy Abuse
- What Is a Route Leak and How It Differs From Hijacking
- The Customer-Concentrator-Provider Leak Pattern
- Accidental vs. Intentional Policy Violations
- Propagation Patterns and Impact on Reachability
- Prevention Through Policy, Filtering and Community Tags
- Detection via Monitoring and Analysis
Chapter 11: Advanced and Emerging Routing Threats
- Compromised Routers and Rogue Operators
- Competitive Manipulation: Steering Traffic for Advantage
- Attacks on Route Collectors and Validation Infrastructure
- Long-Term Reconnaissance and Persistent Manipulation
- Threats Specific to Large Networks and Cloud Providers
Chapter 12: The Routing Registries: IRRs and Their Limitations
- What Routing Registries Are and How They Store Route Objects
- Creating Route Objects: Route, Route6, AS-SET and Related Classes
- Policy-Based Filtering: Using IRR Data to Build Filters
- Weaknesses: No Authorization Checking, No Cryptographic Binding
- The Transition from IRR Filtering to RPKI-Based Validation
Chapter 13: The RPKI Architecture: Resource Certificates and Trust Anchors
- The RPKI Trust Model: Hierarchical Certification from RIRs
- Trust Anchors and Root Certificates at Each RIR
- Resource Certificates: Structure, Extensions and Resource Holders
- CA Certificates and Chain Validation
- Manifests and Signed Object Lists: What They Protect
Chapter 14: Route Origin Authorizations: The Core Authorization Object
- What a ROA Is and What It Proves
- Creating a ROA: Prefix, AS Number and Maximum Length
- Max-Length: How It Controls Subprefix Authorization
- ROA Lifespan, Expiration and Revocation
- Common Mistakes: Over-Permissive, Under-Covered and Conflicting ROAs
Chapter 15: RPKI Validation: Validators, VRPs and Relying Parties
- What an RPKI Validator Does: Download, Verify, Extract
- Validator Architecture and Repository Sync (rsync, HTTPS)
- Validated ROA Payloads (VRPs): The Validator’s Output
- CRL and SKI/IAI: Revocation and Validation Accuracy
- Validator Outages, Stale Data and Recovery Behavior
Chapter 16: RPKI-to-Router (RTR) and Route Origin Validation (ROV)
- The RPKI-to-Router Protocol: Serial-Notify, Serial Query, Cached Data, Reset
- Session Establishment, Keepalive and Data Transfer
- How VRPs Become Route Decision Criteria
- ROV Integration with the BGP Decision Process
- Handling State Transitions: Valid, Invalid, NotFound and Pending
Chapter 17: Operational Consequences of ROV: Invalid, Valid, NotFound and Real-World Effects
- Rejecting Invalid Routes vs. De-Prioritizing Them
- The Risk of Rejecting Legitimate Traffic
- NotFound: The Ambiguous Middle State
- Max-Length Policy Errors and Collateral Damage
- Documented Incidents: When ROV Went Wrong
Chapter 18: The Scope and Limits of RPKI and ROV
- What Origin Validation Proves and What It Does Not
- Why RPKI Cannot Prevent All Route Leaks
- The Dependency on Accurate, Complete ROA Data
- Cryptographic Soundness vs. Operational Fragility
- Misconceptions About What RPKI “Solves”
Chapter 19: Complementary Mechanisms: IRR Filtering, Prefix Filters and AS_PATH Filters
- Prefix Filters: What Prefixes Should Be Announced
- AS_PATH Filters: Detecting and Rejecting Suspicious Paths
- IRR-Based Filtering: Still Relevant After RPKI
- Maximum-Prefix Limits: Protection Against Table Poisoning
- BGP Communities for Policy Signaling and Leak Prevention
Chapter 20: Route Leak Detection and Prevention Mechanisms
- Community-Based Leak Prevention
- Automated Leak Detection via Route Collectors and Monitors
- BGPsec Route Leak Prevention Potential
- MANRS Principles and Their Implementation Status
- Coordination and Incident Response When Leaks Occur
Chapter 21: BGPsec: Architecture, Security Guarantees and Deployment Reality
- BGPsec’s Threat Model: Protecting AS_PATH Integrity
- The BGPsec Path Attribute and Signature Chain
- Key Management and Certificate Infrastructure
- Operational Barriers: Complexity, Interoperability and Performance
- Current Deployment Status and Future Prospects
Chapter 22: ASPA: Autonomous System Provider Authorizations
- What ASPA Is and the Problem It Solves
- ASPA Structure: Customer, Provider and Peer Relationships
- Integration with the RPKI Trust Infrastructure
- How ASPA Validation Affects Route Selection
- Current Deployment Status and Standardization Progress
Chapter 23: Designing and Implementing Routing Security in Your Network
- Step 1: Inventory and Audit Your Address Space and Announcements
- Step 2: Verify Ownership and Create or Update ROAs
- Step 3: Design and Deploy Import Filters
- Step 4: Design and Deploy Export Filters
- Step 5: Enable ROV with Staged Enforcement
- Step 6: Implement Monitoring, Logging and Alerting
- Step 7: Document Policies, Plan Rollback and Test Recovery
Chapter 24: Configuration Examples and Vendor-Specific Considerations
- Cisco IOS XR: ROV, Filtering and RTR Configuration
- Juniper Junos: ROV, Filtering and RPKI Integration
- Nokia SR OS: Routing Security Configuration
- Open Source and Research Platforms: FRR, ExaBGP and BIRD
- Common Pitfalls Across Platforms
Chapter 25: Troubleshooting Routing Security Controls
- Unexpected Invalid Routes: Systematic Diagnosis
- RTR Session Failures and Stale Validation Data
- ROA Lookup: Verifying What Validators See
- Legitimate Routes Rejected by Filters
- Cross-Validator Consistency Checks
- Post-Incident Forensics: Reconstructing What Happened
Chapter 26: Monitoring, Measurement and Testing
- Real-Time Route Monitoring: BGPStream, RIS-Live and RouteViews
- Looking Glasses and Prefix Monitoring Services
- Safe Testing: Lab Environments and Controlled Announcements
- Public Incident Detection Systems and Alerts
- Metrics That Matter: Convergence, Stability and Coverage
Chapter 27: Case Studies: Documented Routing Incidents
- Pakistan Telecom YouTube Hijack (February 24, 2008)
- Safe Host / China Telecom Route Leak (June 6, 2019)
- Cloudflare 1.1.1.1 Incident (June 27, 2024)
- 3ve BGP Hijacking Campaign (2018)
- Comparative Analysis: What Changed, What Remained Vulnerable
Chapter 28: Economics, Governance and the Human Dimension
- Who Is Responsible for What: A Stakeholder Map
- Economic Incentives and Disincentives for Adoption
- The Role of RIRs, Regional Communities and IETF
- MANRS, IRTF and Industry Self-Regulation
- Why Technically Sound Mechanisms Fail to Deploy
Chapter 29: The Current State and Future of Internet Routing Security
- The Baseline: How Secure Is Global Routing Today?
- Deployment Gaps: Who Has Not Adopted and Why?
- Open Research Problems and Protocol-Level Unknowns
- Plausible Developments: ASPA, BGPsec Revival, or New Directions?
- A Grounded Assessment: Progress Made, Work Remaining