1 CS716 Advanced Computer Networks By Dr. Amir Qayyum.

Slides:



Advertisements
Similar presentations
Network Layer: Internet-Wide Routing & BGP Dina Katabi & Sam Madden.
Advertisements

Lecture 9 Overview. Hierarchical Routing scale – with 200 million destinations – can’t store all dests in routing tables! – routing table exchange would.
© 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.
Fundamentals of Computer Networks ECE 478/578 Lecture #18: Policy-Based Routing Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University.
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.1 Routing Working at a Small-to-Medium Business or ISP – Chapter 6.
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.
CS 164: Global Internet Slide Set In this set... More about subnets Classless Inter Domain Routing (CIDR) Border Gateway Protocol (BGP) Areas with.
Spring 2003CS 4611 Routing Outline Algorithms Scalability.
CS335 Networking & Network Administration Tuesday, May 18, 2010.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Exterior Gateway Protocols: EGP, BGP-4, CIDR Shivkumar Kalyanaraman Rensselaer Polytechnic Institute.
Routing and Routing Protocols
Routing.
14 – Inter/Intra-AS Routing
Spring 2002CS 4611 Routing Outline Algorithms Scalability.
Border Gateway Protocol(BGP) L.Subramanian 23 rd October, 2001.
UNICAST ROUTING PROTOCOLS Major Functions:  Define the domain of operation (Internal/External to the ISPs), and interaction with other protocols.
1 ECE453 – Introduction to Computer Networks Lecture 10 – Network Layer (Routing II)
CSS 432: Subnetting, CIDR, and Global Internet
Inter-domain Routing Outline Border Gateway Protocol.
1 Chapter 27 Internetwork Routing (Static and automatic routing; route propagation; BGP, RIP, OSPF; multicast routing)
Dr. John P. Abraham Professor University of Texas Pan American Internet Routing and Routing Protocols.
1 Computer Communication & Networks Lecture 22 Network Layer: Delivery, Forwarding, Routing (contd.)
1 Routing Outline Algorithms Scalability. 2 Overview Forwarding vs Routing –forwarding: to select an output port based on destination address and routing.
Introduction to BGP.
1 Introduction to Computer Networks Ilam University By: Dr. Mozafar Bag-Mohammadi Routing.
Routing and Routing Protocols Routing Protocols Overview.
1 Chapter 27 Internetwork Routing (Static and automatic routing; route propagation; BGP, RIP, OSPF; multicast routing)
Routing protocols Basic Routing Routing Information Protocol (RIP) Open Shortest Path First (OSPF)
1 Routing Distance Vector Routing Link State Routing Hierarchical Routing Routing for Mobile Hosts.
1 Introduction to Computer Networks University of Ilam By: Dr. Mozafar Bag-Mohammadi Routing.
14-Oct-154/598N: Computer Networks Internet Structure - Past NSFNET backbone Stanford BARRNET regional Berkeley PARC NCAR UA UNM Westnet regional UNL KU.
Routing in the Internet The Global Internet consists of Autonomous Systems (AS) interconnected with eachother: Stub AS: small corporation Multihomed AS:
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Exterior Gateway Protocols: BGP-4, CIDR Shivkumar Kalyanaraman Rensselaer Polytechnic Institute.
1 Internet Routing. 2 Terminology Forwarding –Refers to datagram transfer –Performed by host or router –Uses routing table Routing –Refers to propagation.
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 Introduction to Computer Networks University of Ilam By: Dr. Mozafar Bag-Mohammadi Routing.
Lecture 18 Internet Routing: The goal is to find any route that is loop free- Global optimization is a distant dream depending on economic and political.
CSCI-1680 Network Layer: Inter-domain Routing Based partly on lecture notes by Rob Sherwood, David Mazières, Phil Levis, Rodrigo Fonseca John Jannotti.
23-Dec-154/598N: Computer Networks Overview 4.2: Routing Forwarding vs Routing –forwarding: to select an output port based on destination address and routing.
An internet is a combination of networks connected by routers. When a datagram goes from a source to a destination, it will probably pass through many.
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.
Spring 2010CS 3321 Interdomain Routing. Spring 2010CS 3322 How to Make Routing Scale Flat versus Hierarchical Addresses Inefficient use of Hierarchical.
Spring 2006CS 3321 Interdomain Routing. Spring 2006CS 3322 How to Make Routing Scale Flat versus Hierarchical Addresses Inefficient use of Hierarchical.
1 Chapter 4: Internetworking (IP Routing) Dr. Rocky K. C. Chang 16 March 2004.
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.
Chapter 25 Internet Routing. Static Routing manually configured routes that do not change Used by hosts whose routing table contains one static route.
Spring 2008CPE Computer Networks1 Routing: Part II Outline Algorithms Scalability Reading: Section 4.3.
Inter-domain Routing Outline Border Gateway Protocol.
1. 2  An autonomous system is a region of the Internet that is administered by a single entity.  Examples of autonomous regions are:  UVA’s campus.
© 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.
Routing and Routing Protocols CCNA 2 v3 – Module 6.
Chapter 4: Network Layer
Working at a Small-to-Medium Business or ISP – Chapter 6
Border Gateway Protocol
BGP 1. BGP Overview 2. Multihoming 3. Configuring BGP.
Border Gateway Protocol
Chapter 4: Network Layer
Net 323 D: Networks Protocols
Routing.
Net 323 D: Networks Protocols
Inter-domain Routing Outline Homework #3 solutions
Introduction to Computer Networks
Chapter 4: Network Layer
Working at a Small-to-Medium Business or ISP – Chapter 6
Computer Networks Protocols
Routing.
Presentation transcript:

1 CS716 Advanced Computer Networks By Dr. Amir Qayyum

Lecture No. 24

Supernetting/CIDR CIDR: Classless Inter-Domain Routing Compromise in address utilization vs scalability Eliminate class notion; generalize subnet notion All routers must understand CIDR addressing –Longest match in the table

Supernetting/CIDR Assign block of contiguous network numbers to nearby networks –Restrict block sizes to powers of 2 –Use bit mask(CIDR mask) to identify block size

CIDR Specify network with (network#, mask bits) –Equivalent to (network#, # of hosts) Block of 8 class C networks may be treated as one Organizations can still use subnetting internally ! Routing table entries look like: subnet #mask lengthnext hop Interface Interface R R2 default0R3

CIDR Growth CIDR/supernetting allows hierarchical development Assign block of addresses to regional provider (e.g., /9 to BARRNET) Regional provider subdivides addresses Can hand out to subregional providers (e.g., /16 to Berkeley) Who in turn hand out to smaller organization (e.g., /21 to Berkeley CS Dept)

Routing in Large Scale Networks

Route Propagation Know a smarter router –Hosts know local router –Local routers know site routers –Site routers know core router –Core routers know everything Autonomous System (AS) –Corresponds to an administrative domain –Examples: university, company, backbone network –Assign each AS a 16-bit number

Route Propagation Two-level route propagation hierarchy –Interior gateway protocol (each AS selects its own) –Exterior gateway protocol (Internet-wide standard) AS’s represent a third hierarchy –Define routing domains –Based on notion of autonomy of control

Notion of Autonomous Systems (AS) Intradomain routing (within an AS) –Performed using domain-specific algorithm –Selected by domain administrator (autonomously) –Allows heterogeneous interior gateway protocols Interdomain routing (between AS’s) –Performed using standard global algorithm –Homogeneous exterior gateway protocol

Intra-domain (Interior GW) Protocols Routing Information Protocol (RIP) –From the early Internet, developed for XNS –Part of Berkeley Software Distribution (BSD) Unix –Distance-vector algorithm –Based on hop count (infinity set to 16 hops)

Intra-domain (Interior GW) Protocols Open Shortest Path First (OSPF) –Internet standard (RFC 2328), “open” means public –Based on link-state algorithm –Authenticates messages –Load balances across links

Inter-domain (Exterior GW) Protocols Very complex and difficult –Different metrics, security, large scale: 140K prefixes! Focuses on reachability rather than optimality –Support for very flexible policies

Inter-domain (Exterior GW) Protocols Exterior Gateway Protocol (EGP) –Defined on Internet with tree structure –Embodied (and enforced) tree structure –Had to be replaced eventually –Used distance-vector updates –Replaced by Border Gateway Protocol (BGP)

EGP Messages Neighbor acquisition –One router requests that another be its peer –Peers exchange reachability information Neighbor reachability –One router periodically tests if the another is still reachable –Exchange HELLO/ACK messages –Uses a k-out-of-n rule Routing updates –Peers periodically exchange their routing tables (distance-vector)

BGP-4: Border Gateway Protocol Internet is an arbitrarily interconnected set of AS’s Two types of traffic –Local: begins or ends within an AS –Transit: moves through an AS

BGP-4: Border Gateway Protocol Three types of AS’s –Stub: one single connection to one other AS; carries local traffic only –Multihomed: connections to multiple other AS’s, but refuses to carry transit traffic –Transit: connections to multiple other AS’s and designed to carry both transit and local traffic

BGP-4: Borger Gateway Protocol Each AS has: –One or more border gateways (routers) to handle inter-AS traffic –One or more BGP speakers that participate in routing protocol: establish BGP sessions to exchange messages

BGP-4: Borger Gateway Protocol BGP speaker advertises: –Names of networks within the AS –Names of other reachable networks through the AS (transit AS only) –Full path information (intra-domain protocols use heterogeneous metrics); path-vector routing –Withdrawn routes/negative advertisements (cancel previously advertised route)

BGP Path-Vector Routing Example AS4 advertises and as local networks Speaker for AS2 advertises reachability to these networks –Network and can be reached via AS4, and network and via AS5 Speaker for backbone advertises –Networks , , , and can be reached along the path (AS1, AS2, AS4 or AS5). Backbone network (AS 1) Regional provider A (AS 2) Regional provider B (AS 3) Customer P (AS 4) Customer Q (AS 5) Customer R (AS 6) Customer S (AS 7)

BGP-4 - Details Full path in BGP messages to avoid loops –Best route according to local policies is advertised –No obligation to advertise route to known destinations 16 bit AS numbers are uniquely assigned –Stub ASs do not need a unique AS number

BGP-4 - Details BGP-4 designed to support classless addresses –Update messages contain prefix & its length (10.1/16) Update messages are reliably sent using TCP –Occasional “keepalive” messages if nothing changes

Building Scalable Networks … Subdivided the routing problem into manageable parts –New level of hierarchy is introduced Complexity of interdomain routing: –Order of number of ASs Complexity of interdomain routing: –Ooder of networks in an AS

Integrating Interdomain and Intradomain Routing How routers in a domain get routing information ? In a stub AS with single border router –Inject a default route in intradomain routing protocol

Integrating Interdomain and Intradomain Routing In a domain with multiple border routers (any AS) –Border routers inject specific routes learned from outside, with some cost In backbone networks, too costly to inject too many outside routes in intradomain protocol –Use Interior BGP (IBGP) to redistribute outside routes