packet format check