Say sequence # field has 5 bits.
So, I know, we have a relation
Ws+Wr <= avail seq #
So in simple SWP = 2^5 = 32 sequence number and SWS = 32 packets ( is it correct)?
in GBN = sequence number possible = 2^n-1 = 32-1 = 31 sequence # and SWS = 31 packets?
In SR, seq # = 2^n-1 = 2^4 = 16 seq # and SWS = 16
Though, in GBN we have WS+WR as N+1 <= avail seq #
and in SR we have 2N <= seq #
So, how to find the sequence # from seq # field bits?