CN114553938B - Communication message processing method and device, electronic equipment and storage medium - Google Patents

Communication message processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114553938B
CN114553938B CN202210179038.4A CN202210179038A CN114553938B CN 114553938 B CN114553938 B CN 114553938B CN 202210179038 A CN202210179038 A CN 202210179038A CN 114553938 B CN114553938 B CN 114553938B
Authority
CN
China
Prior art keywords
message
equipment
requester
target
communication
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
Application number
CN202210179038.4A
Other languages
Chinese (zh)
Other versions
CN114553938A (en
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210179038.4A priority Critical patent/CN114553938B/en
Publication of CN114553938A publication Critical patent/CN114553938A/en
Application granted granted Critical
Publication of CN114553938B publication Critical patent/CN114553938B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a processing method and device of a communication message, electronic equipment and a storage medium. Comprising the following steps: receiving a connection request message from a requester device; analyzing the connection request message, and determining the handshake times between the requester equipment and the receiver equipment; under the condition that the number of times of handshake meets the preset number of times, determining a Central Processing Unit (CPU) in the receiver equipment for processing the message sent by the requester equipment, and acquiring a first equipment identifier corresponding to the CPU; and carrying the first equipment identifier in a target communication message corresponding to the connection request message, and sending the target communication message to the receiver equipment. According to the application, the equipment identifier of the central processing unit is carried in the communication message sent to the requester equipment, so that the requester equipment can directly carry the equipment identifier in the message when sending the message to the receiver equipment according to the equipment identifier, the receiver equipment can directly transmit the message to the corresponding central processing unit for processing, and the message processing efficiency is improved.

Description

Communication message processing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and apparatus for processing a communication packet, an electronic device, and a storage medium.
Background
In the prior art, the parallel network processing technology like DPDK can greatly improve the network performance. However, since IP has a problem of fragmentation, after passing through a router, many TCP packets are fragmented, which cannot obtain the IP fragments of which TCP the IP packet is from the IP packet, and finally, the IP fragments cannot be processed in parallel, and the IP fragments need to be processed sequentially, and then distributed to each core for parallel processing in units of TCP connection.
Disclosure of Invention
In order to solve the technical problems or at least partially solve the technical problems, the application provides a processing method, a processing device, electronic equipment and a storage medium of a communication message.
According to an aspect of an embodiment of the present application, there is provided a method for processing a communication packet, applied to a receiver device, the method including:
receiving a connection request message from a requester device;
analyzing the connection request message, and determining the handshake times between the requester equipment and the receiver equipment;
under the condition that the number of times of handshake meets the preset number of times, determining a Central Processing Unit (CPU) in the receiver equipment for processing a message sent by the requester equipment, and acquiring a first equipment identifier corresponding to the CPU;
and carrying the first equipment identifier in a target communication message corresponding to the connection request message, and sending the target communication message to the receiver equipment, so that the requester equipment generates a communication message sent to the receiver equipment according to the first equipment identifier carried in the communication message.
Further, the carrying the first device identifier in a target communication packet corresponding to the connection request packet includes:
generating an initial communication message based on the connection request message;
embedding the first equipment identifier into an extension header of the initial communication message to obtain the target communication message.
Further, the sending the target communication message to the requester device includes:
querying a target router to which the requester equipment belongs;
and sending the target communication message to the target router, so that the target router fragments the target communication message to obtain a plurality of first fragment messages, and forwarding the first fragment messages to the requester equipment, wherein each first fragment message carries the first equipment identifier.
Further, the method further comprises:
receiving a plurality of second fragmentation messages from the target router, wherein the second fragmentation messages are obtained by fragmenting communication messages generated by the requester equipment under the condition that the handshake times meet preset times;
and recombining according to the second fragmented message to obtain an original communication message sent by the requester device, and analyzing the original communication message to obtain a second device identifier, wherein the second device identifier is a device identifier corresponding to a second central processing unit in the requester device, and the second central processing unit is used for processing the message sent by the receiver device.
According to another aspect of the embodiment of the present application, there is also provided a method for processing a communication packet, applied to a router, where the method includes:
receiving a communication message from a requester device or a receiver device;
performing slicing operation on the communication message to obtain a plurality of initial slicing messages, and extracting equipment identifiers carried in the communication message;
embedding the equipment identifier into the initial fragmentation message to obtain a target fragmentation message;
and sending the target fragment message to the requester device or the receiver device.
Further, the embedding the device identifier into the initial fragmentation message to obtain a target fragmentation message includes:
embedding the device identifier into the initial fragmentation message, and acquiring a shared key between the requester device and the receiver device;
and encrypting the initial fragment message by using the shared key to obtain the target fragment message.
According to another aspect of the embodiment of the present application, there is also provided a processing apparatus for a communication packet, including:
the receiving module is used for receiving a connection request message from the requester equipment;
the analysis module is used for analyzing the connection request message and determining the handshake times between the requester equipment and the receiver equipment;
the determining module is used for determining a Central Processing Unit (CPU) in the receiver equipment for processing a message sent by the requester equipment under the condition that the handshake times meet the preset times, and acquiring a first equipment identifier corresponding to the CPU;
and the sending module is used for carrying the first equipment identifier in a target communication message corresponding to the connection request message and sending the target communication message to the receiver equipment so that the receiver equipment generates a communication message sent to the receiver equipment according to the first equipment identifier carried in the communication message.
According to another aspect of the embodiment of the present application, there is also provided a processing apparatus for a communication packet, including:
the receiving module is used for receiving the communication message from the requester equipment or the receiver equipment;
the processing module is used for executing slicing operation on the communication message to obtain a plurality of initial slicing messages and extracting equipment identifiers carried in the communication message;
the embedding module is used for embedding the equipment identifier into the initial fragmentation message to obtain a target fragmentation message;
and the sending module is used for sending the target fragment message to the requester equipment or the receiver equipment.
According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program that performs the above steps when running.
According to another aspect of the embodiment of the present application, there is also provided an electronic device including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus; wherein: a memory for storing a computer program; and a processor for executing the steps of the method by running a program stored on the memory.
Embodiments of the present application also provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform the steps of the above method.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: according to the application, the equipment identifier of the central processing unit is carried in the communication message sent to the requester equipment, so that the requester equipment can directly carry the equipment identifier in the message when sending the message to the receiver equipment according to the equipment identifier, the receiver equipment can directly transmit the message to the corresponding central processing unit for processing, and the message processing efficiency is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the application or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a flowchart of a method for processing a communication packet according to an embodiment of the present application;
fig. 2 is a flowchart of a method for processing a communication packet according to another embodiment of the present application;
fig. 3 is a block diagram of a processing device for a communication packet according to an embodiment of the present application;
fig. 4 is a block diagram of a processing device for a communication packet according to another embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments, illustrative embodiments of the present application and descriptions thereof are used to explain the present application and do not constitute undue limitations of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
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 similar 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 embodiment of the application provides a processing method and device of a communication message, electronic equipment and a storage medium. The method provided by the embodiment of the application can be applied to any needed electronic equipment, for example, the electronic equipment can be a server, a terminal and the like, is not particularly limited, and is convenient to describe and is called as the electronic equipment for short hereinafter.
According to an aspect of the embodiment of the application, a method embodiment of a method for processing a communication message is provided. Fig. 1 is a flowchart of a method for processing a communication packet according to an embodiment of the present application, as shown in fig. 1, where the method includes:
step S11, receiving a connection request message from a requester device.
The method provided by the embodiment of the application is applied to the receiver equipment, and the connection request message is generated by the requester equipment in the process of establishing connection by the receiver equipment. The connection request message may be a TCP (Transmission Control Protocol) message, where the requesting device sends a TCP message to the receiving device multiple times, so as to perform multiple handshakes with the receiving device, thereby implementing a relationship between the requesting device and the receiving device.
Step S12, analyzing the connection request message and determining the handshake times between the requester device and the receiver device.
In the embodiment of the present application, after receiving the connection request message, the receiving device parses the connection request message, so as to obtain the content included in the connection request message, for example: the connection request message includes at least one acknowledgement message. And determining the number of handshakes currently performed between the requester device and the receiver device according to the number corresponding to the confirmation information.
As one example, a first handshake: when a connection is established, the requesting device SENDs a syn packet (syn=j) to the receiving device, and enters a SYN (Synchronize Sequence Numbers) _send state, waiting for acknowledgement by the receiving device.
Second handshake: the receiving device receives the SYN packet, and must confirm the SYN (ack=j+1) of the client, and at the same time, send a SYN packet (syn=k), that is, a syn+ack packet, where the receiving device enters a syn_recv state;
third handshake: the request device receives the syn+ack packet of the receiving device, and sends an acknowledgement packet ACK (ack=k+1) to the receiving device, and after the packet is sent, the request device and the receiving device enter an ESTABLISHED state, so as to complete the three-way handshake.
Step S13, under the condition that the number of times of handshake meets the preset number of times, determining a Central Processing Unit (CPU) in the receiver equipment for processing the message sent by the requester equipment, and acquiring a first equipment identifier corresponding to the CPU.
In the embodiment of the application, if the number of times of handshake meets three times, the number of times of handshake meets the preset number of times, at this time, the receiver device directly determines a Central Processing Unit (CPU) in the receiver device for processing the message sent by the requester device, and acquires a first device identifier corresponding to the CPU, where the first device identifier may be a CPU ID. It should be noted that, there are multiple cpus in the receiving device, and when the number of handshakes satisfies the preset number, the receiving device selects one cpu from the multiple cpus according to the performance of the cpu, where the cpu is used to process the message sent by the requesting device.
Step S14, the first equipment identifier is carried in a target communication message corresponding to the connection request message, and the target communication message is sent to the receiver equipment, so that the requester equipment generates a communication message sent to the receiver equipment according to the first equipment identifier carried in the communication message.
In the embodiment of the application, the device identifier is carried in the target communication message corresponding to the connection request message, which comprises the following steps of A1-A2:
and A1, generating an initial communication message based on the connection request message.
In the embodiment of the application, the receiving device automatically generates the response message corresponding to the message, namely the initial communication message, according to the connection request message.
And step A2, embedding the first equipment identifier into an extension header of the initial communication message to obtain a target communication message.
In the embodiment of the application, a first device identifier is embedded into an extension header of an initial communication message to obtain a target communication message, wherein the target communication message comprises a message header, an extension header and an upper layer protocol data unit, and the extension header and the upper layer protocol data unit are used as effective loads of the target communication message.
According to the embodiment of the application, the first equipment identifier is embedded into the extension header of the message, and then the message can be fragmented according to the first equipment identifier when the router fragments, so that the first equipment identifier is carried in the fragmented message, and therefore, when the fragmented message is processed by the follow-up request party equipment, the message sent to the receiving party equipment can be directly generated according to the first equipment identifier, and after the message is received by the receiving party equipment, the message can be directly sent to the central processor corresponding to the first equipment identifier, so that the message processing efficiency is improved.
In the embodiment of the application, the target communication message is sent to the requester equipment, which comprises the following steps of:
and step B1, inquiring a target router to which the requester equipment belongs.
In the embodiment of the present application, when the receiver device sends the target communication message, the receiver device may query the target router, for example: the receiver device is a total server, and the power requester device can be any one of the clients in the multiple machine rooms, and the total server can query a target router in the machine room where the client is located when sending a message to the client.
And B2, sending a target communication message to the target router so that the target router segments the target communication message to obtain a plurality of first segment messages, and forwarding the first segment messages to the requesting device, wherein each first segment message carries a first device identifier.
In the embodiment of the application, the receiver equipment sends the target communication message to the target router, and the target router performs the slicing operation after receiving the target communication message to obtain a plurality of slicing messages, and simultaneously embeds the first equipment identifier carried by the extension header into each slicing message.
In the embodiment of the application, the method further comprises the following steps:
and step C1, receiving a plurality of second fragmentation messages from the target router, wherein the second fragmentation messages are obtained by fragmenting communication messages generated according to the condition that the number of handshaking times of the requesting device meets the preset number of times.
And C2, recombining according to the second fragmented message to obtain an original communication message sent by the requester device, and analyzing the original communication message to obtain a second device identifier, wherein the second device identifier is a device identifier corresponding to a second central processing unit in the requester device, and the second central processing unit is used for processing the message sent by the receiver device.
In the embodiment of the application, after the connection between the receiver device and the requester device is established, the receiver device can receive the message sent by the requester device through the target router, and the target router performs the slicing operation on the message, so that the receiver device finally receives a second slicing message from the target router, the second slicing message carries a second device identifier, the second device identifier is an identifier of a certain central processor in the requester device, and the central processor is used for specially processing the message from the receiver device.
As an example, the receiver device is a server, the requester device is a client, the CPU1 and the CPU2 are disposed in the server, and the CPU3 and the CPU4 are disposed in the client. After the connection is established between the server and the client, the server determines that the CPU1 is to process the message from the client. The client will determine that the CPU4 is to process the message from the server. Then the two mutually send communication messages, the communication message sent by the server carries the equipment identifier of the CPU1, and the communication message sent by the client carries the equipment identifier of the CPU4. After receiving the communication message sent by the client, the server stores the device identifier of the CPU4. After receiving the communication message sent by the server, the client stores the device identifier of the CPU 1. When the subsequent server generates a message sent to the client, the device identifier of the CPU4 is carried in the message. Similarly, when the client generates a message sent to the server, the device identifier of the CPU1 is carried in the message.
The client sends a communication message to the router, the extension header of the communication message comprises the equipment identifier of the CPU4, the router segments the communication message to obtain a plurality of segment messages, and each segment identifier carries the equipment identifier of the CPU 1. The router forwards the plurality of fragmented messages to the server, and after receiving the fragmented messages, the server sends the fragmented messages with the same equipment identifier to the corresponding CPU so that the corresponding CPU reorganizes the fragmented messages to obtain original messages and processes the messages.
According to the application, the equipment identifier of the central processing unit is carried in the communication message sent to the requester equipment, so that the requester equipment can directly carry the equipment identifier in the message when sending the message to the receiver equipment according to the equipment identifier, the receiver equipment can directly transmit the message to the corresponding central processing unit for processing, and the message processing efficiency is improved.
According to another aspect of the embodiment of the present application, there is further provided a method for processing a communication packet, and fig. 2 is a flowchart of a method for processing a communication packet provided by the embodiment of the present application, as shown in fig. 2, where the method includes:
step S21, a communication message from the requester device or the receiver device is received.
Step S22, executing slicing operation to the communication message to obtain a plurality of initial slicing messages, and extracting the equipment identification carried in the communication message.
Step S23, embedding the device identifier into the initial fragmentation message to obtain a target fragmentation message.
In the embodiment of the application, the device identifier is embedded into the initial fragmentation message to obtain the target fragmentation message, which comprises the following steps of D1-D2:
and D1, embedding the device identifier into the initial fragmentation message, and acquiring a shared key between the requester device and the receiver device.
And D2, encrypting the initial fragmented message by using the shared key to obtain the target fragmented message.
In the embodiment of the application, in the process of generating the target fragment message, the device identifier is embedded into the initial message fragment, and the shared secret key between the requester device and the receiver device is acquired. The shared key may be obtained by negotiating after the connection between the requesting device and the receiving device is established, after negotiating the shared key, the two devices send the shared key and the authentication information of the respective devices to the router, so that the router stores the shared key after confirming that the authentication information passes, and then encrypts the initial fragmentation message by using the shared key to obtain the target fragmentation message.
Step S24, the target fragment message is sent to the requester device or the receiver device.
In the embodiment of the application, since the device identifier unloads the extension header with the communication message, when the router performs the slicing operation on the communication message, the device identifier is extracted from the extension header, embedded into each slicing message, and sent to the requesting device or the receiving device. The method comprises the steps that a request party device or a receiving party device distributes the fragmented messages to corresponding CPUs according to device identifiers carried in the fragmented messages, so that the CPU reorganizes the fragmented messages to obtain original communication messages.
Fig. 3 is a block diagram of a processing apparatus for a communication packet according to an embodiment of the present application, where the apparatus may be implemented as part or all of an electronic device by software, hardware, or a combination of both. As shown in fig. 3, the apparatus includes:
the receiving module 31 is configured to receive a connection request message from a requester device.
The parsing module 32 is configured to parse the connection request message and determine the number of handshakes between the requester device and the receiver device.
The determining module 33 is configured to determine a central processor in the receiver device for processing a message sent by the requester device, and obtain a first device identifier corresponding to the central processor, where the number of handshakes satisfies a preset number.
And the sending module 34 is configured to carry the first device identifier in a target communication packet corresponding to the connection request packet, and send the target communication packet to the receiver device, so that the receiver device generates a communication packet sent to the receiver device according to the first device identifier carried in the communication packet.
In the embodiment of the present application, the sending module 34 is configured to generate an initial communication message based on the connection request message; embedding the first equipment identifier into an extension header of the initial communication message to obtain a target communication message.
In the embodiment of the present application, the sending module 34 is configured to query the target router to which the requester device belongs; and sending the target communication message to the target router so that the target router fragments the target communication message to obtain a plurality of first fragment messages, and forwarding the first fragment messages to the requesting device, wherein each first fragment message carries a first device identifier.
In the embodiment of the present application, the processing device of the communication message further includes: the reorganization module is used for receiving a plurality of second fragmentation messages from the target router, wherein the second fragmentation messages are obtained by fragmenting communication messages generated according to the condition that the number of handshaking times of the requesting device meets the preset number of times; and recombining according to the second fragmented message to obtain an original communication message sent by the requester device, and analyzing the original communication message to obtain a second device identifier, wherein the second device identifier is a device identifier corresponding to a second central processing unit in the requester device, and the second central processing unit is used for processing the message sent by the receiver device.
Fig. 4 is a block diagram of a processing apparatus for a communication packet according to an embodiment of the present application, where the apparatus may be implemented as part or all of an electronic device by software, hardware, or a combination of both. As shown in fig. 4, the apparatus includes:
a receiving module 41, configured to receive a communication packet from a requester device or a receiver device;
the processing module 42 is configured to perform a slicing operation on the communication packet to obtain a plurality of initial slicing packets, and extract a device identifier carried in the communication packet;
an embedding module 43, configured to embed the device identifier into the initial fragmentation message to obtain a target fragmentation message;
a sending module 44, configured to send the target fragment packet to the requesting device or the receiving device.
In the embodiment of the present application, the embedding module 43 is configured to embed the device identifier into the initial fragmentation message, and obtain a shared key between the requester device and the receiver device; and encrypting the initial fragment message by using the shared key to obtain the target fragment message.
The embodiment of the application also provides an electronic device, as shown in fig. 5, the electronic device may include: the device comprises a processor 1501, a communication interface 1502, a memory 1503 and a communication bus 1504, wherein the processor 1501, the communication interface 1502 and the memory 1503 are in communication with each other through the communication bus 1504.
A memory 1503 for storing a computer program;
the processor 1501, when executing the computer program stored in the memory 1503, implements the steps of the above embodiments.
The communication bus mentioned by the above terminal may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the terminal and other devices.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor 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 Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present application, a computer readable storage medium is provided, where instructions are stored, when the computer readable storage medium runs on a computer, to cause the computer to perform the method for processing a communication packet according to any one of the foregoing embodiments.
In yet another embodiment of the present application, a computer program product containing instructions that, when executed on a computer, cause the computer to perform the method for processing a communication packet according to any of the foregoing embodiments is also provided.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk), etc.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.
The foregoing is only a specific embodiment of the application to enable those skilled in the art to understand or practice the application. 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 application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (9)

