The Border Gateway Protocol is used online as a path vector and routing protocol. It forms the basis for ex­chang­ing data about the reach­a­bil­i­ty of available routers and managing data packets. BGP can connect in­ter­nal­ly and ex­ter­nal­ly au­tonomous systems and provides network stability in the event of router failures.

$1 Domain Names – Grab your favorite one
  • Simple reg­is­tra­tion
  • Premium TLDs at great prices
  • 24/7 personal con­sul­tant included
  • Free privacy pro­tec­tion for eligible domains

What is a BGP?

The Border Gateway Protocol is used to stabilize the internet network of the global routing system. Ab­bre­vi­at­ed to BGP or BGP protocol, it’s a path vector protocol that provides and exchanges in­for­ma­tion about reachable or failed routing paths. It provides better networks stability by acting as an exterior gateway protocol and an interior gateway protocol.

With BGP, au­tonomous systems can be connected in­ter­nal­ly and across systems in order to exchange data packets ef­fi­cient­ly. The BGP basics, including the current version BGPv4, are defined in detail in RFC 1163. BGP routing uses TCP port 179 to exchange data and in­for­ma­tion. The basis for net­work­ing using BGP is the stan­dard­ized internet protocol under the ab­bre­vi­a­tion TCP/IP.

When is BGP used?

The Border Gateway Protocol is used as external BGP (eBGP) and as internal BGP (iBGP). Being the only external gateway protocol on the internet, it’s used for routing and managing data exchange between and within au­tonomous systems. By making decisions based on policies and rules defined by network ad­min­is­tra­tors, it guar­an­tees better network stability. This is possible, for example, by allowing routers to flexibly adapt in case of failures and to choose other logical routing paths available via BGP for ex­chang­ing packets. In addition, BGP updates enable routers to add new ones to the default routing table in use.

Note

The IPv6 ad­dress­ing type anycast is closely related to the BGP protocol. BGP routing is used to enable com­mu­ni­ca­tion between computers in anycast networks.

How do BGP networks work?

BGP networks use a routing table to control and manage data packets for net­work­ing and data exchange between routers. Routers generate the table’s BGP in­for­ma­tion with incoming router in­for­ma­tion and the RIB (Routing In­for­ma­tion Database) stored on the router. The RIB not only includes in­for­ma­tion about external and internal peers, but also updates the routing table based on new in­for­ma­tion about the current BGP peer group and available or no longer available paths, routers and peers. BGP routers use TCP con­nec­tions and TCP port 179 to exchange messages and data, for example:

  • OPEN: starts the exchange of in­for­ma­tion of a BGP session
  • UPDATE: transmits in­for­ma­tion about modified or new paths
  • KEEPALIVE: regular KEEPALIVE messages ac­knowl­edge OPEN messages and inform connected routers that a session should be main­tained
  • NO­TI­FI­CA­TION: used to delete routing paths or to abort a session if the KEEPALIVE message fails to appear

BGP de­ter­mines the best path for data exchange based on the routing table and cor­re­spond­ing path at­trib­ut­es such as:

  • Reachable au­tonomous systems (AS_PATH)
  • Required hops or in­ter­me­di­ate nodes (Next Hop)
  • Cost (IGP metric)
  • Pri­or­i­tized parallel con­nec­tions (multi-exit dis­crim­i­na­tor)

BGP routing can be applied with IPv4 and IPv6 and other internet protocols or MPLS labels. In addition, BGP works according to the OSI model on the OSI transport layer to control the network layer

Providing a constant exchange to available or new paths via BGP, BGP routers can create graphs to map networked paths within or between au­tonomous systems. This ensures reliable data and in­for­ma­tion exchange in networks, improves network stability and prevents loop formation.

What’s the dif­fer­ence between internal and external BGP?

The dis­tinc­tion between external BGP (eBGP) and internal BGP (iBGP) depends on whether networks share data between different au­tonomous systems and BGP peer groups or within an au­tonomous system (AS) with internal peer groups.

Where routers are networked within an AS, either the OSPF protocol (Open Shortest Path First), based on the mesh principle, or iBGP as the Interior Gateway Protocol (IGP) are used for the shortest path between all internal routers meshed via BGP. Route re­flec­tors can prevent scaling problems in large networks. Con­nec­tion to the route reflector is suf­fi­cient for BGP routers. In turn, these forward learned route in­for­ma­tion to internal AS routers via the external BGP. In order to avoid a single point of failure due to route re­flec­tors, these are usually used as clusters.

Issues of security and problems caused by the Border Gateway Protocol

When it comes to network security, BGP routers are quite vul­ner­a­ble to attacks such as Denial of Service (DoS). This is where routers are flooded with packets. Another BGP routing vul­ner­a­bil­i­ty is BGP hijacking, where hackers im­per­son­ate the AS and routing source to intercept or redirect traffic.

BGP service issues and error or subcode for possible timeout or pro­cess­ing issues may result if:

  • in­for­ma­tion exchange fails due to in­cor­rect­ly formatted or in­com­plete/false router in­for­ma­tion.
  • memory or working memory is in­suf­fi­cient.
  • updates are too slow.
Business Email
Discover a new way to email
  • Write perfect emails with optional AI features
  • Add cred­i­bil­i­ty to your brand
  • Includes domain, spam filter and email for­ward­ing
Go to Main Menu