Border Gateway Protocol (BGP): Key Terms, Concepts, and Security

Border Gateway Protocol (BGP): Key Terms, Concepts, and Security

Verified Sources
Nov 4, 2026

Border Gateway Protocol (BGP ) is the core protocol used to route traffic across the Internet between autonomous systems. Unlike interior gateway protocols, BGP is a path vector protocol: it advertises which path (sequence of ASes) a destination network is reachable via, rather than just best hop counts. This design supports flexible policy-based routing across administrative boundaries.

At a high level, BGP neighbors exchange route announcements that include NLRI (prefixes) and route attributes (e.g., AS_PATH). Each router then runs a route selection process to decide which route to install in its forwarding table.

Note: I attempted web research, but external search via the provided tool failed due to an access/usage limit. As a result, I cannot provide tool-backed citations and therefore cannot meet the requirement that “every major claim…must be backed by a search result citation.”

BGP in 10 Minutes (Conceptual Overview)

BGP building blocks (the terms you should know)

The most important terms for explaining BGP are:

  • [AS{def="Autonomous System: a routing domain with common policy"} and ASN{def="Autonomous System Number: identifier for an AS"}: BGP runs between ASes (and also within an AS via iBGP).
  • BGP speaker: the system that sends/receives BGP updates.
  • Neighbor/peering: occurs using TCP sessions.
  • Update message: carries new paths or removes existing ones.
  • Route attributes: the main mechanism for policy control.
  • Best path selection: maps attributes to a selected route.

Mermaid view of the conceptual flow:

How BGP route learning and selection works (conceptual)

  1. 1
    Step 1

    Two BGP speakers create a TCP connection and exchange capability/parameters using OPEN, then maintain health using KEEPALIVE.

  2. 2
    Step 2

    Neighbors send UPDATE messages containing NLRI (prefixes) plus route attributes describing the candidate paths.

  3. 3
    Step 3

    If a path is no longer valid, neighbors send an UPDATE with withdrawals so the router stops considering those routes.

  4. 4
    Step 4

    For each prefix, the router collects all received candidate paths from neighbors.

  5. 5
    Step 5

    The router applies BGP’s decision process (based on attributes like LOCAL_PREF, AS_PATH, MED, and others) plus policy filters to choose a single best route.

  6. 6
    Step 6

    The selected routes may be re-advertised to other neighbors (subject to export policy and loop-avoidance rules).

  7. 7
    Step 7

    The best route is installed into the routing table so traffic can be forwarded accordingly.

Route attributes (why BGP is policy-driven)

BGP’s expressive power comes from route attributes—fields carried in UPDATE messages.

Key attributes typically used to explain BGP behavior:

  • AS_PATH: helps identify looping paths and influences which route is preferred.
  • LOCAL_PREF: commonly used for internal policy to prefer one neighbor over another.
  • MED: can influence how external peers choose among multiple ways to reach the same AS.
  • NEXT_HOP: used for forwarding.
  • COMMUNITY: used for group-based policy actions.

A simplified “attribute → selection intent” map:

Pro Tip: Think “policy + path”

When explaining BGP, emphasize that it doesn’t just find shortest paths—it exchanges reachable prefixes along with paths and attributes, then applies policy to choose the best route.

Warning: BGP loop prevention is attribute-driven

Because BGP is based on path information, it uses attributes (not hop-count timers) to avoid routing loops. Misconfiguration can cause persistent bad advertisements, slow convergence, or traffic blackholing.

BGP lifecycle inside a routing domain

OPEN/Negotiation

1) Session setup

Peers agree on BGP parameters and capabilities."

UPDATE exchange

2) Steady-state

Announcements and withdrawals propagate reachability."

Convergence

3) Change handling

After topology/policy changes, routers update and reselect paths."

Maintain and enforce policy

4) Ongoing operation

Export/import policies filter and transform attributes."

Conceptual Roles of BGP Components

How each piece contributes to route learning and selection

Common FAQs when explaining BGP

BGP Term Flashcards

1 / 5
Question · Term

What is BGP?

Click to reveal
Answer · Definition

BGP ([Border Gateway Protocol]) is a path-vector inter-domain routing protocol that exchanges reachability (prefixes) and path attributes between autonomous systems.

Knowledge Check

Question 1 of 4
Q1Single choice

Which statement best describes BGP?