C14b: Classless Intradomain Routing

Similar documents
Chapter 3 Internetworking

CISC 7332X T6. C12a: LAN Switching. Hui Chen Department of Computer & Information Science CUNY Brooklyn College. 11/13/2018 CUNY Brooklyn College

C13a: Packet Switching

C13b: Routing Problem and Algorithms

Internetworking: Global Internet and MPLS. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

C14a: Internetworks and The Internet

Computer Network Fundamentals Spring Week 4 Network Layer Andreas Terzis

COMP 631: NETWORKED & DISTRIBUTED SYSTEMS 9/6/16 COMP 631: NETWORKED & DISTRIBUTED SYSTEMS. IP Addressing. Jasleen Kaur. Fall 2016

CH. 3 IP FORWARDING AND ROUTING

L10: Simple Internetworking. Hui Chen, Ph.D. Department of Engineering & Computer Science Virginia State University Petersburg, VA 23806

CS 457 Networking and the Internet. Problems. Mechanisms 9/21/16. Fall 2016 Indrajit Ray

IPv4 addressing, NAT. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley.

L8: Packet Switching. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

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

L2: Bandwidth and Latency. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

Internetworking Part 2

L1: Introduction. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

5. Classless and Subnet Address Extensions 최양희서울대학교컴퓨터공학부

Transition to IPv6. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

CIDR VLSM AS. รศ.ดร. อน นต ผลเพ ม Asso. Prof. Anan Phonphoem, Ph.D.

L3: Building Direct Link Networks I. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

Overview 4.2: Routing

IP: Routing and Subnetting

Copyright 2010, Elsevier Inc. All rights Reserved

IP Addressing. Introductory material. An entire module devoted to IP addresses. Pedro Brandão (PhD) University of Évora

Basic Idea. Routing. Example. Routing by the Network

Routing by the Network

L9: Bridges and LAN Switches. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

The Routing Table: A Closer Look

Subnetting/Supernetting and Classless Addressing

Chapter 18. Introduction to Network Layer

Lecture 8 Network Layer: Logical addressing

Internetworking Part 2

Basics of communication. Grundlagen der Rechnernetze Introduction 31

CS 457 Networking and the Internet. Addressing. Topics 9/15/16. Fall 2016 Indrajit Ray

Inter-networking. Problem. 3&4-Internetworking.key - September 20, LAN s are great but. We want to connect them together. ...

Chapter 18 and 22. IPv4 Address. Data Communications and Networking

Chapter 5. Subnetting/Supernetting and Classless Addressing

IP Addresses. IP Addresses

L5: Building Direct Link Networks III. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

Internet Addresses Reading: Chapter 4. 2/11/14 CS125-myaddressing

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

Subnetting/Supernetting and Classless Addressing

Programming Internet with Socket API. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

Lecture 12: Aggregation. CSE 123: Computer Networks Alex C. Snoeren

Network Layer Protocols

ECE 158A: Lecture 7. Fall 2015

C18: Network Fundamentals and Reliable Sockets

IP Addresses McGraw-Hill The McGraw-Hill Companies, Inc., 2000

Routing in Internet. Problem. Given set of nodes, how do routers acquire info about neighbors to construct the routing tables?

VLSM and CIDR. Routing Protocols and Concepts Chapter 6. Version Cisco Systems, Inc. All rights reserved. Cisco Public 1

ECE 461 Internetworking Fall Quiz 1

Lecture 12: Addressing. CSE 123: Computer Networks Alex C. Snoeren

CS 5520/ECE 5590NA: Network Architecture I Spring Lecture 10: IP Routing and Addressing Extensions

EPL606. Internetworking. Part 2a. 1Network Layer

The Interconnection Structure of. The Internet. EECC694 - Shaaban

Lecture 8. Basic Internetworking (IP) Outline. Basic Internetworking (IP) Basic Internetworking (IP) Service Model

Static Routing and Serial interfaces. 1 st semester

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

Lecture 8. Reminder: Homework 3, Programming Project 2 due on Thursday. Questions? Tuesday, September 20 CS 475 Networks - Lecture 8 1

Using IP Addressing in the Network Design

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

Subnet Design and IP Addressing

1 Connectionless Routing

End-to-End Protocols: UDP and TCP. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

12 Advanced IP Addressing

FIGURE 3. Two-Level Internet Address Structure. FIGURE 4. Principle Classful IP Address Formats

RIP Version 2. The Classless Brother

CS 3516: Advanced Computer Networks

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing

Redesde Computadores (RCOMP)

RSC Part II: Network Layer. 3. IP addressing. II.5 Network routing. II. 1 Basic Network layer concepts II.2 Introduction to IP

