A redundant network communication method and system
By introducing a variety of communication terminals, routing devices and controllers into the redundant network of smart buildings, and allocating communication resources based on communication needs and priorities, the problem of internal interference of redundant networks is solved, and the operation effect and data interaction efficiency are improved.
Patent Information
- Application Number
- CN202411258008.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-09
- Publication Date
- 2025-06-10
- Estimated Expiration
- 2044-09-09
AI Technical Summary
The redundant networks in smart buildings interfere with each other, causing data interaction to be blocked and affecting the operating state.
By introducing a variety of communication terminals, routing devices and controllers into the redundant network of smart buildings, each communication terminal is connected to at least one routing device, and each routing device is connected to the controller. The controller determines the operating parameters of each routing device, such as frequency, channel, power and time period, based on the communication requirements and priorities of each communication terminal to avoid mutual interference.
Through reasonable allocation of communication resources, avoid mutual interference between communication terminals or routing equipment, and improve the operation effect of smart buildings and data interaction efficiency.
Smart Images

Figure CN118869162B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technologies, and in particular, to a redundant network communication method and system. Background Art
[0002] A Smart Building refers to the use of advanced technologies such as the Internet of Things (IoT), big data, cloud computing, and artificial intelligence (AI) to integrate various systems and services within a building to achieve functions such as efficient building management, energy conservation and emission reduction, safety and comfort. The goal of a Smart Building is to create a sustainable and intelligent living and working environment. The key components of a Smart Building include sensors and actuators, automation systems, communication networks, and data analysis and management platforms, etc. These devices usually need to interact with external devices to form a redundant network with redundant devices and links to achieve intelligent management and operation of the building.
[0003] However, due to the limited space within a Smart Building and the large variety and quantity of devices that need to communicate, when multiple devices within the Smart Building communicate with the outside simultaneously, interference may occur among them, resulting in obstacles to the data interaction between the Smart Building and the outside and affecting the operating state. Summary of the Invention
[0004] Embodiments of the present invention provide a redundant network communication method and system to solve the problem of mutual interference within the redundant network in a Smart Building.
[0005] In a first aspect, embodiments of the present invention provide a redundant network communication method. This redundant network is applied to a Smart Building and includes multiple communication terminals, multiple routing devices, and a controller. Each communication terminal is connected to at least one routing device, and each routing device is connected to the controller; the method includes:
[0006] Each communication terminal respectively selects its corresponding routing device based on the built-in routing selection algorithm and sends the communication data to the corresponding routing device;
[0007] Each routing device respectively determines the communication requirements of each communication terminal based on the received communication data and sends them to the controller; where the communication requirements include the communication data volume and the communication target;
[0008] The controller determines the working parameters of each routing device based on the communication requirements and priorities of each communication terminal and sends them to each routing device; where the working parameters of the routing device include frequency, channel, power, and time period.
[0009] In a possible implementation manner, the controller determines the working parameters of each routing device based on the communication requirements and priorities of each communication terminal, including:
[0010] Sort each communication terminal based on the communication data volume and priority of each communication terminal to obtain an initial sorting scheme;
[0011] Swap the order of each communication terminal in the initial sorting scheme to obtain multiple communication terminal sorting schemes;
[0012] For each communication terminal sorting scheme, based on the communication requirements of each communication terminal, determine the corresponding routing device and the working parameters of the routing device for each communication terminal in sequence to obtain a candidate communication resource allocation scheme corresponding to the communication terminal sorting scheme;
[0013] Calculate the terminal communication metrics and network communication metrics corresponding to each candidate communication resource allocation scheme, and determine the target communication resource allocation scheme among the candidate communication resource allocation schemes based on each terminal communication metric and each network communication metric to obtain the working parameters of each routing device.
[0014] In a possible implementation, sorting each communication terminal based on the communication data volume and priority of each communication terminal to obtain an initial sorting scheme includes:
[0015] Calculate the product of the communication data volume and the priority of each communication terminal as the sorting score of the communication terminal;
[0016] Sort each communication terminal in descending order of the sorting score to obtain an initial sorting scheme.
[0017] In a possible implementation, swapping the order of each communication terminal in the initial sorting scheme to obtain multiple communication terminal sorting schemes includes:
[0018] Based on a sliding window, select a swapping order range in the initial sorting scheme, and swap the order of the communication terminals within the sliding window to obtain multiple communication terminal sorting schemes.
[0019] In a possible implementation, for each communication terminal sorting scheme, determining the corresponding routing device and the working parameters of the routing device for each communication terminal in sequence to obtain a candidate communication resource allocation scheme corresponding to the communication terminal sorting scheme includes:
[0020] Based on the currently available frequency band, currently available channel, and currently available time period, determine the corresponding routing device and the working parameters of the routing device for the communication terminal with the serial number 1 in the first communication terminal sorting scheme; wherein, the first communication terminal sorting scheme is any communication terminal sorting scheme;
[0021] Update the currently available frequency bands, currently available channels, and currently available time periods, and increment the serial number of the communication terminal by 1 as the current communication terminal. Based on the updated available frequency bands, available channels, and available time periods, determine the corresponding routing device and the operating parameters of the routing device for the current communication terminal. Repeat this step until the routing devices and the operating parameters of the routing devices corresponding to all communication terminals in the first communication terminal sorting scheme are determined, obtaining a candidate communication resource allocation scheme corresponding to the first communication terminal sorting scheme.
[0022] In a possible implementation, calculate the network communication metrics and terminal communication metrics corresponding to each candidate communication resource allocation scheme, including:
[0023] For each communication terminal in the candidate communication resource allocation scheme corresponding to the first communication terminal sorting scheme, calculate the expected transmission time, expected transmission count, and communication energy consumption corresponding to this communication terminal based on the operating parameters of the routing device corresponding to this communication terminal; wherein, the first communication terminal sorting scheme is any communication terminal sorting scheme;
[0024] Based on the expected transmission time, expected transmission count, and communication energy consumption corresponding to each communication terminal in the candidate communication resource allocation scheme corresponding to the first communication terminal sorting scheme, calculate the expected transmission time, expected transmission count, and communication energy consumption corresponding to the candidate communication resource allocation scheme corresponding to the first communication terminal sorting scheme.
[0025] In a possible implementation, the calculation formula for the expected transmission count of a communication terminal is:
[0026]
[0027] Wherein, is the expected transmission count of the communication terminal, is the weight of the historical transmission count, is the weight of the most recent test transmission count;
[0028] The calculation formula for the expected transmission time of a communication terminal is:
[0029]
[0030] Wherein, is the expected transmission time of the communication terminal;
[0031] The calculation formula for the communication energy consumption of a communication terminal is:
[0032]
[0033] Wherein, is the communication energy consumption of the communication terminal, is the transmission power.
[0034] In a possible implementation, determining a target communication resource allocation scheme from various candidate communication resource allocation schemes based on each terminal communication metric and each network communication metric includes:
[0035] For each candidate communication resource allocation scheme, sort the terminal communication metrics of each communication terminal in the candidate communication resource allocation scheme, and calculate the permutation distance between the sorted terminal communication metrics and the initial sorting scheme as the first score of the candidate communication resource allocation scheme;
[0036] For each candidate communication resource allocation scheme, calculate the sum of the expected transmission time, the expected number of transmissions, and the communication energy consumption corresponding to the candidate communication resource allocation scheme as the second score of the candidate communication resource allocation scheme;
[0037] For each candidate communication resource allocation scheme, calculate the comprehensive score of the candidate communication resource allocation scheme based on the first score weight, the second score weight, the first score, and the second score of the candidate communication resource allocation scheme;
[0038] Determine the candidate communication resource allocation scheme with the lowest comprehensive score as the target communication resource allocation scheme.
[0039] In a second aspect, an embodiment of the present invention provides a redundant network communication system. This redundant network is applied to a smart building. The redundant network communication system includes multiple communication terminals, multiple routing devices, and a controller. Each communication terminal is connected to at least one routing device, and each routing device is connected to the controller;
[0040] Each communication terminal is respectively used to select its corresponding routing device based on a built-in routing selection algorithm and send communication data to the corresponding routing device;
[0041] Each routing device is respectively used to determine the communication requirements of each communication terminal based on the received communication data and send them to the controller; where the communication requirements include the communication data volume and the communication target;
[0042] The controller is used to determine the working parameters of each routing device based on the communication requirements and priorities of each communication terminal and send them to each routing device; where the working parameters of the routing device include frequency, channel, power, and time period.
[0043] An embodiment of the present invention provides a redundant network communication method and system. After each communication terminal selects its corresponding routing device and sends communication data to the corresponding routing device, each routing device extracts the communication requirements of the communication terminal included in each communication data and sends them to the controller. Then, the controller allocates communication resources based on the communication requirements and priorities of each communication terminal, determines the operating frequency, channel, power, and time period of each routing device. When multiple communication devices need to transmit data simultaneously, through reasonable communication resource allocation, interference between each communication terminal or routing device can be avoided, thereby improving the operation effect of the intelligent building. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for use in the embodiments or the description of the prior art. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0045] Figure 1 is a flowchart of the implementation of the redundant network communication method provided by the embodiment of the present invention;
[0046] Figure 2 is a schematic structural diagram of the redundant network communication system provided by the embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0047] In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present invention. However, those skilled in the art should clearly understand that the present invention can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from interfering with the description of the present invention.
[0048] To make the objectives, technical solutions, and advantages of the present invention clearer, the following will be described through specific embodiments in conjunction with the drawings.
[0049] See Figure 1 , which shows a flowchart of the implementation of the redundant network communication method provided by the embodiment of the present invention, and is described in detail as follows:
[0050] This redundant network is applied to an intelligent building and includes multiple communication terminals, multiple routing devices, and a controller. Each communication terminal is connected to at least one routing device, and each routing device is connected to the controller; this method includes:
[0051] Step 101: Each communication terminal respectively selects its corresponding routing device based on the built-in routing algorithm, and sends the communication data to the corresponding routing device.
[0052] In this embodiment, the types of communication terminals in the intelligent building may include:
[0053] Temperature and humidity sensors, light sensors, air quality sensors, etc. collect environmental data;
[0054] Actuators such as intelligent lights, automatic curtains, intelligent air conditioners, etc. adjust the environment according to the feedback of the sensors;
[0055] The building automation system (BAS) manages the mechanical and electrical equipment of the building, such as elevators, ventilation systems, heating and cooling systems, etc.;
[0056] Security systems, including access control, closed-circuit television monitoring (CCTV), intrusion alarms, etc.;
[0057] Data acquisition and analysis platform, used to process data from sensors, and optimize building management through machine learning algorithms;
[0058] Integrated management system, which helps property managers to centrally control various functions of the building;
[0059] Mobile applications or web pages, which allow users to remotely control and monitor building facilities;
[0060] Provide value-added services, such as meeting room reservation, parking management, visitor registration, etc.;
[0061] Monitor and optimize energy usage through smart meters and energy management systems;
[0062] Automation control system, which adjusts energy consumption according to actual needs, such as adjusting lighting and temperature according to the number of people indoors;
[0063] Intelligent temperature control system, which automatically adjusts according to the indoor and outdoor temperature changes;
[0064] Air quality monitoring and purification system, which ensures fresh indoor air;
[0065] Intelligent security system, which uses technologies such as face recognition and behavior analysis to improve security;
[0066] Emergency response system, which can quickly respond in case of emergencies such as fires and earthquakes;
[0067] Predictive maintenance, which uses data analysis to predict equipment failures and arranges maintenance in advance;
[0068] Remote diagnosis and repair, which reduces downtime and improves the availability of facilities.
[0069] For the above-mentioned devices, intelligent buildings usually have a complete wired and wireless network infrastructure and use communication technologies such as Wi-Fi, Zigbee, Bluetooth, LoRaWAN, etc. to support the interconnection and interoperability of various devices in the building.
[0070] Since each communication terminal independently completes its own data collection and processing work and usually has a routing algorithm built in, when data transmission communication is required, the communication data to be transmitted will be directly sent to the routing device.
[0071] Step 102: Each routing device respectively determines the communication requirements of each communication terminal based on the received communication data and sends them to the controller; among them, the communication requirements include the amount of communication data and the communication target.
[0072] In this embodiment, the routing devices in the intelligent building are an important part to ensure smooth and efficient internal network connection of the building. These devices are not only responsible for forwarding data packets between the internal networks of the building and between the building and external devices, but also often integrate additional functions such as security, management functions, and connection management of Internet of Things (IoT) devices.
[0073] The following are several routing devices that may be used in intelligent buildings and an overview of their functions:
[0074] 1.4G Industrial Router
[0075] The 4G industrial router is a router designed specifically for industrial environments. It can provide high-speed wireless Internet connections and support multiple industrial standards and protocols. In an intelligent building, this type of router can achieve:
[0076] Unattended operation.
[0077] Remote management and fault detection.
[0078] Unified control of multiple access control systems.
[0079] Real-time monitoring function.
[0080] 2. BACnet Building Automation Router
[0081] BACnet (Building Automation and Control networks) is a protocol widely used in building automation systems. The BACnet building automation router can achieve the interconnection and interoperability of different building automation systems, enabling better cooperation between different devices. This type of router usually has:
[0082] The ability to support the BACnet protocol.
[0083] The IP routing function enables communication between different subnets.
[0084] It may also include some functions specific to the building automation field.
[0085] 3. Internet of Things (IoT) Host
[0086] The IoT host plays a key role in device connection and data collection in a smart building. It usually has the following characteristics:
[0087] Supports multiple communication protocols such as Wi-Fi, Zigbee, Bluetooth, LoRa, etc.
[0088] Establishes connections with various devices, including lighting devices, air conditioning systems, security devices, sensors, etc.
[0089] Provides data processing capabilities, including data storage, analysis, etc.
[0090] 4. Switches and Routers
[0091] In a smart building, in addition to dedicated industrial routers, ordinary switches and routers also play important roles. They are responsible for:
[0092] Enabling networking and data transmission between devices.
[0093] Network segmentation to improve network security.
[0094] Load balancing to ensure data transmission efficiency.
[0095] After each routing device obtains the communication data sent by the communication terminal, it can extract the key information that affects the communication resource allocation from it, mainly the communication data volume and the communication target. Specifically, the larger the communication data volume, the longer the required communication duration and the greater the communication energy consumption, and the communication target will affect the available communication links of the routing device.
[0096] Step 103, the controller determines the working parameters of each routing device based on the communication requirements and priorities of each communication terminal and sends them to each routing device; among them, the working parameters of the routing device include frequency, channel, power, and time period.
[0097] In this embodiment, the controller is connected to each routing device, summarizes and overall plans the work content of each routing device, allocates resources for the communication data to be transmitted by each communication terminal according to the communication requirements and priorities of each communication terminal, and realizes the optimization of redundant network communication from a global perspective.
[0098] Specifically, if multiple wireless communication devices are used in a smart building and they transmit data simultaneously, interference may occur. This interference may reduce the communication quality, resulting in data transmission errors or delays. The following are several situations that may cause interference:
[0099] Frequency overlap - Different wireless communication technologies may operate in the same frequency band. For example, both Wi-Fi and Bluetooth often use the 2.4 GHz band. If multiple devices transmit data simultaneously in this band, signal collisions may occur, resulting in interference.
[0100] Power intensity - Some wireless devices have a high transmission power, which may interfere with other devices using the same or adjacent frequency bands in the vicinity. For example, a high-power Wi-Fi router may affect the normal operation of Zigbee or Z-Wave devices.
[0101] Concurrent transmission - When multiple devices attempt to send data at the same time, if there is no effective coordination mechanism, conflicts may occur.
[0102] To avoid or mitigate these interferences, the following measures can be taken:
[0103] Spectrum management - Allocate different frequency bands to different communication technologies and try to avoid using the same frequency range.
[0104] Channel planning - For technologies operating in the same frequency band (such as Wi-Fi), select non-overlapping channels for configuration to reduce interference between channels.
[0105] Power control - Adjust the transmission power of the device so that the signal strength is sufficient to cover the required area but does not spill over into the working range of other devices.
[0106] In the embodiments of the present invention, after each communication terminal selects its corresponding routing device and sends the communication data to the corresponding routing device, each routing device extracts the communication requirements of the communication terminal included in each communication data and sends them to the controller. Then, the controller allocates communication resources based on the communication requirements and priorities of each communication terminal, determines the working frequencies, channels, powers, and time periods of each routing device. When multiple communication devices need to transmit data simultaneously, through reasonable communication resource allocation, interference between each communication terminal or routing device can be avoided, thereby improving the operation effect of the smart building.
[0107] In a possible implementation manner, the controller determines the working parameters of each routing device based on the communication requirements and priorities of each communication terminal, including:
[0108] Sort each communication terminal based on the communication data volume and priority of each communication terminal to obtain an initial sorting scheme;
[0109] Swap the order of each communication terminal in the initial sorting scheme to obtain multiple communication terminal sorting schemes;
[0110] For each communication terminal sorting scheme, based on the communication requirements of each communication terminal, determine the corresponding routing device and the working parameters of the routing device for each communication terminal in sequence, and obtain the candidate communication resource allocation scheme corresponding to this communication terminal sorting scheme;
[0111] Calculate the terminal communication metrics and network communication metrics corresponding to each candidate communication resource allocation scheme, and determine the target communication resource allocation scheme among the candidate communication resource allocation schemes based on each terminal communication metric and each network communication metric, so as to obtain the working parameters of each routing device.
[0112] In this embodiment, the priority of the communication terminal is a preset value, and the priority is usually set according to the importance of the data processed by each communication terminal. For example, the communication terminal used for security data collection and upload should have a higher priority than the communication terminal for environmental data collection and upload. After sorting each communication terminal based on the communication data volume and priority of each communication terminal to obtain the initial sorting scheme, the order in the initial sorting scheme can be used as the communication data transmission order, and communication resources are preferentially allocated to important communication data.
[0113] The initial sorting scheme does not necessarily achieve the best overall communication effect. Therefore, the order of each communication terminal in the initial sorting scheme can be swapped within a certain range to expand a variety of possible communication resource allocation schemes, achieve a globally optimal allocation scheme, and avoid falling into a local optimal solution that only meets the communication requirements of a single communication terminal.
[0114] The terminal communication metrics and network communication metrics are respectively used to evaluate the communication effect of a single communication terminal and the entire redundant network under a certain communication resource allocation scheme. Through the terminal communication metrics and network communication metrics, the individual effect and overall effect of the communication resource allocation scheme can be taken into account.
[0115] In a possible implementation manner, sorting each communication terminal based on the communication data volume and priority of each communication terminal to obtain the initial sorting scheme includes:
[0116] Calculate the product of the communication data volume and the priority of each communication terminal as the sorting score of this communication terminal;
[0117] Sort each communication terminal in descending order of the sorting score to obtain the initial sorting scheme.
[0118] In this embodiment, the larger the communication data volume of the communication terminal, the greater the required data transmission duration, bandwidth, and energy consumption. Therefore, the allocation effect of communication resources for communication terminals with a large communication data volume should be considered first. The higher the priority of the communication terminal, the more important the data to be transmitted. Therefore, the communication resources should be allocated to this communication terminal first. Therefore, by using the product of the communication data volume and the priority as the sorting score of the communication terminal, a reasonable sorting of the communication terminals can be achieved, which is convenient for obtaining a better communication resource allocation effect.
[0119] In a possible implementation, by swapping the order of each communication terminal in the initial sorting scheme, multiple communication terminal sorting schemes are obtained, including:
[0120] Based on a sliding window, a swapping order range is selected in the initial sorting scheme, and the order of the communication terminals within the sliding window is swapped to obtain multiple communication terminal sorting schemes.
[0121] In this embodiment, to avoid impossible communication terminal sorting schemes, such as arranging the communication terminal with the highest priority and the largest communication data volume at the last position, a certain range of communication terminals can be selected by a fixed-size sliding window for order swapping. For example, there are 10 communication terminals with IDs 1, 2, 3, 4, 5, 6, 7, 8, 9, and 10 participating in the communication resource allocation, and the obtained initial sorting scheme is 12345678910. Then, a sliding window with a width of 3 can be used for order swapping. The sliding window slides backward from the first position of the initial sorting scheme, and the order of the communication terminals within the window is randomly changed to generate communication terminal sorting schemes: 13245678910, 23145678910,..., 12365478910,..., 12345671098, etc. The width of the sliding window and the number of generated communication terminal sorting schemes can be set according to the actual situation.
[0122] In a possible implementation, for each communication terminal sorting scheme, the corresponding routing device and the working parameters of the routing device for each communication terminal are determined in sequence to obtain the candidate communication resource allocation scheme corresponding to this communication terminal sorting scheme, including:
[0123] Based on the currently available frequency band, currently available channel, and currently available time period, the routing device corresponding to the communication terminal with the serial number 1 in the first communication terminal sorting scheme and the working parameters of the routing device are determined; where the first communication terminal sorting scheme is any communication terminal sorting scheme;
[0124] Update the currently available frequency bands, currently available channels, and currently available time periods, and increment the serial number of the communication terminal by 1 as the current communication terminal. Based on the updated available frequency bands, available channels, and available time periods, determine the corresponding routing device and the operating parameters of the routing device for the current communication terminal. Repeat this step until the routing devices and the operating parameters of the routing devices corresponding to all communication terminals in the first communication terminal sorting scheme are determined, and obtain the candidate communication resource allocation scheme corresponding to the first communication terminal sorting scheme.
[0125] In this embodiment, according to the serial numbers in the communication terminal sorting scheme, allocate the currently optional and optimal communication resources such as frequency bands, channels, and time periods to each communication terminal in turn. Specifically, first determine the communication resources of the communication terminal with serial number 1, and then remove the communication resources allocated to the communication terminal with serial number 1 from the original available frequency bands, available channels, and available time periods, complete the update of the available frequency bands, available channels, and available time periods, and select the optimal communication resources for the communication terminal with serial number 2 in the updated available frequency bands, available channels, and available time periods, and so on, until the communication resource allocation for all communication terminals is completed. This method can preferentially allocate the most suitable communication resources to the most important communication terminals, and there is no resource conflict between communication terminals, achieving a better communication effect.
[0126] In a possible implementation, calculate the network communication metrics and terminal communication metrics corresponding to each candidate communication resource allocation scheme, including:
[0127] For each communication terminal in the candidate communication resource allocation scheme corresponding to the first communication terminal sorting scheme, calculate the expected transmission time, expected transmission times, and communication energy consumption corresponding to this communication terminal based on the operating parameters of the routing device corresponding to this communication terminal; where the first communication terminal sorting scheme is any communication terminal sorting scheme;
[0128] Based on the expected transmission time, expected transmission times, and communication energy consumption corresponding to each communication terminal in the candidate communication resource allocation scheme corresponding to the first communication terminal sorting scheme, calculate the expected transmission time, expected transmission times, and communication energy consumption corresponding to the candidate communication resource allocation scheme corresponding to the first communication terminal sorting scheme.
[0129] In this embodiment, the sum of the expected transmission times corresponding to each communication terminal in the candidate communication resource allocation scheme is the expected transmission time corresponding to the candidate communication resource allocation scheme; the average value of the expected transmission times corresponding to each communication terminal in the candidate communication resource allocation scheme is the expected transmission times corresponding to the candidate communication resource allocation scheme; the sum of the communication energy consumption corresponding to each communication terminal in the candidate communication resource allocation scheme is the communication energy consumption corresponding to the candidate communication resource allocation scheme.
[0130] The expected transmission time, expected transmission times, and communication energy consumption corresponding to the candidate communication resource allocation scheme can describe the quality of the communication effect produced by the candidate communication resource allocation scheme in the entire redundant network.
[0131] In a possible implementation, the calculation formula for the expected transmission times of the communication terminal is:
[0132]
[0133] where is the expected transmission times of the communication terminal, is the weight of the historical transmission times, is the weight of the most recent test transmission times;
[0134] The calculation formula for the expected transmission time of the communication terminal is:
[0135]
[0136] where is the expected transmission time of the communication terminal;
[0137] The calculation formula for the communication energy consumption of the communication terminal is:
[0138]
[0139] where is the communication energy consumption of the communication terminal, is the transmission power.
[0140] In this embodiment, during the idle period, the controller can control each routing device to send probe messages to internal or external communication targets with different working parameters to test the expected transmission times of each routing device. Since the period corresponding to the historical transmission times is relatively early and has little reference significance, and the most recent test transmission times are closer to the current channel state, the weight of the historical transmission times can be set to a smaller value, and the weight of the most recent test transmission times can be set to a larger value. For example, set = 0.25, = 0.75. It can also be set according to the actual situation.
[0141] The expected transmission times refer to the average number of transmissions required to successfully transmit a data packet to the destination address. In a wireless communication network, due to the uncertainty and interference of the channel, the data packet may need to be retransmitted multiple times to ensure successful transmission. The expected transmission times can describe the stability and reliability of the channel.
[0142] The expected transmission time refers to the average time required to successfully transmit a data packet. This involves the actual time of data packet transmission plus the possible retransmission time.
[0143] Communication energy consumption refers to the energy consumption required to complete a data transmission.
[0144] Through the above three indicators, the communication effect generated by the communication resource allocation scheme can be comprehensively described.
[0145] In a possible implementation, based on each terminal communication indicator and each network communication indicator, determine the target communication resource allocation scheme among each candidate communication resource allocation scheme, including:
[0146] For each candidate communication resource allocation scheme, sort the terminal communication indicators of each communication terminal in the candidate communication resource allocation scheme, and calculate the permutation distance between the sorted terminal communication indicators and the initial sorting scheme as the first score of the candidate communication resource allocation scheme;
[0147] For each candidate communication resource allocation scheme, calculate the sum of the expected transmission time, expected transmission times, and communication energy consumption corresponding to the candidate communication resource allocation scheme as the second score of the candidate communication resource allocation scheme;
[0148] For each candidate communication resource allocation scheme, calculate the comprehensive score of the candidate communication resource allocation scheme based on the first score weight, the second score weight, the first score, and the second score of the candidate communication resource allocation scheme;
[0149] Determine the candidate communication resource allocation scheme with the lowest comprehensive score as the target communication resource allocation scheme.
[0150] In this embodiment, the permutation distance is used to represent the degree of difference between two permutations. The first score describes whether the sorting of the communication effects of each communication terminal is consistent with the sorting of the importance of each communication terminal. The smaller the permutation distance, the higher the degree of consistency, indicating that the corresponding candidate communication resource allocation scheme is more reasonable. Commonly used permutation distance calculation methods include:
[0151] 1. Hamming Distance:
[0152] For permutations of the same length, the Hamming distance refers to the number of elements that are different at the corresponding positions.
[0153] For example, the Hamming distance between the permutations (1, 2, 3) and (1, 3, 2) is 2 because the elements in the second and third positions are different.
[0154] 2. Number of Inversions:
[0155] This concept is used to measure the "disorder" degree of a permutation relative to the natural order (i.e., the increasing order). An inversion pair is a pair of elements (i, j), where i < j but the i-th element in the permutation is greater than the j-th element.
[0156] To transform from one permutation to another, you need to swap these inversion pairs. The number of inversion pairs can be used to measure the distance between two permutations.
[0157] 3. Kendall tau distance:
[0158] The Kendall tau distance is another way to measure the difference between two permutations, which calculates the number of inconsistent inversion pairs in the two permutations.
[0159] If two permutations are exactly the same, the Kendall tau distance is 0; if they are completely different (i.e., one is the reverse of the other), the distance is the maximum.
[0160] 4. Levenshtein distance:
[0161] Although the Levenshtein distance is more commonly used for strings, it can also be applied to permutations by calculating how many insertion, deletion, or replacement operations are needed to transform one permutation into another.
[0162] 5. Distance in the permutation group:
[0163] In combinatorics, the distance can be defined by calculating the minimum number of adjacent element swaps (i.e., transpositions) needed to transform one permutation into another. The specific way to calculate the sorting distance can be selected according to actual needs and actual effects.
[0164] The second score is used to describe the quality of the communication effect generated by the candidate communication resource allocation scheme in the entire redundant network.
[0165] Combining the first score and the second score to select the target communication resource allocation scheme can take into account the importance of each communication terminal and the communication effect of the entire redundant network.
[0166] It should be understood that the magnitudes of the sequence numbers of the steps in the above embodiments do not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
[0167] The following are system embodiments of the present invention. For details not described in detail, reference can be made to the corresponding method embodiments above.
[0168] Figure 2The structural schematic diagram of the redundant network communication system provided by the embodiment of the present invention is shown. For the convenience of description, only the parts related to the embodiment of the present invention are shown and are described in detail as follows:
[0169] As Figure 2 shown, the redundant network is applied to an intelligent building. The redundant network communication system includes a variety of communication terminals 21, a variety of routing devices 22, and a controller 23. Each communication terminal 21 is connected to at least one routing device 22, and each routing device 22 is connected to the controller 23;
[0170] Each communication terminal 21 is respectively used to select its corresponding routing device 22 based on the built-in routing selection algorithm, and send communication data to the corresponding routing device 22;
[0171] Each routing device 22 is respectively used to determine the communication requirements of each communication terminal 21 based on the received communication data, and send them to the controller 23; wherein, the communication requirements include the communication data volume and the communication target;
[0172] The controller 23 is used to determine the working parameters of each routing device 22 based on the communication requirements and priorities of each communication terminal 21, and send them to each routing device 22; wherein, the working parameters of the routing device 22 include frequency, channel, power, and time period.
[0173] In a possible implementation manner, the controller 23 is specifically used for:
[0174] Sort each communication terminal 21 based on the communication data volume and priority of each communication terminal 21 to obtain an initial sorting scheme;
[0175] Swap the order of each communication terminal 21 in the initial sorting scheme to obtain multiple communication terminal sorting schemes;
[0176] For each communication terminal sorting scheme, based on the communication requirements of each communication terminal 21, sequentially determine the routing device 22 corresponding to each communication terminal 21 and the working parameters of the routing device 22 to obtain a candidate communication resource allocation scheme corresponding to the communication terminal sorting scheme;
[0177] Calculate the terminal communication metrics and network communication metrics corresponding to each candidate communication resource allocation scheme, and determine the target communication resource allocation scheme among the candidate communication resource allocation schemes based on each terminal communication metric and each network communication metric to obtain the working parameters of each routing device 22.
[0178] In a possible implementation manner, the controller 23 is specifically used for:
[0179] Calculate the product of the communication data volume and the priority of each communication terminal 21 as the sorting score of the communication terminal 21;
[0180] Sort each communication terminal 21 in descending order of the sorting score to obtain an initial sorting scheme.
[0181] In a possible implementation, the controller 23 is specifically configured to:
[0182] Based on the sliding window, select a swapping order range in the initial sorting scheme, and swap the order of the communication terminals 21 within the sliding window to obtain multiple communication terminal sorting schemes.
[0183] In a possible implementation, the controller 23 is specifically configured to:
[0184] Based on the current available frequency band, current available channel, and current available time period, determine the routing device 22 corresponding to the communication terminal 21 with the serial number 1 in the first communication terminal sorting scheme and the working parameters of the routing device 22; wherein, the first communication terminal sorting scheme is any communication terminal sorting scheme;
[0185] Update the current available frequency band, current available channel, and current available time period, and use the serial number of the communication terminal 21 + 1 as the current communication terminal. Based on the updated available frequency band, available channel, and available time period, determine the routing device 22 corresponding to the current communication terminal 21 and the working parameters of the routing device 22, and repeat this step until the routing devices 22 corresponding to all the communication terminals 21 in the first communication terminal sorting scheme and the working parameters of the routing devices 22 are determined, so as to obtain a candidate communication resource allocation scheme corresponding to the first communication terminal sorting scheme.
[0186] In a possible implementation, the controller 23 is specifically configured to:
[0187] For each communication terminal 21 in the candidate communication resource allocation scheme corresponding to the first communication terminal sorting scheme, calculate the expected transmission time, expected transmission times, and communication energy consumption corresponding to the communication terminal 21 based on the working parameters of the routing device 22 corresponding to the communication terminal 21; wherein, the first communication terminal sorting scheme is any communication terminal sorting scheme;
[0188] Based on the expected transmission time, expected transmission times, and communication energy consumption corresponding to each communication terminal 21 in the candidate communication resource allocation scheme corresponding to the first communication terminal sorting scheme, calculate the expected transmission time, expected transmission times, and communication energy consumption corresponding to the candidate communication resource allocation scheme corresponding to the first communication terminal sorting scheme.
[0189] In a possible implementation, the calculation formula for the expected transmission times of the communication terminal is:
[0190]
[0191] Wherein, is the expected number of transmissions of the communication terminal, is the weight of the historical number of transmissions, is the weight of the number of transmissions in the most recent test;
[0192] The calculation formula for the expected transmission time of the communication terminal is:
[0193]
[0194] where, is the expected transmission time of the communication terminal;
[0195] The calculation formula for the communication energy consumption of the communication terminal is:
[0196]
[0197] where, is the communication energy consumption of the communication terminal, is the transmission power.
[0198] In a possible implementation manner, the controller 23 is specifically configured to:
[0199] For each candidate communication resource allocation scheme, sort the terminal communication metrics of each communication terminal 21 in the candidate communication resource allocation scheme, and calculate the permutation distance between the sorted terminal communication metrics and the initial sorting scheme as the first score of the candidate communication resource allocation scheme;
[0200] For each candidate communication resource allocation scheme, calculate the sum of the expected transmission time, expected number of transmissions, and communication energy consumption corresponding to the candidate communication resource allocation scheme as the second score of the candidate communication resource allocation scheme;
[0201] For each candidate communication resource allocation scheme, calculate the comprehensive score of the candidate communication resource allocation scheme based on the first score weight, second score weight, first score, and second score of the candidate communication resource allocation scheme;
[0202] Determine the candidate communication resource allocation scheme with the lowest comprehensive score as the target communication resource allocation scheme.
[0203] After each communication terminal in the embodiment of the present invention selects its corresponding routing device and sends the communication data to the corresponding routing device, each routing device extracts the communication requirements of the communication terminal included in each communication data and sends them to the controller. Then, the controller performs communication resource allocation based on the communication requirements and priorities of each communication terminal to determine the working frequency, channel, power, and time period of each routing device. When multiple communication devices need to transmit data simultaneously, through reasonable communication resource allocation, interference between communication terminals or routing devices can be avoided, thereby improving the operation effect of the intelligent building.
[0204] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above division of each functional unit and module is used as an example. In actual applications, the above functions can be assigned to different functional units and modules according to needs, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiments can be integrated into a processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit. In addition, the specific names of each functional unit and module are only for the convenience of mutual distinction and do not limit the protection scope of this application. The specific working processes of the units and modules in the above system can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.
[0205] In the above embodiments, the descriptions of each embodiment have their own emphases. For the parts not detailed or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0206] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or by a combination of computer software and electronic hardware. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0207] In the embodiments provided by the present invention, it should be understood that the disclosed device / terminal and method can be implemented in other ways. For example, the device / terminal embodiments described above are only illustrative. For example, the division of the module or unit is only a logical function division, and there can be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed mutual coupling, direct coupling or communication connection can be through some interfaces. The indirect coupling or communication connection of the device or unit can be in an electrical, mechanical or other form.
[0208] The unit described as a separated component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it can be located in one place, or can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0209] In addition, in each embodiment of the present invention, each functional unit can be integrated into a processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0210] If the integrated module / unit 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. Based on such an understanding, to implement all or part of the processes in the above-mentioned embodiment methods of the present invention, it can also be completed by a computer program instructing relevant hardware. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of the above-mentioned various redundant network communication method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disc, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content included in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electrical carrier signals and telecommunication signals.
[0211] The above-mentioned embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A redundant network communication method, characterized in that: The redundant network is applied to a smart building, and includes multiple communication terminals, multiple routing devices and controllers, each communication terminal is connected to at least one routing device, and each routing device is connected to the controller; the method includes: Each communication terminal selects its corresponding routing device based on the built-in routing selection algorithm and sends the communication data to the corresponding routing device; Each routing device determines the communication requirements of each communication terminal based on the received communication data and sends them to the controller; wherein the communication requirements include the communication data volume and the communication target; The controller determines the working parameters of each routing device based on the communication requirements and priorities of each communication terminal, and sends them to each routing device; wherein the working parameters of the routing device include frequency, channel, power and time period; The controller determines the working parameters of each routing device based on the communication requirements and priorities of each communication terminal, including: Sort each communication terminal based on the communication data volume and priority of each communication terminal to obtain an initial sorting scheme; Replacing the order of each communication terminal in the initial sorting scheme to obtain multiple communication terminal sorting schemes; For each communication terminal sorting scheme, based on the communication demand of each communication terminal, the routing device corresponding to each communication terminal and the working parameters of the routing device are determined in order to obtain a candidate communication resource allocation scheme corresponding to the communication terminal sorting scheme; The terminal communication index and the network communication index corresponding to each candidate communication resource allocation scheme are calculated, and a target communication resource allocation scheme is determined among the candidate communication resource allocation schemes based on each terminal communication index and each network communication index, so as to obtain the working parameters of each routing device.
2. A redundant network communication method according to claim 1, characterized in that: The step of sorting each communication terminal based on the communication data volume and priority of each communication terminal to obtain an initial sorting scheme includes: Calculate the product of the communication data volume and the priority of each communication terminal as the ranking score of the communication terminal; According to the order of ranking scores from large to small, the communication terminals are sorted to obtain an initial sorting scheme.
3. A redundant network communication method according to claim 1, characterized in that: The step of changing the order of the communication terminals in the initial sorting scheme to obtain multiple communication terminal sorting schemes includes: A range of exchange orders is selected in the initial sorting scheme based on the sliding window, and the order of the communication terminals in the sliding window is exchanged to obtain multiple communication terminal sorting schemes.
4. A redundant network communication method according to claim 1, characterized in that: The step of determining, for each communication terminal sorting scheme, a routing device corresponding to each communication terminal and an operating parameter of the routing device in order to obtain a candidate communication resource allocation scheme corresponding to the communication terminal sorting scheme includes: Based on the currently available frequency band, the currently available channel and the currently available time period, determine the routing device corresponding to the communication terminal with sequence number 1 in the first communication terminal sorting scheme and the working parameters of the routing device; wherein the first communication terminal sorting scheme is any communication terminal sorting scheme; Update the current available frequency band, the current available channel and the current available time period, and use the serial number of the communication terminal + 1 as the current communication terminal, determine the routing device corresponding to the current communication terminal and the working parameters of the routing device based on the updated available frequency band, the available channel and the available time period, repeat this step until the routing devices and the working parameters of the routing devices corresponding to all communication terminals in the first communication terminal sorting scheme are determined, and obtain the candidate communication resource allocation scheme corresponding to the first communication terminal sorting scheme.
5. A redundant network communication method according to claim 4, characterized in that: The calculating of the terminal communication index and the network communication index corresponding to each candidate communication resource allocation scheme includes: For each communication terminal in the candidate communication resource allocation scheme corresponding to the first communication terminal sorting scheme, the expected transmission time, expected number of transmissions and communication energy consumption corresponding to the communication terminal are calculated based on the working parameters of the routing device corresponding to the communication terminal; wherein the first communication terminal sorting scheme is any communication terminal sorting scheme; Based on the expected transmission time, expected number of transmissions and communication energy consumption corresponding to each communication terminal in the candidate communication resource allocation scheme corresponding to the first communication terminal sorting scheme, the expected transmission time, expected number of transmissions and communication energy consumption corresponding to the candidate communication resource allocation scheme corresponding to the first communication terminal sorting scheme are calculated.
6. A redundant network communication method according to claim 5, characterized in that: The calculation formula for the expected number of transmissions of the communication terminal is: in, is the expected number of transmissions by the communication terminal, is the weight of historical transmission times, The weight of the number of transmissions for the most recent test; The calculation formula for the communication terminal's expected transmission time is: in, is the expected transmission time of the communication terminal; The calculation formula for communication terminal communication energy consumption is: in, is the communication energy consumption of the communication terminal, is the transmit power.
7. A redundant network communication method according to claim 5, characterized in that: The step of determining a target communication resource allocation scheme from among candidate communication resource allocation schemes based on each terminal communication indicator and each network communication indicator includes: For each candidate communication resource allocation scheme, rank the terminal communication indicators of each communication terminal in the candidate communication resource allocation scheme, and calculate the arrangement distance between the terminal communication indicator ranking and the initial ranking scheme as the first score of the candidate communication resource allocation scheme; For each candidate communication resource allocation scheme, calculating the sum of the expected transmission time, the expected number of transmissions, and the communication energy consumption corresponding to the candidate communication resource allocation scheme as the second score of the candidate communication resource allocation scheme; For each candidate communication resource allocation scheme, calculating a comprehensive score of the candidate communication resource allocation scheme based on the first score weight, the second score weight, the first score and the second score of the candidate communication resource allocation scheme; The candidate communication resource allocation scheme with the lowest comprehensive score is determined as the target communication resource allocation scheme.
8. A redundant network communication system, characterized in that: The redundant network is applied to a smart building. The redundant network communication system includes multiple communication terminals, multiple routing devices and a controller. Each communication terminal is connected to at least one routing device, and each routing device is connected to the controller. Each communication terminal is used to select its corresponding routing device based on the built-in routing selection algorithm and send the communication data to the corresponding routing device; Each routing device is used to determine the communication requirements of each communication terminal based on the received communication data and send them to the controller; wherein the communication requirements include the communication data volume and the communication target; The controller is used to determine the working parameters of each routing device based on the communication requirements and priorities of each communication terminal, and send them to each routing device; wherein the working parameters of the routing device include frequency, channel, power and time period; The controller is specifically used for: Sort each communication terminal based on the communication data volume and priority of each communication terminal to obtain an initial sorting scheme; Replacing the order of each communication terminal in the initial sorting scheme to obtain multiple communication terminal sorting schemes; For each communication terminal sorting scheme, based on the communication demand of each communication terminal, the routing device corresponding to each communication terminal and the working parameters of the routing device are determined in order to obtain a candidate communication resource allocation scheme corresponding to the communication terminal sorting scheme; The terminal communication index and the network communication index corresponding to each candidate communication resource allocation scheme are calculated, and a target communication resource allocation scheme is determined among the candidate communication resource allocation schemes based on each terminal communication index and each network communication index, so as to obtain the working parameters of each routing device.
Citation Information
Patent Citations
Power distribution method and device of communication system, electronic equipment and medium
CN117042138A