Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Aptitude
  • Engineering Mathematics
  • Discrete Mathematics
  • Operating System
  • DBMS
  • Computer Networks
  • Digital Logic and Design
  • C Programming
  • Data Structures
  • Algorithms
  • Theory of Computation
  • Compiler Design
  • Computer Org and Architecture
Open In App
Next Article:
Border Gateway Protocol (BGP)
Next article icon

Border Gateway Protocol (BGP)

Last Updated : 29 Jan, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

The protocol can connect any internetwork of the autonomous system using an arbitrary topology. The only requirement is that each AS have at least one router that can run BGP and that is the router connected to at least one other AS's BGP router. BGP's main function is to exchange network reachability information with other BGP systems. Border Gateway Protocol constructs an autonomous systems graph based on the information exchanged between BGP routers. 

Characteristics of Border Gateway Protocol (BGP)

  • Inter-Autonomous System Configuration: The main role of BGP is to provide communication between two autonomous systems.
  • BGP supports the Next-Hop Paradigm.
  • Coordination among multiple BGP speakers within the AS (Autonomous System).
  • Path Information: BGP advertisements also include path information, along with the reachable destination and next destination pair.
  • Policy Support: BGP can implement policies that can be configured by the administrator. For ex:- a router running BGP can be configured to distinguish between the routes that are known within the AS and that which are known from outside the AS.
  • Runs Over TCP.
  • BGP conserves network Bandwidth.
  • BGP supports CIDR.
  • BGP also supports Security.

Functionality of Border Gateway Protocol (BGP)

BGP peers perform 3 functions, which are given below.

  • The first function consists of initial peer acquisition and authentication. both the peers established a TCP connection and performed message exchange that guarantees both sides have agreed to communicate.
  • The second function mainly focuses on sending negative or positive reach-ability information.
  • The third function verifies that the peers and the network connection between them are functioning correctly.

Importance of Border Gateway Protocol(BGP)

  • Security: BGP is highly secure because it authenticates messages between routers using preconfigured passwords through which unauthorized traffic is filtered out.
  • Scalability: BGP is more scalable because it manages a vast number of routes and networks present on the internet.
  • Supports Multihoming: BGP allows multihoming means an organization can connect to multiple networks simultaneously.
  • Calculate the Best Path: As we know data packets is traveled across the internet from source to destination every system in between the source and destination has to decide where the data packet should go next
  • TCP/IP Model: BGP is based on the TCP/IP model and it is used to control the network layer by using transport layer protocol.

Types of Border Gateway Protocol

  • External BGP: It is used to interchange routing information between the routers in different autonomous systems, it is also known as eBGP(External Border Gateway Protocol). The below image shows how eBGP interchange routing information.
eBGP
eBGP
  • Internal BGP: It is used to interchange routing information between the routers in the same autonomous system, it is also known as iBGP(Internal Border Gateway Protocol). Internal routers also ensure consistency among routers for sharing routing information. The below image shows how iBGP interchange routing information.
iBGP
iBGP

Elements of BGP

Some elements of BGP are assigned to each path and these elements help routers to select a path from multiple paths.Here below are some elements of BGP:

  • Weight: Weight is defined as a Cisco-specific attribute that tells a router which path is preferred. The weight having a higher value is preferred.
  • Originate: This tells how a router choose routes and adds to BGP itself.
  • Local Preference: Local Preference is an element used to select the outbound routing path. Greater local preference is preferred.
  • Autonomous System Path: This element tells the router to select a path having a shorter length.
  • Next Hop: To reach the destination the next hop elements specify the IP address that should be used as the next hop.

BGP Route Information Management Functions:

  • Route Storage: Each BGP stores information about how to reach other networks.
  • Route Update: In this task, Special techniques are used to determine when and how to use the information received from peers to properly update the routes.
  • Route Selection: Each BGP uses the information in its route databases to select good routes to each network on the internet network.
  • Route advertisement: Each BGP speaker regularly tells their peer what is known about various networks and methods to reach them.

Difference Between BGP and OSPF

Here below are some key differences between BGP and OSPF:

BGP

OSPF

It follows the Path Vector Routing Algorithm

It follows the Link State Routing Algorithm

The speed of convergence is very slow in BGP

The speed of convergence is fast in the case of OSPF

BGP is also called inter-domain routing protocol

OSPF is also called intra-domain routing protocol

In BGP routing operation is performed between two AS

In OSPF routing operation is performed inside an AS

In BGP, TCP protocol is used

In OSPF, IP protocol is used


Next Article
Border Gateway Protocol (BGP)

M

mks075
Improve
Article Tags :
  • Computer Networks

Similar Reads

    Exterior Gateway Protocol (EGP)
    Exterior Gateway Protocol (EGP) is used to exchange net-reachability information between Internet gateways belonging to the same or different autonomous systems. EGP was developed by Bolt, Beranek and Newman in the early 1980s. It was first described in RFC 827 and formally specified in RFC 904 (198
    2 min read
    Bootstrap Protocol (BOOTP)
    Overview :In this article, we will discuss the bootstrapping protocol and how it plays its important role in maintaining the protocol between connected devices on a network. Bootstrap Protocol (BOOTP) is a networking protocol which is used by networking administration to give IP addresses to each me
    4 min read
    Media Gateway Control Protocol (MGCP)
    MGCP stands for Media Gateway Control Protocol. It is a protocol that is extensively used for signalling and controlling communications protocols applied in VoIP telecommunication systems. MGCP is next in line to Simple Gateway Control Protocol. MGCP reflects the architecture in which the endpoints
    2 min read
    Types of Bridge Protocol Data Unit(BPDUs)
    Bridge Protocol Data Units (BPDUs) are the messages that are transmitted across LAN networks to enable switches to participate in Spanning Tree Protocol (STP) by gathering information about each other. It contains information regarding switch ports such as port ID, port priority, port cost, and MAC
    4 min read
    BGP (Border Gateway Protocol) Advanced Features and Route Reflectors
    A standardized outside gateway protocol called Border Gateway Protocol (BGP) is used to transfer reachability and routing data between various autonomous systems (ASes) on the Internet. As BGP is a path vector protocol, it bases its routing choices on the paths, rules and policies set up by network
    4 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences