Data packet transmission method and device, electronic equipment and storage medium

By hashing the tunnel feature information of the data packets, determining the target processor and sending the data packets, the problem of out-of-order networking packets in a multi-processor network is solved, and the order consistency processing of the same data stream is achieved.

CN119071226APending Publication Date: 2024-12-03VISIONVERA INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410992657.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

In a multiprocessor network, the network data packets carried by the visual network cannot extract specific fields, resulting in inconsistent order of the data packets at the output end, resulting in the problem of out-of-order.

Method used

By obtaining the target tunnel characteristic information of the data packet, hashing is performed using a preset hashing algorithm, the target processor is determined, and the data packets are sent to the target processor to ensure that the packet order of the same data stream is consistent.

Benefits of technology

It effectively avoids the out-of-order problem caused by sending multiple packets of the same data stream to different processors, ensures the consistency of the order of service packets in the same tunnel, and gives full play to the advantages of multiprocessors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071226A_ABST
    Figure CN119071226A_ABST
Patent Text Reader

Abstract

The invention provides a data packet transmission method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring target tunnel feature information corresponding to a data packet; performing Hash processing on the target tunnel feature information based on a preset Hash algorithm to obtain a target Hash value of the data packet; determining a target processor corresponding to the target hash value according to a pre-stored corresponding relationship between hash values and processors; and sending the data packet to the target processor, so that the target processor processes the data packet. According to the application, the problem of data packet disorder caused by sending a plurality of data packets of the same data stream to different processors can be avoided, and the consistency of the sequence of the service data packets in the same tunnel can be ensured on the basis of giving full play to the advantages of multiple processors.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data diversion, and in particular to a data packet transmission method, device, electronic device and storage medium. Background Art

[0002] In a multi-processor network, in order to give full play to the advantages of multiple processors, multi-processors perform hashing on specific fields of standard network packets (such as source IP address, destination IP address, port number, etc.) to improve the processing performance of network packets while ensuring the sequential consistency of the same feature stream marked by specific fields.

[0003] For network data packets with proprietary structures carried by visual networks, since specific fields (such as source IP address, destination IP address, port number, etc.) cannot be extracted, the network data packets are indiscriminately diverted to different processors for processing. When the network data packets are re-serialized at the output end, the order will be inconsistent with the original network data packets, resulting in out-of-order conditions for different data packets in the same data stream. Summary of the invention

[0004] In view of the above problems, embodiments of the present application are proposed to provide a data packet transmission method, device, electronic device and storage medium that overcome the above problems or at least partially solve the above problems.

[0005] In a first aspect, an embodiment of the present application provides a method for transmitting a data packet, the method comprising:

[0006] Obtain target tunnel characteristic information corresponding to the data packet;

[0007] Performing hash processing on the target tunnel characteristic information based on a preset hash algorithm to obtain a target hash value of the data packet;

[0008] Determine the target processor corresponding to the target hash value according to the pre-stored correspondence between the hash value and the processor;

[0009] The data packet is sent to the target processor so that the data packet is processed by the target processor.

[0010] Optionally, the method further comprises:

[0011] After creating the tunnel, obtaining tunnel characteristic information of the tunnel;

[0012] Performing hash processing on the tunnel characteristic information based on the preset hash algorithm to obtain a hash value;

[0013] A correspondence between the hash value and the processor connected to the tunnel is established and stored.

[0014] Optionally, the acquiring characteristic information of a target tunnel corresponding to the data packet includes:

[0015] Extracting the local tunnel number and the remote tunnel number in the data packet header of the data packet;

[0016] The local tunnel number and the remote tunnel number are used as the target tunnel characteristic information.

[0017] Optionally, the performing hash processing on the target tunnel characteristic information based on a preset hash algorithm to obtain a target hash value of the data packet includes:

[0018] The local tunnel number and the remote tunnel number are hashed based on the preset hash algorithm to obtain the target hash value.

