BGP4 1 1.

Slides:



Advertisements
Similar presentations
1 A B C
Advertisements

Network Layer Delivery Forwarding and Routing
AP STUDY SESSION 2.
1
OSPF 1.
Introduction to IP Routing Geoff Huston. Routing How do packets get from A to B in the Internet? A B Internet.
David Burdett May 11, 2004 Package Binding for WS CDL.
Address-based Route Reflection Ruichuan Chen (MPI-SWS) Aman Shaikh (AT&T Labs - Research) Jia Wang (AT&T Labs - Research) Paul Francis (MPI-SWS) CoNEXT.
Create an Application Title 1Y - Youth Chapter 5.
CALENDAR.
The 5S numbers game..
Media-Monitoring Final Report April - May 2010 News.
Break Time Remaining 10:00.
Factoring Quadratics — ax² + bx + c Topic
Turing Machines.
PP Test Review Sections 6-1 to 6-6
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
Chapter 1: Expressions, Equations, & Inequalities
Adding Up In Chunks.
MaK_Full ahead loaded 1 Alarm Page Directory (F11)
Artificial Intelligence
Route Optimisation RD-CSY3021.
BGP Overview Processing BGP Routes.
Before Between After.
Subtraction: Adding UP
: 3 00.
5 minutes.
1 hi at no doifpi me be go we of at be do go hi if me no of pi we Inorder Traversal Inorder traversal. n Visit the left subtree. n Visit the node. n Visit.
Converting a Fraction to %
Clock will move after 1 minute
famous photographer Ara Guler famous photographer ARA GULER.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.1 Module 9 TCP/IP Protocol Suite and IP Addressing.
Physics for Scientists & Engineers, 3rd Edition
Select a time to count down from the clock above
1.step PMIT start + initial project data input Concept Concept.
1 Dr. Scott Schaefer Least Squares Curves, Rational Representations, Splines and Continuity.
Schutzvermerk nach DIN 34 beachten 05/04/15 Seite 1 Training EPAM and CANopen Basic Solution: Password * * Level 1 Level 2 * Level 3 Password2 IP-Adr.
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.
Border Gateway Protocol Ankit Agarwal Dashang Trivedi Kirti Tiwari.
CS540/TE630 Computer Network Architecture Spring 2009 Tu/Th 10:30am-Noon Sue Moon.
© 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.
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.
The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.1 Routing Working at a Small-to-Medium Business or ISP – Chapter 6.
1 Network Architecture and Design Routing: Exterior Gateway Protocols and Autonomous Systems Border Gateway Protocol (BGP) Reference D. E. Comer, Internetworking.
Lecture Week 3 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts.
Border Gateway Protocol (BGP4) Rizwan Rehman, CCS, DU.
Border Gateway Protocol (BGP4)
1 © 2000, Cisco Systems, Inc. Session # Presentation_ID Border Gateway Protocol.
© 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.
Introduction to Dynamic Routing Protocol
CS 3700 Networks and Distributed Systems Inter Domain Routing (It’s all about the Money) Revised 8/20/15.
Chapter 9. Implementing Scalability Features in Your Internetwork.
Border Gateway Protocol
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.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts.
Text BGP Basics. Document Name CONFIDENTIAL Border Gateway Protocol (BGP) Introduction to BGP BGP Neighbor Establishment Process BGP Message Types BGP.
Border Gateway Protocol BGP-4 BGP environment How BGP works BGP information BGP administration.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.1 Routing Working at a Small-to-Medium Business or ISP – Chapter 6.
Working at a Small-to-Medium Business or ISP – Chapter 6
Boarder Gateway Protocol (BGP)
BGP 1. BGP Overview 2. Multihoming 3. Configuring BGP.
Border Gateway Protocol
BGP supplement Abhigyan Sharma.
Lixin Gao ECE Dept. UMASS, Amherst
BGP Overview BGP concepts and operation.
Cours BGP-MPLS-IPV6-QOS
Working at a Small-to-Medium Business or ISP – Chapter 6
Presentation transcript:

BGP4 1 1

Cisco Systems Confidential Ravi Chandra cisco Systems 0799_04F7_c2 Cisco Systems Confidential 2 2

Border Gateway Protocol (BGP) Introduction to BGP BGP Peer Relationship BGP Attributes Applying Policy with BGP Putting it all together 3

Autonomous System (AS) Collection of networks with same policy Single routing protocol Usually under single administrative control 4

Autonomous System... Identified by ‘AS number’ Examples: - service provider - multihomed customers - anyone needing policy descrimination 7

Terminology: Exterior routes Routes learnt from other autonomous systems 7

