CN114285906B - Message processing method and device, electronic equipment and storage medium - Google Patents
Message processing method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114285906B CN114285906B CN202111600575.3A CN202111600575A CN114285906B CN 114285906 B CN114285906 B CN 114285906B CN 202111600575 A CN202111600575 A CN 202111600575A CN 114285906 B CN114285906 B CN 114285906B
- Authority
- CN
- China
- Prior art keywords
- target
- identification information
- identifier
- message
- structure body
- 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.)
- Active
Links
- 238000003672 processing method Methods 0.000 title abstract description 13
- 239000000872 buffer Substances 0.000 claims abstract description 97
- 238000000034 method Methods 0.000 claims abstract description 50
- 238000012545 processing Methods 0.000 claims abstract description 49
- 230000006870 function Effects 0.000 claims description 18
- 238000004590 computer program Methods 0.000 claims description 6
- 238000004064 recycling Methods 0.000 claims description 6
- 230000000153 supplemental effect Effects 0.000 claims description 6
- 238000007781 pre-processing Methods 0.000 claims description 4
- 238000000605 extraction Methods 0.000 claims description 2
- 238000004891 communication Methods 0.000 abstract description 5
- 230000008569 process Effects 0.000 description 19
- 230000005540 biological transmission Effects 0.000 description 14
- 238000010586 diagram Methods 0.000 description 8
- 230000002093 peripheral effect Effects 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 238000011161 development Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 239000013589 supplement Substances 0.000 description 3
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000009469 supplementation Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000000047 product Substances 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000001502 supplementing effect Effects 0.000 description 1
Landscapes
- Computer And Data Communications (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application provides a message processing method, a message processing device, electronic equipment and a storage medium, and relates to the technical field of communication networks. The method comprises the following steps: setting identification information in a cache structure body of the target message, wherein the identification information comprises a first identification and a second identification, the first identification is used for marking whether the target message is sent completely or not, and the second identification is used for marking whether the target message is forwarded quickly or not; adjusting the identification information in the target message based on the processing rule of the protocol stack to obtain adjustment identification information; determining a target cache structure body and target identification information in the target cache structure body when the target message is sent according to the cache structure body and the adjustment identification information; and judging whether the target cache structure body is multiplexed or not based on the target identification information. The method and the device can multiplex the buffer area, reduce the memory pressure of the buffer area during forwarding, and improve the forwarding performance of the system during forwarding the message data.
Description
Technical Field
The present invention relates to the field of communications networks, and in particular, to a method and apparatus for processing a message, an electronic device, and a storage medium.
Background
With the development of network hardware, the network throughput of a single interface is higher and higher, and the single interface is widely popularized from 10M at the beginning to 100G at present. Compared with the rapid development of the hardware performance of the network card, the network processing performance of the operating system becomes a bottleneck gradually, so that the high-performance network forwarding function is widely applied in the current network environment, and the requirements are urgent.
In the prior art, in order to improve throughput and forwarding performance of a system as much as possible, processing of message data in a network by an operating system is gradually developed from a interrupt mode to a NAPI (New Application Programming Interface, new application program interface) mode, and even schemes such as net map, DPDK (Data Plane Development Kit ) and the like of a gradually applied state appear, so as to improve overall performance under the operating system. Although the two schemes of net map and DPDK can improve the performance of the operating system, the kernel of the operating system is greatly changed, a large number of patches are required to be added to realize the forwarding function in an application state, when message data is forwarded in the application state, the existing protocol stack in the operating system cannot be utilized for forwarding, the protocol stack needs to be reconstructed for forwarding, the time required for forwarding is long, and the forwarding performance of the operating system when the message data is forwarded is poor.
Disclosure of Invention
In view of the foregoing, an objective of the embodiments of the present application is to provide a method, an apparatus, an electronic device, and a storage medium for processing a message, so as to solve the problem of poor forwarding performance of the message data in the prior art.
In order to solve the above problem, in a first aspect, the present application provides a method for processing a message, including:
setting identification information in a cache structure body of a target message, wherein the identification information comprises a first identification and a second identification, the first identification is used for marking whether the target message is sent completely or not, and the second identification is used for marking whether the target message is forwarded quickly or not;
adjusting the identification information in the target message based on the processing rule of the protocol stack to obtain adjustment identification information;
determining a target cache structure body when the target message is sent and target identification information in the target cache structure body according to the cache structure body and the adjustment identification information;
and judging whether the target cache structure body is multiplexed or not based on the target identification information.
In the implementation process, the identification information for identifying the forwarding state of the target message is set in the buffer structure body of the receiving buffer zone corresponding to the target message, so that whether the target message is sent completely and whether the target message is forwarded quickly can be marked. When receiving the target message, the method adjusts the identification information of the received target message according to the current forwarding state of the target message by the processing rule of the protocol stack through the existing protocol stack in the system to obtain the adjustment identification information. After receiving the target message, the target buffer structure body and the target identification information in the buffer structure body can be determined when the target message is transmitted after being received, so that whether the target buffer structure body in the transmitted target message can be reused or not can be judged according to the target identification information after the target message is transmitted, the buffer area of the message data can be reused, the memory pressure of the buffer area during forwarding is reduced, and the forwarding performance of the system during forwarding the message data is improved.
Optionally, the setting identification information in the cache structure body of the target message includes:
adding the first identifier and the second identifier in the cache structure body of the target message;
and setting the numerical values of the first mark and the second mark in the cache structure body as default values.
In the implementation process, the first identifier and the second identifier of the two variable fields are respectively added into the buffer structure body in the buffer area for receiving the target message, the first identifier is used for marking whether the target message is sent completely, the second identifier is used for marking whether the target message is forwarded quickly, and the forwarding state of the target message is marked by the numerical values of the variables in the first identifier and the second identifier. When the method is used for setting, the target message cache structure body to be forwarded is initialized by setting the values of the first identifier and the second identifier as default values, so that subsequent processing operations are performed on the basis of the initialized marking information.
Optionally, the protocol stack-based processing rule adjusts the identification information in the target packet to obtain adjusted identification information, including:
When a receiving interface receives the target message, the target message is sent to the protocol stack;
searching in the target message based on the processing rule of the protocol stack, and determining a forwarding table corresponding to the target message;
determining a transmitting interface corresponding to the target message based on the forwarding table, so as to transmit the target message according to a transmitting function of the transmitting interface;
and setting the value of the second identifier from the default value to a non-default value to obtain a first set identifier, wherein the first set identifier and the first identifier are used as the adjustment identifier information.
In the implementation process, when the receiving interface of the network card in the operating system receives the target message, the target message can be directly processed by using the existing protocol stack by uploading the target message to the existing protocol stack in the operating system, and the target message is processed without reconstructing the protocol stack. In the protocol stack, searching is carried out in a message data stream of a target message based on a processing rule of the protocol stack, a forwarding table corresponding to the target message is determined, a transmission interface and a corresponding transmission function when the target message is transmitted can be determined on the basis of the forwarding table, the target message is transmitted according to the transmission function, when the target message is transmitted in the mode, the forwarding state of the target message is changed, and quick forwarding can be carried out, so that the value of the second identifier in the identifier information is set from a default value to a non-default value, the value of the second identifier is adjusted, a first set identifier is obtained, the first set identifier and the first identifier are used as adjustment identifier information, and the current forwarding state of the target message is marked. The time for constructing the protocol stack can be reduced, so that the forwarding time of the message data is reduced, and the identification information can be adjusted in real time according to the change of the forwarding state of the message data, so that the forwarding performance of the message data is improved.
Optionally, the method further comprises:
and when the sending interface is not used for sending the target message, setting the first setting identifier as the default value of the second identifier.
In the implementation process, when the sending interface is not used for sending the target message, the forwarding state of the target message is not changed, the target message is not forwarded quickly, and the forwarding is performed in a common forwarding mode. Therefore, the second identifier in the identifier information is not required to be adjusted, the default value of the second identifier is directly used as the first set identifier, and the identifier information can be correspondingly processed according to different forwarding states.
Optionally, the determining, according to the buffer structure and the adjustment identification information, the target buffer structure when the target packet is sent, and the target identification information in the target buffer structure includes:
generating an allocation instruction after the receiving interface receives a preset number of target messages;
responding to the allocation instruction, and determining whether to allocate a supplementary cache structure body according to the values of the first mark and the first set mark in the adjustment mark information;
And determining the target cache structure and the target identification information when the target message is sent based on the distribution result of the supplementary cache structure.
In the implementation process, after receiving a preset number of target messages in the receiving interface of the network card of the operating system, since more receiving buffers are used in more target messages, new buffers need to be allocated to the receiving buffers of the target messages, and corresponding allocation instructions are generated and responded. And determining whether a new supplementary buffer structure body needs to be allocated in a receiving buffer area of the target message or not according to the numerical values of two variables in the adjustment identification information in the buffer structure body of the received target message, so as to determine the target buffer structure body and the target identification information carried in the target buffer structure body when the target message is transmitted in the transmitting interface according to the allocation result of the supplementary buffer structure body. The buffer area after the target message is received can be adjusted, and data transmission is performed on the basis of the adjusted target message.
Optionally, the determining, based on the allocation result of the supplemental cache structure, the target cache structure and the target identification information when the target message is sent includes:
When the values of the first identifier and the first set identifier are the non-default values, the supplementary cache structure body is not allocated; the buffer structure is used as the target buffer structure when the target message is sent, and the adjustment identification information is used as the target identification information;
when the numerical values of the first identifier and the first set identifier are not the non-default values, the supplementary cache structure body is allocated; setting the numerical value of the first identifier to be a non-default value to obtain a second set identifier; and the second set identifier and the first set identifier are used as target identifier information by the target cache structure body when the cache structure body and the supplementary cache structure body are used as the target message for sending.
In the implementation process, by adjusting the values of the first identifier and the first set identifier in the identifier information, whether a new supplementary buffer structure is allocated in the receiving buffer of the target message can be determined. When the target message is forwarded quickly and the transmission is finished, and the supplemental cache structure is not required to be allocated, the cache structure is directly used as the target cache structure when the target message is transmitted, and the corresponding adjustment identification information is used as target identification information; when the target message is not forwarded quickly or is not transmitted completely in the quick forwarding process, and the supplementary buffer structure is required to be allocated, the supplementary buffer structure and the original buffer structure allocated to the receiving buffer area are used as target buffer structures, the first identifier is set to obtain a second set identifier with a value which is not a default value, and the first set identifier and the second set identifier are used as target identifier information. Whether a new buffer structure body is supplemented in the buffer zone can be judged according to the numerical value of the variable in the adjustment identification information, all message data do not need to be supplemented, targeted supplementation is achieved, and the distribution pressure of the buffer structure body and the memory pressure of the buffer zone are reduced.
Optionally, the determining whether the target cache structure is multiplexed based on the target identification information includes:
after the sending interface finishes sending the target message, extracting the target identification information from the target cache structure body;
when the target identification information is the first identification and the first setting identification, the target identification information is not set, and multiplexing is carried out on the target cache structure body;
and when the target identification information is the second set identification and the first set identification, setting the target identification information, and recovering the target cache structure.
In the implementation process, after the sending interface finishes sending the target message corresponding to the target cache structure body, extracting the target identification information in the target cache structure body, and judging whether the target cache structure body can be reused or not according to the variable values of the two identifications in the target identification information. When the numerical value in the target identification information is set, the target message is not forwarded quickly or is not transmitted completely in the quick forwarding process, the corresponding target cache structure body cannot be reused, and the target cache structure is recovered to be recovered to the system memory for storage. When the numerical value in the target identification information is not set, the target message is rapidly forwarded and sent, so that the target cache structure body can be rapidly reused. Whether the buffer area can be multiplexed or not can be judged rapidly and accurately through the forwarding state of the target message in forwarding.
In a second aspect, the present application further provides a packet processing device, where the device includes:
the system comprises an identification module, a buffer structure body and a forwarding module, wherein the identification module is used for setting identification information in the buffer structure body of a target message, the identification information comprises a first identification and a second identification, the first identification is used for marking whether the target message is sent completely or not, and the second identification is used for marking whether the target message is forwarded quickly or not;
the adjustment module is used for adjusting the identification information in the target message based on the processing rule of the protocol stack to obtain adjustment identification information;
the determining module is used for determining a target cache structure body when the target message is sent and target identification information in the target cache structure body according to the cache structure body and the adjustment identification information;
and the judging module is used for judging whether the target cache structure body is multiplexed or not based on the target identification information.
In the implementation process, the identification module sets the identification information for identifying the forwarding state of the target message in the buffer structure body in the receiving buffer area corresponding to the target message, so that whether the target message is sent completely and whether the target message is forwarded quickly can be marked. And adjusting the received identification information of the target message according to the current forwarding state of the target message by using the processing rule of the protocol stack through an adjustment module according to the existing protocol stack in the system to obtain adjustment identification information. After receiving the target message, the determining module can determine the target cache structure and the target identification information thereof when the target message is transmitted after receiving the target message through the cache structure and the adjustment identification information thereof. The judging module can judge whether the target buffer structure in the sent target message can be reused or not according to the target identification information after the target message is sent, so that the buffer area of the message data can be reused, the memory pressure of the buffer area during forwarding is reduced, and the forwarding performance of the system during forwarding the message data is improved.
The application also provides electronic equipment, which comprises a memory and a processor, wherein the memory stores program instructions, and when the processor reads and runs the program instructions, the processor executes steps in any implementation mode of the message processing method.
The present application also provides a computer readable storage medium having stored therein computer program instructions which, when read and executed by a processor, perform the steps of any of the implementations of the above-described message processing method.
In summary, the present application provides a method, an apparatus, an electronic device, and a storage medium for processing a message, where by setting identification information for marking a forwarding state of message data in a buffer area of a target message, a current forwarding state of the message data can be obtained based on the identification information in a forwarding process of the message data, so that the buffer area is rapidly reused on the basis of the set forwarding state, memory pressure of the buffer area during forwarding is reduced, and forwarding performance of a system when forwarding the message data is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic block diagram of an electronic device according to an embodiment of the present application;
fig. 2 is a flow chart of a message processing method provided in an embodiment of the present application;
fig. 3 is a detailed flowchart of step S200 provided in the embodiment of the present application;
fig. 4 is a detailed flowchart of step S210 provided in the embodiment of the present application;
fig. 5 is a detailed flowchart of step S220 provided in the embodiment of the present application;
fig. 6 is a detailed flowchart of step S230 provided in the embodiment of the present application;
fig. 7 is a schematic block diagram of a message processing apparatus according to an embodiment of the present application.
Icon: 100-an electronic device; 111-memory; 112-a memory controller; 113-a processor; 114-a peripheral interface; 115-an input-output unit; 116-a display unit; 300-message processing device; 310-an identification module; 320 an adjustment module; 330-a determination module; 340-a judgment module.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments of the present application without making any inventive effort, are intended to be within the scope of the embodiments of the present application.
In the prior art, in order to improve the processing capability of the operating system on network data, the performance of the operating system may be improved in the Linux operating system through solutions such as net map, DPDK (Data Plane Development Kit ) and the like. In the net map, more kernel patches are injected into a network card driver and kernels in an operating system, so that a buffer area of the network card is mapped to an application state, and the application state processes message data in a network. In DPDK, the whole network card driver is directly implemented in an application state, and then a CPU (Central Processing Unit, abbreviated as CPU) is adopted to poll the network card, so as to implement processing of message data.
Because the net map and the DPDK change the kernel of the Linux operating system greatly, a large number of patches need to be added to realize the data forwarding of the message in the application state. When forwarding the message data in the application state, the existing protocol stack in the operating system cannot be utilized to directly forward, and the protocol stack needs to be reconstructed in the application state to forward, so that in the forwarding flow of the message data, the time for constructing the protocol stack is also needed, the message forwarding time is longer, and although the service performance of the application state in the operating system can be improved, the forwarding performance of the message data in the operating system is poorer.
Therefore, in order to solve the above-mentioned problems, the embodiments of the present application provide a message processing method, which is applied to a server, where the server may be an electronic device with a logic computing function, such as a personal computer (Personal Computer, PC), a tablet computer, a smart phone, a personal digital assistant (Personal Digital Assistant, PDA), etc., and the electronic device may include an operating system, such as Linux, etc., and may be capable of multiplexing a buffer area when forwarding message data, so as to improve forwarding performance of the message data.
Optionally, referring to fig. 1, fig. 1 is a schematic block diagram of an electronic device according to an embodiment of the present application. The electronic device 100 may include a memory 111, a memory controller 112, a processor 113, a peripheral interface 114, an input output unit 115, and a display unit 116. Those of ordinary skill in the art will appreciate that the configuration shown in fig. 1 is merely illustrative and is not limiting of the configuration of the electronic device 100. For example, electronic device 100 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The above-mentioned memory 111, memory controller 112, processor 113, peripheral interface 114, input/output unit 115 and display unit 116 are electrically connected directly or indirectly to each other to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The processor 113 is used to execute executable modules stored in the memory.
The Memory 111 may be, but is not limited to, a random access Memory (Random Access Memory, RAM), a Read Only Memory (ROM), a programmable Read Only Memory (Programmable Read-Only Memory, PROM), an erasable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), an electrically erasable Read Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc. The memory 111 is configured to store a program, and the processor 113 executes the program after receiving an execution instruction, and a method executed by the electronic device 100 defined by the process disclosed in any embodiment of the present application may be applied to the processor 113 or implemented by the processor 113.
The processor 113 may be an integrated circuit chip having signal processing capabilities. The processor 113 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (digital signal processor, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field Programmable Gate Arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The peripheral interface 114 couples various input/output devices to the processor 113 and the memory 111. In some embodiments, the peripheral interface 114, the processor 113, and the memory controller 112 may be implemented in a single chip. In other examples, they may be implemented by separate chips.
The input-output unit 115 described above is used to provide input data to a user. The input/output unit 115 may be, but is not limited to, a mouse, a keyboard, and the like.
The display unit 116 described above provides an interactive interface (e.g., a user-operated interface) between the electronic device 100 and a user or is used to display image data to a user reference. In this embodiment, the display unit may be a liquid crystal display or a touch display. In the case of a touch display, the touch display may be a capacitive touch screen or a resistive touch screen, etc. supporting single-point and multi-point touch operations. Supporting single-point and multi-point touch operations means that the touch display can sense touch operations simultaneously generated from one or more positions on the touch display, and the sensed touch operations are passed to the processor for calculation and processing. In the embodiment of the present application, the display unit 116 may display relevant data such as forwarding flow of the message data.
The electronic device in this embodiment may be configured to execute each step in each packet processing method provided in the embodiment of the present application. The implementation of the message processing method is described in detail below by means of several embodiments.
Referring to fig. 2, fig. 2 is a flow chart of a message processing method according to an embodiment of the present application, where the method may include the following steps:
step S200, setting identification information in a cache structure body of the target message.
The identification information comprises a first identification and a second identification, wherein the first identification is used for marking whether the target message is sent completely or not, and the second identification is used for marking whether the target message is forwarded quickly or not. The target message is any message data which needs to be forwarded in the network environment of the operating system. The buffer structure is a structure in a receiving buffer area of the kernel mode of the operating system when receiving the message, namely a SKB (structure sk_buff, socket buffer) structure, and the buffer structure weight comprises all relevant data required by processing the network message data.
Step S210, adjusting the identification information in the target message based on the processing rule of the protocol stack to obtain adjustment identification information.
The method comprises the steps of setting an existing protocol stack in a kernel mode of an operating system, detecting the forwarding state of a target message according to processing rules in the existing protocol stack, and adjusting the numerical value marked in the set identification information in a cache structure according to the forwarding state of the target message when the target message is forwarded currently, so as to obtain adjustment identification information, and correspondingly changing according to the forwarding state of the target message.
Step S220, determining a target cache structure when the target message is sent and target identification information in the target cache structure according to the cache structure and the adjustment identification information.
After the target message is received, the forwarding state of the target message when the target message is transmitted after being received can be acquired through the buffer structure body and the adjustment identification information therein, and the target buffer structure body used when the target message is transmitted and the corresponding target identification information therein are determined on the basis of the forwarding state.
Step S230, determining whether the target cache structure is multiplexed based on the target identification information.
The method comprises the steps of judging a forwarding state of a target message when the target message is transmitted according to target identification information when the target message is transmitted, acquiring whether the target message is forwarded in a fast forwarding mode or not and whether the target message is transmitted completely or not, judging whether a target cache structure body can be reused according to the acquired situation, rapidly multiplexing the target cache structure body capable of being reused, recovering the target cache structure body incapable of being reused, and distributing the target cache structure body again by an operating system.
Optionally, a plurality of target messages to be forwarded can be processed at the same time, so as to judge whether the corresponding target cache structure can be reused, and efficiency in message processing is effectively improved.
In the embodiment shown in fig. 2, by setting the identification information indicating the forwarding state of the message data in the buffer structure body of the message data, the buffer area of the message data can be reused, so that the memory pressure of the buffer area during forwarding is reduced, and the forwarding performance of the system during forwarding the message data is improved.
Optionally, referring to fig. 3, fig. 3 is a detailed flowchart of step S200 provided in the embodiment of the present application, and step S200 may further include steps S201-S202.
Step S201, adding the first identifier and the second identifier in the cache structure body of the target packet.
The first identifier and the second identifier may be variable values capable of being changed, the first identifier may be denoted as tx_done, the second identifier may be denoted as tx_fast, and whether the target message is sent completely or not and whether the target message is forwarded in a fast forwarding manner are indicated by the change of the variable values.
For example, when the first identifier tx_done=0, it indicates that the target message is not sent, and when tx_done=1, it indicates that the target message is sent; when tx_fast=0, it indicates that the target packet is not forwarded in a fast forwarding manner, and when tx_fast=1, it indicates that the target packet is forwarded in a fast forwarding manner, where default values of the first and second identifiers may be set to 0, and non-default values are set to 1.
Optionally, when adding, the first identifier and the second identifier may be added to the buffer structure body first, and then the buffer structure body is allocated to the corresponding target message, or after the target message is obtained, the first identifier and the second identifier may be added to the buffer structure body corresponding to the target message.
Step S202, setting the values of the first identifier and the second identifier in the cache structure body to default values.
When the network card of the operating system is initialized, the first identifier and the second identifier in the buffer structure body received by each queue in the receiving interface of the network card can be initialized, the variable values of the first identifier and the second identifier are set to be default values, and the default values are 0, namely, the default values respectively indicate that the target message is not sent completely, and the target message is not forwarded in a fast forwarding mode.
In the embodiment shown in fig. 3, the target packet cache structure to be forwarded can be initialized to perform subsequent processing operations based on the initialized tag information.
Optionally, referring to fig. 4, fig. 4 is a detailed flowchart of step S210 provided in the embodiment of the present application, and step S210 may further include steps S211-S214.
Step S211, when the receiving interface receives the target packet, the target packet is sent to the protocol stack.
The method comprises the steps of setting an existing protocol stack in a kernel mode of an operating system, setting a plurality of protocol communication modules and corresponding processing rules in the protocol stack, and directly uploading a target message to the existing protocol stack in the operating system when a receiving interface of a network card in the operating system receives the target message so as to directly process the target message without constructing a new protocol stack in an application state for processing.
Step S212, searching in the target message based on the processing rule of the protocol stack, and determining a forwarding table corresponding to the target message.
If the processing rule detects that the target message is an established connection, for example, a TCP (Transmission Control Protocol, a connection-oriented, reliable and byte-stream-based transport layer communication protocol) connection or a UDP (User Datagram Protocol, user data packet protocol) connection is established, and a method for sending an encapsulated IP data packet without establishing a connection is provided for an application program, the message data flow is searched in the message data flow, and a forwarding table corresponding to the target message can be searched and determined, where the forwarding table may be a session (session control) table, and attributes and configuration information required by a specific user session are stored.
Step S213, determining a transmitting interface corresponding to the target message based on the forwarding table, so as to transmit the target message according to a transmitting function of the transmitting interface.
The forwarding table finds a sending interface when the target message is sent, and can also call a sending function of the sending interface to send the target message.
Step S214, setting the value of the second identifier from the default value to a non-default value, to obtain a first set identifier, where the first set identifier and the first identifier are used as the adjustment identifier information.
When a sending function of a sending interface is called to send a target message, the target message can be sent in a fast forwarding mode, and the forwarding state of the target message is changed, so that a value of a second identifier representing whether the target message is fast forwarded needs to be set from a default value 0 representing non-fast forwarding to a non-default value 1 representing fast forwarding to obtain a first set identifier, the first set identifier is used for representing that the target message is sent in the fast forwarding mode, the identifier information can be correspondingly adjusted in real time according to the forwarding state of the target message, and the first identifier and the first set identifier are used as adjustment identifier information.
Optionally, when the sending interface is not used to send the target message, the first set identifier is set to the default value of the second identifier.
When the sending interface and the sending function are not called to send the target message, the target message is not forwarded quickly, and can be forwarded in a common forwarding mode, and a second identifier of whether the target message is forwarded quickly in the identifier information is unchanged compared with a default value, so that the forwarding state of the target message is unchanged, the second identifier does not need to be adjusted, and the first setting identifier is directly set to the default value of the second identifier, so that the forwarding state of the target message which is not forwarded quickly is marked.
In the embodiment shown in fig. 4, the time for constructing the protocol stack can be reduced, so that the forwarding time of the message data is reduced, and the identification information can be adjusted in real time according to the change of the forwarding state of the message data, so as to improve the forwarding performance of the message data.
Optionally, referring to fig. 5, fig. 5 is a detailed flowchart of step S220 provided in the embodiment of the present application, and step S220 may further include steps S221-S223.
Step S221, after the receiving interface receives the preset number of the target packets, generating an allocation instruction.
After the receiving interface receives the target messages with the preset number, the buffer structure body is required to be in larger quantity when the receiving interface sends the target messages with larger number. It is therefore necessary to generate corresponding allocation instructions to allocate the cache structure for the target message that needs to be replenished, as the cache structure has already been used.
Step S222, in response to the allocation instruction, determines whether to allocate a supplemental cache structure according to the values of the first flag and the first set flag in the adjustment flag information.
Wherein after responding to the allocation instruction, the allocation flow is opened. And acquiring the forwarding state of the received target message according to the values of the first identifier and the first set identifier in the adjustment identifier information, so as to determine whether a new supplementary cache structure body needs to be allocated for supplementation according to the current forwarding state of the target message.
Step S223, determining the target cache structure and the target identification information when the target message is sent based on the allocation result of the supplemental cache structure.
The method comprises the steps of determining a target cache structure body and target identification information corresponding to a target message when the target message is sent according to different results, wherein two distribution results exist during distribution and non-distribution, and accordingly obtaining a forwarding state of the target message when the target message is sent.
Optionally, when the values of the first identifier and the first set identifier are both non-default values, no supplemental cache structure is allocated; and the target cache structure body is used for adjusting the identification information to serve as target identification information when the cache structure body is used as the target message for sending.
When the values of the first identifier and the first set identifier are both non-default values, namely are both 1, the target message is rapidly forwarded and is sent completely, and a new supplementary cache structure body is not required to be allocated to the target message. And when the target message is transmitted, the buffer structure body is directly used as the target buffer structure body in the transmission, and compared with the state before transmission, the forwarding state of the target message is not changed, and the adjustment identification information can be directly used as the target identification information in the transmission.
Optionally, when the values of the first identifier and the first set identifier are not both non-default values, allocating a supplementary cache structure body; setting the numerical value of the first identifier to be a non-default value to obtain a second set identifier; and the target cache structure body when the cache structure body and the supplementary cache structure body are used as target messages is used as target identification information, and the second set identification and the first set identification are used as target identification information.
When the values of the first identifier and the first set identifier are not both non-default values, three cases can be classified as follows: 1. the first mark is 0, and the first set mark is 0, so that the target message is not transmitted in a fast forwarding mode and is not transmitted completely, and a new supplementary cache structure body is required to be allocated to the target message for transmission; 2. the first identifier is 0, and the first set identifier is 1, so that the target message is sent in a fast forwarding mode when being sent, but the target message is not sent completely, and therefore a new supplementary cache structure body is required to be allocated to the target message for sending; 3. the first flag is 1, and the first set flag is 0, which indicates that the target message is not sent in a fast forwarding manner when being sent, and a new supplementary buffer structure body needs to be allocated to the target message although the sending is completed.
Optionally, when a new supplementary buffer structure body needs to be allocated to the target message, the supplementary buffer structure body and the original buffer structure body are converted into structure bodies as targets when the mechanical energy of the target message is transmitted. Setting the value of the first identifier, setting the first identifiers with the value of a default value or a non-default value as the non-default value, obtaining a second set identifier with the value of the non-default value, and using the first set identifier and the second set identifier as target identifier information when the target message is sent, so as to represent the forwarding state of the target message which can be sent completely when the target message is sent on the basis of the target cache structure obtained by supplementing.
It should be noted that, by adjusting the value of the variable in the identification information to determine whether to supplement the new buffer structure in the buffer, it is not necessary to supplement all the message data, and targeted supplement can be achieved, so that the allocation pressure of the buffer structure and the memory pressure of the buffer can be reduced.
In the embodiment shown in fig. 5, the target cache structure body and the target identification information carried in the target cache structure body are determined when the target message is sent in the sending interface. The buffer area after the target message is received can be adjusted, and data transmission is performed on the basis of the adjusted target message.
Optionally, referring to fig. 6, fig. 6 is a detailed flowchart of step S230 provided in the embodiment of the present application, and step S230 may further include steps S231-S233.
Step S231, after the transmission interface finishes transmitting the target packet, extracting the target identification information from the target cache structure body.
After the sending interface finishes sending the target message on the basis of the target cache structure body and the target identification information, the forwarding state of the target message during sending can be obtained on the basis of the numerical value of the identification variable in the target identification information by extracting the target identification information.
And step S232, when the target identification information is the first identification and the first set identification, the target identification information is not set, and multiplexing is performed on the target cache structure body.
If the target identification information is the first identification and the first set identification, that is, if the target identification information is 1, the first identification is not set, the target identification information is not set, which means that the target message is sent in a fast forwarding manner and the sent target cache structure corresponding to the target message can be reused, and the target cache structure is directly and fast multiplexed.
Optionally, after the target cache structure is quickly multiplexed, the first identifier in the target cache structure can be reset to a default value, and the first identifier is matched to a receiving buffer of a new target message for continuous use.
And step S233, setting the target identification information when the target identification information is the second set identification and the first set identification, and recovering the target cache structure.
When the target identification information is the second set identification and the first set identification, the first identification is set to be the second set identification, and the target identification information is set, which means that the target message is not forwarded quickly or is not sent completely in the fast forwarding process, and the sent target cache structure body cannot be reused in the case and needs to be recovered to the operating system to be distributed again by the operating system.
When forwarding the target message in a fast forwarding manner, for example, 60% of the target buffer structure bodies can be rapidly multiplexed, so that 30% of message data forwarding performance in an operating system is improved, the number of message buffers in a kernel state is effectively reduced, the memory pressure in the kernel state is reduced, and the method can be applied to network card drives of various versions, is not limited by hardware forms, is suitable for various devices, and meets various requirements of users.
In the embodiment shown in fig. 6, by the forwarding state of the target packet during forwarding, whether the buffer area can be multiplexed can be rapidly and accurately determined, so that the target buffer structure body can be multiplexed and recycled correspondingly.
Referring to fig. 7, fig. 7 is a schematic block diagram of a message processing apparatus according to an embodiment of the present application, where the message processing apparatus 300 may include:
the identification module 310 is configured to set identification information in a cache structure body of a target packet, where the identification information includes a first identification and a second identification, the first identification is used to mark whether the target packet is sent completely, and the second identification is used to mark whether the target packet is forwarded quickly;
The adjustment module 320 is configured to adjust the identification information in the target packet based on a processing rule of a protocol stack, so as to obtain adjustment identification information;
a determining module 330, configured to determine, according to the cache structure and the adjustment identification information, a target cache structure when the target message is sent, and target identification information in the target cache structure;
a judging module 340, configured to judge whether the target cache structure is multiplexed based on the target identification information.
In an alternative embodiment, the identification module 310 may further include an adding sub-module and a preprocessing sub-module;
an adding submodule, configured to add the first identifier and the second identifier to the cache structure body of the target packet;
and the preprocessing sub-module is used for setting the numerical values of the first mark and the second mark in the cache structure body to default values.
In an alternative embodiment, the adjustment module 320 may further include a transmitting sub-module, a searching sub-module, an interface determining sub-module, and an adjustment sub-module;
the transmission sub-module is used for transmitting the target message to the protocol stack when the receiving interface receives the target message;
The searching sub-module is used for searching in the target message based on the processing rule of the protocol stack and determining a forwarding table corresponding to the target message;
an interface determining submodule, configured to determine a sending interface corresponding to the target packet based on the forwarding table, so as to send the target packet according to a sending function of the sending interface;
and the adjustment sub-module is used for setting the value of the second identifier from the default value to a non-default value to obtain a first set identifier, and the first set identifier and the first identifier are used as adjustment identifier information.
In an optional embodiment, the adjustment module 320 may further include a maintaining sub-module, configured to set the first set identifier to the default value of the second identifier when the sending interface is not used to send the target packet.
In an alternative embodiment, the determining module 330 may further include an instruction sub-module, an allocation sub-module, and a determining sub-module;
the instruction submodule is used for generating an allocation instruction after the receiving interface receives the target messages with the preset number;
the allocation submodule is used for responding to the allocation instruction and determining whether to allocate the supplementary cache structure body according to the values of the first mark and the first set mark in the adjustment mark information;
And the determining submodule is used for determining the target cache structure and the target identification information when the target message is sent based on the distribution result of the supplementary cache structure.
In an alternative embodiment, the determination sub-module includes a dispensing unit and a non-dispensing unit therein;
the non-allocation unit is used for not allocating the supplementary cache structure body when the values of the first identifier and the first set identifier are the non-default values; the buffer structure is used as the target buffer structure when the target message is sent, and the adjustment identification information is used as the target identification information;
the allocation unit is used for allocating the supplementary cache structure body when the values of the first identifier and the first set identifier are not the non-default values; setting the numerical value of the first identifier to be a non-default value to obtain a second set identifier; and the second set identifier and the first set identifier are used as target identifier information by the target cache structure body when the cache structure body and the supplementary cache structure body are used as the target message for sending.
In an alternative embodiment, the judging module 340 may further include an extracting sub-module, a multiplexing sub-module, and a recycling sub-module;
The extraction submodule is used for extracting the target identification information from the target cache structure body after the sending interface finishes sending the target message;
the multiplexing sub-module is used for multiplexing the target cache structure body when the target identification information is the first identification and the first setting identification and the target identification information is not set;
and the recycling sub-module is used for setting the target identification information and recycling the target cache structure when the target identification information is the second setting identification and the first setting identification.
Since the principle of the device in the embodiment of the present application for solving the problem is similar to the foregoing embodiment of the message processing method, the implementation of the message processing device 300 in the embodiment of the present application may refer to the description in the foregoing embodiment of the message processing method, and the repetition is omitted.
The embodiment of the application also provides electronic equipment, which comprises a memory and a processor, wherein the memory stores program instructions, and when the processor reads and runs the program instructions, the processor executes the steps of any one of the methods of the message processing method provided by the embodiment.
It should be understood that the electronic device may be a personal computer (Personal Computer, PC), tablet computer, smart phone, personal digital assistant (Personal Digital Assistant, PDA), or the like, having a logic computing function.
The embodiment of the application also provides a computer readable storage medium, in which computer program instructions are stored, and when the computer program instructions are read and executed by a processor, the steps of any one of the methods for processing a message provided in the embodiment are executed.
In summary, the embodiment of the application provides a method, a device, an electronic device and a storage medium for processing a message, which are capable of acquiring a current forwarding state of message data based on identification information in a forwarding process of the message data by setting the identification information for marking the forwarding state of the message data in a buffer area of a target message, so that the buffer area is rapidly reused on the basis of the set forwarding state, the memory pressure of the buffer area in forwarding is reduced, and the forwarding performance of a system in forwarding the message data is improved.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other ways. The apparatus embodiments described above are merely illustrative, for example, block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of devices according to various embodiments of the present application. In this regard, each block in the block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams, and combinations of blocks in the block diagrams, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. The present embodiment therefore also provides a readable storage medium having stored therein computer program instructions which, when read and executed by a processor, perform the steps of any one of the methods of block data storage. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a RanDom Access Memory (RAM), a magnetic disk or an optical disk, or other various media capable of storing program codes.
The foregoing is merely exemplary embodiments of the present application and is not intended to limit the scope of the present application, and various modifications and variations may be suggested to one skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application. It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application.
It is noted that 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 … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
Claims (5)
1. A method for processing a message, comprising:
setting identification information in a cache structure body of a target message, wherein the identification information comprises a first identification and a second identification, the first identification is used for marking whether the target message is sent completely or not, and the second identification is used for marking whether the target message is forwarded quickly or not;
adjusting the identification information in the target message based on the processing rule of the protocol stack to obtain adjustment identification information;
determining a target cache structure body when the target message is sent and target identification information in the target cache structure body according to the cache structure body and the adjustment identification information;
judging whether the target cache structure is multiplexed or not based on the target identification information;
the setting of the identification information in the cache structure of the target message includes: adding the first identifier and the second identifier in the cache structure body of the target message; setting the values of the first mark and the second mark in the cache structure body to default values; the default value of the first identifier indicates that the target message is not sent, and the default value of the second identifier indicates that the target message is not forwarded in a fast forwarding manner;
The protocol stack-based processing rule adjusts the identification information in the target message to obtain adjustment identification information, and the adjustment identification information comprises: when a receiving interface receives the target message, the target message is sent to the protocol stack; searching in the target message based on the processing rule of the protocol stack, and determining a forwarding table corresponding to the target message; determining a transmitting interface corresponding to the target message based on the forwarding table, so as to transmit the target message according to a transmitting function of the transmitting interface; setting the value of the second identifier from the default value to a non-default value to obtain a first set identifier, wherein the first set identifier and the first identifier are used as the adjustment identifier information;
the determining, according to the cache structure and the adjustment identification information, the target cache structure when the target message is sent, and the target identification information in the target cache structure, includes: generating an allocation instruction after the receiving interface receives a preset number of target messages; responding to the allocation instruction, and determining whether to allocate a supplementary cache structure body according to the values of the first mark and the first set mark in the adjustment mark information; based on the allocation result of the supplementary cache structure, determining the target cache structure and the target identification information when the target message is sent includes: when the values of the first identifier and the first set identifier are the non-default values, the supplementary cache structure body is not allocated; the buffer structure is used as the target buffer structure when the target message is sent, and the adjustment identification information is used as the target identification information; when the numerical values of the first identifier and the first set identifier are not the non-default values, the supplementary cache structure body is allocated; setting the numerical value of the first identifier to be a non-default value to obtain a second set identifier; the buffer structure body and the supplementary buffer structure body are used as the target buffer structure body when the target message is transmitted, and the second set identifier and the first set identifier are used as the target identifier information;
The determining whether the target cache structure is multiplexed based on the target identification information includes: after the sending interface finishes sending the target message, extracting the target identification information from the target cache structure body; when the target identification information is the first identification and the first setting identification, the target identification information is not set, and multiplexing is carried out on the target cache structure body; and when the target identification information is the second set identification and the first set identification, setting the target identification information, and recovering the target cache structure.
2. The method according to claim 1, wherein the method further comprises:
and when the sending interface is not used for sending the target message, setting the first setting identifier as the default value of the second identifier.
3. A message processing apparatus, the apparatus comprising:
the system comprises an identification module, a buffer structure body and a forwarding module, wherein the identification module is used for setting identification information in the buffer structure body of a target message, the identification information comprises a first identification and a second identification, the first identification is used for marking whether the target message is sent completely or not, and the second identification is used for marking whether the target message is forwarded quickly or not; the identification module comprises an adding sub-module and a preprocessing sub-module, wherein the adding sub-module is used for adding the first identification and the second identification in the cache structure body of the target message; the preprocessing submodule is used for setting the numerical values of the first identifier and the second identifier in the cache structure body to default values; the default value of the first identifier indicates that the target message is not sent, and the default value of the second identifier indicates that the target message is not forwarded in a fast forwarding manner;
The adjustment module is used for adjusting the identification information in the target message based on the processing rule of the protocol stack to obtain adjustment identification information; the adjusting module comprises a transmitting sub-module, a searching sub-module, an interface determining sub-module and an adjusting sub-module; the transmitting sub-module is used for transmitting the target message to the protocol stack when the receiving interface receives the target message; the searching sub-module is used for searching in the target message based on the processing rule of the protocol stack and determining a forwarding table corresponding to the target message; the interface determining submodule is used for determining a sending interface corresponding to the target message based on the forwarding table so as to send the target message according to a sending function of the sending interface; the adjusting submodule is used for setting the value of the second identifier from the default value to a non-default value to obtain a first setting identifier, and the first setting identifier and the first identifier are used as the adjusting identifier information;
the determining module is used for determining a target cache structure body when the target message is sent and target identification information in the target cache structure body according to the cache structure body and the adjustment identification information; the determining module comprises an instruction submodule, a distribution submodule and a determining submodule; the instruction submodule is used for generating an allocation instruction after the receiving interface receives a preset number of target messages; the allocation submodule is used for responding to the allocation instruction and determining whether to allocate a supplementary cache structure body according to the values of the first identifier and the first set identifier in the adjustment identifier information; the determining submodule is used for determining the target cache structure and the target identification information when the target message is sent based on the distribution result of the supplementary cache structure; the determining submodule comprises an allocation unit and a non-allocation unit, and the non-allocation unit is used for not allocating the supplementary cache structure body when the numerical values of the first identifier and the first set identifier are both the non-default values; the buffer structure is used as the target buffer structure when the target message is sent, and the adjustment identification information is used as the target identification information; the allocation unit is configured to allocate the supplemental cache structure when the values of the first identifier and the first set identifier are not both the non-default values; setting the numerical value of the first identifier to be a non-default value to obtain a second set identifier; the buffer structure body and the supplementary buffer structure body are used as the target buffer structure body when the target message is transmitted, and the second set identifier and the first set identifier are used as the target identifier information;
The judging module is used for judging whether the target cache structure body is multiplexed or not based on the target identification information; the judging module comprises an extracting sub-module, a multiplexing sub-module and a recycling sub-module; the extraction submodule is used for extracting the target identification information from the target cache structure body after the sending interface finishes sending the target message; the multiplexing sub-module is configured to multiplex the target cache structure body when the target identification information is the first identification and the first set identification, and the target identification information is not set; and the recycling submodule is used for setting the target identification information and recycling the target cache structure when the target identification information is the second setting identification and the first setting identification.
4. An electronic device comprising a memory and a processor, the memory having stored therein program instructions which, when executed by the processor, perform the steps of the method of any of claims 1-2.
5. A computer readable storage medium, characterized in that the computer program instructions are stored in the readable storage medium, which computer program instructions, when being executed by a processor, perform the steps of the method according to any of claims 1-2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111600575.3A CN114285906B (en) | 2021-12-24 | 2021-12-24 | Message processing method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111600575.3A CN114285906B (en) | 2021-12-24 | 2021-12-24 | Message processing method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114285906A CN114285906A (en) | 2022-04-05 |
CN114285906B true CN114285906B (en) | 2024-01-23 |
Family
ID=80875080
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111600575.3A Active CN114285906B (en) | 2021-12-24 | 2021-12-24 | Message processing method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114285906B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115102875B (en) * | 2022-07-15 | 2024-04-09 | 深信服科技股份有限公司 | Data packet processing method, device, equipment and medium |
CN118200975A (en) * | 2022-12-13 | 2024-06-14 | 中兴通讯股份有限公司 | Message processing method and network side equipment |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09259099A (en) * | 1996-03-25 | 1997-10-03 | Hitachi Ltd | Method for magnifying and reducing structure body in parallel computers |
WO2007052420A1 (en) * | 2005-11-01 | 2007-05-10 | Ssd Company Limited | Image creating device |
CN108989081A (en) * | 2018-05-31 | 2018-12-11 | 福建三元达网络技术有限公司 | A kind of configuration packages method and system based on structural body |
CN109905720A (en) * | 2019-02-26 | 2019-06-18 | 北京工业大学 | Name the buffer replacing method based on video on-demand system under data network |
CN110730130A (en) * | 2019-10-22 | 2020-01-24 | 迈普通信技术股份有限公司 | Message sending method, device, network equipment and storage medium |
CN111310192A (en) * | 2020-02-12 | 2020-06-19 | 北京可信华泰信息技术有限公司 | Data processing method, device, storage medium and processor |
CN112671810A (en) * | 2021-03-18 | 2021-04-16 | 紫光恒越技术有限公司 | Data processing method and device, electronic equipment, server and storage equipment |
CN112989762A (en) * | 2021-03-24 | 2021-06-18 | 北京思特奇信息技术股份有限公司 | Socket protocol-based complex character string pattern matching method |
CN113342545A (en) * | 2021-05-31 | 2021-09-03 | 桂林优利特医疗电子有限公司 | Reliable data interaction method based on CAN |
CN113495796A (en) * | 2020-04-08 | 2021-10-12 | 腾讯科技(深圳)有限公司 | Service calling method and related equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2369006B (en) * | 2000-11-10 | 2004-04-07 | Nokia Mobile Phones Ltd | Mapping of internet protocol based data |
-
2021
- 2021-12-24 CN CN202111600575.3A patent/CN114285906B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09259099A (en) * | 1996-03-25 | 1997-10-03 | Hitachi Ltd | Method for magnifying and reducing structure body in parallel computers |
WO2007052420A1 (en) * | 2005-11-01 | 2007-05-10 | Ssd Company Limited | Image creating device |
CN108989081A (en) * | 2018-05-31 | 2018-12-11 | 福建三元达网络技术有限公司 | A kind of configuration packages method and system based on structural body |
CN109905720A (en) * | 2019-02-26 | 2019-06-18 | 北京工业大学 | Name the buffer replacing method based on video on-demand system under data network |
CN110730130A (en) * | 2019-10-22 | 2020-01-24 | 迈普通信技术股份有限公司 | Message sending method, device, network equipment and storage medium |
CN111310192A (en) * | 2020-02-12 | 2020-06-19 | 北京可信华泰信息技术有限公司 | Data processing method, device, storage medium and processor |
CN113495796A (en) * | 2020-04-08 | 2021-10-12 | 腾讯科技(深圳)有限公司 | Service calling method and related equipment |
CN112671810A (en) * | 2021-03-18 | 2021-04-16 | 紫光恒越技术有限公司 | Data processing method and device, electronic equipment, server and storage equipment |
CN112989762A (en) * | 2021-03-24 | 2021-06-18 | 北京思特奇信息技术股份有限公司 | Socket protocol-based complex character string pattern matching method |
CN113342545A (en) * | 2021-05-31 | 2021-09-03 | 桂林优利特医疗电子有限公司 | Reliable data interaction method based on CAN |
Non-Patent Citations (4)
Title |
---|
基于DSP的嵌入式协议栈的研究和实现;毛忠海;刘云;;舰船电子工程(07);全文 * |
嵌入式以太网终端在网络通信中的应用研究;谢兵森,陈演平;交通部上海船舶运输科学研究所学报(01);全文 * |
数据缓存按需同步的设计与应用;周京晖;;软件(05);全文 * |
煤矿视频监控系统设计;张郑军;;科技情报开发与经济(21);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN114285906A (en) | 2022-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114285906B (en) | Message processing method and device, electronic equipment and storage medium | |
CN110278161B (en) | Message distribution method, device and system based on user mode protocol stack | |
CN111163130B (en) | Network service system and data transmission method thereof | |
KR20160098438A (en) | Computer, control device and data processing method | |
CN112799825A (en) | Task processing method and network equipment | |
US20200204688A1 (en) | Picture book sharing method and apparatus and system using the same | |
WO2023103419A1 (en) | Message queue-based method and apparatus for sending 5g messages in batches, and electronic device | |
CN113361913A (en) | Communication service arranging method, device, computer equipment and storage medium | |
CN112333114A (en) | Data transmission method, device, storage medium, terminal and network access point equipment | |
CN113595807B (en) | Computer system, RDMA network card and data communication method | |
CN106330504B (en) | Method for realizing application and service controller | |
CN109150694B (en) | Dynamic scene information sending method, dynamic scene information display method, server and mobile terminal | |
CN114510299A (en) | Method, device and storage medium for processing artificial intelligence service | |
CN108989244B (en) | Data processing method, data processing device, storage medium and electronic equipment | |
CN115037654B (en) | Flow statistics method, device, electronic equipment and readable storage medium | |
CN116244231A (en) | Data transmission method, device and system, electronic equipment and storage medium | |
CN114116184B (en) | Data processing method and device in virtual scene, equipment and medium | |
CN116401045A (en) | Method and device for elastic pooling management of MSIX interrupt vector | |
CN116032614A (en) | Container network micro-isolation method, device, equipment and medium | |
CN115357179A (en) | Display screen management method, display screen management device, electronic equipment and storage medium | |
CN110337074B (en) | Interactive information transmission method, system and terminal equipment | |
CN114153312B (en) | VPA control method, device, equipment, storage medium and program product | |
CN118519797B (en) | Heterogeneous computing method, device, equipment and storage medium based on DDS | |
CN111596994B (en) | Mask control method and device for single page application, terminal equipment and storage medium | |
CN112764951B (en) | Message broadcasting method, device, electronic equipment and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |