Oct 28, 2004CS573: Network Protocols and Standards1 IP: Routing and Subnetting Network Protocols and Standards Autumn 2004-2005.

Slides:



Advertisements
Similar presentations
Introduction to IPv6 Presented by: Minal Mishra. Agenda IP Network Addressing IP Network Addressing Classful IP addressing Classful IP addressing Techniques.
Advertisements

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.
1 IPv6. 2 Problem: 32-bit address space will be completely allocated by Solution: Design a new IP with a larger address space, called the IP version.
4 IP Address (IPv4)  A unique 32-bit number  Identifies an interface (on a host, on a router, …)  Represented in dotted-quad notation
1 Computer Communication & Networks Lecture 17 & 18 Network Layer: Logical Addressing Waleed Ejaz.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 25 Introduction to Computer Networks.
CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
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 18. IP: Internet Protocol Addresses
1 IP: Internet Protocol Addresses. 2 Internet Protocol (IP) Only protocol at Layer 3 Fundamental in suite Defines –Internet addressing –Internet packet.
IP Address 1. 2 Network layer r Network layer protocols in every host, router r Router examines IP address field in all IP datagrams passing through it.
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.
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
11- IP Network Layer4-1. Network Layer4-2 The Internet Network layer forwarding table Host, router network layer functions: Routing protocols path selection.
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.
Subnetting and CIDR Textbook Ch 3.2.5
Lecture Slide Rizwan Rehman, CCS. Classless and Subnet Address Extensions (CIDR) Topics: –There are problems with the IP addressing scheme we’ve studied.
CS 6401 Efficient Addressing Outline Addressing Subnetting Supernetting.
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.
Types of Addresses in IPv4 Network Range
Subnet & Classless Address Extensions Linda Wu (CMPT )
ECE 4110 – Internetwork Programming Subnetting, Supernetting, and Classless Addressing.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 4: Addressing in an Enterprise Network Introducing Routing and Switching in the.
Classless and Subnet Address Extensions (CIDR)
Classless and Subnet Address Extensions (CIDR)
G64INC Introduction to Network Communications Ho Sooi Hock Internet Protocol.
Efficient Addressing Outline Addressing Subnetting Supernetting CS 640.
Chapter 18 IP: Internet Protocol Addresses
Introduction to IPv6 Presented by:- ASHOK KUMAR MAHTO(09-026) & ROHIT KUMAR(09-034), BRANCH -ECE.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Addressing in an Enterprise Network Introducing Routing and Switching in the.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 4: Addressing in an Enterprise Network Introducing Routing and Switching in the.
1 Network Layer Lecture 15 Imran Ahmed University of Management & Technology.
Chapter 4 Objectives Upon completion you will be able to: Classful Internet Addressing Understand IPv4 addresses and classes Identify the class of an.
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.
Jan 24, 2008CS573: Network Protocols and Standards1 The Internet Protocol: Related Protocols and Standards (Subnetting, ICMP) Network Protocols and Standards.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
CIDR Classless Inter Domain Routing Give the IP address space some breathing room! Basic idea: allocate the remaining IP addresses in variable-size blocks.
Network Layer4-1 Datagram networks r no call setup at network layer r routers: no state about end-to-end connections m no network-level concept of “connection”
Routing and Addressing
CS470 Computer Networking Protocols
Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 19 Omar Meqdadi Department of Computer Science and Software Engineering University.
1 Lecture, November 20, 2002 Message Delivery to Processes Internet Addressing Address resolution protocol (ARP) Dynamic host reconfiguration protocol.
COMPUTER NETWORKS CS610 Lecture-26 Hammad Khalid Khan.
TCP/IP Addressing and Subnetting. IP Addressing Roadmap Format of IP Addresses Traditional Class Networks Network Masks Subnetting Supernetting Special.
IP Addressing. A 32-bit logical naming convention A dotted-decimal notation is used: – –Each number represents 8 bits. Number is Part.
IP – Subnetting and CIDR
Binary Concepts By: Nathan Miller.
Introduction to Networks
IP: Addressing, ARP, Routing
Internet Networking recitation #1
Internet technologies
Chapter-5 TCP/IP Suite.
CS4470 Computer Networking Protocols
Objective: Classful Internet Addressing
The IP addresses are unique. The address space of IPv4 is 2 32 or 4,294,967,296.
Internetworking & Address Resolution
CS 457 – Lecture 10 Internetworking and IP
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
Planning the Addressing Structure
Scaling the Network: Subnetting and Other Protocols
CS 31006: Computer Networks – Moving From End-to-End To Per Hop
Classless and Subnet Address Extensions (CIDR)
Dr. John P. Abraham Professor UTPA
Presentation transcript:

Oct 28, 2004CS573: Network Protocols and Standards1 IP: Routing and Subnetting Network Protocols and Standards Autumn

Oct 28, 2004CS573: Network Protocols and Standards2 Issues in Addressing A large corporate/campus environment Large number of Local Area Networks Some with fewer than 256 hosts Some with more than 256 hosts If each physical network is assigned a network number: Immense administrative overhead to manage a large number of network addresses Routing tables in routers become extremely large (one entry for each physical network) Insufficient number of class B prefixes to cover medium sized networks (having more than 256 hosts)

