SlideShare une entreprise Scribd logo
1  sur  23
Pt. Ravishankar Shukla University Raipur (C.G.)
A
Presentation
on
BGP(Border Gateway Protocol)
Session 2016-17
Submitted by
NUTAN SINGH
Roll No. 24
INTRODUCTION OF ROUTING PROTOCOL
ROUTING PROTOCOLS RIP, OSPF, BGP
OVERVIEW OF BGP
WHEN TO USE BGP AND WHEN NOT TO USE BGP
ESTABLISHING ADJACENCIES WITH NEIGHBOURS
 MESSAGE TYPE IN BGP
ROUTE SELECTION DECISION PROCESS
BGP PATH ATTRIBUTES
CONFIGURING OSPF
ADVANTAGES
DISADVANTAGES
CONCLUSION
REFERENCES
2
Routing is the process that a router uses to forward packets
toward the destination network.
processes for sharing route information allows
routers to communicate with other routers to update and
maintain the routing tables
Examples of routing protocols that support the IP routed
protocol are:
RIP, IGRP,OSPF, BGP, and EIGRP.
Most routing algorithms can be classified into one of two
categories:
• distance vector
• link-state 3
4
BGP stand for Border Gateway Protocol.very to big organization
can use BGP.
Having two or more internet connection.
CLID routing protocol.
Create loop free inter domain routing between Autonomous
Systems (AS). {1-65512: Private; 65513 – 65535: Public}
An AS is a set of routers under a single technical administration.
Two BGP flavors: IBGP & EBGP
 - IBGP work in same AS
 - EBGP work in different AS.
BGP used TCP port 179 and maintains neighbor or peer
relationships
It’s an application layer protocol
BGP describes the path by using Attributes
5
• BGP finds the best path to a network by using the best AS-path
• Exchange of loop-free routing information is guaranteed.
• Updates sent once every 5 sec for IBGP peer & once every 30 sec for
EBGP.
• TCP used for reliability.
• Protocol Type: Path vector.
• EBGP: AD 20
• IBGP: AD 200
• Open standard Protocol
• Supported protocols: IPv4, IPv6
• BGP sends full routing updates at the start of the session.
• Incremental & triggered updates
• Timers: Hello (60 sec)
• Authentication: None, MD5
6
Use BGP
 when the effects of BGP are well understood and one of the following
