How To Make A Network Address Prefix Smaller



Similar documents
SUBNETS, CIDR, AND CLASSLESS ADDRESSING

Tutorial (03) IP addresses & Sub netting

Subnet + CIDR. Internet Networking recitation #1. 11: , Internet Networking,

Guide to TCP/IP, Third Edition. Chapter 2: IP Addressing and Related Topics

Computer Network Foundation. Chun-Jen (James) Chung. Arizona State University

Subnetting/Supernetting and Classless Addressing

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

Efficient Addressing. Outline. Addressing Subnetting Supernetting CS 640 1

CIDR: Classless Interdomain Routing

Number of bits needed to address hosts 8

TCP/IP Addressing and Subnetting. an excerpt from: A Technical Introduction to TCP/IP Internals. Presentation Copyright 1995 TGV Software, Inc.

ICS 351: Today's plan

Internetworking and Internet-1. Global Addresses

CE363 Data Communications & Networking. Chapter 6 Network Layer: Logical Addressing

IP Addressing A Simplified Tutorial

Introduction. Internet Address Depletion and CIDR. Introduction. Introduction

Internet Protocol Address

Internet Addresses (You should read Chapter 4 in Forouzan)

Lecture Computer Networks

PART IV. Network Layer

Classful IP Addressing (cont.)

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

Scaling the Network: Subnetting and Other Protocols. Networking CS 3470, Section 1

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

Internetworking and IP Address

IP Subnetting and Addressing

CCNA Tutorial Series SUBNETTING

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

IP addressing. Interface: Connection between host, router and physical link. IP address: 32-bit identifier for host, router interface

IP Addressing. IP Addresses. Introductory material.

8.2 The Internet Protocol

2. What is the maximum value of each octet in an IP address? A. 28 B. 255 C. 256 D. None of the above

WHITE PAPER. Understanding IP Addressing: Everything You Ever Wanted To Know

How to Create Subnets To create subnetworks, you take bits from the host portion of the IP address and reserve them to define the subnet address.

Chapter 19 Network Layer: Logical Addressing 19.1

APPENDIX B. Routers route based on the network number. The router that delivers the data packet to the correct destination host uses the host ID.

Variable length subnetting

04 Internet Protocol (IP)

Savera Tanwir. Internet Protocol

IP Addressing Introductory material.

VLSM and CIDR Malin Bornhager Halmstad University

Computer Networks By Bahaa Q. Al-Mussawi Subnetting Basics Reduced network traffic Optimized network performance Simplified management

Advanced IP Addressing

Chapter 5. IPv4 Addresses. TCP/IP Protocol Suite 1 Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

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

Understanding IP Addressing: Everything You Ever Wanted To Know

(Refer Slide Time: 02:17)

CCNA R&S: Introduction to Networks. Chapter 9: Subnetting IP Networks

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

Table of Contents. Cisco IP Addressing and Subnetting for New Users

Future Internet Technologies

IP Addressing. -Internetworking (with TCP/IP) -Classful addressing -Subnetting and Supernetting -Classless addressing

Expert Reference Series of White Papers. Binary and IP Address Basics of Subnetting

Module 10 Subnetting Class A, B and C addresses. Solutions to the Lab Exercises a, b, c and d

CONFIGURING TCP/IP ADDRESSING AND SECURITY

Module 2: Assigning IP Addresses in a Multiple Subnet Network

Table of Contents 1 IP Addressing Configuration 1-1

Networking Basics for Automation Engineers

TCP/IP Basis. OSI Model

Pre-lab Preparation: 1. Read thoroughly and prepare the experiment sheet. 2. You must bring a printed copy of this experiment with you to the lab.


Instructor Notes for Lab 3

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

Internet Protocols Fall Lectures 7-8 Andreas Terzis

SNMP/HTTP Access Control User Manual

Lecture 15. IP address space managed by Internet Assigned Numbers Authority (IANA)

