Data transmission method and apparatus, and storage medium

By acquiring the status information of the edge gateway, the distribution order is optimized to achieve many-to-many distribution, which solves the problems of network bandwidth impact and long time in edge gateway data transmission, and improves data transmission efficiency and distribution speed.

CN118827282BActive Publication Date: 2025-12-05CHINA MOBILE SHANGHAI ICT CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311569114.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-22
Publication Date
2025-12-05
Estimated Expiration
2043-11-22

AI Technical Summary

Technical Problem

During data transmission between edge gateways and servers, existing technologies suffer from network bandwidth impact and long distribution times due to large data volumes, especially when there are many edge gateways, making it impossible to complete data distribution in a short time.

Method used

By acquiring the status information of the edge gateway, distribution information is generated, and the distribution order for connectivity and bandwidth optimization is determined, thereby transforming the distribution from one-to-one to many-to-many. The bandwidth advantages and network topology of adjacent edge gateways are utilized to optimize the data distribution process.

Benefits of technology

It improves data transmission efficiency, shortens distribution time, reduces the impact on the operation of the distribution server, and increases the hit rate and distribution speed of edge gateway data requests.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118827282B_ABST
    Figure CN118827282B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a data transmission method and device and a storage medium. The method is applied to a distribution server and includes: obtaining state information of at least one edge gateway; generating distribution information according to the state information; wherein the distribution information includes: distribution parameters of target information in multiple edge gateways; and sending the distribution information and the target information to an edge node; the distribution information is used for the edge node to determine an edge gateway of a first distribution order receiving the target information, and / or for an edge gateway of a front n distribution order to determine an edge gateway of an n+1 distribution order receiving the target information; n is a positive integer greater than or equal to 1.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of network technology, and in particular to a data transmission method, apparatus, and storage medium. Background Technology

[0002] In existing technologies, when an edge gateway needs to obtain data from a server, if the data volume is large, a significant data transmission load will be generated during the distribution of data from edge nodes to the edge gateway. This will affect the communication efficiency between the edge gateway and edge nodes. Traditional data distribution methods, however, often involve...

[0003] Distributing data from the server to each edge gateway will result in a large number of edge gateways downloading data simultaneously, which will put a significant strain on the server's network bandwidth and affect the transmission of normal business data.

[0004] The data is distributed from the server to the edge nodes, and then from the edge nodes to the edge gateways one by one. Although the amount of data transmitted from the server to the edge gateways is reduced by using the edge nodes, the data is distributed from the edge nodes to each edge gateway one by one. When there are many edge gateways, the distribution time will be long and the data cannot be distributed in a short time. Summary of the Invention

[0005] This invention provides a data transmission method, apparatus, and storage medium.

[0006] The technical solution of this invention is implemented as follows:

[0007] This invention provides a data transmission method applied to a distribution server, the method comprising:

[0008] Obtain the status information of at least one edge gateway;

[0009] Distribution information is generated based on the status information; wherein, the distribution information includes: distribution parameters of the target information in multiple edge gateways;

[0010] The distribution information and the target information are sent to the edge nodes; the distribution information is used by the edge nodes to determine the edge gateways receiving the target information in the first distribution order, and / or, used by the edge gateways in the first n distribution orders to determine the edge gateways receiving the target information in the (n+1)th distribution order; n is a positive integer greater than or equal to 1.

[0011] In the above scheme, the status information includes at least: network connectivity status information and network bandwidth information;

[0012] The step of generating distribution information based on the status information includes:

[0013] Based on the network connectivity status information, determine any two connected edge gateways;

[0014] Based on the network bandwidth information, the distribution order is determined; wherein the distribution order is used to indicate the edge gateway in the first distribution order among the edge gateways connected to the edge node, and / or to indicate the edge gateway in the (n+1)th distribution order among the edge gateways connected to the edge gateways in the first n distribution orders.

[0015] In the above scheme, determining the distribution order based on the network bandwidth information includes:

[0016] Based on the network bandwidth information, the edge gateways connected to the edge nodes that meet the preset conditions are selected as the edge gateways in the first distribution order.

[0017] And / or,

[0018] Based on the network bandwidth information, the edge gateway that meets the preset conditions and is connected to the edge gateway in the first n distribution order is taken as the edge gateway in the (n+1)th distribution order.

[0019] This invention also provides a data transmission method applied to edge nodes, the method comprising:

[0020] Receive the distribution information and target information sent by the distribution server; the distribution information includes: distribution parameters of the target information in multiple edge gateways;

[0021] Based on the distribution information, the target information and the distribution information are distributed to the edge gateways of the first distribution order.

[0022] The method in the above scheme further includes:

[0023] Based on the distribution information, the target information and the distribution information are distributed to the edge gateway connected to the edge node in the (n+1)th distribution sequence.

[0024] This invention also provides a data transmission method applied to an edge gateway, the method comprising:

[0025] The edge gateway is the nth distribution sequence edge gateway;

[0026] Receive target information and distribution information sent by the edge node or the edge gateway in the first n-1 distribution order;

[0027] Based on the distribution information, the target information is distributed to the (n+1)th distribution order edge gateway; n is a positive integer greater than or equal to 1.

[0028] In the above scheme, receiving the target information and distribution information sent by the edge node or the (n-1)th level includes:

[0029] When n is 1, the target information and distribution information sent by the edge node are received;

[0030] When n is greater than 1, the target information and distribution information sent by the edge node or the edge gateway in the first n-1 distribution order are received.

[0031] This invention also provides a data transmission device applied to a distribution server, the device comprising: an acquisition module, a generation module, and a sending module;

[0032] The acquisition module is used to acquire the status information of at least one edge gateway;

[0033] The generation module is used to generate distribution information based on the status information; wherein, the distribution information includes: distribution parameters of target information in multiple edge gateways;

[0034] The sending module is used to send the distribution information and the target information to the edge nodes; the distribution information is used by the edge nodes to determine the edge gateways receiving the target information in the first distribution order, and / or, by the edge gateways in the first n distribution orders to determine the edge gateways receiving the target information in the (n+1)th distribution order; n is a positive integer greater than or equal to 1.

[0035] In the above scheme, the status information includes at least: network connectivity status information and network bandwidth information;

[0036] The generation module is specifically used to determine any two connected edge gateways based on the network connectivity status information; and to determine the distribution order based on the network bandwidth information; wherein the distribution order is used to indicate the edge gateway in the first distribution order among the edge gateways connected to the edge node, and / or to indicate the edge gateway in the (n+1)th distribution order among the edge gateways connected to the edge gateways in the first n distribution orders.

[0037] In the above scheme, the generation module is further used for:

[0038] Based on the network bandwidth information, the edge gateways connected to the edge nodes that meet the preset conditions are selected as the edge gateways in the first distribution order.

[0039] And / or,

[0040] Based on the network bandwidth information, the edge gateway that meets the preset conditions and is connected to the edge gateway in the first n distribution order is taken as the edge gateway in the (n+1)th distribution order.

[0041] This invention also provides a data transmission device for use at an edge node, the device comprising: a first receiving module and a first distributing module;

[0042] The first receiving module is configured to receive the distribution information and target information sent by the distribution server; the distribution information includes: distribution parameters of the target information in multiple edge gateways;

[0043] The first distribution module is used to distribute the target information and the distribution information to the edge gateways of the first distribution order based on the distribution information.

[0044] In the above scheme, the device further includes: a third distribution module;

[0045] The third distribution module is used to distribute the target information and the distribution information to the edge gateway connected to the edge node in the (n+1)th distribution sequence, based on the distribution information.

[0046] This invention also provides a data transmission device applied to an edge gateway, the device comprising: a second receiving module and a second distributing module; the edge gateway being an nth-order distribution edge gateway;

[0047] The second receiving module is used to receive target information and distribution information sent by the edge node or the edge gateway in the first n-1 distribution order;

[0048] The second distribution module is used to distribute the target information to the (n+1)th distribution sequence edge gateway based on the distribution information; n is a positive integer greater than or equal to 1.

[0049] In the above scheme, the second receiving module is further used for:

[0050] When n is 1, the target information and distribution information sent by the edge node are received;

[0051] When n is greater than 1, the target information and distribution information sent by the edge node or the edge gateway in the first n-1 distribution order are received.

[0052] This invention also provides a data transmission apparatus, the apparatus comprising: a processor and a memory for storing computer programs capable of running on the processor;

[0053] When the processor runs the computer program, it executes the steps of any of the above-described data transmission methods.

[0054] This invention also provides a computer storage medium, characterized in that the computer storage medium stores computer-executable instructions; after the computer-executable instructions are executed by a processor, they can implement the steps of the above-described data transmission method.

[0055] In this embodiment, distribution information is generated based on the acquired status information of at least one edge gateway. This distribution information includes: distribution parameters of the target information across multiple edge gateways; edge nodes determine the first distribution order of the edge gateways receiving the target information using the distribution information; and / or, the edge gateways in the first n distribution orders determine the (n+1)th distribution order of the edge gateways receiving the target information using the distribution information. Thus, based on the optimal transmission time distribution information generated by the distribution server according to the status information of the edge gateways, the process of edge gateways searching for data sources when requesting data is reduced, improving the hit rate of edge gateway data requests and reducing distribution time. Simultaneously, based on the distribution parameters, several edge gateways that have obtained the target data simultaneously distribute data to several corresponding edge gateways that have not obtained the target data. This makes the distribution speed faster as the number of edge gateways that have obtained the target data increases, improving data transmission efficiency and reducing the impact on the operation of the distribution server during data transmission. Attached Figure Description

[0056] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0057] Figure 1 A flowchart illustrating the data transmission method provided by this invention;

[0058] Figure 2 A network topology diagram of an edge gateway and edge nodes provided in an embodiment of the present invention;

[0059] Figure 3 For the present invention Figure 2 The implementation example provides a corresponding distribution order flowchart;

[0060] Figure 4 A flowchart illustrating another data transmission method for an embodiment of the present invention is provided;

[0061] Figure 5 Another network topology diagram of an edge gateway and edge nodes provided in an embodiment of the present invention;

[0062] Figure 6 For the present invention Figure 5The corresponding distribution order flowchart is provided in the embodiment;

[0063] Figure 7 A flowchart illustrating another data transmission method provided in an embodiment of the present invention;

[0064] Figure 8 A flowchart illustrating a method for determining distribution information provided in an embodiment of the present invention;

[0065] Figure 9 This is a schematic diagram of information distribution provided in an embodiment of the present invention;

[0066] Figure 10 This is a schematic diagram illustrating the application of the data transmission method provided in this embodiment of the invention;

[0067] Figure 11 A schematic diagram of the structure of a data transmission device provided by the present invention;

[0068] Figure 12 A schematic diagram of another data transmission device provided by the present invention;

[0069] Figure 13 A schematic diagram of another data transmission device provided by the present invention;

[0070] Figure 14 A schematic diagram of another data transmission device provided by the present invention. Detailed Implementation

[0071] To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on the present invention. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0072] Unless otherwise specified, the embodiments and features described herein can be combined arbitrarily. The steps illustrated in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be performed in a different order than that shown here.

[0073] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein is for the purpose of describing embodiments of the invention only and is not intended to limit the invention.

[0074] Before providing a further detailed description of the embodiments of the present invention, the nouns and terms used in communication involved in the embodiments of the present invention will be explained.

[0075] Edge nodes, located between servers and edge gateways, address network overload and latency issues in cloud computing. In an edge computing environment, devices such as cameras, sensors, and controllers connect to edge nodes via a network. Edge nodes collect, store, and analyze data from these devices, providing the results to the server. The server manages the edge nodes and devices, utilizing the data to provide various user services and deploying related software applications to ensure proper device operation. To further meet low latency and data confidentiality requirements, an edge gateway can be added between edge nodes and devices, further distributing applications to the edge gateway. The edge gateway then collects, stores, and analyzes data from various devices, providing the results to both the edge nodes and the server.

[0076] Related data distribution technologies include: Content Delivery Network (CDN) technology, Peer-to-Peer (P2P) network technology, etc.

[0077] Content Delivery Networks (CDNs) are intelligent virtual networks built on top of existing networks. Relying on servers deployed in various locations, they utilize a central platform's load balancing, content distribution, and scheduling modules to allow users to access content from the nearest server, reducing network congestion and improving response speed. However, when a large number of clients in the same region simultaneously download application packages from the server, it increases the server's bandwidth load. Furthermore, limited by the network capacity of that region, network congestion can easily occur, making it difficult to guarantee response speed.

[0078] P2P technology utilizes the internal network bandwidth resources of edge gateways to distribute data among them, reducing the load on data packet storage nodes. This significantly improves application distribution speed and reduces distribution time, resolving the issue of slow application packet downloads caused by the network bandwidth of the edge gateway storing data packets. In a pure P2P network, the edge gateway acts as both a client and a server, without a central server or router. In a hybrid P2P network, a central server stores edge gateway information and responds to requests for this information. Resource-providing nodes are responsible for publishing shared resource information, allowing the central server to determine the files that edge gateways need to share, and enabling nodes that need the resources to download the available resources. However, both pure and hybrid P2P networks require the installation of specific software on all edge gateways because edge gateways or edge nodes are peers, communicating directly with each other without a fixed server requester or service provider, leading to significant uncertainty in the request process.

[0079] In this embodiment, to address the issues of high bandwidth consumption and long distribution time when the server distributes data to multiple edge gateways, this application proposes a data transmission method to distribute data to multiple edge gateways by leveraging the bandwidth advantages between adjacent edge gateways, network topology, and application relevance. This method fully utilizes the idle bandwidth between adjacent edge gateways and the network topology to determine distribution parameters, changing the transmission from one-to-one to many-to-many during application distribution, thereby improving distribution speed. Without affecting application operation, this method achieves efficient data distribution to a large number of edge gateways, reducing bandwidth costs for data distribution to multiple edge gateways in server-edge gateway collaboration scenarios, shortening application distribution time, reducing network congestion, and improving data distribution efficiency.

[0080] This invention provides a data transmission method. Figure 1 A flowchart illustrating the data transmission method provided by this invention; as shown. Figure 1 As shown, the method is applied to a distribution server and includes:

[0081] Step S101: Obtain the status information of at least one edge gateway;

[0082] Step S102: Generate distribution information based on the status information; wherein, the distribution information includes: distribution parameters of the target information in multiple edge gateways;

[0083] Step S103: Send the distribution information and the target information to the edge nodes; the distribution information is used by the edge nodes to determine the edge gateways receiving the target information in the first distribution order, and / or, used by the edge gateways in the first n distribution orders to determine the edge gateways receiving the target information in the (n+1)th distribution order; n is a positive integer greater than or equal to 1.

[0084] The distribution server can be an application server or a web server. In specific deployments, the distribution server can be a standalone server or a cluster server.

[0085] In step S101 above, the status information includes at least: network connectivity status information and network bandwidth information.

[0086] Specifically, network connectivity status information is used to indicate the network topology and / or whether network nodes are connected. For example, network connectivity status information indicates the connection status between edge nodes and edge gateways in the network, and also indicates whether data can be transmitted between edge nodes and edge gateways in the network; for example, the network connectivity status information can be network topology information.

[0087] The network connectivity status information includes: network connectivity status information between edge gateways and network connectivity status information between edge gateways and edge nodes; the network connectivity status information indicates whether communication is possible between edge gateways and between edge gateways and edge nodes.

[0088] The network bandwidth information may be a parameter indicating the transmission quality of the edge gateway; for example, the network bandwidth information may include, but is not limited to, at least one of the following: the real-time bandwidth of the edge gateway; the bandwidth load rate of the edge gateway.

