TELE 301 Network Management

Similar documents
Internet Routing Protocols Lecture 01 & 02

Routing part 2. Electrical and Information Technology

Internet Protocols Fall Lectures Inter-domain routing, mobility support, multicast routing Andreas Terzis

Internet Routing Protocols Lecture 03 Inter-domain Routing

L11 : Inter-domain Routing with BGP Lecture14 Michaelmas, 2016

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

Routing. Jens A Andersson Communication Systems

Routing Unicast routing protocols

Advanced Computer Networks

Lecture 16: Border Gateway Protocol

PART III. Implementing Inter-Network Relationships with BGP

CS BGP v4. Fall 2014

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

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

CS 640: Introduction to Computer Networks. Intra-domain routing. Inter-domain Routing: Hierarchy. Aditya Akella

Lecture 18: Border Gateway Protocol

Table of Contents. BGP Configuration 1

Table of Contents 1 BGP Configuration 1-1

Lecture 17: Border Gateway Protocol

BGP. Autonomous system (AS) BGP version 4

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

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

BGP. Attributes 2005/03/11. (C) Herbert Haas

Routing Between Autonomous Systems (Example: BGP4) RFC 1771

BGP. Autonomous system (AS) BGP version 4

BGP. Autonomous system (AS) BGP version 4

BGP Attributes (C) Herbert Haas 2005/03/11 1

internet technologies and standards

Next Lecture: Interdomain Routing : Computer Networking. Outline. Routing Hierarchies BGP

Internet Interconnection Structure

Internet Routing : Fundamentals of Computer Networks Bill Nace

CS 268: Computer Networking. Next Lecture: Interdomain Routing

Lecture 16: Interdomain Routing. CSE 123: Computer Networks Stefan Savage

LARGE SCALE IP ROUTING LECTURE BY SEBASTIAN GRAF

CS4450. Computer Networks: Architecture and Protocols. Lecture 15 BGP. Spring 2018 Rachit Agarwal

Inter-Domain Routing: BGP

Internet inter-as routing: BGP

Interdomain Routing Reading: Sections P&D 4.3.{3,4}

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

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

Configuring BGP. Cisco s BGP Implementation

Border Gateway Protocol

Important Lessons From Last Lecture Computer Networking. Outline. Routing Review. Routing hierarchy. Internet structure. External BGP (E-BGP)

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

Operation Manual BGP. Table of Contents

COMP/ELEC 429 Introduction to Computer Networks

CS4700/CS5700 Fundamentals of Computer Networks

Inter-Domain Routing: BGP II

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

BGP Attributes and Path Selection

IBGP scaling: Route reflectors and confederations

Outline Computer Networking. Inter and Intra-Domain Routing. Internet s Area Hierarchy Routing hierarchy. Internet structure

APNIC elearning: BGP Basics. 30 September :00 PM AEST Brisbane (UTC+10) Revision: 2.0

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)

CSCD 433/533 Network Programming Fall Lecture 14 Global Address Space Autonomous Systems, BGP Protocol Routing

ISP Border Definition. Alexander Azimov

Interdomain Routing Reading: Sections K&R EE122: Intro to Communication Networks Fall 2007 (WF 4:00-5:30 in Cory 277)

LACNIC XIII. Using BGP for Traffic Engineering in an ISP

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

EE 122: Inter-domain routing Border Gateway Protocol (BGP)

Ravi Chandra cisco Systems Cisco Systems Confidential

Inter-Domain Routing: BGP

CSCI-1680 Network Layer: Inter-domain Routing Rodrigo Fonseca

BGP Attributes and Policy Control

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

BGP Scaling Techniques

An overview of how packets are routed in the Internet

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

Professor Yashar Ganjali Department of Computer Science University of Toronto.

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

Introduction to BGP. ISP/IXP Workshops

IBGP internals. BGP Advanced Topics. Agenda. BGP Continuity 1. L49 - BGP Advanced Topics. L49 - BGP Advanced Topics

Inter-domain Routing. Outline. Border Gateway Protocol

Introduction to BGP ISP/IXP Workshops

Introduction to BGP. ISP Workshops. Last updated 30 October 2013

Module 6 Implementing BGP

Interdomain Routing. Networked Systems (H) Lecture 11

Inter-Domain Routing: BGP II

Configuring Advanced BGP

How BGP Routers Use the Multi Exit Discriminator for Best Path Selection

Exterior Gateway Protocols: EGP, BGP-4, CIDR

BGP Attributes and Policy Control

Interdomain Routing. EE122 Fall 2011 Scott Shenker

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

This appendix contains supplementary Border Gateway Protocol (BGP) information and covers the following topics:

CS 268: Computer Networking

BGP Tutorial. APRICOT 2004, Kuala Lumpur February Philip Smith APRICOT , Cisco Systems, Inc. All rights reserved.

Multiprotocol BGP (MBGP)

Connecting to a Service Provider Using External BGP

BGP Attributes and Policy Control

BGP Tutorial. APRICOT 2003, Taipei February Philip Smith APRICOT , Cisco Systems, Inc. All rights reserved.

Routing on the Internet. Routing on the Internet. Hierarchical Routing. Computer Networks. Lecture 17: Inter-domain Routing and BGP

Towards a Logic for Wide-Area Internet Routing

CS321: Computer Networks Unicast Routing

Connecting to a Service Provider Using External BGP

Graph abstraction: costs. Graph abstraction 10/26/2018. Interplay between routing and forwarding

BGP Protocol & Configuration. Scalable Infrastructure Workshop AfNOG2008

Configuring Internal BGP Features

BGP Scaling Techniques

Transcription:

TELE 301 Network Management Lecture 24: Exterior Routing and BGP Haibo Zhang Computer Science, University of Otago TELE301 Lecture 16: Remote Terminal Services 1

Today s Focus How routing between different administrative domains works in Internet? TELE301 Lecture 16: Remote Terminal Services 2

Idealized View of the Internet E A B End-hosts Internet C Routers connected in a fault-tolerant structure D This abstraction is quite misleading The TRUE story The Internet service is provided by a large number of commercial enterprises, generally in competition with each other. Global connectivity is achieved through cooperation between profitable commercial enterprises. TELE301 Lecture 16: Remote Terminal Services 3

The Real Internet Structure AS 2 AS 5 AS 4 AS 1 AS 3 Internet is composed of over 50000 Autonomous Systems (ASs) Superlinear growth Each public AS is identified a globally unique number IANA allocates AS Numbers to Regional Internet Registries (RIRs) The RIRs further allocate or assign AS Numbers to network operators 16 bit values TELE301 Lecture 16: Remote Terminal Services 4

Inter-AS Relationships (1) Peering: two or more ASs interconnect directly with each other to exchange traffic often done without charging for the interconnection or the traffic. peering AS 1 AS 2 TELE301 Lecture 16: Remote Terminal Services 5

Inter-AS Relationships (2) Transit: one AS agrees to carry the traffic that flows between ASs The transit provider receives a transit fee for the service AS 3 transit transit AS 1 AS 2 TELE301 Lecture 16: Remote Terminal Services 6

Routing between ASs Distance vector or link state? No universal routing metric Problems with distance vector Bellman-Ford algorithm may not converge Problems with link state Metric used by routers not the same loops LS database too large entire Internet May expose policies to other ASs TELE301 Lecture 16: Remote Terminal Services 7

Border Gateway Protocol BGP Is a Policy-Based routing protocol Is the de facto inter-domain routing protocol of today s global Internet (current version BGP4) BGP is classified as a path vector routing protocol makes routing decisions based on paths, network policies, or rule-sets configured by a network administrator defines a route as a pairing between a destination and the attributes of the path to that destination. 12.6.126.0/24 207.126.96.43 1021 0 6461 7018 6337 11268 i AS Path TELE301 Lecture 16: Remote Terminal Services 8

BGP Operations Establish session on TCP port 179 AS1 BGP session Exchange all active routes AS2 Exchange incremental updates While connection is ALIVE exchange route UPDATE messages TELE301 Lecture 16: Remote Terminal Services 9

Four Types of BGP Messages Open Establishes a peering session on port 179. Keep Alive sends 19-byte keep-alive messages every 60 seconds to maintain the connection Notification Used for error notification Shuts down a peering session Update Announces new routes or withdraws previously announced routes. TELE301 Lecture 16: Remote Terminal Services 10

Two Types of BGP Neighbour Relationships ebgp: External Neighbor in a different AS ibgp: Internal Neighbor in the same AS ibgp AS1 ebgp AS2 The main difference is the way to propagate routes New routes from an ebgp is typical redistributed all other ibgp and ebgp peers. New routes learned by an ibgp are advertised to only ebgp peers. TELE301 Lecture 16: Remote Terminal Services 11

BGP Route Processing Open ended programming. Constrained only by vendor configuration language Receive BGP Updates Apply Policy = filter routes & tweak attributes Based on Attribute Values Best Routes Apply Policy = filter routes & tweak attributes Transmit BGP Updates Apply Import Policies Best Route Selection Best Route Table Apply Export Policies Install forwarding Entries for best Routes. IP Forwarding Table TELE301 Lecture 16: Remote Terminal Services 12

