Share this
Why Is BGP the King of Routing Protocols?
by PivIT Global on Jun 14, 2022 7:12:00 AM
Routers must be aware of all networks within the enterprise premises and the available routes to reach them to provide full network connectivity. For that purpose, routing protocols are used such as OSPF, EIGRP, or RIP, to dynamically exchange information and perform appropriate recalculations when network changes happen.
However, these protocols are internal routing protocols and are beneficial only when used inside the networks. When data needs to be sent to an external network, such as a partner network or the public internet, another solution is required.
In the early 1990s, the solution came in the form of a routing protocol that supports external routing without any limitations or setbacks. This protocol is called Border Gateway Protocol (BGP).
In this article, we provide an overview of BGP and the differences from the other internal routing protocols, the benefits it provides, as well as the characteristics and unique approach it has.
Explore your options here at PivIT. Click below to learn more about the router solutions we can bring to your network, whether it be the hardware itself, maintenance, or the field services you need to get online.
BGP Overview
Unlike OSPF and EIGRP, which are protocols primarily designed for internal routing inside the enterprise premises, BGP is an exterior routing protocol developed with the single purpose of exchanging data across the internet.
In fact, BGP is the only exterior routing protocol available today and the primary goal is to exchange routes between Autonomous Systems (AS). For context, an AS is defined as a collection of networks under a single technical administration domain.
Usually, this is a service provider, but sometimes even large companies might participate in BGP when they need to communicate publicly without any help from service providers.
In addition, BGP is heavily used in Multi-Protocol Label Switching (MPLS) deployments and is usually part of a service provider's network implementations.
The main reason why BGP was developed is that interior routing protocols were not designed to work in large networks. So, you might be wondering, what would you define as a large network? Well, we are not talking about the large and complex networks that big companies have, but rather the global public network or the internet.
The main purpose of the interior routing protocols is to learn and, more importantly, converge as quickly as possible when there are network changes. However, they can learn and store network information only to a certain point.
So, how will this work on the internet? The quick answer is…it cannot. This is the reason why we use BGP. It was designed to work fluently and without any limitations in extremely large networks, such as the internet. Moreover, it can store all information about the networks available on the internet, which is a huge improvement over interior routing protocols.
For context, at the time of writing this article in 2022, the BGP table currently contains around 900,000 entries. Without the proper approach, a BGP router will have to make a lot of recalculations when there is a network change, which will result in being extremely resource-intensive on the routers.
For achieving satisfactory optimization, BGP was designed to work very slowly and not react immediately to each network change but wait an extended period before performing any appropriate action. The trade-off of better optimization for slower convergence makes BGP an inappropriate routing choice for inside a network.
As part of PivIT's EXTEND, we offer a secure, isolated, and remote environment to pre-configure your network, compute, and storage hardware prior to deployment to your locations around the world using our out-of-band (OOB) management platform. Find out more about how our Remote Staging Environment works.
BGP Characteristics
Unlike OSPF and EIGRP, which are operating as protocols by themself, BGP uses TCP as a transport mechanism (port 179 to be more precise). The reason for using TCP is the large amount of data it supports to be sent at once before an acknowledgment is received from the receiving router.
This approach provides better optimization because it allows more data to be exchanged during updates, without too many acknowledgments involved in the process.
Like OSPF and EIGRP, which use hello messages to keep the relationship active between the routers, BGP uses a method where periodic TCP keepalive messages are sent every 60 seconds by default.
If the connection is stable, the hold time will never expire and the BGP connection will stay active and continue operating.
After a BGP connection is established between two routers, they exchange their complete routing tables. However, only triggered updates are sent afterward when network changes happen and, as a result, a lot of resources are spared on the routers.
____________
Before we get into the functionalities of BGP, it is important to determine whether you have the knowledge and resources to configure BGP on your devices. Ask yourself the following questions:
- Do I have the time to handle configurations?
- Do I have the bandwidth to configure my devices?
If you answered "No" to either of these questions, consider PivIT's SmartHands through EXTEND. Hire an expert routing engineer to take on these configurations and more. Click below to learn more about SmartHands.
____________
BGP Functionalities
BGP operates and functions unlike any other protocol, which makes it unusual and special in many ways. So, what does this mean? Each interior routing protocol is using a unique method to calculate the best route to each network.
For example, RIP uses hop-count, where the shorter the path, the better the route. OSPF and EIGRP use different approaches, yet both rely on the bandwidth parameter of the links, which results in the fastest route being selected for each destination.
BGP is a path vector protocol, so it is quite different than distance vector or link-state routing protocols. Instead of relying on a single parameter making path decisions, such as bandwidth or hop-count, BGP running on Cisco routers uses 11 different criteria called attributes to select the best route. These attributes are:
- Weight
- Local preference
- Local routes > learned routes
- AS path
- Origin
- MED (metric)
- EBGP > IBGP path
- Closest IGP neighbor
- Oldest EBGP path
- Lowest neighbor BGP router ID
- Lowest neighbor IP address
When several routes are available to reach a network, BGP compares the attributes for each one and always selects the best. Consequently, it is not possible to have two or more equally valued routes and perform load balancing like with other routing protocols.
Furthermore, the implementation process of BGP is also different than with the other internal protocols and requires additional configuration steps. The relationship establishment is not dynamic, and each neighbor must be manually specified on the routers.
Moreover, the networks enabled on the interfaces and running BGP are not dynamically advertised to the neighbors. For that reason, you must define each network that you want to share with the rest of the routers in the AS. Based on the location of the routers forming the relationship, BGP will function as External BGP (EBGP) and Internal BGP (IBGP).
When Is BGP Appropriate to Use?
In the end, even though BGP can be used as a routing protocol in any network irrelevant to the size, it is mainly implemented by service providers and used as a tool for exchanging large amounts of routes publicly.
BGP complexity, architecture, approach, and supported features make this protocol unique. However, implementing BGP is not recommended without having a sufficient background of the basic functionalities it provides and the configuration steps involved in the process.
We hope this article helped you gain knowledge around routing protocols and BGP itself. Continue checking out the Tech Corner where we continually add more content.
Share this
- Configuration Guides (47)
- Cisco Routers (29)
- Switches (27)
- Network Security (23)
- Routing Protocols (21)
- Cisco Switches (20)
- Routers (20)
- Cisco (19)
- Product Comparisons (19)
- Firewall (18)
- Cisco Security (17)
- Cisco Technical Information (17)
- IT Hardware Solutions (17)
- Network Protocols (17)
- Wireless (17)
- Security (15)
- OneCall (13)
- Servers (12)
- cisco asa (12)
- Cisco Wireless (11)
- Router Protocols (11)
- Cisco UCS (9)
- Upgrading Network (9)
- Cisco Catalyst (8)
- Product Highlight (8)
- Access Control Lists (7)
- Cisco Servers (7)
- Fortinet (7)
- Access Points (6)
- Arista Networks (6)
- OSPF (6)
- Server Comparisons (6)
- Wireless APs (6)
- Cisco ASR (5)
- Cloud Solutions (5)
- HPE-Aruba Wireless (5)
- Juniper Mist (5)
- Network Management (5)
- SD-WAN (5)
- Storage (5)
- Switch Comparison (5)
- Back To Basics (4)
- Cybersecurity (4)
- EIGRP (4)
- Firewall Architecture (4)
- HSRP (4)
- Juniper Networks (4)
- Network Automation (4)
- OEM Comparison (4)
- Aruba Central (3)
- Cisco Telephony (3)
- DHCP (3)
- DHCP Snooping (3)
- Dell EMC PowerEdge (3)
- Internet (3)
- Maintenance (3)
- Maintenance Renewal (3)
- Network Accessories (3)
- Network Servers (3)
- TPM (3)
- Telephony (3)
- aruba (3)
- Cisco NX-OS (2)
- Cisco Nexus (2)
- Dell Servers (2)
- Fortinet NGFWs (2)
- IT Trends (2)
- LAN Networks (2)
- Network Time Protocol (2)
- Palo Alto NGFWs (2)
- Rapid PVST+ (2)
- Remote Configuration (2)
- Software Defined Networking (2)
- WLAN (2)
- Ways to Save (2)
- fortigate (2)
- Asset Management (1)
- CPU Usage (1)
- Cisco AIR-CT (1)
- Cisco Aironet (1)
- Cisco DNA (1)
- Cisco ISR (1)
- Cisco Supervisor Engines (1)
- Cisco UCS Manager (1)
- Cognitive Campus (1)
- Cost of Downtime (1)
- Dell EMC Data Domain (1)
- Edge Switches (1)
- Fabric Extenders (1)
- GRE Tunnel (1)
- HPE BL (1)
- Juniper SRX (1)
- Nexus Switches (1)
- Nutanix (1)
- Optics (1)
- PowerEdge R740xd (1)
- STP Extension (1)
- Sparing Integrity Program (1)
- Switched Virtual Interface (1)
- TCP (1)
- UCS Fabric Interconnects (1)
- hyperconverge (1)
- March 2024 (1)
- February 2024 (2)
- January 2024 (1)
- December 2023 (1)
- November 2023 (2)
- October 2023 (1)
- September 2023 (3)
- August 2023 (5)
- July 2023 (2)
- June 2023 (4)
- May 2023 (5)
- April 2023 (8)
- March 2023 (7)
- February 2023 (5)
- January 2023 (2)
- December 2022 (3)
- November 2022 (3)
- October 2022 (8)
- September 2022 (9)
- August 2022 (9)
- July 2022 (8)
- June 2022 (9)
- May 2022 (5)
- April 2022 (3)
- March 2022 (1)
- February 2022 (2)
- November 2021 (2)
- October 2021 (1)
- September 2021 (2)
- August 2021 (2)
- July 2021 (3)
- June 2021 (2)
- May 2021 (4)
- April 2021 (4)
- March 2021 (2)
- February 2021 (1)
- January 2021 (2)
- December 2020 (2)
- November 2020 (2)
- October 2020 (2)
- September 2020 (2)
- August 2020 (4)
- July 2020 (5)
- June 2020 (4)
- May 2020 (6)
- April 2020 (2)
- March 2020 (1)
- February 2020 (2)
- January 2020 (2)
- December 2019 (1)
- May 2019 (2)
- April 2019 (5)
- February 2019 (1)
- January 2019 (3)
- December 2018 (1)
No Comments Yet
Let us know what you think