SlideShare a Scribd company logo
Introduction to IP Addressing for Networking.ppt
• IP Address is Logical Address
• It is a Network Layer address (Layer 3)
• Two Versions of IP:
• IP version 4 is a 32 bit address
• IP version 6 is a 128 bit address
IP Address
• Bit is represent by 0 or 1 (i.e. Binary)
• IP address in binary form (32 bits):
01010101000001011011111100000001
• 32 bits are divided into 4 Octets:
01010101. 00000101. 10111111. 00000001
• IP address in decimal form:
85.5.191.1
IP version 4
First Octet Second Octet Third Octet Forth Octet
• It is represented in Hex notation
FEDC:BA98:7654:3210:FEDC:BA98:7654:3210
IP version 6
• Format of IPv6 address:
x : x : x : x : x : x : x : x where x is 16 bits
(4 Hex digits)
• Not case sensitive for A,B,C,D,E,F
• Leading zeros in a field are Optional.
• Successive Fields of 0 can be represented as “::”
but only once.
Eg: 2031:0000:0000:130f:0000:0000:09c4:1300
The above example can be rewritten as below:
2031::130f:0:0:9c4:1300
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
IPv4 address range
1 1 1 1 1 1 1 1 = 255
Total IP Address Range
0 . 0 . 0 . 0
to
255.255.255.255
• IP Addresses are divided into 5 Classes
• CLASS A
• CLASS B
• CLASS C
• CLASS D
• CLASS E
IP Address Classification
Used in LAN & WAN
Reserved for Multicasting
Reserved for Research &
Development
Parity Bit
• Parity Bit is used for IP Address classification.
• Most significant bit(s) from the first octet are selected
for Parity Bit(s).
• Class A priority bit is 0
• Class B priority bits are 10
• Class C priority bits are 110
• Class D priority bits are 1110
• Class E priority bits are 1111
In Class A : First bit of the first octet
is reserved as priority bit, bit value is zero.
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 1 1 1 1 1 1 1 = 127
Class A Range
0 . 0 . 0 . 0 to
127.255.255.255
Exception
0.X.X.X and 127.X.X.X
networks are reserved
In Class B : First two bits of the first
octet are reserved as priority bits, bit value as 10.
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
1 0 1 1 1 1 1 1 = 191
Class B Range
128. 0 . 0 . 0
to
191.255.255.255
For Class C range : First Three bits of the first
octet are reserved as priority bits, bit value as 110.
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
1 1 0 1 1 1 1 1 = 223
Class C Range
192. 0 . 0 . 0
to
223.255.255.255
For Class D range : First four bits of the first
octet are reserved as priority bits, bit value as 1110.
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
1 1 1 0 1 1 1 1 = 239
Class D Range
224. 0 . 0 . 0
to
239.255.255.255
For Class E range : First four bits of the first
octet are reserved as priority bits, bit value as 1111.
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
1 1 1 1 1 1 1 1 = 255
Class E Range
240. 0 . 0 . 0
to
255.255.255.255
• 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
Octet Format
CLASS A – No. Networks & Hosts
• Class A Octet Format is N.H.H.H
Network bits : 8 Host bits : 24
No. of Networks
= 2no of network bits– Priority bit
= 28-1
(-1 is Priority Bit for Class A)
= 27
= 128 – 2 (-2 is for 0 & 127 Network)
= 126 Networks
No. of Host
= 2no of host bits
-2
= 224
– 2 (-2 is for Network ID & Broadcast ID)
= 16777216 - 2
= 16777214 Hosts/Network
CLASS A
126 Networks
&
16777214 Hosts per
Network
CLASS B – No. Networks & Hosts
• Class B Octet Format is N.N.H.H
Network bits : 16 Host bits : 16
No. of Networks
= 2no of network bits– Priority bit
= 216-2
(-2 is Priority Bit for Class B)
= 214
= 16384 Networks
No. of Host
= 2no of host bits
-2
= 216
– 2 (-2 is for Network ID & Broadcast ID)
= 65536 - 2
= 65534 Hosts/Network
CLASS B
16384 Networks
&
65534 Hosts per Network
CLASS C – No. Networks & Hosts
• Class C Octet Format is N.N.N.H
Network bits : 24 Host bits : 8
No. of Networks
= 2no of network bits– Priority bit
= 224-3
(-3 is Priority Bit for Class C)
= 221
= 2097152 Networks
No. of Host
= 2no of host bits
-2
= 28
– 2 (-2 is for Network ID & Broadcast ID)
= 256 - 2
= 254 Hosts/Network
CLASS C
2097152 Networks
&
254 Hosts per Network
Network address: IP address with all bits as ZERO in the host portion.
Broadcast address: IP address with all bits as ONES in the host portion.
Valid IP Addresses lie between the Network Address and the Broadcast
Address.
Only Valid IP Addresses are assigned to hosts/clients
Network & Broadcast Address
Class A : N.H.H.H
Network Address :
0xxxxxxx.00000000.00000000.00000000
Broadcast Address :
0xxxxxxx.11111111.11111111.11111111
Example - Class A
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 Broadcast Address
Network Address
Valid IP Addresses
Class B : N.N.H.H
Network Address :
10xxxxxx.xxxxxxxx.00000000.00000000
Broadcast Address :
10xxxxxx.xxxxxxxx.11111111.11111111
Example - Class B
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
Network Address
Valid IP Addresses
Class C : N.N.N.H
Network Address :
110xxxxx.xxxxxxxx.xxxxxxxx.00000000
Broadcast Address :
110xxxxx.xxxxxxxx.xxxxxxxx.11111111
Example - Class C
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
Network Address
Valid IP Addresses
There are certain addresses in each class of IP address that are
reserved for Private Networks. These addresses are called private
addresses.
These addresses are not Routable (or) valid on Internet.
Private IP Address
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
• Represented with all 1’s in the network portion
and with all 0’s in the host portion.
Class A : N.H.H.H
11111111.00000000.00000000.00000000
Default Subnet Mask for Class A is 255.0.0.0
Class B : N.N.H.H
11111111.11111111.00000000.00000000
Default Subnet Mask for Class B is 255.255.0.0
Class C : N.N.N.H
11111111.11111111.11111111.00000000
Default Subnet Mask for Class C is 255.255.255.0
Subnet Mask - Examples
How Subnet Mask Works ?
IP Address : 192.168.1.1
Subnet Mask : 255.255.255.0
ANDING PROCESS :
192.168.1.1 =
11000000.10101000.00000001.00000001
255.255.255.0 = 11111111.11111111.11111111.00000000
=======================================
192.168.1.0 =
11000000.10101000.00000001.00000000
=======================================
The output of an AND table is 1 if both its inputs are 1.
For all other possible inputs the output is 0.
AND TABLE
0 * 0 = 0
0 * 1 = 0
1 * 0 = 0
1 * 1 = 1
Creating Multiple independent Networks from a Single Network.
Converting Host bits into Network Bits
i.e. Converting 0’s into 1’s
Subnetting can be performed in two ways.
FLSM (Fixed Length Subnet Mask)
VLSM (Variable Length subnet mask)
Subnetting can be done based on requirement .
Requirement of Networks ?
Requirement of Hosts ?
Subnetting
ZOOM Technologies is having 100 PC
Which IP address Class is preferred for the network ?
Answer : Class C.
In ZOOM Technologies there are 5 Five Departments
with 20 PCs each
ZOOM Technologies – 192.168.1.0/24
Scenario for Subnetting
– MCSE 192.168.1.1 to
192.168.1.20
192.168.1.21 to 192.168.1.40
– CISCO
– Hardware 192.168.1.41 to 192.168.1.60
– Linux 192.168.1.61 to 192.168.1.80
– Exchange 192.168.1.81 to 192.168.1.100
• Administrator’s Requirement :
Inter-department communication should not be
possible ?
Solution.
Allocate a different Network to each Department
i.e.
Scenario (…continued)
– MCSE 192.168.1.1 to 192.168.1.20
192.168.2.1 to 192.168.2.20
– CISCO
– Hardware 192.168.3.1 to 192.168.3.20
– Linux 192.168.4.1 to 192.168.4.20
– Exchange 192.168.5.1 to 192.168.5.20
Main Aim of Subnetting
Problem with the previous Scenario is :-
• Broadcast is done for 254 IPs rather than for 20 IPs.
• Wastage of IP addresses (Approximately 1000)
POWER TABLE
21
= 2
22
= 4
23
= 8
24
= 16
25
= 32
26
= 64
27
= 128
28
= 256
29
= 512
210
= 1024
211
= 2048
212
= 4096
213
= 8192
214
= 16384
215
= 32768
216
= 65536
217
= 131072
218
= 262144
219
= 524288
220
= 1048576
221
= 2097152
222
= 4194304
223
= 8388608
224
= 16777216
225
= 33554432
226
= 67108864
227
= 134217728
228
= 268435456
229
= 536870912
230
= 1073741824
231
= 2147483648
232
= 4294967296
Power table
Some Important Values
VALUES IN SUBNET MASK
Bit Value Mask
1 128 10000000
2 192 11000000
3 224 11100000
4 240 11110000
5 248 11111000
6 252 11111100
7 254 11111110
8 255 11111111
Requirement of Networks is 5 ?
Example – 1
• No. of Host
= 2h
– 2 (-2 is for Network ID & Broadcast ID)
= 25
– 2
= 32 – 2
= 30 Hosts/Subnet
Class C : N.N.N.H
110xxxxx.xxxxxxxx.xxxxxxxx.xxxxxxxx
Class C : 192.168.1.0
• No. of Subnet
= 2n
– 2  Req. of Subnet
= 23
– 2  5 (-2 is for First & Last Subnet Range)
= 8 – 2
= 6 Subnet
110xxxxx.xxxxxxxx.xxxxxxxx.xxxxxxxx
HELP
x
Example – 1 (Continued…)
• Range of Networks
Network ID Broadcast ID
192.168.1.0
• Customized Subnet Mask =
255.
11111111
.
255.
11111111
.
255.
11111111
.
11100000
1
2
8
6
4
3
2
3
2
192.168.1.32
192.168.1.64
192.168.1.96
192.168.1.128
192.168.1.160
192.168.1.192
192.168.1.224
192.168.1.31
192.168.1.63
192.168.1.95
192.168.1.127
192.168.1.159
192.168.1.191
192.168.1.223
192.168.1.255
x
Valid Subnets
224
If you convert 3 Host Bits to Network Bits
6 Subnet & 30 Hosts/Subnet
Customized Subnet Mask
255.255.255.224
Subnet Range
192.168.1.32 to 192.168.1.63  MCSE .
192.168.1.64 to 192.168.1.95  CISCO .
192.168.1.96 to 192.168.1.127  FIREWALL
192.168.1.128 to 192.168.1.159  SOLARIS
192.168.1.160 to 192.168.1.191  TRAINING
192.168.1.192 to 192.168.1.223  Future Use
Requirement of Networks is 14 ?
Example – 2
• No. of Host
= 2h
– 2 (-2 is for Network ID & Broadcast ID)
= 24
– 2 (h = xxxx)
= 16 - 2
= 14 Hosts/Subnet
Class C : N.N.N.H
110xxxxx.xxxxxxxx.xxxxxxxx.xxxxxxxx
Class C : 192.168.1.0
• No. of Subnet
= 2n
– 2  Req. of Subnet
= 24
– 2  14 (-2 is for First & Last Subnet
Range)
= 16 – 2
= 14 Subnet
110xxxxx.xxxxxxxx.xxxxxxxx.xxxxxxxx
HELP
x
Example – 2 (Continued…)
• Range of Networks
Network ID Broadcast ID
192.168.1.0
• Customized Subnet Mask =
255.
11111111
.
255.
11111111
.
255.
11111111
.
11110000
1
2
8
6
4
3
2
x
Valid Subnets
1
6
1
6
192.168.1.224 – 192.168.1.239
192.168.1.240 – 192.168.1.255
– 192.168.1.15
192.168.1.16 – 192.168.1.31
192.168.1.32 – 192.168.1.47
192.168.1.48 – 192.168.1.63
240
If you convert 4 Host Bits to Network Bits
14 Subnet & 14 Hosts/Subnet
Customized Subnet Mask
255.255.255.240
Subnet Range
192.168.1.16 to 192.168.1.31
192.168.1.32 to 192.168.1.47
192.168.1.48 to 192.168.1.63
192.168.1.64 to 192.168.1.80
192.168.1.224 to 192.168.1.239
Naveen Patel

