摘要:
A method and apparatus for determining a network protocol type as the protocol is received on a network connection is presented. A network protocol being used on a communication link is determined by receiving N-number of data frames over the communication link, where N is a small number (e.g., 1 data frame). Error detection codes are calculated on the N-number of data frames with a selected error detection process. The calculated error detection codes are used to determine the type network protocol being used on the communication link. A protocol stack with multiple network protocol layers used on a communication link can also be determined by identifying individual protocol types in the protocol stack using error detection codes. Identifying a network protocol as it is received reduces the complexity of identifying network protocols and prevents multiple network protocol interpreters from being invoked to determine what network protocol is being used.