Skip to main content

Subnetting Advantages/Questions

More
14 years 3 months ago #33484 by kAIOSHIN
So, I have been reading alot about subnetting, and now I think I know how to answer questions about subnetting, calculations and other stuff, however I still have a few doubts...

I understand subnetting makes it easier to routers to find the right route, what I dont understand is what is said that it helps to reduce the number of unused IP adresses? Why? Thank you.
More
14 years 3 months ago #33503 by S0lo
Suppose you bought the class C range 194.1.1.0 /24. This range supports upto 254 addresses. But in your network you have two small separate networks each consisting of only 100. The range you have can obviously cover both networks but because the two networks are physically/organizationally separate, you can not assign them both the same range. Without subnetting the only way is to buy a new range (say 194.1.2.0/24) and assign it the second network. This is a complete waste of address space and budget. With subnetting you can simply split the first range into two (194.1.1.0/25 and 194.1.1.128/25) and give each network it's own sub range.

Hope this makes sense.

Studying CCNP...

Ammar Muqaddas
Forum Moderator
www.firewall.cx
More
14 years 3 months ago #33504 by Nevins
isa.outpost10f.com/~intell/articles/subnet.html

^^^^ check out that link.

It's basically what S0lo said but it points out why you need subnets.

The short of it is..


Without subnets you have to allocate an entire class A B or C address block per network so we use subnets to allow routers to be able to find fragments of those blocks on different autonomous systems.





Think about it this way. Not using subnets:

You have 2 networks. You have an entire class C address range.

194.1.1.0

You give 194.1.1.0 to your A router for your A network

And you give 194.1.1.1 to your B router for your B network


You assign 194.1.1.2- 194.1.1.122 for hosts on Network A
You assign 194.1.1.123-194.1.140 for hosts on Network B
=========================================

Then you let users try to communicate.

Host 194.1.1.2 tries to ping 194.1.1.123

The packet goes out the network interface card as a packet wrapped in a frame hits the first switch which then floods the requests out of all ports on the local LAN. Of course by flooding the frame it will eventually get to the network router which drops the packet due to filtering because without sub dividing IPs into some logical groups it thinks that 194.1.1.123 is within the same logical group as that source 194.1.1.2. (and if your next question is why do routers need logical groups the answer is route tables would simply be to big to record IP addresses and paths for every node)

Basically from the routers point of view when you tell it route a packet it from 194.1.1.2 to 194.1.1.123 it tells you it's not sending it because it should be on your local LAN anyways.
Subnetting solves this

Lets try 255.255.255.128 (/25) (one bit was used to identify that you broke the network in two groups)

Effectively you now have 2 SUB GROUPS of IP's (subnets) recognized by your routers.

A list of IP's that Range from
194.1.1.0-194.1.1.127

194.1.1.128-194.1.1.255


Effectively your networks are now identified by 194.1.1.0 for A and 194.1.1.128 for B both with a /25 mask.


So now lets go back to our example:
*note IP's changed with allowable addresses

Host 194.1.1.2 on Network A

wants to ping

Host 194.1.1.129 on Network B


The network interface card kicks our the frame holding the packet to the local switch.

Switch doesn't recognize the mac address so it floods to all ports

eventually hitting the network router.

This time around the network router gets the packet and it forwards it instead of filtering it.

And the million dollar question is why did it forward it with subneting instead of filtering it out?


The answer is: it looked at the subnet ID 194.1.1.0 and the mask of 255.255.255.128 and realized 194.1.1.129 can't be in the same range as 194.1.1.0 because that subnetwork grouping only goes to 127.

Continuing on the router passes the packet along it's default route where the next router which receives it similarly evaluates 194.1.1.129 /25 to be on a different network then 194.1.1.0/25 and passes it hop to hop till it eventually gets to the router that knows 194.1.1.129 /25 must be on network 194.1.1.128/25 and forwards it accordingly.


To summarize:
subnets subdivide networks.

Subdivision allows routing to be manageable.

(Manageability is created because your grouping things up.)

Without division you do not have a reasonable logical way of knowing where something is.

Useful Threads
================================
www.firewall.cx/forum/2-basic-concepts/3...e-resource-page.html
More
14 years 3 months ago #33509 by kAIOSHIN
Thank you guys! Now it makes perfect sense to me. :) :D
Time to create page: 0.180 seconds