CSC458 Lecture 6. Homework #1 Grades. Inter-domain Routing IP Addressing. Administrivia. Midterm will Cover Following Topics

Similar documents
Outline. Internet Routing. Alleviating the Problem. DV Algorithm. Routing Information Protocol (RIP) Link State Routing. Routing algorithms

Internetworking and Internet-1. Global Addresses

Exterior Gateway Protocols (BGP)

Inter-domain Routing. Outline. Border Gateway Protocol

Module 7. Routing and Congestion Control. Version 2 CSE IIT, Kharagpur

Internet Peering, IPv6, and NATs. Mike Freedman V Networks

CS 348: Computer Networks. - IP addressing; 21 st Aug Instructor: Sridhar Iyer IIT Bombay

Efficient Addressing. Outline. Addressing Subnetting Supernetting CS 640 1

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Dr. Phạm Trần Vũ

ITRI CCL. IP Routing Primer. Paul C. Huang, Ph.D. ITRI / CCL / N300. CCL/N300; Paul Huang 1999/6/2 1

Outline. EE 122: Interdomain Routing Protocol (BGP) BGP Routing. Internet is more complicated... Ion Stoica TAs: Junda Liu, DK Moon, David Zats

Computer Networks. Lecture 3: IP Protocol. Marcin Bieńkowski. Institute of Computer Science University of Wrocław

Internet Firewall CSIS Packet Filtering. Internet Firewall. Examples. Spring 2011 CSIS net15 1. Routers can implement packet filtering

The Internet. Internet Technologies and Applications

Border Gateway Protocol (BGP)

Route Discovery Protocols

Routing in Small Networks. Internet Routing Overview. Agenda. Routing in Large Networks

Based on Computer Networking, 4 th Edition by Kurose and Ross

Introduction to LAN/WAN. Network Layer (part II)

IP address format: Dotted decimal notation:

Inter-domain Routing Basics. Border Gateway Protocol. Inter-domain Routing Basics. Inter-domain Routing Basics. Exterior routing protocols created to:

IP Addressing. IP Addresses. Introductory material.

IP Addressing A Simplified Tutorial

IP Addressing Introductory material.

Border Gateway Protocol (BGP-4)

Transport and Network Layer

Routing Protocols. Interconnected ASes. Hierarchical Routing. Hierarchical Routing

Internet inter-as routing: BGP

6.263 Data Communication Networks

Internetworking and IP Address

Introduction to TCP/IP

Introduction. Internet Address Depletion and CIDR. Introduction. Introduction

IP Routing Configuring RIP, OSPF, BGP, and PBR

Router and Routing Basics

Lecture Computer Networks

BGP. 1. Internet Routing

8.2 The Internet Protocol

Chapter 3: Review of Important Networking Concepts. Magda El Zarki Dept. of CS UC Irvine

SUBNETS, CIDR, AND CLASSLESS ADDRESSING

Course Overview: Learn the essential skills needed to set up, configure, support, and troubleshoot your TCP/IP-based network.

Lecture 18: Border Gateway Protocol"

CS 5480/6480: Computer Networks Spring 2012 Homework 4 Solutions Due by 1:25 PM on April 11 th 2012

DG Forwarding Algorithm

CompTIA Exam N CompTIA Network+ certification Version: 5.1 [ Total Questions: 1146 ]

Masterkurs Rechnernetze IN2097

How To Understand Bg

Introduction to Routing

Network layer: Overview. Network layer functions IP Routing and forwarding

Introduction to IP v6

APNIC elearning: BGP Basics. Contact: erou03_v1.0

Cisco CCNP Optimizing Converged Cisco Networks (ONT)

Internet Protocol (IP) IP - Network Layer. IP Routing. Advantages of Connectionless. CSCE 515: Computer Network Programming IP routing

Layer 3 Routing User s Manual

Future Internet Technologies

GregSowell.com. Mikrotik Routing

Interconnecting Cisco Networking Devices Part 2

Using the Border Gateway Protocol for Interdomain Routing

Routing with OSPF. Introduction

Routing Protocols (RIP, OSPF, BGP)

RARP: Reverse Address Resolution Protocol

Computer Networks. Main Functions

CSE331: Introduction to Networks and Security. Lecture 8 Fall 2006

