IP Addressing.

Slides:



Advertisements
Similar presentations
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Advertisements

Classifying Network Addressing
Chapter 19 Network Layer: Logical Addressing Stephen Kim.
1 Computer Communication & Networks Lecture 17 & 18 Network Layer: Logical Addressing Waleed Ejaz.
IP Subnetting.
IP Addressing and Subnetting
Prepared By: Eng.Ola M. Abd El-Latif
Chapter 21 IP Addressing “If we all did the things we are capable of doing, we would literally astound ourselves” - Thomas Alva Edison,
By Junaid Shaikh SE Computer
Week 3 - IP addressing 4 Introduction to IP addressing 4 Classes of IP addressing 4 Why Subnet Masks are necessary? 4 How to create subnet masks.
IP Addressing Allan Johnson. IPv4 Addressing Review IPv4 Addressing Review Table of Contents Table of Contents End Slide Show End Slide Show.
Why create a subnet mask? Tells device which part of an address is the network # including the subnet and which part is the host Filters the node IP address.
IPv4 Addresssing An IP address is four bytes (octets). Each contains eight bits (total of 32 bits in length). IP addresses are given as dotted decimal.
21-IP addressing Dr. John P. Abraham Professor UTPA.
Types of Addresses in IPv4 Network Range
IP Addressing Chapter 5 powered by DJ. Chapter Objectives At the end of this Chapter you will be able to:  Explain IP addressing  Discuss IP subnetting.
LECTURE # 20 IP ADDRESSING 1. Binary 2  All digital electronics use a binary method for communication.  Binary can be expressed using only two values:
Network Addressing IP Addresses. IP Address Space The Structure of an IP Address – Binary Representation The only thing a network device understands,
CN2668 Routers and Switches Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
IP Addressing and Network Software. IP Addressing  A computer somewhere in the world needs to communicate with another computer somewhere else in the.
Classes of IP. host must have an IP address that identifies not only the host address (like a house number) but also identifies the network address (like.
IP Addresses & Classes Presented By: M.Usman Khan Ghauri Nauman Aslam.
IP Addressing & Subnetting
IP ADDRESSING, SUBNETTING & VLSM 1. Decimal vs. Binary Numbers – Decimal numbers are represented by the numbers 0 through 9. – Binary numbers are represented.
LECTURE ON IP Addressing. What is Networking? –by ‘computer network’ we mean the interconnection between different computers. Why Networking? –to share.
CS4500CS4500 Dr. ClincyLecture1 Lecture #6 Chapter 5: Addressing (part 1 of 3) Address Structure Classful Addressing Number Systems (Appendix B) Mask –
IP Internet Protocol Fundamental packet format that computers use to exchange information. Is a set of technical rules that defines how computers communicate.
Chapter 5.  Upon completion of this chapter, you should be able to:  Configure IP addresses  Identify & select valid IP addresses for networks  Configure.
IP Addressing is Logical Addressing It works on Network Layer (Layer 3) Two Version of Addressing Scheme IP version 4 – 32 bit addressing IP version 6.
IP Addressing.
CLICKTECHSOLUTION.COM. THIS TOPIC WILL COVER IN EIGHT PHASES. 1. INTRODUCTION 2. NECESSITY 3. DEFINITION 4. CLASSES OF IP ADDRESS 5. PUBLIC AND PRIVATE.
Introduction to Computer Networking
CS4500CS4500 Dr. ClincyLecture1 Lecture #1 Chapter 5: Addressing (part 1 of 3)
Objective 1.Understand Network 2.Understand IP Addressing (IPv4 and IPv6) 3.Understand Subnetting 4.Examples 5.IP addressing and Vlan’s in TIFR 6.TIFR.
IP Addresses & IP Subnetting
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Planning the Addressing Structure
IP Addressing, Sub-netting & VLSM
Internet Architecture
IP ADDRESSING.
IP Addressing and Subnetting
Binary Concepts By: Nathan Miller.
Master Subnetting – Section 3
Classful Subnetting IPv4
OSI Model IP address.
Chapter 5 IPv4 Addresses TCP/IP Protocol Suite
Chapter-5 TCP/IP Suite.
Ip addressing Chapter 5a 6-7 days including test.
IP Addresses: Classful Addressing
Network Layer in the Internet (3)
An IPv4 address is a 32-bit address that uniquely and universally defines the connection of a device (for example, a computer or a router) to the Internet.
Addressing the Network - IPV4 Part III
Subnetting Basics benefits Reduced network traffic
The IP addresses are unique. The address space of IPv4 is 2 32 or 4,294,967,296.
Chapter 5 Working with IP Addresses
Chapter 19 Network Layer: Logical Addressing
Addressing the Network - IPV4 Part III
Master Subnetting – Section 1
Data Communications and Networking
INTERNET PROTOCOL Presented by: Md:Faruque-A-Azam ID:1642CSE00570 Batch:42 CSE,MIU.
Introduction to Networking (Yarnfield)
Planning the Addressing Structure
Planning the Addressing Structure
Planning the Addressing Structure
IP Addressing & Subnetting
Chapter 5 IP addresses Classless Addressing
IP ADDRESSING.
IP Addressing & Subnetting
Dr. John P. Abraham Professor UTPA
Lec2: Experiment Designing the network, IP addressing and Subnets, designing using Variable Length Subnet Mask Dr. Mohamed Abd-Eldayem References: CCNA.
Presentation transcript:

IP Addressing

IP Addressing IP version 4 – 32 bit addressing IP Addressing is Logical Addressing It works on Network Layer (Layer 3) Two Version of Addressing Scheme IP version 4 – 32 bit addressing IP version 6 – 128 bit addressing

IP version 4 What is BIT ? Bit is a value that will represent 0’s or 1’s (i.e. Binary) 01010101000001011011111100000001 32 bits are divided into 4 Octets known as Dotted Decimal Notation 01010101. 00000101. 10111111. 00000001 First Octet Second Octet Third Octet Forth Octet

IP version 6 128-bit address is divided along 16-bit boundaries, and each 16-bit block is converted to a 4-digit hexadecimal number and separated by colons (Colon-Hex Notation) FEDC:BA98:7654:3210:FEDC:BA98:7654:3210

Binary to Decimal Conversion Taking Example for First Octet : Total 8 bits, Value will be 0’s and 1’s i.e. 28 = 256 combination 27 26 25 24 23 22 21 20 0 0 0 0 0 0 0 0 = 0 0 0 0 0 0 0 0 1 = 1 0 0 0 0 0 0 1 0 = 2 0 0 0 0 0 0 1 1 = 3 0 0 0 0 0 1 0 0 = 4 Total IP Address Range 0 . 0 . 0 . 0 to 255.255.255.255 1 1 1 1 1 1 1 1 = 255

IP Address Classes Total IP Addressing Scheme is divided into 5 Classes CLASS A CLASS B CLASS C CLASS D CLASS E LAN & WAN Multicasting & Newsgroups Research & Development

Priority Bits Concept To identify the range of each class we will be using Priority Bit Concept Priority Bit is the left most bits in the First Octet CLASS A priority bit is 0 CLASS B priority bit is 10 CLASS C priority bit is 110 CLASS D priority bit is 1110 CLASS E priority bit is 1111

0.X.X.X and 127.X.X.X network are reserved CLASS A Range For Class A range reserved first bit in first octet,the value of that bit should not change. 0xxxxxxx. xxxxxxxx. xxxxxxxx. xxxxxxxx 27 26 25 24 23 22 21 20 0 0 0 0 0 0 0 0 = 0 0 0 0 0 0 0 0 1 = 1 0 0 0 0 0 0 1 0 = 2 0 0 0 0 0 0 1 1 = 3 0 0 0 0 0 1 0 0 = 4 Class A Range 0 . 0 . 0 . 0 to 127.255.255.255 Exception 0.X.X.X and 127.X.X.X network are reserved 0 1 1 1 1 1 1 1 = 127

CLASS B Range 10xxxxxx. xxxxxxxx. xxxxxxxx. xxxxxxxx 128. 0 . 0 . 0 to For Class B range reserved first two bit in first octet,the value of that bit should not change. 10xxxxxx. xxxxxxxx. xxxxxxxx. xxxxxxxx 27 26 25 24 23 22 21 20 1 0 0 0 0 0 0 0 = 128 1 0 0 0 0 0 0 1 = 129 1 0 0 0 0 0 1 0 = 130 1 0 0 0 0 0 1 1 = 131 1 0 0 0 0 1 0 0 = 132 Class B Range 128. 0 . 0 . 0 to 191.255.255.255 1 0 1 1 1 1 1 1 = 191

CLASS C Range 110xxxxx. xxxxxxxx. xxxxxxxx. xxxxxxxx 192. 0 . 0 . 0 to For Class C range reserved first three bit in first octet,the value of that bit should not change. 110xxxxx. xxxxxxxx. xxxxxxxx. xxxxxxxx 27 26 25 24 23 22 21 20 1 1 0 0 0 0 0 0 = 192 1 1 0 0 0 0 0 1 = 193 1 1 0 0 0 0 1 0 = 194 1 1 0 0 0 0 1 1 = 195 1 1 0 0 0 1 0 0 = 196 Class C Range 192. 0 . 0 . 0 to 223.255.255.255 1 1 0 1 1 1 1 1 = 223

CLASS D Range 1110xxxx. xxxxxxxx. xxxxxxxx. xxxxxxxx 224. 0 . 0 . 0 to For Class D range reserved first four bit in first octet,the value of that bit should not change. 1110xxxx. xxxxxxxx. xxxxxxxx. xxxxxxxx 27 26 25 24 23 22 21 20 1 1 1 0 0 0 0 0 = 224 1 1 1 0 0 0 0 1 = 225 1 1 1 0 0 0 1 0 = 226 1 1 1 0 0 0 1 1 = 227 1 1 1 0 0 1 0 0 = 228 Class D Range 224. 0 . 0 . 0 to 239.255.255.255 1 1 1 0 1 1 1 1 = 239

CLASS E Range 1111xxxx. xxxxxxxx. xxxxxxxx. xxxxxxxx 240. 0 . 0 . 0 to For Class E range reserved first four bit in first octet,the value of that bit should not change. 1111xxxx. xxxxxxxx. xxxxxxxx. xxxxxxxx 27 26 25 24 23 22 21 20 1 1 1 1 0 0 0 0 = 240 1 1 1 1 0 0 0 1 = 241 1 1 1 1 0 0 1 0 = 242 1 1 1 1 0 0 1 1 = 243 1 1 1 1 0 1 0 0 = 244 Class E Range 240. 0 . 0 . 0 to 255.255.255.255 1 1 1 1 1 1 1 1 = 255

Octet Format IP address is divided into Network & Host Portion CLASS A is written as N.H.H.H CLASS B is written as N.N.H.H CLASS C is written as N.N.N.H

CLASS A Networks & Host Class A Octet Format is N.H.H.H Network bits : 8 Host bits : 24 No. of Networks = 28-1 (-1 is Priority Bit for Class A) = 27 = 128 – 2 (-2 is for 0 & 127 Network) = 126 Networks No. of Host = 224 – 2 (-2 is for Network ID & Broadcast ID) = 16777216 - 2 = 16777214 Hosts/Network CLASS A 126 Networks & 16777214 Hosts/Nw

CLASS B Networks & Host Class B Octet Format is N.N.H.H Network bits : 16 Host bits : 16 No. of Networks = 216-2 (-2 is Priority Bit for Class B) = 214 = 16384 Networks No. of Host = 216 – 2 (-2 is for Network ID & Broadcast ID) = 65536 - 2 = 65534 Hosts/Network CLASS B 16384 Networks & 65534 Hosts/Nw

CLASS C Networks & Host Class C Octet Format is N.N.N.H Network bits : 24 Host bits : 8 No. of Networks = 224-3 (-3 is Priority Bit for Class C) = 221 = 2097152 Networks No. of Host = 28 – 2 (-2 is for Network ID & Broadcast ID) = 256 - 2 = 254 Hosts/Network CLASS C 2097152 Networks & 254 Hosts/Nw

Network & Broadcast Address The network address is represented with all bits as ZERO in the host portion of the address The broadcast address is represented with all bits as ONES in the host portion of the address Valid IP Addresses lie between the Network Address and the Broadcast Address. Only Valid IP Addresses are assigned to hosts/clients

Example - Class A Class A : N.H.H.H Network Address : 0xxxxxxx.00000000.00000000.00000000 Broadcast Address : 0xxxxxxx.11111111.11111111.11111111 Class A 10.0.0.0 10.0.0.1 10.0.0.2 10.0.0.3 10.255.255.254 10.255.255.255 Network Address Valid IP Addresses Broadcast Address

Example - Class B 10xxxxxx.xxxxxxxx.00000000.00000000 Class B : N.N.H.H Network Address : 10xxxxxx.xxxxxxxx.00000000.00000000 Broadcast Address : 10xxxxxx.xxxxxxxx.11111111.11111111 Network Address Class B 172.16.0.0 172.16.0.1 172.16.0.2 172.16.0.3 172.16.255.254 172.16.255.255 Broadcast Address Valid IP Addresses

Example - Class C Class C : N.N.N.H Network Address : 110xxxxx.xxxxxxxx.xxxxxxxx.00000000 Broadcast Address : 110xxxxx.xxxxxxxx.xxxxxxxx.11111111 Network Address Class C 192.168.1.0 192.168.1.1 192.168.1.2 192.168.1.3 192.168.1.254 192.168.1.255 Broadcast Address Valid IP Addresses

Private IP Address There are certain addresses in each class of IP address that are reserved for LAN. These addresses are called private addresses. They can be used for: home & office networks, ATM machines, networks not connected to Internet. Class A 10.0.0.0 to 10.255.255.255 Class B 172.16.0.0 to 172.31.255.255 Class C 192.168.0.0 to 192.168.255.255

Subnet Mask Subnet Mask differentiates Network portion and Host Portion Subnet Mask is been given for host Identification of Network ID Represent all Network Bit Values with 1 Represent all Host Bit Values with 0

What is Subnet ? A portion of network Which may be a physically independent network Which share network address with other portion of bigger network

What is subnetting ? Subnetting is essentially the modification of a singal IP network to create two or more logical visible sub section. It achieve by usesing bits from host portion of the IP address & reserves them to define a Subnet address

When subnetting is necessary . Subnetting is required when one netwrok number needs to be distribute across multiple LAN segement . Hosts which dominate most of the LAN bandwidth need to isolated.

The Fast Way: Subnetting How many subnets? 2x = number of subnets. x is the number of masked bits, or the 1s. How many hosts per subnet? 2y – 2 = number of hosts per subnet. y is the number of unmasked bits, or the 0s. You need to subtract two for the subnet/network address and the broadcast address, which are not valid hosts. What are the valid subnets? 256 – subnet mask = block size, or increment number. What’s the broadcast address for each subnet? the broadcast address is always the number right before the next subnet. What are the valid hosts? These are the numbers between the subnet and broadcast address.

Class C network of 204.15.5.0/24 You can start by looking at the subnet requirement. In order to create the five needed subnets you would need to use three bits from the Class C host bits. Two bits would only allow you four subnets (22). Since you need three subnet bits, that leaves you with five bits for the host portion of the address. How many hosts will this support? 25 = 32 (30 usable). This meets the requirement.

Contt.. Host address range 1 to 30 Host address range 33 to 62 netA: 204.15.5.0/27 netB: 204.15.5.32/27 netC: 204.15.5.64/27 netD: 204.15.5.96/27 netE: 204.15.5.128/27 Host address range 1 to 30 Host address range 33 to 62 Host address range 65 to 94 Host address range 97 to 126 Host address range 129 to 158

VLSM-Variable Length Subnet Mask In all of the previous examples of subnetting you will notice that the same subnet mask was applied for all the subnets. This means that each subnet has the same number of available host addresses. You may need this in some cases, but, in most cases, having the same subnet mask for all subnets ends up wasting address space. For example, in the solution above, a class C network was split into eight equal-size subnets; however, each subnet did not utilize all available host addresses, which results in wasted address space. The figure below illustrates this wasted address space.

VLSM netA: 204.15.5.0/27 netB: 204.15.5.32/27 netC: 204.15.5.64/27 Variable Length Subnet Masks (VLSM) allows you to use different masks for each subnet, thereby using address space efficiently. netA: 204.15.5.0/27 netB: 204.15.5.32/27 netC: 204.15.5.64/27 netD: 204.15.5.96/27 netE: 204.15.5.128/27

VLSM netA: requires a /28 (255.255.255.240) mask to support 14 hosts netB: requires a /27 (255.255.255.224) mask to support 28 hosts netC: requires a /30 (255.255.255.252) mask to support 2 hosts netD*: requires a /28 (255.255.255.240) mask to support 7 hosts netE: requires a /27 (255.255.255.224) mask to support 28 hosts  Solution :--- netB: 204.15.5.0/27 host address range 1 to 30 netE: 204.15.5.32/27 host address range 33 to 62 netA: 204.15.5.64/28 host address range 65 to 78 netD: 204.15.5.80/28 host address range 81 to 94 netC: 204.15.5.96/30 host address range 97 to 98