(1) Added field of "Protocol Type" in protocol header.  (2) Done refactoring for common protocol message processing code.