Data transmission path planning method, system, device and medium
By calculating and selecting the path with the highest throughput of the data transmission path, the problem of slow cross-domain data transmission is solved and efficient data transmission is achieved.
Patent Information
- Application Number
- CN202410163183.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-05
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-02-05
AI Technical Summary
When the existing technology transmits data across domains, the transmission speed is slow and the efficiency is low. It is especially suitable for long-distance cross-domain transmission.
By obtaining multiple transmission paths between the start node and the target node, calculate the path throughput of each path, use the preset path model to limit the value as a constraint, determine the transmission path with the largest throughput, and pass the data through This path is transmitted.
Significantly improves data transmission speed and efficiency. Compared with the direct connection transmission method, it can increase the speed by 336.92%, optimizing network utilization and transmission performance.
Smart Images

Figure CN118075192B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer networks, and in particular to a method, system, device and medium for planning a data transmission path. Background Art
[0002] A cloud server is a virtual server based on cloud computing technology. It divides physical server resources into multiple virtual machine instances and provides these virtual machine instances on a cloud computing platform to meet users' data processing needs.
[0003] For various reasons such as data backup, disaster recovery, migration, and global access, data needs to be transferred in batches between different cloud servers. In related technologies, data is directly transferred by connecting the source cloud server and the target cloud server. However, this transmission method is not suitable for long-distance cross-domain transmission. When direct transmission is used for cross-domain data transmission, the data transmission speed is slow and the efficiency is low. Summary of the invention
[0004] The main purpose of the embodiments of the present application is to propose a data transmission path planning method, system, device and medium, which can improve the data transmission speed and transmission efficiency.
[0005] To achieve the above object, a first aspect of an embodiment of the present application provides a method for planning a data transmission path, the method comprising:
[0006] Acquire a start node and a target node for data transmission, wherein the start node and the target node are located in different areas;
[0007] Determine multiple transmission paths between the starting node and the target node, each of the transmission paths includes at least one intermediate node, and obtain corresponding restriction values of the starting node, the target node and each of the intermediate nodes during data transmission;
[0008] Inputting the restriction value into a preset path model, and calculating the path throughput of each transmission path based on the path model;
[0009] A target path is determined from the corresponding multiple transmission paths according to the size relationship between the throughputs of the multiple paths, and the data on the starting node is transmitted to the target node through the target path.
[0010] In some embodiments, the calculating based on the path model to obtain the path throughput of each transmission path includes:
[0011] Get multiple restrictions;
[0012] Calculating the node throughput of each intermediate node by taking the plurality of restriction items as constraint conditions;
[0013] The node throughputs of all the intermediate nodes located on the same transmission path are summed up by using the path model to obtain the path throughput corresponding to each transmission path.
[0014] In some embodiments, the restriction item includes a first restriction item and a second restriction item, and the restriction value includes a region instance restriction value and a transmission protocol connection restriction value;
[0015] The calculating the node throughput of each intermediate node by taking the plurality of restriction items as constraint conditions includes:
[0016] According to the first restriction item, controlling the actual number of regional instances corresponding to each of the intermediate nodes to be less than or equal to the regional instance restriction value;
[0017] According to the second restriction item, controlling the number of transmission protocols of each of the intermediate nodes to be less than or equal to the product of the actual number of the regional instances and the transmission protocol connection limit value;
[0018] The node throughput of each of the intermediate nodes is calculated with the first restriction item and the second restriction item as constraint conditions.
[0019] In some embodiments, the restriction item further includes a third restriction item and a fourth restriction item, and the restriction value further includes an inflow rate restriction value and an outflow rate restriction value;
[0020] The calculating the node throughput of each intermediate node based on the plurality of restriction items as constraint conditions further includes:
[0021] According to the third restriction item, controlling the node throughput to be less than or equal to the product of the actual number of regional instances and the inflow rate limit value;
[0022] According to the fourth restriction item, controlling the node throughput to be less than or equal to the product of the actual number of regional instances and the outbound flow rate limit value;
[0023] The node throughput of each of the intermediate nodes is calculated with the third restriction item and the fourth restriction item as constraint conditions.
[0024] In some embodiments, the restriction item further includes a fifth restriction item, and the restriction value further includes a total throughput restriction value;
[0025] The calculating the node throughput of each intermediate node based on the plurality of restriction items as constraint conditions further includes:
[0026] Obtaining a throughput unit limit value according to a ratio of the total throughput limit value to the transmission protocol connection limit value;
[0027] According to the fifth restriction item, controlling the node throughput to be less than or equal to the product of the throughput unit restriction value and the number of transmission protocols;
[0028] The node throughput of each of the intermediate nodes is calculated with the fifth restriction item as a constraint condition.
[0029] In some embodiments, the restriction item further includes a first throughput conservation restriction item and a second throughput conservation restriction item, the node throughput includes a node inflow throughput and a node outflow throughput, the start node includes a total outflow throughput, and the target node includes a total inflow throughput;
[0030] The step of calculating the node throughput of each intermediate node based on the plurality of restriction items as constraint conditions further includes:
[0031] According to the first throughput conservation constraint item, controlling the node inflow throughput of each of the intermediate nodes to be equal to the node outflow throughput of the intermediate node;
[0032] According to the second throughput conservation constraint term, controlling the total outbound throughput to be equal to the total inbound throughput;
[0033] The node throughput of each of the intermediate nodes is calculated using the first throughput conservation constraint item and the second throughput conservation constraint item as constraint conditions.
[0034] In some embodiments, determining the target path from the corresponding plurality of transmission paths according to the size relationship between the throughputs of the plurality of paths includes:
[0035] The maximum path throughput is selected from the multiple path throughputs, and the transmission path corresponding to the maximum path throughput is determined as the target path.
[0036] In some embodiments, the obtaining of the starting node and the target node of the data transmission, and the obtaining of the corresponding limiting values of the starting node, the target node, and each of the intermediate nodes during the data transmission process, include:
[0037] Displaying a user interface for transmitting the data, the user interface comprising a starting point input area and a limit value input area;
[0038] In response to a start point input operation, displaying the input start node and the target node in the start point input area;
[0039] In response to a limit value input operation, displaying the input limit value in the limit value input area;
[0040] The determining a target path from the corresponding plurality of transmission paths according to the size relationship between the throughputs of the plurality of paths comprises:
[0041] In response to completing the start point input operation and the limit value input operation, a path confirmation interface pops up on the user interface, and displays a target path formed based on the start node, the target node and the limit value on the path confirmation interface, wherein the path confirmation interface further includes a path confirmation button;
[0042] In response to a click operation on the path confirmation button, current transmission information corresponding to transmitting the data based on the target path is displayed on the user interface.
[0043] To achieve the above-mentioned purpose, a second aspect of an embodiment of the present application proposes a data transmission path planning system, including:
[0044] A first acquisition module is used to acquire a start node and a target node of data transmission, wherein the start node and the target node are located in different areas;
[0045] A second acquisition module is used to determine multiple transmission paths between the starting node and the target node, each of which includes at least one intermediate node, and obtain the corresponding limit values of the starting node, the target node and each of the intermediate nodes during the data transmission process;
[0046] A path model module, used for inputting the restriction value into a preset path model, and calculating the path throughput of each transmission path based on the path model;
[0047] The target path module is used to determine a target path from the corresponding multiple transmission paths according to the size relationship between the throughputs of the multiple paths, and transmit the data on the starting node to the target node through the target path.
[0048] To achieve the above-mentioned purpose, the third aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, it implements the data transmission path planning method described in the embodiment of the first aspect above.
[0049] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes a storage medium, which is a computer-readable storage medium, and the storage medium stores a computer program. When the computer program is executed by a processor, it implements the data transmission path planning method described in the first aspect embodiment.
[0050] The data transmission path planning method, system, device and medium proposed in the present application, the method first obtains the starting node and target node of the data transmission, wherein the starting node and the target node are located in different areas; then, multiple transmission paths between the starting node and the target node are determined, each transmission path includes at least one intermediate node, and the corresponding limit values of the starting node, the target node and each intermediate node in the data transmission process are obtained; then, the limit values are input into the preset path model, and the path throughput of each transmission path is calculated based on the path model. In this process, the limit values corresponding to the starting node, the target node and each intermediate node are used as constraints, and the throughput of each transmission path is calculated using the preset path model; then, the target path is determined from the corresponding multiple transmission paths according to the size relationship between the throughputs of the multiple paths, and the data on the starting node is transmitted to the target node through the target path, and the transmission path with the largest throughput is used as the target path for data transmission. In this way, when the user determines the starting node and the target node, it is only necessary to obtain the limit values corresponding to the starting node, the target node and each intermediate node, and the target path with the best throughput can be quickly determined from the multiple transmission paths, and the throughput of data transmitted on this target path is the largest, thereby improving the data transmission speed and transmission efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 This is a schematic diagram of an optional application scenario of the data transmission path planning system provided in an embodiment of the present application;
[0052] Figure 2 This is an optional flow chart of the data transmission path planning method provided in the embodiment of the present application;
[0053] Figure 3 yes Figure 2 A flowchart of an implementation of step 103 in FIG.
[0054] Figure 4 yes Figure 3 A flowchart of an implementation of step 202 in FIG.
[0055] Figure 5 yes Figure 3 Another implementation flow chart of step 202 in FIG.
[0056] Figure 6 yes Figure 3Another implementation flow chart of step 202 in FIG.
[0057] Figure 7 yes Figure 3 Another implementation flowchart of step 202 in FIG.
[0058] Figure 8 yes Figure 2 A flowchart of an implementation of step 101 and step 102;
[0059] Fig. 9 yes Figure 2 A flowchart of an implementation of step 104 in FIG.
[0060] Fig.10 It is a schematic diagram of an optional system function module of a data transmission path planning system provided in an embodiment of the present application;
[0061] Fig.11 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0062] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0063] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0064] First, some nouns involved in this application are analyzed:
[0065] A cloud server is a virtualized server based on cloud computing technology. It can be created and run in the data center of a cloud service provider. Unlike traditional physical servers, cloud servers are virtualized and can dynamically allocate computing and storage resources as needed.
[0066] Transmission Control Protocol (TCP),In a computer network or cloud computing environment, the number of TCP connections refers to the limit on the number of TCP connections established between a node (such as a server, virtual machine, container, etc.) and other nodes.
[0067] Comma-Separated Values (CSV, sometimes also called character-separated values because the delimiting characters can be other than commas) are files that store tabular data (numbers and text) in plain text.
[0068] The interior point method is an algorithm for solving convex optimization problems. It starts from a feasible solution and then finds a new feasible solution in each iteration to make the value of the objective function smaller. The interior point method can usually find the optimal solution to the convex optimization problem in polynomial time.
[0069] Direct transmission refers to establishing a direct connection between two servers or devices and transmitting data through the connection without passing through an intermediate server or network device.
[0070] It can be understood that a cloud server is a virtual server based on cloud computing technology, which divides physical server resources into multiple virtual machine instances and provides these virtual machine instances on a cloud computing platform to meet users' data processing needs.
[0071] For various reasons such as data backup, disaster recovery, migration, and global access, data needs to be transferred in batches between different cloud servers. In related technologies, data is directly transferred by connecting the source cloud server and the target cloud server. However, this transmission method is not suitable for long-distance cross-domain transmission. When direct transmission is used for cross-domain data transmission, the data transmission speed is slow and the efficiency is low.
[0072] Based on this, the embodiments of the present application provide a method, system, device and medium for planning a data transmission path, which can improve the data transmission speed and transmission efficiency.
[0073] First, a data transmission path planning system in an embodiment of the present application is described.
[0074] For example, Figure 1 As shown, Figure 1This is an optional application scenario diagram of a data transmission path planning system provided in an embodiment of the present application. In the data transmission path planning system, a storage module, an algorithm module, a transmission module and a user interface module are included, wherein the storage module stores basic parameters corresponding to each regional cloud server node (for ease of description, hereinafter referred to as "node"), point-to-point transmission speed between each node and other information; the user interface module is used to provide a visual interface for users to input data, and receive the starting node and target node input by the user, as well as the starting node, the target node and the limit values of the intermediate nodes included therein; based on the input data obtained from the user interface module, the algorithm module obtains corresponding information from the storage module, determines multiple transmission paths between the starting node and the target node, and determines the target path for data transmission from the multiple transmission paths; based on the target path, the transmission module can start the corresponding node and read the corresponding data from the storage module to prepare for data transmission. When the transmission module receives a confirmation instruction for module sending, the transmission module can transmit the data on the starting node to the target node through the target path based on the target path.
[0075] It should be noted that the data transmission path planning method provided in the embodiment of the present application can be applied to the client, can also be applied to the server, and can also be software running on the client or server. In some embodiments, the client can be a smart phone, a tablet computer, a laptop, a desktop computer, etc.; the server can be configured as an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, and big data and artificial intelligence platforms; the software can be an application that implements the data transmission path planning method, etc., but is not limited to the above forms.
[0076] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0077] Next, a method for planning a data transmission path in an embodiment of the present application is described.
[0078] In each specific implementation of the present application, when it comes to information related to user identity or characteristics based on user basic information, user geographic location information, etc., the user's permission or consent will be obtained first. For example, when it is necessary to obtain user location information to access the cloud server, the user's permission or consent will be obtained first. Moreover, the collection, use and processing of these data will comply with relevant laws, regulations and standards. In addition, when the embodiment of the present application needs to obtain sensitive personal information of the user, the user's separate permission or separate consent will be obtained first. After clearly obtaining the user's separate permission or separate consent, the necessary data for enabling the normal operation of the embodiment of the present application, such as the starting node, the target node, and the limit values corresponding to the starting node, the target node and the intermediate nodes therebetween, will be obtained.
[0079] like Figure 2 As shown, Figure 2 is an optional flowchart of the data transmission path planning method provided in an embodiment of the present application. Figure 2 The method in the embodiment may include but is not limited to steps 101 to 104. Figure 2 The order of step 101 to step 104 is not specifically limited, and the order of steps can be adjusted or some steps can be reduced or added according to actual needs.
[0080] Step 101: Acquire a start node and a target node of data transmission, wherein the start node and the target node are located in different areas.
[0081] The following is a detailed description of step 101.
[0082] In some embodiments, data is not only transmitted within the same region. As business demands continue to increase, cross-regional transmission of data is even more common, where a region refers to the service area that a cloud server can cover based on its current location.
[0083] In some embodiments, the starting node is used to represent the starting transmission location of the data, and the target node is used to represent the target transmission location of the data, and the starting node and the target node are located in different regions. For example, suppose that certain business data is stored in a cloud storage service in region A. At this time, this business data needs to be transferred to a cloud storage service located in region B. The cloud storage service is a storage solution provided through the Internet. Users can store and manage their data through the cloud server of the cloud storage service provider. This data may include various types of information such as files, documents, pictures, videos, database backups, etc.
[0084] Step 102, determining multiple transmission paths between a starting node and a target node, each transmission path including at least one intermediate node, and obtaining corresponding restriction values of the starting node, the target node and each intermediate node during data transmission.
[0085] The following is a detailed description of step 102.
[0086] In some embodiments, between the starting node and the target node, there are multiple optional transmission paths, each of which includes at least one intermediate node. Since the number of instances that can be opened by the starting node, the target node, and each intermediate node has different limit values in different regions, the resource quotas of the starting node, the target node, and each intermediate node are determined by obtaining these limit values, wherein the resource quotas include virtual machine instances, the number of TCP connections, etc. It should be noted that the starting node, the target node, and each intermediate node are actually nodes.
[0087] Furthermore, the path model is preset with a network topology structure corresponding to the starting node, the target node and each intermediate node. The network topology structure indicates the physical connection status of each node with other nodes. Based on the network topology structure, multiple transmission paths from the starting node to the target node can be determined.
[0088] Furthermore, the path model can be connected to a client, which is provided with a visual interface, through which the user can input the restriction values corresponding to the starting node, the target node and each intermediate node; alternatively, the restriction values can be pre-stored in a restriction file by the supplier of the cloud server, and the path model can obtain the restriction values based on the restriction file, for example, the restriction file can be a csv file.
[0089] Step 103: input the restriction value into a preset path model, and calculate the path throughput of each transmission path based on the path model.
[0090] In some embodiments, a target function related to path throughput calculation is preset in the path model. After inputting the acquired restriction values, the path model can obtain the constraint conditions corresponding to the target function based on these restriction values. Then, the path model calculates the path throughput corresponding to each transmission path based on the constraint conditions.
[0091] like Figure 3 As shown, Figure 3 yes Figure 2 An implementation flow chart of step 103 in , wherein the path throughput of each transmission path is obtained based on the path model calculation, including the following steps 201 to 203.
[0092] Steps 201 to 203 are described in detail below.
[0093] Step 201, obtaining multiple restriction items.
[0094] Step 202, taking multiple restriction items as constraints, calculate the node throughput of each intermediate node.
[0095] Step 203: summing up the node throughputs of all intermediate nodes on the same transmission path through the path model to obtain the path throughput corresponding to each transmission path.
[0096] In some embodiments, based on the objective function, multiple restriction items are obtained, and constraints corresponding to the objective function are formed according to the restriction values and the restriction items. The path model can calculate the node throughput corresponding to each intermediate node based on these constraints using the objective function, and then sum the node throughput corresponding to each node under the same transmission path to finally obtain the path throughput corresponding to the transmission path.
[0097] Furthermore, the objective function corresponding to the throughput of each transmission path in the path model is shown in the following formula (1):
[0098]
[0099] Where v represents any intermediate node, V is the set of all intermediate nodes, s represents the starting node, F is a two-dimensional matrix used to represent the node throughput from the starting node s to any intermediate node v, and Σ represents the sum of F. It indicates to maximize the node throughput F.
[0100] Furthermore, the path model can calculate the path throughput corresponding to each transmission path. For example, there are 16 optional transmission paths from the starting node to the target node, and the path model can calculate the path throughput corresponding to each of the 16 transmission paths.
[0101] Furthermore, formula (1) only considers the transmission throughput and removes the interference of other factors, with the goal of ultimately obtaining the maximum transmission throughput, reducing data transmission delay and improving network utilization.
[0102] like Figure 4 As shown, Figure 4 yes Figure 3 An implementation flow chart of step 202 in FIG. 1 , wherein the node throughput of each intermediate node is calculated with multiple restriction items as constraints, including the following steps 301 to 303.
[0103] Steps 301 to 303 are described in detail below.
[0104] Step 301: According to the first restriction item, the actual number of regional instances corresponding to each intermediate node is controlled to be less than or equal to the regional instance restriction value.
[0105] Step 302: According to the second restriction item, the number of transmission protocols of each intermediate node is controlled to be less than or equal to the product of the actual number of regional instances and the transmission protocol connection restriction value.
[0106] Step 303: Calculate the node throughput of each intermediate node with the first restriction item and the second restriction item as constraint conditions.
[0107] In some embodiments, the restriction value includes a region instance restriction value and a transmission protocol connection restriction value, and the restriction item includes a first restriction item and a second restriction item. The first restriction item is shown in the following formula (2):
[0108]
[0109] Among them, LIMIT VM It is used to represent the region instance limit value, v represents any intermediate node, V is the set of all intermediate nodes, N v Indicates the actual number of regional instances.
[0110] Furthermore, after obtaining the regional instance limit value, the path model can control the actual number of regional instances corresponding to each intermediate node in the set V to be less than or equal to the regional instance limit value according to the first limit item. Based on the first limit item, the path model can effectively manage and optimize the resource allocation of each node, avoid excessive resource consumption by any node, and improve transmission stability.
[0111] In some embodiments, the second restriction term is as shown in formula (3):
[0112]
[0113] Among them, LIMIT conn Used to represent the transmission protocol connection limit value, M u,v The number of transmission protocols used to characterize each intermediate node. u is used to represent the port connecting any intermediate node to other nodes. During data transmission, data flows from the intermediate node to other nodes. v is also used to represent the port connecting any intermediate node to other nodes. The difference is that during data transmission, data flows from other nodes to the intermediate node. That is, u and v are both used to represent physical ports, but the data flows in different directions. Therefore, N in formula (3) u and N in formula (2) v Indicates the same physical port.
[0114] Furthermore, the second restriction item may also be as shown in formula (4):
[0115]
[0116] It can be understood that formula (3) is used to constrain the number of transmission protocol connections at the node exit, and formula (4) is used to constrain the number of transmission protocol connections at the node entrance. By obtaining the limited number of transmission protocol connections, the actual number of transmission protocol connections of each node is constrained. Based on this, the number of transmission protocol connections of each node can be reasonably planned to avoid network congestion and improve the path throughput of the transmission path.
[0117] like Figure 5 As shown, Figure 5 yes Figure 3 Another implementation flowchart of step 202 in FIG. 1 is shown, wherein the node throughput of each intermediate node is calculated with multiple restriction items as constraints, and further includes the following steps 401 to 403.
[0118] Steps 401 to 403 are described in detail below.
[0119] Step 401: According to the third restriction item, the control node throughput is less than or equal to the product of the actual number of regional instances and the inflow rate limit value.
[0120] Step 402: According to the fourth restriction item, the control node throughput is less than or equal to the product of the actual number of regional instances and the outbound flow rate limit value.
[0121] Step 403: Calculate the node throughput of each intermediate node with the third restriction item and the fourth restriction item as constraint conditions.
[0122] In some embodiments, the restriction value further includes an inflow rate restriction value and an outflow rate restriction value, and the restriction item further includes a third restriction item and a fourth restriction item, and the third restriction item is shown in the following formula (5):
[0123]
[0124] in, It is used to characterize the inflow rate limit value. By controlling the node throughput to be less than or equal to the product of the actual number of regional instances and the inflow rate limit value, the inflow rate of the region is prevented from being overloaded, thereby ensuring the performance and service quality of the transmission path.
[0125] In some embodiments, the fourth restriction term is expressed as follows:
[0126]
[0127] in, It is used to represent the outbound traffic speed limit value. By controlling the node throughput to be less than or equal to the product of the actual number of regional instances and the outbound traffic speed limit value, the outbound traffic speed of the region is prevented from being overloaded, thereby ensuring the performance and service quality of the transmission path.
[0128] like Figure 6 As shown, Figure 6 yes Figure 3 Another implementation flowchart of step 202 in , wherein the node throughput of each intermediate node is calculated with multiple restriction items as constraints, and also includes the following steps 501 to 503.
[0129] Steps 501 to 503 are described in detail below.
[0130] Step 501: Obtain a throughput unit limit value according to a ratio of a total throughput limit value to a transmission protocol connection limit value.
[0131] Step 502: According to the fifth restriction item, the control node throughput is less than or equal to the product of the throughput unit restriction value and the number of transmission protocols.
[0132] Step 503: Calculate the node throughput of each intermediate node with the fifth restriction item as a constraint condition.
[0133] In some embodiments, the restriction value further includes a total throughput restriction value, and the restriction item further includes a fifth restriction item, and the fifth restriction item is shown in the following formula (7):
[0134] F≤(LIMIT link ÷LIMIT conn )⊙M (7)
[0135] Among them, LIMIT link It is used to represent the total throughput limit value, and F is used to represent the node throughput. According to the ratio of the total throughput limit value to the transmission protocol connection limit value (LIMIT link ÷LIMIT conn ), and obtain the throughput unit limit value. Then, according to the control node throughput F not exceeding the product of the throughput unit limit value and the number of transmission protocols, the path model solves the node throughput of each node based on the preset restriction items, and then obtains the path throughput of the transmission path.
[0136] like Figure 7 As shown, Figure 7 yes Figure 3 Another implementation flowchart of step 202 in , wherein the node throughput of each intermediate node is calculated with multiple restriction items as constraints, and also includes the following steps 601 to 603.
[0137] Steps 601 to 603 are described in detail below.
[0138] Step 601: According to a first throughput conservation constraint item, the node inbound throughput of each intermediate node is controlled to be equal to the node outbound throughput of the intermediate node.
[0139] Step 602, controlling the total outbound throughput to be equal to the total inbound throughput according to the second throughput conservation constraint term;
[0140] Step 603: Calculate the node throughput of each intermediate node with the first throughput conservation constraint term and the second throughput conservation constraint term as constraint conditions.
[0141] In some embodiments, the node throughput includes the node inflow throughput and the node outflow throughput, the start node includes the total outflow throughput, the target node includes the total inflow throughput, the restriction item further includes a first throughput conservation restriction item and a second throughput conservation restriction item, and the first throughput conservation restriction item is shown in the following formula (8), wherein formula (8) is used to indicate that, except for the start node and the target node, the flow rate flowing into each intermediate node is equal to the flow rate flowing out of each intermediate node:
[0142]
[0143] Among them, s is used to represent the starting node and t is used to represent the target node.
[0144] In some embodiments, the second throughput conservation constraint term is as shown in the following formula (9), where formula (9) is used to indicate that the total flow out of the starting node is equal to the total flow into the target node:
[0145] ∑ v∈V F s,v≤∑ u∈V F u,t (9)
[0146] It should be noted that the variables in formulas (1) to (9) have the same meaning, so they will not be repeated in detail.
[0147] Furthermore, based on the constraint of formula (9), the total flow of the starting node and the target node is in a balanced state, and based on the constraint of formula (8), the node flow of the intermediate nodes between the starting node and the target node is in a balanced state, so that the path model calculates the optimal transmission path under the flow transmission balanced state based on formula (8) and formula (9).
[0148] Furthermore, the path model can calculate the node throughput of each intermediate node based on the first restriction item, the second restriction item, the third restriction item, the fourth restriction item, the fifth restriction item, the first throughput conservation restriction item and the second throughput conservation restriction item as constraints, and then obtain the path throughput corresponding to each transmission path.
[0149] Furthermore, the path model can be a convex optimization solver (Convex Programming Via Partial Primitives, CVXPV), which can transform the target problem indicated by the objective function into a quadratic curve problem, and solve the path throughput based on the restriction terms. It can be understood that due to the simple nature of the quadratic curve problem, the path model can quickly solve the path throughput through the interior point method, thereby improving the calculation speed of the path throughput corresponding to each transmission path, and thus improving the determination speed of the target path.
[0150] It should be noted that the path model can also be solved by cutting plane method, gradient descent method or ellipsoid method to obtain the path throughput. In addition, the path model can also be a constrained optimization solver, etc. The embodiments of the present application are only illustrated by preferred examples and are not specifically limited.
[0151] Step 104 , determining a target path from the corresponding multiple transmission paths according to the size relationship between the throughputs of the multiple paths, and transmitting the data on the starting node to the target node through the target path.
[0152] In some embodiments, the path model may preset a throughput threshold and determine transmission paths whose path throughput exceeds the throughput threshold as candidate paths. Then, one of the candidate paths may be selected as the target path to transmit data from the starting node to the target node.
[0153] The node throughput of each intermediate node is calculated with multiple restriction items as constraints, and the following step 701 is also included.
[0154] Step 701: Select a maximum path throughput from multiple path throughputs, and determine the transmission path corresponding to the maximum path throughput as the target path.
[0155] In some embodiments, to achieve optimal data transmission speed, the transmission path corresponding to the maximum path throughput is determined as the target path. Exemplarily, there are three transmission paths, transmission path A, transmission path B, and transmission path C, wherein the path throughput of transmission path A is 100 megabits per second (Mbps), the path throughput of transmission path B is 80Mbps, and the path throughput of transmission path C is 25Mbps, then transmission path A is selected as the target path.
[0156] Furthermore, if the path throughputs of multiple transmission paths all exceed a preset throughput threshold, the transmission path with the largest path throughput can be preferentially selected as the target path. When the target path encounters transmission problems such as failure, delay or congestion, the path model can replace the remaining candidate paths and reselect one as the updated target path.
[0157] For example, if the path throughput of transmission path A is 100Mbps, the path throughput of transmission path B is 80Mbps, the path throughput of transmission path C is 25Mbps, and the throughput threshold is 50Mbps, then transmission path A and transmission path B are determined as candidate paths, and transmission path A is first determined as the target path. During the data transmission process, if transmission path A fails, transmission path B is determined as the new target path. Furthermore, it is possible to determine whether a transmission path has a transmission problem such as a failure, delay, or congestion by checking node logs, status, etc.
[0158] like Figure 8 As shown, Figure 8 yes Figure 2 An implementation flowchart of step 101 and step 102 in the embodiment, wherein the starting node and the target node of the data transmission are obtained, and the limit values corresponding to the starting node, the target node and each intermediate node during the data transmission process are obtained, including the following steps 801 to 803.
[0159] Steps 801 to 803 are described in detail below.
[0160] Step 801, displaying a user interface for transmitting data, the user interface including a starting point input area and a limit value input area;
[0161] Step 802, in response to the start point input operation, displaying the input start node and target node in the start point input area;
[0162] Step 803, in response to the limit value input operation, displaying the input limit value in the limit value input area;
[0163] In some embodiments, Figure 1 In the user interface of the data transmission path planning system shown, the user interface for transmitting data can be displayed by the display client, wherein the starting point input area is used to input the starting node and the target node, or the user interface module can provide the user with selectable starting node and target node through the user interface, eliminating the need for the user to manually input the starting node and the target node, thereby simplifying the input operation, reducing user input errors, and improving the efficiency of determining the target path.
[0164] Furthermore, after completing the input of the starting node and the target node, the user can also enter the restriction values corresponding to the starting node and the target node, as well as the restriction values of each intermediate node from the starting node to the target node in the restriction value input area, wherein the restriction values can be imported into the restriction value input area via a restriction file, and the user can make minor adjustments based on the data pre-stored in the restriction file, thereby improving the input efficiency of the restriction values and reducing the error rate of the restriction data input.
[0165] like Fig. 9 As shown, Fig. 9 yes Figure 2 An implementation flow chart of step 104 in the embodiment, wherein the target path is determined from the corresponding multiple transmission paths according to the size relationship between the throughputs of the multiple paths, and the following steps 804 to 805 may also be included.
[0166] Steps 804 to 805 are described in detail below.
[0167] Step 804: in response to completing the start point input operation and the limit value input operation, a path confirmation interface pops up on the user interface, and displays a target path formed based on the start node, the target node and the limit value on the path confirmation interface, wherein the path confirmation interface also includes a path confirmation button;
[0168] Step 805 , in response to a click operation on the path confirmation button, current transmission information corresponding to the target path transmission data is displayed on the user interface.
[0169] In some embodiments, after completing the input of the starting node, target node and restriction value, the user interface will pop up a path confirmation interface and display the specific input starting node and target node in the path interface to facilitate the user to browse the input content. After confirming that the input information is correct, the user confirms the information entered in the user interface for confirming the target path by clicking the input confirmation button.
[0170] Furthermore, after clicking the input confirmation button, the path confirmation interface will display the target path finally confirmed based on the input information. After confirming that the target path is correct, the user confirms the target path by clicking the path confirmation button.
[0171] Further, Figure 1 The transmission module in the planning system of the data transmission path shown can open the corresponding nodes based on the target path and perform data transmission based on the restriction items calculated by the path module.
[0172] It is understandable that a visualization-based user interface can improve the readability of user input information and enhance the user's interactive experience.
[0173] In order to better understand the beneficial effects of the data transmission path planning method provided by the present application, based on the same starting node, target node, and limit value, the same amount of data is transmitted using the direct transmission and the data transmission path planning method provided by the present application, and the transmission speed comparison is shown in the following Table 1:
[0174] Table 1
[0175]
[0176] It can be understood that the data transmission path planning method provided by the present application can increase the speed by up to 336.92% compared with direct transmission, thereby greatly optimizing the data transmission speed.
[0177] like Fig.10 As shown, Fig.10 This is an optional system function module diagram of a data transmission path planning system provided in an embodiment of the present application. In one example, the data transmission path planning system may include:
[0178] A first acquisition module 901 is used to acquire a start node and a target node for data transmission, wherein the start node and the target node are located in different areas;
[0179] A second acquisition module 902 is used to determine multiple transmission paths between the starting node and the target node, each transmission path includes at least one intermediate node, and obtain the corresponding limit values of the starting node, the target node and each intermediate node during the data transmission process;
[0180] A path model module 903, used to input the restriction value into a preset path model, and calculate the path throughput of each transmission path based on the path model;
[0181] The target path module 904 is used to determine a target path from the corresponding multiple transmission paths according to the size relationship between the throughputs of the multiple paths, and transmit the data on the starting node to the target node through the target path.
[0182] The specific implementation of the data transmission path planning system is basically the same as the specific implementation of the data transmission path planning method described above, and will not be repeated here. On the premise of meeting the requirements of the embodiments of the present application, the data transmission path planning system can also set other functional modules to implement the data transmission path planning method in the above embodiments.
[0183] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned data transmission path planning method when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.
[0184] like Fig.11 As shown, Fig.11 : is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application, the electronic device includes:
[0185] The processor 1001 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0186] The memory 1002 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1002 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1002, and the processor 1001 calls and executes the data transmission path planning method of the embodiment of the present application;
[0187] Input / output interface 1003, used to implement information input and output;
[0188] The communication interface 1004 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);
[0189] A bus 1005 , which transmits information between various components of the device (e.g., the processor 1001 , the memory 1002 , the input / output interface 1003 , and the communication interface 1004 );
[0190] The processor 1001 , the memory 1002 , the input / output interface 1003 and the communication interface 1004 are connected to each other in communication within the device via the bus 1005 .
[0191] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the above-mentioned data transmission path planning method is implemented.
[0192] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0193] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0194] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0195] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0196] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0197] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application 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 application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations 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.
[0198] It should be understood that in the present application, "at least one (item)" and "several" refer to one or more, and "plurality" refers to two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0199] In the several embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0200] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0201] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0202] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0203] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. A method for planning a data transmission path, characterized in that: include: Acquire a start node and a target node for data transmission, wherein the start node and the target node are located in different areas; Determine multiple transmission paths between the starting node and the target node, each of the transmission paths includes at least one intermediate node, and obtain corresponding restriction values of the starting node, the target node and each of the intermediate nodes during data transmission; Inputting the restriction value into a preset path model, and calculating the path throughput of each transmission path based on the path model; Determine a target path from the corresponding plurality of transmission paths according to a size relationship between the throughputs of the plurality of paths, and transmit the data on the starting node to the target node through the target path; The calculating and obtaining the path throughput of each transmission path based on the path model includes: Get multiple restrictions; Calculating the node throughput of each intermediate node by taking the plurality of restriction items as constraint conditions; The node throughputs of all the intermediate nodes located on the same transmission path are summed up by using the path model to obtain a path throughput corresponding to each transmission path; The restriction items include a first restriction item and a second restriction item, and the restriction values include a region instance restriction value and a transmission protocol connection restriction value; The calculating the node throughput of each intermediate node by taking the plurality of restriction items as constraint conditions includes: According to the first restriction item, controlling the actual number of regional instances corresponding to each of the intermediate nodes to be less than or equal to the regional instance restriction value; According to the second restriction item, controlling the number of transmission protocols of each intermediate node to be less than or equal to the product of the actual number of regional instances and the transmission protocol connection limit value; Calculate the node throughput of each intermediate node by taking the first restriction item and the second restriction item as constraint conditions; The restriction items further include a third restriction item and a fourth restriction item, and the restriction values further include an inflow rate restriction value and an outflow rate restriction value; The step of calculating the node throughput of each intermediate node based on the plurality of restriction items as constraint conditions further includes: According to the third restriction item, controlling the node throughput to be less than or equal to the product of the actual number of regional instances and the inflow rate limit value; According to the fourth restriction item, controlling the node throughput to be less than or equal to the product of the actual number of regional instances and the outbound flow rate limit value; Calculate the node throughput of each intermediate node by taking the third restriction item and the fourth restriction item as constraint conditions; The restriction items further include a fifth restriction item, and the restriction value further includes a total throughput restriction value; The step of calculating the node throughput of each intermediate node based on the plurality of restriction items as constraint conditions further includes: Obtaining a throughput unit limit value according to a ratio of the total throughput limit value to the transmission protocol connection limit value; According to the fifth restriction item, controlling the node throughput to be less than or equal to the product of the throughput unit restriction value and the number of transmission protocols; Taking the fifth restriction item as a constraint condition, calculating the node throughput of each of the intermediate nodes; The determining a target path from the corresponding plurality of transmission paths according to the size relationship between the throughputs of the plurality of paths comprises: The maximum path throughput is selected from the multiple path throughputs, and the transmission path corresponding to the maximum path throughput is determined as the target path.
2. The method for planning a data transmission path according to claim 1, characterized in that: The restriction item further includes a first throughput conservation restriction item and a second throughput conservation restriction item, the node throughput includes a node inflow throughput and a node outflow throughput, the start node includes a total outflow throughput, and the target node includes a total inflow throughput; The step of calculating the node throughput of each intermediate node based on the plurality of restriction items as constraint conditions further includes: According to the first throughput conservation constraint item, controlling the node inflow throughput of each of the intermediate nodes to be equal to the node outflow throughput of the intermediate node; According to the second throughput conservation constraint term, controlling the total outbound throughput to be equal to the total inbound throughput; The node throughput of each of the intermediate nodes is calculated using the first throughput conservation constraint item and the second throughput conservation constraint item as constraint conditions.
3. The method for planning a data transmission path according to claim 1, characterized in that: The obtaining of the corresponding limiting values of the starting node, the target node, and each of the intermediate nodes during the data transmission process includes: Displaying a user interface for transmitting the data, the user interface comprising a starting point input area and a limit value input area; In response to a start point input operation, displaying the input start node and the target node in the start point input area; In response to a limit value input operation, displaying the input limit value in the limit value input area; The determining a target path from the corresponding plurality of transmission paths according to the size relationship between the throughputs of the plurality of paths comprises: In response to completing the start point input operation and the limit value input operation, a path confirmation interface pops up on the user interface, and displays a target path formed based on the start node, the target node and the limit value on the path confirmation interface, wherein the path confirmation interface further includes a path confirmation button; In response to a click operation on the path confirmation button, current transmission information corresponding to transmitting the data based on the target path is displayed on the user interface.
4. A data transmission path planning system, characterized in that: include: A first acquisition module is used to acquire a start node and a target node of data transmission, wherein the start node and the target node are located in different areas; A second acquisition module is used to determine multiple transmission paths between the starting node and the target node, each of which includes at least one intermediate node, and obtain the corresponding limit values of the starting node, the target node and each of the intermediate nodes during the data transmission process; A path model module, used for inputting the restriction value into a preset path model, and calculating the path throughput of each transmission path based on the path model; A target path module, used for determining a target path from the corresponding multiple transmission paths according to the size relationship between the throughputs of the multiple paths, and transmitting the data on the starting node to the target node through the target path; The calculating and obtaining the path throughput of each transmission path based on the path model includes: Get multiple restrictions; Calculating the node throughput of each intermediate node by taking the plurality of restriction items as constraint conditions; The node throughputs of all the intermediate nodes located on the same transmission path are summed up by using the path model to obtain a path throughput corresponding to each transmission path; The restriction items include a first restriction item and a second restriction item, and the restriction values include a region instance restriction value and a transmission protocol connection restriction value; The calculating the node throughput of each intermediate node by taking the plurality of restriction items as constraint conditions includes: According to the first restriction item, controlling the actual number of regional instances corresponding to each of the intermediate nodes to be less than or equal to the regional instance restriction value; According to the second restriction item, controlling the number of transmission protocols of each intermediate node to be less than or equal to the product of the actual number of regional instances and the transmission protocol connection limit value; Calculate the node throughput of each intermediate node by taking the first restriction item and the second restriction item as constraint conditions; The restriction items further include a third restriction item and a fourth restriction item, and the restriction values further include an inflow rate restriction value and an outflow rate restriction value; The step of calculating the node throughput of each intermediate node based on the plurality of restriction items as constraint conditions further includes: According to the third restriction item, controlling the node throughput to be less than or equal to the product of the actual number of regional instances and the inflow rate limit value; According to the fourth restriction item, controlling the node throughput to be less than or equal to the product of the actual number of regional instances and the outbound flow rate limit value; Calculate the node throughput of each intermediate node by taking the third restriction item and the fourth restriction item as constraint conditions; The restriction items further include a fifth restriction item, and the restriction value further includes a total throughput restriction value; The step of calculating the node throughput of each intermediate node based on the plurality of restriction items as constraint conditions further includes: Obtaining a throughput unit limit value according to a ratio of the total throughput limit value to the transmission protocol connection limit value; According to the fifth restriction item, controlling the node throughput to be less than or equal to the product of the throughput unit restriction value and the number of transmission protocols; Taking the fifth restriction item as a constraint condition, calculating the node throughput of each of the intermediate nodes; The determining a target path from the corresponding plurality of transmission paths according to the size relationship between the throughputs of the plurality of paths comprises: The maximum path throughput is selected from the multiple path throughputs, and the transmission path corresponding to the maximum path throughput is determined as the target path.
5. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the data transmission path planning method according to any one of claims 1 to 3 when executing the computer program.
6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the data transmission path planning method according to any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Throughput forecast-based global optimization relay node selection method
CN104618934A
Adjusting throughput threshold of network devices for 5G or other next generation wireless network
US10999855B1
