first implementation of network packet parsing