What Is an IGP? Interior Gateway Protocol Within an Autonomous System Carries information about internal prefixes Examples—OSPF, ISIS, EIGRP… 5

What Is an EGP? Exterior Gateway Protocol Used to convey routing information between Autonomous Systems Decoupled from the IGP Current EGP is BGP 6

Why Do We Need an EGP? Scaling to large network Policy Hierarchy Limit scope of failure Policy Control reachability to prefixes 7

Interior vs. Exterior Routing Protocols Automatic discovery Generally trust your IGP routers Routes go to all IGP routers Exterior Specifically configured peers Connecting with outside networks Set administrative boundaries 10

Demilitarized Zone (DMZ) C DMZ Network AS 100 AS 101 B D E AS 102 Shared network between ASs 11

Static Routes no path information very versatile low protocol overhead high maintainance very bad convergence time requires manual configuration 7

BGP Basics AS 100 AS 101 Runs over TCP Path vector protocol Peering A C AS 100 AS 101 B D E Runs over TCP Path vector protocol Incremental update AS 102 12

General Operation Learns multiple paths via internal and external BGP speakers Picks the best path and installs in the IP forwarding table Policies applied by influencing the best path selection 13

Internal BGP Peering AS 100 D A B E BGP peer within the same AS Not required to be directly connected IBGP neighbors should be fully meshed 14

External BGP Peering Between BGP speakers in different AS C B Between BGP speakers in different AS Should be directly connected 15

Basic BGP commands: router bgp <as-number> neighbor <ip address> remote-as <as-number> show commands - show ip bgp summary - show ip bgp neighbors 7

Exercise - 1 Define a static route Bring the route into BGP table Verify if route is in the BGP table 7

Exercise - 2 IBGP peering Verify IBGP peering 7

Exercise - 3 EBGP peering Verify EBGP peering 7

Stub Network AS 101 B A AS 100 40

Stub Network No need for BGP Point default towards the ISP ISP advertises the stub network Policy confined within ISP policy 41

Multi-Homed AS AS 100 AS 200 AS 300 D C B A 42

Multihomed AS Internal BGP used with IGP IBGP only between border gateways Only border gateways speak BGP Exterior routes must be redistributed into IGP or use defaults 7

Common Service Provider Network AS 100 AS 200 A H B C AS 300 D F E G AS 400 49

Service Provider Network IBGP used to carry exterior routes IGP carries local information only Full IBGP mesh is required 7

Stable IBGP Peering Peer with loop-back address IBGP session is not dependent on a single interface Loop-back interface does not go down 38

Peering to Loop-Back Address AS 100 39

Exercise - 4 Stable IBGP peering Verify IBGP peering 7

BGP - Update messages withdrawn routes attributes advertised routes 7

BGP: Update Messages.. Network reachability information network prefix/length Example : - 131.108/16 - 131.108.0.0 255.255.0.0 - 198/8 - 198.0.0.0 255.0.0.0 7

BGP Attributes What is an attribute? AS path Next hop Local preference Multi-Exit Discriminator (MED) 16

BGP Attributes BGP community Others 17

What Is an Attribute? Describes the characteristics of prefix Next Hop AS Path ... MED ... ... Describes the characteristics of prefix Transitive or non-transitive Some are mandatory 18

AS-Path Sequence of AS a route has traversed Loop detection Apply policy AS 200 AS 100 170.10.0.0/16 180.10.0.0/16 180.10.0.0/16 300 200 100 170.10.0.0/16 300 200 AS 300 AS 400 150.10.0.0/16 180.10.0.0/16 300 200 100 170.10.0.0/16 300 200 150.10.0.0/16 300 400 AS 500 19

Exercise - 5 Look at live routing table 7

Cisco Systems Confidential Next Hop 160.10.0.0/16 150.10.0.0/16 150.10.1.1 150.10.1.2 AS 100 AS 300 AS 200 150.10.0.0/16 150.10.1.1 160.10.0.0/16 150.10.1.1 A B Next hop to reach a network Usually a local network is the next hop in EBGP session 0799_04F7_c2 Cisco Systems Confidential 20 20

Third Party Next Hop More efficient AS 200 AS 201 C A B 192.68.1.0/24 150.1.1.3 C 150.1.1.1 150.1.1.2 150.1.1.3 A B 192.68.1.0/24 AS 201 More efficient 21

IBGP Next Hop Next hop not changed AS 200 AS 300 AS 100 C A B 160.10.0.0/16 150.10.0.0/16 150.10.1.1 150.10.1.2 AS 100 AS 300 AS 200 A B C 150.10.0.0/16 150.10.1.1 160.10.0.0/16 150.10.1.1 Next hop not changed 22

