NPS-Session 15 Subnetting
NPS-Session 15 Subnetting
SECURITY
23EC2210 R/A/E
Topic:
SUBNETTING
Session – 15
AIM OF THE SESSION
INSTRUCTIONAL
OBJECTIVES
LEARNING OUTCOMES
Subnet mask
Subnetting problems
3
SUBNETTING
• Subnetting increases the length of the netid and decreases the length of
hostid.
• When we divide a network to s number of subnetworks, each subnet will
have equal numbers of the Hosts.
SUBNET MASK TABLE
HIERARCHY IN AN IPV4 ADDRESS
TWO LEVELS OF HIERARCHY IN AN IPV4 ADDRESS
Each address in the block can be
considered as a two-level
hierarchical structure:
the leftmost n bits (prefix) define
the network;
the rightmost 32 − n bits define
the host.
CONFIGURATION AND ADDRESSES IN A SUBNETTED NETWORK
THREE-LEVEL HIERARCHY IN AN IPV4 ADDRESS
EXAMPLE
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
EXAMPLE
(CONTINUED)
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
EXAMPLE
(CONTINUED)
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
• Assume Class-C Address 198.151.15.10. Say the network is divided into 4 subnets. Calculate the
subnet mask. Identify the subnet id, broadcast id, first three and last three host addresses of each
subnet.
SOLUTION
EXAMPLE-2
• Divide the network into two subnets using variable length subnetting for the network
192.10.25.130/26 give the first host ID, last host ID, Subnet mask and network address.
SOLUTION
REFERENCES FOR FURTHER LEARNING OF THE
SESSION
Reference Books:
CISCO Academy
NPTEL, Computer Networks and Internet Protocols, Prof. Soumya Kanti Ghosh,
Prof. Sandip Chakraborty IIT Kharagpur. (https://nptel.ac.in/courses/106105183)
23
THANK YOU