Consider the sliding window flow-control protocol operating between a sender and a receiver over a full-duplex error-free link. Assume the following:
The minimum value of the sender’s window size in terms of the number of frames (rounded to the nearest integer) needed to achieve a link utilization of 50% is .
Step 1: Compute transmission times.
Data frame size \( = 2000 \) bits, link rate \( = 1 \) Mbps.
\[
T_f = \frac{2000}{10^6} = 0.002 \text{ s}
\]
Acknowledgement frame size \( = 10 \) bits:
\[
T_a = \frac{10}{10^6} = 0.00001 \text{ s}
\]
Step 2: Compute propagation delay.
One-way propagation delay \( = 100 \) ms \( = 0.1 \) s.
Round-trip propagation delay:
\[
2T_p = 0.2 \text{ s}
\]
Step 3: Compute utilization formula.
For sliding window protocol, utilization is given by:
\[
U = \frac{W \times T_f}{T_f + 2T_p}
\]
Step 4: Substitute values for 50% utilization.
\[
0.5 = \frac{W \times 0.002}{0.002 + 0.2}
\]
Step 5: Solve for \( W \).
\[
W = \frac{0.5 \times 0.202}{0.002} = 50.5
\]
Step 6: Round to nearest integer.
\[
W \approx 52
\]
% Final Answer
Final Answer: \[ \boxed{52} \]
In a 4-bit ripple counter, if the period of the waveform at the last flip-flop is 64 microseconds, then the frequency of the ripple counter in kHz is ______________. {(Answer in integer)}
Consider the following C code segment:
int x = 126, y = 105;
do {
if (x > y)
x = x - y;
else
y = y - x;
} while (x != y);
printf("%d", x);
The output of the given C code segment is ____________. (Answer in integer)
The following two signed 2’s complement numbers (multiplicand \( M \) and multiplier \( Q \)) are being multiplied using Booth’s algorithm:
| Multiplicand (\( M \)) | Multiplier (\( Q \)) |
|---|---|
| 1100 1101 1110 1101 | 1010 0100 1010 1010 |
The total number of addition and subtraction operations to be performed is __________. (Answer in integer)
The maximum value of \(x\) such that the edge between the nodes B and C is included in every minimum spanning tree of the given graph is __________ (answer in integer).
Consider the following C program
The value printed by the given C program is __________ (Answer in integer).