Ch'10 Data Link Control - PowerPoint PPT Presentation

1 / 45
About This Presentation
Title:

Ch'10 Data Link Control

Description:

oversee the establishment of links and the right of a particular device to ... Max : 1/Tframe but decreased to 1/(Tframe 2* Tprop Tack) If Tproc is negligible ... – PowerPoint PPT presentation

Number of Views:41
Avg rating:3.0/5.0
Slides: 46
Provided by: cespc1K
Category:
Tags: control | data | link | max1

less

Transcript and Presenter's Notes

Title: Ch'10 Data Link Control


1
Ch.10 Data Link Control
  • Lecturer Tae-Hyong Kim (B201-4)
  • thkim_at_cespc1.kumoh.ac.kr

2
Contents
  • Introduction
  • Line Discipline
  • Flow Control
  • Error Control

3
Data Link Control
4
1. Line Discipline
  • Line discipline answers the question, who should
    send now?
  • oversee the establishment of links and the right
    of a particular device to transmit at a given
    time
  • can be done in two ways
  • Enquiry/acknowledgment
  • peer-to-peer communication
  • primary-secondary communication

5
Line Discipline (contd)
  • ENQ/ACK
  • Session can be initiated by either station on a
    link as long as both are of equal rank.
  • Ex) printer can not initiate CPU
  • Initiating device establishes the session.

6
Line Discipline (contd)
  • How it works

Negative AcK, Timeout
or NAK
?3 ENQ trials
End Of Transmission
7
Line Discipline (contd)
  • Poll/Select
  • For multipoint link
  • Primary controls the link initiator of a
    session
  • Secondaries follow instructions of primary

8
Line Discipline (contd)
  • How it works
  • polling If the primary want to receive data, it
    asks the secondaries if they have anything to
    send.
  • selecting If primary want to send data, it
    tells the target secondary to get ready to
    receive.
  • Therefore, the primary is always the initiator of
    a session.

9
Line Discipline (contd)
  • Address
  • identifies each frame
  • either to or from a specific device (secondary)
    on the link
  • address field or header in the frame
  • Primary to Secondary
  • the address indicates recipient of the data
  • Secondary to Primary
  • The address indicates originator of the data

10
Line Discipline (contd)
  • Select
  • used whenever the primary device has something to
    send(select(SEL) frame)
  • Primary tells the target secondary to get ready
    to receive.

11
Line Discipline (contd)
  • Poll
  • to solicit transmissions from the secondary
    devices
  • The secondaries are not allowed to transmit data
    unless asked

12
2. Flow Control
  • a set of procedures used to restrict the amount
    of data that the sender can send before waiting
    for acknowledgment
  • categories

13
Flow Control (contd)
  • Stop and Wait
  • Advantage simplicity
  • Disadvantage inefficiency, slow

14
Flow Control (contd)
  • Stop and Wait link Utilization

If Tproc is negligible
Max 1/Tframe but decreased to 1/(Tframe2
Tprop Tack)
15
Flow Control (contd)
  • Sliding window
  • several frames can be in transit at a time
  • Frame numbering modulo n (0, 1, , n-1)
  • Window size n-1 ? Why? For no ambiguity in the
    ACK
  • ACK includes the number of the next frame it
    expects to receive.
  • all frames up through the number-1 have been
    received

16
Flow Control (contd)
  • Sender Window
  • Receiver Window

represents the no. of frames that may be still
be received before an ACK must be sent
17
Flow Control (contd)
  • Example

18
3. Error Control
  • methods of error detection and retransmission
  • ARQ(Automatic Repeat Request)
  • means retransmission of data in three cases
  • damaged frame
  • lost frame
  • lost acknowledgment

19
Error Control (contd)
  • Categories of error control

20
Error Control (contd)
  • Stop-and-Wait ARQ
  • For retransmission to work, four features are
    added to the basic flow control mechanism.
  • sending device keeps a copy of the last frame
    transmitted for retransmission
  • data frame and ACK frame are numbered alternately
    0 and 1
  • NAK frame(not numbered) for retransmission of
    previous frame
  • timer(sending device)

21
Error Control (contd)
  • Damaged Frames

22
Error Control (contd)
  • Lost Data Frame

23
Error Control (contd)
  • Lost Acknowledgment

24
Error Control (contd)
  • Sliding Window ARQ
  • go-back-n ARQ
  • If one frame is lost or damaged, all frame sent
    since the lost frame acknowledged are
    retransmitted.
  • selective-reject ARQ
  • Only the specific damaged or lost frame is
    retransmitted.

25
Error Control (contd)
  • Three features are added to the basic flow
    control mechanism (sliding window)
  • sending device keeps copies of all transmitted
    frame until they have been acknowledged
  • ACK
  • carry the number of the next frame expected
  • NAK
  • carry the number of the damaged frame itself
  • equipped with a timer to enable it to handle lost
    acknowledgments

26
Error Control (contd)
  • go-back-n ARQ Damaged Frame

27
Error Control (contd)
  • go-back-n ARQ Lost Data Frame

28
Error Control (contd)
  • go-back-n ARQ Lost Acknowledgment

29
Error Control (contd)
  • Selective-Reject ARQ
  • Differs from a go-back-n ARQ
  • Sorting logic (in the receiving device)
  • Store frames received after a NAK has been sent
    (in the receiving device)
  • until the damaged frame has been replaced
  • Searching mechanism (in the sending device)
  • to find and select only the requested frame
  • ACK numbers, like NAK numbers,
  • must refer to the frame received (or lost)
    instead of the next frame expected
  • Recommended window size (n1)/2
  • n-1 the go-back-n window size

30
Error Control (contd)
  • Selective-Reject ARQ

Window size recommendation for selective-reject
(n1)/2
31
ARQ Performance
  • Sliding Window Protocol
  • Stop and Wait ARQ

32
ARQ Performance
  • Go-back-N ARQ
  • Selective-Repeat ARQ

33
ARQ Performance
  • Error-free Stop-and-wait

34
ARQ Performance
  • Stop-and-wait ARQ with error

35
ARQ Performance
  • Stop-and-wait ARQ with error

36
ARQ Performance
  • The parameter a

Transmission time is normalized to 1
37
ARQ Performance
  • Find a and normalized throughput
  • Ex1) consider a WAN using ATM with optical fiber,
    with the two stations 1000km apart, R155.52Mbps.
  • Sol)
  • Transmission Time
  • (538)/(155.52106)2.710-6 s
  • Propagation time
  • (106m)/(3108m/s)0.3310-2 s
  • a Prop./Trans. 0.3310-2 / 2.710-6 1222
  • Normalized throughput 1 /(12a)0.0004

38
ARQ Performance
39
ARQ Performance
  • Performance of stop-and-wait protocol(P10-3)

40
ARQ Performance Sliding-window ARQ
41
ARQ Performance Sliding-window ARQ
  • W2n-1
  • W1 stop and wait
  • W7 many case
  • W127 high speed WANs

42
ARQ Performance Sliding-window ARQ
  • Selective-reject ARQ

43
ARQ Performance Sliding-window ARQ
  • Go-back-N ARQ

44
ARQ Performance Sliding-window ARQ
45
ARQ Performance Sliding-window ARQ
Write a Comment
User Comments (0)
About PowerShow.com