remember id of received package. Increase received_len after receiving bytes