FTTR network line fault detection and recovery method and system, electronic equipment and medium

By introducing fault detection and recovery methods into the FTTR network, the problem of wrong frames in the GPON network is solved, automatic recovery and stability improvement are achieved, ensuring the high reliability and user experience of the network.

CN119012053APending Publication Date: 2024-11-22SHENZHEN RUIJIAN DIGITAL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411020813.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

GPON network has stability and reliability problems during data transmission, especially the wrong frame problem, which leads to packet loss or wrong frame phenomenon, lacks an effective automatic recovery mechanism, affecting user experience and network stability.

Method used

By introducing fault detection and recovery methods in the FTTR network, OLT periodically sends registered authorization frames to ONU, clears the chip error frame statistics and software hot repair count statistics, and starts the error frame statistics count check timer, and executes according to the count Repair steps, such as hot repair or restart, ensure network stability.

Benefits of technology

It realizes automatic recovery from errors, improves the stability of ONU registration, prevents service outage, reduces maintenance time, and ensures high reliability and stability of the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119012053A_ABST
    Figure CN119012053A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of passive optical network detection, in particular to an FTTR network line fault detection and recovery method and system, electronic equipment and a medium. The network comprises an optical line terminal (OLT) and at least one optical network unit (ONU), and the method comprises the following steps: step 10, the OLT discovers the ONU and enables the ONU to reach a stable state; step 20, the OLT empties the chip error frame statistical value and the software hot repair frequency statistical value corresponding to the ONU, and simultaneously starts an error frame statistical count checking timer for the ONU; and step 30, after the wrong frame statistical count checking timer is overtime, obtaining the wrong frame statistical count corresponding to the ONU from the chip, and executing corresponding repairing steps according to the wrong frame statistical count. The ONU can be automatically recovered from errors, registration stability can be improved, service cutoff is prevented, the ONU is restarted in a planned mode in the operation process, and use of a user is not affected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of passive optical network detection, and in particular to a method, system, electronic equipment and medium for fault detection and recovery of an FTTR network line. Background Art

[0002] With the rapid development of information technology, broadband access technology, especially optical fiber communication technology, has become an important part of modern communication networks. Among them, GPON (Gigabit Passive Optical Network) is a broadband access method based on passive optical network (PON) technology, which can transmit high-speed data to the user end through optical fiber without using any active electronic equipment (such as optical amplifiers or repeaters). As an efficient and low-cost access technology, it is widely used in broadband access scenarios such as FTTH (fiber to the home), FTTB (fiber to the building), and FTTR (fiber to the room) due to its high bandwidth, large coverage and good compatibility, providing high-speed, stable and reliable broadband access services for home users and corporate users. At the same time, GPON technology is also widely used in rural broadband construction, smart cities, distance education, telemedicine and other fields, promoting the development of informatization construction and digital economy.

[0003] The GPON system is mainly composed of optical line terminal (OLT), optical network unit (ONU) and fiber distribution network (ODN). The OLT is located at the operator's central office and is responsible for network access and centralized management; the ONU is deployed at the user end to provide user access functions; and the ODN is responsible for connecting the OLT and ONU and transmitting optical signals.

[0004] However, in practical applications, GPON networks face many challenges, one of which is the stability and reliability of data transmission. Since GPON networks use passive optical distribution networks, any abnormality in the OLT, ONU or optical fiber link may cause interruption or distortion of optical signal transmission, which in turn manifests as packet loss or frame errors. Although modern GPON systems have built-in mechanisms such as forward error correction (FEC) to deal with errors in the transmission process, these error correction functions are still insufficient in the face of complex and changing network environments. Some error frames cannot be effectively corrected, and only error frame indications can be provided, but there is a lack of effective mechanisms for automatic recovery from error states.

[0005] Moreover, the frame error problem not only affects the user experience, but may also lead to instability in the ONU registration process, and even interrupt the flow during network operation, which seriously restricts the stability and reliability of the GPON network. Summary of the invention

