Download presentation
Presentation is loading. Please wait.
1
Protocols
2
Basics
4
Defining Interactions VERTICAL Application Presentation Session Transport Network Data Link Physical Please do this for me OK It’s Done or Sorry I couldn’t
5
Horizontal Interactions Application Presentation Session Transport Network Data Link Physical Application Presentation Session Transport Network Data Link Physical http request http response Route to 137.155.2.1? Send to 137.155.38.4
6
Problems Solved by Link Layer Protocols Error CORRECTION SenderReceiver Flow Control Speed it Up!
7
Transmitting large files rather than short messages What kinds of problems ensue?
8
Sending a big file SenderReceiver
9
Some pieces are lost SenderReceiver
10
Some pieces are routed differently SenderReceiver
11
Some pieces are damaged SenderReceiver
12
Receiver is busy and misses 2 or misses data because arriving too fast SenderReceiver 321 1 3
13
Basic Interaction Simplest strategy SenderReceiver Message 1 SenderReceiver ACK SenderReceiver Message 2 etc
14
But things go wrong As we mentioned previously
15
SenderReceiver abcdefghijklmnopBill Where is the error? SenderReceiver abcdefghijklmnopBill data corrupted SenderReceiver abcdefghijklmnopBill address corrupted
16
Whether Lost or Damaged It all looks the same to the sender! Damaged messages are discarded because you can’t be sure the message is even intended for the receiver
17
General Problems Message is lost Acknowledgement is lost
18
Message is lost SenderReceiver
19
Using timers for the messages SenderReceiver time Sender
20
Problems now created Multiple copies of the message exist How do I set the timers?
21
Application Presentation Session Transport Network Data Link Physical Application Presentation Session Transport Network Data Link Physical Network layer passes message To Data Link for transmission
22
Application Presentation Session Transport Network Data Link Physical 21 Application Presentation Session Transport Network Data Link Physical 1 Data Link layer passes First part of message To Physical layer for transmission
23
Application Presentation Session Transport Network Data Link Physical 21 Application Presentation Session Transport Network Data Link Physical 1 1 Physical Layer sends across the network
24
Application Presentation Session Transport Network Data Link Physical 21 Application Presentation Session Transport Network Data Link Physical 1 1 1 Ack Receiver accepts, passes up to data link, data link sends ACK ACK is lost
25
Application Presentation Session Transport Network Data Link Physical 21 Application Presentation Session Transport Network Data Link Physical 1 1 1 Ack Sender resends message 1
26
Application Presentation Session Transport Network Data Link Physical 21 Application Presentation Session Transport Network Data Link Physical 1 1 1 Ack Receiver gets message 1 Recognizes it already has 1 Re ACKS Ack
27
If ACK lost Message only delivered once ACK was retransmitted and eventually sender get ACK Sender moves on to part 2 of the message
28
Review Message Lost Sender Receiver 1 1 Ack ACK Lost Sender Receiver
29
Application Presentation Session Transport Network Data Link Physical 2 Application Presentation Session Transport Network Data Link Physical 2 Sender passes Message 2 to Physical Layer to xmit 1
30
Application Presentation Session Transport Network Data Link Physical 2 Application Presentation Session Transport Network Data Link Physical 2 2 2 Receiver gets message 2 ACKS and passes message 2 Up to data link at receiver Ack 1
31
Application Presentation Session Transport Network Data Link Physical Application Presentation Session Transport Network Data Link Physical 2 Upon receiving ACK Sender discard at link layer Assuming xmit complete 1
32
Application Presentation Session Transport Network Data Link Physical Application Presentation Session Transport Network Data Link Physical 2 Receiver passes message 2 up to network layer 1 XMIT of network PDU complete!
33
Please do this for me Sorry I couldn’t Sends message “n” times but always fails. How many times is it repeated? Horizontal and Vertical Interaction Network Data Link SenderReceiver
34
Timers How are they set?
35
Timer Tradeoff Set the alarm time too large –Sender sits around waiting needlessly –Increased delay Set the alarm time too small –Sender repeats transmission unnecessarily –Additional unnecessary network traffic is generated –Unnecessary traffic -> Increased delay
36
Timer will never be perfect This is a queueing system The time it should take for the receiver to respond is defined by a probability distribution Unpredictable loads –Network traffic –Other receiver cpu loads –Local NIC card
37
Are there other approaches to retransmission/error correction? Yes!
38
Correction 3 basic ARQ (Automatic Repeat Request) approaches Idle RQ Go-back-N Selective Repeat
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.