1. A method for processing a communication packet, applied to a receiving device, the method comprising:
receiving a connection request message from a requester device;
analyzing the connection request message, and determining the handshake times between the requester equipment and the receiver equipment;
under the condition that the number of times of handshake meets the preset number of times, determining a Central Processing Unit (CPU) in the receiver equipment for processing a message sent by the requester equipment, and acquiring a first equipment identifier corresponding to the CPU;
carrying the first equipment identifier in a target communication message corresponding to a connection request message, and sending the target communication message to the requester equipment so that the requester equipment generates a communication message sent to the receiver equipment according to the first equipment identifier carried in the communication message;
the sending the target communication message to the requester device includes:
querying a target router to which the requester equipment belongs;
and sending the target communication message to the target router, so that the target router fragments the target communication message to obtain a plurality of first fragment messages, and forwarding the first fragment messages to the requester equipment, wherein each first fragment message carries the first equipment identifier.
2. The method of claim 1, wherein the carrying the first device identifier in the target communication packet corresponding to the connection request packet includes:
generating an initial communication message based on the connection request message;
embedding the first equipment identifier into an extension header of the initial communication message to obtain the target communication message.
3. The method according to claim 1, wherein the method further comprises:
receiving a plurality of second fragmentation messages from the target router, wherein the second fragmentation messages are obtained by fragmenting communication messages generated by the requester equipment under the condition that the handshake times meet preset times;
and recombining according to the second fragmented message to obtain an original communication message sent by the requester device, and analyzing the original communication message to obtain a second device identifier, wherein the second device identifier is a device identifier corresponding to a second central processing unit in the requester device, and the second central processing unit is used for processing the message sent by the receiver device.
4. A method for processing a communication packet, applied to a router, the method comprising:
receiving a communication message from a requester device or a receiver device;
performing slicing operation on the communication message to obtain a plurality of initial slicing messages, and extracting equipment identifiers carried in the communication message;
embedding the equipment identifier into the initial fragmentation message to obtain a target fragmentation message;
and sending the target fragment message to the requester device or the receiver device.
5. The method of claim 4, wherein the embedding the device identifier into the initial burst message to obtain a target burst message comprises:
embedding the device identifier into the initial fragmentation message, and acquiring a shared key between the requester device and the receiver device;
and encrypting the initial fragment message by using the shared key to obtain the target fragment message.
6. A communication message processing apparatus, comprising:
the receiving module is used for receiving a connection request message from the requester equipment;
the analysis module is used for analyzing the connection request message and determining the handshake times between the requester equipment and the receiver equipment;
the determining module is used for determining a Central Processing Unit (CPU) in the receiver equipment for processing a message sent by the requester equipment under the condition that the handshake times meet the preset times, and acquiring a first equipment identifier corresponding to the CPU;
the sending module is used for carrying the first equipment identifier in a target communication message corresponding to the connection request message and sending the target communication message to the requester equipment so that the requester equipment generates a communication message sent to the receiver equipment according to the first equipment identifier carried in the communication message;
the sending module is used for inquiring a target router to which the requester equipment belongs; and sending the target communication message to the target router, so that the target router fragments the target communication message to obtain a plurality of first fragment messages, and forwarding the first fragment messages to the requester equipment, wherein each first fragment message carries the first equipment identifier.
7. A communication message processing apparatus, comprising:
the receiving module is used for receiving the communication message from the requester equipment or the receiver equipment;
the processing module is used for executing slicing operation on the communication message to obtain a plurality of initial slicing messages and extracting equipment identifiers carried in the communication message;
the embedding module is used for embedding the equipment identifier into the initial fragmentation message to obtain a target fragmentation message;
and the sending module is used for sending the target fragment message to the requester equipment or the receiver equipment.
8. A storage medium comprising a stored program, wherein the program when run performs the method of any one of the preceding claims 1 to 5.
9. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus; wherein:
a memory for storing a computer program;
a processor for performing the method of any one of claims 1 to 5 by running a program stored on a memory.
CN202210179038.4A 2022-02-25 2022-02-25 Communication message processing method and device, electronic equipment and storage medium Active CN114553938B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210179038.4A CN114553938B (en) 2022-02-25 2022-02-25 Communication message processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210179038.4A CN114553938B (en) 2022-02-25 2022-02-25 Communication message processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114553938A CN114553938A (en) 2022-05-27
CN114553938B true CN114553938B (en) 2023-08-15