More Related Content

Similar to Introduction to IP Addressing for Networking.ppt (20)

PPT
ip addressing
Jang Bahadur Singh Umath
 
PPTX
Chap3. i pv4
東原 李
 
PPT
IP Addressing.ppt
jAIREN1
 
PPTX
chapter 4.pptx
aakritii765
 
PPTX
Wipro telecom training i pv4 concepts
JAIGANESH SEKAR
 
PPTX
1703_anusua_basuclassful addressing_IP_Addressing
AnusuaBasu
 
PPT
453599812-Lecture24-25-Subnetting-ppt.ppt
mindhackers161
 
PPT
453599812-Lecture24-25-Subnetting-ppt.ppt
FaizanSiddiqui72
 
PDF
Networking Brush Up for Amazon AWS Administrators
Aniekan Akpaffiong
 
PPT
Expl net fund_chapter_06_i_pv4_part_2
kurtmctaggart
 
PPTX
Chap2. ipv4-arp-icmp
東原 李
 
DOCX
IP classes and subnetting.
university of Gujrat, pakistan
 
PPT
Mod6
Alam Garcia
 
PPT
Ip addresses
Asif
 
PPSX
Ip addressing
University of Technology
 
PPTX
IP Addrass and classes Network and security.pptx
YazanMohamed1
 
