Network packet transmission method, system and device

By determining target nodes and links, and processing packets to optimal sizes, the method addresses inefficiencies in traditional packet transmission, reducing costs and enhancing stability and efficiency.

CN119109879APending Publication Date: 2024-12-10SHANGHAI XIYU JIZHI TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411369682.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2024-12-10

AI Technical Summary

Technical Problem

Traditional network packet transmission methods face issues with high costs and low efficiency and stability due to packets being too large or too small, leading to problems such as long transmission time, unstable response, high failure cost, easy congestion, and high connection cost.

Method used

A network packet transmission method that determines a target receiving node and link, processes packets to achieve optimal packet sizes for transmission, and transmits actual packets through suitable links, optimizing packet size and link utilization.

Benefits of technology

This approach reduces transmission costs and improves efficiency and stability by avoiding long transmission times and congestion, ensuring optimal packet size and link utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119109879A_ABST
    Figure CN119109879A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a network packet transmission method, system and device. The method is applied to a sending node, and comprises the following steps: determining a target receiving node, and determining a to-be-transmitted packet to be transmitted to the target receiving node and a to-be-transmitted packet size of the to-be-transmitted packet; determining at least one target link capable of realizing network packet transmission with the target receiving node and a recommended transmission packet size corresponding to the at least one target link; according to the size of the to-be-transmitted packet and the determined size of each recommended transmission packet, processing the to-be-transmitted packet so as to realize unpacking or packing of the to-be-transmitted packet, and obtaining at least one actual transmission packet; and transmitting the at least one actual transmission packet to the target receiving node through the at least one target link. According to the technical scheme of the embodiment of the invention, the transmission cost can be reduced, and the transmission efficiency and stability can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of computer network technology, and in particular to a network packet transmission method, system and device. Background Art

[0002] With the rapid development of cloud computing and big data, the demand for data storage and processing is increasing, and the realization of network packet transmission between nodes is of great significance to data storage and processing.

[0003] Traditional network packet transmission methods may cause corresponding problems when the packet to be transmitted is too large or too small. For example, when the packet to be transmitted is too large, it may cause problems such as long transmission time, unstable response, and high failure cost; for another example, when the packet to be transmitted is too small, it may cause problems such as the description data of the packet to be transmitted is larger than the data to be transmitted, easy to block, and high connection cost.

[0004] The above problems may lead to high transmission costs of network packet transmission, as well as low transmission efficiency and stability, which need to be solved urgently. Summary of the invention

[0005] The embodiments of the present invention provide a network packet transmission method, system and device to reduce transmission cost and improve transmission efficiency and stability.

[0006] According to one aspect of the present invention, a network packet transmission method is provided, which is applied to a sending node. The method may include:

[0007] Determine a target receiving node, and determine a to-be-transmitted packet to be transmitted to the target receiving node and a to-be-transmitted packet size of the to-be-transmitted packet;

[0008] Determine at least one target link that can realize network packet transmission with a target receiving node, and a recommended transmission packet size corresponding to each of the at least one target link;

[0009] According to the size of the packet to be transmitted and the determined sizes of each recommended transmission packet, the packet to be transmitted is processed to realize unpacking or merging of the packet to be transmitted to obtain at least one actual transmission packet;

[0010] At least one actual transmission packet is transmitted to a target receiving node via at least one target link.

[0011] According to another aspect of the present invention, a network packet transmission system is provided, which may include: a sending node and a target receiving node for implementing the network packet transmission method provided by any embodiment of the present invention when executed; wherein,

[0012] The target receiving node is used to determine the disassembly and assembly information of at least one received actual transmission packet, and process the at least one actual transmission packet according to the disassembly and assembly information to obtain a processed packet.

[0013] According to another aspect of the present invention, a network packet transmission device is provided, which is applied to a sending node, and the device may include:

[0014] The module for determining the size of the packet to be transmitted is used to determine the target receiving node, and determine the packet to be transmitted to the target receiving node and the size of the packet to be transmitted;

[0015] A recommended transmission packet size determination module, used to determine at least one target link that can realize network packet transmission with a target receiving node, and a recommended transmission packet size corresponding to the at least one target link;

[0016] An actual transmission packet obtaining module, used for processing the packets to be transmitted according to the size of the packets to be transmitted and the determined sizes of the recommended transmission packets, so as to realize the unpacking or merging of the packets to be transmitted, and obtain at least one actual transmission packet;

[0017] The actual transmission packet transmission module is used to transmit at least one actual transmission packet to a target receiving node through at least one target link.

[0018] The technical solution of the embodiment of the present invention determines a target receiving node, and determines the packets to be transmitted to the target receiving node and the packet size of the packets to be transmitted, thereby clarifying information related to the packets to be transmitted; by determining at least one target link that can realize network packet transmission between the target receiving node, and the recommended transmission packet size corresponding to the at least one target link, at least one target link that is more suitable for transmitting the packets to be transmitted, and the size of the recommended network packet to be transmitted corresponding to the at least one target link is known; by processing the packets to be transmitted according to the size of the packets to be transmitted and the determined recommended transmission packet sizes, so as to realize unpacking or merging of the packets to be transmitted, and obtain at least one actual transmission packet, so that the obtained at least one actual transmission packet is more suitable for transmission through at least one target link; by transmitting at least one actual transmission packet to the target receiving node through at least one target link, at least one actual transmission packet is transmitted to the target receiving node. The above technical scheme unpacks or combines the packets to be transmitted according to the size of the packets to be transmitted and the determined sizes of each recommended transmission packet, and obtains at least one actual transmission packet that is more suitable for transmission through at least one target link. This avoids the problems of long transmission time, unstable response and high failure cost when the packets to be transmitted as network packets are too large, and also avoids the problems of easy congestion and high connection cost when the packets to be transmitted are too small, thereby reducing transmission costs and improving transmission efficiency and stability.

[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 is a flow chart of a network packet transmission method provided according to an embodiment of the present invention;

[0022] Figure 2 is a flow chart of another network packet transmission method provided according to an embodiment of the present invention;

[0023] Figure 3 is a flowchart of another network packet transmission method provided according to an embodiment of the present invention;

[0024] Figure 4 is a structural block diagram of a network packet transmission system provided according to an embodiment of the present invention;

[0025] Figure 5 is a flowchart of an optional example in a network packet transmission system provided according to an embodiment of the present invention;

[0026] Figure 6 is a flowchart of another optional example of a network packet transmission system provided in an embodiment of the present invention;

[0027] Figure 7 It is a structural block diagram of a network packet transmission device provided according to an embodiment of the present invention. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. The situations of "target", "original", etc. are similar and will not be repeated here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] Before introducing the embodiments of the present invention, the implementation process of the current network packet transmission scheme and the reasons for the high transmission cost of network packet transmission and the low transmission efficiency and stability are exemplified to better understand why the network packet transmission scheme proposed in the embodiments of the present invention can reduce transmission costs and improve transmission efficiency and stability.

[0031] For example, in an architecture consisting of multiple computer rooms, there is a need for cross-computer room transmission, that is, some computer rooms in the multiple computer rooms can be used to receive network packets corresponding to user service requests from user clients, and another part of the multiple computer rooms can be used to receive network packets corresponding to user service requests sent from the above-mentioned part of the computer rooms, and process the user service requests according to the network packets. For example, computer room A / B can receive network packets corresponding to user service requests, and computer room C / D is used to receive and process the corresponding network packets sent by computer room A / B; however, the current network packet transmission method has problems such as low efficiency and susceptibility to network delay when transmitting across computer rooms. For example, when waiting When the transmission packet is too large, problems such as long transmission time, unstable response and high failure cost may occur. When the packet to be transmitted is too small, problems such as large number of bytes occupied by the network packet header and / or tail (overhead), easy blocking and high connection cost may occur. Large overhead means that the description data of the packet to be transmitted is larger than the data to be transmitted, and the connection cost is high. For example, a small network packet takes 0.01 seconds to transmit, and it takes 0.1 seconds to establish a connection between two computer rooms before transmission, resulting in high connection cost. Therefore, the current network packet transmission scheme has the problems of high transmission cost of network packet transmission, as well as low transmission efficiency and stability.

[0032] In addition, the transmission performance requirements of network packets for different types of requests are also different. For example, users of network packets for conversational service requests can tolerate a lower request response delay, while users of network packets for analytical service requests can tolerate a relatively higher request response delay. The current network packet transmission solution cannot meet the above transmission requirements, which leads to high transmission costs, low transmission efficiency and stability in the network packet transmission process.

[0033] In view of this, the embodiment of the present invention unpacks or combines the packets to be transmitted according to the size of the packets to be transmitted and the determined recommended transmission packet sizes, and obtains at least one actual transmission packet that is more suitable for transmission through at least one target link, thereby avoiding the problems of long transmission time, unstable response, and high failure cost when the packets to be transmitted as network packets are too large, and also avoiding the problems of easy blocking and high connection cost when the packets to be transmitted are too small, thereby reducing transmission costs and improving transmission efficiency and stability. This will be explained in detail below.

[0034] Figure 1 1 is a flow chart of a network packet transmission method provided in an embodiment of the present invention. This embodiment is applicable to the case of network packet transmission. The method is applied to a sending node and can be executed by a network packet transmission device provided in an embodiment of the present invention. The device can be implemented by software and / or hardware. The device can be integrated on a sending node, and the sending node can be various user terminals or servers.

[0035] See also Figure 1 The method of the embodiment of the present invention specifically includes the following steps:

[0036] S110: Determine a target receiving node, and determine a packet to be transmitted to the target receiving node and a size of the packet to be transmitted.

[0037] The sending node is a node for sending a network packet to be transmitted to a target receiving node. The target receiving node is a node for receiving a packet to be transmitted. The packet to be transmitted is a network packet to be transmitted to the target receiving node; the number of packets to be transmitted can be one or more. The size of the packet to be transmitted is the size of the packet to be transmitted.

[0038] It can be understood that there are at least two computer rooms in the architecture composed of distributed multiple computer rooms, and each computer room can include at least one server; the network agent deployed in each computer room can be regarded as a node, and the network agent can be used to manage the network packet transmission and / or processing of the computer room corresponding to it; for each sending node in the architecture composed of distributed multiple computer rooms that can be used to send network packets to other nodes, the network packet transmission method of the embodiment of the present invention can be executed. It should be noted that a set of network agents can be deployed for each computer room in the architecture composed of distributed multiple computer rooms; the network agent deployed in the computer room that receives user requests can be used as a sending node to be responsible for receiving and sending network packets corresponding to the proxy requests, and the network agent deployed in the computer room that provides services can be used as a receiving node to be responsible for receiving network packets corresponding to the proxy requests; through the network agent, load balancing can be achieved in different computer rooms. For example, the network agent can send the network packet corresponding to the request received by computer room A to computer room C or D for processing according to the load balancing requirements. The load balancing of the transmission link is to control the transmission cost and improve the transmission efficiency and stability. The network packet transmission is performed on at least one transmission link. The load balancing of the transmission link can be specifically understood as the implementation of traffic shaping and control, that is, if the request quantity parameter (Input / Output Operations Per Second, IOPS) on a certain link is large and the request data volume parameter (Bytes PerSecond (BPS) is small, then a network packet with a large amount of data can be allocated to the link in the future to achieve full and efficient use of the bandwidth. For example, the transmission link of the network packet can be dynamically adjusted according to the link information in the future, and at least one actual transmission packet obtained by splitting or merging the network packet can be fully and efficiently utilized through the dynamically adjusted transmission link to meet the request response requirements. Among them, the network proxy can include, for example, a queue module, a traffic perception module, a load balancing module, and a network packet parsing module.

[0039] In the embodiment of the present invention, for example, the candidate receiving node with queue packets in the corresponding node queue can be used as the target receiving node; for another example, the target receiving node can be determined according to demand; etc. In the embodiment of the present invention, the method of determining the target receiving node is not specifically limited.

[0040] It should be noted that the number of target receiving nodes determined can be one or more. When the number of target receiving nodes is multiple, the process of determining the packets to be transmitted to the target receiving node and the size of the packets to be transmitted and the subsequent network packet transmission can be executed for each target receiving node.

[0041] In the embodiment of the present invention, for example, the queue packet with the highest priority in the node queue corresponding to the target receiving node or the queue packet at the front position or the back position in the node queue can be used as the packet to be transmitted; for another example, the packet to be transmitted can be taken out from the node queue corresponding to the target receiving node according to the preset packet acquisition rule; etc. In the embodiment of the present invention, the method for determining the packet to be transmitted to the target receiving node and the packet size to be transmitted of the packet to be transmitted is not specifically limited.

[0042] It should be noted that the server in the computer room corresponding to the sending node itself may also have the ability to process network packets. Therefore, when the load pressure on each alternative receiving node is too large or the sending node can process the request type corresponding to the request for the packet to be transmitted, there is no need to send the packet to be transmitted to the sending node. The network packet can be directly processed by the server in the computer room corresponding to the sending node.

[0043] S120: Determine at least one target link that can realize network packet transmission with a target receiving node, and a recommended transmission packet size corresponding to each of the at least one target link.

[0044] The target link is a network link used to transmit the packet to be transmitted to the target receiving node. The recommended transmission packet size is the recommended size of the network packet that can be transmitted by the target link; for example, the recommended transmission packet size can be the size of the network packet that can be transmitted by the target link with the highest efficiency and the most stable stability.

[0045] In an embodiment of the present invention, for example, among at least one candidate link that can realize network packet transmission between a target receiving node and a target receiving node, a candidate link with a load pressure less than a preset pressure can be used as at least one target link; for another example, a request type suitable for a request corresponding to a packet to be transmitted and at least one target link that can realize network packet transmission between a target receiving node and a recommended transmission packet size corresponding to at least one target link can be determined, so that the packet to be transmitted can be processed according to the size of the packet to be transmitted and the determined recommended transmission packet sizes, and at least one actual transmission packet obtained is also more suitable for the request type of the request corresponding to the packet to be transmitted, and then, while satisfying the transmission requirements of network packets of multiple request types, network packets of different request types can be reconstructed into more reasonable network packets, thereby completing the optimal network packet transmission, optimizing the transmission efficiency and reducing the transmission cost. In an embodiment of the present invention, there is no specific limitation on the method of determining at least one target link that can realize network packet transmission between a target receiving node.

[0046] In the embodiment of the present invention, for example, a preset transmission packet size corresponding to at least one target link may be obtained as a recommended transmission packet size corresponding to at least one target link; for another example, a recommended transmission packet size corresponding to at least one target link may be determined based on link information corresponding to at least one target link; etc. In the embodiment of the present invention, the method for determining the recommended transmission packet size corresponding to at least one target link is not specifically limited.

[0047] S130: Process the packets to be transmitted according to the size of the packets to be transmitted and the determined sizes of the recommended transmission packets, so as to unpack or combine the packets to be transmitted and obtain at least one actual transmission packet.

[0048] The actual transmission packet is a network packet actually transmitted to a target receiving node through at least one target link.

[0049] In the embodiment of the present invention, the to-be-transmitted packets may be unpacked or combined according to the size of the to-be-transmitted packets and the determined recommended transmission packet sizes, so as to process the to-be-transmitted packets into a size suitable for passing through at least one target link, thereby obtaining at least one actual transmission packet. In the embodiment of the present invention, the method of processing the to-be-transmitted packets according to the size of the to-be-transmitted packets and the determined recommended transmission packet sizes to realize unpacking or combining the to-be-transmitted packets to obtain at least one actual transmission packet is not specifically limited.

[0050] It should be noted that there may be a situation where the packet to be transmitted is small but the real-time requirement is high, or the absolute value of the difference between the size of the packet to be transmitted and at least one of the recommended transmission packet sizes is less than a preset difference threshold, etc. In this case, there is no need to unpack or combine the packet to be transmitted, and the packet to be transmitted can be directly used as the actual transmission packet, that is, whether the packet to be transmitted needs to be processed can be determined based on the third metadata of the packet to be transmitted, the size of the packet to be transmitted and the determined recommended transmission packet sizes. If processing is required, the packet to be transmitted is processed based on the size of the packet to be transmitted and the determined recommended transmission packet sizes to achieve unpacking or combining of the packet to be transmitted and obtain at least one actual transmission packet. If processing is not required, the packet to be transmitted can be used as the actual transmission packet.

[0051] In an embodiment of the present invention, the packet to be transmitted may be processed first according to current demand, determined third metadata of the packet to be transmitted and / or link information of at least one alternative link, so as to realize unpacking or merging of the packet to be transmitted and obtain at least one actual transmission packet; and then, according to at least one actual transmission packet and link information of at least one alternative link, at least one target link and a recommended transmission packet size corresponding to each of the at least one target link may be dynamically determined from the at least one alternative link.

[0052] In an embodiment of the present invention, at least one target link that can realize network packet transmission between the target receiving node and the target receiving node, and a recommended transmission packet size corresponding to the at least one target link can also be determined; according to the size of the packet to be transmitted and the determined recommended transmission packet sizes, the packet to be transmitted is processed to realize unpacking or merging of the packet to be transmitted to obtain at least one actual transmission packet; then, according to at least one actual transmission packet, current demand, the third metadata of the determined packet to be transmitted and / or the link information of at least one alternative link, at least one target link and the recommended transmission packet size corresponding to the at least one target link are dynamically adjusted, that is, at least one target link and the recommended transmission packet size corresponding to the at least one target link are re-determined from at least one alternative link, for example, three target links numbered 0, 1 and 2 are first determined, three actual transmission packets are determined according to the three target links, and then at least one target link is dynamically adjusted to three target links numbered 2, 3 and 4, so that the three actual transmission packets are respectively transmitted to the target receiving node through the three adjusted target links.

[0053] S140. Transmit at least one actual transmission packet to a target receiving node through at least one target link.

[0054] In an embodiment of the present invention, the number of at least one actual transmission packet is the same as the number of at least one target link, so each target link is used to transmit network packets. In another embodiment of the present invention, the number of at least one actual transmission packet is not the same as the number of at least one target link, so not every target link may be used to transmit network packets. For example, for at least one actual transmission packet, the actual transmission packet may be transmitted to the target receiving node through a target link in at least one target link that matches the size or type of the actual transmission packet; or one or some target links may be used to transmit multiple network packets. In an embodiment of the present invention, there is no specific limitation on the method of transmitting at least one actual transmission packet to the target receiving node through at least one target link.

[0055] In an embodiment of the present invention, the above-mentioned processes of determining the packets to be transmitted and the size of the packets to be transmitted, determining at least one target link and the recommended transmission packet size, obtaining at least one actual transmission packet, and transmitting at least one actual transmission packet to the target receiving node can all be implemented through a load balancing module.

[0056] The technical solution of the embodiment of the present invention determines a target receiving node, and determines the packets to be transmitted to the target receiving node and the packet size of the packets to be transmitted, thereby clarifying information related to the packets to be transmitted; by determining at least one target link that can realize network packet transmission between the target receiving node, and the recommended transmission packet size corresponding to the at least one target link, at least one target link that is more suitable for transmitting the packets to be transmitted, and the size of the recommended network packet to be transmitted corresponding to the at least one target link is known; by processing the packets to be transmitted according to the size of the packets to be transmitted and the determined recommended transmission packet sizes, so as to realize unpacking or merging of the packets to be transmitted, and obtain at least one actual transmission packet, so that the obtained at least one actual transmission packet is more suitable for transmission through at least one target link; by transmitting at least one actual transmission packet to the target receiving node through at least one target link, at least one actual transmission packet is transmitted to the target receiving node. The above technical scheme unpacks or combines the packets to be transmitted according to the size of the packets to be transmitted and the determined sizes of each recommended transmission packet, and obtains at least one actual transmission packet that is more suitable for transmission through at least one target link. This avoids the problems of long transmission time, unstable response and high failure cost when the packets to be transmitted as network packets are too large, and also avoids the problems of easy congestion and high connection cost when the packets to be transmitted are too small, thereby reducing transmission costs and improving transmission efficiency and stability.

[0057] An optional technical solution, determining at least one target link that can realize network packet transmission between a target receiving node and a target receiving node, and a recommended transmission packet size corresponding to at least one target link, includes: determining link information of at least one alternative link that can realize network packet transmission between the target receiving node; determining at least one target link from at least one alternative link based on the link information, and determining a recommended transmission packet size corresponding to at least one target link.

[0058] Among them, the alternative link is a network link that is selected as a target link. Link information is relevant information of the alternative link; link information may include, for example, the network bandwidth between the sending node and the target receiving node, and / or, the pressure situation corresponding to at least one alternative link; link information may include real-time link information obtained in real time and / or fixed link information of the alternative link. The pressure situation can reflect the pressure of the alternative link; the pressure situation may include, for example, the request delay, request quantity parameter and / or request data volume parameter of the alternative link.

[0059] In an embodiment of the present invention, for example, link information of at least one candidate link that can realize network packet transmission with a target receiving node can be perceived in real time based on a traffic sensing module. In an embodiment of the present invention, the method for determining link information of at least one candidate link that can realize network packet transmission with a target receiving node is not specifically limited.

[0060] It should be noted that, when the link information only includes fixed link information, at least one target link and a recommended transmission packet size are determined, and at least one target link can be determined from the perspective of the packet to be transmitted, and when the packet to be transmitted is subsequently processed according to the size of the packet to be transmitted and the determined recommended transmission packet sizes, the packet to be transmitted is processed from the perspective of the packet to be transmitted; when the link information includes real-time link information, at least one target link and a recommended transmission packet size are determined, and when the packet to be transmitted is subsequently processed according to the size of the packet to be transmitted and the determined recommended transmission packet sizes, the packet to be transmitted is processed from the perspective of the target link to obtain an actual transmission packet suitable for passing through the target link.

[0061] In the embodiment of the present invention, for example, based on the link information, a candidate link can be determined from at least one candidate link, where the network bandwidth between the sending node and the target receiving node is greater than the preset bandwidth, the request delay meets the preset delay requirement, the request quantity parameter meets the preset quantity parameter requirement, and / or the request data volume parameter meets the preset data volume parameter requirement, as at least one target link. In the embodiment of the present invention, there is no specific limitation on the method of determining at least one target link from at least one candidate link based on the link information, and determining the recommended transmission packet size corresponding to each of the at least one target link.

[0062] In an embodiment of the present invention, third-meta information of the packet to be transmitted can also be determined. The third-meta information is information used to describe, explain and / or locate the packet to be transmitted. The third-meta information can include at least one of the request type of the request corresponding to the packet to be transmitted, the size of the packet to be transmitted, the priority, the processing requirements for processing the packet to be transmitted, and the response requirements of the packet to be transmitted; determine the link information of at least one alternative link that can realize the network packet transmission between the target receiving node; determine at least one target link from at least one alternative link based on the link information and the third-meta information, and determine the recommended transmission packet size corresponding to at least one target link. Exemplarily, the third-meta information including the request type and / or the size of the packet to be transmitted of the request corresponding to the packet to be transmitted can be determined; determine in real time the link information including the network bandwidth between the sending node and the target receiving node, and the pressure situation corresponding to at least one alternative link; determine at least one target link from at least one alternative link based on the link information and the third-meta information, and determine the recommended transmission packet size corresponding to at least one target link.

[0063] In an embodiment of the present invention, for example, at least one target link can be determined from at least one alternative link based on link information including network bandwidth and real-time link information between a sending node and a target receiving node, and an efficient transmission parameter interval, and a recommended transmission packet size corresponding to at least one target link can be determined. The efficient transmission parameter interval is an interval of parameters related to network packet transmission that can achieve efficient transmission in network packet transmission.

[0064] In an embodiment of the present invention, by determining link information of at least one alternative link, at least one target link can be determined from the at least one alternative link, and a recommended transmission packet size corresponding to the at least one target link can be determined, so as to obtain a target link that is more suitable for transmitting the packet to be transmitted, thereby improving transmission efficiency and stability.

[0065] Another optional technical solution is to process the packet to be transmitted according to the size of the packet to be transmitted and the determined sizes of each recommended transmission packet, so as to realize unpacking or merging of the packet to be transmitted and obtain at least one actual transmission packet, including: determining the unpacking and merging requirements of the packet to be transmitted according to the size of the packet to be transmitted and the determined sizes of each recommended transmission packet; when the unpacking and merging requirements are unpacking, unpacking the packet to be transmitted according to the size of the packet to be transmitted and the determined sizes of each recommended transmission packet, and obtain at least one actual transmission packet; when the unpacking and merging requirements are merging, obtaining a merged packet according to the size of the packet to be transmitted and the determined sizes of each recommended transmission packet, and merging the packet to be transmitted and the merged packet to obtain at least one actual transmission packet.

[0066] The splitting and merging requirements are requirements for splitting or merging packets to be transmitted. When merging packets, network packets can be merged with the packets to be transmitted.

[0067] In the embodiment of the present invention, for example, when the size of the packet to be transmitted is less than the minimum value among the recommended transmission packet sizes, the splitting requirement can be determined as packet joining; for another example, when the size of the packet to be transmitted is greater than the maximum value among the recommended transmission packet sizes, the splitting requirement can be determined as packet unpacking; for another example, when the size of the packet to be transmitted is greater than or equal to the minimum value among the recommended transmission packet sizes and less than or equal to the maximum value among the recommended transmission packet sizes, the packet to be transmitted can be used as an actual transmission packet without processing the packet to be transmitted, and the splitting requirement can also be determined as packet unpacking or packet joining; etc. In the embodiment of the present invention, the method of determining the splitting requirement of the packet to be transmitted according to the size of the packet to be transmitted and the determined recommended transmission packet sizes is not specifically limited.

[0068] In an embodiment of the present invention, when the unpacking requirement is unpacking, for example, the to-be-transmitted packet can be unpacked according to the size of the to-be-transmitted packet and the determined recommended transmission packet sizes to obtain at least one actual transmission packet, so that each actual transmission packet in the at least one actual transmission packet is less than or equal to the corresponding value in the recommended transmission packet size, and / or the difference between the two is within a preset range; for another example, the to-be-transmitted packet can be unpacked according to the size of the to-be-transmitted packet and the determined recommended transmission packet sizes to obtain at least one actual transmission packet, so that for each actual transmission packet in the at least one actual transmission packet except the actual transmission packet obtained by the last unpacking, there is a target transmission packet size corresponding to the actual transmission packet size in each recommended transmission packet size, the actual transmission packet size of the actual transmission packet obtained by the last unpacking in the at least one actual transmission packet is less than or equal to the recommended transmission packet size in each recommended transmission packet size that does not correspond to the actual transmission packet size, and / or the difference between the two is within a preset range; and so on. In the embodiment of the present invention, when the unpacking requirement is unpacking, the method of unpacking the packets to be transmitted according to the size of the packets to be transmitted and the determined recommended transmission packet sizes to obtain at least one actual transmission packet is not specifically limited.

[0069] In an embodiment of the present invention, when the splitting and combining requirement is to combine packets, for example, a combined size interval can be determined based on the size of the packet to be transmitted and the determined recommended transmission packet sizes, a queue packet whose size is in the combined size interval is determined from at least one queue packet that can also be transmitted to the target receiving node through at least one target link as a combined packet, and the packet to be transmitted and the combined packet are combined to obtain at least one actual transmission packet; for another example, the maximum combined size of the network packets that can be combined corresponding to at least one target link can be determined based on the size of the packet to be transmitted and the determined recommended transmission packet sizes, and for each target link in at least one target link, at least one initial candidate packet that can be transmitted to the target receiving node through the target link is determined, and a target candidate packet that is less than or equal to the maximum combined size is determined from at least one candidate packet to obtain at least one target candidate packet, and a combined packet is obtained by randomly selecting from at least one target candidate packet or selecting according to a preset selection rule. It should be noted that the packet to be transmitted and the combined packet are combined to obtain at least one actual transmission packet that can be transmitted through the target link corresponding to the packet to be transmitted or the target link corresponding to the combined packet; and so on. In the embodiment of the present invention, when the requirement for splitting and combining is to combine packets, a combined packet is obtained according to the size of the packet to be transmitted and the determined sizes of each recommended transmission packet, and the packet to be transmitted and the combined packet are combined to obtain at least one actual transmission packet without any specific limitation.

[0070] In an embodiment of the present invention, the unpacking requirement is determined according to the size of the packet to be transmitted and the determined recommended transmission packet sizes, and the packet to be transmitted is unpacked or packed according to the unpacking requirement, so that at least one actual transmission packet can be more suitable for transmission through at least one target link.

[0071] Figure 2 It is a flowchart of another network packet transmission method provided in an embodiment of the present invention. This embodiment is optimized based on the above-mentioned technical solutions. In this embodiment, optionally, determining the target receiving node includes: determining the target receiving node from at least one candidate receiving node, wherein at least one queue packet is stored in the node queue corresponding to the target receiving node; determining the packet to be transmitted to the target receiving node and the packet size to be transmitted of the packet to be transmitted, including: according to the preset packet acquisition rule, taking out the packet to be transmitted from at least one queue packet, and determining the packet size to be transmitted of the packet to be transmitted. Among them, the explanations of the terms that are the same or corresponding to the above-mentioned embodiments are not repeated here.

[0072] See also Figure 2 The method of this embodiment may specifically include the following steps:

[0073] S210: Determine a target receiving node from at least one candidate receiving node, wherein at least one queue packet is stored in a node queue corresponding to the target receiving node.

[0074] The candidate receiving node is a receiving node that is selected as the target receiving node. The node queue is a queue in the sending node corresponding to the target receiving node, which is used to place queue packets. The queue packet is a network packet stored in the node queue.

[0075] It should be noted that the sending node may be able to transmit network packets with multiple receiving nodes, and the receiving node that can transmit network packets with the sending node may be used as at least one candidate receiving node.

[0076] In the embodiment of the present invention, since at least one queue packet is stored in the node queue corresponding to the candidate receiving node, that is, there is a network packet demand to be sent to the candidate receiving node, the candidate receiving node whose corresponding node queue in at least one candidate receiving node stores at least one queue packet can be used as the target receiving node. In the embodiment of the present invention, the method of determining the target receiving node from at least one candidate receiving node is not specifically limited.

[0077] S220: According to a preset packet acquisition rule, take out a packet to be transmitted from at least one queue packet, and determine a size of the packet to be transmitted.

[0078] The packet acquisition rule is a rule for taking out a packet to be transmitted from at least one queue packet.

[0079] In the embodiment of the present invention, for example, the packet acquisition rule may be to take out the to-be-transmitted packet according to the queueing order of at least one queue packet in the node queue; for another example, the number of node queues may be more than one, for example, the node queue may include a high priority queue, a medium priority queue and a normal queue, and the packet acquisition rule may be to process in sequence according to the queue priority; the packet acquisition rule may also be to process the queue packets in the first number of high priority queues, the queue packets in the second number of medium priority queues, and the queue packets in the third number of normal queues after processing the queue packets in the first number of high priority queues, the first number may be greater than or equal to the second number, the second number may be greater than or equal to the third number, for example, the first number is 10, the second number is 3, and the third number is 1; and so on. In the embodiment of the present invention, the content of the packet acquisition rule is not specifically limited.

[0080] Exemplarily, in the case where the packet acquisition rule is to process 10 queue packets in the high-priority queue, then 3 queue packets in the medium-priority queue, and then 1 queue packet in the ordinary queue, if 10 queue packets have been taken out from the high-priority queue as packets to be transmitted before the packet to be transmitted is taken out this time, the packet to be transmitted can be taken out from the medium-priority queue according to the preset packet acquisition rule, and the size of the packet to be transmitted can be determined. In the embodiment of the present invention, there is no specific limitation on the method of taking out the packet to be transmitted from at least one queue packet according to the preset packet acquisition rule, and determining the size of the packet to be transmitted.

[0081] S230: Determine at least one target link that can realize network packet transmission with a target receiving node, and a recommended transmission packet size corresponding to each of the at least one target link.

[0082] S240: Process the packets to be transmitted according to the size of the packets to be transmitted and the determined sizes of the recommended transmission packets, so as to unpack or combine the packets to be transmitted and obtain at least one actual transmission packet.

[0083] S250. Transmit at least one actual transmission packet to a target receiving node through at least one target link.

[0084] The technical solution of the embodiment of the present invention determines the target receiving node from at least one candidate receiving node, wherein at least one queue packet is stored in the node queue corresponding to the target receiving node, so that there is a network packet in the node queue corresponding to the target receiving node that can be transmitted to the target receiving node; according to the preset packet acquisition rule, the packet to be transmitted is taken out from at least one queue packet, and the size of the packet to be transmitted is determined, so that the packet to be transmitted is taken out according to the packet acquisition rule. The above technical solution can ensure that there is a network packet in the node queue corresponding to the target receiving node that can be transmitted to the target receiving node by determining the target receiving node in which at least one queue packet is stored in the corresponding node queue from at least one candidate receiving node, thereby avoiding the waste of resources caused by obtaining the target receiving node that does not have a network packet in the corresponding node queue, and can also take out the packet to be transmitted according to the preset packet acquisition rule, so that the packet to be transmitted is not obtained in a disorderly manner, avoiding the transmission of network packets with high urgency or high real-time requirements caused by the disorderly acquisition of the packet to be transmitted, thereby improving the transmission efficiency.

[0085] Figure 3 It is a flowchart of another network packet transmission method provided in an embodiment of the present invention. This embodiment is optimized based on the above-mentioned technical solutions. In this embodiment, optionally, the network packet transmission method also includes: when receiving a receiving packet, determining a receiving node that can receive the receiving packet from at least one candidate receiving node; placing the receiving packet as a queue packet into a node queue corresponding to the receiving node. Among them, the explanations of the terms that are the same or corresponding to the above-mentioned embodiments are not repeated here.

[0086] See also Figure 3 The method of this embodiment may specifically include the following steps:

[0087] S310: When a receiving packet is received, determine a waiting receiving node that can receive the receiving packet from at least one candidate receiving node.

[0088] The received packet is a network packet received by the sending node; the received packet may come from a user's client, or from other sending nodes, etc. The receiving node is a receiving node to which the received packet is to be transmitted and to process the received packet.

[0089] In the embodiment of the present invention, for example, a candidate receiving node of a request type that can process a request corresponding to a receiving packet among at least one candidate receiving node can be used as a node to be received; another example is that a candidate receiving node with a smaller load pressure among at least one candidate receiving node can be used as a node to be received; etc. In the embodiment of the present invention, when a receiving packet is received, the method of determining a node to be received that can receive the receiving packet from at least one candidate receiving node is not specifically limited.

[0090] In the embodiment of the present invention, when the reception packet arrives at the port of the sending node, the reception packet may be received.

[0091] S320: Put the received packet as a queue packet into the node queue corresponding to the node to be received.

[0092] In the embodiment of the present invention, for example, the received packet may be randomly placed as a queue packet in a node queue corresponding to the node to be received; for another example, the received packet may be inserted as a queue packet into the node queue corresponding to the node to be received according to the priority of the received packet; etc. In the embodiment of the present invention, the manner of placing the received packet as a queue packet into the node queue corresponding to the node to be received is not specifically limited.

[0093] In an embodiment of the present invention, after placing the received packet as a queue packet into the node queue corresponding to the node to be received, the first metadata of the received packet and the node type corresponding to at least one alternative receiving node can also be determined, and the load situation corresponding to at least one alternative receiving node can be detected in real time. For each queue packet in the node queue corresponding to at least one alternative receiving node, the node queue in which the queue packet is located can be adjusted in real time according to the first metadata, the load situation and the node type, that is, the queue packet can be adjusted to the node queue corresponding to other alternative receiving nodes.

[0094] S330: Determine a target receiving node from at least one candidate receiving node, wherein at least one queue packet is stored in a node queue corresponding to the target receiving node.

[0095] S340: According to a preset packet acquisition rule, take out a packet to be transmitted from at least one queue packet, and determine a size of the packet to be transmitted.

[0096] S350: Determine at least one target link that can realize network packet transmission with a target receiving node, and a recommended transmission packet size corresponding to each of the at least one target link.

[0097] In the embodiment of the present invention, at least one target link that can realize network packet transmission between the target receiving node and the recommended transmission packet size corresponding to the at least one target link can be determined in real time; before the received packet is placed as a queue packet in the node queue corresponding to the node to be received, at least one target link of the received packet and the recommended transmission packet size corresponding to the at least one target link can be determined; when it is required to determine at least one target link that can realize network packet transmission between the target receiving node and the recommended transmission packet size corresponding to the at least one target link, the recommended transmission packet size corresponding to the at least one target link of the received packet and the at least one target link can be directly used as the recommended transmission packet size corresponding to the at least one target link of the packet to be transmitted and the at least one target link; before the received packet is placed as a queue packet in the node queue corresponding to the node to be received, Determine at least one target link of a received packet and a recommended transmission packet size corresponding to at least one target link. When the requirement determines at least one target link that can realize network packet transmission between a target receiving node and at least one target link and a recommended transmission packet size corresponding to at least one target link, use the recommended transmission packet size corresponding to at least one target link of the received packet and at least one target link as the recommended transmission packet size corresponding to at least one target link of the packet to be transmitted and at least one target link. Then, according to the current requirement, the determined third metadata of the packet to be transmitted and / or the link information of at least one alternative link, adjust and update the recommended transmission packet size corresponding to at least one target link of the packet to be transmitted and at least one target link. For example, the original at least one target link is three links numbered 0, 1 and 2, and the updated at least one target link is three links numbered 2, 3 and 4.

[0098] S360: Process the packets to be transmitted according to the size of the packets to be transmitted and the determined sizes of the recommended transmission packets, so as to unpack or combine the packets to be transmitted and obtain at least one actual transmission packet.

[0099] S370. Transmit at least one actual transmission packet to a target receiving node through at least one target link.

[0100] The technical solution of the embodiment of the present invention can achieve the determination of the node to be received that processes the received packet by determining the node to be received that can receive the received packet from at least one candidate receiving node when the received packet is received; the received packet is placed as a queue packet in the node queue corresponding to the node to be received, so that the received packet can be subsequently processed as a packet to be transmitted. The above technical solution can facilitate the subsequent transmission processing of the received packet as a packet to be transmitted by placing the received packet as a queue packet in the node queue corresponding to the node to be received.

[0101] An optional technical solution, determining a waiting receiving node that can receive a receiving packet from at least one alternative receiving node, includes: determining first metadata of the receiving packet, and the load condition and node type corresponding to at least one alternative receiving node; and determining the waiting receiving node that can receive the receiving packet from at least one alternative receiving node based on the first metadata, the load condition and the node type.

[0102] Among them, the first meta-information is information used to describe, explain and / or locate the received packet; the first meta-information may include at least one of the requester of the request corresponding to the received packet, the request type, the size of the received packet, the priority, the processing requirements for processing the received packet, and the response requirements for the received packet. The load condition is the pressure or workload that the alternative receiving node is under. The node type is the type of the alternative receiving node. Specifically, the node type can also be understood as the type of request that the alternative receiving node can process. Since different computing powers may be suitable for processing different types of requests, the computing power services deployed by different nodes may be different. More specifically, the node type can also be understood as the computing power service corresponding to the alternative receiving node.

[0103] It is understandable that since not every alternative receiving node can process the request type corresponding to the request for the packet to be transmitted, and some alternative receiving nodes may have a large load pressure and are unable to process the network packet, the node to receive the packet can be determined from at least one alternative receiving node based on the first metadata, load conditions and node type.

[0104] In the embodiment of the present invention, the load condition may include the load condition of the transmission link, that is, the request delay, request quantity parameter and / or request data volume parameter of at least one link corresponding to the candidate receiving node. It should be noted that the request quantity parameter is a parameter obtained by measuring the performance of storage devices such as hard disk drive (HDD), solid state drive (SSD) and / or storage area network (SAN) of the candidate receiving node, and can also be understood as the number of reads and writes per second, which can reflect the number of network packets transmitted in the link; the rate is the most important performance indicator in the network, and the unit of the rate is b / s (bit per second) or bit / s or bps, that is, bit per second. A simpler notation is often used to describe the rate of the network, such as 100M Ethernet, the b / s in the unit can be omitted, that is, the Ethernet rate is 100Mb / s. The above rate can refer to the rated rate or nominal rate, that is, the bandwidth, and the request data volume parameter of the embodiment of the present invention can represent the instantaneous rate, reflecting the amount of data transmitted per second in the link, which can be expressed in bits per second (bit per second). The unit is data rate per second (bps), or bit rate (bps), which means the number of bits of a binary number transmitted per second. Different networks generally have different bit rates. The same network can achieve different bit rates by using different network cables. For example, the communication speed of the Process Fieldbus (PROFIBUS) fieldbus is 1.5Kbps when twisted pair is used as the network cable, and can reach 12Mbps when optical cable is used. The requested data volume parameter can also be understood as the rate at which the host connected to the network transmits data on the digital channel. It is also called data rate or bit rate.

[0105] In the embodiment of the present invention, the load conditions respectively corresponding to at least one candidate receiving node may be dynamically detected in real time, so as to determine the load conditions respectively corresponding to at least one candidate receiving node. It should be noted that the bandwidth of the link between different nodes is fixed in a short period of time, for example, it can be a bandwidth of 100G / s, and the physically connected link can be, for example, 100 optical fiber links. For each candidate receiving node, the pressure situation of each link corresponding to the candidate receiving node can be dynamically detected, for example, the request delay, IOPS and / or BPS of each link can be dynamically detected as the load situation. When the IOPS is relatively large and the BPS is relatively small, it means that the number of network packets transmitted by the link is large, but the amount of data of the transmitted network packets is small, and the network bandwidth is not fully utilized, resulting in a waste of resources. A large number of network packets occupy a large number of links, causing link blocking, inability to transmit and respond to other network packets, and high connection cost; when the IOPS is relatively small and the BPS is relatively large, it means that the number of network packets transmitted by the link is small, but the amount of data of the transmitted network packets is large. Although the network bandwidth is fully utilized, transmission failure is prone to occur, and the transmission time is long, the response is unstable, and the failure cost is high. Therefore, in an embodiment of the present invention, the node to be received for receiving the packet can be determined from at least one candidate receiving node according to the load situation. In the embodiment of the present invention, there is no specific limitation on the manner of determining the load condition and the node type respectively corresponding to at least one candidate receiving node.

[0106] In the embodiment of the present invention, for example, the first meta information can be determined from the header (Overhead) of the received packet; the meta information mentioned in the embodiment of the present invention can be determined by the header of the corresponding network packet. In the embodiment of the present invention, the method for determining the first meta information of the received packet is not specifically limited.

[0107] In the embodiment of the present invention, for example, a candidate receiving node whose node type corresponds to the request type in the first meta information of the received packet and whose load condition satisfies a preset load condition may be determined as a node to be received from at least one candidate receiving node. In the embodiment of the present invention, the method of determining the node to be received from at least one candidate receiving node for receiving the packet according to the first meta information, the load condition and the node type is not specifically limited.

[0108] In an embodiment of the present invention, the node to be received of the received packet can also be determined from at least one candidate receiving node based on the first meta-information, the load condition, the node type, and the node computing power corresponding to at least one candidate receiving node, and the node computing power can characterize the computing power of the candidate receiving node to process the request. For example, the node to be received of the received packet can be determined from at least one candidate receiving node based on the request type and / or the size of the received packet, the load condition, the node type, and the number and / or size of the computing power of the candidate receiving nodes in the node computing power corresponding to at least one candidate receiving node in the first meta-information.

[0109] In an embodiment of the present invention, a node to receive a packet can be determined from at least one candidate receiving node by determining the first metadata, load conditions, and node type, so that the determined node to receive a packet can be more suitable for processing the received packet.

[0110] Another optional technical solution is to place the received packet as a queue packet into a node queue corresponding to the node to be received, including: determining the second metadata of the received packet, and determining the priority and / or processing order of the received packet based on the second metadata; and placing the received packet as a queue packet into the node queue corresponding to the node to be received according to the priority and / or processing order.

[0111] The second meta information is information used to describe, explain and / or locate the received packet; the first meta information may include at least one of the requester of the request corresponding to the received packet, the request type, the priority, the received packet size, the processing requirement for processing the received packet, and the response requirement for the received packet. The priority is the priority of the request to process the received packet. The processing order is the order in which the request to process the received packet is processed.

[0112] In the embodiment of the present invention, since the number of network packets that the current sending node needs to process may be large, while the number of network packets that the current sending node can process may be limited, it may be necessary to place the receiving packets into the corresponding positions in the queue according to the urgency and real-time requirements of different receiving packets, so as to ensure that the sending node can process each required network packet in a timely manner according to the demand, and the priority and processing order of the receiving packets can reflect the urgency and real-time requirements. Therefore, the priority and / or processing order of the receiving packets can be determined, so as to place the receiving packets as a queue packet into the node queue corresponding to the node to be received according to the priority and / or processing order. In the embodiment of the present invention, there is no specific limitation on the method of determining the priority and / or processing order of the receiving packets according to the second metadata.

[0113] In the embodiment of the present invention, for example, the weights corresponding to the priority and the processing order can be determined, the quantized priority can be multiplied by the weight corresponding to the priority to obtain a first result, and the processing order can be multiplied by the weight corresponding to the processing order to obtain a second result, the first result and the second result can be added to obtain a queuing value, and the placement position of the received packet in the node queue can be determined according to the queuing value, and the received packet can be placed in the placement position as a queue packet. In the embodiment of the present invention, there is no specific limitation on the method of placing the received packet as a queue packet in the node queue corresponding to the node to be received according to the priority and / or processing order.

[0114] In an embodiment of the present invention, when a node queue may include a high-priority queue, a medium-priority queue and an ordinary queue, for each queue in the high-priority queue, the medium-priority queue and the ordinary queue, the queue may also include at least one request queue corresponding to different request types; according to the priority and / or processing order, the received packet is placed as a queue packet in the node queue corresponding to the node to be received. For example, according to the priority and / or processing order, the priority queue can be determined from the ordinary queues in the high-priority queue and the medium-priority queue corresponding to the node to be received, and then according to the request type of the request corresponding to the received packet in the second metadata, the target queue is determined from at least one request queue in the priority queue, and finally, according to the priority and / or processing order, the placement position of the received packet in the target queue is determined, and the received packet is placed in the placement position as a queue packet.

[0115] In an embodiment of the present invention, the received packet can be placed as a queue packet into a node queue corresponding to the node to be received according to a determined priority and / or processing order, so that when the queue packet is transmitted, it can be transmitted according to the urgency and real-time requirements of the queue packet, to ensure that the sending node can process each required network packet in a timely manner according to demand.

[0116] Figure 4 1 is a structural block diagram of a network packet transmission system provided in an embodiment of the present invention. This embodiment is applicable to the situation of network packet transmission.

[0117] See also Figure 4 The network packet transmission system of the embodiment of the present invention includes: a sending node 410 and a target receiving node 420 for implementing the network packet transmission method provided by any of the above embodiments of the present invention when executed; wherein the target receiving node 420 is used to determine the disassembly and assembly information of at least one received actual transmission packet, and process the at least one actual transmission packet according to the disassembly and assembly information to obtain a processing packet. The explanations of the terms that are the same or corresponding to the above embodiments are not repeated here.

[0118] The disassembly information is information that can characterize the disassembly and assembly method of the to-be-transmitted packet to obtain at least one actual transmission packet by disassembling or assembling the to-be-transmitted packet; the disassembly information can be determined from the packet header of at least one actual transmission packet, and for example, the sending node 410 can send the disassembly information together with at least one actual transmission packet to the target receiving node 420 so that the target receiving node 420 can directly obtain it, etc. The processing packet is a network packet obtained by disassembling or assembling at least one actual transmission packet.

[0119] It is understandable that the sending node 410 and the target receiving node 420 can be nodes in a network packet transmission system. The network packet transmission system can include not only the sending node 410 and the target receiving node 420, but also at least one alternative receiving node, and can also include other sending nodes 410 and receiving nodes, which are not specifically limited here. In an embodiment of the present invention, the network packet transmission system can adopt a distributed architecture, so as to facilitate the rapid routing and load balancing of network packets. Specifically, the distributed architecture is a network form that interconnects nodes distributed in different locations through lines, and is generally used for networking between nodes with a long physical distance. The distributed structure network has the advantages of using decentralized control. Even if a local failure occurs in the entire network, it will not affect the operation of the entire network. It has high reliability, and the path selection shortest path algorithm in the distributed architecture network can reduce the delay time on the network and increase the transmission rate. In addition, data links can be directly established between each node in the distributed architecture, and the information flow is shortest and convenient for resource sharing within the entire network.

[0120] In an embodiment of the present invention, the sending node 410 transmits at least one actual transmission packet to the target receiving node 420 through at least one target link, and after the at least one actual transmission packet arrives at the target receiving node 420, the target receiving node 420 can parse and / or restore the at least one actual transmission packet through a network packet parsing module according to the disassembly information to obtain a processing packet, which can at least include a packet to be transmitted. The target receiving node 420 then sends the processing packet to the corresponding server for processing.

[0121] In the embodiment of the present invention, the process of processing the packet to be transmitted to realize the unpacking or packing of the packet to be transmitted to obtain at least one actual transmission packet may be the opposite of the process of processing at least one actual transmission packet according to the unpacking or packing information to obtain the processing packet. In the embodiment of the present invention, the method of processing at least one actual transmission packet according to the unpacking or packing information to obtain the processing packet is not specifically limited.

[0122] The technical solution of the embodiment of the present invention is implemented by a sending node and a target receiving node for executing the network packet transmission method provided by any of the above embodiments of the present invention; wherein the target receiving node is used to determine the disassembly and assembly information of at least one actual transmission packet received, and process at least one actual transmission packet according to the disassembly and assembly information to obtain a processing packet. The above technical solution processes at least one actual transmission packet through the disassembly and assembly information to obtain a processing packet, so as to obtain a complete processing packet that can be processed, so as to facilitate processing of the processing packet.

[0123] An optional technical solution, the target receiving node is also used to: determine the pending response packet to be transmitted to the sending node and the pending response packet size of the pending response packet based on the processing packet; determine at least one response link that can realize the network packet transmission with the sending node, and the recommended response packet size corresponding to the at least one response link; process the pending response packet based on the pending response packet size and the determined recommended response packet sizes to realize the unpacking or merging of the pending response packet to obtain at least one actual response packet; and transmit the at least one actual response packet to the sending node through at least one response link.

[0124] Among them, the pending response packet is a network packet that responds to receiving or processing at least one actual transmission packet sent by the sending node; the number of pending response packets can be one or more. The pending response packet size is the size of the pending response packet. The response link is a network link used to transmit the pending response packet to the sending node. The recommended response packet size is the recommended size of the network packet that can be transmitted by the response link; the recommended response packet size can be, for example, the size of the network packet with the highest efficiency that can be transmitted by the response link. The actual response packet is the network packet actually transmitted to the sending node through at least one response link.

[0125] In the embodiment of the present invention, for example, the pending response packet to be transmitted to the sending node and the pending response packet size of the pending response packet can be determined based on the processing of the processing packet. In the embodiment of the present invention, the method for determining the pending response packet to be transmitted to the sending node and the pending response packet size of the pending response packet based on the processing packet is not specifically limited.

[0126] In an embodiment of the present invention, a method for determining at least one response link that can realize network packet transmission with a sending node, and a recommended response packet size corresponding to at least one response link, and a method for determining at least one target link that can realize network packet transmission with a target receiving node, and a recommended transmission packet size corresponding to at least one target link, may be the same as or different from.

[0127] In an embodiment of the present invention, a method of processing a packet to be responded to according to the size of the packet to be responded to and the determined sizes of each recommended response packet to achieve unpacking or merging of the packet to be responded to and obtain at least one actual response packet may be the same as or different from a method of processing a packet to be transmitted according to the size of the packet to be transmitted and the determined sizes of each recommended transmission packet to achieve unpacking or merging of the packet to be transmitted and obtain at least one actual transmission packet.

[0128] In an embodiment of the present invention, the method of transmitting at least one actual response packet to a sending node via at least one response link may be the same as or different from the method of transmitting at least one actual transmission packet to a target receiving node via at least one target link.

[0129] In an embodiment of the present invention, the process by which the target receiving node transmits at least one actual response packet to the sending node may be the same as the process by which the sending node transmits at least one actual transmission packet to the target receiving node. The only difference between the two is that in the process by which the target receiving node transmits at least one actual response packet to the sending node, there is no need to determine the target receiving node, that is, there is no need to determine the object to which the at least one actual response packet is required to be transmitted.

[0130] It should be noted that the preset amount of bandwidth between the sending node and the target receiving node is a unidirectional preset amount of bandwidth, that is, the bandwidth for the sending node to transmit at least one actual transmission packet to the target receiving node is a preset amount of bandwidth, and the bandwidth for the target receiving node to transmit at least one actual response packet to the sending node is also a preset amount of bandwidth. For example, the bandwidth of 100G between the sending node and the target receiving node is unidirectional 100G, that is, the bandwidth for the sending node to transmit at least one actual transmission packet to the target receiving node is 100G, and the bandwidth for the target receiving node to transmit at least one actual response packet to the sending node is also 100G.

[0131] The technical solution of the embodiment of the present invention determines the pending response packet to be transmitted to the sending node and the pending response packet size of the pending response packet according to the processing packet, and clarifies the information related to the pending response packet; determines at least one response link that can realize the network packet transmission with the sending node, and the recommended response packet size corresponding to the at least one response link, and knows at least one response link that is more suitable for transmitting the pending response packet, and the size of the recommended transmission network packet corresponding to the at least one response link; processes the pending response packet according to the size of the pending response packet and the determined recommended response packet sizes to realize the unpacking or merging of the pending response packet, and obtains at least one actual response packet, so that the obtained at least one actual response packet is more suitable for transmission through at least one response link; transmits the at least one actual response packet to the sending node through the at least one response link, and realizes the transmission of the at least one actual response packet to the sending node. The above technical scheme unpacks or combines the response packets according to the size of the response packets to be responded and the determined sizes of each recommended response packet, and obtains at least one actual response packet that is more suitable for transmission through at least one response link. This avoids the problems of long transmission time, unstable response and high failure cost when the response packets to be responded are too large as network packets, and also avoids the problems of easy blocking and high connection cost when the response packets to be responded are too small, thereby reducing transmission costs and improving transmission efficiency and stability.

[0132] In order to better understand the technical solution of the above embodiment of the present invention, an optional example is provided here. Figure 5, when receiving the receiving packet as input, the sending node determines the receiving node that can receive the receiving packet; puts the receiving packet into the node queue corresponding to the receiving node as a queue packet; determines the target receiving node through the load balancing module, and determines the packet A to be transmitted to the target receiving node and the size of the packet A to be transmitted; according to the link information of at least one candidate link sensed by the traffic sensing module of the input load balancing module, determines three target links numbered as link 0, link 1 and link 2 from at least one candidate link, and determines the recommended transmission packet size corresponding to at least one target link; according to the size of the packet to be transmitted and the determined recommended transmission packet sizes, The packet A to be transmitted is arranged and processed to realize the unpacking of the packet to be transmitted, and three actual transmission packets numbered A0, A1 and A2 are obtained; the three actual transmission packets numbered A0, A1 and A2 are transmitted to the target receiving node through three target links numbered link 0, link 1 and link 2; the target receiving node puts the three actual transmission packets numbered A0, A1 and A2 into a receiving queue, and the network packet parsing module takes out the three actual transmission packets numbered A0, A1 and A2 from the receiving queue, and performs network packet parsing on the three actual transmission packets numbered A0, A1 and A2 to realize the merging of the received actual transmission packets, and the transmitted packet A to be transmitted is used as output.

[0133] In order to better understand the technical solution of the above embodiment of the present invention, another optional example is provided here. Figure 6, when the sending node receives two receiving packets as input, it determines the receiving nodes corresponding to the two receiving packets respectively; for each receiving packet in the two receiving packets, it puts the receiving packet into the node queue corresponding to the receiving node as a queue packet; determines the target receiving node through the load balancing module, and determines the to-be-transmitted packet A to be transmitted to the target receiving node and the to-be-transmitted packet size of the to-be-transmitted packet A; according to the link information of the three candidate links numbered link 0, link 1 and link 2 perceived by the traffic perception module of the input load balancing module, determines the target link numbered link 2 from the three candidate links numbered link 0, link 1 and link 2, and determines the recommended transmission path of the target link Transmission packet size; according to the size of the packet to be transmitted and the recommended transmission packet size, the packet A to be transmitted is arranged and processed to merge the obtained merged package B with the packet A to be transmitted, so as to realize the packet combination of the packet A to be transmitted and obtain the actual transmission packet numbered A+B; through the target link numbered link 2, the actual transmission packet numbered A+B is transmitted to the target receiving node; the target receiving node puts the actual transmission packet numbered A+B into the receiving queue, and the network packet parsing module takes out the actual transmission packet numbered A+B from the receiving queue, and performs network packet parsing on the actual transmission packet numbered A+B to realize the unpacking of the received actual transmission packet, and outputs the transmitted merged package B and the packet A to be transmitted.

[0134] The technical solution of the embodiment of the present invention, through real-time perception and analysis of link information, combined with the different requirements of network packets corresponding to requests of various request types, completes the orchestration, transmission and parsing of network packets through intelligent algorithms. It can effectively avoid the disadvantages of long transmission time, unstable response, high failure cost, large overhead, easy blocking and high connection cost that are prone to occur in the traditional network packet transmission system without the perception of users at the input and output ends, thereby reducing transmission costs and improving transmission efficiency and stability.

[0135] Figure 7 This is a structural block diagram of a network packet transmission device provided in an embodiment of the present invention. The device is applied to a sending node and is used to execute the network packet transmission method provided in any of the above embodiments. The device and the network packet transmission method of the above embodiments belong to the same inventive concept. For details not described in detail in the embodiment of the network packet transmission device, please refer to the embodiment of the above network packet transmission method. Figure 7 The device may specifically include: a module 510 for determining the size of a packet to be transmitted, a module 520 for determining the size of a recommended packet to be transmitted, a module 530 for obtaining an actual packet to be transmitted, and a module 540 for transmitting an actual packet to be transmitted.

[0136] Among them, the module 510 for determining the size of the packet to be transmitted is used to determine the target receiving node, and determine the packet to be transmitted to the target receiving node and the size of the packet to be transmitted; the module 520 for determining the recommended transmission packet size is used to determine at least one target link that can realize network packet transmission between the target receiving node, and the recommended transmission packet size corresponding to at least one target link; the module 530 for obtaining the actual transmission packet is used to process the packet to be transmitted according to the size of the packet to be transmitted and the determined recommended transmission packet sizes, so as to realize the unpacking or merging of the packet to be transmitted and obtain at least one actual transmission packet; the actual transmission packet transmission module 540 is used to transmit at least one actual transmission packet to the target receiving node through at least one target link.

[0137] Optionally, the module for determining the size of the packet to be transmitted 510 includes: a target receiving node determination sub-module, used to determine the target receiving node from at least one alternative receiving node, wherein at least one queue packet is stored in the node queue corresponding to the target receiving node; the module for determining the size of the packet to be transmitted 510 includes: a sub-module for determining the size of the packet to be transmitted, used to take out the packet to be transmitted from at least one queue packet according to a preset packet acquisition rule, and determine the size of the packet to be transmitted of the packet to be transmitted.

[0138] Optionally, based on the above-mentioned device, the device also includes: a to-be-received node determination module, which is used to determine a to-be-received node that can receive the receive packet from at least one alternative receiving node when a receive packet is received; and a queue packet placement module, which is used to place the receive packet as a queue packet into a node queue corresponding to the to-be-received node.

[0139] Optionally, based on the above-mentioned device, the module for determining the node to be received includes: a node type determination sub-module, used to determine the first meta-information of the received packet, and the load condition and node type corresponding to at least one alternative receiving node; a sub-module for determining the node to be received, used to determine the node to be received of the received packet from at least one alternative receiving node based on the first meta-information, the load condition and the node type.

[0140] Optionally, based on the above-mentioned device, a queue packet is placed in a module, including: a processing order determination submodule, used to determine the second metadata of the received packet, and determine the priority and / or processing order of the received packet based on the second metadata; a queue packet is placed in a submodule, used to place the received packet as a queue packet into a node queue corresponding to the node to be received according to the priority and / or processing order.

[0141] Optionally, the recommended transmission packet size determination module 520 includes: a link information determination submodule, used to determine the link information of at least one alternative link that can realize network packet transmission between the target receiving node; a recommended transmission packet size determination submodule, used to determine at least one target link from at least one alternative link based on the link information, and determine the recommended transmission packet size corresponding to the at least one target link.

[0142] Optionally, the actual transmission packet obtaining module 530 includes: a submodule for determining the unpacking requirement, which is used to determine the unpacking requirement of the packet to be transmitted according to the size of the packet to be transmitted and the determined recommended transmission packet sizes; a submodule for obtaining the actual transmission packet, which is used to unpack the packet to be transmitted according to the size of the packet to be transmitted and the determined recommended transmission packet sizes when the unpacking requirement is unpacking, so as to obtain at least one actual transmission packet; a submodule for obtaining the actual transmission packet, which is used to obtain a merged packet according to the size of the packet to be transmitted and the determined recommended transmission packet sizes when the unpacking requirement is merging, and to merge the packet to be transmitted and the merged packet to obtain at least one actual transmission packet.

[0143] The network packet transmission device provided by the embodiment of the present invention determines the target receiving node through a module for determining the size of packets to be transmitted, and determines the packets to be transmitted to the target receiving node and the size of the packets to be transmitted, and clarifies the information related to the packets to be transmitted; determines at least one target link that can realize the network packet transmission between the target receiving node and the recommended transmission packet size corresponding to the at least one target link through a module for determining the size of recommended transmission packets, and obtains at least one target link that is more suitable for transmitting the packets to be transmitted, and the size of the recommended transmission network packet corresponding to the at least one target link; processes the packets to be transmitted according to the size of the packets to be transmitted and the determined recommended transmission packet sizes through a module for obtaining actual transmission packets, so as to realize the unpacking or merging of the packets to be transmitted, and obtain at least one actual transmission packet, so that the obtained at least one actual transmission packet is more suitable for transmission through at least one target link; transmits at least one actual transmission packet to the target receiving node through at least one target link through an actual transmission packet transmission module, and realizes the transmission of at least one actual transmission packet to the target receiving node. The above-mentioned device unpacks or combines the packets to be transmitted according to the size of the packets to be transmitted and the determined sizes of each recommended transmission packet, and obtains at least one actual transmission packet that is more suitable for transmission through at least one target link. This avoids the problems of long transmission time, unstable response and high failure cost when the packets to be transmitted as network packets are too large, and also avoids the problems of easy congestion and high connection cost when the packets to be transmitted are too small, thereby reducing transmission costs and improving transmission efficiency and stability.

[0144] The network packet transmission device provided in the embodiment of the present invention can execute the network packet transmission method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0145] It is worth noting that in the embodiment of the above-mentioned network packet transmission device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

Claims

1. A network packet transmission method, characterized in that: Applied to a sending node, the method comprises: Determine a target receiving node, and determine a packet to be transmitted to the target receiving node and a packet size to be transmitted of the packet to be transmitted; Determine at least one target link that can realize network packet transmission with the target receiving node, and a recommended transmission packet size corresponding to each of the at least one target link; According to the size of the packet to be transmitted and the determined sizes of each recommended transmission packet, the packet to be transmitted is processed to realize unpacking or merging of the packet to be transmitted to obtain at least one actual transmission packet; The at least one actual transmission packet is transmitted to the target receiving node via the at least one target link.

2. The method according to claim 1, characterized in that The determining of the target receiving node comprises: Determine a target receiving node from at least one candidate receiving node, wherein at least one queue packet is stored in a node queue corresponding to the target receiving node; The determining of the to-be-transmitted packets to be transmitted to the target receiving node and the to-be-transmitted packet size of the to-be-transmitted packets includes: According to a preset packet acquisition rule, a packet to be transmitted is taken out from the at least one queue packet, and a packet size to be transmitted of the packet to be transmitted is determined.

3. The method according to claim 2, characterized in that Also includes: In case of receiving a receiving packet, determining a to-be-received node that can receive the receiving packet from the at least one candidate receiving node; The received packet is placed as a queue packet into a node queue corresponding to the to-be-received node.

4. The method according to claim 3, characterized in that The determining a node to be received that can receive the receiving packet from the at least one candidate receiving node includes: Determine the first metadata of the received packet, and the load condition and node type respectively corresponding to the at least one candidate receiving node; A node to be received by the receiving packet is determined from the at least one candidate receiving node according to the first metadata, the load condition, and the node type.

5. The method according to claim 3, characterized in that: The step of placing the received packet as a queue packet into a node queue corresponding to the to-be-received node includes: Determining second metadata of the received packet, and determining a priority and / or a processing order of the received packet according to the second metadata; According to the priority and / or the processing order, the received packet is placed as a queue packet into a node queue corresponding to the to-be-received node.

6. The method according to claim 1, characterized in that The determining of at least one target link capable of implementing network packet transmission with the target receiving node, and a recommended transmission packet size respectively corresponding to the at least one target link, comprises: Determining link information of at least one candidate link that can realize network packet transmission with the target receiving node; At least one target link is determined from the at least one candidate link according to the link information, and a recommended transmission packet size corresponding to each of the at least one target link is determined.

7. The method according to claim 1, characterized in that The step of processing the packet to be transmitted according to the size of the packet to be transmitted and the determined sizes of each recommended transmission packet to realize unpacking or merging of the packet to be transmitted to obtain at least one actual transmission packet includes: Determining the requirements for disassembling and assembling the packets to be transmitted according to the size of the packets to be transmitted and the determined sizes of the recommended packets to be transmitted; When the depacketization requirement is depacketization, the packet to be transmitted is depacketized according to the size of the packet to be transmitted and the determined sizes of each recommended transmission packet to obtain at least one actual transmission packet; When the decomposition requirement is to combine packets, a combined packet is obtained according to the size of the packet to be transmitted and the determined sizes of each recommended transmission packet, and the packet to be transmitted and the combined packet are combined to obtain at least one actual transmission packet.

8. A network packet transmission system, characterized in that: include: A sending node and a target receiving node for executing the network packet transmission method according to any one of claims 1 to 7; wherein: The target receiving node is used to determine the disassembly and assembly information of at least one received actual transmission packet, and process the at least one actual transmission packet according to the disassembly and assembly information to obtain a processed packet.

9. The system according to claim 8, characterized in that The target receiving node is further used for: Determine, according to the processing packet, a pending response packet to be transmitted to the sending node and a pending response packet size of the pending response packet; Determine at least one response link that can realize network packet transmission with the sending node, and a recommended response packet size corresponding to each of the at least one response link; According to the size of the pending response packet and the determined sizes of each of the recommended response packets, the pending response packet is processed to realize unpacking or merging of the pending response packet to obtain at least one actual response packet; The at least one actual response packet is transmitted to the sending node via the at least one response link.

10. A network packet transmission device, characterized in that: Applied to a sending node, the device comprises: A module for determining the size of a packet to be transmitted, used to determine a target receiving node, and to determine the packet to be transmitted to the target receiving node and the size of the packet to be transmitted; A recommended transmission packet size determination module, used to determine at least one target link that can realize network packet transmission with the target receiving node, and a recommended transmission packet size corresponding to each of the at least one target link; An actual transmission packet obtaining module, used for processing the to-be-transmitted packet according to the to-be-transmitted packet size and the determined recommended transmission packet sizes, so as to realize the unpacking or merging of the to-be-transmitted packet and obtain at least one actual transmission packet; The actual transmission packet transmission module is used to transmit the at least one actual transmission packet to the target receiving node through the at least one target link.

Citation Information

Patent Citations

  • Method for dynamic control of data packet length in wireless sensor network

    CN101789852A

  • System and method for transmitting data over a communication network

    CN107809394A

  • Data packet transmission method, RLC entity and storage medium

    CN114205307A

  • Computing power task forwarding calculation method, device, storage medium and system

    CN116755886A

  • Computing power routing method and gateway

    CN117201381A