[0089] In step S102 above, the target information can be any resource file to be distributed; for example, the resource file can be a resource file of type such as image, audio, video or text; and for another example, the resource file can also be a resource file of type string such as code.

[0090] Specifically, in this embodiment, the target information may be a resource file that can obtain the application to be distributed, for example, the target information may be the application package of the application to be distributed.

[0091] In some embodiments, prior to step S102, the method further includes: obtaining parameter information of the target information required by the at least one edge gateway. In this embodiment, the parameter information of the target information is the application parameter information of the application to be distributed required by the edge gateway. Specifically, the application parameter information includes, but is not limited to: application name, application version number, etc.

[0092] Specifically, distribution information is generated based on the status information and the parameter information of the target information. Specifically, distribution parameters are generated based on the status information, and the parameter information of the target information and the distribution parameters are formatted to generate the distribution information. Here, the distribution parameters indicate the distribution order of the target information across multiple edge gateways, and the parameter information of the target information indicates the target information corresponding to different edge gateways. It should be noted that the target information corresponding to different edge gateways can be the same or different. In some embodiments, when the edge gateways require the same application to be distributed, the parameter information of the target information is the same, and the target information corresponding to different edge gateways indicated by the parameter information of the target information is the same. In other embodiments, when the edge gateways require different applications to be distributed, the parameter information of the target information is different, and the parameter information of the target indicates different target information corresponding to different edge gateways.

[0093] In step S103 above, the edge node is also an edge gateway; for example, the edge node can be an edge gateway determined from the at least one edge gateway; or it can be a separately set network node.

[0094] The edge nodes have common capabilities such as real-time data analysis at the edge, local data storage, and real-time network connectivity. In this embodiment, the edge nodes interact with the distribution server, which is different from the scheme where multiple edge gateways interact with the server separately. This reduces the possibility of network congestion and the bandwidth load on the server, and improves response efficiency.

[0095] In this embodiment, distribution information is generated based on the status information of at least one edge gateway. The distribution information includes: distribution parameters of target information among multiple edge gateways; edge nodes determine the first distribution order of the edge gateways receiving the target information through the distribution information, and / or, the edge gateways in the first n distribution order determine the (n+1)th distribution order of the edge gateways receiving the target information through the distribution information. In this way, the distribution server generates the optimal distribution information based on the status information of the edge gateways, which reduces the process of the edge gateways searching for data sources when requesting data, improves the hit rate of edge gateways requesting data, and reduces the distribution time.

[0096] In this way, by using the edge gateway that has already obtained the target information as the data distribution source, and sending the target information and distribution information to the next edge gateway in the distribution sequence, the process of one-to-one distribution is transformed into many-to-many distribution. The distribution speed increases with the number of edge gateways that have obtained the target information, which greatly improves the distribution efficiency, reduces the time complexity in the distribution process, shortens the distribution time, improves the data transmission efficiency, and reduces the impact on the operation of the distribution server during data transmission.

[0097] Furthermore, step S102 also includes:

[0098] S1021: Based on the network connectivity status information, determine any two connected edge gateways;

[0099] S1022: Determine the distribution order based on the network bandwidth information; wherein the distribution order is used to indicate the edge gateway in the first distribution order among the edge gateways connected to the edge node, and / or to indicate the edge gateway in the (n+1)th distribution order among the edge gateways connected to the edge gateways in the first n distribution orders.

[0100] Specifically, in step S1021, the network topology between the edge gateway and the edge node is determined by the network connectivity status information, thereby identifying any two edge gateways that are interconnected.

[0101] In one embodiment, the network topology between the edge node and the edge gateway can be a mesh structure; in another embodiment, the network topology between the edge node and the edge gateway can also be a tree structure.

[0102] For example, in this embodiment, the network topology between the edge node and the edge gateway is a mesh structure; the distribution server determines the edge gateway connected to the edge node through the network connectivity status information of the edge node; the distribution server determines other edge gateways connected to the edge gateway through the network connectivity status information of the edge gateway.

[0103] The following describes step S1021 using an embodiment, as follows: Figure 2 As shown, edge node A is represented. For example, based on the network connectivity status information of edge node A, edge gateway B connected to edge node A is determined. For example, based on the network connectivity status information of edge gateway B, edge nodes A and edge gateways C, E, F, and G are determined to be connected to edge gateway B. For example, based on the network connectivity status information of edge gateway C, edge gateways B, G, and D are determined to be connected to edge gateway C.

[0104] Further, step S1022 includes:

[0105] S1022a: Based on the network bandwidth information, the edge gateway connected to the edge node that meets the preset conditions is selected as the edge gateway in the first distribution order.

[0106] And / or,

[0107] S1022b: Based on the network bandwidth information, the edge gateway that is connected to the edge gateway in the first n distribution order and meets the preset conditions is taken as the edge gateway in the (n+1)th distribution order.

[0108] In one embodiment, the network bandwidth information may be the real-time bandwidth of the edge gateway, and the preset condition may be the maximum value among the real-time bandwidths of edge gateways connected to the edge node with an undetermined distribution order, and / or the maximum value among the real-time bandwidths of edge gateways connected to the top n edge gateways with an undetermined distribution order.

[0109] In other embodiments, the network bandwidth information may be the bandwidth load rate of the edge gateway, the maximum value among the bandwidth load rates of edge gateways connected to the edge node under the preset conditions and with an undetermined distribution order, and / or the maximum value among the edge gateways connected to the top n edge gateways with an undetermined distribution order.

[0110] For example, the real-time bandwidths of edge gateways connected to the edge node with undetermined distribution order are sorted, and when the real-time bandwidth meets a preset condition, that is, when the real-time bandwidth is the maximum value among the real-time bandwidths of edge gateways connected to the edge node with undetermined distribution order, the edge gateway connected to the edge node corresponding to the real-time bandwidth is determined as the edge gateway with the first distribution order.

[0111] To elaborate further:

[0112] In one embodiment, such as Figure 2 As shown, in step S1022a above, the edge node is A, and the edge gateway connected to the edge node with an undetermined distribution order is B; the network bandwidth information of edge gateway B is the maximum value among the network bandwidth information of the edge gateways connected to the edge node; edge gateway B is selected as the edge gateway with the first distribution order.

[0113] In step S1022b above, for example, when n is 1, the edge gateways in the first distribution order include: edge node A in the 0th distribution order and edge gateway B in the 1st distribution order; edge node A has no edge gateways with undetermined distribution order, and the edge gateways with undetermined distribution order connected to edge gateway B in the 1st distribution order are edge gateways C, E, F and G.

[0114] Among them, the network bandwidth information of edge gateway C meets the preset condition, that is, it is the maximum value of the real-time bandwidth of edge gateways with undetermined distribution order that are connected to edge gateway B with the first distribution order; edge gateway C is determined as the edge gateway with the second distribution order.

[0115] For example, when n is 2, the edge gateways in the first 2 distribution orders include: edge node A in the 0th distribution order, edge gateway B in the 1st distribution order, and edge gateway C in the 2nd distribution order; edge node A has no edge gateways with undetermined distribution order, the edge gateways with undetermined distribution order connected to edge gateway B in the 1st distribution order are edge gateways E, F, and G, and the edge gateways with undetermined distribution order connected to edge gateway C in the 2nd distribution order are edge gateways G and D;

[0116] Among them, the network bandwidth information of edge gateway E meets the preset condition, that is, it is the maximum value of the real-time bandwidth of edge gateways with undetermined distribution order that are connected to edge gateway B with the first distribution order; the network bandwidth information of edge gateway D meets the preset condition, that is, it is the maximum value of the real-time bandwidth of edge gateways with undetermined distribution order that are connected to edge gateway C with the second distribution order; edge gateways D and edge gateway E are determined as edge gateways with the third distribution order.

