Packet feature extraction