Network Layer Protocol · Computer Networks
74 questions · asked in 23 of 27 years (2000–2026)
MCQ 54 · MSQ 7 · NAT 131-mark 44 · 2-mark 30
2000Questions per year2026
Questions 51–55 of 74
If a class B network on the Internet has a subnet mask of 255.255.248.0, what is the maximum number of hosts per subnet?
Answer: (C)
A class B address has 16 network bits and 16 host bits. The mask 255.255.248.0 has in the third octet, so the mask has one bits. These 5 extra bits are the subnet bits.
The number of zeros in the mask is the number of host bits: 3 (third octet) 8 (fourth octet) bits.
Host addresses per subnet . Two of them are reserved: the all-zeros address (subnet ID) and the all-ones address (directed broadcast address).
Usable hosts
(D) forgets to remove the two reserved addresses.
Answer: (C)
The number of zeros in the mask is the number of host bits: 3 (third octet) 8 (fourth octet) bits.
Host addresses per subnet . Two of them are reserved: the all-zeros address (subnet ID) and the all-ones address (directed broadcast address).
Usable hosts
(D) forgets to remove the two reserved addresses.
Answer: (C)
A group of 15 routers is interconnected in a centralized complete binary tree with a router at each tree node. Router i communicates with router j by sending a message to the root of the tree. The root then sends the message back down to router j. The mean number of hops per message, assuming all possible router pairs are equally likely is
Answer: (C)
A message from router i to router j goes up from i to the root and then down from the root to j. So the hops are .
The tree has 15 nodes: at depth 0, at depth 1, at depth 2 and at depth 3.
Average depth of a router . Here means 3 hops for each of the 8 routers on the bottom level, and so on.
All pairs are equally likely, so the average over senders and the average over receivers are each hops, for the way up and the way down.
Mean hops per message .
Answer: (C)
The tree has 15 nodes: at depth 0, at depth 1, at depth 2 and at depth 3.
Average depth of a router . Here means 3 hops for each of the 8 routers on the bottom level, and so on.
All pairs are equally likely, so the average over senders and the average over receivers are each hops, for the way up and the way down.
Mean hops per message .
Answer: (C)
For the network given in the figure below, the routing tables of the four nodes A, E, D and G are shown. Suppose that F has estimated its delay to its neighbors, A, E, D and G as 8, 10, 12 and 6 msecs respectively and updates its routing table using distance vector routing technique.
Which one of the following option represents the updated routing table of F?
Which one of the following option represents the updated routing table of F?
Answer: (A)
Distance vector update at F: for each destination , , where is a neighbour of F and is F's delay to it: A = 8, E = 10, D = 12, G = 6.
To A:
To B:
To C:
To D:
To E:
To F: 0
To G:
The table is A 8, B 20, C 17, D 12, E 10, F 0, G 6. Option (C) is wrong because it gives F a cost of 16 to itself. Options (B) and (D) give B a cost of 8, but reaching B through D costs .
Answer: (A)
To A:
To B:
To C:
To D:
To E:
To F: 0
To G:
The table is A 8, B 20, C 17, D 12, E 10, F 0, G 6. Option (C) is wrong because it gives F a cost of 16 to itself. Options (B) and (D) give B a cost of 8, but reaching B through D costs .
Answer: (A)
The address of a class B host is to be split into subnets with a 6-bit subnet number. What is the maximum number of subnets and the maximum number of hosts in each subnet?
Answer: (C)
A class B address has 16 host bits. Taking 6 bits for the subnet leaves 10 bits for hosts.
- Subnets: (classic rule, all-0s and all-1s subnets left out)
- Hosts:
Answer: 62 subnets and 1022 hosts
- Subnets: (classic rule, all-0s and all-1s subnets left out)
- Hosts:
Answer: 62 subnets and 1022 hosts
A subnetted Class B network has the following broadcast address: 144.16.95.255
Its subnet mask
Its subnet mask
Answer: (D)
A broadcast address has all host bits set to . The address is a Class B address, so the first 16 bits are network bits and only the third octet can change how many subnet bits there are.
Third octet , and the last octet is .
The low 5 bits of the third octet are all , but its next bit (bit 5 from the right) is . So the host part can include at most these 5 bits of the third octet. Then at least 3 bits of the third octet must be subnet bits:
- 3 subnet bits: mask
- 4 subnet bits: mask
- 5 subnet bits: mask
In each case the host bits are all in . With fewer than 3 subnet bits (for example ), the host part would contain that bit, and the address would not be a broadcast address.
All three masks fit, so none of them is necessarily the mask.
Answer: (D)
Third octet , and the last octet is .
The low 5 bits of the third octet are all , but its next bit (bit 5 from the right) is . So the host part can include at most these 5 bits of the third octet. Then at least 3 bits of the third octet must be subnet bits:
- 3 subnet bits: mask
- 4 subnet bits: mask
- 5 subnet bits: mask
In each case the host bits are all in . With fewer than 3 subnet bits (for example ), the host part would contain that bit, and the address would not be a broadcast address.
All three masks fit, so none of them is necessarily the mask.
Answer: (D)
Keep practising
Topics in Computer Networks
OSI LayerPhysical LayerData Link Layer
Network Layer ProtocolYou are here
Transport Layer ProtocolApplication Layer ProtocolsNetwork Security