Asynchronous balancing method and platform for smart campus services
Through asynchronous balancing methods and platforms, data transmission is optimized, solving the problem of unbalanced load balancing in traditional concurrent processing systems, and improving data processing efficiency and user experience.
Patent Information
- Application Number
- CN202411040089.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-31
AI Technical Summary
Traditional concurrent processing systems have poor management refinement and unstable concurrent transmission efficiency during the load balancing phase, resulting in a decrease in data processing speed and quality, affecting system resource utilization and user experience.
Through asynchronous balancing methods and platforms, receive the data list of the underlying sensing device, obtain the mq cluster node status and information topic subscription node status, use the front and back load balancing data centers to generate a balanced deployment plan, optimize data transmission, and ensure parallel sending To the smart campus application node and client.
It improves management refinement and concurrent transmission efficiency, solves the problem of uneven load balancing in traditional systems, and achieves more stable data processing and user experience.
Smart Images

Figure CN118573683B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to an asynchronous balancing method and platform for smart campus services. Background Art
[0002] In today's digital age, smart campus, as an important part of educational informatization, is gradually becoming a key means to improve teaching quality, optimize campus management, and enhance student experience. Smart campus integrates advanced technologies such as the Internet of Things, big data, and cloud computing to achieve intelligent perception, monitoring, and management of various resources on campus. However, with the surge in the number of sensing devices on campus and the complexity of data processing needs, how to efficiently process these massive data and ensure the real-time and accuracy of data processing has become a technical problem that needs to be solved in the construction of smart campuses. When processing large amounts of data, traditional concurrent processing systems often face problems such as uneven load balancing, insufficient management refinement, and unstable concurrent transmission efficiency. These problems not only affect the speed and quality of data processing, but may also lead to waste of system resources and a decline in user experience. Summary of the invention
[0003] This application provides an asynchronous balancing method and platform for smart campus services, which solves the technical problems of poor management refinement and unstable concurrent transmission efficiency in traditional concurrent processing during the load balancing stage.
[0004] In view of the above problems, the present application provides an asynchronous balancing method and platform for smart campus services.
[0005] In a first aspect of the present application, an asynchronous balancing method for a smart campus service is provided, the method comprising:
[0006] Receive the underlying perception data list of the underlying perception device, wherein the underlying perception data list has a campus number label list; obtain the mq cluster node status list, wherein the mq cluster node status list includes the mq cluster node free load list; through the front load balancing data center, according to the mq cluster node free load list and the campus number label list, the underlying perception data list is balanced and optimized to generate a first balanced deployment plan; after the underlying perception data list is deployed according to the first balanced deployment plan, based on the mq cluster node and the campus number label list, the underlying perception data list is sent in parallel to the smart campus application node list for processing, and the application node processing data is obtained. list, wherein the application node processing data list has a perception device number label list and the campus number label list; obtain an information topic subscription node status list, wherein the information topic subscription node status list includes an information topic subscription node idle subscription quantity list; through a post-load balancing data center, according to the information topic subscription node idle subscription quantity list, the perception device number label list and the campus number label list, the application node processing data list is balanced and optimized to generate a second balanced deployment plan; after the application node processing data list is deployed according to the second balanced deployment plan, the application node processing data list is sent in parallel to a preset user terminal based on the information topic subscription node.
[0007] A second aspect of the present application provides an asynchronous balancing platform for smart campus services, the platform comprising:
[0008] A data receiving module, the data receiving module is used to receive the underlying perception data list of the underlying perception device, wherein the underlying perception data list has a campus number label list; a cluster node status acquisition module, the cluster node status acquisition module is used to obtain the mq cluster node status list, wherein the mq cluster node status list includes the mq cluster node free load list; a first optimization module, the first optimization module is used to optimize the balanced deployment of the underlying perception data list through the front-end load balancing data center according to the mq cluster node free load list and the campus number label list, and generate a first balanced deployment plan; a processing module, the processing module is used to deploy the underlying perception data list according to the first balanced deployment plan, and then send the underlying perception data list in parallel to the smart campus application node list for processing based on the mq cluster node and the campus number label list to obtain the application node list. A node processing data list, wherein the application node processing data list has a perception device number label list and a campus number label list; a subscription node status acquisition module, the subscription node status acquisition module is used to obtain an information topic subscription node status list, wherein the information topic subscription node status list includes an information topic subscription node idle subscription quantity list; a second optimization module, the second optimization module is used to perform balanced deployment optimization on the application node processing data list through a post-load balancing data center according to the information topic subscription node idle subscription quantity list, the perception device number label list and the campus number label list, and generate a second balanced deployment plan; a data distribution module, the data distribution module is used to deploy the application node processing data list according to the second balanced deployment plan, and then send the application node processing data list in parallel to a preset user terminal based on the information topic subscription node.
[0009] One or more technical solutions provided in this application have at least the following technical effects or advantages:
[0010] First, the underlying perception data list of the underlying perception device is received, wherein the underlying perception data list has a campus number label list; at the same time, the mq cluster node status list is obtained, wherein the mq cluster node status list includes the mq cluster node free load list. Through the front load balancing data center, the underlying perception data list is balanced and optimized according to the mq cluster node free load list and the campus number label list, and a first balanced deployment plan is generated. Then, after the underlying perception data list is deployed according to the first balanced deployment plan, the underlying perception data list is sent in parallel to the smart campus application node list for processing based on the mq cluster node and the campus number label list, and an application node processing data list is obtained, wherein the application node processing data list has a perception device number label list and the campus number label list. Further, an information topic subscription node status list is obtained, wherein the information topic subscription node status list includes an information topic subscription node idle subscription number list. Through the rear load balancing data center, according to the information topic subscription node idle subscription number list, the perception device number label list and the campus number label list, the application node processing data list is balanced and optimized to generate a second balanced deployment plan. Finally, after the application node processing data list is deployed according to the second balanced deployment scheme, the application node processing data list is sent in parallel to the preset user end based on the information topic subscription node. This solves the technical problems of poor management refinement and unstable concurrent transmission efficiency in the load balancing stage of traditional concurrent processing, and achieves the technical effect of improving management refinement and stabilizing concurrent transmission efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. 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 creative work.
[0012] Figure 1 A schematic diagram of the asynchronous balancing method flow for smart campus services provided in an embodiment of the present application;
[0013] Figure 2 A schematic diagram of the structure of an asynchronous balancing platform for smart campus services provided in an embodiment of the present application.
[0014] Explanation of reference numerals: data receiving module 11 , cluster node status acquisition module 12 , first optimization module 13 , processing module 14 , subscription node status acquisition module 15 , second optimization module 16 , data distribution module 17 . DETAILED DESCRIPTION
[0015] This application solves the technical problems of poor management refinement and unstable concurrent transmission efficiency in traditional concurrent processing during the load balancing stage by providing an asynchronous balancing method and platform for smart campus services.
[0016] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0017] It should be noted that the terms "including" and "having" are intended to cover non-exclusive inclusions. For example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or modules that are not explicitly listed or are inherent to these processes, methods, products or devices.
[0018] Embodiment 1, as Figure 1 As shown, the present application provides an asynchronous balancing method for smart campus services, wherein the method includes:
[0019] Receive an underlying perception data list of an underlying perception device, wherein the underlying perception data list has a campus number label list.
[0020] In the smart campus system, when underlying sensing devices (such as cameras, sensors, etc.) detect relevant changes in the campus environment or facilities, they will generate and send a list of underlying sensing data with a campus number tag. The campus number tag is used to uniquely identify the campus to which the data belongs or a specific area within the campus.
[0021] Furthermore, the list of underlying perception data of the underlying perception device is received, including:
[0022] Collect a first data packet through the first underlying perception device of the underlying perception device; determine whether the first data packet is greater than or equal to a data volume threshold; if greater, split the first data packet into a plurality of sub-packets, wherein the data volume of any one of the plurality of sub-packets is less than the data volume threshold; add the plurality of sub-packets into the underlying perception data list.
[0023] The first underlying sensing device is any underlying sensing device. The first data packet is obtained by collecting data through the first underlying sensing device. The first data packet is a data set collected once. By judging the size of the first data packet, it is determined whether the data volume of the first data packet is greater than the preset data volume threshold. If the data volume of the first data packet is greater than the data volume threshold, the first data packet is split into several sub-packets, and the data volume of any sub-packet after the split is less than the set data volume threshold, and the several sub-packets obtained by the split are added to the underlying sensing data list. By splitting the data packet, it can be ensured that the data packet can be effectively processed without causing system burden or network congestion, thereby improving the efficiency of data transmission processing.
[0024] Furthermore, the data volume threshold determination step includes:
[0025] Configure the test data volume and the primary channel bandwidth; perform local historical backtracking based on the test data volume and the primary channel bandwidth to obtain a first transmission efficiency calibration value, wherein the first transmission efficiency calibration value represents the overhead of increasing the transmission time and is less than or equal to 1; load a first transmission duration threshold; process the primary channel bandwidth, the first transmission efficiency calibration value and the test data volume through a transmission duration prediction network to obtain a first transmission prediction duration; when the first transmission prediction duration is equal to the first transmission duration threshold, set the test data volume to the data volume threshold; when the first transmission prediction duration is not equal to the first transmission duration threshold, update the test data volume and execute a loop.
[0026] Configure and optimize the data transmission threshold by testing the data volume and channel bandwidth. Specifically, configure the test data volume and the first-level channel bandwidth. The test data volume is used to simulate the data load in actual transmission, while the channel bandwidth determines the speed of data transmission in the channel. The first-level channel refers to the channel for transmitting the underlying perception data to the mq cluster node, the second-level channel refers to the channel for transmitting to the application node, and the third-level channel refers to the channel for transmitting to the user end. According to the test data volume and the first-level channel bandwidth, perform local historical backtracking analysis. Through historical data, a first transmission efficiency calibration value can be calculated. This value represents the overhead of increasing the transmission time (relative to the ideal situation) under the current configuration, and its value is less than or equal to 1. Load the preset first transmission time threshold. The first transmission time threshold represents the longest transmission time that the system considers acceptable, which is used to evaluate whether the current configuration meets the performance requirements. Collect data of different data volumes and channel bandwidths. The data sets of bandwidth and transmission time are used as the input and output of the BP neural network to train the BP neural network, and a transmission time prediction network is obtained after the training is completed; the primary channel bandwidth, the first transmission efficiency calibration value and the test data volume are input into the transmission time prediction network, and the transmission time prediction network will predict the time required for data transmission according to the input parameters, that is, the first transmission prediction time; the first transmission prediction time is compared with the first transmission time threshold, and when the first transmission prediction time is equal to the first transmission time threshold, it means that the currently configured test data volume and channel bandwidth can complete the data transmission within an acceptable time, and the test data volume can be set as the data volume threshold for subsequent actual data transmission; when the first transmission prediction time is not equal to the first transmission time threshold, the test data volume is adjusted according to the prediction result, and then the whole process is re-executed until the test data volume that meets the transmission time threshold is found.
[0027] Further, performing local history backtracking according to the test data volume and the primary channel bandwidth to obtain a first transmission efficiency calibration value includes:
[0028] Local data collection is performed according to the test data volume and the primary channel bandwidth to obtain a set of historical transmission efficiency record values; and mode calibration is performed on the set of historical transmission efficiency record values to obtain the first transmission efficiency calibration value.
[0029] Preferably, local data collection is performed based on a preset test data volume and primary channel bandwidth, that is, under the same network environment and hardware conditions, multiple data transmission experiments are performed using these parameters, and the actual efficiency of each transmission is recorded. Efficiency can be defined as the amount of data successfully transmitted per unit time, that is, the inverse of the time required to complete the transmission of a specific amount of data. Through multiple experiments, a series of historical transmission efficiency record values can be obtained. These values constitute a set of historical transmission efficiency record values, which reflect the distribution of system transmission efficiency under a given test data volume and channel bandwidth. The set of historical transmission efficiency record values is statistically analyzed to find the mode as the first transmission efficiency calibration value.
[0030] Furthermore, it also includes:
[0031] When the first smart campus application node in the smart campus application node list receives the plurality of sub-packets, the plurality of sub-packets are packaged to obtain the first data packet.
[0032] In the smart campus system, when the underlying perception data sent by the underlying perception device is split into several sub-packets and transmitted to the first smart campus application node in the smart campus application node list through the network, the node needs to encapsulate the several sub-packets, that is, merge the several sub-packets into a complete data packet, namely the first data packet.
[0033] Obtain an mq cluster node status list, wherein the mq cluster node status list includes an mq cluster node free load list.
[0034] Get the mq (message queue) cluster node status list from the system, including the mq cluster node free load list (idle processing capacity or remaining resources, etc.). The mq cluster node free load list contains the current free load of each node in the mq cluster, which can be measured by the remaining capacity of indicators such as CPU usage, memory usage, disk space, and network bandwidth.
[0035] Through the front-end load balancing data center, the underlying perception data list is optimized for balanced deployment according to the MQ cluster node free load list and the campus number label list to generate a first balanced deployment plan.
[0036] Through the front-end load balancing data center, the underlying perception data is balanced and optimized according to the spare load of the mq cluster nodes and the campus number label to generate the first balanced deployment plan.
[0037] Furthermore, through the front-end load balancing data center, according to the free load list of the mq cluster nodes and the campus number label list, the underlying perception data list is optimized for balanced deployment, and a first balanced deployment plan is generated, including:
[0038] According to the MQ cluster node free load list, the underlying perception data list is randomly deployed, and a first initial balanced deployment plan is configured, wherein the first initial balanced deployment plan includes an MQ cluster node deployment list and an MQ cluster node deployment data volume list; the maximum value of the MQ cluster node deployment data volume list is extracted to generate a first maximum serial data volume; local history backtracking is performed according to the first maximum serial data volume and the secondary channel bandwidth to obtain a second transmission efficiency calibration value; through a transmission duration prediction network, the secondary channel bandwidth, the second transmission efficiency calibration value and the first maximum serial data volume are processed to obtain a second transmission prediction duration; when the second transmission prediction duration is less than or equal to a second transmission duration threshold, and the variance value of the MQ cluster node deployment data volume list is less than or equal to a variance threshold, the first initial balanced deployment plan is set to the first balanced deployment plan.
[0039] Preferably, according to the list of free load of the mq cluster node, the bottom layer perception data list is randomly deployed, that is, the specific load capacity of the node is not considered, and the node is randomly selected to deploy the data; after the random deployment, the amount of data deployed on each mq cluster node is recorded to form a list of data deployed on the mq cluster node, and at the same time, which data is deployed on each node is recorded to form a list of mq cluster node deployment, and these two lists together constitute the first initial balanced deployment plan. Extract the maximum value from the list of data deployed on the mq cluster node, that is, the first maximum serial data volume, which represents the maximum amount of data that needs to be processed in all nodes; based on the first maximum serial data volume and the secondary channel bandwidth, perform local historical backtracking to obtain the second transmission efficiency calibration value, wherein the secondary channel refers to the channel transmitted to the application node; input the secondary channel bandwidth, the second transmission efficiency calibration value and the first maximum serial data volume into the transmission time prediction network, and the transmission time prediction network will output the second transmission prediction time, that is, the time required to transmit the first maximum serial data volume under given conditions. When the second transmission prediction duration is less than or equal to the second transmission duration threshold, and the variance value of the MQ cluster node deployment data volume list is less than or equal to the variance threshold, it means that the first initial balanced deployment plan performs well in terms of transmission efficiency and data balance, so it can be set as the first balanced deployment plan.
[0040] After the underlying perception data list is deployed according to the first balanced deployment plan, the underlying perception data list is sent in parallel to the smart campus application node list for processing based on the mq cluster node and the campus number label list to obtain the application node processing data list, wherein the application node processing data list has a perception device number label list and the campus number label list.
[0041] According to the first balanced deployment plan, the underlying perception data list is distributed to each node of the mq cluster; based on the mq cluster node and the campus number label list, the data already deployed on the mq node is sent in parallel to the corresponding smart campus application node list for processing to obtain the application node processing data list, wherein the application node processing data list has a perception device number label list and a campus number label list.
[0042] An information topic subscription node status list is obtained, wherein the information topic subscription node status list includes an information topic subscription node idle subscription quantity list.
[0043] An information topic subscription node status list is obtained from the system. The information topic subscription node status list includes an information topic subscription node idle subscription quantity list, which is used to evaluate the current receiving capability of the subscription node.
[0044] Through the post-load balancing data center, the application node processing data list is balanced and optimized according to the list of idle subscription quantities of the information topic subscription nodes, the perception device number label list and the campus number label list to generate a second balanced deployment plan.
[0045] Through the post-load balancing data center, the application node processing data is further balanced and optimized according to the idle subscription number of the information topic subscription node, the perception device number label and the campus number label, and a second balanced deployment plan is generated.
[0046] Furthermore, through the post-load balancing data center, according to the idle subscription quantity list of the information topic subscription node, the perception device number label list and the campus number label list, the application node processing data list is balanced and optimized to generate a second balanced deployment plan, including:
[0047] According to the list of idle subscription quantities of the information topic subscription nodes, the application node processing data list is randomly deployed to configure a second initial balanced deployment plan, wherein the second initial balanced deployment plan includes an information topic subscription node deployment list and an information topic subscription node deployment data volume list; the maximum value of the information topic subscription node deployment data volume list is extracted to generate a second maximum serial data volume; local history backtracking is performed based on the second maximum serial data volume and the third-level channel bandwidth to obtain a third transmission efficiency calibration value; through a transmission duration prediction network, the third-level channel bandwidth, the third transmission efficiency calibration value and the second maximum serial data volume are processed to obtain a third transmission prediction duration; when the third transmission prediction duration is less than or equal to a third transmission duration threshold, and the variance value of the information topic subscription node deployment data volume list is less than or equal to a variance threshold, the second initial balanced deployment plan is set to the second balanced deployment plan.
[0048] Preferably, according to the list of idle subscription numbers of information topic subscription nodes, the application node processing data list is randomly allocated. When allocating, it should be ensured that the idle subscription number of each subscription node is not exceeded; by recording which data is allocated to each subscription node, an information topic subscription node deployment list is generated, and at the same time, the amount of data allocated to each subscription node is recorded to generate an information topic subscription node deployment data amount list, and these two lists together constitute a second initial balanced deployment plan. Extract the maximum value, i.e., the second maximum serial data amount, from the information topic subscription node deployment data amount list; based on the second maximum serial data amount and the third-level channel bandwidth, perform local historical backtracking to obtain a third transmission efficiency calibration value, which reflects the amount of data that can be transmitted per unit time under given bandwidth and transmission conditions, wherein the third-level channel refers to the channel that transmits the user end; input the third-level channel bandwidth, the third transmission efficiency calibration value and the second maximum serial data amount into the transmission duration prediction network, and the transmission duration prediction network will output the third transmission prediction duration. When the third transmission prediction duration is less than or equal to the third transmission duration threshold, and the variance value of the information topic subscription node deployment data volume list is less than or equal to the variance threshold, the second initial balanced deployment scheme is set to the second balanced deployment scheme. Through the above steps, it can be ensured that an effective second balanced deployment scheme is configured for the information topic subscription node under the premise of satisfying transmission efficiency and data distribution uniformity.
[0049] After the application node processing data list is deployed according to the second balanced deployment solution, the application node processing data list is sent in parallel to a preset user terminal based on an information topic subscription node.
[0050] After the application node processing data list is successfully deployed to the information topic subscription node according to the second balanced deployment scheme, on the subscription node, the data blocks to be sent are allocated to each node according to the deployed data volume list, so as to be sent in parallel to the preset user end. The parallel sending mechanism based on the information topic subscription node can efficiently send the application node processing data list to the preset user end, meeting the user's requirements for data real-time and reliability.
[0051] In summary, the embodiments of the present application have at least the following technical effects:
[0052] First, the underlying perception data list of the underlying perception device is received, wherein the underlying perception data list has a campus number label list; at the same time, the mq cluster node status list is obtained, wherein the mq cluster node status list includes the mq cluster node free load list. Through the front load balancing data center, the underlying perception data list is balanced and optimized according to the mq cluster node free load list and the campus number label list, and a first balanced deployment plan is generated. Then, after the underlying perception data list is deployed according to the first balanced deployment plan, the underlying perception data list is sent in parallel to the smart campus application node list for processing based on the mq cluster node and the campus number label list, and an application node processing data list is obtained, wherein the application node processing data list has a perception device number label list and the campus number label list. Further, an information topic subscription node status list is obtained, wherein the information topic subscription node status list includes an information topic subscription node idle subscription number list. Through the rear load balancing data center, according to the information topic subscription node idle subscription number list, the perception device number label list and the campus number label list, the application node processing data list is balanced and optimized to generate a second balanced deployment plan. Finally, after the application node processing data list is deployed according to the second balanced deployment scheme, the application node processing data list is sent in parallel to the preset user end based on the information topic subscription node. This solves the technical problems of poor management refinement and unstable concurrent transmission efficiency in the load balancing stage of traditional concurrent processing, and achieves the technical effect of improving management refinement and stabilizing concurrent transmission efficiency.
[0053] Embodiment 2 is based on the same inventive concept as the asynchronous balancing method for smart campus service in the above embodiment. Figure 2 As shown, the present application provides an asynchronous balancing platform for smart campus services, wherein the platform includes:
[0054] A data receiving module 11, the data receiving module 11 is used to receive the underlying perception data list of the underlying perception device, wherein the underlying perception data list has a campus number label list; a cluster node status acquisition module 12, the cluster node status acquisition module 12 is used to obtain the mq cluster node status list, wherein the mq cluster node status list includes the mq cluster node free load list; a first optimization module 13, the first optimization module 13 is used to optimize the balanced deployment of the underlying perception data list through the front-end load balancing data center according to the mq cluster node free load list and the campus number label list, and generate a first balanced deployment plan; a processing module 14, the processing module 14 is used to deploy the underlying perception data list according to the first balanced deployment plan, and then send the underlying perception data list in parallel to the smart campus application node list for processing based on the mq cluster node and the campus number label list, to obtain Obtain an application node processing data list, wherein the application node processing data list has a perception device number label list and the campus number label list; a subscription node status acquisition module 15, the subscription node status acquisition module 15 is used to obtain an information topic subscription node status list, wherein the information topic subscription node status list includes an information topic subscription node idle subscription quantity list; a second optimization module 16, the second optimization module 16 is used to perform balanced deployment optimization on the application node processing data list through a post-load balancing data center according to the information topic subscription node idle subscription quantity list, the perception device number label list and the campus number label list, and generate a second balanced deployment plan; a data distribution module 17, the data distribution module 17 is used to deploy the application node processing data list according to the second balanced deployment plan, and then send the application node processing data list in parallel to a preset user terminal based on the information topic subscription node.
[0055] Furthermore, the data receiving module 11 is used to execute the following method:
[0056] Collect a first data packet through the first underlying perception device of the underlying perception device; determine whether the first data packet is greater than or equal to a data volume threshold; if greater, split the first data packet into a plurality of sub-packets, wherein the data volume of any one of the plurality of sub-packets is less than the data volume threshold; add the plurality of sub-packets into the underlying perception data list.
[0057] Furthermore, the data receiving module 11 is used to execute the following method:
[0058] Configure the test data volume and the primary channel bandwidth; perform local historical backtracking based on the test data volume and the primary channel bandwidth to obtain a first transmission efficiency calibration value, wherein the first transmission efficiency calibration value represents the overhead of increasing the transmission time and is less than or equal to 1; load a first transmission duration threshold; process the primary channel bandwidth, the first transmission efficiency calibration value and the test data volume through a transmission duration prediction network to obtain a first transmission prediction duration; when the first transmission prediction duration is equal to the first transmission duration threshold, set the test data volume to the data volume threshold; when the first transmission prediction duration is not equal to the first transmission duration threshold, update the test data volume and execute a loop.
[0059] Furthermore, the data receiving module 11 is used to execute the following method:
[0060] Local data collection is performed according to the test data volume and the primary channel bandwidth to obtain a set of historical transmission efficiency record values; and mode calibration is performed on the set of historical transmission efficiency record values to obtain the first transmission efficiency calibration value.
[0061] Furthermore, the data receiving module 11 is used to execute the following method:
[0062] When the first smart campus application node in the smart campus application node list receives the plurality of sub-packets, the plurality of sub-packets are packaged to obtain the first data packet.
[0063] Furthermore, the first optimization module 13 is used to execute the following method:
[0064] According to the MQ cluster node free load list, the underlying perception data list is randomly deployed, and a first initial balanced deployment plan is configured, wherein the first initial balanced deployment plan includes an MQ cluster node deployment list and an MQ cluster node deployment data volume list; the maximum value of the MQ cluster node deployment data volume list is extracted to generate a first maximum serial data volume; local history backtracking is performed according to the first maximum serial data volume and the secondary channel bandwidth to obtain a second transmission efficiency calibration value; through a transmission duration prediction network, the secondary channel bandwidth, the second transmission efficiency calibration value and the first maximum serial data volume are processed to obtain a second transmission prediction duration; when the second transmission prediction duration is less than or equal to a second transmission duration threshold, and the variance value of the MQ cluster node deployment data volume list is less than or equal to a variance threshold, the first initial balanced deployment plan is set to the first balanced deployment plan.
[0065] Furthermore, the second optimization module 16 is used to perform the following method:
[0066] According to the list of idle subscription quantities of the information topic subscription nodes, the application node processing data list is randomly deployed to configure a second initial balanced deployment plan, wherein the second initial balanced deployment plan includes an information topic subscription node deployment list and an information topic subscription node deployment data volume list; the maximum value of the information topic subscription node deployment data volume list is extracted to generate a second maximum serial data volume; local history backtracking is performed based on the second maximum serial data volume and the third-level channel bandwidth to obtain a third transmission efficiency calibration value; through a transmission duration prediction network, the third-level channel bandwidth, the third transmission efficiency calibration value and the second maximum serial data volume are processed to obtain a third transmission prediction duration; when the third transmission prediction duration is less than or equal to a third transmission duration threshold, and the variance value of the information topic subscription node deployment data volume list is less than or equal to a variance threshold, the second initial balanced deployment plan is set to the second balanced deployment plan.
[0067] It should be noted that the above-mentioned sequence of the embodiments of the present application is only for description and does not represent the advantages and disadvantages of the embodiments. And the above-mentioned specific embodiments of this specification are described. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0068] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
[0069] This specification and drawings are merely exemplary illustrations of the present application and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, a person skilled in the art may make various modifications and variations to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the present application and its equivalents, the present application intends to include these modifications and variations.
Claims
1. An asynchronous balancing method for smart campus services, characterized in that: The method comprises: Receiving a bottom-level perception data list of a bottom-level perception device, wherein the bottom-level perception data list has a campus number label list; Obtaining an mq cluster node status list, wherein the mq cluster node status list includes an mq cluster node free load list; Through the front-end load balancing data center, according to the free load list of the mq cluster nodes and the campus number label list, the underlying perception data list is optimized for balanced deployment, and a first balanced deployment plan is generated, including: According to the MQ cluster node free load list, the bottom layer perception data list is randomly deployed, and a first initial balanced deployment scheme is configured, wherein the first initial balanced deployment scheme includes an MQ cluster node deployment list and an MQ cluster node deployment data volume list; Extract the maximum value of the MQ cluster node deployment data volume list to generate a first maximum serial data volume; Perform local history backtracking according to the first maximum serial data volume and the secondary channel bandwidth to obtain a second transmission efficiency calibration value; Processing the secondary channel bandwidth, the second transmission efficiency calibration value and the first maximum serial data volume through a transmission duration prediction network to obtain a second transmission prediction duration; When the second transmission prediction duration is less than or equal to the second transmission duration threshold, and the variance value of the MQ cluster node deployment data volume list is less than or equal to the variance threshold, the first initial balanced deployment scheme is set to the first balanced deployment scheme; After the underlying perception data list is deployed according to the first balanced deployment solution, based on the mq cluster node and the campus number label list, the underlying perception data list is sent in parallel to the smart campus application node list for processing to obtain an application node processing data list, wherein the application node processing data list has a perception device number label list and the campus number label list; Obtaining an information topic subscription node status list, wherein the information topic subscription node status list includes an information topic subscription node idle subscription quantity list; Through the post-load balancing data center, according to the idle subscription quantity list of the information topic subscription node, the perception device number label list and the campus number label list, the application node processing data list is balanced and optimized to generate a second balanced deployment plan; After the application node processing data list is deployed according to the second balanced deployment solution, the application node processing data list is sent in parallel to a preset user terminal based on an information topic subscription node.
2. The asynchronous balancing method for smart campus service according to claim 1, characterized in that: Receive the underlying perception data list of the underlying perception device, including: Collecting a first data packet through a first underlying sensing device of the underlying sensing device; Determining whether the first data packet is greater than or equal to a data volume threshold; If it is greater than, splitting the first data packet into a plurality of sub-packets, wherein the data volume of any one of the plurality of sub-packets is less than the data volume threshold; Add the plurality of sub-packets into the bottom layer perception data list.
3. The asynchronous balancing method for smart campus service according to claim 2, characterized in that: The data volume threshold determination step comprises: Configure the test data volume and primary channel bandwidth; Performing local history backtracking according to the test data volume and the primary channel bandwidth to obtain a first transmission efficiency calibration value, wherein the first transmission efficiency calibration value represents an increase in transmission time overhead and is less than or equal to 1; Loading the first transmission duration threshold; Processing the primary channel bandwidth, the first transmission efficiency calibration value and the test data volume through a transmission duration prediction network to obtain a first transmission prediction duration; When the first transmission prediction duration is equal to the first transmission duration threshold, setting the test data volume to the data volume threshold; When the first transmission prediction duration is not equal to the first transmission duration threshold, the test data amount is updated to execute a loop.
4. The asynchronous balancing method for smart campus service according to claim 3, characterized in that: Performing local history backtracking according to the test data volume and the primary channel bandwidth to obtain a first transmission efficiency calibration value includes: Performing local data collection according to the test data volume and the primary channel bandwidth to obtain a set of historical transmission efficiency record values; Perform mode calibration on the historical transmission efficiency record value set to obtain the first transmission efficiency calibration value.
5. The asynchronous balancing method for smart campus service according to claim 2, characterized in that: Also includes: When the first smart campus application node in the smart campus application node list receives the plurality of sub-packets, the plurality of sub-packets are packaged to obtain the first data packet.
6. The asynchronous balancing method for smart campus service according to claim 1, characterized in that: Through the post-load balancing data center, according to the idle subscription quantity list of the information topic subscription node, the perception device number label list and the campus number label list, the application node processing data list is balanced and optimized to generate a second balanced deployment plan, including: According to the idle subscription quantity list of the information topic subscription node, the application node processing data list is randomly deployed to configure a second initial balanced deployment scheme, wherein the second initial balanced deployment scheme includes the information topic subscription node deployment list and the information topic subscription node deployment data quantity list; Extracting the maximum value of the information topic subscription node deployment data volume list to generate a second maximum serial data volume; Perform local history backtracking according to the second maximum serial data volume and the third-level channel bandwidth to obtain a third transmission efficiency calibration value; Processing the third-level channel bandwidth, the third transmission efficiency calibration value and the second maximum serial data volume through a transmission duration prediction network to obtain a third transmission prediction duration; When the third transmission prediction duration is less than or equal to the third transmission duration threshold, and the variance value of the information topic subscription node deployment data volume list is less than or equal to the variance threshold, the second initial balanced deployment plan is set to the second balanced deployment plan.
7. Asynchronous balancing platform for smart campus services, characterized in that: The platform is used to implement the asynchronous balancing method for smart campus services according to any one of claims 1 to 6, comprising: A data receiving module, the data receiving module is used to receive a bottom-level perception data list of a bottom-level perception device, wherein the bottom-level perception data list has a campus number label list; A cluster node status acquisition module, wherein the cluster node status acquisition module is used to obtain an mq cluster node status list, wherein the mq cluster node status list includes an mq cluster node free load list; A first optimization module, wherein the first optimization module is used to optimize the balanced deployment of the underlying perception data list through a front-end load balancing data center according to the MQ cluster node free load list and the campus number label list, and generate a first balanced deployment plan; A processing module, wherein the processing module is used to deploy the underlying perception data list according to the first balanced deployment solution, and then send the underlying perception data list to the smart campus application node list in parallel for processing based on the mq cluster node and the campus number label list to obtain an application node processing data list, wherein the application node processing data list has a perception device number label list and the campus number label list; A subscription node status acquisition module, wherein the subscription node status acquisition module is used to obtain an information topic subscription node status list, wherein the information topic subscription node status list includes an information topic subscription node idle subscription quantity list; A second optimization module, the second optimization module is used to perform balanced deployment optimization on the application node processing data list according to the idle subscription quantity list of the information topic subscription node, the perception device number label list and the campus number label list through a post-load balancing data center, and generate a second balanced deployment plan; A data distribution module, wherein the data distribution module is used to deploy the application node processing data list according to the second balanced deployment solution, and then send the application node processing data list in parallel to a preset user terminal based on an information topic subscription node.
