Routing
Question 1 |
The next hop router for a packet from R to P is Y. | |
The distance from R to Q will be stored as 7. | |
The next hop router for a packet from R to Q is Z. | |
The distance from R to P will be stored as 10. |
Given R gets the distance vector (3,2,5)
After the one iteration distance vector from X to P, Y to P, and Z to P is (7, 6, 5) respectively
The distance vector from R to P via X Y Z is (3+7, 2+6, 5+5) =(10, 8, 10)
So Take minimum distance from R to P which is 8 via Y
After the iteration distance vector from X to Q, Y to Q, Z to Q is ( 4, 6, 8) respectively
The distance vector from R to Q via X Y Z is (3+4, 2+6, 5+8) = (7, 8 13)
So Take minimum distance from R to Q which is 7 via X.
Question 2 |
8.000 | |
8.008 | |
15.992 | |
16.000 |
Question 3 |
40 | |
Question 4 |
A group of 15 routers are interconnected in a centralized complete binary tree with a router at each tree node. Router j 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
3 | |
4.26 | |
4.53 | |
5.26 |
= (3×8) + (2×4) + (1×2) + (0×1)/15
= 2.267
So, Total hops = 2×2.267 = 4.53
Question 5 |
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.
Using distance vector routing protocol, F→D→B yeilds distance as 20 which eliminates option (B) and (D).
Question 6 |
Two popular routing algorithms are Distance Vector(DV) and Link State (LS) routing. Which of the following are true?
-
- (S1) Count to infinity is a problem only with DV and not LS routing
-
- (S2) In LS, the shortest path algorithm is run only at one node
-
- (S3) In DV, the shortest path algorithm is run only at one node
- (S4) DV requires lesser number of network messages than LS
S1, S2 and S4 only | |
S1, S3 and S4 only | |
S2 and S3 only | |
S1 and S4 only |
→ In LSR shortest path is calculated at each every router. (B) is wrong.
→ In DVR also shortest path is calculated at each and every router. (C) is wrong.
→ Since DVR is based upon local knowledge whereas LSR is based upon global knowledge.
Question 7 |
The routers exchange distance vector routing information and have converged on the routing tables, after which the link Q−R fails. Assume that P and Q send out routing updates at random times, each at the same average rate. The probability of a routing loop formation (rounded off to one decimal place) between P and Q, leading to count-to-infinity problem, is___________.
1 |
If asked for R, from among P, Q, R
Probability = 1 /3
Question 8 |
OSPF implements Bellman-Ford algorithm to find shortest paths. | |
OSPF uses Dijkstra’s shortest path algorithm to implement least-cost path routing. | |
OSPF is used as an inter-domain routing protocol. | |
OSPF implements hierarchical routing. |
Question 9 |
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 and IV only | |
I, II and III only | |
I, II and IV only | |
II, III and IV only |
RIP is one of the oldest DVR protocol which employ the hop count as a routing metric.
II: RIP packets are sent using UDP. “TRUE”
RIP uses the UDP as its transport protocol, and is assigned the reserved port no 520.
III: OSPF packets are sent using TCP. “FASLE”
OSPF encapsulates its data directly into IP Packets and does not use either TCP or UDP.
IV: OSPF operation is based on link state routing. “TRUE”
OSPF is a routing protocol which uses link state routing (LSR) and works within a single autonomous system.
Hence correct is answer “C”.
Question 10 |
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, S2, and S3 are all true. | |
S1, S2, and S3 are all false. | |
S1 and S2 are true, but S3 is false. | |
S1 and S3 are true, but S2 is false. |
S2: A distance vector protocol with split horizon avoid persistent routing loops is true, but not a link state protocol is false because link state protocols do not have count to infinity problem.
S3: As Distance vector protocol has count to infinity problem and converges slower. (True)
Question 11 |
Packets of the same session may be routed through different paths in:
TCP, but not UDP | |
TCP and UDP | |
UDP, but not TCP | |
Neither TCP nor UDP |
Question 12 |
Consider a network with 6 routers R1 to R6 connected with links having weights as shown in the following diagram:
Suppose the weights of all unused links in the previous question are changed to 2 and the distance vector algorithm is used again until all routing tables stabilize. How many links will now remain unused?
0 | |
1 | |
2 | |
4 |
And only link that will be removed is R5-R6 link.