[0019] Optionally, sending the data packet to the target processor includes:

[0020] Identifying a target tunnel corresponding to the target processor;

[0021] The data packet is sent to the target processor through the target tunnel.

[0022] In a second aspect, an embodiment of the present application provides a data packet transmission device, the device comprising:

[0023] A tunnel feature acquisition module is used to obtain target tunnel feature information corresponding to a data packet;

[0024] A target hash value acquisition module, used to perform hash processing on the target tunnel characteristic information based on a preset hash algorithm to obtain a target hash value of the data packet;

[0025] A target processor determination module, used to determine the target processor corresponding to the target hash value according to the pre-stored correspondence between the hash value and the processor;

[0026] The data packet sending module is used to send the data packet to the target processor so that the target processor processes the data packet.

[0027] Optionally, the device further comprises:

[0028] A tunnel characteristic information acquisition module, used to acquire tunnel characteristic information of the tunnel after the tunnel is created;

[0029] A hash value acquisition module, used to perform hash processing on the tunnel characteristic information based on the preset hash algorithm to obtain a hash value;

[0030] The corresponding relationship establishing module is used to establish and store the corresponding relationship between the hash value and the processor connected to the tunnel.

[0031] Optionally, the tunnel feature acquisition module includes:

[0032] A tunnel number extraction unit, used for extracting a local tunnel number and a remote tunnel number in a data packet header of the data packet;

[0033] The tunnel feature acquisition unit is used to use the local tunnel number and the remote tunnel number as the target tunnel feature information.

[0034] Optionally, the target hash value acquisition module includes:

[0035] The target hash value acquisition unit is used to perform hash processing on the local tunnel number and the remote tunnel number based on the preset hash algorithm to obtain the target hash value.

[0036] Optionally, the data packet sending module includes:

[0037] A tunnel identification unit, used to identify a target tunnel corresponding to the target processor;

[0038] A data packet sending unit is used to send the data packet to the target processor through the target tunnel.

[0039] In a third aspect, an embodiment of the present application provides an electronic device, including:

[0040] one or more processors; and

[0041] One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, enable the apparatus to perform any of the above-described data packet transmission methods.

[0042] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program that enables a processor to execute any of the above-mentioned data packet transmission methods.

[0043] The embodiments of the present application include the following advantages:

[0044] The solution provided by the embodiment of the present application obtains the target tunnel characteristic information corresponding to the data packet. The target tunnel characteristic information is hashed based on a preset hash algorithm to obtain a target hash value of the data packet. According to the correspondence between the pre-stored hash value and the processor, the target processor corresponding to the target hash value is determined. The data packet is sent to the target processor so that the data packet is processed by the target processor. The embodiment of the present application obtains a hash value by hashing the tunnel characteristic information of the data packet, and sends the data packet to the corresponding processor for processing according to the hash value, thereby avoiding the problem of data packet disorder caused by sending multiple data packets of the same data stream to different processors, and can ensure the consistency of the order of business data packets in the same tunnel on the basis of giving full play to the advantages of multiple processors. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 A flowchart of a method for transmitting a data packet provided in an embodiment of the present application;

[0046] Figure 2 A flowchart of a method for establishing a corresponding relationship provided in an embodiment of the present application;

[0047] Figure 3 A flowchart of a method for obtaining a target hash value provided in an embodiment of the present application;

[0048] Figure 4 A flowchart of a method for sending a data packet provided in an embodiment of the present application;

[0049] Figure 5 A schematic diagram of a hash splitting process provided in an embodiment of the present application;

[0050] Figure 6 A schematic diagram of a visual network data packet distribution architecture provided in an embodiment of the present application;

[0051] Figure 7 A schematic diagram of the structure of a data packet transmission device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0052] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0053] Reference Figure 1 , shows a flow chart of the steps of a data packet transmission method provided by an embodiment of the present application. Figure 1 As shown, the data packet transmission method may include: step 101, step 102, step 103 and step 104.

