



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Dr. Abrams, Computer Science Dept, VA Tech Lecture 5, Spring 1998
Me (^) You
Packet Pipe
Consider DLC & Frame Transmission (Transport Layer can also use ARQ)
Dr. Abrams, Computer Science Dept, VA Tech Lecture 5, Spring 1998
What fraction of pipe capacity is consumed by
Picture with negligible bit delay
CS/ECpE5516 Computer Architecture Dr. Abrams, Computer Science Dept, VA Tech Lecture 5, Spring 1998
1
Transmission Delay
Variable Propagation Delay
Corruption
Loss A
Re-ordering violates A
1 bit propagation delay
Look at notation used in Figure 2.17 in the text.
CS/ECpE5516 Computer Architecture Dr. Abrams, Computer Science Dept, VA Tech Lecture 5, Spring 1998
Dr. Abrams, Computer Science Dept, VA Tech Lecture 5, Spring 1998
Me Packet Pipe You
1-way traffic
(sender) (receiver)
Dr. Abrams, Computer Science Dept, VA Tech Lecture 5, Spring 1998
Stop and Wait (without sequence numbers):
CS/ECpE5516 Computer Architecture Dr. Abrams, Computer Science Dept, VA Tech Lecture 5, Spring 1998
Illustration of Time-Out
Data
Data Data
Data
Timeout Interval
Me
You
CS/ECpE5516 Computer Architecture Dr. Abrams, Computer Science Dept, VA Tech Lecture 5, Spring 1998
Problem with above algorithm:
Data
Data Data
Me
You
Is it 1 or 2?
Is it an ACK for 1 or 2? 2 could be lost, but ACK could be interpreted as for packet 2
-- SN = id of packet currently being sent -- RN = id of next packet expected
Each end point maintains SN, RN, too.
Header Data (packet)^ CRC
Type (^) SN RN --- SN = sequence number RN = request number
Dr. Abrams, Computer Science Dept, VA Tech Lecture 5, Spring 1998
fact that packet is delivered w/o corruption with probability q> Looks at SN, RN as functions of time: SN(t), RN(t)
Alternating Bit Protocol
The proof on pp. 69-71 shows that all sequence numbers can be represented using just 0 & 1, with arithmetic mod 2
(That’s because only packets SN and SN-1 can be received in duplicate. Also, if receiver’s waiting for RN, it could only get RN or RN-1.)
-- The ability to prove a bound on sequence numbers range is critical to selecting number of bits for SN, RN in frame.
Dr. Abrams, Computer Science Dept, VA Tech Lecture 5, Spring 1998
Common protocol representation (for A->B)
Can we use one picture to represent the two algorithms?
State = (Node A's SN mod 2, Node B's RN mod 2)
= (packet # being sent, packet # B is awaiting)
B receives packets 0,2,4,...
A receives ACK for packet 0,2,4,...
B receives packet 1,3,5,...
A receives ACK for packet 1,3,5,...
CS/ECpE5516 Computer Architecture Dr. Abrams, Computer Science Dept, VA Tech Lecture 5, Spring 1998
Efficiency of Stop-and-wait
In practice, stop & wait rarely used:
For efficiency, you want to keep pipe busy 100% of time in event no errors occur. Long propagation delay reduces efficiency (killer on satellite links -> 2 pkts/sec!).
Stop and Wait vs. Sliding Window
CS/ECpE5516 Computer Architecture Dr. Abrams, Computer Science Dept, VA Tech Lecture 5, Spring 1998
(BG 2.4.2) Go-back N
CS/ECpE5516 Computer Architecture Dr. Abrams, Computer Science Dept, VA Tech Lecture 5, Spring 1998
(BG) 2.4.3 Selective Repeat
-- Receiver buffers packets received out of order -- Receive window:
Received and Attached
Unreceived
Discard
-- Typically receiver window size = sender size