I'm trying to establish a one-way communication and facing problem in the receiver end because of some missing bits. For example, if the sender sends 100 bits the receiver received 95/96 bit. Now the position of these missing bits in the received bitstream is non-deterministic. Sometimes bit get missing at the beginning (for example after 50 bits), sometimes at the middle or sometimes at the end. Basically,
My received bitstream length is less than the sending bitstream length.
Is there any way I can detect, at which position these bits get missing?