A remote debugging method and system for GPON ONU

By using OMCI messages and applications to execute debugging commands in the GPON ONU, the problems of low fault location efficiency and poor interoperability in GPON technology are solved, the efficiency of code-level debugging and fault handling is achieved, and the reliability and operation of the network are improved. Dimensional efficiency.

CN115134688BActive Publication Date: 2024-09-06RAISECOM TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210740767.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-27
Publication Date
2024-09-06
Estimated Expiration
2042-06-27

AI Technical Summary

Technical Problem

Existing GPON technology has low troubleshooting and locating efficiency when network anomalies occur, cannot implement code-level debugging, and has poor interoperability and low reliability, resulting in users being unable to log in to the ONU remotely, reducing operation and maintenance efficiency.

Method used

The optical line terminal OLT uses OMCI messages to issue debugging commands to the GPON ONU. The ONU sends the commands to the specified application for execution and returns the execution results to achieve code-level debugging and fault location.

Benefits of technology

It improves the efficiency of fault location and processing, enhances interoperability and reliability among different manufacturers, enables code-level debugging, and reduces fault handling time and cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115134688B
    Figure CN115134688B
Patent Text Reader

Abstract

The embodiment of the present application discloses a remote debugging method and system for GPON ONU. The method comprises: an optical line terminal OLT sends a debugging command to an optical network unit ONU of a gigabit passive optical network GPON to be debugged through a network unit management control interface OMCI message; the GPON ONU to be debugged sends the received debugging command to a designated application corresponding to the debugging command; the debugging command is executed by the application, and the execution result of the debugging command is returned to the OLT.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of information processing, and more particularly to a remote debugging method and system for a GPON ONU. Background Art

[0002] GPON (Gigabit-Capable Passive Optical Networks) technology is the latest generation of broadband passive optical integrated access standards based on the ITU-TG.984.x standard. It has many advantages such as high bandwidth, high efficiency, large coverage and rich user interfaces. It is regarded by most operators as an ideal technology for realizing broadband and integrated transformation of access network services. With the widespread application of GPON technology in scenarios such as user broadband access, POL (Passive Optical LAN) and video surveillance, in order to improve efficiency and reduce operation and maintenance costs, when the network is abnormal, operators hope to remotely troubleshoot, locate and solve ONU (Optical Network Unit) related faults instead of sending operation and maintenance engineers to install ONU on-site. At present, the usual practice is to first configure the IP address of the ONU remotely by the OLT (Optical Line Terminal) or the network management system, and then log in to the ONU through the IP address. However, this method has the following disadvantages:

[0003] a. Poor interoperability: For SFU (Single Family Unit) type ONUs, the GPON protocol does not clearly specify the method for configuring the management IP. Therefore, the management IP configuration methods of SFU type ONUs are non-standard, resulting in the OLT being unable to configure the management IP for SFU type ONUs of other manufacturers in interoperability scenarios (i.e., ONUs and OLTs are not from the same manufacturer);

[0004] b. Low reliability: If the ONU communicates with the OLT / network management server via TCP / IP, the priority of the TCP / IP message (including transmission priority and ONU processing priority) is lower than that of the OMCI (ONU Management and Control Interface) message. In some extreme cases (such as abnormal messages in the network or excessive CPU utilization of the ONU), it is easy for the service message to fail to be forwarded normally, resulting in the user being unable to remotely log in to the ONU.

[0005] c. Low efficiency in locating faults: Code-level debugging cannot be achieved, and faults can only be troubleshooted using existing commands or logs in the ONU firmware. If the debugging method in the current software of the faulty ONU cannot locate the problem, the ONU needs to be updated, which greatly reduces the efficiency of locating and handling faults. Summary of the invention

[0006] In order to solve any of the above technical problems, the embodiments of the present application provide a remote debugging method and system for a GPON ONU.

[0007] In order to achieve the purpose of the embodiment of the present application, the embodiment of the present application provides a remote debugging method of a GPON ONU, characterized in that it includes:

[0008] The optical line terminal OLT sends a debugging command to the optical network unit ONU of the gigabit passive optical network GPON to be debugged through the network unit management control interface OMCI message;

[0009] The GPON ONU to be debugged sends the received debugging command to a designated application corresponding to the debugging command; the application executes the debugging command and returns the execution result of the debugging command to the OLT.

[0010] A remote debugging system for GPON ONU, comprising:

[0011] OLT, used to send debugging commands to GPON ONU through OMCI messages;

[0012] The GPON ONU is used to send the received debugging command to a designated application corresponding to the debugging command; the debugging command is executed by the application, and the execution result of the debugging command is returned to the OLT.