Import/Export Routes Import Routes When a router hears many possible routes to a destination network, it needs to decide which route to install in its forwarding tables. Order of route preference: customer > peer > provider Export Routes Each AS needs to make decisions on which routes to export to its neighboring ISPs using BGP. No ISP wants to act as transit for packets that it isn t somehow making money on. Transit customer routes: Highest priority Transit provider routes: Most likely not (no money earned) Peer routes: only selected routes to other peering ISPs. TELE301 Lecture 16: Remote Terminal Services 13

Use BGP attributes Best Route Selection 192.0.2.0/24 pick me! 192.0.2.0/24 pick me! 192.0.2.0/24 pick me! 192.0.2.0/24 pick me! Given multiple routes to the same prefix, a BGP speaker must pick at most one best route TELE301 Lecture 16: Remote Terminal Services 14

BGP Attributes Value Code Reference ----- --------------------------------- --------- 1 ORIGIN [RFC1771] 2 AS_PATH [RFC1771] 3 NEXT_HOP [RFC1771] 4 MULTI_EXIT_DISC [RFC1771] 5 LOCAL_PREF [RFC1771] 6 ATOMIC_AGGREGATE [RFC1771] 7 AGGREGATOR [RFC1771] 8 COMMUNITY [RFC1997] 9 ORIGINATOR_ID [RFC2796] 10 CLUSTER_LIST [RFC2796] 11 DPA [Chen] 12 ADVERTISER [RFC1863] 13 RCID_PATH / CLUSTER_ID [RFC1863] 14 MP_REACH_NLRI [RFC2283] 15 MP_UNREACH_NLRI [RFC2283] 16 EXTENDED COMMUNITIES [Rosen]... 255 reserved for development Most important attributes From IANA: http://www.iana.org/assignments/bgp-parameters TELE301 Lecture 16: Remote Terminal Services 15

AS-Path and Loop Detection AS_PATH: sequence of AS identifiers that the route advertisement has traversed. AS 200 AS 100 170.10.0.0/16 180.10.0.0/16 AS 300 140.10.0.0/16 180.10.0.0/16 300 200 100 170.10.0.0/16 300 200 140.10.0.0/16 300 AS 500 140.10.0.0/16 500 300 170.10.0.0/16 500 300 200 180.10.0.0/16 is not announced to AS100 as AS500 sees that it is originated from AS100, and that AS100 is the neighbouring AS loop detection in action TELE301 Lecture 16: Remote Terminal Services 16

Next_Hop IP address of the next-hop router along the path to the destination. On ebgp sessions, the next hop is set to the IP address of the border router. On ibgp sessions, the next hop is not modified. 150.10.1.1 150.10.1.2 AS 200 150.10.0.0/16 A B AS 300 160.10.0.0/16 AS 100 150.10.0.0/16 150.10.1.1 160.10.0.0/16 150.10.1.1 TELE301 Lecture 16: Remote Terminal Services 17

Local Preference The first criteria used to select routes Not attached on routes learned visa ebgp sessions, but assigned by the import policy of these sessions. AS 4 local pref = 80 local pref = 90 AS 3 local pref = 100 AS 2 AS 1 13.13.0.0/16 TELE301 Lecture 16: Remote Terminal Services 18

Multi-Exit Discriminator (MED) Neighboring AS sets the MED values to indicate which router it prefers to receive traffic for destination. Used for comparing two or more routes from the same neighboring AS. AS 200 C 192.68.1.0/24 2000 192.68.1.0/24 1000 A AS 201 B 192.68.1.0/24 TELE301 Lecture 16: Remote Terminal Services 19

Best Route Selection Criteria Highest Local Preference Enforce relationships Shortest ASPATH Lowest MED i-bgp < e-bgp Lowest IGP cost to BGP egress Lowest router ID traffic engineering Throw up hands and break ties TELE301 Lecture 16: Remote Terminal Services 20

BGP Problem and Migration Internal BGP scalability Full mesh connectivity Route reflectors and confederations. Instability The routing tables are adjusted continually to reflect actual changes Route flap damping Routing table growth Route summarization Load-balancing Locater/Identifier Separation Protocol TELE301 Lecture 16: Remote Terminal Services 21

Resources Hari Balakrishnan, and Nick Feamster, Interdomain Internet Routing, http://nms.csail.mit.edu/6.829-f05/lectures/l4- routing.pdf Mike Pennington, BGP Deployment & Scalability, www.pennington.net/tutorial/bgp_001/bgp_overview.ppt Timothy G. Griffin, An Introduction to Interdomain Routing and the Border Gateway Protocol (BGP), http://www.research.att.com/~griffin TELE301 Lecture 16: Remote Terminal Services 22