ONU gateway Mesh sub-machine software version synchronization method and device based on spreading upgrade, computer equipment and storage medium
By employing a propagation-based upgrade approach and a hierarchical verification and retransmission mechanism, the network bottleneck and update timeout issues caused by the large number of nodes and complex topology in the ONU gateway Mesh network are resolved. This achieves efficient and reliable version synchronization, adapts to complex network topologies, and ensures eventual consistency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-11
- Publication Date
- 2026-03-10
AI Technical Summary
In a mesh network system with an ONU gateway, as the number of nodes increases and the complexity of the network topology increases, the centralized version synchronization mode leads to problems such as high communication pressure, bandwidth congestion, network bottlenecks, and update timeouts.
The method adopts a spread-based upgrade approach, in which the host sends update commands to the core slave machines, and the upgraded slave machines perform spread synchronization, hierarchical verification and retransmission, load balancing and rate control to ensure the integrity and reliability of version synchronization.
It improves the reliability and efficiency of version synchronization, avoids master node overload, adapts to multi-level complex topologies, reduces centralized congestion, ensures eventual consistency, and enhances network stability.
Smart Images

Figure CN121644582A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of software upgrade, in particular to a method for synchronizing software versions of ONU gateway Mesh sub-machines based on epidemic upgrade. BACKGROUND
[0002] In the Mesh network system of ONU gateway, the consistency of software versions between the host and the sub-machines is an important prerequisite for maintaining the stable operation of the network function. With the expansion of the scale of Mesh nodes, the centralized version synchronization mode faces the following problems: the communication pressure of the master node is large due to the over-concentration of the synchronization link; bandwidth congestion caused by concurrent update; and abnormal network topology maintenance caused by inconsistent versions between nodes. Although the traditional "centralized push" or "host direct control synchronization" method is simple, it is prone to network bottlenecks and update timeouts in a Mesh environment with a large number of nodes and complex network topology. Therefore, there is an urgent need for a synchronization mechanism with high reliability and distributed transmission characteristics to adapt to the Mesh scenario with multiple nodes. SUMMARY
[0003] Embodiments of the present application provide a method and device for synchronizing software versions of ONU gateway Mesh sub-machines based on epidemic upgrade, a computer device and a storage medium, to solve the technical problems of network bottlenecks and update timeouts in a Mesh environment with a large number of nodes and complex network topology.
[0004] A method for synchronizing software versions of ONU gateway Mesh sub-machines based on epidemic upgrade, comprising: initial triggering, including: when the host detects that a new version is available, sending an update instruction to at least one core sub-machine, and the sub-machine receiving the update instruction for updating; epidemic synchronization, including: the sub-machine that has completed the upgrade performing epidemic synchronization of the new version identification information to adjacent sub-machines through periodic broadcasting; carrying out verification in stages; completing confirmation and state summarization.
[0005] Further, the method further comprises the steps of load balancing and rate control, which comprise: the sub-machine sets the maximum number of simultaneous transmission connections; dynamically selecting adjacent sub-machines using RSSI or delay information; controlling the transmission interval.
[0006] Further, the method further comprises a step of processing abnormal situations, which comprises automatically performing epidemic synchronization again in the subsequent period for the sub-machine that has not been successfully updated.
[0007] Preferably, the step of verifying in stages comprises: The new version is hierarchically checked, and when the checking fails, the upper-level child machine retransmits; if the number of retransmission failures exceeds a threshold, it falls back to the host to reacquire.
[0008] Preferably, the step of the upgraded child machine spreading the new version identification information to the adjacent child machine through periodic broadcast includes: The upgraded child machine carries the new version identification information in the management frame or the special-purpose Mesh data frame of the periodic broadcast; after the adjacent child machine receives the broadcast of the new version identification information higher than its own version, it automatically triggers a download request.
[0009] Preferably, the mirror data of the new version is segmented pulled from the adjacent child machine in a P2P manner.
[0010] Preferably, the step of completion confirmation and status summary includes: The child machine broadcasts a synchronization identification after completing the update; The host periodically collects the synchronization progress of the entire network to determine whether the closed loop is completed.
[0011] An ONU gateway Mesh child machine software version synchronization device based on a spreading upgrade includes a host and a plurality of child machines, wherein: The host includes an initial trigger module for initial triggering, including: when the host detects that a new version is available, sending an update instruction to at least one core child machine; the child machine receives the update instruction to update; The child machine includes a spreading synchronization module for spreading synchronization, including: the upgraded child machine spreads the new version identification information to the adjacent child machine through periodic broadcast; the child machine further includes a checking module for hierarchical checking; The child machine further includes a completion confirmation module for completion confirmation; the host further includes a closed loop module for periodically collecting the synchronization progress of the entire network to determine whether the closed loop is completed.
[0012] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the above-mentioned ONU gateway Mesh child machine software version synchronization method based on a spreading upgrade when executing the computer program.
[0013] A computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the above-mentioned ONU gateway Mesh child machine software version synchronization method based on a spreading upgrade.
[0014] The ONU gateway Mesh submachine software version synchronization method and device based on the epidemic upgrade, the computer device and the storage medium have the hierarchical check and the retransmission mechanism, ensure the integrity of the version synchronization, improve the reliability, automatically share the transmission task between the nodes, avoid the overload of the main node, the epidemic mechanism can adapt to the multi-level and complex topology of the Mesh network, and has strong scalability, the distributed data transmission reduces the centralized congestion, improves the overall transmission efficiency, has high bandwidth utilization, has the self-repairing capability, can automatically compensate and update the failed node for the second time, ensures the final consistency, avoids the broadcast storm and the delay jitter caused by the centralized update, and improves the stability. The application can be applied to the Fiber To The Room (FTTR), the Fiber To The Room-Business (FTTR-B) and the broadband fusion terminal product. BRIEF DESCRIPTION OF DRAWINGS
[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the description of the embodiments of the present application. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0016] Figure 1 is an application environment schematic diagram of the ONU gateway Mesh submachine software version synchronization method based on the epidemic upgrade in an embodiment of the present application; Figure 2 is a flowchart of the ONU gateway Mesh submachine software version synchronization method based on the epidemic upgrade in an embodiment of the present application; Figure 3 is a schematic diagram of the ONU gateway Mesh submachine software version synchronization device based on the epidemic upgrade in an embodiment of the present application; Figure 4 is a schematic diagram of the computer device in an embodiment of the present application. DETAILED DESCRIPTION
[0017] The technical solutions in the embodiments of the present application will be described clearly and completely in the following with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the protection scope of the present application.
[0018] The ONU gateway Mesh submachine software version synchronization method based on the epidemic upgrade provided in the embodiments of the present application can be applied to the FTTR, the FTTR-B and the broadband fusion terminal product.Figure 1 The application environment shown. Specifically, the ONU gateway Mesh submachine software version synchronization method based on the application of the upgrade is applied in the ONU gateway Mesh submachine software version synchronization device based on the upgrade, the ONU gateway Mesh submachine software version synchronization device based on the upgrade includes as Figure 1 The client and server shown in the figure, the client and server communicate through the network, for realizing the technical problem of network bottleneck and update timeout under the Mesh environment with many nodes and complex network topology. Among them, the client, also known as the user end, is the program corresponding to the server, which provides local service for the client. The client can be installed on but not limited to various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices. The server can be realized by independent server or server cluster composed of multiple servers.
[0019] In an embodiment, as Figure 2 shown, a kind of ONU gateway Mesh submachine software version synchronization method based on the upgrade is provided, to the method application in Figure 1 The server in example is described, including the following steps: S1: initial trigger is carried out. Specifically, when the host detects that new version is available, update instruction is sent to at least one core submachine;The submachine receives update instruction and updates. Exemplarily, when the host detects that new version is available, mark itself as synchronization source node, and the host sends update instruction to at least one core submachine (such as RSSI best node) by management signaling;The submachine receiving update instruction updates.
[0020] S2: spread synchronization is carried out. Specifically, the upgraded submachine carries out spread synchronization to the new version identification information to adjacent submachine through periodic broadcast. Exemplarily, the upgraded submachine carries the new version identification information in the management frame or dedicated Mesh data frame of periodic broadcast;After receiving the broadcast of the new version identification information higher than its own version, the adjacent submachine automatically triggers download request. Preferably, the image data of the new version can be pulled from the adjacent submachine by P2P mode.
[0021] S3: hierarchical verification is carried out. Specifically, the new version is verified hierarchically, and when verification fails, the upper submachine retransmits;If the number of retransmission failures exceeds the threshold, it is rolled back to the host to reacquire. Exemplarily, the hierarchical verification includes: CRC or Hash verification is carried out after each data block transmission.
[0022] S4: Confirmation and status summary; specifically, after the slave device completes the update, it broadcasts a synchronized flag. For example, after the slave device completes the update, it broadcasts a "synchronized" flag in a Beacon or status frame; the host periodically collects the synchronization progress of the entire network to determine whether the closed loop has been completed.
[0023] Furthermore, the method provided in this embodiment of the invention may also include the steps of load balancing and rate control. Specifically, the slave unit is set to have a maximum number of simultaneous transmission connections; neighboring slave units are dynamically selected using RSSI or delay information to avoid overload; and the transmission interval is controlled to balance CPU and bandwidth usage.
[0024] Furthermore, the method provided in this embodiment of the invention may also include a step of handling abnormal situations. Specifically, for the slave devices that failed to update, automatic propagation synchronization is performed again in subsequent cycles. The reasons for the failed update may include: disconnection, weak signal, or corrupted version, etc. This ensures the eventual consistency of the overall network version.
[0025] The ONU gateway Mesh slave software version synchronization method based on propagating upgrades provided in this invention adopts a hierarchical verification and retransmission mechanism to ensure the integrity of version synchronization and improve reliability; transmission tasks are automatically distributed among nodes to avoid overload of the master node; the propagation mechanism can adapt to multi-level and complex topology Mesh networks, with strong scalability; distributed data transmission reduces centralized congestion, improves overall transmission efficiency, and has high bandwidth utilization; self-healing capability allows for automatic secondary compensation updates for failed nodes to ensure eventual consistency; and it avoids broadcast storms and latency jitter caused by centralized updates, improving stability. This invention can be applied to Fiber to the Room (FTTR), enterprise-level Fiber to the Room-Business (FTTR-B), and broadband converged terminal products.
[0026] It should be understood that the sequence number of each step in the above embodiments does not imply 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 embodiments of the present invention.
[0027] In one embodiment, a software version synchronization device for an ONU gateway Mesh slave unit based on a propagating upgrade is provided. This software version synchronization device for an ONU gateway Mesh slave unit based on a propagating upgrade corresponds one-to-one with the software version synchronization method for an ONU gateway Mesh slave unit based on a propagating upgrade described in the above embodiments. Figure 3 As shown, the ONU gateway Mesh sub-machine software version synchronization device based on propagation upgrade includes a host 100 and several sub-machines 200; wherein, The host 100 includes an initial triggering module 101 for initial triggering. Specifically, when the host detects that a new version is available, it sends an update command to at least one core slave machine; the slave machine receives the update command and performs the update. For example, when the host detects that a new version is available, it marks itself as a synchronization source node, and the host sends an update command to at least one core slave machine (such as the RSSI best node) via management signaling; the slave machine receiving the update command performs the update.
[0028] The slave device 200 includes a propagation synchronization module 201 for performing propagation synchronization. Specifically, this may include: the upgraded slave device periodically broadcasting the new version identification information to neighboring slave devices. For example, the upgraded slave device carries the new version identification information in the periodically broadcast management frame or dedicated Mesh data frame; upon receiving a broadcast with new version identification information higher than its own version, the neighboring slave device automatically triggers a download request. Preferably, the mirror data of the new version can be retrieved in segments from the neighboring slave devices via P2P.
[0029] The slave device 200 also includes a verification module 202 for hierarchical verification. Specifically, the verification module performs hierarchical verification on the new version. If verification fails, the upstream slave device retransmits the data. If the number of failed retransmissions exceeds a threshold, the process falls back to the host device to re-acquire the data. For example, the hierarchical verification includes performing CRC or Hash verification after each data block is transmitted.
[0030] The slave device 200 also includes a completion confirmation module 203, used for completion confirmation. The completion confirmation module broadcasts a synchronized flag after the slave device completes the update. For example, after the update is completed, a "synchronized" flag is broadcast in a Beacon or status frame.
[0031] The host 100 also includes a closed-loop module 102, which is used to periodically collect the synchronization progress of the entire network and determine whether the closed loop has been completed.
[0032] Furthermore, the slave unit 200 may also include a load balancing and rate control module for performing load balancing and rate control. Specifically, the load balancing and rate control module sets a maximum number of simultaneous transmission connections for the slave unit; dynamically selects neighboring slave units using RSSI or latency information to avoid overload; and controls the transmission interval to balance CPU and bandwidth usage.
[0033] Furthermore, the slave unit 200 may also include an anomaly handling module for handling abnormal situations. Specifically, if the anomaly handling module detects a slave unit that has failed to update, it automatically performs a propagation synchronization again in subsequent cycles. The reasons for the failed update may include: disconnection, weak signal, or corrupted version. This ensures the eventual consistency of the overall network version. This embodiment of the invention can be applied to Fiber To The Room (FTTR), Fiber To The Room-Business (FTTR-B), and broadband converged terminal products.
[0034] The ONU gateway Mesh slave software version synchronization device based on propagating upgrade provided in this embodiment of the invention adopts a hierarchical verification and retransmission mechanism to ensure the integrity of version synchronization and improve reliability; it automatically distributes transmission tasks among nodes to avoid overload of the master node; the propagation mechanism can adapt to multi-level and complex topology Mesh networks, and has strong scalability; distributed data transmission reduces centralized congestion, improves overall transmission efficiency, and has high bandwidth utilization; it has self-healing capability, and can automatically perform secondary compensation updates for failed nodes to ensure eventual consistency; it avoids broadcast storms and latency jitter caused by centralized updates, thus improving stability.
[0035] Specific limitations regarding the ONU gateway Mesh slave software version synchronization device based on propagating upgrades can be found in the limitations of the ONU gateway Mesh slave software version synchronization method based on propagating upgrades mentioned above, and will not be repeated here. Each module in the aforementioned ONU gateway Mesh slave software version synchronization device based on propagating upgrades can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in the computer device in hardware form, or stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0036] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 4 As shown, the computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The network interface is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements a method for synchronizing ONU gateway Mesh slave machine software versions based on a propagating upgrade approach.
[0037] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the ONU gateway Mesh slave software version synchronization method based on propagating upgrades described in the above embodiments, for example... Figure 2 S1-S4, as shown, will not be described again here to avoid repetition. Alternatively, when the processor executes the computer program, it implements the functions of each module / unit in this embodiment of the ONU gateway Mesh slave software version synchronization device based on propagating upgrades, for example... Figure 3 The functions of the host 100 shown are not described again here to avoid repetition.
[0038] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When executed by a processor, the computer program implements the ONU gateway Mesh slave software version synchronization method based on propagating upgrades as described in the above embodiments, for example... Figure 2 S1-S4, as shown, will not be described again here to avoid repetition. Alternatively, when this computer program is executed by the processor, it implements the functions of each module / unit in this embodiment of the ONU gateway Mesh slave software version synchronization device based on propagating upgrades, for example... Figure 3 The functions of the host 100 shown are not described again here to avoid repetition. The computer-readable storage medium may be non-volatile or volatile.
[0039] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0040] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to 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.
[0041] The embodiments described above are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.
Claims
1. A method for synchronizing software versions of ONU gateway mesh sub-machines based on epidemic upgrading, characterized in that, The method comprises the following steps: initial triggering, including: sending an update instruction to at least one core sub-machine when the host detects that a new version is available, and the sub-machine receiving the update instruction to update; spreading synchronization, including: the sub-machine that has completed the upgrade performing spreading synchronization on the new version identification information to adjacent sub-machines through periodic broadcasting; grading verification; completion confirmation and state summary.
2. The method for software version synchronization of ONU gateway mesh sub-machine based on epidemic upgrade according to claim 1, wherein, The method further comprises the steps of load balancing and rate control, including: the sub-machine setting the maximum number of simultaneous transmission connections; dynamically selecting adjacent sub-machines using RSSI or delay information; controlling the transmission interval.
3. The ONU gateway Mesh slave software version synchronization method based on propagating upgrades as described in claim 1, characterized in that, The method further comprises the steps of processing abnormal situations, including: for the sub-machine that has not been successfully updated, automatically performing spreading synchronization again in the subsequent period.
4. The method of claim 1, wherein the method further comprises: The step of grading verification comprises: grading verification on the new version, retransmission by the upper-level sub-machine when the verification fails, and fallback to the host to reacquire if the number of retransmission failures exceeds a threshold.
5. The method according to any of claims 1-4, wherein the method further comprises: The step of the sub-machine that has completed the upgrade performing spreading synchronization on the new version identification information to adjacent sub-machines through periodic broadcasting comprises: the sub-machine that has completed the upgrade carrying the new version identification information in a management frame or a dedicated Mesh data frame of periodic broadcasting; after the adjacent sub-machine receives the new version identification information higher than its own version, the adjacent sub-machine automatically triggers a download request.
6. The method of claim 5, wherein the method further comprises: The mirror data of the new version is pulled from the adjacent sub-machine in segments through a P2P mode.
7. The cascading upgrade-based ONU gateway mesh child software version synchronization method according to claim 1, wherein, The step of completion confirmation and state summary comprises: the sub-machine broadcasting a synchronization identification after completing the update; the host periodically collecting the synchronization progress of the entire network to determine whether the closed loop is completed.
8. A device for synchronizing software versions of ONU gateway mesh sub-machines based on epidemic upgrade, characterized in that, The method comprises: a host and a plurality of sub-machines, wherein: the host comprises an initial triggering module for initial triggering, including: sending an update instruction to at least one core sub-machine when the host detects that a new version is available; and the sub-machine receiving the update instruction to update; the sub-machine comprises a spreading synchronization module for spreading synchronization, including: the sub-machine that has completed the upgrade performing spreading synchronization on the new version identification information to adjacent sub-machines; the sub-machine further comprises a verification module for grading verification; the sub-machine further comprises a completion confirmation module for completion confirmation; and the host further comprises a closed loop module for periodically collecting the synchronization progress of the entire network to determine whether the closed loop is completed.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The processor executes the computer program to implement the ONU gateway Mesh sub-machine software version synchronization method based on the spreading upgrade according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, the computer program comprising instructions that, when executed by a computer, cause the computer to perform the method of any one of claims 1 to 9. The computer program is executed by the processor to implement the ONU gateway Mesh sub-machine software version synchronization method based on the spreading upgrade according to any one of claims 1 to 7.