Docsity

Stop and Wait Protocol: Frame Transmission and Throughput, Slides of Computer Networks

Partial preview of the text

Download Stop and Wait Protocol: Frame Transmission and Throughput and more Slides Computer Networks in PDF only on Docsity!

Stop and Wait Protocol

• Frame number to be included •

What is the minimum of bits required?

ambiguity between m and m+1^ – 1 bit sequence number

sender: knows which frame to send next

Stop and Wait Protocol

receiver: knows which frame to expect next

counters: incremented modulo 2

• Sending process: •

if event = DLL Send then

  • increment next FrameNo modulo 2

Stop and Wait: Timing diagram

Time Out

A B

ThroughPut

Error Free Case: Throughput is :

f t

T

T

U

  • Time take to transmit a frame

f

T

t

T

  • Total time engaged in the transmission of a frame

prop

proc

ack

prop

f

t

T T T T T T

Errors in transmission

Let

r

N

= E [number of retransmissions]

t

r

f T

N

T

U

Stop and Wait: Analysis

prop

T

ack

T

proc

T

proc

ack

T

T

-- is propagation delay -- time take for acknowledgement -- time taken for processing at the receiver

If

are negligible then

p

f

T

T

a

a

U

Error Analysis

F

p

P

a frame

of bits in

he number

Let F be t

n error

a bit is i

lity that

he probabi

Let p be t