[0054] Step 101: Obtain target tunnel characteristic information corresponding to the data packet.

[0055] The embodiments of the present application can be applied to a scenario where the hash value of the tunnel feature field in the packet header of a data packet is used as a diversion criterion to transmit multiple data packets of the same data stream to a processor for processing.

[0056] The embodiments of the present application can be applied to network devices, which are dedicated hardware devices used to connect various servers, PCs, application terminals and other nodes to form an information communication network. In this example, the network device can be, but is not limited to, a switching device (such as a switch), a routing device (such as a router), etc.

[0057] In this embodiment, for a multi-processor network, when establishing a tunnel (i.e., a network tunnel), tunnel characteristic information corresponding to a specified tunnel can be used, and at the same time, a corresponding relationship between a hash value obtained by hashing the tunnel characteristic information and the corresponding processor can be established and stored. The establishment and storage process of the corresponding relationship can be combined with Figure 2 This is described in detail as follows.

[0058] Reference Figure 2 , shows a flowchart of a method for establishing a corresponding relationship provided by an embodiment of the present application. Figure 2 As shown, the corresponding relationship establishing method may include: step 201, step 202 and step 203.

[0059] Step 201: After creating a tunnel, tunnel characteristic information of the tunnel is obtained.

[0060] In this embodiment, the tunnel is a point-to-point network tunnel established between routers. Users access the tunnel from one side of the tunnel and access other business-specific networks from the other side.

[0061] After the tunnel is created, the local network device and the remote network device connected by the tunnel are specified, and the tunnel characteristic information of the tunnel can be obtained. In this example, the tunnel characteristic information of the tunnel can include the local tunnel number of the local network device and the remote tunnel number of the remote network device.

[0062] The local tunnel number refers to a unique identifier configured on a local network device (such as a router, switch, etc.) and used to identify a tunnel connection initiated from the local end.

[0063] The remote tunnel number refers to a unique identifier configured on a remote network device (ie, the other end of the tunnel connection) for identifying a tunnel connection received from the remote end.

[0064] After the tunnel characteristic information of the tunnel is acquired, step 202 is executed.

[0065] Step 202: Perform hash processing on the tunnel characteristic information based on the preset hash algorithm to obtain a hash value.

[0066] The preset hash algorithm can be any one of the hash algorithms such as MD5 algorithm and SHA algorithm. Hash processing is a technology that converts input information of any length into a fixed-length output (called a hash value) through a hash algorithm. In this embodiment, the tunnel feature information is hashed to obtain a fixed-length hash value, thereby ensuring that the data packets of the same tunnel are processed by the same process, thereby avoiding the problem of disordered data packets.

[0067] It can be understood that in the diversion process of this embodiment, the hash algorithm used should be consistent to ensure the consistency of the generated hash value.

[0068] After the tunnel characteristic information of the tunnel is acquired, the tunnel characteristic information may be hashed based on a preset hash algorithm to obtain a hash value corresponding to the tunnel characteristic information.

[0069] After the tunnel characteristic information is hashed based on the preset hash algorithm to obtain a hash value, step 203 is executed.

[0070] Step 203: Establish and store a correspondence between the hash value and the processor connected to the tunnel.

[0071] After the tunnel feature information is hashed based on a preset hash algorithm to obtain the hash value of the tunnel, a correspondence between the hash value and the processor connected to the tunnel can be established and stored. For example, the established visual network tunnels include: tunnel 1, tunnel 2, and tunnel 3. The hash values ​​corresponding to tunnel 1, tunnel 2, and tunnel 3 are: hash value 1, hash value 2, and hash value 3, respectively. The processor connected to tunnel 1 is processor 1, the processor connected to tunnel 2 is processor 2, and the processor connected to tunnel 3 is processor 3. At this time, the correspondence between hash value 1 and processor 1, the correspondence between hash value 2 and processor 2, the correspondence between hash value 3 and processor 3, etc. can be established and stored.

