GATE 2004
199 questions
MCQ 1991-mark 199
Questions 171–175 of 199
Answer: (C)
Let the sender window be and the receiver window be . The sender can have unacknowledged frames, and the receiver accepts frames at a time.
Suppose the sender sends frames and the receiver gets all of them, but every ACK is lost. The receiver window now moves forward and accepts the next sequence numbers. The sender times out and resends the old frames . For the receiver to know these are old frames and not new ones, the old numbers and the new numbers must all be different.
So the minimum number of distinct sequence numbers is .
Answer: (C)
Answer: (D)
The flag is 0111, so the data must never contain 111, or the receiver would take it for the start of a flag. The rule is to add a 0 after every two consecutive 1s in the data.
Apply it to 01110110:
- Bits 0, 1, 1: two 1s, so add a 0. Output so far: 0110.
- Next data bit is the third 1. The count starts again at one 1, then comes a 0, so nothing is added. Output: 011010.
- Next bits 1, 1: two 1s, so add a 0. Output: 011010110.
- The last data bit is 0. Output: 0110101100.
The stuffed data does not contain 0111. The receiver removes the 0 that follows every . Option (B) adds only one 0, but the data has two pairs of 1s. Option (C) still contains 0111.
Answer: (D)
Answer: (B)
Exponential back-off algorithm is used here. When a collision happens:
- Each sender sends a jam signal and then backs off for . Here is the fixed slot time. The value is picked at random from to , where is the number of the current transmission and For is picked at random from to For the sender gives up.
In this question, for because this is first re-transmission. And for because this is its second re-transmission. So the possible values of for are , and for they are which gives possible pairs of values. Here wins the back-off if its value is lower than that of , since this value sets the waiting time directly. This happens for the value pairs which is out of . So the probability that wins the second back-off race is
Correct Answer:
Answer: (D)
Port numbers are not in the IP header. They are in the TCP or UDP header and are used by the transport layer to deliver data to the right process.
Answer: (D)
Answer: (D)
It does not depend on which network the device is in. If a device moves from one network to another, its MAC address stays the same. So the largest network in which it is unique is the whole Internet.
Answer: (D)