SlideShare a Scribd company logo
‫شبكات‬
Subnetting Addressing
Network Addresses
The first address in a block is normally not assigned to any
device; it is used as the network address that represents the
organization to the rest of the world.
Two-Level Hierarchy: No Subnetting
An IP address can define only two levels of hierarchy when
not subnetted. The n leftmost bits of the address x.y.z.t/n
define the network; the 32 – n rightmost bits define the
particular host to the network. The part of the address that
defines the network is called the prefix; the part that defines
the host is called the suffix.
n 32-n
Prefix
Suffix
Three-Levels of Hierarchy: Subnetting
An organization that is granted a large block of addresses may
want to create clusters of networks (called subnets) and divide the
addresses between the different subnets.
The organization, however, needs to create small sub blocks of
addresses, each assigned to specific subnets. The organization has
its own mask; each subnet must also have its own.
As an example, suppose an organization is given the block
17.12.14.0/26, which contains 64 addresses. The organization has
three offices and needs to divide the addresses into three sub blocks
of 32, 16, and 16 addresses. We can find the new masks by using
the following arguments:
Find the mask for each subnet
1. Suppose the mask for the first subnet is n1, then 2 32- n1
must be 32, which means that n1 =27.
2 . Suppose the mask for the second subnet is n2, then 2 32- n2
must be 16, which means that n2 = 28.
3. Suppose the mask for the third subnet is n3, then 2 32- n3
must be 16, which means that n3 =28.
Configuration and addresses in a subnetted network
Let us check to see if we can find the subnet addresses
from one of the addresses in the subnet.
a. In subnet 1, the address 17.12.14.29/27 can give us the
subnet address if we use the mask /27 because
Host: 00010001. 00001100. 00001110. 00011101
Mask:11111111 11111111 11111111 11100000 /27 (AND)
Subnet: 00010001 00001100 00001110 00000000 ....
(17.12.14.0)-(17.12.14.31)
b. In subnet 2, the address 17.12.14.45/28 can give us the
subnet address if we use the mask /28 because
Host: 00010001 00001100 00001110 00101101
Mask:11111111 11111111 11111111 11110000 /28 (AND)
Subnet: 00010001 00001100 00001110 00100000 ....
(17.12.14.32)-(17.12.14.47)
c. In subnet 3, the address 17.12.14.50/28 can give us the
subnet address if we use the mask /28 because
Host: 00010001 00001100 00001110 00110010
Mask:11111111 11111111 11111111 11110000 /28 (AND)
Subnet: 00010001 00001100 00001110 00110000 ....
(17.12.14.48)-(17.12.14.63)
We can say that through subnetting, we have three levels of
hierarchy.
Three-level hierarchy in an IPv4 address
Q/Analyze three – level of hierarchy as shown below for this network
address 17.12.14.0/26 and draw the network diagram?
More Levels of Hierarchy
National ISP → Regional ISP → Local ISP → Organization → Several Sub nets.
Address Allocation
How are the blocks allocated? The ultimate responsibility of address
allocation is given to a global authority called the Internet Corporation for
Assigned Names and Numbers (ICANN). However, ICANN does not
normally allocate addresses to individual organizations. It assigns a large
block of addresses to an ISP. Each ISP, in turn, divides its assigned block
into smaller sub blocks and grants the sub blocks to its customers.
Large Block →Divide into →Small Blocks →Divide into→ Sub Blocks → Customers
ICANN →National ISP → Regional ISP → Local ISP → Organization → Several Sub nets.
Example
An ISP is granted a block of addresses starting with 190.100.0.0/16 (65,536
addresses). The ISP needs to distribute these addresses to three groups of
customers as follows:
a. The first group has 64 customers; each needs 256
addresses.
b. The second group has 128 customers; each needs 128
addresses.
c. The third group has 128 customers; each needs 64
addresses.
Design the sub blocks and find out how many addresses are still available after
these allocations?
Solution
Figure below shows the situation.
Group 1
For this group, each customer needs 256 addresses. This means that 8 (log2
256) bits are needed to define each host. The prefix length is then 32 − 8 = 24.
The addresses are (255.255.255.0) (255.255.0.0)
Group 2
For this group, each customer needs 128 addresses. This means that 7 (log2
128) bits are needed to define each host. The prefix length is then 32 − 7 =
25. The addresses are (255.255.255.128)
Group 3
For this group, each customer needs 64 addresses. This means that 6
(log264) bits are needed to each host. The prefix length is then 32 − 6 = 26.
The addresses are
Number of granted addresses to the ISP: 65,536
Number of allocated addresses by the ISP: 40,960
Number of available addresses: 24,576
An example of address allocation and distribution by an ISP

More Related Content

