Data interaction method and system for network communication equipment based on edge communication
By introducing a multi-level server structure into the edge communication network and dynamically deciding the data storage location, the problem of low communication security caused by insufficient server collaboration capabilities in the existing technology is solved, and higher data interaction security and risk dispersion are achieved.
Patent Information
- Application Number
- CN202410911978.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-09
AI Technical Summary
Existing network communication equipment based on edge communication lacks server collaboration capabilities, resulting in low communication security.
By introducing the main shared server, secondary shared server and edge server into the data sharing network, the data interaction between the main shared server and the edge server is limited, and a dynamic decision-making mechanism is used to select the optimal one based on factors such as the busyness of the edge server and transmission delay. Storage location to ensure data privacy and security.
It improves the security of data interaction and communication between servers, avoids potential security risks caused by high server load, disperses data storage risks, and reduces the exposure time of data during transmission.
Smart Images

Figure CN118488062B
Abstract
Description
Technical Field
[0001] The present invention relates to a method and system for realizing data interaction of network communication equipment based on edge communication, and belongs to the technical field of communication transmission. Background Art
[0002] With the rapid development of information technology, data interaction between network communication devices has become the norm. Edge computing communication is a network architecture and computing paradigm that uses the cooperation of multiple servers to transfer data to areas closer to the data source or user, thereby reducing latency, improving response speed, reducing bandwidth usage, and enhancing service reliability and security.
[0003] However, the existing edge communication-based data interaction of communication devices still has the problem of insufficient server collaboration. Generally, there are two types of servers in the edge network, namely edge servers and central servers, which complete the response to each network communication device through the collaboration of edge servers and central servers. However, since edge servers and central servers have data connectivity and can directly interact with data, the communication security between edge servers and central servers is greatly reduced. Therefore, how to improve the communication security between edge servers and central servers is a technical problem that needs to be solved urgently. Summary of the invention
[0004] The present invention provides a method, device and computer-readable storage medium for realizing data interaction of network communication equipment based on edge communication, the main purpose of which is to improve the communication security of data interaction between servers.
[0005] To achieve the above object, the present invention provides a method for realizing data interaction of network communication devices based on edge communication, comprising:
[0006] Receiving a data storage instruction initiated by a data generation device, and acquiring the data to be stored generated by the data generation device according to the data storage instruction, wherein the data generation device has a network communication function;
[0007] Start a data sharing network, wherein the data sharing network consists of a primary sharing server, a secondary sharing server and an edge server, and data interaction can be performed between the primary sharing server and the secondary sharing server, and data interaction can also be performed between the edge server and the secondary sharing server, but data interaction cannot be performed between the primary sharing server and the edge server, and the number of the primary sharing server and the secondary sharing server is at least 2;
[0008] Parse the data storage instruction to determine whether the data generation device is willing to share the data to be stored. If the data generation device is not willing to share the data to be stored, calculate the running busyness of the edge server. If the running busyness of the edge server is less than the busyness threshold, store the data to be stored directly to the edge server.
[0009] If the running busyness of the edge server is greater than or equal to the busyness threshold, the data to be stored is first stored in the auxiliary shared server, and after the running busyness of the edge server is less than the busyness threshold, the data to be stored is transferred from the auxiliary shared server to the edge server;
[0010] If the data generating device is willing to share the data to be stored, confirm other devices that can access the data to be stored, obtain the data access device, and calculate the transmission delay and transmission energy consumption between the data generating device and each main sharing server;
[0011] The optimal main shared server is selected based on the transmission delay and transmission energy consumption to obtain the main optimal server. After the data to be stored is stored in the main optimal server, an access notification instruction is generated and distributed to each data access device to complete the data interaction of network communication devices.
[0012] Optionally, calculating the operation busyness of the edge server includes:
[0013] Obtain the operating parameters of the edge server at the current time point, where the operating parameters include CPU usage, memory usage, disk read speed, network inflow, and network outflow;
[0014] The CPU usage, memory usage, disk read speed, network inflow, and network outflow are normalized to obtain the normalized CPU usage, memory usage, disk read speed, network inflow, and network outflow;
[0015] The running busyness of the edge server is calculated according to the running parameters, where the calculation formula is as follows:
[0016]
[0017] Among them, e j represents the operation busyness of the jth edge server, p ij represents the normalized value of the i-th operating parameter of the j-th edge server, and the i-th operating parameter includes the CPU usage, memory usage, disk read speed, network inflow and network outflow, n represents the total number of operating parameters included in the j-th edge server, w ij Represents the weight value of the i-th operating parameter.
[0018] Optionally, storing the data to be stored in the auxiliary shared server first includes:
[0019] Generate a running test instruction, send the running test instruction to each auxiliary shared server, and wait for receiving a running response instruction returned by the auxiliary shared server;
[0020] Determine the auxiliary shared server that has returned the run response instruction as a competing server;
[0021] Generate a competition query instruction for the data to be stored, and send the competition query instruction to each competition server, wherein the competition query instruction includes competition query parameters;
[0022] Obtaining a contention query value corresponding to the contention query parameter from each contention server;
[0023] The optimal secondary server is selected according to the competition query value, and the data to be stored is first stored in the optimal secondary server.
[0024] Optionally, the contention query parameter includes: a physical distance between the auxiliary shared server and the data generating device, and a channel gain between the auxiliary shared server and the data generating device at a current time point, and the acquiring a contention query value corresponding to the contention query parameter from each contention server includes:
[0025] The physical distance d is calculated based on the geographical location of the competing server and the data generating device. i,j , where d i,j represents the physical distance between the i-th competing server and the j-th data generating device;
[0026] Obtain the signal power of the j-th data generating device and the signal power of the i-th competing server respectively;
[0027] The channel gain is calculated according to the following formula:
[0028]
[0029] Among them, G i,j represents the channel gain between the i-th competing server and the j-th data generating device, P i represents the signal power of the i-th competing server, P j represents the signal power of the jth data generating device;
[0030] The physical distance d i,j and channel gain G i,j Determines the contention challenge value for the contention server.
[0031] Optionally, selecting the optimal secondary server according to the competition query value includes:
[0032] The contention quantification value of each competing server is calculated according to the following formula:
[0033]
[0034] Among them, R i represents the competition quantization value of the i-th competing server, α and β are the weights pre-set for calculating the competition quantization value, and e is a natural constant;
[0035] The competing server with the largest competition quantization value is selected as the optimal auxiliary server.
[0036] Optionally, the calculating the transmission delay and transmission energy consumption between the data generating device and each main shared server includes:
[0037] Calculate the operation busyness of each main shared server, and select the main shared server whose operation busyness is less than or equal to a preset operation busyness threshold, to obtain one or more main preferred servers;
[0038] Obtaining the receiving power required by the primary preferred server to receive each unit byte of data, and the channel gain between the data generating device and each primary preferred server;
[0039] Calculate the data transmission rate of the primary preferred server for which the unit byte data transmission is successful according to the received power and the channel gain between the data generating device and each primary preferred server;
[0040] The transmission delay and transmission energy consumption of each primary preferred server are calculated based on the data transmission rate.
[0041] Optionally, calculating the data transmission rate of the primary preferred server for successful unit byte data transmission according to the received power and the channel gain between the data generating device and each primary preferred server includes:
[0042] The data transmission rate is calculated according to the following formula:
[0043]
[0044] Among them, v i,j represents the channel gain between the i-th primary preferred server and the j-th data generation device, P i represents the receiving power required by the i-th primary preferred server to receive each unit byte of data, represents the channel gain between the jth data generation device and the ith primary preferred server, represents the noise power of the channel constructed between the j-th data generating device and the i-th primary preferred server, B represents the total bandwidth for the j-th data generating device to transmit data to the i-th primary preferred server, and lb represents the minimum weight value of the total bandwidth required for the j-th data generating device to transmit unit bytes of data to the i-th primary preferred server.
[0045] Optionally, the calculating of the transmission delay and transmission energy consumption of each primary preferred server according to the data transmission rate includes:
[0046] Confirm the amount of data to be stored, and calculate the transmission delay and transmission energy consumption according to the following formulas:
[0047]
[0048] T i =P i D j T i,j
[0049] Among them, T i,j represents the transmission delay of the jth data generation device transmitting the data to be stored to the ith primary preferred server, D j represents the amount of data to be stored by the jth data generating device, T i Represents the transmission energy consumption of the i-th primary preferred server receiving the data to be stored from the j-th data generating device.
[0050] Optionally, after storing the data to be stored in the main optimal server, the method further includes:
[0051] Receiving a data closing instruction initiated by a data generating device for the data to be stored;
[0052] Selecting an auxiliary shared server according to the data closing instruction to obtain an auxiliary closed server;
[0053] Transferring the data to be stored stored in the primary shared server to the secondary closed server;
[0054] When the data to be stored is successfully transferred, the data to be stored stored in the main shared server is deleted, and at the same time the data to be stored in the auxiliary closed server is transferred to the edge server, completing the data closure of the data to be stored.
[0055] To achieve the above object, the present invention also provides a data interaction system for network communication devices based on edge communication, comprising:
[0056] A data sharing network startup module, used to receive a data storage instruction initiated by a data generation device, obtain the data to be stored generated by the data generation device according to the data storage instruction, wherein the data generation device has a network communication function, and start the data sharing network, wherein the data sharing network is composed of a main sharing server, a secondary sharing server and an edge server, and data interaction can be performed between the main sharing server and the secondary sharing server, and data interaction can also be performed between the edge server and the secondary sharing server, but data interaction cannot be performed between the main sharing server and the edge server, and the number of the main sharing server and the secondary sharing server is at least 2;
[0057] The operation busyness judgment module is used to parse the data storage instruction to obtain whether the data generation device has the intention to share the data to be stored. If the data generation device does not have the intention to share the data to be stored, the operation busyness of the edge server is calculated. If the operation busyness of the edge server is less than the busyness threshold, the data to be stored is directly stored in the edge server:
[0058] The transmission energy consumption calculation module is used to store the data to be stored in the auxiliary shared server first if the running busyness of the edge server is greater than or equal to the busyness threshold, and wait until the running busyness of the edge server is less than the busyness threshold, and then transfer the data to be stored from the auxiliary shared server to the edge server; if the data generation device has the intention to share the data to be stored, confirm other devices that can access the data to be stored, obtain the data access device, and calculate the transmission delay and transmission energy consumption between the data generation device and each main shared server;
[0059] The access notification instruction distribution module is used to select the optimal main shared server according to the transmission delay and transmission energy consumption, obtain the main optimal server, store the data to be stored in the main optimal server, generate an access notification instruction, and distribute the access notification instruction to each data access device to complete the data interaction of network communication devices.
[0060] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:
[0061] at least one processor; and,
[0062] a memory communicatively connected to the at least one processor; wherein,
[0063] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to implement the above-mentioned method for data interaction of network communication devices based on edge communication.
[0064] In order to solve the above problems, the present invention also provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is executed by a processor in an electronic device to implement the above-mentioned method for data interaction of network communication devices based on edge communication.
[0065] Compared with the problem described in the background technology, the present invention receives a data storage instruction from a data generating device, obtains data to be stored according to the instruction, and starts a data sharing network, wherein the data sharing network is composed of a main sharing server, a secondary sharing server and an edge server, and data interaction can be performed between the main sharing server and the secondary sharing server, and data interaction can also be performed between the edge server and the secondary sharing server, but data interaction cannot be performed between the main sharing server and the edge server, and the number of the main sharing server and the secondary sharing server is at least 2. By establishing a data sharing network including the main sharing server, the secondary sharing server and the edge server, distributed storage and processing of data are realized, and more importantly, since there is no direct data interaction between the main sharing server and the edge server, the possibility of potential simultaneous direct attacks on the main sharing server and the edge server is reduced, thereby improving the security of the main sharing server and the edge server. Further, the data storage instruction is parsed to obtain whether the data generating device has the intention to share the data to be stored. If the data generating device does not have the intention to share the data to be stored, the operation busyness of the edge server is calculated. If the operation busyness of the edge server is less than the busyness threshold, the data to be stored is directly stored in the edge server. If the data generating device is unwilling to share the data, the data storage location is determined according to the operation status of the edge server, thereby ensuring the privacy of the data and preventing unauthorized data sharing. In addition, by monitoring the operation busyness of the edge server and setting the busyness threshold, data storage can be avoided when the server is highly loaded, reducing the possibility of potential security risks caused by server overload. Secondly, if the operation busyness of the edge server is greater than or equal to the busyness threshold, the data to be stored is first stored in the auxiliary shared server, and after waiting for the operation busyness of the edge server to be less than the busyness threshold, the data to be stored is transferred from the auxiliary shared server to the edge server. Since the present invention stores data in the edge server or the auxiliary shared server according to the operation status of the edge server, this dynamic decision-making process helps to disperse risks and avoid the risk of single point failure or single point attack. Finally, if the data generation device has the intention to share the data to be stored, confirm other devices that can access the data to be stored, obtain the data access device, calculate the transmission delay and transmission energy consumption between the data generation device and each main shared server, select the optimal main shared server according to the transmission delay and transmission energy consumption, obtain the main optimal server, store the data to be stored in the main optimal server, generate an access notification instruction, and distribute the access notification instruction to each data access device to complete the data interaction of the network communication device. By calculating the transmission delay and energy consumption with the main shared server, the optimal main shared server can be selected to reduce the exposure time of the data during the transmission process and reduce the risk of being intercepted. Therefore, the data interaction method and system for realizing network communication devices based on edge communication proposed in the present invention mainly aims to improve the communication security of data interaction between servers. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] Figure 1 A schematic diagram of a flow chart of a method for implementing data interaction of network communication devices based on edge communication provided by an embodiment of the present invention;
[0067] Figure 2 A functional module diagram of a data interaction system for network communication devices based on edge communication provided by an embodiment of the present invention;
[0068] Figure 3 A schematic diagram of the structure of an electronic device for implementing the data interaction method of network communication devices based on edge communication provided by an embodiment of the present invention.
[0069] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION
[0070] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0071] The embodiment of the present application provides a method for data interaction of network communication devices based on edge communication. The execution subject of the method for data interaction of network communication devices based on edge communication includes but is not limited to at least one of the electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiment of the present application. In other words, the method for data interaction of network communication devices based on edge communication can be executed by software or hardware installed on a terminal device or a server device. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc.
[0072] Embodiment 1:
[0073] Reference Figure 1 FIG. 1 is a flow chart of a method for implementing data interaction of network communication devices based on edge communication according to an embodiment of the present invention. In this embodiment, the method for implementing data interaction of network communication devices based on edge communication includes:
[0074] S1. Receive a data storage instruction initiated by a data generating device, and obtain the data to be stored generated by the data generating device according to the data storage instruction, wherein the data generating device has a network communication function.
[0075] It should be explained that the data generation device described in the embodiment of the present invention has the function of network communication, so that the function of storing the data to be stored in the data sharing network can be realized. For example, Xiao Zhang is a data security engineer of an online shopping platform. Now the online shopping platform has generated 100M shopping data, and it is necessary to store the 100M shopping data in the cloud. Therefore, Xiao Zhang initiated a data storage instruction, and the 100M shopping data is the data to be stored, and the data generation device is the online shopping platform.
[0076] S2. Start a data sharing network, wherein the data sharing network consists of a primary sharing server, a secondary sharing server and an edge server, and data interaction can be performed between the primary sharing server and the secondary sharing server, and data interaction can also be performed between the edge server and the secondary sharing server, but data interaction cannot be performed between the primary sharing server and the edge server, and the number of the primary sharing server and the secondary sharing server is at least 2.
[0077] In the embodiment of the present invention, the data sharing network has two main functions: the first function is to store the data to be stored generated by each data generating device, and the second function is to share the data to be stored. In order to improve the efficiency of storage and sharing, the embodiment of the present invention divides the servers in the data sharing network into primary sharing servers, secondary sharing servers and edge servers.
[0078] Importantly, data can be exchanged between the primary shared server and the secondary shared server, and between the edge server and the secondary shared server, but data cannot be exchanged between the primary shared server and the edge server. In other words, there is a communication barrier between the primary shared server and the edge server, and if data migration, storage, sharing, etc. between the primary shared server and the edge server is to be realized, it is necessary to rely on the secondary shared server.
[0079] S3. Parse the data storage instruction to determine whether the data generation device is willing to share the data to be stored. If the data generation device is not willing to share the data to be stored, calculate the operation busyness of the edge server.
[0080] For example, the online shopping platform where Xiao Zhang works generates 100M of shopping data. Xiao Zhang now feels that the 100M shopping data cannot be shared because it involves a large amount of customer privacy. Therefore, the 100M shopping data generated by the online shopping platform is not intended to be shared.
[0081] Importantly, when the data generating device has no intention to share the data to be stored, the embodiment of the present invention will directly store the data to be stored in the edge server, but before storing, it is necessary to calculate the operation busyness of the edge server.
[0082] In detail, the calculation of the operation busyness of the edge server includes:
[0083] Obtain the operating parameters of the edge server at the current time point, where the operating parameters include CPU usage, memory usage, disk read speed, network inflow, and network outflow;
[0084] The CPU usage, memory usage, disk read speed, network inflow, and network outflow are normalized to obtain the normalized CPU usage, memory usage, disk read speed, network inflow, and network outflow;
[0085] The running busyness of the edge server is calculated according to the running parameters, where the calculation formula is as follows:
[0086]
[0087] Among them, e j represents the operation busyness of the jth edge server, p ij represents the normalized value of the i-th operating parameter of the j-th edge server, and the i-th operating parameter includes the CPU usage, memory usage, disk read speed, network inflow and network outflow, n represents the total number of operating parameters included in the j-th edge server, w ij Represents the weight value of the i-th operating parameter.
[0088] For example, if the CPU usage is 27%, the memory usage is 46%, the disk read speed is 5M / s, the network inflow is 500MB / s, and the network outflow is 20MB / s, then these values are normalized to obtain values on the [0,1] scale, and then these values are further compared with the corresponding weight values w ij , the running busyness of the edge server is calculated according to the above formula.
[0089] It should be explained that since the main function of the edge server is to store the data to be stored generated by the storage device, the memory requirements for the edge server are higher. Therefore, the embodiment of the present invention generally adjusts the weight value of the memory usage to the maximum and the weight value of the CPU usage to the second largest.
[0090] S4. Determine the relationship between the running busyness of the edge server and a preset busyness threshold.
[0091] It is understandable that the greater the operating business of the edge server, the greater the operating pressure of the edge server at the current time point. Therefore, it is necessary to perform a judgment on the edge server to determine whether the data to be stored generated by the device needs to be directly stored in the edge server.
[0092] S5. If the running busyness of the edge server is less than the busyness threshold, the data to be stored is directly stored in the edge server.
[0093] It can be known that if the operation busyness of the edge server is less than the busyness threshold, it means that the operation pressure of the edge server at the current time point is relatively small, so the data to be stored can be directly stored in the edge server.
[0094] S6. If the running busyness of the edge server is greater than or equal to the busyness threshold, the data to be stored is first stored in the auxiliary shared server, and after the running busyness of the edge server is less than the busyness threshold, the data to be stored is transferred from the auxiliary shared server to the edge server.
[0095] It should be explained that the main function of the auxiliary shared server is to coordinate the main shared server and the edge server. Therefore, when the operating busyness of the edge server is greater than or equal to the busyness threshold, the embodiment of the present invention will first store the data to be stored in the auxiliary shared server. However, since there are multiple auxiliary shared servers in the data sharing network, and the operating capacity of each auxiliary shared server is far inferior to that of the main shared server and the edge server, it is necessary to select a suitable auxiliary shared server before storing the data to be stored.
[0096] In detail, the step of first storing the data to be stored in the auxiliary shared server includes:
[0097] Generate a running test instruction, send the running test instruction to each auxiliary shared server, and wait for receiving a running response instruction returned by the auxiliary shared server;
[0098] Determine the auxiliary shared server that has returned the run response instruction as a competing server;
[0099] Generate a competition query instruction for the data to be stored, and send the competition query instruction to each competition server, wherein the competition query instruction includes competition query parameters;
[0100] Obtaining a contention query value corresponding to the contention query parameter from each contention server;
[0101] The optimal secondary server is selected according to the competition query value, and the data to be stored is first stored in the optimal secondary server.
[0102] It should be explained that there are multiple auxiliary shared servers in the data sharing network at the same time, and because the auxiliary shared servers only play an auxiliary role, their computing power is far inferior to that of the main shared servers and edge servers. Therefore, each time data storage is executed, the optimal auxiliary shared server needs to be selected to ensure the normal operation of each response to the data storage instruction.
[0103] For example, assuming that there are 20 auxiliary shared servers in the data sharing network, the generated running test instructions are distributed to the 20 auxiliary shared servers. If one auxiliary shared server runs abnormally, it means that the running response instruction cannot be returned, so the remaining 19 auxiliary shared servers that have returned the running response instruction are determined as competing servers. Furthermore, the main purpose of the embodiment of the present invention is to select the best server from the 19 competing servers for storing the data to be stored this time.
[0104] It should be explained that the contention query parameters include: the physical distance between the auxiliary shared server and the data generating device, and the channel gain between the auxiliary shared server and the data generating device at the current time point.
[0105] The channel gain indicates the power gain or gain factor obtained by the signal when passing through the communication channel. Generally, the channel gain is caused by various factors, such as the propagation environment, the signal frequency characteristics, etc. In the embodiment of the present invention, the channel gain is expressed in decibels (dB), which describes the relative change of the signal power between the auxiliary shared server and the data generating device.
[0106] In detail, the step of obtaining a competition query value corresponding to a competition query parameter from each competition server includes:
[0107] The physical distance d is calculated based on the geographical location of the competing server and the data generating device. i,j , where d i,j represents the physical distance between the i-th competing server and the j-th data generating device;
[0108] Obtain the signal power of the j-th data generating device and the signal power of the i-th competing server respectively;
[0109] The channel gain is calculated according to the following formula:
[0110]
[0111] Among them, G i,j represents the channel gain between the i-th competing server and the j-th data generating device, P i represents the signal power of the i-th competing server, P j represents the signal power of the jth data generating device;
[0112] The physical distance d i,j and channel gain G i,j Determines the contention challenge value for the contention server.
[0113] It should be emphasized that the contention query value described in the embodiment of the present invention mainly includes physical distance and channel gain. Since the computing power of the auxiliary shared servers varies little, and once they respond to several data storage instructions, the main factors affecting the efficiency of the auxiliary shared servers in executing data storage are physical distance and channel gain. Therefore, the embodiment of the present invention selects the optimal auxiliary server according to the contention query value, and stores the data to be stored in the optimal auxiliary server first. There are many ways to select the optimal auxiliary server, such as using the physical distance d i,j Minimum, and the channel gain G i,j The server with the largest competition is determined as the optimal secondary server.
[0114] In addition, in another embodiment of the present invention, the step of selecting the optimal secondary server according to the contention query value includes:
[0115] The contention quantification value of each competing server is calculated according to the following formula:
[0116]
[0117] Among them, R i represents the competition quantization value of the i-th competing server, α and β are the weights pre-set for calculating the competition quantization value, and e is a natural constant;
[0118] The competing server with the largest competition quantization value is selected as the optimal auxiliary server.
[0119] It is understandable that the embodiment of the present invention quantizes the competition quantization value based on the physical distance and the channel gain, so that the expected competing server can be directly selected to obtain the optimal auxiliary server, and the data to be stored is stored in the optimal auxiliary server.
[0120] Furthermore, when the operating busyness of the edge server is less than the busyness threshold, the embodiment of the present invention transfers the data to be stored to the edge server. When the data to be stored is successfully transferred, the data to be stored in the optimal auxiliary server is deleted, thereby helping the optimal auxiliary server to release pressure and respond again to the next data storage.
[0121] From the description of S6, it can be seen that the main function of the auxiliary shared server is temporary storage, which temporarily releases the operating pressure of the edge server. When the operating busyness of the edge server is less than the busyness threshold, the data to be stored is transferred from the auxiliary shared server to the edge server. At this time, since the operating pressure of the edge server is smaller, the storage efficiency of the data to be stored is higher.
[0122] S7. If the data generating device is willing to share the data to be stored, confirm other devices that can access the data to be stored, obtain the data access device, and calculate the transmission delay and transmission energy consumption between the data generating device and each main sharing server.
[0123] It should be emphasized that in a data sharing network, edge servers are generally located at the edge of the data sharing network. Assuming that the data sharing network is a circular area of 10KM, the edge server is generally farthest from the center of the circular area, while the main shared server is generally located in the center of the circular area, and the auxiliary shared servers are distributed between the edge servers and the auxiliary shared servers.
[0124] That is, in one embodiment of the present invention, the data sharing network is a circular structure with a fixed radius, and the main sharing server is located at the center of the circular structure, one or more edge servers are located at the edge of the circular structure, the auxiliary sharing servers are distributed in the middle area formed by the edge servers and the auxiliary sharing servers, and the data generation device is also located in the circular structure of the data sharing network.
[0125] For example, if the online shopping platform where Xiao Zhang is located generates another 50M of product data, since the 50M product data has been displayed on the online shopping platform and is data that can be shared, Xiao Zhang plans to share this type of product data with other online platforms to help other online platforms synchronize or optimize this type of product data. Then the other online platforms are the data access devices described in the embodiments of the present invention.
[0126] It should be explained that, since the number of main shared servers is at least 2, the selection of which main shared server to use as the storage device for the above 50M commodity data is a problem that needs to be considered in the embodiment of the present invention. Since the main shared server has a strong operating capability, it is generally not necessary to consider the operating pressure of the main shared server, but to select the optimal server from the perspective of delay and energy consumption. Further, the calculation of the transmission delay and transmission energy consumption between the data generation device and each main shared server includes:
[0127] Calculate the operation busyness of each main shared server, and select the main shared server whose operation busyness is less than or equal to a preset operation busyness threshold, to obtain one or more main preferred servers;
[0128] Obtaining the receiving power required by the primary preferred server to receive each unit byte of data, and the channel gain between the data generating device and each primary preferred server;
[0129] Calculate the data transmission rate of the primary preferred server for which the unit byte data transmission is successful according to the received power and the channel gain between the data generating device and each primary preferred server;
[0130] The transmission delay and transmission energy consumption of each primary preferred server are calculated based on the data transmission rate.
[0131] For example, assuming that there are 15 main shared servers in the data sharing network, the operation busyness of each main shared server is calculated first, and the calculation method of the operation busyness is the same as that of the edge server, and the embodiment of the present invention is not repeated here. The size of the operation busyness threshold can be preset, so as to screen out the main shared server that meets the user's requirements, that is, the main preferred server.
[0132] Further, the step of calculating the data transmission rate of the primary preferred server for successful unit byte data transmission according to the received power and the channel gain between the data generating device and each primary preferred server includes:
[0133] The data transmission rate is calculated according to the following formula:
[0134]
[0135] Among them, v i,j represents the channel gain between the i-th primary preferred server and the j-th data generation device, P i represents the receiving power required by the i-th primary preferred server to receive each unit byte of data, represents the channel gain between the jth data generation device and the ith primary preferred server, represents the noise power of the channel constructed between the j-th data generating device and the i-th primary preferred server, B represents the total bandwidth for the j-th data generating device to transmit data to the i-th primary preferred server, and lb represents the minimum weight value of the total bandwidth required for the j-th data generating device to transmit unit bytes of data to the i-th primary preferred server.
[0136] It should be explained that the calculation method of the channel gain between the jth data generating device and the ith primary preferred server is the same as the calculation method of the channel gain between the ith competing server and the jth data generating device, and the embodiments of the present invention will not be repeated here. In addition, the noise power of the channel refers to the power generated by various noise sources between the data generating device and the primary preferred server, such as the power caused by components such as resistors inside electronic devices, etc., and in the process of data transmission, the noise power is an additive factor, which increases with the increase of signal power.
[0137] After the data transmission rate between each primary preferred server and the data generation device is calculated, the time and energy consumption required to transmit the data to be stored can be estimated, which is the transmission delay and transmission energy consumption. In detail, the transmission delay and transmission energy consumption of each primary preferred server calculated according to the data transmission rate include:
[0138] Confirm the amount of data to be stored, and calculate the transmission delay and transmission energy consumption according to the following formulas:
[0139]
[0140] T i =P i D j T i,j
[0141] Among them, T i,j represents the transmission delay of the jth data generation device transmitting the data to be stored to the ith primary preferred server, D j represents the amount of data to be stored by the jth data generating device, T i Represents the transmission energy consumption of the i-th primary preferred server receiving the data to be stored from the j-th data generating device.
[0142] S8. Filter out the best main shared server according to the transmission delay and transmission energy consumption, obtain the main optimal server, store the data to be stored in the main optimal server, generate an access notification instruction, and distribute the access notification instruction to each data access device to complete the data interaction of the network communication device.
[0143] It should be explained that there are various methods for selecting the main optimal server using transmission delay and transmission energy consumption. Since the transmission delay and transmission energy consumption are in direct proportion, that is, the greater the transmission delay, the greater the transmission energy consumption in general, the main shared server with the smallest transmission energy consumption is directly selected as the main optimal server. In another embodiment of the present invention, if there is a situation where the data generating device wants to store the data to be stored in the main shared server as soon as possible, the main optimal server with the smallest transmission delay is selected as the main optimal server.
[0144] For example, Xiao Zhang wants to share the above 50M product data with other online platforms. Therefore, after screening out the main optimal server, he stores the 50M product data in the main optimal server, and generates an access notification instruction to distribute to other online platforms, thus completing the data interaction of the network communication equipment.
[0145] Furthermore, after storing the data to be stored in the main optimal server, the method further includes:
[0146] Receiving a data closing instruction initiated by a data generating device for the data to be stored;
[0147] Selecting an auxiliary shared server according to the data closing instruction to obtain an auxiliary closed server;
[0148] Transferring the data to be stored stored in the primary shared server to the secondary closed server;
[0149] When the data to be stored is successfully transferred, the data to be stored stored in the main shared server is deleted, and at the same time the data to be stored in the auxiliary closed server is transferred to the edge server, completing the data closure of the data to be stored.
[0150] For example, suppose Xiao Zhang has stored 50M product data in the main optimal server for other online platforms to view, but later discovered that there are commercial secrets in the 50M product data, so he initiated a data closure instruction and planned to transfer the 50M product data to the edge server. Therefore, as described above, the 50M product data is first stored in the auxiliary closed server, and then the 50M product data is transferred to the edge server through the auxiliary closed server.
[0151] It should be explained that the secondary shared server is selected according to the data closing instruction to obtain the secondary closed server, and the selection method is the same as the selection method of the optimal secondary server mentioned above, which will not be repeated in the embodiment of the present invention.
[0152] Compared with the problem described in the background technology, the present invention receives a data storage instruction from a data generating device, obtains data to be stored according to the instruction, and starts a data sharing network, wherein the data sharing network is composed of a main sharing server, a secondary sharing server and an edge server, and data interaction can be performed between the main sharing server and the secondary sharing server, and data interaction can also be performed between the edge server and the secondary sharing server, but data interaction cannot be performed between the main sharing server and the edge server, and the number of the main sharing server and the secondary sharing server is at least 2. By establishing a data sharing network including the main sharing server, the secondary sharing server and the edge server, distributed storage and processing of data are realized, and more importantly, since there is no direct data interaction between the main sharing server and the edge server, the possibility of potential simultaneous direct attacks on the main sharing server and the edge server is reduced, thereby improving the security of the main sharing server and the edge server. Further, the data storage instruction is parsed to obtain whether the data generating device has the intention to share the data to be stored. If the data generating device does not have the intention to share the data to be stored, the operation busyness of the edge server is calculated. If the operation busyness of the edge server is less than the busyness threshold, the data to be stored is directly stored in the edge server. If the data generating device is unwilling to share the data, the data storage location is determined according to the operation status of the edge server, thereby ensuring the privacy of the data and preventing unauthorized data sharing. In addition, by monitoring the operation busyness of the edge server and setting the busyness threshold, data storage can be avoided when the server is highly loaded, reducing the possibility of potential security risks caused by server overload. Secondly, if the operation busyness of the edge server is greater than or equal to the busyness threshold, the data to be stored is first stored in the auxiliary shared server, and after waiting for the operation busyness of the edge server to be less than the busyness threshold, the data to be stored is transferred from the auxiliary shared server to the edge server. Since the present invention stores data in the edge server or the auxiliary shared server according to the operation status of the edge server, this dynamic decision-making process helps to disperse risks and avoid the risk of single point failure or single point attack. Finally, if the data generation device has the intention to share the data to be stored, confirm other devices that can access the data to be stored, obtain the data access device, calculate the transmission delay and transmission energy consumption between the data generation device and each main shared server, select the optimal main shared server according to the transmission delay and transmission energy consumption, obtain the main optimal server, store the data to be stored in the main optimal server, generate an access notification instruction, and distribute the access notification instruction to each data access device to complete the data interaction of the network communication device. By calculating the transmission delay and energy consumption with the main shared server, the optimal main shared server can be selected to reduce the exposure time of the data during the transmission process and reduce the risk of being intercepted. Therefore, the data interaction method and system for realizing network communication devices based on edge communication proposed in the present invention mainly aims to improve the communication security of data interaction between servers.
[0153] Embodiment 2:
[0154] like Figure 2 , is a functional module diagram of a data interaction system for network communication devices based on edge communication provided by an embodiment of the present invention.
[0155] The data interaction system 100 for implementing network communication devices based on edge communication of the present invention can be installed in an electronic device. According to the functions implemented, the data interaction system 100 for implementing network communication devices based on edge communication can include a data sharing network startup module 101, an operation busyness judgment module 102, a transmission energy consumption calculation module 103 and an access notification instruction distribution module 104. The module of the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.
[0156] The data sharing network startup module 101 is used to receive a data storage instruction initiated by a data generation device, obtain the data to be stored generated by the data generation device according to the data storage instruction, wherein the data generation device has a network communication function, and start the data sharing network, wherein the data sharing network is composed of a main sharing server, a secondary sharing server and an edge server, and data interaction can be performed between the main sharing server and the secondary sharing server, and data interaction can also be performed between the edge server and the secondary sharing server, but data interaction cannot be performed between the main sharing server and the edge server, and the number of the main sharing server and the secondary sharing server is at least 2;
[0157] The operation busyness judgment module 102 is used to parse the data storage instruction to obtain whether the data generation device has the intention to share the data to be stored. If the data generation device does not have the intention to share the data to be stored, the operation busyness of the edge server is calculated. If the operation busyness of the edge server is less than the busyness threshold, the data to be stored is directly stored in the edge server;
[0158] The transmission energy consumption calculation module 103 is used to store the data to be stored in the auxiliary shared server first if the operation busyness of the edge server is greater than or equal to the busyness threshold, and wait until the operation busyness of the edge server is less than the busyness threshold, and then transfer the data to be stored from the auxiliary shared server to the edge server; if the data generation device has the intention to share the data to be stored, confirm other devices that can access the data to be stored, obtain the data access device, and calculate the transmission delay and transmission energy consumption between the data generation device and each main shared server;
[0159] The access notification instruction distribution module 104 is used to select the optimal main shared server according to the transmission delay and the transmission energy consumption, obtain the main optimal server, store the data to be stored in the main optimal server, generate an access notification instruction, and distribute the access notification instruction to each data access device to complete the data interaction of the network communication device.
[0160] In detail, the modules in the data interaction system 100 for implementing network communication devices based on edge communication in the embodiment of the present invention are used in the same manner as described above. Figure 1 The same technical means as the method for realizing data interaction of network communication devices based on edge communication described in the text and the like can produce the same technical effects, which will not be repeated here.
[0161] Embodiment 3:
[0162] like Figure 3 , is a schematic diagram of the structure of an electronic device for implementing a data interaction method of network communication devices based on edge communication provided by an embodiment of the present invention.
[0163] The electronic device 1 may include a processor 10, a memory 11, a bus 12 and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a data interaction program for implementing network communication devices based on edge communication.
[0164] Among them, the memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of the electronic device 1, such as a mobile hard disk of the electronic device 1. In other embodiments, the memory 11 can also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), etc. equipped on the electronic device 1. Further, the memory 11 can also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device 1, such as the code of the data interaction program of the network communication device based on edge communication, but also can be used to temporarily store data that has been output or is to be output.
[0165] The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or a plurality of integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect the various components of the entire electronic device, and executes or executes programs or modules stored in the memory 11 (for example, data interaction programs for network communication devices based on edge communication, etc.), and calls data stored in the memory 11 to execute various functions of the electronic device 1 and process data.
[0166] The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.
[0167] Figure 3 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 2 The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0168] For example, although not shown, the electronic device 1 may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include any components such as one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, etc. The electronic device 1 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0169] Furthermore, the electronic device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device 1 and other electronic devices.
[0170] Optionally, the electronic device 1 may further include a user interface, which may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 1 and to display a visual user interface.
[0171] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0172] The data interaction program for implementing network communication devices based on edge communication stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve:
[0173] Receiving a data storage instruction initiated by a data generation device, and acquiring the data to be stored generated by the data generation device according to the data storage instruction, wherein the data generation device has a network communication function;
[0174] Start a data sharing network, wherein the data sharing network consists of a primary sharing server, a secondary sharing server and an edge server, and data interaction can be performed between the primary sharing server and the secondary sharing server, and data interaction can also be performed between the edge server and the secondary sharing server, but data interaction cannot be performed between the primary sharing server and the edge server, and the number of the primary sharing server and the secondary sharing server is at least 2;
[0175] Parse the data storage instruction to determine whether the data generation device is willing to share the data to be stored. If the data generation device is not willing to share the data to be stored, calculate the running busyness of the edge server. If the running busyness of the edge server is less than the busyness threshold, store the data to be stored directly to the edge server.
[0176] If the running busyness of the edge server is greater than or equal to the busyness threshold, the data to be stored is first stored in the auxiliary shared server, and after the running busyness of the edge server is less than the busyness threshold, the data to be stored is transferred from the auxiliary shared server to the edge server;
[0177] If the data generating device is willing to share the data to be stored, confirm other devices that can access the data to be stored, obtain the data access device, and calculate the transmission delay and transmission energy consumption between the data generating device and each main sharing server;
[0178] The optimal main shared server is selected based on the transmission delay and transmission energy consumption to obtain the main optimal server. After the data to be stored is stored in the main optimal server, an access notification instruction is generated and distributed to each data access device to complete the data interaction of network communication devices.
[0179] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to Figure 1 to Figure 2 The description of the relevant steps in the corresponding embodiments will not be repeated here.
[0180] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0181] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:
[0182] Receiving a data storage instruction initiated by a data generation device, and acquiring the data to be stored generated by the data generation device according to the data storage instruction, wherein the data generation device has a network communication function;
[0183] Start a data sharing network, wherein the data sharing network consists of a primary sharing server, a secondary sharing server and an edge server, and data interaction can be performed between the primary sharing server and the secondary sharing server, and data interaction can also be performed between the edge server and the secondary sharing server, but data interaction cannot be performed between the primary sharing server and the edge server, and the number of the primary sharing server and the secondary sharing server is at least 2;
[0184] Parse the data storage instruction to determine whether the data generation device is willing to share the data to be stored. If the data generation device is not willing to share the data to be stored, calculate the running busyness of the edge server. If the running busyness of the edge server is less than the busyness threshold, store the data to be stored directly to the edge server.
[0185] If the running busyness of the edge server is greater than or equal to the busyness threshold, the data to be stored is first stored in the auxiliary shared server, and after the running busyness of the edge server is less than the busyness threshold, the data to be stored is transferred from the auxiliary shared server to the edge server;
[0186] If the data generating device is willing to share the data to be stored, confirm other devices that can access the data to be stored, obtain the data access device, and calculate the transmission delay and transmission energy consumption between the data generating device and each main sharing server;
[0187] The optimal main shared server is selected based on the transmission delay and transmission energy consumption to obtain the main optimal server. After the data to be stored is stored in the main optimal server, an access notification instruction is generated and distributed to each data access device to complete the data interaction of network communication devices.
[0188] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0189] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0190] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0191] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A method for realizing data interaction of network communication devices based on edge communication, It is characterized in that The method comprises: Receiving a data storage instruction initiated by a data generation device, and acquiring the data to be stored generated by the data generation device according to the data storage instruction, wherein the data generation device has a network communication function; Start a data sharing network, wherein the data sharing network consists of a primary sharing server, a secondary sharing server and an edge server, and data interaction can be performed between the primary sharing server and the secondary sharing server, and data interaction can also be performed between the edge server and the secondary sharing server, but data interaction cannot be performed between the primary sharing server and the edge server, and the number of the primary sharing server and the secondary sharing server is at least 2; Parse the data storage instruction to determine whether the data generation device is willing to share the data to be stored. If the data generation device is not willing to share the data to be stored, calculate the running busyness of the edge server. If the running busyness of the edge server is less than the busyness threshold, store the data to be stored directly to the edge server. If the running busyness of the edge server is greater than or equal to the busyness threshold, the data to be stored is first stored in the auxiliary shared server, and after the running busyness of the edge server is less than the busyness threshold, the data to be stored is transferred from the auxiliary shared server to the edge server; If the data generating device is willing to share the data to be stored, confirm other devices that can access the data to be stored, obtain the data access device, and calculate the transmission delay and transmission energy consumption between the data generating device and each main sharing server; The optimal main shared server is selected based on the transmission delay and transmission energy consumption to obtain the main optimal server. After the data to be stored is stored in the main optimal server, an access notification instruction is generated and distributed to each data access device to complete the data interaction of network communication devices.
2. The method for realizing data interaction of network communication devices based on edge communication according to claim 1, It is characterized in that The calculating the operation busyness of the edge server includes: Obtain the operating parameters of the edge server at the current time point, where the operating parameters include CPU usage, memory usage, disk read speed, network inflow, and network outflow; The CPU usage, memory usage, disk read speed, network inflow, and network outflow are normalized to obtain the normalized CPU usage, memory usage, disk read speed, network inflow, and network outflow; The running busyness of the edge server is calculated according to the running parameters, where the calculation formula is as follows: Among them, e j represents the operation busyness of the jth edge server, p ij represents the normalized value of the i-th operating parameter of the j-th edge server, and the i-th operating parameter includes the CPU usage, memory usage, disk read speed, network inflow and network outflow, n represents the total number of operating parameters included in the j-th edge server, w ij Represents the weight value of the i-th operating parameter.
3. The method for realizing data interaction of network communication devices based on edge communication as claimed in claim 2, It is characterized in that The step of storing the data to be stored in the auxiliary shared server first includes: Generate a running test instruction, send the running test instruction to each auxiliary shared server, and wait for receiving a running response instruction returned by the auxiliary shared server; Determine the auxiliary shared server that has returned the run response instruction as a competing server; Generate a competition query instruction for the data to be stored, and send the competition query instruction to each competition server, wherein the competition query instruction includes competition query parameters; Obtaining a contention query value corresponding to the contention query parameter from each contention server; The optimal secondary server is selected according to the competition query value, and the data to be stored is first stored in the optimal secondary server.
4. The method for realizing data interaction of network communication devices based on edge communication as claimed in claim 3, It is characterized in that The contention query parameters include: a physical distance between the auxiliary shared server and the data generating device, and a channel gain between the auxiliary shared server and the data generating device at a current time point, and the step of obtaining a contention query value corresponding to the contention query parameter from each contention server includes: The physical distance d is calculated based on the geographical location of the competing server and the data generating device. i,j , where d i,j represents the physical distance between the i-th competing server and the j-th data generating device; Obtain the signal power of the j-th data generating device and the signal power of the i-th competing server respectively; The channel gain is calculated according to the following formula: Among them, G i,j represents the channel gain between the i-th competing server and the j-th data generating device, P i represents the signal power of the i-th competing server, P j represents the signal power of the jth data generating device; The physical distance d i,j and channel gain G i,j Determines the contention challenge value for the contention server.
5. The method for realizing data interaction of network communication devices based on edge communication according to claim 4, It is characterized in that The step of selecting the optimal secondary server according to the contention query value includes: The contention quantification value of each competing server is calculated according to the following formula: Among them, R i represents the competition quantization value of the i-th competing server, α and β are the weights pre-set for calculating the competition quantization value, and e is a natural constant; The competing server with the largest competition quantization value is selected as the optimal auxiliary server.
6. The method for realizing data interaction of network communication devices based on edge communication according to claim 5, It is characterized in that The calculation of the transmission delay and transmission energy consumption between the data generating device and each main shared server includes: Calculate the operation busyness of each main shared server, and select the main shared server whose operation busyness is less than or equal to a preset operation busyness threshold, to obtain one or more main preferred servers; Obtaining the receiving power required by the primary preferred server to receive each unit byte of data, and the channel gain between the data generating device and each primary preferred server; Calculate the data transmission rate of the primary preferred server for which unit byte data transmission is successful according to the received power and the channel gain between the data generating device and each primary preferred server; The transmission delay and transmission energy consumption of each primary preferred server are calculated based on the data transmission rate.
7. The method for realizing data interaction of network communication devices based on edge communication according to claim 6, It is characterized in that The step of calculating the data transmission rate of the primary preferred server for which the unit byte data transmission is successful according to the received power and the channel gain between the data generating device and each primary preferred server comprises: The data transmission rate is calculated according to the following formula: Among them, v i,j represents the channel gain between the i-th primary preferred server and the j-th data generation device, P i represents the receiving power required by the i-th primary preferred server to receive each unit byte of data, represents the channel gain between the jth data generation device and the ith primary preferred server, represents the noise power of the channel constructed between the j-th data generating device and the i-th primary preferred server, B represents the total bandwidth for the j-th data generating device to transmit data to the i-th primary preferred server, and lb represents the minimum weight value of the total bandwidth required for the j-th data generating device to transmit unit bytes of data to the i-th primary preferred server.
8. The method for realizing data interaction of network communication devices based on edge communication as claimed in claim 7, It is characterized in that The step of calculating the transmission delay and transmission energy consumption of each primary preferred server according to the data transmission rate includes: Confirm the amount of data to be stored, and calculate the transmission delay and transmission energy consumption according to the following formulas: T i =P i D j T i,j Among them, T i,j represents the transmission delay of the jth data generation device transmitting the data to be stored to the ith primary preferred server, D j represents the amount of data to be stored by the jth data generating device, T i Represents the transmission energy consumption of the i-th primary preferred server receiving the data to be stored from the j-th data generating device.
9. The method for realizing data interaction of network communication devices based on edge communication as claimed in claim 8, It is characterized in that After storing the data to be stored in the main optimal server, the method further includes: Receiving a data closing instruction initiated by a data generating device for the data to be stored; Selecting an auxiliary shared server according to the data closing instruction to obtain an auxiliary closed server; Transferring the data to be stored stored in the primary shared server to the secondary closed server; When the data to be stored is successfully transferred, the data to be stored stored in the main shared server is deleted, and at the same time the data to be stored in the auxiliary closed server is transferred to the edge server, completing the data closure of the data to be stored.
10. A data interaction system for network communication devices based on edge communication, It is characterized in that The system comprises: A data sharing network startup module, used to receive a data storage instruction initiated by a data generation device, obtain the data to be stored generated by the data generation device according to the data storage instruction, wherein the data generation device has a network communication function, and start the data sharing network, wherein the data sharing network is composed of a main sharing server, a secondary sharing server and an edge server, and data interaction can be performed between the main sharing server and the secondary sharing server, and data interaction can also be performed between the edge server and the secondary sharing server, but data interaction cannot be performed between the main sharing server and the edge server, and the number of the main sharing server and the secondary sharing server is at least 2; The operation busyness judgment module is used to parse the data storage instruction to obtain whether the data generation device has the intention to share the data to be stored. If the data generation device does not have the intention to share the data to be stored, the operation busyness of the edge server is calculated. If the operation busyness of the edge server is less than the busyness threshold, the data to be stored is directly stored in the edge server: The transmission energy consumption calculation module is used to store the data to be stored in the auxiliary shared server first if the running busyness of the edge server is greater than or equal to the busyness threshold, and wait until the running busyness of the edge server is less than the busyness threshold, and then transfer the data to be stored from the auxiliary shared server to the edge server; if the data generation device has the intention to share the data to be stored, confirm other devices that can access the data to be stored, obtain the data access device, and calculate the transmission delay and transmission energy consumption between the data generation device and each main shared server; The access notification instruction distribution module is used to select the optimal main shared server according to the transmission delay and transmission energy consumption, obtain the main optimal server, store the data to be stored in the main optimal server, generate an access notification instruction, and distribute the access notification instruction to each data access device to complete the data interaction of network communication devices.
