Set top box, router and gateway data distribution method for edge computing

By using the minimum Steiner tree algorithm and the optimal cost path algorithm in the cloud to optimize the edge data distribution path, the problem of high data transmission cost of traditional edge computing terminals is solved, and lower transmission cost and shorter path are achieved.

CN118695050APending Publication Date: 2024-09-24FUJIAN NEWLAND COMM SCI TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410765869.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The traditional data distribution method of edge computing intelligent terminals ignores the cost of data transmission from the cloud to the edge, resulting in high usage costs.

Method used

Obtain the edge data to be distributed through the cloud, perform modular packaging and set packaging parameters, use the minimum Steiner tree algorithm to generate a minimum spanning tree, optimize based on the optimal cost path algorithm and clustering algorithm, and obtain the optimal distribution path. And distribute the encapsulated data to the smart terminal by calling the interface.

Benefits of technology

The transmission cost of smart terminal data distribution is significantly reduced, and the optimal distribution scheme with low parameter cost and short transmission path is obtained by optimizing the path.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000
    Figure 00000000_0000
Patent Text Reader

Abstract

The invention provides a set top box, router and gateway data distribution method for edge computing in the technical field of edge computing, which comprises the following steps: step S1, a cloud acquires edge data to be distributed, performs modular split charging on each piece of edge data to generate encapsulated data, and sets encapsulation parameters of each piece of encapsulated data; step S2, the cloud generates a minimum spanning tree for distributing the encapsulation data based on the encapsulation parameters through a minimum Steiner tree algorithm; s3, the cloud end optimizes the minimum spanning tree based on an optimal cost path algorithm; s4, the cloud end optimizes the minimum spanning tree based on a clustering algorithm to obtain an optimal distribution path; and S5, the cloud generates a calling interface of the optimal distribution path, and distributes the encapsulated data to an intelligent terminal for edge computing through the calling interface. The method has the advantage that the transmission cost of data distribution of the intelligent terminal is greatly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of edge computing technology, and in particular to a set-top box, router, and gateway data distribution method for edge computing. Background Art

[0002] With the explosive growth of artificial intelligence and IoT devices, the traditional cloud computing model faces problems of network latency and insufficient bandwidth. Edge computing, as an emerging computing method, provides low-latency services by pushing computing and storage resources to the edge of the network (for example, to smart terminals such as set-top boxes, routers, and gateways), that is, close to the data source and user's location. Edge computing can reduce the computing burden on algorithm models and IoT devices, reduce energy consumption, and improve the real-time performance of data processing. It is widely used in smart healthcare, smart manufacturing, autonomous driving and other fields.

[0003] However, traditional data distribution of edge computing smart terminals only focuses on data storage and retrieval delays, and does not take into account transmission costs, that is, it ignores the high costs that may be incurred in data transmission from the cloud to the edge, which in turn affects the use cost of edge computing smart terminals.

[0004] Therefore, how to provide a data distribution method for set-top boxes, routers, and gateways for edge computing to reduce the transmission cost of data distribution for smart terminals has become a technical problem that needs to be solved urgently. Summary of the invention

[0005] The technical problem to be solved by the present invention is to provide a set-top box, router, and gateway data distribution method for edge computing, so as to reduce the transmission cost of data distribution for smart terminals.

[0006] The present invention provides a set-top box, router, and gateway data distribution method for edge computing, comprising the following steps:

[0007] Step S1, the cloud obtains edge data to be distributed, modularizes and packages each edge data to generate packaging data, and sets packaging parameters for each packaging data;

[0008] Step S2: The cloud generates a minimum spanning tree for distributing encapsulated data based on the encapsulation parameters by using a minimum Steiner tree algorithm;

[0009] Step S3: The cloud optimizes the minimum spanning tree based on an optimal cost path algorithm;

[0010] Step S4: The cloud optimizes the minimum spanning tree based on a clustering algorithm to obtain an optimal distribution path;

[0011] Step S5: The cloud generates a calling interface for the optimal distribution path, and distributes the encapsulated data to the smart terminal for edge computing through the calling interface; the smart terminal is a set-top box, router or gateway data.

[0012] Furthermore, in step S1, the packaging parameters at least include extraction interface, input parameters, environmental parameters, and limiting conditions;

[0013] The input parameters include at least a topology pointer list of the edge computing network, a network topology, an intermediate edge service set, a data transmission time, a data demand location, a data size, a data transmission path, a data transmission cost ratio from the cloud to the smart terminal, and a data transmission cost ratio between smart terminals;

[0014] The environmental parameters include at least the number of smart terminals and the locations of the smart terminals;

[0015] The limiting conditions include at least an upper limit on transmission time, an upper limit on network bandwidth, an upper limit on storage capacity, and an upper limit on transmission costs.

[0016] Furthermore, the step S2 is specifically as follows:

[0017] The cloud obtains a vertex set and an edge set of a network topology structure based on the encapsulation parameters, wherein the vertex set includes vertices of types of smart terminal vertices and Steiner vertices, and the number of the smart terminal vertices is at least 2;

[0018] The cloud uses the minimum Steiner tree algorithm to find the shortest distribution path connecting all vertices in the vertex set and edge set, and then generates a minimum spanning tree for distributing packaged data.

[0019] Furthermore, in step S3, the optimal cost path algorithm is specifically:

[0020] The shortest distribution path of the minimum spanning tree is broken down into parts by an integer programming method, and the delay constraint, data integrity constraint, and intelligent terminal resource constraint of the minimum spanning tree are set. Interface conversion mapping is performed on the delay constraint, data integrity constraint, and intelligent terminal resource constraint, and then the transmission cost and storage cost of each shortest distribution path of the minimum spanning tree are weighted and accumulated. Finally, the optimal solution of the minimum spanning tree is found by an integer programming solver to optimize the minimum spanning tree.

[0021] Furthermore, in step S4, the clustering algorithm is specifically:

[0022] The vertices and boundaries of the minimum spanning tree are simplified, the shortest path of the minimum spanning tree is calculated by a shortest path algorithm, and the shortest paths are compared based on a cost parameter to optimize the minimum spanning tree.

[0023] The advantages of the present invention are:

[0024] The edge data to be distributed is obtained through the cloud, and each edge data is modularly packaged to generate encapsulated data, and the encapsulation parameters of each encapsulated data are set; the cloud generates a minimum spanning tree for distributing the encapsulated data based on the encapsulation parameters through the minimum Steiner tree algorithm, optimizes the minimum spanning tree based on the optimal cost path algorithm, optimizes the minimum spanning tree based on the clustering algorithm, obtains the optimal distribution path, generates a calling interface for the optimal distribution path, and distributes the encapsulated data to the smart terminal for edge computing through the calling interface; that is, the cloud generates a minimum spanning tree based on the encapsulation parameters, and then optimizes the minimum spanning tree using the optimal cost path algorithm and the clustering algorithm in turn to obtain the optimal distribution path with low parameter cost and short transmission path, and then distributes the encapsulated data based on the optimal distribution path, thereby greatly reducing the transmission cost of data distribution to the smart terminal. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.

[0026] Figure 1 It is a flow chart of a method for distributing data among a set-top box, a router, and a gateway for edge computing according to the present invention. DETAILED DESCRIPTION

[0027] The technical solution in the embodiments of the present application has the following overall idea: the cloud generates a minimum spanning tree based on the encapsulation parameters, and then optimizes the minimum spanning tree using the optimal cost path algorithm and the clustering algorithm in turn to obtain an optimal distribution path with low parameter cost and short transmission path, and then distributes the encapsulated data based on the optimal distribution path to reduce the transmission cost of data distribution to smart terminals.

[0028] Please refer to Figure 1 As shown, a preferred embodiment of a set-top box, router, and gateway data distribution method for edge computing of the present invention comprises the following steps:

[0029] Step S1, the cloud obtains edge data to be distributed, modularizes and packages each edge data to generate packaging data, and sets packaging parameters for each packaging data;

[0030] Step S2: The cloud generates a minimum spanning tree for distributing the encapsulated data based on the encapsulation parameters by using a minimum Steiner Tree algorithm;

[0031] That is, by inputting encapsulation parameters, the minimum Steiner tree algorithm is used to reduce the distribution cost of edge data, and by adjusting the cost value of the node, a minimum spanning tree with the minimum transmission cost is dynamically generated;

[0032] Step S3: The cloud optimizes the minimum spanning tree based on an optimal cost path algorithm;

[0033] Due to too many nodes, loops, infinite cost, etc., the generated minimum spanning tree may not be the optimal solution, so it needs to be optimized;

[0034] Step S4: The cloud optimizes the minimum spanning tree based on a clustering algorithm to obtain an optimal distribution path;

[0035] The core idea of ​​the clustering algorithm is to sacrifice a certain degree of optimization accuracy in exchange for computational efficiency, clustering computing nodes to adapt to large-scale edge data distribution problems;