PPTX
IP Addressing.pptx......................
salmannawaz6566504
 
PPTX
IPand subnet
Nguyễn Thế Nghị
 
PPTX
data and addressing for internet having new
aashimakundu8
 
Chap3. i pv4
東原 李
 
IP Addressing.ppt
jAIREN1
 
chapter 4.pptx
aakritii765
 
Wipro telecom training i pv4 concepts
JAIGANESH SEKAR
 
1703_anusua_basuclassful addressing_IP_Addressing
AnusuaBasu
 
453599812-Lecture24-25-Subnetting-ppt.ppt
mindhackers161
 
453599812-Lecture24-25-Subnetting-ppt.ppt
FaizanSiddiqui72
 
Networking Brush Up for Amazon AWS Administrators
Aniekan Akpaffiong
 
Expl net fund_chapter_06_i_pv4_part_2
kurtmctaggart
 
Chap2. ipv4-arp-icmp
東原 李
 
IP classes and subnetting.
university of Gujrat, pakistan
 
Ip addresses
Asif
 
IP Addrass and classes Network and security.pptx
YazanMohamed1
 
IP Addressing.pptx......................
salmannawaz6566504
 
IPand subnet
Nguyễn Thế Nghị
 
data and addressing for internet having new
aashimakundu8
 

