The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”

Slides:



Advertisements
Similar presentations
Multihoming and Multi-path Routing
Advertisements

Routing Basics.
Technical Aspects of Peering Session 4. Overview Peering checklist/requirements Peering step by step Peering arrangements and options Exercises.
© 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.
An Introduction to Routing the Internet Geoff Huston APNIC.
Routing Basics By Craig Lindstrom. Overview Routing Process Routing Process Default Routing Default Routing Static Routing Static Routing Dynamic Routing.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Routing Working at a Small-to-Medium Business or ISP – Chapter 6.
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.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts – Chapter.
© 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.
Best Practices for ISPs
CS Summer 2003 CS672: MPLS Architecture, Applications and Fault-Tolerance.
1 Basics of Dynamic Routing Presented by Aaron Jarvis Network Engineer.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Exterior Gateway Protocols: EGP, BGP-4, CIDR Shivkumar Kalyanaraman Rensselaer Polytechnic Institute.
Routing and Routing Protocols
© 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.
MPLS L3 and L2 VPNs Virtual Private Network –Connect sites of a customer over a public infrastructure Requires: –Isolation of traffic Terminology –PE,
ROUTING PROTOCOLS Rizwan Rehman. Static routing  each router manually configured with a list of destinations and the next hop to reach those destinations.
Lecture Week 3 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts.
Border Gateway Protocol (BGP4) Rizwan Rehman, CCS, DU.
Fundamentals of Networking Discovery 2, Chapter 6 Routing.
OSPF To route, a router needs to do the following: Know the destination address Identify the sources it can learn from Discover possible.
Inter-domain Routing Outline Border Gateway Protocol.
Dr. John P. Abraham Professor University of Texas Pan American Internet Routing and Routing Protocols.
TCOM 515 Lecture 6.
1 Computer Communication & Networks Lecture 22 Network Layer: Delivery, Forwarding, Routing (contd.)
Introduction to BGP.
IP is a Network Layer Protocol Physical 1 Network DataLink 1 Transport Application Session Presentation Network Physical 1 DataLink 1 Physical 2 DataLink.
Dynamic Routing Chapter 9. powered by DJ 1. C HAPTER O BJECTIVES At the end of this Chapter you will be able to:  Explain Dynamic Routing  Identify.
Introduction to Dynamic Routing Protocol
1 Interdomain Routing (BGP) By Behzad Akbari Fall 2008 These slides are based on the slides of Ion Stoica (UCB) and Shivkumar (RPI)
Routing protocols Basic Routing Routing Information Protocol (RIP) Open Shortest Path First (OSPF)
Lecture 4: BGP Presentations Lab information H/W update.
Chapter 9. Implementing Scalability Features in Your Internetwork.
UNIT 5 SEMINAR Unit 5 Chapter 6, plus Lab 10 for next week Course Name – IT482 Network Design Instructor – David Roberts Contact Information:
David Wetherall Professor of Computer Science & Engineering Introduction to Computer Networks Hierarchical Routing (§5.2.6)
1 Internet Routing. 2 Terminology Forwarding –Refers to datagram transfer –Performed by host or router –Uses routing table Routing –Refers to propagation.
The need for BGP Keeping local stuff local. Overview zTypical small ISP zDirect connections with other ISP’s zRouting protocol requirements zScaling things.
© 2015 Mohamed Samir YouTube channel All rights reserved. Samir Agenda Instructor introduction 1. Introduction toEldarin 2.
CCNA 2 Week 6 Routing Protocols. Copyright © 2005 University of Bolton Topics Static Routing Dynamic Routing Routing Protocols Overview.
© 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.
CS 4396 Computer Networks Lab BGP. Inter-AS routing in the Internet: (BGP)
Routing and Routing Protocols PJC CCNA Semester 2 Ver. 3.0 by William Kelly.
© 2002, Cisco Systems, Inc. All rights reserved..
CS 640: Introduction to Computer Networks Aditya Akella Lecture 11 - Inter-Domain Routing - BGP (Border Gateway Protocol)
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—6-1 Scaling Service Provider Networks Scaling IGP and BGP in Service Provider Networks.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—5-1 Customer-to-Provider Connectivity with BGP Understanding Customer-to-Provider Connectivity.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—1-1 Course Introduction.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—3-1 Route Selection Using Policy Controls Using Multihomed BGP Networks.
Text BGP Basics. Document Name CONFIDENTIAL Border Gateway Protocol (BGP) Introduction to BGP BGP Neighbor Establishment Process BGP Message Types BGP.
Inter-domain Routing Outline Border Gateway Protocol.
Border Gateway Protocol Introduction
© 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 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
Routing and Routing Protocols CCNA 2 v3 – Module 6.
Border Gateway Protocol Introduction Scalable Infrastructure Workshop AfNOG 2011.
Working at a Small-to-Medium Business or ISP – Chapter 6
Boarder Gateway Protocol (BGP)
BGP 1. BGP Overview 2. Multihoming 3. Configuring BGP.
Keeping local stuff local
Border Gateway Protocol
Introduction To Networking
Working at a Small-to-Medium Business or ISP – Chapter 6
BGP Overview BGP concepts and operation.
Dynamic Routing Protocols
Routing Protocols Charles Warren.
Dynamic Routing Protocols
Working at a Small-to-Medium Business or ISP – Chapter 6
Border Gateway Protocol – BGP4
CCNA 2 JEOPARDY Module 6.
Presentation transcript:

The need for BGP AfNOG Workshops Philip Smith

“Keeping Local Traffic Local”

IGP Interior Gateway Protocol Within a network/autonomous system Carries information about internal infrastructure prefixes Examples – OSPF, ISIS, EIGRP

Why do we need an IGP? ISP Backbone Scaling Hierarchy Modular infrastructure Limiting scope of failure Healing of faults with fast convergence

EGP Exterior Gateway Protocol Used to convey routing information between networks/ASes De-coupled from the IGP Current EGP is BGP4

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

Interior vs. Exterior Routing Protocols Interior Automatic neighbour discovery Generally trust your IGP routers Routes go to all IGP routers Binds routers in an AS together Exterior Specifically configured peers Connecting with outside networks Set administrative boundaries Binds ASes together

Interior vs. Exterior Routing Protocols Interior Carries ISP infrastructure addresses only ISPs aim to keep IGPs small for scalability and efficiency Exterior Carries customer prefixes Carries Internet prefixes EGPs are independent of ISP network topology

Overview Typical small ISP Direct connections with other ISP’s Routing protocol requirements Scaling things up

Typical Small ISP Local network May have multiple POPs Line to Internet International line providing transit connectivity Very, very expensive

Typical Small ISP Upstream ISP Small ISP Static and/or default routes Static routes

Other ISP in Country Similar setup Traffic between you and them goes over Your expensive line Their expensive line Traffic can be significant Same language/culture Traffic between your and their customers

Other ISP in Country Upstream ISP Small ISP Africa Europe

Bringing down costs Local (national) links much cheaper than international ones Might be interesting to get direct link between you and them Saving traffic on expensive lines better performance, cheaper No need to send traffic to other ISP down the street via New York!

Keeping Local Traffic Local Upstream ISP Small ISP Africa Europe

Terminology: peer and transit Peer: getting connectivity to network of other ISP … and just that network, no other networks Frequently at zero cost (zero-settlement) Transit: getting connectivity through network of other ISP to other networks … getting connectivity to rest of world (or part thereof) Usually at cost (customer-provider relationship)

Large ISP in Country Large ISP multi-homes to two or more upstream providers multiple connections to achieve: redundancy connection diversity increased speeds

Large ISP in Country Upstream ISP Africa Europe USA Large ISP

Making it work Just getting direct line is not enough Need to work out how to do routing Need to get local traffic between ISP’s/peers Need to make sure the peer ISP doesn’t use us for transit Need to control what networks to announce, what network announcements to accept to upstreams and peers

Not using static routes ip route Does not scale The more external networks you connect to, the more complex and harder to maintain this becomes No failover in case of link failure Have to manually reconfigure Often needs assistance of upstream too

Not using IGP (OSPF) Using an IGP gives serious operational consequences: If the other ISP has a routing problem, you will have problems too Instability in their backbone becomes an instability in your backbone Leaked prefixes into their backbone become leakages into your backbone Won’t scale… Etc… Very hard to filter routes so that we don’t inadvertently give transit

Using BGP instead BGP = Border Gateway Protocol BGP is an Exterior Gateway Protocol Focus on routing policy, not topology BGP can make ‘groups’ of networks (Autonomous Systems) Good route filtering capabilities Ability to isolate from other’s problems

Autonomous Systems Autonomous systems is a misnomer Nothing to do with freedom, independence, … Just a handle for a group of networks that is under the same administrative control Uniquely identified by an AS number 16 bit integer Assigned by registries, just like IP addresses

Autonomous System(AS)... Identified by ‘AS number’ example: AS16907 (ISPKenya) Public & Private AS numbers Public (assigned by registries): Private: – AS 0 and are reserved Typical applications: Service provider Multi-homed customers Anyone needing policy discrimination

Using AS numbers BGP can filter on AS numbers Get all networks of the other ISP using one handle Include future new networks without having to change routing filters AS number for new network will be same Can use AS numbers in filters with regular expressions BGP actually does routing computation on IP numbers

Summary: Why do I need BGP? Network scaling Multi-homing – connecting to multiple providers upstream providers local networks – regional peering to get local traffic Policy discrimination controlling how traffic flows