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

Similar documents
Chapter IV: Network Layer

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

Chapter 4: outline. Network Layer 4-1

CS 43: Computer Networks Internet Routing. Kevin Webb Swarthmore College November 14, 2013

Hierarchical Routing. Our routing study thus far - idealization all routers identical network flat not true in practice

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

Chapter 4: Network Layer

DATA COMMUNICATOIN NETWORKING

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

Last time. Transitioning to IPv6. Routing. Tunneling. Gateways. Graph abstraction. Link-state routing. Distance-vector routing. Dijkstra's Algorithm

Inter-AS routing. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley

CSCI Topics: Internet Programming Fall 2008

CS 204: BGP. Jiasi Chen Lectures: MWF 12:10-1pm Humanities and Social Sciences

CSC 4900 Computer Networks: Routing Protocols

Chapter 4: Network Layer, partb

PART III. Implementing Inter-Network Relationships with BGP

Computer Networking Introduction

Routing in the Internet

CSc 450/550 Computer Networks Internet Routing

Network layer: Overview. Network layer functions Routing IP Forwarding

Initial motivation: 32-bit address space soon to be completely allocated. Additional motivation:

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

Internet rou)ng. V. Arun CS491G: Computer Networking Lab University of MassachuseFs Amherst

CS555, Spring /5/2005. April 12, 2005 No classes attend Senior Design Projects conference. Chapter 4 roadmap. Internet AS Hierarchy

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

COMP211 Chapter 5 Network Layer: The Control Plane

Chapter 4 Network Layer

Inter-Domain Routing: BGP

BGP. Daniel Zappala. CS 460 Computer Networking Brigham Young University

Internet inter-as routing: BGP

Lecture 19: Network Layer Routing in the Internet

CS 457 Networking and the Internet. The Global Internet (Then) The Global Internet (And Now) 10/4/16. Fall 2016

Routing on the Internet! Hierarchical Routing! The NSFNet 1989! Aggregate routers into regions of autonomous systems (AS)!

Introduction to Communication Networks Spring Unit 16 Global Internetworking

5.1 introduction 5.5 The SDN control 5.2 routing protocols plane. Control Message 5.3 intra-as routing in Protocol the Internet

CNT Computer and Network Security: BGP Security

Inter-Autonomous-System Routing: Border Gateway Protocol

CS118 Discussion 1A, Week 7. Zengwen Yuan Dodd Hall 78, Friday 10:00 11:50 a.m.

Inter-Autonomous-System Routing: Border Gateway Protocol

Interplay Between Routing, Forwarding

Network layer: Overview. Network layer functions Routing IP Forwarding

Internet Routing : Fundamentals of Computer Networks Bill Nace

Network Layer: Control Plane 5-2

Chapter 5 Network Layer: The Control Plane

Network Routing. Packet Routing, Routing Algorithms, Routers, Router Architecture

Chapter 4: Network Layer. TDTS06 Computer networks. Subnets. Subnets. Subnets. IP Addressing: introduction

Chapter 4: Network Layer

Chapter 4: outline. 4.5 routing algorithms link state distance vector hierarchical routing. 4.6 routing in the Internet RIP OSPF BGP

CSCE 463/612 Networks and Distributed Processing Spring 2018

Network Layer: Routing

CSC 8560 Computer Networks: Control Plane

Internet Protocol: Routing Algorithms. Srinidhi Varadarajan

Master Course Computer Networks IN2097

Master Course Computer Networks IN2097

Topics for This Week

Chapter 4: Network Layer: Part II

CMPE 80N: Introduction to Networking and the Internet. Katia Obraczka Computer Engineering UCSC Baskin Engineering Lecture 20

Routing. Outline. Algorithms Scalability

EC441 Fall 2018 Introduction to Computer Networking Chapter 5: Network Layer Control Plane

CSCE 463/612 Networks and Distributed Processing Spring 2018

EECS 3214: Computer Networks Protocols and Applications

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Routing part 2. Electrical and Information Technology

DATA COMMUNICATOIN NETWORKING

Routing Unicast routing protocols

Routing. Jens A Andersson Communication Systems

