1 / 27

Error Correction and Flow Control

Error Correction and Flow Control. Martin Weiss. Objectives of this Meeting. Describe different flow control techniques Describe the major error detection techniques. Review of the Last Meeting. Physical interfaces Topologies Asynchronous communications. Data Link Layer Issues. Type

damon
Download Presentation

Error Correction and Flow Control

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Error Correction and Flow Control Martin Weiss

  2. Objectives of this Meeting • Describe different flow control techniques • Describe the major error detection techniques

  3. Review of the Last Meeting • Physical interfaces • Topologies • Asynchronous communications

  4. Data Link Layer Issues • Type • Error detection and control • Flow control

  5. Types of DLC Protocols • Byte-oriented protocols • Bit-oriented protocols

  6. Protocol Environments • End-to-End • Local

  7. Structure of Byte-Oriented Protocols Sample Structure SYN SYN SYN SOH Header STX Message EOT SYN = Synchronization SOH = Start of Header STX = Start of Text EOT = End of Text

  8. Structure of Bit-Oriented Protocols Sample Frame Structure Preamble Flag Header Message Trailer Flag Preamble: Used for Bit Synchronization Flag: Identifies Start and End of Message Trailer: Error Checking

  9. Bit Stuffing • Example Transmission Direction Original Bit Stream 0100101111010101101110000010111110010101111110 Locations for Stuff Bits Transmitted Bit Stream 010010111101010110111000001011111000101011111010

  10. Design of Transmitter and Receiver Application Application Control Control Network Software Network Software Bit Stuffing Flag Insertion Flag Detection Bit Destuffing Transmitter Receiver

  11. Vertical and Longitudinal Redundancy Checks Bit 1 Bit 2 Bit n Parity Character 1 b11 b21 bn1 R1 Character 2 b12 b22 bn2 R2 Character m b1m b2m bnm Rm Parity C1 C2 Cn Cn+1 LRC VRC

  12. Cyclical Redundancy Check (CRC) • Based on polynomial division • Use standard divisor polynomials

  13. Standard CRC Polynomials • P is the bit pattern, or Generator Polynomial • In the previous example, P = X5 + X4 + X2 + 1 • Standard CRC generator polynomials • CRC-12 = X12 + X11 + X3 + X2 + X + 1 • CRC-16 = X16 + X15 + X2 + 1 • CRC-CCITT = X16 + X12 + X5 + 1

  14. Error Correction • Automatic Response Request (ARQ) • Forward error correction

  15. Types of ARQ • Stop-and-Wait (Idle RQ) • Sliding Window (Continuous RQ)

  16. Data 0 ACK 0 Data 1 NACK 1 Data 1 ACK 1 Data 0 Stop and Wait 1 2 3 4 5 6 7

  17. Data D 0 0 A ACK 0 0 D Data 1 1 A ACK 1 1 Stop and Wait (Long Channel) 1 2 3 4 Increasing bit rate 1 2 3 4

  18. Sliding Window • Transmitter may transmit several messages before awaiting response • The number of unacknowledged messages permitted is the Window Size

  19. Sliding Window • If an error occurs • Transmitter resends everything since the error (Go-Back-N) • Only the errored packet (Selective Retransmission)

  20. Data 0 Data 1 Data 2 ACK 2 0 Sliding Window (n>3) 0 1 2 3

  21. Data 4 Data 5 Data 6 NACK 6 1 Data 4 Data 5 Data 6 Sliding Window (Go-Back-N) 4 5 6 7 8 9 10

  22. Performance Issues • Stop and Wait • Error free • With errors

  23. Performance Issues • Sliding window (Go-Back-N)

  24. Performance Issues U 1.0 0.8 Sliding Window (N=7) Stop and Wait 0.6 P=10-3 0.4 0.2 a 0 0.1 1 10 100 1000

  25. Forward Error Correction • Encode data so that errors can be corrected • Requires redundancy in message

  26. Examples of Protocols • Byte oriented protocol • Kermit • Bisync • Bit oriented protocol: HDLC

  27. Kermit Frame Structure SOH LEN SEQ TYPE data BCC CR

More Related