Sender doesnot need to know about it
Because Sender just sends, what it gets to receiver. Receiver buffer changes according to how much data it can accomodate.
That is why there are 3 strategy to sending data
like stop and wait GBN and selective repeat
Sequence number actually concern with it