conditions exist:
The AS allows packets to transit through it to reach another AS (transit
AS).
The AS has multiple connections to other AS’s.
The flow of traffic entering or exiting the AS must be manipulated. This
is policy based routing and based on attributes.
Do not use BGP
A single connection to the Internet or another AS
No concern for routing policy or routing selection
A lack of memory or processing power on your routers to handle constant
BGP updates
A limited understanding of route filtering and BGP path selection process
Low bandwidth between AS’s
7
8
9
10
Before establishing a BGP peer connection the two neighbors must
perform the standard TCP three-way handshake and open a TCP
connection to port 179.
After the TCP session is established, BGP peers exchanges several
messages to open and confirm connection parameters and to send BGP
routing information.
All BGP messages are unicast to the one neighbor over the TCP
connection.
There are four BGP message types:
11
Connect State:
Waits for successful TCP negotiation with peer.
BGP does not spend much time in this state if the TCP session has been
successfully established.
Sends Open message to peer and changes state to Open Sent.
Open Sent State:
BGP listens for an Open message from its peer.
Once the message has been received, the router checks the validity of the Open
message.
If there is no error, a Keepalive message is sent, various timers are set and the
state is changed to Open Confirm.
12
13
Open Confirm State:
The peer is listening for a Keepalive message from its peer.
Established State:
The peers send Update messages to exchange information about each route
being advertised to the BGP peer.
If there is any error in the Update message then a Notification message is sent
to the peer, and BGP transitions back to the idle state.
Active State:
If the router was unable to establish a successful TCP session, then it ends up in
the Active state.
Consider only routes with no AS loops and a valid next hop,
and then:
1. Highest weight (local to router).
2. Highest local preference (global within AS).
4. Shortest AS path.
5. Lowest origin code (IGP < EGP < incomplete).
7. EBGP path over IBGP path.
8. The path through the closest IGP neighbor.
9. Oldest route for EBGP paths.
10. The path with the lowest neighbor BGP router ID.
11. The path with the lowest neighbor IP address.
14
Well-known attributes
- Must be recognized by all compliant BGP implementations. Are
propagated to other neighbors
• Well-known mandatory attributes
- Must be present in all update messages
• Well-known discretionary attributes
- May be present in update messages
15
• AS path: Well-known mandatory. A list of autonomous
systems that a route has traversed:
• Next-hop: Well-known mandatory. The IP address of the
next AS to reach a given network
• Origin: Well-known mandatory. The origin attribute
informs all AS in the internetwork how the prefixes were
introduced into BGP.
16
Syntax:-
Example:-
Router(config)# router ospf 1
Router(config-router)# network 10.0.0.0 0.255.255.255
area 0
17
BGP is a path vector routing protocol.
Defined in RFC 1772
BGP is a distance vector routing protocol,
in that it relies on downstream neighbors to
pass along routes from their routing table.
BGP uses a list of AS numbers through
which a packet must pass to reach a
destination.
18
· BGP converges slowly.
· Not used in single connection to the Internet.
19
The protocol designed by Standard protocol system. It’s work
on top of layer 3.it’s a best routing protocol for link state
routing protocol . that is used on a big network ISP for reliable
network establishment.
20
https://www.wikipedia.com/BGP
https://drive.google.com/about
https://www.CCNP CISCO.com/BGP protocol
www.netmetric-solutions.com
21
22
23

Contenu connexe

Tendances

An Overview of Border Gateway Protocol (BGP)
An Overview of Border Gateway Protocol (BGP)An Overview of Border Gateway Protocol (BGP)
An Overview of Border Gateway Protocol (BGP)Jasim Alam
 
EIGRP (Enhanced Interior Gateway Routing Protocol)
EIGRP (Enhanced Interior Gateway Routing Protocol)EIGRP (Enhanced Interior Gateway Routing Protocol)
EIGRP (Enhanced Interior Gateway Routing Protocol)NetProtocol Xpert
 
Routing and OSPF
Routing and OSPFRouting and OSPF
Routing and OSPFarpit
 
Ccna PPT
Ccna PPTCcna PPT
Ccna PPTAIRTEL
 
CCNA PPT
CCNA PPTCCNA PPT
CCNA PPTAIRTEL
 
CCNA Course Training Presentation
CCNA Course Training PresentationCCNA Course Training Presentation
CCNA Course Training PresentationRohit Singh
 
Open Shortest Path First
Open Shortest Path FirstOpen Shortest Path First
Open Shortest Path FirstKashif Latif
 
ospf routing protocol
ospf routing protocolospf routing protocol
ospf routing protocolAmeer Agel
 
CCNA Advanced Routing Protocols
CCNA Advanced Routing ProtocolsCCNA Advanced Routing Protocols
CCNA Advanced Routing ProtocolsDsunte Wilson
 

Tendances (20)

Cisco ospf
Cisco ospf Cisco ospf
Cisco ospf
 
An Overview of Border Gateway Protocol (BGP)
An Overview of Border Gateway Protocol (BGP)An Overview of Border Gateway Protocol (BGP)
An Overview of Border Gateway Protocol (BGP)
 
EIGRP (Enhanced Interior Gateway Routing Protocol)
EIGRP (Enhanced Interior Gateway Routing Protocol)EIGRP (Enhanced Interior Gateway Routing Protocol)
EIGRP (Enhanced Interior Gateway Routing Protocol)
 
