1. A packet processing method, comprising: acquiring a first protocol identifier of a first to-be-processed packet; acquiring, from a rule profile repository, first protocol rule profile information that corresponds to the first protocol identifier, wherein the rule profile repository stores protocol rule profile information of at least one protocol, protocol rule profile information of each protocol in the at least one protocol is associated with a protocol identifier of the protocol, the protocol rule profile information of the protocol is used to describe a method and a parameter for processing a packet, and the packet meets a standard stipulated by the protocol; processing the first to-be-processed packet according to the first protocol rule profile information; and wherein acquiring the first protocol identifier of a first to-be-processed packet comprises: reading the first to-be-processed packet according to a read location of a protocol identifier and that is described in protocol rule profile information, which is in the rule profile repository, of a protocol in the at least one protocol, and when a read result from the read location of the first to-be-processed packet matches a parameter that is described in the protocol rule profile information, determining the first protocol identifier of the first to-be-processed packet, or reading the first to-be-processed packet from a preset location of the first to-be-processed packet, and when a read result from the preset location of the first to-be-processed packet matches a parameter that is described in the protocol rule profile information, determining the first protocol identifier of the first to-be-processed packet.