https://www.techtarget.com/searchnetworking/definition/BGP-Border-Gateway-Protocol
BGP (Border Gateway Protocol) is the protocol that enables the internet's global routing system. It manages how packets get routed from network to network by exchanging routing and reachability information among edge routers.
BGP enables peering to send packets between autonomous systems (ASes), networks managed by a single enterprise or service provider. Together, these ASes make up the public internet.
BGP creates network stability by guaranteeing that routers can adapt to route failures. When one path goes down, BGP quickly finds a new path. BGP makes routing decisions based on paths defined by rules or network policies set by network administrators.
BGP has the following characteristics:
Each router maintains a routing table that controls how packets are directed. The BGP process on the router generates routing table information, which is based on the following factors:
The RIB contains information from both directly connected external peers and internal peers. It includes policies for what routes should be used and what information should be published, and it continually updates the routing table as changes occur.
Routers located at an internet exchange point -- a physical location where different network providers exchange traffic -- are referred to as IXP routers; private peerings, on the other hand, are direct connections between specific networks, usually within the same IXP. Private peerings are not advertised broadly, enabling more regulated exchange.
BGP helps provide redundancy by enabling routers to quickly adapt and send packets through another connection if one internet path goes down. It is often used in large networks, such as internet service provider (ISP) networks, wide area networks (WANs) and infrastructure-as-a-service (IaaS) environments.
BGP is an exterior gateway protocol, which means it is designed to share routing information between different ASes. Alternatively, an interior gateway protocol sends information within a single AS. However, Internal BGP (iBGP) can send reachability information within an organization's network.
Each BGP router maintains a standard routing table to direct packets in transit. BGP uses a client-server topology to communicate routing information, with the client initiating a BGP session by sending a request to the server.
BGP sends updated router table information only when something changes, and it sends only the affected information. BGP has no automatic discovery mechanism, which means network admins must manually set up connections between peers, with peer addresses programmed in at both ends.
BGP makes best-path decisions based on attributes, including the following:
In situations where multiple paths are available -- as within a major hosting facility -- BGP policies communicate an organization's preferences for what path traffic should follow in and out. BGP community tags can control route advertisement behavior among peers.
BGP in networking is based on the TCP/IP model. It operates on the Open Systems Interconnection transport layer, or Layer 4, to control the network layer, or Layer 3.
As described in Request for Comments 4271, which was ratified in 2006, the current version of BGP4 supports both IPv6 and CIDR, which enables the continued viability of IPv4. Using CIDR enables a network to have more network addresses than with the current IP address assignment scheme.
Common issues with BGP include the following:
BGP outages can be vast, affecting hundreds of thousands or even millions of users. The following are some of the most notorious incidents:
BGP is also vulnerable to attacks based on misinformation. For example, malicious actors can flood a router with bad packets in a denial-of-service attack. They can also claim to be the source of routing information for an AS and temporarily control where traffic from that AS goes, a practice known as BGP hijacking.
BGP that's used to route within a single AS is iBGP. When BGP connects one AS to others, it's called External BGP, or eBGP.
The Open Shortest Path First (OSPF) protocol is used only in internal networks. It focuses on finding the shortest route between nodes and failing over to that shortest route as quickly as possible.
BGP is slower to fail to a new route but more scalable than OSPF. As such, OSPF is better suited for corporate local area networks (LANs) and private data centers. OSPF is essentially hierarchical in structure, while BGP is a mesh. Some networks are replacing OSPF with iBGP because of its scalability and flexibility.
Learn which network performance optimization strategies can help safeguard reliability and ensure minimal network disruptions.
02 Apr 2025