CN117579714A - Message processing method, device, equipment and computer readable storage medium - Google Patents

Message processing method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN117579714A
CN117579714A CN202311509118.2A CN202311509118A CN117579714A CN 117579714 A CN117579714 A CN 117579714A CN 202311509118 A CN202311509118 A CN 202311509118A CN 117579714 A CN117579714 A CN 117579714A
Authority
CN
China
Prior art keywords
message
processed
server
semi
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311509118.2A
Other languages
Chinese (zh)
Inventor
吕蒙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yusur Technology Co ltd
Original Assignee
Yusur Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yusur Technology Co ltd filed Critical Yusur Technology Co ltd
Priority to CN202311509118.2A priority Critical patent/CN117579714A/en
Publication of CN117579714A publication Critical patent/CN117579714A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/12Protocol engines
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Abstract

The present disclosure relates to a method, an apparatus, a device, and a computer readable storage medium for processing a message, where the method includes: obtaining a message to be processed; determining the message type of the message to be processed, wherein the message type is one of a control side message and a data side message; if the message to be processed is a control side message, the message to be processed is sent to a target server for processing; and if the message to be processed is a data side message, the semi-unloading engine processes the message to be processed. According to the method and the system, the message data processing function is unloaded to the semi-unloading engine, and the link management and the state control are still carried out by the software protocol stack in the server, so that the semi-unloading of the protocol stack is realized, the resource occupation in the server is reduced, meanwhile, the synchronization of the link state between the software and the hardware is not needed, and the interaction complexity is reduced.

Description