More from Muhammad54342 (14)

PPTX
Advanced Cyber Security and Digital Forensics.pptx
Muhammad54342
 
PPTX
CYB 305 Forensics and Digital Computer Security.pptx
Muhammad54342
 
PPT
An Introduction to Privacy Policy Lecture Note One.ppt
Muhammad54342
 
PPTX
Signal Processing Digital and Continuous part2.pptx
Muhammad54342
 
PPTX
Signal Processing Digital and Continuous .pptx
Muhammad54342
 
PPT
An Introduction to Computer Logic and Digital Design.ppt
Muhammad54342
 
PPT
Information Processing System Computing made easy.ppt
Muhammad54342
 
PPT
Cyber Forensics Make Easy Notes for Beginners.ppt
Muhammad54342
 
PPT
A Guide to Computer Forensics Lecture Notes .ppt
Muhammad54342
 
PPT
Computer Security and Privacy Lecture Notes .ppt
Muhammad54342
 
PPT
Lecture Notes for Postgraduates Students.ppt
Muhammad54342
 
PPTX
Advanced Software Engineering Lecture Notes from University of Maiduguri.pptx
Muhammad54342
 
PPT
Wireless Sensor Networks Lectures notes.ppt
Muhammad54342
 
PPTX
Multiprocessor.pptx
Muhammad54342
 