Family

ID=81678929

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210179038.4A Active CN114553938B (en) 2022-02-25 2022-02-25 Communication message processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114553938B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630731A (en) * 2015-12-24 2016-06-01 曙光信息产业(北京)有限公司 Network card data processing method and device in multi-CPU (Central Processing Unit) environment
CN109067935A (en) * 2018-08-16 2018-12-21 深圳市风云实业有限公司 Packet message processing method and multi-core processor system
CN111786905A (en) * 2020-06-30 2020-10-16 北京天融信网络安全技术有限公司 Message reassembly method and apparatus, processor, storage medium, and network device
CN112311692A (en) * 2019-07-31 2021-02-02 华为技术有限公司 Message processing method and device and end equipment
CN112351046A (en) * 2021-01-04 2021-02-09 腾讯科技(深圳)有限公司 Message transmission method, device, electronic equipment and medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630731A (en) * 2015-12-24 2016-06-01 曙光信息产业(北京)有限公司 Network card data processing method and device in multi-CPU (Central Processing Unit) environment
CN109067935A (en) * 2018-08-16 2018-12-21 深圳市风云实业有限公司 Packet message processing method and multi-core processor system
CN112311692A (en) * 2019-07-31 2021-02-02 华为技术有限公司 Message processing method and device and end equipment
CN111786905A (en) * 2020-06-30 2020-10-16 北京天融信网络安全技术有限公司 Message reassembly method and apparatus, processor, storage medium, and network device
CN112351046A (en) * 2021-01-04 2021-02-09 腾讯科技(深圳)有限公司 Message transmission method, device, electronic equipment and medium