[0072] It can be understood that the above examples are merely examples listed for a better understanding of the technical solutions of the embodiments of the present application, and are not intended to be the sole limitation to the embodiments.

[0073] The embodiment of the present application pre-establishes and stores the correspondence between hash values ​​and processors, so that multiple data packets of the same data stream can be sent to the same processor for data processing, which can effectively avoid the problem of data disorder.

[0074] Taking the visual network as an example, when the visual network data packet passes through the visual network port, the order of the original visual network data packet will be disrupted, that is, the visual network data packets of multiple data streams will be mixed together. In this embodiment, after the network device obtains the data packet, the network device can be called to obtain the target tunnel feature information corresponding to the data packet. Figure 5 As shown, the visual network data packet enters the IO (Input / Output) part of the network device from the visual network port and enters the hash diversion module. The input data packets include: data packet 1, data packet 2, data packet 3 and data packet 4 in the square box, data packet 1 and data packet 2 in the circular box, wherein the data packets in the square box and the circular box come from two different data streams. A hash diversion module is set in the network device, which can extract the packet header tunnel feature word (i.e., the tunnel feature information in this example).

[0075] After acquiring the target tunnel characteristic information corresponding to the data packet, step 102 is executed.

[0076] Step 102: Perform hash processing on the target tunnel characteristic information based on a preset hash algorithm to obtain a target hash value of the data packet.

[0077] After the target tunnel characteristic information corresponding to the data packet is obtained, a preset hash algorithm may be used to perform hash processing on the target tunnel characteristic information, thereby obtaining a target hash value of the data packet.

[0078] In this embodiment, the target tunnel characteristic information may include the local tunnel number and the remote tunnel number, and the local tunnel number and the remote tunnel number may be hashed based on a preset hash algorithm to obtain a target hash value. Figure 3 This is described in detail as follows.

[0079] Reference Figure 3 , shows a flowchart of a method for obtaining a target hash value provided by an embodiment of the present application. Figure 3 As shown, the target hash value acquisition method may include: step 301, step 302 and step 303.

[0080] Step 301: extract the local tunnel number and the remote tunnel number in the data packet header of the data packet.

[0081] In this embodiment, after the network device obtains the data packet, the local tunnel number and the remote tunnel number in the data packet header of the data packet can be extracted. In a specific implementation, when the terminal encapsulates and sends the data stream, the local tunnel number and the remote tunnel number can be added to the data packet headers of several data packets of the data stream.

[0082] After extracting the local tunnel number and the remote tunnel number in the data packet, step 302 is executed.

[0083] Step 302: Use the local tunnel number and the remote tunnel number as the target tunnel characteristic information.

[0084] After the local tunnel number and the remote tunnel number in the data packet are extracted, the extracted local tunnel number and the remote tunnel number can be used as target tunnel characteristic information.

[0085] Step 303: Perform hash processing on the local tunnel number and the remote tunnel number based on the preset hash algorithm to obtain the target hash value.

[0086] Then, the local tunnel number and the remote tunnel number may be hashed based on a preset hash algorithm to obtain a target hash value.

[0087] The embodiment of the present application performs hash calculation using the local tunnel number and the remote tunnel number in the data packet header of the data packet, and uses the calculated hash value as the diversion standard, thereby ensuring that the data packets of the same data stream are distributed to the same processor for processing.

[0088] After the target tunnel characteristic information is hashed based on a preset hash algorithm to obtain a target hash value of the data packet, step 103 is executed.

[0089] Step 103: Determine the target processor corresponding to the target hash value according to the pre-stored correspondence between hash values ​​and processors.