[0006] In order to overcome the deficiencies of the prior art, the present invention provides a method, system, electronic device and medium for fault detection and recovery of FTTR network lines, aiming to automatically recover from errors and improve registration stability to prevent service interruption.

[0007] The technical means adopted by the present invention to solve its technical problem is: a fault detection and recovery method for an FTTR network line, the improvement of which lies in that the network includes an optical line terminal OLT and at least one optical network unit ONU, and the method includes: step 10, the OLT discovers the ONU and makes the ONU reach a stable state; step 20, the OLT clears the chip error frame statistics and software hot repair times statistics corresponding to the ONU, and starts an error frame statistics count check timer for the ONU; step 30, after the error frame statistics count check timer times out, the error frame statistics count corresponding to the ONU is obtained from the chip, and corresponding repair steps are performed according to the error frame statistics count.

[0008] Step 10 in the above technical solution includes: the OLT periodically broadcasts a registration authorization frame to each ONU to wait for a response from the ONU; each ONU responds to the registration authorization frame and sends a registration request frame to the OLT within the authorized allocation time to wait for receiving the registration frame sent by the OLT; after the OLT receives the registration request frame sent by the ONU, it allocates a unique ONU ID to each ONU, and sends a registration frame containing the ONU ID to each ONU by broadcasting LLID, thereby establishing an authentication relationship with the OLT and gradually tending to a stable state.

[0009] Step 30 in the above technical solution includes: if the error frame statistical count is greater than 0, checking the number of hot repairs; otherwise, the ONU sends down the service configuration so that the ONU service can be forwarded normally, and starts the working mode error frame statistical count check timer; based on the number of hot repairs not exceeding the upper limit, sending a hot repair message to the corresponding ONU, and the number of software hot repairs is increased by 1; the ONU starts the hot repair mechanism in response to the hot repair message; based on the number of hot repairs exceeding the upper limit, sending a restart message to the corresponding ONU.

[0010] After sending the whole machine restart message to the corresponding ONU in the above technical solution, the method also includes: the ONU receives the reset message sent by the OLT, and executes the corresponding repair steps according to the reset message type; based on the reset message being a hot reset message, the ONU resets the phy and restarts the pl oam module; based on the reset message being a whole machine reset message, the ONU executes the whole machine restart and reset and re-listens for the reset message sent by the OLT.

[0011] After starting the working mode error frame statistics count check timer as described in the above technical solution, the method also includes: after the working mode error frame statistics count check timer times out, obtaining the error frame statistics count from the chip, and performing corresponding repair steps according to the error frame statistics count; if the working mode error frame statistics count is less than the set threshold, the number of software error frames in the working mode is increased by 1, otherwise the count is cleared and the timer is reset; based on the fact that the number of software error frames in the working mode is greater than the setting, a planned reset ONU flag is set, and the planned reset ONU timer is started to perform a planned reset on the ONU.

[0012] After the planned reset ONU timer is started in the above technical solution to perform a planned reset on the ONU, the method further includes: obtaining the current time zone and time through the NTP protocol to determine whether it is within the local rest time; based on the current time zone and time being within the local rest time, obtaining the service flow of the device from the device interface and performing statistics; if the service flow statistics value is lower than the set flow threshold, sending a whole machine reset message to the designated ONU, and then restarting the ONU registration process; otherwise, re-judgment after a delay.

[0013] The setting of the flow threshold in the above technical solution includes: recording and counting the flow in different time periods within a week, and taking the average value of each time period as the set flow threshold.

[0014] The technical means adopted by the present invention to solve its technical problem is: a fault detection and recovery system for an FTTR network line, characterized in that the system comprises: a stable interconnection module, used for the OLT to discover the ONU and make the ONU reach a stable state; a fault detection module, used for the OLT to clear the chip error frame statistics and software hot repair times statistics corresponding to the ONU, and at the same time start the error frame statistics count check timer for the ONU; a fault repair module, used for obtaining the error frame statistics count corresponding to the ONU from the chip after the error frame statistics count check timer times out, and executing corresponding repair steps according to the error frame statistics count.

