LearningAid

BGP

The routing protocol that holds the internet together. Work through the three steps below: learn the cards, test yourself, then tick off what you can explain.

1. Learn

Three animated cards. Watch the bar move down each row, then read the notes.

Animated card of the six BGP neighbor states

Neighbor states

  • Idle then Connect then Active then OpenSent then OpenConfirm then Established.
  • BGP runs over TCP port 179. Connect is the TCP handshake in progress.
  • Active does not mean up. It means TCP failed and is being retried.
  • Only Established exchanges routes (UPDATE messages).

Stuck in Idle or Active? Check reachability, ACLs and TCP 179 first.

Download PNG

Animated card of the four BGP path attribute categories

Path attributes

  • Well-known mandatory: AS_PATH, NEXT_HOP, ORIGIN. In every UPDATE.
  • Well-known discretionary: LOCAL_PREF, ATOMIC_AGGREGATE. Recognised by all, sent only if needed.
  • Optional transitive: COMMUNITY, AGGREGATOR. Passed along even if unknown.
  • Optional non-transitive: MED, ORIGINATOR_ID, CLUSTER_LIST. Dropped if unknown.

LOCAL_PREF stays inside your AS. MED is not passed on to other ASes.

Download PNG

Animated card of the five BGP message types

Message types

  • OPEN starts the session: AS number, hold time, router ID.
  • UPDATE advertises or withdraws prefixes.
  • KEEPALIVE proves the peer is alive. Cisco default: every 60s, hold time 180s.
  • NOTIFICATION reports an error, then the session closes.
  • ROUTE-REFRESH asks a peer to resend its routes (soft reset).

The hold time is negotiated and the lowest value wins.

Download PNG

2. Practice

Nine quick questions. Pick an answer to see the result.

Score: 0 / 0

3. Master

Tick each item only when you can explain it out loud without looking.

0 of 0 done
BGP mastered. Nice work.