BGP Part-1.

Size: px
Start display at page:

Download "BGP Part-1."

Transcription

1 BGP Part-1

2 Comparison between IGPs & BGP» Similarities and differences between BGP and IGPs (OSPF and EIGRP): BGP needs to form neighborship like IGPs. BGP needs to advertise prefixes, just like IGPs. BGP also advertises Next Hops for those prefixes. Neighbor IP address may not be on a common subnet for BGP. BGP uses TCP (179) and unicast IGPs do not.

3 Comparison between IGPs & BGP» Neighbors versus Peers IGP routers are called neighbors which typically denotes a directconnection. BGP routers are called peers because there is no need for directconnection.» Routes versus NLRI IGP protocols exchange unicast routes BGP also exchanges unicast routes, but can also exchange other types of information. For this reason we say BGP exchanges NLRI (Network-Layer Reachability Information)

4 Overview of ibgp and ebgp

5 Overview of ibgp and ebgp» There are two types of neighbors in BGP: internal BGP (ibgp) and external BGP (ebgp).» A BGP router behaves differently in several ways depending on whether the peer (neighbor) is an ibgp or ebgp peer. Router BGP 1 neighbor remote-as 2 Router BGP 1 neighbor remote-as 1 ebgp Peering ibgp Peering

6 ibgp and ebgp Differences (Overview)» Peer establishment ebgp imposes certain rules/restrictions not imposed by ibgp» Prefix exchange BGP updates received from external peers can be forwarded on to any other type of peer. BGP updates received from internal peers can ONLY be forwarded on to external peers.» Update modification Certain BGP Path Attributes may only be forwarded to external or internal peers.

7 BGP Neighborship Requirements

8 BGP Peering Overview BGP Peering Establishment 2 router bgp 1 TCP Sync (179) TCP Sync + Ack (179) TCP ACK (179) router bgp 2 neighbor remote-as 1 AS# 1 neighbor remote-as 2 AS# 2 BGP Update Exchange I ve got better paths for these same prefixes!! 1 Ensure BGP peers have IP reachability to each other. 2 Configure basic ebgp on each router. These are the best paths I ve seen so far! 3 TCP 3-Way Handshake must complete 4 BGP Peering must complete 5 BGP Update Exchange 6 BGP Bestpath Selection Process

9 ebgp Neighborship Overview» To configure BGP Peers, use the following commands: router bgp asn (global command) neighbor ip-address remote-as remote-asn (BGP subcommand)» The asn in the router bgp command is the local AS number of the router.

10 BGP Peering Sanity Checks BGP Peering Establishment 2 router bgp 1 AS# 1 neighbor remote-as 2 AS# 2 1 Source IP address of incoming TCP connection must be from an expected/configured BGP peer. 2 Peer s advertisement of his BGP AS# must be what we expect. 3 If BGP authentication is used, same password must be configured. 4 Peers must have unique BGP Router-IDs 5 Peers must use the same BGP version. TCP Sync (179) TCP Sync + Ack (179) TCP ACK (179) router bgp 2 neighbor remote-as 1

11 BGP Router-ID» Just like any IGP, BGP elects a Router-ID.» The BGP router-id is elected as follows: Use the setting of the bgp router-id <x.x.x.x> router subcommand. Choose the highest numeric IP address of any up/up loopback interface, at the time the BGP process initializes. Choose the highest numeric IP address of any up/up nonloopback interface, at the time the BGP process initializes.

12 BGP Authentication» To configure authentication for BGP, use the following command: neighbor neighbor-ip password key (BGP subcommand)» This command must be configured on both routers.» If keys do not match or this command is only configured on one router, peer-establishment will not be formed.

13 BGP Update-Source & Multihop Requirement

14 BGP Update-Source» TCP Connection must first form between BGP peers.» This TCP connection must form before BGP messages flow over this TCP connection.» Source IP address used in TCP connection usually must match what your neighbor is expecting from you in his neighbor command.» The local router tries to form a TCP connection with the IP address defined in the neighbor remote-as command.

15 BGP Update-Source» When peers are directly-connected, source-ip address of incoming BGP messages is trusted. 2 TCP Sync (src= dest port=179) Fast0/0 TCP Sync + Ack (src = src port=179) Fast0/0 2 router bgp 1 4 router bgp 2 AS# 1 neighbor remote-as 2 neighbor remote-as 1 AS# 2 TCP ACK (179) 5 1 How do I reach ? Oh via FastEthernet0/ 0! I ll use that as my source IP. 3 Am I configured to expect/ trust BGP from ? Yes!! How do I reply back to ? Oh via FastEthernet0/ 0! I ll use that as my source IP.

16 BGP Update-Source (2)» What if peers are NOT directly connected? IP Routing Table D /24 via (Fast0/0) AS# AS# 1 Fast0/ Fast0/0 router bgp 1 neighbor remote-as 1 Serial0/0 2 TCP Sync (src= dest port=179) TCP Reset (src = src port=179) 4 Serial0/ router bgp 1 neighbor remote-as 1 1 How do I reach ? Oh via FastEthernet0/ 0! I ll use that as my source IP ?? Who are you??? I don t know you!!

17 BGP Update-Source (3)» Redundant Links between connected peers IP Routing Table C /24 via Fast0/0 D C /24 via Fast0/1 (Fast0/10) AS# 1 AS# 1 Fast0/0 router bgp 1 neighbor remote-as TCP Sync (src= dest port=179) TCP Reset (src = src port=179) 6 0/1 Fast0/ Fast0/ /2 0/4 Fast0/ /3 TCP Sync (179) TCP Sync + Ack (179) TCP ACK (179) router bgp 1 neighbor remote-as 1 1 How do I reach ? Oh via FastEthernet0/ 1! I ll use that as my source IP ?? ? Who Great I are you??? 3 I don t was know expecting you!! you!

18 BGP Update-Source» The failure in one link can cause BGP neighborship to fail.» There are two solutions to resolve this issue: Configure two neighbor commands on each router. Use loopback interfaces as the TCP connection endpoints.» The use of two BGP Peerings between the same pair of routers can consume bandwidth and more memory in the BGP table.