[0015] The technical means adopted by the present invention to solve its technical problem is an electronic device, characterized in that it includes: at least one processor and at least one memory, wherein program instructions or codes are stored on the memory; the program instructions or codes are loaded and executed by the processor, so that the electronic device implements the FTTR network line fault detection and recovery method as described above.

[0016] The technical means adopted by the present invention to solve its technical problem is: a storage medium on which program instructions or codes are stored, characterized in that the program instructions or codes are loaded and executed by a processor to implement the fault detection and recovery method of the FTTR network line as described above.

[0017] The beneficial effects of the present invention are: it can automatically recover from errors to improve registration stability, prevent service interruption, and restore services without going to the customer site, which is convenient for operation and maintenance. The ONU can be restarted in a planned manner during operation without affecting user use. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 A flow chart of a method for fault detection and recovery of an FTTR network line shown in an embodiment of the present invention;

[0019] Figure 2 A flowchart of step 10 shown in an embodiment of the present invention;

[0020] Figure 3 A flowchart of step 30 shown in an embodiment of the present invention;

[0021] Figure 4 A flow chart of another FTTR network line fault detection and recovery method according to an embodiment of the present invention;

[0022] Figure 5 A flow chart of another FTTR network line fault detection and recovery method according to an embodiment of the present invention;

[0023] Figure 6 A flow chart of another FTTR network line fault detection and recovery method according to an embodiment of the present invention;

[0024] Figure 7 A structural block diagram of a FTTR network line fault detection and recovery system shown in an embodiment of the present invention;

[0025] Figure 8 The present invention is a schematic diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0026] The present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0027] The following will clearly and completely describe the concept, specific structure and technical effects of the present invention in combination with the embodiments and drawings, so as to fully understand the purpose, characteristics and effects of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, other embodiments obtained by technicians in this field without creative work are all within the scope of protection of the present invention. In addition, all the connection / connection relationships involved in the patent do not refer to the direct connection of components, but refer to the formation of a better connection structure by adding or reducing connection accessories according to the specific implementation situation. The various technical features in the invention can be combined interchangeably without conflicting with each other.

[0028] like Figure 1 As shown, the present invention provides a method for fault detection and recovery of an FTTR network line, wherein the network includes an optical line terminal OLT and at least one optical network unit ONU, and the method includes:

[0029] Step 10: The OLT discovers the ONU and enables the ONU to reach a stable state.

[0030] Step 20: The OLT clears the chip error frame statistics and software hot repair times statistics corresponding to the ONU, and starts an error frame statistics count check timer for the ONU.

[0031] The present application monitors error frames in network transmission through the error frame statistics count check timer, and triggers corresponding processing mechanisms when a certain number is reached or specific conditions are met, such as alarm, retransmission or fault recovery, etc. Among them, the timing duration of the error frame statistics count check timer is not fixed, but can be configured as needed.

[0032] In the FTTR system, the specific configuration of the error frame statistics count check timer is affected by the following factors:

[0033] Network performance requirements: Different application scenarios have different requirements for network performance, so the timer configuration will also be different. For example, in an application scenario that requires high reliability, a shorter timing duration may be set to detect and process error frames in a timely manner.

[0034] Device performance: The processing power and resource limitations of the device will also affect the configuration of the timer. If the device has strong processing power, it can process error frames faster, so a shorter timer duration can be set.

[0035] Network topology and protocols: The network topology and the protocols used will also affect the configuration of the timer. Different protocols may have different requirements for the handling of error frames.

[0036] User configuration: Users can configure the timer according to actual needs and network conditions to meet specific performance requirements and monitoring needs.

[0037] Step 30: After the error frame statistics count check timer times out, obtain the error frame statistics count corresponding to the ONU from the chip, and perform corresponding repair steps according to the error frame statistics count.

[0038] Through the above embodiments, OLT can discover and stabilize ONU, ensure that ONU is correctly connected and running in the network, thereby reducing network failures caused by unstable connection and improving the stability and reliability of the overall network; using timers to accurately monitor and detect potential transmission errors, and accurately locating based on error frame statistics technology helps to reduce troubleshooting time and improve maintenance efficiency.

[0039] In one possible implementation, Figure 2 As shown, step 1 includes the following steps:

[0040] Step 101: The OLT periodically broadcasts a registration authorization frame to each ONU to wait for a response from the ONU.

[0041] The destination address of the registration authorization frame is a broadcast LL ID (all Fs), which is used to invite a new ONU to join the network.

[0042] The sending period and authorization size of the registration authorization frame are determined by the GPON network management, taking into account the maximum distance between the ONU and the OLT and the loop transmission delay of the optical fiber. Specifically:

[0043] Ranging process: OLT measures the distance of ONU by sending Ranging Request message to determine the transmission delay between ONU and OLT. After receiving the ranging request, ONU responds with Ranging Response message, which includes the response processing time of ONU. OLT calculates the round trip delay (RTD) and equalization delay (EQD) of ONU based on the sending and arrival time of ranging request and response message.

[0044] Set equalization delay: OLT sends a Ranging time message containing equalization delay (EQD) to ONU. ONU sets the equalization delay of its upstream transmission according to the received EQD value to ensure that ONUs at different distances can send data in the same time window to avoid conflicts. Once an ONU responds, it automatically enters the various steps of ONU joining.

[0045] Step 102: Each ONU sends a registration request frame to the OLT within the authorized allocation time in response to the registration authorization frame, so as to wait for receiving the registration frame sent by the OLT.

[0046] After receiving the registration authorization frame, the new ONU sends a registration request frame to the OLT within the authorized allocation time and waits to receive the registration frame sent by the OLT. If the ONU does not receive the registration frame sent by the OLT after sending the registration request frame for a period of time, it is considered that the registration conflict occurs and the ONU will automatically delay for a certain period of time before retrying.

[0047] Step 103: After receiving the registration request frame sent by the ONU, the OLT allocates a unique ONUID to each ONU, and sends a registration frame containing the ONU ID to each ONU by broadcasting the LL ID, thereby establishing an authentication relationship with the OLT and gradually reaching a stable state.

[0048] In a possible implementation, the OLT further sends a Request Password message to the ONU to request its password, and the ONU reports its password via a Password response message. The OLT verifies the password and decides whether to allow the ONU to access the network.

[0049] After the above steps, the ONU completes the registration, ranging, synchronization and possible authentication process and enters a stable working state. In the stable state, the ONU can normally receive the data sent by the OLT and send uplink data to the OLT according to the time slot allocation.

[0050] Step 30 is the repair process flow on the OLT side, such as Figure 3 As shown, in a possible implementation, step 30 may include the following steps:

[0051] Step 301: If the error frame statistics count is greater than 0, the number of hot repair times is checked; otherwise, the ONU sends service configuration to enable the ONU service to be forwarded normally, and starts the working mode error frame statistics count check timer.

[0052] The working mode error frame statistics count check timer is a monitoring counter under normal service conditions.

[0053] Step 302: Based on the fact that the number of hot repairs does not exceed the upper limit, a hot repair message is sent to the corresponding ONU, and the number of software hot repairs is increased by 1. The ONU starts a hot repair mechanism in response to the hot repair message.

[0054] The hot repair message only restarts the registration process and resets the PON part, which can be completed within seconds, which is faster than resetting the entire machine.

[0055] In an exemplary embodiment, the hotfix message is a private ME ID extended on the basis of the ITU988 standard OMC I message, and its format and fields are defined as follows:

[0056]

[0057] The values ​​of each field are as follows:

[0058] The value range of TC I is 1-65535;

[0059] OPERATION: 3 indicates set operation;

[0060] ME ID: 0xff2d;

[0061] I NSTANCE-ID:0;

[0062] MASK: 0x0200;

[0063] ATTR I BUTE: 1 means hot fix, 2 means restart the whole machine, other values ​​are reserved.