Border Gatway Protocol
Border Gatway ProtocolBorder Gatway Protocol
Border Gatway Protocol
 
Routing and OSPF
Routing and OSPFRouting and OSPF
Routing and OSPF
 
Ccna PPT
Ccna PPTCcna PPT
Ccna PPT
 
Dynamic routing protocols (CCNA)
Dynamic routing protocols (CCNA)Dynamic routing protocols (CCNA)
Dynamic routing protocols (CCNA)
 
CCNA ppt
CCNA pptCCNA ppt
CCNA ppt
 
CCNP Route EIGRP Overview
CCNP Route  EIGRP OverviewCCNP Route  EIGRP Overview
CCNP Route EIGRP Overview
 
BGP Overview
BGP OverviewBGP Overview
BGP Overview
 
Eigrp.ppt
Eigrp.pptEigrp.ppt
Eigrp.ppt
 
ccna networking ppt
ccna networking pptccna networking ppt
ccna networking ppt
 
CCNP ROUTE V7 CH6
CCNP ROUTE V7 CH6CCNP ROUTE V7 CH6
CCNP ROUTE V7 CH6
 
CCNA PPT
CCNA PPTCCNA PPT
CCNA PPT
 
CCNA Course Training Presentation
CCNA Course Training PresentationCCNA Course Training Presentation
CCNA Course Training Presentation
 
Bgp (1)
Bgp (1)Bgp (1)
Bgp (1)
 
BGP protocol presentation
BGP protocol  presentationBGP protocol  presentation
BGP protocol presentation
 
Open Shortest Path First
Open Shortest Path FirstOpen Shortest Path First
Open Shortest Path First
 
ospf routing protocol
ospf routing protocolospf routing protocol
ospf routing protocol
 
CCNA Advanced Routing Protocols
CCNA Advanced Routing ProtocolsCCNA Advanced Routing Protocols
CCNA Advanced Routing Protocols
 

Similaire à Border Gateway Protocol (BGP)

Cisco BGP Exam 642-661 Review Notes
Cisco BGP Exam 642-661 Review NotesCisco BGP Exam 642-661 Review Notes
Cisco BGP Exam 642-661 Review NotesDuane Bodle
 
Study Notes BGP Exam
Study Notes BGP ExamStudy Notes BGP Exam
Study Notes BGP ExamDuane Bodle
 
Cisco ccnp 642-902 practice tests for quick preparation
Cisco ccnp 642-902 practice tests for quick preparationCisco ccnp 642-902 practice tests for quick preparation
Cisco ccnp 642-902 practice tests for quick preparationCisco-642-902
 
PLNOG15: BGP New Advanced Features - Piotr Wojciechowski
PLNOG15: BGP New Advanced Features - Piotr WojciechowskiPLNOG15: BGP New Advanced Features - Piotr Wojciechowski
PLNOG15: BGP New Advanced Features - Piotr WojciechowskiPROIDEA
 
Computer network (14)
Computer network (14)Computer network (14)
Computer network (14)NYversity
 
IPv6 Routing.pdf
IPv6 Routing.pdfIPv6 Routing.pdf
IPv6 Routing.pdfniran10
 
All in one q & ans
All in one q & ansAll in one q & ans
All in one q & ansRavi Kodoli
 
SANOG23-BGP-Techniques.pdf
SANOG23-BGP-Techniques.pdfSANOG23-BGP-Techniques.pdf
SANOG23-BGP-Techniques.pdfGhulamIbneGhulam
 
CCNP Route 642 902 BGP
CCNP Route 642 902 BGPCCNP Route 642 902 BGP
CCNP Route 642 902 BGPIT Tech
 

Similaire à Border Gateway Protocol (BGP) (20)

Bgp Toc
Bgp TocBgp Toc
Bgp Toc
 
Bgp
BgpBgp
Bgp
 