Advanced Cyber Security and Digital Forensics.pptx
Muhammad54342
 
CYB 305 Forensics and Digital Computer Security.pptx
Muhammad54342
 
An Introduction to Privacy Policy Lecture Note One.ppt
Muhammad54342
 
Signal Processing Digital and Continuous part2.pptx
Muhammad54342
 
Signal Processing Digital and Continuous .pptx
Muhammad54342
 
An Introduction to Computer Logic and Digital Design.ppt
Muhammad54342
 
Information Processing System Computing made easy.ppt
Muhammad54342
 
Cyber Forensics Make Easy Notes for Beginners.ppt
Muhammad54342
 
A Guide to Computer Forensics Lecture Notes .ppt
Muhammad54342
 
Computer Security and Privacy Lecture Notes .ppt
Muhammad54342
 
Lecture Notes for Postgraduates Students.ppt
Muhammad54342
 
Advanced Software Engineering Lecture Notes from University of Maiduguri.pptx
Muhammad54342
 
Wireless Sensor Networks Lectures notes.ppt
Muhammad54342
 
Multiprocessor.pptx
Muhammad54342
 
Ad

Recently uploaded (20)

PPTX
Tally_Basic_Operations_Presentation.pptx
AditiBansal54083
 
PDF
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
PDF
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
PPTX
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
PPTX
Agentic Automation Journey Series Day 2 – Prompt Engineering for UiPath Agents
klpathrudu
 
PDF
AOMEI Partition Assistant Crack 10.8.2 + WinPE Free Downlaod New Version 2025
bashirkhan333g
 
PDF
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
PDF
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
PPTX
Hardware(Central Processing Unit ) CU and ALU
RizwanaKalsoom2
 
PDF
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
PPTX
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 
PDF
SAP Firmaya İade ABAB Kodları - ABAB ile yazılmıl hazır kod örneği
Salih Küçük
 
PPTX
Help for Correlations in IBM SPSS Statistics.pptx
Version 1 Analytics
 
PPTX
Foundations of Marketo Engage - Powering Campaigns with Marketo Personalization
bbedford2
 
PDF
How to Hire AI Developers_ Step-by-Step Guide in 2025.pdf
DianApps Technologies
 
PDF
The 5 Reasons for IT Maintenance - Arna Softech
Arna Softech
 
PPTX
Finding Your License Details in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
PDF
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
PDF
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
Tally_Basic_Operations_Presentation.pptx
AditiBansal54083
 
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
Agentic Automation Journey Series Day 2 – Prompt Engineering for UiPath Agents
klpathrudu
 
AOMEI Partition Assistant Crack 10.8.2 + WinPE Free Downlaod New Version 2025
bashirkhan333g
 
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
Hardware(Central Processing Unit ) CU and ALU
RizwanaKalsoom2
 
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 
SAP Firmaya İade ABAB Kodları - ABAB ile yazılmıl hazır kod örneği
Salih Küçük
 
Help for Correlations in IBM SPSS Statistics.pptx
Version 1 Analytics
 
Foundations of Marketo Engage - Powering Campaigns with Marketo Personalization
bbedford2
 
How to Hire AI Developers_ Step-by-Step Guide in 2025.pdf
DianApps Technologies
 
The 5 Reasons for IT Maintenance - Arna Softech
Arna Softech
 
Finding Your License Details in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
Ad

