Research and Implementation of Protocol Recognition Based on Regular Expressions