[0090] After the target hash value of the data packet is obtained by hashing the target tunnel feature information based on the preset hash algorithm, the target processor corresponding to the target hash value can be determined according to the pre-stored correspondence between the hash value and the processor. For example, the pre-stored correspondence may include: the correspondence between hash value 1 and processor 1, the correspondence between hash value 2 and processor 2, and the correspondence between hash value 3 and processor 3. When the calculated target hash value is hash value 2, processor 2 can be used as the target processor. Alternatively, when the calculated target hash value is hash value 3, processor 3 can be used as the target processor, etc.

[0091] It can be understood that the above examples are merely examples listed for a better understanding of the technical solutions of the embodiments of the present application, and are not intended to be the sole limitation to the embodiments.

[0092] After the target processor corresponding to the target hash value is determined according to the pre-stored correspondence between the hash value and the processor, step 104 is executed.

[0093] Step 104: Send the data packet to the target processor so that the target processor processes the data packet.

[0094] After determining the target processor corresponding to the target hash value according to the correspondence between the pre-stored hash value and the processor, the data packet can be sent to the target processor so that the target processor can process the data packet. In a specific implementation, the network device can identify the target tunnel corresponding to the target processor, so as to send the data packet to the target processor through the target tunnel. Figure 4 This is described in detail as follows.

[0095] Reference Figure 4 , shows a flowchart of a method for sending a data packet provided by an embodiment of the present application. Figure 4 As shown, the data packet sending method may include: step 401 and step 402.

[0096] Step 401: Identify the target tunnel corresponding to the target processor.

[0097] In this embodiment, after the target processor corresponding to the target hash value of the data packet is determined, the target tunnel corresponding to the target processor can be identified.

[0098] Step 402: Send the data packet to the target processor through the target tunnel.

[0099] Then, the data packet can be sent to the target processor through the target tunnel. Figure 5 As shown, the hash distribution module can distribute the data packets from two different data flows in the square frame and the circular frame to different processors according to the hash value calculated for the extracted packet header tunnel feature field, so that the core network elements of different processors can process the data packets. At the same time, the core network element stores the processing result in the data packet output queue and outputs the processing result, that is, the processor sends the processed network data packet to the output queue.

[0100] The embodiment of the present application obtains a hash value by hashing the tunnel characteristic information in the packet header of the data packet, and sends the data packet to the corresponding processor for processing according to the hash value, thereby avoiding the problem of packet disorder caused by sending multiple data packets of the same data stream to different processors. On the basis of giving full play to the advantages of multiple processors, the consistency of the order of business data packets in the same tunnel can be guaranteed.

[0101] The above implementation process can be combined with Figure 6 The following detailed description is given (taking the data packets in the visual network as an example).

[0102] Reference Figure 6, which shows a schematic diagram of a visual network data packet distribution architecture provided by an embodiment of the present application. Figure 6 As shown, the structure of the input visual networking data packet may include: a packet header part and a packet data part, wherein the packet header part may include: local_sub (local tunnel number), remote_sub (remote tunnel number) and other fields, and the visual networking data packet is input into the network device, so that the tunnel feature words (i.e. local_sub and remote_sub) of the visual networking data packet can be extracted, and the extracted tunnel feature words can be hashed, and then, the visual networking data packet can be distributed to the core network element of the processor (such as core 1, core 2, ... core n, etc.) through the corresponding visual networking tunnel (such as Channel 1, Channel 2, ... Channel n (n is a positive integer) as shown in the figure) according to the hash value obtained by the hash calculation for data packet processing.

[0103] The embodiment of the present application utilizes the visual networking tunnel to divert data packets, so that the data packets of the same tunnel are processed by the same processor, ensuring the order consistency of the network data packets in the same tunnel. At the same time, the local tunnel number and the remote tunnel number that already exist in the header of the visual networking data packet are selected as the hash diversion feature words to ensure that the data packets of the same visual networking tunnel are accurately divided without increasing the occupied data packet fields. Moreover, the present embodiment abandons the network data flow quintuple as the identifier of the flow, and utilizes the visual networking encapsulation feature to adopt the local tunnel number and the remote tunnel number of the visual networking tunnel as the flow division identifier, thereby avoiding the disorder problem of the visual networking data packets and realizing that a data flow is sent to the same processor for processing.

