Chapter 4. IP Addresses: Classful Addressing



Similar documents
Chapter 4 IP Addresses: Classful Addressing

Lab#2: IP Addressing and Subnetting

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

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

Chapter 19 Network Layer: Logical Addressing 19.1

Desirable Properties Of An Internet Addressing Scheme

Internet Protocol version 4 Part I

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.

Table of Contents 1 IP Addressing Configuration 1-1

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

Question Question Question EdTech 552: Lab 3 Answer Sheet

PART IV. Network Layer

Internet Addresses (You should read Chapter 4 in Forouzan)

2.3 IPv4 Address Subnetting Part 2

Topics. Subnetting. The Basics of Subnetting Subnet Mask Computing subnets and hosts Subnet Routing Creating a Subnet Example of Subnetting 1/37

Classful Subnetting Explained

Classless Subnetting Explained

Activity 6.7.4: IPv4 Address Subnetting Part 2

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

Subnetting/Supernetting and Classless Addressing

TCP/IP works on 3 types of services (cont.): TCP/IP protocols are divided into three categories:

Future Internet Technologies

IT:101 Cisco Networking Academy I Subnetting

TCP/IP Basis. OSI Model

Internet Protocols. Addressing & Services. Updated:

Tutorial (03) IP addresses & Sub netting

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

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

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

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

Positional Numbering System

Internetworking and IP Address

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

Internet Protocol Address

examines the ideas related to Class A, Class B, and Class C networks (in other words, classful IP networks).

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

Lecture 8. IP Fundamentals

IP Addressing. IP Addresses. Introductory material.

IP Subnetting. Subnetting

3201 Computer Networks 2014/2015 Handout: Subnetting Question

Subnetting Examples. There are three types of subnetting examples I will show in this document:

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.

IP Subnetting and Related Topics A Tutorial by Chris Uriarte <chrisjur@cju.com> Updated April 2001

Subnetting Study Guide

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.

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

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

Number of bits needed to address hosts 8

IP Addressing Introductory material.

CONFIGURING TCP/IP ADDRESSING AND SECURITY

Classful IP Addressing (cont.)

Lab IP Addressing Overview


8.2 The Internet Protocol

Lab a Basic Subnetting

The Subnet Training Guide

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

IPv6 Addressing. Awareness Objective. IPv6 Address Format & Basic Rules. Understanding the IPv6 Address Components

Savera Tanwir. Internet Protocol

IP Network Layer. Datagram ID FLAG Fragment Offset. IP Datagrams. IP Addresses. IP Addresses. CSCE 515: Computer Network Programming TCP/IP

Part A:Background/Preparation

Subnetting,Supernetting, VLSM & CIDR

TCP/IP Cheat Sheet. A Free Study Guide by Boson Software, LLC

VLSM & IP ADDRESSING EXAMPLE QUESTIONS with answers;

CCNA Tutorial Series SUBNETTING

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

IP Address Structure

Sybex CCENT Chapter 4: Easy Subnetting. Instructor & Todd Lammle

IP Subnetting for the Masses Or How a 12 year old kid can subnet the most complex network.

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

Lecture Computer Networks

IP Addressing and Subnetting for New Users

Decimal to Binary Conversion

Address Resolution Protocol (ARP), Reverse ARP, Internet Protocol (IP)

Guide to Network Defense and Countermeasures Third Edition. Chapter 2 TCP/IP

Mobile IP. Bheemarjuna Reddy Tamma IIT Hyderabad. Source: Slides of Charlie Perkins and Geert Heijenk on Mobile IP

MAC and Logical addressing (A Review Study)

IP address format: Dotted decimal notation:

IP Addressing A Simplified Tutorial

HA Proxy DNS Configuration Mode Commands

03 Internet Addressing

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

Understanding IP Addressing: Everything You Ever Wanted To Know

One of the most important topics in any discussion of TCP/IP is IP. IP Addressing

ICS 351: Today's plan

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

Introduction to IP v6

