Gateway function module log management method and system based on TR-069 protocol

By adding log management parameters to the TR-069 protocol, the log recording level of the gateway functional modules can be dynamically adjusted and modularized, solving the problems of remote control and information collection in gateway log management, and realizing efficient and secure log uploading and analysis.

CN121193564APending Publication Date: 2025-12-23四川长虹新网科技有限责任公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511361888.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-23
Publication Date
2025-12-23

AI Technical Summary

Technical Problem

Existing technologies cannot achieve dynamic and granular log management of the internal functional modules of the gateway, and log management lacks remote control and standardized information collection, resulting in high operation and maintenance costs and excessive bandwidth consumption.

Method used

Log management parameters are added to the TR-069 protocol parameter model. Configuration instructions are generated by the automatic configuration server to dynamically adjust the log recording level of the functional modules. Log files are uploaded via the TR-069 protocol to achieve modular management and secure transmission.

Benefits of technology

It enables precise log collection and optimization of the gateway's internal functional modules, reducing operation and maintenance costs and network bandwidth usage, and improving the efficiency and security of log management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121193564A_ABST
    Figure CN121193564A_ABST
Patent Text Reader

Abstract

The invention mainly relates to the technical field of gateway log management, and provides a gateway function module log management method and system based on a TR-069 protocol in order to solve the problem that a traditional gateway log cannot be remotely, dynamically and finely managed. Log management parameters used for gateway modular log management are newly added, an automatic configuration server sends a log management configuration instruction to a gateway based on the log management parameters, the log level of a specific module is adjusted in real time, log content is collected according to needs, and therefore the powerful remote configuration and file transmission capacity of TR-069 is improved, and the reliability of the RT-069 is improved. And the method is accurately applied to log life cycle management of each functional module in the gateway.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application mainly relates to the technical field of gateway log management, in particular to a gateway function module log management method and system based on TR-069 protocol. BACKGROUND

[0002] With the development of Internet of Things and edge computing technology, gateway devices undertake key functions such as network protocol conversion, data forwarding, and security protection, and their running state directly affects system stability. As a core tool for troubleshooting and performance optimization, the running log of the gateway needs to meet the following requirements: a) Dynamic log recording level adjustment: Traditional gateway function module log systems usually use static log recording levels (such as DEBUG, INFO, and ERROR), which cannot be dynamically adjusted according to real-time needs, resulting in log redundancy or information loss.

[0003] b) Modular log management: The gateway contains multiple function modules (such as protocol parsing, security verification, and communication interface), which need to support independent configuration of log recording levels.

[0004] c) Remote control and information collection: Existing log management lacks standardized remote interfaces and relies on local operations or proprietary protocols, resulting in high operation and maintenance costs.

[0005] d) Balance between security and efficiency: Log data needs to be transmitted efficiently while ensuring security to avoid occupying excessive bandwidth and storage resources.

[0006] TR-069 (Technical Report 069) protocol is a remote management protocol defined by DSL Forum, supporting functions such as parameter configuration, firmware upgrade, and log upload for CPE devices. Currently, when the gateway collects logs through TR-069, it can only obtain log information stored by the gateway system itself, and cannot provide independent and dynamic log recording level configuration for different function modules within the gateway. It is difficult to accurately locate problems in the gateway operation through log information. SUMMARY

[0007] The technical problem to be solved by the present application is to provide a gateway function module log management method and system based on TR-069 protocol, aiming to solve the problem of remote dynamic and fine management of logs in each function module in the gateway.

[0008] The technical solution adopted by the present application to solve the above technical problem is: On the one hand, the present application provides a gateway function module log management method based on TR-069 protocol, which includes the following steps: Step S1: adding log management parameters of each function module in the gateway in the TR-069 protocol parameter model, the log management parameters including: a module name parameter for identifying the gateway function module, a log recording level parameter, and an enabling parameter for enabling or disabling the log function; Step S2: the automatic configuration server generates a log management configuration instruction based on the log management parameters and delivers the log management configuration instruction to the gateway through a SetParameter Values data message; Step S3: according to the state of the enabling parameter, it is judged whether to adjust the log recording level of the corresponding function module to the log level in the log management configuration instruction, and the log content is collected according to the log recording level of the function module and saved as a log file; Step S4: a log file is automatically uploaded to the automatic configuration server triggered by a log upload trigger event; Step S5: the automatic configuration server analyzes and processes the received log file and sends a log optimization management instruction to the gateway.

[0009] Further, the log content includes DEBUG information, INFO information and ERROR information in the running process of the function module, and the log recording level includes: DEBUG, INFO and ERROR from low to high.

[0010] Further, step S3 specifically includes: when the state of the enabling parameter is disabled, if the log function is not running, no processing is performed, and if the log function is running, the log collection is stopped; when the state of the enabling parameter is enabled, the log content is collected according to the log recording level in the log management configuration instruction.

