Channel optimization method and device, electronic equipment and readable storage medium
By acquiring and monitoring the performance data and load conditions of node equipment, building and optimizing Bluetooth transmission paths, the Bluetooth transmission efficiency and stability problems in the industrial manufacturing field are solved, and efficient and stable data transmission is achieved.
Patent Information
- Application Number
- CN202411560764.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-04
- Publication Date
- 2025-02-18
AI Technical Summary
In the field of industrial manufacturing, there are many equipment terminals, high real-time data upload, high concurrency in data transmission, connection-based Bluetooth transmission is difficult to meet the needs, and Bluetooth transmission based on ad hoc networks has broadcast storms in data concurrency scenarios, etc. question.
By obtaining the performance data and load conditions of the node equipment, determining the candidate equipment, building a candidate transmission path, selecting the target transmission path for data transmission, and monitoring the performance data and load conditions in real time, replacing the node equipment to optimize the channel.
It improves the efficiency of data transmission and the stability of the communication network, and reduces the possibility of network storms in data concurrency scenarios.
Smart Images

Figure CN119485760A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet of Things, and in particular to a channel optimization method, device, electronic equipment and readable storage medium. Background Art
[0002] Bluetooth technology is widely used, including mice, headphones, wearable products, medical products, etc. Limited by the technical limitations of Bluetooth connection transmission, most application scenarios are point-to-point transmission, that is, a Bluetooth terminal (such as headphones, bracelets, mice) communicates with a Bluetooth host (such as mobile phones, computers). Even in the scenario where the host connects to multiple Bluetooth terminals for transmission, the number of Bluetooth terminals is relatively small.
[0003] In the field of industrial manufacturing, there are many equipment terminals, data upload is highly real-time, and data transmission is highly concurrent. Based on the connection of Bluetooth transmission, the number of terminal devices is limited and it is difficult to meet the demand; based on the self-organizing network of Bluetooth transmission, in the data concurrency scenario, there are broadcast storms leading to packet loss and other problems. Summary of the invention
[0004] The embodiments of the present invention provide a channel optimization method, device, electronic device and readable storage medium, which can improve the efficiency of data transmission and improve the stability of the communication network.
[0005] In order to solve the above problem, an embodiment of the present invention discloses a channel optimization method, which includes:
[0006] Acquire first performance data and first load conditions of node devices in each space within a first time period, and determine candidate devices in each space;
[0007] constructing at least two candidate transmission paths based on the candidate devices;
[0008] Selecting a target transmission path from the candidate paths according to a first preset condition, and performing data transmission based on the target transmission path;
[0009] Real-time monitoring of second performance data and second load conditions of each node device on the target transmission path within a second time period;
[0010] When the second performance data and the second load condition of the first node device among the node devices meet the second preset condition, the first node device is replaced by a second node device in the same space as the first node device; the second node device is one of the candidate devices.
[0011] Optionally, the acquiring first performance data and first load conditions of node devices in each space within a first time period, and determining candidate devices in each space includes:
[0012] Acquire the first performance data and data transmission path of the node devices in each space within the first time period;
[0013] Determine a first performance score of the node devices in each space according to the first performance data;
[0014] Determining a first load condition of the node devices in each of the spaces according to a data transmission path corresponding to the node devices;
[0015] Determine candidate devices in each of the spaces according to the first performance scores and the first load conditions of the node devices in each of the spaces.
[0016] Optionally, constructing at least two candidate transmission paths based on the candidate device includes:
[0017] Traversing candidate devices in each of the spaces;
[0018] Arrange and combine candidate devices in each space to construct at least two candidate transmission paths;
[0019] A candidate transmission path includes a candidate device in each space.
[0020] Optionally, selecting a target path from the candidate paths according to a first preset condition, and performing data transmission based on the target path includes:
[0021] According to a preset screening strategy, a target device is determined from at least one candidate device in each space;
[0022] A candidate transmission path including the target device among the candidate transmission paths is determined as the target transmission path.
[0023] Optionally, determining a target device from at least one candidate device in each space according to a preset screening strategy includes:
[0024] Filtering a first candidate device and a second candidate device from the candidate devices according to a first load condition of at least one candidate device in each space;
[0025] A target device is determined from the first candidate device and the second candidate device according to a first load gap between the first candidate device and the second candidate device and first performance data corresponding to each of the first candidate device and the second candidate device.
[0026] Optionally, the selecting a first candidate device and a second candidate device from the candidate devices according to a first load condition of at least one candidate device in each space includes:
[0027] sorting the candidate devices in each space according to a first load condition of at least one candidate device in each space;
[0028] Determine the candidate device with the highest first load condition in each of the spaces as the first candidate device;
[0029] The candidate device with the lowest first load condition in each of the spaces is determined as the second candidate device.
[0030] Optionally, determining a target device from the first candidate device and the second candidate device according to a first load gap between the first candidate device and the second candidate device and first performance data corresponding to each of the first candidate device and the second candidate device includes:
[0031] When a first load difference between the first candidate device and the second candidate device is greater than or equal to a first preset threshold, determining the candidate device with the lower first load as the target device;
[0032] When the first load difference between the first candidate device and the second candidate device is less than the first preset threshold and greater than or equal to the second preset threshold, determining a target device according to first performance data corresponding to each of the first candidate device and the second candidate device;
[0033] When the first load gap between the first candidate device and the second candidate device is less than a second preset threshold, the target device is determined according to the first efficiency scores corresponding to the first candidate device and the second candidate device respectively; wherein the first efficiency score is a ratio of the first performance data of the candidate device divided by the first load condition of the candidate device.
[0034] Optionally, when the second performance data and the second load condition of a first node device among the node devices meet a second preset condition, replacing the first node device with a second node device in the same space as the first node device includes:
[0035] When the second load condition of the first node device in each of the node devices is greater than or equal to a third preset threshold and the second performance data is less than or equal to a fourth preset threshold, determining a third candidate device and a fourth candidate device in each of the spaces from other candidate devices except the first node device in each of the spaces;
[0036] Determine a second node device from the third candidate device and the fourth candidate device according to the second load gap between the third candidate device and the fourth candidate device and the second performance data corresponding to each of the third candidate device and the fourth candidate device;
[0037] The first node device is replaced by a second node device that is in the same space as the first node device.
[0038] On the other hand, an embodiment of the present invention provides a channel optimization device, the device comprising:
[0039] A first determination module, configured to obtain first performance data and first load conditions of node devices in each space within a first time period, and determine candidate devices in each space;
[0040] A construction module, configured to construct at least two candidate transmission paths based on the candidate devices;
[0041] A selection module, configured to select a target transmission path from the candidate paths according to a first preset condition, and perform data transmission based on the target transmission path;
[0042] A monitoring module, used for monitoring in real time the second performance data and the second load condition of each node device on the target transmission path within a second time period;
[0043] A replacement module is used to replace the first node device in each node device with a second node device in the same space as the first node device when the second performance data and the second load condition of the first node device meet the second preset condition; the second node device is one of the candidate devices.
[0044] An embodiment of the present invention also discloses an electronic device, which includes a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other through the communication bus; the memory is used to store executable instructions, and the executable instructions enable the processor to execute the aforementioned channel optimization method.
[0045] An embodiment of the present invention further discloses a readable storage medium. When instructions in the readable storage medium are executed by a processor of an electronic device, the electronic device can execute the aforementioned channel optimization method.
[0046] The embodiments of the present invention include the following advantages:
[0047] The channel optimization method provided by the embodiment of the present invention obtains the first performance data and the first load condition of the node device in each space in the first time period, determines the candidate device in each space, constructs at least two candidate transmission paths based on the candidate device, selects a target transmission path from the candidate transmission path according to the first preset condition, and performs data transmission based on the target transmission path. According to the performance data and load condition of the node device in each space in the historical time period, the target transmission path is planned for the node devices in each space when data is transmitted, the efficiency of data transmission of each node device is improved, and the stability of the communication network composed of each node device is improved. The second performance data and the second load condition of each node device on the target transmission path in the second time period are monitored in real time, and when the second performance data and the second load condition of the first node device in each node device meet the second preset condition, the first node device is replaced with the second node device in the same space as the first node device. The performance data and the load condition of each node device on the target transmission path are monitored in real time, and when the performance data and the load condition of the node device change, the target transmission path is dynamically planned, the efficiency of data transmission of each node device is improved, and the stability of the communication network composed of each node device is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0049] Figure 1 is a flow chart of the steps of a channel optimization method provided by an embodiment of the present invention;
[0050] Figure 2 It is a logic block diagram of a channel optimization device provided by an embodiment of the present invention;
[0051] Figure 3 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0053] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0054] Method Embodiment
[0055] The channel optimization method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0056] Reference Figure 1 , shows a flow chart of the steps of a channel optimization method provided by an embodiment of the present application, such as Figure 1 As shown, the method specifically comprises the following steps:
[0057] Step S101: Acquire first performance data and first load conditions of node devices in each space within a first time period, and determine candidate devices in each space.
[0058] The channel optimization method provided by the embodiment of the present invention can be applied to a decentralized communication network. A decentralized communication network means that there is no single central node controlling the entire communication network, and each node device in the network can communicate directly with other node devices to achieve data transmission and sharing. Among them, decentralized communication networks include: wireless mesh networks (Mesh network), peer-to-peer networks (p2p), decentralized wireless networks (DeWi network), etc. The application places of decentralized communication networks can be homes, communities, campuses, enterprises, etc.
[0059] It should be noted that the division criteria of each space can be artificially defined rules or based on physical barriers. For example, when the decentralized communication network is applied in a home, the wall is a physical barrier, there are 4 rooms in the house, and each room is a space; when the decentralized communication network is applied in a community, each building can be regarded as a space.
[0060] The first time period is a time period of any length before determining the candidate devices in each space, for example: 8:00-9:00AM, 8:00-10:00AM, etc. Node devices refer to electronic devices that can send, receive, and forward messages in a communication network. Exemplarily, node devices can be smart home devices, such as lights, switch panels, curtain motors, televisions, air conditioners, etc. Each node device is a separate network node that can receive and send data, thereby realizing communication between devices.
[0061] Performance data refers to data that can reflect the working performance of node devices in the communication network, which can include: connection success rate, data transmission delay, packet loss rate, packet error rate. Load conditions refer to the amount of data that a node device bears when receiving, sending, and forwarding messages.
[0062] It should be noted that the performance data and load conditions of each node device change dynamically with time. Therefore, the first performance data and first load conditions of the node devices in each space in the first time period can be the average, mode, and peak values of the performance data and load conditions of each node device in the first time period as the first performance data and first load conditions of each node device in the first time period; or the performance data curve and load condition curve of each node device in the first time period. Among them, the performance data curve and load condition curve are used to record the performance data and load conditions of each node device at each moment in the first time period.
[0063] Since different tasks and times require different network resources, candidate devices are determined according to different priorities based on task requirements. For example, when network resources are tight at night and a short data transmission time is required, node devices with low load and low data transmission delay are prioritized as candidate devices; when communication tasks require high integrity of data transmission, node devices with low packet loss rate and low packet error rate are prioritized as candidate devices.
[0064] Different node devices have different main uses. Some node devices are mainly used for forwarding messages. Node devices that forward more messages are in a key position in the network. Therefore, node devices that forward more messages are given priority as candidate devices.
[0065] Step S102: construct at least two candidate transmission paths based on the candidate devices.
[0066] It should be noted that, in the embodiment of the present invention, at least two candidate transmission paths may be constructed based on all candidate devices, or at least two candidate transmission paths may be constructed based on some candidate devices.
[0067] At least one node device is selected from each space, and at least two candidate transmission paths are constructed based on the node devices in each space, wherein each candidate transmission path includes a node device in each space. For example, there are 3 rooms in the whole house, and each room is used as a space. Two node devices A and B are selected from room A, one node device C and D are selected from room B, and two node devices E and F are selected from room C, and at least two candidate transmission paths are constructed: ACE and ACF.
[0068] It should be noted that the principle of further selecting node devices from the candidate devices in each space is to comprehensively consider various factors. For example, in step S101, at least two candidate devices with low load conditions are preferentially selected in room A based on business needs, and in step S102, node devices with good performance data are further selected from at least two candidate devices with low load conditions.
[0069] Step S103: Select a target transmission path from the candidate transmission paths according to a first preset condition, and perform data transmission based on the target transmission path.
[0070] The first preset condition may be a requirement for the node devices included in the candidate transmission path, or may be a requirement for the candidate transmission path as a whole.
[0071] In the case where the first preset condition is a requirement for the node devices included in the candidate transmission path, a target node device that meets the first preset condition is further selected from the candidate devices provided in step S102. Based on the target node device, a target transmission path is constructed. The first preset condition may include: the remaining resource value is greater than a preset threshold, the throughput is large, and the data transmission delay is low.
[0072] In the case where the first preset condition is a requirement for the candidate transmission paths, a target transmission path that meets the first preset condition is directly selected from the candidate transmission paths. The first preset condition may include: a data transmission rate lower than a preset threshold, and a channel utilization rate higher than a preset threshold. Channel utilization rate refers to the ratio of the time a data transmission path is used to transmit data to the total time.
[0073] Step S104: monitor in real time the second performance data and the second load condition of each node device on the target transmission path within a second time period.
[0074] In an embodiment of the present invention, the target performance data to be monitored is selected as the second performance data, and a network performance monitoring tool is used to collect the second performance data and the second load condition within a second time period. Common network performance monitoring tools include: SolarWinds, Nagios, Zabbix, etc.
[0075] Step S105: When the second performance data and the second load condition of the first node device among the node devices meet the second preset condition, replace the first node device with a second node device in the same space as the first node device; the second node device is one of the candidate devices.
[0076] The first preset condition may be a specified value, for example, the preset threshold of the packet loss rate is set to 5%, and when the packet loss rate of the first node device is greater than 5%, the first node device is replaced with a second node device in the same space as the first node device. The first preset condition may also refer to a trend of changes in the performance data and load conditions of the node device in the second time period, for example, when the performance data of the first node device decreases and the load condition increases, the first node device is replaced with the second node device.
[0077] It should be noted that, in the embodiment of the present invention, the second preset condition may be opposite to the first preset condition set for the candidate device when selecting a target transmission path from the candidate transmission paths. For example, when the first preset condition is that the remaining resource value is greater than the preset threshold, the second preset condition may be that the remaining resource value is less than or equal to the preset threshold; when the first preset condition is that the throughput is large and the data transmission delay is low, the second preset condition may be that the throughput is small or the data transmission delay is high.
[0078] In an embodiment of the present invention, the first performance data and the first load condition of the node devices in each space in the first time period are obtained, the candidate devices in each space are determined, at least two candidate transmission paths are constructed based on the candidate devices, a target transmission path is selected from the candidate transmission paths according to the first preset condition, and data is transmitted based on the target transmission path. According to the performance data and load conditions of the node devices in each space in the historical time period, the target transmission path is planned for data transmission between the node devices in each space, reducing the possibility of network storms in data concurrency scenarios. The second performance data and the second load condition of each node device on the target transmission path in the second time period are monitored in real time, and when the second performance data and the second load condition of the first node device in each node device meet the second preset condition, the first node device is replaced with the second node device in the same space as the first node device. The performance data and the load condition of each node device on the target transmission path are monitored in real time, and when the performance data and the load condition of the node device change, the target transmission path is dynamically planned to improve the efficiency of data transmission of each node device and improve the stability of the communication network composed of each node device.
[0079] Optionally, the acquiring first performance data and first load conditions of node devices in each space within a first time period, and determining candidate devices in each space includes:
[0080] Step 11: Obtain the first performance data and data transmission path of the node devices in each space within the first time period;
[0081] Step 12: Determine a first performance score of the node device in each space according to the first performance data;
[0082] Step 13: determining a first load condition of the node devices in each space according to the data transmission path corresponding to the node devices;
[0083] Step 14: Determine candidate devices in each of the spaces according to the first performance scores and the first load conditions of the node devices in each of the spaces.
[0084] Among them, the first performance data refers to various indicators that can reflect the working performance of the node device in the communication network, which may include: connection success rate, data transmission delay, data packet loss rate, and data packet error rate. It should be noted that the performance data and data transmission paths of the node devices in each space in the first time period change with time. The performance data of each node device in the first time period may refer to the average value of the performance data of each node device at each moment in the first time period, and the data transmission path in the first time period refers to all data transmission paths in which each node device is located in the first time period. Among them, at each moment, the node device is in at least one data transmission path at the same time, and the performance data of the node device in each data transmission path at the same moment is also different. Therefore, the performance data of the node device at the same moment is equal to the average value of the performance data of the node device in all data transmission paths in which it is located.
[0085] As shown in Table 1, Table 1 shows the performance data of 4 node devices in the time period of 8:00-9:00 AM.
[0086] Table 1 Performance data of four node devices during the 8:00-9:00 AM time period.
[0087] Node A Node B Node C Node D Connection success rate 100% 100% 100% 80% Data transmission delay 30ms 30ms 30ms 30ms Data loss rate 0% 1% 1% 0%
[0088] In the embodiment of the present invention, different weights are assigned to each indicator, and the performance score is obtained by weighted summing the scores corresponding to each indicator. Among them, the weight can be determined by subjective weighting method, objective weighting method, and combined weighting method. The combined weighting method is a combination of subjective weighting method and objective weighting method. The subjective weighting method is based on the experience and intention of the decision maker, and can reflect the degree of importance that users attach to different indicators. The subjective weighting method may include: hierarchical analysis method, expert estimation method; the objective weighting method is to determine the weights of each indicator based on a large amount of actual data. The objective weighting method may include: entropy value method.
[0089] It should be noted that each indicator has a full score value as a reference. For example, data transmission delay controlled within 20ms is 100 points. According to the difference between the value of each indicator and the full score, a score for each indicator is given through a certain algorithm. Specifically, the difference between the value of each indicator and the full score is divided into multiple levels, and each level corresponds to a different score. For example, data transmission delay within 20ms is 100 points, within 100ms is 80 points, within 200ms is 60 points, 200ms-1000ms is 60 to 0, and more than 1000ms is 0 points. After stratification, the score corresponding to each data transmission delay can be calculated more precisely based on the score difference between different levels and the data transmission delay time difference. Take the data transmission delay of 30ms as an example: First, from the above stratification, we can know that the score corresponding to 30ms belongs to the level of 80 points-100 points, and the score difference is 20; and the data transmission delay time difference between 20ms and 100ms is 80ms; according to the score difference / data transmission delay time difference, we can calculate the change value of the corresponding score difference for every 1ms change in the data transmission delay time difference. Therefore, 20 score difference / 80ms data transmission delay time difference = 0.25, which means that for every 1ms increase in data transmission delay, the score decreases by 0.25. 30ms increases by 10ms compared to 20ms, so it should be reduced by 2.5 points on the basis of 100 points. Therefore, when the data transmission delay is 30ms, the score of the data transmission delay indicator is 97.5 points.
[0090] The data transmission path refers to the path formed between each node device for transmitting information such as data and instructions, and is a collection formed by each node device. Therefore, by collecting all data transmission paths in the first time period, it is possible to obtain which node devices are included in each data transmission path, and then analyze which data transmission paths correspond to each node device. There is a positive correlation between the data transmission path corresponding to the node device and the load condition of the node device, that is, the more data transmission paths corresponding to the node device, the higher the load condition of the node device.
[0091] It should be noted that when data and instructions are transmitted in the data transmission path, they will carry the corresponding task ID and the node device sequence they pass through. Through the task ID and the node device sequence, it is possible to know which node device sequences the data and instructions of the task pass through, and then obtain the data transmission path. As shown in Table 2, Table 2 shows the data transmission path in the 8:00-9:00 AM time period.
[0092] Table 2 Task and node device sequence in the 8:00-9:00AM time period
[0093] Task ID Sequence 1 Sequence 2 Sequence 3 Sequence 4 10000 Node A Node B Node C Node D 10001 Node A Node D Node E Node F 10002 Node D Node F Node G Node H
[0094] As can be seen from the above table, there are three tasks in the time period of 8:00-9:00AM, forming three data transmission paths: ABCD, ADEF, and DFGH.
[0095] In an embodiment of the present invention, the first performance data and data transmission path of the node devices in each space within the historical time period are obtained, and the first performance score of the node devices in each space is calculated by assigning weights to the various indicators included in the first performance data, and the working performance of the node devices in the communication network is comprehensively reflected through the performance score. According to the data transmission path corresponding to each node device, the load condition of each node device is determined; according to the first performance score and load condition of each node device, the candidate devices in each space are determined, and some candidate devices with good working performance and low load are screened from all the node devices in each space, so as to construct a data transmission path according to the candidate devices. When data transmission is performed based on the data transmission path, the possibility of network storms in the case of data concurrency can be reduced, the efficiency of data transmission can be improved, and the stability of the communication network composed of each node device can be improved.
[0096] Optionally, constructing at least two candidate transmission paths based on the candidate device includes:
[0097] Step 21, traversing the candidate devices in each space;
[0098] Step 22: Arrange and combine the candidate devices in each space to construct at least two candidate transmission paths;
[0099] A candidate transmission path includes a candidate device in each space.
[0100] It should be noted that one candidate transmission path includes one candidate device in each space, and each candidate transmission path has a different combination of candidate devices than other candidate transmission paths.
[0101] By arranging and combining the candidate devices in each space, the number of candidate transmission paths obtained is equal to the product of the number of candidate devices in each space. For example, if the candidate devices in room A include B and C, and the candidate devices in room B include D and E, then four candidate transmission paths can be formed between room A and room B: BD, BE, CD, CE.
[0102] In an embodiment of the present invention, all node devices in each space are arranged and combined to construct candidate transmission paths. By planning the data transmission paths between the node devices in each space, network storms and other problems can be prevented, the efficiency of data transmission can be improved, and the stability of the communication network composed of the various node devices can be ensured.
[0103] Optionally, selecting a target path from the candidate paths according to a first preset condition, and performing data transmission based on the target path includes:
[0104] Step 31: Determine a target device from at least one candidate device in each space according to a preset screening strategy;
[0105] Step 32: Determine the candidate transmission path including the target device among the candidate transmission paths as the target transmission path.
[0106] Among them, the preset screening strategy refers to limiting the performance data and / or load conditions and / or the distance between physical barriers of candidate devices, and screening out a unique target device that meets the requirements from at least one candidate device. Specifically, the preset screening strategy can be a limitation on a single indicator, or a common limitation on multiple indicators. Exemplarily, the candidate device with the lowest load condition is determined as the target device from at least one candidate device in each space; considering that the closer the candidate device is to the physical barrier, the greater the impact on the propagation signal, the distance between each candidate device and the physical barrier in each space is recorded, and the candidate device with a moderate distance is used as the target device; weights are assigned to the performance data, load conditions and distance between physical barriers of the candidate device, and a comprehensive score based on the performance data, load conditions and distance between physical barriers is calculated, and the candidate device with the highest comprehensive score is used as the target device.
[0107] It should be noted that first, candidate devices are determined from each space, and then a target device is determined from at least one candidate device in each space. By screening the node devices in each space multiple times and using different standards and methods for each screening, the target device finally determined can meet more requirements.
[0108] In the embodiment of the present invention, according to the preset screening strategy, a target device is determined from at least one candidate device in each space, and the candidate transmission paths including the target devices in each space are screened out from the candidate transmission paths as the target transmission paths. Further specifying the target transmission path when data is transmitted between node devices based on the candidate transmission paths can reduce the possibility of resource conflicts when node devices are transmitting data, improve the efficiency of data transmission, and ensure the stability of the communication network composed of various node devices.
[0109] Optionally, the step 31 of determining a target device from at least one candidate device in each space according to a preset screening strategy includes:
[0110] Step 41: Filter out a first candidate device and a second candidate device from the candidate devices according to a first load condition of at least one candidate device in each space;
[0111] Step 42: Determine a target device from the first candidate device and the second candidate device according to a first load gap between the first candidate device and the second candidate device and first performance data corresponding to each of the first candidate device and the second candidate device.
[0112] In the embodiment of the present invention, the first load condition can be quantified by the number of data transmission paths where the candidate devices are located, that is, the first load gap is the difference between the numbers of data transmission paths where the candidate devices are located.
[0113] Exemplarily, the candidate devices in each space can be sorted according to the number of data transmission paths in which they are located, and the two candidate devices with the least number of data transmission paths can be selected as the first candidate device and the second candidate device, respectively. Alternatively, based on the number of data transmission paths in which each candidate device is located, the average number of data transmission paths in each space can be calculated, and the two candidate devices with the number of data transmission paths closest to the average value can be selected in each space as the first candidate device and the second candidate device, respectively.
[0114] A load gap threshold is pre-set based on experimental summary. When the load gap between the first candidate device and the second candidate device is less than the load gap threshold, it indicates that the load conditions between the first candidate device and the second candidate device are similar, and the candidate device with good first performance data is determined as the target device. When the load gap between the first candidate device and the second candidate device is greater than or equal to the load gap threshold, the candidate device with low load condition is determined as the target device.
[0115] The first performance data may be a comprehensive performance score based on the weighted sum of various indicators, or may be the value of a single indicator or the score of a single indicator. For example, the first performance data may be a packet loss rate / data transmission delay, or may be a comprehensive score obtained by assigning weights to the packet loss rate and data transmission delay and performing weighted summation.
[0116] In an embodiment of the present invention, firstly, according to the first load conditions of each candidate device in each space, the first candidate device and the second candidate device are screened out from the candidate devices; according to the load difference between the first candidate device and the second candidate device, and the first performance data corresponding to each of the first candidate device and the second candidate device, the target device is determined from the first candidate device and the second candidate device. In an embodiment of the present invention, a method is provided that takes into account the load and performance data of the candidate devices, and selects a target device whose working performance and load meet the expectations, so as to construct a target transmission path according to the target device, specify the target transmission path when data is transmitted between node devices, and reduce the possibility of resource conflicts when the node devices are transmitting data, thereby ensuring the stability of the communication network composed of various node devices.
[0117] Optionally, in step 41, selecting a first candidate device and a second candidate device from the candidate devices according to a first load condition of at least one candidate device in each space includes:
[0118] Step 51: sort the candidate devices in each space according to the first load condition of at least one candidate device in each space;
[0119] Step 52: Determine the candidate device with the highest first load condition in each space as the first candidate device;
[0120] Step 53: Determine the candidate device with the lowest first load condition in each space as the second candidate device.
[0121] Among them, the load condition of the candidate device can be reflected by the data transmission path corresponding to the candidate device. Sort the candidate devices from high to low / from low to high according to their corresponding load conditions. When the load conditions are the same, sort them according to the performance data of the candidate devices; that is, sort the candidate devices from most to least / from least to most according to the number of data transmission paths they are in, and take the candidate device with the most data transmission paths as the first candidate device, and take the candidate device with the least data transmission paths as the second candidate device.
[0122] In an embodiment of the present invention, a method for selecting two candidate devices based on a first load condition is provided, wherein the candidate devices in each space are sorted according to the first load conditions corresponding to each candidate device, and the candidate device with the highest first load condition is determined as the first candidate device, and the candidate device with the lowest first load condition is determined as the second candidate device, so that a target device can be subsequently determined from the two candidate devices, and a target transmission path can be planned for data transmission between node devices in each space to prevent resource conflicts and improve the efficiency of data transmission by each node device.
[0123] Optionally, the step 42 of determining a target device from the first candidate device and the second candidate device according to the first load gap between the first candidate device and the second candidate device and the first performance data corresponding to each of the first candidate device and the second candidate device includes:
[0124] Step 61: When the first load difference between the first candidate device and the second candidate device is greater than or equal to a first preset threshold, determine the candidate device with the lower first load as the target device;
[0125] Step 62: When the first load difference between the first candidate device and the second candidate device is less than the first preset threshold and greater than or equal to the second preset threshold, determine a target device according to the first performance data corresponding to each of the first candidate device and the second candidate device;
[0126] Step 63. When the first load difference between the first candidate device and the second candidate device is less than a second preset threshold, determine the target device according to the first efficiency scores corresponding to the first candidate device and the second candidate device respectively; wherein the efficiency score is a ratio of the first performance data of the candidate device divided by the first load condition of the candidate device.
[0127] Among them, the first load gap can be the difference between the load peak values corresponding to the first candidate device and the second candidate device respectively in the first time period; it can also be the difference between the load average values corresponding to the first candidate device and the second candidate device respectively in the first time period; it can also be the average value of the load difference between the first candidate device and the second candidate device at each time in the first time period.
[0128] The second preset threshold is less than the first preset threshold, and the first preset threshold and the second preset threshold are based on the same standard, specifically, the first preset threshold and the second preset threshold are set based on the maximum load value. For example, the first preset threshold is 60% of the maximum load value, and the second preset threshold is 30% of the maximum load value, wherein the maximum load value refers to the maximum load value that the node device can withstand when no abnormality occurs according to the experimental summary.
[0129] The first preset threshold and the second preset threshold may also refer to the percentage of the load condition corresponding to the candidate device with a higher load condition in the first candidate device and the second candidate device. For example, when the first load condition corresponding to the first candidate device is greater than the second load condition corresponding to the second candidate device, the first preset threshold and the second preset threshold may also refer to 60% of the first load condition and 30% of the first load condition, respectively.
[0130] The first performance data may be a comprehensive performance score based on the weighted sum of various indicators, or may be a score of a single indicator, or may be a value of a single indicator.
[0131] In the embodiment of the present invention, the maximum load value is set to 1000, the first preset threshold is set to 60% of the maximum load value, and the second preset threshold is set to 30% of the maximum load value. There are two rooms, room A and room B. Room A includes two candidate devices B and C, and room B includes two candidate devices D and E. It is necessary to determine the target device of room A from between B and C in room A, and determine the target device of room B from between D and E in room B. In room A, according to the first load gap between the two candidate devices B and C, and the comprehensive performance scores corresponding to the candidate devices B and C, if the load gap between the two candidate devices is more than 60% of the maximum load, such as the maximum load is 1000, that is, the load difference between the candidate devices B and C is more than 600, the candidate device with lower load is selected as the target device; if the load gap between the two candidate devices is less than 60% of the maximum load and greater than or equal to 30% of the maximum load, that is, the load difference between the candidate devices B and C is 300-600, the candidate device with higher comprehensive performance score is selected as the target device; if the load gap between the two candidate devices is less than 30% of the maximum load, that is, the load difference between the candidate devices B and C is less than 300, the candidate device with higher efficiency score is selected as the target device, where the efficiency score refers to the comprehensive performance score divided by the first load condition.
[0132] Exemplarily, as shown in Table 3, Table 3 shows the load conditions and comprehensive performance scores of the candidate devices in each space during the 8:00-9:00 AM time period.
[0133] Table 3 Load conditions and comprehensive performance scores of candidate devices during the 8:00-9:00 AM period
[0134] Candidate devices Load conditions Overall performance rating Space B 100 times 80 Room A C 250 times 75 Room A D 300 times 70 Room B E 800 times 70 Room B
[0135] The first load condition is reflected by the number of times the candidate device is used, which refers to the number of times the candidate device sends, receives, and forwards messages. In room A, the load difference between candidate device B and candidate device C is 150, so the efficiency score of candidate device B is 80 / 100=0.8 points, and the efficiency score of candidate device C node is 75 / 250=0.3. Therefore, in room A, candidate device B is used as the target device.
[0136] In an embodiment of the present invention, a method for determining a target device in three different situations is provided according to the relationship between the load gap between the first candidate device and the second candidate device and the first preset threshold and the second preset threshold. Specifically, when the load gap between the first candidate device and the second candidate device is greater than or equal to the first preset threshold, the candidate device with a low load is preferentially determined as the target device, and the data transmission path constructed according to the target device with a low load reduces the possibility of congestion. When the load gap between the first candidate device and the second candidate device is less than the first preset threshold and greater than or equal to the second preset threshold, the candidate device with good working performance is preferentially determined as the target device, wherein the second preset threshold is less than the first preset threshold; when the load gap between the first candidate device and the second candidate device is moderate, the candidate device with good working performance is determined as the target device, and the transmission speed and data integrity of the target transmission path constructed based on the target device are improved. When the load gap between the first candidate device and the second candidate device is less than the second preset threshold, the target device is determined according to the efficiency scores corresponding to the first candidate device and the second candidate device respectively; when the load gap between the first candidate device and the second candidate device is close, the target device is determined by comprehensively considering the load and working performance of the candidate device, so as to improve the speed, data integrity and stability of data transmission for the target transmission path constructed based on the target device.
[0137] Optionally, when the second performance data and the second load condition of a first node device among the node devices meet a second preset condition, replacing the first node device with a second node device in the same space as the first node device includes:
[0138] Step 71: When the second load condition of the first node device in each of the node devices is greater than or equal to a third preset threshold and the second performance data is less than or equal to a fourth preset threshold, determine a third candidate device and a fourth candidate device in each of the spaces from other candidate devices except the first node device in each of the spaces;
[0139] Step 72: Determine a second node device from the third candidate device and the fourth candidate device according to the second load gap between the third candidate device and the fourth candidate device and the second performance data corresponding to each of the third candidate device and the fourth candidate device;
[0140] Step 73: Replace the first node device with a second node device that is in the same space as the first node device.
[0141] Among them, the second performance data can be the value of a single indicator of the node device, the score of a single indicator, or a comprehensive score based on various indicators. The third preset threshold and the fourth preset threshold are pre-set by the user based on experience. When the second load condition of the first node device in each node device is greater than or equal to the third preset threshold and the second performance data is less than or equal to the fourth preset threshold, it means that the load of the first node device becomes higher and the working performance decreases. The first node device is replaced with other node devices with low load and good working performance in the same space.
[0142] Exemplarily, according to the second load conditions of each candidate device except the first node device in each space, the third candidate device and the fourth candidate device are screened out from the candidate devices; when the second load difference between the third candidate device and the fourth candidate device is greater than or equal to the first preset threshold, the candidate device with the lower second load condition is determined as the second node device. When the second load difference between the third candidate device and the fourth candidate device is less than the first preset threshold and greater than or equal to the second preset threshold, the second node device is determined according to the second performance data corresponding to the third candidate device and the fourth candidate device. When the first load difference between the third candidate device and the fourth candidate device is less than the second preset threshold, the second node device is determined according to the second efficiency score corresponding to the first candidate device and the second candidate device; wherein the second efficiency score is the ratio of the second performance data of the candidate device divided by the second load condition of the candidate device.
[0143] In an embodiment of the present invention, the performance data and load conditions of each node device on the target transmission path are monitored in real time, and a first node device whose second load condition is greater than or equal to a third preset threshold and whose second performance data is less than or equal to a fourth preset threshold is replaced by a second node device that is in the same space as the first node device. The data transmission path for communication between the node devices can be dynamically adjusted according to changes in the performance data and load conditions of the node devices, thereby reducing the possibility of packet loss caused by broadcast storms in data concurrency scenarios and improving the stability of the network composed of the node devices.
[0144] In summary, the channel optimization method provided by the embodiment of the present invention obtains the first performance data and the first load condition of the node device in each space in the first time period, determines the candidate device in each space, constructs at least two candidate transmission paths based on the candidate device, selects a target transmission path from the candidate transmission path according to the first preset condition, and performs data transmission based on the target transmission path. According to the performance data and load condition of the node devices in each space in the historical time period, the target transmission path is planned for data transmission between the node devices in each space, reducing the possibility of network storms in data concurrency scenarios. The second performance data and the second load condition of each node device on the target transmission path in the second time period are monitored in real time. When the second performance data and the second load condition of the first node device in each node device meet the second preset condition, the first node device is replaced with the second node device in the same space as the first node device. The performance data and the load condition of each node device on the target transmission path are monitored in real time. When the performance data and the load condition of the node device change, the target transmission path is dynamically planned to improve the efficiency of data transmission of each node device and improve the stability of the communication network composed of each node device.
[0145] Device Embodiment
[0146] like Figure 2 As shown, Figure 2 A logical block diagram of a channel optimization device provided by an embodiment of the present invention is shown, and the device may include:
[0147] A determination module 210, configured to obtain first performance data and first load conditions of node devices in each space within a first time period, and determine candidate devices in each space;
[0148] A construction module 220, configured to construct at least two candidate transmission paths based on the candidate device;
[0149] A selection module 230, configured to select a target transmission path from the candidate paths according to a first preset condition, and perform data transmission based on the target transmission path;
[0150] A monitoring module 240, configured to monitor in real time the second performance data and the second load condition of each node device on the target transmission path within a second time period;
[0151] The replacement module 250 is used to replace the first node device in each node device with a second node device in the same space as the first node device when the second performance data and the second load condition of the first node device meet the second preset condition; the second node device is one of the candidate devices.
[0152] Optionally, the determining module includes:
[0153] An acquisition module, used to acquire the first performance data and data transmission path of the node devices in each space within the first time period;
[0154] A first determination submodule, configured to determine a first performance score of a node device in each space according to the first performance data;
[0155] A second determining submodule, configured to determine a first load condition of the node devices in each of the spaces according to a data transmission path corresponding to the node devices;
[0156] The third determination submodule is used to determine the candidate devices in each of the spaces according to the first performance scores and the first load conditions of the node devices in each of the spaces.
[0157] Optionally, the building block includes:
[0158] A traversal module, used for traversing candidate devices in each space;
[0159] A first construction submodule is used to arrange and combine candidate devices in each space to construct at least two candidate transmission paths;
[0160] A candidate transmission path includes a candidate device in each space.
[0161] Optionally, the selection module includes:
[0162] A fourth determination submodule is used to determine a target device from at least one candidate device in each space according to a preset screening strategy;
[0163] The fifth determining submodule is configured to determine a candidate transmission path including the target device among the candidate transmission paths as the target transmission path.
[0164] Optionally, the fourth determining submodule includes:
[0165] a screening module, configured to screen out a first candidate device and a second candidate device from the candidate devices according to a first load condition of at least one candidate device in each space;
[0166] The sixth determination submodule is used to determine a target device from the first candidate device and the second candidate device according to the first load gap between the first candidate device and the second candidate device, and the first performance data corresponding to each of the first candidate device and the second candidate device.
[0167] Optionally, the screening module includes:
[0168] A sorting module, configured to sort the candidate devices in each space according to a first load condition of at least one candidate device in each space;
[0169] A seventh determination submodule, configured to determine the candidate device with the highest first load condition in each space as the first candidate device;
[0170] The eighth determination submodule is used to determine the candidate device with the lowest first load condition in each space as the second candidate device.
[0171] Optionally, the fifth determining submodule includes:
[0172] a ninth determination submodule, configured to determine the candidate device with the lower first load as a target device when the first load difference between the first candidate device and the second candidate device is greater than or equal to a first preset threshold;
[0173] a tenth determination submodule, configured to determine a target device according to first performance data corresponding to each of the first candidate device and the second candidate device when the first load difference between the first candidate device and the second candidate device is less than the first preset threshold and greater than or equal to the second preset threshold;
[0174] An eleventh determination submodule is used to determine a target device according to the first efficiency scores corresponding to the first candidate device and the second candidate device respectively when the first load difference between the first candidate device and the second candidate device is less than a second preset threshold; wherein the efficiency score is a ratio of the first performance data of the candidate device divided by the first load condition of the candidate device.
[0175] Optionally, the replacement module includes:
[0176] A twelfth determination submodule, configured to determine a third candidate device and a fourth candidate device in each space from other node devices except the first node device in each space when the second load condition of the first node device in each node device is greater than or equal to a third preset threshold and the second performance data is less than or equal to a fourth preset threshold;
[0177] A thirteenth determination submodule, configured to determine a second node device from the third candidate device and the fourth candidate device according to a second load gap between the third candidate device and the fourth candidate device and second performance data corresponding to each of the third candidate device and the fourth candidate device;
[0178] The replacement submodule is used to replace the first node device with a second node device in the same space as the first node device.
[0179] In summary, the channel optimization device provided by the embodiment of the present invention obtains the first performance data and the first load condition of the node device in each space within the first time period, determines the candidate devices in each space; constructs at least two candidate transmission paths based on the candidate devices; selects a target transmission path from the candidate transmission paths according to the first preset condition, and transmits data based on the target transmission path; monitors the second performance data and the second load condition of each node device on the target transmission path in real time within the second time period; when the second performance data and the second load condition of the first node device in each node device meet the second preset condition, replaces the first node device with the second node device in the same space as the first node device. By dynamically planning the transmission path for each node device to perform data transmission, the possibility of network storms in data concurrency scenarios is reduced, and the speed and stability of each node device when performing data transmission are improved.
[0180] The channel optimization device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a GPU BOX, a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0181] The channel optimization device provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0182] Alternatively, if Figure 3 As shown, an embodiment of the present application also provides an electronic device, including a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the various steps of the above-mentioned channel optimization method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0183] In an embodiment of the present application, the memory may be used to store software programs and various data. The memory may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory may include a volatile memory or a non-volatile memory, or the memory may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory in the embodiments of the present application includes but is not limited to these and any other suitable types of memory.
[0184] The processor may include one or more processing units; optionally, the processor integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to the operating system, user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor.
[0185] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned channel optimization method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0186] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0187] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned channel optimization method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0188] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises one..." does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0189] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the relevant technology, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0190] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A channel optimization method, characterized in that: Applied to electronic equipment, the method comprises: Acquire first performance data and first load conditions of node devices in each space within a first time period, and determine candidate devices in each space; constructing at least two candidate transmission paths based on the candidate devices; Selecting a target transmission path from the candidate transmission paths according to a first preset condition, and performing data transmission based on the target transmission path; Real-time monitoring of second performance data and second load conditions of each node device on the target transmission path within a second time period; When the second performance data and the second load condition of the first node device among the node devices meet the second preset condition, the first node device is replaced by a second node device in the same space as the first node device; the second node device is one of the candidate devices.
2. The method according to claim 1, characterized in that The acquiring first performance data and first load conditions of node devices in each space within a first time period, and determining candidate devices in each space, includes: Acquire the first performance data and data transmission path of the node devices in each space within the first time period; Determine a first performance score of the node devices in each space according to the first performance data; Determining a first load condition of the node devices in each of the spaces according to a data transmission path corresponding to the node devices; Determine candidate devices in each of the spaces according to the first performance scores and the first load conditions of the node devices in each of the spaces.
3. The method according to claim 1, characterized in that The constructing at least two candidate transmission paths based on the candidate device includes: Traversing candidate devices in each of the spaces; Arrange and combine candidate devices in each space to construct at least two candidate transmission paths; A candidate transmission path includes a candidate device in each space.
4. The method according to claim 1, characterized in that: The selecting a target path from the candidate paths according to the first preset condition, and performing data transmission based on the target path, comprises: According to a preset screening strategy, a target device is determined from at least one candidate device in each space; A candidate transmission path including the target device among the candidate transmission paths is determined as the target transmission path.
5. The method according to claim 4, characterized in that The step of determining a target device from at least one candidate device in each space according to a preset screening strategy includes: Filtering a first candidate device and a second candidate device from the candidate devices according to a first load condition of at least one candidate device in each space; A target device is determined from the first candidate device and the second candidate device according to a first load gap between the first candidate device and the second candidate device and first performance data corresponding to each of the first candidate device and the second candidate device.
6. The method according to claim 5, characterized in that The selecting a first candidate device and a second candidate device from the candidate devices according to a first load condition of at least one candidate device in each space includes: sorting the candidate devices in each space according to a first load condition of at least one candidate device in each space; Determine the candidate device with the highest first load condition in each of the spaces as the first candidate device; The candidate device with the lowest first load condition in each of the spaces is determined as the second candidate device.
7. The method according to claim 5, characterized in that The determining a target device from the first candidate device and the second candidate device according to the first load gap between the first candidate device and the second candidate device and the first performance data corresponding to each of the first candidate device and the second candidate device includes: When a first load difference between the first candidate device and the second candidate device is greater than or equal to a first preset threshold, determining the candidate device with the lower first load as the target device; When the first load difference between the first candidate device and the second candidate device is less than the first preset threshold and greater than or equal to the second preset threshold, determining a target device according to first performance data corresponding to each of the first candidate device and the second candidate device; When the first load gap between the first candidate device and the second candidate device is less than a second preset threshold, the target device is determined according to the first efficiency scores corresponding to the first candidate device and the second candidate device respectively; wherein the first efficiency score is a ratio of the first performance data of the candidate device divided by the first load condition of the candidate device.
8. The method according to claim 1, characterized in that When the second performance data and the second load condition of the first node device in each of the node devices meet the second preset condition, replacing the first node device with a second node device in the same space as the first node device includes: When the second load condition of the first node device in each of the node devices is greater than or equal to a third preset threshold and the second performance data is less than or equal to a fourth preset threshold, determining a third candidate device and a fourth candidate device in each of the spaces from other candidate devices except the first node device in each of the spaces; Determine a second node device from the third candidate device and the fourth candidate device according to the second load gap between the third candidate device and the fourth candidate device and the second performance data corresponding to each of the third candidate device and the fourth candidate device; The first node device is replaced by a second node device that is in the same space as the first node device.
9. A channel optimization device, characterized in that: include: A determination module, configured to obtain first performance data and first load conditions of node devices in each space within a first time period, and determine candidate devices in each space; A construction module, configured to construct at least two candidate transmission paths based on the candidate devices; A selection module, configured to select a target transmission path from the candidate paths according to a first preset condition, and perform data transmission based on the target transmission path; A monitoring module, used for monitoring in real time the second performance data and the second load condition of each node device on the target transmission path within a second time period; a replacement module, configured to replace a first node device among the node devices with a second node device in the same space as the first node device if the second performance data and the second load condition of the first node device meet a second preset condition; The second node device is one of the candidate devices.
10. An electronic device, characterized in that: The electronic device comprises a processor, a memory, a communication interface and a communication bus, and the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store executable instructions, and the executable instructions enable the processor to execute the channel optimization method as described in any one of 1 to 8.
11. A readable storage medium, characterized in that: When the instructions or transactions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the channel optimization method according to any one of claims 1 to 8.
12. A computer program product, characterized in that The method comprises instructions or transactions, which, when executed by a processor in an electronic device, enable the electronic device to execute the channel optimization method according to any one of claims 1 to 8.
Citation Information
Cited By
Intelligent park enterprise management system based on Internet of Things
CN120931039A
Iot-based park intelligent enterprise management system
CN120931039B
