1 Internet Routing 11/11/2009. Admin. r Assignment 3 2.

Slides:



Advertisements
Similar presentations
CS Summer 2003 CS672: MPLS Architecture, Applications and Fault-Tolerance.
Advertisements

Network Layer4-1 Hierarchical Routing scale: with 200 million destinations: r can’t store all dest’s in routing tables! r routing table exchange would.
Lecture 9 Overview. Hierarchical Routing scale – with 200 million destinations – can’t store all dests in routing tables! – routing table exchange would.
Path Vector Routing NETE0514 Presented by Dr.Apichan Kanjanavapastit.
© 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.
Chapter 4: Network Layer 4. 1 Introduction 4.2 Virtual circuit and datagram networks 4.3 What’s inside a router 4.4 IP: Internet Protocol –Datagram format.
4a-1 CSE401: Computer Networks Hierarchical Routing & Routing in Internet S. M. Hasibul Haque Lecturer Dept. of CSE, BUET.
Network Layer4-1 Chapter 4 roadmap 4.1 Introduction and Network Service Models 4.2 Routing Principles 4.3 Hierarchical Routing 4.4 The Internet (IP) Protocol.
Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet Protocol m Datagram.
IP Addressing & Interdomain Routing. Next Topic  IP Addressing  Hierarchy (prefixes, class A, B, C, subnets)  Interdomain routing Physical Data Link.
Spring Routing & Switching Umar Kalim Dept. of Communication Systems Engineering 04/05/2007.
14 – Inter/Intra-AS Routing
Feb 12, 2008CS573: Network Protocols and Standards1 Border Gateway Protocol (BGP) Network Protocols and Standards Winter
© 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.
1 ECE453 – Introduction to Computer Networks Lecture 10 – Network Layer (Routing II)
Inter-domain Routing Outline Border Gateway Protocol.
Lecture 10 Overview. Border Gateway Protocol(BGP) De facto standard for Internet inter-AS routing allows subnet to advertise its existence to rest of.
14 – Inter/Intra-AS Routing Network Layer Hierarchical Routing scale: with > 200 million destinations: can’t store all dest’s in routing tables!
I-4 routing scalability Taekyoung Kwon Some slides are from Geoff Huston, Michalis Faloutsos, Paul Barford, Jim Kurose, Paul Francis, and Jennifer Rexford.
1 Computer Communication & Networks Lecture 22 Network Layer: Delivery, Forwarding, Routing (contd.)
Network Routing: Link State Routing and BGP 4/2/2008.
Introduction to BGP.
1 Interdomain Routing (BGP) By Behzad Akbari Fall 2008 These slides are based on the slides of Ion Stoica (UCB) and Shivkumar (RPI)
CS 3700 Networks and Distributed Systems Inter Domain Routing (It’s all about the Money) Revised 8/20/15.
CSE 461: Interdomain Routing
Network Layer (4). Classless Addressing Addresses allocated in contiguous blocks – Number of addresses assigned always power of 2 Network portion of address.
RSC Part II: Network Layer 6. Routing in the Internet (2 nd Part) Redes y Servicios de Comunicaciones Universidad Carlos III de Madrid These slides are,
Introduction 1 Lecture 19 Network Layer (Routing Protocols) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &
CS 3830 Day 29 Introduction 1-1. Announcements r Quiz 4 this Friday r Signup to demo prog4 (all group members must be present) r Written homework on chapter.
10-1 Last time □ Transitioning to IPv6 ♦ Tunneling ♦ Gateways □ Routing ♦ Graph abstraction ♦ Link-state routing Dijkstra's Algorithm ♦ Distance-vector.
Border Gateway Protocol
Routing in the Internet The Global Internet consists of Autonomous Systems (AS) interconnected with eachother: Stub AS: small corporation Multihomed AS:
Network Layer r Introduction r Datagram networks r IP: Internet Protocol m Datagram format m IPv4 addressing m ICMP r What’s inside a router r Routing.
1 Internet Routing. 2 Terminology Forwarding –Refers to datagram transfer –Performed by host or router –Uses routing table Routing –Refers to propagation.
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.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429/556 Introduction to Computer Networks Inter-domain routing Some slides used with.
Some slides have been taken from:
Network Layer4-1 Intra-AS Routing r Also known as Interior Gateway Protocols (IGP) r Most common Intra-AS routing protocols: m RIP: Routing Information.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_a Routing Protocols: RIP, OSPF, BGP Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part upon.
1 Computer Networks Lecture 22 Distance Vector and Link State Routing Protocols; Intro to Internet Routing 11/19/2013.
Internet Protocols. ICMP ICMP – Internet Control Message Protocol Each ICMP message is encapsulated in an IP packet – Treated like any other datagram,
4: Network Layer4b-1 OSPF (Open Shortest Path First) r “open”: publicly available r Uses Link State algorithm m LS packet dissemination m Topology map.
Routing in the Inernet Outcomes: –What are routing protocols used for Intra-ASs Routing in the Internet? –The Working Principle of RIP and OSPF –What is.
Transport Layer3-1 Network Layer Every man dies. Not every man really lives.
CS 640: Introduction to Computer Networks Aditya Akella Lecture 11 - Inter-Domain Routing - BGP (Border Gateway Protocol)
1 Agenda for Today’s Lecture The rationale for BGP’s design –What is interdomain routing and why do we need it? –Why does BGP look the way it does? How.
IP. Classless Inter-Domain Routing Classful addressing scheme wasteful – IP address space exhaustion – A class B net allocated enough for 65K hosts Even.
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
Michael Schapira, Princeton University Fall 2010 (TTh 1:30-2:50 in COS 302) COS 561: Advanced Computer Networks
Inter-domain Routing Outline Border Gateway Protocol.
CS 640: Introduction to Computer Networks Aditya Akella Lecture 11 - Inter-Domain Routing - BGP (Border Gateway Protocol)
Border Gateway Protocol. Intra-AS v.s. Inter-AS Intra-AS Inter-AS.
1 Internet Routing 4/12/2012. Admin. r Exam 2 date: m Wednesday, May 2 at 2:00 p.m. m If you want to take the exam in another day (e.g. due to travel),
1 Network Layer: Routing Intra- and Inter-Domain Routing Y. Richard Yang 4/18/2016.
14 – Inter/Intra-AS Routing
Chapter 4: Network Layer
NAT – Network Address Translation
CS 3700 Networks and Distributed Systems
CS 3700 Networks and Distributed Systems
Border Gateway Protocol
ICMP ICMP – Internet Control Message Protocol
Chapter 4: Network Layer
Department of Computer and IT Engineering University of Kurdistan
Chapter 4: Network Layer
Chapter 4: Network Layer
Chapter 4: Network Layer
Computer Networks Protocols
Network Layer: Internet Inter-Domain Routing
Network: Policy Routing Analysis, DHCP
Presentation transcript:

1 Internet Routing 11/11/2009

Admin. r Assignment 3 2

Recap r Distance vector protocol r Link state protocol 3

Outline  Routing in the Internet  overview

Routing in the Internet r The Global Internet consists of Autonomous Systems (AS) interconnected with each other m An AS is identified by an AS Number (ASN), e.g. Yale ASN is 29 m try % whois -h whois.arin.net “a Yale“

6 Internet ISP Connectivity

7 Challenge of the Internet: Characterizing Internet Topology

Routing with AS r Internet routing is divided into intra-AS routing and inter-AS routing r Intra-AS m A protocol running insides an AS is called an Interior Gateway Protocol (IGP) RIP: Routing Information Protocol E/IGRP: Interior Gateway Routing Protocol (Cisco) OSPF: Open Shortest Path First IS-IS: very similar to OSPF (or should we say OSPF is very similar to IS-IS?) r Inter-AS m a protocol runs among AS’s is also called an Exterior Gateway Protocol (EGP) m for global connectivity, a single interdomain routing protocol

Intra-AS and Inter-AS: Example a b b a a C A B d c A.a A.c C.b B.a c b border (exterior gateway) routers interior (gateway) routers

b a AS C (RIP intra routing) Routing in the Internet: Example c AS B (OSPF intra routing) AS A (OSPF intra routing) eBGP iBGP Gateway routers participate in intradomain to learn internal routes. Gateway routers of diff. AS’s exchange routes using eBGP gateway routers of same AS share learned external routes using iBGP. i e f g h d

Many Routing Processes on a Single Router Forwarding Table OSPF domain RIP domain BGP OS kernel RIP process RIP routing table Forwarding Table Manager OSPF process OSPF Routing table BGP process BGP routing table

inter-AS routing between A and B Intra-AS and Inter-AS Routing Host h2 a b b a a C A B d c A.a A.c C.b B.a c b Host h1 Intra-AS routing within AS A intra-AS routing within AS B border (exterior gateway) routers interior (gateway) routers

Why Partition into Intra- and Inter-AS Routing? r This partition allows ASes flexibility to choose their own intra-AS routing protocols m autonomy r By aggregating many destinations inside an AS into a single destination in interdomain routing, it improves scalability m the partition is a type of hierarchical routing m hierarchical routing improves scalability: only a small number of routers are involved with outside

Yale Internet Connectivity Yale Qwest default routes /0 pointing to provider / /16 AT&T Internet2

Outline  Routing in the Internet o overview  BGP

BGP Setup

