SlideShare a Scribd company logo
1 of 23
Introduction to IP(Internet Protocol)
Addressing
PREPARED BY
SHETH KUSHAL (130510111011)
Index
History
Introduction
OSI Model V/S TCP/IP Model
IP addressing Basic class ful addressing
Various Classes of IP Address
Explanation of all classes
Limitation of Classful IP Addressing
Subnetting
Classless IP addressing (CIDR)
Brief Example of Classless IP Addressing
History
Computer network is getting connected in Late 60’s.
In 1978 ISO (International Standard Organization) proposed a new model for
networking for easy access and understanding. Which is of 7 layers and known as
OSI (Open System Interface) model.
As the updatation in OSI model TCP/IP (Transmission Control Protocol/ Internet
Protocol) is developed and merged in 1st January 1983 with APRANET (The
Advanced Research Projects Agency Network).
The TCP/IP model have 4 layers which strictly follow the 7 layers of OSI model.
Introduction
The IP (Internet Protocol) is basically a unique address of any device by which the
device can communicate with other devices or communicate world wide in terms of
Internet.
There are two basic Types of IP address.
◦ IPv4 (IP version 4) (Earlier technology still used by 70% devices)
◦ IPv6 (IP version 6) (Newer version as the addresses range is about to complete of IPv4)
IPv4 (The address is divided into four parts each having 8 bits and separated by dotted
decimal point and usually written in decimal for easy understanding)
*We are learning only about IPv4 addressing here.
OSI model V/S TCP/IP model
OSI Model TCP/IP Model
1. Application Layer 1. Application Layer
2. Presentation Layer Telnet FTP DNS
3.Session Layer
4. Transportation Layer 2. Transport Layer
TCP UDP
5. Network Layer 3. Internet Layer
IP
6. Data link Layer 4. Host to Host network
7. Physical Layer LAN X.25
IP addressing Basic class ful
addressing
An IP address basically a 32-bit address that uniquely universally defines
connection of host or a router to the Internet. IP address is unique.
Address space of IPv4 is 232.
Introduced by IANA (Internet Assigned Numbers Authority).
32 bit is divided into 4 equal parts of 8-8 bits separated by dotted decimal notation.
It is in the range of minimum 0.0.0.0 to 255.255.255.255.
Each 8 bit group is known by OCTET.
Various IP classes
IP has five different classes differentiated by characteristics.
◦ Class-A ranges from 0 to 127
◦ Class-B ranges from 128 to 191
◦ Class-C ranges from 192 to 223
◦ Class-D ranges from 224 to 239
◦ Class-E ranges from 240 to 255
First Octet is defines the class of particular IP e.g. - 128.11.3.31 is follow in class –B
127.0.0.0 to 127.255.255.255 is a range of look back IP.
IP Classes (Contd.)
Official Method to find the class of particular IP.
Check the first octet, Convert it to Binary, then
If, 1st bit is 0 then it comes to class A, If 1st bit is 1 and 2nd bit is 0 then it comes to class B, If 1st
two bit is 1 and 3rd bit is 0 then it comes to class C. If 1st three bits are 1and 4th bit is 0 then it
comes to class D and if all 4 bits are 1 then it comes to class E.
Class C network id host11 0
Network Prefix
24 bits
Host Number
8 bits
bit # 0 1 23 242 313
Class B 1 network id host
bit # 0 1 15 162
Network Prefix
16 bits
Host Number
16 bits
0
31
Class A 0
Network Prefix
8 bits
bit # 0 1 7 8
Host Number
24 bits
31
Class D multicast group id11 1
bit # 0 1 2 313
0
4
Class E (reserved for future use)11 1
bit # 0 1 2 313
1
4
0
5
Classes of IP addresses
Class-A
This IP ranges from 0 to 126 Decimal value in first octet. And 1st octet defines network part
and remaining three octet defines the Host part. It patterns like this NHHH (N-Network; H-
Host).
First 8bits defines network and remaining 24 bits defines host parts.
It has a highest nos. of address 231.which is about 16,277,216.
It is denoted by IP/8.
Private Network IP ranges from 10.0.0.0 to 10.255.255.255. in general formation of 10.0.0.0/8
Class B
This IP ranges from 128 to 191 Decimal value in first octet. And 1st two bit defines network
part and remaining two octet defines the Host part. It patterns like this NNHH (N-Network;
H-Host).
First 16 bits defines network and remaining 16 bits defines host parts.
It has a highest nos. of address 230.which is about 65,536.
It is denoted by IP/16.
Private Network IP ranges from 172.16.0.0 to 172.31.255.255. in general formation of
172.16.0.0/12
Class C
This IP ranges from 192 to 223 Decimal value in first octet. And 1st three bit defines network
part and remaining one octet defines the Host part. It patterns like this NNNH (N-Network;
H-Host).
First 24 bits defines network and remaining 8 bits defines host parts.
It has a highest nos. of address 229.which is about 256.
It is denoted by IP/24.
Private Network IP ranges from 192.168.0.0 to 192.168.255.255. in general formation of
192.168.0.0/16.
Class-D
This IP ranges from 224 to 239 Decimal value in first octet.
It is not usually use in general applications.
It is use in Special purpose applications known as Multicast.
Class-E
This IP ranges from 240 to 255 Decimal value in first octet.
It is not usually use in general applications.
It is reserved range of IP by R & D (Research and Development) department.
Usually, Class-A to C is supported by PC and Class-D and E is not supported.
Limitations of Classful IP Addressing
• Running out of address space soon
232 = 4,294,967,296 addresses
• Class boundaries did not foster
efficient allocation of address space
Lack of address class to support medium size company
Class B: 65534 hosts/network, too big!
-- Class C: 254 hosts/network, too small!
-- Use multiple class C addresses,
increase routing table!
Subnetting
Subnetting is the process to divide a Big network in some smaller networks for ease of access.
Ex.
University Network
Engineering
School
Medical
School
Library
Add another level of hierarchy to the IP addressing structure this is also called Subnetting.
Basic Idea of Subnetting
Split the host number portion of an IP address into a subnet number and a (smaller) host
number.
Result is a 3-layer hierarchy
Then:
◦ Subnets can be freely assigned within the organization
◦ Internally, subnets are treated as separate networks
◦ Subnet structure is not visible outside the organization
network prefix
host number
host number
network prefix
subnet number
Advantages of subnetting
With subnetting, IP addresses use a 3-layer hierarchy:
◦ Network
◦ Subnet
◦ Host
Improves efficiency of IP addresses by not consuming an entire address space for each
physical network.
Reduces router complexity. Since external routers do not know about subnetting, the
complexity of routing tables at external routers is reduced.
Note: Length of the subnet mask need not be identical at all sub networks.
Classless IP Addressing
The Process of give the classless IP is also called “CIDR ”
It is announced in 1996, allows an ISP to assign as few or as many IP addresses as requested.
Two terms often used in classless addressing
◦ Prefix – another name for the common part of the address range (netid)
◦ Prefix length – the length of the prefix
In classless addressing, the last address in the block does not necessarily end in 255.
In CIDR (Classless Inter Domain Routing) notation, the block granted is defined by the first
address and the prefix length.
When an organization is granted a block of addresses, it can create subnets to meet its needs.
The prefix length increases to define the subnet prefix length.
In fixed-length subnetting, the number of subnets is a power of 2.
Subnet Mask Table
The addresses in color are the default masks for classes A, B, and C.
Thus, classful addressing is a special case of classless addressing.
How classless IP Addressing helps??
Consider a network that contains 9 hosts
Only 4 bits of host suffix are needed to represent all possible host values.
However, a class C address has names for 256 hosts.
Classless addressing solves this problem by allowing an ISP to assign a prefix that is 28 bits
long and the suffix then is 4 bits long.
With 4 bits for the suffix, there are 16-2 = 14 host numbers
CIDR Block Example
If an ISP has two computers each with only 12 computers each, the ISP can use CIDR to
partition a class B IP address into three parts: two for each of the customers and the
remainder available for future use.
One customer can be assigned: 128.211.0.16/28
The other customer can be assigned: 128.211.0.32/28
Basics of IP Addressing
Basics of IP Addressing

