Bandwidth coordination and information synchronization method, system, equipment and medium

By setting up a temporary transfer library in the master node and using the random forest voting mechanism to allocate bandwidth, the problem of insufficient bandwidth and delay in the information synchronization process under cloud computing mode is solved, improving work efficiency and ensuring data security.

CN118764485APending Publication Date: 2024-10-11SHANGHAI GENIE ROBOT AUTOMATIC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311353393.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-18
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

The traditional cloud computing model has problems of high latency, network instability, and low bandwidth. As a result, different departments under the same company are prone to insufficient bandwidth, large delays, and the inability to achieve immediate response when information is circulated.

Method used

Set up a temporary transfer library in the master node to send the outgoing information from the slave node to the temporary transfer station, and then send it to the cloud database and other slave nodes respectively. The random forest voting mechanism is used to allocate synchronization bandwidth to achieve information synchronization, and Automatically push or receive information when bandwidth is sufficient.

Benefits of technology

It effectively solves the problem of insufficient bandwidth and high delay in the information synchronization process, improves work efficiency, reduces cloud load, and ensures data security and processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764485A_ABST
    Figure CN118764485A_ABST
Patent Text Reader

Abstract

The invention discloses a bandwidth coordination and information synchronization method, system, equipment and medium. The method comprises the following steps: S1, establishing a temporary transfer library in communication connection with a slave node to which the master node belongs in the master node; s2, the slave nodes firstly send the outgoing information to a temporary transfer station, and then the temporary transfer station respectively sends the outgoing information to the cloud database and the other slave nodes; s3, slave nodes in the master nodes perform information synchronization through the temporary transfer stations, and different master nodes perform information synchronization through the cloud database; and S4, calculating the current residual bandwidth of each node at the same time, allocating the synchronous bandwidth of each node according to a random forest voting mechanism, and performing data movement. According to the method, the temporary transfer library and the random forest voting mechanism are introduced, so that the problems of insufficient bandwidth and high delay in the synchronization process of multi-node transmission of information are effectively solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer information processing, and in particular to a bandwidth coordination and information synchronization method, system, equipment and medium. Background Art

[0002] The high latency, network instability and low bandwidth problems in the traditional cloud computing (or central computing) model are closely related to the network conditions and bandwidth limitations of cloud servers. Due to resource constraints, cloud computing services are inevitably affected by high latency and network instability, but by migrating some or all of the processing programs closer to the user or data collection point, the impact on the application in the cloud center model site can be greatly reduced.

[0003] Specifically in the actual machining industry business application environment, the information flow between departments of different branches of the same company, when multiple departments read the same business content at the same time, is prone to congestion and errors due to insufficient bandwidth resources, and then the delay affects work efficiency and cannot achieve immediate response. Summary of the invention

[0004] The present invention aims to solve the existing problems and provide a bandwidth coordination and information synchronization method, system, device and medium.

[0005] In order to achieve the above object, the technical solution adopted by the present invention provides a bandwidth coordination and information synchronization method, including:

[0006] S1, establish a temporary transit library in the master node to communicate with its slave nodes;

[0007] S2, the slave node first sends the outgoing information to the temporary transfer station, and the temporary transfer station then sends it to the cloud database and other slave nodes respectively;

[0008] S3, the slave nodes within the master node synchronize information through various temporary transfer stations, and different master nodes synchronize information through the cloud database;

[0009] S4, at the same time, calculates the current remaining bandwidth of each node, allocates the synchronization bandwidth of each node according to the random forest voting mechanism, and performs data movement.

[0010] In S2 of some embodiments, the temporary transfer station marks the outgoing information it processes with corresponding identification bits and status bits.

[0011] In S3 of some embodiments, the temporary relay station synchronizes internal information between slave nodes.

[0012] In S4 of some embodiments, when bandwidth is sufficient, the temporary transfer station automatically pushes and automatically receives outgoing information, or the temporary transfer station uses off-peak traffic to push outgoing information and receive information sent by other temporary transfer libraries and cloud databases.