1. How many unique network IDs are there in class A addresses? # of unique hosts?

CLASSLESS INTER DOMAIN ROUTING - CIDR

Network layer. Assignment 3

PART IV. Network Layer

Dynamic Routing Protocols II OSPF. Distance Vector vs. Link State Routing

Chapter 4 Network Layer

CS 43: Computer Networks IP. Kevin Webb Swarthmore College November 5, 2013

Internet Control Message Protocol (ICMP)

Internet Protocols Fall Lectures 7-8 Andreas Terzis

How To Make A Network Address Prefix Smaller

Advanced Networking Routing: RIP, OSPF, Hierarchical routing, BGP

Technical Support Information Belkin internal use only

Internet Control Protocols Reading: Chapter 3

BGP overview BGP operations BGP messages BGP decision algorithm BGP states

ICS 351: Today's plan

COURSE AGENDA. Lessons - CCNA. CCNA & CCNP - Online Course Agenda. Lesson 1: Internetworking. Lesson 2: Fundamentals of Networking

Multihoming and Multi-path Routing. CS 7260 Nick Feamster January

Classful IP Addressing (cont.)

Datagram-based network layer: forwarding; routing. Additional function of VCbased network layer: call setup.

Agenda. Distributed System Structures. Why Distributed Systems? Motivation

Internet Working 5 th lecture. Chair of Communication Systems Department of Applied Sciences University of Freiburg 2004

Internet Protocol Address

IP Routing Configuring Static Routes

OSPF Version 2 (RFC 2328) Describes Autonomous Systems (AS) topology. Propagated by flooding: Link State Advertisements (LSAs).

: Interconnecting Cisco Networking Devices Part 2 v1.1

Internet Protocol: IP packet headers. vendredi 18 octobre 13

TCP/IP Fundamentals. OSI Seven Layer Model & Seminar Outline

04 Internet Protocol (IP)

IP addressing and forwarding Network layer

Lecture 8: Routing I Distance-vector Algorithms. CSE 123: Computer Networks Stefan Savage

Border Gateway Protocol BGP4 (2)

SSVP SIP School VoIP Professional Certification

Transcription:

CSC458 Lecture 6 Inter-domain Routing IP Addressing Stefan Saroiu http://www.cs.toronto.edu/syslab/courses/csc458 University of Toronto at Mississauga Homework #1 Grades Fraction of Students 100 80 60 40 20 0 0 0.25 0.5 0.75 1 1.25 1.5 1.75 2 Grade (out of 2) Administrivia Midterm will Cover Following Topics Midterm next week I won t be here the entire next week Joe Lim might supervise the midterm (or someone else) No calculators or books allowed 60 minutes, 5 questions Homework #1 will be returned at end of class Together with solutions Project #2 due on Friday Second half of tutorial today: Joe on project #2 Homework #2 due next Friday First half of tutorial today: Stefan on homework #2 Protocols and layering Encoding bits with signals: NRZ, NRZI, Manchester, 4B/5B Error detection and correction: parity, CRC, Hamming distance Latency and RTT calculation MAC Protocols: Wired: Aloha, CSMA/CD, Ethernet Wireless: CSMA/CA, RTS/CTS Contention-free: token ring, FDDI, DQDB

Midterm will Cover Following Topics (2) Midterm will Cover Following Topics (3) Bridging LANs, spanning tree algorithm IPv4 Header fields Fragmentation Path MTU ICMP Forwarding and routing Distance vector protocols: RIP, count-to-infinity, split horizon, split horizon with poison reverse Link state routing: Dijkstra algorithm, OSPF, cost metrics Inter-domain routing: BGP, AS, path vectors, multi-homing IP addressing: ARP, CIDR, hierarchical addressing That was the long version The short version is Everything so far including today s lecture Midterm will Cover following Readings Chapters 1-4 (except 3.3, 3.4, 4.4, 4.5) Fishnet projects 1 and 2 is fair game Administrivia Midterm next week I won t be here the entire next week Joe Lim might supervise the midterm (or someone else) No calculators or books allowed 60 minutes, 5 questions Homework #1 will be returned at end of class Together with solutions Project #2 due on Friday Second half of tutorial today: Joe on project #2 Homework #2 due next Friday First half of tutorial today: Stefan on homework #2