[0064] Step 303: Based on the number of hot repairs exceeding the upper limit, a message for restarting the entire machine is sent to the corresponding ONU.

[0065] Through the above embodiments, the reliability, stability and flexibility of the optical communication network are improved, and the error frame processing and reset mechanism of the ONU are jointly acted on to provide a strong guarantee for the normal operation of the network.

[0066] In one possible implementation, Figure 4 As shown, after step 303, the method further includes:

[0067] Step 304: The ONU receives the reset message sent by the OLT, and executes corresponding repair steps according to the type of the reset message.

[0068] Step 305: Based on the fact that the reset message is a hot reset message, the ONU resets the phy and restarts the pl oam module.

[0069] The PHY (physical layer) is the key part of the ONU responsible for the conversion of optical signals into electrical signals. When receiving a hot reset message, the ONU will first reset its PHY module. This usually means reinitializing the hardware and / or software of the PHY layer to clear possible error states or configurations and ensure that the PHY layer can resume normal operation.

[0070] The PLOAM (Physical Layer Operation, Administration and Maintenance) module is responsible for handling the operation, administration and maintenance tasks related to the physical layer. Restarting the PLOAM module can clear any errors or hang-up states that may exist in the module and ensure that it can correctly respond to the management instructions of the OLT, including subsequent resets or configuration updates.

[0071] Step 306: Based on the reset message being a whole-machine reset message, the ONU performs a whole-machine restart and reset and re-listens for a reset message sent by the OLT.

[0072] In one possible implementation, Figure 5 As shown, after step 301, the method further includes:

[0073] Step 401: After the error frame statistics count check timer of the working mode times out, obtain the error frame statistics count from the chip, and perform corresponding repair steps according to the error frame statistics count.

[0074] Step 402: If the working mode error frame statistics count is less than the set threshold, the number of software error frames in the working mode is increased by 1, otherwise the count is cleared and the timer is reset.

[0075] Step 403: Based on the fact that the number of software error frames in the working mode is greater than a setting, a planned reset ONU flag is set, and a planned reset ONU timer is started to perform a planned reset on the ONU.

[0076] Through the error frame statistics count check timer in the working mode, the system can timely discover the error frame problem in the communication process, and adopt different processing strategies according to the comparison result by comparing the error frame statistics count with the set threshold, so as to avoid frequent triggering of unnecessary reset operations; when the number of software error frames is greater than the set value, the system not only sets the planned reset ONU mark, but also starts the planned reset ONU timer. This precise control of the reset operation avoids service interruption and data loss caused by frequent resets, and also reduces unnecessary hardware resource consumption.

[0077] In one possible implementation, Figure 6 As shown, after step 403, the method includes:

[0078] Step 501: Obtain the current time zone and time through the NTP protocol to determine whether it is within the local rest time.

[0079] The NTP protocol maintains the accuracy of time synchronization by accurately measuring time deviation, compensating for network delay, and adjusting the local clock frequency. During the synchronization process, the NTP client sends a time request message to the NTP server and receives a response message from the server. By comparing the timestamps in the request and response messages, the client can calculate the time deviation and network delay between the client and the server and adjust its own time accordingly.

[0080] Step 502: Based on the current time zone and the time being within the local rest time, the service flow of the device is obtained from the device interface and statistics are performed.

[0081] Step 503: If the service flow statistics value is lower than the set flow threshold, a whole machine reset message is sent to the designated ONU, and a new ONU registration process is performed; otherwise, the judgment is repeated after a delay.

[0082] In an exemplary embodiment, the setting of the flow threshold includes:

[0083] Record the traffic flow in different time periods within a week and make statistics, and take the average value of each time period as the set traffic threshold.

[0084] If the service traffic statistics are lower than the set traffic threshold, it means that the device is in a relatively idle state during the rest period. At this time, sending a whole-device reset message to the specified ONU (optical network unit) can optimize resource usage and avoid resource waste.