More Related Content

What's hot (20)

IPv4 Addressing
 IPv4 Addressing   IPv4 Addressing
IPv4 Addressing
 
Ip addressing
Ip addressingIp addressing
Ip addressing
 
MAC & IP addresses
MAC & IP addressesMAC & IP addresses
MAC & IP addresses
 
IP Address - IPv4 & IPv6
IP Address - IPv4 & IPv6IP Address - IPv4 & IPv6
IP Address - IPv4 & IPv6
 
Ip addressing classful
Ip addressing classfulIp addressing classful
Ip addressing classful
 
IP classes
IP classesIP classes
IP classes
 
Cn ipv4 addressing
Cn ipv4 addressingCn ipv4 addressing
Cn ipv4 addressing
 
IP Address
IP AddressIP Address
IP Address
 
Internet Protocol version 6
Internet Protocol version 6Internet Protocol version 6
Internet Protocol version 6
 
Internet protocol (ip)
Internet protocol (ip)Internet protocol (ip)
Internet protocol (ip)
 
Ipv4 ppt
Ipv4 pptIpv4 ppt
Ipv4 ppt
 
IP NETWORKING AND IP SUBNET MASKING
IP NETWORKING AND IP SUBNET MASKING IP NETWORKING AND IP SUBNET MASKING
IP NETWORKING AND IP SUBNET MASKING
 