[0117] It should be noted that in step S1022b, the edge gateways with undetermined distribution order connected to the edge gateways with the first n distribution orders are traversed sequentially until... Figure 2 The distribution order is determined for all edge gateways in the process; Figure 2 The distribution order corresponding to the network connectivity state diagram of the edge gateways and edge nodes shown is as follows: Figure 3 As shown.

[0118] Furthermore, in some embodiments, after all the edge gateways have determined the distribution order, the method further includes:

[0119] Distribution information is generated based on the distribution order and the parameter information of the target information required by the edge gateway corresponding to the distribution order; wherein, the distribution order indicates the order in which the edge gateway is distributed to the target information, and the parameter information indicates whether the target information to be distributed to the edge gateway is the same or different.

[0120] Specifically, the parameter information of the distribution order and the target information required by the edge gateway corresponding to the distribution order is formatted to generate distribution information, which is then sent to the edge node.

[0121] After receiving the distribution information, the edge node obtains the target information corresponding to the parameter information from the distribution server; the distribution server then sends the target information corresponding to the parameter information to the edge node.

[0122] In this embodiment, distribution information is generated based on the status information of at least one edge gateway. The distribution information includes: distribution parameters of target information among multiple edge gateways; edge nodes determine the first distribution order of the edge gateways receiving the target information through the distribution information, and / or, the edge gateways in the first n distribution order determine the (n+1)th distribution order of the edge gateways receiving the target information through the distribution information. Thus, based on the optimal transmission time distribution information generated by the distribution server according to the status information of the edge gateways, the process of edge gateways searching for data sources when requesting data is reduced, the hit rate of edge gateways requesting data is improved, and the distribution time is reduced.

[0123] In this way, by using the edge gateway that has already obtained the target information as the data distribution source, and sending the target information and distribution information to the next edge gateway in the distribution sequence, the process of one-to-one distribution is transformed into many-to-many distribution. The distribution speed increases with the number of edge gateways that have obtained the target information, which greatly improves the distribution efficiency, reduces the time complexity in the distribution process, shortens the distribution time, improves the data transmission efficiency, and reduces the impact on the operation of the distribution server during data transmission.

[0124] This invention provides another data transmission method. Figure 4A flowchart illustrating the data transmission method provided by this invention; as shown. Figure 4 As shown, the method is applied to edge nodes and includes:

[0125] S201: Receive the distribution information and target information sent by the distribution server; the distribution information includes: distribution parameters of the target information in multiple edge gateways;

[0126] S202: Based on the distribution information, the target information and the distribution information are distributed to the edge gateways of the first distribution order.

[0127] The edge node is also an edge gateway; for example, the edge node can be an edge gateway determined from the at least one edge gateway; or it can be a separately configured network node.

[0128] The edge nodes possess common capabilities such as real-time edge data analysis, local data storage, and real-time network connectivity. In this embodiment, the interaction between the edge nodes and the distribution server differs from the scheme where multiple edge gateways interact with the server separately, reducing the possibility of network congestion and server bandwidth load, and improving server response efficiency.

[0129] Specifically, in step S201, the distribution server can be an application server or a web server. In specific deployment, the distribution server can be a standalone server or a cluster server.

[0130] The target information can be any resource file to be distributed; for example, the resource file can be a resource file of type such as image, audio, video or text; for another example, the resource file can also be a resource file of type string such as code.

[0131] In this embodiment, the target information can be resource files that can be obtained from the application to be distributed, for example, the target information can be the application package of the application to be distributed.

[0132] The distribution information includes: the distribution parameters and parameter information of the target information; here, the distribution parameters indicate the distribution order of the target information among multiple edge gateways, and the parameter information of the target information indicates the target information corresponding to different edge gateways. It should be noted that the target information corresponding to different edge gateways can be the same or different.

[0133] Specifically, the edge node receives distribution information sent by the distribution server; the edge node obtains the target information corresponding to the parameter information from the distribution server based on the parameter information in the distribution information; and receives the target information sent by the distribution server.

[0134] It should be noted that in this embodiment, after receiving the target information sent by the distribution server, the edge node verifies the received target information, thus ensuring the integrity and correctness of the received target information.

[0135] Specifically, in step S202, the edge gateway with the first distribution order is determined based on the distribution order in the distribution information; and the target information corresponding to the parameter information of the edge gateway with the first distribution order is sent to the edge gateway with the first distribution order based on the parameter information in the distribution information.

[0136] For example, such as Figure 3 As shown, the edge gateway in the first distribution order is edge gateway B; based on the parameter information corresponding to edge gateway B in the distribution information, the target information corresponding to the parameter information is sent to edge gateway B in the first distribution order.

[0137] For example, such as Figure 5 As shown, the edge gateway in the first distribution order is edge gateway B; the distribution information and target information are sent to the edge gateway in the first distribution order; edge gateway B obtains the application package in the target information.

[0138] Furthermore, the method also includes:

[0139] S203: Based on the distribution information, distribute the target information and the distribution information to the edge gateway connected to the edge node in the (n+1)th distribution sequence.

[0140] Specifically, n is a positive integer greater than or equal to 1; for example, n can be a positive integer such as 2, 3 or 6.

[0141] To elaborate further:

[0142] In some embodiments, such as Figure 3 As shown, there is only one edge gateway B connected to edge node A, and edge node B is the edge gateway connected to edge node A in the first distribution order; in step S203, edge node A has no other connected edge gateways, so step S203 is not executed here.

[0143] In other embodiments, such as Figure 5 As shown, Figure 5 This is a schematic diagram of a distribution order; where the edge node is a. For example, when n is 1, the edge gateway connected to the edge node in the second distribution order is b; based on the parameter information corresponding to edge gateway b in the distribution information, the target information corresponding to the parameter information is sent to edge gateway b in the second distribution order.

[0144] For example, when n is 2, in the third distribution order, the edge gateway connected to the edge node is e; based on the parameter information corresponding to the edge gateway e in the distribution information, the target information corresponding to the parameter information is sent to the edge gateway e in the third distribution order.

[0145] Here, the edge node sends the target information to all edge gateways connected to the edge node in the distribution order according to the distribution information, until the distribution of the target information to all edge gateways connected to the edge node in the distribution order is completed.

[0146] Furthermore, the method also includes:

[0147] The verification information is distributed to the edge gateways in the first distribution order, and / or the verification information is distributed to the edge gateways connected to the edge node in the (n+1)th distribution order.

[0148] Specifically, while the edge node distributes the target information and the distribution information to the edge gateways in the first distribution order based on the distribution information, and / or distributes the target information and the distribution information to the edge gateways in the (n+1)th distribution order, the edge node sends verification information to the edge gateways in the first distribution order, and / or to the edge gateways in the (n+1)th distribution order that are connected to the edge node.

[0149] It should be noted that the verification information here is used to verify the correctness and integrity of the received target information and distribution information at the edge gateway; thus, the security of the data transmission process is guaranteed.

[0150] In this embodiment, distribution information is generated based on the status information of at least one edge gateway. The distribution information includes: distribution parameters of target information among multiple edge gateways; edge nodes determine the first distribution order of the edge gateways receiving the target information through the distribution information, and / or, the edge gateways in the first n distribution order determine the (n+1)th distribution order of the edge gateways receiving the target information through the distribution information. Thus, based on the optimal transmission time distribution information generated by the distribution server according to the status information of the edge gateways, the process of edge gateways searching for data sources when requesting data is reduced, the hit rate of edge gateways requesting data is improved, and the distribution time is reduced.

[0151] Meanwhile, by using the edge gateway that has already obtained the target information as the data distribution source, and sending the target information and distribution information to the next edge gateway in the distribution sequence, the process of one-to-one distribution is transformed into many-to-many distribution. The distribution speed increases with the number of edge gateways that have obtained the target information, which greatly improves the distribution efficiency, reduces the time complexity in the distribution process, shortens the distribution time, improves the data transmission efficiency, and reduces the impact on the operation of the distribution server during data transmission.

