Data packet processing and identification method and device, storage medium and terminal

By embedding fingerprint information in data packets, it solves the problem of difficult identification of data packets in network address translation or virtual private network scenarios in large-scale complex networks, realizes packet identity information identification and policy control in these scenarios, and reduces to identify the complexity and cost.

CN118803076APending Publication Date: 2024-10-18BEIJING HONGTENG INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310397276.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-12
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In large-scale complex networks, in scenarios such as Network Address Translation (NAT) or Virtual Private Network (VPN), the existing identification methods based on terminal IP address or port information fail and cannot complete policy control, resulting in data packet identity information. Difficulty in identification.

Method used

Embed fingerprint information in the data packet, by expanding the data packet header, such as embedding fingerprint information in the integer field of the target option header, to generate a second communication data packet containing fingerprint information to improve performance in network address translation or virtual private network scenarios. The identification probability of packet identity information.

Benefits of technology

By embedding fingerprint information in data packets, it can improve the identification probability of data packet identity information in scenarios such as network address translation or virtual private network, reduce the complexity of identification at the gateway, reduce embedding costs, and improve the accuracy of data packet identification. sex.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118803076A_ABST
    Figure CN118803076A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data packet processing and identification method and device, a storage medium and a terminal, and relates to the technical field of big data processing. The data packet processing method comprises the following steps: acquiring a first communication data packet of a predetermined communication protocol; fingerprint information is embedded in the first communication data packet, a second communication data packet is generated, and the fingerprint information is identity information generated according to a server fingerprint strategy or terminal equipment information. The data packet identification method comprises the steps that at least one second communication data packet of a predetermined communication protocol sent to a gateway is acquired, the second communication data packet comprises fingerprint information, and the fingerprint information is identity information generated according to a server fingerprint strategy or terminal equipment information; and identifying the fingerprint information in the at least one second communication data packet. According to the technical scheme of the embodiment of the invention, the probability that the identity information of the data packet is identified can be improved to a certain extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of big data processing technology, and in particular to a data packet processing and identification method, device, computer-readable storage medium and terminal. Background Art

[0002] In the process of network management, it is usually necessary to complete policy control at the network gateway based on the terminal identity information. At present, identity recognition is based on the terminal IP address or port information to identify the communication identity; however, in large-scale and complex networks, there are usually network scenarios such as Network Address Translation (NAT) or Virtual Private Network (VPN), which can easily cause the current method of identifying the communication identity to fail and fail to complete policy control.

[0003] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0004] The purpose of the present application is to provide a data packet processing and identification method, apparatus, computer-readable storage medium and device, which can embed fingerprint information in the data packet, at least in network scenarios such as network address translation or virtual private network, to a certain extent improve the probability of data packet identity information being identified.

[0005] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0006] According to the first aspect of the present application, a data packet processing method is provided, the method comprising: obtaining a first communication data packet of a predetermined communication protocol; embedding fingerprint information in the first communication data packet to generate a second communication data packet, the fingerprint information being identity information generated according to a server fingerprint policy or terminal device information.

[0007] In one embodiment of the present application, the embedding of fingerprint information in the first communication data packet comprises: expanding a data packet header of the first communication data packet; and embedding the fingerprint information in the expanded data packet header of the first communication data packet.

[0008] In one embodiment of the present application, the above-mentioned expansion of the data packet header of the first communication data packet includes: extending the target option header on the data packet header of the first communication data packet; the embedding of the fingerprint information in the expanded data packet header of the first communication data packet includes: embedding the fingerprint information in the integer field of the target option header.

[0009] In one embodiment of the present application, the above-mentioned generating a second communication data packet includes: copying the data packet header of the first communication data packet, the fingerprint information, and the data segment of the first communication data packet in sequence into a pre-configured memory to generate the second communication data packet; wherein the length of the pre-configured memory is the sum of the data packet length of the first communication data packet and the length of the fingerprint information.

[0010] In one embodiment of the present application, the above-mentioned copying the data packet header of the first communication data packet, the fingerprint information, and the data segment of the first communication data packet in sequence to a pre-configured memory includes: copying the data packet header of the first communication data packet to the zero offset of the pre-configured memory; copying the fingerprint information to the offset of the data packet header length of the first communication data packet in the pre-configured memory; copying the data segment of the first communication data packet to the offset of the data packet header length of the first communication data packet and the fingerprint information length in the pre-configured memory.

