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 21–25 of 74
An organization requires a range of IP address to assign one to each of its 1500 computers. The organization has approached an Internet Service Provider (ISP) for this task. The ISP uses CIDR and serves the requests from the available IP address space 202.61.0.0/17. The ISP wants to assign an address space to the organization which will minimize the number of routing entries in the ISP's router using route aggregation. Which of the following address spaces are potential candidates from which the ISP can allot any one of the organization?
I. 202.61.84.0/21
II. 202.61.104.0/21
III. 202.61.64.0/21
IV. 202.61.144.0/21
I. 202.61.84.0/21
II. 202.61.104.0/21
III. 202.61.64.0/21
IV. 202.61.144.0/21
Answer: (B)
1500 hosts need addresses, which gives a /21 block. A /21 block starts at a third octet that is a multiple of 8. It must also lie inside 202.61.0.0/17 (third octet 0-127).
- I: 84 is not a multiple of 8. False
- II: 104 = 13 8. True
- III: 64 = 8 8. True
- IV: 144 is outside the /17 range. False
Answer: II and III only
- I: 84 is not a multiple of 8. False
- II: 104 = 13 8. True
- III: 64 = 8 8. True
- IV: 144 is outside the /17 range. False
Answer: II and III only
Consider three machines M, N and P with IP addresses 100.10.5.2, 100.10.5.5 and 100.10.5.6 respectively. The subnet mask is set to 255.255.255.252 for all the three machines. Which one of the following is true?
Answer: (C)
The mask 255.255.255.252 is /30. So each subnet is a block of 4 addresses in the last octet.
- M has .2 it lies in block .0-.3
- N has .5 it lies in block .4-.7
- P has .6 it lies in block .4-.7
Answer: Only N and P belong to the same subnet
- M has .2 it lies in block .0-.3
- N has .5 it lies in block .4-.7
- P has .6 it lies in block .4-.7
Answer: Only N and P belong to the same subnet
Consider an IP packet with a length of 4,500 bytes that includes a 20-byte IPv4 header and a 40-byte TCP header. The packet is forwarded to an IPv4 router that supports a Maximum Transmission Unit (MTU) of 600 bytes. Assume that the length of the IP header in all the outgoing fragments of this packet is 20 bytes. Assume that the fragmentation offset value stored in the first fragment is 0.
The fragmentation offset value stored in the third fragment is _______.
The fragmentation offset value stored in the third fragment is _______.
Answer: 144
Data in the packet: 4500 20 = 4480 bytes. Space for data in each fragment: 600 20 = 580 bytes. This is rounded down to a multiple of 8, so it becomes 576 bytes.
Fragment offsets (in units of 8 bytes): fragment 1 = 0, fragment 2 = 576/8 = 72, fragment 3 = 1152/8 = 144.
Answer: 144
Fragment offsets (in units of 8 bytes): fragment 1 = 0, fragment 2 = 576/8 = 72, fragment 3 = 1152/8 = 144.
Answer: 144
Consider the following statements about the routing protocols, Routing Information Protocol
(RIP) and Open Shortest Path First (OSPF) in an IPv4 network.
I. RIP uses distance vector routing
II. RIP packets are sent using UDP
III. OSPF packets are sent using TCP
IV. OSPF operation is based on link-state routing
Which of the statements above are CORRECT?
I. RIP uses distance vector routing
II. RIP packets are sent using UDP
III. OSPF packets are sent using TCP
IV. OSPF operation is based on link-state routing
Which of the statements above are CORRECT?
Answer: (C)
Let us check each statement:
- RIP uses distance vector. This is True. It runs over UDP (port 520). This is True.
- OSPF uses link state. This is True. It runs straight over IP (protocol 89), not TCP. This is False.
Answer: I, II and IV only
- RIP uses distance vector. This is True. It runs over UDP (port 520). This is True.
- OSPF uses link state. This is True. It runs straight over IP (protocol 89), not TCP. This is False.
Answer: I, II and IV only
The maximum number of IPv4 router addresses that can be listed in the record route (RR) option field of an IPv4 header is _________.
Answer: 9
The options part of an IPv4 header can be 40 bytes at most. The Record Route option takes 3 bytes for type, length and pointer. The other 37 bytes store addresses, and each address is 4 bytes long: .
Answer: 9
Answer: 9
Keep practising
Topics in Computer Networks
OSI LayerPhysical LayerData Link Layer
Network Layer ProtocolYou are here
Transport Layer ProtocolApplication Layer ProtocolsNetwork Security