[0152] This invention provides yet another data transmission method. Figure 7 A flowchart illustrating the data transmission method provided by this invention; as shown. Figure 7 As shown, the method is applied to an edge gateway, including: the edge gateway is an nth distribution sequence edge gateway;

[0153] S301: Receive target information and distribution information sent by the edge node or the edge gateway in the first n-1 distribution order;

[0154] S302: Based on the distribution information, the target information is distributed to the (n+1)th distribution sequence edge gateway; n is a positive integer greater than or equal to 1.

[0155] Specifically, the edge node is also an edge gateway; for example, the edge node can be an edge gateway determined from the at least one edge gateway; it can also be a separately configured network node. The edge node has common capabilities such as real-time data analysis on the edge side, local data storage, and real-time network connectivity.

[0156] The target information can be any resource file to be distributed; for example, the resource file can be a resource file of type such as image, audio, video or text; for another example, the resource file can also be a resource file of type string such as code.

[0157] In this embodiment, the target information may be resource files that can be obtained from the application to be distributed. For example, the target information may be application packages of one or more of the applications to be distributed.

[0158] The distribution information includes: the distribution parameters and parameter information of the target information; here, the distribution parameters indicate the distribution order of the target information among multiple edge gateways, and the parameter information of the target information indicates the target information corresponding to different edge gateways. It should be noted that the target information corresponding to different edge gateways can be the same or different.

[0159] Further, before step S301, all edge gateways send the parameter information of the target information they need to the edge nodes, which then send it to the distribution server for the distribution server to determine the distribution information. Here, the parameter information of the target information includes the application parameter information of the application to be distributed required by the edge gateway. Specifically, the application parameter information includes, but is not limited to, the application name, application version number, etc.

[0160] Further, step S301 includes:

[0161] S3011: When n is 1, receive the target information and the distribution information sent by the edge node;

[0162] S3012: When n is greater than 1, receive the target information and distribution information sent by the edge node or the edge gateway in the first n-1 distribution order.

[0163] Specifically, n is a positive integer greater than or equal to 1. In step S3011 above, when n is 1, the (n-1)th distribution order edge gateway is the edge node; the edge gateway of the first distribution order receives the target information and distribution information sent by the edge node. In step S3012 above, when n is greater than 1, the target information and distribution information sent by the edge node, and / or the (n-1)th distribution order edge gateway, are received.

[0164] To elaborate further:

[0165] In some embodiments, such as Figure 3 and Figure 4 As shown, exemplarily, the edge gateway with the first distribution order is B, and edge gateway B receives target information and distribution information sent by the edge node; exemplarily, the edge gateway C with the second distribution order receives target information and distribution information sent by edge gateway B with the first distribution order.

[0166] For example, the edge gateway E of the third distribution order receives the target information and distribution information sent by the edge gateway B of the first distribution order; the edge gateway D of the third distribution order receives the target information and distribution information sent by the edge gateway C of the second distribution order.

[0167] In other embodiments, such as Figure 5 and Figure 6 As shown, exemplarily, edge gateway b in the first distribution order receives target information and distribution information sent by edge node a; exemplarily, edge gateway e in the second distribution order receives target information and distribution information sent by edge node a; and edge gateway g in the second distribution order receives target information and distribution information sent by edge gateway b in the first distribution order.

[0168] For example, the edge gateway d of the third distribution order receives the target information and distribution information sent by the edge node a; the edge gateway r of the third distribution order receives the target information and distribution information sent by the edge gateway b of the first distribution order; and the edge gateway q of the third distribution order receives the target information and distribution information sent by the edge gateway g of the second distribution order.

[0169] It should be noted that the edge gateway receives the target information sent by the edge nodes and the edge gateway in the previous distribution order based on the distribution order in the received distribution information. This avoids the process of each edge gateway sequentially searching for the data source from the distribution server, thus ensuring the hit rate of data acquisition requests.

[0170] Furthermore, while receiving the target information and distribution information sent by the edge node and / or the edge gateway in the (n-1)th distribution order, the edge gateway also receives the verification information sent by the edge node and / or the edge gateway in the (n-1)th distribution order.

[0171] The edge gateway verifies the received target information and distribution information based on the received verification information. After successful verification, it downloads the target information it needs from the received target information. In this way, the correctness and integrity of the target information and distribution information are ensured, and the security of the data transmission process is guaranteed.

[0172] In this embodiment, the edge gateway downloads the application package of the application to be distributed that it needs from the received application packages of one or more applications to be distributed, and installs it.

[0173] Specifically, in step S302 above, the edge gateway with the nth distribution order sends the target information and distribution information to the edge gateway with the (n+1)th distribution order based on the distribution order in the distribution information.

[0174] Furthermore, step S302 above also includes: the edge gateways of the first n-1 distribution order send the target information and distribution information to the edge gateways of the n+1 distribution order based on the distribution order in the distribution information.

[0175] To elaborate further:

[0176] In some embodiments, such as Figure 3 and Figure 4 As shown:

[0177] For example, when n is 1, the edge gateway with the first distribution order is edge gateway B, and the edge gateway with the second distribution order is edge gateway C; the edge gateway B with the first distribution order sends target information and distribution information to the edge gateway C with the second distribution order.

[0178] For example, when n is 2, the edge gateway in the second distribution order is edge gateway C, and the edge gateways in the third distribution order are edge gateway D and edge gateway E; the edge gateway C in the second distribution order sends target information and distribution information to the edge gateway D in the third distribution order, and the edge gateway B in the first distribution order sends target information and distribution information to the edge gateway E in the third distribution order.

[0179] For example, when n is 3, the edge gateways in the third distribution order are edge gateways D and E, and the edge gateways in the fourth distribution order are edge gateways I, F, G and H.

[0180] Edge gateway D, in the third distribution order, sends target information and distribution information to edge gateway H, in the fourth distribution order; and edge gateway E, in the third distribution order, sends target information and distribution information to edge gateway I, in the fourth distribution order.

[0181] Edge gateway C, in the second distribution order, sends target information and distribution information to edge gateway G, in the fourth distribution order; and edge gateway B, in the first distribution order, sends target information and distribution information to edge gateway F, in the third distribution order.

[0182] In this way, by using the edge gateway that has already obtained the target information as the data distribution source, and sending the target information and distribution information to the next edge gateway in the distribution sequence, the process of one-to-one distribution is transformed into many-to-many distribution. The distribution speed increases as the number of edge gateways that have obtained the target information increases, which greatly improves the distribution efficiency, reduces the time complexity in the distribution process, and shortens the distribution time.

[0183] The data transmission method provided in this embodiment of the invention will be described below with a specific example.

[0184] Step 1: The distribution server obtains one or more application parameter information required by the edge nodes and edge gateways, as well as the network connectivity status between edge nodes and edge gateways, and between edge gateways, from the edge nodes.

[0185] Specifically, the target information corresponding to different edge gateways can be the same or different. The application parameter information includes, but is not limited to: application name, application version number, etc.

[0186] The network connectivity status information includes: network connectivity status information between edge gateways and network connectivity status information between edge gateways and edge nodes; the network connectivity status information indicates whether communication is possible between edge gateways and between edge gateways and edge nodes.

[0187] The status information includes at least: network connectivity status information and network bandwidth information; the network bandwidth information may be a parameter indicating the transmission quality of the edge gateway; for example, the network bandwidth information may include, but is not limited to, at least one of the following: the real-time bandwidth of the edge gateway; the bandwidth load rate of the edge gateway.

[0188] Step 2: The distribution server generates distribution information based on one or more application parameter information and network connectivity status; such as... Figure 8 As shown;

[0189] Step 2.1: Determine the edge gateways participating in application distribution;

[0190] Step 2.2: Determine the distribution order of the edge gateways based on the network connectivity status.

[0191] Step 2.2.1: Determine the network connectivity status and identify the connected edge gateways;