[0011] In one embodiment of the present application, before obtaining the first communication data packet of the predetermined communication protocol as described above, the method also includes: monitoring the data packet to be detected; determining whether the data packet to be detected is of the predetermined communication protocol, the predetermined communication protocol is the Internet Protocol version 6 IPV6 protocol, and if so, the data packet to be detected is the first communication data packet.

[0012] According to the second aspect of the present application, a data packet identification method is provided, the method comprising: obtaining at least one second communication data packet of a predetermined communication protocol sent to a gateway, the second communication data packet comprising fingerprint information, the fingerprint information being identity information generated according to a server fingerprint policy or terminal device information; and identifying the fingerprint information in at least one of the second communication data packets.

[0013] According to the third aspect of the present application, a data packet processing device is provided, which includes: an acquisition module for acquiring a first communication data packet of a predetermined communication protocol; an embedding generation module for embedding fingerprint information in the first communication data packet to generate a second communication data packet, wherein the fingerprint information is identity information generated according to a server fingerprint policy or terminal device information.

[0014] According to the fourth aspect of the present application, a terminal is provided, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the data packet processing method described in the first aspect and the data packet identification and processing method described in the second aspect when executing the computer program.

[0015] According to the fifth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the data packet processing method described in the first aspect and the data packet identification method described in the second aspect are implemented.

[0016] The data packet processing and identification method, device, computer storage medium and terminal provided in the embodiments of the present application have the following technical effects:

[0017] Obtain a first communication data packet of a predetermined communication protocol; embed fingerprint information in the first communication data packet to generate a second communication data packet; on the one hand, by embedding fingerprint information in the data packet, the probability of data packet identity information being recognized can be increased to a certain extent at least in network scenarios such as network address translation or virtual private networks; on the other hand, embedding fingerprint information in the data packet can be implemented at the network card layer, which can reduce the embedding cost to a certain extent. And

[0018] Acquire at least one second communication data packet of a predetermined communication protocol sent to a gateway, the second communication data packet including fingerprint information; and identify the fingerprint information in the at least one second communication data packet. By identifying the fingerprint information in the second communication data packet, the complexity of identifying the identity information of the data packet at the gateway can be reduced to a certain extent, and the probability of data packet identification can be improved.

[0019] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 A schematic diagram showing an application scenario of a data packet processing and identification method provided in an embodiment of the present application;

[0022] Figure 2 A flowchart of a data packet processing method provided by an exemplary embodiment of the present application is shown;

[0023] Figure 3 A flowchart of a data packet processing method provided by another exemplary embodiment of the present application is shown;

[0024] Figure 4 A flowchart of a data packet identification method provided by an exemplary embodiment of the present application is shown;

[0025] Figure 5 A structural diagram of a data packet processing device provided by an embodiment of the present application is shown;

[0026] Figure 6 A block diagram of a terminal provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0027] In order to make the objectives, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0028] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0029] In the description of the present application, it should be understood that the terms "first", "second", etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0030] In the related technology, in the process of network management, it is usually necessary to complete policy control at the network gateway based on the terminal identity information. At present, identity recognition is based on the terminal IP address or port information to identify the communication identity; however, in large-scale and complex networks, there are usually network scenarios such as Network Address Translation (NAT) or Virtual Private Network (VPN), which easily lead to the failure of the current method of identifying the communication identity and the inability to complete policy control.

[0031] In response to the problems existing in the above-mentioned related technologies, the present application proposes a data packet processing and identification method, device, computer storage medium and terminal. By embedding fingerprint information in the data packet, it can at least ensure that the identity information of the data packet is not lost in network scenarios such as network address translation or virtual private networks, thereby improving the probability of the data packet being identified to a certain extent.

[0032] Figure 1A schematic diagram showing an application scenario of the data packet processing and identification method provided in an embodiment of the present application

[0033] Reference Figure 1 As shown, the application scenario includes a gateway server 100 with computing and processing functions, a server 110 with computing and processing functions, and at least one terminal device 120, wherein the server 110 stores a server fingerprint policy configured by a developer according to user or its own needs, or stores terminal device information of at least one terminal device 120 having a communication connection therewith, and generates identity information of the corresponding terminal device according to the server fingerprint policy or the terminal device information, and the identity information is the fingerprint information of the corresponding device, and the fingerprint information of multiple terminal devices 120 may be the same or different.