Cisco BGP Exam 642-661 Review Notes
Cisco BGP Exam 642-661 Review NotesCisco BGP Exam 642-661 Review Notes
Cisco BGP Exam 642-661 Review Notes
 
CCNP ROUTE V7 CH7
CCNP ROUTE V7 CH7CCNP ROUTE V7 CH7
CCNP ROUTE V7 CH7
 
Study Notes BGP Exam
Study Notes BGP ExamStudy Notes BGP Exam
Study Notes BGP Exam
 
BGP.pdf
BGP.pdfBGP.pdf
BGP.pdf
 
Bgp
BgpBgp
Bgp
 
Bgp attribute-case study
Bgp attribute-case studyBgp attribute-case study
Bgp attribute-case study
 
BGP
BGPBGP
BGP
 
Cisco ccnp 642-902 practice tests for quick preparation
Cisco ccnp 642-902 practice tests for quick preparationCisco ccnp 642-902 practice tests for quick preparation
Cisco ccnp 642-902 practice tests for quick preparation
 
PLNOG15: BGP New Advanced Features - Piotr Wojciechowski
PLNOG15: BGP New Advanced Features - Piotr WojciechowskiPLNOG15: BGP New Advanced Features - Piotr Wojciechowski
PLNOG15: BGP New Advanced Features - Piotr Wojciechowski
 
Routing algorithms
Routing algorithmsRouting algorithms
Routing algorithms
 
Computer network (14)
Computer network (14)Computer network (14)
Computer network (14)
 
IPv6 Routing.pdf
IPv6 Routing.pdfIPv6 Routing.pdf
IPv6 Routing.pdf
 
Qs.pptx
Qs.pptxQs.pptx
Qs.pptx
 
All in one q & ans
All in one q & ansAll in one q & ans
All in one q & ans
 
SANOG23-BGP-Techniques.pdf
SANOG23-BGP-Techniques.pdfSANOG23-BGP-Techniques.pdf
SANOG23-BGP-Techniques.pdf
 
bgp protocol
 bgp protocol bgp protocol
bgp protocol
 
Bgp training
Bgp trainingBgp training
Bgp training
 
CCNP Route 642 902 BGP
CCNP Route 642 902 BGPCCNP Route 642 902 BGP
CCNP Route 642 902 BGP
 

Dernier

Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 

Dernier (20)

Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 