IP Addressing. and Subnetting. Workbook Version 1.5. Student Name:

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

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

IP Addressing and Subnetting. 2002, Cisco Systems, Inc. All rights reserved.

SUPPORT DE COURS. Dr. Omari Mohammed Maître de Conférences Classe A Université d Adrar Courriel : omarinmt@gmail.com

1 Data information is sent onto the network cable using which of the following? A Communication protocol B Data packet

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

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

Module 2: Assigning IP Addresses in a Multiple Subnet Network

How To Make A Network Address Prefix Smaller

Transcription:

Chapter 4 IP Addresses: Classful Addressing The McGraw-Hill Companies, Inc., 2000 1

CONTENTS INTRODUCTION CLASSFUL ADDRESSING OTHER ISSUES A SAMPLE INTERNET The McGraw-Hill Companies, Inc., 2000 2

4.1 Introduction An IP address is a 32-bit address that identifies a connection to the Internet. The IP addresses are universally unique. The address space of IPv4 is 2 32 or 4,294,967,296. IP address is written as a Binary (hexadecimal) or a Dotted- Decimal (w/out leading zeros) notation. See examples in the textbook. The McGraw-Hill Companies, Inc., 2000 3

4.2 CLASSFUL ADDRESSING The IP address space (all possible IP values) is divided into five classes: A, B, C, D, and E. 1 2 1 4 1 8 1 16 1 16 The McGraw-Hill Companies, Inc., 2000 4

Finding the class of an IP address 1 st Byte decimal values 0-127 128-191 191 192-223 223 224-239 239 240-255 255 The McGraw-Hill Companies, Inc., 2000 5

Example 5 How can we prove that we have 2,147,483,648 addresses in class A? Solution In class A, only 1 bit defines the class. The remaining 31 bits are available for the address. With 31 bits, we can have 2 31 or 2,147,483,648 addresses. The McGraw-Hill Companies, Inc., 2000 6

Example 6 (Continued) Find the class of the address: 11000001 10000011 00011011 11111111 Solution The first 2 bits are 1; the third bit is 0. This is a class C address. The McGraw-Hill Companies, Inc., 2000 7

Example 7 Find the class of the address: 227.12.14.87 Solution The first byte is 227 (between 224 and 239); the class is D. The McGraw-Hill Companies, Inc., 2000 8

Example 7 (Continued) Find the class of the address: 193.14.56.22 Solution The first byte is 193 (between 192 and 223); the class is C. The McGraw-Hill Companies, Inc., 2000 9

Netid and hostid Only classes A, B, and C addresses are subdivided. Exercise: How many different Netid s and Host s in each of the classes A, B, C? Netid s 2^(8-1) = 128 2^(16-2) = 16,384 2^(24-3) = 2,097,152 Hostid s 2^24 = 16,777,216 2^16 = 65,536 2^8 = 256 The McGraw-Hill Companies, Inc., 2000 10