[0013] One of the above technical solutions has the following advantages or beneficial effects:

[0014] On the OLT side, code-level debugging of the ONU is implemented through standard OMCI messages, greatly improving the efficiency of fault location and processing.

[0015] Other features and advantages of the embodiments of the present application will be described in the subsequent description, and partly become apparent from the description, or can be understood by implementing the embodiments of the present application. The purpose and other advantages of the embodiments of the present application can be achieved and obtained by the structures specifically pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings are used to provide further understanding of the technical solutions of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the embodiments of the present application, they are used to explain the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.

[0017] Figure 1 A flowchart of a remote debugging method for a GPON ONU provided in an embodiment of the present application;

[0018] Figure 2 A schematic diagram of the command format of the debugging command provided in the embodiment of the present application;

[0019] Figure 3 A schematic diagram of the decomposition of the debugging commands provided in the embodiment of the present application;

[0020] Figure 4 Another flow chart of the remote debugging method of GPON ONU provided by the embodiment of the present application;

[0021] Figure 5 A flowchart of an application executing a debugging command provided in an embodiment of the present application;

[0022] Figure 6 A flowchart of the application compilation operation provided in an embodiment of the present application;

[0023] Figure 7 A flowchart of the application compilation operation provided by the prior art;

[0024] Figure 8 A schematic diagram of the structure of a remote debugging system for a GPON ONU provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present application more clear, the embodiments of the present application will be described in detail in conjunction with the accompanying drawings. It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other arbitrarily.

[0026] Figure 1 Flow chart of the remote debugging method of GPON ONU provided by the embodiment of the present application. Figure 1 As shown, the method includes:

[0027] Step 10, OLT sends a debugging command to the GPON ONU to be debugged through an OMCI message;

[0028] Step 20: The GPON ONU to be debugged sends the received debugging command to a designated application corresponding to the debugging command; the application executes the debugging command and returns the execution result of the debugging command to the OLT.

[0029] The method provided in the embodiment of the present application provides a new GPON ONU remote debugging method, so that the user can implement code-level debugging of the ONU through standard OMCI messages on the OLT side, greatly improving the efficiency of fault location and processing.

[0030] Figure 2 Schematic diagram of the command format of the debugging command provided in the embodiment of the present application. Figure 2 As shown, in order to facilitate the implementation of the method of the present application, the present application pre-sets the command format of the debugging command, and each debugging command includes multiple components, each of which is separated by a hyphen "-".

[0031] The description of each part is shown in Table 1 below:

[0032]

[0033] Table 1 Command format of custom debugging commands

[0034] One special note is given here: since the GPON-related protocols stipulate that the length of the character string of a debug command in a message cannot exceed 25 bytes, in actual use, when a complete debug command exceeds 25 bytes, the debug command can be split into multiple pieces, and the length of the character string in each piece is not greater than 25 bytes, and the length of the character string in each message piece can be determined by ordinary technicians in this field, and the total number of pieces of the debug command and the order of the current piece in the total pieces can be determined by the "Command Sequence (current / total)" in the debug command. Figure 3 Take an example of calling a function through a debug command: when calling the function omci_get_current_connection(1), the debug command is split into three OMCI message fragments: OMCI-1 / 3-func_omci_get_, OMCI-2 / 3-func_current_con, and OMCI-3 / 3-func_nection-1.

[0035] Based on the debugging instruction format set above, the present application proposes a remote debugging method for GPON ONU. After determining to use the ASCII code command format for message interaction between OLT and ONU, refer to Figure 4 As shown, perform the following steps:

[0036] Step 101: The OLT sends a debugging command to the ONU to be debugged via an OMCI SET message;

[0037] In order to communicate with OLTs of different manufacturers in the interoperability scenario, the interaction between ONU and OLT is based on the ONU REMOTE DEBUG management entity specified in the GPON standard protocol G.984.4. The format of the OMCI message sent by OLT is shown in Table 2, where the length is in bytes.

[0038]

[0039] Table 2 OMCI message format sent by OLT

[0040] In this step, the ONU to be debugged can be specified by the method of the prior art, and the present application does not limit it. The debugging command sent by the OLT through the OMCI message can be: a SET message specified by the standard OMCI protocol, and the object of the SET operation in the message is the management entity Remote Debug (Managment Entity ID = 158). The Remote Debug ME contains a specific debugging command, and the format of the debugging command adopts the format defined in Table 1; the example format of the OMCI SET message is: Set (Command Attribute = "OMCI-1 / 1-func-dump_stat").