19 BGP Update-Source (Fix# 1) IP Routing Table D /24 via (Fast0/0) AS# AS# 1 Fast0/ Fast0/0 Serial0/ router bgp 1 neighbor remote-as 1 neighbor update-source Serial0/0 2 TCP Sync (src= dest port=179) Serial0/0 router bgp 1 neighbor remote-as 1 neighbor update-source FastEthernet0/0 How do I reach ? 1 Oh via FastEthernet0/ 0! I ll use that as my source IP. 3 I was waiting for you !

20 BGP Parallel Links (Solution #1) AS# 1 AS# 1 Fast0/ Fast0/ /2 0/4 Fast0/ router bgp 1 neighbor remote-as 1 neighbor remote-as TCP Sync (179) TCP Sync + Ack (179) TCP ACK (179) 0/1 0/3 TCP Sync (179) TCP Sync + Ack (179) TCP ACK (179) Fast0/0 router bgp 1 neighbor remote-as 1 neighbor remote-as 1

21 BGP Parallel Links (Solution# 2) IP Routing Table C /24 via Fast0/0 C /24 via Fast0/1 S /32 via via Loop / 32 AS# 1 AS# 1 Fast0/ Fast0/ /2 0/4 Fast0/ router bgp 1 neighbor remote-as 1 neighbor update-source Loop0! ip route ip route TCP Sync (179) TCP Sync + Ack (179) TCP ACK (179) 0/1 0/3 Fast0/0 IP Routing Table C /24 via Fast0/0 C /24 via Fast0/1 S /32 via via Loop / 32 router bgp 1 neighbor remote-as 1 neighbor update-source Loop0! ip route ip route

22 Case where Update-Source not needed Router bgp <whatever> neighbor remote-as <whatever> 1 TCP Sync (Dest Port=179) Src= Dest = TCP Sync+ACK (Source Port=179) Src= Dest = Loopback Router bgp <whatever> neighbor remote-as <whatever> Notice that in this instance, Router-2 responds using it s Loopback Interface IP Address as a source IP even without update-source configured. 2

23 ebgp Problem IP Routing Table C /24 via Fast0/0 C /24 via Fast0/1 S /32 via via I can t even start the TCP process because my peer is NOT directly-connected!! IP Routing Table C /24 via Fast0/0 C /24 via Fast0/1 S /32 via via Loop / 32 AS# 1 AS# 2 Fast0/ Fast0/ /2 0/4 Fast0/ router bgp 1 neighbor remote-as 2 neighbor update-source Loop0! ip route ip route /1 0/3 Fast0/0 Loop / 32 router bgp 2 neighbor remote-as 1 neighbor update-source Loop0! ip route ip route

24 ebgp Solution #1 - Multihop IP Routing Table C /24 via Fast0/0 C /24 via Fast0/1 S /32 via via IP Routing Table C /24 via Fast0/0 C /24 via Fast0/1 S /32 via via Loop / 32 AS# 1 AS# 2 Fast0/ Fast0/ /2 0/4 Fast0/ router bgp 1 neighbor remote-as 2 neighbor update-source Loop0 neighbor ebgp-multihop! ip route ip route TCP Sync (179) IP TTL = 255 0/1 0/3 Fast0/0 Loop / 32 router bgp 2 neighbor remote-as 1 neighbor update-source Loop0 neighbor ebgp-multihop! ip route ip route

25 ebgp Solution #2 Disable Connected IP Routing Table C /24 via Fast0/0 C /24 via Fast0/1 S /32 via via IP Routing Table C /24 via Fast0/0 C /24 via Fast0/1 S /32 via via Loop / 32 AS# 1 AS# 2 Fast0/ Fast0/ /2 0/4 Fast0/ router bgp 1 neighbor remote-as 2 neighbor update-source Loop0 neighbor disable-connected-check! ip route ip route TCP Sync (179) IP TTL = 1 0/1 0/3 Fast0/0 Loop / 32 router bgp 2 neighbor remote-as 1 neighbor update-source Loop0 neighbor disable-connected-check! ip route ip route

26 BGP Message Types, BGP Table, & BGP Routes

27 BGP Message Header and Types» All BGP messages carried within IP/TCP Headers IP Header TCP Header Marker (All Fs ) 16-bytes Length (2-bytes) Type (1 byte) BGP Data» BGP uses four types of messages for its operation: Open Update Keepalive Notification

28 BGP Message Types - Open» BGP Open Message: Used in Neighbor Establishment BGP values and capabilities are exchanged. Marker (All Fs ) 16-bytes Length (2-bytes) Type = 1 Version = 4 My AS# Hold Time Router-ID Optional Parameters Length BGP Capabilities

29 BGP Open Message (Sniffer Trace)

30 BGP Message Types - Update» BGP Update Message: Informs neighbors about withdrawn routes, changed routes, and new routes. Used to exchange PAs and the associated prefix/length (NLRI) that use those attributes. Marker (All Fs ) 16-bytes Length (2-bytes) Type = 2 Unfeasible Routes Length Withdrawn Routes (if any) Total Path Attributes Length Path Attributes (TLV) NLRI Prefix Length NLRI Prefix

31 BGP Update Message (Sniffer Trace)

32 BGP Message Types - Notification» BGP Notification message: Used to signal a BGP error; typically results in a reset to the neighbor relationship Marker (All Fs ) 16-bytes Length (2-bytes) Type = 3 Error Code Error Subcode Data

33 BGP Notification Message (Sniffer Trace)

34 BGP Message Types - Keepalive» BGP Keepalive message: Sent on a periodic basis to maintain the neighbor relationship. The lack of receipt of a Keepalive message within the negotiated Hold timer causes BGP to bring down the neighbor connection. IP Header TCP Header Marker (All Fs ) 16-bytes Length (2-bytes) Type = 4

35 BGP Keepalive Message (Sniffer Trace)

36 Examining the BGP Table» To verify the BGP table, use the command show ip bgp.» The output will list all the BGP learned routes, locally injected plus learned from neighbors.» With each prefix it will have multiple attributes that can be examined and used for best path selection.» Each prefix can have multiple paths with different nexthops.

37 Examining the BGP Table

38 Examining the BGP Table» Prefixes with * are valid to be considered for best-path algorithm.» Best path is presented by >.» The Path heading shows the AS_Pa t h Attribute.» The BGP show commands list the AS_Pa t h with the first-added ASN on the right and the last-added ASN on the left.

39 Verification Commands for ebgp Learned Routes» show ip bgp prefix [subnet-mask]» show ip bgp neighbors ip-address received-routes» show ip bgp neighbors ip-address routes» show ip bgp neighbors ip-address advertised-routes» show ip bgp summary

40 BGP Neighbor States

41 BGP Neighbor States» BGP goes to through the following neighborship states:» Idle: The BGP process is either administratively down or awaiting the next retry attempt.» Connect: The BGP process has detected an incoming TCP connection request and is waiting for the TCP connection to be completed.

42 BGP Neighbor States» Active: BGP has initiated an outbound TCP connection request and is waiting for the 3-way handshake to complete. BGP can enter this state either because: This router was the first router to initiate a connection (from Idle-to-Active) This router received an initial, inbound connnection request that failed to complete the TCP handshake (Idle-Connect-Active)» Opensent: The TCP connection exists, and a BGP Open message has been sent to the peer, but the matching Open message has not yet been received from the other router.

43 BGP Neighbor States» Openconfirm: An Open message has been both sent to and received from the other router.» Est ablished: All neighbor parameters match, the neighbor relationship works, and the peers can now exchange Update messages.

44 State Transitions: TCP Handshake Failure Possibility #1 ConnectRetry Timer Idle Start event TCP Sync Received Connect Initiate TCP Active Initiate TCP TCP timeout TCP Sync+ACK TCP Sync Transmited EXPIRED! ConnectRetry Timer

45 State Transitions: TCP Resets Idle Start event BGP invokes/starts TCP Active Initiate TCP TCP Sync Sent TCP Reset Received ConnectRetry Timer ConnectRetry Timer (stopped) Possibility #2

46 Moving to OpenSent Idle Start event Active Initiate TCP TCP ConnectRetry Timer TCP AcK sent TCP Sync+AcK received Send BGP Open Sync Sent OpenSent Possibility #3

47 Moving from OpenSent (1) OpenSent Open Received but bad BGP header or bad Open parameters BGP Notification Idle ACTIVE Initiate TCP

48 Moving from OpenSent (2) OpenSent Open Received everything looks good! BGP Keepalive sent Open Confirm BGP Keepalive received Established I m ready to send my BGP Update(s) now!!

49 BGP Peering Collisions

50 Peering and Router-IDs» When two routers are initially configured to peer with each other, they don t know each other s BGP Router-IDs.» Normally, the router with highest Router-ID will initiate the TCP handshake with the router that has lowest Router-ID.» That can t happen if Router-IDs are unknown.

51 BGP Collisions?» If BGP Router-IDs are unknown, a peering collision may occur. TCP Sync (179) Hey, I ve already got a session with you! Loop / 32 TCP Sync + Ack (179) TCP ACK (179) AS# 1 AS# 2 Fast0/ Fast0/ /2 0/4 Fast0/ router bgp 1 neighbor remote-as 2 neighbor update-source Loop0 neighbor ebgp-multihop bgp router-id ! ip route ip route BGP Open (RiD= ) BGP Notification (Cease!!) 0/1 0/3 TCP Sync (179) TCP Sync + Ack (179) TCP ACK (179) BGP Open (RiD= ) Fast0/0 Hey, I ve already got a session with you! Loop / router bgp 2 neighbor remote-as 1 neighbor update-source Loop0 neighbor ebgp-multihop bgp router-id ! ip route ip route

52 How do we prevent collisions?» Router can be configured to only accept inbound connections, but not ACTIVELY initiate outbound connections. router bgp 1 neighbor remote-as 2 neighbor update-source Loop0 neighbor ebgp-multihop neighbor transport connection-mode passive bgp router-id ! ip route ip route TCP Sync (179) TCP Sync + Ack (179) TCP ACK (179) AS# 1 AS# 2 Fast0/ BGP Open (RiD= ) 0/1 0/3 Fast0/ Fast0/ /2 0/4 Fast0/ router bgp 2 neighbor remote-as 1 neighbor update-source Loop0 neighbor ebgp-multihop bgp router-id ! ip route ip route

53 Who initiated the connection? If the Local Port is NOT 179 that means your local router INITIATED the TCP connection.

54 Defeating BGP DoS Attacks with TTL Security

55 BGP DoS Example ebgp s reliance on TTL=1 leaves it open to attack. Guess I need to kill my BGP peering with ! AS# 2 router bgp 1 neighbor remote-as 2 bgp router-id ! IP TTL=1 Dest= Source= Fast0/ Fast0/ AS# 1 BGP Notification= CEASE!! (RiD= ) router bgp 2 neighbor remote-as 1 bgp router-id ! IP TTL=4 Dest= Source= Destination ? I can forward that! BGP Notification= CEASE!! (RiD= ) Evil Person

56 TTL and ebgp Sessions» ebgp sessions assume neighbor is directly-connected.» TTL in ebgp sessions set to 1 if Connected route is found.» If neighbor NOT directly connected, additional configuration needed to start BGP peering process (which affects outbound TTL) ebgp-multihop (sets TTL in outbound BGP packets to 255) Disable-connected-check (sets TTL to 1 in outbound BGP packets. TTL-Security (to be discussed next)

57 TTL-Security» By default, any TTL value (>0) of received BGP packets is accepted from ebgp peers.» TTL-Security = Mechanism to enforce TTL values to prevent DoS (config-rtr)#neighbor x.x.x.x ttl-security hops <1-254>» How is hops used? <hops> = X All incoming BGP packets must have TTL X

58 TTL-Security with Direct-Connection Peering 1 R1 BGP packets sent with TTL=255 R2 2 R1 BGP packets received-and-processed with TTL 254 R2 3 BGP packets silently discarded with TTL < 254 R1 TTL=252 TTL=253 TTL=254 TTL=255 Attacker Fast0/ Fast0/ x Y neighbor ttl-security hops 1 neighbor ttl-security hops 1 Evil Person AS# 1 (customer) AS# 2 (ISP)

59 TTL-Security with Multihop Peering 1 R1 BGP packets sent with TTL=255 R2 2 R1 BGP packets received-and-processed with TTL 253 R2 3 BGP packets silently discarded with TTL < 252 R1 TTL=250 TTL=253 TTL=254 TTL=255 Attacker a b 1 2 x Y neighbor ttl-security hops 2 neighbor ttl-security hops 2 Evil Person AS# 1 (customer) AS# 2 (ISP)

60 TTL-Security with Loopback Peering (Method #1) 1 R1 BGP packets sent with TTL=255 R2 2 R1 BGP packets received-and-processed with TTL 253 R2 3 BGP packets silently discarded with TTL < 253 R1 Loop /32 Loop /32 neighbor update-source loop0 neighbor ttl-security hops neighbor update-source loop0 neighbor ttl-security hops 2 AS# 1 (customer) AS# 2 (ISP)

61 TTL-Security with Loopback Peering (Method #2) 1 R1 BGP packets sent with TTL=255 R2 2 R1 BGP packets received-and-processed with TTL 254 R2 3 BGP packets silently discarded with TTL < 254 R1 Loop /32 Loop /32 neighbor update-source loop0 neighbor ttl-security hops 1 neighbor disable-connected-check AS# 1 (customer) neighbor update-source loop0 neighbor ttl-security hops 1 neighbor disable-connected-check AS# 2 (ISP)

62 BGP Neighbor Failure Detection

63 Neighbor Failures Direct Connections» BGP neighbors may be directly, or indirectly connected.» Failures of direct-connection = immediate teardown of BGP peer Fast0/0 Fast0/0 2 router bgp 1 router bgp 2 neighbor remote-as 1 AS# 1 neighbor remote-as 2 AS# 2

64 Neighbor Failures Indirect Connections» Indirect neighbor failures rely on BGP Holddown timer = 180-seconds.

65 Adjusting BGP Timers» BGP Keepalives can be reduced to a minimum of 1- second with a minimum holdtime of 3-secs.

66 Other ways of failure detection» Several other options exist for neighbor failure detection which don t affect CPU: Neighbor Fall-Over Neighbor Fall-Over Route-Map Neighbor Fall-Over BFD» All of the above are called, BGP Fast Peering Session Deact ivat ion

67 Neighbor Fall-Over» The neighbor x.x.x.x fall-over command has several options: Tracks IGP route to BGP peer (ibgp or ebgp). When route is lost, peer immediately taken down. Does NOT work if router ALSO contains a default route.

68 Neighbor Fall-Over Loopback AS# Fast0/0 Fast0/0 2 router bgp 1 neighbor remote-as 1 neighbor fall-over EIGRP Loopback router bgp 1 neighbor remote-as 1 neighbor fall-over Without neighbor fall-over, Holddown Timer must expire.

69 Neighbor Fall-Over The Problem ISP-A Loop /32 ibgp peering ibgp peering ibgp peering Loop / 32 ISP-C Fast0/0 3 A /16 via Rtr-X!! x.x/16 EIGRP AS x.x/ /16 via Rtr-Y!! C X Corporate Intranet Routers Y router bgp 1 neighbor remote-as 1 neighbor remote-as 1 neighbor fall-over ISP-B: BGP AS# 1 router bgp 1 neighbor remote-as 1 neighbor remote-as 1 neighbor fall-over

70 BGP Fast Peering Session Deactivation with Next-Hop Address Tracking» A Route-Map can be associated to the neighbor x.x.x.x fall-over command: Tracks IGP route to BGP peer (ibgp or ebgp). When route is lost, peer immediately taken down. Doesn t care if a default route (or aggregate) exists or not.

71 Neighbor Fall-Over The Solution! ISP-A A Loop /32 1 ibgp peering /16 via Rtr-X!! X ibgp peering Fast0/ x.x/16 EIGRP AS x.x/16 Corporate Intranet Routers ibgp peering /16 via Rtr-Y!! Y Loop / 32 ISP-C C router bgp 1 neighbor remote-as 1 neighbor remote-as 1 neighbor fall-over route-map FALLOVER! access-list 1 permit ! Route-map FALLOVER permit 10 match ip address 1 router bgp 1 neighbor remote-as 1 neighbor remote-as 1 neighbor fall-over route-map FALLOVER! access-list 1 permit ! Route-map FALLOVER permit 10 match ip address 1

72 Indirect Link Failure AS# 3 AS# 4 A B AS# 1 AS# /24 Fast0/ /2 0/4 Fast0/ router bgp 1 neighbor remote-as 2 neighbor a.a.a.a remote-as 3 network mask router bgp 2 neighbor remote-as 1 neighbor b.b.b.b remote-as 4 Previous two solutions will not work. Router-2 will continue to use path to Router-1 until holddown timer expires.

73 BFD yes, it is a Big, Fantastic Deal!!» BFD = Bi-Directional Forwarding Detection» Utilizes UDP and CEF» BFD session setup between BFD peers.» Sub-second failover utilizing BFD/UDP pings» Originally designed for directly-connected peers.» Not just for BGP.

74 BFD Echo and Control Packets» BFD can utilize two types of packets Echo Control» Control packets are mandatory and processed by CPU.» Echo packets are optional (on by default). Echo packets are not received by CPU of peer, simply test forwarding path of peer. Echo packets contain source-and-destination address of the sender.

75 BFD Basic Configuration» Initial BFD timers configured on physical interface.» Echo Mode on by default Router(config-if)#bfd interval 100 min_rx 200 multiplier 3 I would like to transmit BFD Echo packets every 100msecs! The fastest I can process incoming BFD ECHO packets is every 200msecs so please don t send them any faster! If YOUR min_rx is LESS than my interval, I ll respect your value and transmit Echo packets at that rate. And I ll declare you dead after 3x that value!

76 Indirect Link Failure with BFD AS# 3 AS# 4 A B AS# 1 AS# /24 Fast0/ /2 0/4 Fast0/ Interface FastEthernet0/1 ip address bfd interval 100 min_rx 100 multiplier 3! router bgp 1 neighbor remote-as 2 neighbor fall-over bfd neighbor a.a.a.a remote-as 3 network mask Interface FastEthernet0/1 ip address bfd interval 100 min_rx 100 multiplier 3! router bgp 2 neighbor remote-as 1 neighbor fall-over bfd neighbor b.b.b.b remote-as 4

77 Indirect Link Failure with BFD (1) Loop / 32 AS# 1 AS# /24 Fast0/ /2 0/4 Fast0/ ! router bgp 1 neighbor remote-as 2 neighbor ebgp-multihop neighbor update-source loopback0 neighbor remote-as 3 network mask ! Ip route AS# 3 AS# 4 A B Loop / 32! router bgp 2 neighbor remote-as 1 neighbor ebgp-multihop neighbor update-source loopback0 neighbor remote-as 4! Ip route Multihop peers can be reachable via several physical links. Upon which link should BFD be configured?

78 Indirect Link Failure with BFD (2) Loop / 32 AS# 1 AS# 2 Fast0/ /2 0/4 Fast0/ /24 bfd-template multi-hop BGP interval min-tx 200 min-rx 200 multiplier 3! bfd map ipv / /0 BGP! router bgp 1 neighbor remote-as 2 neighbor ebgp-multihop neighbor update-source loopback0 neighbor fall-over bfd multihop neighbor remote-as 3 network mask ! Ip route AS# 3 AS# 4 A B Loop / 32 bfd-template multi-hop BGP interval min-tx 200 min-rx 200 multiplier 3! bfd map ipv / /0 BGP! router bgp 2 neighbor remote-as 1 neighbor ebgp-multihop neighbor update-source loopback0 neighbor fall-over bfd multihop neighbor remote-as 4! Ip route

79 Quiz!!! Given the configurations shown above, answer these questions: 1. How often will Router-1 receive BFD Echo packets from Router-2? 2. How long will it take for Router-2 to tear down the BGP peering session with Router-1 when port 0/2 on the switch goes down?

80 Answer Given the configurations shown above, answer these questions: 1. How often will Router-1 receive BFD Echo packets from Router-2? Every 300mSecs 2. How long will it take for Router-2 to tear down the BGP peering session with Router-1 when port 0/2 on the switch goes down? After roughly 900msecs.

81 Quiz!!! ISP-A Loop /32 ibgp peering ibgp peering ibgp peering Loop / 32 ISP-C 1 Fast0/0 2 Fast0/0 3 A /0 via Rtr-X (EIGRP) EIGRP AS 100 C X Corporate Intranet Routers Y Which of the features that we ve learned about in this series would quickly teardown the ibgp Peering between Router-1 and Router-3 if FastEthernet0/0 on Router-1 went down WITHOUT consuming any additional bandwidth on any of the links shown here?

82 Answer ISP-A Loop /32 ibgp peering ibgp peering ibgp peering Loop / 32 ISP-C Fast0/0 A /16 via Rtr-X!! x.x/16 EIGRP AS x.x/ /16 via Rtr-Y!! C X Corporate Intranet Routers Y BGP Fast Peering Session Deactivation with Next-Hop Address Tracking

83 Q&A All rights reserved.

Border Gateway Protocol - BGP

Border Gateway Protocol - BGP BGP Fundamentals Border Gateway Protocol - BGP Runs over TCP (port 179) TCP connection required before BGP session Need to be reachable! Path vector routing protocol Best path selection based on path attributes

More information

Introduction. Keith Barker, CCIE #6783. YouTube - Keith6783.

Introduction. Keith Barker, CCIE #6783. YouTube - Keith6783. Understanding, Implementing and troubleshooting BGP 01 Introduction http:// Instructor Introduction Keith Barker, CCIE #6783 CCIE Routing and Switching 2001 CCIE Security 2003 kbarker@ine.com YouTube -

More information

Module 6 Implementing BGP

Module 6 Implementing BGP Module 6 Implementing BGP Lesson 1 Explaining BGP Concepts and Terminology BGP Border Gateway Protocol Using BGP to Connect to the Internet If only one ISP, do not need BGP. If multiple ISPs, use BGP,

More information

Inter-Domain Routing: BGP

Inter-Domain Routing: BGP Inter-Domain Routing: BGP Richard T. B. Ma School of Computing National University of Singapore CS 3103: Compute Networks and Protocols Inter-Domain Routing Internet is a network of networks Hierarchy

More information

Chapter 13 Configuring BGP4

Chapter 13 Configuring BGP4 Chapter 13 Configuring BGP4 This chapter provides details on how to configure Border Gateway Protocol version 4 (BGP4) on HP products using the CLI and the Web management interface. BGP4 is supported on

More information

BGP can also be used for carrying routing information for IPv6 prefix over IPv6 networks.

BGP can also be used for carrying routing information for IPv6 prefix over IPv6 networks. This chapter describes how to configure the Cisco ASA to route data, perform authentication, and redistribute routing information using the Border Gateway Protocol (). About, page 1 Guidelines for, page

More information

Routing Between Autonomous Systems (Example: BGP4) RFC 1771

Routing Between Autonomous Systems (Example: BGP4) RFC 1771 CS 4/55231 Internet Engineering Kent State University Dept. of Computer Science LECT-7B Routing Between Autonomous Systems (Example: BGP4) RFC 1771 52 53 BGP4 Overview Example of Operations BGP4 is a path

More information

Internet Interconnection Structure

Internet Interconnection Structure Internet Interconnection Structure Basic Concepts (1) Internet Service Provider (ISP) Provider who connects an end user customer with the Internet in one or few geographic regions. National & Regional

More information

Configuring a Basic BGP Network

Configuring a Basic BGP Network Configuring a Basic BGP Network This module describes the basic tasks to configure a basic Border Gateway Protocol (BGP) network. BGP is an interdomain routing protocol that is designed to provide loop-free

More information

Internetwork Expert s CCNP Bootcamp. Border Gateway Protocol (BGP) What Is BGP?

Internetwork Expert s CCNP Bootcamp. Border Gateway Protocol (BGP) What Is BGP? Internetwork Expert s CCNP Bootcamp Border Gateway Protocol (BGP) http:// What Is BGP? Border Gateway Protocol Version 4 Standards based RFC 4271 A Border Gateway Protocol 4 (BGP-4) Exterior Gateway Protocol

More information

Multiprotocol BGP (MBGP)

Multiprotocol BGP (MBGP) Multiprotocol BGP (MBGP) Module 5 2000, Cisco Systems, Inc. 1 Copyright 1998-2000, Cisco Systems, Inc. Module5.ppt 1 Module Objectives Understand that MBGP is NOT a replacement for PIM Understand the basic

More information

Configuring Advanced BGP

Configuring Advanced BGP CHAPTER 6 This chapter describes how to configure advanced features of the Border Gateway Protocol (BGP) on the Cisco NX-OS switch. This chapter includes the following sections: Information About Advanced

More information

Chapter 17 BGP4 Commands

Chapter 17 BGP4 Commands Chapter 17 BGP4 Commands NOTE: This chapter describes commands in the BGP configuration level, which is present on HP devices that support IPv4 only. For information about BGP commands and configuration

More information

Connecting to a Service Provider Using External BGP

Connecting to a Service Provider Using External BGP Connecting to a Service Provider Using External BGP First Published: May 2, 2005 Last Updated: August 21, 2007 This module describes configuration tasks that will enable your Border Gateway Protocol (BGP)

More information

internet technologies and standards

internet technologies and standards Institute of Telecommunications Warsaw University of Technology internet technologies and standards Piotr Gajowniczek BGP (Border Gateway Protocol) structure of the Internet Tier 1 ISP Tier 1 ISP Google

More information

Configuring BGP community 43 Configuring a BGP route reflector 44 Configuring a BGP confederation 44 Configuring BGP GR 45 Enabling Guard route

Configuring BGP community 43 Configuring a BGP route reflector 44 Configuring a BGP confederation 44 Configuring BGP GR 45 Enabling Guard route Contents Configuring BGP 1 Overview 1 BGP speaker and BGP peer 1 BGP message types 1 BGP path attributes 2 BGP route selection 6 BGP route advertisement rules 6 BGP load balancing 6 Settlements for problems

More information

BGP. Autonomous system (AS) BGP version 4

BGP. Autonomous system (AS) BGP version 4 BGP Border Gateway Protocol (an introduction) dr. C. P. J. Koymans Informatics Institute University of Amsterdam (version 1.3, 2010/03/10 20:05:02) Monday, March 8, 2010 General ideas behind BGP Background

More information

BGP. Autonomous system (AS) BGP version 4

BGP. Autonomous system (AS) BGP version 4 BGP Border Gateway Protocol (an introduction) dr. C. P. J. Koymans Informatics Institute University of Amsterdam March 11, 2008 General ideas behind BGP Background Providers, Customers and Peers External

More information

Configuring a Basic BGP Network

Configuring a Basic BGP Network Configuring a Basic BGP Network Last Updated: October 19, 2011 This module describes the basic tasks to configure a basic Border Gateway Protocol (BGP) network. BGP is an interdomain routing protocol that

More information

BGP. Autonomous system (AS) BGP version 4

BGP. Autonomous system (AS) BGP version 4 BGP Border Gateway Protocol (an introduction) Karst Koymans Informatics Institute University of Amsterdam (version 1.5, 2011/03/06 13:35:28) Monday, March 7, 2011 General ideas behind BGP Background Providers,

More information

BGP Configuration. BGP Overview. Introduction to BGP. Formats of BGP Messages. Header

BGP Configuration. BGP Overview. Introduction to BGP. Formats of BGP Messages. Header Table of Contents BGP Configuration 1 BGP Overview 1 Introduction to BGP 1 Formats of BGP Messages 1 BGP Path Attributes 4 BGP Route Selection 8 Configuring BGP 8 Configuration Prerequisites 8 Configuration

More information

Q&As. CCIP Configuring BGP on Cisco Routers (BGP) Pass Cisco Exam with 100% Guarantee

Q&As. CCIP Configuring BGP on Cisco Routers (BGP) Pass Cisco Exam with 100% Guarantee 642-661 Q&As CCIP Configuring BGP on Cisco Routers (BGP) Pass Cisco 642-661 Exam with 100% Guarantee Free Download Real Questions & Answers PDF and VCE file from: 100% Passing Guarantee 100% Money Back

More information

Symbols. Numerics I N D E X

Symbols. Numerics I N D E X I N D E X Symbols? (question mark), CLI help system, 126 Numerics A 2-router BGP topology, configuring, 279 284 4-router BGP topology, configuring, 266, 276 279 ABRs (area border routers), 9, 87, 95, 141

More information

scope scope {global vrf vrf-name} no scope {global vrf vrf-name} Syntax Description

scope scope {global vrf vrf-name} no scope {global vrf vrf-name} Syntax Description Multi-Toplogy Routing Commands scope scope To define the scope for a Border Gateway Protocol (BGP) routing session and to enter router scope configuration mode, use the scope command in router configuration

More information

Configuration prerequisites 45 Configuring BGP community 45 Configuring a BGP route reflector 46 Configuring a BGP confederation 46 Configuring BGP

Configuration prerequisites 45 Configuring BGP community 45 Configuring a BGP route reflector 46 Configuring a BGP confederation 46 Configuring BGP Contents Configuring BGP 1 Overview 1 BGP speaker and BGP peer 1 BGP message types 1 BGP path attributes 2 BGP route selection 6 BGP route advertisement rules 6 BGP load balancing 6 Settlements for problems

More information

CertifyMe. CertifyMe

CertifyMe. CertifyMe CertifyMe Number: 642-661 Passing Score: 800 Time Limit: 120 min File Version: 7.6 http://www.gratisexam.com/ CertifyMe-642-661 Exam A QUESTION 1 Exhibit: Certkiller router#show ip route Codes: C - connected,

More information

Operation Manual BGP. Table of Contents

Operation Manual BGP. Table of Contents Table of Contents Table of Contents... 1-1 1.1 BGP/MBGP Overview... 1-1 1.1.1 Introduction to BGP... 1-1 1.1.2 BGP Message Types... 1-2 1.1.3 BGP Routing Mechanism... 1-2 1.1.4 MBGP... 1-3 1.1.5 BGP Peer

More information

Configuring BGP. Cisco s BGP Implementation

Configuring BGP. Cisco s BGP Implementation Configuring BGP This chapter describes how to configure Border Gateway Protocol (BGP). For a complete description of the BGP commands in this chapter, refer to the BGP s chapter of the Network Protocols

More information

PART III. Implementing Inter-Network Relationships with BGP

PART III. Implementing Inter-Network Relationships with BGP PART III Implementing Inter-Network Relationships with BGP ICNP 2002 Routing Protocols Autonomous System BGP-4 BGP = Border Gateway Protocol Is a Policy-Based routing protocol Is the de facto EGP of today

More information

Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. 0945_05F9_c1.scr 1. RST _05_2001_c1

Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA. 0945_05F9_c1.scr 1. RST _05_2001_c1 3003_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 1 0945_05F9_c1.scr 1 Introduction to BGP Scalable, Stable, Simple Session 3003_05_2001_c1 2001, Cisco Systems, Inc. All rights reserved. 3

More information

Table of Contents. BGP Configuration 1

Table of Contents. BGP Configuration 1 Table of Contents BGP Configuration 1 BGP Overview 1 Formats of BGP Messages 2 BGP Path Attributes 5 BGP Route Selection 9 ibgp and IGP Synchronization 11 Settlements for Problems in Large Scale BGP Networks

More information

BGP. Autonomous system (AS) BGP version 4. Definition (AS Autonomous System)

BGP. Autonomous system (AS) BGP version 4. Definition (AS Autonomous System) BGP Border Gateway Protocol (an introduction) Karst Koymans Informatics Institute University of Amsterdam (version 310, 2014/03/11 10:50:06) Monday, March 10, 2014 General ideas behind BGP Background Providers,

More information

MPLS VPN Carrier Supporting Carrier IPv4 BGP Label Distribution

MPLS VPN Carrier Supporting Carrier IPv4 BGP Label Distribution MPLS VPN Carrier Supporting Carrier IPv4 BGP Label Distribution This feature lets you configure your carrier supporting carrier network to enable Border Gateway Protocol (BGP) to transport routes and Multiprotocol

More information

Routing Protocols --- Exterior Gateway Protocol

Routing Protocols --- Exterior Gateway Protocol Content Routing Protocols --- Exterior Gateway Protocol Linda Wu (CMPT 471 23-3) Limiting router interaction Autonomous system BGP protocol BGP messages Other issues on BGP Reference: chapter 15 Notes-13

More information

BGP Commands. Network Protocols Command Reference, Part 1 P1R-355

BGP Commands. Network Protocols Command Reference, Part 1 P1R-355 BGP Commands Use the commands in this chapter to configure and monitor Border Gateway Protocol (BGP). For BGP configuration information and examples, refer to the Configuring BGP chapter of the Network

More information

BGP. Autonomous system (AS) BGP version 4. Definition (AS Autonomous System)

BGP. Autonomous system (AS) BGP version 4. Definition (AS Autonomous System) BGP Border Gateway Protocol (an introduction) Karst Koymans Informatics Institute University of Amsterdam (version 16.4, 2017/03/13 13:32:49) Tuesday, March 14, 2017 General ideas behind BGP Background

More information

BGP. Autonomous system (AS) BGP version 4. Definition (AS Autonomous System)

BGP. Autonomous system (AS) BGP version 4. Definition (AS Autonomous System) BGP Border Gateway Protocol (an introduction) Karst Koymans Informatics Institute University of Amsterdam (version 1.9, 2012/03/14 10:21:22) Monday, March 12, 2012 General ideas behind BGP Background Providers,

More information

Routing Configuration Guide, Cisco IOS XE Everest a (Catalyst 9300 Switches)

Routing Configuration Guide, Cisco IOS XE Everest a (Catalyst 9300 Switches) Routing Configuration Guide, Cisco IOS XE Everest 16.5.1a (Catalyst 9300 Switches) First Published: 2017-06-20 Americas Headquarters Cisco Systems, Inc. 170 West Tasman Drive San Jose, CA 95134-1706 USA

More information

Announcements. CS 5565 Network Architecture and Protocols. Project 2B. Project 2B. Project 2B: Under the hood. Routing Algorithms

Announcements. CS 5565 Network Architecture and Protocols. Project 2B. Project 2B. Project 2B: Under the hood. Routing Algorithms Announcements CS 5565 Network Architecture and Protocols Lecture 20 Godmar Back Project 2B due in 2 parts: Apr 29 and May 6 Extra Credit Opportunities: Expand simulator (and your implementation) to introduce

More information

Internet Routing Seminar. September/2000

Internet Routing Seminar. September/2000 1 2 3 4 Internet Routing Seminar - Adj-RIB-In: store routing inormation that has learned via inbound UPDATE msg input to the Decision Process - RIB-Loc: routes selected by the Decision Process applying

More information

BGP Protocol & Configuration. Scalable Infrastructure Workshop AfNOG2008

BGP Protocol & Configuration. Scalable Infrastructure Workshop AfNOG2008 BGP Protocol & Configuration Scalable Infrastructure Workshop AfNOG2008 Border Gateway Protocol (BGP4) Case Study 1, Exercise 1: Single upstream Part 6: BGP Protocol Basics Part 7: BGP Protocol - more

More information

Border Gateway Protocol (an introduction) Karst Koymans. Monday, March 10, 2014

Border Gateway Protocol (an introduction) Karst Koymans. Monday, March 10, 2014 .. BGP Border Gateway Protocol (an introduction) Karst Koymans Informatics Institute University of Amsterdam (version 3.10, 2014/03/11 10:50:06) Monday, March 10, 2014 Karst Koymans (UvA) BGP Monday, March

More information

Border Gateway Protocol (an introduction) Karst Koymans. Tuesday, March 8, 2016

Border Gateway Protocol (an introduction) Karst Koymans. Tuesday, March 8, 2016 .. BGP Border Gateway Protocol (an introduction) Karst Koymans Informatics Institute University of Amsterdam (version 15.6, 2016/03/15 22:30:35) Tuesday, March 8, 2016 Karst Koymans (UvA) BGP Tuesday,

More information

Routing Protocol Type Primarily IGP or EGP RIP Distance-Vector IGP EIGRP OSPF IS-IS BGP

Routing Protocol Type Primarily IGP or EGP RIP Distance-Vector IGP EIGRP OSPF IS-IS BGP Appendix D Memory Tables Chapter 1 Table 1-2 Routing Protocol Characteristics Routing Protocol Type Primarily IGP or EGP RIP Distance-Vector IGP EIGRP OSPF IS-IS BGP Chapter 3 Table 3-2 Hexadecimal/Binary

More information

Bidirectional Forwarding Detection

Bidirectional Forwarding Detection Bidirectional Forwarding Detection This document describes how to enable the Bidirectional Forwarding Detection (BFD) protocol. BFD is a detection protocol designed to provide fast forwarding path failure

More information

Table of Contents 1 BGP Configuration 1-1

Table of Contents 1 BGP Configuration 1-1 Table of Contents 1 BGP Configuration 1-1 BGP Overview 1-1 Formats of BGP Messages 1-2 BGP Path Attributes 1-4 BGP Route Selection 1-8 ibgp and IGP Synchronization 1-11 Settlements for Problems in Large

More information

MPLS VPN Carrier Supporting Carrier IPv4 BGP Label Distribution

MPLS VPN Carrier Supporting Carrier IPv4 BGP Label Distribution MPLS VPN Carrier Supporting Carrier IPv4 BGP Label Distribution This feature enables you to configure your carrier supporting carrier network to enable Border Gateway Protocol (BGP) to transport routes

More information

Connecting to a Service Provider Using External BGP

Connecting to a Service Provider Using External BGP Connecting to a Service Provider Using External BGP This module describes configuration tasks that will enable your Border Gateway Protocol (BGP) network to access peer devices in external networks such

More information

Lecture 19: Network Layer Routing in the Internet

Lecture 19: Network Layer Routing in the Internet Lecture 19: Network Layer Routing in the Internet COMP 332, Spring 2018 Victoria Manfredi Acknowledgements: materials adapted from Computer Networking: A Top Down Approach 7 th edition: 1996-2016, J.F

More information

BGP Commands on Cisco ASR 9000 Series Router

BGP Commands on Cisco ASR 9000 Series Router This module describes the commands used to configure and monitor Border Gateway Protocol (BGP) on Cisco ASR 9000 Series Aggregation Services Routers using Cisco IOS XR software. The commands in this module

More information

BGP Nonstop Routing was made a default feature.

BGP Nonstop Routing was made a default feature. Border Gateway Protocol (BGP) is an Exterior Gateway Protocol (EGP) that allows you to create loop-free interdomain routing between autonomous systems. An autonomous system is a set of routers under a

More information

MPLS VPN Inter-AS IPv4 BGP Label Distribution

MPLS VPN Inter-AS IPv4 BGP Label Distribution MPLS VPN Inter-AS IPv4 BGP Label Distribution This feature enables you to set up a Virtual Private Network (VPN) service provider network so that the autonomous system boundary routers (ASBRs) exchange

More information

Vendor: Alcatel-Lucent. Exam Code: 4A Exam Name: Alcatel-Lucent Border Gateway Protocol. Version: Demo

Vendor: Alcatel-Lucent. Exam Code: 4A Exam Name: Alcatel-Lucent Border Gateway Protocol. Version: Demo Vendor: Alcatel-Lucent Exam Code: 4A0-102 Exam Name: Alcatel-Lucent Border Gateway Protocol Version: Demo QUESTION 1 Upon the successful establishment of a TCP session between peers, what type of BGP message

More information

Implementing BGP on Cisco ASR 9000 Series Router

Implementing BGP on Cisco ASR 9000 Series Router Implementing BGP on Cisco ASR 9000 Series Router Border Gateway Protocol (BGP) is an Exterior Gateway Protocol (EGP) that allows you to create loop-free interdomain routing between autonomous systems.

More information

BGP. Border Gateway Protocol (an introduction) Karst Koymans. Informatics Institute University of Amsterdam. (version 17.3, 2017/12/04 13:20:08)

BGP. Border Gateway Protocol (an introduction) Karst Koymans. Informatics Institute University of Amsterdam. (version 17.3, 2017/12/04 13:20:08) BGP Border Gateway Protocol (an introduction) Karst Koymans Informatics Institute University of Amsterdam (version 17.3, 2017/12/04 13:20:08) Tuesday, December 5, 2017 Karst Koymans (UvA) BGP Tuesday,

More information

Protecting an EBGP peer when memory usage reaches level 2 threshold 66 Configuring a large-scale BGP network 67 Configuring BGP community 67

Protecting an EBGP peer when memory usage reaches level 2 threshold 66 Configuring a large-scale BGP network 67 Configuring BGP community 67 Contents Configuring BGP 1 Overview 1 BGP speaker and BGP peer 1 BGP message types 1 BGP path attributes 2 BGP route selection 6 BGP route advertisement rules 6 BGP load balancing 6 Settlements for problems

More information

BGP. Autonomous system (AS) BGP version 4. Definition (AS Autonomous System)

BGP. Autonomous system (AS) BGP version 4. Definition (AS Autonomous System) BGP Border Gateway Protocol A short introduction Karst Koymans Informatics Institute University of Amsterdam (version 18.3, 2018/12/03 13:53:22) Tuesday, December 4, 2018 General ideas behind BGP Background

More information

Implementing BGP. BGP Functional Overview. Border Gateway Protocol (BGP) is an Exterior Gateway Protocol (EGP) that allows you to create loop-free

Implementing BGP. BGP Functional Overview. Border Gateway Protocol (BGP) is an Exterior Gateway Protocol (EGP) that allows you to create loop-free Border Gateway Protocol (BGP) is an Exterior Gateway Protocol (EGP) that allows you to create loop-free interdomain routing between autonomous systems. An autonomous system is a set of routers under a

More information

BGP Commands. Network Protocols Command Reference, Part 1 P1R-355

BGP Commands. Network Protocols Command Reference, Part 1 P1R-355 BGP Commands Use the commands in this chapter to configure and monitor Border Gateway Protocol (BGP). For BGP configuration information and examples, refer to the Configuring BGP chapter of the Network

More information

The Border Gateway Protocol

The Border Gateway Protocol 5810ch01.qxd_kp 5/28/04 3:27 PM Page 1 1 The Border Gateway Protocol When networks were small, there was no concept of interior and exterior gateway protocols; a network ran a routing protocol, and that

More information

An Operational Perspective on BGP Security. Geoff Huston February 2005

An Operational Perspective on BGP Security. Geoff Huston February 2005 An Operational Perspective on BGP Security Geoff Huston February 2005 Disclaimer This is not a description of the approach taken by any particular service provider in securing their network. It is intended

More information

BGP. Border Gateway Protocol A short introduction. Karst Koymans. Informatics Institute University of Amsterdam. (version 18.3, 2018/12/03 13:53:22)

BGP. Border Gateway Protocol A short introduction. Karst Koymans. Informatics Institute University of Amsterdam. (version 18.3, 2018/12/03 13:53:22) BGP Border Gateway Protocol A short introduction Karst Koymans Informatics Institute University of Amsterdam (version 18.3, 2018/12/03 13:53:22) Tuesday, December 4, 2018 Karst Koymans (UvA) BGP Tuesday,

More information

BGP Cost Community. Prerequisites for the BGP Cost Community Feature

BGP Cost Community. Prerequisites for the BGP Cost Community Feature The feature introduces the cost extended community attribute. The cost community is a non-transitive extended community attribute that is passed to internal BGP (ibgp) and confederation peers but not to

More information

Ravi Chandra cisco Systems Cisco Systems Confidential

Ravi Chandra cisco Systems Cisco Systems Confidential BGP4 1 Ravi Chandra cisco Systems 0799_04F7_c2 Cisco Systems Confidential 2 Border Gateway Protocol (BGP) Introduction to BGP BGP Peer Relationship BGP Attributes Applying Policy with BGP Putting it all

More information

Unit 3: Dynamic Routing

Unit 3: Dynamic Routing Unit 3: Dynamic Routing Basic Routing The term routing refers to taking a packet from one device and sending it through the network to another device on a different network. Routers don t really care about

More information

Chapter 4: outline. Network Layer 4-1

Chapter 4: outline. Network Layer 4-1 Chapter 4: outline 4.1 introduction 4.2 virtual circuit and datagram networks 4.3 what s inside a router 4.4 IP: Internet Protocol datagram format IPv4 addressing ICMP IPv6 4.5 routing algorithms link

More information

set active-probe (PfR)

set active-probe (PfR) set active-probe (PfR) set active-probe (PfR) To configure a Performance Routing (PfR) active probe with a forced target assignment within a PfR map, use the set active-probe command in PfR map configuration

More information

LAB1: BGP IPv4. BGP: Initial Config. Disclaimer

LAB1: BGP IPv4. BGP: Initial Config. Disclaimer Page1 LAB1: BGP IPv4 Disclaimer This Configuration Guide is designed to assist members to enhance their skills in respective technology area. While every effort has been made to ensure that all material

More information

BGP-v4 Theory and Practice

BGP-v4 Theory and Practice BGP-v4 Theory and Practice Dr Nenad Krajnović krajko@etf.bg.ac.rs 1 BGP-4 Border Gateway Protocol (Principles of Operation) 2 BGP-4 (Border Gateway Protocol - RFC 1771, 4271) Exchanges inter-as routing

More information

Multihoming with BGP and NAT

Multihoming with BGP and NAT Eliminating ISP as a single point of failure www.noction.com Table of Contents Introduction 1. R-NAT Configuration 1.1 NAT Configuration 5. ISPs Routers Configuration 3 15 7 7 5.1 ISP-A Configuration 5.2

More information

IP Routing: BGP Command Reference, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)

IP Routing: BGP Command Reference, Cisco IOS XE Release 3SE (Catalyst 3850 Switches) IP Routing: BGP Command Reference, Cisco IOS XE Release 3SE (Catalyst 3850 Switches) First Published: January 22, 2013 Last Modified: January 22, 2013 Americas Headquarters Cisco Systems, Inc. 170 West

More information

FiberstoreOS BGP Configuration

FiberstoreOS BGP Configuration FiberstoreOS BGP Configuration Contents 1 Configure BGP...1 1.1 Overview... 1 1.2 Basic Topology (EBGP)... 2 1.2.2 Configuration... 2 1.2.3 Validation... 4 1.3 Basic topology(ibgp)... 5 1.3.2 Configuration...

More information

FlexVPN HA Dual Hub Configuration Example

FlexVPN HA Dual Hub Configuration Example FlexVPN HA Dual Hub Configuration Example Document ID: 118888 Contributed by Piotr Kupisiewicz, Wen Zhang, and Frederic Detienne, Cisco TAC Engineers. Apr 08, 2015 Contents Introduction Prerequisites Requirements

More information

FiberstoreOS BGP Command Line Reference

FiberstoreOS BGP Command Line Reference FiberstoreOS BGP Command Line Reference Contents 1 BGP Commands...1 1.1 address-family...1 1.2 aggregate-address...2 1.3 bgp always-compare-med... 2 1.4 bgp bestpath as-path ignore...3 1.5 bgp bestpath

More information

MPLS LDP. Agenda. LDP Overview LDP Protocol Details LDP Configuration and Monitoring 9/27/16. Nurul Islam Roman

MPLS LDP. Agenda. LDP Overview LDP Protocol Details LDP Configuration and Monitoring 9/27/16. Nurul Islam Roman MPLS LDP Nurul Islam Roman (nurul@apnic.net) 1 Agenda LDP Overview LDP Protocol Details LDP Configuration and Monitoring 1 Label Distribution Protocol Overview MPLS nodes need to exchange label information

More information

BGP. BGP Overview. BGP Operation. BGP Neighbors

BGP. BGP Overview. BGP Operation. BGP Neighbors BGP BGP Overview BGP Operation BGP Neighbors BGP Overview AS - Autonomous Systems Multihoming IGP vs. EGP When to use BGP? 2 BGP Overview AS - Autonomous Systems Multihoming IGP vs. EGP When to use BGP?

More information

Contents. Configuring MSDP 1

Contents. Configuring MSDP 1 Contents Configuring MSDP 1 Overview 1 How MSDP works 1 MSDP support for VPNs 6 Protocols and standards 6 MSDP configuration task list 7 Configuring basic MSDP features 7 Configuration prerequisites 7

More information

BGP Route Reflector Commands

BGP Route Reflector Commands This chapter provides details of the commands used for configuring Border Gateway Protocol (BGP) Route Reflector (RR). address-family (BGP), on page 2 keychain, on page 5 neighbor (BGP), on page 7 remote-as

More information

Implementing BGP on Cisco ASR 9000 Series Routers

Implementing BGP on Cisco ASR 9000 Series Routers Implementing BGP on Cisco ASR 9000 Series Routers Bder Gateway Protocol (BGP) is an Exteri Gateway Protocol (EGP) that allows you to create loop-free interdomain routing between autonomous systems. This

More information

Module 6 ibgp and Basic ebgp

Module 6 ibgp and Basic ebgp ISP Workshop Lab Module 6 ibgp and Basic ebgp Objective: Simulate four different interconnected ISP backbones using a combination of OSPF, internal BGP, and external BGP. Prerequisites: Module 1 Topology

More information

Vendor: Alcatel-Lucent. Exam Code: 4A Exam Name: Alcatel-Lucent Interior Routing Protocols and High Availability.

Vendor: Alcatel-Lucent. Exam Code: 4A Exam Name: Alcatel-Lucent Interior Routing Protocols and High Availability. Vendor: Alcatel-Lucent Exam Code: 4A0-101 Exam Name: Alcatel-Lucent Interior Routing Protocols and High Availability Version: Demo QUESTION 1 When a router receives an IP packet, but does not find a match

More information

Networkers 2001, Australia

Networkers 2001, Australia Networkers 2001, Australia March 28-30, Brisbane 1 Troubleshooting BGP Phil Smith Presentation_ID 2001, Cisco Systems, Inc. 2 BGP in Large Scale Networks Scalable Stable Simple 3 Avoid the Problem in the

More information

BGP Tutorial AFNOG2000 Class IP Assignments

BGP Tutorial AFNOG2000 Class IP Assignments BGP Tutorial AFNOG2000 Class IP Assignments Note: Refer to this sheet for your IP assignments throughout the BGP lab exercises. Anatomy of a BGP Configuration ip bgp-community new-format router bgp 3582

More information

BGP-4 Border Gateway Protocol 4 (BGP-4) Primer

BGP-4 Border Gateway Protocol 4 (BGP-4) Primer BGP-4 Border Gateway Protocol 4 (BGP-4) Primer Diarmuid Ó Briain Last updated: 18 April 2017 2 Routing primer 2017 by C²S Consulting Policies made available under the Creative Commons Attribution-NonCommercial

More information

IP Routing Volume Organization

IP Routing Volume Organization IP Routing Volume Organization Manual Version 20091105-C-1.03 Product Version Release 6300 series Organization The IP Routing Volume is organized as follows: Features IP Routing Overview Static Routing

More information

Configuring BGP on Cisco Routers Volume 1

Configuring BGP on Cisco Routers Volume 1 Volume 1 I. Course Introduction A. Overview/Learner Skills and Knowledge B. Course Flow C. Additional References 1. Cisco Glossary of Terms D. Your Training Curriculum II. BGP Overview III. Introducing

More information

Lecture 07c Routing Border Gateway Protocol

Lecture 07c Routing Border Gateway Protocol BSc in Telecommunications Engineering TEL3214 Computer Communication Networks Lecture 07c Routing Border Gateway Protocol Eng Diarmuid O'Briain, CEng, CISSP 7c-2 TEL3214 - Computer Communication Networks

More information

BGP. Inter-domain routing with the Border Gateway Protocol. Iljitsch van Beijnum Amsterdam, 13 & 16 March 2007

BGP. Inter-domain routing with the Border Gateway Protocol. Iljitsch van Beijnum Amsterdam, 13 & 16 March 2007 BGP Inter-domain routing with the Border Gateway Protocol Iljitsch van Beijnum Amsterdam, 13 & 16 March 2007 1 Routing Between ISPs Internal routing protocols don't work here: too much information So:

More information

Testking Cisco _formatted

Testking Cisco _formatted Testking Cisco 642-832_formatted Number: 000-000 Passing Score: 800 Time Limit: 120 min File Version: 1.0 http://www.gratisexam.com/ Exam A QUESTION 1 Which two statements about the Cisco Aironet Desktop

More information

BGP. BGP Overview. Formats of BGP Messages. I. Header

BGP. BGP Overview. Formats of BGP Messages. I. Header Overview Three early versions of are -1 (RFC1105), -2 (RFC1163) and -3 (RFC1267). The current version in use is -4 (RFC1771). -4 is rapidly becoming the defacto Internet exterior routing protocol standard

More information

Advanced Networking: Routing & Switching 2 Chapter 7

Advanced Networking: Routing & Switching 2 Chapter 7 EIGRP Advanced Networking: Routing & Switching 2 Chapter 7 Copyleft 2014 Hacklab Cosenza (http://hlcs.it) Released under Creative Commons License 3.0 By-Sa Cisco name, logo and materials are Copyright

More information

Chapter 1. Getting Started

Chapter 1. Getting Started Versatile Routing and Services with BGP: Understanding and Implementing BGP in SR-OS PREV Introduction NEXT Chapter 2: BGP/MPLS IP-VPN Chapter 1 Getting Started Although this book does not discuss the

More information

TDC 363 Introduction to LANs

TDC 363 Introduction to LANs TDC 363 Introduction to LANs Routing Protocols and RIP Greg Brewster DePaul University TDC 363 1 Dynamic Routing Routing Protocols Distance Vector vs. Link State Protocols RIPv1 & RIPv2 RIP Problems Slow

More information

R&E ROUTING SECURITY BEST PRACTICES. Grover Browning Karl Newell

R&E ROUTING SECURITY BEST PRACTICES. Grover Browning Karl Newell R&E ROUTING SECURITY BEST PRACTICES Grover Browning Karl Newell RFC 7454 BGP Operations & Security Feb, 2015 https://tools.ietf.org/html/rfc7454 [ 2 ] Agenda Background / Community Development Overview

More information

IPv6 Module 6x ibgp and Basic ebgp

IPv6 Module 6x ibgp and Basic ebgp IPv6 Module 6x ibgp and Basic ebgp Objective: Using IPv6, simulate four different interconnected ISP backbones using a combination of IS-IS, internal BGP, and external BGP. Topology : Figure 1 BGP AS Numbers

More information

Configuring Internal BGP Features

Configuring Internal BGP Features This module describes how to configure internal Border Gateway Protocol (BGP) features. Internal BGP (ibgp) refers to running BGP on networking devices within one autonomous system. BGP is an interdomain

More information

Network Configuration Example

Network Configuration Example Network Configuration Example Configuring External BGP Peering Release NCE0056 Modified: 2017-01-20 Juniper Networks, Inc. 1133 Innovation Way Sunnyvale, California 94089 USA 408-745-2000 www.juniper.net

More information

Module 16 An Internet Exchange Point

Module 16 An Internet Exchange Point ISP Workshop Lab Module 16 An Internet Exchange Point Objective: To investigate methods for connecting to an Internet Exchange Point. Prerequisites: Modules 12 and 13, and the Exchange Points Presentation

More information

Chapter 6 Lab 6-3, Configuring IBGP and EBGP Sessions, Local Preference, and MED

Chapter 6 Lab 6-3, Configuring IBGP and EBGP Sessions, Local Preference, and MED Chapter 6 Lab 6-3, Configuring IBGP and EBGP Sessions, Local Preference, and MED Topology Objectives Background For IBGP peers to correctly exchange routing information, use the next-hop-self command with

More information

Chapter 4: Network Layer

Chapter 4: Network Layer Chapter 4: Network Layer 4. 1 Introduction 4.2 Virtual circuit and datagram networks 4.3 What s inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing ICMP IPv6 4.5 Routing algorithms

More information