Intermediate Topic 32 of 50 Computer Networks
BGP
Protocol exchanging routes between autonomous systems.
How it works
The Border Gateway Protocol is the path-vector routing protocol of the internet, exchanging reachability information between autonomous systems, the independently operated networks identified by AS numbers. Routers advertise prefixes along with the AS path, and each network applies policies, such as local preference and filters, to choose routes based on business relationships as much as shortest paths. It runs over TCP port 179.
Step-by-step walkthrough
- The Internet is many autonomous systems, each run by one organization.
- AS 100 announces its address prefixes to neighbours.
- AS 200 passes the route on, adding itself to the AS path.
- AS 300 compares paths using policy and path length.
- The chosen route sends traffic across ASes, and bad announcements can hijack traffic.
Where it is used
Internet service providers, cloud providers, content networks and large enterprises use BGP to connect to the internet and to each other. Anycast and traffic engineering also depend on it.
Common pitfall
BGP trusts what neighbors announce, so misconfigurations or hijacks can redirect or black-hole traffic for whole regions, as in several major outages. RPKI route origin validation, prefix filters and max-prefix limits improve safety. Convergence is slow and policy interactions are complex, so test changes carefully.
Where it fits in the course
BGP is topic 32 of 50 in Computer Networks, rated Intermediate. It follows RIP and OSPF. The next topic is VLANs.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Computer Networks quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Computer Networks quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is BGP?
Where do people use BGP?
What is the most common mistake with BGP?
What should I learn before this topic?
How can I practice it?
Is BGP hard to learn?
How long does it take to learn BGP?
Which topics are related to BGP?
What should I study after BGP?
Related topics
- RIP and OSPF (Computer Networks)
- VLANs (Computer Networks)
- Routing Algorithms (Computer Networks)
- HTTPS and TLS (Computer Networks)