[0036] Step S5, the cloud generates a calling interface (clustering path optimal algorithm interface) for the optimal distribution path, and distributes the encapsulated data to the smart terminal for edge computing through the calling interface; the smart terminal is a set-top box, router or gateway data. In specific implementation, a minimum path algorithm interface, an optimal path algorithm interface, and a fuzzy suggestion interface can also be set; the minimum path algorithm interface does not consider the cost, but only calculates the minimum path for data distribution; the optimal path algorithm interface considers the cost factor and dynamically obtains the minimum path for data distribution; the fuzzy suggestion interface combines all interfaces together and dynamically gives the best algorithm path.

[0037] In the step S1, the packaging parameters at least include extraction interface, input parameters, environmental parameters, and limiting conditions;

[0038] The input parameters include at least a topology pointer list of the edge computing network, a network topology, an intermediate edge service set, a data transmission time, a data demand location, a data size, a data transmission path, a data transmission cost ratio from the cloud to the smart terminal (C2E), a data transmission cost ratio between smart terminals (E2E), and an initially distributed smart terminal;

[0039] The environmental parameters include at least the number of smart terminals and the locations of the smart terminals;

[0040] The limiting conditions at least include an upper limit on transmission time, an upper limit on network bandwidth, an upper limit on storage capacity, and an upper limit on transmission cost (Cost).

[0041] The transmission time upper limit is used to ensure that data is distributed to all target smart terminals within the specified time. If it is not sent, it will time out; the network bandwidth upper limit and storage capacity upper limit are used to ensure that data distribution meets the maximum capacity of bandwidth resources and storage; the transmission cost upper limit is used to calculate the cost value according to the cost sorting weight vector table, which affects the data distribution strategy.

[0042] The step S2 is specifically as follows:

[0043] The cloud obtains a vertex set and an edge set of a network topology structure based on the encapsulation parameters, wherein the vertex set includes vertices of types of smart terminal vertices and Steiner vertices (non-smart terminal vertices), and the number of the smart terminal vertices is at least 2;

[0044] For example, let the vertex set be V, the edge set be E, and the smart terminal vertex be T. Then the network topology structure can be abstracted as a graph data G = (V, E).

[0045] The cloud uses the minimum Steiner tree algorithm to find the shortest distribution path connecting all vertices in the vertex set and edge set, and then generates a minimum spanning tree for distributing packaged data.

[0046] In specific implementation, optimization and pruning methods can be used to continuously evaluate and optimize the current minimum spanning tree, cut off unnecessary edges to reduce costs, and recursively replace edges and vertices to gradually improve the minimum spanning tree.

[0047] In step S3, the optimal cost path algorithm is specifically:

[0048] The shortest distribution path of the minimum spanning tree is broken down into parts by an integer programming method, and the delay constraint, data integrity constraint, and intelligent terminal resource constraint of the minimum spanning tree are set. The delay constraint, data integrity constraint, and intelligent terminal resource constraint are mapped by interface conversion, and then the transmission cost and storage cost of each shortest distribution path of the minimum spanning tree are weightedly accumulated, that is, the cost including transmission cost and storage cost in the data distribution process is minimized, and the accumulation is performed using intuitive integer weights. Finally, the optimal solution of the minimum spanning tree is found by an integer programming solver to optimize the minimum spanning tree.

[0049] For large-scale problems, it may take a long time to find the optimal solution. Therefore, for scenarios with limited computing resources or requiring fast response, you can consider reducing the number of recursions, increasing the timeout limit, and other methods to find the "relative optimal solution". In particular, in deep traversal, the deeper terminal nodes basically do not affect the path and can be directly ignored in the calculation.

[0050] In step S4, the clustering algorithm is specifically:

[0051] The vertices and boundaries of the minimum spanning tree are simplified, that is, the original complex graph is simplified by nodes and converted into a smaller and easier to handle graph for fast solution. The shortest path of the minimum spanning tree is calculated by the shortest path algorithm, and the shortest paths are compared based on the cost parameters to optimize the minimum spanning tree.

[0052] The shortest path algorithm may be a greedy algorithm or a genetic algorithm. The cost parameters include at least distribution cost, transmission delay, and transmission cost. In specific implementation, the minimum spanning tree can be improved through multiple iterations to gradually approach the optimal solution. Since data distribution in edge computing is a complex calculation process, the computing resources and costs of smart terminals are also changing in real time. If the calculation cost is too high, the meaning of the search is lost. Therefore, it is necessary to analyze the performance of the algorithm, including the limit of the approximation ratio and the running time of the algorithm.

