using packet reader to analyze packet