Introduction :
As we had a discussion about Ip addresses and their classes in the previous blog,we can now start with Sub-netting.
Network Mask /Subnet Mask -
As mask means to cover something,
IP Address is made up of two components, One is the network address and the other is the host address.The Ip Address needs to be separated into the network and host address, and this separation of network and host address in done by Subnet Mask.The host part of an IP Address is further divided into subnet and host address if more subnetworks are needed and this can be done by subnetting. It is called as a subnet mask or Network mask as it is used to identify network address of an IP address by performing a bitwise AND operation on the netmask.
Subnet Mask is of 32 Bit and is used to divide the network address and host addresses of an IP.
In a Subnet Mask all the network bits are set to 1’s and all the host bits are set to 0’s.
Whenever we see an IP Address - We can easily Identify that
WHAT IS NETWORK PART OF THAT IP
WHAT IS THE HOST PART OF THAT IP
FORMAT :
mmmmmmmm.mmmmmmmm.mmmmmmmm.mmmmmmmm
(Either it will have 1 or 0 Continuously)
EXAMPLE :
A Class Network Mask
In Binary : 11111111.00000000.00000000.00000000 - First 8 Bits will be Fixed
In Decimal : 255.0.0.0
In Decimal : 255.0.0.0
Let the IP Given is - 10.10.10.10
When we try to Identify it we know that it belong to class A, So the subnet mask will be : 255.0.0.0
And the Network Address will be : 10.0.0.0
B Class Network Mask
In Binary : 11111111.11111111.00000000.00000000 - First 16 Bits will be Fixed
In Decimal : 255.255.0.0
Let the IP Given is -150.150.150.150
When we try to Identify it we know that it belong to class B, So the subnet mask will be : 255.255.0.0
And the Network Address will be : 150.150.0.0
C Class Network Mask
In Binary : 11111111.111111111.11111111.00000000 - First 32 Bits will be Fixed
In Decimal : 255.255.255.0
Let the IP Given is - 200.10.10.10
When we try to Identify it we know that it belong to class C, So the subnet mask will be : 255.255.255.0
And the Network Address will be : 200.10.10.0
Subnetting :
The method of dividing a network into two or more networks is called subnetting.
A subnetwork, or subnet, is a logically subdivision of an IP network
Subnetting provides Better Security
Smaller collision and Broadcast Domains
Greater administrative control of each network.
Subnetting - WHY ??
Answer : Shortage of IP Addresses
SOLUTIONS : -
1) SUBNETTING - To divide Bigger network into the smaller networks and to reduce the wastage
2) NAT - Network Address Translation
3) Classless IP Addressing -
No Bits are reserved for Network and Host
**Now the Problem that came is how to Identify the Class of IP Address :**
Let a IP Be : 10.10.10.10
If we talk about classful we can say it is of class A But in classless : We can check it through subnetwork mask.
255.255.255.0
So by this we can say that first 24 bits are masked for network and the left 8 are for host.
Bits Borrowed from Host and added to Network
Network ID(N) | Network ID(N) | Host ID(H) | Host ID(H) |
Network ID(N) | Network ID(N) | Subnet | Host ID(H) |
Network ID(N) | Network ID(N) | Subnet | Subnet/Host |
Let we have a
150.150.0.0 - Class Identifier/Network Address
150.150.2.4 - Host Address - IP GIVEN TO A HOST
255.255.255.0 - Subnet Mask
150.150.2.0 - Subnet Address
CIDR : Classless Inter Domain Routing
CIDR (Classless Inter-Domain Routing, sometimes called supernetting) is a way to allow more flexible allocation of Internet Protocol addresses than was possible with the original system of IP Address classes. As a result, the number of available Internet addresses was greatly increased, which along with widespread use of network address translation, has significantly extended the useful life of IPv4.
Let a IP be - 200.200.200.200
Network ID(N) | Host ID(H) |
--------24 Bit -------- -------8 bit -----------
Network Mask tells that the number of 1’s are Masked
Here First 24 Bits are Masked
In Decimal : 255.255.255.0
In Binary : 11111111.11111111.11111111.00000000
Here the total Number of 1’s : 24
So we can say that 24 Bits are masked.
This method of Writing the network mask can be represented in one more way
And that representation is called as CIDR METHOD/CIDR NOTATION
CIDR - 200.200.200.200/24
24 : Is the Number of Ones - Or we can say Bits Masked
Basically the method ISP’s(Internet Service Provider)use to allocate an amount of addresses to a company, a home
EX :
190.10.20.30/28 : Here 28 Bits are Masked that represents the Network and the remaining 4 bits represent the Host
/ - Represents how many bits are turned on (1s)
CLASS C SUBNETTING :
Determining Available Host Address :
<-----------------------NETWORK-----------------------------------><--------HOST----------->
200 | 10 | 20 | 0 |
11001000 00001010 00010100 00000000 - 1
00000001 - 2
00000011 - 3
.
.
.
11111101 - 254
11111110 - 255
11111111 - 256
-2
---------
254
2^N - 2 = 2^8 -2 = 254
(Coz we have 8 bits in this case) - 2 (Because 2 Address are Reserved)
254 Address are available here
FORMULAS :
Number of Subnets : ( 2^x ) - 2 (x : Number of Bits Borrowed)
Number of Hosts : ( 2^y ) - 2 (y : Number of Zero’s)
Magic Number or Block Size = Total Number of Address : 256 - Mask
Let a IP ADDRESS BE 200.10.20.20/24
Number of subnets : 5
Network Address :
200 | 10 | 20 | 20 |
255 | 255 | 255 | 0 |
(as total Number of 1’s : 24)
IP in Binary
11001000 | 00001010 | 00010100 | 00010100 |
MASK
11111111 | 11111111 | 11111111 | 00000000 |
And Operation in IP And Mask
11001000 | 00001010 | 00010100 | 00000000 |
In Binary
200 | 10 | 20 | 0 |
As we need 5 Subnets :
2^n -2 => 5
So the value of n = 3 that satisfies the condition
So, We need to turn 3 Zero’s to One’s to create 5 subnets
200 | 10 | 20 | 0 |
11001000 | 00001010 | 00010100 | 00000000 |
11001000 | 00001010 | 00010100 | 11100000 |
(3 Zero’s changed to 3 one’s)
200 | 10 | 20 | 224 |
Subnet 0
200 | 10 | 20 | 0/27 |
Subnet 1 +32 - Block Size
200 | 10 | 20 | 32/27 |
Subnet 2 +32
200 | 10 | 20 | 64/27 |
Subnet 3
200 | 10 | 20 | 96/27 |
Subnet 4
200 | 10 | 20 | 128/27 |
Subnet 5
200 | 10 | 20 | 160/27 |
Subnet 6
200 | 10 | 20 | 192/27 |
Subnet 7
200 | 10 | 20 | 224/27 |
How to Put Host ADD.
Subnet 0
200 | 10 | 20 | 0/27 |
Subnet Broadcast Number 0
200 | 10 | 20 | 31 /27 |
Subnet 1 +32 - Block Size
200 | 10 | 20 | 31/27 |
200 | 10 | 20 | 32/27 |
200 | 10 | 20 | 33/27 |
.
.
.
200 | 10 | 20 | 62/27 |
Subnet Broadcast Subnet 1
200 | 10 | 20 | 63/27 |
200.10.20.33 ….and so on till 200.10.20.62 - 13 Host can be assigned IP Address.
Conclusion :
As the world is growing rapidly towards digitalization, use of IP Addresses is also increasing, So to decrease the wastage of IP Addresses, the implementation of CIDR is important that allows more organizations and users to take advantage of IPV4.
Nice post My sincere thanks for sharing this post Please Continue to share this post
ReplyDeleteDevops Training in Bangalore
Devops Training in BTM Layout
nice blog. thanks for sharing Devops Tutorials. It’s really Helpful for me.
ReplyDeleteVery Nice Blog on:
ReplyDeleteDevops Thank you for sharing the blog
Devops Training in Bangalore
Nice Blog
ReplyDeleteIot Training
in Bangalore
Iteanz
Artifiacial Intelligence Training in Bangalore
Iot Interview Questions
It's Really A Great Post
ReplyDeleteBest Elegant IT Services
Digital Marketing Online Training in India
ReplyDeleteCloud Computing Online Training in India
Hadoop online training in INDIA
Javascript Training In Noida
Industrial Training in Noida
• React.JS online training in india
ReplyDelete• Python online Training in India
• Oracle DBA online training in India
• Java online Training in India
• SAP online Training In india
Aws online training in india
ReplyDeleteSalesforce online training in india
SAS Online Training in india
Salesforce admin online training in india
Linux Online
training in India
very useful information, the post shared was very nice.DevOps Online Training
ReplyDeleteVisit DevOps Online Training
ReplyDeleteTechonolgy is updated day to day
ReplyDeleteThanks for sharing the info, Salesforce is best platform for all organisations to perfom the muliple tasks at a time
Best Salesforce Training
Professional Salesforce CRM Training
Its really nice and informative.. Thanks for sharing
ReplyDeleteBest Web Design Training Institutes in Noida
Best Hadoop Training Institutes In Noida
Best Digital Marketing Training Institute in Noida
Sap Training Institute in Noida
Best Java Training Institute in Noida
SAP SD Training Institute in Noida
Best Auto CAD Training Institute In Noida
6-week summer course in Noida - 6 weeks The summer course plays a crucial role in shaping the career of young aspiring / informatics students. This training has been specifically introduced so that students can become familiar with current industrial culture and industrial needs. Webtrackker technology offers a 6-month training program for students / graduates that includes small and large projects.
ReplyDelete6-week summer course in Noida
Ajio Promo Codes
ReplyDeleteAjio Coupons & Offers
Ajio Coupon codes
Ajio Offers Promo Codes
Ajio Offers on online shopping
Firstcry Promo Codes
Firstcry Deals & offers
Firstcry coupons codes
Firstcry Coupons Offers Promo Codes
Firstcry Offers on Kids shopping
Myntra promo codes
Myntra deals and offers
Myntra coupon codes
Myntra coupons offers promo codes
Myntra offers on online shopping
Nykaa Promo Codes
Nykaa Deals and offers
ReplyDeleteNykaa Coupons codes
Nykaa coupons offers promo codes
Nykaa offers on online shopping
Flipkart promo codes
Flipkart deals & coupons
flipkart coupon code
flipkart coupons offer promo code
Amazon promo code
amazon offers
amazon offers and deals
amazon coupon code
amazon deal of the day
cleartrip promo codes
cleartrip coupon code
cleartrip offers and deals
cleartrip deals
MMT promo Codes
MMT coupon codes
ReplyDeleteMakemytrip promo codes
makemytrip offers
makemytrip deals & offers
healthkart coupon code
healthkart promo codes
healthkart deals and offers
healthkart discount offers
bigbasket promo codes
bigbasket coupon codes
bigbasket offers
bigbasket coupon and deals
pizzahut promo code
pizzahut coupon codes
pizzahut offers
pizzahut coupon and offers
hotels promo code
hotels coupon codes
hotel offers & deals
hotels discount offers
nearbuy coupon codes
nearbuy promo codes
nearbuy deals and offers
nearbuy discounts
zoomcar promo code
zoomcar coupon code
zoomcar offers on ride
zoomcar deals and offers
Each department of CAD have specific programmes which, while completed could provide you with a recognisable qualification that could assist you get a job in anything design enterprise which you would really like.
ReplyDeleteAutoCAD training in Noida
AutoCAD training institute in Noida
Best AutoCAD training institute in Noida
Company address:
Webtrackker Technology
C- 67, Sector- 63, Noida
Phone: 01204330760, 8802820025
Email: info@webtrackker.com
Video editing course in Noida
ReplyDeleteVideo editing training institute in Noida- Webtrackker Technology is and IT Training institute providing the Video editing course in Noida, FCP, Final Cut Pro Training in Noida. For more call us- 8802820025.
Video editing course in Noida
Company Address:
Webtrackker Technology
C- 67, Sector- 63, Noida
Phone: 01204330760, 8802820025
Email: info@webtrackker.com
Website: http://webtrackker.com/Best-training-institute-Video-editing-FCP-course-in-Noida.php
Cloud Computing Training In Noida
ReplyDeleteWebtrackker is IT based company in many countries. Webtrackker will provide you a real time projects based training on Cloud Computing. If you are looking for the Cloud computing training in Noida then you can join the webtrackker technology.
Cloud Computing Training In Noida , Cloud Computing Training center In Noida , Cloud Computing Training institute In Noida ,
Company Address:
Webtrackker Technology
C- 67, Sector- 63, Noida
Email: info@webtrackker.com
Website: www.webtrackker.com
http://webtrackker.com/Cloud-Computing-Training-Institutes-In-Noida.php
Cloud Computing Training In Noida
ReplyDeleteWebtrackker is IT based company in many countries. Webtrackker will provide you a real time projects based training on Cloud Computing. If you are looking for the Cloud computing training in Noida then you can join the webtrackker technology.
Cloud Computing Training In Noida , Cloud Computing Training center In Noida , Cloud Computing Training institute In Noida ,
Company Address:
Webtrackker Technology
C- 67, Sector- 63, Noida
Email: info@webtrackker.com
Website: www.webtrackker.com
http://webtrackker.com/Cloud-Computing-Training-Institutes-In-Noida.php
This is a nice post in an interesting line of content.Thanks for sharing this article, great way of bring this topic to discussion.
ReplyDeleteClick here:
angularjs training in bangalore
Click here:
angularjs training in chennai
This is my 1st visit to your web... But I'm so impressed with your content. Good Job!
ReplyDeleteClick here:
Microsoft azure training in tambaram
Click here:
Microsoft azure training in chennai
It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
ReplyDeleteBlueprism training in annanagar
Blueprism training in velachery
Blueprism training in marathahalli
AWS Training in chennai
AWS Training in bangalore
Technology is updated day to day
ReplyDeleteThanks for sharing the information
keep posting
Salesforce training in Madhapur
Salesforce training in KPBH
thank you your post was knowlable to me
ReplyDeleterpa training institute in noida
sas training institute in noida
hadoop training institute in noida
blokchain traninig institut noida
servicenow scripting Training in Noida
ReplyDeleterpa training institute in noida
sas training institute in noida
hadoop training institute in noida
blokchain traninig institute noida
The knowledge of technology you have been sharing thorough this post is very much helpful to develop new idea. here by i also want to share this.
ReplyDeleteDevops training in sholinganallur
Great post and informative blog.it was awesome to read, thanks for sharing this great content to my vision.
ReplyDeleteGood discussion.
PMP Training Course in Bangalore
PMP Training Course in Dammam
PMP Training Course in Dubai
PMP Training Course in Jeddah
PMP Training Course in Riyadh
Like different elements of India, numerous oil and spices usually cross into making food. This effects in substances getting caught to the partitions of the filter out.
ReplyDeleteVisit here
http://kitchenware.ml
Best kitchen chimney installation and service
Auto clean chimney sevice in Faridabad
Great Article… I love to read your articles because your writing style is too good, its is very very helpful for all of us. Do check Six Sigma Training in Bangalore | Six Sigma Training in Dubai
ReplyDelete& Get trained by an expert who will enrich you with the latest trends.
A very nice guide. I will definitely follow these tips. Thank you for sharing such detailed article. I am learning a lot from you.
ReplyDeleterpa training in electronic-city | rpa training in btm | rpa training in marathahalli | rpa training in pune
Great Site, The Course were so simple and easy to understand.
ReplyDeleteDevOps Online Training
I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. In fact your creative writing abilities has inspired me to start my own BlogEngine blog now. Really the blogging is spreading its wings rapidly. Your write up is a fine example of it.
ReplyDeleteData Science Training in Chennai | Data Science training in anna nagar
Data Science training in chennai | Data science training in Bangalore
Data Science training in marathahalli | Data Science training in btm
Really nice experience you have. Thank you for sharing. It will surely be an experience to someone.
ReplyDeletejava training in chennai | java training in bangalore
java interview questions and answers | core java interview questions and answers
ReplyDeleteWhoa! I’m enjoying the template/theme of this website. It’s simple, yet effective. A lot of times it’s very hard to get that “perfect balance” between superb usability and visual appeal. I must say you’ve done a very good job with this.
Selenium Interview Questions and Answers
Best Selenium Training in Chennai | Selenium Training Institute in Chennai | Besant Technologies
Selenium Training in Bangalore | Best Selenium Training in Bangalore
Free Selenium Tutorial |Selenium Webdriver Tutorial |For Beginners
Pleasant Tips..Thanks for Sharing….We keep up hands on approach at work and in the workplace, keeping our business pragmatic, which recommends we can help you with your tree clearing and pruning in an invaluable and fit way.
ReplyDeleteangularjs online Training
angularjs Training in marathahalli
angularjs interview questions and answers
angularjs Training in bangalore
angularjs Training in bangalore
angularjs Training in chennai
Hello,
ReplyDeleteThanks for the post update regularly.KernelTraining is one of the leading DevOps training institutes. Recently i completed my software course in KernelTraining, good Institute where you can get good knowledge by real-time experts. I would strongly recommend KernelTraining. for more details please go through the link: DevOps Training In Hyderabad