Computer Networks · Data Link, Framing, Error Control & ARQ
32 questions, newest first
GATE CSE has asked 32 questions on Data Link, Framing, Error Control & ARQ (Computer Networks) from 1992 to 2026, in 25 of the 46 papers; the most recent is in GATE CSE 2026 Set 2. In the last five years it carried 1.1 marks per 100-mark paper on average, against 1.2 since 2003. Since 2014 the questions have been 9 NAT and 8 MCQ. 6 groups of questions here are solved the same way; “One per method” keeps the newest of each.
A lossless sliding-window link sends 1000-bit frames at 100 kbps (100000 bits/s). One-way propagation is 100 ms; processing and ACK transmission times are zero. Find the smallest window W for 100% utilization among 10,21,20,11 frames.
Your answer
Answer & solution
Official answer: B
Step through it (5 steps)
Givens and goal
A lossless sliding-window link sends 1000-bit frames at 100 kbps (100000 bits/s). One-way propagation is 100 ms; processing and ACK transmission times are zero. Find the smallest window W for 100% utilization among 10,21,20,11 frames.
Approach
Find when the first frame’s acknowledgement returns, then require the initial window to keep the transmitter busy until that instant.
Step-by-step solution
1. Frame transmission time is T_tx=1000/100000 s=0.01 s=10 ms. Propagation time is T_prop=100 ms in each direction. 2. Start frame 1 at time 0. Its last bit leaves the sender at 10 ms and reaches the receiver at 110 ms. With zero processing and ACK transmission time, its ACK is sent then and reaches the sender at 210 ms. 3. Sending W frames back-to-back occupies the sender for W·10 ms. If this duration is less than 210 ms, the sender exhausts its window before the first ACK returns and must sit idle. 4. Full utilization requires 10W≥210, giving W≥21. With W=21, the first ACK arrives exactly when frame 21 finishes, allowing frame 22 to start without a gap. Later acknowledgements then arrive at the same spacing as new frames are sent. 5. Therefore the minimum is 21 frames, option B. W=20 covers only the 200-ms propagation round trip and overlooks the first frame’s own 10-ms transmission. W=10 or 11 is also too small.
The equivalent formula is W≥1+2T_prop/T_tx=1+20=21. It assumes acknowledgements are issued after full frame reception as in the stated textbook link model.
Data bits 110001011 use CRC generator 1001. Which 3-bit remainder is appended? A 011; B 101; C 000; D 100.
Your answer
Answer & solution
Official answer: D
Step through it (9 steps)
Givens and goal
Data bits 110001011 use CRC generator 1001. Which 3-bit remainder is appended? A 011; B 101; C 000; D 100.
Approach
Divide the zero-extended message by the generator over GF(2).
Step-by-step solution
1. The generator has degree 3, so append three zeros: 110001011000. In polynomial form the message is M=x⁸+x⁷+x³+x+1 and the divisor is G=x³+1. 2. Long division starts with x¹¹+x¹⁰+x⁶+x⁴+x³. XOR x⁸G to cancel x¹¹, leaving x¹⁰+x⁸+x⁶+x⁴+x³. XOR x⁷G to leave x⁸+x⁷+x⁶+x⁴+x³. 3. Continue XOR division: subtract x⁵G to obtain x⁷+x⁶+x⁵+x⁴+x³; subtract x⁴G to obtain x⁶+x⁵+x³; subtract x³G to obtain x⁵; finally subtract x²G to obtain x². Each subtraction is XOR, so duplicate monomials cancel. 4. Thus the remainder is x², represented by 100, option D. A shorter independent check uses x³≡1 modulo G: x⁸+x⁷+x³+x+1 reduces to x²+x+1+x+1=x², and the appended factor x³ does not change it. 5. The transmitted bits are 110001011100. XORing this remainder into the zero-extended message makes it divisible by 1001. CRC division uses XOR, never carries or ordinary integer subtraction.
A five-bit message is sent through a channel that independently flips each bit with probability 0.01. What is the probability of receiving the entire message error-free, rounded to three decimal places?
Answer & solution
Official answer: 0.949 to 0.952
Our answer: 0.951
Approach: An error-free message requires all five separate “not flipped” events to occur. For each bit, P(no flip)=1−0.01=0.99. Since the bit-flip events are independent, their complements are independent as well, and the probability of all five correct bits is the product 0.995. Calculating gives 0.9509900499, which rounds to 0.951 at three decimal places. This lies in the official accepted interval 0.949–0.952. The expression 1−5×0.01=0.95 is only a first-order approximation: it treats the five error events as if they were disjoint, even though two or more bits may flip together. Alternatively, the number of errors is binomial with parameters 5 and 0.01, and its zero-error probability is C(5,0)(0.01)0(0.99)5, the same result.
Stop-and-wait sends 3000-bit frames on a 2000-bit/s channel. One-way propagation delay is 100 ms. Ignore processing time and ACK transmission time. Which offered percentage best approximates channel utilization? Options: A. 88.23; B. 93.75; C. 85.44; D. 66.67.
Your answer
Answer & solution
Official answer: A
Step through it (4 steps)
Frame transmission takes T_tx=3000/2000=1.5 seconds. Once the last data bit leaves the sender it still needs 0.1 seconds to reach the receiver. The negligibly short ACK then needs another 0.1 seconds to propagate back. Therefore the interval from starting one frame until being allowed to start the next is T_cycle=1.5+0.1+0.1=1.7 seconds.
The sender uses the channel to transmit data for 1.5 seconds of each 1.7-second cycle, so utilization is U=1.5/1.7=15/17≈0.88235294, or 88.235294 percent. Equivalently U=1/(1+2a), where a=T_prop/T_tx.
A is the nearest listed choice. The displayed 88.23 is a truncated/approximate option; conventional rounding of the calculated percentage to two decimal places gives 88.24. Ignoring the return propagation would overestimate utilization, while treating the 100 ms as a round trip would change the supplied assumption. Answer: A.
Two hosts use stop-and-wait on a point-to-point link. For the same frame size, which combination gives lowest utilization? A longer link/lower bit rate; B longer link/higher bit rate; C shorter link/lower bit rate; D shorter link/higher bit rate.
Your answer
Answer & solution
Official answer: B
Ignoring a negligible ACK, stop-and-wait utilization is T_tx/(T_tx+2T_prop)=1/(1+2T_prop R/L) for fixed frame size L. A longer link raises propagation time, and a higher transmission rate R shortens transmission time relative to the wait. Both decrease utilization, so the lowest is B.
Teaching detail. Let L be frame bits, R link bits/second, and d one-way propagation time. The sender spends L/R seconds transmitting, then approximately 2d waiting for propagation and acknowledgment before the next frame. Thus the useful busy fraction is (L/R)/(L/R+2d). Faster transmission can improve absolute throughput while lowering this fraction, because a short burst is followed by the same propagation wait. This distinction between utilization and raw link speed is the main trap in the options.
A sliding-window protocol uses a full-duplex error-free link with negligible frame/ACK processing, unlimited queued frames, 2000-bit data frames, 10-bit ACK frames, 1 Mbps in each direction, and 100 ms one-way propagation. What is the minimum sender window in frames needed for 50% utilization (source asks nearest-integer rounding)?
Answer & solution
Official answer: 50 to 52
Our answer: 51
Step through it (6 steps)
A data frame takes 2000/106=2 ms to serialize; an ACK takes 10/106=0.01 ms. The earliest ACK for the first frame returns after 2+100+0.01+100=202.01 ms. For an unsaturated sliding window of W frames, utilization is W*2/202.01. Requiring at least 0.5 gives W>=50.5025, so the smallest integer window is 51. The official accepted interval is 50 to 52 and is retained, but the explicit ACK serialization and minimum-integer calculation give 51.
A cycle for the first frame includes its serialization, forward propagation, ACK serialization, and reverse propagation: 202.01 ms. In that interval W frames occupy the forward link for 2W ms, unless the link is already saturated. Hence utilization is min(1,2W/202.01). W=50 gives about 49.5025%, below the target, whereas W=51 gives about 50.4925%. This directly checks the minimum-integer result and explains why the wider official interval is preserved separately from the derivation.
CRC generator x³+x+1; message 11000. Append three check bits to obtain a divisible transmitted polynomial over GF(2). Find check bits. A 101; B 110; C 100; D 111.
Your answer
Answer & solution
Official answer: C
Step through it (6 steps)
Append three zeros to 11000, obtaining 11000000. Divide over GF(2) by 1011. XOR at the leading positions gives 11000000 XOR10110000=01110000, then XOR01011000=00101000, then XOR00101100=00000100. The three-bit remainder is 100, so C. Appending100 makes the transmitted polynomial divisible by the generator.
In polynomial arithmetic coefficients are mod 2, so subtraction is XOR without borrows. Generator degree three fixes a three-bit remainder, including any leading zero. As a verification, 11000100 divided by 1011 has zero remainder. Dividing the unshifted message instead would generate the wrong checksum.
A network uses CRC over GF(2), eight information bits and generator x³+x+1. How is message 01011011 transmitted? A 01011011010; B 01011011011; C 01011011101; D 01011011100.
Your answer
Answer & solution
Official answer: C
Step through it (6 steps)
1. The degree-three generator requires three check bits. Append three zeros to 01011011, obtaining dividend 01011011000; generator bits are 1011.
2. Division in GF(2) uses XOR instead of subtraction. As integers the aligned XORs are 728 XOR (11<<6)=24; 24 XOR (11<<1)=14; 14 XOR 11=5. The remainder 5 is three-bit 101.
3. Replace the three zero placeholders with 101: transmitted bits are 01011011101, C. Dividing this final codeword by 1011 yields remainder zero, an independent check.
Stop-and-wait ARQ: bit rate 1 Mbps; one-way propagation 0.75 ms; frame processing time 0.25 ms; information-frame length 1980 bytes; ACK length 20 bytes; information-frame overhead 20 bytes. No errors. Find useful-data transmission efficiency as a percentage to two decimals.
Answer & solution
Official answer: 86.5 to 89.5
Our answer: 87.11 under stated whole-frame convention
1. Interpret 1980 bytes as total information-frame length including its 20 overhead bytes. Useful payload=1960 bytes, so useful transmission time is 1960×8/106 s=15.68 ms.
2. A full stop-and-wait cycle includes information transmission 1980×8/10^6=15.84 ms; outward and return propagation 2×0.75=1.50 ms; ACK transmission 20×8/10^6=0.16 ms; and two received-frame processing times 2×0.25=0.50 ms. Total=18.00 ms.
3. Efficiency=useful payload time/cycle time=15.68/18=0.871111..., or 87.11%. If “1980” instead denotes payload before overhead, use 15.84/18.16, giving 87.22%.
A binary code has valid words 00000,01011,10101,11110. Let p be its minimum Hamming distance and q the maximum guaranteed correctable number of bit errors. A:p=3,q=1. B:p=3,q=2. C:p=4,q=1. D:p=4,q=2.
Your answer
Answer & solution
Official answer: A
Step through it (8 steps)
1. Hamming distance counts differing positions, obtainable by counting ones in the XOR. Against 00000 the other three words have weights 3,3,4, giving the first three distances.
2. The remaining pairs have distances d(01011,10101)=4, d(01011,11110)=3 and d(10101,11110)=3. Hence the minimum over all six pairs is p=3.
3. To correct every pattern of q errors, radius-q neighborhoods of distinct codewords must not overlap, requiring 2q<p. Thus q=floor((p-1)/2)=1. Select A. A distance-3 code can detect two errors, but guaranteed correction of two errors would require minimum distance at least 5.
A sender uses stop-and-wait ARQ with 1000-byte frames at 80 Kbps. ACKs have 100 bytes and the receiver sends them at 8 Kbps. One-way propagation is 100 ms;1 Kbps=1000 bits/s. Assuming no loss and no processing delay, find sender throughput in bytes/s.
Answer & solution
Official answer: 2500.0 : 2500.0
Our answer: 2500
Step through it (5 steps)
Data serialization takes 8000/80000=0.1s. ACK serialization takes 800/8000=0.1s, and round-trip propagation contributes 0.2s. With no specified processing delay, each stop-and-wait cycle is 0.4s and carries 1000 bytes. Throughput=1000/0.4=2500 bytes/s.
A stop-and-wait cycle includes four serial intervals: data transmission 0.1s, forward propagation 0.1s, ACK transmission 0.1s and return propagation 0.1s. The next frame cannot begin until the ACK finishes arriving. Only 1000 data bytes are useful sender throughput per cycle; adding ACK bytes to the numerator would measure a different quantity. Convert bits to bytes consistently: the data frame is 8000 bits and the ACK is 800 bits, so their unequal link rates nevertheless produce equal serialization times.
A 128×10^3 bit/s satellite link has 150 ms one-way propagation delay. Selective repeat sends 1-kilobyte frames; ACK serialization is negligible. Find minimum sequence-number bits needed for 100% utilization.
Answer & solution
Official answer: 4.0 : 4.0
Our answer: 4
Step through it (6 steps)
Using1 KiB=1024 bytes, frame serialization takes 8192/128000=0.064s. To keep the link busy for serialization plus 0.3s round-trip propagation requires W≥ceil(1+0.3/0.064)=6 frames. Selective repeat requires a sequence space of at least 2W=12, so ceil(log2 12)=4 bits. Decimal1KB gives W=ceil(1+0.3/0.0625)=6 as well, so the answer does not depend on that unit convention.
The first ACK can return only after one frame serialization plus a round trip, at 0.064+0.300=0.364 s. Six serializations span 0.384 s and avoid an idle gap; five span only 0.320 s. With m sequence bits, selective repeat requires W≤2^(m−1), so three bits allow only four outstanding frames, whereas four allow eight.
Stop-and-wait uses a 64-kilobit/s link with “20 milliseconds propagation delay.” ACK transmission and node processing are negligible. Find the minimum frame size in bytes for at least 50% utilization.
Answer & solution
Official answer: 160
Our answer: 320 bytes for one-way 20ms; official 160
For frame transmission time T and one-way propagation d, a cycle lasts T+2d: the last data bit travels outward and the ACK returns. Requiring T/(T+2d)≥1/2 gives T≥2d. At d=0.020 s this requires 0.040 s of data transmission, or 64000×0.040/8=320 bytes. The official 160 gives only 1/3 utilization under that model, but gives 1/2 if the stated 20 ms is RTT. Retain both interpretation and official scoring explicitly.
Solution: Ignoring ACK serialization, stop-and-wait utilization is T/(T+2Tp). At50%, T=2Tp. With the stated propagation delay Tp=20ms, T=40ms and frame size 64000·0.040=2560 bits=320 bytes. The official 160 bytes instead treats 20ms as the entire round-trip delay. The one-way versus round-trip interpretation changes the answer and is explicitly unresolved.
Stop-and-wait link rate 10^6 bits/s, 1000-byte data packets, negligible ACK transmission/processing, and equal forward/back propagation. Efficiency 25%. Find one-way propagation delay in ms.
Answer & solution
Official answer: 12
Step through it (3 steps)
Transmission time is 8000/106=8 ms. Efficiency 8/(8+2Tp)=1/4 gives 8+2Tp=32, hence Tp=12 ms.
Data transmission time is 1000×8/106=.008 seconds=8 ms. One complete stop-and-wait cycle is 8+2t_pms when ACK transmission and processing are negligible. Efficiency is useful transmission time divided by cycle time, so 8/(8+2t_p)=.25. Multiply through to get 8+2t_p=32 and tp=12 ms. The two propagation traversals explain why the leftover 24 msmust be halved.
Two systems are separated by 8000 km. The link rate is 500×10⁶ bits/s, propagation speed is 4×10⁶ m/s, and average packet size is 10⁷ bits. Design a Go-Back-N sliding-window protocol that fully utilizes the link, neglecting processing delays and using the standard negligible-ACK-transmission model. What minimum number of sequence-number bits is required?
Answer & solution
Official answer: 8
Step through it (6 steps)
1. Full utilization requires enough outstanding packets to bridge a packet’s serialization plus the round-trip propagation before its ACK permits reuse. A 201-packet window meets this bound; the Go-Back-N sequence space must contain at least 202 distinct sequence numbers to avoid old/new ambiguity.
2. One-way propagation=8·106/(4·106)=2s. Packet serialization=107/(500·106)=0.02s. To stay busy with negligible ACK time, window≥1+2·2/0.02=201 packets. Go-Back-N requires W≤2k−1; 27−1=127 is insufficient and 28−1=255 suffices. Thus8 bits.
Selective-repeat ARQ sends 1 KB frames over a 1.5 Mbps link with one-way latency 50 ms. For 60% link utilization, what is the minimum number of sequence-number bits?
Answer & solution
Official answer: 5
1. Method and setup. Ignoring acknowledgment transmission time, a window of W frames occupies W frame-transmission times during a cycle of one transmission plus a round-trip propagation delay. Thus utilization is min(1,W·Tframe/(Tframe+2Tprop)). First round the required window upward; then ensure the selective-repeat sequence space is at least twice that window.
2. Work through the result and its assumptions. With1KB=1024 bytes, transmission time is 8192/1.5×10⁶≈5.461ms. Required window W≥.6(1+100/5.461)≈11.586, hence W≥12. Selective repeat needs sequence space at least 2W=24, so ceil(log₂24)=5 bits. Decimal KB also gives 12 frames and 5 bits.
A bit-stuffing framing protocol uses delimiter 01111110. The stuffed payload is 01111100101. Recover its input bits. A 0111110100; B 0111110101; C 0111111101; D 0111111111.
Your answer
Answer & solution
Official answer: B
Step 1: To prevent payload data from imitating the flag, the transmitter inserts a zero after every run of five consecutive ones. The receiver removes only that inserted zero. Step 2: Parse the given output as 0,11111,0(stuffed),0101. Removing the marked zero leaves 0,11111,0101=0111110101. Step 3: That is B. The zero immediately following the inserted zero belongs to the original payload and must not also be removed.
What condition on CRC generator G(x) detects all odd-weight bit errors? A more than two terms; B G does not divide 1+x^k for any k within frame length; C 1+x divides G; D an odd number of terms.
Your answer
Answer & solution
Answer: C (no official key was published)
Over GF(2), an error polynomial E(x) with an odd number of nonzero coefficients satisfies E(1)=1. If x+1 divides G(x), every multiple of G(x) evaluates to zero at x=1. Therefore no odd-weight E(x) is divisible by G(x), and every such error has a nonzero CRC syndrome. Hence C. Option B instead addresses two-bit errors of the form xi(1+xk); merely having more than two terms is insufficient, and an odd number of terms makes G(1)=1 rather than giving the needed x+1 factor.
A polynomial has factor x+1 over GF(2) exactly when its value at 1 is 0, meaning an even number of nonzero coefficients. An odd-weight error has E(1)=1, so it cannot be a multiple of a generator that vanishes at 1. Therefore its division remainder cannot be zero, and the CRC detects it. This parity argument establishes C without enumerating error positions. The condition about 1+xk is associated with two-bit errors, not all odd-weight errors.
Using the preceding l, sender window is 2^l frames and ACKs always piggyback on return frames. After the initial full window, minimum wait before next transmission, ignoring processing? A 16; B 18; C 20; D 22 ms. Immediate equal-size return frame is the timing convention.
Your answer
Answer & solution
Answer: C (no official key was published)
From Q57 l=5, so the stated sender window is 2^5=32 frames. Sending those frames takes 32×1=32 ms. The first frame is fully received after 1+25=26 ms. With an immediately sent equal-sized return frame carrying the piggybacked acknowledgment, its serialization takes 1 ms and propagation another 25 ms, so the ACK is fully received at 52 ms. The sender thus waits 52−32=20 ms after its initial burst, option C. This is the minimum: any delay waiting for a return data frame would increase it. The question stipulates the window size; do not replace it with protocol-specific Go-Back-N or Selective-Repeat sequence-space restrictions.
The first outgoing frame finishes transmission at 1 ms and arrives fully at 26 ms. An immediately transmitted 1000-bit return frame finishes its own serialization at 27 ms and arrives fully back at 52 ms. The initial 32-frame window completes sending at 32 ms. Thus the minimum additional wait is 20 ms. Waiting for return application data would increase it, so immediate piggybacking is the minimum-time assumption, not a guaranteed real traffic pattern.
Protect message 11001001 using CRC generator x³+1. Which bit string should be transmitted? Options: (A) 11001001000 (B) 11001001011 (C) 11001010 (D) 110010010011
Your answer
Answer & solution
Answer: B (no official key was published)
Step through it (8 steps)
1. Approach. The generator degree is three, so append exactly three zero bits before polynomial division. Subtraction over GF(2) is XOR, with no borrowing. Replace the three zero placeholders by the remainder.
2. Derivation and interpretation. The generator x3+1 is binary 1001. Append three zeroes to 11001001, obtaining 11001001000. Modulo-2 division by 1001 has remainder 011. Replace the trailing zeroes by this remainder to transmit 11001001011, option B. Dividing this codeword by 1001 gives zero remainder.
Stations M,N are L kilometres apart. Frames have K bits; propagation delay is t seconds per kilometre; channel capacity is R bits/s; processing delay is negligible. What minimum sequence-number bit width is intended for maximum utilization with the stated “sliding window” protocol? ACK timing and protocol variant are not explicitly specified. Options: (A) ceil(log₂((2LtR+2K)/K)) (B) ceil(log₂(2LtR/K)) (C) ceil(log₂((2LtR+K)/K)) (D) ceil(log₂((2LtR+K)/(2K)))
Your answer
Answer & solution
Answer: A (no official key was published)
1. Approach. A frame takes K/R seconds to serialize and an ACK takes a round trip of approximately 2Lt after the frame is sent. First find the necessary window in frames, then apply the Go-Back-N sequence-space constraint; do not confuse window size with number of labels.
2. Derivation and interpretation. Let transmission time T=K/R and one-way propagation time P=Lt. With negligible ACK serialization, full utilization needs an integer window W >= ceil(1+2P/T). For Go-Back-N with an m-bit sequence field, W <= 2m-1, hence m >= ceil(log2(2+2LtR/K)); this is option A. The problem says only sliding window, not Go-Back-N, and does not state ACK timing: Selective Repeat instead needs sequence space at least 2W, while counting merely enough distinct labels without the Go-Back-N guard gives a different expression. Therefore A requires the standard Go-Back-N/negligible-ACK interpretation; the generic wording alone does not uniquely fix the answer.
A sends 32-byte packets to B with a sliding-window protocol. Round-trip delay is 80 ms and bottleneck bandwidth is 128 kbps. Which window size is optimal under the conventional bandwidth-delay-product model? Options: (A) 20 packets (B) 40 packets (C) 160 packets (D) 320 packets
Your answer
Answer & solution
Answer: B (no official key was published)
1. The bandwidth-delay product is 128000×0.080=10240 bits. A packet carries 32×8=256 bits, so 10240/256=40 packets fill the round-trip pipe (B).
2. This uses the problem's conventional bandwidth-delay-product interpretation of round-trip delay. If the given delay excludes serialization and ACK turnaround is measured from the last bit, a strict no-idle bound can require one additional packet; that convention is not represented in the options.
3. Teaching check: Convert bytes to bits and milliseconds to seconds consistently. The bandwidth-delay product measures the amount of data that must remain outstanding to keep the channel busy. Divide this bit count by packet size; do not use 32 directly as a bit count.
A sends nine immediately available packets to B using go-back-N and window size 3. Every fifth transmission attempt by A is lost, counting retransmissions; acknowledgments are never lost. Under the standard full-window go-back-N interpretation, how many packet transmissions complete delivery? Options: (A) 12 (B) 14 (C) 16 (D) 18
Your answer
Answer & solution
Answer: C (no official key was published)
Step through it (21 steps)
1. Number transmission attempts, including retransmissions. The transmitted packet labels are 1,2,3,4,5,6,7,5,6,7,8,9,7,8,9,9.
2. Attempts 5,10,15 are lost. After each loss the later in-window packets are discarded, and the sender retransmits from the missing packet.
3. All nine packets arrive in order after attempt 16 (C). This is the standard full-window, cumulative-ACK go-back-N model used by the question.
4. Teaching check: Lost attempts are numbered globally, not separately for each packet. After losing packet 5, later out-of-order packets are discarded by go-back-N even if physically received. Replaying packet labels while marking attempt numbers 5,10,15 avoids confusing packet identity with loss periodicity.
Maximum selective-repeat/reject window with n-bit sequence numbers? A 2^n; B 2^(n−1); C 2^n−1; D 2^(n−2).
Your answer
Answer & solution
Answer: B (no official key was published)
With n sequence bits there are 2n labels. To prevent a delayed old frame from being confused with a new frame after wraparound, equal sender/receiver windows must occupy at most half the label space. Hence W≤2n−1, B, under the standard selective-repeat model.
There are 2n distinct labels. In selective repeat, receivers may accept out-of-order frames, so old and new receive windows must not overlap after sequence wrap. With equal window sizes W, the standard safety condition is 2W≤2n, hence W≤2n−1. The half-space restriction distinguishes this protocol from the different Go-Back-N bound.
A sends data to B over a full-duplex link using a sliding-window protocol. Send and receive windows each hold five packets. Data packets are 1000 bytes and take 50 μs to transmit. ACKs travel only B→A and have negligible transmission time. One-way propagation is 200 μs. What is maximum achievable throughput? A. 7.69×10^6 bps B. 11.11×10^6 bps C. 12.33×10^6 bps D. 15.00×10^6 bps Both reproductions print packet size in bytes and options in bits per second.
Your answer
Answer & solution
Answer: None (no official key was published)
1. The raw link rate is 1000×8/(50×10−6)=160×106 bits/s. 2. Packet 1 finishes leaving A at 50 μs and reaches B at 250 μs. Its immediate ACK returns to A at 450 μs. Meanwhile A can send packets 1–5 during 0–250 μs and must wait before sending packet 6 at 450 μs. 3. The ACKs then space subsequent transmissions 50 μs apart, giving recurrent batches of five packets per 450 μs. Window-limited throughput=5×1000×8/(450×10−6)=88.888... Mbit/s, below the raw rate. 4. No option matches. 5000/(450 μs)=11.111... million bytes/s, numerically close to B but with the wrong unit. Accepting B would silently discard the factor eight, so the baseline unanswered status is retained.
Solution: The physical data rate is 1000×8/(50 microseconds)=160 Mbit/s. The acknowledgment for the first packet can return after one packet transmission plus two propagation delays: 50+2×200=450 microseconds. A window of five permits 5×1000×8=40000 transmitted bits during that interval, hence the achievable steady-state rate is min(160 Mbit/s,40000/450 microseconds)=88.888… Mbit/s. None of the printed options equals this. Dividing 5000 bytes by 450 microseconds gives 11.111… million bytes/s, which numerically resembles option B but is not 11.11 million bits/s. The packet size is printed in bytes and every answer is printed in bps in both sources, so B cannot be accepted without changing a unit.
Similar questions2 more → · asked again: GATE 1992, Q2(v)
Start and stop bits in serial transmission
Data Link, Framing, Error Control & ARQ
Tap to enlarge
In serial transmission, a byte is preceded by 0 and followed by one or two 1 bits. What is the purpose? (A) Synchronize the receiver for byte reception. (B) Recover lost 0s and 1s from those extra bits. (C) Use those extra bits for parity calculation. (D) None of these.
Your answer
Answer & solution
Answer: A (no official key was published)
Step 1: Explain why each byte needs a framing event.
Step 2: The receiver and transmitter need not share one continuously aligned clock. The falling transition into the start bit establishes the reference for sampling the following data bits; the stop interval checks framing and separates successive bytes. A fixed start/stop pattern cannot reconstruct arbitrary lost bits and does not calculate whether the data contains an odd or even number of ones.
Conclusion: Asynchronous reception detects the low start bit to establish the bit-sampling phase for that byte; the high stop interval returns the line to its idle condition and permits framing. These bits synchronize byte reception, A. They are not parity or recovery codes.
Does an RS232-style start bit synchronize each received byte, a whole byte sequence, provide parity, or synchronize only the last byte?
Your answer
Answer & solution
Answer: A (no official key was published)
Between asynchronous frames the line is idle. The start-bit transition tells the receiver that a new character frame has begun, allowing it to align sampling instants for that frame’s data bits. This resynchronization occurs for each byte, A. It is not a parity check and does not establish one permanent clock phase for an unlimited sequence. Strictly RS232 specifies electrical/interface aspects; the question refers to the familiar asynchronous framing used over that interface.
Find minimum Hamming distance of {000000,010101,101010,000111,011001,111111}; GateForum omits 101010.
Your answer
Answer & solution
Answer: A: 2 (no official key was published)
Hamming distance counts differing bit positions. For example 010101 and 000111 differ in exactly two positions, so the minimum is at most two. Checking the other distinct pairs finds no pair differing in one position; their distances are two, three, four or six. Hence the minimum is two. The additional the paper codeword 101010 has distances three or six to some words and does not introduce a distance-one pair.
An asynchronous start-stop link uses seven data bits, one odd-parity bit and one stop bit at 1200 bits/s. Give the complete transmitted frame for data string 0110101. State bit-order convention.
Answer & solution
Answer: As-written data order: 0|0110101|1|1 = 0011010111; LSB-first numeric order: 0|1010110|1|1 = 0101011011. (no official key was published)
The data string 0110101 contains four ones. Odd parity requires the total number of ones in the data plus parity field to be odd, so the parity bit must be 1, giving five ones. In ordinary asynchronous binary framing, the line is idle high, the start bit is 0, and the stop bit is 1. The order is start, seven data bits, parity, stop.
If the supplied string lists the data in temporal transmission order, the frame is 0 | 0110101 | 1 | 1, or 0011010111. This is the direct as-written interpretation.
UARTs conventionally transmit the least significant data bit first. If 0110101 instead denotes a seven-bit numerical value written most-significant-bit first, reverse its data order to 1010110, producing 0 | 1010110 | 1 | 1, or 0101011011. Reversal does not change parity. The question does not explicitly specify how the written string maps to bit significance, so both interpretations are identified rather than silently choosing one. Neither idle time before the start nor voltage-level inversion is an additional data bit.
A code carries four data bits and is to detect up to three bit errors and correct one. Give extra parity bits and minimum distance.
Answer & solution
Answer: 4 parity bits; minimum distance 4 for the extended Hamming code (no official key was published)
Ordinary Hamming(7, 4) uses three parity bits and has distance three, enough for single-error correction but only two-error detection as a code-distance property. Adding one overall parity bit produces extended Hamming(8, 4), with four redundancy bits and distance four. Distance d detects up to d−1 errors and corrects floor((d−1)/2), giving three and one here. These are separate guarantees: a decoder that automatically corrects a one-bit-looking syndrome can miscorrect some triple errors. Guaranteed simultaneous classification of every one-bit versus three-bit error requires a stronger distance condition than this standard detect-or-correct interpretation.
Fill in why a handshake protocol provides reliable transfer for each data item sent.
Answer & solution
Answer: The receiver acknowledges acceptance before the sender proceeds (no official key was published)
A request or data-valid signal tells the receiver that a transfer is available. The receiver responds with an acknowledgment after accepting the item, allowing the sender to withdraw it or send the next one. This coordinates devices with different or variable speeds without assuming a fixed delay is always sufficient. The basic handshake prevents loss from timing mismatch; it does not alone detect arbitrary corruption of data bits. Error-detecting codes or retransmission rules would be separate protocol features.
Similar questions2 more → · asked again: GATE 2002, Q1.11
Purpose of start and stop bits
Data Link, Framing, Error Control & ARQ
Tap to enlarge
Are start/stop bits used for error detection, correction, synchronization, or slowing communication?
Select all that apply
Answer & solution
Answer: C: synchronization (no official key was published)
In asynchronous serial communication, the start transition establishes the beginning of a character frame and lets the receiver align its sampling clock. Stop bits return the line to an idle state and separate frames. They are framing overhead rather than payload. A receiver may report a framing error when an expected stop bit is absent, but these bits are not a general error-correcting code. Slowing the payload rate is a consequence of overhead, not their purpose.