[0104] The data packet transmission method provided in the embodiment of the present application obtains the target tunnel characteristic information corresponding to the data packet. The target tunnel characteristic information is hashed based on a preset hash algorithm to obtain a target hash value of the data packet. According to the correspondence between the pre-stored hash value and the processor, the target processor corresponding to the target hash value is determined. The data packet is sent to the target processor so that the data packet is processed by the target processor. The embodiment of the present application obtains a hash value by hashing the tunnel characteristic information of the data packet, and sends the data packet to the corresponding processor for processing according to the hash value, thereby avoiding the problem of data packet disorder caused by sending multiple data packets of the same data stream to different processors, and can ensure the consistency of the order of business data packets in the same tunnel on the basis of giving full play to the advantages of multiple processors.

[0105] It should be noted that, for the method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited by the described action sequence, because according to the embodiments of the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present application.

[0106] Reference Figure 7 , shows a schematic diagram of the structure of a data packet transmission device provided in an embodiment of the present application. Figure 7 As shown, the data packet transmission device 700 may include the following modules:

[0107] The tunnel feature acquisition module 710 is used to acquire the target tunnel feature information corresponding to the data packet;

[0108] A target hash value acquisition module 720 is used to perform hash processing on the target tunnel characteristic information based on a preset hash algorithm to obtain a target hash value of the data packet;

[0109] The target processor determination module 730 is used to determine the target processor corresponding to the target hash value according to the pre-stored correspondence between the hash value and the processor;

[0110] The data packet sending module 740 is used to send the data packet to the target processor so that the target processor processes the data packet.

[0111] Optionally, the device further comprises:

[0112] A tunnel characteristic information acquisition module, used to acquire tunnel characteristic information of the tunnel after the tunnel is created;

[0113] A hash value acquisition module, used to perform hash processing on the tunnel characteristic information based on the preset hash algorithm to obtain a hash value;

[0114] The corresponding relationship establishing module is used to establish and store the corresponding relationship between the hash value and the processor connected to the tunnel.

[0115] Optionally, the tunnel feature acquisition module includes:

[0116] A tunnel number extraction unit, used for extracting a local tunnel number and a remote tunnel number in a data packet header of the data packet;

[0117] The tunnel feature acquisition unit is used to use the local tunnel number and the remote tunnel number as the target tunnel feature information.

[0118] Optionally, the target hash value acquisition module includes:

[0119] The target hash value acquisition unit is used to perform hash processing on the local tunnel number and the remote tunnel number based on the preset hash algorithm to obtain the target hash value.

[0120] Optionally, the data packet sending module includes:

[0121] A tunnel identification unit, used to identify a target tunnel corresponding to the target processor;

[0122] A data packet sending unit is used to send the data packet to the target processor through the target tunnel.

[0123] The data packet transmission device provided in the embodiment of the present application obtains the target tunnel characteristic information corresponding to the data packet. The target tunnel characteristic information is hashed based on a preset hash algorithm to obtain a target hash value of the data packet. According to the correspondence between the pre-stored hash value and the processor, the target processor corresponding to the target hash value is determined. The data packet is sent to the target processor so that the data packet is processed by the target processor. The embodiment of the present application obtains a hash value by hashing the tunnel characteristic information of the data packet, and sends the data packet to the corresponding processor for processing according to the hash value, thereby avoiding the problem of data packet disorder caused by sending multiple data packets of the same data stream to different processors, and can ensure the consistency of the order of business data packets in the same tunnel on the basis of giving full play to the advantages of multiple processors.

[0124] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0125] In an embodiment of the present application, an electronic device is also provided. The electronic device may include one or more processors, and one or more machine-readable media storing instructions thereon, the instructions being, for example, application programs. When the instructions are executed by the one or more processors, the processors execute any of the above-mentioned data packet transmission methods.

