Docsity

The best practical note, Study notes of Data Communication Systems and Computer Networks

Toggle sidebar
bg1
Data Communication and Computer Networking : Network Addressing work sheet; |HU 2023
Prepared by Senbeto K.
1
WORK SHEET WITH ANSWER KEY
IP ADDRESSING
1. What is the network ID of the IP node 131.107.189.41 with a subnet mask of 255.255.240.0?
Ans: To obtain the result, convert both numbers into their binary equivalents and line them up. Then
perform the AND operation on each bit and write down the result as follows.
10000011 01101011 10111101 00101001 IP Address
11111111 11111111 11110000 00000000 Subnet Mask
10000011 01101011 10110000 00000000 Network ID
The result of the bit-wise logical AND of IP address and the subnet mask is the network ID 131.107.176.0.
2. Separate Network portion and host portion of the following IP addresses
3. Performing Bitwise ANDing operation
pf3
pf4
pf5

Partial preview of the text

Download The best practical note and more Study notes Data Communication Systems and Computer Networks in PDF only on Docsity!

WORK SHEET WITH ANSWER KEY

IP ADDRESSING

1. What is the network ID of the IP node 131.107.189.41 with a subnet mask of 255.255.240.0?

 Ans: To obtain the result, convert both numbers into their binary equivalents and line them up. Then

perform the AND operation on each bit and write down the result as follows.

10000011 01101011 10111101 00101001 IP Address 11111111 11111111 11110000 00000000 Subnet Mask 10000011 01101011 10110000 00000000 Network ID The result of the bit-wise logical AND of IP address and the subnet mask is the network ID 131.107.176.0.

2. Separate Network portion and host portion of the following IP addresses 3. Performing Bitwise ANDing operation

Subnetting A. Subnetting based on given IP address and subnet mask

4. For example, we are using 255.255.255.192 as a subnet mask and 192.168.10.0 as a Network address (192.168.10.0/26). 1. How many subnets does the subnet mask produce? 2. How many valid hosts each subnet can support? 3. What are the possible subnet ranges? 4. What are the ranges of valid hosts in each subnet? 5. What is the broadcast address of each subnet? Let’s answer these questions: Given: IP address:- 192.168.10.0 (which is class C address) Subnet Mask:- 255.255.255. From the given requirements, we can learn that the given IP address is class C and the mask given is Custom Mask(255.255.255.192). To get the number of borrowed bits, we have to represent the default subnet mask of class C and the given subnet mask in binary notation as follows Class C Default subnetmask:- 255.255.255.0 = 11111111.11111111.11111111. Given custum subnet mask:-255.255.255.192 = 11111111.11111111.11111111. 11 000000 Here in custom subnet mask, we can see two borrowed bits (bold font and underlined bits) 1. How many subnets? 2 x=amount of subnets. X is the amount of masked(borrowed) bits, or 1s. In this case we do have 2 masked bits, 11 000000 in the last octet which produce 22 =4 subnets. 2. How many valid hosts per subnet? 2 x–2=amount of hosts per subnet. X is the amount of unmasked(Host) bits, or the 0s. In the given subnet mask we do have 6 host bits (6 zeros). By substituting in host formula we will get 26 – 2 =62. In this example, there are 62 valid hosts per subnet. In each subnet the first and the last address are not used to identify host. 3. What are the possible subnet ranges? To find the range of subnets, first find the subnet range number. 2 host^ bits^ in^ subnetted^ octet=Range number, NB host bits in masked/subnetted octet(s) , here we have 6 host bits in the given subnet mask. 255.255.255.192 (11111111.11111111.11111111.11 000000 ) 26 =64, so that one subnet varies from other by the range number 64. So that the possible subnets are: Subnet1 : 192.168.10.0 - 192.168.10. Subnet2 : 192.168.10.64 - 192.168.10. Subnet1 : 192.168.10.128 - 192.168.10. Subnet1 : 192.168.10.192 - 192.168.10. 255

The last column on the table above contains the broadcast addresses of the first Four subnets

6. Subnet the network address 192.168.10.0 with subnet mask 255.255.255.224. 192.168.10.0 = Network address 255.255.255.224 = Subnet mask

a) How many subnets?

From the given Subnet mask= 255.255.255.224 (11111111.11111111.11111111. 11100000 ), we have

three bits borrowed, so that we will have 23 = 8 subnets.

b) How many usable hosts per subnets? In the given subnet mask we have five host bits(0s), so we will have

25 – 2 = 30 usable hosts per subnets.

c) What are the valid subnets? In the given subnet mask we have five host bits(0s), so that the subnet range

is equal to 2^5 =30. Our subnets are 0, 32, 64, 96, 128, 160, 192 and 224 in the last octet.

d) What’s the broadcast address for each subnet? (always the number right before the next subnet)

