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

Similar documents
CHAPTER. After reading this chapter and completing the exercises you will be able to:

IP Addressing A Simplified Tutorial

How To Make A Network Address Prefix Smaller

Advanced IP Addressing

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

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.

Internet Protocol Address

CCNA Tutorial Series SUBNETTING

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

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

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

Lab IP Addressing Overview

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

Internet Addresses (You should read Chapter 4 in Forouzan)

- IPv4 Addressing and Subnetting -

Module 2: Assigning IP Addresses in a Multiple Subnet Network

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

Chapter 19 Network Layer: Logical Addressing 19.1

03 Internet Addressing

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

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

Lab a Basic Subnetting

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


iseries TCP/IP routing and workload balancing

TCP/IP Basis. OSI Model

Internetworking and IP Address

Savera Tanwir. Internet Protocol

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

CONFIGURING TCP/IP ADDRESSING AND SECURITY

The Subnet Training Guide

Introduction. Internet Address Depletion and CIDR. Introduction. Introduction

Internet Protocols. Addressing & Services. Updated:

Classful IP Addressing (cont.)

8.2 The Internet Protocol

This tutorial will help you in understanding IPv4 and its associated terminologies along with appropriate references and examples.

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

Subnetting/Supernetting and Classless Addressing

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

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

Classless Subnetting Explained

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

IP Subnetting and Addressing

Subnetting IPv4 and IPv6

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

The Internet/Network Layer

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

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

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.

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

VLSM and CIDR Malin Bornhager Halmstad University

Number of bits needed to address hosts 8

ERserver. iseries. TCP/IP routing and workload balancing

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

Variable length subnetting

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

Question Question Question EdTech 552: Lab 3 Answer Sheet

Networking TCP/IP routing and workload balancing

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

You can probably work with decimal. binary numbers needed by the. Working with binary numbers is time- consuming & error-prone.

ICS 351: Today's plan

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

COMP 631: COMPUTER NETWORKS. IP Addressing. Jasleen Kaur. Fall How to Deal With Heterogeneity & Scale?

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

Internetworking and Internet-1. Global Addresses

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

PART IV. Network Layer

Chapter 2 TCP/IP Networking Basics

Subnetting Study Guide

Course Overview: Learn the essential skills needed to set up, configure, support, and troubleshoot your TCP/IP-based network.

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

IP Addressing and Subnetting for New Users

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

IP Addressing Introductory material.

Future Internet Technologies

IP Subnetting. Subnetting

2. IP Networks, IP Hosts and IP Ports

Classful Subnetting Explained

Efficient Addressing. Outline. Addressing Subnetting Supernetting CS 640 1

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

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

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

Tutorial (03) IP addresses & Sub netting

CIDR: Classless Interdomain Routing

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

ITRI CCL. IP Routing Primer. Paul C. Huang, Ph.D. ITRI / CCL / N300. CCL/N300; Paul Huang 1999/6/2 1

IP Addressing and Subnetting, Including IPv6

Understanding IP Addressing: Everything You Ever Wanted To Know

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

Advanced Internetworking

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

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

IP Subnetting: Practical Subnet Design and Address Determination Example

Appendix B Network, Routing, Firewall, and Basics

IPv4 Addressing Simplified. by Ken Foster B.S. IT Information; Security and Forensics Kaplan University January 23, 2011

Lab#2: IP Addressing and Subnetting

SUBNETS, CIDR, AND CLASSLESS ADDRESSING

2.3 IPv4 Address Subnetting Part 2

TCP/IP Drill Pack. By Donna Warren. Created by Donna P. Warren Revised: 1/2/2012 Page 1 of 19

This chapter discusses the following advanced IP addressing topics: IP Address Planning Hierarchical Addressing Using Variable-Length Subnet Masks

Transcription:

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

Objectives Understand IP addressing, anatomy and structures, and addresses from a computer s point of view Recognize and describe the various IP address classes from A to E, and explain how they re composed and used Understand the nature of IP address limitations, and how techniques like Classless Inter-Domain Routing and Network Address Translation ease those limitations IP Addressing and Related Topics 2

Objectives (continued) Define the terms subnet and supernet, and apply your knowledge of how subnets and supernets work to solve specific network design problems Understand how public and private Internet addresses are assigned, how to obtain them, and how to use them properly Recognize the importance and value of an IP addressing scheme IP Addressing and Related Topics 3

IP Addressing Basics Computers deal with network addresses as bit patterns IP uses a three-part addressing scheme Symbolic Example support.dell.com Logical numeric Example 172.16.1.10 Physical numeric Six-byte numeric address, burned into firmware (on a chip) by network interface manufacturers IP Addressing and Related Topics 4

IP Addressing Basics (continued) Address Resolution Protocol (ARP) Permits computers to translate numeric IP addresses to MAC layer addresses ReverseARP (RARP) Translates MAC layer addresses into numeric IP addresses IP Addressing and Related Topics 5

