Role of Subnet Mask
Role of Subnet Mask
Role of Subnet Mask
A 32-bit address that distinguishes the network address from the host
address makes up the subnet mask. This indicates which part of the IP
address belongs in the host section and which part belongs in the network
section. The number of hosts that can be on the subnet depends on the
values of the subnet mask. This comprises bits that are initialized to 1 for the
network and 0 for the host. Routers and switches use it internally to send
packets to the destination node along the associated local network
connection.
For this, we need Subnetting i.e., dividing a huge network into smaller
networks. Now every department will have their network. In the case of
addressing without subnetting, the process of reaching an address is done by
3 steps –
Network Classes
The company in charge of overseeing the Internet, InterNIC, assigns IP
addresses. There are classes for these IP addresses. Classes A, B, and C are
the most prevalent ones among them. Although they exist, end users do not
use classes D or E. The default subnet mask varies for each address class. An
IP address’s first octet can be used to determine its class. The ranges of Class
A, B, and C Internet addresses are listed below, along with a sample address
for each:
Class A networks have 0-127 as their first octet and utilise 255.0.0.0 as
their default subnet mask. 10.52.36.11 is classified as a class A address.
10, its initial octet, falls between 1 and 126, inclusive.
Class B networks have 128–191 as their first octet and 255.255.0.0 as
their default subnet mask. Address 172.16.52.63 belongs to the class B
address set. Its initial octet is 172, spanning from 128 to 191, inclusive.
Class C networks have 192-223 as their first octet and utilise
255.255.255.0 as their default subnet mask.
11111111.11111111.11111111.11000000
or
255.255.255.192
11111111.11111111.11111111.11000000
&& 11001000.00000001.00000010.00010100
-----------------------------------------------------
11001000.00000001.00000010.00000000
11001000.00000001.00000010.00000000
or
200.1.2.0
The internal router will forward the packet to the network through an
interface . The interface will be identified by the routing table residing in the
router.
Routing table
If the network id doesn’t matches with any then the packet will be sent to
default entry.
Advantages of Subnetting
It does this by sending out fewer broadcasts, which lowers network load.
It assists in getting around restrictions in a local area network (LAN), like
the maximum number of permitted hosts.
Without needing to access the entire network, it enables users to join to a
work network from their residences.
It keeps one network safe from another’s infiltration. For instance, no other
department within an organisation should be able to view the code
created by the Developer department.
A higher network priority may be needed for some subnets than for
others. For instance, a sales department might need to hold video
conferences or webcasts.
If the network is tiny, maintenance is easy.
Disadvantages of Subnetting
Subnetting reduces the overall number of IP addresses in the network, yet
it could necessitate purchasing extra hardware, like a router. Thus, it could
be very expensive.
Companies still assign address blocks in relation to classes, therefore it
cannot alleviate the inefficiency.
Conclusion
Subnetting improves performance by lowering network traffic and collisions.
This gives the IT administrators complete control over data packet
monitoring, router device enabling or updating, and network traffic reduction.
In order for the routers to match data packets to the intended node and
determine the optimal path for data transmission between the sender and
recipient interface, the subnet mask addresses are required to distinguish
between the host and network address.
Setting all 0s for the host bits and all 1s for the network bits results in
a 32-bit value known as a subnet mask.
"GeeksforGeeks helped me ace the GATE exam! Whenever I had any doubt
regarding any topic, GFG always helped me and made my concepts quiet
clear." - Anshika Modi | AIR 21
Over 125,000+ students already trust us to be their GATE Exam guide. Join
them & let us help you in opening the GATE to top-tech IITs & NITs!
14 Suggest improvement
Previous Next
Similar Reads
Finding Network ID of a Subnet (using How do You Calculate the Subnet
Subnet Mask) Address from an IP Address and Subnet
Mask?
Fixed Length and Variable Length C Program to find IP Address, Subnet
Subnet Mask Numericals Mask & Default Gateway
How do I Find Subnet Mask for an IP What is Subnet Mask for the
Address? 255.255.255.248?
A AnshuMis…
UPSC Study Preparation Competitive More Tutorials Free Online Write & Earn
Material Corner Exams Software Tools Write an Article
Polity Notes Company-Wise JEE Advanced Development Typing Test Improve an Article
Geography Notes Recruitment UGC NET Software Testing Image Editor Pick Topics to
History Notes Process SSC CGL Product Code Formatters Write
Science and Resume Templates SBI PO Management Code Converters Share your
Technology Notes Aptitude SBI Clerk Project Currency Experiences
Economy Notes Preparation IBPS PO Management Converter Internships
Ethics Notes Puzzles IBPS Clerk Linux Random Number
Previous Year Company-Wise Excel Generator
Papers Preparation All Cheat Sheets Random Password
Companies Generator
Colleges