Ip addressing
Ip addressingIp addressing
Ip addressing
 
IPV6 ADDRESS
IPV6 ADDRESSIPV6 ADDRESS
IPV6 ADDRESS
 
IP Addressing & subnetting strategy
IP Addressing & subnetting strategyIP Addressing & subnetting strategy
IP Addressing & subnetting strategy
 
IP Address
IP AddressIP Address
IP Address
 
Computer Networking: Subnetting and IP Addressing
Computer Networking: Subnetting and IP AddressingComputer Networking: Subnetting and IP Addressing
Computer Networking: Subnetting and IP Addressing
 
Ip address
Ip address Ip address
Ip address
 
Network protocol
Network protocolNetwork protocol
Network protocol
 
IP addressing seminar ppt
IP addressing seminar pptIP addressing seminar ppt
IP addressing seminar ppt
 

Similar to Basics of IP Addressing

Similar to Basics of IP Addressing (20)

Ip address and subnet masking final
Ip address and subnet masking finalIp address and subnet masking final
Ip address and subnet masking final
 
ipv4 (internet protocol version 4)
  ipv4 (internet protocol version 4)     ipv4 (internet protocol version 4)
ipv4 (internet protocol version 4)
 
Ch7 IP addressing.pptx
Ch7 IP addressing.pptxCh7 IP addressing.pptx
Ch7 IP addressing.pptx
 
chapter 6.pptx
chapter 6.pptxchapter 6.pptx
chapter 6.pptx
 
5 configuring TCP/IP
5 configuring TCP/IP5 configuring TCP/IP
5 configuring TCP/IP
 
https://diplomasolutionstudents.blogspot.com/
https://diplomasolutionstudents.blogspot.com/https://diplomasolutionstudents.blogspot.com/
https://diplomasolutionstudents.blogspot.com/
 
ETT 05203 Lecture 5 IP addressing.ppt
ETT 05203 Lecture 5 IP addressing.pptETT 05203 Lecture 5 IP addressing.ppt
ETT 05203 Lecture 5 IP addressing.ppt
 
Chapter2ccna
Chapter2ccnaChapter2ccna
Chapter2ccna
 
Chapter2ccna
Chapter2ccnaChapter2ccna
Chapter2ccna
 
IP Address
IP AddressIP Address
IP Address
 
IP Address & Its Classes .pdf
IP    Address   &   Its    Classes  .pdfIP    Address   &   Its    Classes  .pdf
IP Address & Its Classes .pdf
 
Internet protocols
Internet protocolsInternet protocols
Internet protocols
 
IP and MAC Address
IP and MAC AddressIP and MAC Address
IP and MAC Address
 
IP_ADDRESSING_AND_SUBNETTING.pptx
IP_ADDRESSING_AND_SUBNETTING.pptxIP_ADDRESSING_AND_SUBNETTING.pptx
IP_ADDRESSING_AND_SUBNETTING.pptx
 
IP Addressing
IP AddressingIP Addressing
IP Addressing
 
Vlsm
VlsmVlsm
Vlsm
 
Ip addressing upload
Ip addressing uploadIp addressing upload
Ip addressing upload
 
Internet Protocol
Internet ProtocolInternet Protocol
Internet Protocol
 