Message processing method, device, equipment and computer readable storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for processing a message.
Background
TCP/IP is the most basic communication protocol widely used in the Internet, through which computers communicate with each other. In conventional TCP/IP technology, protocol parsing and interaction of TCP (Transimision Control Protocal) is typically implemented on the software side, i.e., the TCP protocol stack of the software is called to parse TCP packet data. When the software TCP protocol stack is used for processing TCP message data, a large amount of CPU (Central Processing Unit, CPU) resources are called, huge resource consumption is brought to a software system, and the processing speed is much slower than that of a hardware TCP protocol stack.
In order to reduce the resource consumption of the CPU and increase the processing speed of the TCP packet, the TCP full offload protocol stack technology has also been developed. The TCP full-unloading protocol stack is to completely unload the software TCP protocol stack into hardware, and the hardware replaces the software TCP protocol stack to realize the work of TCP link management, TCP retransmission, disordered rearrangement, state management, link establishment, link breaking and the like. The software only needs to transfer the data to be transmitted to the hardware through direct memory access (Direct Memory Access, DMA), and the TCP protocol stack of the hardware can automatically transmit a TCP message to the host of the opposite side according to the current link state so as to transfer the data.
However, the scheme has high requirements on the coding capability of the hardware TCP protocol stack, and needs to consider various abnormal situations in the actual Internet. Meanwhile, the flow of synchronizing the current link state of the hardware TCP protocol stack to the software is complex, the interaction complexity of the software and the hardware is increased to a certain extent, and various emergency abnormal conditions are easy to occur in the actual application scene.
Disclosure of Invention
In order to solve the technical problems, the disclosure provides a message processing method, a device, equipment and a computer readable storage medium.
In a first aspect, an embodiment of the present disclosure provides a method for processing a message, including:
obtaining a message to be processed;
determining the message type of the message to be processed, wherein the message type is one of a control side message and a data side message;
if the message to be processed is a control side message, the message to be processed is sent to a target server for processing;
and if the message to be processed is a data side message, the semi-unloading engine processes the message to be processed.
In some embodiments, if the message to be processed is a control side message, sending the message to be processed to a target server for processing, including:
forwarding a control side message sent by a remote server to a local server;
and responding to the received control signal issued by the local end server, executing an instruction corresponding to the control signal, wherein the control signal is generated after the local end server processes the control side message.
In some embodiments, if the message to be processed is a control side message, sending the message to be processed to a target server for processing, including:
and forwarding the control side message sent by the local end server to a remote end server for processing.
In some embodiments, when the control side message is a link establishment message, the control signal is a link establishment signal, and the executing, in response to receiving the control signal issued by the home terminal server, an instruction corresponding to the control signal includes:
and receiving a link establishment signal issued by the local end server, and starting the semi-unloading engine to work.
In some embodiments, when the control side packet is a link end packet, the control signal is a link end signal, and the executing, in response to receiving the control signal issued by the home terminal server, an instruction corresponding to the control signal includes:
and receiving a link ending signal issued by the local end server, and stopping the semi-unloading engine.
In some embodiments, if the message to be processed is a data side message, the processing, by the semi-offload engine, of the message to be processed includes:
analyzing the data side message from the remote server to obtain an analysis result;
and sending the analysis result to a local server.
In some embodiments, the method further comprises:
receiving data to be transmitted issued by the home terminal server;
packaging the data to be sent to obtain a message to be sent;
and sending the message to be sent to a remote server.
In a second aspect, an embodiment of the present disclosure provides a packet processing device, including:
the acquisition module is used for acquiring the message to be processed;
the determining module is used for determining the message type of the message to be processed, wherein the message type is one of a control side message and a data side message;
the first processing module is used for sending the message to be processed to a target server for processing if the message to be processed is a control side message;
and the second processing module is used for processing the message to be processed by the semi-unloading engine if the message to be processed is a data side message.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method according to the first aspect.
In a fourth aspect, embodiments of the present disclosure provide a computer-readable storage medium having stored thereon a computer program for execution by a processor to implement the method of the first aspect.
In a fifth aspect, the disclosed embodiments also provide a computer program product comprising a computer program or instructions which, when executed by a processor, implement a message processing method as described above.
According to the message processing method, the device, the equipment and the computer readable storage medium, the message data processing function is unloaded to the semi-unloading engine, and the link management and the state control are still carried out by the software protocol stack in the server, so that the semi-unloading of the protocol stack is realized, the resource occupation in the server is reduced, and meanwhile, the synchronization of the link states between the software and the hardware is not needed, and the interaction complexity is reduced.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments of the present disclosure or the solutions in the prior art, the drawings that are required for the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a flowchart of a message processing method provided in an embodiment of the disclosure;
fig. 2 is a schematic diagram of an application scenario provided in an embodiment of the present disclosure;
fig. 3 is a signaling diagram of a message processing method according to another embodiment of the present disclosure;
fig. 4 is a schematic diagram of an application scenario provided in another embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, a further description of aspects of the present disclosure will be provided below. It should be noted that, without conflict, the embodiments of the present disclosure and features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced otherwise than as described herein; it will be apparent that the embodiments in the specification are only some, but not all, embodiments of the disclosure.
The embodiment of the disclosure provides a message processing method, and the method is described below with reference to specific embodiments.
Fig. 1 is a flowchart of a message processing method provided in an embodiment of the disclosure. The method can be applied to an application scenario shown in fig. 2, wherein the application scenario comprises a CPU21, a half offload engine 22 and a remote server 23, wherein the CPU21 is in communication connection with the half offload engine 22, and the half offload engine 22 is in communication connection with the remote server 23, and the half offload engine can be specifically a TCP half offload engine. It can be appreciated that the message processing method provided by the embodiment of the disclosure may also be applied in other scenarios.
The following describes the message processing method shown in fig. 1 in conjunction with the application scenario shown in fig. 2, and the method includes the following specific steps:
s101, obtaining a message to be processed.
The message to be processed, i.e. any message received by the semi-offload engine, may specifically be a message from a remote server.
In some embodiments, the message to be processed may also be a message from the CPU 21. Wherein the CPU21 is arranged in the home server.
S102, determining the message type of the message to be processed, wherein the message type is one of a control side message and a data side message.
The message types of the message to be processed are divided into a control side message and a data side message, wherein the control side message is used for link management, state control and the like of TCP (transmission control protocol) links, and the data side message carries data which need to be specifically processed.
The control side message at least comprises one of a link establishment message (SYN message), a link ending message (FIN message) and a link reset message (RST message).
And S103, if the message to be processed is a control side message, the message to be processed is sent to a server for processing.
If the message to be processed is the control side message, the message to be processed is transmitted to the server for processing. The control side message is still processed by a software TCP protocol stack in the server, namely, the functions of management control and the like of the TCP link are not offloaded to the semi-offload engine.
The target server refers to one of a local server and a remote server, and the corresponding target server is determined according to the control side message.
For example, when a control side message from the local server is obtained, the semi-offload engine sends the control side message to the remote server, the remote server processes the control side message, and the TCP semi-offload engine does not process the control side message.
For another example, when a control side message from a remote server is obtained, the TCP semi-offload engine sends the control side message to the local server, the local server processes the control side message, and the TCP semi-offload engine does not process the control side message.
And S104, if the message to be processed is a data side message, the semi-unloading engine processes the message to be processed.
When the received message to be processed is a data side message, the TCP semi-unloading engine directly processes the message to be processed. For example, the TCP semi-offload engine may implement functions such as message parsing, message encapsulation, retransmission, out-of-order reordering, and the like, i.e., offload these functions into the TCP semi-offload engine.
The embodiment of the disclosure obtains the message to be processed; determining the message type of the message to be processed, wherein the message type is one of a control side message and a data side message; if the message to be processed is a control side message, the message to be processed is sent to a target server for processing; if the message to be processed is a data side message, the semi-offload engine processes the message to be processed, and the function of message data processing is offloaded to the semi-offload engine, and link management and state control are still performed by a software protocol stack in the server, so that the semi-offload of the protocol stack is realized, the resource occupation in the server is reduced, and meanwhile, the synchronization of link states between software and hardware is not needed, and the interaction complexity is reduced.
On the basis of the above embodiment, when the message type of the message to be processed is the control side message, the sending the message to be processed to the target server for processing includes: forwarding a control side message sent by a remote server to a local server; and responding to the received control signal issued by the local end server, executing an instruction corresponding to the control signal, wherein the control signal is generated after the local end server processes the control side message.
When the message to be processed acquired by the semi-unloading engine comes from a remote server, the semi-unloading engine firstly identifies the message type of the message to be processed when receiving the message to be processed, determines that the message to be processed is a control side message, and then sends the control side message to a local server, and the local server processes the control side message. Specifically, in the home terminal server, a CPU processes a control side message.
The CPU receives the control side message, communicates with the protocol stack of the remote server, synchronizes the TCP link state, and then transmits a control signal corresponding to the control side message to the semi-unloading engine, and the semi-unloading engine executes corresponding instructions according to the control information.
When the message type of the message to be processed is the control side message, the message to be processed is sent to a target server for processing, and the method further comprises the following steps: and forwarding the control side message sent by the local end server to a remote end server for processing.
When the message to be processed acquired by the semi-unloading engine comes from the local end server, the semi-unloading engine firstly identifies the message type of the message to be processed when receiving the message to be processed, determines that the message to be processed is a control side message, and then sends the control side message to the remote end server, and the remote end server processes the control side message.
In some embodiments, when the control side message is a link establishment message (SYN message), the remote server applies to establish a TCP link with the local server, or the local server applies to establish a TCP link with the remote server.
Specifically, when a link establishment message from a remote server is received, the control signal is a link establishment signal, and the response to receiving the control signal issued by the local server, executing an instruction corresponding to the control signal, includes: and receiving a link establishment signal issued by the local end server, and starting the semi-unloading engine to work.
When the semi-unloading engine receives a link establishment message from a remote server, the link establishment message is forwarded to a local server, and the local server CPU processes the link establishment message. The CPU of the local end server receives the link establishment message, communicates with the protocol stack of the remote end server, and synchronizes the TCP link state. After the TCP link is established, the local end server sends a link establishment signal to the semi-unloading engine; the semi-unloading engine starts working after responding to the received link establishment signal, and specifically comprises the functions of message analysis, message encapsulation, retransmission, out-of-order rearrangement and the like.
When the semi-unloading engine receives the link establishment message from the local end server, the link establishment message is directly forwarded to the remote end server.
In some embodiments, when the control side message is a link reset message (RST message), the remote server needs to reset the TCP link with the local server, or the local server needs to reset the TCP link with the remote server.
Specifically, when the semi-offload engine receives the link reset message from the remote server, the link reset message is forwarded to the local server, and the local server CPU processes the link reset message. The CPU of the local end server receives the link reset message, communicates with the protocol stack of the remote end server, synchronizes the TCP link state and feeds back the TCP link state to the semi-unloading engine.
When the semi-offload engine receives the link reset message from the local server, the semi-offload engine directly forwards the link reset message to the remote server.
In some embodiments, when the control side message is a link end message (FIN message), that is, the remote server needs to disconnect the TCP link with the local server, or the local server needs to disconnect the TCP link with the remote server.
Specifically, when a link end message from a remote server is received, the control signal is a link end signal, and the response to receiving the control signal issued by the local server, executing an instruction corresponding to the control signal, includes: and receiving a link ending signal issued by the local end server, and stopping the semi-unloading engine.
When the semi-unloading engine receives the link ending message from the remote server, the link ending message is forwarded to the local server, and the local server CPU processes the link establishment message. The CPU of the local end server receives the link end message, communicates with the protocol stack of the remote end server, synchronizes the TCP link state, feeds back the TCP link state to the semi-unloading engine, and sends a link end signal to the semi-unloading engine when the link is disconnected; the semi-offload engine stops operating in response to the received connection end signal.
And when the semi-unloading engine receives the link end message from the local end server, the link end message is directly forwarded to the remote end server.
According to the embodiment of the disclosure, the control side message is processed by the software protocol stack in the target server, so that the management and control of the link state are realized by the software, and different TCP protocol stacks are more easily adapted compared with hardware. And after abnormality occurs, the problem is easy to locate, and the development difficulty is low.
In some embodiments, if the message to be processed is a data side message, the processing, by the semi-offload engine, of the message to be processed includes: analyzing the data side message from the remote server to obtain an analysis result; and sending the analysis result to a local server.
When the semi-unloading engine receives the data side message from the remote server, the data side message is analyzed to obtain an analysis result of the data side message, the analysis result comprises data content obtained by analyzing the data side message, and the analysis result is transmitted to the local server, so that the local server can directly acquire the data from the remote server, and unloading of the message analysis function is realized.
In some embodiments, the method further comprises: receiving data to be transmitted issued by the home terminal server; packaging the data to be sent to obtain a message to be sent; and sending the message to be sent to a remote server.
When the semi-unloading engine receives data to be sent issued by the local end server, the data content issued by the local end server is encapsulated into a message to be sent, and the message is sent to a protocol stack of the remote end server, so that the encapsulation function unloading of the message is realized.
According to the embodiment of the disclosure, the TCP message data processing function is unloaded to the semi-unloading engine, so that CPU resources on the server side are not required to be occupied, and the time for processing the TCP message is shortened.
Fig. 3 is a signaling diagram of a message processing method according to another embodiment of the present disclosure, where the method may be applied to the application scenario shown in fig. 4. As shown in fig. 4, the scenario includes a remote server 41, a TCP semi-offload engine 42, a CPU43, where the CPU43 is disposed in a local server (not shown in the figure). Specifically, the TCP semi-offload engine 42 includes a packet screening unit 421 and a TCP offload unit 422, where the packet screening unit pushes the control side packet to a link management unit 431 and a state control unit 432 of the software. When the incoming message is a data side message, the message screening unit 42 sends the data side message to the TCP offload unit 422. The TCP offload unit 422 offload the packet encapsulation process and the packet parsing process of the software TCP protocol stack, and includes functions such as TCP packet encapsulation, TCP packet retransmission, and TCP packet out-of-order rearrangement. The data side packets are subject to hardware offload via the TCP offload unit 422. The CPU43 includes a link management unit 431, a state control unit 432, and an application unit 433. The message processing method shown in fig. 3 is described below in conjunction with the application scenario shown in fig. 4.
As shown in fig. 3, the method comprises the following steps:
s301, the TCP semi-unloading engine detects a SYN link establishment message sent by a remote server and forwards the SYN link establishment message to the CPU.
Or the TCP semi-offload engine detects the SYN link establishment message sent by the CPU and forwards the SYN link establishment message to the remote server.
S302, according to the link establishment message, the CPU performs three-way handshake with the remote server to synchronize the TCP link state.
S303, after the TCP link is established, the CPU sends a link establishment signal to the TCP semi-offload engine, and the TCP semi-offload engine starts to work.
S304, the TCP semi-unloading engine detects a data side message sent by the remote server and analyzes the message.
S305, the TCP semi-unloading engine transmits the analyzed data content to the CPU.
Further, the application unit 433 receives data content and performs corresponding data processing.
S306, the TCP semi-unloading engine receives data to be sent issued by the CPU, and encapsulates the data to be sent into a message to be sent.
Specifically, the application unit 433 issues data to be sent to the TCP offload unit 422, and the TCP offload unit 422 encapsulates the data to be sent into a message to be sent and then transmits the message to the message screening unit 42.
S307, the TCP semi-unloading engine sends the message to be sent to the remote server.
S308, the TCP semi-unloading engine detects a FIN link ending message sent by the remote server and forwards the FIN link ending message to the CPU.
Or the TCP semi-unloading engine detects the FIN link ending message sent by the CPU and forwards the FIN link ending message to the remote server.
S309, according to the FIN link end message, the CPU swings hands with the remote server four times, and synchronizes the TCP link state.
S310, the CPU sends a link ending signal to the TCP semi-offload engine, and the TCP semi-offload engine stops working.
According to the embodiment of the disclosure, the functions of link management and state control of the TCP protocol stack are not unloaded through the functions of message analysis, message encapsulation, retransmission, out-of-order rearrangement and the like of the TCP protocol stack. The link management unit and the state control unit are reserved in a software part for implementation, and compared with the traditional TCP/IP scheme, the functions of message analysis, message encapsulation, retransmission and out-of-order rearrangement of the TCP protocol stack of the software are realized by a TCP semi-offload engine. The CPU resource occupancy rate of the software is reduced. Meanwhile, the processing speed of the TCP data message is improved; compared with the TCP full-unloading mode, the link management unit and the state control unit of the TCP are still realized in a software part. When the application program of the software needs the TCP link state, the TCP link state can be directly obtained from the TCP protocol stack of the software. The state of synchronously connecting hardware to software is not needed, and the complexity of hardware design is reduced. Meanwhile, as the link management unit and the state control unit are arranged on the software side for realizing, once a problem occurs, the cause of the problem can be more conveniently positioned.
Fig. 5 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present disclosure. The message processing apparatus may be a semi-offload engine as described in the above embodiments, or the message processing apparatus may be a part or component in the semi-offload engine. The message processing apparatus provided in the embodiments of the present disclosure may execute the processing flow provided in the embodiment of the message processing method, as shown in fig. 5, where the message processing apparatus 50 includes: an acquisition module 51, a determination module 52, a first processing module 53, a processing module 54; the acquiring module 51 is configured to acquire a message to be processed; the determining module 52 is configured to determine a message type of the message to be processed, where the message type is one of a control side message and a data side message; the first processing module 53 is configured to send the message to be processed to a target server for processing if the message to be processed is a control side message; the second processing module 54 is configured to process the to-be-processed message by the semi-offload engine if the to-be-processed message is a data side message.
Optionally, the first processing module 53 is specifically configured to forward the control side packet sent by the remote server to the local server; and responding to the received control signal issued by the local end server, executing an instruction corresponding to the control signal, wherein the control signal is generated after the local end server processes the control side message.
Optionally, the first processing module 53 is specifically configured to forward the control side message sent by the home terminal server to the remote terminal server for processing,
optionally, when the control side message is a link establishment message, the control signal is a link establishment signal, and the first processing module 53 is specifically configured to receive the link establishment signal sent by the home terminal server, and the semi-offload engine starts to work.
Optionally, when the control side message is a link end message, the control signal is a link end signal, and the first processing module 53 is specifically configured to receive the link end signal issued by the home terminal server, and the semi-offload engine stops working.
Optionally, the second processing module 54 is specifically configured to parse the data side packet from the remote server to obtain a parsing result; and sending the analysis result to a local server.
Optionally, the message processing apparatus 50 further includes a third processing module 55, specifically configured to receive data to be sent issued by the home terminal server; packaging the data to be sent to obtain a message to be sent; and sending the message to be sent to a remote server.
The message processing apparatus of the embodiment shown in fig. 5 may be used to implement the technical solution of the above method embodiment, and its implementation principle and technical effects are similar, and are not described herein again.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure. The electronic device may be a semi-offload engine as described in the embodiments above. The electronic device provided in the embodiment of the present disclosure may execute the processing flow provided in the embodiment of the message processing method, as shown in fig. 6, where the electronic device 60 includes: a memory 61, a processor 62, computer programs and a communication interface 63; wherein the computer program is stored in the memory 61 and configured to be executed by the processor 62 for performing the message processing method as described above.
In addition, the embodiment of the present disclosure further provides a computer readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the method for processing a message according to the foregoing embodiment.
Furthermore, the embodiments of the present disclosure also provide a computer program product comprising a computer program or instructions which, when executed by a processor, implement a message processing method as described above.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is merely a specific embodiment of the disclosure to enable one skilled in the art to understand or practice the disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown and described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for processing a message, wherein the method is applied to a semi-offload engine, and the method comprises:
obtaining a message to be processed;
determining the message type of the message to be processed, wherein the message type is one of a control side message and a data side message;
if the message to be processed is a control side message, the message to be processed is sent to a target server for processing;
and if the message to be processed is a data side message, the semi-unloading engine processes the message to be processed.
2. The method of claim 1, wherein if the message to be processed is a control side message, sending the message to be processed to a target server for processing, comprising:
forwarding a control side message sent by a remote server to a local server;
and responding to the received control signal issued by the local end server, executing an instruction corresponding to the control signal, wherein the control signal is generated after the local end server processes the control side message.
3. The method of claim 1, wherein if the message to be processed is a control side message, sending the message to be processed to a target server for processing, comprising:
and forwarding the control side message sent by the local end server to a remote end server for processing.
4. The method according to claim 2, wherein when the control side message is a link establishment message, the control signal is a link establishment signal, and the executing, in response to receiving the control signal issued by the home server, an instruction corresponding to the control signal includes:
and receiving a link establishment signal issued by the local end server, and starting the semi-unloading engine to work.
5. The method according to claim 2, wherein when the control side message is a link end message, the control signal is a link end signal, and the executing, in response to receiving the control signal issued by the home terminal server, the instruction corresponding to the control signal includes:
and receiving a link ending signal issued by the local end server, and stopping the semi-unloading engine.
6. The method according to claim 1, wherein if the message to be processed is a data side message, the processing, by the semi-offload engine, of the message to be processed includes:
analyzing the data side message from the remote server to obtain an analysis result;
and sending the analysis result to a local server.
7. The method according to claim 1, wherein the method further comprises:
receiving data to be transmitted issued by the home terminal server;
packaging the data to be sent to obtain a message to be sent;
and sending the message to be sent to a remote server.
8. A message processing apparatus, comprising:
the acquisition module is used for acquiring the message to be processed;
the determining module is used for determining the message type of the message to be processed, wherein the message type is one of a control side message and a data side message;
the first processing module is used for sending the message to be processed to a target server for processing if the message to be processed is a control side message;
and the second processing module is used for processing the message to be processed by the semi-unloading engine if the message to be processed is a data side message.
9. An electronic device, comprising:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of any of claims 1-7.
10. A computer readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the method according to any of claims 1-7.
CN202311509118.2A 2023-11-13 2023-11-13 Message processing method, device, equipment and computer readable storage medium Pending CN117579714A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311509118.2A CN117579714A (en) 2023-11-13 2023-11-13 Message processing method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311509118.2A CN117579714A (en) 2023-11-13 2023-11-13 Message processing method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN117579714A true CN117579714A (en) 2024-02-20

