Data Link Layer · Computer Networks
69 questions · asked in 19 of 27 years (2000–2026)
MCQ 53 · NAT 161-mark 38 · 2-mark 31
Questions 66–69 of 69
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: (B)
To keep the link fully busy we need packets in flight. The window is only packets, so
.
Link bandwidth .
Maximum throughput .
Check: packets of bytes are sent in one cycle of , and B/s.
Answer: (B)
Answer: (D)
Propagation delay here:
Transmission time for bytes:
This gives:
So the answer is none of these.
Correct Answer:
Keep practising