[0013] In S4 of some embodiments, the cloud database monitors the status of each node, and / or undertakes system communication, and / or dynamically selects the node to be transmitted based on the random forest voting mechanism and the status of the node.

[0014] In S4 of some embodiments, the random forest voting mechanism includes:

[0015] S401, the information data to be synchronized is formed into a total training sample set R, and N training samples are randomly taken out from the total training sample set with replacement each time to form a new training sample set T for training a decision tree;

[0016] S402, when each sample has M attributes, when each node of the decision tree needs to be split, m attributes are randomly selected from the M attributes, satisfying the condition m<<M; then, the Gini coefficient is used to select one attribute from the m attributes as the splitting attribute of the node;

[0017] S403, during the decision tree formation process, each node is split according to step S402 until it cannot be split any further;

[0018] S404, establishing A decision trees according to steps S401-S403 to form a random forest voting mechanism;

[0019] S405, determining the importance ranking of attributes through the Gini index, calculating the final ranking result of the decision tree, and performing information synchronization based on the final ranking result of the decision tree.

[0020] In S402 of some embodiments, the Gini index formula is:

[0021]

[0022] Among them, T is the new training sample set, C k is the sample subset in T that belongs to the kth order, K is the number of sorts;

[0023] If the sample set T is divided into two parts, T1 and T2, according to whether a certain attribute B takes a possible value b, that is:

[0024] T1={(x,y)∈T|B(x)=b}, T2=T-T1

[0025] Then under the condition of attribute B, the Gini index of set T is defined as:

[0026]

[0027] The Gini index Gini(T) represents the uncertainty of the set T, and the Gini index Gini(T,B) represents the uncertainty of the set T after being separated by B=b.

[0028] The present invention also provides a multi-node bandwidth coordination and information synchronization system, comprising:

[0029] Several master nodes, each master node includes several slave nodes;

[0030] Each master node is equipped with a temporary transfer library, which is connected to each slave node in communication. The temporary transfer station is used to send the outgoing information of the slave node to the cloud database and other slave nodes respectively.

[0031] The cloud database connected to the master node is used to monitor the status of each node and dynamically select the node to be transmitted based on the random forest voting mechanism and the status of the node.

[0032] In some embodiments, the temporary transit library marks the outgoing information it processes with corresponding identification bits and status bits.

[0033] In some embodiments, the temporary transit library utilizes off-peak traffic to push outgoing information and receive information sent by other temporary transit libraries and the cloud database.

[0034] In some embodiments, the temporary transit library synchronizes internal information between slave nodes.

[0035] In some embodiments, the master node is a company, the slave nodes are company departments, and the outgoing information or internal information is machining data.

[0036] In some embodiments, the machining data includes one or more of orders, ingredients and processes, warehouse and procurement, production, inspection, finance and invoicing, logistics, statistics and analysis.

[0037] In some embodiments, order management mainly involves: total order volume, quantity shipped, shipping date, and product qualification rate.

[0038] In some embodiments, material management mainly involves: real-time material demand overview, timely adjustment of material supply, and material demand planning, such as: order quantity, material types involved, material demand, available quantity, number of materials to be purchased, and materials to be purchased predicted based on historical data, such as a bubble chart, with the horizontal axis being the expected loss and the vertical axis being the expected usage, and the size of the bubble representing the order quantity. Production line management mainly involves: target output, actual output, completion, and hourly capacity status, and capacity comparison of each production line.

[0039] In some embodiments, the analysis of unqualified products mainly involves: the total delivery volume, the qualified rate, and the number of unqualified products. The reasons for each unqualified order are summed up and the proportion is expressed with a pie chart; multi-angle analysis is performed, such as: from the perspective of human defects and poor quality, it is found that most defects are caused by human factors; multi-mode analysis is performed, such as: through a bar chart, the trend of the delivery quantity and the unqualified rate is displayed to determine whether there are omissions in management.

[0040] In some embodiments, the random forest voting mechanism includes:

[0041] S401, the information data to be synchronized is formed into a total training sample set R, and N training samples are randomly taken out from the total training sample set with replacement each time to form a new training sample set T for training a decision tree;