[0034] When processing the data packet to be monitored from the terminal device 120, the server 110 obtains a first communication data packet of a predetermined communication protocol; embeds fingerprint information in the first communication data packet to generate a second communication data packet. Then, the generated second communication data packet is sent to the gateway server 100. On the one hand, by embedding fingerprint information in the data packet, the probability of the identity information of the data packet being recognized can be improved to a certain extent at least in network scenarios such as network address translation or virtual private network; on the other hand, embedding fingerprint information in the data packet can be implemented at the network card layer, which can reduce the embedding cost to a certain extent.

[0035] The gateway server 100 obtains at least one second communication data packet of a predetermined communication protocol sent to the gateway, and identifies the fingerprint information in the at least one second communication data packet. By identifying the fingerprint information in the second communication data packet, the complexity of identifying the identity information of the data packet at the gateway can be reduced to a certain extent, and the probability of data packet identification can be improved.

[0036] Figure 2 A flow chart of a data packet processing method provided according to an embodiment of the present application is shown. The execution subject of the data packet processing method may be a computing device with computing processing functions, such as the server 110 in the above-mentioned application scenario embodiment. The data packet processing method includes steps S201 to S202. The data packet processing method in the example embodiment is described in detail below in conjunction with the accompanying drawings.

[0037] Reference Figure 2 As shown, in step S201, a first communication data packet of a predetermined communication protocol is obtained.

[0038] In an exemplary embodiment, the predetermined communication protocol is Internet Protocol Version 6 (IPV6) protocol. The server obtains a first communication data packet whose communication protocol is the IPv6 protocol.

[0039] Step S202: embed fingerprint information into the first communication data packet to generate a second communication data packet.

[0040] In an example embodiment, the fingerprint information is identity information generated according to a server fingerprint policy or terminal device information, and the server fingerprint policy is an identity information generation rule configured by a developer according to preset conditions and fields. The terminal device information may include an IP address or port information of the terminal device.

[0041] In combination with the above embodiment, the server generates fingerprint information according to the server fingerprint policy or the terminal device information, embeds the generated fingerprint information into the first communication data packet, and then generates the second communication data packet.

[0042] It should be noted that, at the network card layer, the server can embed the fingerprint information into the first communication data packet, which can reduce the embedding cost to a certain extent. And the communication protocol of the first communication data packet and the communication protocol of the second communication data packet are both IPV6 protocols.

[0043] according to Figure 2 According to the technical solution in the example embodiment, a first communication data packet of a predetermined communication protocol is obtained; fingerprint information is embedded in the first communication data packet to generate a second communication data packet; on the one hand, by embedding fingerprint information in the data packet, the probability of the identity information of the data packet being recognized can be improved to a certain extent at least in network scenarios such as network address translation or virtual private networks; on the other hand, embedding fingerprint information in the data packet can be implemented at the network card layer, which can reduce the embedding cost to a certain extent.

[0044] Figure 3 A flow chart of a data packet processing method provided according to another embodiment of the present application is shown. The execution subject of the data packet processing method may be a computing device with computing processing functions, such as the server 110 in the above-mentioned application scenario embodiment. The data packet processing method includes steps S301 to S304. The data packet processing method in the example embodiment is described in detail below in conjunction with the accompanying drawings.

[0045] Reference Figure 3 As shown, in step S301, the data packet to be detected is monitored.

[0046] In an exemplary embodiment, the data packets to be detected include data packets using a predetermined communication protocol and data packets using a non-predetermined communication protocol. The predetermined communication protocol is the IPv6 protocol.

[0047] Step S302, determining whether the data packet to be detected is of a predetermined communication protocol, if so, the data packet to be detected is a first communication data packet.

[0048] In an exemplary embodiment, the server monitors the data packet to be detected and determines whether the data packet to be detected is of IPV6 protocol. If so, the data packet to be detected is the first communication data packet. If not, the server continues to monitor the data packet to be detected.

[0049] Step S303: Acquire a first communication data packet.

[0050] In an exemplary embodiment, in combination with the above embodiment, if the communication protocol of the data packet to be detected is the IPV6 protocol, the data packet to be detected is the first communication data packet, and the first communication data packet is acquired.

[0051] In a specific embodiment, after determining that the data packet to be detected is the first communication data packet, a data packet header of the first communication data packet, a data length of the first communication data packet, and a data segment of the first communication data packet are obtained.

