ProtoStackv0.1

Interactive Protocol Visualizer

Back to all protocols
DHCPOSPF
Network & CoreProfessional trackAdvancedOSI: Application LayerDefault Port: 179Standard: RFC 4271

BGP

— Border Gateway Protocol

BGP is the postal service of the Internet. When traffic travels across different Internet Service Providers (ISPs), BGP evaluates all paths and determines the most efficient route using Autonomous System Paths (AS_PATH).

Read first: TCP, IPv4Content reviewed 2026-11-18

Interactive Session: How BGP Works

Step through the packet exchange sequence between nodes.

Interactive Execution Sandbox

Interact with a live or clearly-labelled simulated instance of BGP.

Threat Model & Attack Simulation

How this protocol is attacked in practice, what defenders can see, and which control stops it.

Threat model & attack simulation

Simulated

Defensive education. Every step runs in this page; no traffic is generated or sent.

Attack library

BGP route hijack

Spoofing

A network announces a prefix it does not own, and neighbours prefer the more specific or shorter path.

Attackersimulated
BGPtarget
Attack step 1 of 3
Announce the prefix

The attacker originates a prefix belonging to someone else.

What a defender can see

Unexpected origin AS for a known prefix.

Impact if unmitigated

Large-scale redirection or outage for the hijacked address space.

Defences that matter
  • RPKI origin validation
  • Prefix and AS-path filters
  • Maximum-prefix limits and monitoring

This is a conceptual model for defenders, not an exploit toolkit. It contains no payloads, tooling or instructions for attacking systems you do not own.

Protocol Specification & Architecture

Key characteristics, real-world deployment patterns, and trade-offs.

Core Technical Features

  • Path-vector routing algorithm
  • Runs over reliable TCP port 179
  • Inter-domain Autonomous System (AS) policy routing
  • eBGP (external) vs iBGP (internal) peering

Real-World Use Cases

  • Internet core routing between ISPs
  • Multi-homed enterprise network load-balancing
  • Anycast CDN traffic steering

Advantages & Strengths

  • Scales to global Internet routing tables (>900,000 routes)
  • Granular administrative route policy control

Limitations & Vulnerabilities

  • Slow route convergence times
  • Vulnerable to BGP route hijacking without RPKI route origin validation