Lecture Slide Rizwan Rehman, CCS. Classless and Subnet Address Extensions (CIDR) Topics: –There are problems with the IP addressing scheme we’ve studied.

Slides:



Advertisements
Similar presentations
TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_b Subnetting,Supernetting, CIDR IPv6 Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part upon.
Advertisements

Chapter 19 Network Layer: Logical Addressing Stephen Kim.
1 Computer Communication & Networks Lecture 17 & 18 Network Layer: Logical Addressing Waleed Ejaz.
1 IP: Internet Protocol Addresses. 2 Internet Protocol (IP) Only protocol at Layer 3 Fundamental in suite Defines –Internet addressing –Internet packet.
Winter CMPE 155 Week 8. Winter Router demos: background.
COS 420 DAY 7. Agenda Assignment 2 posted Due Feb 13 (next class) Individual Projects Assigned Due March 20 & 23 Classless And Subnet Address Extensions.
Oct 28, 2004CS573: Network Protocols and Standards1 IP: Routing and Subnetting Network Protocols and Standards Autumn
1 Spring Semester 2007, Dept. of Computer Science, Technion Internet Networking recitation #1 Subnet + CIDR.
1 Internet Networking Spring 2004 Tutorial 1 Subnetting and CIDR Proxy ARP.
1 Internet Networking Spring 2006 Tutorial 1 Subnetting and CIDR.
Oct 26, 2004CS573: Network Protocols and Standards1 IP: Routing and Subnetting Network Protocols and Standards Autumn
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
COS 420 Day 7. Agenda Assignment 2 Due Feb questions from text chaps 7-11 Midterm Exam on Feb 19 Chap 1-13 (maybe 12, were a little behind) All.
Slides of the course was made by TAs of this and previous semesters 1 Internet Networking Spring 2002 Tutorial 1 Subnets, Proxy ARP.
© MMII JW RyderCS 428 Computer Networks1 Mapping Internet to Physical Addresses  2 machines on a physical network can only communicate if they know each.
Slides of the course was made by TAs of this and previous semesters 1 Internet Networking Spring 2003 Tutorial 1 Subnets, Proxy ARP.
© 2007 Cisco Systems, Inc. All rights reserved.ICND1 v1.0—4-1 LAN Connections Constructing a Network Addressing Scheme.
1 CIDR Classless Inter-Domain Routing Rizwan Rehman, CCS, DU.
CS 6401 Efficient Addressing Outline Addressing Subnetting Supernetting.
1 TCOM 509 – Internet Protocols (TCP/IP) Lecture 02_b Instructor: Dr. Li-Chuan Chen Date: 09/08/2003 Based in part upon slides of Prof. J. Kurose (U Mass),
21-IP addressing Dr. John P. Abraham Professor UTPA.
IP Addressing. Dotted Decimal Notation IP addresses are written in a so-called dotted decimal notation Each byte is identified by a decimal number in.
Subnet & Classless Address Extensions Linda Wu (CMPT )
ECE 4110 – Internetwork Programming Subnetting, Supernetting, and Classless Addressing.
1 Internet Addresses (You should read Chapter 4 in Forouzan) IP Address is 32 Bits Long Conceptually the address is the pair ( NETID, HOSTID ) Addresses.
© MMII JW RyderCS 428 Computer Networking1 Reading  Make sure you read all of chapter 2 & 3.
Network Redundancy Multiple paths may exist between systems. Redundancy is not a requirement of a packet switching network. Redundancy was part of the.
Classless and Subnet Address Extensions (CIDR)
Classless and Subnet Address Extensions (CIDR)
1 Internet Protocol: Forwarding IP Datagrams Chapter 7.
G64INC Introduction to Network Communications Ho Sooi Hock Internet Protocol.
CSISCSIS Dr. ClincyLecture1 SUPERNETTING Although class A and B addresses are dwindling – there are plenty of class C addresses The problem with C addresses.
Efficient Addressing Outline Addressing Subnetting Supernetting CS 640.
TCP/IPTCP/IP Dr. ClincyLecture1 Chapter 5: Addressing (Part 2 of 3) Agenda Special Addresses Classful - Subnetting Classful - Supernetting.
Chapter 18 IP: Internet Protocol Addresses
Chapter 6 VLSM and CIDR.
Universal Identifier UNIVERSAL IDENTIFIER Universal network = globally accepted method for identifying each computer. Host identifier = host is identify.
Chapter 4 Objectives Upon completion you will be able to: Classful Internet Addressing Understand IPv4 addresses and classes Identify the class of an.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
Internet Protocol: Routing IP Datagrams Chapter 8.
Classful Internet Addresses Chapter 4. Universal Identifiers Designers of TCP/IP determined that each host on the internet would have a 32-bit identifier.
Hour 5 Subnetting 1. you will be able to Explain how subnets and supernets are used Explain the benefits of subnetting Develop a subnet mask that meets.
21-IP addressing Dr. John P. Abraham Professor UTPA.
CS470 Computer Networking Protocols
IP ADDRESSING Lecture 2: IP addressing Networks and Communication Department 1.
CS4500CS4500 Dr. ClincyLecture1 Lecture #1 Chapter 5: Addressing (part 1 of 3)
Delivery and Forwarding Chapter 18 COMP 3270 Computer Networks Computing Science Thompson Rivers University.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
IP – Subnetting and CIDR
IP: Addressing, ARP, Routing
Network Layer, and Logical Addresses
Internet Networking recitation #1
PART IV Network Layer.
CS4470 Computer Networking Protocols
Objective: Classful Internet Addressing
CS 1302 Computer Networks — Unit - 3 — — Network Layer —
Internetworking & Address Resolution
CS 428 Computer Networking
IP Addressing Introductory material.
CS 457 – Lecture 10 Internetworking and IP
Chapter 5 Addressing Dr. Clincy Lecture.
IP Addressing Introductory material.
Delivery and Routing of IP Packets
Dr. John P. Abraham Professor UTPA
Supernetting Recall: subnetting allows an organization to share a single IP network address among multiple physical networks Supernetting (a.k.a. classless.
IP Addressing Introductory material
Dr. John P. Abraham Professor UTRGV
Dr. John P. Abraham Professor UTRGV
Classless and Subnet Address Extensions (CIDR)
Dr. John P. Abraham Professor UTPA
Presentation transcript:

Lecture Slide Rizwan Rehman, CCS

Classless and Subnet Address Extensions (CIDR) Topics: –There are problems with the IP addressing scheme we’ve studied –We’ll study some ways to get around these problems

Review: IP Addresses

Problems with IP Addresses The designers of IP addresses did not foresee the Internet’s tremendous growth –Higher overhead to manage network addresses –Larger routing tables –IP addresses might one day be exhausted

Solution to IP Addresses Problems The same IP network prefix can be shared by multiple physical networks A site can choose to assign and use IP addresses in unusual ways internally as long as: –All hosts and routers at the site honor the site’s addressing scheme –The site’s addressing scheme is transparent to other sites on the internet

Strategy 1: Transparent Routers A network with a class A IP address can be extended: T H1 H2 H3 H

Transparent Routers (cont) Hosts on LAN are assigned IP addresses as if they were on WAN LAN does not need its own network prefix Traffic for hosts on LAN is multiplexed through T Other hosts and routers on the WAN do not know T exists

Transparent Routers Advantages –Require fewer network addresses (LAN doesn’t need a separate network prefix) –Load balancing Disadvantages –Require a large address space –Do not provide all the services of standard routers

Strategy 2: Proxy ARP Using ARP, map a single network prefix into two physical addresses R Router running proxy ARP Main network Hidden network H1H2H3 H4H5H6

Proxy ARP (cont) Gives the illusion that all hosts are on the same physical network Router R answers ARP requests on each network for hosts on the other R answers ARPs with its own hardware address (it lies) When R receives a datagram it forwards it to the correct physical address

Proxy ARP Advantages –Require fewer network addresses –Only the router running proxy ARP needs to know what’s going on Disadvantages –Can only be used if the network uses ARP for address resolution –Allows spoofing

Strategy 3: Subnet Addressing Hierarchical addressing R H1 Rest of the internet All traffic to Network Network H2 H3H

Subnet Addressing (cont) R receives all traffic for network R routes the datagram to a physical network based on bits in the hostid field of the IP address Another level has been added to the addressing hierarchy

Subnet Addressing (cont) Regular (Class B) IP address: New interpretation (locally only): netid hostid netid subnet hostid

Subnet Addressing (cont) Advantages –Minimizes network address usage –Accommodates growth Disadvantages –Added layer of complexity –Difficult to change once hierarchy is established

Subnet Addressing (cont) Flexible Allows 256 physical networks with 256 hosts each Allows 8 physical networks with 8192 hosts each netid subnet hostid netid sub hostid

Subnet Masks 32 bits –1 if the bit is part of the network address –0 if the bit is part of the host address Example - a class B network: Subnet mask: – netid subnet hostid

Subnet Masks Subnet bits do not have to be contiguous: –Mask = = subnet id = host id netid

Representing Subnet Masks in Dotted Decimal Notation Example - a class B network: Subnet mask: – Dotted Decimal: – netid subnet hostid

Representing Subnet Masks in 3-tuple Notation Subnet mask: – tuple notation –{,, } –-1 means “all ones” –{-1,-1,0}

Routing in the Presence of Subnets All hosts and routers must use a subnet routing algorithm R2R1H Net 3 (subnet of address N)Net 2 (subnet of address N) Net 1 (not a subnet address)

The Subnet Routing Algorithm Recall the standard routing table: –(netid, next hop) N = netid portion of IP address Compare N with netid Match = send datagram to next hop Routing when subnets are in use: –(subnet mask, netid, next hop) N = IP address & subnet mask Compare N with netid Match = send datagram to next hop

Using Subnet Masks for Routing Host-specific routes –( , ) –( , , ) Default routes –(default, ) –( , , ) Standard, non-subnet class B network –( , ) –( , , )

A Unified Routing Algorithm Extract the destination IP address, D, from the datagram and compute the netid, N If N matches any directly connected network address deliver the datagram directly over that network else for each entry (M,N,NH) in the routing table { I = M&D if (I == N) then send datagram to NH } if no matches were found declare a routing error

Broadcasting to Subnets IP address = –Broadcast to all hosts on network 128 What if network 128 has subnets? –Routers that interconnect the subnets must propagate the datagram to all physical networks –But the routers must take care not to route the datagrams in loops (reverse path forwarding) Can you broadcast to just one subnet? –Yes: {network, subnet, -1}

Summary Problem: IP v4 addresses (especially class B) would be exhausted Solutions: –Subnet addressing - conserve network addresses by using the same network address for multiple physical networks –New version of IP (v6) with larger addresses –Supernet addressing - conserve class B network addresses by allowing a single organization to use multiple class C network addresses