[0052] Step S304: embed the fingerprint information into the first communication data packet to generate a second communication data packet.

[0053] In an example embodiment, embedding fingerprint information in the first communication data packet includes: expanding the data packet header of the first communication data packet; and embedding fingerprint information in the data packet header of the expanded first communication data packet. Specifically, in combination with the above embodiment, after obtaining the data packet of the first communication data packet, the server extends the target option header on the data packet header of the first communication data packet; and embeds fingerprint information in the integer field of the target option header.

[0054] It is understandable that the communication protocol of the first communication data packet is the IPv6 protocol, the packet header of the IPv6 protocol is extended, the type is the destination option header IPv6 Destination Option Header (60), and the fingerprint information is embedded in the integer intpart field of the IPv6 Destination Option Header. The intpart field is 4 bytes, and the content is the fingerprint information, such as 112223344.

[0055] In an example embodiment, generating a second communication data packet includes: copying a data packet header, fingerprint information, and a data segment of the first communication data packet in sequence into a preconfigured memory to generate the second communication data packet, wherein the length of the preconfigured memory is the sum of the data packet length of the first communication data packet and the length of the fingerprint information.

[0056] Specifically, in combination with the above embodiments, the server obtains the data packet header of the first communication data packet, the data length of the first communication data packet, the data segment of the first communication data packet, and after embedding the fingerprint information in the integer field of the target option header, copies the data packet header of the first communication data packet to the zero offset of the pre-configured memory; copies the fingerprint information to the offset of the data packet header length of the first communication data packet in the pre-configured memory; and copies the data segment of the first communication data packet to the offset of the data packet header length and the fingerprint information length of the first communication data packet in the pre-configured memory.

[0057] In combination with the above embodiments, it can be understood that, for example, the data packet header of the first communication data packet is AAABBBCCC when the fingerprint information is not embedded, and the data segment of the first communication data packet is (DATA). After the data packet header of the first communication data packet is expanded and the fingerprint information is embedded, it becomes AAABBBCCC(AE123). Then, the data packet, the fingerprint information and the data segment of the first communication data packet are copied to a pre-configured memory in sequence to generate a second communication data packet. The content of the second communication data packet is AAABBBCCC(AE123)(DATA).

[0058] It should be noted that after the server generates the second communication data packet, the server also needs to modify the data length of the second communication data packet so that the generated second communication data packet complies with the provisions of the IPV6 protocol, and then send the second communication data packet to the gateway, and the gateway server identifies the second communication data packet. In addition, before the server executes step S301, the developer can register a driver in the middle layer so that the server uses the driver to loop through steps S301 to S304 for the data packet to be detected.

[0059] according to Figure 3 The technical solution in the example embodiment is to monitor the data packet to be detected; determine whether the data packet to be detected is a predetermined communication protocol, the predetermined communication protocol is the Internet Protocol version 6 (IPV6) protocol, and if so, the data packet to be detected is a first communication data packet; obtain the first communication data packet; embed fingerprint information in the first communication data packet to generate a second communication data packet.

[0060] On the one hand, by embedding fingerprint information in the data packet, the probability of the data packet identity information being identified can be improved to a certain extent, at least in network scenarios such as network address translation or virtual private networks; on the other hand, embedding fingerprint information in the data packet can be implemented at the network card layer, which can reduce the embedding cost to a certain extent; on the other hand, by expanding the data packet header of the first communication data packet and embedding fingerprint information, it has good compatibility and can effectively reduce the impact on the information carried by the first communication data packet.

[0061] Figure 4 A flow chart of a data packet identification method provided according to an embodiment of the present application is shown. The execution subject of the data packet identification method may be a computing device with computing and processing functions, such as the gateway server 100 in the above-mentioned application scenario embodiment. The data packet identification method includes steps S401 to S402. The data packet identification method in the example embodiment is described in detail below in conjunction with the accompanying drawings.

[0062] Reference Figure 4 As shown, in step S401, at least one second communication data packet of a predetermined communication protocol sent to a gateway is acquired.

[0063] In an exemplary embodiment, the second communication data packet includes fingerprint information, which is identity information generated according to the server fingerprint policy or terminal device information. The predetermined communication protocol is the IPV6 protocol. The gateway server 100 obtains at least one second communication data packet sent by the server 110 to the gateway, and the second communication data packet adopts the IPV6 protocol.