PPT
subnetting _
PPTX
Ccna ppt
PPTX
Lecture_Network_Layer-IP Addressing.pptx
PPTX
IP_ADDRESSING_AND_SUBNETTING.pptx
PDF
Subnetting in network layer in computer networks
PPT
subnetting ipv4-Ipv4 subneeting methodologies
PPT
IP Addressing.ppt Network layer IP addressing
PPTX
IP subnetting Part II for network desig.pptx
subnetting _
Ccna ppt
Lecture_Network_Layer-IP Addressing.pptx
IP_ADDRESSING_AND_SUBNETTING.pptx
Subnetting in network layer in computer networks
subnetting ipv4-Ipv4 subneeting methodologies
IP Addressing.ppt Network layer IP addressing
IP subnetting Part II for network desig.pptx

Similar to Subnetting-Addressing.pdf lectures for networks (20)

PPTX
evolution of mobile communication from 1g-5g.pptx
PPT
network Addressing
PPT
Subneting.ppt
PPT
Forouzan-ch19-Network-Layer-Logical-Addressing.ppt
PPTX
NP - Unit 2 - Internet Addressing, ARP and RARP
PDF
Subnetting
PPTX
computer network notes in network layer.
DOCX
Easy how to work subnet etc
PPT
4a logical laddressing
PPTX
Fixed Length Subnetting about ip address.pptx
PPTX
Lecture 03 networking
PPTX
Subnetting Presentation
PPT
LECTURE-12 (ICLASSFULL ADDRESSING) ppt
PPTX
ipv4subnettingstrategy-140207112043-phpapp02.pptx
PPTX
Lecture W5 CN IP Subnetting P2.pptx
PPTX
ELEC - Lecture 2
PPTX
Ch7 IP addressing.pptx
PPTX
Week11 lec1
PPT
11 IP Addressing computer networks and modes
PPTX
IP_ADDRESSING_AND_SUBNETTIN networkG.pptx
evolution of mobile communication from 1g-5g.pptx
network Addressing
Subneting.ppt
Forouzan-ch19-Network-Layer-Logical-Addressing.ppt
NP - Unit 2 - Internet Addressing, ARP and RARP
Subnetting
computer network notes in network layer.
Easy how to work subnet etc
4a logical laddressing
Fixed Length Subnetting about ip address.pptx
Lecture 03 networking
Subnetting Presentation
LECTURE-12 (ICLASSFULL ADDRESSING) ppt
ipv4subnettingstrategy-140207112043-phpapp02.pptx
Lecture W5 CN IP Subnetting P2.pptx
ELEC - Lecture 2
Ch7 IP addressing.pptx
Week11 lec1
11 IP Addressing computer networks and modes
IP_ADDRESSING_AND_SUBNETTIN networkG.pptx
Ad

More from OmerMohamed64 (12)

PDF
Electronic commerce courselecture one. Pdf
PPTX
Introduction of internet and technology.pptx
PDF
Electronic commerce Chapter three lecture.pdf
PDF
Introduction to informationsecurity lecture1.pdf
PPT
Informationsecurity management lecture.ppt
PPTX
ch21.pptx distribution database system storage
PPTX
ch23.pptx distrubuted database management
PPTX
ch4 - Copy.pptx intermediate structure query language
PPTX
ch5 - Copy.pptx advanced structure query language
PDF
Classless-Addressing.pdf.. network lecture
PPTX
ch10 - lecture big data - database concept 7th edition.pptx
PPT
chapter tow database system concepts seven edition
Electronic commerce courselecture one. Pdf
Introduction of internet and technology.pptx
Electronic commerce Chapter three lecture.pdf
Introduction to informationsecurity lecture1.pdf
Informationsecurity management lecture.ppt
ch21.pptx distribution database system storage
ch23.pptx distrubuted database management
ch4 - Copy.pptx intermediate structure query language
ch5 - Copy.pptx advanced structure query language
Classless-Addressing.pdf.. network lecture
ch10 - lecture big data - database concept 7th edition.pptx
chapter tow database system concepts seven edition
Ad

Recently uploaded (20)

PPTX
Machine Learning_overview_presentation.pptx
PDF
Machine learning based COVID-19 study performance prediction
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Encapsulation theory and applications.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Spectroscopy.pptx food analysis technology
PDF
cuic standard and advanced reporting.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
Machine Learning_overview_presentation.pptx
Machine learning based COVID-19 study performance prediction
Network Security Unit 5.pdf for BCA BBA.
Dropbox Q2 2025 Financial Results & Investor Presentation
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
MIND Revenue Release Quarter 2 2025 Press Release
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Spectral efficient network and resource selection model in 5G networks
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Unlocking AI with Model Context Protocol (MCP)
sap open course for s4hana steps from ECC to s4
Encapsulation theory and applications.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Review of recent advances in non-invasive hemoglobin estimation
Spectroscopy.pptx food analysis technology
cuic standard and advanced reporting.pdf
Big Data Technologies - Introduction.pptx
Chapter 3 Spatial Domain Image Processing.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”

Subnetting-Addressing.pdf lectures for networks

  • 2. Network Addresses The first address in a block is normally not assigned to any device; it is used as the network address that represents the organization to the rest of the world.
  • 3. Two-Level Hierarchy: No Subnetting An IP address can define only two levels of hierarchy when not subnetted. The n leftmost bits of the address x.y.z.t/n define the network; the 32 – n rightmost bits define the particular host to the network. The part of the address that defines the network is called the prefix; the part that defines the host is called the suffix. n 32-n Prefix Suffix
  • 4. Three-Levels of Hierarchy: Subnetting An organization that is granted a large block of addresses may want to create clusters of networks (called subnets) and divide the addresses between the different subnets. The organization, however, needs to create small sub blocks of addresses, each assigned to specific subnets. The organization has its own mask; each subnet must also have its own.
  • 5. As an example, suppose an organization is given the block 17.12.14.0/26, which contains 64 addresses. The organization has three offices and needs to divide the addresses into three sub blocks of 32, 16, and 16 addresses. We can find the new masks by using the following arguments: Find the mask for each subnet 1. Suppose the mask for the first subnet is n1, then 2 32- n1 must be 32, which means that n1 =27. 2 . Suppose the mask for the second subnet is n2, then 2 32- n2 must be 16, which means that n2 = 28. 3. Suppose the mask for the third subnet is n3, then 2 32- n3 must be 16, which means that n3 =28.
  • 6. Configuration and addresses in a subnetted network
  • 7. Let us check to see if we can find the subnet addresses from one of the addresses in the subnet. a. In subnet 1, the address 17.12.14.29/27 can give us the subnet address if we use the mask /27 because Host: 00010001. 00001100. 00001110. 00011101 Mask:11111111 11111111 11111111 11100000 /27 (AND) Subnet: 00010001 00001100 00001110 00000000 .... (17.12.14.0)-(17.12.14.31) b. In subnet 2, the address 17.12.14.45/28 can give us the subnet address if we use the mask /28 because Host: 00010001 00001100 00001110 00101101 Mask:11111111 11111111 11111111 11110000 /28 (AND) Subnet: 00010001 00001100 00001110 00100000 .... (17.12.14.32)-(17.12.14.47)
  • 8. c. In subnet 3, the address 17.12.14.50/28 can give us the subnet address if we use the mask /28 because Host: 00010001 00001100 00001110 00110010 Mask:11111111 11111111 11111111 11110000 /28 (AND) Subnet: 00010001 00001100 00001110 00110000 .... (17.12.14.48)-(17.12.14.63) We can say that through subnetting, we have three levels of hierarchy. Three-level hierarchy in an IPv4 address
  • 9. Q/Analyze three – level of hierarchy as shown below for this network address 17.12.14.0/26 and draw the network diagram?
  • 10. More Levels of Hierarchy National ISP → Regional ISP → Local ISP → Organization → Several Sub nets. Address Allocation How are the blocks allocated? The ultimate responsibility of address allocation is given to a global authority called the Internet Corporation for Assigned Names and Numbers (ICANN). However, ICANN does not normally allocate addresses to individual organizations. It assigns a large block of addresses to an ISP. Each ISP, in turn, divides its assigned block into smaller sub blocks and grants the sub blocks to its customers. Large Block →Divide into →Small Blocks →Divide into→ Sub Blocks → Customers ICANN →National ISP → Regional ISP → Local ISP → Organization → Several Sub nets.
  • 11. Example An ISP is granted a block of addresses starting with 190.100.0.0/16 (65,536 addresses). The ISP needs to distribute these addresses to three groups of customers as follows: a. The first group has 64 customers; each needs 256 addresses. b. The second group has 128 customers; each needs 128 addresses. c. The third group has 128 customers; each needs 64 addresses. Design the sub blocks and find out how many addresses are still available after these allocations?
  • 12. Solution Figure below shows the situation. Group 1 For this group, each customer needs 256 addresses. This means that 8 (log2 256) bits are needed to define each host. The prefix length is then 32 − 8 = 24. The addresses are (255.255.255.0) (255.255.0.0)
  • 13. Group 2 For this group, each customer needs 128 addresses. This means that 7 (log2 128) bits are needed to define each host. The prefix length is then 32 − 7 = 25. The addresses are (255.255.255.128)
  • 14. Group 3 For this group, each customer needs 64 addresses. This means that 6 (log264) bits are needed to each host. The prefix length is then 32 − 6 = 26. The addresses are Number of granted addresses to the ISP: 65,536 Number of allocated addresses by the ISP: 40,960 Number of available addresses: 24,576
  • 15. An example of address allocation and distribution by an ISP