check received sequence number for gaps and duplicates