This Lecture Any Questions? Focus How do we make routing scale? Inter-domain routing ASes and BGP Application Presentation Session Transport Network Data Link Physical Structure of the Internet Inter-Domain Routing Inter-domain versus intra-domain routing You at work Peering point Consumer ISP Small corporation Large corporation Backbone service provider Large corporation Consumer ISP You at home Consumer ISP Peering point Network comprised of many Autonomous Systems (ASes) or domains To scale, use hierarchy: separate inter-domain and intra-domain routing Also called interior vs exterior gateway protocols (IGP/EGP) IGP = RIP, OSPF EGP = EGP, BGP 44 23 12 7 1123 321

Inter-Domain Routing Exterior Gateway Protocol (EGP) Border routers summarize and advertise internal routes to external neighbors and viceversa Border routers apply policy Internal routers can use notion of default routes Core is default-free ; routers must have a route to all networks in the world AS1 R1 R3 R2 Autonomous system 1 Border router R4 Autonomous system 2 Border router R5 R6 AS2 First major inter-domain routing protocol Constrained Internet to tree structure; no longer in use Stanford Berkeley BARRNET regional PARC NCAR NSFNET backbone Westnet regional UA UNM UNL MidNet regional KU ISU Border Gateway Protocol (BGP-4) Path Vectors EGP used in the Internet backbone today Features: Path vector routing Application of policy Operates over reliable transport (TCP) Uses route aggregation (CIDR) Similar to distance vector, except send entire paths e.g. 321 hears [7,12,44] stronger avoidance of loops supports policies (later) Modulo policy, shorter paths are chosen in preference to longer ones Reachability only no metrics 44 23 12 7 1123 321

An Ironic Twist on Convergence Policies Recently, it was realized that BGP convergence can undergo a process analogous to count-to-infinity! Prefix P In AS X View from here X 1 4 2 3 Choice of routes may depend on owner, cost, Business considerations Local policy dictates what route will be chosen and what routes will be advertised! e.g., X doesn t provide transit for B, or A prefers not to use X A X B AS 4 uses path 4 1 X. A link fails and 1 withdraws 4 1 X. So 4 uses 4 2 1 X, which is soon withdrawn, then 4 3 2 1 X, Result is many invalid paths can be explored before convergence Simplified Policy Roles Multi-Homing Providers sell Transit to their customers Customer announces path to their prefixes to providers in order for the rest of the Internet to reach their prefixes Providers announces path to all other Internet prefixes to customer C in order for C to reach the rest of the Internet Additionally, parties Peer for mutual benefit Peers A and B announce path to their customer s prefixes to each other but do not propagate announcements further Peering relationships aren t transitive Tier 1s peer to provide global reachability Connect to multiple providers for reliability, load sharing Provider Cust Provider Customer can choose the best outgoing path from any of the announcements heard from its providers Easy to control outgoing traffic, e.g, for load balancing Less control over what paths other parties will use to reach us Both providers will announce that they can reach to the customer Rest of Internet can choose which path to take to customer Hard for the the customer to influence this

Impact of Policies Example Operation over TCP Early Exit / Hot Potato if it s not for you, bail Most routing protocols operate over UDP/IP Combination of best local policies not globally best A BGP uses TCP TCP handles error control; reacts to congestion Allows for incremental updates Side-effect: asymmetry B Issue: Data vs. Control plane Shouldn t routing messages be higher priority than data? Key Concepts This Lecture Internet is a collection of Autonomous Systems (ASes) Policy dominates routing at the AS level Structural hierarchy helps make routing scalable BGP routes between autonomous systems (ASes) Focus How do we make routing scale? IP Addressing Hierarchy (prefixes, class A, B, C, subnets) Also allocation (DHCP, ARP) Application Presentation Session Transport Network Data Link Physical