Question Question Question EdTech 552: Lab 3 Answer Sheet

256 4 = 4,294,967,296 ten billion = 18,446,744,073,709,551,616 ten quintillion. IP Addressing. IPv4 Address Classes

Computer Networks. Introduc)on to Naming, Addressing, and Rou)ng. Week 09. College of Information Science and Engineering Ritsumeikan University

Part2. Chapter 8. Advanced TCP/IP Network Design - CLASSLESS ADDRESSING AND VARIABLE- LENGTH SUBNET MASKS

IP address format: Dotted decimal notation:

Desirable Properties Of An Internet Addressing Scheme

Section #6: Addressing

IP Subnetting. Subnetting

Network and Host Addresses , Cisco Systems, Inc. All rights reserved. INTRO v1.0a 6-4

Source net: Destination net: Subnet mask: Subnet mask: Router Hub

Internet Protocol version 4 Part I

Lab#2: IP Addressing and Subnetting

IP Addressing and Subnetting for New Users

The Subnet Training Guide

Expert Reference Series of White Papers. Basics of IP Address Subnetting

Lab a Basic Subnetting

Packet Tracer - Subnetting Scenario 1 (Instructor Version)

RARP: Reverse Address Resolution Protocol

The IP Transmission Process. V1.4: Geoff Bennett

Objectives. Upon completing this chapter, you will be able to

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

Classless Subnetting Explained

AS/400e. TCP/IP routing and workload balancing

Lab IP Addressing Overview

Network layer. Assignment 3

Subnetting Study Guide

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

Vocia MS-1 Network Considerations for VoIP. Vocia MS-1 and Network Port Configuration. VoIP Network Switch. Control Network Switch

We Are HERE! Subne\ng

IP Networking Part 3- IP Address Management A webinar to help you prepare for the CBNE Certification

Transcription:

CSC521 Communication Protocols 網 路 通 訊 協 定 Ch.9 Classless And Subnet Address Extensions (CIDR) 吳 俊 興 國 立 高 雄 大 學 資 訊 工 程 學 系

Outline 1. Introduction 2. Review Of Relevant Facts 3. Minimizing Network Numbers 4. Proxy ARP 5. Subnet Addressing 6. Flexibility In Subnet Address Assignment 7. Variable-Length Subnets 8. Implementation Of Subnets With Masks 9. Subnet Mask Representation 10. Forwarding In The Presence Of Subnets 11. The Subnet Forwarding Algorithm 12. A Unified Forwarding Algorithm 13. Maintenance Of Subnet Masks 14. Broadcasting To Subnets 15.Anonymous Point-To-Point Networks 16.Classless Addressing And Supernetting 17.CIDR Address Blocks And Bit Masks 18.Address Blocks And CIDR Notation 19.A Classless Addressing Example 20.Data Structures And Algorithms For Classless Lookup 21.Longest-Match And Mixtures Of Route Types 22.CIDR Blocks Reserved For Private Networks 23. Summary 2

Recall: Classful Addressing In the original IP addressing scheme: network prefix + host suffix each physical network is assigned a unique network address each host on a network has the network address as a prefix of the host's individual address Routers only examine prefix (small routing tables) 3

Network-prefix Minimization Problem Question: How can we minimize the number of assigned network prefixes (especially class B) without abandoning the 32-bit addressing scheme? Two Answers: Proxy ARP Subnet addressing 4

Proxy ARP: Layer-2 Solution Arrange special system to answer ARP requests and forward datagrams between networks Hosts think they are on same network Allow two physical networks to share a single IP prefix Known informally as the ARP hack Assessments Chief advantages Transparent to hosts No change in IP routing tables Chief disadvantages Does not generalize to complex topology Only works on networks that use ARP Most proxy ARP systems require manual configuration 5

