Message processing method and device, electronic equipment and computer readable storage medium

By introducing fast path nodes into the VPP protocol device, determining the processing mode based on message information and using historical processing parameters for rapid processing, the problem of low message throughput performance in VPP is solved, and efficient message forwarding is achieved.

CN119155239APending Publication Date: 2024-12-17CETC CYBERSPACE SECURITY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411346565.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2024-12-17

AI Technical Summary

Technical Problem

The excessive node flow of data packets in VPP during processing leads to reduced message throughput performance and severe forwarding delay.

Method used

Introduce fast path nodes and ordinary path nodes in the VPP protocol device, and determine the processing mode based on the target message information. If it is a fast processing mode, use historical processing parameters to perform rapid processing. If it is a normal processing mode, it is processed through ordinary path nodes. Reduce node flow.

Benefits of technology

It improves the efficiency of message forwarding and significantly improves the message throughput performance in VPP.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119155239A_ABST
    Figure CN119155239A_ABST
Patent Text Reader

Abstract

The invention discloses a message processing method, which is applied to VPP protocol equipment, the VPP protocol equipment comprises a fast path node and a common path node, and the method comprises the following steps: when a target message is received, extracting target message information from the target message; determining a processing mode of the target message according to the target message information; if the processing mode is a fast processing mode, sending the target message to a fast path node, so that the fast path node calls a historical processing parameter corresponding to the target message from a historical message record, and processes the target message by using the historical processing parameter; and if the processing mode is a common processing mode, sending the target message to a common path node, so that the common path node processes the target message. According to the scheme, rapid and efficient message forwarding processing can be realized, and the message throughput performance in the VPP is ensured. The invention further provides a message processing device, electronic equipment and a computer readable storage medium which all have the above technical effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network transmission technology, and in particular to a message processing method, and also to a message processing device, an electronic device, and a computer-readable storage medium. Background Art

[0002] VPP (Vector Package Process) is a user-mode protocol stack, usually combined with DPDK (Data Plane Development Kit) to achieve fast data forwarding. VPP uses CPU resources, instruction acceleration, batch processing, resource prefetching, function nodeization, plug-inization and other technologies. It has the characteristics of high performance, rich functions, modularity, flexibility, and scalability. It has been widely used in various network forwarding devices.

[0003] At present, the data message processing flow in VPP is divided into multiple stages, each stage only performs a part of the processing, and the message processing is completed after all the stages are processed. A stage is called a node, that is, a message will be processed by a series of nodes after it is received from a certain interface, and then sent out from a certain port. However, VPP has been in a batch message processing state since the packet is received. After a node processes all the messages, it will enter the next node for processing. The next node will process all the messages in this batch until all the nodes in this batch of messages are processed. Data messages have too much node flow overhead in VPP, resulting in reduced message throughput performance and serious message forwarding delay.

[0004] Therefore, how to achieve fast and efficient message forwarding processing and ensure message throughput performance in VPP is an urgent problem to be solved by those skilled in the art. Summary of the invention

[0005] The purpose of the present application is to provide a message processing method, which can realize fast and efficient message forwarding processing and ensure the message throughput performance in the VPP; another purpose of the present application is to provide a message processing device, an electronic device and a computer-readable storage medium, all of which have the above-mentioned beneficial effects.

[0006] In a first aspect, the present application discloses a message processing method, which is applied to a VPP protocol device, wherein the VPP protocol device includes a fast path node and a normal path node, and the method includes:

[0007] When receiving a target message, extracting target message information from the target message;

[0008] Determining a processing mode of the target message according to the target message information;

[0009] If the processing mode is a fast processing mode, the target message is sent to a fast path node, so that the fast path node retrieves the historical processing parameters corresponding to the target message in the historical message record, and processes the target message using the historical processing parameters;

[0010] If the processing mode is a normal processing mode, the target message is sent to a normal path node so that the normal path node processes the target message.

[0011] Optionally, determining a processing mode of the target message according to the target message information includes:

[0012] Determine whether the target message information hits the historical message record;

[0013] If the target message information hits the historical message record, determining that the processing mode of the target message is the fast processing mode;

[0014] If the target message information does not hit the historical message record, it is determined that the processing mode of the target message is the common processing mode.

[0015] Optionally, if the processing mode is a normal processing mode, the method further includes:

[0016] extracting a target processing parameter of the target message through the common path node in the process of processing the target message;

[0017] The target processing parameters and the target message information are stored in the historical message record in correspondence.

[0018] Optionally, the processing the target message by using the historical processing parameter includes:

[0019] Performing encryption and decryption processing on the target message to obtain an encrypted message or a decrypted message;

[0020] The encrypted message or the decrypted message is repackaged using the historical processing parameters to obtain a first repackaged message.

[0021] Optionally, sending the target message to a common path node so that the common path node processes the target message includes:

[0022] Sending the target message to a common path node so that the common path node determines a transmission mode of the target message;

[0023] If the transmission mode is an encryption / decryption mode, the target message is sequentially encrypted / decrypted and repackaged to obtain a second repackaged message;

[0024] If the transmission mode is not the encryption / decryption mode, the target message is repackaged to obtain a third repackaged message.

[0025] Optionally, extracting target message information from the target message includes:

[0026] Extract quintuple information from the target message as the target message information.

[0027] Optionally, the historical processing parameters include one or more combinations of IPSEC tunnel information, message policy information, output Ethernet header information, and output interface number information.

[0028] In a second aspect, the present application also discloses a message processing device

[0029] In a third aspect, the present application further discloses an electronic device, comprising:

[0030] Memory for storing computer programs;

[0031] A processor is used to implement the steps of any one of the message processing methods described above when executing the computer program.

[0032] In a fourth aspect, the present application further discloses a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the message processing methods described above are implemented.

[0033] The present application provides a message processing method, which is applied to a VPP protocol device, wherein the VPP protocol device includes a fast path node and a normal path node, and the method includes: when a target message is received, extracting target message information from the target message; determining a processing mode of the target message according to the target message information; if the processing mode is a fast processing mode, sending the target message to the fast path node, so that the fast path node retrieves a historical processing parameter corresponding to the target message in a historical message record, and processes the target message using the historical processing parameter; if the processing mode is a normal processing mode, sending the target message to the normal path node, so that the normal path node processes the target message.

[0034] By applying the technical solution provided by this application, a fast path node is added to the VPP protocol device to realize the fast processing of data messages. After receiving the target message, its processing mode can be determined according to its target message information. In the fast processing mode, the fast path node can be used to retrieve the historical processing parameters corresponding to the target message in the historical message record, and process it quickly without entering each ordinary path node for sequential flow processing; in the ordinary processing mode, each ordinary path node can be used for processing. It can be seen that this technical solution realizes fast and efficient message forwarding processing by adding a fast path node to the VPP protocol device, effectively ensuring the message throughput performance of the VPP protocol device.

[0035] The message processing device, electronic device and computer-readable storage medium provided in this application also have the above-mentioned technical effects, which will not be described in detail in this application. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the prior art and the embodiments of the present application, the drawings required for use in the description of the prior art and the embodiments of the present application are briefly introduced below. Of course, the drawings described below in relation to the embodiments of the present application are only part of the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without creative work, and the obtained other drawings also belong to the protection scope of the present application.

[0037] FIG1 is a flow chart of a message processing method provided by the present application;

[0038] FIG2 is a schematic diagram of a fast path implementation provided by the present application;

[0039] Figure 3 A flowchart of another message processing method provided by this application;

[0040] FIG4 is a schematic diagram of the structure of a message processing device provided by the present application;

[0041] FIG5 is a schematic diagram of the structure of an electronic device provided in the present application. DETAILED DESCRIPTION

[0042] The core of the present application is to provide a message processing method, which can realize fast and efficient message forwarding processing and ensure the message throughput performance in the VPP; another core of the present application is to provide a message processing device, an electronic device and a computer-readable storage medium, all of which have the above-mentioned beneficial effects.