[0042] S402, when each sample has M attributes, when each node of the decision tree needs to be split, m attributes are randomly selected from the M attributes, satisfying the condition m<<M; then, the Gini coefficient is used to select one attribute from the m attributes as the splitting attribute of the node;

[0043] S403, during the decision tree formation process, each node is split according to step S402 until it cannot be split any further;

[0044] S404, establishing A decision trees according to steps S401-S403 to form a random forest voting mechanism;

[0045] S405, determining the importance ranking of attributes through the Gini index, calculating the final ranking result of the decision tree, and performing information synchronization based on the final ranking result of the decision tree.

[0046] In some embodiments, the Gini index formula in S402 is:

[0047]

[0048] Among them, T is the new training sample set, C k is the sample subset in T that belongs to the kth order, K is the number of sorts;

[0049] If the sample set T is divided into two parts, T1 and T2, according to whether a certain attribute B takes a possible value b, that is:

[0050] T1={(x,y)∈T|B(x)=b}, T2=T-T1

[0051] Then under the condition of attribute B, the Gini index of set T is defined as

[0052]

[0053] The Gini index Gini(T) represents the uncertainty of the set T, and the Gini index Gini(T,B) represents the uncertainty of the set T after being separated by B=b.

[0054] In S402 of some embodiments, the attributes of the Gini index may be one or more of: information upload time, information upload department, and detailed information content such as: contract number, item, batch, production instruction, and order delivery date.

[0055] The present invention also provides an electronic device, comprising one or more processors, for calling and running a computer program from a memory so as to enable the computer program to execute any of the above methods.

[0056] The present invention also provides a storage medium comprising computer executable instructions, wherein the computer executable instructions are used to perform any of the above methods when executed by a computer processor.

[0057] Compared with the prior art, the present invention effectively solves the problems of insufficient bandwidth and high latency in the synchronization process of information transmission among multiple nodes by introducing a temporary transit library and a random forest voting mechanism.

[0058] The present invention deploys the method and system near the device side, and uses algorithms to instantly feedback decisions, has rapid response capabilities, and can filter most of the data, effectively reducing the load on the cloud, making massive connections and massive data processing possible. Local collection, local analysis, and local processing of information data effectively reduce the chance of data being exposed to the public network and protect data privacy. Storage and data processing are performed under intermittent network connections to ensure data security and improve data processing efficiency. Digital operation statistics of various costs and KPi assessments provide more efficient, flexible, and competitive operations for the company's performance evaluation, decision support, process optimization, incentive mechanisms, and other operations. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 is a flow chart of a bandwidth coordination and information synchronization method;

[0060] Figure 2 It is the database flow chart of the machining information synchronization system;

[0061] Figure 3 It is the framework diagram of the machining information synchronization system;

[0062] Figure 4 This is the layout diagram of the temporary transfer warehouse;

[0063] Figure 5 This is a diagram of the random forest voting mechanism. DETAILED DESCRIPTION

[0064] The present invention is further described in conjunction with the accompanying drawings. A first aspect of an embodiment of the present invention provides a bandwidth coordination and information synchronization method, which mainly includes:

[0065] S1, establish a temporary transit library in the master node to communicate with its slave nodes;

[0066] S2, the slave node first sends the outgoing information to the temporary transfer station, and the temporary transfer station then sends it to the cloud database and the temporary transfer library of other slave nodes respectively;

[0067] S3, the slave nodes within the master node synchronize information through various temporary transfer stations, and different master nodes synchronize information through the cloud database;

[0068] S4, at the same time, calculates the current remaining bandwidth of each node, allocates the synchronization bandwidth of each node according to the random forest voting mechanism, and performs data movement.

[0069] The master node and slave node include at least one processor; each master node includes at least one slave node and communicates with it, and the slave nodes communicate with each other through a temporary transfer library; different master nodes communicate with each other through a cloud database. The information sent between slave nodes is internal information; and the information that the slave node needs to send to the outside of the master node is outbound information.

[0070] Furthermore, in S2, the temporary transfer station marks the outgoing information it processes with corresponding identification bits and status bits, which facilitates rapid retrieval and storage of relevant information, and is conducive to solving subsequent maintenance, backup, data security and availability issues.