Oct 28, 2004CS573: Network Protocols and Standards3 Subnetting Solution: Provide the campus with a single class B network Give freedom to the campus network admin to allocate host numbers to hosts From outside, the whole campus is simply known by the class B network ID Inside, there may be a hierarchy that remains transparent to the outside world

Oct 28, 2004CS573: Network Protocols and Standards4 Subnetting Consider a class B network How to allocate host numbers to hosts? A single LAN is out of question If host numbers are assigned randomly, i.e., without any hierarchy, the routers inside the network will have to deal with large tables – one entry per host Thus, a hierarchical structure is required

Oct 28, 2004CS573: Network Protocols and Standards5 Subnetting Physical Network (Subnet 1) Physical Network (Subnet 2) Physical Network (Subnet 3) Physical Network (Subnet 4) R R R R R H H H H H HH H H H H H

Oct 28, 2004CS573: Network Protocols and Standards6 Subnetting R Internet H1H2 H4H3 Network Network H1 wants to send an IP datagram to H3: Old addressing dictates it is a “direct delivery” With subnetting, it may become “indirect” R is not a Proxy ARP router! Subnet 1 Subnet 2

Oct 28, 2004CS573: Network Protocols and Standards7 Subnetting We previously divided IP addresses in a network portion and a host portion More generally, think of a 32-bit IP address as having an Internet part and a Local part Internet part of the IP address identifies a site (possibly with many physical networks) The local portion identifies a physical network and host at that site Internet PartLocal Part Internet PartSubnetHost

Oct 28, 2004CS573: Network Protocols and Standards8 Subnetting Examples: Class B IP address Internet PartSubnetHost 16bits 8bits 8bits Internet PartSubnetHost 16bits3bits 13bits

Oct 28, 2004CS573: Network Protocols and Standards9 Subnet Implementation Subnet Mask: Specifies the bits of the IP address used to identify the subnet Internet Part of AddressSubnetHost 16bits 8bits 8bits Internet Part of AddressSubnetHost Subnet Mask (32bits) 16bits3bits 13bits

Oct 28, 2004CS573: Network Protocols and Standards10 Subnetting It is recommended that sites use contiguous subnet masks Avoid masks such as When choosing a subnet mask, balance: Size of networks Number of networks Expected growth Ease of maintenance It is possible to use different masks in different parts of the network

Oct 28, 2004CS573: Network Protocols and Standards11 Subnet Routing Conventional routing table entry (network address, next hop address) Network address format is predetermined for a given class (e.g., first 16 bits for class B addresses!) With subnetting, routing table entry becomes (subnet mask, network address, next hop address) Then compare with network address field of entries to find next hop address Subnet mask indicates the network address!

Oct 28, 2004CS573: Network Protocols and Standards12 Subnet Routing The use of mask generalizes the subnet routing algorithm to handle all the special cases of the standard algorithm Routes to individual hosts Default route Routes to directly connected networks Routes to conventional networks (that do not use subnet addressing) Merely combine the 32-bit mask field with the 32-bit IP address Example: To install a route for: Individual host (Mask of all 1’s, Host IP address) Default Route (Mask of all 0’s, network address all 0’s) Class B network address (Mask of two octets of 1’s and two of 0’s)

Oct 28, 2004CS573: Network Protocols and Standards13 Subnet Routing Algorithm Extract destination IP (D) from datagram Compute IP address of destination network N If N matches any directly connected network address Send datagram over that network (obviously encapsulated in a frame) Else For each entry in the routing table, do N* = bitwise-AND of D and subnet mask If N* equals the network address field of the entry, then route the datagram to the specified next hop

Oct 28, 2004CS573: Network Protocols and Standards14 Supernet Addressing Use of many IP network addresses for a single organization Example: To conserve class B addresses, issue multiple class C address to the same organization Issue: increase in the number of entries in the routing table Solutions: Collapse a block of contiguous class C address into the pair: (network address, count) where network address is the smallest number in the block

Oct 28, 2004CS573: Network Protocols and Standards15 Supernet Addressing It requires each block to be a power of 2 and uses bit mask to identify the size of the block Example Dotted decimal32-bit binary equivalent Lowest: Highest: A block of 2048 addresses 32-bit mask is Do we really need address classes when we have masks? Answer: NO  CIDR (Classless Inter Domain Routing)

Oct 28, 2004CS573: Network Protocols and Standards16 Supernet Addressing In the router, the entry consists of: The lowest address and the 32-bit mask A block of addresses can be subdivided, and separate route can be entered for each subdivision When looking up a route, the routing software uses a longest-match paradigm to select a route

Oct 28, 2004CS573: Network Protocols and Standards17 IPv6 Motivation Limited address space Support for new applications Multimedia streams, for example Security Extensibility

Oct 28, 2004CS573: Network Protocols and Standards18 Features of IPv6 Larger addresses 128 bit addresses Flexible header format Set of optional headers Support for flow identification Needed in resource allocation for multimedia streams Provision for protocol extension