BGP is used worldwide to exchange routing information between networks, but within this usage, there are different types: external BGP (eBGP) and internal BGP (iBGP). Each serves a specific purpose in routing architecture, and understanding the differences is essential for network professionals designing reliable and scalable networks.
What is eBGP?
External BGP (eBGP) is used for exchanging routing information between different autonomous systems (ASes). It is the protocol used when an organization connects to another provider or a network under a separate administrative domain.
Key characteristics of eBGP:
- AS-crossing: eBGP routers always communicate between different ASes.
- Policy-driven: organizations control which routes they receive and advertise.
- Hop limit: eBGP has a default TTL of 1, meaning direct peering is usually required.
eBGP is crucial for multi-homing, where an organization uses multiple ISPs for redundancy and performance. It also allows businesses to make choices based on commercial considerations, such as preferring certain transit providers.
What is iBGP?
Internal BGP (iBGP) is used to exchange routing information within the same AS. Its purpose is to ensure that all routers within an AS have consistent routing information so traffic is correctly directed to the appropriate egress router connecting to another AS.
Key characteristics of iBGP:
- Within a single AS: all iBGP routers belong to the same autonomous system.
- Full mesh or route reflectors: iBGP requires routers to know each other directly or via a route reflector to avoid loops.
- Consistency: iBGP helps distribute eBGP routes internally so all routers make the same outbound decisions.
Differences between eBGP and iBGP
| Feature | eBGP | iBGP |
|---|---|---|
| Scope | Between different ASes | Within the same AS |
| TTL | 1 (direct peering) | Often unlimited, depending on topology |
| Policy control | Inbound/outbound filtering | Internal distribution and route reflection policies |
| Use case | Multi-homing, transit provider connections | Internal distribution of eBGP routes, AS consistency |
Best practices for eBGP and iBGP
- Redundancy: Use multiple eBGP peers with different providers to handle outages.
- Route filtering: Prevent accepting unwanted or malicious routes.
- Route reflectors: Use iBGP route reflectors to avoid full mesh topologies and reduce complexity.
- Monitoring: Continuously monitor BGP sessions to quickly detect failures or routing loops.
Conclusion
The distinction between eBGP and iBGP is fundamental to network architecture. eBGP manages communication with other ASes and provides control over inbound and outbound traffic, while iBGP ensures internal coherence within the AS. Together, they form the backbone of modern routing architectures and are essential for reliable and scalable networks.