[0071] Furthermore, in S3, the temporary transfer station synchronizes the internal information between slave nodes. It accepts the internal information of this slave node and sends it to other departments; it can also accept the internal information of other slave nodes and send it to this slave node; when the bandwidth is sufficient, it has the functions of automatic push and automatic reception; it can also automatically use the idle traffic to push the outgoing information, or automatically use the idle traffic to accept the information sent by the temporary transfer library of other departments and the overall cloud database;

[0072] Furthermore, in S4, the cloud database deploys the required applications and assumes the communication responsibility. The cloud database also monitors the status of each node so as to dynamically select the node to be transmitted based on the random forest voting mechanism and the node status.

[0073] See also Figure 5 ,Furthermore, in S4, the random forest voting mechanism includes:

[0074] S401, the information data to be synchronized is formed into a total training sample set R, and N training samples are randomly taken out from the total training sample set with replacement each time to form a new training sample set T for training a decision tree;

[0075] S402, when each sample has M attributes, when each node of the decision tree needs to be split, m attributes are randomly selected from the M attributes, satisfying the condition m<<M; then, the Gini coefficient is used to select one attribute from the m attributes as the splitting attribute of the node;

[0076] S403, during the decision tree formation process, each node is split according to step S402 until it cannot be split any further;

[0077] S404, establishing A decision trees according to steps S401-S403 to form a random forest voting mechanism;

[0078] S405, determining the importance ranking of attributes through the Gini index, calculating the final ranking result of the decision tree, and performing information synchronization based on the final ranking result of the decision tree.

[0079] Preferably, in S402, the Gini index formula is:

[0080]

[0081] Among them, T is the new training sample set, C k is the sample subset in T that belongs to the kth order, K is the number of sorts;

[0082] If the sample set T is divided into two parts, T1 and T2, according to whether a certain attribute B takes a possible value b, that is:

[0083] T1={(x,y)∈T|B(x)=b}, T2=T-T1

[0084] Then under the condition of attribute B, the Gini index of set T is defined as:

[0085]

[0086] The Gini index Gini(T) represents the uncertainty of set T, and the Gini index Gini(T,B) represents the uncertainty of set T after being separated by B=b. That is, the Gini index is sorted, and the smaller the Gini index, the higher the ranking. If the weights are consistent, a certain amount of outgoing information is distributed evenly.

[0087] See also Figure 1-4 , Figure 1-4The second aspect of the embodiment of the present invention is presented, a multi-node bandwidth coordination and information synchronization system, specifically an information synchronization system for machining data, including several master nodes, the master node is a company. The company includes several departments, namely slave nodes; each department is provided with a department operation library.

[0088] See also Figure 3 Each company has a temporary transit library, which is connected to each department respectively; the other departments of the same company synchronize information through the temporary transit library of the department, and the other departments of other companies synchronize information through the overall cloud database.

[0089] Furthermore, the temporary transfer library will arrange regular updates, and delete the original files after the update; the system will determine the time, and send the specified number of requests in the same batch in turn, and inform the other party to process them first; when the bandwidth is sufficient, the same batch of requests will be sent to the local temporary department transfer library in turn according to the voting mechanism weight, backup, and operation log. Figure 4 Furthermore, the functions of the department's temporary transfer library are: receiving information from the department and sending it to other departments, receiving information from other departments and sending it to the department; sending the department's outgoing information to the cloud database and other departments respectively. When the bandwidth is sufficient, it has the functions of automatic push and automatic reception; automatically using idle traffic to push outgoing information; automatically using idle traffic to receive information sent by other departments' temporary transfer libraries and the overall cloud database. It has identification bits and status bits, which facilitates the rapid retrieval and storage of relevant information, and is conducive to solving subsequent maintenance, backup, data security and availability issues.

[0090] An overall cloud database is established in the cloud and communicated with the master node. Furthermore, the overall cloud database is used to store machining data transmitted from the temporary transfer library. In addition, the required applications are deployed on the overall cloud database, which is responsible for the communication of the entire system and continuously monitors the status of each node in order to dynamically select the node to be transmitted based on the random forest voting mechanism and the status of the node.