[0085] By re-registering the ONU, the normal working state of the equipment can be quickly restored, reducing the service interruption time caused by equipment failure or configuration error.

[0086] It should be understood that, although the various steps in the above-mentioned flowchart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above-mentioned flowchart may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0087] The following is a system embodiment of the present application, which can be used to execute the FTTR network line fault detection and recovery method involved in the present application. For details not disclosed in the system embodiment of the present application, please refer to the method embodiment of the FTTR network line fault detection and recovery method involved in the present application.

[0088] See also Figure 7 In an embodiment of the present application, a fault detection and recovery system 60 for an FTTR network line is provided. The system 60 includes: a stable interconnection module 610, a fault detection module 620, and a fault repair module 630.

[0089] Wherein, the stable interconnection module 610 is used for the OLT to discover the ONU and make the ONU reach a stable state;

[0090] A fault detection module 620 is used for the OLT to clear the chip error frame statistics and software hot repair times statistics corresponding to the ONU, and start the error frame statistics count check timer for the ONU;

[0091] The fault repair module 630 is used to obtain the error frame statistics count corresponding to the ONU from the chip after the error frame statistics count check timer times out, and perform corresponding repair steps according to the error frame statistics count.

[0092] It should be noted that the FTTR network line fault detection and recovery system provided in the above embodiment is only illustrated by the division of the above functional modules when performing FTTR network line fault detection and recovery. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the FTTR network line fault detection and recovery system will be divided into different functional modules to complete all or part of the functions described above. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of the above modules.

[0093] In addition, the method embodiments of the FTTR network line fault detection and recovery system and the FTTR network line fault detection and recovery method provided in the above embodiments belong to the same concept, and the specific manner in which each module performs operations has been described in detail in the method embodiments and will not be repeated here.

[0094] See also Figure 8 , an electronic device 4000 is provided in an embodiment of the present application.

[0095] exist Figure 8 In the embodiment, the data interaction between the processor 4001 and the memory 4003 can be realized through at least one communication bus 4002. The communication bus 4002 may include a path for transmitting data between the processor 4001 and the memory 4003. The communication bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The communication bus 4002 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0096] Optionally, the electronic device 4000 may further include a transceiver 4004, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present application.

