Redundant network communication method and system
Through the redundant network communication method, the collaborative work of communication terminals, routing equipment and controllers is used to solve the problem of interference from communication equipment in smart buildings and improve data transmission quality and operation effects.
Patent Information
- Application Number
- CN202411258008.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-09
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-09-09
AI Technical Summary
Due to the large number of devices and limited space in redundant networks in smart buildings, interference between communication devices is easy to occur, affecting data interaction and operating status.
Using the redundant network communication method, through the collaborative work of communication terminals, routing equipment and controllers, each communication terminal selects routing equipment based on the built-in routing algorithm, and the controller determines the working parameters of the routing equipment based on communication requirements and priorities, including Frequency, channel, power and time period to avoid interference.
Through reasonable allocation of communication resources, interference between communication terminals or routing equipment can be avoided, and the operation effect and data transmission quality of smart buildings can be improved.
Smart Images

Figure CN118869162A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a redundant network communication method and system. Background Art
[0002] 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 the building to achieve 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. These devices usually need to interact with external devices to form a redundant network with redundant equipment and links to achieve intelligent management and operation of the building.
[0003] However, due to the limited space in smart buildings and the large number and types of devices that need to communicate, when multiple devices in a smart building communicate with the outside world at the same time, they may interfere with each other, causing data interaction between the smart building and the outside world to be hindered and the operating status to be affected. Summary of the invention
[0004] The embodiments of the present invention provide a redundant network communication method and system to solve the problem of mutual interference within redundant networks in a smart building.
[0005] In a first aspect, an embodiment of the present invention provides a redundant network communication method, wherein the 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: 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.
[0006] In a possible implementation, 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 requirements of each communication terminal, the routing device and the working parameters of the routing device corresponding to each communication terminal 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 frequency band allocation scheme are calculated, and the target communication resource allocation scheme is determined in each candidate communication resource allocation scheme based on each terminal communication index and each network communication index to obtain the working parameters of each routing device.
[0007] In a possible implementation, the communication terminals are sorted based on the communication data volume and priority of each communication terminal to obtain an initial sorting scheme, including: 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.
[0008] In a possible implementation, the order of the communication terminals in the initial sorting scheme is swapped to obtain multiple communication terminal sorting schemes, including: A range of exchange sequences is selected in an initial sorting scheme based on a sliding window, and the order of communication terminals within the sliding window is exchanged to obtain a plurality of communication terminal sorting schemes.
[0009] In a possible implementation, for each communication terminal ranking scheme, determining the routing device and the working parameters of the routing device corresponding to each communication terminal in order, and obtaining the candidate communication resource allocation scheme corresponding to the communication terminal ranking scheme includes: Based on the currently available frequency band, the currently available channel and the currently available time period, determine the routing device and the working parameters of the routing device corresponding to the communication terminal with sequence number 1 in the first communication terminal sorting scheme; 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 and the working parameters of the routing device corresponding to the current communication terminal 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 the 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.
[0010] In a possible implementation, calculating the network communication index and the terminal communication index corresponding to each candidate communication resource allocation scheme includes: For each communication terminal in the first candidate communication resource allocation 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 first candidate communication resource allocation scheme, the expected transmission time, expected number of transmissions and communication energy consumption corresponding to the first candidate communication resource allocation scheme are calculated.
[0011] In a possible implementation, the calculation formula of the communication terminal's expected transmission times is:
[0012] 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:
[0013] in, is the expected transmission time of the communication terminal; The calculation formula for communication terminal communication energy consumption is:
[0014] in, is the communication energy consumption of the communication terminal, is the transmit power.
[0015] In a possible implementation, determining a target communication resource allocation scheme from among candidate communication resource allocation schemes based on communication indicators of each terminal 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.
[0016] In a second aspect, an embodiment of the present invention provides a redundant network communication system, 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.
[0017] The embodiment of the present invention provides a redundant network communication method and system. 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 contained in each communication data and sends it to the controller. Then, the controller allocates communication resources based on the communication requirements and priorities of each communication terminal, and determines the working frequency, channel, power and time period of each routing device. When multiple communication devices need to transmit data at the same time, reasonable allocation of communication resources can avoid mutual interference between the communication terminals or routing devices, thereby improving the operation effect of the smart building. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0019] Figure 1 is a flow chart of an implementation of a redundant network communication method provided by an embodiment of the present invention; Figure 2 It is a schematic diagram of the structure of a redundant network communication system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0020] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may 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 prevent unnecessary details from obstructing the description of the present invention.
[0021] In order to make the purpose, technical solutions and advantages of the present invention more clear, specific embodiments will be described below in conjunction with the accompanying drawings.
[0022] See also Figure 1 , which shows a flowchart of the implementation of the redundant network communication method provided by an embodiment of the present invention, and is described in detail as follows: The 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: Step 101 : Each communication terminal selects its corresponding routing device based on a built-in routing selection algorithm, and sends communication data to the corresponding routing device.
[0023] In this embodiment, the communication terminal categories in the smart building may include: Temperature and humidity sensors, light sensors, air quality sensors, etc. collect environmental data; Actuators such as smart lighting, automatic curtains, smart air conditioning and other devices adjust the environment based on sensor feedback; Building Automation Systems (BAS) manage the mechanical and electrical equipment of a building, such as elevators, ventilation systems, heating and cooling systems, etc. Security systems, including access control, closed-circuit television surveillance (CCTV), intrusion alarms, etc.; A data collection and analysis platform to process data from sensors and optimize building management through machine learning algorithms; Integrated management system to help property managers centrally control various functions of the building; Mobile apps or web pages that allow users to remotely control and monitor building facilities; Provide value-added services such as conference room booking, parking management, visitor registration, etc.; Monitoring and optimizing energy usage through smart meters and energy management systems; Automated control systems that adjust energy consumption based on actual needs, such as adjusting lighting and temperature based on the number of people in the room; Intelligent temperature control system, automatically adjusts according to indoor and outdoor temperature changes; Air quality monitoring and purification system to ensure fresh indoor air; Intelligent security systems use technologies such as facial recognition and behavioral analysis to improve safety; Emergency response systems that can react quickly to emergencies such as fires and earthquakes; Predictive maintenance, using data analytics to predict equipment failures and schedule repairs in advance; Remote diagnosis and repair reduce downtime and improve facility availability.
[0024] For the above-mentioned devices, smart 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 of various devices in the building.
[0025] Since each communication terminal independently completes its own data collection and processing work, it usually also has a built-in routing selection algorithm. When data transmission communication is required, the communication data to be transmitted will be directly sent to the routing device.
[0026] Step 102, 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.
[0027] In this embodiment, the routing devices in the smart building are an important part of ensuring smooth and efficient network connections within 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.
[0028] The following is an overview of several routing devices that may be used in smart buildings and their functions: 1.4G Industrial Router 4G industrial router is a router designed for industrial environment. It can provide high-speed wireless Internet connection and support multiple industrial standards and protocols. In smart buildings, this type of router can achieve: Unattended operation.
[0029] Remote management and fault detection.
[0030] Unified control of multiple access control systems.
[0031] Real-time monitoring function.
[0032] 2. BACnet Building Automation Router BACnet (Building Automation and Control networks) is a protocol widely used in building automation systems. BACnet building automation routers can realize the interconnection and intercommunication of different building automation systems, so that different devices can work better together. Such routers usually have: Ability to support BACnet protocol.
[0033] IP routing function enables communication between different subnets.
[0034] Some functions specific to the field of building automation may also be included.
[0035] 3. Internet of Things (IoT) Host The IoT host plays a key role in device connection and data collection in smart buildings. It usually has the following characteristics: Support multiple communication protocols, such as Wi-Fi, Zigbee, Bluetooth, LoRa, etc.
[0036] Connect to all types of devices, including lighting, air conditioning systems, security equipment, sensors, and more.
[0037] Provide data processing capabilities, including data storage, analysis, etc.
[0038] 4. Switches and routers In smart buildings, in addition to dedicated industrial routers, ordinary switches and routers also play an important role. They are responsible for: Realize networking and data transmission between devices.
[0039] Network segmentation improves network security.
[0040] Load balancing ensures data transmission efficiency.
[0041] After receiving the communication data sent by the communication terminal, each routing device can extract key information that affects the allocation of communication resources, mainly the communication data volume and communication target. Specifically, the larger the communication data volume, the longer the required communication time and communication energy consumption, and the communication target will affect the communication links available to the routing device.
[0042] 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; wherein the working parameters of the routing device include frequency, channel, power and time period.
[0043] In this embodiment, the controller is connected to each routing device, summarizes and coordinates the work content of each routing device, allocates resources for the communication data to be transmitted by each communication terminal according to the communication needs and priorities of each communication terminal, and optimizes redundant network communications from a global perspective.
[0044] Specifically, if multiple wireless communication devices are used in a smart building and they transmit data at the same time, mutual interference may occur. This interference may reduce the communication quality and cause data transmission errors or delays. The following are several situations that may cause interference: Frequency overlap-Different wireless communication technologies may work in the same frequency band. For example, Wi-Fi and Bluetooth both use the 2.4GHz frequency band. If multiple devices transmit data at the same time in this frequency band, signal collision may occur, resulting in interference.
[0045] Power Strength - Some wireless devices transmit at high power and may cause interference to other devices around them that use the same or adjacent frequency bands. For example, a high-power Wi-Fi router may affect the normal operation of a Zigbee or Z-Wave device.
[0046] Concurrent transmissions - When multiple devices try to send data at the same time, conflicts may result if there is no effective coordination mechanism.
[0047] To avoid or mitigate these disruptions, the following measures can be taken: Spectrum management - assigning different frequency bands to different communication technologies, and try to avoid using the same frequency range.
[0048] 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.
[0049] Power Control - Adjusts the transmit power of a device so that the signal strength is sufficient to cover the desired area but does not overflow into the operating range of other devices.
[0050] In the embodiment 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 contained in each communication data and sends it to the controller. Then, the controller allocates communication resources based on the communication requirements and priorities of each communication terminal, and determines the working frequency, channel, power and time period of each routing device. When there are multiple communication devices that need to transmit data at the same time, reasonable allocation of communication resources can avoid mutual interference between the communication terminals or routing devices, thereby improving the operation effect of the smart building.
[0051] In a possible implementation, 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 requirements of each communication terminal, the routing device and the working parameters of the routing device corresponding to each communication terminal 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 frequency band allocation scheme are calculated, and the target communication resource allocation scheme is determined in each candidate communication resource allocation scheme based on each terminal communication index and each network communication index to obtain the working parameters of each routing device.
[0052] 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 priority of the communication terminal used for security data collection and upload should be higher than that of the communication terminal used for environmental data collection and upload. After the initial sorting scheme is obtained by sorting each communication terminal based on the communication data volume and priority of each communication terminal, 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.
[0053] The initial sorting scheme may not necessarily achieve the best overall communication effect. Therefore, the order of the communication terminals in the initial sorting scheme can be changed within a certain range to expand a variety of possible communication resource allocation schemes, achieve the global optimal allocation scheme, and avoid falling into the local optimal solution of only the communication needs of a single communication terminal.
[0054] The terminal communication index and network communication index are 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 index and the network communication index, the individual effect and the overall effect of the communication resource allocation scheme can be taken into account.
[0055] In a possible implementation, the communication terminals are sorted based on the communication data volume and priority of each communication terminal to obtain an initial sorting scheme, including: 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.
[0056] In this embodiment, the larger the communication data volume of the communication terminal, the larger the required data transmission time, bandwidth and energy consumption, and the communication resource allocation effect of the communication terminal with large communication data volume should be given priority. The higher the priority of the communication terminal, the more important the data to be transmitted, and the communication resource allocation should be given priority to the communication terminal. Therefore, the product of the communication data volume and the priority is used as the ranking score of the communication terminal, which can achieve reasonable ranking of the communication terminals and facilitate better communication resource allocation effect.
[0057] In a possible implementation, the order of the communication terminals in the initial sorting scheme is swapped to obtain multiple communication terminal sorting schemes, including: A range of exchange sequences is selected in an initial sorting scheme based on a sliding window, and the order of communication terminals within the sliding window is exchanged to obtain a plurality of communication terminal sorting schemes.
[0058] In this embodiment, in order to avoid the occurrence of communication terminal sorting schemes that cannot be used, for example, the communication terminal with the highest priority and the largest communication data volume is placed at the last place, a fixed-size sliding window can be used to select communication terminals within a certain range for sequence exchange. For example, if there are 10 communication terminals with IDs of 1, 2, 3, 4, 5, 6, 7, 8, 9, and 10 participating in the allocation of communication resources, and the initial sorting scheme obtained is 12345678910, a sliding window with a width of 3 can be used to exchange the order, and the sliding window slides backward from the first position of the initial sorting scheme, and randomly changes the order of the communication terminals in the window, and a communication terminal sorting scheme can be generated: 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 actual conditions.
[0059] In a possible implementation, for each communication terminal ranking scheme, determining the routing device and the working parameters of the routing device corresponding to each communication terminal in order, and obtaining the candidate communication resource allocation scheme corresponding to the communication terminal ranking scheme includes: Based on the currently available frequency band, the currently available channel and the currently available time period, determine the routing device and the working parameters of the routing device corresponding to the communication terminal with sequence number 1 in the first communication terminal sorting scheme; 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 and the working parameters of the routing device corresponding to the current communication terminal 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 the 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.
[0060] In this embodiment, according to the sequence number in the communication terminal sorting scheme, the currently optional and optimal communication resources such as frequency band, channel, time period, etc. are allocated to each communication terminal in turn. Specifically, the communication resources of the communication terminal with sequence number 1 are first determined, and then the communication resources allocated to the communication terminal with sequence number 1 are removed from the original available frequency band, available channel and available time period, and the available frequency band, available channel and available time period are updated, and the optimal communication resources are selected for the communication terminal with sequence number 2 from the updated available frequency band, available channel and available time period, and so on, until the communication resource allocation of all communication terminals is completed. In this way, the most suitable communication resources can be allocated to the most important communication terminal first, and there is no resource conflict between the communication terminals, so as to achieve better communication effect.
[0061] In a possible implementation, calculating the network communication index and the terminal communication index corresponding to each candidate communication resource allocation scheme includes: For each communication terminal in the first candidate communication resource allocation 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 first candidate communication resource allocation scheme, the expected transmission time, expected number of transmissions and communication energy consumption corresponding to the first candidate communication resource allocation scheme are calculated.
[0062] 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 of the expected number of transmissions corresponding to each communication terminal in the candidate communication resource allocation scheme is the expected number of transmissions corresponding to the candidate communication resource allocation scheme; and 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.
[0063] The expected transmission time, expected number of transmissions 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.
[0064] In a possible implementation, the calculation formula of the communication terminal's expected transmission times is:
[0065] 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:
[0066] in, is the expected transmission time of the communication terminal; The calculation formula for communication terminal communication energy consumption is:
[0067] in, is the communication energy consumption of the communication terminal, is the transmit power.
[0068] In this embodiment, during the idle period, the controller can control each routing device to send a detection message to an internal or external communication target with different working parameters to test the expected transmission times of each routing device. Since the historical transmission times correspond to an earlier period and have less reference significance, and the most recent test transmission times are closer to the current channel status, 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, =0.25, =0.75. It can also be set according to actual conditions.
[0069] The expected number of transmissions is the average number of transmissions required to successfully transmit a data packet to the destination address. In wireless communication networks, due to channel uncertainty and interference, data packets may need to be retransmitted multiple times to ensure successful transmission. The expected number of transmissions can describe the stability and reliability of the channel.
[0070] The expected transmission time is the average time required to successfully transmit a packet. This involves the actual time it takes for a packet to be transmitted plus any retransmission time that may occur.
[0071] Communication energy consumption refers to the energy consumption required to complete a data transmission.
[0072] The above three indicators can fully describe the communication effect of the communication resource allocation scheme. In a possible implementation, determining a target communication resource allocation scheme from each candidate communication resource allocation scheme based on each terminal communication metric and each network communication metric includes: 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; 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; 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; Determine the candidate communication resource allocation scheme with the lowest comprehensive score as the target communication resource allocation scheme.
[0073] 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 matches the sorting of the importance of each communication terminal. The smaller the permutation distance, the higher the degree of matching between the two, indicating that the corresponding candidate communication resource allocation scheme is more reasonable. Commonly used permutation distance calculation methods include: 1. Hamming Distance: For permutations of the same length, the Hamming distance refers to the number of elements that are different in the corresponding positions.
[0074] 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.
[0075] 2. Number of Inversions: 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.
[0076] To transform one permutation into another, you need to swap these inversion pairs. The number of inversion pairs can be used to measure the distance between two permutations.
[0077] 3. Kendall tau distance: Kendall tau distance is another way to measure the difference between two alignments, which counts the number of inversion pairs that are inconsistent in the two alignments.
[0078] If the two permutations are identical, then the Kendall tau distance is 0; if they are completely different (i.e., one is the reverse of the other), then the distance is maximal.
[0079] 4.Levenshtein distance: Although more commonly used with strings, the Levenshtein distance can also be applied to permutations by counting how many insertions, deletions, or substitutions are required to make one permutation into another.
[0080] 5. Distance of permutation group: In combinatorial mathematics, distance can be defined by calculating the minimum number of exchanges (i.e. transpositions) of adjacent elements required to transform one arrangement into another. The specific method for calculating the sorting distance can be selected based on actual needs and actual effects.
[0081] The second score is used to describe how good the communication effect produced by the candidate communication resource allocation scheme is in the entire redundant network.
[0082] The first score and the second score are used in combination to select a target communication resource allocation scheme, so that the importance of each communication terminal and the communication effect of the entire redundant network can be taken into consideration.
[0083] It should be understood that the order of execution of the steps in the above embodiment does not necessarily 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 on the implementation process of the embodiment of the present invention.
[0084] The following is a system embodiment of the present invention. For details not described in detail therein, reference may be made to the corresponding method embodiment described above.
[0085] Figure 2 The following is a schematic diagram showing the structure of a redundant network communication system provided by an embodiment of the present invention. For ease of explanation, only the parts related to the embodiment of the present invention are shown, which are described in detail as follows: like Figure 2 As shown, the redundant network is applied to a smart building. The redundant network communication system includes a plurality of communication terminals 21, a plurality 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. Each communication terminal 21 is used to select a corresponding routing device 22 based on a built-in routing selection algorithm, and send communication data to the corresponding routing device 22; Each routing device 22 is used to determine the communication requirements of each communication terminal 21 based on the received communication data, and send it to the controller 23; wherein the communication requirements include the communication data volume and the communication target; 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.
[0086] In a possible implementation, the controller 23 is specifically configured to: Sort each communication terminal 21 based on the communication data volume and priority of each communication terminal 21 to obtain an initial sorting scheme; Replacing the order of each communication terminal 21 in the initial sorting scheme to obtain multiple communication terminal sorting schemes; For each communication terminal sorting scheme, based on the communication requirements of each communication terminal 21, the routing device 22 and the working parameters of the routing device 22 corresponding to each communication terminal 21 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 frequency band allocation scheme are calculated, and the target communication resource allocation scheme is determined in each candidate communication resource allocation scheme based on each terminal communication index and each network communication index to obtain the working parameters of each routing device 22.
[0087] In a possible implementation, the controller 23 is specifically configured to: Calculate the product of the communication data volume and the priority of each communication terminal 21 as the ranking score of the communication terminal 21; The communication terminals 21 are sorted in descending order of the sorting scores to obtain an initial sorting scheme.
[0088] In a possible implementation, the controller 23 is specifically configured to: A range of exchange order is selected in the initial sorting scheme based on the sliding window, and the order of the communication terminals 21 in the sliding window is exchanged to obtain multiple communication terminal sorting schemes.
[0089] In a possible implementation, the controller 23 is specifically configured to: Based on the currently available frequency band, the currently available channel and the currently available time period, determine the routing device 22 and the working parameters of the routing device 22 corresponding to the communication terminal 21 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; Update the current available frequency band, the current available channel and the current available time period, and use the serial number + 1 of the communication terminal 21 as the current communication terminal, determine the routing device 22 and the working parameters of the routing device 22 corresponding to the current communication terminal 21 based on the updated available frequency band, the available channel and the available time period, repeat this step until the routing devices 22 and the working parameters of the routing devices 22 corresponding to all the communication terminals 21 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.
[0090] In a possible implementation, the controller 23 is specifically configured to: For each communication terminal 21 in the first candidate communication resource allocation scheme, the expected transmission time, expected number of transmissions and communication energy consumption corresponding to the communication terminal 21 are calculated 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; Based on the expected transmission time, expected number of transmissions and communication energy consumption corresponding to each communication terminal 21 in the first candidate communication resource allocation scheme, the expected transmission time, expected number of transmissions and communication energy consumption corresponding to the first candidate communication resource allocation scheme are calculated.
[0091] In a possible implementation, the calculation formula of the communication terminal's expected transmission times is:
[0092] 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:
[0093] in, is the expected transmission time of the communication terminal; The calculation formula for communication terminal communication energy consumption is:
[0094] in, is the communication energy consumption of the communication terminal, is the transmit power.
[0095] In a possible implementation, the controller 23 is specifically configured to: For each candidate communication resource allocation scheme, the terminal communication indexes of each communication terminal 21 in the candidate communication resource allocation scheme are sorted, and the arrangement distance between the terminal communication index sorting and the initial sorting scheme is calculated 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.
[0096] In the embodiment 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 contained in each communication data and sends it to the controller. Then, the controller allocates communication resources based on the communication requirements and priorities of each communication terminal, and determines the working frequency, channel, power and time period of each routing device. When there are multiple communication devices that need to transmit data at the same time, reasonable allocation of communication resources can avoid mutual interference between the communication terminals or routing devices, thereby improving the operation effect of the smart building.
[0097] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, 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. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0098] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0099] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0100] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminals and methods can be implemented in other ways. For example, the device / terminal embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as 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 mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0101] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0102] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0103] 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 this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the 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 source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained 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, computer-readable media do not include electric carrier signals and telecommunication signals.
[0104] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the 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.
2. A redundant network communication method according to claim 1, characterized in that: 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 frequency band allocation scheme are calculated, and the target communication resource allocation scheme is determined in each candidate communication resource allocation scheme based on each terminal communication index and each network communication index to obtain the working parameters of each routing device.
3. A redundant network communication method according to claim 2, 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.
4. A redundant network communication method according to claim 2, 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.
5. A redundant network communication method according to claim 2, 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.
6. A redundant network communication method according to claim 2, characterized in that: The calculating of the network communication index and the terminal communication index corresponding to each candidate communication resource allocation scheme includes: For each communication terminal in the first candidate communication resource allocation 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 first candidate communication resource allocation scheme, the expected transmission time, expected number of transmissions and communication energy consumption corresponding to the first candidate communication resource allocation scheme are calculated.
7. A redundant network communication method according to claim 6, 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.
8. A redundant network communication method according to claim 6, 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.
9. 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.
10. The redundant network communication system according to claim 9, characterized in that: 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 frequency band allocation scheme are calculated, and the target communication resource allocation scheme is determined in each candidate communication resource allocation scheme based on each terminal communication index and each network communication index to obtain the working parameters of each routing device.
Citation Information
Patent Citations
Communication system carrier selection method, base stations and terminal devices
CN103874073A
Network resource distribution method and router
CN107820281A
Network resource allocation method and wireless router
CN107846370A
Network self-healing method based on Internet of Things cooperative communication and network architecture
CN112737939A
Power distribution method and device of communication system, electronic equipment and medium
CN117042138A