IP & MAC Addressing
IP & MAC Addressing IP & MAC Addressing
IP & MAC Addressing
 
Ramakant tyagi presentation on ip addressing
Ramakant tyagi presentation on ip addressingRamakant tyagi presentation on ip addressing
Ramakant tyagi presentation on ip addressing
 

Recently uploaded

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard37
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKJago de Vreede
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAnitaRaj43
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 

Recently uploaded (20)

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 

Basics of IP Addressing

  • 1. Introduction to IP(Internet Protocol) Addressing PREPARED BY SHETH KUSHAL (130510111011)
  • 2. Index History Introduction OSI Model V/S TCP/IP Model IP addressing Basic class ful addressing Various Classes of IP Address Explanation of all classes Limitation of Classful IP Addressing Subnetting Classless IP addressing (CIDR) Brief Example of Classless IP Addressing
  • 3. History Computer network is getting connected in Late 60’s. In 1978 ISO (International Standard Organization) proposed a new model for networking for easy access and understanding. Which is of 7 layers and known as OSI (Open System Interface) model. As the updatation in OSI model TCP/IP (Transmission Control Protocol/ Internet Protocol) is developed and merged in 1st January 1983 with APRANET (The Advanced Research Projects Agency Network). The TCP/IP model have 4 layers which strictly follow the 7 layers of OSI model.
  • 4. Introduction The IP (Internet Protocol) is basically a unique address of any device by which the device can communicate with other devices or communicate world wide in terms of Internet. There are two basic Types of IP address. ◦ IPv4 (IP version 4) (Earlier technology still used by 70% devices) ◦ IPv6 (IP version 6) (Newer version as the addresses range is about to complete of IPv4) IPv4 (The address is divided into four parts each having 8 bits and separated by dotted decimal point and usually written in decimal for easy understanding) *We are learning only about IPv4 addressing here.
  • 5. OSI model V/S TCP/IP model OSI Model TCP/IP Model 1. Application Layer 1. Application Layer 2. Presentation Layer Telnet FTP DNS 3.Session Layer 4. Transportation Layer 2. Transport Layer TCP UDP 5. Network Layer 3. Internet Layer IP 6. Data link Layer 4. Host to Host network 7. Physical Layer LAN X.25
  • 6. IP addressing Basic class ful addressing An IP address basically a 32-bit address that uniquely universally defines connection of host or a router to the Internet. IP address is unique. Address space of IPv4 is 232. Introduced by IANA (Internet Assigned Numbers Authority). 32 bit is divided into 4 equal parts of 8-8 bits separated by dotted decimal notation. It is in the range of minimum 0.0.0.0 to 255.255.255.255. Each 8 bit group is known by OCTET.
  • 7. Various IP classes IP has five different classes differentiated by characteristics. ◦ Class-A ranges from 0 to 127 ◦ Class-B ranges from 128 to 191 ◦ Class-C ranges from 192 to 223 ◦ Class-D ranges from 224 to 239 ◦ Class-E ranges from 240 to 255 First Octet is defines the class of particular IP e.g. - 128.11.3.31 is follow in class –B 127.0.0.0 to 127.255.255.255 is a range of look back IP.
  • 8. IP Classes (Contd.) Official Method to find the class of particular IP. Check the first octet, Convert it to Binary, then If, 1st bit is 0 then it comes to class A, If 1st bit is 1 and 2nd bit is 0 then it comes to class B, If 1st two bit is 1 and 3rd bit is 0 then it comes to class C. If 1st three bits are 1and 4th bit is 0 then it comes to class D and if all 4 bits are 1 then it comes to class E. Class C network id host11 0 Network Prefix 24 bits Host Number 8 bits bit # 0 1 23 242 313 Class B 1 network id host bit # 0 1 15 162 Network Prefix 16 bits Host Number 16 bits 0 31 Class A 0 Network Prefix 8 bits bit # 0 1 7 8 Host Number 24 bits 31 Class D multicast group id11 1 bit # 0 1 2 313 0 4 Class E (reserved for future use)11 1 bit # 0 1 2 313 1 4 0 5
  • 9. Classes of IP addresses Class-A This IP ranges from 0 to 126 Decimal value in first octet. And 1st octet defines network part and remaining three octet defines the Host part. It patterns like this NHHH (N-Network; H- Host). First 8bits defines network and remaining 24 bits defines host parts. It has a highest nos. of address 231.which is about 16,277,216. It is denoted by IP/8. Private Network IP ranges from 10.0.0.0 to 10.255.255.255. in general formation of 10.0.0.0/8
  • 10. Class B This IP ranges from 128 to 191 Decimal value in first octet. And 1st two bit defines network part and remaining two octet defines the Host part. It patterns like this NNHH (N-Network; H-Host). First 16 bits defines network and remaining 16 bits defines host parts. It has a highest nos. of address 230.which is about 65,536. It is denoted by IP/16. Private Network IP ranges from 172.16.0.0 to 172.31.255.255. in general formation of 172.16.0.0/12
  • 11. Class C This IP ranges from 192 to 223 Decimal value in first octet. And 1st three bit defines network part and remaining one octet defines the Host part. It patterns like this NNNH (N-Network; H-Host). First 24 bits defines network and remaining 8 bits defines host parts. It has a highest nos. of address 229.which is about 256. It is denoted by IP/24. Private Network IP ranges from 192.168.0.0 to 192.168.255.255. in general formation of 192.168.0.0/16.
  • 12. Class-D This IP ranges from 224 to 239 Decimal value in first octet. It is not usually use in general applications. It is use in Special purpose applications known as Multicast.
  • 13. Class-E This IP ranges from 240 to 255 Decimal value in first octet. It is not usually use in general applications. It is reserved range of IP by R & D (Research and Development) department. Usually, Class-A to C is supported by PC and Class-D and E is not supported.
  • 14. Limitations of Classful IP Addressing • Running out of address space soon 232 = 4,294,967,296 addresses • Class boundaries did not foster efficient allocation of address space Lack of address class to support medium size company Class B: 65534 hosts/network, too big! -- Class C: 254 hosts/network, too small! -- Use multiple class C addresses, increase routing table!
  • 15. Subnetting Subnetting is the process to divide a Big network in some smaller networks for ease of access. Ex. University Network Engineering School Medical School Library Add another level of hierarchy to the IP addressing structure this is also called Subnetting.
  • 16. Basic Idea of Subnetting Split the host number portion of an IP address into a subnet number and a (smaller) host number. Result is a 3-layer hierarchy Then: ◦ Subnets can be freely assigned within the organization ◦ Internally, subnets are treated as separate networks ◦ Subnet structure is not visible outside the organization network prefix host number host number network prefix subnet number
  • 17. Advantages of subnetting With subnetting, IP addresses use a 3-layer hierarchy: ◦ Network ◦ Subnet ◦ Host Improves efficiency of IP addresses by not consuming an entire address space for each physical network. Reduces router complexity. Since external routers do not know about subnetting, the complexity of routing tables at external routers is reduced. Note: Length of the subnet mask need not be identical at all sub networks.
  • 18. Classless IP Addressing The Process of give the classless IP is also called “CIDR ” It is announced in 1996, allows an ISP to assign as few or as many IP addresses as requested. Two terms often used in classless addressing ◦ Prefix – another name for the common part of the address range (netid) ◦ Prefix length – the length of the prefix In classless addressing, the last address in the block does not necessarily end in 255. In CIDR (Classless Inter Domain Routing) notation, the block granted is defined by the first address and the prefix length. When an organization is granted a block of addresses, it can create subnets to meet its needs. The prefix length increases to define the subnet prefix length. In fixed-length subnetting, the number of subnets is a power of 2.
  • 19. Subnet Mask Table The addresses in color are the default masks for classes A, B, and C. Thus, classful addressing is a special case of classless addressing.
  • 20. How classless IP Addressing helps?? Consider a network that contains 9 hosts Only 4 bits of host suffix are needed to represent all possible host values. However, a class C address has names for 256 hosts. Classless addressing solves this problem by allowing an ISP to assign a prefix that is 28 bits long and the suffix then is 4 bits long. With 4 bits for the suffix, there are 16-2 = 14 host numbers
  • 21. CIDR Block Example If an ISP has two computers each with only 12 computers each, the ISP can use CIDR to partition a class B IP address into three parts: two for each of the customers and the remainder available for future use. One customer can be assigned: 128.211.0.16/28 The other customer can be assigned: 128.211.0.32/28