CS 3516: Advanced Computer Networks

SCALABLE INTERNET ROUTING

Network layer: Overview. Network Layer Functions

NETWORK LAYER: IP Addressing

CSCI Computer Networks Fall 2016

internet technologies and standards

Chapter 6. Variable Length Subnet Masking (VLSM) Classless Inter-Domain Routing (CIDR) CCNA2-1 Chapter 6

Problem Set 8 Due: Start of Class, November 16

IP addressing. Overview. IP addressing Issues and solution Variable Length Subnet Mask (VLSM)

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

Computer Networking Background

Computer Networks and Data Systems

CS 348 Computer Networks. IP and Routing. Indian Institute of Technology, Bombay

IP Addressing & Interdomain Routing. Next Topic

CS 43: Computer Networks. 21: The Network Layer & IP November 7, 2018

EC441 Fall 2018 Introduction to Computer Networking Chapter4: Network Layer Data Plane

IP - The Internet Protocol

Computer Networks Prof. Ashok K. Agrawala

Computer Networks and Data Systems

Vorlesung Kommunikationsnetze

Other Developments: CIDR

Chapter 06 IP Address

Support for Classless Internet Addresses. in the RIPE Database. Tony Bates Daniel Karrenberg Marten Terpstra. Document ID: ripe-121 ABSTRACT

CCE1030 Computer Networking

Communication Networks ( ) / Fall 2013 The Blavatnik School of Computer Science, Tel-Aviv University. Allon Wagner

Subnetting and Classless Addressing

EECS 122, Lecture 17. The Distributed Update Algorithm (DUAL) Optimization Criteria. DUAL Data Structures. Selecting Among Neighbors.

CS4450. Computer Networks: Architecture and Protocols. Lecture 13 THE Internet Protocol. Spring 2018 Rachit Agarwal

Transcription:

CISC 7332X T6 C14b: Classless Intradomain Routing Hui Chen Department of Computer & Information Science CUNY Brooklyn College 11/27/2018 CUNY Brooklyn College 1

Acknowledgements Some pictures used in this presentation were obtained from the Internet The instructor used the following references Larry L. Peterson and Bruce S. Davie, Computer Networks: A Systems Approach, 5th Edition, Elsevier, 2011 Andrew S. Tanenbaum, Computer Networks, 5th Edition, Prentice-Hall, 2010 James F. Kurose and Keith W. Ross, Computer Networking: A Top-Down Approach, 5th Ed., Addison Wesley, 2009 Larry L. Peterson s (http://www.cs.princeton.edu/~llp/) Computer Networks class web site 11/27/2018 CUNY Brooklyn College 2

Outline Problem to scale to global network Many networks organized in hierarchical manner Scarcity of IP address Solution Subnetting (legacy) Supernetting (classless routing, legacy) Classless routing (CIDR) 11/27/2018 CUNY Brooklyn College 3

Is 2 32 too small a number? IPv4 address 32 bit integers ~ 2 32 = 4,294,967,296 Many addresses, but not too many networks! A: 0 Network 7 24 Host Classes B: 1 0 14 16 Network Host 21 8 C: 1 1 0 Network Host Testimony: http://www.iana.org/assignments/ipv4-addressspace/ Examples A network of two nodes needs a class C network A network of 256 nodes needs a class B network 11/27/2018 CUNY Brooklyn College 4

Can the number of networks be too many? How many class B networks are there? Potentially how big a routing table can be? A: 0 Network 7 24 Host Classes B: 1 0 14 16 Network Host 21 8 C: 1 1 0 Network Host 11/27/2018 CUNY Brooklyn College 5

Subnetting Add another level to address/routing hierarchy: subnet Subnet masks define variable partition of host part of class A and B addresses Subnets visible only within site 11/27/2018 CUNY Brooklyn College 6

Subnetting: Example 11/27/2018 CUNY Brooklyn College 7

Subnetting: Example Forwarding Table at Router R1 11/27/2018 CUNY Brooklyn College 8

Forwarding Algorithm D = destination IP address for each entry < SubnetNum, SubnetMask, NextHop> D1 = SubnetMask & D if D1 = SubnetNum if NextHop is an interface deliver datagram directly to destination else deliver datagram to NextHop (a router) 11/27/2018 CUNY Brooklyn College 9

Subnetting: Discussion Would use a default router if nothing matches Subnet masks do not have to align with a byte boundary Subnet masks need not to be contiguous 1 s 255.255.1.0 is OK 11111111 11111111 00000001 00000000 What is subnet number of IP address 128.96.34.1? 10000000 01100000 00100010 00000000 & 11111111 11111111 00000001 00000000 10000000 01100000 00000000 00000000 128.96.0.0 can not directly tell from the IP address In practice, use contiguous 1 s Multiple subnets can be on a single physical network Subnets not visible from the rest of the Internet 11/27/2018 CUNY Brooklyn College 10

Subnetting: Discussion How do you tell whether an IP address is on a given subnet? 11/27/2018 CUNY Brooklyn College 11

Exercise C14b-1 State to what next hop the IP packets addressed to each of the following destinations will be delivered 11/27/2018 CUNY Brooklyn College 12

Scaling Problem Need to address two scaling concerns in the Internet The growth of backbone routing table as more and more network numbers need to be stored in them Potential exhaustion of the 32-bit address space Address assignment efficiency Arises because of the IP address structure with class A, B, and C addresses Forces us to hand out network address space in fixed-size chunks of three very different sizes A network with two hosts needs a class C address: Address assignment efficiency = 2/255 = 0.78 A network with 256 hosts needs a class B address Address assignment efficiency = 256/65535 = 0.39 11/27/2018 CUNY Brooklyn College 13

First Attempt: No to Class B? Exhaustion of IP address space centers on exhaustion of the class B network numbers Solution Say NO to any Autonomous System (AS) that requests a class B address unless they can show a need for something close to 64K addresses Instead give them an appropriate number of class C addresses For any AS with at least 256 hosts, we can guarantee an address space utilization of at least 50% What is the problem with this solution? 11/27/2018 CUNY Brooklyn College 14

First Attempt: No to Class B? Problem with this solution Excessive storage requirement at the routers. If a single AS has, say 16 class C network numbers assigned to it, Every Internet backbone router needs 16 entries in its routing tables for that AS This is true, even if the path to every one of these networks is the same If we had assigned a class B address to the AS The same routing information can be stored in one entry Efficiency = 16 255 / 65, 536 = 6.2% 11/27/2018 CUNY Brooklyn College 15

Addressing Scaling Problem Classless Inter-Domain Routing (CIDR) Addresses two scaling concerns in the Internet Backbone routing tables are getting big Potential exhaustion of the 32-bit address space Balancing two factors Minimize the number of routes that a router needs to know Allocate addresses efficiently. CIDR uses aggregate routes Uses a single entry in the forwarding table to tell the router how to reach a lot of different networks Breaks the rigid boundaries between address classes 11/27/2018 CUNY Brooklyn College 16

Classless Addressing: Example Consider an AS with 16 class C network numbers. Instead of handing out 16 addresses at random, hand out a block of contiguous class C addresses Suppose we assign the class C network numbers from 192.4.16 through 192.4.31 Observe that top 20 bits of all the addresses in this range are the same (11000000 00000100 0001) We have created a 20-bit network number (which is in between class B network number and class C number) Requires to hand out blocks of class C addresses that share a common prefix (sometimes, called supnetting) 11/27/2018 CUNY Brooklyn College 17

Classless Addressing: Notation Requires to hand out blocks of addresses that share a common prefix Convention Place a /X after the prefix where X is the prefix length in bits Example 20-bit prefix for all the networks 192.4.16 through 192.4.31: 192.4.16/20 A single class C network number, which is 24 bits long: 192.4.16/24 11/27/2018 CUNY Brooklyn College 18

Routing and Classless Addressing How do the routing protocols handle this classless addresses It must understand that the network number may be of any length Represent network number with a single pair <length, value> All routers must understand CIDR addressing 11/27/2018 CUNY Brooklyn College 19

Routing and Classless Addressing: Example Route aggregation with CIDR 11/27/2018 CUNY Brooklyn College 20

IP Forwarding Revisited Original assumptions in IP forwarding mechanism It can find the network number from destination IP address in a packet Then look up that number in the forwarding table Need to change this assumption in case of CIDR 11/27/2018 CUNY Brooklyn College 21

IP Forwarding in CIDR Prefixes may be of any length, from 2 to 32 bits Prefixes in the forwarding tables may overlap Some addresses may match more than one prefix Example Both 171.69/16 and 171.69.10/24 may coexist in the forwarding table of a single router A packet destined to 171.69.10.5 clearly matches both prefixes. Principle of longest match A packet destined to 171.69.10.5 matches prefix 171.69.10/24 A packet destined to 171.69.20.5 matches 171.69/16 11/27/2018 CUNY Brooklyn College 22

Exercise C14b-2 State to what next hop the IP packets addressed to each of the following destinations will be delivered 11/27/2018 CUNY Brooklyn College 23

Questions? Subnetting Supernetting Classless addressing routing Network prefix and length of prefix 11/27/2018 CUNY Brooklyn College 24