Message processing method and system
By directly obtaining header information from a preset header information library to construct a message, the problem of excessive CPU load is solved and the message sending efficiency is improved.
Patent Information
- Application Number
- CN202010589918.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-24
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2040-06-24
AI Technical Summary
Constructing header information before sending a message consumes a lot of CPU resources, resulting in low message sending efficiency, especially in high-frequency packet sending scenarios where the load is increased.
By pre-building a preset header information library, you can directly obtain header information from it to construct a message, avoiding temporary configuration of header information when constructing the message and reducing CPU load.
It improves the efficiency of message sending, reduces the CPU load, and improves the processor performance.
Smart Images

Figure CN113836165B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a message processing method and system thereof. Background Art
[0002] Before sending a message, header information, such as Media Access Control (MAC), Internet Protocol (IP), and User Datagram Protocol (UDP), must be configured. After the header information is configured, the hardware interface is called to send the message. The central processing unit (CPU) constructs the header information, but each header construction requires thousands of machine cycles. This increases the CPU load, especially in scenarios with a high number of packet transmissions, leading to inefficient message transmission. Summary of the Invention
[0003] The present application provides a message processing method and system thereof, which can improve the efficiency of message sending.
[0004] In a first aspect, the present application provides a message processing method, the method comprising:
[0005] Obtain the information to be transmitted and the corresponding transmission identifier;
[0006] Determining header information corresponding to the transmission identifier from a preset header information library, wherein the preset header information library includes a plurality of preset mapping information, each preset mapping information including a preset transmission identifier and its corresponding header information;
[0007] A message is generated according to the information to be transmitted and the header information.
[0008] In a second aspect, the present application also provides a message processing system, which is used to implement the above-mentioned message processing method.
[0009] The present application discloses a message processing method and system thereof, the method comprising: obtaining information to be transmitted and a corresponding transmission identifier; determining header information corresponding to the transmission identifier from a preset header information library, wherein the preset header information library includes a plurality of preset mapping information, each preset mapping information including a preset transmission identifier and its corresponding header information; and generating a message based on the information to be transmitted and the header information. The message processing method disclosed in the embodiment of the present application can directly obtain header information from a pre-stored preset header information library when a message needs to be constructed, and then construct a message based on the header information, without the need to temporarily configure header information when constructing the message, thereby avoiding increasing the CPU load and improving the message sending efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0011] Figure 1 This is a schematic flow chart of a message processing method provided in an embodiment of the present application;
[0012] Figure 2 This is a schematic flow chart of another message processing method provided in an embodiment of the present application;
[0013] Figure 3 This is a schematic flow chart of another message processing method provided in an embodiment of the present application;
[0014] Figure 4 This is a schematic block diagram of the structure of a network device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0015] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0016] The flowcharts shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, combined, or partially merged, so the actual execution order may vary depending on the actual situation.
[0017] It should be understood that the terms used in this specification are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
[0018] It should be further understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0019] The embodiments of the present application provide a message processing method and system thereof. Below, some embodiments of the present application are described in detail with reference to the accompanying drawings. The following embodiments and features therein may be combined with each other unless they conflict.
[0020] See also Figure 1 , Figure 1 This is a schematic flow chart of a message processing method provided by an embodiment of the present application, such as Figure 1 As shown, the message processing method specifically includes steps S101 to S103.
[0021] S101: Acquire information to be transmitted and a corresponding transmission identifier.
[0022] Among them, the information to be transmitted may include information corresponding to the data actually to be transmitted, the transmission identifier includes identification information of the transmission device corresponding to the information to be transmitted, the transmission device may include a source device and a destination device, the identification information is information used to reflect the unique identity of the device, and one piece of information to be transmitted corresponds to one transmission identifier.
[0023] The information to be transmitted and the corresponding transmission identifier may be obtained from an upper-layer service. The specific type of the upper-layer service can be determined based on the actual application and is not limited here. The upper-layer service determines the actual data to be transmitted and the corresponding transmission identifier. After the message processing system obtains the information to be transmitted and the corresponding transmission identifier, it can generate the corresponding message.
[0024] In one embodiment, the operation of obtaining the information to be transmitted and the corresponding transmission identifier can be implemented in the following manner: obtaining message descriptor information, and obtaining the information to be transmitted and the corresponding transmission identifier according to the message descriptor information.
[0025] Wherein, the message processing system includes a processor and a network device, the processor can be a central processing unit (CPU), and the network device can be a device for packetizing messages. The message descriptor can be configured by the processor, the method provided in the embodiment of the present application can be processed by the network device, and the information included in the message descriptor information can be obtained from the upper layer service. The processor can receive the information to be transmitted and the corresponding transmission identifier from the upper layer service, and configure the message descriptor information according to the received information to be transmitted and the corresponding transmission identifier, and send the message descriptor information to the network device so that the network device can parse the message descriptor information to obtain the information to be transmitted and the corresponding transmission identifier, and further generate the message.
[0026] Optionally, the information to be transmitted includes a payload source address. The payload data can be obtained based on the payload source address. The payload data is the actual data to be transmitted. The payload data may be relatively large. If the processor obtains the payload data directly from the upper-layer service, it will occupy CPU memory. The payload source address generally includes a set of strings or numbers. Compared to the payload data, the payload source address is much smaller. Therefore, the processor can configure the payload source address as message descriptor information. After receiving the message descriptor information, the network device can obtain the payload source address and obtain the payload data based on the payload source address.
[0027] Optionally, the message descriptor information also includes the length of the payload data, the command processing method, and the message grouping. Each transmitted payload data has a different data length. After the message is sent, the length of the payload data of the message can be recorded as transmission statistics.
[0028] The command processing method may include transmission parameters required for the message transmission operation. For example, the command processing method includes a designated sending device, which may be a Maximum Transmission Unit (MTU). When the network device transmits the message, it may select a corresponding MTU based on the designated sending device to fragment the message for transmission.
[0029] S102: Determine header information corresponding to the transmission identifier from a preset header information library, wherein the preset header information library includes a plurality of preset mapping information, and each preset mapping information includes a preset transmission identifier and its corresponding header information.
[0030] The preset header information library stores multiple preset transmission identifiers, multiple header information, and mapping relationships. Each preset transmission identifier corresponds to a header information. The header information includes transmission information of the transmission device associated with the transmission and other communication information. The transmission information includes address information.
[0031] Optionally, the transmission device includes a source device and a destination device, and the header information includes address information of the source device and the destination device, which may be a Media Access Control (MAC) address and / or an Internet Protocol (IP) address. If the message communication is encapsulated on a higher-layer protocol, such as the User Datagram Protocol (UDP), GPRS Tunneling Protocol User (GTPU), or Stream Control Transmission Protocol (SCTP), the header information also includes UDP information, GTPU information, or SCTP information of the source device and the destination device, forming a complete header information.
[0032] The transmission devices associated with a message processing system are known, so the transmission information of all transmission devices and the identification information of all transmission devices can be determined in advance; for example, if a header information includes the transmission information of transmission device A and transmission device B, the identification information of transmission device A and transmission device B can be determined as the preset transmission identification, and a mapping relationship between the header information and the preset transmission information can be established and stored in the preset header information library.
[0033] After obtaining the information to be transmitted and the corresponding transmission identifier, the corresponding preset transmission identifier can be found from the preset header information library based on the transmission identifier. The header information belonging to the same preset mapping information as the preset transmission identifier can be determined as the header information corresponding to the transmission identifier. The transmission device corresponding to the header information is the transmission device corresponding to the information to be transmitted.
[0034] S103: Generate a message according to the information to be transmitted and the header information.
[0035] A complete message is generated according to the information to be transmitted and the header information. If the information to be transmitted includes payload data, the payload data and the header information can be directly combined into a complete message.
[0036] In one embodiment, the information to be transmitted includes a payload source address, and the operation of generating a message according to the information to be transmitted and the header information can be implemented as follows:
[0037] Payload data is acquired according to the payload source address, and a message is generated according to the payload data and the header information.
[0038] The payload data may be obtained from an upper layer service according to the payload source address. After the payload data is obtained, the payload data and header information may be combined into a complete message.
[0039] Optionally, when generating a message, a sending operation may be performed on the message, and the message may be sent to the destination device according to the address of the destination device included in the header information.
[0040] In one embodiment, the preset header information library is stored in a memory, and after determining the header information corresponding to the transmission identifier from the preset header information library, the following operations are further included:
[0041] Storing the transmission identifier and corresponding header information in local cache information;
[0042] Accordingly, after obtaining the information to be transmitted and the corresponding transmission identifier, the following operations are also included:
[0043] The header information corresponding to the transmission identifier is determined from the local cache information.
[0044] Among them, the message processing system also includes a memory, which is used to store a preset header information library. Since the preset header information library includes multiple header information, the space occupied may be relatively large. Therefore, a special memory is set up to place the preset header information library to avoid insufficient storage space for the processor and network device of the message processing system.
[0045] After obtaining the header information from the memory, the transmission identifier and the corresponding header information can be stored in the local storage information. The location where the local cache information is stored is different from the memory. If the embodiment of the present application is implemented by a network device, the local cache information can be stored in the network device.
[0046] If the same transmission identifier and information to be transmitted are obtained again in a short period of time, the header information corresponding to the transmission identifier can be directly determined from the local cache information without reading the header information from the memory, which can increase the speed of determining the header information.
[0047] The message processing method disclosed in the embodiment of the present application can directly obtain header information from a pre-stored preset header information library when a message needs to be constructed, and then construct a message based on the header information. There is no need to temporarily configure the header information when constructing the message, which avoids increasing the CPU load and can improve the efficiency of message sending.
[0048] In one embodiment, Figure 2 As shown, before obtaining the information to be transmitted and the corresponding transmission identifier, the following operations are also included:
[0049] S201: Acquire a transmission identifier of a transmission device corresponding to the message processing system and its corresponding header information, wherein each transmission identifier corresponds to one header information.
[0050] S202: Use the transmission identifier of the transmission device corresponding to the message processing system as a preset transmission identifier, and store the preset transmission identifier and its corresponding header information in a preset header information library.
[0051] Among them, one message processing system corresponds to multiple transmission devices, and the transmission devices may include a source device and a destination device, which may be the source device of the payload data and the destination device to which the message is sent.
[0052] The transmission identifier includes the identification information of the transmission device, and the identification information is information used to reflect the unique identity of the device. Exemplarily, the transmission identifier of each transmission device may include the cell number of the cell where the transmission device is located and the user number corresponding to the transmission device. Based on the cell number and the user number, a unique identifier of a transmission device can be determined as the identification information of the transmission device.
[0053] The header information includes the transmission information of the transmission device, and the transmission device includes a source device and a destination device. The transmission information may include address information. For example, the header information includes the address information of the source device and the destination device, and the address information may be a Media Access Control (MAC) address and / or an Internet Protocol (IP) address. If the communication of the message is encapsulated on the basis of a higher-layer protocol, such as the User Datagram Protocol (UDP), the GPRS Tunneling Protocol (GTPU), the Stream Control Transmission Protocol (SCTP), etc., then the header information also includes the UDP information, GTPU information or SCTP information of the source device and the destination device, which constitute the complete header information.
[0054] The transmission identifier of the transmission device corresponding to the message processing system and its corresponding header information may be determined when the message processing system is first established. The transmission device corresponding to the message processing system may be pre-configured, and the transmission identifier of each transmission device and its corresponding header information may also be pre-configured.
[0055] The obtained transmission identifier is used as the preset transmission identifier, and a mapping relationship is established with the corresponding header information and stored in the preset header information library.
[0056] Optionally, after storing the header information in the preset header information library, the storage address of each header information can be recorded, and the storage address of the header information and the corresponding preset transmission identifier can be mapped. Therefore, when it is necessary to retrieve the header information from the preset header information library, the storage address of the corresponding header information can be found according to the transmission identifier, and then the corresponding header information can be obtained according to the storage address.
[0057] In one embodiment, the method further comprises the following operations:
[0058] Determining hierarchical index information for each preset transmission identifier, and classifying the preset transmission identifiers in the preset header information library according to the hierarchical index information, wherein each hierarchical index information corresponds to at least one preset transmission identifier;
[0059] Accordingly, if Figure 3 As shown, the operation of determining the header information corresponding to the transmission identifier from the preset header information library can be implemented in the following manner:
[0060] S301, determining hierarchical index information of the transmission identifier;
[0061] S302. Determine at least one preset transmission identifier that matches the hierarchical index information from a preset header information library;
[0062] S303: Determine header information corresponding to the transmission identifier from the header information corresponding to the at least one preset transmission identifier.
[0063] Among them, after the preset transmission identifier and its corresponding header information are stored in the preset header information library, or when the preset transmission identifier and its corresponding header information are stored in the preset header information library, the hierarchical index information of each preset transmission identifier is determined, and the hierarchical index information is a simplification of the identification information, and each hierarchical index information corresponds to at least one preset transmission identifier.
[0064] The preset transmission identifier may be processed according to a preset algorithm to obtain corresponding data as hierarchical index information. Exemplarily, the preset algorithm may be a hash algorithm or a linear index algorithm.
[0065] A hash algorithm is used to calculate the preset transmission identifier to obtain a fixed-length number. The index of the hash bucket can be determined based on the fixed-length number. For example, a portion of the data in the fixed-length number can be used as the index of the hash bucket, and the index of the hash bucket is determined as the hierarchical index information of the preset transmission identifier. After performing hash operations on different preset transmission identifiers, the same hierarchical index information may be obtained, so each hierarchical index information corresponds to one or more preset transmission identifiers.
[0066] When determining header information from a preset header information library, the transmission identifier can also be processed using a preset algorithm to obtain hierarchical index information of the transmission identifier. Based on the hierarchical index information, the corresponding hierarchical index information can be determined in the preset header information library. At least one preset transmission identifier that matches the hierarchical index information can be used as a search range, and the header information corresponding to the transmission identifier can be found within this range. This embodiment of the present application can save mapping space, narrow the range of preset transmission identifiers that need to be searched, and improve the search speed of header information.
[0067] In one embodiment, the hierarchical index information includes upper-level index information and lower-level index information, and the operation of determining the hierarchical index information of each preset transmission identifier can be implemented as follows:
[0068] Determine the upper index information of each preset transmission identifier according to the identification information of the first part of each preset transmission identifier, and determine the lower index information of each preset transmission identifier according to the identification information of the second part of each preset transmission identifier;
[0069] Accordingly, the operation of determining the hierarchical index information of the transmission identifier may be implemented in the following manner:
[0070] The upper-level index information of the transmission identifier is determined according to the identification information of the first part of the transmission identifier, and the lower-level index information of the transmission identifier is determined according to the identification information of the second part of the transmission identifier.
[0071] The identification information can be divided into at least two parts, including a first part and a second part. The first part is used as the upper-level index information, and the identification information in the second part is used as the lower-level index information. Each lower-level index information can correspond to one or more preset transmission identifiers. For example, the identification information of the source device can be used as the first part, and the identification information of the destination device can be used as the second part.
[0072] When determining header information from the preset header information library, the upper-level index information is used to determine the preset transmission identifier within a first range. The lower-level index information is then used to determine the preset transmission identifier within a smaller second range from the first range, and the corresponding header information can be determined from this range. If the upper-level index information corresponds to too many preset transmission identifiers, the lower-level index information can be used to further narrow the search scope, further improving the speed of determining the header information.
[0073] Optionally, more levels of index information may be set according to actual application requirements to further save mapping space and more quickly determine header information.
[0074] In one embodiment, the method further comprises the following operations:
[0075] Perform a sending operation on the message and obtain sending statistical information of the sending operation.
[0076] Among them, the sending statistical information can be used to reflect the statistical parameters involved in the sending of the message. Optionally, the sending statistical information includes the number of messages, message length, process number and physical port number used when sending the message, etc. The message length can be the length of the payload data.
[0077] After sending multiple messages, you can get the sending statistics of multiple messages, which can be used as reference information when the administrator needs to debug the message processing system, and can help the administrator to find errors and count the sent traffic.
[0078] Exemplarily, it is also possible to determine whether the message sending task is completed based on the sending statistical information. Exemplarily, the sending task of a message of the upper-layer business needs to send payload data of a preset length. When the sending operation is performed on the message, the length of the payload data in the sent message can also be counted. When the cumulative length of multiple payload data sent is greater than the preset length, it can be determined that the sending task is completed and the sending task can be terminated.
[0079] An embodiment of the present application also provides a message processing system, which is used to implement the message processing method provided in any of the above embodiments.
[0080] Optionally, the message processing system further includes a network device, and the network device is used to implement the message processing method provided in any of the above embodiments.
[0081] In one embodiment, the information to be transmitted includes a payload source address, and the network device, when implementing the generating of the message according to the information to be transmitted and the header information, is specifically configured to implement:
[0082] Payload data is acquired according to the payload source address, and a message is generated according to the payload data and the header information.
[0083] In one embodiment, the message processing system further includes a processor, the processor being configured to configure message descriptor information and send the configured message descriptor information to the network device;
[0084] Accordingly, when the network device implements the acquisition of the information to be transmitted and the corresponding transmission identifier, it is specifically configured to implement:
[0085] Acquire message descriptor information, and acquire information to be transmitted and a corresponding transmission identifier according to the message descriptor information.
[0086] In one embodiment, the message processing system further includes a memory configured to store a preset header information library. After determining the header information corresponding to the transmission identifier from the preset header information library, the network device is further configured to:
[0087] Storing the transmission identifier and corresponding header information in local cache information;
[0088] After obtaining the information to be transmitted and the corresponding transmission identifier, the network device is further configured to:
[0089] The header information corresponding to the transmission identifier is determined from the local cache information.
[0090] In one embodiment, before obtaining the information to be transmitted and the corresponding transmission identifier, the network device is further configured to:
[0091] Obtaining a transmission identifier of a transmission device corresponding to the message processing system and its corresponding header information, wherein the header information includes transmission information of the transmission device, the transmission identifier includes identification information of the transmission device, each transmission identifier corresponds to one header information, and the transmission device includes a source device and a destination device;
[0092] The transmission identifier of the transmission device corresponding to the message processing system is used as a preset transmission identifier, and the preset transmission identifier and its corresponding header information are stored in a preset header information library.
[0093] In one embodiment, the operation of "obtaining the transmission identifier of the transmission device corresponding to the message processing system and its corresponding header information, using the transmission identifier of the transmission device corresponding to the message processing system as the preset transmission identifier, and storing the preset transmission identifier and its corresponding header information in the preset header information library" can also be implemented by a processor.
[0094] In one embodiment, the network device is further configured to implement:
[0095] Determining hierarchical index information for each preset transmission identifier, and classifying the preset transmission identifiers in the preset header information library according to the hierarchical index information, wherein each hierarchical index information corresponds to at least one preset transmission identifier;
[0096] When the network device determines the header information corresponding to the transmission identifier from the preset header information library, the network device is specifically configured to implement:
[0097] Determining hierarchical index information of the transmission identifier;
[0098] Determining at least one preset transmission identifier that matches the hierarchical index information from a preset header information library;
[0099] The header information corresponding to the transmission identifier is determined from the header information corresponding to the at least one preset transmission identifier.
[0100] In one embodiment, the operation of "determining hierarchical index information of each preset transmission identifier, and classifying the preset transmission identifiers in the preset header information library according to the hierarchical index information" may also be implemented by a processor.
[0101] In one embodiment, the hierarchical index information includes upper-level index information and lower-level index information. When the network device implements the determination of the hierarchical index information of each preset transmission identifier, it is specifically configured to implement:
[0102] Determine the upper index information of each preset transmission identifier according to the identification information of the first part of each preset transmission identifier, and determine the lower index information of each preset transmission identifier according to the identification information of the second part of each preset transmission identifier;
[0103] When the network device implements the determination of the hierarchical index information of the transmission identifier, the network device is specifically configured to implement:
[0104] Determine the upper index information of the transmission identifier according to the identification information of the first part of the transmission identifier, and determine the lower index information of the transmission identifier according to the identification information of the second part of the transmission identifier;
[0105] In one embodiment, the operation of "determining the upper-level index information of each preset transmission identifier based on the identification information of the first part of each preset transmission identifier, and determining the lower-level index information of each preset transmission identifier based on the identification information of the second part of each preset transmission identifier" can also be implemented by a processor.
[0106] In one embodiment, the network device is further configured to implement: performing a sending operation on the message and obtaining sending statistical information of the sending operation.
[0107] In one embodiment, Figure 4 As shown, the network device 100 includes a preset algorithm unit 101 , a table management unit 102 , a cache unit 103 , a descriptor processing unit 104 , a command processing unit 105 and a statistical information processing unit 106 .
[0108] The preset algorithm unit 101 is used to implement: determining the hierarchical index information of the transmission identifier; determining at least one preset transmission identifier that matches the hierarchical index information from a preset header information library; and determining the header information corresponding to the transmission identifier from the header information corresponding to the at least one preset transmission identifier.
[0109] The preset algorithm unit 101 can be a hash algorithm unit or a linear index algorithm unit. If the preset algorithm unit 101 is a linear index algorithm unit, the preset algorithm unit 101 is also used to implement: determining the upper-level index information of the transmission identifier based on the identification information of the first part of the transmission identifier, and determining the lower-level index information of the transmission identifier based on the identification information of the second part of the transmission identifier.
[0110] The table management unit 102 is used to add, delete or search for entries in the preset header information library stored in the memory, and may be used to implement: determining the header information corresponding to the transmission identifier from the preset header information library.
[0111] The cache unit 103 is used to store local cache information.
[0112] The descriptor processing unit 104 is configured to parse the acquired message descriptor information to obtain the information to be transmitted and the corresponding transmission identifier.
[0113] The command processing unit 105 is configured to determine whether there is message descriptor information that needs to be parsed.
[0114] The statistical information processing unit 106 is configured to obtain sending statistical information of the sending operation when performing a sending operation on the message.
[0115] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present application, and such modifications or substitutions should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A message processing method, characterized in that: The method comprises: Obtaining a transmission identifier of a transmission device corresponding to the message processing system and its corresponding header information, wherein each transmission identifier corresponds to one header information; Using the transmission identifier of the transmission device corresponding to the message processing system as a preset transmission identifier, and storing the preset transmission identifier and its corresponding header information in a preset header information library; Determining hierarchical index information for each preset transmission identifier, and classifying the preset transmission identifiers in the preset header information library according to the hierarchical index information, wherein each hierarchical index information corresponds to at least one preset transmission identifier; Obtain the information to be transmitted and the corresponding transmission identifier; Determining hierarchical index information of a transmission identifier corresponding to the information to be transmitted; determining at least one preset transmission identifier matching the hierarchical index information from the preset header information library; Determining header information corresponding to the transmission identifier from the header information corresponding to the at least one preset transmission identifier; wherein the preset header information library includes a plurality of preset mapping information, each preset mapping information includes a preset transmission identifier and its corresponding header information; A message is generated according to the information to be transmitted and the header information.
2. The message processing method according to claim 1, characterized in that: The information to be transmitted includes a payload source address, and generating a message according to the information to be transmitted and the header information includes: Payload data is acquired according to the payload source address, and a message is generated according to the payload data and the header information.
3. The message processing method according to claim 1, characterized in that: The obtaining of the information to be transmitted and the corresponding transmission identifier includes: Acquire message descriptor information, and acquire information to be transmitted and a corresponding transmission identifier according to the message descriptor information.
4. The message processing method according to claim 1, wherein: The preset header information library is stored in the memory. After determining the header information corresponding to the transmission identifier from the preset header information library, the method further includes: Storing the transmission identifier and corresponding header information in local cache information; After obtaining the information to be transmitted and the corresponding transmission identifier, the method further includes: The header information corresponding to the transmission identifier is determined from the local cache information.
5. The message processing method according to claim 1, characterized in that: The hierarchical index information includes upper-level index information and lower-level index information, and determining the hierarchical index information of each preset transmission identifier includes: Determining upper-level index information of each preset transmission identifier based on identification information of the first part of each preset transmission identifier, and determining lower-level index information of each preset transmission identifier based on identification information of the second part of each preset transmission identifier; The determining of the hierarchical index information of the transmission identifier includes: The upper-level index information of the transmission identifier is determined according to the identification information of the first part of the transmission identifier, and the lower-level index information of the transmission identifier is determined according to the identification information of the second part of the transmission identifier.
6. The message processing method according to any one of claims 1 to 4, characterized in that: The method further comprises: Perform a sending operation on the message and obtain sending statistical information of the sending operation.
7. A message processing system, characterized in that: The message processing system is used to implement the message processing method according to any one of claims 1 to 6.
8. The message processing system according to claim 7, characterized in that: The message processing system includes a processor and a network device; The processor is configured to configure message descriptor information and send the configured message descriptor information to the network device; The network device is configured to execute the message processing method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Data packet processing method and system and equipment
CN102404789A
Data replacement method in system cache and multi-core communication processor
WO2011103828A2