Step to calculate ip subnet mask, network adresss and broadcast id
Answers
Here is one way to calculate it. First of all you should determine what is the subnet mask to be used. By having /25 we would know that the subnet mask has the first 25 bits set to one, so it would be 255.255.255.128, now we know that the interested octet on the subnet mask is the fourth one, so we need to figure out the magic number to use it later in our calculation. By extracting the interested octet value (128) from 256 we will have the magic number, so 256 - 128 = 128, now let's start with calculating the network numbers by incrementing the magic number to the interested octet starting from zero:
61.25.37.0
61.25.37.128
61.25.37.256 <-- This one is not valid since it has 256 decimal value in the fouth octect, we know that the maximum valid decimal value we would have is 255.
Now that we have the network numbers, we would find out the broadcast by taking off one from the value of the interested octet (fourth) of the next network:
61.25.37.0 - 61.25.37.127
61.25.37.128 - 61.25.37.255
For each network, the first address is the network number (id) and the last is the broadcast address.
Explanation:
Cyclomatic Complexity is a very common buzz word in the Development community. This technique is mainly used to determine the complexity of a piece of code of functionality.