A flexible and extensible DPI framework to extract and process data and metadata from network traffic