GATE 2007
184 questions
MCQ 1841-mark 184
Questions 166–170 of 184
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
Consider a TCP connection in a state where there are no outstanding ACKs. The sender sends two segments back to back. The sequence numbers of the first and second segments are 230 and 290 respectively. The first segment was lost, but the second segment was received correctly by the receiver. Let X be the amount of data carried in the first segment (in bytes), and Y be the ACK number sent by the receiver. The values of X and Y (in that order) are
Answer: (D)
TCP numbers every byte. The first segment starts at byte 230 and the second at byte 290, so the first segment carries bytes 230 to 289.
bytes.
The ACK number is cumulative. It is the number of the next byte the receiver expects in order. The first segment was lost, so the receiver is still waiting for byte 230. It cannot acknowledge the second segment, so it sends ACK (a duplicate ACK).
So . An ACK of 290 would claim that bytes up to 289 arrived. The values 231 and 291 add 1 as if the sequence numbers counted segments, but they count bytes.
Answer: (D)
bytes.
The ACK number is cumulative. It is the number of the next byte the receiver expects in order. The first segment was lost, so the receiver is still waiting for byte 230. It cannot acknowledge the second segment, so it sends ACK (a duplicate ACK).
So . An ACK of 290 would claim that bytes up to 289 arrived. The values 231 and 291 add 1 as if the sequence numbers counted segments, but they count bytes.
Answer: (D)
Consider the following statements about the timeout value used in TCP.
i.The timeout value is set to the RTT (Round Trip Time) measured during TCP connection establishment for the entire duration of the connection.
ii.Appropriate RTT estimation algorithm is used to set the timeout value of a TCP connection.
iii.Timeout value is set to twice the propagation delay from the sender to the receiver.
Which of the following choices hold?
i.The timeout value is set to the RTT (Round Trip Time) measured during TCP connection establishment for the entire duration of the connection.
ii.Appropriate RTT estimation algorithm is used to set the timeout value of a TCP connection.
iii.Timeout value is set to twice the propagation delay from the sender to the receiver.
Which of the following choices hold?
Answer: (B)
(i) False. The RTT keeps changing during a connection because of queueing, routing and load. A timeout fixed at the handshake RTT would often be too short (needless retransmissions) or too long (slow recovery from loss). The figure shows only setup (SYN, SYN+ACK, ACK) and close (FIN), plus the 2MSL wait in TIME-WAIT, which is a different timer.
(ii) True. TCP measures the RTT of segments as they are acknowledged and keeps a running estimate, for example , along with the deviation of the samples. The timeout is set a few deviations above the estimate, .
(iii) False. Twice the propagation delay is only a lower bound on the RTT. The RTT also includes transmission, queueing and processing delays. A timeout of exactly that value would expire before the ACK can come back.
So only (ii) is true.
Answer: (B)
(ii) True. TCP measures the RTT of segments as they are acknowledged and keeps a running estimate, for example , along with the deviation of the samples. The timeout is set a few deviations above the estimate, .
(iii) False. Twice the propagation delay is only a lower bound on the RTT. The RTT also includes transmission, queueing and processing delays. A timeout of exactly that value would expire before the ACK can come back.
So only (ii) is true.
Answer: (B)