Scalability Concerns IP Addresses Routing burden grows with size of an internetwork Size of routing tables Volume of routing messages Amount of routing computation To scale to the size of the Internet, apply: Hierarchical addressing Use of structural hierarchy Route aggregation Reflect location in topology; used for scalable routing Unlike flat Ethernet addresses Interfaces on same network share prefix Prefix administratively assigned (IANA or ISP) Addresses globally unique Routing only advertises entire networks by prefix Local delivery in a single network doesn t involve router (will make network precise later on) Getting an IP address Address Resolution Protocol (ARP) Old fashioned way: sysadmin configured each machine Dynamic Host Configuration Protocol (DHCP) One DHCP server with the bootstrap info Host address, gateway address, subnet mask, Find it using broadcast Addresses may be leased; renew periodically Stateless Autoconfiguration (in IPv6) Get rid of server reuse Ethernet addresses for lower portion of address (uniqueness) and learn higher portion from routers On a single link, need Ethernet addresses to send a frame source is a given, but what about destination? Requires mapping from IP to MAC addresses ARP is a dynamic approach to learn mapping Node A sends broadcast query for IP address X Node B with IP address X replies with its MAC address M A caches (X, M); old information is timed out (~15 mins) Also: B caches A s MAC and IP addresses, other nodes refresh

ARP Example IPv4 Address Formats To send first message use ARP to learn MAC address For later messages (common case) don t need to ARP Class A 0 7 24 Network Host I-am X Who-is X? <Message> time Class B Class C 1 0 1 1 0 14 16 Network Host 21 8 Network Host A B 32 bits written in dotted quad notation, e.g., 18.31.0.135 IPv6 Address Format Network Example 001 RegistryID ProviderID SubscriberID SubnetID InterfaceID 128.96.0.15 H1 R1 128.96.0.1 Network number: 128.96.0.0 128 bits written in 16 bit hexadecimal chunks Still hierarchical, just more levels 128.97.0.2 128.97.0.1 H3 128.98.0.14 Network number: 128.97.0.0 128.97.0.139 H2 R2 128.98.0.1 Network number: 128.98.0.0

Updated Forwarding Routine Subnetting More Hierarchy Used to be look up destination address for next hop Now addresses have network and host portions: If host: if destination network is the same as the host network, then deliver locally (without router). Otherwise send to the router If router: look up destination network in routing table to find next hop and send to next router. If destination network is directly attached then deliver locally. Split up one network number into multiple physical networks Helps allocation efficiency -- can hand out subnets Rest of internet does not see subnet structure subnet is purely internal to network aggregates routing info Network number Host number Class B address 111111111111111111111111 00000000 Subnet mask (255.255.255.0) Network number Subnet ID Host ID Subnetted address Subnet Example Updated Forwarding Routine 128.96.34.15 H3 H1 R1 Subnet mask: 255.255.255.128 Subnet number: 128.96.34.0 128.96.34.1 128.96.34.130 Subnet mask: 255.255.255.128 Subnet number: 128.96.34.128 128.96.33.14 128.96.34.129 R2 128.96.33.1 H2 128.96.34.139 Subnet mask: 255.255.255.0 Subnet number: 128.96.33.0 Used to know network from address (class A, B, C) Now need to search routing table for right subnet If host: easy, just substitute subnet for network If router: search routing table for the subnet that the destination belongs to, and use that to forward as before (Note that it will get a little more complicated later :)

CIDR (Supernetting) CIDR Example CIDR = Classless Inter-Domain Routing Generalize class A, B, C into prefixes of arbitrary length; now must carry prefix length with address Aggregate adjacent advertised network routes e.g., ISP has class C addresses 192.4.16 through 192.4.31 Really like one larger 20 bit address class Advertise as such (network number, prefix length) Reduces size of routing tables But IP forwarding is more involved Based on Longest Matching Prefix operation X and Y routes can be aggregated because they form a bigger contiguous range. Border gateway (advertises path to 11000 00000 00010 0000) /19 Regional network But aggregation isn t always possible. Why? can only aggregate power of 2 Corporation X (11000 00000 00010 00001) /20 Corporation Y (11000 00000 00010 00000) /20 IP Forwarding Revisited Key Concepts Routing table now contains routes to prefixes IP address and length indicating what bits are fixed Now need to search routing table for longest matching prefix, only at routers Search routing table for the prefix that the destination belongs to, and use that to forward as before There can be multiple matches; take the longest prefix Hierarchical address allocation helps routing scale Addresses are constrained by topology Only need to advertise and compute routes for networks Hide internal structure within a domain via subnets Keep host simple and let routers worry about routing ARP learns the mapping from IP to MAC address This is the IP forwarding routine used at routers.