Wireless networks - Lecture 5: Error detecting and correcting techniques. The main topics covered in this chapter include: block codes; ARQ; hamming code; designed to correct single bit errors; single-error-correcting (SEC) code; multiple error correcting codes; reed-solomon codes;...
Trang 1Wireless Networks
Lecture 5Error Detecting and Correcting Techniques (Part II)
Dr Ghalib A Shah
Trang 3Last Lecture Review
► Single-bit parity
► 2D parity
Trang 5Example of Error Detection/Correction
Trang 7Example of Hamming Encode
Trang 10BCH Codes
For positive pair of integers m and t, a (n, k)
BCH code has parameters:
► Block length: n = 2 m – 1
► Number of check bits: n – k <= mt
► Minimum distance:dmin >= 2t + 1
Correct combinations of t or fewer errors
from the factors of (X2m-1 +1)
Trang 15Flow Control
Trang 18 Improve Stop-and-Wait by not waiting!
Keep channel busy by continuing to send frames
Allow a window of up to Ws outstanding frames
Use m-bit sequence numbering
If ACK for oldest frame arrives before window is
exhausted, we can continue transmitting
If window is exhausted, pull back and retransmit all
outstanding frames
Alternative: Use timeout
Trang 19fr 3
fr 4
fr
5 fr 6 fr 3
A C K 1
out of sequence frames
Go-Back-4: 4 frames are outstanding; so go back 4
A C K 3
A C K 4
A C K 5
A C K 6
A C K 7
A C K 8
A C K 9
Rnext 0 1 2 3 3 4 5 6 7 8 9
Trang 20Stop-and-Wait ARQ
Receiver is looking for
Rnext=0
Trang 21Go-Back-N with Timeout
► If frame is lost and source does not have frame to
send, then window will not be exhausted and recovery will not commence
► When timeout expires, resend all outstanding frames
Trang 22Receive Window
Rnext
Frames received
Receiver will only accept
a frame that is error-free and that has sequence number Rnext
un-Go-Back-N Transmitter & Receiver