[0091] Furthermore, the machining data processed by the above system includes machining data such as orders, ingredients and processes, warehouses and procurement, production, inspection, finance and invoicing, logistics, statistics and analysis.

[0092] Among them, the functions of some data are as follows: Order management mainly involves: total order volume, quantity shipped, shipping date, and product qualification rate.

[0093] Material management mainly involves; real-time material demand overview, timely adjustment of material supply, and material demand planning, such as: order quantity, types of materials involved, material demand, available quantity, quantity of materials to be purchased, and materials to be purchased predicted based on historical data. For example, it can be expressed in a bubble chart, with the horizontal axis being the expected loss and the vertical axis being the expected usage, and the size of the bubble representing the order quantity.

[0094] Production line management mainly involves: target output, actual output, completion rate, hourly production capacity, and capacity comparison of each production line.

[0095] The analysis of unqualified products mainly involves: total delivery volume, qualified rate, and unqualified quantity. The reasons for each unqualified order are summed up and the proportion is expressed in a pie chart. Multi-angle analysis is performed, such as: from the perspective of human defects and poor quality, it is found that most defects are caused by human factors. Multi-mode analysis is performed, such as: through a bar chart, the trend of delivery quantity and unqualified rate is displayed to determine whether there are omissions in management. Figure 5 , based on the above system, the random forest voting mechanism implemented includes:

[0096] S401, the information data to be synchronized is formed into a total training sample set R, and N training samples are randomly taken out from the total training sample set with replacement each time to form a new training sample set T for training a decision tree;

[0097] S402, when each sample has M attributes, when each node of the decision tree needs to be split, m attributes are randomly selected from the M attributes, satisfying the condition m<<M; then, the Gini coefficient is used to select one attribute from the m attributes as the splitting attribute of the node;

[0098] S403, during the decision tree formation process, each node is split according to step S402 until it cannot be split any further;

[0099] S404, establishing A decision trees according to steps S401-S403 to form a random forest voting mechanism;

[0100] S405, determine the importance ranking of attributes (partial attributes such as: information upload time, information upload department, detailed information content such as: contract number, item, batch, production instruction, order delivery date, etc.) through the Gini index, calculate the final ranking result of the decision tree, and synchronize information based on the final ranking result of the decision tree. Further, the Gini index formula in S402 is:

[0101]

[0102] Among them, T is the new training sample set, C kis the sample subset in T that belongs to the kth order, K is the number of sorts;

[0103] If the sample set T is divided into two parts, T1 and T2, according to whether a certain attribute B takes a possible value b, that is:

[0104] T1={(x,y)∈T|B(x)=b}, T2=T-T1

[0105] Then under the condition of attribute B, the Gini index of set T is defined as

[0106]

[0107] The Gini index Gini(T) represents the uncertainty of set T, and the Gini index Gini(T,B) represents the uncertainty of set T after B=b separation. The Gini index is sorted, and the smaller the Gini index, the higher the ranking.

[0108] The third aspect of the embodiment of the present invention further provides an electronic device, which is deployed in a master node and a slave node respectively. The electronic device has a chip, including one or more processors, which are used to call and run a computer program from a memory, so that the device equipped with the chip executes the bandwidth coordination and information synchronization method in the above embodiment.

[0109] A fourth aspect of the embodiments of the present invention further provides a storage medium comprising computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to execute the bandwidth coordination and information synchronization method as described in any of the above embodiments.

[0110] The memory in this embodiment may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a ROM (Read-Only Memory), a PROM (Programmable ROM), an EPROM (Erasable PROM), an EEPROM (Electrically EPROM), or a flash memory. The volatile memory may be a RAM (Random Access Memory), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as SRAM (Static RAM), DRAM (Dynamic RAM), SDRAM (Synchronous DRAM), DDRSDRAM (Double Data Rate SDRAM), ESDRAM (Enhanced SDRAM), SLDRAM (Synchlink DRAM), and DRRAM (Direct Rambus RAM). The memory described herein is intended to include, but is not limited to, these and any other suitable types of memory. In some embodiments, the memory stores the following elements, upgrade packages, executable units, or data structures, or a subset thereof, or an extended set thereof: an operating system and an application.