[0043] In order to describe the technical solutions in the embodiments of the present application more clearly and completely, the technical solutions in the embodiments of the present application will be introduced below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0044] An embodiment of the present application provides a message processing method.

[0045] Please refer to Figure 1, which is a flow chart of a message processing method provided by the present application. The message processing method is applied to a VPP protocol device, and the VPP protocol device includes a fast path node and a normal path node. The message processing method may include the following S101 to S104.

[0046] S101: When a target message is received, target message information is extracted from the target message.

[0047] First of all, it should be noted that the message processing method provided in the embodiment of the present application is applied to a VPP protocol device, that is, a computer device / network device that uses the VPP protocol for message processing, which may include fast path nodes and ordinary path nodes, wherein the fast path node is used to realize fast processing of data messages, and the number thereof may be 1, and the ordinary path node is used to realize ordinary processing of data messages, and the number thereof is generally multiple.

[0048] Further, this step is intended to achieve the reception of the target message and the extraction of its target message information, wherein the target message is the message to be processed. For the VPP protocol device, after receiving the target message, it can extract information from it and obtain relevant message information, namely the above-mentioned target message information, which is used to determine the target message processing mode. Here, the processing mode of the target message refers to the fast processing mode and the normal processing mode. The fast processing mode is to quickly process the target message, and the normal processing mode is to normally process the target message. Obviously, the fast processing mode has a higher message processing efficiency than the normal processing mode. Of course, the specific content of the target message information does not affect the implementation of the present technical solution, and can be set by technical personnel according to actual conditions, and the determination of the target message processing mode can be achieved. This application does not limit this.

[0049] In one embodiment of the present application, the extracting the target message information from the target message may include: extracting quintuple information from the target message as the target message information.

[0050] An embodiment of the present application provides specific target message information, namely, five-tuple information, which mainly includes a source IP address (the IP address of the source device that initiates the target message), a destination IP address (the IP address of the destination device that receives the target message), a source port number (the port number of the source device that initiates the target message), a destination port number (the port number of the destination device that receives the target message), and a transmission protocol (the data protocol required to forward the target message).

[0051] S102: Determine a processing mode of the target message according to the target message information.

[0052] As mentioned above, the target message information is used to determine the target message processing mode. Therefore, this step aims to determine the processing mode of the target message. After extracting the target message information of the target message, the processing mode can be determined according to the target message information, which may be a fast processing mode or a normal processing mode.

[0053] In one embodiment of the present application, the above-mentioned determining the processing mode of the target message according to the target message information may include:

[0054] Determine whether the target message information hits the historical message record;

[0055] If the target message information hits the historical message record, the processing mode of the target message is determined to be the fast processing mode;

[0056] If the target message information does not hit the historical message record, it is determined that the processing mode of the target message is a normal processing mode.

[0057] The embodiment of the present application provides an implementation method for determining a target message processing mode according to target message information, that is, the processing mode can be determined by judging whether the target message information of the target message hits the historical message record. Among them, the historical message record is used to record the relevant information of the historical messages that the VPP protocol device has processed, and these relevant information can be used to realize the rapid processing of the target message. In the implementation process, when the target message information hits the historical message record, it means that the VPP protocol device has previously processed the same historical message as the target message, and the rapid processing of the target message can be realized in combination with the processing information of the historical message, so it can be determined that the current target message processing mode is the rapid processing mode; when the target message information does not hit the historical message record, it means that the VPP protocol device has not previously processed the same historical message as the target message, and the current target message is a new type of message data, and it is impossible to quickly process the target message in combination with the historical processing situation, so it can be determined that the current target message processing mode is the normal processing mode.

[0058] S103: If the processing mode is the fast processing mode, the target message is sent to the fast path node, so that the fast path node retrieves the historical processing parameters corresponding to the target message in the historical message record, and processes the target message using the historical processing parameters.

[0059] This step is intended to achieve fast processing of the target message. As mentioned above, the fast path node in the VPP protocol device is used to achieve fast processing of data messages. Therefore, in the fast processing mode, the target message can be directly sent to the fast path node, whereby the fast path node can retrieve the historical processing parameters corresponding to the target message in the historical message record, that is, the processing information of the historical messages that have been processed before and are the same as the target message, thereby combining these historical processing parameters to achieve fast processing of the target message.

[0060] In one embodiment of the present application, the above-mentioned processing of the target message using the historical processing parameters may include:

[0061] Perform encryption and decryption processing on the target message to obtain an encrypted message or a decrypted message;

[0062] The encrypted message or the decrypted message is repackaged using the historical processing parameters to obtain a first repackaged message.

[0063] The embodiment of the present application provides a method for implementing the processing of a target message by a fast processing node using historical processing parameters. Specifically, the processing process of the target message by the fast processing node may include encryption and decryption processing operations and repackaging operations, wherein the encryption and decryption operations are used to convert the target message in plain text form into ciphertext form, or convert the target message in ciphertext form into plain text form, to obtain the above-mentioned encrypted message or decrypted message; the repackaging processing implements the repackaging of the message data based on the historical processing parameters corresponding to the target message, obtains the above-mentioned first repackaging message, and outputs it.

[0064] It is understandable that the specific content of the above historical processing parameters does not affect the implementation of this technical solution, which is determined by the actual processing requirements of the target message, and this application does not limit this.

[0065] In one embodiment of the present application, the above historical processing parameters may include one or more combinations of IPSEC (a standard security technology) tunnel information, message policy information, output Ethernet header information, and output interface number information.

[0066] S104: If the processing mode is the normal processing mode, the target message is sent to a normal path node, so that the normal path node processes the target message.

[0067] This step is intended to achieve normal processing of the target message. As described above, the normal path node in the VPP protocol device is used to achieve normal processing of data messages. Therefore, in the normal processing mode, the target message can be directly sent to the normal path node, and the normal path node can perform normal processing on the target message.

[0068] In one embodiment of the present application, sending the target message to the common path node so that the common path node processes the target message may include:

[0069] Sending the target message to the common path node so that the common path node determines the transmission mode of the target message;

[0070] If the transmission mode is the encryption and decryption mode, the target message is encrypted and decrypted and repackaged in sequence to obtain a second repackaged message;

[0071] If the transmission mode is not the encryption / decryption mode, the target message is re-encapsulated to obtain a third re-encapsulated message.

[0072] The embodiment of the present application provides an implementation method for processing a target message by a common processing node. Specifically, the processing process of the target message by the fast processing node may also include encryption and decryption processing operations and repackaging operations, wherein the encryption and decryption operations are optional operations. Specifically, in the encryption and decryption transmission mode, the target message may be encrypted and decrypted and repackaging processed in sequence to obtain the above-mentioned second repackaging message; in the non-encryption and decryption transmission mode, the target message only needs to be repackaging processed to obtain the above-mentioned third repackaging message.

[0073] It can be seen that the message processing method provided in the embodiment of the present application adds a fast path node in the VPP protocol device to realize the fast processing of data messages. After receiving the target message, its processing mode can be determined according to its target message information. In the fast processing mode, the fast path node can be used to retrieve the historical processing parameters corresponding to the target message in the historical message record, and process it quickly without entering each ordinary path node for sequential flow processing; in the ordinary processing mode, each ordinary path node can be used for processing. It can be seen that the technical solution realizes fast and efficient message forwarding processing by adding a fast path node in the VPP protocol device, and effectively guarantees the message throughput performance of the VPP protocol device.

[0074] Based on the above embodiments:

[0075] In one embodiment of the present application, if the processing mode is a normal processing mode, the message processing method may further include:

[0076] Extracting target processing parameters of the target message during processing of the target message by the common path node;

[0077] The target processing parameters and target message information are stored correspondingly in the historical message record.

