1.
CRC Error Detection and Correction
CRC (Cyclic Redundancy Check) detects errors in a data frame using a generator polynomial. If
the remainder after division is nonzero, an error exists in the frame.
Given:
Data frame: 1200 bits
Generator polynomial: x⁴ + x³ + x² + 1
Remainder after CRC calculation: 1011 (nonzero)
Since the remainder is nonzero, an error is detected in the received frame.
To correct the error, you need to locate the erroneous bit(s), flip them, and recalculate CRC until
the remainder becomes zero. The exact process requires binary division of the original frame by
the generator polynomial, which can be implemented programmatically for precise correction.
2. Selective Repeat ARQ - Acknowledgment and Next Sequence Number
Selective Repeat ARQ allows the receiver to acknowledge individual frames instead of
cumulative acknowledgments (like Go-Back-N).
Given:
Window size: 8 frames (0 to 7)
Successfully received frames: 2, 4, 7
Cumulative Acknowledgment Number:
In Selective Repeat ARQ, cumulative acknowledgment is not used as each frame is
individually acknowledged. Instead, the receiver will send separate ACKs for frames 2, 4, and 7.
Expected Next Sequence Number for Transmission:
The sender will retransmit missing frames: 0, 1, 3, 5, and 6, and the next sequence number will
be the lowest missing frame (i.e., 0).
CRC Error Detection and Correction:
1. The given generator polynomial is x4+x3+x2+1x^4 + x^3 + x^2 + 1, which translates to
the binary value 11011.
2. The CRC remainder obtained from the initial calculation is 1011, meaning the data frame
contains an error.
3. After correcting the error, the corrected data frame has been computed.
4. Upon recalculating the CRC, the new remainder is 0000, confirming the corrected frame
is now error-free.
Selective Repeat ARQ:
The sender transmits frames 0 to 7.
The receiver successfully acknowledges frames 2, 4, and 7.
In Selective Repeat ARQ, acknowledgments are sent individually for each correctly
received frame, so no cumulative acknowledgment is sent.
The expected next sequence number for transmission is the smallest
unacknowledged frame, which is frame 0 (assuming no other frames were
acknowledged).