[0041] Further, such as Figure 3 As shown, if the debugging command needs to be split into multiple OMCI messages due to its length, the total number of fragments of the debugging command and the order of the current fragment in the total fragments are determined by "Command Sequence (current / total)" in the debugging command included in each OMCI message.

[0042] Step 102: When the ONU receives the OMCI SET message and determines that the OMCI SET message includes a debugging command, the ONU sends the debugging command to the application corresponding to the debugging command; the application parses the debugging command, and executes the command according to the type of the debugging command and executes the debugging command;

[0043] In this step, the ONU determines that the received OMCI SET message contains a debugging command specifically:

[0044] After receiving the OMCI message, the ONU GPON protocol stack parses the received message. If the field "Messagetype" corresponds to SET, the received message is determined to be a SET message, and the field "Managedentity class" of the OMCI message is further determined to be Remote Debug, ID = 158. If so, it indicates that the object of the SET operation is the management entity Remote Debug (Managment Entity ID = 158), the SET message includes a debugging command, and the field "Messagecontents" includes a character string corresponding to the debugging command.

[0045] In this step, the debugging command is sent to a designated application program by means of inter-process communication, and the designated application program is determined by a command type in the debugging command.

[0046] In this step, the debugging command is executed by the GPON protocol stack or another specified process, and the execution result of the debugging command is returned to the GPON protocol stack for temporary storage, so as to be subsequently obtained by the OLT using an OMCI GET message.

[0047] In this step, the application parses the debug command specifically including: obtaining the command type, command name and command parameters of the debug command according to the format of the customized debug command, wherein, if the debug command is split into multiple OMCI messages due to its length, the total number of fragments of the debug command and the order of the current fragment in the total fragments are determined by the "Command Sequence (current / total)" in the debug command contained in each OMCI message, and the debug command is reorganized and then parsed.

[0048] The application program executes debugging commands including: Figure 4 The steps described:

[0049] A0: Determine whether the debugging command type is a variable or an operation function. If yes, execute A1; otherwise, execute step A3;

[0050] A1: The application uses the command name (Command Name) as the index to search its own symbol table array (OnuAppSymTbl), and then searches for the corresponding function or variable pointer in the array;

[0051] A2: Executes the operation function or sets the variable; then executes A5.

[0052] A3: Determine whether the debugging command type is a system command. If yes, execute step A4. Otherwise, this application does not involve this.

[0053] A4: directly execute the system command through the system call, and then execute A5;

[0054] A5: Temporarily store the execution result of the debugging command.

[0055] Among them, in the above A1, the symbol table array (OnuAppSymTbl) is a data segment automatically generated when the application is compiled and saved in the application binary file after compilation. Its format can be schematically shown as follows:

[0056] Further, such as Figure 6 As shown, the application compilation includes:

[0057] Step A: Link all the application object files (*.o) to generate a temporary object file (tmp.o); wherein, the application object files (*.o) of each application are obtained by compiling and assembling the application source files (*.c, *.h);

[0058] Step B: Temporary object file (tmp.o) is temporarily stored, the symbol table in the temporary object file (tmp.o) is analyzed and processed (Analyze symbol) by a script, the name, type and pointer of the specified symbol information (including variables in the data segment and BSS segment and functions in the code segment) are saved in a source code file (symtbl.c) in the form of an array (OnuAppSymTbl), the source code file is compiled (Compilation) and assembled (Assembly), thereby generating a target file (symtbl.o);

[0059] Step C: Link the generated target file (symtbl.o) with the temporary target file (tmp.o) stored previously to generate the final application (binary file) (User Application).

[0060] Compared to the following Figure 7 The prior art compilation method shown has the following advantages:

[0061] 1. By generating a symbol table array (OnuAppSymTbl), users can implement code-level debugging - by running a certain function to obtain more comprehensive software information, greatly improving the efficiency of troubleshooting.

[0062] 2. It has good versatility and is suitable for application programming on all Linux platforms;

[0063] 3. Easy to use and expand. Users can expand the functions of the generated symbol table array (OnuAppSymTbl) according to their own needs. When the function expansion is required, only one script file needs to be modified without modifying other Makefile files or source codes.

[0064] Step 103: The OLT obtains the execution result of the debugging command of the ONU to be debugged through the OMCI GET / GETNEXT message.

[0065] In the specific implementation process of this step, the existing method of OLT obtaining ONU information can be used. Typically, first, OLT obtains the length of the reply information of the ONU to be debugged through a GET message. Then, OLT obtains the result of the debugging command execution temporarily stored in the GPON protocol stack of the ONU to be debugged through a GET NEXT operation.

