Real-time network traffic collection and information extraction based on LIBPCAP