Subnet Addressing Subdivides the host suffix into a pair of fields for physical network and host Allows an organization to use a single network prefix for multiple physical networks Interpreted only by routers and hosts at the site; treated like normal address elsewhere Both physical networks share prefix 128.10 Router R uses third octet of address to choose physical net Address Mask: Each physical network is assigned 32-bit address mask (also called subnet mask) 6

Use of Address Masks Each entry in routing table also has address mask All-1s mask used for host-specific routes Network mask used for network-specific routes Subnet mask used for subnet-specific routes All-0s mask used for default route Active Routes: Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.158 20 (Default) 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1 (Loopback) 192.168.0.158 255.255.255.255 127.0.0.1 127.0.0.1 20 (Local) 192.168.0.0 255.255.255.0 192.168.0.158 192.168.0.158 20 (LAN) 192.168.0.255 255.255.255.255 192.168.0.158 192.168.0.158 20 (Broadcast) 7

Problems Continued exponential Internet growth Dire prediction (1993): We will exhaust the address space ''in a few years''. Note: address space is not near exhaustion Subnetting insufficient Limited IP addresses (esp. Class B) Further Motivation For CIDR: aggregating class C Limitation of classful addressing Fewer than seventeen thousand Class B numbers (total 2 14 ) More than two million Class C network numbers (2 21 ) Flexibility of CIDR Network Addressing Problems Merging 256 Class C numbers into a single prefix that is equivalent to Class B Splitting a Class B along power of two boundaries Solution to problem Temporary fix until next generation of IP Backward compatible with classful addressing 8

Classless Inter-Domain Routing (CIDR) CIDR Idea: permit arbitrary-length network prefixes CIDR Techniques: Extended Addressing: subnet + supernet blocks of address numbers Forwarding (longest-prefix matching) Route propagation (condensation) CIDR was predicted to work ''for a few years'' Extremely successful! Will work for at least 25 years! 9

Supernetting Supernetting: assigning a block of contiguous class C numbers Route Proliferation Example: a block of 256 contiguous class C numbers (equal to a class B) supernetting: single CIDR prefix spans 256 Class C network numbers Classful routing table requires 256 separate entries for each class C If classful forwarding used, CIDR addresses result in more routes 10

CIDR Block and Slash Notation Network Addresses written NUMBER / m NUMBER is IP prefix; m is ''address mask'' length Example 214.5.48.0 / 20 Prefix occupies 20 bits Suffix occupies 12 bits 128.211.168.0/21 Mask values must be converted to dotted decimal when configuring a router (and binary internally) 11

Dotted Decimal Equivalents Example of / 30 block: 128.211.176.212/30 useful when customer of ISP has very small network 12

CIDR Forwarding Implementation Of CIDR Route Lookup Each entry in routing table has address plus mask Search is organized from most-specific to least-specific (i.e., entry with longest mask is tested first) Known as longest-prefix lookup or longest-prefix search Implementing Longest-Prefix Matching Cannot easily use hashing Data structure of choice is binary trie Identifies unique prefix needed to match route Example of Unique Prefixes 13

Route Propagation Route Exchange: route per CIDR block Store address mask with each route Send pair of (address, mask) whenever exchanging routing information Route Condensation (Aggregation) Multiple subnets of common prefixes are aggregated into a larger subnet Examples: 140.127.208.0/24 Dept. Office 140.127.208.0-140.127.208.39 Prof's Offices 140.127.208.40-140.127.208.63 Computer Room 140.127.208.64-140.127.208.127 4F (Labs) 140.127.208.128-140.127.208.255 How to divide 140.127.208.0/24 into two subnets of equal size? Ans. 140.127.208.0/25 and 140.127.208.128/25 14

Summary Two extensions to original classful IP addressing scheme Subnet addressing CIDR addressing Both use 32-bit address mask Subnetting used only within a site CIDR used CIDR mask identifies division between network prefix and host suffix Subnet mask identifies boundary between subnet and individual host CIDR Techniques Extended Addressing: subnet + supernet blocks of address numbers Forwarding (longest-prefix matching) Route propagation (condensation) 15