[0097] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc. The memory 4003 can be a ROM (Read On Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read On Memory), a CD-ROM (Compact Disk Read On Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program instructions or codes in the form of instructions or data structures and can be accessed by the electronic device 400, but is not limited to this.

[0098] The memory 4003 stores program instructions or codes, and the processor 4001 can read the program instructions or codes stored in the memory 4003 through the communication bus 4002 .

[0099] When the program instructions or codes are executed by the processor 4001, the fault detection and recovery methods of the FTTR network lines in the above-mentioned embodiments are implemented.

[0100] In addition, an embodiment of the present application provides a storage medium on which program instructions or codes are stored. The program instructions or codes are loaded and executed by a processor to implement the FTTR network line fault detection and recovery method as described above.

[0101] In an embodiment of the present application, a computer program product is provided. The computer program product includes program instructions or codes. The program instructions or codes are stored in a storage medium. A processor of an electronic device reads the program instructions or codes from the storage medium, loads and executes the program instructions or codes, so that the electronic device implements the FTTR network line fault detection and recovery method as described above.

[0102] The above is a specific description of the preferred implementation of the present invention, but the invention is not limited to the embodiments. Those skilled in the art can make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.

Claims

1. A method for fault detection and recovery of FTTR network lines, characterized in that: The network includes an optical line terminal OLT and at least one optical network unit ONU, and the method includes: Step 10, the OLT discovers the ONU and enables the ONU to reach a stable state; Step 20, the OLT clears the chip error frame statistics and software hot repair times statistics corresponding to the ONU, and starts the error frame statistics count check timer for the ONU; Step 30: After the error frame statistics count check timer times out, obtain the error frame statistics count corresponding to the ONU from the chip, and perform corresponding repair steps according to the error frame statistics count.

2. The method for fault detection and recovery of FTTR network line according to claim 1, characterized in that: The step 10 comprises: The OLT periodically broadcasts a registration authorization frame to each ONU to wait for a response from the ONU; Each ONU sends a registration request frame to the ONU in response to the registration authorization frame within the authorized allocation time to wait for receiving the registration frame sent by the ONU; After receiving the registration request frame sent by the ONU, the OLT allocates a unique ONU ID to each ONU, and sends a registration frame containing the ONU ID to each ONU by broadcasting LLID, thereby establishing an authentication relationship with the OLT and gradually tending to a stable state.

3. The method for fault detection and recovery of FTTR network line according to claim 1, characterized in that: The step 30 comprises: If the error frame statistics count is greater than 0, the number of hot repairs is checked; otherwise, the ONU sends service configuration so that the ONU service can be forwarded normally, and starts the working mode error frame statistics count check timer; Based on the fact that the number of hot repairs does not exceed the upper limit, a hot repair message is sent to the corresponding ONU, and the number of software hot repairs is increased by 1, and the ONU starts a hot repair mechanism in response to the hot repair message; If the number of hot repairs exceeds the upper limit, a message for restarting the entire machine is sent to the corresponding ONU.

4. The method for fault detection and recovery of FTTR network line according to claim 3, characterized in that: After sending the restart message to the corresponding ONU, the method further includes: The ONU receives a reset message sent by the OLT, and executes a corresponding repair step according to the type of the reset message; Based on the reset message being a hot reset message, the ONU resets the phy and restarts the ploam module; Based on the fact that the reset message is a whole-machine reset message, the ONU performs a whole-machine restart and reset and re-listens for the reset message sent by the OLT.

5. The method for fault detection and recovery of FTTR network line according to claim 3, characterized in that: After starting the working mode error frame statistics count check timer, the method further includes: After the error frame statistics count check timer of the working mode times out, obtaining the error frame statistics count from the chip, and performing corresponding repair steps according to the error frame statistics count; If the error frame statistics count in the working mode is less than the set threshold, the number of software error frames in the working mode is increased by 1, otherwise the count is cleared and the timer is reset; Based on the fact that the number of software error frames in the working mode is greater than the setting, a planned reset ONU mark is set, and a planned reset ONU timer is started to perform a planned reset on the ONU.

6. The method for fault detection and recovery of FTTR network line according to claim 5, characterized in that: After the planned reset ONU timer is started to reset the ONU, the method further comprises: Obtain the current time zone and time through the NTP protocol to determine whether it is within the local rest time; Based on the current time zone and the time being within the local rest time, obtain the device service traffic from the device interface and perform statistics; If the service flow statistics are lower than the set flow threshold, a whole machine reset message is sent to the designated ONU, and a new ONU registration process is performed; otherwise, the judgment is repeated after a delay.

7. The method for fault detection and recovery of FTTR network line according to claim 6, characterized in that: The setting of the flow threshold includes: Record the traffic flow in different time periods within a week and make statistics, and take the average value of each time period as the set traffic threshold.

8. A fault detection and recovery system for FTTR network lines, characterized in that: The system comprises: A stable interconnection module, used for the OLT to discover the ONU and enable the ONU to reach a stable state; A fault detection module is used for the OLT to clear the chip error frame statistics and software hot repair times statistics corresponding to the ONU, and start the error frame statistics count check timer for the ONU; The fault repair module is used to obtain the error frame statistics count corresponding to the ONU from the chip after the error frame statistics count check timer times out, and perform corresponding repair steps according to the error frame statistics count.

9. An electronic device, characterized in that: include: at least one processor, at least one memory, wherein: The memory stores program instructions or codes; The program instructions or codes are loaded and executed by the processor, so that the electronic device implements the fault detection and recovery method for the FTTR network line according to any one of claims 1 to 7.

10. A storage medium having program instructions or codes stored thereon, characterized in that: The program instructions or codes are loaded and executed by a processor to implement the fault detection and recovery method for an FTTR network line according to any one of claims 1 to 7.