[0126] In an embodiment of the present application, a non-temporary computer-readable storage medium is also provided, on which a computer program is stored, and the program can be executed by a processor of an electronic device to implement any of the above-mentioned data packet transmission methods. For example, the non-temporary computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.

[0127] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0128] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0129] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0130] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0131] These computer program instructions can also be loaded into a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable terminal device provide for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0132] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.

[0133] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0134] The above is a detailed introduction to a data packet transmission method, device, electronic device and storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A data packet transmission method, characterized in that: The method comprises: Obtain target tunnel characteristic information corresponding to the data packet; Performing hash processing on the target tunnel characteristic information based on a preset hash algorithm to obtain a target hash value of the data packet; Determine the target processor corresponding to the target hash value according to the pre-stored correspondence between the hash value and the processor; The data packet is sent to the target processor so that the data packet is processed by the target processor.

2. The method according to claim 1, characterized in that The method further comprises: After creating the tunnel, obtaining tunnel characteristic information of the tunnel; Performing hash processing on the tunnel characteristic information based on the preset hash algorithm to obtain a hash value; A correspondence between the hash value and the processor connected to the tunnel is established and stored.

3. The method according to claim 1, characterized in that The obtaining of target tunnel characteristic information corresponding to the data packet includes: Extracting the local tunnel number and the remote tunnel number in the data packet header of the data packet; The local tunnel number and the remote tunnel number are used as the target tunnel characteristic information.

4. The method according to claim 3, characterized in that The performing hash processing on the target tunnel characteristic information based on a preset hash algorithm to obtain a target hash value of the data packet includes: The local tunnel number and the remote tunnel number are hashed based on the preset hash algorithm to obtain the target hash value.

5. The method according to claim 1, characterized in that The step of sending the data packet to the target processor comprises: Identifying a target tunnel corresponding to the target processor; The data packet is sent to the target processor through the target tunnel.

6. A data packet transmission device, characterized in that: The device comprises: A tunnel feature acquisition module is used to obtain target tunnel feature information corresponding to a data packet; A target hash value acquisition module, used to perform hash processing on the target tunnel characteristic information based on a preset hash algorithm to obtain a target hash value of the visual networking data packet; A target processor determination module, used to determine the target processor corresponding to the target hash value according to the pre-stored correspondence between the hash value and the processor; The data packet sending module is used to send the data packet to the target processor so that the target processor processes the data packet.

7. The device according to claim 6, characterized in that The device also includes: A tunnel characteristic information acquisition module, used to acquire tunnel characteristic information of the tunnel after the tunnel is created; A hash value acquisition module, used to perform hash processing on the tunnel characteristic information based on the preset hash algorithm to obtain a hash value; The corresponding relationship establishing module is used to establish and store the corresponding relationship between the hash value and the processor connected to the tunnel.

8. The device according to claim 6, characterized in that The tunnel feature acquisition module includes: A tunnel number extraction unit, used for extracting a local tunnel number and a remote tunnel number in a data packet header of the data packet; The tunnel feature acquisition unit is used to use the local tunnel number and the remote tunnel number as the target tunnel feature information.

9. The device according to claim 8, characterized in that The target hash value acquisition module includes: The target hash value acquisition unit is used to perform hash processing on the local tunnel number and the remote tunnel number based on the preset hash algorithm to obtain the target hash value.

10. The device according to claim 6, characterized in that The data packet sending module comprises: A tunnel identification unit, used to identify a target tunnel corresponding to the target processor; A data packet sending unit is used to send the data packet to the target processor through the target visual network tunnel.

11. An electronic device, characterized in that: include: one or more processors; and One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, cause the apparatus to perform the data packet transmission method according to any one of claims 1 to 5.

12. A computer-readable storage medium, characterized in that: The computer program stored therein enables the processor to execute the data packet transmission method according to any one of claims 1 to 5.