Download presentation
Presentation is loading. Please wait.
Published byFerdinand Fowler Modified over 9 years ago
1
I N THE N AME OF G OD C OMPUTER N ETWORKS C HAPTER 3: T HE D ATA L INK L AYER ( PART 3) Dr. Shahriar Bijani Shahed University March 2014
2
References: Computer Networks A. S. Tanenbaum and D. J. Wetherall, Computer Networks (5th Edition), Pearson Education, the book slides, 2011. Chapter 6, Data Communications and Computer Networks: A Business User's Approach, 6th Edition B. A. Forouzan, Data Communications and Networking, 5th Edition, Behrouz A. Forouzan, McGraw Hill, lecture slides, 2012. Mc Graw Hill, Data Link Layer, 2004. 2
3
D ATA L INK P ROTOCOLS Elementary Data Link Protocols Utopian Simplex Protocol Simplex Stop-and-Wait Protocol Error-Free Channel Simplex Stop-and-Wait Protocol Noisy Channel Sliding Window Protocols 3
4
E LEMENTARY D ATA L INK P ROTOCOLS Implementation of the physical, data link, and network layers. 4
5
E LEMENTARY D ATA L INK P ROTOCOLS Some definitions needed in the protocols to follow. These definitions are located in the file protocol.h.... 5
6
E LEMENTARY D ATA L INK P ROTOCOLS Some definitions needed in the protocols to follow. These definitions are located in the file protocol.h.... 6
7
E LEMENTARY D ATA L INK P ROTOCOLS Some definitions needed in the protocols to follow. These definitions are located in the file protocol.h. 7
8
U TOPIAN S IMPLEX P ROTOCOL (1) A utopian simplex protocol.... 8
9
U TOPIAN S IMPLEX P ROTOCOL (2) A utopian simplex protocol. 9
10
10 SenderReceiver Frame ACK Timeout Frame Timeout Frame S TOP AND W AIT Simplest form of reliability Example: Bluetooth Problems? Utilization Can only have one frame in flight at any time
11
S IMPLEX S TOP - AND -W AIT P ROTOCOL FOR A N OISY C HANNEL (1) A simplex stop-and-wait protocol.... 11
12
S IMPLEX S TOP - AND -W AIT P ROTOCOL FOR A N OISY C HANNEL (2) 12 A simplex stop-and-wait protocol.
13
ARQ (Automatic Repeat reQuest) or PAR (Positive Acknowledgement with Retransmission): Protocols in which the sender waits for a positive acknowledgement before advancing to the next data 13
14
S LIDING W INDOW P ROTOCOLS 14 Allow multiple outstanding, un-ACKed frames Number of un-ACKed frames is called the window Made famous by TCP Sender Receiver Frames ACKs Window
15
S LIDING W INDOW P ROTOCOLS (1) A positive acknowledgement, unidirectional with retransmission protocol.... 15
16
S LIDING W INDOW P ROTOCOLS (2) A positive acknowledgement with retransmission protocol.... 16
17
S LIDING W INDOW P ROTOCOLS (3) A positive acknowledgement with retransmission protocol. 17
18
S LIDING W INDOW P ROTOCOLS (4) A sliding window of size 1, with a 3-bit sequence number. (a) Initially. (b) After the first frame has been sent. 18
19
S LIDING W INDOW P ROTOCOLS (5) A sliding window of size 1, with a 3-bit sequence number (c) After the first frame has been received. (d) After the first acknowledgement has been received. 19
20
O NE -B IT S LIDING W INDOW P ROTOCOL (1) A bidirectional 1-bit sliding window protocol.... 20
21
O NE -B IT S LIDING W INDOW P ROTOCOL (2)... 21 A bidirectional 1-bit sliding window protocol.
22
O NE -B IT S LIDING W INDOW P ROTOCOL (3) 22 A bidirectional 1-bit sliding window protocol.
23
O NE -B IT S LIDING W INDOW P ROTOCOL (4) Two scenarios for protocol 4. (a) Normal case. (b) Abnormal case. The notation is (seq, ack, packet number). An asterisk (*) indicates where a network layer accepts a packet 23
24
P ROTOCOL U SING G O -B ACK -N (1) Pipelining and error recovery. Effect of an error when (a) receiver’s window size is 1 24 Go-back-N
25
P ROTOCOL U SING G O -B ACK -N (2) Pipelining and error recovery. Effect of an error when (b) receiver’s window size is large. 25 Selective-repeat
26
P ROTOCOL U SING G O -B ACK -N (3) A sliding window protocol using go-back-n.... 26
27
P ROTOCOL U SING G O -B ACK -N (4) A sliding window protocol using go-back-n.... 27
28
P ROTOCOL U SING G O -B ACK -N (5) A sliding window protocol using go-back-n.... 28
29
P ROTOCOL U SING G O -B ACK -N (6) A sliding window protocol using go-back-n.... 29
30
P ROTOCOL U SING G O -B ACK -N (7) A sliding window protocol using go-back-n.... 30
31
P ROTOCOL U SING G O -B ACK -N (8) A sliding window protocol using go-back-n.... 31
32
P ROTOCOL U SING G O -B ACK -N (9) A sliding window protocol using go-back-n. 32
33
P ROTOCOL U SING G O -B ACK -N (10) Simulation of multiple timers in software. (a) The queued timeouts (b) The situation after the first timeout has expired. 33
34
P ROTOCOL U SING G O -B ACK -N (11) Send window for Go-Back-N ARQ 34
35
P ROTOCOL U SING G O -B ACK -N (12) Receive window for Go-Back-N ARQ 35
36
P ROTOCOL U SING G O -B ACK -N (13) A Design of Go-Back-N ARQ 36
37
P ROTOCOL U SING S ELECTIVE R EPEAT (1) A sliding window protocol using selective repeat.... 37
38
P ROTOCOL U SING S ELECTIVE R EPEAT (2) A sliding window protocol using selective repeat.... 38
39
P ROTOCOL U SING S ELECTIVE R EPEAT (3) A sliding window protocol using selective repeat.... 39
40
P ROTOCOL U SING S ELECTIVE R EPEAT (4) A sliding window protocol using selective repeat.... 40
41
P ROTOCOL U SING S ELECTIVE R EPEAT (5) A sliding window protocol using selective repeat.... 41
42
P ROTOCOL U SING S ELECTIVE R EPEAT (6) A sliding window protocol using selective repeat.... 42
43
P ROTOCOL U SING S ELECTIVE R EPEAT (7) A sliding window protocol using selective repeat.... 43
44
P ROTOCOL U SING S ELECTIVE R EPEAT (8) A sliding window protocol using selective repeat.... 44
45
P ROTOCOL U SING S ELECTIVE R EPEAT (9) A sliding window protocol using selective repeat. 45
46
P ROTOCOL U SING S ELECTIVE R EPEAT (10) Send window for Selective Repeat ARQ (above) Receive window for Selective Repeat ARQ (bellow) 46
47
P ROTOCOL U SING S ELECTIVE R EPEAT (11) a) Initial situation with a window of size7 b) After 7 frames sent and received but not acknowledged. c) Initial situation with a window size of 4. d) After 4 frames sent and received but not acknowledged. 47
48
E XAMPLE D ATA L INK P ROTOCOLS 1. Packet over SONET 2. ADSL (Asymmetric Digital Subscriber Loop) 48
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.