[0192] Specifically, edge nodes and edge gateways involved in application distribution, such as Figure 2 As shown; for example, edge node is represented by A, edge gateway is B which is connected to edge node A and edge gateway EFCG; edge gateway C is connected to edge gateway DGB; edge gateway D is connected to edge gateway GSH.

[0193] Step 2.2.2: Determine the edge nodes as the 0th distribution order;

[0194] Step 2.2.3: Determine the edge gateway with the largest network bandwidth in descending order among the edge gateways connected to the edge node, and determine it as the edge gateway with the nth distribution order. At this time, n is 1.

[0195] Specifically, exemplarily, there is one and only one edge gateway connected to edge node A; if the network bandwidth information of edge node B ranks first, then it is determined as the edge gateway with the first distribution order.

[0196] Step 2.2.4: Determine the edge gateway with the largest network bandwidth in descending order from the edge gateways in the first n distribution order and the edge gateways with the undetermined distribution order that are connected to the edge nodes, and determine it as the edge gateway with the (n+1)th distribution order.

[0197] Specifically, for example, edge node A has no edge gateways with undetermined distribution order. The edge gateways with undetermined distribution order that are connected to edge gateway B with the first distribution order are edge gateways C, E, F, and G. Among edge gateways C, E, F, and G, the edge gateway ranked first in terms of network bandwidth information from largest to smallest is edge gateway C, which is determined as the edge gateway with the (n+1)th distribution order, that is, the edge gateway with the second distribution order.

[0198] Step 2.2.5: Execute n+1 and determine whether all edge gateways of the applications to be distributed have completed the determination of the distribution order; if completed, proceed to step 2.2.6; if not completed, proceed to step 2.2.4.

[0199] Specifically, for example, when n is 2, edge node A has no edge gateways with undetermined distribution order. The edge gateways with undetermined distribution order connected to edge gateway B with the first distribution order are edge gateways E, F, and G. The edge gateways with undetermined distribution order connected to edge gateway C with the second distribution order are edge gateways G and D. The edge gateway ranked first in terms of network bandwidth information from largest to smallest among edge gateways E, F, and G is edge gateway E. The edge gateway ranked first in terms of network bandwidth information from largest to smallest among edge gateways G and D is edge gateway D. Edge gateways D and E are determined as edge gateways with the (n+1)th distribution order, that is, edge gateways with the third distribution order.

[0200] Step 2.2.6: Generate distribution information by combining the distribution order and the application parameter information of the applications to be distributed to the edge gateways corresponding to the distribution order;

[0201] For example, Figure 9 This illustration shows a distribution information in an embodiment of the present invention; wherein, NodeID is the name of the edge gateway, appID is the application name of the application to be distributed, curVersion is the current version number of the application to be distributed in the edge gateway, newVersion is the new version number of the application to be distributed required by the edge gateway, parentID is the name of the parent node of the edge gateway, that is, the edge gateway or edge node in the previous distribution order that distributed the application to be distributed and the distribution information to the edge gateway, parentUrl represents the resource path of the application to be distributed, saveUrl represents the save path of the application to be distributed after the edge gateway receives it, and childrenID represents the name of the child node, that is, the edge gateway in the next distribution order that is connected to the edge gateway.

[0202] Step 3: The distribution server sends the distribution information to the edge nodes.

[0203] Step 4: The edge node receives the distribution information and obtains the target information from the distribution server based on the distribution information; the target information includes application packages of one or more applications to be distributed;

[0204] Step 4.1: Obtain the application package of the application to be distributed from the distribution server based on the application parameter information in the distribution information.

[0205] Step 4.2: Verify the received target information; this ensures the integrity and correctness of the received target information.

[0206] Step 5: Based on the distribution order in the distribution information, the edge node sends the distribution information, target information, and verification information to the edge gateway of the nth distribution order, where n equals 1.

[0207] Specifically, for example, such as Figure 3 As shown, the edge gateway in the first distribution order is edge gateway B; the distribution information, target information and verification information are sent to the edge gateway.

[0208] Edge gateway B obtains the application packet from the target information and verifies the correctness and integrity of the received distribution information and target information transmission based on the verification information; thus, the security of the data transmission process is guaranteed.

[0209] Step 6: The edge nodes and the edge gateways in the first n distribution order send the target information and distribution information to the edge gateway in the (n+1)th distribution order;

[0210] For example, in this embodiment, n is a positive integer greater than or equal to 1 and less than or equal to 6; when n is 1, the edge node has no connected edge gateway of the second distribution order, and the edge gateway B of the first distribution order sends target information and distribution information to the edge gateway C of the second distribution order.

[0211] For example, the edge gateway E of the third distribution order receives the target information and distribution information sent by the edge gateway B of the first distribution order; the edge gateway D of the third distribution order receives the target information and distribution information sent by the edge gateway C of the second distribution order. Figure 4 For this embodiment Figure 3 The specific distribution process of the edge gateway is shown.

[0212] In this way, by using the edge gateway that has already obtained the target information as the data distribution source, and sending the target information and distribution information to the next edge gateway in the distribution sequence, the process of one-to-one distribution is transformed into many-to-many distribution. The distribution speed increases as the number of edge gateways that have obtained the target information increases, which greatly improves the distribution efficiency, reduces the time complexity in the distribution process, and shortens the distribution time.

[0213] Step 7: The edge gateway receives target information, distribution information, and verification information based on the distribution order, and downloads the application package of the required application to be distributed from the target information.

[0214] Specifically, the edge gateway verifies the received target information and distribution information based on the received verification information; after successful verification, it downloads the target information it needs from the received target information; thus, the correctness and integrity of the target information and distribution information are ensured, and the security of the data transmission process is guaranteed.

[0215] In this embodiment, after the edge gateway downloads the application package of the application to be distributed, it starts the application and deploys it to the terminal device connected to the edge gateway for use; the terminal device here is an electronic device, including but not limited to cameras, smart meters, smart control devices, etc.

[0216] It should be noted that the edge gateway receives the target information sent by the edge nodes and the edge gateway in the previous distribution order based on the distribution order in the received distribution information. This avoids the process of each edge gateway sequentially searching for the data source from the distribution server, thus ensuring the hit rate of data acquisition requests.

[0217] In this embodiment, the server determines the optimal distribution order based on the network topology between the edge gateway and edge nodes, and the network status information of the edge gateway. This reduces the process of the edge gateway searching for data sources when requesting data, improves the hit rate of data requests from the edge gateway, and reduces the distribution time.

[0218] The time complexity in this embodiment is . ;in, To calculate the time required to distribute the information, The average time for an application to be transmitted from one node to another is given by N, where N is the number of edge gateways. Compared to the time complexity of existing technologies where each edge gateway retrieves the application from the server individually, the time complexity in this embodiment is significantly lower. It is directly proportional, which greatly reduces the time complexity.

[0219] In this embodiment, by having the edge node obtain distribution information and the application to be distributed from the distribution server, and then distributing the application to the edge gateway layer by layer based on the distribution order in the distribution information, the process of the edge gateway searching for the data source when requesting data is reduced, the hit rate of the edge gateway requesting data is improved, and the distribution time is reduced.

[0220] Meanwhile, based on the distribution parameters, several edge gateways that have obtained the target data simultaneously distribute the data to several corresponding edge gateways that have not obtained the target data. This makes the distribution speed faster as the number of edge gateways that have obtained the target data increases, thereby improving data transmission efficiency and reducing the impact on the operation of the distribution server during data transmission.

[0221] like Figure 11 As shown, Figure 11 This is a schematic diagram of a data transmission device provided in an embodiment of the present invention. The device is applied to a distribution server and includes: an acquisition module 1101, a generation module 1102, and a sending module 1103.

[0222] The acquisition module 1101 is used to acquire the status information of at least one edge gateway;

[0223] The generation module 1102 is used to generate distribution information based on the status information; wherein, the distribution information includes: distribution parameters of target information in multiple edge gateways;