Border Gateway Protocol (BGP)

  • 1. Pt. Ravishankar Shukla University Raipur (C.G.) A Presentation on BGP(Border Gateway Protocol) Session 2016-17 Submitted by NUTAN SINGH Roll No. 24
  • 2. INTRODUCTION OF ROUTING PROTOCOL ROUTING PROTOCOLS RIP, OSPF, BGP OVERVIEW OF BGP WHEN TO USE BGP AND WHEN NOT TO USE BGP ESTABLISHING ADJACENCIES WITH NEIGHBOURS  MESSAGE TYPE IN BGP ROUTE SELECTION DECISION PROCESS BGP PATH ATTRIBUTES CONFIGURING OSPF ADVANTAGES DISADVANTAGES CONCLUSION REFERENCES 2
  • 3. Routing is the process that a router uses to forward packets toward the destination network. processes for sharing route information allows routers to communicate with other routers to update and maintain the routing tables Examples of routing protocols that support the IP routed protocol are: RIP, IGRP,OSPF, BGP, and EIGRP. Most routing algorithms can be classified into one of two categories: • distance vector • link-state 3
  • 4. 4
  • 5. BGP stand for Border Gateway Protocol.very to big organization can use BGP. Having two or more internet connection. CLID routing protocol. Create loop free inter domain routing between Autonomous Systems (AS). {1-65512: Private; 65513 – 65535: Public} An AS is a set of routers under a single technical administration. Two BGP flavors: IBGP & EBGP  - IBGP work in same AS  - EBGP work in different AS. BGP used TCP port 179 and maintains neighbor or peer relationships It’s an application layer protocol BGP describes the path by using Attributes 5
  • 6. • BGP finds the best path to a network by using the best AS-path • Exchange of loop-free routing information is guaranteed. • Updates sent once every 5 sec for IBGP peer & once every 30 sec for EBGP. • TCP used for reliability. • Protocol Type: Path vector. • EBGP: AD 20 • IBGP: AD 200 • Open standard Protocol • Supported protocols: IPv4, IPv6 • BGP sends full routing updates at the start of the session. • Incremental & triggered updates • Timers: Hello (60 sec) • Authentication: None, MD5 6
  • 7. Use BGP  when the effects of BGP are well understood and one of the following conditions exist: The AS allows packets to transit through it to reach another AS (transit AS). The AS has multiple connections to other AS’s. The flow of traffic entering or exiting the AS must be manipulated. This is policy based routing and based on attributes. Do not use BGP A single connection to the Internet or another AS No concern for routing policy or routing selection A lack of memory or processing power on your routers to handle constant BGP updates A limited understanding of route filtering and BGP path selection process Low bandwidth between AS’s 7
  • 8. 8
  • 9. 9
  • 10. 10
  • 11. Before establishing a BGP peer connection the two neighbors must perform the standard TCP three-way handshake and open a TCP connection to port 179. After the TCP session is established, BGP peers exchanges several messages to open and confirm connection parameters and to send BGP routing information. All BGP messages are unicast to the one neighbor over the TCP connection. There are four BGP message types: 11
  • 12. Connect State: Waits for successful TCP negotiation with peer. BGP does not spend much time in this state if the TCP session has been successfully established. Sends Open message to peer and changes state to Open Sent. Open Sent State: BGP listens for an Open message from its peer. Once the message has been received, the router checks the validity of the Open message. If there is no error, a Keepalive message is sent, various timers are set and the state is changed to Open Confirm. 12
  • 13. 13 Open Confirm State: The peer is listening for a Keepalive message from its peer. Established State: The peers send Update messages to exchange information about each route being advertised to the BGP peer. If there is any error in the Update message then a Notification message is sent to the peer, and BGP transitions back to the idle state. Active State: If the router was unable to establish a successful TCP session, then it ends up in the Active state.
  • 14. Consider only routes with no AS loops and a valid next hop, and then: 1. Highest weight (local to router). 2. Highest local preference (global within AS). 4. Shortest AS path. 5. Lowest origin code (IGP < EGP < incomplete). 7. EBGP path over IBGP path. 8. The path through the closest IGP neighbor. 9. Oldest route for EBGP paths. 10. The path with the lowest neighbor BGP router ID. 11. The path with the lowest neighbor IP address. 14
  • 15. Well-known attributes - Must be recognized by all compliant BGP implementations. Are propagated to other neighbors • Well-known mandatory attributes - Must be present in all update messages • Well-known discretionary attributes - May be present in update messages 15
  • 16. • AS path: Well-known mandatory. A list of autonomous systems that a route has traversed: • Next-hop: Well-known mandatory. The IP address of the next AS to reach a given network • Origin: Well-known mandatory. The origin attribute informs all AS in the internetwork how the prefixes were introduced into BGP. 16
  • 17. Syntax:- Example:- Router(config)# router ospf 1 Router(config-router)# network 10.0.0.0 0.255.255.255 area 0 17
  • 18. BGP is a path vector routing protocol. Defined in RFC 1772 BGP is a distance vector routing protocol, in that it relies on downstream neighbors to pass along routes from their routing table. BGP uses a list of AS numbers through which a packet must pass to reach a destination. 18
  • 19. · BGP converges slowly. · Not used in single connection to the Internet. 19
  • 20. The protocol designed by Standard protocol system. It’s work on top of layer 3.it’s a best routing protocol for link state routing protocol . that is used on a big network ISP for reliable network establishment. 20
  • 22. 22
  • 23. 23