Anatomy of an IP Address IP addresses Dotted decimal notation Take the form n.n.n.n, where n is guaranteed to be between 0 and 255 Each number is an 8-bit number called an octet Duplication is not allowed IP Addressing and Related Topics 6

IP Address Classes IP addresses Subdivided into five classes: Class A to Class E For first three classes octets are divided as follows Class A n. h.h.h Class B n.n. h.h Class C n.n.n. h n = network, h = host IP Addressing and Related Topics 7

IP Address Classes (continued) Address Classes D and E are for special uses Class D addresses Multicast communications Class E addresses Reserved entirely for experimental use IP Addressing and Related Topics 8

More About Class A Addresses Class A addresses in binary form 0bbbbbbb.bbbbbbbb.bbbbbbbb.bbbbbbbb b can be 1s or 0s Reserved for special uses Addresses consisting of all 0s and all 1s Reserved for private network use Address for network 10 (00001010) Reserved for loopback testing Address 127.n.n.n IP Addressing and Related Topics 9

IP Addressing and Related Topics 10

More About Class B Addresses Class B addresses take the following binary form 10bbbbbb.bbbbbbbb.bbbbbbbb.bbbbbbbb b can be 1s or 0s 2 14 2 Maximum number of usable network addresses 16,366 Maximum number of public IP addresses IP Addressing and Related Topics 11

IP Addressing and Related Topics 12

More About Class C Addresses Class C addresses take the following binary form 110bbbbb.bbbbbbbb.bbbbbbbb.bbbbbbbb b can be 1s or 0s 2 21 2 The maximum number of usable network addresses Reserved for private use 256 Class C addresses, from 192.168.0.0 to 192.168.255.255 IP Addressing and Related Topics 13

IP Addressing and Related Topics 14

More About Address Classes D and E Class D addresses 1110bbbb.bbbbbbbb.bbbbbbbb.bbbbbbbb b can be 1s or 0s Multicast addresses Class E addresses 11110bbb.bbbbbbbb.bbbbbbbb.bbbbbbbb b can be 1s or 0s Only for experimental purposes IP Addressing and Related Topics 15

Network, Broadcast, Multicast, and Other Special IP Addresses Network address Any IP address where all host bits are 0 Broadcast address Address that all hosts on a network must read Broadcast traffic Seldom forwarded from one physical network to another IP Addressing and Related Topics 16

Broadcast Packet Structures IP broadcast packets have two destination address fields Data Link layer destination address field Destination network address field IP Addressing and Related Topics 17

IP Addressing and Related Topics 18

Multicast Packet and Address IP gateway Structures Router or other device that will forward traffic to the host s physical network The Internet Corporation for Assigned Names and Numbers (ICANN) Allocates multicast addresses on a controlled basis IP Addressing and Related Topics 19

IP Addressing and Related Topics 20

IP Addressing and Related Topics 21

The Vanishing IP Address Space Address space saving techniques Classless Inter-Domain Routing (CIDR) Trade in existing IP network addresses RFC 1918 Reserves three ranges of IP addresses for private use Network Address Translation (NAT) Lets networks use private IP addresses internally and maps them to public IP address externally IP Addressing and Related Topics 22

Understanding Basic Binary Arithmetic Four binary calculations must be mastered Converting binary to decimal Converting decimal to binary Understanding how setting increasing numbers of high-order bits to 1 in eight-bit binary numbers corresponds to specific decimal numbers Understanding how setting increasing low-order bits to 1 in eight-bit binary numbers corresponds to specific decimal numbers IP Addressing and Related Topics 23

Converting Decimal to Binary Converting decimal number 125 to binary 125 divided by 2 equals 62, remainder 1 62 divided by 2 equals 31, remainder 0 31 divided by 2 equals 15, remainder 1 15 divided by 2 equals 7, remainder 1 7 divided by 2 equals 3, remainder 1 3 divided by 2 equals 1, remainder 1 1 divided by 2 equals 0, remainder 1 IP Addressing and Related Topics 24

Converting Binary to Decimal Count the total number of digits in the number Subtract 1 from the total (8-1 = 7) Convert to exponential notation, using all the digits as multipliers 11011011converts as follows 11011011 = 1*27+1*26+0*25+1*24+1*23+0*22+1*21+1*20 = 128+64+0+16+8+0+2+1 = 219 IP Addressing and Related Topics 25

High-Order Bit Patterns Binary Decimal 10000000 128 11000000 192 11100000 224 11110000 240 11111000 248 11111100 252 11111110 254 11111111 255 IP Addressing and Related Topics 26

Low-Order Bit Patterns Binary Decimal Exponent 00000001 1 2 1-1 00000011 3 2 2-1 00000111 7 2 3-1 00001111 15 2 4-1 00011111 31 2 5-1 00111111 63 2 6-1 01111111 127 2 7-1 11111111 255 2 8-1 IP Addressing and Related Topics 27

