Data Link Layer · Computer Networks
69 questions · asked in 19 of 27 years (2000–2026)
MCQ 53 · NAT 161-mark 38 · 2-mark 31
2000Questions per year2026
Questions 31–35 of 69
Determine the maximum length of the cable (in km) for transmitting data at a rate of 500 Mbps in an Ethernet LAN with frames of size 10,000 bits. Assume the signal speed in the cable to be 2,00,000 km/s.
Answer: (B)
Condition for Ethernet:
Transmission and propagation time:
Maximum length = 200000 km/s 10 = 2 km
Answer: 2
Transmission and propagation time:
Maximum length = 200000 km/s 10 = 2 km
Answer: 2
Frames of 1000 bits are sent over a bps duplex link between two hosts. The propagation time is 25ms. Frames are to be transmitted into this link to maximally pack them in transit (within the link).
Suppose that the sliding window protocol is used with the sender window size of , where l is the number of bits identified in the earlier part and acknowledgements are always piggy backed. After sending frames, what is the minimum time the sender will have to wait before starting transmission of the next frame? (Identify the closest choice ignoring the frame processing time.)
Suppose that the sliding window protocol is used with the sender window size of , where l is the number of bits identified in the earlier part and acknowledgements are always piggy backed. After sending frames, what is the minimum time the sender will have to wait before starting transmission of the next frame? (Identify the closest choice ignoring the frame processing time.)
Answer: (C)
Full duplex does not split the bandwidth: the link carries bps in each direction.
Step 1: frames needed to pack the link. At bps, 1000 frames of 1000 bits can be sent per second. In the 25 ms propagation time, the sender can put frames into the link. Numbering 25 frames needs bits, so .
Step 2: window. The window is frames.
Step 3: waiting time. The wait is the round trip time (RTT) minus the time spent sending the window.
Transmission time of one frame = ms, so 32 frames take 32 ms.
RTT = propagation of frame + transmission of frame + propagation of ACK + transmission of ACK
ms (the ACK is piggybacked on a frame of 1000 bits, so it also takes 1 ms).
Waiting time ms. For the first 32 ms the sender was transmitting, not waiting.
Answer: (C)
Step 1: frames needed to pack the link. At bps, 1000 frames of 1000 bits can be sent per second. In the 25 ms propagation time, the sender can put frames into the link. Numbering 25 frames needs bits, so .
Step 2: window. The window is frames.
Step 3: waiting time. The wait is the round trip time (RTT) minus the time spent sending the window.
Transmission time of one frame = ms, so 32 frames take 32 ms.
RTT = propagation of frame + transmission of frame + propagation of ACK + transmission of ACK
ms (the ACK is piggybacked on a frame of 1000 bits, so it also takes 1 ms).
Waiting time ms. For the first 32 ms the sender was transmitting, not waiting.
Answer: (C)
Frames of 1000 bits are sent over a bps duplex link between two hosts. The propagation time is 25ms. Frames are to be transmitted into this link to maximally pack them in transit (within the link).
What is the minimum number of bits (l) that will be required to represent the sequence numbers distinctly? Assume that no time gap needs to be given between transmission of two frames.
What is the minimum number of bits (l) that will be required to represent the sequence numbers distinctly? Assume that no time gap needs to be given between transmission of two frames.
Answer: (D)
In full duplex each direction has the full bps, so the bandwidth is not halved.
Transmission time of one frame .
One-way propagation time . In 25 ms the sender can put frames into the link, so 25 frames are in transit when the link is packed.
The sequence numbers must tell these 25 frames apart: . Since , .
Answer: (D)
Transmission time of one frame .
One-way propagation time . In 25 ms the sender can put frames into the link, so 25 frames are in transit when the link is packed.
The sequence numbers must tell these 25 frames apart: . Since , .
Answer: (D)
Let G(x) be the generator polynomial used for CRC checking. What is the condition that should be satisfied by G(x) to detect odd number of bits in error?
Answer: (C)
Let be the error polynomial, with one term for each bit in error. The receiver finds no error only when divides . An odd number of bit errors means has an odd number of terms, so with modulo-2 arithmetic , which is not 0.
If is a factor of , then . If divided , we would get , which is false. So can never divide such an , and every odd number of bit errors is detected.
Why the others fail:
(A) Having more than two terms does not stop from dividing some odd-weight error.
(B) not dividing for any k up to the frame length is the condition to detect all double-bit errors, because a double error is . It says nothing about odd errors.
(D) An odd number of terms gives , so is not a factor. That is the opposite of what is needed.
Answer: (C)
If is a factor of , then . If divided , we would get , which is false. So can never divide such an , and every odd number of bit errors is detected.
Why the others fail:
(A) Having more than two terms does not stop from dividing some odd-weight error.
(B) not dividing for any k up to the frame length is the condition to detect all double-bit errors, because a double error is . It says nothing about odd errors.
(D) An odd number of terms gives , so is not a factor. That is the opposite of what is needed.
Answer: (C)
Data transmitted on a link uses the following 2D parity scheme for error detection:
Each sequence of 28 bits is arranged in a matrix (rows through , and columns through ) and is padded with a column and row of parity bits computed using the Even parity scheme. Each bit of column (respectively, row ) gives the parity of the corresponding row (respectively, column). These 40 bits are transmitted over the data link.
The table shows data received by a receiver and has n corrupted bits. What is the minimum possible value of n?
The table shows data received by a receiver and has n corrupted bits. What is the minimum possible value of n?
Answer: (C)
Check every row and column for even parity (the parity bit is included).
Rows: has four 1s (ok), has five 1s (fails), has two (ok), has four (ok), has four (ok).
Columns: two 1s (ok), four (ok), one (fails), two (ok), two (ok), three (fails), four (ok), one (fails).
So one row and three columns () fail. One flipped bit changes the parity of only one column, so at least 3 bits are corrupted.
3 flips are enough: flip the bit at (this fixes row and column ), then flip and (these fix columns and , and row stays even because two of its bits change). All parities now hold.
Minimum .
Answer: (C)
Rows: has four 1s (ok), has five 1s (fails), has two (ok), has four (ok), has four (ok).
Columns: two 1s (ok), four (ok), one (fails), two (ok), two (ok), three (fails), four (ok), one (fails).
So one row and three columns () fail. One flipped bit changes the parity of only one column, so at least 3 bits are corrupted.
3 flips are enough: flip the bit at (this fixes row and column ), then flip and (these fix columns and , and row stays even because two of its bits change). All parities now hold.
Minimum .
Answer: (C)
Keep practising