[0224] The sending module 1103 is used to send the distribution information and the target information to the edge nodes; the distribution information is used by the edge nodes to determine the edge gateways receiving the target information in the first distribution order, and / or, used by the edge gateways in the first n distribution orders to determine the edge gateways receiving the target information in the (n+1)th distribution order; n is a positive integer greater than or equal to 1.

[0225] Specifically, the status information includes at least: network connectivity status information and network bandwidth information;

[0226] The generation module 1102 is specifically used to determine any two connected edge gateways based on the network connectivity status information; and to determine the distribution order based on the network bandwidth information; wherein the distribution order is used to indicate the edge gateway in the first distribution order among the edge gateways connected to the edge node, and / or to indicate the edge gateway in the (n+1)th distribution order among the edge gateways connected to the edge gateways in the first n distribution orders.

[0227] Specifically, the generation module 1102 is further configured to:

[0228] Based on the network bandwidth information, the edge gateways connected to the edge nodes that meet the preset conditions are selected as the edge gateways in the first distribution order.

[0229] And / or,

[0230] Based on the network bandwidth information, the edge gateway that meets the preset conditions and is connected to the edge gateway in the first n distribution order is taken as the edge gateway in the (n+1)th distribution order.

[0231] like Figure 12 As shown, Figure 12 This is a schematic diagram of another data transmission device provided in an embodiment of the present invention. The device is applied to an edge node and includes: a first receiving module 1201 and a first distributing module 1202.

[0232] The first receiving module 1201 is used to receive the distribution information and target information sent by the distribution server; the distribution information includes: distribution parameters of the target information in multiple edge gateways;

[0233] The first distribution module 1202 is used to distribute the target information and the distribution information to the edge gateways of the first distribution order based on the distribution information.

[0234] Specifically, the device further includes: a third distribution module 1203;

[0235] The third distribution module 1203 is used to distribute the target information and the distribution information to the edge gateway connected to the edge node in the (n+1)th distribution sequence, based on the distribution information.

[0236] like Figure 13 As shown, Figure 13 This is a schematic diagram of another data transmission device provided in an embodiment of the present invention. The device is applied to an edge gateway and includes: a second receiving module 1301 and a second distributing module 1302; the edge gateway is an nth distribution sequence edge gateway.

[0237] The second receiving module 1301 is used to receive target information and distribution information sent by the edge node or the edge gateway in the first n-1 distribution order;

[0238] The second distribution module 1302 is used to distribute the target information to the (n+1)th distribution sequence edge gateway based on the distribution information; n is a positive integer greater than or equal to 1.

[0239] Specifically, the second receiving module 1302 is further configured to:

[0240] When n is 1, the target information and distribution information sent by the edge node are received;

[0241] When n is greater than 1, the target information and distribution information sent by the edge node or the edge gateway in the first n-1 distribution order are received.

[0242] To implement the method of the embodiments of the present invention, the embodiments of the present invention provide another data transmission device, specifically, as follows: Figure 14 As shown, Figure 14 This is a schematic diagram of another data transmission device provided in an embodiment of the present invention; the device 140 includes a processor 1401 and a memory 1402 for storing computer programs that can run on the processor;

[0243] When the processor 1401 runs the computer program, it performs the following: acquiring status information of at least one edge gateway; generating distribution information based on the status information; wherein the distribution information includes: distribution parameters of target information among multiple edge gateways; sending the distribution information and the target information to edge nodes; the distribution information is used by the edge nodes to determine the edge gateways receiving the target information in a first distribution order, and / or by the edge gateways in the first n distribution orders to determine the edge gateways receiving the target information in the (n+1)th distribution order; where n is a positive integer greater than or equal to 1.

[0244] In one embodiment, the processor 1401 is further configured to, when running the computer program, execute: the status information includes at least: network connectivity status information and network bandwidth information; the step of generating distribution information based on the status information includes: determining any two connected edge gateways based on the network connectivity status information; determining the distribution order based on the network bandwidth information; wherein the distribution order is used to indicate the edge gateway in the first distribution order among the edge gateways connected to the edge node, and / or to indicate the edge gateway in the (n+1)th distribution order among the edge gateways connected to the first n distribution order edge gateways.

[0245] In one embodiment, the processor 1401 is further configured to, when running the computer program, execute: based on the network bandwidth information, designate the edge gateway connected to the edge node that meets the network bandwidth information and satisfies the preset conditions as the edge gateway in the first distribution order; and / or, based on the network bandwidth information, designate the edge gateway connected to the first n distribution order that meets the network bandwidth information and satisfies the preset conditions as the edge gateway in the (n+1)th distribution order.

[0246] In one embodiment, the processor 1401 is further configured to, when running the computer program, perform the following: receiving the distribution information and target information sent by the distribution server; the distribution information includes: distribution parameters of the target information in multiple edge gateways; and, based on the distribution information, distributing the target information and the distribution information to edge gateways in a first distribution order.

[0247] In one embodiment, the processor 1401 is further configured to, when running the computer program, perform the following: based on the distribution information, distribute the target information and the distribution information to the edge gateway connected to the edge node in the (n+1)th distribution sequence.

[0248] In one embodiment, the processor 1401 is further configured to, when running the computer program, execute: the edge gateway is an edge gateway with an nth distribution order; receive target information and distribution information sent by the edge node or an edge gateway with a distribution order of n-1; and distribute the target information to an edge gateway with a distribution order of n+1 based on the distribution information; where n is a positive integer greater than or equal to 1.

[0249] In one embodiment, the processor 1401 is further configured to, when running the computer program, perform the following: when n is 1, receive the target information and the distribution information sent by the edge node; when n is greater than 1, receive the target information and distribution information sent by the edge node or the edge gateway in the first n-1 distribution order.

[0250] It should be noted that the data transmission device and data transmission method provided in the above embodiments belong to the same concept, and their specific implementation process can be found in the method embodiments, which will not be repeated here.

[0251] Of course, in practical applications, such as Figure 14 As shown, the device 140 may further include at least one network interface 1403. The various components in the data transmission device 140 are coupled together via a bus system 1404. It is understood that the bus system 1404 is used to implement communication between these components. In addition to a data bus, the bus system 1404 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in... Figure 14 All buses are labeled as bus system 1404. The number of processors 1401 can be at least one. Network interface 1403 is used for wired or wireless communication between data transmission device 140 and other devices.

[0252] The memory 1402 in this embodiment of the invention is used to store various types of data to support the operation of the data transmission device 140.

[0253] The methods disclosed in the above embodiments of the present invention can be applied to processor 1401, or implemented by processor 1401. Processor 1401 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in processor 1401 or by instructions in the form of software. The processor 1401 may be a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Processor 1401 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of the present invention can be directly manifested as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium, which is located in memory 1402. Processor 1401 reads the information in memory 1402 and completes the steps of the aforementioned method in conjunction with its hardware.

[0254] In an exemplary embodiment, the data transmission device 140 may be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to perform the aforementioned method.

[0255] In an exemplary embodiment, the present invention also provides a computer-readable storage medium, such as a memory 1402 including a computer program, which can be executed by a processor 1401 of a data transmission device 140 to complete the steps described in the aforementioned method.

[0256] Specifically, embodiments of the present invention also provide a computer-readable storage medium storing a computer program thereon. When the computer program is executed by a processor, it performs the following: acquiring status information of at least one edge gateway; generating distribution information based on the status information; wherein the distribution information includes: distribution parameters of target information among multiple edge gateways; sending the distribution information and the target information to an edge node; the distribution information is used by the edge node to determine the edge gateway receiving the target information in a first distribution order, and / or by the edge gateways in the first n distribution orders to determine the edge gateway receiving the target information in the (n+1)th distribution order; where n is a positive integer greater than or equal to 1.

