Configuration management method, device and equipment of PON (Passive Optical Network) access gateway equipment and medium

By generating and managing the target configuration file collection of PON access gateway devices, the problem of low reliability of device configuration management is solved, and more efficient and reliable configuration management is achieved.

CN120050547AActive Publication Date: 2025-05-27SICHUAN TIANYI COMHEART TELECOM
View PDF 6 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the prior art, the configuration management reliability of PON access gateway equipment is relatively low, resulting in management chaos.

Method used

By generating a collection of target configuration files, the integrity of the configuration files is determined, and the corresponding configuration files are loaded at the system startup to achieve the operation of the device system. The specific steps include: if the target run configuration file does not exist in the target configuration file collection, load the preconfiguration file or the default configuration file to realize the operation of the device system; if the target run configuration file exists, load it for the operation of the device system.

Benefits of technology

It improves the reliability of equipment configuration management, defines configuration objects through hierarchical management, reduces management and development time, and enhances the efficiency and reliability of configuration management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120050547A_ABST
    Figure CN120050547A_ABST
Patent Text Reader

Abstract

The invention provides a PON access gateway equipment configuration management method and device, equipment and a medium, and relates to the technical field of equipment configuration management. In the application, firstly, a target configuration file set is generated; secondly, determining whether a target running configuration file exists in the target configuration file set or not; and then, if the target running configuration file does not exist in the target configuration file set, determining whether parameters in a pre-configuration file included in the target configuration file set are complete or not, and loading the pre-configuration file when the parameters are complete, or loading the pre-configuration file when the parameters are incomplete. Parameters lacked in the pre-configuration file are loaded from a default configuration file included in the target configuration file set; and then, if the target running configuration file exists in the target configuration file set, loading the target running configuration file. Based on the content, the problem that the reliability of equipment configuration management is relatively low 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 technical field of device configuration management. Specifically, it relates to a method, device, equipment, and medium for configuring and managing a PON access gateway device. Background Art

[0002] Network access terminal devices generally include products such as ONUs (Optical Network Units), FTTRs (Fiber to the Room), and converged gateways for PON (Passive Optical Network) access. Currently, there are several management methods for end-users, installation and maintenance personnel, and operators remotely. Moreover, multiple management methods have also proposed multiple configuration management requirements, such as default configuration, pre-configuration, running configuration, etc. Thus, numerous configuration requirements will lead to the problem of management chaos, making the reliability of configuration management relatively low. Summary of the Invention

[0003] In view of this, the purpose of this application is to provide a method, device, equipment, and medium for configuring and managing a PON access gateway device to improve the relatively low reliability of device configuration management in the prior art.

[0004] To achieve the above purpose, this application adopts the following technical solutions:

[0005] A method for configuring and managing a PON access gateway device includes:

[0006] Responding to a device configuration operation, generating a corresponding target configuration file set, where the target configuration file set includes at least multiple configuration files;

[0007] When the device system starts, determining whether there is a target running configuration file in the target configuration file set, where the target running configuration file is the configuration file currently in use;

[0008] If the target running configuration file does not exist in the target configuration file set, determining whether the parameters in the pre-configuration file included in the target configuration file set are complete, and when the parameters in the pre-configuration file are complete, loading the pre-configuration file to implement the operation of the device system, or, when the parameters in the pre-configuration file are incomplete, loading the pre-configuration file and loading the parameters missing from the pre-configuration file from the default configuration file included in the target configuration file set to implement the operation of the device system, where the pre-configuration file is a file pre-configured according to the needs of the target user, and the default configuration file is the file configured at the factory;

[0009] If the target running configuration file exists in the target configuration file set, loading the target running configuration file to implement the operation of the device system.

[0010] In a preferred option of the present application, in the above configuration management method of the PON access gateway device, the step of loading the target operating configuration file to implement the operation of the device system if the target operating configuration file exists in the target configuration file set includes:

[0011] If the target operating configuration file exists in the target configuration file set, determine whether the parameters in the target operating configuration file are complete;

[0012] If the parameters in the target operating configuration file are complete, load the target operating configuration file to implement the operation of the device system;

[0013] If the parameters in the target operating configuration file are incomplete, load the target operating configuration file and load the parameters missing from the target operating configuration file from the default configuration file included in the target configuration file set to implement the operation of the device system;

[0014] Among them, the multiple configuration files included in the target configuration file set are implemented in text form, and the text form includes at least the XML format.

[0015] In a preferred option of the present application, in the above configuration management method of the PON access gateway device, the configuration management method of the PON access gateway device further includes:

[0016] In response to a short reset device configuration operation, obtain the short reset configuration file, the target operating configuration file, and the pre-configuration file from the target configuration file set, where the short reset configuration file is used to restore parameters when the device fails;

[0017] Perform parameter short reset processing based on the short reset configuration file, the target operating configuration file, and the pre-configuration file to update the target operating configuration file to form a new target operating configuration file. When the device system starts, load the new target operating configuration file to implement the operation of the device system.

[0018] In a preferred option of the present application, in the above configuration management method of the PON access gateway device, the step of performing parameter short reset processing based on the short reset configuration file, the target operating configuration file, and the pre-configuration file to update the target operating configuration file to form a new target operating 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, where 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, where the first parameter union file includes all the parameters in the first parameter intersection file and all the parameters in the pre-configuration file;

[0021] Based on the first parameter union file, update the target running configuration file to form a new target running configuration file.

[0022] In a preferred selection of the present application, in the above-mentioned configuration management method of the PON access gateway device, the configuration management method of the PON access gateway device further includes:

[0023] In response to the long reset device configuration operation performed, obtain the long reset configuration file, the target running configuration file, and the pre-configuration file from the target configuration file set, where the long reset configuration file is used for parameter recovery when the device fails;

[0024] 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 to form a new target running configuration file, where when the device system starts, load the new target running configuration file to implement the operation of the device system.

[0025] In a preferred selection of the present application, in the above-mentioned configuration management method of the 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 to form a new target running configuration file includes:

[0026] Perform an intersection operation on the long reset configuration file and the target running configuration file to form a corresponding second parameter intersection file, where 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, where the second parameter union file includes all the parameters in the second parameter intersection file and all the parameters in the pre-configuration file;

[0028] Update the target running configuration file based on the second parameter union file to form a new target running configuration file.

[0029] In a preferred selection of this application, in the above-mentioned configuration management method of the PON access gateway device, 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 to 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, update the target running configuration file based on the pre-configuration file to form a new target running configuration file;

[0032] If the parameters in the long reset configuration file are not empty, determine to execute 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.

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

[0034] A device configuration module, configured to generate a corresponding target configuration file set in response to a performed device configuration operation, where the target configuration file set includes at least multiple configuration files;

[0035] A file determination module, configured to determine whether a target running configuration file exists in the target configuration file set when the device system starts, where the target running configuration file is the currently used configuration file;

[0036] A first file loading module, configured 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, and when the parameters in the pre-configuration file are complete, load the pre-configuration file to implement the operation of the device system, or, when the parameters in the pre-configuration file are incomplete, load the pre-configuration file and load the parameters missing from the pre-configuration file from the default configuration file included in the target configuration file set to implement the operation of the device system, where the pre-configuration file is a file pre-configured according to the needs of the target user, and the default configuration file is the file configured at the factory;

[0037] A second file loading module, configured to load the target running configuration file when the target running configuration file exists in the target configuration file set, so as to implement the operation of the device system.

[0038] On this basis, the present application further provides a PON access gateway device, including:

[0039] A memory, configured to store a computer program;

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

[0041] On this basis, the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program runs, it executes each step of the configuration management method of the above PON access gateway device.

[0042] The configuration management method, device, device and medium of the PON access gateway device provided by the present application first generate a target configuration file set; secondly, 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 file included in the target configuration file set are complete, and when they are complete, load the pre-configuration file, or, when they are incomplete, load the pre-configuration file and load the parameters missing in the pre-configuration file from the default configuration file included in the target configuration file set; afterwards, if the target running configuration file exists in the target configuration file set, load the target running configuration file. Based on the above, since the management of multiple configuration files is hierarchical, the management objects are clear and not easy to be confused. Therefore, the reliability of device configuration management can be improved, thereby improving the problem of relatively low reliability of device configuration management existing in the prior art. In addition, due to the existence of the default configuration file, the guarantee of each parameter can be realized. Therefore, for other configuration files, they can be made as small as possible, that is, they can all be very small parameter sets. In this way, the management and development time can also be reduced, and the practical application value of the present solution can be further improved. Description of the Drawings

[0043] To make the above objects, features and advantages of the present application more obvious and understandable, the following specifically gives preferred embodiments and cooperates with the attached drawings to make detailed descriptions as follows.

[0044] Figure 1 It is a structural block diagram of the PON access gateway device provided by the embodiment of the present application.

[0045] Figure 2It is a schematic flowchart of the configuration management method for the PON access gateway device provided by the embodiment of the present application.

[0046] Figure 3 It is a schematic diagram of the loading logic of the configuration file provided by the embodiment of the present application.

[0047] Figure 4 It is a block diagram of the configuration management device for the PON access gateway device provided by the embodiment of the present application. Detailed implementation manners

[0048] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Apparently, the described embodiments are only a part rather than all of the embodiments of the present application. The components of the embodiments of the present application usually described and illustrated in the accompanying drawings here can be arranged and designed in various different configurations.

[0049] Therefore, the detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the claimed present application, but merely represents the selected embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.

[0050] As Figure 1 shown, the embodiment of the present application provides a PON access gateway device. Among them, the PON access gateway device may include a memory, a processor, and a configuration management device for the PON access gateway device.

[0051] Specifically, the memory and the processor are directly or indirectly electrically connected to realize data transmission or interaction. For example, the memory and the processor can be electrically connected through one or more communication buses or signal lines. The configuration management device for the PON access gateway device includes at least one software function module stored in the memory in the form of software or firmware. The processor is used to execute the executable computer program stored in the memory, for example, the software function module and computer program included in the configuration management device for the PON access gateway device, etc., to realize the configuration management method for the PON access gateway device provided by the embodiment of the present application.

[0052] Optionally, the memory may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electric Erasable Programmable Read-Only Memory (EEPROM), etc.

[0053] Moreover, the processor may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), a System on Chip (SoC), etc.; it may 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, discrete hardware components.

[0054] It can be understood that Figure 1 the structure shown is only schematic, and the PON access gateway device may also include more or fewer components than those shown Figure 1 in it, or have a configuration different from that shown Figure 1 For example, it may also include a communication unit for information interaction with other devices.

[0055] In addition, the PON access gateway device refers to a key network device used to connect the user-side device and the Optical Line Terminal (OLT) in a Fiber To The Home (FTTH) or other PON (Passive Optical Network) access architecture. It is not only a terminal device for network access, but also undertakes various functions such as data routing, protocol conversion, security protection, service management, etc.

[0056] Among them, the main functions of the PON access gateway device:

[0057] Protocol conversion and data encapsulation: Convert the data of user devices (such as home routers, computers, etc.) into optical signals and send them to the OLT through the optical fiber link. At the same time, receive the data stream from the OLT and convert it into an electrical signal (such as an Ethernet signal) suitable for use by user devices.

[0058] Multi-service Carriage: It supports carrying multiple services simultaneously, such as **Voice (VoIP), Data (Internet), Video (IPTV)**, etc. PON access gateways usually have multiple interfaces to support different types of service and device connections.

[0059] Network Management and Control: It provides management functions based on the network layer and transport layer, such as bandwidth management, traffic control, user authentication, IP address allocation (DHCP), etc. It supports QoS (Quality of Service) to ensure that different types of services (such as video, voice, and data) can be prioritized and avoid network congestion from affecting important services.

[0060] Security Functions: It provides security functions such as firewalls, intrusion detection, and **Virtual Private Network (VPN)** to protect the user's network environment from external threats. It supports access control to ensure that only authorized devices can access the network.

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

[0062] Integration and Interoperability: Different from traditional broadband gateway devices, PON access gateways combine fiber access with home / enterprise local area networks (LANs), usually providing fiber interfaces (such as EPON, GPON ports), as well as Ethernet ports, Wi-Fi interfaces, etc. It supports multi-link management, that is, integrating different types of access interfaces (such as fiber and Ethernet) on the same device to facilitate users to access different types of networks.

[0063] Typical Types of PON Access Gateway Devices:

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

[0065] GPON ONU: Suitable for gigabit PON networks and can provide higher bandwidth.

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

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

[0068] Fusion Gateway: A multi-functional gateway that integrates PON fiber access, routing, Wi-Fi, switching, and security functions. It is commonly used in large-scale residential areas, commercial buildings, or enterprise networks. In addition to supporting basic Internet access, the fusion gateway can also carry various applications such as voice and video surveillance.

[0069] Working Principle of PON Access Gateway:

[0070] Data Transmission: In the PON access gateway, the optical fiber link is connected to the OLT (Optical Line Terminal). The PON access gateway converts the data from the user device into an optical signal and sends it to the OLT. At the same time, it receives the optical signal sent by the OLT and converts it into an electrical signal for the user device to use.

[0071] Routing Function: The PON access gateway usually has a built-in routing function, which is responsible for managing network traffic, allocating IP addresses, and performing routing selection between different networks.

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

[0073] Usage Scenarios:

[0074] Home Network Access: In the home, the PON access gateway usually provides functions such as broadband access, Wi-Fi coverage, IP phone, and smart home device management.

[0075] Enterprise Access: In enterprises, PON access gateways can be deployed to provide higher-bandwidth and higher-reliability fiber access, while integrating functions such as routing, VPN, and network security to ensure the efficient operation of the enterprise internal network.

[0076] Commercial Buildings or Communities: In large commercial buildings or residential communities, the PON access gateway device can support multiple users to access simultaneously, meeting various application requirements by providing high-speed and reliable fiber access.

[0077] Combined Figure 2 , the embodiment of the present application also provides a configuration management method for the PON access gateway device that can be applied to the above PON access gateway device. Among them, the method steps defined by the process related to the configuration management method of the PON access gateway device can be implemented by the PON access gateway device. The following will Figure 2 describe the specific process shown in detail.

[0078] Step S110, in response to the performed device configuration operation, generate a corresponding target configuration file set.

[0079] In an embodiment of the present application, the PON access gateway device may generate a corresponding target configuration file set in response to a device configuration operation. Among them, the target configuration file set at least includes multiple configuration files, such as one or more of a target running configuration file, a pre-configuration file, a default configuration file, a short reset configuration file, and a long reset configuration file, and can be specifically selected according to actual needs, and no specific limitation and description are made here.

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

[0081] In an embodiment of the present application, the PON access gateway device may determine whether there is a target running configuration file in the target configuration file set when the device system starts. Among them, the target running configuration file is the configuration file currently in use. For example, the running configuration is the configuration currently in use in the product currently in use (i.e., the PON access gateway device), and these configurations have been set by customers or operators. Generally, only a part of the settings are changed, and most of the settings are the same as the default configuration and the pre-configuration. However, if operations such as troubleshooting or moving the device to replace a user are required, only part of the running configuration needs to be retained or the running configuration needs to be cleared completely. Therefore, this configuration is above the default configuration and the pre-configuration. That is to say, it can be first determined whether there is a target running configuration file. For example, there may be no target running configuration file when the device is just out of the factory, or there may be no target running configuration file in other cases.

[0082] Step S130: If there is no target running configuration file in the target configuration file set, determine whether the parameters in the pre-configuration file included in the target configuration file set are complete. When the parameters in the pre-configuration file are complete, load the pre-configuration file to implement the operation of the device system. 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 into the pre-configuration file to implement the operation of the device system.

[0083] In an embodiment of the present application, if the target operating profile does not exist in the target profile set, the PON access gateway device may determine whether the parameters in the preconfigured profile included in the target profile set are complete. When the parameters in the preconfigured profile are complete, the preconfigured profile is loaded to implement the operation of the device system. Alternatively, when the parameters in the preconfigured profile are incomplete, the preconfigured profile is loaded, and the parameters missing from the preconfigured profile are loaded from the default profile included in the target profile set to implement the operation of the device system. Wherein, the preconfigured profile is a profile preconfigured according to the needs of the target user. For example, the preconfiguration is a set of parameters that a certain customer has preconfigured for the received product (i.e., the PON access gateway device), which facilitates the customer to directly use it or facilitates connecting to the platform for unified setting by the platform. This configuration belongs to the basic configuration for specific customers, but this configuration is only a part of the entire configuration, so it is above the default configuration. The default profile is the profile configured at the time of factory. For example, the default configuration is the configuration for all parameters, and each parameter has a default value, which is a general configuration without targeting specific customers at the time of factory. Therefore, this configuration is at the bottom layer.

[0084] Step S140, if the target operating profile exists in the target profile set, load the target operating profile to implement the operation of the device system.

[0085] In an embodiment of the present application, if the target operating profile exists in the target profile set, the PON access gateway device may load the target operating profile to implement the operation of the device system, that is, operate based on the parameters in the target operating profile.

[0086] Based on the above content, due to the hierarchical management of multiple profiles, the management objects are clear and not easily confused. Therefore, the reliability of device configuration management can be improved, thereby improving the problem of relatively low reliability of device configuration management existing in the prior art. In addition, due to the existence of the default profile, the bottom guarantee of each parameter can be realized. Therefore, for other profiles, they can be minimized as much as possible, that is, they can all be very small parameter sets. In this way, the management and development time can also be reduced, further improving the practical application value of this solution.

[0087] In the first aspect, it should be noted that for step S140, the specific manner of loading the target operating profile to implement the operation of the device system is not limited and can be selected according to actual needs.

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

[0089] For another example, in another alternative implementation, to improve the reliability of the device operation, in the above step S140, the following specific implementation details may further be included:

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

[0091] Second, if the parameters in the target operating configuration file are complete, load the target operating configuration file to implement the operation of the device system, that is, the device can operate directly based on the parameters in the target operating configuration file;

[0092] Then, if the parameters in the target operating configuration file are incomplete, load the target operating configuration file and load the missing parameters in the target operating configuration file from the default configuration file included in the target configuration file set to implement the operation of the device system. That is, on the one hand, the device can operate based on the parameters in the target operating configuration file, and on the other hand, it can also operate based on the parameters in the default configuration file. Since the default configuration is for all parameters and each parameter has a default value, it can be used as a fallback. In addition, the multiple configuration files included in the target configuration file set are implemented in text form. In this way, using text form for configuration can achieve code separation, and modification, correction, and debugging are all simple and easy. Moreover, the text form at least includes the XML format, so that the existing function libraries can be used for parsing the configuration without developing an additional parsing solution.

[0093] In the second aspect, considering that the PON access gateway device may experience faults, anomalies, etc. during operation, based on certain requirements, short reset and / or long reset operations need to be performed on the PON access gateway device. Correspondingly, the target configuration file set may further include a short reset configuration file, a long reset configuration file, etc.

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

[0095] Step S150, in response to the performed short reset device configuration operation, obtain the short reset configuration file, the target running configuration file, and the pre-configuration file from the target configuration file set.

[0096] In an embodiment of the present application, in response to the performed short reset device configuration operation, the short reset configuration file, the target running configuration file, and the pre-configuration file can be obtained from the target configuration file set. Among them, the short reset configuration file is used to perform parameter recovery when the device fails. For example, the short reset configuration refers to handling certain failures, such as when the user forgets their user password and sets some parameters that cause anomalies. At this time, some parameters need to be restored to the pre-configuration or default values, but the parameters that do not affect the normal use of the device should be retained. This part of the parameters is a subset of the running configuration, 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 an embodiment of the present application, after obtaining the short reset configuration file, the target running configuration file, and the pre-configuration file, parameter short reset processing can be performed 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. Among them, when the device system starts, the new target running configuration file is loaded to implement the operation of the device system. That is to say, after performing the short reset device configuration operation to update the target running configuration file, it can be restarted so that when restarting, the new target running configuration file can be loaded to run.

[0099] It can be understood that in the above step S160, the specific manner of performing parameter short reset processing based on the short 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 embodiment, in order to ensure the reliability of the parameter short reset processing so that a reliable new target running configuration file can be formed by performing a short reset, the above step S160 can include the following content:

[0100] First, an 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. Among them, 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, that is, they 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 the parameters in the first parameter intersection file and all the 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, based on the first parameter union file, the target running configuration file can be updated to form a new target running configuration file. Exemplarily, the first parameter union file can be directly used as the new target running configuration file, and the target running configuration file can also be deleted, or the parameters in the target running configuration file can be modified based on the parameters in the first parameter union file.

[0103] Moreover, in an alternative embodiment, in order to implement a long reset to ensure the reliable operation of the device, the configuration management method of the PON access gateway device may further include step S170 and step S180, and the specific content is as follows.

[0104] Step S170: In response to the long reset device configuration operation, obtain the long reset configuration file, the target running configuration file, and the pre-configuration file from the target configuration file set.

[0105] In the embodiment of the present application, in response to the long reset device configuration operation, the long reset configuration file, the target running configuration file, and the pre-configuration file can be obtained from the target configuration file set. The long reset configuration file is used to perform parameter recovery when the device fails. Exemplarily, compared with a short reset, less key data is restored in a short reset, that is, more key data can be restored in a long reset. For example, a long reset configuration means that in the event of a serious failure, most of the set parameters need to be cleared, and only a part of the settings in the running configuration of the channel for reissuing parameters is retained. This part of the configuration and the short reset configuration mostly do not belong to each other, but usually the long reset configuration is less than the short reset configuration. Moreover, in some requirements, the running configuration can also be completely cleared and restored to the factory state, and in this case, the long reset configuration is 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 to form a new target running configuration file.

[0107] In an embodiment of the present application, after obtaining the long reset configuration file, the target operation configuration file, and the pre-configuration file, parameter long reset processing may be performed based on the long reset configuration file, the target operation configuration file, and the pre-configuration file to update the target operation configuration file and form a new target operation configuration file. Among them, when the device system is started, the new target operation configuration file is loaded to implement the operation of the device system. That is to say, after performing the long reset device configuration operation to update the target operation configuration file, it can be restarted so that when restarting, the new target operation configuration file can be loaded to run.

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

[0109] First, an intersection operation may be performed on the long reset configuration file and the target operation configuration file to form a corresponding second parameter intersection file, where the parameters in the second parameter intersection file refer to the parameters that exist in both the long reset configuration file and the target operation configuration file, that is, they exist in both the long reset configuration file and the target operation configuration file;

[0110] Second, a union operation may be performed on the second parameter intersection file and the pre-configuration file to form a corresponding second parameter union file, where the second parameter union file includes all the parameters in the second parameter intersection file and all the 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, based on the second parameter union file, the target operation configuration file may be updated to form a new target operation configuration file; exemplarily, the second parameter union file may be directly used as the new target operation configuration file, and the target operation configuration file may also be deleted, or the parameters in the target operation configuration file may be modified based on the parameters in the second parameter union file.

[0112] It can be understood that, in order to balance the issue of efficiency, in an alternative implementation manner, before the step of taking the intersection of the long reset configuration file and the target operation 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 operation configuration file, and the pre-configuration file to update the target operation configuration file to form a new target operation configuration file may further include the following content:

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

[0114] Second, if the parameters in the long reset configuration file are empty, then based on the pre-configuration file, the target operation configuration file is updated to form a new target operation configuration file; Exemplarily, for some faults, it is necessary to completely clear the current operation configuration so that it can be restored to the factory state. At this time, the long reset configuration is empty;

[0115] Then, if the parameters in the long reset configuration file are not empty, then the step of taking the intersection of the long reset configuration file and the target operation configuration file to form a corresponding second parameter intersection file is determined to be executed.

[0116] To facilitate the understanding of the above configuration management method for the PON access gateway device, in combination with Figure 3 Among them, the default configuration is the set of all parameters, which stipulates the attributes and default values of the parameters. The pre-configuration can set the name and preset value of the parameter, and the attribute of the parameter refers to the parameter attribute in the default configuration. The operation configuration generally does not need to be manually modified separately. Generally, according to the current running state, the parameters that have been set and are different from the default values are automatically exported by the system. The short reset configuration and the long reset configuration can only specify the parameter name, and the specific values of these parameters are exported from the operation configuration.

[0117] The reference of these configurations is divided into two implementation scenarios:

[0118] 1. System startup and configuration loading

[0119] (1) If there is no operation configuration file when the system starts, it means that the product has just left the factory and has not been set at all. The pre-configuration can be loaded first, and for the parameters that do not exist in the pre-configuration, the default values are referenced from the default configuration.

[0120] (2) If there is already an operation configuration file when the system starts, the operation configuration can be directly loaded, and for the parameters that do not exist in the configuration, the default values are referenced from the default configuration.

[0121] 2. Perform a reset operation

[0122] (1) During short reset, read the parameter names in the short reset file, extract the specific values of the parameters from the running configuration, then read the parameters in the pre-configuration file, merge them with the short reset parameters and their values into a new running configuration file, and replace the existing running configuration file with this new configuration file. After the system restarts, this new running configuration file can be loaded to achieve short reset.

[0123] (2) During long reset, the operation is the same as that of short reset, except that the long reset file has fewer parameters or is empty. Select the running configuration parameters specified in the long reset and merge them with the pre-configuration parameters into a new running configuration file. When the long reset is empty, the processing is the simplest. Directly replace the running configuration file with the pre-configuration parameter file or directly delete the running configuration. After restarting, the reset operation is completed.

[0124] Combined with Figure 4 , an embodiment of the present application further provides a configuration management device for a PON access gateway device that can be applied to the above PON access gateway device. Among them, the configuration management device of 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 the performed device configuration operation, where the target configuration file set includes at least multiple configuration files. In an embodiment of the present application, the device configuration module can be used to execute Figure 2 the steps S110 shown, and the relevant content about the device configuration module can refer to the description of step S110 above.

[0126] The file determination module is used to determine whether there is a target running configuration file in the target configuration file set when the device system starts, where the target running configuration file is the configuration file currently in use. In an embodiment of the present application, the file determination module can be used to execute Figure 2 the steps S120 shown, and the relevant content about the file determination module can refer to the description of step S120 above.

[0127] The first file loading module is used to determine whether the parameters in the pre-configured 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. When the parameters in the pre-configured file are complete, the pre-configured file is loaded to implement the operation of the device system. Or, when the parameters in the pre-configured file are incomplete, the pre-configured file is loaded, and the parameters missing from the pre-configured file are loaded from the default configuration file included in the target configuration file set to implement the operation of the device system. Herein, the pre-configured file is a file pre-configured according to the needs of the target user, and the default configuration file is the file configured at the factory. In the embodiments of the present application, the first file loading module can be used to execute Figure 2 the step S130 shown in the figure. For the relevant content of the first file loading module, reference can be made to the description of step S130 above.

[0128] 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 to implement the operation of the device system. In the embodiments of the present application, the second file loading module can be used to execute Figure 2 the step S140 shown in the figure. For the relevant content of the second file loading module, reference can be made to the description of step S140 above.

[0129] In the embodiments of the present application, corresponding to the above-mentioned configuration management method of the PON access gateway device applied to the PON access gateway device, a computer-readable storage medium is further provided. A computer program is stored in the computer-readable storage medium, and when the computer program runs, it executes each step of the configuration management method of the PON access gateway device.

[0130] Among them, each step executed when the foregoing computer program runs will not be elaborated herein one by one, and reference can be made to the foregoing explanation of the configuration management method of the PON access gateway device.

[0131] In summary, for the configuration management method, apparatus, device, and medium of the PON access gateway device provided in this application, first, a set of target configuration files is generated; second, it is determined whether a target running configuration file exists in the set of target configuration files; then, if the target running configuration file does not exist in the set of target configuration files, it is determined whether the parameters in the pre-configuration file included in the set of target configuration files are complete, and when they are complete, the pre-configuration file is loaded, or when they are incomplete, the pre-configuration file is loaded, and the parameters missing from the pre-configuration file are loaded from the default configuration file included in the set of target configuration files; thereafter, if the target running configuration file exists in the set of target configuration files, the target running configuration file is loaded. Based on the above, due to the hierarchical management of multiple configuration files, the management objects are clear and not easily confused. Therefore, the reliability of device configuration management can be improved, thereby improving the problem of relatively low reliability of device configuration management existing in the prior art. In addition, due to the existence of the default configuration file, the guarantee of each parameter can be realized. Therefore, for other configuration files, they can be made as small as possible, that is, they can all be very small parameter sets. In this way, the management and development time can also be reduced, further improving the practical application value of this solution.

[0132] In several embodiments provided in the embodiments of the present application, it should be understood that the disclosed apparatus and method 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 show the possible architectures, functions, and operations of apparatuses, methods, and computer program products according to multiple embodiments of the present application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, and the module, program segment, or part of code contains one or more executable instructions for implementing the 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 from that marked in the accompanying drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.

[0133] In addition, in each embodiment of the present application, the various functional modules may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0134] If the above-mentioned functions are implemented in the form of software function 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 part of this 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 enable a computer device (which can be a personal computer, an electronic device, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application. The aforementioned storage medium includes: various media that can store program codes such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs. It should be noted that in this article, the term "including", "comprising", or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article, or device including a series of elements not only includes those elements but also includes other elements not explicitly listed, or further includes elements inherent to such a process, method, article, or device. Without more limitations, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article, or device including the said element.

[0135] The above are only the preferred embodiments of this application and are not used to limit this application. For those skilled in the art, this application can have various changes and modifications. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of this application shall 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 performed device configuration operation, generating a corresponding target configuration file set, wherein the target configuration file set includes at least a plurality of configuration files; When the device system is started, determining whether there is a target running configuration file in the target configuration file set, wherein the target running configuration file is a configuration file currently in use; If the target operation configuration file does not exist in the target configuration file set, determining whether the parameters in the pre-configuration file included in the target configuration file set are complete, and when the parameters in the pre-configuration file are complete, loading the pre-configuration file to implement the operation of the device system, or, when the parameters in the pre-configuration file are incomplete, loading the pre-configuration file and loading the missing parameters in the pre-configuration file from the default configuration file included in the target configuration file set to implement the operation of the device system, wherein 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 operation configuration file exists in the target configuration file set, the target operation configuration file is loaded to implement the operation of the device system.

2. The configuration management method of the PON access gateway device according to claim 1, characterized in that: If the target operation configuration file exists in the target configuration file set, the step of loading the target operation configuration file to implement the operation of the device system includes: If the target operation configuration file exists in the target configuration file set, determining whether the parameters in the target operation configuration file are complete; If the parameters in the target operation configuration file are complete, then the target operation configuration file is loaded to implement the operation of the device system; If the parameters in the target operation configuration file are incomplete, the target operation configuration file is loaded, and the missing parameters in the target operation configuration file are loaded from the default configuration file included in the target configuration file set to realize the operation of the device system; The target configuration file set includes multiple configuration files in a text format, and the text format includes at least an XML format.

3. The configuration management method of the PON access gateway device according to claim 1 or 2, characterized in that: The configuration management method of the PON access gateway device also includes: In response to the short reset device configuration operation being performed, acquiring a short reset configuration file, the target running configuration file and the pre-configuration file from the target configuration file set, wherein the short reset configuration file is used to perform parameter recovery when a device fails; A parameter short reset process is performed based on the short reset configuration file, the target operation configuration file and the pre-configuration file to update the target operation configuration file to form a new target operation configuration file, wherein when the device system is started, the new target operation configuration file is loaded to implement the operation of the device system.

4. The configuration management method of the PON access gateway device according to claim 3, characterized in that: The step of performing parameter short reset processing based on the short reset configuration file, the target operation configuration file and the pre-configuration file to update the target operation configuration file to form a new target operation configuration file includes: Performing an intersection operation on the short reset configuration file and the target operation 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 in both the short reset configuration file and the target operation configuration file; Performing 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 operation configuration file is updated to form a new target operation configuration file.

5. The configuration management method of the PON access gateway device according to claim 1 or 2, characterized in that: The configuration management method of the PON access gateway device also includes: In response to the long reset device configuration operation being performed, acquiring a long reset configuration file, the target running configuration file and the pre-configuration file from the target configuration file set, wherein the long reset configuration file is used to perform parameter recovery when a device fails; A parameter long reset process is performed based on the long reset configuration file, the target operation configuration file and the pre-configuration file to update the target operation configuration file to form a new target operation configuration file, wherein when the device system is started, the new target operation configuration file is loaded to implement the operation of the device system.

6. The configuration management method of the PON access gateway device according to claim 5, characterized in that: The step of performing parameter long reset processing based on the long reset configuration file, the target operation configuration file and the pre-configuration file to update the target operation configuration file to form a new target operation configuration file includes: Performing an intersection operation on the long reset configuration file and the target operation 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 in both the long reset configuration file and the target operation configuration file; Performing 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 second parameter union file, the target operation configuration file is updated to form a new target operation configuration file.

7. The configuration management method of the 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 operation 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 operation configuration file and the pre-configuration file to update the target operation configuration file to form a new target operation configuration file further includes: Determine whether the parameters in the long reset configuration file are empty; If the parameter in the long reset configuration file is empty, the target operation configuration file is updated based on the pre-configuration file to form a new target operation configuration file; If the parameter in the long reset configuration file is not empty, it is determined to execute the step of performing an intersection operation on the long reset configuration file and the target operation configuration file to form a corresponding second parameter intersection file.

8. A configuration management device for a PON access gateway device, characterized in that: include: A device configuration module, configured to generate a corresponding target configuration file set in response to a performed device configuration operation, wherein the target configuration file set includes at least a plurality of configuration files; A file determination module, used for determining whether a target running configuration file exists in the target configuration file set when the device system is started, wherein the target running configuration file is a configuration file currently in use; a first file loading module, configured to determine whether parameters in a pre-configuration file included in the target configuration file set are complete when the target operation configuration file does not exist in the target configuration file set, and load the pre-configuration file to implement the operation of the device system when the parameters in the pre-configuration file are complete, or load the pre-configuration file to implement the operation of the device system when the parameters in the pre-configuration file are incomplete, and load the parameters missing in the pre-configuration file from a default configuration file included in the target configuration file set to implement the operation of the device system, wherein 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 load the target operation configuration file when the target operation configuration file exists in the target configuration file set, so as to realize the operation of the device system.

9. A PON access gateway device, characterized in that: include: Memory for storing computer programs; A processor connected to the memory is used to execute a 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 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is run, the configuration management method for the PON access gateway device according to any one of claims 1 to 7 is executed.

Citation Information

Patent Citations

  • Method for producing assortment versions of home gateway system

    CN102222009A

  • Method of implementing configuration and management of data of home gateway based on XML (Extensible Markup Language)

    CN104158692A

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

    CN106919424A

  • File configuration method and device

    CN109976828A

  • Systems and methods for efficient configuration file management and distribution by network management systems

    US11489712B1