Family

ID=89887322

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311509118.2A Pending CN117579714A (en) 2023-11-13 2023-11-13 Message processing method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN117579714A (en)

Similar Documents

Publication Publication Date Title
CN111580995B (en) Synchronous communication method and system of distributed cloud platform and Internet of things intelligent terminal based on MQTT asynchronous communication scene
US9225630B2 (en) Method and multi-homed equipment for establishing a multipath connection
CN106034084B (en) Data transmission method and device
US8228799B2 (en) Data communication apparatus and computer product
US20150127849A1 (en) Tcp data transmission method, tcp offload engine, and system
US20180109456A1 (en) System, method, and device for network load balance processing
US9900385B2 (en) Connection management device, communication system, connection management method, and computer program product
US20120030364A1 (en) Proxy appparatus and operation method thereof
CN109547162B (en) Data communication method based on two sets of one-way boundaries
CN112631788B (en) Data transmission method and data transmission server
CN110753035B (en) FPGA (field programmable Gate array) ultralow-delay communication transmission method based on TCP (Transmission control protocol)
CN113986501A (en) Real-time database API (application program interface) uninterrupted calling method, system, storage medium and server
CN110442506B (en) Log acquisition method, device, service server, system and storage medium
CN103650401A (en) Internal communication method for mobile terminal
US9240952B2 (en) System and method for communication between networked applications
CN106789099B (en) PCIE-based high-speed network isolation method and terminal
CN112261142B (en) RDMA network data retransmission method, device and FPGA
JPH10308791A (en) Method and equipment for data communication and data communication program recording medium
CN103607311A (en) System and method for reestablishing TCP connection seamlessly
CN117579714A (en) Message processing method, device, equipment and computer readable storage medium
CN108289165B (en) Method and device for realizing camera control based on mobile phone and terminal equipment
CN113992740B (en) Middleware based on autonomous control and data transmission method
EP3691346B1 (en) Modem and communication method
KR20200143881A (en) Controller commnication device and method thereof
US20190373085A1 (en) Transfer apparatus, transfer method, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination