Configuration management methods, devices, equipment, and media for PON access gateway devices.

By managing the configuration files of PON access gateway devices hierarchically, the problem of low reliability in configuration management is solved, the stable operation and parameter recovery of the device system are achieved, and the efficiency and reliability of management are improved.

CN120050547BActive Publication Date: 2025-11-14SICHUAN TIANYI COMHEART TELECOM
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510074164.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-17
Publication Date
2025-11-14
Estimated Expiration
2045-01-17

AI Technical Summary

Technical Problem

The configuration management of existing PON access gateway devices suffers from unreliability, leading to management chaos.

Method used

A hierarchical management configuration file system is adopted, including target running configuration file, pre-configuration file and default configuration file. By generating a set of target configuration files, the integrity of the files is determined and the corresponding files are loaded to enable the operation of the device system. Short reset and long reset operations are supported to restore parameters.

Benefits of technology

It improves the reliability of equipment configuration management, reduces management and development time, ensures parameter baselines, and enhances practical application value.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120050547B_ABST
    Figure CN120050547B_ABST
Patent Text Reader

Abstract

This application provides a configuration management method, apparatus, device, and medium for PON access gateway devices, relating to the field of device configuration management technology. In this application, firstly, a target configuration file set is generated; secondly, it is determined whether a target running configuration file exists in the target configuration file set; then, if the target running configuration file does not exist in the target configuration file set, it is determined whether the parameters in the pre-configured files included in the target configuration file set are complete. If complete, the pre-configured file is loaded; otherwise, if incomplete, the pre-configured file is loaded, and the missing parameters are loaded from the default configuration file included in the target configuration file set; subsequently, if a target running configuration file exists in the target configuration file set, the target running configuration file is loaded. Based on the above, the relatively low reliability of device configuration management in the prior art can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of device configuration management technology, and more specifically, to a configuration management method, apparatus, device, and medium for a PON access gateway device. Background Technology

[0002] Network access terminal equipment typically includes PON (Passive Optical Network) access products such as ONUs (Optical Network Units), FTTRs (Fiber to the Room), and converged gateways. Currently, they are managed in several ways, including by end users, installation and maintenance personnel, and remotely by operators. Furthermore, these multiple management methods raise various configuration management requirements, such as default configuration, pre-configuration, and runtime configuration. This multitude of configuration requirements can lead to management confusion and relatively low reliability of configuration management. Summary of the Invention

[0003] In view of this, the purpose of this application is to provide a configuration management method, apparatus, device and medium for PON access gateway devices, so as to improve the problem of relatively low reliability of device configuration management in the technology.

[0004] To achieve the above objectives, this application adopts the following technical solution:

[0005] A configuration management method for a PON access gateway device includes:

[0006] In response to the device configuration operation, a corresponding set of target configuration files is generated, wherein the set of target configuration files includes at least a plurality of configuration files;

[0007] When the device system starts up, it is determined whether a target running configuration file exists in the target configuration file set, wherein the target running configuration file is the configuration file currently in use;

[0008] If the target running configuration file is not found in the target configuration file set, it is determined whether the parameters in the pre-configuration file included in the target configuration file set are complete. If the parameters in the pre-configuration file are complete, the pre-configuration file is loaded to enable the operation of the device system. Alternatively, if the parameters in the pre-configuration file are incomplete, the pre-configuration file is loaded, and the missing parameters in the pre-configuration file are loaded from the default configuration file included in the target configuration file set to enable the operation of the device system. The pre-configuration file is a file pre-configured according to the needs of the target user, and the default configuration file is a file configured at the factory.

[0009] If the target runtime configuration file exists in the target configuration file set, then the target runtime configuration file is loaded to enable the device system to run.

[0010] In a preferred embodiment of this application, in the configuration management method for the aforementioned PON access gateway device, the step of loading the target running configuration file to enable the operation of the device system if the target running configuration file exists in the target configuration file set includes:

[0011] If the target runtime configuration file exists in the target configuration file set, then it is determined whether the parameters in the target runtime configuration file are complete;

[0012] If the parameters in the target runtime configuration file are complete, then the target runtime configuration file is loaded to enable the device system to run;

[0013] If the parameters in the target running configuration file are incomplete, then the target running configuration file is loaded, and the missing parameters in the target running configuration file are loaded from the default configuration file included in the target configuration file set, so as to enable the operation of the device system;

[0014] The target configuration file set includes multiple configuration files implemented in text form, which includes at least XML format.

[0015] In a preferred embodiment of this application, the configuration management method for the PON access gateway device further includes:

[0016] In response to the short reset device configuration operation, a short reset configuration file, the target running configuration file, and the pre-configuration file are obtained from the target configuration file set, wherein the short reset configuration file is used for parameter recovery in the event of a device failure;

[0017] Based on the short reset configuration file, the target running configuration file, and the pre-configuration file, a parameter short reset process is performed to update the target running configuration file and form a new target running configuration file. When the device system starts up, the new target running configuration file is loaded to enable the device system to run.

[0018] In a preferred embodiment of this application, in the configuration management method for the aforementioned PON access gateway device, the step of performing parameter short reset processing based on the short reset configuration file, the target running configuration file, and the pre-configuration file to update the target running configuration file and form a new target running configuration file includes:

[0019] Perform an intersection operation on the short reset configuration file and the target running configuration file to form a corresponding first parameter intersection file, wherein the parameters in the first parameter intersection file refer to the parameters that exist simultaneously in the short reset configuration file and the target running configuration file;

[0020] Perform a union operation on the first parameter intersection file and the pre-configuration file to form a corresponding first parameter union file, wherein the first parameter union file includes all parameters in the first parameter intersection file and all parameters in the pre-configuration file;

[0021] Based on the first parameter union file, the target runtime configuration file is updated to form a new target runtime configuration file.

[0022] In a preferred embodiment of this application, the configuration management method for the PON access gateway device further includes:

[0023] In response to the long reset device configuration operation, a long reset configuration file, the target running configuration file, and the pre-configuration file are obtained from the target configuration file set, wherein the long reset configuration file is used for parameter recovery in the event of a device failure;

[0024] Based on the long reset configuration file, the target running configuration file, and the pre-configuration file, parameter long reset processing is performed to update the target running configuration file and form a new target running configuration file. When the device system starts up, the new target running configuration file is loaded to enable the device system to run.

[0025] In a preferred embodiment of this application, in the configuration management method for the aforementioned PON access gateway device, the step of performing parameter long reset processing based on the long reset configuration file, the target running configuration file, and the pre-configuration file to update the target running configuration file and form a new target running configuration file includes:

[0026] An intersection operation is performed on the long reset configuration file and the target running configuration file to form a corresponding second parameter intersection file, wherein the parameters in the second parameter intersection file refer to the parameters that exist simultaneously in the long reset configuration file and the target running configuration file;

[0027] Perform a union operation on the second parameter intersection file and the pre-configuration file to form a corresponding second parameter union file, wherein the second parameter union file includes all parameters in the second parameter intersection file and all parameters in the pre-configuration file;

[0028] Based on the union of the second parameter file, the target runtime configuration file is updated to form a new target runtime configuration file.

[0029] In a preferred embodiment of this application, in the configuration management method for the PON access gateway device described above, before the step of performing an intersection operation on the long reset configuration file and the target running configuration file to form a corresponding second parameter intersection file, the step of performing parameter long reset processing based on the long reset configuration file, the target running configuration file, and the pre-configuration file to update the target running configuration file and form a new target running configuration file further includes:

[0030] Determine whether the parameters in the long reset configuration file are empty;

[0031] If the parameters in the long reset configuration file are empty, the target runtime configuration file is updated based on the pre-configuration file to form a new target runtime configuration file;

[0032] If the parameters in the long reset configuration file are not empty, then the step of performing the intersection operation on the long reset configuration file and the target running configuration file to form the corresponding second parameter intersection file is determined.

[0033] This application also provides a configuration management device for a PON access gateway device, including:

[0034] The device configuration module is used to generate a corresponding target configuration file set in response to the device configuration operation, wherein the target configuration file set includes at least a plurality of configuration files;

[0035] The file determination module is used to determine whether a target running configuration file exists in the target configuration file set when the device system starts up, wherein the target running configuration file is the configuration file currently in use;

[0036] The first file loading module is used to determine whether the parameters in the pre-configuration file included in the target configuration file set are complete when the target running configuration file does not exist in the target configuration file set. If the parameters in the pre-configuration file are complete, the pre-configuration file is loaded to enable the operation of the device system. Alternatively, if the parameters in the pre-configuration file are incomplete, the pre-configuration file is loaded, and the missing parameters in the pre-configuration file are loaded from the default configuration file included in the target configuration file set to enable the operation of the device system. The pre-configuration file is a file pre-configured according to the needs of the target user, and the default configuration file is a file configured at the factory.

[0037] The second file loading module is used to load the target running configuration file when the target running configuration file exists in the target configuration file set, so as to enable the device system to run.

[0038] Based on the above, this application also provides a PON access gateway device, including:

[0039] Memory, used to store computer programs;

[0040] A processor connected to the memory is used to execute the computer program stored in the memory to implement the configuration management method of the PON access gateway device described above.

[0041] Based on the above, this application also provides a computer-readable storage medium storing a computer program that, when executed, performs the various steps of the configuration management method for the PON access gateway device described above.

[0042] The configuration management method, apparatus, device, and medium for PON access gateway devices provided in this application first generate a target configuration file set; second, determine whether a target running configuration file exists in the target configuration file set; then, if the target running configuration file does not exist in the target configuration file set, determine whether the parameters in the pre-configuration files included in the target configuration file set are complete, and if complete, load the pre-configuration file; or, if incomplete, load the pre-configuration file and load the missing parameters from the default configuration file included in the target configuration file set; finally, if the target running configuration file exists in the target configuration file set, load the target running configuration file. Based on the above, the hierarchical management of multiple configuration files makes the management objects clear and less prone to confusion, thus improving the reliability of device configuration management and addressing the problem of relatively low reliability in existing device configuration management technologies. Furthermore, the existence of the default configuration file ensures a baseline for each parameter; therefore, other configuration files can be kept as small as possible, i.e., they can all be very small parameter sets. This further reduces management and development time and enhances the practical application value of this solution. Attached Figure Description

[0043] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings.

[0044] Figure 1 This is a structural block diagram of the PON access gateway device provided in an embodiment of this application.

[0045] Figure 2This is a flowchart illustrating the configuration management method for a PON access gateway device provided in an embodiment of this application.

[0046] Figure 3 This is a schematic diagram illustrating the loading logic of the configuration file provided in an embodiment of this application.

[0047] Figure 4 This is a block diagram of the configuration management device for a PON access gateway device provided in an embodiment of this application. Detailed Implementation

[0048] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.

[0049] Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0050] like Figure 1 As shown in the figure, this application embodiment provides a PON access gateway device. The PON access gateway device may include a memory, a processor, and a configuration management device for the PON access gateway device.

[0051] In detail, the memory and the processor are electrically connected directly or indirectly to enable data transmission or interaction. For example, the memory and the processor can be electrically connected via one or more communication buses or signal lines. The configuration management device of the PON access gateway includes at least one software functional module stored in the memory in the form of software or firmware. The processor is used to execute executable computer programs stored in the memory, such as the software functional modules and computer programs included in the configuration management device of the PON access gateway, to implement the configuration management method of the PON access gateway provided in this application embodiment.

[0052] Optionally, the memory may be, but is not limited to, random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc.

[0053] Furthermore, the processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), a system on chip (SoC), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0054] Understandable. Figure 1 The structure shown is for illustrative purposes only; the PON access gateway device may also include components that are more advanced than those shown. Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown may include, for example, a communication unit for exchanging information with other devices.

[0055] In addition, the PON gateway device refers to a key network device used to connect user-end equipment and optical network terminals (OLTs) in fiber-to-the-home (FTTH) or other PON (passive optical network) access architectures. It is not only a terminal device for network access, but also undertakes multiple functions such as data routing, protocol conversion, security protection, and service management.

[0056] The main functions of the PON access gateway device are as follows:

[0057] Protocol conversion and data encapsulation: This process converts data from user devices (such as home routers and computers) into optical signals and transmits them to the OLT via fiber optic links. Simultaneously, it receives data streams from the OLT and converts them into electrical signals (e.g., Ethernet signals) suitable for use by the user devices.

[0058] Multi-service support: Supports simultaneous support for multiple services, such as **voice (VoIP), data (Internet), and video (IPTV)**. PON access gateways typically have multiple interfaces to support different types of services and device connections.

[0059] Network Management and Control: Provides management functions based on the network and transport layers, such as bandwidth management, flow control, user authentication, and IP address allocation (DHCP). Supports QoS (Quality of Service) to ensure that different types of services (such as video, voice, and data) are prioritized, preventing network congestion from affecting critical services.

[0060] Security Features: Provides security features such as firewall, intrusion detection, and **Virtual Private Network (VPN)** to protect the user's network environment from external threats. Supports access control to ensure that only authorized devices can access the network.

[0061] Wireless Access: Most PON access gateway devices integrate Wi-Fi functionality, providing wireless network coverage. Especially in home and enterprise environments, Wi-Fi is commonly used to connect smartphones, laptops, smart home devices, and more.

[0062] Integration and Interoperability: Unlike traditional broadband gateway devices, PON access gateways combine fiber optic access with home / business local area networks (LANs), typically providing fiber optic interfaces (such as EPON and GPON ports) as well as Ethernet and Wi-Fi interfaces. They support multi-link management, integrating different types of access interfaces (such as fiber optic and Ethernet) on the same device, allowing users to easily access different types of networks.

[0063] Typical PON access gateway device types:

[0064] ONU (Optical Network Unit) / ONT (Optical Network Terminal): ONUs and ONTs are common forms of PON access gateway devices. They are located on the user side and connect to the PON network via optical fiber. In addition to providing photoelectric conversion functions, many ONUs / ONTs also integrate functions such as routers and Wi-Fi access points.

[0065] GPON ONU: Suitable for gigabit-level PON networks, providing higher bandwidth.

[0066] EPON ONU: Primarily used in Ethernet PON networks, it is relatively common in some regions and application scenarios.

[0067] FTTH (Fiber to the Home) Gateway: A fiber optic access gateway device specifically designed for home users. It typically integrates multiple ports, such as fiber optic interfaces, Ethernet ports, and Wi-Fi interfaces, providing functions such as fiber optic access, routing, and wireless network access.

[0068] Converged gateway: A multi-functional gateway that integrates PON fiber access, routing, Wi-Fi, switching, and security functions. It is typically used in large-scale residential areas, commercial buildings, or enterprise networks. In addition to supporting basic internet access, converged gateways can also support various applications such as voice and video surveillance.

[0069] Working principle of PON access gateway:

[0070] Data transmission: In a PON access gateway, the fiber optic link is connected to the OLT (Optical Line Terminal). The PON access gateway converts data from the user equipment into optical signals and sends them to the OLT. At the same time, it receives optical signals from the OLT and converts them into electrical signals for use by the user equipment.

[0071] Routing function: PON access gateways typically have built-in routing functions, which are responsible for managing network traffic, allocating IP addresses, and selecting routes between different networks.

[0072] Bandwidth Management and QoS: To ensure the quality of different services (such as video and voice), the gateway device will allocate bandwidth reasonably according to preset policies, giving priority to ensuring the bandwidth requirements of critical services.

[0073] Use cases:

[0074] Home network access: In the home, PON access gateways typically provide functions such as broadband access, Wi-Fi coverage, IP telephony, and smart home device management.

[0075] Enterprise access: Enterprises can deploy PON access gateways to provide higher bandwidth and higher reliability fiber optic access, while integrating routing, VPN, network security and other functions to ensure the efficient operation of the enterprise's internal network.

[0076] Commercial buildings or communities: In large commercial buildings or residential communities, PON access gateway equipment can support multiple users to access at the same time, and meet various application needs by providing high-speed and reliable fiber optic access.

[0077] Combination Figure 2 This application also provides a configuration management method for a PON access gateway device applicable to the aforementioned PON access gateway device. The method steps defined in the process related to the configuration management method for the PON access gateway device can be implemented by the PON access gateway device. The following will describe... Figure 2 The specific process shown will be explained in detail.

[0078] Step S110: In response to the device configuration operation performed, a corresponding set of target configuration files is generated.

[0079] In this embodiment, the PON access gateway device can generate a corresponding target configuration file set in response to the device configuration operation. The target configuration file set includes at least one or more configuration files, such as a target running configuration file, a pre-configuration file, a default configuration file, a short reset configuration file, and a long reset configuration file. The specific selection can be made according to actual needs, and no specific limitations or descriptions are provided here.

[0080] Step S120: When the device system starts up, determine whether a target running configuration file exists in the target configuration file set.

[0081] In this embodiment, the PON access gateway device can determine whether a target running configuration file exists in the target configuration file set when the device system starts up. The target running configuration file is the configuration file currently in use. For example, the running configuration is the configuration currently used in the product (i.e., the PON access gateway device). These configurations are already set by the customer or operator, and generally only a portion of the settings have been changed, while most settings remain the same as the default or pre-configured settings. However, if fault handling, relocation, or user replacement is required, only a portion of the running configuration needs to be retained or all running configurations need to be cleared. Therefore, this configuration is above the default and pre-configured settings. In other words, it can be determined whether a target running configuration file exists first. For example, a target running configuration file may not exist when the device is first manufactured, or it may not exist under other circumstances.

[0082] Step S130: If the target running configuration file does not exist in the target configuration file set, determine whether the parameters in the pre-configuration file included in the target configuration file set are complete. If the parameters in the pre-configuration file are complete, load the pre-configuration file to enable the operation of the device system. Alternatively, if the parameters in the pre-configuration file are incomplete, load the pre-configuration file and load the missing parameters from the default configuration file included in the target configuration file set to enable the operation of the device system.

[0083] In this embodiment, if the target running configuration file is not present in the target configuration file set, the PON access gateway device can determine whether the parameters in the pre-configuration file included in the target configuration file set are complete. If the parameters in the pre-configuration file are complete, the device loads the pre-configuration file to enable the device system to run. Alternatively, if the parameters in the pre-configuration file are incomplete, the device loads the pre-configuration file and loads the missing parameters from the default configuration file included in the target configuration file set to enable the device system to run. The pre-configuration file is a file pre-configured according to the needs of the target user. For example, a pre-configuration is a set of parameters pre-configured for a product (i.e., the PON access gateway device) received by a customer. This facilitates direct use by the customer or facilitates connection to a platform for unified settings. This configuration is a basic configuration for a specific customer, but it is only a part of the overall configuration and therefore sits above the default configuration. The default configuration file refers to the file configured at the factory. For example, the default configuration is a configuration for all parameters, each with a default value. This value indicates a general configuration not specific to any particular customer at the factory, and therefore sits at the lowest level.

[0084] Step S140: If the target running configuration file exists in the target configuration file set, then load the target running configuration file to enable the device system to run.

[0085] In this embodiment of the application, if the target running configuration file exists in the target configuration file set, the PON access gateway device can load the target running configuration file to realize the operation of the device system, that is, to run based on the parameters in the target running configuration file.

[0086] Based on the above, the hierarchical management of multiple configuration files makes the managed objects clear and less prone to confusion, thus improving the reliability of device configuration management and addressing the relatively low reliability issue in existing technologies. Furthermore, the existence of a default configuration file ensures a baseline for each parameter; therefore, other configuration files can be kept as small as possible, i.e., they can all be very small parameter sets. This further reduces management and development time, enhancing the practical application value of this solution.

[0087] Firstly, regarding step S140, it should be noted that the specific method of loading the target runtime configuration file to enable the device system to run is not limited and can be selected according to actual needs.

[0088] For example, in an alternative implementation, in order to improve the efficiency of device operation, in step S140 above, the target running configuration file can be loaded directly, so that it can run directly based on the parameters in the target running configuration file.

[0089] For example, in another alternative implementation, to improve the reliability of equipment operation, step S140 above can further include the following specific implementation details:

[0090] First, if the target runtime configuration file exists in the target configuration file set, then determine whether the parameters in the target runtime configuration file are complete;

[0091] Secondly, if the parameters in the target running configuration file are complete, the target running configuration file is loaded to enable the device system to run. In other words, it can run directly based on the parameters in the target running configuration file.

[0092] Then, if the parameters in the target running configuration file are incomplete, the target running configuration file is loaded, and the missing parameters in the target running configuration file are loaded from the default configuration file included in the target configuration file set to enable the device system to run. That is, it can run based on the parameters in the target running configuration file on the one hand, and on the other hand, it can run based on the parameters in the default configuration file on the other hand. Since the default configuration is for all parameters, each parameter has a default value, so it can serve as a fallback. In addition, the multiple configuration files included in the target configuration file set are implemented in text form. Thus, using text form for configuration can achieve code separation, and modification, correction, and debugging are simple and easy. Furthermore, the text form includes at least XML format, so that the configuration parsing can use existing function libraries, without having to develop a separate parsing scheme.

[0093] Secondly, considering that the PON access gateway device may experience faults or abnormalities during operation, it is necessary to perform short reset and / or long reset operations on the PON access gateway device based on certain requirements. Correspondingly, the target configuration file set may also include short reset configuration files and long reset configuration files.

[0094] Based on this, in an alternative implementation, in order to achieve short reset to ensure reliable operation of the device, the configuration management method of the PON access gateway device may further include steps S150 and S160, the details of which are as follows.

[0095] In step S150, in response to the short reset device configuration operation, the short reset configuration file, the target runtime configuration file, and the pre-configuration file are obtained from the target configuration file set.

[0096] In this embodiment, in response to a short reset device configuration operation, a short reset configuration file, the target runtime configuration file, and the pre-configuration file can be obtained from the target configuration file set. The short reset configuration file is used to restore parameters when a device malfunctions. For example, short reset configuration refers to handling certain faults, such as when a user forgets their password or sets some parameters that cause anomalies. In this case, some parameters need to be restored to pre-configured or default values, while parameters that do not affect the normal use of the device should be retained. These parameters are a subset of the runtime configuration and are generally important network and platform settings.

[0097] Step S160: Perform parameter short reset processing based on the short reset configuration file, the target running configuration file, and the pre-configuration file to update the target running configuration file and form a new target running configuration file.

[0098] In this embodiment, after obtaining the short reset configuration file, the target runtime configuration file, and the pre-configuration file, a parameter short reset process can be performed based on these three files to update the target runtime configuration file, forming a new target runtime configuration file. Specifically, when the device system starts, the new target runtime configuration file is loaded to enable the device system to run. In other words, after performing a short reset device configuration operation to update the target runtime configuration file, a restart is possible, allowing the new target runtime configuration file to be loaded and run upon restart.

[0099] It is understood that in step S160 above, the specific method of performing parameter short reset processing based on the short reset configuration file, the target runtime configuration file, and the pre-configuration file is not limited and can be selected according to actual needs. For example, in an alternative implementation, in order to ensure the reliability of parameter short reset processing, so that a reliable new target runtime configuration file can be formed by performing a short reset, step S160 above may include the following:

[0100] First, the intersection operation can be performed on the short reset configuration file and the target running configuration file to form a corresponding first parameter intersection file. The parameters in the first parameter intersection file refer to the parameters that exist in both the short reset configuration file and the target running configuration file.

[0101] Secondly, a union operation can be performed on the first parameter intersection file and the pre-configuration file to form a corresponding first parameter union file. The first parameter union file includes all parameters in the first parameter intersection file and all parameters in the pre-configuration file. That is, each parameter in the first parameter union file either belongs to the first parameter intersection file, or belongs to the pre-configuration file, or belongs to both the first parameter intersection file and the pre-configuration file.

[0102] Finally, the target runtime configuration file can be updated based on the first parameter union file to form a new target runtime configuration file. For example, the first parameter union file can be directly used as the new target runtime configuration file, and the target runtime configuration file can also be deleted, or the parameters in the target runtime configuration file can be modified based on the parameters in the first parameter union file.

[0103] Furthermore, in an alternative implementation, in order to achieve a long reset to ensure reliable operation of the device, the configuration management method of the PON access gateway device may also include steps S170 and S180, the details of which are as follows.

[0104] In step S170, in response to the long reset device configuration operation, the long reset configuration file, the target running configuration file, and the pre-configuration file are obtained from the target configuration file set.

[0105] In this embodiment, in response to a long reset device configuration operation, a long reset configuration file, a target runtime configuration file, and a pre-configuration file can be obtained from the target configuration file set. The long reset configuration file is used for parameter recovery when a device malfunctions. For example, compared to a long reset, a short reset restores less critical data; that is, a long reset restores more critical data. For instance, a long reset configuration refers to a situation where a serious fault occurs, requiring the clearing of most setting parameters, retaining only a portion of the runtime configuration for the channel that reissues parameters. This portion of the configuration is mostly independent of the short reset configuration, but typically the long reset configuration is less than the short reset configuration. Furthermore, under certain requirements, the runtime configuration can be completely cleared, restoring the device to its factory state, in which case the long reset configuration will be empty.

[0106] Step S180: Perform parameter long reset processing based on the long reset configuration file, the target running configuration file, and the pre-configuration file to update the target running configuration file and form a new target running configuration file.

[0107] In this embodiment, after obtaining the long reset configuration file, the target running configuration file, and the pre-configuration file, a parameter long reset process can be performed based on these three files to update the target running configuration file, forming a new target running configuration file. Specifically, when the device system starts, the new target running configuration file is loaded to enable the device system to run. In other words, after performing a long reset device configuration operation to update the target running configuration file, the system can be restarted, allowing the new target running configuration file to be loaded and run upon restart.

[0108] It is understood that in step S180 above, the specific method of performing parameter long reset processing based on the long reset configuration file, the target running configuration file, and the pre-configuration file is not limited and can be selected according to actual needs. For example, in an alternative implementation, in order to ensure the reliability of parameter long reset processing, so that a reliable new target running configuration file can be formed by performing a long reset, step S180 above may include the following:

[0109] First, the intersection operation can be performed on the long reset configuration file and the target running configuration file to form a corresponding second parameter intersection file. The parameters in the second parameter intersection file refer to the parameters that exist in both the long reset configuration file and the target running configuration file.

[0110] Secondly, a union operation can be performed on the second parameter intersection file and the pre-configuration file to form a corresponding second parameter union file. The second parameter union file includes all parameters in the second parameter intersection file and all parameters in the pre-configuration file. That is, each parameter in the second parameter union file either belongs to the second parameter intersection file, or belongs to the pre-configuration file, or belongs to both the second parameter intersection file and the pre-configuration file.

[0111] Then, the target runtime configuration file can be updated based on the second parameter union file to form a new target runtime configuration file; for example, the second parameter union file can be directly used as the new target runtime configuration file, and the target runtime configuration file can also be deleted, or the parameters in the target runtime configuration file can be modified based on the parameters in the second parameter union file.

[0112] Understandably, to address efficiency concerns, in an alternative implementation, before the step of performing an intersection operation on the long reset configuration file and the target runtime configuration file to form a corresponding second parameter intersection file, the step of performing parameter long reset processing based on the long reset configuration file, the target runtime configuration file, and the pre-configuration file to update the target runtime configuration file and form a new target runtime configuration file may further include the following:

[0113] First, it can be determined whether the parameters in the long reset configuration file are empty;

[0114] Secondly, if the parameters in the long reset configuration file are empty, the target running configuration file is updated based on the pre-configuration file to form a new target running configuration file; for example, for some faults, it is necessary to completely clear the current running configuration so that it can be restored to the factory state, in which case the long reset configuration is empty;

[0115] Then, if the parameters in the long reset configuration file are not empty, the step of performing the intersection operation on the long reset configuration file and the target running configuration file to form the corresponding second parameter intersection file is determined.

[0116] To facilitate understanding of the configuration and management methods for the PON access gateway devices described above, combined with... Figure 3 The default configuration is a collection of all parameters, specifying their attributes and default values. Pre-configurations allow setting parameter names and preset values; parameter attributes reference those in the default configuration. Runtime configurations generally don't require manual modification; they are automatically exported by the system based on the current running state, specifying parameters that have been modified and differ from their default values. Short and long reset configurations allow specifying only parameter names; the actual values ​​are exported from the runtime configuration.

[0117] These configuration references are implemented in two scenarios:

[0118] 1. System startup loading configuration

[0119] (1) If the system does not run the configuration file when it starts, it means that the product has just left the factory and has not been set up. The pre-configuration can be loaded first. Parameters that do not exist in the pre-configuration can be referenced from the default configuration.

[0120] (2) If a running configuration file is already available when the system starts, the running configuration can be loaded directly. Parameters that do not exist in the configuration will be referenced from the default configuration.

[0121] 2. Perform a reset operation.

[0122] (1) During a short reset, the parameter name in the short reset file is read, the specific value of the parameter is extracted from the runtime configuration, and then the parameter in the pre-configuration file is read. This pre-configuration file and the parameter value are merged into a new runtime configuration file, which replaces the existing runtime configuration file. After the system restarts, this new runtime configuration file can be loaded to achieve a short reset.

[0123] (2) During a long reset, the operation is the same as for a short reset, except that the long reset file has fewer parameters or is empty. Select the specified running configuration parameters in the long reset and merge them with the pre-configured parameters to form a new running configuration file. When the long reset is empty, the process is the simplest. Replace the running configuration file directly with the pre-configured parameter file or delete the running configuration directly. After restarting, the reset action is completed.

[0124] Combination Figure 4 This application also provides a configuration management device for a PON access gateway device applicable to the aforementioned PON access gateway device. The configuration management device for the PON access gateway device may include a device configuration module, a file determination module, a first file loading module, and a second file loading module.

[0125] The device configuration module is used to generate a corresponding target configuration file set in response to a device configuration operation, wherein the target configuration file set includes at least a plurality of configuration files. In this embodiment, the device configuration module can be used to execute... Figure 2 The relevant content regarding the device configuration module in step S110 can be found in the preceding description of step S110.

[0126] The file determination module is used to determine whether a target runtime configuration file exists in the target configuration file set when the device system starts up, wherein the target runtime configuration file is the configuration file currently in use. In this embodiment, the file determination module can be used to execute... Figure 2 The details of step S120, and the relevant content regarding the file determination module, can be found in the preceding description of step S120.

[0127] The first file loading module is configured to, when the target runtime configuration file is not present in the target configuration file set, determine whether the parameters in the pre-configuration file included in the target configuration file set are complete, and load the pre-configuration file to enable the device system to run if the parameters in the pre-configuration file are complete; or, when the parameters in the pre-configuration file are incomplete, load the pre-configuration file and load the missing parameters from the default configuration file included in the target configuration file set to enable the device system to run. The pre-configuration file is a file pre-configured according to the needs of the target user, and the default configuration file is a file configured at the factory. In this embodiment, the first file loading module can be used to execute... Figure 2 For details regarding step S130 shown, please refer to the previous description of step S130 for information about the first file loading module.

[0128] The second file loading module is used to load the target runtime configuration file when it exists in the target configuration file set, so as to enable the device system to run. In this embodiment, the second file loading module can be used to execute... Figure 2 For details regarding step S140 shown, please refer to the previous description of step S140 for information about the second file loading module.

[0129] In this embodiment of the application, corresponding to the above-described configuration management method for the PON access gateway device, a computer-readable storage medium is also provided, which stores a computer program that executes the various steps of the configuration management method for the PON access gateway device when the computer program is run.

[0130] The steps executed by the aforementioned computer program during runtime will not be described in detail here, but can be found in the explanation of the configuration management method of the PON access gateway device described above.

[0131] In summary, the configuration management method, apparatus, device, and medium for PON access gateway devices provided in this application first generate a target configuration file set; second, determine whether a target running configuration file exists in the target configuration file set; then, if the target running configuration file does not exist in the target configuration file set, determine whether the parameters in the pre-configuration files included in the target configuration file set are complete, and if complete, load the pre-configuration file; or, if incomplete, load the pre-configuration file and load the missing parameters from the default configuration file included in the target configuration file set; subsequently, if the target running configuration file exists in the target configuration file set, load the target running configuration file. Based on the above, the hierarchical management of multiple configuration files makes the management objects clear and less prone to confusion, thus improving the reliability of device configuration management and addressing the problem of relatively low reliability in existing device configuration management technologies. Furthermore, the existence of the default configuration file ensures a baseline for each parameter; therefore, other configuration files can be kept as small as possible, i.e., they can all be very small parameter sets. This further reduces management and development time and enhances the practical application value of this solution.

[0132] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus and method embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0133] In addition, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0134] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, electronic device, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks. It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. In the absence of further restrictions, an element defined by the phrase "comprising a..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0135] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A configuration management method for a PON access gateway device, characterized in that, include: In response to the device configuration operation, a corresponding set of target configuration files is generated, wherein the set of target configuration files includes at least a plurality of configuration files; When the device system starts up, it is determined whether a target running configuration file exists in the target configuration file set, wherein the target running configuration file is the configuration file currently in use; If the target running configuration file is not found in the target configuration file set, it is determined whether the parameters in the pre-configuration file included in the target configuration file set are complete. If the parameters in the pre-configuration file are complete, the pre-configuration file is loaded to enable the operation of the device system. Alternatively, if the parameters in the pre-configuration file are incomplete, the pre-configuration file is loaded, and the missing parameters in the pre-configuration file are loaded from the default configuration file included in the target configuration file set to enable the operation of the device system. The pre-configuration file is a file pre-configured according to the needs of the target user, and the default configuration file is a file configured at the factory. If the target runtime configuration file exists in the target configuration file set, then the target runtime configuration file is loaded to enable the device system to run; The step of loading the target runtime configuration file to enable the device system to run, if the target configuration file set contains the target runtime configuration file, includes: If the target runtime configuration file exists in the target configuration file set, then it is determined whether the parameters in the target runtime configuration file are complete; If the parameters in the target runtime configuration file are complete, then the target runtime configuration file is loaded to enable the device system to run; If the parameters in the target running configuration file are incomplete, then the target running configuration file is loaded, and the missing parameters in the target running configuration file are loaded from the default configuration file included in the target configuration file set, so as to enable the operation of the device system; The target configuration file set includes multiple configuration files implemented in text form, which includes at least XML format.

2. The configuration management method for a PON access gateway device according to claim 1, characterized in that, The configuration management method for the PON access gateway device also includes: In response to the short reset device configuration operation, a short reset configuration file, the target running configuration file, and the pre-configuration file are obtained from the target configuration file set, wherein the short reset configuration file is used for parameter recovery in the event of a device failure; Based on the short reset configuration file, the target running configuration file, and the pre-configuration file, a parameter short reset process is performed to update the target running configuration file and form a new target running configuration file. When the device system starts up, the new target running configuration file is loaded to enable the device system to run.

3. The configuration management method for a PON access gateway device according to claim 2, characterized in that, The step of performing parameter short reset processing based on the short reset configuration file, the target runtime configuration file, and the pre-configuration file to update the target runtime configuration file and form a new target runtime configuration file includes: Perform an intersection operation on the short reset configuration file and the target running configuration file to form a corresponding first parameter intersection file, wherein the parameters in the first parameter intersection file refer to the parameters that exist simultaneously in the short reset configuration file and the target running configuration file; Perform a union operation on the first parameter intersection file and the pre-configuration file to form a corresponding first parameter union file, wherein the first parameter union file includes all parameters in the first parameter intersection file and all parameters in the pre-configuration file; Based on the first parameter union file, the target runtime configuration file is updated to form a new target runtime configuration file.

4. The configuration management method for a PON access gateway device according to claim 1, characterized in that, The configuration management method for the PON access gateway device also includes: In response to the long reset device configuration operation, a long reset configuration file, the target running configuration file, and the pre-configuration file are obtained from the target configuration file set, wherein the long reset configuration file is used for parameter recovery in the event of a device failure; Based on the long reset configuration file, the target running configuration file, and the pre-configuration file, parameter long reset processing is performed to update the target running configuration file and form a new target running configuration file. When the device system starts up, the new target running configuration file is loaded to enable the device system to run.

5. The configuration management method for a PON access gateway device according to claim 4, characterized in that, The step of performing parameter long reset processing based on the long reset configuration file, the target runtime configuration file, and the pre-configuration file to update the target runtime configuration file and form a new target runtime configuration file includes: An intersection operation is performed on the long reset configuration file and the target running configuration file to form a corresponding second parameter intersection file, wherein the parameters in the second parameter intersection file refer to the parameters that exist simultaneously in the long reset configuration file and the target running configuration file; Perform a union operation on the second parameter intersection file and the pre-configuration file to form a corresponding second parameter union file, wherein the second parameter union file includes all parameters in the second parameter intersection file and all parameters in the pre-configuration file; Based on the union of the second parameter file, the target runtime configuration file is updated to form a new target runtime configuration file.

6. The configuration management method for a PON access gateway device according to claim 5, characterized in that, Before the step of performing an intersection operation on the long reset configuration file and the target runtime configuration file to form a corresponding second parameter intersection file, the step of performing parameter long reset processing based on the long reset configuration file, the target runtime configuration file, and the pre-configuration file to update the target runtime configuration file and form a new target runtime configuration file further includes: Determine whether the parameters in the long reset configuration file are empty; If the parameters in the long reset configuration file are empty, the target runtime configuration file is updated based on the pre-configuration file to form a new target runtime configuration file; If the parameters in the long reset configuration file are not empty, then the step of performing the intersection operation on the long reset configuration file and the target running configuration file to form the corresponding second parameter intersection file is determined.

7. A configuration management device for a PON access gateway device, characterized in that, include: The device configuration module is used to generate a corresponding target configuration file set in response to the device configuration operation, wherein the target configuration file set includes at least a plurality of configuration files; The file determination module is used to determine whether a target running configuration file exists in the target configuration file set when the device system starts up, wherein the target running configuration file is the configuration file currently in use; The first file loading module is used to determine whether the parameters in the pre-configuration file included in the target configuration file set are complete when the target running configuration file does not exist in the target configuration file set. If the parameters in the pre-configuration file are complete, the pre-configuration file is loaded to enable the operation of the device system. Alternatively, if the parameters in the pre-configuration file are incomplete, the pre-configuration file is loaded, and the missing parameters in the pre-configuration file are loaded from the default configuration file included in the target configuration file set to enable the operation of the device system. The pre-configuration file is a file pre-configured according to the needs of the target user, and the default configuration file is a file configured at the factory. The second file loading module is used to determine whether the parameters in the target running configuration file are complete if the target running configuration file exists in the target configuration file set; if the parameters in the target running configuration file are complete, the target running configuration file is loaded to enable the operation of the device system; if the parameters in the target running configuration file are incomplete, the target running configuration file is loaded, and the missing parameters in the target running configuration file are loaded from the default configuration file included in the target configuration file set to enable the operation of the device system; wherein, the multiple configuration files included in the target configuration file set are implemented in text form, and the text form includes at least XML format.

8. A PON access gateway device, characterized in that, include: Memory, used to store computer programs; A processor connected to the memory is used to execute the computer program stored in the memory to implement the configuration management method of the PON access gateway device according to any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed, performs the configuration management method for the PON access gateway device according to any one of claims 1-6.

Citation Information

Patent Citations

  • Method for producing assortment versions of home gateway system

    CN102222009A

  • Management system and management method for configuration document in ONU of PON network

    CN106919424A