Also Published As

Publication number Publication date
CN114553938A (en) 2022-05-27

Similar Documents

Publication Publication Date Title
US20010016907A1 (en) Security protocol structure in application layer
CN110581812A (en) Data message processing method and device
MX2007010921A (en) Method for communication between an application and a client.
CN114338844B (en) Cross-protocol communication method and device between client servers
CN109548022B (en) Method for mobile terminal user to remotely access local network
CN112134960B (en) Data request method and device
CN111917900A (en) Request processing method and device for domain name proxy
CN110417632B (en) Network communication method, system and server
CN114172929A (en) Communication method, device and gateway
CN113553184A (en) Method, device, electronic equipment and readable storage medium for realizing load balancing
CN110311962B (en) Message pushing method, system and computer readable storage medium
CN113438256B (en) Data transmission method, system and proxy server based on double-layer SSL
CN112910663B (en) Method, device, equipment and storage medium for message broadcasting and terminal registration
CN114553938B (en) Communication message processing method and device, electronic equipment and storage medium
CN114499969B (en) Communication message processing method and device, electronic equipment and storage medium
US7526797B2 (en) System and method for processing callback requests included in web-based procedure calls through a firewall
CN109688204B (en) File downloading method, node and terminal based on NDN (named data networking)
CN115333782A (en) Data transmission method, data reception method, storage medium, and computer device
CN113746807A (en) Block chain node point support cryptographic algorithm communication detection method
CN113810330A (en) Method, device and storage medium for sending verification information
CN110288356B (en) Payment service processing method, device, electronic equipment, storage medium and system
CN114024707B (en) Service message processing method and device, electronic equipment and storage medium
CN111240867A (en) Information communication system and method
WO2019200690A1 (en) Data protection method, server and computer readable storage medium
CN115914367B (en) Message pushing method and system of intelligent device

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