[0078] The message processing method provided in the embodiment of the present application can also realize real-time update of historical message records. As described above, the processing mode can be determined by judging whether the target message information of the target message hits the historical message record. Since when the target message information hits the historical message record, it can be determined that the VPP protocol device has previously processed the same message data as the target message, so the target message can be quickly processed. However, when the target message information does not hit the historical message record, it can be determined that the VPP protocol device has not previously processed the same message data as the target message, so the target message cannot be quickly processed, and only the ordinary processing path can be performed. On this basis, when the processing mode of the target message is the normal processing mode, in the process of routine processing of the target message based on the normal processing node, the target processing parameters generated during the processing can be further extracted and stored together with the target message parameters of the target message in the historical message record. Therefore, when the same message data as the current target message is received again in the future, the historical message record can be directly hit and the fast processing mode can be entered, which effectively improves the hit rate of the historical message record and helps to further improve the message processing efficiency.

[0079] Based on the above embodiments, an embodiment of the present application provides another message processing method.

[0080] First, please refer to Figure 2. Figure 2 is a schematic diagram of a fast path implementation provided by this application. Specifically, the first batch of messages pass through the original node path (the message processing path composed of ordinary processing nodes), and in the original node path processing process, the IPSEC tunnel, policy, output Ethernet header, output interface number and other information required for processing the message are cached in the corresponding table entry of the fast path flow table, that is, a historical message record is generated; starting from subsequent messages, the fast path classification and identification node queries the fast path flow table entry according to the five-tuple information of the message, and performs fast path forwarding processing according to the cached information in the queried flow table. Obviously, the fast path design saves the flow overhead of messages between intermediate nodes on the one hand, and reduces repeated queries and repeated logical judgments on the other hand, improves throughput performance, and reduces forwarding delay.

[0081] For further information, please refer to Figure 3 , Figure 3 A flowchart of another message processing method provided by this application, the implementation process of which is as follows:

[0082] 1. The VPP work thread starts, and the input node receives the message to be processed;

[0083] 2. Extract the five-tuple information from the message to be processed and query the fast path flow table to determine whether to quickly process the message to be processed;

[0084] 3. When the message to be processed needs to be processed quickly, the message to be processed is forwarded to the fast path processing node, and encryption and decryption processing, re-encapsulation processing, etc. are performed in sequence, and the re-encapsulated message data is output;

[0085] 4. When there is no need to quickly process the message to be processed, the message to be processed is forwarded to the normal path processing node. You can choose whether to perform encryption and decryption processing, and then perform re-encapsulation processing. During this process, you can also extract relevant processing parameters and fill them into the fast path flow table to update the fast path flow table. Finally, the re-encapsulated message data can be output.

[0086] It can be seen that the message processing method provided in the embodiment of the present application adds a fast path node in the VPP protocol device to realize the fast processing of data messages. After receiving the target message, its processing mode can be determined according to its target message information. In the fast processing mode, the fast path node can be used to retrieve the historical processing parameters corresponding to the target message in the historical message record, and process it quickly without entering each ordinary path node for sequential flow processing; in the ordinary processing mode, each ordinary path node can be used for processing. It can be seen that the technical solution realizes fast and efficient message forwarding processing by adding a fast path node in the VPP protocol device, and effectively guarantees the message throughput performance of the VPP protocol device.

[0087] An embodiment of the present application provides a message processing device.

[0088] Please refer to FIG. 4 , which is a schematic diagram of the structure of a message processing device provided by the present application. The message processing device is applied to a VPP protocol device, the VPP protocol device includes a fast path node and a normal path node, and the message processing device may include:

[0089] An extraction module 1 is used to extract target message information from the target message when receiving the target message;

[0090] Determining module 2, used to determine the processing mode of the target message according to the target message information;

[0091] The first processing module 3 is used for sending the target message to the fast path node if the processing mode is the fast processing mode, so that the fast path node retrieves the historical processing parameters corresponding to the target message in the historical message record, and processes the target message using the historical processing parameters;