[0053] In summary, the advantages of the present invention are:

[0054] The edge data to be distributed is obtained through the cloud, and each edge data is modularly packaged to generate encapsulated data, and the encapsulation parameters of each encapsulated data are set; the cloud generates a minimum spanning tree for distributing the encapsulated data based on the encapsulation parameters through the minimum Steiner tree algorithm, optimizes the minimum spanning tree based on the optimal cost path algorithm, optimizes the minimum spanning tree based on the clustering algorithm, obtains the optimal distribution path, generates a calling interface for the optimal distribution path, and distributes the encapsulated data to the smart terminal for edge computing through the calling interface; that is, the cloud generates a minimum spanning tree based on the encapsulation parameters, and then optimizes the minimum spanning tree using the optimal cost path algorithm and the clustering algorithm in turn to obtain the optimal distribution path with low parameter cost and short transmission path, and then distributes the encapsulated data based on the optimal distribution path, thereby greatly reducing the transmission cost of data distribution to the smart terminal.

[0055] Although the specific implementation modes of the present invention are described above, those skilled in the art should understand that the specific implementation modes described are only illustrative and are not intended to limit the scope of the present invention. Equivalent modifications and changes made by those skilled in the art in accordance with the spirit of the present invention should be included in the scope of protection of the claims of the present invention.

Claims

1. A method for distributing data among set-top boxes, routers, and gateways for edge computing, characterized in that: The steps include: Step S1, the cloud obtains edge data to be distributed, modularizes and packages each edge data to generate packaging data, and sets packaging parameters for each packaging data; Step S2: The cloud generates a minimum spanning tree for distributing encapsulated data based on the encapsulation parameters by using a minimum Steiner tree algorithm; Step S3: The cloud optimizes the minimum spanning tree based on an optimal cost path algorithm; Step S4: The cloud optimizes the minimum spanning tree based on a clustering algorithm to obtain an optimal distribution path; Step S5: The cloud generates a calling interface for the optimal distribution path, and distributes the encapsulated data to the smart terminal for edge computing through the calling interface; the smart terminal is a set-top box, router or gateway data.

2. A set-top box, router, and gateway data distribution method for edge computing as claimed in claim 1, characterized in that: In the step S1, the packaging parameters at least include extraction interface, input parameters, environmental parameters, and limiting conditions; The input parameters include at least a topology pointer list of the edge computing network, a network topology, an intermediate edge service set, a data transmission time, a data demand location, a data size, a data transmission path, a data transmission cost ratio from the cloud to the smart terminal, and a data transmission cost ratio between smart terminals; The environmental parameters include at least the number of smart terminals and the locations of the smart terminals; The limiting conditions include at least an upper limit on transmission time, an upper limit on network bandwidth, an upper limit on storage capacity, and an upper limit on transmission costs.

3. A set-top box, router, and gateway data distribution method for edge computing as claimed in claim 1, characterized in that: The step S2 is specifically as follows: The cloud obtains a vertex set and an edge set of a network topology structure based on the encapsulation parameters, wherein the vertex set includes vertices of types of smart terminal vertices and Steiner vertices, and the number of the smart terminal vertices is at least 2; The cloud uses the minimum Steiner tree algorithm to find the shortest distribution path connecting all vertices in the vertex set and edge set, and then generates a minimum spanning tree for distributing packaged data.

4. A set-top box, router, and gateway data distribution method for edge computing according to claim 1, characterized in that: In step S3, the optimal cost path algorithm is specifically: The shortest distribution path of the minimum spanning tree is broken down into parts by an integer programming method, and the delay constraint, data integrity constraint, and intelligent terminal resource constraint of the minimum spanning tree are set. Interface conversion mapping is performed on the delay constraint, data integrity constraint, and intelligent terminal resource constraint, and then the transmission cost and storage cost of each shortest distribution path of the minimum spanning tree are weighted and accumulated. Finally, the optimal solution of the minimum spanning tree is found by an integer programming solver to optimize the minimum spanning tree.

5. A set-top box, router, and gateway data distribution method for edge computing according to claim 1, characterized in that: In step S4, the clustering algorithm is specifically: The vertices and boundaries of the minimum spanning tree are simplified, the shortest path of the minimum spanning tree is calculated by a shortest path algorithm, and the shortest paths are compared based on a cost parameter to optimize the minimum spanning tree.