Blocks in class A Millions of class A addresses are wasted. One Block (Netid( 10) is for Private Addresses. The McGraw-Hill Companies, Inc., 2000 11

Blocks in class B Many class B addresses are wasted. 16 Blocks are reserved for Private Addresses. The McGraw-Hill Companies, Inc., 2000 12

Blocks in class C The number of addresses in a class C block is smaller than the needs of most organizations. 256 Blocks are reserved for Private Addresses. The McGraw-Hill Companies, Inc., 2000 13

Class D addresses (ONE block) are used for multicasting; Each address define one group. Each group member has a multicast and a unicast IP address Class E addresses (ONE block) are reserved for special purposes (limited broadcast) ; most of the block is wasted. The McGraw-Hill Companies, Inc., 2000 14

Network Addresses 1. The network address is the first address in the block. 2. The network address defines the network to the rest of the Internet. 3. Given the network address, we can find the class of the address, the block, and the range of the addresses in the block The McGraw-Hill Companies, Inc., 2000 15

Example 9 Given the network address 17.0.0.0, find the class, the block, and the range of the addresses. Solution The class is A because the first byte is between 0 and 127. The block has a netid of 17. The addresses range from 17.0.0.0 to 17.255.255.255. The McGraw-Hill Companies, Inc., 2000 16

Example 10 Given the network address 132.21.0.0, find the class, the block, and the range of the addresses. Solution The class is B because the first byte is between 128 and 191. The block has a netid of 132.21. The addresses range from 132.21.0.0 to 132.21.255.255. The McGraw-Hill Companies, Inc., 2000 17

Example 11 Given the network address 220.34.76.0, find the class, the block, and the range of the addresses. Solution The class is C because the first byte is between 192 and 223. The block has a netid of 220.34.76. The addresses range from 220.34.76.0 to 220.34.76.255. The McGraw-Hill Companies, Inc., 2000 18

IP address Network Address 1. Find the class, then the Netid, then set Hostid = 0 Example: IP=134.45.78.2 is a class B (128-191) with Netid=134.45, so its network address is 134.45.0.0 2. Use a Mask which is a 32-bit binary number that gives the first address in the block (the network address) when bitwise ANDed with an address in the block. The McGraw-Hill Companies, Inc., 2000 19

Default Masks Class A Mask in dotted-decimal 255.0.0.0 B 255.255.0.0 C 255.255.255.0 The McGraw-Hill Companies, Inc., 2000 20

The network address is the beginning address of each block. It can be found by applying the default mask to any of the addresses in the block (including itself). It retains the netid of the block and sets the hostid to zero. The McGraw-Hill Companies, Inc., 2000 21

Example 12 Given the address 23.56.7.91 and the default class A mask, find the beginning address (network address). Solution The default mask is 255.0.0.0, which means that only the first byte is preserved and the other 3 bytes are set to 0s. The network address is 23.0.0.0. The McGraw-Hill Companies, Inc., 2000 22

Example 13 Given the address 132.6.17.85 and the default class B mask, find the beginning address (network address). Solution The default mask is 255.255.0.0, which means that the first 2 bytes are preserved and the other 2 bytes are set to 0s. The network address is 132.6.0.0. The McGraw-Hill Companies, Inc., 2000 23

We must not apply the default mask of one class to an address belonging to another class. The McGraw-Hill Companies, Inc., 2000 24

IP addresses are almost depleted even though the number of devices on the Internet is much less than 2^32. Remedies to this problem are discussed in Chapter 5 The McGraw-Hill Companies, Inc., 2000 25

4.13 OTHER ISSUES The McGraw-Hill Companies, Inc., 2000 26

Multihomed devices The McGraw-Hill Companies, Inc., 2000 27

Special Addresses 1. Network Address 2. Direct Broadcast Address 3. Limited Broadcast Address 4. This Host on This Network 5. Specific Host on This Network 6. Loopback Address The McGraw-Hill Companies, Inc., 2000 28

Network addresses The McGraw-Hill Companies, Inc., 2000 29

Example of direct broadcast address The McGraw-Hill Companies, Inc., 2000 30

Example of limited broadcast address The McGraw-Hill Companies, Inc., 2000 31

Example of this host on this address The McGraw-Hill Companies, Inc., 2000 32

Example of specific host on this network The McGraw-Hill Companies, Inc., 2000 33

Example of loopback address The McGraw-Hill Companies, Inc., 2000 34

Private Addresses A number of blocks in each class are assigned for private use. They are not recognized globally. The McGraw-Hill Companies, Inc., 2000 35

Unicast,, Multicast, and Broadcast Addresses Unicast communication is one-to-one. Multicast communication is one-to-many. (Class D address defining the Groupid) Broadcast communication is one-to-all. The McGraw-Hill Companies, Inc., 2000 36

4.4 A SAMPLE INTERNET WITH CLASSFUL ADDRESSES The McGraw-Hill Companies, Inc., 2000 37

Sample internet The McGraw-Hill Companies, Inc., 2000 38