e) What are the valid hosts? (the numbers between the subnet number and the broadcast address)

B. Subnetting based on required number of subnet

7. A service provider has given you the Class C network range 209.50.1.0. Your company wants to break the network into 20 separate subnets. Design the addressing management. Step 1) Determine the number of subnets and bits to be borrowed from host portion ➢ Number of subnets required = 20 ➢ 2 x^ = ➢ 2 x^ = 2^5 , we need at least 5 borrowed bits to satisfy this requirement (since you cannot get the number 20 with any less than 5 bits). So that five borrowed bits can produce 32 subnets (2^5 =32). We cannot produce exactly 20 subnets, this is because the number of subnets are always the power of two and there is no power of two that can produce number 20. Step 2) Determine the custom subnet mask

  • since the given IP address is class C, default subnet mask is 255.255.255.0 = 11111111.11111111.11111111.
  • We must “convert” 5 of the client bits (0) to network bits (1) in order to satisfy the requirements: New Mask(Custom Subnet) = 11111111.11111111.11111111. 11111 000
  • If we convert the mask back to decimal, we now have the new subnet mask that will be used on all the new networks – 255.255.255. Step 3) Use increment to find network ranges
  • we have 3 host bits in New Mask = 11111111.11111111.11111111.11111 000 , the range of subnets become: 23 =
  • Start with your given network address and add your increment to the submitted octet: Subnet1: 209.50.1.0 – 209.50.1. Subnet2: 209.50.1.8 – 209.50.1. Subnet3: 209.50.1.16 – 209.50.1. …… Subnet32: 209.50.1.248 – 209.50.1.
  • You can then assign these ranges to your networks! Remember the first and last address from each range (network / broadcast IP) are unusable

8. Your company would like to break the Class B private IP address range 172.16.0.0 into 60 different subnets Step 1) Determine the number of bits to be borrowed from host portion ➢ Number of subnets required = 60 ➢ 2 x^ = ➢ 2 x^ = 2^6 , we need at least 6 borrowed bits to satisfy this requirement (since you cannot get the number 60 with any less than 6 bits), so that we can produce 26 =64 subnets Step 2) Determine subnet mask and find incremental value(Subnet range)

  • the given IP address is class B, the default subnet mask is 255.255.0.0 = 11111111.11111111.00000000.
  • We must “convert” 6 of the client bits (0) to network bits (1) in order to satisfy the requirements: New (Custom)Mask = 11111111.11111111. 111111 00.00000000 = 255.255.252.
  • Our increment bit (Subnet range) is two the number of host bits in masked octet, 2^2 =4. Step 3) Use increment(Subnet range) to find network ranges
  • Start with your given network address and add your increment to the submitted octet: Subnet1: 172.16.0.0 – 172.16.3. Subnet2:172.16.4.0 – 172.16.7. Subnet3:172.16.8.0 – 172.16.11. … Subnet64: 172.16.252.0 – 172.16.255.
  • You can then assign these ranges to your networks! Remember the first and last address from each range (network / broadcast IP) are unusable C. Subnetting when given a required number of clients 9. A service provider has given you the Class C network range 209.50.1.0. Your company must break the network into as many subnets as possible as long as there are at least 50 clients per network. Step 1) Determine the possible number of host bits To obtain 50 hosts we should have at least 6 host bits. This is because we cannot get the number 50 with any less than 6 host bits. So 6 host bits can produce 2^6 - 2=62 hosts per subnet Step 2) Reserve required bits in subnet mask and find incremental value (Subnet range) The binary value of 50 clients tells us that we need at least 6 client(host) bits to satisfy this requirement (since you cannot get the number 50 with any less than 6 bits – 110010) Our original subnet mask is 255.255.255.0 (Class C Default subnet mask) The full binary representation of the subnet mask is as follows: 255.255.255.0 = 11111111.11111111.11111111.. We must ensure 6 of the client bits (0) remain client bits (save the clients!) in order to satisfy the requirements. All other bits can become network bits: New Mask = 11111111.11111111.11111111. 11 000000. note we have 6 client(host) bits and 2 borrowed bits. If we convert the mask back to decimal, we now have the subnet mask that will be used on all the new networks – 255.255.255. Our increment value/ subnet range is 2 host bits in subnetted octet^ =2^6 becomes the number “64‟ Step 3) Use increment to find subnet ranges Since we have 2 borrowed bits we will have 2^2 =4 subnets Start with your given network address and add your increment to the subnetted octet: 209.50.1.0 – 209.50.1. 209.50.1.64 – 209.50.1. 209.50.1.128 – 209.50.1. 209.50.1.192 – 209.50.1.255 You can then assign these ranges to your networks! Remember the first and last address from each range (network / broadcast IP) are unusable