Highspeed Networks Chapter 11 Linklevel Flow and Error Control 2003' 04' 24 - PowerPoint PPT Presentation

1 / 30
About This Presentation
Title:

Highspeed Networks Chapter 11 Linklevel Flow and Error Control 2003' 04' 24

Description:

If an error is detected, discards the frame. Source waits for an ACK. ... Destination discards that frame and all future incoming frames. ... – PowerPoint PPT presentation

Number of Views:153
Avg rating:3.0/5.0
Slides: 31
Provided by: cslChan
Category:

less

Transcript and Presenter's Notes

Title: Highspeed Networks Chapter 11 Linklevel Flow and Error Control 2003' 04' 24


1
High-speed NetworksChapter 11Link-level Flow
and Error Control2003. 04. 24???
2
Introduction
  • The need for flow and error control
  • Link control mechanisms
  • Performance of ARQ(Automatic Repeat Request)

3
1.1 The need for flow and error control
  • Flow control
  • A protocol mechanism that enables a destination
    entity to regulate the flow of PDUs sent by a
    source entity.
  • Flow control limit the amount or rate of data.
  • Source may send PDUS faster than destination can
    process headers.
  • Higher-level protocol user at destination may be
    slow in retrieving data.
  • Destination may limit the incoming flow to match
    the outgoing flow.

4
  • Flow control scope

5
  • Error Control
  • Used to recover from the loss or damage of PDUs
    in transit between source and destination.
  • Involves error detection based on FCS, and PDU
    retransmission.
  • Error control flow control
  • Implemented together in a single mechanism.

6
9.2 Link control mechanisms
  • Flow and error control at the link level
  • Stop and wait
  • Go-back-N
  • Selective reject

7
Stop and Wait
  • Source transmits frame
  • After rectption, destination indicates
  • willingness to accept another frame
  • in acknowledgement
  • Source must wait for acknowledgement
  • before sending another frame

8
Stop and Wait
  • 2 kinds of errors.
  • Dameged frame at destination at destination.
  • Receiver detects an error with FCS.
  • If an error is detected, discards the frame.
  • Source waits for an ACK.
  • If no ACK is received by the time that the timer
    expires,
  • then, the same packet is sent again.
  • Damaged acknowledgment at source.
  • ACK is damaged, and is not recognizable by A
    (sender).
  • Therefore time out and resend the same frame.
  • Discards duplicate frame

9
(No Transcript)
10
Stop and Wait
  • Rarely used because of its inefficiency.

11
Stop and Wait
  • The line is underutilized.
  • A (sender) would be capable of sending frames at
    a rate of 1/Tframe.
  • The maximum transmission rate is reduced to
  • If , substantial
    reduction in potential throughput.

12
Sliding-window techniques
  • Allowing multiple frames to be in transit at the
    same time.
  • Source can send n frames without waiting for
    acknowledgements
  • Destination can accept n frames
  • Destination acknowledges a frame by sending
    acknowledges with sequence number of next frame
    expected (and implicitly ready for next n frames)

13
(No Transcript)
14
(No Transcript)
15
Sliding-window (Go-back-N ARQ)
  • Go-back-N ARQ
  • Most commonly used protocol.
  • If destination detects an error, sends a negative
    ack. (REJreject) for that frame.
  • Destination discards that frame and all future
    incoming frames.
  • Until the frame in error is correctly received.
  • The source, when it receives a REJ, retransmits
    the frame in error plus all succeeding frames.

16
Sliding-window (selective-reject ARQ)
  • The only frames retransmitted are those that
    receive a negative ack.
  • More efficient than go-back-N.
  • Receiver maintains a large buffer.
  • To save post-SREJ frames.
  • Reinserting that frame in the proper sequence.
  • Transmitter also requires more complex logic.

17
9.3 ARQ Performance
Stop-and-wait ARQ
  • Error-free Stop-and-wait
  • The maximum rate frames can be transmitted over a
    line.
  • Total time to send the data nT

A sends f1. B send an acknowledgment. A sends
f2. B send an acknowledgment. A
sends fn. B send an acknowledgment.
18
Error-free Stop-and-wait ARQ
  • Assume
  • Processing time is negligible.
  • Acknowledgment frame is very small.
  • Fixed frame size (L)
  • Link capacity R

19
Stop-and-wait ARQ with Errors
  • A frame is lost or its ACK is lost.

20
  • Nx can be derived.
  • P probability that a single frame is in error.
  • Assume ACKs are never in error.

21
  • The parameter a
  • d distance of the link between two station
  • V velocity of propagation of the signal along
    the link.
  • L length of a link control frame in bits.
  • R data rate on the link.

22
(No Transcript)
23
(No Transcript)
24
Sliding-window ARQ (Error-free)
  • Throughput depends on window size W and the value
    of a.
  • Transmission time is normalized to 1.

25
(No Transcript)
26
(No Transcript)
27
Selective-reject (with Error)
  • Use the result of stop-and-wait ARQ.
  • Throughput of selective-reject protocol.

28
Go-back-N ARQ (with Error)
  • Use the result of stop-and-wait ARQ.
  • Nx calculation

29
(No Transcript)
30
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com