Automatic parsing of text-based application protocols using network traffic data