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 31–35 of 74
Consider the following three statements about link state and distance vector routing protocols, for a large network with 500 network nodes and 4000 links
[S1] The computational overhead in link state protocols is higher than in distance vector protocols.
[S2] A distance vector protocol (with split horizon) avoids persistent routing loops, but not a link state protocol.
[S3] After a topology change, a link state protocol will converge faster than a distance vector protocol.
Which one of the following is correct about S1, S2, and S3?
[S1] The computational overhead in link state protocols is higher than in distance vector protocols.
[S2] A distance vector protocol (with split horizon) avoids persistent routing loops, but not a link state protocol.
[S3] After a topology change, a link state protocol will converge faster than a distance vector protocol.
Which one of the following is correct about S1, S2, and S3?
Answer: (D)
Let us check the three statements one by one:
- S1: In link state, every router runs Dijkstra on the full topology so it needs more computation. True
- S2: Split horizon cannot stop every loop, because count-to-infinity can still occur. Link state avoids persistent loops. So the statement is False
- S3: In link state, routers flood updates and recompute right away so convergence is faster. True
Answer: S1 and S3 are true, but S2 is false
- S1: In link state, every router runs Dijkstra on the full topology so it needs more computation. True
- S2: Split horizon cannot stop every loop, because count-to-infinity can still occur. Link state avoids persistent loops. So the statement is False
- S3: In link state, routers flood updates and recompute right away so convergence is faster. True
Answer: S1 and S3 are true, but S2 is false
Which one of the following is TRUE about the interior gateway routing protocols - Routing Information Protocol (RIP) and Open Shortest Path First (OSPF)?
Answer: (A)
RIP sends its distance vectors to its neighbours. It works by the Bellman-Ford method. OSPF floods link-state advertisements through the network. Then it runs Dijkstra.
Answer: RIP uses distance vector routing and OSPF uses link state routing
Answer: RIP uses distance vector routing and OSPF uses link state routing
In the diagram shown below, L1 is an Ethernet LAN and L2 is a Token-Ring LAN. An IP packet originates from sender S and traverses to R, as shown. The links within each ISP and across the two ISPs, are all point-to-point optical links. The initial value of the TTL field is 32. The maximum possible value of the TTL field when R receives the datagram is ________.


Answer: 26
TTL is lowered by 1 at each router (layer-3 device) that forwards the packet. Hubs, switches and bridges inside a LAN work below the IP layer and do not change it, and token-ring stations only pass frames on.
For the maximum possible TTL, take the triangles inside L1 as LAN devices (S itself is drawn as one). The routers (squares) on the path are: the gateway of L1, two routers in ISP1, and two in ISP2, the last of which is the gateway into L2. That is 5 routers.
Answer: 26, as given in the official GATE 2014 answer key.
Note: Counting only the 5 routers on the path gives 27. The official answer 26 needs six decreases of TTL, one more than the five routers shown. That happens only if one more device is taken to lower TTL, such as the sender S, the receiver R or one of the triangles in L1; ordinary hosts and LAN devices do not change TTL.
For the maximum possible TTL, take the triangles inside L1 as LAN devices (S itself is drawn as one). The routers (squares) on the path are: the gateway of L1, two routers in ISP1, and two in ISP2, the last of which is the gateway into L2. That is 5 routers.
Answer: 26, as given in the official GATE 2014 answer key.
Note: Counting only the 5 routers on the path gives 27. The official answer 26 needs six decreases of TTL, one more than the five routers shown. That happens only if one more device is taken to lower TTL, such as the sender S, the receiver R or one of the triangles in L1; ordinary hosts and LAN devices do not change TTL.
Host A (on TCP/IP v4 network A) sends an IP datagram D to host B (also on TCP/IP V4 network B). Assume that no error occurred during the transmission of D. When D reaches B, which of the following IP header field(s) may be different from that of the original datagram D?
(i) TTL
(ii) Checksum
(iii) Fragment Offset
(i) TTL
(ii) Checksum
(iii) Fragment Offset
Answer: (D)
Let us look at each field:
- TTL goes down by one at every router.
- Checksum is calculated again each time the header changes.
- If a router breaks D into fragments, each fragment gets its own Fragment Offset value.
So all three fields may be different.
Answer: (i), (ii) and (iii)
- TTL goes down by one at every router.
- Checksum is calculated again each time the header changes.
- If a router breaks D into fragments, each fragment gets its own Fragment Offset value.
So all three fields may be different.
Answer: (i), (ii) and (iii)
An IP router implementing Classless Inter-domain routing (CIDR) receives a packet with address 131.23.151.76. The router's routing table has the following entries:
The identifier of the output interface on which this packet will be forwarded is _____.
The identifier of the output interface on which this packet will be forwarded is _____.
Answer: 1
The packet address is 131.23.151.76. Its second octet is 23, which is 00010111.
- 131.16.0.0/12: 16 = 0001 0000 the first 4 bits, 0001, match.
- 131.28.0.0/14: 28 = 000111 00 compared with 000101 no match.
- 131.19.0.0/16: 19 23 no match.
- 131.22.0.0/15: 22 = 0001011 0 the first 7 bits, 0001011, match.
The longest prefix match is /15 interface 1.
Answer: 1
- 131.16.0.0/12: 16 = 0001 0000 the first 4 bits, 0001, match.
- 131.28.0.0/14: 28 = 000111 00 compared with 000101 no match.
- 131.19.0.0/16: 19 23 no match.
- 131.22.0.0/15: 22 = 0001011 0 the first 7 bits, 0001011, match.
The longest prefix match is /15 interface 1.
Answer: 1
Keep practising
Topics in Computer Networks
OSI LayerPhysical LayerData Link Layer
Network Layer ProtocolYou are here
Transport Layer ProtocolApplication Layer ProtocolsNetwork Security