Routing Protocols --- Exterior Gateway Protocol

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

Inter-Domain Routing: BGP

Routing Between Autonomous Systems (Example: BGP4) RFC 1771

Internet Interconnection Structure

2011, Sushile Tejwani

Routing Protocols. Autonomous System (AS)

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

Table of Contents. BGP Configuration 1

Table of Contents 1 BGP Configuration 1-1

Configuring BGP. Cisco s BGP Implementation

Inter-domain Routing. Outline. Border Gateway Protocol

Module 6 Implementing BGP

Routing Protocols. The routers in an internet are responsible for receiving and. forwarding IP datagrams through the interconnected set of

c2001, Dr.Y.N.Singh, EED, IITK 2 Border Gateway Protocol - 4 BGP-4 (RFC intended to be used for routing between Autonomou

CS321: Computer Networks Unicast Routing

Overview. Problem: Find lowest cost path between two nodes Factors static: topology dynamic: load

Y. Rekhter T.J. Watson Research Center, IBM Corp. June 1989

Routing in the Internet

Outline. Organization of the global Internet. BGP basics Routing policies The Border Gateway Protocol How to prefer some routes over others

internet technologies and standards

PART III. Implementing Inter-Network Relationships with BGP

ICS 351: Today's plan. OSPF BGP Routing in general routing protocol comparison encapsulation network dynamics

Obsoletes RFCs: 1105, 1163 T.J. Watson Research Center, IBM Corp. October 1991

Overview 4.2: Routing

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

Most important (cont d) What s most important in Project 1. Important for individuals. From from Most Important

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

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

Unit 3: Dynamic Routing

Inter-AS routing and BGP. Network Layer 4-1

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

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

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

Architectures and Protocols for Integrated Networks. Intra-domain and Inter-domain Routing Protocols

Border Gateway Protocol (BGP-4)

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

Why dynamic route? (1)

Topics for This Week

Operation Manual BGP. Table of Contents

Department of Computer and IT Engineering University of Kurdistan. Computer Networks II Border Gateway protocol (BGP) By: Dr. Alireza Abdollahpouri

Top-Down Network Design, Ch. 7: Selecting Switching and Routing Protocols. Top-Down Network Design. Selecting Switching and Routing Protocols

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

BGP. Autonomous system (AS) BGP version 4

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

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

Basic Idea. Routing. Example. Routing by the Network

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

Routing by the Network

ICS 351: Today's plan. OSPF BGP Routing in general

BGP. Autonomous system (AS) BGP version 4

Antonio Cianfrani. Routing Protocols

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

Chapter 4: outline. Network Layer 4-1

Internet Routing Protocols Part II

CS BGP v4. Fall 2014

The Border Gateway Protocol

Ravi Chandra cisco Systems Cisco Systems Confidential

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

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

HY 335 Φροντιστήριο 8 ο

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

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

Internet Routing Seminar. September/2000

Open Shortest Path First (OSPF)

CSc 450/550 Computer Networks Internet Routing

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

Connecting to a Service Provider Using External BGP

Network Layer: Routing

CS 43: Computer Networks Internet Routing. Kevin Webb Swarthmore College November 16, 2017

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

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

LARGE SCALE IP ROUTING LECTURE BY SEBASTIAN GRAF

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

Configuration BGP Services Avaya Ethernet Routing Switch 8300

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

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

CSCI Topics: Internet Programming Fall 2008

Internet Routing Protocols Tuba Saltürk

Connecting to a Service Provider Using External BGP

Computer Networking Introduction

Configuration BGP Services Avaya Virtual Services Platform 9000

Routing Protocols of IGP. Koji OKAMURA Kyushu University, Japan

Planning for Information Network

BGP Routing and BGP Policy. BGP Routing. Agenda. BGP Routing Information Base. L47 - BGP Routing. L47 - BGP Routing

Configuration - BGP Services Avaya Ethernet Routing Switch 5000 Series

Top-Down Network Design

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

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

BTEC Level 3 Extended Diploma

INTER-DOMAIN ROUTING PROTOCOLS: EGP AND BGP. Abstract

Chapter 4: Network Layer. Lecture 12 Internet Routing Protocols. Chapter goals: understand principles behind network layer services:

University of Belgrade - School of Electrical Engineering Department of Telecommunications

Chapter 13 Configuring BGP4

Routing. Routing. Overview. Overview. Routing vs. Forwarding. Why Routing

RIP Version 2. The Classless Brother

Securing BGP. Geoff Huston November 2007

Table of Contents. Cisco Introduction to EIGRP

CS 43: Computer Networks. 24: Internet Routing November 19, 2018

ETSF10 Internet Protocols Routing on the Internet

Transcription:

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 CMPT 471 23-3 2 Limiting Router Interaction Limiting Router Interaction (cont.) Two issues in router interaction Delay Overhead Deciding router numbers A simple general heuristic It is safe to allow up to a dozen routers to participate in a single routing protocol across a wide area network; approximately five times as many can safely participate across a set of local area network Traffic monitor Observe network trend over long period Determine whether too many routers participate in a single routing protocol Notes-13 CMPT 471 23-3 3 Consequences of limiting router number Only a small group of routers participate in a routing protocol Some routers will be outside of the group Non-participating router can only make a group member as a default route Routing will be suboptimal extra hop problem A mechanism is needed that allows nonparticipating routers to learn routes from participating routers Notes-13 CMPT 471 23-3 4

Limiting Router Interaction (cont.) Limiting Router Interaction (cont.) R1 Backbone Network R2 Local Net 1 R3 Local Net 2 R1 & R2: Participating router R3: Non-participating router, with R1 as its default Hidden network Participating router Backbone Network R1 Net 1 Net 4 was just installed R1 does not know about Net 4 From the viewpoint of backbone network, Net 4 is hidden behind Net 1 Extra hop problem occurs when: R2 R3 R3 sends datagram destined for net 2 Net 2 Net 3 R4 Net 4 Notes-13 CMPT 471 23-3 5 Notes-13 CMPT 471 23-3 6 Limiting Router Interaction (cont.) Routing information must flow in two directions Routing information must flow from a group of participating routers to a nonparticipating router A non-participating router must pass information about hidden networks to the group of participating routers Autonomous System Autonomous system (AS) Autonomous system is a group of networks and routers controlled by a single administrative authority Interior routing: routing inside an AS Routers within an AS are free to choose their own routing protocol Exterior routing: routing between ASs Only one exterior routing protocol is chosen to handle routing between ASs Notes-13 CMPT 471 23-3 7 Notes-13 CMPT 471 23-3 8

Autonomous System (cont.) Routing protocols Exterior Gateway Protocol (EGP) Protocol used to pass routing information between two autonomous systems BGP (Border Gateway Protocol) Interior Gateway Protocol (IGP) Protocol used by interior routers to exchange network reachability and routing information RIP (Routing Information Protocol) OSPF (Open SPF) HELLO Autonomous System (cont.) From a core to independent ASs Backbone Network R1 R2 Rn AS 1 AS 2 AS n Each AS must advertise its network to other ASs Each AS is assigned an autonomous system number (AS#) by a central authority When routers exchange information, the messages carry the AS# of the system each router represents Notes-13 CMPT 471 23-3 9 Notes-13 CMPT 471 23-3 1 BGP Protocol Border Gateway Protocol Currently used in most TCP/IP internets Current version: BGP-4 Based on path vector routing method When 2 ASs agree to exchange routing information Each designates a router that will speak BGP on its behalf: BGP speaker The selected router is usually near the edge of the AS: border router / gateway The two routers are said to be BGP peer of one another Notes-13 CMPT 471 23-3 11 BGP characteristics Inter-autonomous system communication Coordination among multiple BGP speakers Propagation of reachability information Next-hop paradigm Policy support Reliable transport Path information Incremental updates Support for classless addressing Route aggregation Authentication Notes-13 CMPT 471 23-3 12

Path vector routing Each entry in the routing table contains: Destination network Next hop The path to destination: a list of autonomous systems that a packet should travel through to reach the destination Destination Net 1 Net 2 Net 3 Net 4 Next hop R1 R5 R6 R3 Path AS14, AS2, AS67 AS22, AS67, AS3, AS8 AS33, AS12, AS19, AS4 AS16, AS2, AS6 Path vector message When a router receives a path vector message: (destination, next hop, path) It verifies that the advertised path is in agreement with its policy If it is, the router updates its routing table and modifies the message: Adding its AS# to the path Replace next-hop field with its own identification Send the message to the next router Notes-13 CMPT 471 23-3 13 Notes-13 CMPT 471 23-3 14 AS1 AS2 N1 Local net R2 Local net Local net R1 N1 R1 AS1 R 1~4 : border routers N1 R2 AS2, AS1 N1 R3 AS3, AS2, AS1 R3 Local net Local net Local net Local net R4 Local net AS4 AS3 Notes-13 CMPT 471 23-3 15 Loop prevention When a router receives a path vector message, it checks whether its AS# is in the path list; if it is, looping is involved and the message is ignored Policy routing When a router receives a message, it checks the path If one of the ASs in the path is against its policy Ignores the path and destination Does not update its routing table Does not send the message to its neighbors Notes-13 CMPT 471 23-3 16

Path attributes Well-known attribute: must be recognized by every BGP router Well-known mandatory attribute: must appear in every update message e.g., ORIGIN, AS_PATH, NEXT_HOP Well-know discretionary attribute: not required to be included every update message Optional attribute: need not be recognized by every BGP router Optional transitive attribute: must be passed to the next router if the current router has not implemented this attribute Optional nontransitive attribute: should be discarded if not implemented by current router Notes-13 CMPT 471 23-3 17 BGP message types Type Code 1 2 3 4 Message Type OPEN UPDATE NOTIFICATION KEEPALIVE Description Initialize communication Advertise or withdraw routes Response to an incorrect message Actively test peer connectivity Notes-13 CMPT 471 23-3 18 How BGP works BGP connection establishing Routers wait for BGP connection on the well-known TCP port 179 One BGP router opens TCP connection toward the port on its peer router Each peer sends an OPEN message to negotiate the parameters for the connection Each peer sends a KEEPALIVE message as response to OPEN message to confirm the connection BGP information exchanging Two peers use UPDATE messages to exchange routing information Routers adjust their routing tables based on routes learned via the connection Initial exchange Full exchange of reachability information between BGP routers (i.e., the whole routing table is exchanged) Incremental update Only changes are reported Advantage: conserve bandwidth and processing power Notes-13 CMPT 471 23-3 19 Notes-13 CMPT 471 23-3 2

BGP connection maintaining BGP peers periodically exchange KEEPALIVE messages to test peer connectivity BGP connection closing One peer router sends NOTIFICATION message to terminate the connection BGP Messages BGP message header All BGP messages share the same common header to identify message type Length Total message length in bytes Type Message type (1 ~ 4) 16 24 31 Marker (16 bytes) Length Type Notes-13 CMPT 471 23-3 21 Notes-13 CMPT 471 23-3 22 Marker A value that both sides agree to use to mark the beginning of a message In the initial message, the marker consists of all 1s If the peers agree to use an authentication mechanism, the marker contains authentication information MD5: message digest algorithm version 5 The receiver is required to verify that the marker value is intact before processing the message OPEN message 8 AS# BGP Identifier Hold Time Parm.Len Optional Parameters (variable) 16 Common header 19 bytes, Type = 1 Version 31 Notes-13 CMPT 471 23-3 23 Notes-13 CMPT 471 23-3 24

Version The version of BGP; current version: 4 AS# Autonomous system number of the sender s system Hold Time The maximum time that the receiver should wait for a message from the sender The timer is reset each time a message arrives If timer expires, the receiver assumes the sender is no longer available Notes-13 CMPT 471 23-3 25 BGP Identifier To uniquely identify the sender One of the IP addresses of the router If a router has several peers, it must use the same identifier in all communication Parm.Len Length of optional parameters in bytes If no optional parameters, Parm.Len = Optional Parameters A list of parameters Each parameter has 3 subfields: (type, length, value) Only one parameter type is defined so far: type 1 for authentication Notes-13 CMPT 471 23-3 26 KEEPALIVE message Two peers periodically exchange KEEPALIVE messages to test network connectivity and to verify both peers continue to function Hold Time in OPEN message = : no KEEPALIVE message > : KEEPALIVE interval = 1/3 * Hold Time 8 16 Common header 19 bytes, Type = 4 24 31 Notes-13 CMPT 471 23-3 27 UPDATE message Withdrawn Len & Withdrawn Destinations To withdraw previous advertisements when a destination becomes unreachable Withdrawn Len: size of Withdrawn Destinations field Path Len & Path Attributes To advertise new destinations that are reachable Path Len: size of Path Attributes field Destination networks Networks actually advertised by this message Notes-13 CMPT 471 23-3 28

Path Len Common header 19 bytes, Type = 2 16 31 Withdrawn Len Withdrawn Destinations (variable) Path Attributes (variable) Destination Networks (variable) UPDATE message format Compressed mask-address pairs BGP sends an address mask with each IP address Withdrawn Destinations & Destination Networks fields use a compressed representation to reduce message size LEN: number of 1s in the mask IP address: only the bytes ( Len / 8 ) covered by the mask are included LEN = : no address byte follows; for default route LEN 8 IP Address (1~4 bytes) 31 Notes-13 CMPT 471 23-3 29 Notes-13 CMPT 471 23-3 3 Path Attributes Format of Type subfield Attributes apply to all destination networks advertised in the message If different attributes apply to some destinations, they must be advertised in a separate UPDATE message This field contains a list of items Each item consists of a triple (type, length, value) Type: 2 bytes Bits 1 2 1234567 Flag bits Description : optional transitive attribute is complete; 1: partial 8 15 Type code : well-known attribute; 1: optional : transitive attribute; 1: nontransitive 1: ORIGIN 2: AS_PATH 3: NEXT_HOP Length: 1~2 bytes (length of value) 3 : length field is 1 byte; 1: 2 bytes 5~7 Unused (must be zero) Notes-13 CMPT 471 23-3 31 Notes-13 CMPT 471 23-3 32

NOTIFICATION message Used for control or when error occurs Once a router detects an error Sends a NOTIFICATION message Closes the TCP connection Error subcode 8 16 common header 19 bytes, Type = 3 Error data (variable) 31 Error code Error code 1 3 4 5 6 Error code description Message header error 2 OPEN message error See textbook P289 UPDATE message error Hold timer expired Finite state machine error Cease Error subcode No subcode defined Procedure error; no subcode defined Terminate connection; no subcode defined Notes-13 CMPT 471 23-3 33 Notes-13 CMPT 471 23-3 34 Encapsulation BGP messages are encapsulated in TCP segments using well-known port 179 No need for error control and flow control Notes-13 CMPT 471 23-3 35 Other Issues on BGP Route selection BGP can only specify whether a path to a given destination exists BGP cannot select the shortest path The cost of routes across autonomous systems is unknown to BGP BGP is a reachability protocol rather than a routing protocol A receiver can implement route policy constraints, but cannot choose a least cost route A sender must only advertise paths that traffic should follow Notes-13 CMPT 471 23-3 36

Other Issues on BGP (cont.) Consequences At any given instance, all traffic routed from a computer in one AS to a network in another will traverse one path, even if multiple physical connections are present BGP alone is inadequate for optimal routing BGP alone will not guarantee global consistency Other Issues on BGP (cont.) Routing Arbiter (RA) system Routing arbiter database Database of reachability information Updates to database are authenticated: only AS that owns a given network is allowed to advertise reachability Route server (RS) Multiple route servers maintain copies of routing arbiter database and run BGP Each ISP designates a BGP border router, which maintains a connection to the route server Notes-13 CMPT 471 23-3 37 Notes-13 CMPT 471 23-3 38