[0064] Step S402: identifying fingerprint information in at least one second communication data packet.

[0065] In an exemplary embodiment, the gateway server 100 identifies fingerprint information in at least one second communication data packet.

[0066] In a specific embodiment, for example, the server generates three identical fingerprint information, and the three fingerprint information correspond to three terminal devices one by one. When the gateway server obtains three second communication data packets, if it is recognized that the fingerprint information of the three second communication data packets are the same, then the three second communication data packets pass the verification; if it is recognized that one, two or three of the fingerprint information in the three communication data packets are different or the fingerprint information fails to be embedded and is not recognized, then one, two or three second communication data packets cannot pass the verification.

[0067] In another specific embodiment, for example, the server generates three different fingerprint information, and the three fingerprint information correspond one by one to the IP addresses or port information of three terminal devices. When the gateway server obtains three second communication data packets, if it is recognized that the fingerprint information of the three second communication data packets corresponds to the IP addresses or port information of the corresponding terminal devices, the verification succeeds; if not, the verification fails.

[0068] It should be noted that the gateway server in this embodiment only needs to identify the data packet header of the second communication data packet, that is, the gateway server only needs to identify the fingerprint information embedded in the data packet header of the second communication data packet, which can effectively improve the recognition efficiency of the gateway server and the probability of correct recognition.

[0069] according to Figure 4 According to the technical solution in the example embodiment, at least one second communication data packet of a predetermined communication protocol sent to a gateway is obtained, the second communication data packet includes fingerprint information; and the fingerprint information in the at least one second communication data packet is identified. By identifying the fingerprint information in the second communication data packet, the complexity of identifying the identity information of the data packet at the gateway can be reduced to a certain extent, and the probability of data packet identification can be improved.

[0070] The following are device embodiments of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.

[0071] Figure 5 A structural diagram of a data packet processing device provided according to an exemplary embodiment of the present application is shown.

[0072] The data packet processing device 500 in the embodiment of the present application includes: an acquisition module 501 and an embedding generation module 502; wherein,

[0073] An acquisition module 501 is used to acquire a first communication data packet of a predetermined communication protocol;

[0074] The embedding generation module 502 is used to embed fingerprint information in the first communication data packet to generate a second communication data packet, where the fingerprint information is identity information generated according to the server fingerprint policy or terminal device information.

[0075] Furthermore, in one embodiment of the present application, the above-mentioned embedding generation module 502 is also used to: expand the data packet header of the first communication data packet; and embed the fingerprint information in the data packet header of the expanded first communication data packet.

[0076] Optionally, the embedding generation module 502 is further used to: extend a target option header on the data packet header of the first communication data packet; and embed fingerprint information in an integer field of the target option header.

[0077] Optionally, the above-mentioned generation module 502 is also used to: copy the data packet header, fingerprint information, and data segment of the first communication data packet in sequence into a pre-configured memory to generate a second communication data packet; wherein the length of the pre-configured memory is the sum of the data packet length of the first communication data packet and the length of the fingerprint information.

[0078] Optionally, the above-mentioned generation module 502 is also used to: copy the data packet header of the first communication data packet to the zero offset of the pre-configured memory; copy the fingerprint information to the offset of the data packet header length of the first communication data packet in the pre-configured memory; copy the data segment of the first communication data packet to the offset of the data packet header length and the fingerprint information length of the first communication data packet in the pre-configured memory.

[0079] Optionally, the above-mentioned data packet processing device 500 is also used to: monitor the data packet to be detected; determine whether the data packet to be detected is a predetermined communication protocol, the predetermined communication protocol is the Internet Protocol Version 6 IPV6 protocol, and if so, the data packet to be detected is the first communication data packet.

[0080] In addition, a data packet identification device is also provided in an embodiment of the present application, which is used to: obtain at least one second communication data packet of a predetermined communication protocol sent to a gateway, the second communication data packet including fingerprint information, and the fingerprint information is identity information generated according to a server fingerprint policy or terminal device information; and identify the fingerprint information in at least one second communication data packet.

[0081] It should be noted that the data packet processing device provided in the above embodiment only uses the division of the above functional modules as an example when executing the data packet processing method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the data packet processing device and data packet processing method embodiments, data packet identification device and data packet identification method embodiments provided in the above embodiment all belong to the same concept. Therefore, for details not disclosed in the device embodiments of the present application, please refer to the above-mentioned data packet processing method embodiments and data packet identification method embodiments of the present application, which will not be repeated here.

