Question

In the network 200.10.11.144/27, the fourth octet (in decimal) of the last IP address of the network which can be assigned to a host is _____.

Official answer and solution
Official answer
158
From
Official GATE 2015 answer key

Solution

Determine the subnet boundaries and identify the maximum assignable host IP address.

Given address with prefix: 200.10.11.144/27.
The prefix length is /27/27, which leaves 32−27=532 - 27 = 5 host bits.
Block size =25=32= 2^5 = 32 addresses per subnet.

Subnet boundaries for multiples of 32 in the fourth octet:
0,32,64,96,128,160,…0, 32, 64, 96, 128, 160, \dots
Since 128≤144<160128 \le 144 < 160, the subnet network ID is 200.10.11.128/27200.10.11.128/27.

The subnet spans addresses from 200.10.11.128200.10.11.128 to 200.10.11.159200.10.11.159:

  • Network address: 200.10.11.128200.10.11.128
  • Broadcast address: 200.10.11.159200.10.11.159
  • Assignable host address range: 200.10.11.129200.10.11.129 to 200.10.11.158200.10.11.158

The fourth octet of the last assignable host address is 158.

Final answer

158

Common trap

Giving the directed broadcast address (159) instead of the last assignable host address (158 = 159 - 1).

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2015 Computer Science and Information Technology (CS) Session 3
Question
48 of 65, printed as CS Q.38
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.