What is bgp
Last updated: April 1, 2026
Key Facts
- BGP is an exterior gateway protocol (EGP) that operates at the application layer (Layer 7) and exchanges routing information between autonomous systems
- BGP uses TCP port 179 for communication and is capable of handling extremely large routing tables with thousands of network routes
- The protocol allows network administrators to set routing policies based on network conditions, preferences, and business rules rather than just shortest path
- BGP comes in two versions: BGP4 (for IPv4 networks, most common) and BGP6 (for IPv6 networks)
- Without BGP, the internet would not function as a unified global network, as it's responsible for routing approximately 99% of internet traffic
Understanding BGP
Border Gateway Protocol (BGP) is the routing protocol that makes the modern internet possible. It allows different networks owned by different organizations to communicate and route data between each other. When you send data across the internet, BGP determines the path that data takes through numerous networks to reach its destination. This protocol is essential for internet stability and is used by Internet Service Providers (ISPs), content delivery networks, and large enterprises.
How BGP Works
BGP operates by having routers exchange information about which networks they can reach. Each network is identified as an Autonomous System (AS), with a unique number assigned by regional internet registries. Routers running BGP communicate with neighboring routers to share routing information, including which networks they can reach and the cost of reaching them. Based on this information, routers decide the best path for incoming data packets. BGP uses metrics like path length, local preference, and community values to make routing decisions.
BGP and Autonomous Systems
An autonomous system is a large network under a single administrative authority, such as an ISP or major corporation. Each AS has a unique BGP AS number (ASN). BGP enables these autonomous systems to connect to the internet backbone and exchange traffic with other networks. The protocol supports both internal BGP (iBGP), which operates within an AS, and external BGP (eBGP), which connects different autonomous systems together.
BGP's Importance for Internet Connectivity
BGP is responsible for maintaining the routing table that makes internet communication possible. It handles route advertisements, where networks announce that they can reach certain IP address ranges. Without BGP, internet routers would have no way to know how to forward data to distant networks. BGP also provides redundancy and failover capabilities, allowing traffic to be rerouted if network links fail or become congested.
Related Questions
What is an autonomous system (AS) in networking?
An autonomous system is a collection of connected internet networks under a single administrative authority. Each AS is assigned a unique number (ASN) and uses BGP to communicate with other autonomous systems on the internet.
How does internet routing work?
Internet routing uses protocols like BGP to determine the best path for data packets to travel across multiple networks. Routers examine destination IP addresses and use routing tables to forward packets toward their final destination.
What's the difference between BGP and OSPF?
BGP is an exterior gateway protocol used between autonomous systems across the internet, while OSPF is an interior gateway protocol used within a single autonomous system. BGP is for inter-network routing; OSPF is for intra-network routing.
More What Is in Daily Life
- What Is a Credit ScoreA credit score is a three-digit number, typically ranging from 300 to 850, that represents your cred…
- What Is CD rates make no sense based on length of time invested. Explain like I'm 5CD (Certificate of Deposit) rates often don't increase with longer lock-up times the way people expe…
- What is a phdA PhD (Doctor of Philosophy) is a doctoral degree earned after completing advanced academic research…
- What is a polymathA polymath is a person with deep knowledge and expertise across multiple different fields or academi…
- What is aaveAAVE stands for African American Vernacular English, a dialect with distinct grammar, pronunciation,…
- What is aarch64ARMv8-A (commonly called ARM64 or AArch64) is a 64-bit processor architecture developed by ARM Holdi…
- What is about menTopics and discussions about men typically encompass masculinity, male identity, gender roles, men's…
- What is abiturAbitur is the German academic qualification awarded upon completion of secondary education, typicall…
- What is abrosexualAbrosexual is a sexual orientation identity where a person's sexual attraction changes or fluctuates…
- What is abgABG is an Indonesian acronym standing for 'Anak Baru Gede,' which refers to adolescent girls or teen…
- What is aaaAAA batteries are a standard cylindrical battery size measuring 10.5mm in diameter and 44.5mm in len…
- What is aacAAC (Advanced Audio Codec) is a digital audio compression format that provides better sound quality …
- What is aaa gameAAA games are high-budget video games developed by large studios with budgets typically exceeding $1…
- What is a proxyA proxy is a server that acts as an intermediary between your device and the internet, forwarding yo…
- What is ableismAbleism is discrimination and prejudice against people with disabilities based on the assumption tha…
- What is absAbs, short for abdominal muscles, are the muscles in your core that flex your spine and stabilize yo…
- What is abortionAbortion is a medical procedure that ends pregnancy by removing the fetus before viability. It can b…
- What is accutaneAccutane (isotretinoin) is a powerful prescription medication derived from vitamin A used to treat s…
- What is acetaminophenAcetaminophen, also known as paracetamol, is an over-the-counter pain reliever and fever reducer use…
- What is acidAcid is a chemical substance that donates protons (hydrogen ions) to other substances, characterized…
Also in Daily Life
- How To Save Money
- Why are so many white supremacist and right wings grifters not white
- Does "I'm 20 out" mean youre 20 minutes away from where you left, or youre 20 minutes away from your destination
- Why are so many men convinced that they are ugly
- What does awol mean
- What does asl mean
- What does ad mean
- What does asap mean
- What does apex mean
- What does asmr stand for
- What does atp mean
- What causes autism
- What does abg mean
- What does am and pm mean
- What does a fox sound like
More "What Is" Questions
Trending on WhatAnswer
Browse by Topic
Browse by Question Type
Sources
- Wikipedia - Border Gateway Protocol CC-BY-SA-4.0
- RFC 4271 - Border Gateway Protocol Standards Track