11/13/2017 Network Layer (SSL) Network-layer functions. Recall the two network-layer functions:

Network layer. Key Network-Layer Functions. Network service model. Interplay between routing and forwarding. CSE 4213: Computer Networks II

Initial motivation: 32-bit address space soon to be completely allocated. Additional motivation:

CS 3516: Computer Networks

IP Addressing & Interdomain Routing. Next Topic

Master Course Computer Networks IN2097

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

Chapter 4: Network Layer

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

CS321: Computer Networks Unicast Routing

Border Gateway Protocol - BGP

Introduction to Computer Networks

Data Communications & Networks. Session 7 Main Theme Networks: Part II Circuit Switching, Packet Switching, The Network Layer

Computer Networks. Instructor: Niklas Carlsson

Course on Computer Communication and Networks. Lecture 7 Network Layer, Chapter 4 (6/e) - Part B (7/e Ch5)

Why dynamic route? (1)

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

Module 3 Network Layer CS755! 3-1!

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 14

! Distance vector routing! Link state routing.! Path vector routing! BGP: Border Gateway Protocol! Route aggregation

ETSF10 Internet Protocols Routing on the Internet

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

Network Layer: Routing

Back to basics J. Addressing is the key! Application (HTTP, DNS, FTP) Application (HTTP, DNS, FTP) Transport. Transport (TCP/UDP) Internet (IPv4/IPv6)

Lecture 9. Network Layer (cont d) Network Layer 1-1

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

Chapter 4: Network Layer. Chapter 4 Network Layer. Chapter 4: Network Layer. Network layer. Chapter goals:

ETSF10 Internet Protocols Routing on the Internet

Routing(2) Inter-domain Routing

Routing Protocols --- Exterior Gateway Protocol

Chapter 5 Network Layer: The Control Plane

Chapter 5 Network Layer: The Control Plane

Routing(2) Inter-domain Routing

Review for Chapter 4 R1,R2,R3,R7,R10,R11,R16,R17,R19,R22,R24, R26,R30 P1,P2,P4,P7,P10,P11,P12,P14,P15,P16,P17,P22,P24,P29,P30

Transcription:

Inter-AS routing and BGP Network Layer 4-1

Review: intra-as routing v Also known as interior gateway protocols (IGP) v Most common intra-as routing protocols: RIP: Routing Information Protocol, distance vector OSPF: Open Shortest Path First, Dijstra s algorithm IGRP: Interior Gateway Routing Protocol (Cisco proprietary) Network Layer 4-2

Hierarchical and inter-as routing our routing study thus far - idealization v all routers identical v network flat not true in practice scale: with 600 million destinations: v can t store all dest s in routing tables! v routing table exchange would swamp links! administrative autonomy v internet = network of networks v each network admin may want to control routing in its own network Network Layer 4-3

Hierarchical and inter-as routing v aggregate routers into regions, autonomous systems (AS) v routers in same AS run same routing protocol intra-as routing protocol routers in different AS can run different intra- AS routing protocol gateway router: v at edge of its own AS v has link to router in another AS Network Layer 4-4

Interconnected ASes 3c 3a 3b AS3 1a 1c 1d 1b Intra-AS Routing algorithm AS1 Forwarding table Inter-AS Routing algorithm 2a 2c AS2 2b v forwarding table configured by both intraand inter-as routing algorithm intra-as sets entries for internal dests inter-as & intra-as sets entries for external dests Network Layer 4-5

Take a look at the AS of Clarkson U v http://bgp.he.net/as92#_asinfo v Whois database v Network Layer 4-6

Inter-AS tasks v suppose router in AS1 receives datagram destined outside of AS1: router should forward packet to gateway router, but which one? AS1 must: 1. learn which dests are reachable through AS2, which through AS3 2. propagate this reachability info to all routers in AS1 job of inter-as routing! 3c other networks 3b 3a AS3 1a AS1 1c 1d 1b 2a AS2 2c 2b other networks Network Layer 4-7