IP Networks, Subnets, And Masks Subnet mask Special bit pattern that blocks off the network portion of an IP address with an all-ones pattern Default masks for Classes A, B, and C Class Layout Default Mask Class A n h.h.h 255.0.0.0 Class B n.n h.h 255.255.0.0 Class C n.n.n h 255.255.255.0 IP Addressing and Related Topics 28

IP Subnets and Supernets Subnetting Stealing (borrowing) bits from the host portion to further subdivide the network portion of an address Supernetting Stealing bits from network portion Using them to create a single, larger contiguous address space for host addresses IP Addressing and Related Topics 29

Calculating Subnet Masks Types of subnet masking techniques Constant-length subnet masking (CLSM) Variable-length subnet masking (VLSM) In a VLSM addressing scheme Different subnets may have different extended network prefixes IP Addressing and Related Topics 30

Designing a Constant-Length Subnet Mask Decide how many subnets are needed Add 2 to number of subnets needed then jump to the nearest higher power of two Reserve bits of host portion s address from the top down Be sure that there are enough host addresses left over on each subnet to be usable If using RIP Use the formula 2 b 2 to calculate the number of usable subnets from a mask IP Addressing and Related Topics 31

Designing a Variable-Length Subnet Mask Analyze requirements for individual subnets Aggregate requirements by their relationships to the nearest power of two Use subnets that require largest number of devices To decide the minimum size of the subnet mask Aggregate subnets that require fewer of hosts Define VLSM scheme that Provides the necessary number of subnets of each size to fit its intended use best IP Addressing and Related Topics 32

Calculating Supernets Supernets Steal bits from network portion of an IP address to lend those bits to the host Permit multiple IP network addresses to be combined Allow an entire group of hosts to be reached through a single router address IP Addressing and Related Topics 33

Classless Inter-Domain Routing Limitations Network addresses must be contiguous When address aggregation occurs CIDR address blocks work best when they come in sets that are greater than 1 and equal to some lowerorder bit pattern that corresponds to all 1s Addresses commonly applied to Class C addresses To use a CIDR address on any network Routers in routing domain must understand CIDR notation IP Addressing and Related Topics 34

Public Versus Private IP Addresses Private IP addresses ranges May be in the form of IP network addresses Address masquerading May be performed by boundary devices that include proxy server capabilities Private IP address limitation Some IP services require a secure end-to-end connection IP Addressing and Related Topics 35

IP Addressing and Related Topics 36

Public Versus Private IP Addresses Public IP addresses (continued) Remain important for identifying all servers or services that must be accessible to the Internet Most organizations need public IP addresses only for two classes of equipment Devices that permit organizations to attach networks to the Internet Servers designed to be accessible to the Internet IP Addressing and Related Topics 37

Managing Access To IP Address Reverse proxying Information Permits the proxy server to front for servers inside the boundary Important service that proxy server provides Manages what source addresses appear in outbound packets that pass through it IP Addressing and Related Topics 38

Obtaining Public IP Addresses Public IP addresses Issued by ISPs IP renumbering Switching addresses on every machine that uses address from old ISP to unique address obtained from new ISP ICANN Manages all IP-related addresses, protocol numbers, and well-known port addresses Assigns MAC layer addresses for use in network interfaces IP Addressing and Related Topics 39

IP Addressing Schemes IP addressing scheme constraints Number of physical locations Number of network devices at each location Amount of broadcast traffic at each location Availability of IP addresses Delay caused by routing from one network to another IP Addressing and Related Topics 40

The Network Space Application Specific Integrated Circuits (ASICs) Hardware used by switches to make decisions Layer-3 switch Implements the layer-3 logic from the software into its own ASICs Allows you to partition a large network into many smaller subnets with almost no loss of performance IP Addressing and Related Topics 41

The Host Space Reasons for using binary boundaries You may want to implement layer-3 switching to reduce the broadcast traffic One day you will want to classify your traffic to apply Quality of Service (QoS) or policies of some sort Can be applied to firewall rules IP Addressing and Related Topics 42

Summary IP addresses Provide foundation for identifying individual network interfaces on TCP/IP networks IP addresses Come in five classes named through E Understanding binary arithmetic Essential to knowing how to deal with IP addresses IP Addressing and Related Topics 43

Summary (continued) Classless Inter-Domain Routing (CIDR) Permits network-host boundary to fall away from octet boundaries Subnetting Permits additional bits to be taken from the host portion of a network Address masquerading and address substitution Techniques used to hide internal network IP addresses from outside view IP Addressing and Related Topics 44

Summary (continued) Within the Class A, B, and C IP address ranges IETF has reserved private IP addresses or address ranges Internet Corporation For Assigned Names and Numbers (ICANN) Ultimate authority for obtaining public IP addresses IP Addressing and Related Topics 45