Communication control method and device, electronic equipment and storage medium
By receiving communication information between edge computing nodes and IoT devices, calculating synchronous and asynchronous communication overhead, and dynamically adjusting the communication method, the problem of high overhead for edge computing nodes when data volume changes is solved, the optimal choice of communication method is realized, and the overhead of edge computing nodes is saved.
Patent Information
- Application Number
- CN202510179838.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-18
- Publication Date
- 2025-06-24
AI Technical Summary
In the process of industrial digitalization, the communication mode between edge computing nodes and Internet of Things devices is fixed, resulting in the overhead of edge computing nodes when the data volume changes and cannot be effectively saved.
By receiving communication information sent by edge computing nodes, including data volume and data cycles, the overhead of synchronous communication methods and asynchronous communication methods, and determining the target communication methods based on the overhead, the edge computing nodes are controlled to communicate with the Internet of Things devices according to the target communication methods.
By dynamically adjusting the communication method, the overhead of edge computing nodes can be minimized under different data volumes and improve communication efficiency.
Smart Images

Figure CN120201034A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technologies, and in particular, to a communication control method, apparatus, electronic device, and storage medium. Background Art
[0002] In the process of industrial digitization, edge computing nodes can communicate with Internet of Things (IoT) devices to collect and process data of the IoT devices. For any IoT device, an edge computing node can communicate with the IoT device through a synchronous communication method or an asynchronous communication method, and according to the amount of data obtained, the overheads of the two communication methods for the edge computing node are different.
[0003] In the related art, for any IoT device, after determining the communication method between the IoT device and the edge computing node, the edge computing node communicates with the IoT device according to a fixed communication method to obtain data of the IoT device. However, when obtaining data of the IoT device by the above method, the overhead of the edge computing node may be relatively large. Summary of the Invention
[0004] This application provides a communication control method, apparatus, electronic device, and storage medium to save the overhead of edge computing nodes.
[0005] In a first aspect, this application provides a communication control method, which includes:
[0006] Receiving communication information sent by an edge computing node, where the communication information includes: a first data volume that the edge computing node receives data from an IoT device in a current period, and a data period during which the IoT device sends data to the edge computing node;
[0007] Determining a first communication overhead for the edge computing node to communicate with the IoT device through a synchronous communication method and a second communication overhead for the edge computing node to communicate with the IoT device through an asynchronous communication method according to the communication information;
[0008] Determining a target communication method between the edge computing node and the IoT device between the synchronous communication method and the asynchronous communication method according to the first communication overhead and the second communication overhead, and controlling the edge computing node to communicate with the IoT device according to the target communication method.
[0009] In a possible implementation manner, determining a first communication overhead for the edge computing node to communicate with the IoT device through a synchronous communication method and a second communication overhead for the edge computing node to communicate with the IoT device through an asynchronous communication method according to the communication information includes:
[0010] Determine the unit data transmission volume of the edge computing node and the Internet of Things device per unit time according to the first data volume and the data cycle;
[0011] Determine the synchronization overhead parameter corresponding to the synchronous communication method and the asynchronous overhead parameter corresponding to the asynchronous communication method;
[0012] Determine the first communication overhead according to the unit data transmission volume and the synchronization overhead parameter;
[0013] Determine the second communication overhead according to the unit data transmission volume and the asynchronous overhead parameter.
[0014] In a possible implementation manner, the synchronization overhead parameter includes the synchronization unit overhead corresponding to the unit data volume; determining the first communication overhead according to the unit data transmission volume and the synchronization overhead parameter includes:
[0015] Determine the product of the unit data transmission volume and the synchronization unit overhead as the first communication overhead.
[0016] In a possible implementation manner, the asynchronous overhead parameter includes the asynchronous service overhead and the asynchronous unit overhead corresponding to the unit data volume;
[0017] Determine the second communication overhead according to the unit data transmission volume and the asynchronous overhead parameter, including:
[0018] Determine the product of the unit data transmission volume and the asynchronous unit overhead as the communication data overhead;
[0019] Determine the sum of the asynchronous service overhead and the communication data overhead as the asynchronous unit overhead.
[0020] In a possible implementation manner, before determining the first communication overhead for the edge computing node to communicate with the Internet of Things device through the synchronous communication method and the second communication overhead for the edge computing node to communicate with the Internet of Things device through the asynchronous communication method according to the communication information, it further includes:
[0021] Obtain the second data volume of the edge computing node receiving data from the Internet of Things device in the previous cycle;
[0022] Determine that the first data volume is different from the second data volume.
[0023] In a possible implementation manner, according to the first communication overhead and the second communication overhead, determine the target communication method between the edge computing node and the Internet of Things device in the synchronous communication method and the asynchronous communication method, including:
[0024] If the first communication overhead is less than or equal to the second communication overhead, determine that the target communication method is the synchronous communication method;
[0025] If the first communication overhead is greater than the second communication overhead, determine that the target communication mode is the asynchronous communication mode.
[0026] In a possible implementation manner, controlling the edge computing node to communicate with the Internet of Things device according to the target communication mode includes:
[0027] Obtain the historical communication mode of the edge computing node communicating with the Internet of Things device in the previous cycle;
[0028] If the target communication mode is different from the historical communication mode, determine the communication protocol corresponding to the target communication mode and the port information corresponding to the communication protocol;
[0029] Generate configuration information according to the communication protocol and the port information;
[0030] Send the configuration information to the edge computing node to instruct the edge computing node to update the communication mode with the Internet of Things device to the target communication mode.
[0031] In a second aspect, the present application provides a communication control device applied to a server. The device includes:
[0032] A receiving module, configured to receive communication information sent by the edge computing node. The communication information includes: the first data volume of the edge computing node receiving data from the Internet of Things device in the current cycle, and the data period for the Internet of Things device to send data to the edge computing node;
[0033] A determining module, configured to determine, according to the communication information, the first communication overhead of the edge computing node communicating with the Internet of Things device through the synchronous communication mode and the second communication overhead of the edge computing node communicating with the Internet of Things device through the asynchronous communication mode;
[0034] A processing module, configured to determine, according to the first communication overhead and the second communication overhead, the target communication mode between the edge computing node and the Internet of Things device in the synchronous communication mode and the asynchronous communication mode, and control the edge computing node to communicate with the Internet of Things device according to the target communication mode.
[0035] In a possible implementation manner, the determining module is specifically configured to:
[0036] Determine the unit data transmission volume per unit time of the edge computing node and the Internet of Things device according to the first data volume and the data period;
[0037] Determine the synchronous overhead parameter corresponding to the synchronous communication mode and the asynchronous overhead parameter corresponding to the asynchronous communication mode;
[0038] Determine the first communication overhead according to the unit data transmission volume and the synchronous overhead parameter;
[0039] Determine the second communication overhead according to the unit data transmission volume and the asynchronous overhead parameter.
[0040] In a possible implementation manner, the synchronization overhead parameter includes the synchronization unit overhead corresponding to the unit data volume; specifically, the determination module is configured to:
[0041] Determine the product of the unit data transmission volume and the synchronization unit overhead as the first communication overhead.
[0042] In a possible implementation manner, the asynchronous overhead parameter includes the asynchronous service overhead and the asynchronous unit overhead corresponding to the unit data volume;
[0043] Specifically, the determination module is configured to:
[0044] Determine the product of the unit data transmission volume and the asynchronous unit overhead as the communication data overhead;
[0045] Determine the sum of the asynchronous service overhead and the communication data overhead as the asynchronous unit overhead.
[0046] In a possible implementation manner, the communication control device further includes an acquisition module, and the acquisition module is configured to:
[0047] Acquire the second data volume of the edge computing node receiving data from the Internet of Things device in the previous cycle;
[0048] Determine that the first data volume is different from the second data volume.
[0049] In a possible implementation manner, specifically, the processing module is configured to:
[0050] If the first communication overhead is less than or equal to the second communication overhead, determine that the target communication mode is the synchronous communication mode;
[0051] If the first communication overhead is greater than the second communication overhead, determine that the target communication mode is the asynchronous communication mode.
[0052] In a possible implementation manner, specifically, the processing module is configured to:
[0053] Acquire the historical communication mode of the edge computing node communicating with the Internet of Things device in the previous cycle;
[0054] If the target communication mode is different from the historical communication mode, determine the communication protocol corresponding to the target communication mode and the port information corresponding to the communication protocol;
[0055] Generate configuration information according to the communication protocol and the port information;
[0056] Send the configuration information to the edge computing node to instruct the edge computing node to update the communication mode with the Internet of Things device to the target communication mode.
[0057] In a third aspect, the present application provides an electronic device, including: a memory and a processor;
[0058] The memory stores computer-executable instructions;
[0059] The processor executes the computer-executable instructions stored in the memory to implement the communication control method involved in the first aspect and any possible implementation manner.
[0060] In a fourth aspect, the present application provides a computer-readable storage medium storing computer-executable instructions, which are used to implement the communication control method involved in the first aspect and any possible implementation manner when executed by a processor.
[0061] In a fifth aspect, the present application provides a computer program product including a computer program, which implements the communication control method involved in the first aspect and any possible implementation manner when executed by a processor.
[0062] For the communication control method, device, electronic device, and storage medium provided in the embodiments of the present application, the server determines a first communication overhead and a second communication overhead according to communication information, where the first communication overhead refers to the overhead when an edge computing node communicates with an Internet of Things device through a synchronous communication method, and the second communication overhead refers to the overhead when the edge computing node communicates with the Internet of Things device through an asynchronous communication method. Finally, according to the first communication overhead and the second communication overhead, the communication method with the smallest overhead is determined as the target communication method, and then the edge computing node is controlled to communicate with the Internet of Things device according to the target communication method. Through the above method, according to the communication information, the first communication overhead and the second communication overhead are determined, and according to the first communication overhead and the second communication overhead, the communication method with the smallest overhead is determined as the target communication method, so that the edge computing node communicates with the Internet of Things device through the target communication method, thereby saving the overhead of the edge computing node. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.
[0064] Figure 1 It is a schematic diagram of an application scenario provided by an embodiment of the present application;
[0065] Figure 2 It is a schematic flowchart of a communication control method provided by an embodiment of the present application;
[0066] Figure 3 It is a schematic flowchart of a method for determining a target communication method provided by an embodiment of the present application;
[0067] Figure 4 A flowchart for controlling an edge computing node to communicate with an Internet of Things device according to a target communication method provided by an embodiment of the present application;
[0068] Figure 5 A schematic structural diagram of a communication control device provided by an embodiment of the present application;
[0069] Figure 6 A schematic structural diagram of an electronic device provided by an embodiment of the present application.
[0070] Through the above-mentioned drawings, specific embodiments of the present application have been shown, and more detailed descriptions will be given later. These drawings and text descriptions are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. Specific Embodiments
[0071] Here, exemplary embodiments will be described in detail, and their examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0072] In the technical solution of the present application, the processing of information such as financial data or user data, including collection, storage, use, processing, transmission, provision, and disclosure, complies with the provisions of relevant laws and regulations and does not violate public order and good customs.
[0073] It should be noted that in the embodiments of the present application, some industry-existing solutions such as certain software, components, models, etc. may be mentioned. They should be considered exemplary, and their purpose is only to illustrate the feasibility in the implementation of the technical solution of the present application, but it does not mean that the applicant has already or necessarily used this solution.
[0074] For ease of understanding, the following combines Figure 1 , and briefly describes the application scenarios applicable to the embodiments of the present application.
[0075] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present application. Please refer to Figure 1 , which includes a server 11, an edge computing node 12, an Internet of Things device 13, and an Internet of Things device 14.
[0076] In the actual application process, the server 11 can communicate with the edge computing node 12. For example, the server 11 sends configuration information to the edge computing node 12, and the edge computing node 12 sends communication information to the server 11. The edge computing node 12 can communicate with the Internet of Things device 13 and the Internet of Things device 14 respectively. Taking the communication between the edge computing node 12 and the Internet of Things device 13 as an example, the communication method between the edge computing node 12 and the Internet of Things device 13 can be a synchronous communication method or an asynchronous communication method.
[0077] It should be noted that Figure 1 it is only an example to illustrate an application scenario, and it is not a limitation on the application scenario.
[0078] In the related art, the edge computing node can communicate with at least one Internet of Things device. For any Internet of Things device, the communication method between the Internet of Things device and the edge computing node is determined in advance, so that the edge computing node communicates with the Internet of Things device through this communication method to obtain the data of the Internet of Things device. However, when the edge computing node obtains the data of the Internet of Things device, the amount of data obtained is variable, and in the case of different amounts of data, the respective overheads of the synchronous communication method and the asynchronous communication method on the edge computing node are different. Therefore, when obtaining the data of the Internet of Things device by the above method, if the edge computing node uses one communication method to communicate with the Internet of Things device, the overhead of the edge computing node is relatively large.
[0079] Based on this, the communication control method provided by the embodiments of the present application determines the overheads of the edge computing node when communicating with the Internet of Things device in two communication methods respectively according to the amount of data and the data period received by the edge computing node from the Internet of Things device, and determines the communication method with the smallest overhead as the target communication method, and then enables the edge computing node to communicate with the Internet of Things device through the target communication method, thereby saving the overhead of the edge computing node.
[0080] The technical solution of the present application and how the technical solution of the present application solves the above technical problems will be described in detail below with specific embodiments. These specific embodiments below can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below with reference to the accompanying drawings.
[0081] Figure 2 It is a schematic flowchart of a communication control method provided by an embodiment of the present application. Please refer to Figure 2 and the method may include the following steps:
[0082] S21. Receive the communication information sent by the edge computing node. The communication information includes: the first data volume that the edge computing node receives data from the Internet of Things device in the current period, and the data period during which the Internet of Things device sends data to the edge computing node.
[0083] The execution subject of the embodiments of this application can be a server or a communication control device set in the server. The communication control device can be implemented by software or by the combination of software and hardware.
[0084] The Internet of Things device refers to the device deployed in the industrial field. These devices can collect some production data and other information in the industrial field, and the Internet of Things device is capable of data exchange and communication with the edge computing node. Exemplarily, after collecting the production data in the industrial field, the Internet of Things device sends the production data to the edge computing node. The Internet of Things device can be, for example, devices such as sensors and actuators.
[0085] A communication program for data acquisition is deployed in the edge computing node, which can establish a communication connection with the Internet of Things device through wireless or wired means and use the communication program to acquire the data of the Internet of Things device.
[0086] The unit of the first data volume can be bit, Byte, etc., which is used to represent the data volume size that the edge computing node receives data from the Internet of Things device in the current data period. The unit of the data period can be second, millisecond, microsecond, etc., which is used to represent the time interval during which the Internet of Things device sends data to the edge computing node.
[0087] S22. According to the communication information, determine the first communication overhead for the edge computing node to communicate with the Internet of Things device through the synchronous communication method and the second communication overhead for the edge computing node to communicate with the Internet of Things device through the asynchronous communication method.
[0088] The edge computing node can communicate with the Internet of Things device through the synchronous communication method or the asynchronous communication method. In some embodiments, the way for the edge computing node to communicate with the Internet of Things device through the synchronous communication method is: the edge computing node sends a communication information acquisition request to the Internet of Things device, and the communication information acquisition request is used to request the Internet of Things device to send communication information. After receiving the communication information acquisition request sent by the edge computing node, the Internet of Things device sends the communication information to the edge computing node.
[0089] In some embodiments, the way for the edge computing node to communicate with the Internet of Things device through an asynchronous communication method is as follows: The edge computing node sends a subscription request to the Internet of Things device, and the subscription request is used to instruct the Internet of Things device to send communication information to the edge computing node at regular time intervals. After receiving the subscription request, the Internet of Things device sends communication information to the edge computing node at the time interval specified in the subscription request.
[0090] It should be noted that the overhead of the synchronous communication method and the asynchronous communication method for the edge computing node mainly depends on the amount of data obtained by the edge computing node, and in some embodiments, the overhead of the two communication methods for the edge computing node is different. The first communication overhead refers to the overhead when the edge computing node communicates with the Internet of Things device through the synchronous communication method, and the second communication overhead refers to the overhead when the edge computing node communicates with the Internet of Things device through the asynchronous communication method.
[0091] Exemplarily, assume that when the edge computing node communicates with the Internet of Things device through the synchronous communication method, the overhead of the edge computing node is A, then the first communication overhead is A; when the edge computing node communicates with the Internet of Things device through the asynchronous communication method, the overhead of the edge computing node is B, then the second communication overhead is B.
[0092] S23. According to the first communication overhead and the second communication overhead, determine the target communication method between the edge computing node and the Internet of Things device in the synchronous communication method and the asynchronous communication method, and control the edge computing node to communicate with the Internet of Things device according to the target communication method.
[0093] The target communication method refers to the communication method with the smallest overhead for the edge computing node when the edge computing node communicates with the Internet of Things device. Therefore, the communication method with the smallest overhead can be determined as the target communication method by comparing the magnitudes of the first communication overhead and the second communication overhead.
[0094] The communication control method provided by the embodiment of this application is as follows: After receiving the communication information sent by the edge computing node, the server determines the first communication overhead and the second communication overhead according to the communication information. Among them, the first communication overhead refers to the overhead when the edge computing node communicates with the Internet of Things device through synchronous communication, and the second communication overhead refers to the overhead when the edge computing node communicates with the Internet of Things device through asynchronous communication. Finally, according to the first communication overhead and the second communication overhead, the communication method with the smallest overhead is determined as the target communication method, and then the edge computing node is controlled to communicate with the Internet of Things device according to the target communication method. Through the above method, according to the communication information, the first communication overhead and the second communication overhead are determined, and according to the first communication overhead and the second communication overhead, the communication method with the smallest overhead is determined as the target communication method, so that the edge computing node communicates with the Internet of Things device through the target communication method, thereby saving the overhead of the edge computing node.
[0095] Based on the Figure 2 embodiment shown below, Figure 3 the process of determining the target communication method will be described in detail below.
[0096] Figure 3 The following is a schematic flowchart of a method for determining a target communication method provided by an embodiment of this application. Please refer to Figure 3 and the method may include the following steps:
[0097] S31. Determine the unit data transmission amount per unit time between the edge computing node and the Internet of Things device according to the first data amount and the data period.
[0098] The unit data transmission amount refers to the amount of data transmitted from the Internet of Things device to the edge computing node per unit time. The unit of the unit data transmission amount can be, for example, bit / s, Byte / s, bit / ms, etc. The method for determining the unit data transmission amount can be as follows: Convert the unit of the first data amount to the unit corresponding to the unit data transmission amount, convert the unit of the data period to the unit corresponding to the unit data transmission amount, and then divide the converted first data amount by the converted data period to obtain the unit data transmission amount.
[0099] Exemplarily, assume that the first data amount is 16 bit, the data period is 2000 ms, and the unit of the unit data transmission amount is Byte / s. After converting the unit of the first data amount to the unit corresponding to the unit data transmission amount, the converted first data amount is 2 Byte; after converting the unit of the data period to the unit corresponding to the unit data transmission amount, the converted data period is 2 s. Therefore, dividing the converted first data amount by the converted data period, the unit data transmission amount obtained is 1 Byte / s.
[0100] It should be noted that before the server determines the first communication overhead and the second communication overhead, it is necessary to obtain the second data volume of the edge computing node receiving data from the Internet of Things device in the previous cycle; it is determined that the first data volume is different from the first data volume.
[0101] The unit of the second data volume can be bits (bit), bytes (Byte), etc., which is used to represent the data volume size of the edge computing node receiving data from the Internet of Things device in the previous data cycle.
[0102] If the first data volume is the same as the second data volume, it means that the data volume size received by the edge computing node from the Internet of Things device in the current data cycle is the same as the data volume size received by the edge computing node from the Internet of Things device in the previous data cycle. At this time, the edge computing node can continue to use the current communication method to communicate with the Internet of Things device, and there is no need to re-determine the communication method between the edge computing node and the Internet of Things device.
[0103] If the first data volume is different from the second data volume, it means that the data volume size received by the edge computing node from the Internet of Things device in the current data cycle is different from the data volume size received by the edge computing node from the Internet of Things device in the previous data cycle. At this time, it is necessary to re-determine the communication method between the edge computing node and the Internet of Things device. Therefore, it is necessary to determine the first communication overhead and the second communication overhead respectively according to the first data volume and the data cycle.
[0104] In some embodiments, a cloud programmable platform is deployed in the server, and the cloud programmable platform includes a protocol library, a compilation service, a policy library, and a status table. Among them, the protocol library includes communication protocol source files of different communication methods; the policy library can dynamically determine the target communication method according to the unit data transmission volume of the edge computing node and the Internet of Things device per unit time; the compilation service can dynamically extract the protocol files required for the target communication method from the protocol library according to the target communication method determined in the policy library, and then use the compilation and connection module to generate an executable file that can be loaded and executed by the edge computing node, and finally send it to the edge computing node for operation; the status table is used to store the basic information of the edge computing node. Exemplarily, the basic information of the edge computing node can be, for example, the Internet Protocol Address (IP) address, model, hardware platform, connection relationship with at least one Internet of Things device, etc.
[0105] S32, determine the synchronization overhead parameter corresponding to the synchronous communication method and the asynchronous overhead parameter corresponding to the asynchronous communication method.
[0106] The synchronization overhead parameter refers to the relevant parameter for calculating the first communication overhead when the edge computing node communicates with the Internet of Things device through synchronous communication; the asynchronous overhead parameter refers to the relevant parameter for calculating the second communication overhead when the edge computing node communicates with the Internet of Things device through asynchronous communication.
[0107] S33. Determine the first communication overhead according to the unit data transmission volume and the synchronization overhead parameter.
[0108] In some embodiments, the synchronization overhead parameter includes the synchronization unit overhead corresponding to the unit data volume. The unit data volume can be, for example, the data volume of 1 bit, the data volume of 1 Byte, etc. The synchronization unit overhead corresponding to the unit data volume refers to the overhead for obtaining the unit data volume when the edge computing node communicates with the Internet of Things device through synchronous communication. Taking the data volume of 1 Byte as the unit data volume, the synchronization unit overhead refers to the overhead of the edge computing node when it communicates with the Internet of Things device through synchronous communication and obtains 1 Byte of data volume each time.
[0109] The method for determining the first communication overhead according to the unit data transmission volume and the synchronization overhead parameter can be as follows: Multiply the unit data transmission volume by the synchronization unit overhead to determine the first communication overhead.
[0110] Exemplarily, assume that the unit data transmission volume is 2 Byte / s and the synchronization unit overhead is 3, then the first communication overhead is 2 * 3 = 6.
[0111] S34. Determine the second communication overhead according to the unit data transmission volume and the asynchronous overhead parameter.
[0112] In some embodiments, the asynchronous overhead parameter includes the asynchronous service overhead and the asynchronous unit overhead corresponding to the unit data volume. The asynchronous service overhead refers to the overhead for the edge computing node to send a subscription request to the Internet of Things device when communicating with the Internet of Things device through asynchronous communication; the asynchronous unit overhead corresponding to the unit data volume refers to the overhead for processing the unit data volume after the edge computing node obtains the unit data volume each time when communicating with the Internet of Things device through asynchronous communication. Taking the data volume of 1 Byte as the unit data volume, the asynchronous unit overhead refers to the overhead of the edge computing node for processing 1 Byte of data volume each time after obtaining 1 Byte of data volume when communicating with the Internet of Things device through asynchronous communication.
[0113] The method for determining the second communication overhead according to the unit data transmission volume and the asynchronous overhead parameter can be as follows: Multiply the unit data transmission volume by the asynchronous unit overhead to determine the communication data overhead; Add the asynchronous service overhead and the communication data overhead to determine the asynchronous unit overhead.
[0114] Exemplarily, assume that the unit data transmission volume is 2 Byte / s, the asynchronous unit overhead is 3, and the asynchronous service overhead is 2. Then the communication data overhead is the product of the unit data transmission volume and the asynchronous unit overhead, that is, the communication data overhead is 2 * 3 = 6. Then add the communication data overhead and the asynchronous service overhead to get the asynchronous unit overhead as 2 + 6 = 8.
[0115] S35, determine whether the first communication overhead is less than or equal to the second communication overhead.
[0116] If so, execute S36;
[0117] If not, execute S37.
[0118] S36, determine that the target communication mode is the synchronous communication mode.
[0119] If the first communication overhead is less than or equal to the second communication overhead, it means that the overhead of the edge computing node using the synchronous communication mode to communicate with the IoT device is smaller at this time. Therefore, determine that the target communication mode is the synchronous communication mode.
[0120] Exemplarily, assume that the first communication overhead is 10 and the second communication overhead is 15. Then the first communication overhead is less than the second communication overhead. At this time, determine that the target communication mode is the synchronous communication mode.
[0121] S37, determine that the target communication mode is the asynchronous communication mode.
[0122] If the first communication overhead is greater than the second communication overhead, it means that the overhead of the edge computing node using the asynchronous communication mode to communicate with the IoT device is smaller at this time. Therefore, determine that the target communication mode is the asynchronous communication mode.
[0123] Exemplarily, assume that the first communication overhead is 12 and the second communication overhead is 8. Then the first communication overhead is greater than the second communication overhead. At this time, determine that the target communication mode is the asynchronous communication mode.
[0124] At Figure 3In the illustrated embodiment, the server first determines whether the first data volume is the same as the second data volume. In the case where the first data volume is different from the second data volume, the unit data transmission volume is determined according to the first data volume and the data cycle. Then, according to the unit data transmission volume and the synchronous overhead parameter, the first communication overhead is determined; according to the unit data transmission volume and the asynchronous overhead parameter, the second communication overhead is determined. Finally, the magnitudes of the first communication overhead and the second communication overhead are compared. If the first communication overhead is less than or equal to the second communication overhead, the target communication mode is determined to be the synchronous communication mode; if the first communication overhead is greater than the second communication overhead, the target communication mode is determined to be the asynchronous communication mode. In the above implementation, in the case where the data volume obtained by the edge computing node from the Internet of Things device changes, the unit data transmission volume of the edge computing node for obtaining data from the Internet of Things device per unit time is calculated. Then, according to the unit data transmission volume and the synchronous overhead parameter, the first communication overhead is determined, and according to the unit data transmission volume and the asynchronous overhead parameter, the second communication overhead is determined. Finally, the magnitudes of the first communication overhead and the second communication overhead are compared, and the communication mode with the minimum communication overhead is determined as the target communication mode, thereby saving the overhead of the edge computing node.
[0125] In the above embodiment, how to determine the target communication mode is introduced. Next, in combination with Figure 4 , the process of controlling the edge computing node to communicate with the Internet of Things device according to the target communication mode is further described through specific embodiments.
[0126] Figure 4 The figure is a flowchart of a method for controlling an edge computing node to communicate with an Internet of Things device according to a target communication mode provided by an embodiment of the present application. Please refer to Figure 4 , and the process may include the following steps:
[0127] S41, obtain the historical communication mode of the edge computing node communicating with the Internet of Things device in the previous cycle.
[0128] The historical communication mode refers to the communication mode when the edge computing node communicates with the Internet of Things device in the previous data cycle. Exemplarily, if the communication mode when the edge computing node communicates with the Internet of Things device in the previous data cycle is the synchronous communication mode, the historical communication mode is the synchronous communication mode; if the communication mode when the edge computing node communicates with the Internet of Things device in the previous data cycle is the asynchronous communication mode, the historical communication mode is the asynchronous communication mode.
[0129] S42, if the target communication mode is different from the historical communication mode, determine the communication protocol corresponding to the target communication mode and the port information corresponding to the communication protocol.
[0130] Determine whether the target communication method is the same as the historical communication method. If the target communication method is the same as the historical communication method, it means that when the edge computing node communicates with the Internet of Things device through the historical communication method, the overhead of the edge computing node is already the minimum overhead, and there is no need to change the communication method between the edge computing node and the Internet of Things device. If the target communication method is different from the historical communication method, it means that when the edge computing node communicates with the Internet of Things device through the historical communication method, the overhead of the edge computing node is relatively large. At this time, it is necessary to change the communication method between the edge computing node and the Internet of Things device to the target communication method. Therefore, it is necessary to determine the communication protocol corresponding to the target communication method and the port information corresponding to the communication protocol.
[0131] The communication protocol corresponding to the target communication method refers to the communication protocol required when the edge computing node communicates with the Internet of Things device through the target communication method. Exemplarily, assuming that the target communication method is a synchronous communication method, the communication protocol corresponding to the target communication method refers to the communication protocol required when the edge computing node communicates with the Internet of Things device through the synchronous communication method. Assuming that the target communication method is an asynchronous communication method, the communication protocol corresponding to the target communication method refers to the communication protocol required when the edge computing node communicates with the Internet of Things device through the asynchronous communication method.
[0132] The port information corresponding to the communication protocol refers to the port number used by the communication protocol. Exemplarily, assuming that the communication protocol is the Hypertext Transfer Protocol (HTTP) protocol, the port information corresponding to the communication protocol refers to the port number 80 used by the HTTP protocol.
[0133] In some embodiments, the policy library in the cloud programmable platform can be used to determine the communication protocol corresponding to the target communication method and the port information corresponding to the communication protocol, and then send the communication protocol and the port information corresponding to the communication protocol to the compilation service.
[0134] S43. Generate configuration information according to the communication protocol and the port information.
[0135] The configuration information is the configuration information corresponding to the target communication method, and the configuration information refers to an executable file that can be loaded and executed by the edge computing node. The format of the executable file can be formats such as Exe, bin, hex, etc.
[0136] In some embodiments, the configuration information can be generated by a compilation service in a cloud programmable platform. After receiving the communication protocol and port information sent by the policy library, the compilation service extracts the protocol file corresponding to the communication protocol from the protocol library according to the communication protocol, and according to the port information, calls the compiler corresponding to the model of the edge computing node, and uses the compiler to link and compile the protocol file, thereby generating the configuration information.
[0137] S44, sending the configuration information to the edge computing node to instruct the edge computing node to update the communication method with the IoT device to the target communication method.
[0138] In some embodiments, the compilation service obtains the IP address of the edge computing node from the status table, and then sends the configuration information to the edge computing node according to the IP address of the edge computing node.
[0139] After receiving the configuration information sent by the server, the edge computing node loads and executes the executable file indicated by the configuration information, thereby updating the communication method between the edge computing node and the IoT device to the target communication method.
[0140] In Figure 4 In the illustrated embodiment, it is determined whether the target communication method is the same as the historical communication method. When the target communication method is different from the historical communication method, the communication protocol corresponding to the target communication method and the port information corresponding to the communication protocol are determined, and then the configuration information of the target communication method is generated according to the communication protocol and the port information. Finally, the configuration information is sent to the edge computing node. After receiving the configuration information sent by the server, the edge computing node loads and executes the executable file indicated by the configuration information, thereby changing the communication method between the edge computing node and the IoT device to the target communication method, saving the overhead of the edge computing node.
[0141] Figure 5 The figure is a schematic structural diagram of a communication control device provided by an embodiment of the present application. As Figure 5 shown, the communication control device 50 includes a receiving module 51, a determining module 52, and a processing module 53, wherein,
[0142] The receiving module 51 is configured to receive communication information sent by the edge computing node, and the communication information includes: the first data volume of the edge computing node receiving data from the IoT device in the current period, and the data period for the IoT device to send data to the edge computing node;
[0143] The determining module 52 is configured to determine, according to the communication information, the first communication overhead of the edge computing node communicating with the IoT device through the synchronous communication method and the second communication overhead of the edge computing node communicating with the IoT device through the asynchronous communication method;
[0144] A processing module 53, configured to determine a target communication mode between an edge computing node and an Internet of Things device from a synchronous communication mode and an asynchronous communication mode according to a first communication overhead and a second communication overhead, and control the edge computing node to communicate with the Internet of Things device according to the target communication mode.
[0145] In a possible implementation manner, the determining module 52 is specifically configured to:
[0146] Determine the unit data transmission amount per unit time between the edge computing node and the Internet of Things device according to a first data volume and a data period;
[0147] Determine a synchronous overhead parameter corresponding to the synchronous communication mode and an asynchronous overhead parameter corresponding to the asynchronous communication mode;
[0148] Determine a first communication overhead according to the unit data transmission amount and the synchronous overhead parameter;
[0149] Determine a second communication overhead according to the unit data transmission amount and the asynchronous overhead parameter.
[0150] In a possible implementation manner, the synchronous overhead parameter includes a synchronous unit overhead corresponding to a unit data volume; the determining module 52 is specifically configured to:
[0151] Determine the product of the unit data transmission amount and the synchronous unit overhead as the first communication overhead.
[0152] In a possible implementation manner, the asynchronous overhead parameter includes an asynchronous service overhead and an asynchronous unit overhead corresponding to a unit data volume;
[0153] The determining module 52 is specifically configured to:
[0154] Determine the product of the unit data transmission amount and the asynchronous unit overhead as the communication data overhead;
[0155] Determine the sum of the asynchronous service overhead and the communication data overhead as the asynchronous unit overhead.
[0156] In a possible implementation manner, the communication control device further includes an obtaining module, and the obtaining module is configured to:
[0157] Obtain a second data volume of data received by the edge computing node from the Internet of Things device in the previous period;
[0158] Determine that the first data volume is different from the second data volume.
[0159] In a possible implementation manner, the processing module 53 is specifically configured to:
[0160] If the first communication overhead is less than or equal to the second communication overhead, determine that the target communication mode is the synchronous communication mode;
[0161] If the first communication overhead is greater than the second communication overhead, determine that the target communication mode is the asynchronous communication mode.
[0162] In a possible implementation manner, the processing module 53 is specifically configured to:
[0163] Obtain the historical communication mode of the edge computing node communicating with the Internet of Things device in the previous cycle;
[0164] If the target communication mode is different from the historical communication mode, determine the communication protocol corresponding to the target communication mode and the port information corresponding to the communication protocol;
[0165] Generate configuration information according to the communication protocol and the port information;
[0166] Send the configuration information to the edge computing node to instruct the edge computing node to update the communication mode with the Internet of Things device to the target communication mode.
[0167] The communication control device provided in the embodiments of the present application may execute the technical solutions of the communication control method in the above method embodiments, and the implementation principles and beneficial effects are similar, and will not be elaborated here.
[0168] Figure 6 It is a schematic structural diagram of an electronic device provided in an embodiment of the present application. The electronic device 60 includes: a memory 61 and a processor 62;
[0169] The memory 61 stores computer-executable instructions;
[0170] The processor 62 executes the computer-executable instructions stored in the memory 61 to perform the communication control method involved in the above method embodiments.
[0171] Optionally, the above processor may be a central processing unit (CPU), or may also be a GPU, other general-purpose processors, a digital signal processor (DSP), or an application specific integrated circuit (ASIC), etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present application may be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
[0172] The electronic device 60 provided by the embodiments of this application can execute the communication control method involved in the above method embodiments. The implementation principle and beneficial effects are similar and will not be elaborated here.
[0173] An embodiment of this application provides a computer-readable storage medium. The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to cause a computer to execute the communication control method involved in the above method embodiments.
[0174] An embodiment of this application provides a computer program product, including a computer program. When the computer program is executed by an electronic device, it implements the communication control method involved in the above method embodiments.
[0175] An embodiment of this application provides a chip. The chip includes at least one processor, and the processor is used to run program instructions to execute the communication control method in the above method embodiments.
[0176] An embodiment of this application provides a chip module. A computer program is stored on the chip module. When the computer program is executed by the chip module, it implements the communication control method in the above method embodiments.
[0177] All or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a readable memory. When the program is executed, it executes the steps including the above method embodiments; and the foregoing memory (storage medium) includes: read-only memory (abbreviation: ROM), RAM, flash memory, hard disk, solid state drive, magnetic tape, floppy disk, optical disc, and any combination thereof.
[0178] The embodiments of this application are described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of this application. It should be understood that each process and / or block in the flowchart and / or block diagram, and the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processing unit of a general-purpose computer, a special-purpose computer, an embedded processing machine, or other programmable terminal devices to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable terminal devices generate a device for implementing the functions specified in Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.
[0179] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable terminal device to work in a specific manner, such that the instructions stored in the computer-readable memory produce a manufactured article including an instruction device that implements the functions specified in one or more processes and / or blocks Figure 1 in one or more processes and / or blocks Figure 1 specified in the block or blocks.
[0180] These computer program instructions can also be loaded onto a computer or other programmable terminal device, such that a series of operational steps are performed on the computer or other programmable device to produce a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes and / or blocks Figure 1 in one or more processes and / or blocks Figure 1 specified in the block or blocks.
[0181] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these changes and modifications.
[0182] Those of ordinary skill in the art can understand that all or part of the steps for implementing the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps including the above method embodiments; and the foregoing storage medium includes: various media such as ROM, RAM, magnetic disk, or optical disc that can store program code.
[0183] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A communication control method, characterized in that: Applied to a server, the method comprises: Receive communication information sent by an edge computing node, the communication information including: a first data volume of data received by the edge computing node from an IoT device in a current cycle, and a data cycle in which the IoT device sends data to the edge computing node; Determine, according to the communication information, a first communication overhead for the edge computing node to communicate with the Internet of Things device in a synchronous communication manner, and a second communication overhead for the edge computing node to communicate with the Internet of Things device in an asynchronous communication manner; According to the first communication overhead and the second communication overhead, in the synchronous communication mode and the asynchronous communication mode, a target communication mode between the edge computing node and the Internet of Things device is determined, and the edge computing node is controlled to communicate with the Internet of Things device according to the target communication mode.
2. The method according to claim 1, characterized in that Determining, according to the communication information, a first communication overhead for the edge computing node to communicate with the Internet of Things device in a synchronous communication manner, and a second communication overhead for the edge computing node to communicate with the Internet of Things device in an asynchronous communication manner, including: Determine, according to the first data volume and the data cycle, a unit data transmission volume of the edge computing node and the Internet of Things device within a unit time; Determine a synchronous overhead parameter corresponding to the synchronous communication mode and an asynchronous overhead parameter corresponding to the asynchronous communication mode; Determining the first communication overhead according to the unit data transmission amount and the synchronization overhead parameter; The second communication overhead is determined according to the unit data transmission amount and the asynchronous overhead parameter.
3. The method according to claim 2, characterized in that The synchronization overhead parameter includes a synchronization unit overhead amount corresponding to a unit data amount; determining the first communication overhead according to the unit data transmission amount and the synchronization overhead parameter includes: The product of the unit data transmission amount and the synchronization unit overhead amount is determined as the first communication overhead.
4. The method according to claim 2, characterized in that: The asynchronous overhead parameters include asynchronous service overhead and asynchronous unit overhead amount corresponding to unit data volume; Determining the second communication overhead according to the unit data transmission amount and the asynchronous overhead parameter includes: Determine the product of the unit data transmission amount and the asynchronous unit overhead amount as the communication data overhead; The sum of the asynchronous service overhead and the communication data overhead is determined as the asynchronous unit overhead amount.
5. The method according to any one of claims 1 to 4, characterized in that: Before determining, according to the communication information, a first communication overhead for the edge computing node to communicate with the Internet of Things device in a synchronous communication manner and a second communication overhead for the edge computing node to communicate with the Internet of Things device in an asynchronous communication manner, the method further includes: Obtain a second amount of data received by the edge computing node from the Internet of Things device in a previous cycle; It is determined that the first data amount and the second data amount are different.
6. The method according to any one of claims 1 to 5, characterized in that: Determining a target communication mode between the edge computing node and the Internet of Things device in the synchronous communication mode and the asynchronous communication mode according to the first communication overhead and the second communication overhead includes: If the first communication overhead is less than or equal to the second communication overhead, determining that the target communication mode is the synchronous communication mode; If the first communication overhead is greater than the second communication overhead, the target communication mode is determined to be the asynchronous communication mode.
7. The method according to any one of claims 1 to 6, characterized in that: Controlling the edge computing node to communicate with the Internet of Things device according to the target communication mode includes: Obtaining a historical communication mode in which the edge computing node communicates with the IoT device in the previous cycle; If the target communication mode is different from the historical communication mode, determining a communication protocol corresponding to the target communication mode and port information corresponding to the communication protocol; Generate configuration information according to the communication protocol and the port information; The configuration information is sent to the edge computing node to instruct the edge computing node to update the communication mode with the Internet of Things device to the target communication mode.
8. A communication control device, characterized in that: Applied to a server, the device comprises: A receiving module, configured to receive communication information sent by an edge computing node, the communication information comprising: a first data volume of data received by the edge computing node from an IoT device in a current cycle, and a data cycle in which the IoT device sends data to the edge computing node; A determination module, configured to determine, according to the communication information, a first communication overhead for the edge computing node to communicate with the IoT device in a synchronous communication manner, and a second communication overhead for the edge computing node to communicate with the IoT device in an asynchronous communication manner; A processing module is used to determine a target communication mode between the edge computing node and the Internet of Things device in the synchronous communication mode and the asynchronous communication mode according to the first communication overhead and the second communication overhead, and control the edge computing node to communicate with the Internet of Things device according to the target communication mode.
9. An electronic device, characterized in that: include: Memory and processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the communication control method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the communication control method according to any one of claims 1 to 7.