[0082] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0083] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the method of any of the above embodiments are implemented. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a micro drive, and a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), or any type of medium or device suitable for storing instructions and / or data.

[0084] An embodiment of the present application also provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above-mentioned method embodiments when executing the program.

[0085] Figure 6 The structure diagram of the terminal according to an exemplary embodiment of the present application is schematically shown. Figure 6 As shown, the terminal 600 includes: a processor 601 and a memory 602 .

[0086] In the embodiment of the present application, the processor 601 is the control center of the computer system, which can be the processor of a physical machine or the processor of a virtual machine. The processor 601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 601 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 601 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state.

[0087] In an embodiment of the present application, the processor 601 is specifically used to: obtain a first communication data packet of a predetermined communication protocol; embed fingerprint information in the first communication data packet to generate a second communication data packet, where the fingerprint information is identity information generated according to a server fingerprint policy or terminal device information.

[0088] Furthermore, in one embodiment of the present application, the processor 601 is further specifically configured to: expand a data packet header of the first communication data packet; and embed fingerprint information into the data packet header of the expanded first communication data packet.

[0089] Optionally, the processor 601 is further specifically configured to: extend a target option header on a data packet header of the first communication data packet; and embed fingerprint information in an integer field of the target option header.

[0090] Optionally, the above-mentioned processor 601 is also specifically used to: copy the data packet header, fingerprint information, and data segment of the first communication data packet in sequence into a pre-configured memory to generate a second communication data packet; wherein the length of the pre-configured memory is the sum of the data packet length of the first communication data packet and the length of the fingerprint information.

[0091] Optionally, the above-mentioned processor 601 is also specifically used to: copy the data packet header of the first communication data packet to the zero offset of the pre-configured memory; copy the fingerprint information to the offset of the data packet header length of the first communication data packet in the pre-configured memory; copy the data segment of the first communication data packet to the offset of the data packet header length and the fingerprint information length of the first communication data packet in the pre-configured memory.

[0092] Optionally, the processor 601 is further specifically used to: monitor the data packet to be detected; determine whether the data packet to be detected is a predetermined communication protocol, the predetermined communication protocol is the Internet Protocol Version 6 IPV6 protocol, and if so, the data packet to be detected is the first communication data packet.

[0093] Optionally, the processor 601 is further specifically used to: obtain at least one second communication data packet of a predetermined communication protocol sent to the gateway, the second communication data packet including fingerprint information, the fingerprint information being identity information generated according to a server fingerprint policy or terminal device information; and identify the fingerprint information in at least one second communication data packet.

[0094] The memory 602 may include one or more computer-readable storage media, which may be non-transitory. The memory 602 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage terminals, flash memory storage terminals. In some embodiments of the present application, the non-transitory computer-readable storage medium in the memory 602 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 601 to implement the method in the embodiment of the present application.

[0095] In some embodiments, the terminal 600 further includes: a peripheral terminal interface 603 and at least one peripheral terminal. The processor 601, the memory 602 and the peripheral terminal interface 603 may be connected via a bus or a signal line. Each peripheral terminal may be connected to the peripheral terminal interface 603 via a bus, a signal line or a circuit board. Specifically, the peripheral terminal includes: at least one of a display screen 604, a camera 605 and an audio circuit 606.

[0096] The peripheral terminal interface 603 may be used to connect at least one peripheral terminal related to input / output (I / O) to the processor 601 and the memory 602. In some embodiments of the present application, the processor 601, the memory 602, and the peripheral terminal interface 603 are integrated on the same chip or circuit board; in some other embodiments of the present application, any one or two of the processor 601, the memory 602, and the peripheral terminal interface 603 may be implemented on a separate chip or circuit board. This embodiment of the present application does not specifically limit this.

[0097] The display screen 604 is used to display the user interface (UI). The UI may include graphics, text, icons, videos and any combination thereof. When the display screen 604 is a touch display screen, the display screen 604 also has the ability to collect touch signals on the surface or above the surface of the display screen 604. The touch signal can be input to the processor 601 as a control signal for processing. At this time, the display screen 604 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments of the present application, the display screen 604 can be one, and the front panel of the terminal 600 is set; in other embodiments of the present application, the display screen 604 can be at least two, which are respectively set on different surfaces of the terminal 600 or are folded; in some other embodiments of the present application, the display screen 604 can be a flexible display screen, which is set on the curved surface or folded surface of the terminal 600. Even, the display screen 604 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 604 can be made of materials such as a liquid crystal display (LCD) and an organic light-emitting diode (OLED).

