thread to classify the packet(mex and envent)