BGP. 2 Copyright © 2009 Juniper Networks, Inc. www.juniper.net BGP Overview Is an inter-domain routing protocol that communicates prefix reachablility.

Slides:



Advertisements
Similar presentations
Release 5.1, Revision 0 Copyright © 2001, Juniper Networks, Inc. Advanced Juniper Networks Routing Module 9: Static Routes & Routing Table Groups.
Advertisements

1 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM BGP — Border Gateway Protocol Routing Protocol used between AS’s Currently Version.
BGP.
CS Summer 2003 CS672: MPLS Architecture, Applications and Fault-Tolerance.
Border Gateway Protocol Ankit Agarwal Dashang Trivedi Kirti Tiwari.
CS540/TE630 Computer Network Architecture Spring 2009 Tu/Th 10:30am-Noon Sue Moon.
The Border Gateway Protocol and Classless Inter-Domain Routing
© J. Liebeherr, All rights reserved 1 Border Gateway Protocol This lecture is largely based on a BGP tutorial by T. Griffin from AT&T Research.
Border Gateway Protocol Autonomous Systems and Interdomain Routing (Exterior Gateway Protocol EGP)
1 Interdomain Routing Protocols. 2 Autonomous Systems An autonomous system (AS) is a region of the Internet that is administered by a single entity and.
Best Practices for ISPs
Release 5.1, Revision 0 Copyright © 2001, Juniper Networks, Inc. Advanced Juniper Networks Routing Module 7: BGP Route Reflection.
1 Network Architecture and Design Routing: Exterior Gateway Protocols and Autonomous Systems Border Gateway Protocol (BGP) Reference D. E. Comer, Internetworking.
1 ELEN 602 Lecture 20 More on Routing RIP, OSPF, BGP.
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
CS Summer 2003 Lecture 4. CS Summer 2003 Route Aggregation The process of representing a group of prefixes with a single prefix is known as.
The Border Gateway Protocol (BGP) Sharad Jaiswal.
More on BGP Check out the links on politics: ICANN and net neutrality To read for next time Path selection big example Scaling of BGP.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicBSCI Module 6 1 Configuring Basic BGP BSCI Module 6.
CSEE W4140 Networking Laboratory Lecture 5: IP Routing (OSPF and BGP) Jong Yul Kim
Feb 12, 2008CS573: Network Protocols and Standards1 Border Gateway Protocol (BGP) Network Protocols and Standards Winter
© 2009 Cisco Systems, Inc. All rights reserved. ROUTE v1.0—6-1 Connecting an Enterprise Network to an ISP Network Considering the Advantages of Using BGP.
Release 5.1, Revision 0 Copyright © 2001, Juniper Networks, Inc. Advanced Juniper Networks Routing Module 6: Border Gateway Protocol.
Inter-domain Routing Don Fussell CS 395T Measuring Internet Performance.
Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes.
© 2009 Cisco Systems, Inc. All rights reserved. ROUTE v1.0—6-1 Connecting an Enterprise Network to an ISP Network BGP Attributes and Path Selection Process.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking BGP, Flooding, Multicast routing.
CS 3700 Networks and Distributed Systems Inter Domain Routing (It’s all about the Money) Revised 8/20/15.
Lecture 4: BGP Presentations Lab information H/W update.
Chapter 9. Implementing Scalability Features in Your Internetwork.
© Synergon Informatika Rt., 1999 Chapter 12 Connecting Enterprises to an Internet Service Provider.
Border Gateway Protocol
BGP V1.1. When is BGP Applicable Basic BGP Peer Configuration Troubleshooting BGP Connections BGP Operation and Path Attributes Route Import/Export Selected.
Xuan Zheng (modified by M. Veeraraghavan) 1 BGP overview BGP operations BGP messages BGP decision algorithm BGP states.
© 2001, Cisco Systems, Inc. A_BGP_Confed BGP Confederations.
© 2012 Juniper Networks, Inc. All rights reserved. | | Worldwide Education Services Chapter 2: Routing Fundamentals Junos Routing Essentials.
BGP4 - Border Gateway Protocol. Autonomous Systems Routers under a single administrative control are grouped into autonomous systems Identified by a 16.
Border Gateway Protocol (BGP) W.lilakiatsakun. BGP Basics (1) BGP is the protocol which is used to make core routing decisions on the Internet It involves.
More on Internet Routing A large portion of this lecture material comes from BGP tutorial given by Philip Smith from Cisco (ftp://ftp- eng.cisco.com/pfs/seminars/APRICOT2004.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicBSCI Module 6 1 Configuring Basic BGP BSCI Module 6.
Routing in the Inernet Outcomes: –What are routing protocols used for Intra-ASs Routing in the Internet? –The Working Principle of RIP and OSPF –What is.
1 Agenda for Today’s Lecture The rationale for BGP’s design –What is interdomain routing and why do we need it? –Why does BGP look the way it does? How.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—6-1 Scaling Service Provider Networks Scaling IGP and BGP in Service Provider Networks.
Release 5.1, Revision 0 Copyright © 2001, Juniper Networks, Inc. Advanced Juniper Networks Routing Module 8: BGP Confederations.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—1-1 BGP Overview Understanding BGP Path Attributes.
1 Border Gateway Protocol (BGP) and BGP Security Jeff Gribschaw Sai Thwin ECE 4112 Final Project April 28, 2005.
BGP and ICMP. Exterior Gateway Protocol (EGP) Like RIP, but no metrics. Just if reachable. Rtr inside a domain collects reachability information and informs.
BGP Transit Autonomous System
BGP Basics BGP uses TCP (port 179) BGP Established unicast-based connection to each of its BGP- speaking peers. BGP allowing the TCP layer to handle such.
Text BGP Basics. Document Name CONFIDENTIAL Border Gateway Protocol (BGP) Introduction to BGP BGP Neighbor Establishment Process BGP Message Types BGP.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—1-1 BGP Overview Establishing BGP Sessions.
Border Gateway Protocol BGP-4 BGP environment How BGP works BGP information BGP administration.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—6-1 Scaling Service Provider Networks Introducing Confederations.
CS 3700 Networks and Distributed Systems
Boarder Gateway Protocol (BGP)
Border Gateway Protocol
BGP 1. BGP Overview 2. Multihoming 3. Configuring BGP.
MPLS VPN Implementation
CS 3700 Networks and Distributed Systems
Border Gateway Protocol
BGP (cont) 1. BGP Peering 2. BGP Attributes
Explaining BGP Concepts and Terminology
BGP supplement Abhigyan Sharma.
Lixin Gao ECE Dept. UMASS, Amherst
BGP Overview BGP concepts and operation.
Cours BGP-MPLS-IPV6-QOS
Computer Networking TCP/IP Part 2
Scaling Service Provider Networks
BGP Route Selection.
Computer Networks Protocols
Presentation transcript:

BGP

2 Copyright © 2009 Juniper Networks, Inc. BGP Overview Is an inter-domain routing protocol that communicates prefix reachablility Is a path vector routing protocol View the internet as a collection of autonomous system Supports CIDR Exchanges routing information between pairs

3 Copyright © 2009 Juniper Networks, Inc. BGP Fundamentals Each BGP update contains one path advertisements and attributes Many prefixes can share the same path Routes consists of destination prefixes with an AS path and other BGP specific attributes BGP compares the AS path and other attributes to choose the best path BGP withdraws unreachable routes

4 Copyright © 2009 Juniper Networks, Inc. BGP Connections BGP updates are incremental  No regular refreshes  Except at session establishment, when volume of routing can be high BGP runs over TCP connection  Tcp Port 179  Tcp services  Fragmentation  Acknowledgements  Checksums  Sequencing  Flow control No automatic neighbor discovery

5 Copyright © 2009 Juniper Networks, Inc. BGP Neighbor States TCP connectivity  Idle  Connect  Active BGP connectivity  Opensent  OpenConfirm  Established

6 Copyright © 2009 Juniper Networks, Inc. BGP Message Types  Open  Update  Keepalive  Notification  Refresh Messages use a common header

7 Copyright © 2009 Juniper Networks, Inc. BGP Route Selection Can the BGP next-hop be resolved Prefer the highest local preference value Prefer shortest AS Path Prefer the lowest origin value Prefer the lowest MED value Prefer routes learned using EBGP over IBGP Prefer routes with the lowest IGP metric  Prefer routes from inet.3 over inet.0  Prefer routes with a greater number of next hops  When using route reflectors, prefer the route with shorter cluster list Prefer routes from the peer with lowest Router ID Prefer routes from peer with lowest peer ID

8 Copyright © 2009 Juniper Networks, Inc. BGP Attributes: Next Hop An ip address of a BGP peer BGP next hop must be reachable by router prior to placing an advertised route into RIB-local  Next hop might require recursive lookup and the services of an IGP Value is changed by default only across EBGP links Value is not changed by default across IBGP links Value can be changed by a policy Attribute is always present and is transmitted across all BGP links

9 Copyright © 2009 Juniper Networks, Inc. BGP Attribute: Local Preference Determined the preferred path out of the AS All BGP traffic in an AS flows toward the peer with the highest local preference value Values are used only within an individual AS

10 Copyright © 2009 Juniper Networks, Inc. BGP Attribute: AS Path Provides a path back to the source of the route, preventing routing loops  Routes with router’s own AS number in the path must be looped; these routes are dropped immediately Each router on the edge of the AS adds its AS number to the front of the path; for example  AS Path attribute is always present and is transmitted across all BGP links.

11 Copyright © 2009 Juniper Networks, Inc. BGP Attribute: Origin Added by routers that added the route to BGP Describes where first router received the information  i = IGP (0)  E = EGP (1)  ? = Incomplete (2) Attribute is always present and is transmitted across all BGP links.

12 Copyright © 2009 Juniper Networks, Inc. BGP Attributes: Community Generic mechanism for tagging routes Communities can be:  Used by policy to perform an action on a particular set of routes tagged with a community  Added to the community list (community add command)  Deleted from current community list (community delete command)  Set to the community list (community set command)

13 Copyright © 2009 Juniper Networks, Inc. BGP Peering BGP sessions are established between peers  BGP speakers Two types of peering sessions  EBGP (external) peers with different AS  IBGP (internal) peers within the same AS  IGP connects BGP speakers within the AS  IGP advertises internal routes.

14 Copyright © 2009 Juniper Networks, Inc. EBGP & IBGP AS 1 AS 2 EBGP IBGP

15 Copyright © 2009 Juniper Networks, Inc. BGP Route Advertisement Rules Advertise only the active BGP routes to peers  BGP Next-hop attribute must be reachable Never forward IBGP routes to IBGP peers  Prevent loops Withdraw routes if active BGP routes become unreachable.

16 Copyright © 2009 Juniper Networks, Inc. Basic BGP Configuration [edit routing-options]  autonomous-system 4755; [edit protocols bgp]  group ibgp{  type internal;  neighbor ;  local-address ;  }  group ebgp{  type external;  neighbor ;  peer-as 1  } Refer the Link for complete configuration guidelines : routing/bgp-configuration-guidelines.html

17 Copyright © 2009 Juniper Networks, Inc. In route reflection, BGP systems are arranged in clusters. Each cluster consists of at least one system that acts as a route reflector, along with any number of client peers. BGP peers outside the cluster are called nonclient peers. The route reflector reflects (redistributes) routing information to each client peer (intracluster reflection) and to all nonclient peers (intercluster reflection). Because the route reflector redistributes routes within the cluster, the BGP systems within the cluster do not have to be fully meshed. When the route reflector receives a route, it selects the best path. Then, if the route came from a nonclient peer, the route reflector sends the route to all client peers within the cluster. If the route came from a client peer, the route reflector sends it to all nonclient peers and to all client peers except the originator. In this process, none of the client peers send routes to other client peers. To configure route reflection, you specify a cluster identifier only on the BGP systems that are to be the route reflectors. These systems then determine, from the network reachability information they receive, which BGP systems are part of its cluster and are client peers, and which BGP systems are outside the cluster and are nonclient peers. Configuring Route Reflection

18 Copyright © 2009 Juniper Networks, Inc. RR Server/Client configuration RR Server Configuration : group RR { type internal; local-address ; cluster ;  Cluster ID only added to RR server neighbor ; neighbor ; RR Client Configuration : group RR { type internal; local-address ; export ibgp; neighbor ; neighbor ; neighbor ; }

19 Copyright © 2009 Juniper Networks, Inc. Enabling Multiprotocol BGP Multiprotocol BGP (MP-BGP) is an extension to BGP that enables BGP to carry routing information for multiple network layers and address families. MP-BGP can carry the unicast routes used for multicast routing separately from the routes used for unicast IP forwarding. To enable MP-BGP, you configure BGP to carry network layer reachability information (NLRI) for address families other than unicast IPv4 by including the family inet statement: family inet { family (any | flow | labeled-unicast | multicast | unicast ) {

20 Copyright © 2009 Juniper Networks, Inc. To enable MP-BGP to carry Layer 3 VPN NLRI for the IPv4 address family, include the family inet-vpn statement: family inet-vpn { family (any | flow | multicast | unicast) To enable MP-BGP to carry Layer 3 VPN NLRI for the IPv6 address family, include the family inet6-vpn statement: family inet6-vpn { family (any | multicast | unicast) To enable MP-BGP to carry multicast VPN NLRI for the IPv4 address family and to enable VPN signaling, include the family inet-mvpn statement: family inet-mvpn { signaling ; To enable MP-BGP to carry multicast VPN NLRI for the IPv6 address family and to enable VPN signaling, include the family inet6-mvpn statement: family inet6-mvpn { signaling

21 Copyright © 2009 Juniper Networks, Inc. Example from Bharti Netowrk group VPNv4-ibgp { RR Client type internal; local-address ; family inet { unicast; Enabling MP-BGP for IPV4 Unicast } family inet-vpn { unicast; Support for L3VPN NLRI for IPV4 } family inet-mdt { signaling; Support Multicast VPN NLRI for IPV4 } authentication-key "$9$EzQSyKLxdsgJLxoG"; ## SECRET-DATA Authentication support MD5 only neighbor { RR Server Address description "VPNv4 RR A"; }

22 Copyright © 2009 Juniper Networks, Inc. Verifying BGP session The show bgp summary provides you with a good snapshot of the protocol on your router.  show bgp summary  Groups: 2 Peers: 4 Down peers: 0  Table Tot Paths Act Paths Suppressed History Damp State Pending  inet  Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State  :33:00 4/4/0  :32:56 4/4/0  :14:30 2/2/0  :14:02 2/2/0

23 Copyright © 2009 Juniper Networks, Inc. Displaying BGP Group Information To view the configured groups on your router, use show bgp group command show bgp group Group Type: External Local AS: 20 Name: ebgp-peers Total peers: 2 Established: Route Queue Timer: unset Route Queue: empty Group Type: Internal AS: 20 Local AS: 20 Name: ibgp-peers Total peers: 2 Established: Route Queue Timer: unset Route Queue: empty

24 Copyright © 2009 Juniper Networks, Inc. Displaying BGP Neighbors To receive most detailed information about your BGP neighbor use show bgo neighbor command show bgp neighbor Peer: AS 10 Local: AS 20 Type: External State: Established Flags: <> Last State: OpenConfirm Last Event: RecvKeepAlive Last Error: None Options: Holdtime: 90 Preference: 170 Number of flaps: 0 Peer ID: Local ID: Active Holdtime: 90 Keepalive Interval: 30 Local Interface: so-0/0/1.0 NLRI advertised by peer: inet-unicast NLRI for this session: inet-unicast Peer supports Refresh capability (2) Table inet.0 Bit: Send state: in sync Active prefixes: 4 Received prefixes: 4 Suppressed due to damping: 0 Last traffic (seconds): Received 13 Sent 13 Checked 13 Input messages: Total 438 Updates 4 Refreshes 0 Octets 8473 Output messages: Total 440 Updates 4 Refreshes 0 Octets 8526 Output Queue[0]: 0

25 Copyright © 2009 Juniper Networks, Inc. BGP Route Advertisement Commands show route receive-protocol bgp address  Displays routes received by a peer before policy is applied show route receive-protocol bgp inet.0: 26 destinations, 27 routes (26 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both / I / I Show route advertising-protocol bgp address  Displays routes advertised to specific peer show route advertising-protocol bgp inet.0: 21 destinations, 22 routes (13 active, 0 holddown, 8 hidden) + = Active Route, - = Last Active, * = Both /24 Self I /24 Self I

26 Copyright © 2009 Juniper Networks, Inc. Showing BGP routes To view just the BGP learned routes use show route protocol bgp command show route protocol bgp inet.0: 26 destinations, 27 routes (26 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both /24 *[BGP/170] 00:23:21, MED 0, localpref 100 AS path: 10 I > to via so-0/0/ /24 *[BGP/170] 00:23:21, MED 0, localpref 100 AS path: 10 I > to via so-0/0/ /24 *[BGP/170] 00:23:21, MED 0, localpref 100 AS path: 10 I > to via so-0/0/ /24 *[BGP/170] 00:23:21, MED 0, localpref 100 AS path: 10 I > to via so-0/0/ /24 *[BGP/170] 02:37:11, MED 0, localpref 100, from AS path: I > to via ge-0/2/ /24 *[BGP/170] 02:37:11, MED 0, localpref 100, from AS path: I > to via ge-0/2/ /24 *[BGP/170] 02:36:34, MED 0, localpref 100, from AS path: I > via at-0/1/0.100

Thank you!