[0257] In one embodiment, when the computer program is run by the processor, it executes the following: the status information includes at least: network connectivity status information and network bandwidth information; the step of generating distribution information based on the status information includes: determining any two connected edge gateways based on the network connectivity status information; determining the distribution order based on the network bandwidth information; wherein the distribution order is used to indicate the edge gateway in the first distribution order among the edge gateways connected to the edge node, and / or to indicate the edge gateway in the (n+1)th distribution order among the edge gateways connected to the first n distribution order edge gateways.

[0258] In one embodiment, when the computer program is run by the processor, it executes: based on the network bandwidth information, selecting the edge gateway connected to the edge node that meets the network bandwidth information and satisfies the preset conditions as the edge gateway in the first distribution order; and / or, based on the network bandwidth information, selecting the edge gateway connected to the first n distribution order that meets the network bandwidth information and satisfies the preset conditions as the edge gateway in the (n+1)th distribution order.

[0259] In one embodiment, when the computer program is run by the processor, it performs the following actions: receiving distribution information and target information sent by a distribution server; the distribution information includes: distribution parameters of the target information in multiple edge gateways; and based on the distribution information, distributing the target information and the distribution information to edge gateways in a first distribution order.

[0260] In one embodiment, when the computer program is run by the processor, it performs the following: based on the distribution information, it distributes the target information and the distribution information to the edge gateway connected to the edge node in the (n+1)th distribution sequence.

[0261] In one embodiment, when the computer program is run by the processor, it executes the following: the edge gateway is an edge gateway with an nth distribution order; it receives target information and distribution information sent by the edge node or an edge gateway with a distribution order of n-1; based on the distribution information, it distributes the target information to an edge gateway with a distribution order of n+1; where n is a positive integer greater than or equal to 1.

[0262] In one embodiment, when the computer program is run by the processor, it performs the following: when n is 1, receiving the target information and the distribution information sent by the edge node; when n is greater than 1, receiving the target information and distribution information sent by the edge node or the edge gateway in the first n-1 distribution order.

[0263] It should be noted that the computer-readable storage medium provided in the embodiments of the present invention may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM; or it may be a device including one or any combination of the above-mentioned memories.

[0264] The above description is merely an embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and scope of the present invention are included within the scope of protection of the present invention.

Claims

1. A data transmission method, characterized by, Applied to a distribution server, the method comprises: Obtaining state information of at least one edge gateway, the state information at least comprising: network connectivity state information and network bandwidth information; Generating distribution information according to the state information; wherein the distribution information comprises: distribution parameters of the target information in multiple edge gateways, the distribution parameters indicating the distribution order of the target information in multiple edge gateways; Sending the distribution information and the target information to an edge node; the distribution information is used for the edge node to determine an edge gateway of a first distribution order receiving the target information, and / or is used for an edge gateway of a front n distribution order to determine an edge gateway of an n+1 distribution order receiving the target information; n is a positive integer greater than or equal to 1; wherein the generating distribution information according to the state information comprises: Based on the network connectivity state information, determining any two edge gateways connected; according to the network bandwidth information, determining the distribution order; wherein the distribution order is used to indicate an edge gateway connected with the edge node as the first distribution order, and / or is used to indicate an edge gateway connected with the edge gateway of the front n distribution order as the edge gateway of the n+1 distribution order.

2. The data transmission method of claim 1, wherein, The determining the distribution order according to the network bandwidth information comprises: Based on the network bandwidth information, the edge gateway connected with the edge node corresponding to the network bandwidth information satisfying a preset condition is determined as the edge gateway of the first distribution order; And / or, Based on the network bandwidth information, the edge gateway connected with the edge gateway of the front n distribution order corresponding to the network bandwidth information satisfying a preset condition is determined as the edge gateway of the n+1 distribution order.

3. A data transmission method, characterized by, Applied to an edge node, the method comprises: Receiving the distribution information and the target information sent by the distribution server; the distribution information comprises: distribution parameters of the target information in multiple edge gateways, the distribution parameters indicating the distribution order of the target information in multiple edge gateways, the distribution information being determined based on state information of at least one edge gateway, the state information at least comprising: network connectivity state information and network bandwidth information; Based on the distribution information, distributing the target information and the distribution information to the edge gateway of the first distribution order.

4. The data transmission method of claim 3, wherein, The method further comprises: Based on the distribution information, distributing the target information and the distribution information to the edge gateway connected with the edge node in the n+1 distribution order.

5. A data transmission method, characterized by, Applied to an edge gateway, the method comprises: the edge gateway is an edge gateway of the n distribution order; Receiving the target information and the distribution information sent by the edge node or the edge gateway of the front n-1 distribution order, the distribution information comprising: distribution parameters of the target information in multiple edge gateways, the distribution parameters indicating the distribution order of the target information in multiple edge gateways; Based on the distribution information, distributing the target information to the edge gateway of the n+1 distribution order; n is a positive integer greater than or equal to 1.

6. The data transmission method of claim 5, wherein, The receiving the target information and the distribution information sent by the edge node or the n-1 level comprises: When n is 1, receiving the target information and the distribution information sent by the edge node; When n is greater than 1, receiving the target information and the distribution information sent by the edge node or the edge gateway of the previous n-1 distribution orders.

7. A data transmission apparatus, characterized by comprising: The application is applied to a distribution server, and the device comprises an acquisition module, a generation module and a sending module. The acquisition module is used for acquiring state information of at least one edge gateway, and the state information at least comprises network connectivity state information and network bandwidth information. The generation module is used for generating distribution information according to the state information; wherein the distribution information comprises distribution parameters of the target information in multiple edge gateways, and the distribution parameters indicate distribution orders of the target information in multiple edge gateways. The sending module is used for sending the distribution information and the target information to an edge node; the distribution information is used for the edge node to determine an edge gateway of a first distribution order receiving the target information, and / or is used for an edge gateway of a previous n distribution order to determine an edge gateway of an n+1 distribution order receiving the target information; n is a positive integer greater than or equal to 1; wherein The generation module is used for determining any two edge gateways being connected based on the network connectivity state information, and determining the distribution order based on the network bandwidth information; wherein the distribution order is used for indicating an edge gateway being connected with the edge node as the edge gateway of the first distribution order, and / or is used for indicating an edge gateway being connected with the edge gateway of the previous n distribution order as the edge gateway of the n+1 distribution order.

8. A data transmission apparatus, characterized by comprising: The application is applied to an edge node, and the device comprises a first receiving module and a first distribution module. The first receiving module is used for receiving the distribution information and the target information sent by a distribution server; the distribution information comprises distribution parameters of the target information in multiple edge gateways, the distribution parameters indicate distribution orders of the target information in multiple edge gateways, and the distribution information is determined based on state information of at least one edge gateway, and the state information at least comprises network connectivity state information and network bandwidth information. The first distribution module is used for distributing the target information and the distribution information to an edge gateway of a first distribution order based on the distribution information.

9. A data transmission apparatus, characterized by comprising: The application is applied to an edge gateway, and the device comprises a second receiving module and a second distribution module; the edge gateway is an edge gateway of an n distribution order. The second receiving module is used for receiving the target information and the distribution information sent by the edge node or the edge gateway of the previous n-1 distribution orders, and the distribution information comprises distribution parameters of the target information in multiple edge gateways, and the distribution parameters indicate distribution orders of the target information in multiple edge gateways. The second distribution module is used for distributing the target information to an edge gateway of an n+1 distribution order based on the distribution information; n is a positive integer greater than or equal to 1.

10. A data transmission apparatus, characterized by comprising: The apparatus includes a processor and a memory for storing a computer program capable of running on the processor; wherein the processor is configured to run the computer program to perform the steps of the method of any one of claims 1-2 or 3-4 or 5-6.

11. A computer storage medium, characterized in that The computer storage medium stores a computer program, and the computer program is executed by the processor to implement the steps of the method of any one of claims 1-2 or 3-4 or 5-6.

Citation Information

Patent Citations

  • Event distribution method, event distribution device, storage medium and electronic equipment

    CN115904636A

  • Route distribution method and device, electronic equipment and storage medium

    CN116996583A