check received packet size