Next Hop-More IGP should carry route to next hops Recursive route look-up Unlinks BGP from actual physical topology Allows IGP to make intelligent fowarding decision 23

Exercise - 6 IBGP nexthop exercise 7

Local Preference AS 100 AS 200 AS 300 AS 400 160.10.0.0/16 D E A B C 500 800 E A B AS 400 160.10.0.0/16 500 > 160.10.0.0/16 800 C 24

Local Preference Local to an AS Used to influence BGP path selection Path with highest local preference wins 25

Exercise - 7 Local Preference exercise 7

Multi-Exit Discriminator (MED) AS 200 C 192.68.1.0/24 2000 192.68.1.0/24 1000 A B 192.68.1.0/24 AS 201 26

Multi-Exit Discriminator Non-transitive Used to convey the relative preference of entry points Influences best path selection Comparable if paths are from same AS IGP metric can be conveyed as MED 27

Origin Conveys the origin of the prefix Three values—igp, egp, incomplete Influences best path selection 28

Communities BGP attribute Used to group destinations Represented as an integer Each destination could be member of multiple communities Community attribute carried across ASs Useful in applying policies 30

Community AS 400 AS 500 AS 300 AS 100 AS 200 H G E F C D A B 160.10.0.0/16 1000 190.10.0.0/16 1000 170.10.0.0/16 1001 180.10.0.0/16 2000 AS 400 AS 500 H G E F AS 300 170.10.0.0/16 1001 160.10.0.0/16 1000 C D 180.10.0.0/16 2000 190.10.0.0/16 1000 A B AS 100 AS 200 31

Applying Policy with BGP Policy-based on AS path, community or the prefix Rejecting/accepting selected routes Set attributes to influence path selection 32

BGP Path Selection Algorithm Do not consider IBGP path if not synchronized Do not consider path if no route to next hop Highest weight (local to router) Highest local preference (global within AS) Shortest AS path 33

BGP Path Selection Lowest origin code Multi-Exit Discriminator IGP < EGP < incomplete Multi-Exit Discriminator Considered only if paths are from the same AS Prefer EBGP path over IBGP path 34

BGP Path Selection Path with shortest nexthop metric wins Lowest router-id 35

BGP Path Selection AS 200 AS 201 192.68.1.0/24 A B C D F 150.1.1.1 AS 201 AS 200 192.68.1.0/24 160.1.1.1 A B C D F BGP TABLE IN AS-201: 192.68.1.0/24 150.1.1.1 160.1.1.1 A’s IP TABLE: 192.68.1.0/24 150.1.1.1 B’s IP TABLE: 192.68.1.0/24 160.1.1.1 C’s IP TABLE: Either one depending on IGP metric to nexthop 36

BGP Path Selection—More AS 100 AS 200 AS 300 D A B AS 200 prefered path AS 300 backup Increase AS path length to 300 AS 400 37

Multi-Homed AS Many situations possible Multiple sessions to same ISP Secondary for only backup Load share between primary and secondary Selectively use different ISPs 43

Multiple Sessions to an ISP EBGP to loopback address EBGP prefixes learnt with loopback address as nexthop Parallel paths to loopback address allows load sharing ISP AS 201 0799_04F7_c2 Cisco Systems Confidential 44 44

Multiple Sessions to an ISP Simplest scheme is to use defaults Learn/advertise prefix for better control ISP D F A B AS 201 0799_04F7_c2 Cisco Systems Confidential 45 45

Multiple Session to ISPs Difficult to achieve load sharing Point default towards one ISP Learn selected prefixes from second ISP Modify the number of prefixes learnt to acheive acceptable loadsharing 47

Putting it all together Your network is going to grow at an exponential rate Design to scale... but be prepared to reorganize from scratch Don’t be afraid of change! - Most network redisigns are only configuration changes 7

Putting it all together Requirements for IGPs for backbones IGP connects your backbone together, not your client’s routes Must - converge quickly Should - carry netmask information 7

Putting it all together.. Connecting to a customer Static routes - you control directly - no route flaps Shared routing protocol or leaking - You must filter your customers info - route flaps BGP for multihomed customers 7

Putting it all together Building your backbone Keep it simple redundancy is good, but expensive use an IGP that carrys mask information use an IGP that converges quickly use OSPF, ISIS or EIGRP 7

Putting it all together Connecting to other ISPs Use BGP4 advertise only what you serve take back as little as you can 7

Putting it all together The internet exchange Long distance connectivity is expensive Connect to several providers at a single point 7

Q&A 51