Computer Science, asked by sayyedfaisal06, 1 year ago

An address in a block is given as 180.8.17.9. find the number of addresses in the block, the first address, and the last address.

Answers

Answered by Sidyandex
17

The number of addresses in the block is 65,536.

The first address is 18.8.0.0/16 and the last address is 18.8.255.255.

The following question is an example of Two-Level Addressing of Communication and Computer Networks.

180 falls between 128 and 191 and therefore, the class of the address is B, for which the value of n is 16.

Therefore, the number of addresses is 2 raised to the power of (32-16), i.e., 16.

Hence 2 raised to 16 works out as 65,536.

To get the first address, we retain the leftmost 16 bits and set the rightmost 16 bits to 0s.

Therefore, the first address is 18.8.0.0/16, in which n=16.

For finding the last address, we will keep the leftmost 16 bits and set the rightmost 16 bits to 1s.

Hence, the last address is 18.8.255.255.

Answered by pragyakirti12345
0

Answer : Number of addresses are 65,536.  First address is 180.8.0.0/16 and Last address is 180.8.255.255.

Concept : Two level Addressing

Given : An address in a block is given as 180.8.17.9

To Find : Find the number of addresses in the block, the first address,

              and the last address.

Explanation:

Two-Level Addressing of Communication and Computer Networks is the IP address belonging to class B, as these addresses are assigned to the networks that ranges from medium-sized to large-sized networks. In this type of IP address, the network ID is 16 bits long and the host ID is also 16 bits long. In two level addressing, IP addresses belonging to class B ranges from 128.0.x.x – 191.255.x.x.

Hence, 180 falls in the range of 128 to 191. The class of the address in the given question is B, for which the value of n is 16. Hence, the last address is 180.8.255.255.

The number of addresses in the block is 65,536 in 180.8.17.9.

The first address is 180.8.0.0/16 and the last address is 180.8.255.255.

#SPJ2

Similar questions