Introduction to IP Addressing for Networking.ppt

  • 2. • IP Address is Logical Address • It is a Network Layer address (Layer 3) • Two Versions of IP: • IP version 4 is a 32 bit address • IP version 6 is a 128 bit address IP Address
  • 3. • Bit is represent by 0 or 1 (i.e. Binary) • IP address in binary form (32 bits): 01010101000001011011111100000001 • 32 bits are divided into 4 Octets: 01010101. 00000101. 10111111. 00000001 • IP address in decimal form: 85.5.191.1 IP version 4 First Octet Second Octet Third Octet Forth Octet
  • 4. • It is represented in Hex notation FEDC:BA98:7654:3210:FEDC:BA98:7654:3210 IP version 6 • Format of IPv6 address: x : x : x : x : x : x : x : x where x is 16 bits (4 Hex digits) • Not case sensitive for A,B,C,D,E,F • Leading zeros in a field are Optional. • Successive Fields of 0 can be represented as “::” but only once. Eg: 2031:0000:0000:130f:0000:0000:09c4:1300 The above example can be rewritten as below: 2031::130f:0:0:9c4:1300
  • 5. 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 IPv4 address range 1 1 1 1 1 1 1 1 = 255 Total IP Address Range 0 . 0 . 0 . 0 to 255.255.255.255
  • 6. • IP Addresses are divided into 5 Classes • CLASS A • CLASS B • CLASS C • CLASS D • CLASS E IP Address Classification Used in LAN & WAN Reserved for Multicasting Reserved for Research & Development
  • 7. Parity Bit • Parity Bit is used for IP Address classification. • Most significant bit(s) from the first octet are selected for Parity Bit(s). • Class A priority bit is 0 • Class B priority bits are 10 • Class C priority bits are 110 • Class D priority bits are 1110 • Class E priority bits are 1111
  • 8. In Class A : First bit of the first octet is reserved as priority bit, bit value is zero. 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 1 1 1 1 1 1 1 = 127 Class A Range 0 . 0 . 0 . 0 to 127.255.255.255 Exception 0.X.X.X and 127.X.X.X networks are reserved
  • 9. In Class B : First two bits of the first octet are reserved as priority bits, bit value as 10. 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 1 0 1 1 1 1 1 1 = 191 Class B Range 128. 0 . 0 . 0 to 191.255.255.255
  • 10. For Class C range : First Three bits of the first octet are reserved as priority bits, bit value as 110. 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 1 1 0 1 1 1 1 1 = 223 Class C Range 192. 0 . 0 . 0 to 223.255.255.255
  • 11. For Class D range : First four bits of the first octet are reserved as priority bits, bit value as 1110. 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 1 1 1 0 1 1 1 1 = 239 Class D Range 224. 0 . 0 . 0 to 239.255.255.255
  • 12. For Class E range : First four bits of the first octet are reserved as priority bits, bit value as 1111. 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 1 1 1 1 1 1 1 1 = 255 Class E Range 240. 0 . 0 . 0 to 255.255.255.255
  • 13. • 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 Octet Format
  • 14. CLASS A – No. Networks & Hosts • Class A Octet Format is N.H.H.H Network bits : 8 Host bits : 24 No. of Networks = 2no of network bits– Priority bit = 28-1 (-1 is Priority Bit for Class A) = 27 = 128 – 2 (-2 is for 0 & 127 Network) = 126 Networks No. of Host = 2no of host bits -2 = 224 – 2 (-2 is for Network ID & Broadcast ID) = 16777216 - 2 = 16777214 Hosts/Network CLASS A 126 Networks & 16777214 Hosts per Network
  • 15. CLASS B – No. Networks & Hosts • Class B Octet Format is N.N.H.H Network bits : 16 Host bits : 16 No. of Networks = 2no of network bits– Priority bit = 216-2 (-2 is Priority Bit for Class B) = 214 = 16384 Networks No. of Host = 2no of host bits -2 = 216 – 2 (-2 is for Network ID & Broadcast ID) = 65536 - 2 = 65534 Hosts/Network CLASS B 16384 Networks & 65534 Hosts per Network
  • 16. CLASS C – No. Networks & Hosts • Class C Octet Format is N.N.N.H Network bits : 24 Host bits : 8 No. of Networks = 2no of network bits– Priority bit = 224-3 (-3 is Priority Bit for Class C) = 221 = 2097152 Networks No. of Host = 2no of host bits -2 = 28 – 2 (-2 is for Network ID & Broadcast ID) = 256 - 2 = 254 Hosts/Network CLASS C 2097152 Networks & 254 Hosts per Network
  • 17. Network address: IP address with all bits as ZERO in the host portion. Broadcast address: IP address with all bits as ONES in the host portion. Valid IP Addresses lie between the Network Address and the Broadcast Address. Only Valid IP Addresses are assigned to hosts/clients Network & Broadcast Address
  • 18. Class A : N.H.H.H Network Address : 0xxxxxxx.00000000.00000000.00000000 Broadcast Address : 0xxxxxxx.11111111.11111111.11111111 Example - Class A 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 Broadcast Address Network Address Valid IP Addresses
  • 19. Class B : N.N.H.H Network Address : 10xxxxxx.xxxxxxxx.00000000.00000000 Broadcast Address : 10xxxxxx.xxxxxxxx.11111111.11111111 Example - Class B 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 Network Address Valid IP Addresses
  • 20. Class C : N.N.N.H Network Address : 110xxxxx.xxxxxxxx.xxxxxxxx.00000000 Broadcast Address : 110xxxxx.xxxxxxxx.xxxxxxxx.11111111 Example - Class C 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 Network Address Valid IP Addresses
  • 21. There are certain addresses in each class of IP address that are reserved for Private Networks. These addresses are called private addresses. These addresses are not Routable (or) valid on Internet. Private IP Address 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
  • 22. Subnet Mask • Subnet Mask differentiates Network portion and Host Portion • Represented with all 1’s in the network portion and with all 0’s in the host portion.
  • 23. Class A : N.H.H.H 11111111.00000000.00000000.00000000 Default Subnet Mask for Class A is 255.0.0.0 Class B : N.N.H.H 11111111.11111111.00000000.00000000 Default Subnet Mask for Class B is 255.255.0.0 Class C : N.N.N.H 11111111.11111111.11111111.00000000 Default Subnet Mask for Class C is 255.255.255.0 Subnet Mask - Examples
  • 24. How Subnet Mask Works ? IP Address : 192.168.1.1 Subnet Mask : 255.255.255.0 ANDING PROCESS : 192.168.1.1 = 11000000.10101000.00000001.00000001 255.255.255.0 = 11111111.11111111.11111111.00000000 ======================================= 192.168.1.0 = 11000000.10101000.00000001.00000000 ======================================= The output of an AND table is 1 if both its inputs are 1. For all other possible inputs the output is 0. AND TABLE 0 * 0 = 0 0 * 1 = 0 1 * 0 = 0 1 * 1 = 1
  • 25. Creating Multiple independent Networks from a Single Network. Converting Host bits into Network Bits i.e. Converting 0’s into 1’s Subnetting can be performed in two ways. FLSM (Fixed Length Subnet Mask) VLSM (Variable Length subnet mask) Subnetting can be done based on requirement . Requirement of Networks ? Requirement of Hosts ? Subnetting
  • 26. ZOOM Technologies is having 100 PC Which IP address Class is preferred for the network ? Answer : Class C. In ZOOM Technologies there are 5 Five Departments with 20 PCs each ZOOM Technologies – 192.168.1.0/24 Scenario for Subnetting – MCSE 192.168.1.1 to 192.168.1.20 192.168.1.21 to 192.168.1.40 – CISCO – Hardware 192.168.1.41 to 192.168.1.60 – Linux 192.168.1.61 to 192.168.1.80 – Exchange 192.168.1.81 to 192.168.1.100
  • 27. • Administrator’s Requirement : Inter-department communication should not be possible ? Solution. Allocate a different Network to each Department i.e. Scenario (…continued) – MCSE 192.168.1.1 to 192.168.1.20 192.168.2.1 to 192.168.2.20 – CISCO – Hardware 192.168.3.1 to 192.168.3.20 – Linux 192.168.4.1 to 192.168.4.20 – Exchange 192.168.5.1 to 192.168.5.20
  • 28. Main Aim of Subnetting Problem with the previous Scenario is :- • Broadcast is done for 254 IPs rather than for 20 IPs. • Wastage of IP addresses (Approximately 1000)
  • 29. POWER TABLE 21 = 2 22 = 4 23 = 8 24 = 16 25 = 32 26 = 64 27 = 128 28 = 256 29 = 512 210 = 1024 211 = 2048 212 = 4096 213 = 8192 214 = 16384 215 = 32768 216 = 65536 217 = 131072 218 = 262144 219 = 524288 220 = 1048576 221 = 2097152 222 = 4194304 223 = 8388608 224 = 16777216 225 = 33554432 226 = 67108864 227 = 134217728 228 = 268435456 229 = 536870912 230 = 1073741824 231 = 2147483648 232 = 4294967296 Power table
  • 30. Some Important Values VALUES IN SUBNET MASK Bit Value Mask 1 128 10000000 2 192 11000000 3 224 11100000 4 240 11110000 5 248 11111000 6 252 11111100 7 254 11111110 8 255 11111111
  • 31. Requirement of Networks is 5 ? Example – 1 • No. of Host = 2h – 2 (-2 is for Network ID & Broadcast ID) = 25 – 2 = 32 – 2 = 30 Hosts/Subnet Class C : N.N.N.H 110xxxxx.xxxxxxxx.xxxxxxxx.xxxxxxxx Class C : 192.168.1.0 • No. of Subnet = 2n – 2  Req. of Subnet = 23 – 2  5 (-2 is for First & Last Subnet Range) = 8 – 2 = 6 Subnet 110xxxxx.xxxxxxxx.xxxxxxxx.xxxxxxxx HELP
  • 32. x Example – 1 (Continued…) • Range of Networks Network ID Broadcast ID 192.168.1.0 • Customized Subnet Mask = 255. 11111111 . 255. 11111111 . 255. 11111111 . 11100000 1 2 8 6 4 3 2 3 2 192.168.1.32 192.168.1.64 192.168.1.96 192.168.1.128 192.168.1.160 192.168.1.192 192.168.1.224 192.168.1.31 192.168.1.63 192.168.1.95 192.168.1.127 192.168.1.159 192.168.1.191 192.168.1.223 192.168.1.255 x Valid Subnets 224 If you convert 3 Host Bits to Network Bits 6 Subnet & 30 Hosts/Subnet Customized Subnet Mask 255.255.255.224 Subnet Range 192.168.1.32 to 192.168.1.63  MCSE . 192.168.1.64 to 192.168.1.95  CISCO . 192.168.1.96 to 192.168.1.127  FIREWALL 192.168.1.128 to 192.168.1.159  SOLARIS 192.168.1.160 to 192.168.1.191  TRAINING 192.168.1.192 to 192.168.1.223  Future Use
  • 33. Requirement of Networks is 14 ? Example – 2 • No. of Host = 2h – 2 (-2 is for Network ID & Broadcast ID) = 24 – 2 (h = xxxx) = 16 - 2 = 14 Hosts/Subnet Class C : N.N.N.H 110xxxxx.xxxxxxxx.xxxxxxxx.xxxxxxxx Class C : 192.168.1.0 • No. of Subnet = 2n – 2  Req. of Subnet = 24 – 2  14 (-2 is for First & Last Subnet Range) = 16 – 2 = 14 Subnet 110xxxxx.xxxxxxxx.xxxxxxxx.xxxxxxxx HELP
  • 34. x Example – 2 (Continued…) • Range of Networks Network ID Broadcast ID 192.168.1.0 • Customized Subnet Mask = 255. 11111111 . 255. 11111111 . 255. 11111111 . 11110000 1 2 8 6 4 3 2 x Valid Subnets 1 6 1 6 192.168.1.224 – 192.168.1.239 192.168.1.240 – 192.168.1.255 – 192.168.1.15 192.168.1.16 – 192.168.1.31 192.168.1.32 – 192.168.1.47 192.168.1.48 – 192.168.1.63 240 If you convert 4 Host Bits to Network Bits 14 Subnet & 14 Hosts/Subnet Customized Subnet Mask 255.255.255.240 Subnet Range 192.168.1.16 to 192.168.1.31 192.168.1.32 to 192.168.1.47 192.168.1.48 to 192.168.1.63 192.168.1.64 to 192.168.1.80 192.168.1.224 to 192.168.1.239