[0011] Further, the log content collected in step S3 is stored in a locally defined folder in the gateway after being named according to the function module and time node information.

[0012] Further, in step S4, the log file is uploaded to the automatic configuration server through the Upload operation of the TR-069 protocol.

[0013] Further, in step S4, the log upload trigger event includes: an active request initiated by the automatic configuration server, an abnormal event generated internally in the gateway, or a preset periodic log file upload time.

[0014] Further, in step S4, the gateway compresses and encrypts the log file before uploading.

[0015] Further, in step S4, the log data is encrypted and transmitted based on the HTTPS protocol, the TLS protocol or the SSL protocol.

[0016] Further, the method further comprises: after the log file uploading is completed, setting the log function state to disabled by enabling a parameter.

[0017] In another aspect, the application also provides a gateway function module log management system based on TR-069 protocol, the system comprises: An auto-configuration server: used for adding log management parameters of each function module in the gateway in a TR-069 protocol parameter model, and generating log management configuration instructions based on the log management parameters; A modular log configuration module: recording the mapping relationship between each function module inside the gateway and the log management configuration instructions; A TR-069 interface module: establishing communication with the auto-configuration server, and issuing the log management configuration instructions according to the mapping relationship; The dynamic adjustment module: used for modifying the log level of the corresponding function module according to the log management configuration instructions; A log collection and compression module: used for collecting log content according to the log management configuration instructions, and classifying, packing and compressing the log files before uploading; A secure transmission module: used for uploading the compressed log files to the auto-configuration server after encryption.

[0018] The beneficial effects of the application are: (1) The gateway function module log management method and system based on TR-069 protocol provided by the application provide independent log management configuration instructions for different function modules inside the gateway, can support dynamic and fine log control of each function module inside the gateway, and can remotely and real-timely adjust the log recording level of a specific module, obtain specific gateway running diagnostic information, avoid log redundancy, and realize "precise log" collection; and the auto-configuration server can issue log collection optimization instructions according to log analysis results, optimize the log recording content and registration of the function modules inside the gateway, and realize on-demand collection, directional uploading and intelligent analysis of the gateway function module log operation and maintenance. (2) By log compression and setting a log uploading trigger event on-demand uploading mechanism, the occupation of network bandwidth by log transmission is greatly reduced, and the storage space of the auto-configuration server is also saved. BRIEF DESCRIPTION OF DRAWINGS

[0019] Figure 1 The gateway function module log management method based on TR-069 protocol provided by the application is shown in the flowchart. DETAILED DESCRIPTION

[0020] The core of the present application to solve the above technical problems is: extending the standard data model of TR-069 protocol, adding a log management parameter for gateway function module log management, and sending log management configuration instructions to the gateway based on the log management parameter by the automatic configuration server, adjusting the log level of the specific module in real time, and collecting log content on demand.

[0021] As shown in Figure 1 The TR-069 protocol-based gateway function module log management method of the present application comprises the following steps: A log management parameter is added in the gateway parameter model defined by TR-098 or TR-106, and the log management parameter includes a module name parameter for identifying the gateway function module, a log recording level parameter, and an enabling parameter for enabling or disabling the log function.

[0022] The module name parameter of the gateway function module is used to clearly specify which function module in the gateway is the target of the current configuration operation, so as to prevent the log settings of other function modules from being modified by mistake.

[0023] The log recording level parameter is used to set the log recording level in the target function module to "ERROR", "INFO", or "DEBUG"; during the log collection process, the corresponding log recording level is used to record the serious events such as errors and failures occurring during the operation of the module or the daily operation information, so as to avoid generating a large amount of redundant logs and ensure the effectiveness of the log collection content. For example, if the log recording level parameter in the log management configuration instruction is "ERROR", the corresponding log recording level will be used to record the serious events such as errors and failures occurring during the operation of the corresponding module during the log collection process, and the daily operation log information of the function module will not be recorded.

[0024] As shown in Figure 1 The enabling parameter is used to control the start or stop state of log collection; when the state of the enabling parameter is disabled, for example, when the enabling flag enable=0, if the log function is not running, no processing is performed, and if the log function is running, the log collection is stopped; when the state of the enabling parameter is enabled, for example, when the enabling flag enable=1, the log content of the corresponding function module is collected according to the log recording level parameter in the log management configuration instruction.

[0025] The automatic configuration server sends the log management configuration instruction generated according to the log management parameter to the gateway through a SetParameterValues (SPV) data message.

[0026] According to the state of the enabling parameter, it is judged whether to adjust the log recording level of the corresponding function module, the log content is collected according to the log recording level of the function module, the collected log content is named according to the function module and the time node information, and then stored in the folder locally defined by the gateway, saved as a log file, and when the log uploading trigger event occurs, the log file is automatically uploaded to the auto-configuration server.

[0027] In the embodiment, the log uploading trigger event includes: log file uploading active request initiated by the auto-configuration server, abnormal event generated in the gateway or reaching the preset periodic log uploading time, after the log uploading trigger event occurs, the log file is uploaded to the auto-configuration server through the Upload operation of the TR-069 protocol As preferred, the gateway compresses the log file before uploading the log file, and then uploads the compressed log file to the auto-configuration server through the HTTPS protocol, the TLS protocol or the SSL protocol.

[0028] After the log file uploading is completed, the abnormal mode (such as frequent error code) in the log file is recognized through the log analysis engine, and the log management optimization suggestion (such as adjusting the log recording level, updating the firmware) is issued to the gateway.

[0029] The gateway function module log management system based on the TR-069 protocol in the embodiment includes: The auto-configuration server is used for adding the log management parameters of each function module in the gateway in the TR-069 protocol parameter model, and generating the log management configuration instruction based on the log management parameters; The modular log configuration module records the mapping relationship between each function module in the gateway and the log management configuration instruction; The TR-069 interface module establishes communication with the auto-configuration server, and issues the log management configuration instruction according to the mapping relationship; The dynamic adjustment module is used for modifying the log level of the corresponding function module according to the log management configuration instruction; The log collection and compression module is used for collecting the log content according to the log management configuration instruction, and classifying, packaging and compressing the log file before uploading; The secure transmission module is used for encrypting and uploading the compressed log file to the auto-configuration server.

Claims

1. A gateway function module log management method based on the TR-069 protocol, characterized in that, Includes the following steps: Step S1: Add log management parameters for each functional module in the gateway to the TR-069 protocol parameter model. The log management parameters include: module name parameters for identifying gateway functional modules, log recording level parameters, and enable parameters for enabling or disabling the log function. Step S2: The automatic configuration server generates log management configuration instructions based on log management parameters and sends the log management configuration instructions to the gateway via a SetParameterValues ​​message; Step S3: Based on the status of the enable parameters, determine whether to adjust the logging level of the corresponding functional module to the logging level in the log management configuration command. If so, collect log content according to the corresponding logging level and save it as a log file. Step S4: The log upload trigger event automatically uploads the log file to the auto-configuration server; Step S5: The automatic configuration server analyzes and processes the received log files and sends log optimization management instructions to the gateway.

2. The gateway function module log management method based on the TR-069 protocol according to claim 1, characterized in that, The log levels, from lowest to highest, include: DEBUG, INFO, and ERROR.

3. The gateway function module log management method based on the TR-069 protocol according to claim 1, characterized in that, Step S3 specifically includes: when the state of the enabling parameter is disabled, if the logging function is not running, no processing is performed; if the logging function is running, log collection is stopped; when the state of the enabling parameter is enabled, log content is collected according to the corresponding logging level and saved as a log file.

4. The gateway function module log management method based on the TR-069 protocol according to claim 1, characterized in that, The log content collected in step S3 is named according to functional modules and time nodes and then stored in a custom folder on the gateway.

5. The gateway function module log management method based on the TR-069 protocol according to claim 1, characterized in that, In step S4, the log file is uploaded to the auto-configuration server via the Upload operation of the TR-069 protocol.

6. The gateway function module log management method based on the TR-069 protocol according to claim 1, characterized in that, The log upload triggering events in step S4 include: an active request for log file upload initiated by the auto-configuration server, an abnormal event generated inside the gateway, or the achievement of a preset periodic log file upload time.

7. The gateway function module log management method based on the TR-069 protocol according to claim 1, characterized in that, In step S4, the gateway compresses and encrypts the log file before uploading it.

8. The gateway function module log management method based on the TR-069 protocol according to claim 7, characterized in that, Step S4 encrypts the log data for transmission based on HTTPS, TLS, or SSL protocols.

9. The gateway function module log management method based on the TR-069 protocol according to any one of claims 1-8, characterized in that, The method further includes: after the log file is uploaded, the gateway automatically sets the log function status to disabled through the enable parameter.

10. A gateway function module log management system based on the TR-069 protocol, used to implement the gateway function module log management method based on the TR-069 protocol as described in any one of claims 1-9, characterized in that, The system includes: Automatic configuration server: Used to add log management parameters for each functional module in the gateway to the TR-069 protocol parameter model, and generate log management configuration instructions based on the log management parameters; Modular log configuration module: Records the mapping relationship between various functional modules within the gateway and log management configuration commands; TR-069 interface module: Establishes communication with the automatic configuration server and issues log management configuration commands according to the mapping relationship; The dynamic adjustment module is used to modify the log level of the corresponding functional module according to the log management configuration instructions. Log collection and compression module: used to collect log content according to log management configuration instructions, and classify, package and compress log files before uploading; Secure transmission module: Used to encrypt and upload compressed log files to the auto-configuration server.