[0092] The second processing module 4 is configured to send the target message to a common path node if the processing mode is a common processing mode, so that the common path node processes the target message.

[0093] It can be seen that the message processing device provided in the embodiment of the present application adds a fast path node in the VPP protocol device to realize the fast processing of data messages. After receiving the target message, its processing mode can be determined according to its target message information. In the fast processing mode, the fast path node can be used to retrieve the historical processing parameters corresponding to the target message in the historical message record, and process it quickly without entering each ordinary path node for sequential flow processing; in the ordinary processing mode, each ordinary path node can be used for processing. It can be seen that the technical solution realizes fast and efficient message forwarding processing by adding a fast path node in the VPP protocol device, and effectively guarantees the message throughput performance of the VPP protocol device.

[0094] In one embodiment of the present application, the above-mentioned determination module 2 can be specifically used to determine whether the target message information hits the historical message record; if the target message information hits the historical message record, the processing mode of the target message is determined to be the fast processing mode; if the target message information does not hit the historical message record, the processing mode of the target message is determined to be the normal processing mode.

[0095] In one embodiment of the present application, the message processing device may also include a storage module, which is used to extract the target processing parameters of the target message during the processing of the target message through the ordinary path node if the processing mode is the normal processing mode; and store the target processing parameters and the target message information correspondingly in the historical message record.

[0096] In one embodiment of the present application, the first processing module 3 can be specifically used to perform encryption and decryption processing on the target message to obtain an encrypted message or a decrypted message; and to repackage the encrypted message or the decrypted message using historical processing parameters to obtain a first repackaged message.

[0097] In one embodiment of the present application, the above-mentioned second processing module 4 can be specifically used to send the target message to the ordinary path node so that the ordinary path node determines the transmission mode of the target message; if the transmission mode is an encryption and decryption mode, the target message is sequentially encrypted and decrypted and repackaged to obtain a second repackaged message; if the transmission mode is not an encryption and decryption mode, the target message is repackaged to obtain a third repackaged message.

[0098] In one embodiment of the present application, the above-mentioned extraction module 1 can be specifically used to extract quintuple information from the target message as the target message information.

[0099] In one embodiment of the present application, the above-mentioned historical processing parameters may include one or more combinations of IPSEC tunnel information, message policy information, output Ethernet header information, and output interface number information.

[0100] For an introduction to the device provided in the embodiments of the present application, please refer to the above method embodiments, and the present application will not elaborate on them here.

[0101] An embodiment of the present application provides an electronic device.

[0102] Please refer to FIG5 , which is a schematic diagram of the structure of an electronic device provided by the present application. The electronic device may include:

[0103] A memory 11, used for storing computer programs;

[0104] The processor 10 can implement the steps of any one of the above-mentioned message processing methods when executing a computer program.

[0105] As shown in Fig. 5, it is a schematic diagram of the composition structure of an electronic device, which may include: a processor 10, a memory 11, a communication interface 12 and a communication bus 13. The processor 10, the memory 11 and the communication interface 12 all communicate with each other through the communication bus 13.

[0106] In the embodiment of the present application, the processor 10 may be a central processing unit (CPU), an application specific integrated circuit, a digital signal processor, a field programmable gate array or other programmable logic devices, etc.

[0107] The processor 10 may call a program stored in the memory 11. Specifically, the processor 10 may execute operations in the embodiment of the message processing method.

[0108] The memory 11 is used to store one or more programs, which may include program codes, and the program codes include computer operation instructions. In the embodiment of the present application, the memory 11 at least stores programs for implementing the following functions:

[0109] When receiving a target message, extracting target message information from the target message;

[0110] Determine a processing mode of the target message according to the target message information;

[0111] If the processing mode is the fast processing mode, the target message is sent to the fast path node, so that the fast path node retrieves the historical processing parameters corresponding to the target message in the historical message record, and processes the target message using the historical processing parameters;

[0112] If the processing mode is the normal processing mode, the target message is sent to the normal path node so that the normal path node processes the target message.