Example: choosing among multiple ASes v now suppose AS1 learns from inter-as protocol that subnet x is reachable from AS3 and from AS2. v router 1d must determine which gateway it should forward packets towards for dest x this is also job of inter-as routing protocol! v hot potato routing: send packet towards closest of two routers. other networks 3b 3c AS3 3a 1a AS1 1c x 1d? 1b 2a AS2 2c 2b other networks Network Layer 4-8

Internet inter-as routing: BGP v BGP (Border Gateway Protocol): the de facto inter-domain routing protocol glue that holds the Internet together v BGP provides each AS a means to: ebgp: obtain subnet reachability information from neighboring ASs. ibgp: propagate reachability information to all ASinternal routers. determine good routes to other networks based on reachability information and policy. v allows subnet to advertise its existence to rest of Internet: I am here Network Layer 4-9

BGP basics v BGP session: two BGP routers ( peers ) exchange BGP messages: advertising paths to different destination network prefixes ( path vector protocol) exchanged over TCP connections v when AS11351 advertises a prefix (128.153/16) to AS1: AS11351 promises it will forward datagrams towards that prefix AS11351 can aggregate prefixes in its advertisement BGP message AS92 128.153/16 Clarkson U Time Warner 3c 3a 3b AS11351 1a AS1 BGP message 1c 1d 1b 2a AS2 2c 2b other networks Network Layer 4-10

BGP basics: distributing path information v using ebgp session between 3a and 1c, AS3 sends prefix reachability info to AS1. 1c can then use ibgp to distribute new prefix info to all routers in AS1 1b can then re-advertise new reachability info to AS2 over 1bto-2a ebgp session v when router learns of new prefix, it creates entry for prefix in its forwarding table. other networks 3b 3a AS3 1a AS1 1c 1d ebgp session ibgp session 1b 2a AS2 2c 2b other networks Network Layer 4-11

BGP routes v BGP route prefix + attributes v two important attributes: AS-PATH: contains ASs through which prefix advertisement has passed: e.g., AS 67, AS 17, why a path not previous AS? NEXT-HOP: indicates specific internal-as router to nexthop AS. policy-based routing gateway router receiving route advertisement uses import policy to accept/decline e.g., never route through AS x Network Layer 4-12

BGP route selection v router may learn about more than 1 route to destination AS, selects route based on: 1. local preference value attribute: policy decision 2. shortest AS-PATH (does it mean smallest physical hops?) 3. closest NEXT-HOP router: hot potato routing 4. additional criteria Network Layer 4-13

BGP messages v BGP messages exchanged between peers over TCP connection v BGP messages: OPEN: opens TCP connection to peer and authenticates sender UPDATE: advertises new path (or withdraws old) KEEPALIVE: keeps connection alive in absence of UPDATES; also ACKs OPEN request NOTIFICATION: reports errors in previous msg; also used to close connection Network Layer 4-14

BGP routing policy W A B C X legend: provider network customer network: Y v Policy is cost saving/revenue generating oriented: any traffic flowing across an ISP s network must have either a source or a destination in a network that is a customer of that ISP, v A,B,C are provider networks v X,W,Y are customers (of provider networks) v X is dual-homed: attached to two networks Network Layer 4-15

BGP routing policy (2) W A B C X legend: provider network customer network: Y v A advertises path AW to B v B advertises path BAW to X v Should B advertise path BAW to C? No way! B gets no revenue for routing CBAW since neither W nor C are B s customers B wants to route only to/from its customers! Network Layer 4-16

Why different Intra-, Inter-AS routing? policy: v inter-as: admin wants control over how its traffic routed, who routes through its net. v intra-as: single admin, so no policy decisions needed scale: v Inter-AS routing saves table size, reduced update traffic performance: v intra-as: can focus on performance v inter-as: policy may dominate over performance Network Layer 4-17

Additional resources v Route views project: http://www.routeviews.org/ v BGP live monitor: http://bgpmon.netsec.colostate.edu/ v BGP looking glasses: http://www.bgp4.as/looking-glasses Network Layer 4-18

Discussion v What are the differences between IGP and ibgp, since both are working in intra-as? Network Layer 4-19

Quiz next week v 20 mins, network layer,11/18/2013 (Monday) IP addressing, subnet/prefix Longest prefix match Routing algorithms Network Layer 4-20