539 views
0 votes
0 votes
Can u plz explain For sliding window protocol,what is expression for following:

i)Window size

ii)Sequence number

iii)max efficiency

 

 

Somewhere i saw Window size= 1+ 2a [a=tp/tt]     seq no =1+2a and max eff =window size/(1+2a)   how it can be possibe ?eff will be 1.

1 Answer

1 votes
1 votes
Let me clarify you

There are three types of sliding window protocols

1.stop and wait

2.go back n

3.selective repeat

In stop and wait at sender window size is 1 and receiver window size is 1

efficiency formula = TT/TT+2PT if you divide with TT num and denominator it would be 1/1+2a (a=TP/TT)

Throughput = efficiency * bandwidth

cycle time i.e total time taken to send a packet = TT+TP(data)+TP(ACK)+TT(ACK)[It is negligible]

hence cycle time = TT+2TP

only 1 packet is transmitted onto the link and then sender waits for acknowledgement from the receiver. The problem in this setup is that efficiency is very less as we are not filling the channel with more packets after 1st packet has been put onto the link.

Let's see Go Back N: In This Sender window size is 'N'

It Sends N Packets in a cycle time hence

Efficiency = N*TT/TT+2TP i.e (N/1+2a)         N is Window size

In Go Back N sender window size is N and receiver window size = 1

hence total seq num required = N+1

bits in seq num field = ceil log base2 (N+1)

where as is selectives repeat window size at sender = N , Receiver window size =N

Hence efficiency = N/1+2a

seq num required is N+N=2N  (N is window size)

Bits in seq num field = ceil log base (2N)

No related questions found