[0066] Figure 8 The schematic diagram of the structure of the remote debugging system of GPON ONU provided in the embodiment of the present application. Figure 8 As shown, the system comprises:

[0067] OLT, used to send debugging commands to GPON ONU through OMCI messages;

[0068] The GPON ONU is used to send the received debugging command to a designated application corresponding to the debugging command; the debugging command is executed by the application, and the execution result of the debugging command is returned to the OLT.

[0069] The system provided in the embodiment of the present application implements code-level debugging of the ONU through standard OMCI messages on the OLT side, greatly improving the efficiency of fault location and processing.

[0070] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

Claims

1. A remote debugging method for GPON ONU, It is characterized in that include: The optical line terminal OLT sends a debugging command to the optical network unit ONU of the gigabit passive optical network GPON to be debugged through the network unit management control interface OMCI message; The GPON ONU to be debugged sends the received debugging command to the designated application corresponding to the debugging command; the application executes the debugging command and returns the execution result of the debugging command to the OLT; The debugging command includes an application name, a command type, a command name, and parameters required to execute the debugging command; the application is determined by the command type; The command types include: operation functions, variables or system commands.

2. The method according to claim 1, It is characterized in that The OMCI message is an OMCI SET message, and the character string representing the debug command is set in a message contents field.

3. The method according to claim 1, It is characterized in that The debugging command also includes: Command sequence, used to indicate the total number of slices and the sequence of the current slice in the total slices when the current debugging command is slice transmission.

4. The method according to claim 3, It is characterized in that The GPON ONU to be debugged determines that a debug command has been received by the following methods, including: If the message type field in the OMCI message is characterized as SET and the managed entity class field is characterized as remote debugging, it is determined that a debugging instruction is received.

5. The method according to claim 1, It is characterized in that The application program executes the debugging command including: Obtaining the debugging command; If the command type in the debugging command is a variable or an operation function, obtaining a variable pointer or an operation function corresponding to the command name, and setting a value of the variable pointer or executing the operation function; If the command type of the debugging command is a system command, the debugging command is directly executed through a system call.

6. The method according to claim 5, It is characterized in that The obtaining of the debugging command comprises: If the debugging command is split into multiple OMCI messages, the total number of fragments of the debugging command and the order of the current fragment in the total fragments are determined by the command order in the debugging command contained in each OMCI message, and the debugging command is reorganized and then parsed.

7. The method according to claim 5, It is characterized in that The step of obtaining a variable pointer or an operation function corresponding to the command name includes: Using the command name as an index, searching in the symbol table array of the application program to obtain a variable pointer or an operation function corresponding to the command name; The symbol table array is automatically generated when the application is compiled and saved in the data segment of the application binary file after compilation.

8. The method according to claim 7, It is characterized in that The application program performs a compilation operation in the following manner, including: A temporary target file generated by linking all target files of the application; wherein the target file of the application is obtained by compiling and assembling the source files of the application; Extract the name, type and pointer of the specified symbol in the symbol table in the temporary target file, and save them in a source code file in the form of an array, wherein the specified symbol includes at least one of a data segment, a variable of a segment starting with the symbol and a function located in a code segment; Compiling and assembling the source code files to generate target files; The target file is linked with the temporary target file to generate an application binary file.

9. The method according to claim 5, It is characterized in that The method further comprises: temporarily storing the execution result of the debugging command in the GPON protocol stack; The execution result of the debugging command returned to the OLT includes: After receiving the OMCI GET / GETNEXT message sent by the OLT and indicating the execution result of the debugging command for the GPON ONU to be debugged, the execution result temporarily stored in the GPON protocol stack is returned to the OLT.

10. A remote debugging system for GPON ONU, include: OLT, used to send debugging commands to GPON ONU through OMCI messages; The GPON ONU is used to send the received debugging command to the designated application corresponding to the debugging command; the debugging command is executed by the application, and the execution result of the debugging command is returned to the OLT; The debugging command includes an application name, a command type, a command name, and parameters required to execute the debugging command; the application is determined by the command type; The command types include: operation functions, variables or system commands.

Citation Information

Patent Citations

  • ONU (Optical Network Unit) management and control platform of GPON (Gigabit Passive Optical Network) network management system

    CN101764647A

  • System and method of remotely logging in optical network unit

    CN111836137A

  • Method, apparatus and system for processing user identity information in gigabit passive optical network system

    WO2011150612A1

  • Method, apparatus and system for remotely debugging ONU by means of olt

    WO2017054143A1