1 / 29

DATA COMMUNICATION (ELA…)

DATA COMMUNICATION (ELA…). DATA LINK CONTROL PROTOCOLS. Introduction. Synchronization and Interfacing are insufficient due to Probability of transmission errors Need of receiver to regulate arrival rate of data Layer of logic is added Data Link Control Key mechanisms. FLOW CONTROL.

gil
Download Presentation

DATA COMMUNICATION (ELA…)

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. DATA COMMUNICATION(ELA…) DATA LINK CONTROL PROTOCOLS

  2. Introduction • Synchronization and Interfacing are insufficient due to • Probability of transmission errors • Need of receiver to regulate arrival rate of data • Layer of logic is added • Data Link Control • Key mechanisms

  3. FLOW CONTROL

  4. Flow Control Stop Begin No More data to Tx? Yes Rcv Data from Tx Clear Buffer Is there buffer capacity left? Stop Rcv’ng Data from Tx No Yes Process Data Transfer Data to next upper layer

  5. Model of Frame Transmission

  6. Flow Control • Definitions • Transmission time • Time taken to emit all bits onto the medium • Proportional to length of frame • Propagation time • Time for a bit to traverse the link • Options • Stop-and-Wait • Sliding Window

  7. Stop-and-Wait Flow Control • How does it work? • Source transmits frame • Destination receives frame and replies with acknowledgement • Source waits for ACK before sending next frame • Destination can stop flow by not sending ACK • Works well for a few large frames • Not good when fragmentation is used

  8. d/V Rd a = = = L/R VL Propagation Time Transmission Time Performance Issues Where • d Link distance (m) • V  Velocity of propagation (m/s) • L  Length of frame in bits • R  Data Rate (bps)

  9. Stop-and-Wait – Link Utilization Tx Time = 1, Propagation time = a a < 1 a > 1

  10. Sliding Window Flow Control • How does it work? • Allows multiple frames to be in transit • Receiver has buffer of length = W • Transmitter can send up to W frames without ACK • Each frame is numbered • ACK includes number of next frame expected • Sequence number bounded by size of field (k) • Frames are numbered modulo 2k

  11. Sliding Window Diagram

  12. Sliding Window Enhancements • Receiver can acknowledge frames without permitting further transmission • RNR  Receive Not Ready • Must send a normal ACK to resume • If duplex, use piggybacking • If no data to send, use ACK frame • If data but no ACK to send • Send last ACK number again, or have ACK valid flag (TCP)

  13. ERROR CONTROL

  14. Error Control • Detection and correction of errors • Lost frames • Damaged frames • Automatic Repeat Request • Error detection • Positive acknowledgment • Retransmission after timeout • Negative acknowledgement and retransmission

  15. Automatic Repeat Request (ARQ) • These techniques are all based on either Stop-and-wait or Sliding Window flow control techniques • Stop-and-wait ARQ • Go-back-N ARQ • Selective reject ARQ • Selective retransmission

  16. …. …. t<To t=To t=To t<To F(0) F(1) F(1) F(1) ACK(0) ACK(0) ACK(1) F(0) F(1) F(1) Duplicate detected/ discarded Stop-and-Wait ARQ • Basic Operation t T t R

  17. Stop-and-Wait ARQ • Pros and Cons • Simple • Inefficient • Referred to as Idle RQ

  18. Go-Back-N ARQ • Most common implementation of Sliding Window flow control • Uses window to control number of outstanding frames • If no error, ACK as usual with next frame expected • If error, reply with rejection (REJ) • Discard that frame and all future frames until error frame received correctly • Transmitter must go back and retransmit that frame and all subsequent frames

  19. Go-Back-N ARQ

  20. Selective Reject • Also called selective retransmission • Advantages • Only rejected frames are retransmitted • Subsequent frames are accepted by the receiver and buffered • Minimizes retransmission • Disadvantages • Receiver must maintain large enough buffer • More complex logic in transmitter

  21. Selective Reject ARQ

  22. PERFORMANCE ISSUES

  23. Performance Issues • Stop-and-Wait Flow Control (No Errors) • A sends a frame to B • After receiving frame, B sends and ACK to A • Process is repeatedntimes • Thus, total time to transmit n frames can be expressed as • Where • TF Time to send a frameand receive and ACK

  24. Performance Issues Where • tprop Propagation time from A to B • tframe Time to transmit a frame • tproc Processing time at each station • tack Time to transmit and ACK

  25. Performance Issues • Since a = tprop / tframe 

  26. Performance Issues • Sliding Window Flow Control (No Errors)

  27. Performance Issues • Stop-and-Wait ARQ (With Errors) • Where Nr Expected # of transmissions of a frame

  28. Performance Issues • Selective Reject ARQ (With Errors)

  29. Performance Issues • Go-back-N ARQ (With Errors)

More Related