i need to clear a doubt that i have regarding supernetting.
if we supernet 2 consecutive subnets for example
184.108.40.206 and 220.127.116.11
the network and broadcast ip address for each of these before supernetting would be
after supernetting the network and broadcasting ip would be
hence making 18.104.22.168 and 22.214.171.124 valid and usuable ip addresses
my question is how can we assign these ip addresses to systems on this network especially the 126.96.36.199 would not this be considered as a broadcast ip by the systems on the network and be processed by all or will the datalink layer filter this with the mac address in all systems except the one that is assigned this ip?
hope you have understood my query!
Re: doubt on supernetting
11 years 11 months ago #18392
Its an interesting question and i can see where its come from. The simple answer is the Subnet Mask. The subnet mask is used to determine the whole addressing space for the network. With the example that you have used, this has a subnet mask of 255.255.254.0. You are using the last bit in the 3rd octet to define part of the network range. For this reason you are looking at a network range of 188.8.131.52
The network ID is 184.108.40.206 and the broadcast address for that network is 220.127.116.11. This is all because you have used the next bit to increase the network.
to calculate the number of usable addresses its 2^9 - 2. Therefore you are looking at 510 usable addresses in that network range which uses 18.104.22.168 & 22.214.171.124. (N.B you get the 9 from the subnet, in the 255.255.254.0 we have 9 zeros at the end. 11111111 11111111 11111110 00000000)
The Network ID's are when all the zeros in the subnet mask, match the zeros in the ip address.
with the example that you gave i understood how the subnet plays a vital part in determining the network and broadcast addresses in regards to supernetting and how the 218.255 and the 219.0 becomes useful ip addresses.
however, since the packet would be first read by the datalink layer would that make any difference in the detection of the packet or is it all left for the network layer.
Re: doubt on supernetting
11 years 11 months ago #18407
Its another good question which you have answered already. Its left to the transport layer (IP - Layer 3). The datalink layer is the layer responsible for communicating using the MAC addresses. Once Leyer 3 determines if its local (utilising the subnet mask) or it it needs routing, the machine knows if it needs to talk to a local machine or to the default gateway. Once thats determined, the host will either ARP (if its not already in its ARP Cache) for the router, then forward the packet at layer 2 using the MAC address thats returned through the ARP (direct to the host or the router).
The ARP process is done using an IP Broadcast packet on the network.