[0111] The operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application program includes various application programs, which are used to implement various application services. The program for implementing the method of the embodiment of the present invention can be included in the application program.

[0112] In the embodiment of the present invention, the processor calls a program or instruction stored in the memory, specifically, the program or instruction stored in the application program, and the processor is used for the method steps of the present invention.

[0113] The above describes the implementation mode of the present invention in conjunction with the drawings and embodiments. The embodiments do not constitute a limitation of the present invention. Those skilled in the art can make adjustments as needed. Various deformations or modifications within the scope of the attached claims are within the scope of protection.

Claims

1. A bandwidth coordination and information synchronization method, characterized in that include: S1, establish a temporary transit library in the master node to communicate with its slave nodes; S2, the slave node first sends the outgoing information to the temporary transfer station, and the temporary transfer station then sends it to the cloud database and other slave nodes respectively; S3, the slave nodes within the master node synchronize information through various temporary transfer stations, and different master nodes synchronize information through the cloud database; S4, at the same time, calculates the current remaining bandwidth of each node, allocates the synchronization bandwidth of each node according to the random forest voting mechanism, and performs data movement.

2. The method according to claim 1, characterized in that: In S2, the temporary transfer station marks the outgoing information it processes with corresponding identification bits and status bits.

3. The method according to claim 1, characterized in that: In S3, the temporary transfer station synchronizes the internal information between slave nodes.

4. The method according to claim 1, characterized in that: In S4, when the bandwidth is sufficient, the temporary transfer station automatically pushes and automatically receives outgoing information; and / or the temporary transfer station uses off-peak traffic to push outgoing information and receive information sent by other temporary transfer libraries and cloud databases.

5. The method according to claim 1, characterized in that: In S4, the cloud database monitors the status of each node, and / or undertakes system communication, and / or dynamically selects the node to be transmitted based on the random forest voting mechanism and the status of the node.

6. The method according to claim 1, characterized in that: In S4, the random forest voting mechanism includes: S401, the information data to be synchronized is formed into a total training sample set R, and N training samples are randomly taken out from the total training sample set with replacement each time to form a new training sample set T for training a decision tree; S402, when each sample has M attributes, when each node of the decision tree needs to be split, m attributes are randomly selected from the M attributes, satisfying the condition m<<M; then, the Gini coefficient is used to select one attribute from the m attributes as the splitting attribute of the node; S403, during the decision tree formation process, each node is split according to step S402 until it cannot be split any further; S404, establishing A decision trees according to steps S401-S403 to form a random forest voting mechanism; S405, determining the importance ranking of attributes through the Gini index, calculating the final ranking result of the decision tree, and performing information synchronization based on the final ranking result of the decision tree.

7. The method according to claim 6, characterized in that: In S402, the Gini index formula is: Among them, T is the new training sample set, C k is the sample subset in T that belongs to the kth order, K is the number of sorts; If the sample set T is divided into two parts, T1 and T2, according to whether a certain attribute B takes a possible value b, that is: T1={(x, y)∈T|B(x)=b}, T2=T-T1 Then under the condition of attribute B, the Gini index of set T is defined as: The Gini index Gini(T) represents the uncertainty of the set T, and the Gini index Gini(T,B) represents the uncertainty of the set T after being separated by B=b.

8. A multi-node bandwidth coordination and information synchronization system, characterized in that include: Several master nodes, each master node includes several slave nodes; Each master node is equipped with a temporary transfer library and is connected to each slave node for communication; The temporary transfer station is used to send the outgoing information of the slave node to the cloud database and other slave nodes respectively; The cloud database connected to the master node is used to monitor the status of each node and dynamically select the node to be transmitted based on the random forest voting mechanism and the status of the node.

9. An electronic device, characterized in that: The computer system comprises one or more processors, which are used to call and run a computer program from a memory so as to execute the method according to any one of claims 1 to 9.

10. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to perform the method according to any one of claims 1 to 9 when executed by a computer processor.