[0113] In a possible implementation, the memory 11 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function, etc.; the data storage area may store data created during use.

[0114] In addition, the memory 11 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device or other volatile solid-state storage device.

[0115] The communication interface 12 may be an interface of a communication module, and is used to connect to other devices or systems.

[0116] Of course, it should be noted that the structure shown in FIG. 5 does not constitute a limitation on the electronic device in the embodiment of the present application. In actual applications, the electronic device may include more or fewer components than those shown in FIG. 5 , or combine certain components.

[0117] An embodiment of the present application provides a computer-readable storage medium.

[0118] The computer-readable storage medium provided in the embodiment of the present application stores a computer program, and when the computer program is executed by a processor, the steps of any one of the above-mentioned message processing methods can be implemented.

[0119] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0120] For an introduction to the computer-readable storage medium provided in the embodiments of the present application, please refer to the above method embodiments, and the present application will not elaborate on them here.

[0121] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0122] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0123] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0124] The technical solution provided by the present application is described in detail above. The principle and implementation method of the present application are described in detail using specific examples herein, and the description of the above embodiments is only used to help understand the method and core idea of ​​the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the present application.

Claims

1. A message processing method, characterized in that: Applied to a VPP protocol device, the VPP protocol device includes a fast path node and a normal path node, the method includes: When receiving a target message, extracting target message information from the target message; Determining a processing mode of the target message according to the target message information; If the processing mode is a fast processing mode, the target message is sent to a fast path node, so that the fast path node retrieves the historical processing parameters corresponding to the target message in the historical message record, and processes the target message using the historical processing parameters; If the processing mode is a normal processing mode, the target message is sent to a normal path node so that the normal path node processes the target message.

2. The message processing method according to claim 1, characterized in that: The determining the processing mode of the target message according to the target message information includes: Determine whether the target message information hits the historical message record; If the target message information hits the historical message record, determining that the processing mode of the target message is the fast processing mode; If the target message information does not hit the historical message record, it is determined that the processing mode of the target message is the common processing mode.

3. The message processing method according to claim 2, characterized in that: If the processing mode is a normal processing mode, the method further includes: extracting a target processing parameter of the target message through the common path node in the process of processing the target message; The target processing parameters and the target message information are stored in the historical message record in correspondence.

4. The message processing method according to claim 1, characterized in that: The processing of the target message by using the historical processing parameter includes: Performing encryption and decryption processing on the target message to obtain an encrypted message or a decrypted message; The encrypted message or the decrypted message is repackaged using the historical processing parameters to obtain a first repackaged message.

5. The message processing method according to claim 1, characterized in that: The sending the target message to a common path node so that the common path node processes the target message includes: Sending the target message to a common path node so that the common path node determines a transmission mode of the target message; If the transmission mode is an encryption / decryption mode, the target message is sequentially encrypted / decrypted and repackaged to obtain a second repackaged message; If the transmission mode is not the encryption / decryption mode, the target message is repackaged to obtain a third repackaged message.

6. The message processing method according to claim 1, characterized in that: The extracting target message information from the target message includes: Extract quintuple information from the target message as the target message information.

7. The message processing method according to claim 1, characterized in that: The historical processing parameters include one or more combinations of IPSEC tunnel information, message policy information, output Ethernet header information, and output interface number information.

8. A message processing device, characterized in that: Applied to a VPP protocol device, the VPP protocol device includes a fast path node and a normal path node, the method includes: An extraction module, used for extracting target message information from the target message when receiving the target message; A determination module, used to determine a processing mode of the target message according to the target message information; A first processing module, configured to send the target message to a fast path node if the processing mode is a fast processing mode, so that the fast path node retrieves a historical processing parameter corresponding to the target message from a historical message record, and processes the target message using the historical processing parameter; The second processing module is configured to send the target message to a common path node if the processing mode is a common processing mode, so that the common path node processes the target message.

9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the message processing method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the message processing method according to any one of claims 1 to 7 are implemented.