Internet Interdomain Routing: BGP r BGP (Border Gateway Protocol): the de facto standard r Path Vector protocol: m similar to Distance Vector protocol m a border gateway sends to a neighbor entire path (i.e., a sequence of ASes) to a destination, e.g., gateway X sends to neighbor N its path to dest. Z: path (X,Z) = X,Y1,Y2,Y3,…,Z m if N selects path(X, Z) advertised by X, then: path (N,Z) = N, path (X,Z) X N Z

BGP Operations (Simplified) Establish session on TCP port 179 Exchange all active routes Exchange incremental updates AS1 AS2 while (connection is ALIVE) exchange UPDATE message select best available route if route changes, export to neigh. BGP session

BGP Messages r Four types of messages m OPEN: opens TCP connection to peer and authenticates sender m UPDATE: advertises new path (or withdraws old) m KEEPALIVE keeps connection alive in absence of UPDATES; also ACKs OPEN request m NOTIFICATION: reports errors in previous msg; also used to close connection

Why Path Vector? r Path vector prevents counting-to-infinity problem r Path vector allows an AS to define local policies on the ASes of a given path

BGP Routing Decision Process routing cache select best path export path to neighbors route selection policy: rank paths export policy: which paths export to which neighbors

BGP Route Selection/Export Policies r Route selection m algorithm to select the best currently available route from routing cache (routing information base) m typical (Cisco) route selection policy highest local pref shortest AS path length prefer eBGP over iBGP … r Route export policy: m since the export of a path to a neighbor is an indication that the AS is willing to transport traffic for the neighbor, an AS may not export some routes to some neighbors (more later) Yale QwestAT&T Internet2

23 Routing: Example AS A (OSPF) AS B (OSPF intra routing) AS D AS C i b b->i: I can reach hosts in D; my path: BCD a1 a2 d d->a2: I can reach hosts in D; my path: D a1->i: I can reach hosts in D; my path: AD E F Export to E: i->e: I can reach hosts in D; path: IBCD AS I a2->a1: I can reach hosts in D; path: D choose BCD using i2 b->i2: I can reach hosts in D; my path: BCD i2 i2->i: I can reach hosts in D; path: BCD No Export to F

Hierarchical Routing May Pay a Price for Path Quality AS 4 AS 3 AS 2 AS 1

Outline r Admin. r BGP m Overview m BGP instability and stability condition 25

BGP Policy Interactions preferred less preferred The BAD GADGET example: - 0 is the destination - the route selection policy of each AS is to prefer its counter clock-wise neighbor Policy interaction causes routing instability !

Understanding Instability: P-Graph r Nodes in P-graph are feasible paths r A directed edge from path N 1 P 1 to P 1 m intuition: to let N 1 choose N 1 P 1, P 1 must be chosen and exported to N 1 r A directed edge from a lower ranked path to a higher ranked path m intuition: the higher ranked path should be considered first P-graph

Partial Order Graph and Convergence  If the P-graph has no loop, then BGP policy converges.  intuition: choose the node (i.e., a path) from the partial order graph with no out-going edge, choose the path, remove the path and all other lowered ranked paths of the same node; remove nodes if suffix removed; continue  Example: suppose we swap the order of 30 and

Partial Order Graph and BGP Convergence Preview: A reason we do not often see instability in the Internet is that: the current Internet ISP economy implies no loop in P-graph !

Internet Economy: Two Types of Business Relationship r Customer provider relationship m a provider is an AS that connects the customer to the rest of the Internet m customer pays the provider for the transit service m e.g., Yale is a customer of AT&T and QWEST r Peer-to-peer relationship m mutually agree to exchange traffic between their respective customers m there is no payment between peers provider customer peer provider provider to customer

Implication of Business Relationship on Policies r Route selection (ranking) policy: m the typical route selection policy is to prefer customers over peers/providers to reach a destination, i.e., Customer > pEer/Provider

customer provider customer peer Typical Export Policies provider customer peer provider customer peer routes learned from a customer are sent to all other neighbors routes learned from a provider are sent only to customers routes learned from a peer are sent only to customers case 1: routes learned from customer case 2: routes learned from provider case 3: routes learned from peer

Typical Export -> No-Valley Routing P1P1 A P2P2 IP traffic A advertises path to C, but not P 2 A advertises to C paths to P 1 and P 2 A advertises path to C, but not P 1 Suppose P 1 and P 2 are providers of A; A is a provider of C C A learns paths to C, P1, P2

Yale Internet Connectivity Yale Qwest default routes /0 pointing to provider / /16 AT&T Internet2

Typical Export Policies Imply Patterns of Routes r Assume a BGP path SABCD to destination AS D. Consider the business relationship between each pair: r Three types of business relationships: m PC (provider-customer) m CP (customer-provider) m PP (peer-peer) 35 S A B C D