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 1–5 of 74
An ISP having an address block assigns a block of IP addresses to a client, using the classless internet domain routing (CIDR) super-netting approach. Which of the following address blocks can be assigned by the ISP?
One or more options are correct.
Answer: (A), (B), (C)
The ISP block covers two full class-B-sized blocks. It runs from up to .
To give addresses with CIDR super-netting, the block must hold at least addresses. A prefix gives addresses, and this is enough. A would give only .
A valid sub-block must follow two rules. (a) It must lie fully inside the range to . (b) Its network address must be a multiple of in the needed octet. Here leaves host bits, so each block has addresses. So the 3rd octet must be a multiple of : .
- : is a multiple of and it is in range. Valid.
- : is a multiple of , and is in the /15 range. Valid.
- : is a multiple of . Valid.
- : is not a multiple of . The valid boundaries are . So this is not a properly aligned block. Invalid.
Answer: 202.16.0.0/19, 202.17.64.0/19, and 202.16.32.0/19 can be assigned.
To give addresses with CIDR super-netting, the block must hold at least addresses. A prefix gives addresses, and this is enough. A would give only .
A valid sub-block must follow two rules. (a) It must lie fully inside the range to . (b) Its network address must be a multiple of in the needed octet. Here leaves host bits, so each block has addresses. So the 3rd octet must be a multiple of : .
- : is a multiple of and it is in range. Valid.
- : is a multiple of , and is in the /15 range. Valid.
- : is a multiple of . Valid.
- : is not a multiple of . The valid boundaries are . So this is not a properly aligned block. Invalid.
Answer: 202.16.0.0/19, 202.17.64.0/19, and 202.16.32.0/19 can be assigned.
If an IP network uses a subnet mask of , the maximum number of IP addresses that can be assigned to network interfaces is ________. (answer in integer)
Answer: 4094
The subnet mask is . In binary it is — this gives network bits (a ).
The number of host bits , so the subnet has addresses in total. Out of these, are reserved (the all-zeros network address and the all-ones broadcast address), so they cannot be assigned to interfaces.
The usable addresses .
Answer: 4094
The number of host bits , so the subnet has addresses in total. Out of these, are reserved (the all-zeros network address and the all-ones broadcast address), so they cannot be assigned to interfaces.
The usable addresses .
Answer: 4094
A packet with the destination IP address 145.36.109.70 arrives at a router whose routing table is shown. Which interface will the packet be forwarded to?
Answer: (A)
A router uses longest-prefix matching. It finds all entries whose subnet contains the destination address. Then it picks the entry with the longest prefix, because that is the most specific.
Destination address: . Now check each entry:
- (E1): it matches any address of the form , so it matches.
- (E2): the 3rd octet must be from to . Our 3rd octet is , so it does not match.
- (E3): the 3rd octet must be from to . Here is inside this range, so it matches.
- (E4): it covers only , so it does not match.
Two entries match: E1 with and E3 with . The entry has the longer prefix, so it is chosen.
Answer: E3
Destination address: . Now check each entry:
- (E1): it matches any address of the form , so it matches.
- (E2): the 3rd octet must be from to . Our 3rd octet is , so it does not match.
- (E3): the 3rd octet must be from to . Here is inside this range, so it matches.
- (E4): it covers only , so it does not match.
Two entries match: E1 with and E3 with . The entry has the longer prefix, so it is chosen.
Answer: E3
Suppose a message of size 15000 bytes is transmitted from a source to a destination using IPv4 protocol via two routers as shown in the figure. Each router has a defined maximum transmission unit (MTU) as shown in the figure, including IP header. The number of fragments that will be delivered to the destination is _________. (Answer in integer)
Answer: 7
Assume the standard IPv4 header of bytes (no options). So the original datagram is bytes.
At Router-1 (MTU ): the maximum data in one fragment bytes. But the data in a fragment must be a multiple of bytes, so each non-last fragment can carry bytes of data.
Here the data is bytes and . So there are full fragments of bytes ( bytes in all), plus a final fragment of bytes. After Router-1 there are 4 fragments in total.
At Router-2 (MTU ): every fragment bigger than bytes must be split again. The small fragment with bytes of data (total size bytes) is not bigger, so it passes straight through unchanged.
The maximum data in a new sub-fragment . It is rounded down to a multiple of , which gives bytes.
Each of the big fragments (data bytes) splits into one sub-fragment of bytes, plus a final sub-fragment of bytes. So each gives sub-fragments, and the total is sub-fragments.
The total number of fragments reaching the destination (from the split large fragments) (the small fragment that passed through) .
Answer: 7
At Router-1 (MTU ): the maximum data in one fragment bytes. But the data in a fragment must be a multiple of bytes, so each non-last fragment can carry bytes of data.
Here the data is bytes and . So there are full fragments of bytes ( bytes in all), plus a final fragment of bytes. After Router-1 there are 4 fragments in total.
At Router-2 (MTU ): every fragment bigger than bytes must be split again. The small fragment with bytes of data (total size bytes) is not bigger, so it passes straight through unchanged.
The maximum data in a new sub-fragment . It is rounded down to a multiple of , which gives bytes.
Each of the big fragments (data bytes) splits into one sub-fragment of bytes, plus a final sub-fragment of bytes. So each gives sub-fragments, and the total is sub-fragments.
The total number of fragments reaching the destination (from the split large fragments) (the small fragment that passed through) .
Answer: 7
Consider the routing protocols given in List I and the names given in List II:
For matching of items in List I with those in List II, which ONE of the following options is CORRECT?
For matching of items in List I with those in List II, which ONE of the following options is CORRECT?
Answer: (A)
Distance vector routing is the distributed, practical form of the Bellman-Ford shortest-path algorithm. Each router knows only the distances given by its neighbors. It updates them again and again.
Link state routing needs every router to know the full topology. Each router then finds shortest paths with Dijkstra's algorithm.
Answer: (i)-(a) and (ii)-(b)
Link state routing needs every router to know the full topology. Each router then finds shortest paths with Dijkstra's algorithm.
Answer: (i)-(a) and (ii)-(b)
Keep practising
Topics in Computer Networks
OSI LayerPhysical LayerData Link Layer
Network Layer ProtocolYou are here
Transport Layer ProtocolApplication Layer ProtocolsNetwork Security