[0098] Camera 605 is used to capture images or videos. Optionally, camera 605 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and virtual reality (VR) shooting function or other fusion shooting functions. In some embodiments of the present application, camera 605 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.

[0099] The audio circuit 606 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 601 for processing. For the purpose of stereo sound collection or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 600. The microphone may also be an array microphone or an omnidirectional collection microphone.

[0100] The power supply 607 is used to power various components in the terminal 600. The power supply 607 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 607 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.

[0101] The terminal structure block diagram shown in the embodiment of the present application does not constitute a limitation on the terminal 600. The terminal 600 may include more or fewer components than those shown in the figure, or combine certain components, or adopt a different component arrangement.

[0102] In this application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or order; the term "plurality" refers to two or more, unless otherwise expressly defined. The terms "installed", "connected", "connected", "fixed", etc. should be understood in a broad sense. For example, "connected" can be a fixed connection, a detachable connection, or an integral connection; "connected" can be a direct connection or an indirect connection through an intermediate medium. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to the specific circumstances.

[0103] In the description of the present application, it is necessary to understand that the terms "upper", "lower", etc. indicate directions or positional relationships based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or unit referred to must have a specific direction, be constructed and operated in a specific orientation. Therefore, it should not be understood as a limitation on the present application.

[0104] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A data packet processing method, characterized in that: include: Acquire a first communication data packet of a predetermined communication protocol; Fingerprint information is embedded in the first communication data packet to generate a second communication data packet, wherein the fingerprint information is identity information generated according to a server fingerprint policy or terminal device information.

2. The method according to claim 1, characterized in that The embedding of fingerprint information in the first communication data packet comprises: Expanding the data packet header of the first communication data packet; The fingerprint information is embedded in the data packet header of the expanded first communication data packet.

3. The method according to claim 2, characterized in that The step of expanding the data packet header of the first communication data packet includes: Extending a target option header on a data packet header of the first communication data packet; The step of embedding the fingerprint information in the data packet header of the expanded first communication data packet comprises: The fingerprint information is embedded in an integer field of the target option header.

4. The method according to claim 1, characterized in that The generating of the second communication data packet comprises: Copying the data packet header of the first communication data packet, the fingerprint information, and the data segment of the first communication data packet into a pre-configured memory in sequence to generate the second communication data packet; The length of the pre-configured memory is the sum of the data packet length of the first communication data packet and the length of the fingerprint information.

5. The method according to claim 4, characterized in that The step of sequentially copying the data packet header of the first communication data packet, the fingerprint information, and the data segment of the first communication data packet to a pre-configured memory includes: copying the data packet header of the first communication data packet to the zero offset of the preconfigured memory; Copying the fingerprint information to the offset of the data packet header length of the first communication data packet in the preconfigured memory; The data segment of the first communication data packet is copied to the offset of the data packet header length of the first communication data packet and the fingerprint information length in the preconfigured memory.

6. The method according to claim 1, characterized in that Before obtaining the first communication data packet of the predetermined communication protocol, the method further includes: Monitor the data packets to be detected; Determine whether the data packet to be detected is the predetermined communication protocol, the predetermined communication protocol is the Internet Protocol Version 6 IPV6 protocol, If so, the data packet to be detected is the first communication data packet.

7. A data packet identification method, characterized in that: include: Acquire at least one second communication data packet of a predetermined communication protocol sent to the gateway, wherein the second communication data packet includes fingerprint information, and the fingerprint information is identity information generated according to a server fingerprint policy or terminal device information; Fingerprint information in at least one of the second communication data packets is identified.

8. A data packet processing device, characterized in that: include: An acquisition module, used to acquire a first communication data packet of a predetermined communication protocol; The embedding generation module is used to embed fingerprint information in the first communication data packet to generate a second communication data packet, wherein the fingerprint information is identity information generated according to the server fingerprint policy or terminal device information.

9. A terminal comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the data packet processing method according to any one of claims 1 to 6 and the data packet identification method according to claim 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the data packet processing method according to any one of claims 1 to 6 and the data packet identification method according to claim 7 are implemented.