Method, device, system and storage medium for measuring link status

By sending instructions and measurement windows in a passive optical network, the optical line terminal obtains the signal quality of the optical network unit, solving the problem of inaccurate detection of backup link status, realizing normal transmission of services after link switching, and improving measurement accuracy and efficiency.

CN115243122BActive Publication Date: 2025-08-08HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110444046.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-23
Publication Date
2025-08-08
Estimated Expiration
2041-04-23

AI Technical Summary

Technical Problem

In passive optical networks, when the backup link cannot meet the optical power requirements, some optical network units may not be online after link switching, and the existing technology cannot effectively detect the backup link status, affecting the normal progress of services.

Method used

By sending indication information in a passive optical network to instruct the optical network unit to perform a measurement window, the optical line terminal acquires signal quality, determines the backbone link status based on the signal quality of each optical network unit, and uses dual channels to transmit the measurement signal and service signals to ensure that the service is carried out normally after link switching.

Benefits of technology

It improves the accuracy and efficiency of the measurement of backbone link status, ensures that the service can be transmitted normally after link switching, and avoids service interruptions caused by inaccurate link status detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115243122B_ABST
    Figure CN115243122B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, system, and storage medium for measuring link status, which belongs to the field of communications. The method includes: a first OLT sends first indication information to a first ONU via a first port, the first ONU being one of at least one ONU included in a PON, and the first indication information is used to indicate a measurement window for measuring the first ONU. The first OLT obtains the signal quality corresponding to the first ONU, where the signal quality is the signal quality received by a second port on a second OLT from a first PON channel within the measurement window, and the first PON channel is a channel carried on the link between the second port and the first ONU. The first OLT determines the status of a trunk link based on the signal quality corresponding to each ONU in the PON, where the trunk link is the common portion of the link from the second port to each ONU. The present application can improve the accuracy of measuring the status of the trunk link.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to a method, device, system, and storage medium for measuring link status. Background Art

[0002] A passive optical network (PON) includes an optical line terminal (OLT), an optical splitter, and multiple optical network units (ONUs). The OLT includes a primary port and a backup port. The primary port communicates with the optical splitter through a first trunk link, and the backup port communicates with the optical splitter through a second trunk link. The optical splitter also communicates with each ONU.

[0003] The OLT uses the primary port to communicate with the ONU on the primary link. If the primary link fails, the OLT uses the backup port to communicate with the ONU on the backup link. If the backup link fails to meet optical power requirements, switching from the primary link to the backup link may cause some ONUs to be unable to go online. Therefore, a detection method is urgently needed to monitor the status of the backup link to ensure normal service after the link switchover. Summary of the Invention

[0004] This application provides a method, device, system, and storage medium for measuring link status to ensure that services can continue normally after link switching. The technical solution is as follows:

[0005] In a first aspect, the present application provides a method for measuring link status. In the method, a passive optical network (PON) includes a first optical line terminal (OLT). The first OLT includes a first port. A link between the second port and a first optical network unit (ONU) carries a first PON channel and a second PON channel. The first ONU is one of at least one ONU included in the PON. The first PON channel is used to transmit a measurement signal, and the second PON channel is used to transmit a service signal. The optical wavelength corresponding to the measurement signal and the optical wavelength corresponding to the service signal are different. The first OLT sends first indication information to the first ONU via the first port. The first indication information indicates a measurement window for measuring the first ONU. The first ONU transmits the measurement signal on the first PON channel within the measurement window. The first OLT obtains the quality of the signal received by the second port within the measurement window to obtain the signal quality corresponding to the first ONU. The signal received by the second port includes the measurement signal transmitted by the first ONU. The first OLT determines the status of a trunk link based on the signal quality corresponding to each ONU in the PON. The trunk link is the common portion of the link from the second port to each ONU.

[0006] Because the first OLT sends first indication information to the first ONU via the first port, indicating a measurement window for measuring the first ONU, the first ONU transmits a measurement signal on the first PON channel within this measurement window. This allows the second OLT to measure the signal quality received by the second port within this measurement window and obtain the corresponding signal quality of the first ONU. By repeating the above process, the corresponding signal quality of each ONU in the PON can be obtained. Based on the corresponding signal quality of each ONU, the status of the backbone link can be accurately determined. Only when the backbone link is in a normal state will services be switched to this backbone link, allowing normal service transmission on this backbone link. This link status detection method ensures that services can continue normally after link switching.

[0007] Furthermore, because the backbone link status is determined based on the signal quality corresponding to each ONU, the accuracy of backbone link status measurement is improved. Furthermore, because a measurement window is provided for the first ONU, during which the signal quality corresponding to the first ONU is measured, the signal quality corresponding to the first ONU can be measured in a relatively short period of time, and the duration of the measurement window can be set relatively short. Therefore, although a measurement window is provided for each ONU to obtain the signal quality corresponding to each ONU within its corresponding measurement window, the total duration of the measurement window corresponding to each ONU is relatively short, thereby improving the efficiency of backbone link status measurement. The link between the second port and the first ONU carries a first PON channel and a second PON channel. The first PON channel is used to transmit measurement signals, and the second PON channel is used to transmit service signals. Dual channels are used to transmit measurement signals and service signals. This ensures that while measuring the link status, service transmission between the OLT and the ONUs in the PON is not affected.

[0008] In a possible implementation, the first indication information includes at least one of a start time of the measurement window and a duration of the measurement window, so that the first ONU can quickly determine the measurement window.

[0009] In another possible implementation, the first port is a port on a first OLT, the second port is a port on a second OLT, the first OLT and the second OLT are two different OLT devices, and the first OLT sends first indication information to the second OLT. The first indication information is also used to instruct the second OLT to obtain the quality of a signal received by the second port from the first PON channel within a measurement window. This ensures that the second OLT can determine the measurement window and measure the signal quality corresponding to the first ONU within the measurement window, thereby ensuring that the backbone link status can be successfully measured in a dual-homing protection network.

[0010] In another possible implementation, the first OLT receives measurement information sent by the second OLT, where the measurement information includes the signal quality corresponding to the first ONU, so that the first OLT obtains the signal quality corresponding to each ONU and measures the status of the backbone link based on the signal quality corresponding to each ONU.

[0011] In another possible implementation, the first port and the second port are two different ports on the first OLT.

[0012] In another possible implementation, the measurement window includes at least one sending period, each sending period includes a first time period and a sending window corresponding to each ONU. The sending window corresponding to the first ONU is a window in which the first ONU sends operation and maintenance services to the first OLT. The first indication information is used to instruct the first ONU to send the measurement signal during the first time period. In this way, each ONU can send operation and maintenance services within its corresponding sending window, thereby avoiding impact on the operation and maintenance services.

[0013] In another possible implementation, the signal quality corresponding to the first ONU includes at least one received signal strength indicator (RSSI), where the at least one RSSI is the RSSI of a signal received by the second port within the measurement window. Because RSSI signals are relatively easy to measure, the status of the backbone link can be more accurately measured based on the RSSI corresponding to each ONU.

[0014] In a second aspect, the present application provides a method for measuring link status. In the method, a passive optical network (PON) includes a first optical line terminal (OLT) and a second OLT. The first OLT includes a first port, the second OLT includes a second port, and the link between the second port and a first optical network unit (ONU) carries a first PON channel and a second PON channel. The first ONU is one of at least one ONU included in the PON. The first PON channel is used to transmit a measurement signal, and the second PON channel is used to transmit a service signal. The optical wavelength corresponding to the measurement signal is different from the optical wavelength corresponding to the service signal. The first OLT sends first indication information to the first ONU and the second OLT, the first indication information being used to indicate a measurement window for measuring the first ONU. The second OLT receives the first indication information and measures the signal received by the second port from the first PON channel within the measurement window to obtain the signal quality corresponding to the first ONU. The signal received by the second port includes the measurement signal sent by the first ONU within the measurement window. The second OLT sends measurement information to the first OLT, where the measurement information includes the signal quality corresponding to each ONU in the PON, so that the first OLT determines the quality of the trunk link based on the signal quality corresponding to each ONU. The trunk link is the common part of the link from the second port to each ONU.

[0015] Because the first OLT sends first indication information to the second OLT and the first ONU, indicating a measurement window for measuring the first ONU, the first ONU will transmit a signal on the first PON channel within this measurement window. This allows the second OLT to measure the signal quality received by the second port within this measurement window and obtain the corresponding signal quality of the first ONU. By repeating the above process, the corresponding signal quality of each ONU in the PON can be obtained. The corresponding signal quality of each ONU is sent to the first OLT. Based on the corresponding signal quality of each ONU, the status of the backbone link can be accurately determined. Only when the backbone link is in a normal state will the service be switched to the backbone link, allowing normal service transmission on the backbone link. This link status detection method ensures that services can continue normally after link switching.

[0016] Furthermore, because the backbone link status is determined based on the signal quality corresponding to each ONU, the accuracy of measuring the backbone link status is improved. Furthermore, because a measurement window is provided for the first ONU, during which the signal quality corresponding to the first ONU is measured, the signal quality corresponding to the first ONU can be measured in a relatively short period of time, and the duration of the measurement window can be set relatively short. Therefore, although a measurement window is provided for each ONU to obtain the signal quality corresponding to each ONU within the measurement window corresponding to each ONU, the total duration of the measurement window corresponding to each ONU is relatively short, thereby improving the efficiency of measuring the backbone link status. The link between the second port and the first ONU carries a first PON channel and a second PON channel. The first PON channel is used to transmit the measurement signal, and the second PON channel is used to transmit the service signal. The dual channels are used to transmit the measurement signal and the service signal. This ensures that while measuring the link status, service transmission between the OLT and the ONUs in the PON is not affected.

[0017] In a possible implementation, the first indication information includes at least one of a start time of the measurement window and a duration of the measurement window, so that the second OLT and the first ONU can quickly determine the measurement window.

[0018] In another possible implementation, the measurement window includes at least one communication cycle, each communication cycle includes a first time period and a sending window corresponding to each ONU. The sending window corresponding to the first ONU is a window in which the first ONU sends operation and maintenance services to the first OLT. The first indication information is used to instruct the first ONU to send a measurement signal during the first time period. In this way, each ONU can send operation and maintenance services within its corresponding sending window, thereby avoiding impact on the operation and maintenance services.

[0019] In another possible implementation, the signal quality corresponding to the first ONU includes at least one received signal strength indicator (RSSI), where the at least one RSSI is the RSSI of a signal received by the second port within the measurement window. Because RSSI signals are relatively easy to measure, the status of the backbone link can be more accurately measured based on the RSSI corresponding to each ONU.

[0020] In a third aspect, the present application provides an apparatus for measuring link status, configured to execute the method in the first aspect or any possible implementation of the first aspect. Specifically, the apparatus includes a unit for executing the method in the first aspect or any possible implementation of the first aspect.

[0021] In a fourth aspect, the present application provides an apparatus for measuring link status, configured to execute the method in the second aspect or any possible implementation of the second aspect. Specifically, the apparatus includes a unit for executing the method in the second aspect or any possible implementation of the second aspect.

[0022] In a fifth aspect, the present application provides an apparatus for measuring link status, the apparatus comprising a processor and a memory. The processor and the memory may be connected via an internal connection. The memory is configured to store a program, and the processor is configured to execute the program in the memory, so that the apparatus performs the method of the first aspect or any possible implementation of the first aspect.

[0023] In a sixth aspect, the present application provides an apparatus for measuring link status, the apparatus comprising a processor and a memory. The processor and the memory may be connected via an internal connection. The memory is configured to store a program, and the processor is configured to execute the program in the memory, so that the apparatus performs the method of the second aspect or any possible implementation of the second aspect.

[0024] In the seventh aspect, the present application provides a computer program product, which includes a computer program stored in a computer-readable storage medium, and the computer program is loaded by a processor to implement the above-mentioned first aspect, second aspect, any possible implementation of the first aspect or any possible implementation method of the second aspect.

[0025] In an eighth aspect, the present application provides a computer-readable storage medium for storing a computer program, which is loaded by a processor to execute the method of the above-mentioned first aspect, second aspect, any possible implementation of the first aspect, or any possible implementation of the second aspect.

[0026] In the ninth aspect, the present application provides a chip comprising a memory and a processor, the memory being used to store computer instructions, and the processor being used to call and run the computer instructions from the memory to execute the method of the first aspect, the second aspect, any possible implementation of the first aspect, or any possible implementation of the second aspect.

[0027] In a tenth aspect, the present application provides a system for measuring link status, the system comprising the apparatus described in the third aspect and the apparatus described in the fourth aspect; or, the system comprising the apparatus described in the fifth aspect and the apparatus described in the sixth aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 This is a schematic diagram of a PON architecture for implementing single-homing protection technology provided by an embodiment of the present application;

[0029] Figure 2 This is a schematic diagram of a PON architecture for implementing dual-homing protection technology provided by an embodiment of the present application;

[0030] Figure 3 This is a flow chart of a method for measuring link status provided by an embodiment of the present application;

[0031] Figure 4 This is a flow chart of another method for measuring link status provided by an embodiment of the present application;

[0032] Figure 5 This is a schematic diagram of the structure of a device for measuring link status provided in an embodiment of the present application;

[0033] Figure 6 1 is a schematic diagram of the structure of another device for measuring link status provided in an embodiment of the present application;

[0034] Figure 7 1 is a schematic diagram of the structure of another device for measuring link status provided in an embodiment of the present application;

[0035] Figure 8 1 is a schematic diagram of the structure of another device for measuring link status provided in an embodiment of the present application;

[0036] Figure 9 This is a schematic diagram of the system structure for measuring link status provided in an embodiment of the present application. DETAILED DESCRIPTION

[0037] The embodiments of the present application will be described in further detail below with reference to the accompanying drawings.

[0038] See also Figure 1A PON is a communication network that uses optical signals as the carrier for information transmission. It is a bidirectional optical access network with a point-to-multipoint architecture. A PON consists of an optical transmission line (OLT) at the central office, an optical distribution network (ODN), and optical network units (ONUs) at the user end. The OLT communicates with each ONU through the ODN. In the downstream direction, signals sent by the OLT reach each ONU via the ODN. For each ONU, signals sent by that ONU reach the OLT via the ODN.

[0039] The OLT includes ports. These ports are connected to the ODN via trunk links. The ODN is connected to each ONU via branch links. For any ONU, the link between the OLT port and the ONU includes the trunk link between the OLT port and the ODN and the branch link between the ODN and the ONU.

[0040] The link between the port on the OLT and the ONU is used to carry a PON channel. The PON channel is a channel established between the OLT and the ONU on the link. The OLT sends downlink signals to the ONU through the PON channel, and the ONU sends uplink signals to the OLT through the PON channel.

[0041] In some embodiments, for the link between the port on the OLT and the ONU, the PON channel carried on the link includes two types of PON channels, the two types of PON channels being a first type PON channel and a second type PON channel, and the optical wavelength corresponding to the signal that can be transmitted on the first type PON channel is different from the optical wavelength corresponding to the signal that can be transmitted on the second type PON channel.

[0042] The optical wavelengths corresponding to signals capable of being transmitted on the first type PON channel include an optical wavelength corresponding to a first upstream signal and an optical wavelength corresponding to a first downstream signal, where the optical wavelength corresponding to the first upstream signal and the optical wavelength corresponding to the first downstream signal are two different optical signal wavelengths. The optical wavelengths corresponding to signals capable of being transmitted on the second type PON channel include an optical wavelength corresponding to a second upstream signal and an optical wavelength corresponding to a second downstream signal, where the optical wavelength corresponding to the second upstream signal and the optical wavelength corresponding to the second downstream signal are two different optical signal wavelengths.

[0043] That the optical wavelength corresponding to the signal that can be transmitted on the first type PON channel is different from the optical wavelength corresponding to the signal that can be transmitted on the second type PON channel means that: the optical wavelength corresponding to the first upstream signal that can be transmitted on the first type PON channel is different from the optical wavelength corresponding to the second upstream signal that can be transmitted on the second type PON channel, and the optical wavelength corresponding to the first downstream signal that can be transmitted on the first type PON channel is different from the optical wavelength corresponding to the second downstream signal that can be transmitted on the second type PON channel.

[0044] The first type of PON channel is used to transmit signals for operation and maintenance services, and the second type of PON channel is used to transmit signals for data services. For example, the first type of PON channel may be a gigabit-capable passive optical network (GPON) channel, and the optical wavelength corresponding to the first uplink signal that can be transmitted on the GPON channel may be equal to 1270 nm, and the optical wavelength corresponding to the first downlink signal may be equal to 1577 nm, or the optical wavelength corresponding to the first uplink signal that can be transmitted on the GPON channel may be equal to 1577 nm, and the optical wavelength corresponding to the first downlink signal may be equal to 1270 nm. The second type of PON channel may be a 10G symmetrical passive optical network (XGS-PON) channel, and the optical wavelength corresponding to the first uplink signal that can be transmitted on the XGS-PON channel may be equal to 1310 nm, and the optical wavelength corresponding to the first downlink signal may be equal to 1490 nm, or the optical wavelength corresponding to the first uplink signal that can be transmitted on the XGS-PON channel may be equal to 1490 nm, and the optical wavelength corresponding to the first downlink signal may be equal to 1310 nm.

[0045] In some embodiments, the ODN includes one or more optical splitters. The trunk link and branch link include optical fibers, etc. The PON channel is a logical channel.

[0046] PON protection technologies include single-homing protection technology and dual-homing protection technology.

[0047] See also Figure 1 The PON architecture 100 implementing the single-home protection technology shown in the figure includes an OLT, which includes two ports, namely a first port and a second port. The first port is connected to the ODN through a first trunk link, and the second port is connected to the ODN through a second trunk link.

[0048] For the first and second ports on the OLT, one port is the primary port and the other is the backup port. When the trunk link connected to the primary port is normal, the OLT sends services to each ONU or receives services from each ONU through the primary port. If the trunk link connected to the primary port fails, the OLT switches services to the backup port. That is, when the trunk link connected to the primary port fails, the OLT sends services to each ONU or receives services from each ONU through the backup port.

[0049] When the OLT uses the primary port to transmit services to each ONU, it also measures the quality of the trunk link connected to the backup port. If it detects a fault in the trunk link to the backup port, it can notify the administrator for repair. If the trunk link connected to the primary port fails, the OLT switches services to the backup port. The OLT also measures the quality of the trunk link to the primary port and switches services to the primary port if it detects that the trunk link to the primary port has returned to normal.

[0050] For ease of explanation, the link between the first port of any ONU and the ONU is referred to as the first link. The first link includes the first trunk link between the first port and the ODN and the branch link between the ODN and the ONU. Furthermore, the link between the second port and the ONU is referred to as the second link. The second link includes the second trunk link between the second port and the ODN and the branch link between the ODN and the ONU. The branch link between the ODN and the ONU is the common branch link of the first link and the second link.

[0051] In some embodiments, the second link between the second port and the ONU carries two types of PON channels, namely, a first PON channel and a second PON channel. The first link between the first port and the ONU carries two types of PON channels, namely, a third PON channel and a fourth PON channel.

[0052] The third PON channel carried on the first link and the first PON channel carried on the second link are of the same type, both being first-type PON channels. In other words, the optical wavelength corresponding to the signal transmitted on the first PON channel and the optical wavelength corresponding to the signal transmitted on the third PON channel are the same for the first PON channel and the second PON channel, and both are used to transmit operation and maintenance service signals.

[0053] The second PON channel on the second link and the fourth PON channel on the first link are of the same type, both being second-type PON channels. That is, for the fourth PON channel carried on the second link and the second PON channel carried on the first link, the optical wavelength corresponding to the signal that can be transmitted on the fourth PON channel is the same as the optical wavelength corresponding to the signal that can be transmitted on the second PON channel, and both are used to transmit data service signals. However, the optical wavelength corresponding to the signal that can be transmitted on the third PON channel is different from the optical wavelength corresponding to the signal that can be transmitted on the fourth PON channel, and the optical wavelength corresponding to the signal that can be transmitted on the first PON channel is different from the optical wavelength corresponding to the signal that can be transmitted on the second PON channel.

[0054] See also Figure 2 The PON architecture 200 implementing the dual-homing protection technology is shown. The PON architecture 200 implementing the dual-homing protection technology includes two OLTs, namely a first OLT and a second OLT. The first OLT includes a first port, and the second OLT includes a second port. The first port is connected to the ODN through a first trunk link, and the second port is connected to the ODN through a second trunk link.

[0055] For the first and second OLTs, one OLT is the active OLT, and its ports are active ports. The other OLT is the standby OLT, and its ports are standby ports. When the trunk link connected to the active port on the active OLT is normal, the active OLT sends services to or receives services from each ONU through the active port. If the trunk link connected to the active port on the active OLT fails, the active OLT switches services to the standby port on the standby OLT. That is, if the trunk link connected to the active port on the active OLT fails, the standby OLT sends services to or receives services from each ONU through the standby port.

[0056] When the active OLT uses the active port to transmit services to each ONU, the quality of the trunk link connected to the standby port is measured. When a fault is detected in the trunk link connected to the standby port, the administrator can be notified to perform maintenance.

[0057] When the trunk link connected to the primary port on the active OLT fails, the service is switched to the backup interface on the backup OLT, and the quality of the trunk link connected to the primary port is measured. When the trunk link connected to the primary port is measured to be restored to normal, the service is switched to the primary interface.

[0058] For ease of explanation, for any ONU, the link between the first port on the first OLT and the ONU is referred to as the first link. The first link includes the first trunk link between the first port on the first OLT and the ODN, and the branch link between the ODN and the ONU. The link between the second port on the second OLT and the ONU is referred to as the second link. The second link includes the second trunk link between the second port on the second OLT and the ODN, and the branch link between the ODN and the ONU. The branch link between the ODN and the ONU is the common branch link of the first link and the second link.

[0059] In some embodiments, the second link between the second port on the second OLT and the ONU carries two types of PON channels, namely, a first PON channel and a second PON channel. The first link between the first port on the first OLT and the ONU carries two types of PON channels, namely, a third PON channel and a fourth PON channel.

[0060] The third PON channel carried on the first link and the first PON channel carried on the second link are of the same type, both being first-type PON channels. In other words, the optical wavelength corresponding to the signal transmitted on the first PON channel and the optical wavelength corresponding to the signal transmitted on the third PON channel are the same for the first PON channel and the second PON channel, and both are used to transmit operation and maintenance service signals.

[0061] The second PON channel on the second link and the fourth PON channel on the first link are of the same type, both being second-type PON channels. That is, for the fourth PON channel carried on the second link and the second PON channel carried on the first link, the optical wavelength corresponding to the signal that can be transmitted on the fourth PON channel is the same as the optical wavelength corresponding to the signal that can be transmitted on the second PON channel, and both are used to transmit data service signals. However, the optical wavelength corresponding to the signal that can be transmitted on the third PON channel is different from the optical wavelength corresponding to the signal that can be transmitted on the fourth PON channel, and the optical wavelength corresponding to the signal that can be transmitted on the first PON channel is different from the optical wavelength corresponding to the signal that can be transmitted on the second PON channel.

[0062] In either the network architecture 100 or the network architecture 200, when using any one of the first and second ports to transmit services, the port has the following characteristics: the port can send signals to any ONU and the port can receive signals sent by any ONU. The other port has the following characteristics: the other port cannot send signals to any ONU but can receive signals sent by any ONU.

[0063] In some embodiments, for the first port and any ONU, the link between the first port and the ONU carries two PON channels capable of transmitting signals at different optical wavelengths. The link between the second port and the ONU also carries two PON channels capable of transmitting signals at different optical wavelengths.

[0064] See also Figure 3 The embodiment of the present application provides a method 300 for measuring link status, which is applied to Figure 1 The PON architecture 100 shown is used to implement single-homing protection technology. For the OLT in the PON architecture 100, it is assumed that the first port on the OLT is the port currently used by the OLT to transmit services to each ONU in the PON 100. That is, the OLT sends services to each ONU or receives services sent by each ONU through the first port. The method 300 includes:

[0065] Step 301: The OLT sends first indication information to a first ONU through a first port. The first indication information is used to indicate a measurement window for measuring the first ONU. The first ONU is any ONU in a PON.

[0066] In some embodiments, the first indication information is used to indicate a measurement window for measuring the first ONU, including: the first indication information is used to indicate the measurement window and instruct the first ONU to send a measurement signal within the measurement window.

[0067] The OLT includes a first port and a second port. The first port is the port currently used to transmit services on the OLT. That is, the OLT transmits services to and from the ONUs in the PON through the first port. The first port has the following characteristics: it can send signals to and receive signals from the ONUs in the PON. The second port has the following characteristics: it can receive signals from the ONUs in the PON but cannot send signals to the ONUs in the PON.

[0068] The first port may be an active port on the OLT, and the second port may be a backup port on the OLT; or the first port may be a backup port on the OLT, and the second port may be an active port on the OLT.

[0069] For any ONU in the PON, that is, for the first ONU,

[0070] The first link between the first port and the first ONU carries the third PON channel and the fourth PON channel, and the second link between the second port and the first ONU carries the first PON channel and the second PON channel.

[0071] The third PON channel and the first PON channel are both Type 1 PON channels. Therefore, the OLT sends operation and maintenance services to the ONUs in the PON via the first port on the third PON channel. When the ONUs in the PON send operation and maintenance services to the OLT, the OLT receives the services from the ONUs in the PON via the first port on the third PON channel. Simultaneously, the second port can also receive the services from the ONUs in the PON via the first PON channel.

[0072] The second and fourth PON channels are both Type II PON channels. Therefore, the OLT transmits data services to the ONUs in the PON via the second port on the fourth PON channel. When the ONUs in the PON transmit data services to the OLT, the OLT receives the data services sent by the ONUs in the PON via the first port on the fourth PON channel. Simultaneously, the second port can receive data services sent by the ONUs in the PON via the second PON channel.

[0073] In some embodiments, the first indication information is used to instruct the first ONU to send the measurement signal within the measurement window, including: the first indication information is used to instruct the first ONU to send the measurement signal within the measurement window through a first type PON channel. The first type PON channel includes the first PON channel and the third PON channel.

[0074] In step 301, the OLT sends first indication information to the first ONU through the first port on the third PON channel or on the fourth PON channel.

[0075] In some embodiments, the first indication information includes one or more of the start time and duration of the measurement window. Alternatively, the first indication information may not include the start time and duration of the measurement window. In other words, the first indication information has the following four situations:

[0076] First case: the first indication information includes the start time and duration of the measurement window.

[0077] Case 2: The first indication information includes the start time of the measurement window. In the second case, both the OLT and the first ONU include the duration of the measurement window. This duration can be a duration agreed upon in advance between the OLT and the first ONU, or a duration configured in advance by a technician for the OLT and the first ONU, or a duration configured in advance by a control device for the OLT and the first ONU.

[0078] Case 3: The first indication information includes the duration of the measurement window. In the case 3, the time difference between the start time of the measurement window and the time when the first ONU receives the first indication information is a specified time difference value, which is greater than or equal to 0.

[0079] Case 4: The first indication information does not include the start time and duration of the measurement window. In the fourth case, the time difference between the start time of the measurement window and the time when the first ONU receives the first indication information is a specified time difference value, and the specified time difference value is greater than or equal to 0. The OLT and the first ONU both include the duration of the measurement window. This duration can be a duration agreed upon in advance by the OLT and the first ONU, or a duration configured in advance by the OLT and the first ONU from a technician, or a duration configured in advance by the OLT and the first ONU from a control device, etc.

[0080] In some embodiments, the time length of the measurement window is a specified time length or a time length configured by the OLT itself.

[0081] In some embodiments, the measurement window has a duration of several seconds or tens of seconds. For example, the measurement window has a duration of 3 seconds, 5 seconds, 8 seconds, 10 seconds, 20 seconds, or 30 seconds. This allows sufficient time within the measurement window to measure the first ONU, thereby improving the accuracy of measuring the first ONU.

[0082] In some embodiments, the measurement windows are divided into two categories, which are as follows:

[0083] A first type measurement window, within which only the first ONU is allowed to send signals to the OLT on a first type PON channel, and other ONUs in the PON except the first ONU are not allowed to send signals to the OLT.

[0084] Since only the first ONU sends signals on the first type PON channel within the measurement window, all signals received by the OLT within the measurement window are sent by the first ONU, thereby improving link measurement accuracy.

[0085] The second type measurement window includes at least one sending cycle, each sending cycle includes a first time period and a sending window corresponding to each ONU in the PON, the sending window corresponding to the first ONU is a window for the first ONU to send operation and maintenance services to the OLT, and the first indication information is used to instruct the first ONU to send a signal in the first time period.

[0086] For example, assume that the measurement window includes 100 transmission cycles, each transmission cycle has a duration of 125 microseconds, the PON includes 10 ONUs, and the duration of the transmission window corresponding to each ONU is 2 microseconds. Therefore, a transmission cycle includes 10 transmission windows, totaling 20 microseconds, and the duration of the first time period is 105 seconds.

[0087] The first time period occupies the majority of the entire transmission cycle. Therefore, the signals received by the OLT during the measurement window are mostly signals sent by the first ONU. Measuring the first ONU based on the received signals completes the link status measurement. Furthermore, within the measurement window, each ONU transmits operation and maintenance services to the OLT within its corresponding transmission window, thus avoiding any impact on operation and maintenance services.

[0088] Regardless of whether the measurement window is the first type measurement window or the second type measurement window, within the measurement window, the ONU in the PON can send data services to the OLT through the second type PON channel, and / or receive data services sent by the OLT, thereby isolating the transmission process of the data service from the measurement process of the first ONU, and does not affect the transmission of the data service.

[0089] Step 302: The first ONU receives the first indication information, and sends a measurement signal to the OLT on the first PON channel within the measurement window indicated by the first indication information.

[0090] Since the first link includes the first trunk link between the first port on the OLT and the ODN and the branch link between the ODN and the first ONU, and the second link includes the second trunk link between the second port on the OLT and the ODN and the branch link between the ODN and the first ONU, the first and second links share a common branch link. The first PON channel is carried on the first link, and the third PON channel is carried on the second link. The first and third PON channels are of the same type and can transmit signals at the same optical wavelength. Therefore, within this measurement window, the first ONU will send measurement signals on both the first and third PON channels.

[0091] In some embodiments, the measurement signal sent by the first ONU includes one or more of a signal randomly generated by the OLT and a signal stored in advance in the OLT.

[0092] In some embodiments, within the measurement window, the first ONU can also transmit a service signal on the fourth PON channel carried on the second link and the second PON channel carried on the first link. The service signal is a data service signal, and the optical wavelength corresponding to the measurement signal is different from the optical wavelength corresponding to the service signal. In other words, the measurement window does not affect the transmission of data services in the PON.

[0093] In step 302, the first ONU receives first indication information, determines a measurement window indicated by the first indication information based on the first indication information, and sends a measurement signal to the OLT on a first PON channel within the measurement window.

[0094] The first indication information includes the first indication information of the first case, the second case, the third case, or the fourth case. For the first indication information of the four cases, the process of determining the measurement window based on the first indication information of each case is described below. The details are as follows:

[0095] For the first indication information in the first case, the first indication information includes the start time and duration of the measurement window. The first ONU obtains the start time and duration of the measurement window from the first indication information, and determines the measurement window based on the start time and duration of the measurement window.

[0096] For the first indication information in the second case, the first indication information includes the start time of the measurement window. In the second case, the first ONU includes the duration of the measurement window. The first ONU obtains the start time of the measurement window from the first indication information and determines the measurement window based on the start time and duration of the measurement window.

[0097] For the first indication information in the third case, the first indication information includes the duration of the measurement window. The first ONU obtains the duration of the measurement window and the reception time of the first indication information from the first indication information, calculates the start time of the measurement window based on the reception time and the specified time difference, and determines the measurement window based on the start time and duration of the measurement window.

[0098] For the first indication information in the fourth case, the first indication information does not include the start time and duration of the measurement window. In the fourth case, the first ONU includes the duration of the measurement window. The first ONU obtains the time of receipt of the first indication information, calculates the start time of the measurement window based on the reception time and a specified time difference, and determines the measurement window based on the start time and duration of the measurement window.

[0099] In some embodiments, the determined measurement window is divided into a first type measurement window and a second type measurement window. When the measurement window is the first type measurement window, within the first type measurement window, the first ONU sends a measurement signal to the OLT on the first type PON channel, i.e., sends a measurement signal to the OLT on the first PON channel and the third PON channel. Within the first type measurement window, other ONUs in the PON, except the first ONU, do not send a measurement signal to the OLT on the first type PON channel.

[0100] If the measurement window is a second-type measurement window, the second-type measurement window includes at least one transmission cycle, each of which includes a first time period and a transmission window corresponding to each ONU in the PON. Within any transmission cycle, the first ONU transmits a measurement signal to the OLT on the first PON channel and the third PON channel within the first time period, and each ONU in the PON can transmit an operation and maintenance service within its corresponding transmission window.

[0101] Step 303: The OLT obtains the signal quality corresponding to the first ONU, where the signal quality is the signal quality received by the second port from the first PON channel within the measurement window. The signal received by the second port includes the measurement signal sent by the first ONU within the measurement window.

[0102] In step 303, the OLT obtains the signal quality corresponding to the first ONU through the following operations 3031 to 3032.

[0103] The operations from 3031 to 3032 are:

[0104] 3031: The OLT determines a measurement window, and receives a measurement signal on the first PON channel through the second port within the measurement window.

[0105] The first indication information sent by the OLT includes the first indication information of the first case, the second case, the third case or the fourth case. For the first indication information of the four cases, the process of determining the measurement window in each case is described below.

[0106] The detailed instructions are as follows:

[0107] For the first indication information in the first case, the first indication information includes the start time and duration of the measurement window. The OLT determines the measurement window based on the start time and duration of the measurement window.

[0108] For the first indication information in the second case, the first indication information includes the start time of the measurement window. In the second case, the OLT includes the duration of the measurement window. The OLT determines the measurement window based on the start time and duration of the measurement window.

[0109] For the first indication information in the third case described above, the first indication information includes the duration of the measurement window. The OLT includes a previously measured signal transmission duration between the first port and the first ONU. The OLT obtains a reception time of the first indication information by the first ONU based on the signal transmission duration and the time when the first indication information was sent. The OLT calculates the start time of the measurement window based on the difference between the reception time and a specified time value. The measurement window is then determined based on the start time and duration of the measurement window.

[0110] For the first indication information in the fourth scenario described above, the first indication information does not include the start time and duration of the measurement window. In the fourth scenario, the OLT includes the duration of the measurement window and the previously measured signal transmission duration between the first port and the first ONU. Based on the signal transmission duration and the time when the first indication information was sent, the OLT obtains the time when the first ONU receives the first indication information, calculates the start time of the measurement window based on the difference between the reception time and the specified time, and determines the measurement window based on the start time and duration of the measurement window.

[0111] It should be noted that the measurement window may be the first type measurement window or the second type measurement window. When the measurement window is the first type measurement window, the OLT receives the measurement signal sent by the first ONU on the third PON channel through the first port, and the OLT does not process the measurement signal received at the first port.

[0112] When the measurement window is the second type of measurement window described above, the measurement window includes at least one transmission cycle, each of which includes the transmission window corresponding to each ONU in the PON and the first time period. Therefore, during the transmission window corresponding to any ONU, the OLT may receive and process operation and maintenance services sent by the ONU via the first port on the third PON channel. However, during the first time period, the OLT will receive measurement signals sent by the first ONU via the first port on the third PON channel, but will not process the measurement signals received by the first port during the first time period.

[0113] 3032: The OLT measures the signal received by the second port on the first PON channel to obtain the signal quality corresponding to the first ONU.

[0114] The signal quality corresponding to the first ONU includes at least one received signal strength indication (RSSI), which is the RSSI of the signal received by the second port within the measurement window. In other words, the OLT performs at least one measurement on the signal received by the second port on the first PON channel to obtain the at least one RSSI.

[0115] It should be noted that the measurement window may be the first type measurement window or the second type measurement window. When the measurement window is the first type measurement window, the signals received by the second port on the first PON channel are all measurement signals sent by the first ONU, thereby improving the accuracy of measuring the signal quality corresponding to the first ONU. When the measurement window is the second type measurement window, since most of the time of each sending cycle in the measurement window is the first time period, the first ONU sends the measurement signal on the first PON channel within the first time period of each sending cycle. Therefore, most of the signals received by the second port on the first PON channel are measurement signals sent by the first ONU, ensuring that the signal quality corresponding to the first ONU is close to the quality of the measurement signal sent by the first ONU received by the OLT.

[0116] For each ONU other than the first ONU in the PON, repeat the above steps 301-303 to obtain the signal quality corresponding to each other ONU, obtain the signal quality corresponding to each ONU in the PON, and then perform the following step 304.

[0117] Step 304: The OLT determines the status of the second trunk link based on the signal quality corresponding to each ONU in the PON, where the second trunk link is the common portion of the link from the second port to each ONU.

[0118] The second trunk link is a trunk link between the second port and the ODN.

[0119] In step 304, the OLT determines whether the signal quality corresponding to each ONU in the PON exceeds a specified quality threshold. If so, the state of the second trunk link is determined to be normal; if not, the state of the second trunk link is determined to be a fault state.

[0120] In some embodiments, the signal quality corresponding to the first ONU includes at least one RSSI. When the at least one RSSI exceeds the specified quality threshold, it is determined that the signal quality corresponding to the first ONU exceeds the specified quality threshold; when the at least one RSSI does not exceed the specified quality threshold, it is determined that the signal quality corresponding to the first ONU does not exceed the specified quality threshold.

[0121] If the first port is the primary port, the second port is the backup port. After determining that the second backbone link is in a normal state, the process 301-304 can be repeated to further determine the status of the second backbone link. After determining that the second backbone link is in a faulty state, a technician can be notified for repair. When the first backbone link fails, services to each ONU in the PON are switched to the second port.

[0122] If the first port is a backup port, the second port becomes the active port. After determining that the second trunk link is normal, services between the OLT and each ONU in the PON can be switched to the second port. Then, the above process 301-304 is repeated to determine the status of the first trunk link connected to the first port. After determining that the second trunk link is faulty, a technician can be notified to perform repairs.

[0123] In an embodiment of the present application, the OLT sends first indication information to the first ONU via a first port, the first indication information being used to indicate a measurement window for measuring the first ONU. Thus, the first ONU determines the measurement window based on the first indication information and sends a signal to the OLT on the first PON channel within the measurement window. The OLT receives the signal on the first PON channel via a second port and measures the signal to obtain the signal quality corresponding to the first ONU. Repeating the above process can obtain the signal quality corresponding to each ONU. The OLT then determines the status of the backbone link based on the signal quality corresponding to each ONU. Only when the status of the backbone link is normal will the service be switched to the backbone link, allowing the service to be transmitted normally on the backbone link. This link status detection method thus ensures that the service can continue normally after the link switch. Since the signal quality corresponding to each ONU is obtained, the backbone link is determined to be normal only when the signal quality corresponding to each ONU exceeds a specified quality threshold, thereby improving the accuracy of determining the backbone link status. Furthermore, since a measurement window is specified for each ONU and the signal quality of each ONU is measured within each measurement window, the duration of each measurement window can be configured to be relatively short, only a few seconds or tens of seconds. This shortens the time required to measure the signal quality of each ONU, allowing the signal quality of each ONU to be obtained in a shorter time, improving the efficiency of backbone link measurement. Furthermore, the signal quality of each ONU includes at least one RSSI, which can be easily measured. This further improves the accuracy of backbone link status measurement based on the at least one RSSI for each ONU.

[0124] See also Figure 4, the embodiment of the present application provides a method 400 for measuring link status, the method 400 is applied to Figure 2 The PON architecture 200 shown is used to implement dual-homing protection technology. For the first OLT and the second OLT in the PON architecture 200, it is assumed that the first port on the first OLT is the port currently used by the OLT to transmit services to each ONU in the PON 200. That is, the first OLT sends services to each ONU or receives services sent by each ONU through the first port. The method 400 includes:

[0125] Step 401: a first OLT sends first indication information to a first ONU and a second OLT through a first port. The first indication information is used to indicate a measurement window for measuring the first ONU. The first ONU is any ONU in a PON.

[0126] In some embodiments, the first indication information is used to indicate a measurement window for measuring the first ONU, including: the first indication information is used to indicate the measurement window and instruct the first ONU to send a measurement signal within the measurement window.

[0127] A first OLT includes a first port. The first OLT is currently used to transmit services and transmits services through the first port. Specifically, the first OLT transmits services to an ONU in the PON through the first port. The first OLT and the first port have the following characteristics: the first OLT sends signals to an ONU in the PON through the first port and receives signals from the ONU through the first port. A second OLT and the second port have the following characteristics: the second OLT receives signals from the ONU in the PON through the second port, but cannot send signals to the ONU in the PON through the second port.

[0128] The first OLT may be a primary OLT, the first port on the first OLT may be a primary port, the second OLT may be a backup OLT, and the second port on the second OLT may be a backup port; or the first OLT may be a backup OLT, the first port on the first OLT may be a backup port, the second OLT may be a primary OLT, and the second port on the second OLT may be a primary port.

[0129] For any ONU in the PON, that is, for the first ONU, the first link between the first port on the first OLT and the first ONU carries the third PON channel and the fourth PON channel, and the second link between the second port on the second OLT and the first ONU carries the first PON channel and the second PON channel.

[0130] The third PON channel and the first PON channel are both Type 1 PON channels. Therefore, the first OLT sends operation and maintenance services to the ONUs in the PON via the first port on the third PON channel. When the ONUs in the PON send operation and maintenance services to the first OLT and the second OLT, the first OLT receives the operation and maintenance services sent by the ONUs in the PON via the first port on the third PON channel. Furthermore, the second OLT can also receive the operation and maintenance services sent by the ONUs in the PON via the second port on the first PON channel.

[0131] The second and fourth PON channels are both type-II PON channels. Therefore, the first OLT transmits data services to the ONUs in the PON via the second port on the fourth PON channel. When the ONUs in the PON transmit data services to the first and second OLTs, the first OLT receives the data services sent by the ONUs in the PON via the first port on the fourth PON channel. Furthermore, the second OLT can also receive the data services sent by the ONUs in the PON via the second port on the second PON channel.

[0132] In some embodiments, the first indication information is used to instruct the first ONU to send the measurement signal within the measurement window, including: the first indication information is used to instruct the first ONU to send the measurement signal within the measurement window through a first type PON channel. The first type PON channel includes the first PON channel and the third PON channel.

[0133] In step 401, the first OLT sends first indication information to the first ONU through the first port on the third PON channel or on the fourth PON channel.

[0134] In some embodiments, the first indication information includes one or more of the start time and the duration of the measurement window. Alternatively, the first indication information may not include the start time and the duration of the measurement window. For a detailed description of the first indication information, see the above Figure 3 The relevant contents in step 301 of the method 300 are not described in detail here.

[0135] In some embodiments, the measurement windows are divided into two categories, namely, a first type measurement window and a second type measurement window. For detailed descriptions of the first type measurement window and the second type measurement window, see the above Figure 3 The relevant contents in step 301 of the method 300 are not described in detail here.

[0136] Step 402: The first ONU receives the first indication information, and sends a measurement signal to the second OLT on the first PON channel within the measurement window indicated by the first indication information.

[0137] Since the first link includes the first trunk link between the first port on the first OLT and the ODN and the branch link between the ODN and the first ONU, and the second link includes the second trunk link between the second port on the second OLT and the ODN and the branch link between the ODN and the first ONU, the first and second links share a common branch link. The first PON channel is carried on the first link, and the third PON channel is carried on the second link. The first and third PON channels are of the same type and have the same wavelength. Therefore, within this measurement window, the first ONU will simultaneously send measurement signals on the first PON channel to the second OLT and on the third PON channel to the first OLT.

[0138] In some embodiments, within the measurement window, the first ONU can also transmit a service signal on the fourth PON channel carried on the second link and the second PON channel carried on the first link. The service signal is a data service signal, and the optical wavelength corresponding to the measurement signal is different from the optical wavelength corresponding to the service signal. In other words, the measurement window does not affect the transmission of data services in the PON.

[0139] In step 402, the first ONU sends a measurement signal to the second OLT. Figure 3 The relevant contents in step 302 of the method 300 are not described in detail here.

[0140] Step 403: The second OLT receives the first indication information, and obtains the signal quality corresponding to the first ONU based on the first indication information. The signal quality is the signal quality received by the second port on the second OLT from the first PON channel within the measurement window, and the signal received by the second port includes the measurement signal sent by the first ONU within the measurement window.

[0141] In step 403, the OLT obtains the signal quality corresponding to the first ONU through the following operations 4031 to 4033.

[0142] The operations of 4031 to 4033 are:

[0143] 4031: The second OLT receives the first indication information and determines a measurement window based on the first indication information.

[0144] The first indication information received by the second OLT includes the first indication information of the first case, the second case, the third case, or the fourth case. For the first indication information of the four cases, the process of determining the measurement window in each case is described below. The details are as follows:

[0145] For the first indication information in the first case, the first indication information includes the start time and duration of the measurement window. The second OLT obtains the start time and duration of the measurement window from the first indication information, and determines the measurement window based on the start time and duration of the measurement window.

[0146] For the first indication information in the second scenario described above, the first indication information includes the start time of the measurement window. In the second scenario, the second OLT includes the duration of the measurement window. The second OLT obtains the start time of the measurement window from the first indication information and determines the measurement window based on the start time and duration of the measurement window.

[0147] For the first indication information in the third scenario described above, the first indication information includes the duration of the measurement window. The second OLT obtains the signal transmission duration between the first port of the first OLT and the first ONU, as well as the time when the first OLT sent the first indication information. The second OLT obtains the duration of the measurement window from the first indication information, obtains the time when the first ONU receives the first indication information based on the signal transmission duration and the time when the first indication information is sent, calculates the start time of the measurement window based on the difference between the reception time and the specified time, and determines the measurement window based on the start time and duration of the measurement window.

[0148] In some embodiments, the first indication information includes the signal transmission duration and the sending time, and the signal transmission duration and the sending time are obtained from the first indication information.

[0149] In some embodiments, the second OLT includes the signal transmission duration, which is obtained in advance by the second OLT from the first OLT. As for the sending time, the second OLT requests the first OLT to provide the sending time.

[0150] For the first indication information in the fourth scenario described above, the first indication information does not include the start time and duration of the measurement window. In the fourth scenario, the second OLT obtains the duration of the measurement window and the signal transmission duration, which is the signal transmission duration between the first port on the first OLT and the first ONU. The second OLT obtains the sending time of the first indication information from the first OLT, obtains the receiving time of the first indication information by the first ONU based on the signal transmission duration and the sending time, calculates the start time of the measurement window based on the difference between the receiving time and the specified time, and determines the measurement window based on the start time and duration of the measurement window.

[0151] In some embodiments, the second OLT includes the time length of the measurement window and the signal transmission time length previously obtained from the first OLT. As for the transmission time, the second OLT requests the first OLT to provide the transmission time.

[0152] In some embodiments, the first indication information includes the signal transmission duration and the sending time, and the signal transmission duration and the sending time are obtained from the first indication information.

[0153] It should be noted that the measurement window may be the first type measurement window or the second type measurement window. When the measurement window is the first type measurement window, the first OLT receives the measurement signal sent by the first ONU on the third PON channel through the first port, and the first OLT does not process the measurement signal received at the first port.

[0154] When the measurement window is the second type of measurement window described above, the measurement window includes at least one transmission cycle, each of which includes the transmission window corresponding to each ONU in the PON and the first time period. Therefore, during the transmission window corresponding to any ONU, the first OLT may receive and process operation and maintenance services sent by the ONU via the first port on the third PON channel. However, during the first time period, the first OLT will receive measurement signals sent by the first ONU via the first port on the third PON channel and will not process the measurement signals received at the first port during the first time period.

[0155] 4032: The second OLT receives a signal on the first PON channel through the second port within the measurement window.

[0156] 4033: The second OLT measures the signal received by the second port on the first PON channel to obtain the signal quality corresponding to the first ONU.

[0157] The detailed implementation process of the second OLT obtaining the signal quality corresponding to the first ONU is shown in the above Figure 3 The relevant contents in 3032 in the method 300 are not described in detail here.

[0158] For each ONU other than the first ONU in the PON, the above steps 401-403 are repeated. The second OLT obtains the signal quality corresponding to each other ONU, obtains the signal quality corresponding to each ONU in the PON, and then performs the following step 404.

[0159] Step 404: The second OLT sends measurement information to the first OLT, where the measurement information includes the signal quality corresponding to each ONU in the PON.

[0160] Step 405: The first OLT receives the measurement information, and determines the status of the second backbone link based on the signal quality corresponding to each ONU included in the measurement information. The second backbone link is the common part of the link from the second port to each ONU.

[0161] The second backbone link is a backbone link between the second port on the second OLT and the ODN.

[0162] In step 405, the second OLT determines whether the signal quality corresponding to each ONU in the PON exceeds a specified quality threshold. If so, the state of the second trunk link is determined to be normal; if not, the state of the second trunk link is determined to be a fault state.

[0163] If the first OLT is the active OLT and the first port on the first OLT is the active port, the second OLT is the standby OLT, and the second port on the second OLT is the standby port. After determining that the second backbone link is normal, steps 401-405 can be repeated to further determine the status of the second backbone link. After determining that the second backbone link is faulty, a technician can be notified to perform repairs. When the first backbone link fails, services to each ONU in the PON are switched to the second port on the second OLT.

[0164] If the first OLT is a backup OLT and the first port on the first OLT is a backup port, the second OLT is the active OLT and the second port on the second OLT is the active port. After determining that the second backbone link is normal, services between the first OLT and each ONU in the PON can be switched to the second port on the second OLT. Then, the above process 401-405 is repeated to determine the status of the first backbone link connected to the first port on the first OLT. Alternatively, after determining that the second backbone link is faulty, a technician can be notified to perform repairs.

[0165] In this embodiment of the present application, the first OLT sends first indication information to the second OLT and the first ONU via the first port. The first indication information indicates a measurement window for measuring the first ONU. The first ONU determines the measurement window based on the first indication information and sends a signal to the second OLT on the first PON channel within the measurement window. The second OLT determines the measurement window based on the first indication information and receives the signal on the first PON channel via the second port within the measurement window. The signal is measured to obtain the signal quality corresponding to the first ONU. Repeating the above process can obtain the signal quality corresponding to each ONU. The second OLT then determines the status of the backbone link based on the signal quality corresponding to each ONU. Only when the backbone link status is normal will the service be switched to the backbone link, allowing normal transmission of the service on the backbone link. This link status detection method thus ensures that the service can continue normally after link switching. Since the signal quality corresponding to each ONU is obtained, the backbone link status is determined to be normal only when the signal quality corresponding to each ONU exceeds a specified quality threshold, thereby improving the accuracy of determining the backbone link status. Furthermore, since a measurement window is specified for each ONU and the signal quality of each ONU is measured within each measurement window, the duration of each measurement window can be configured to be relatively short, only a few seconds or tens of seconds. This shortens the time required to measure the signal quality of each ONU, allowing the signal quality of each ONU to be obtained in a shorter time, improving the efficiency of backbone link measurement. Furthermore, the signal quality of each ONU includes at least one RSSI, which can be easily measured. This further improves the accuracy of backbone link status measurement based on the at least one RSSI for each ONU.

[0166] See also Figure 5 The embodiment of the present application provides a device 500 for measuring link status, which is deployed in the above Figure 1 On the OLT in the PON architecture 100 shown, Figure 2 On the first OLT in the PON architecture 200 shown, Figure 3 The method 300 provided by the OLT or Figure 4 The method 400 provided by the first OLT includes:

[0167] A sending unit 501 is configured to send first indication information to a first optical network unit (ONU) through a first port, where the apparatus 500 is a device in a passive optical network (PON), the first ONU is one of at least one ONU included in the PON, and the first indication information is used to indicate a measurement window for measuring the first ONU;

[0168] a processing unit 502 configured to obtain a signal quality corresponding to the first ONU, where the signal quality is a signal quality received by the second port from the first PON channel within the measurement window, the signal received by the second port including a measurement signal sent by the first ONU within the measurement window, the first PON channel being used to transmit the measurement signal, the second PON channel being used to transmit a service signal, the optical wavelength corresponding to the measurement signal being different from the optical wavelength corresponding to the service signal, and the first PON channel and the second PON channel being channels carried on a link between the second port and the first ONU;

[0169] The processing unit 502 is further configured to determine a status of a trunk link based on the signal quality corresponding to each ONU in the PON, where the trunk link is a common portion of a link from the second port to each ONU.

[0170] Optionally, the detailed implementation process of the sending unit 501 sending the first indication information can be found in Figure 3 Steps 301 and 302 of the method 300 are shown. Figure 4 The relevant contents in step 401 of the method 400 are not described in detail here.

[0171] Optionally, the detailed implementation process of the processing unit 502 obtaining the signal quality corresponding to the first ONU can be found in Figure 3 Step 303 of the method 300 is shown and Figure 4 The relevant contents in steps 403 - 405 of the method 400 are not described in detail here.

[0172] Optionally, the detailed implementation process of the processing unit 502 determining the status of the backbone link can be found in Figure 3 Step 304 of the method 300 is shown and Figure 4 The relevant contents in step 405 of the method 400 are not described in detail here.

[0173] Optionally, the first indication information includes at least one of a start time of the measurement window and a time length of the measurement window.

[0174] Optionally, the first port is a port on the device 500, the second port is a port on the second OLT, the device 500 and the second OLT are two different OLT devices, and the sending unit 501 is further used to send first indication information to the second OLT, and the first indication information is further used to instruct the second OLT to obtain the signal quality received by the second port from the first PON channel within the measurement window.

[0175] Optionally, the apparatus 500 further includes: a receiving unit 503,

[0176] The receiving unit 503 is configured to receive measurement information sent by the second OLT, where the measurement information includes the signal quality corresponding to the first ONU.

[0177] Optionally, the detailed implementation process of the receiving unit 503 receiving the measurement information can be found in Figure 3 Step 303 of the method 300 is shown and Figure 4 The relevant contents in step 405 of the method 400 are not described in detail here.

[0178] Optionally, the first port and the second port are two different ports on the device 500 .

[0179] Optionally, the measurement window includes at least one sending cycle, each sending cycle includes a first time period and a sending window corresponding to each ONU, the sending window corresponding to the first ONU is a window for the first ONU to send operation and maintenance services to the device 500, and the first indication information is used to indicate the first ONU to send the measurement signal in the first time period.

[0180] Optionally, the signal quality corresponding to the first ONU includes at least one received signal strength indication RSSI, and the at least one RSSI is the RSSI of a signal received by the second port within the measurement window.

[0181] In an embodiment of the present application, a sending unit sends first indication information to a first ONU via a first port. The first indication information indicates a measurement window for measuring the first ONU. A processing unit obtains the signal quality corresponding to the first ONU and determines the status of the backbone link based on the signal quality corresponding to each ONU in the PON. Since the sending unit sends the first indication information to the first ONU via the first port, the first indication information indicates the measurement window for measuring the first ONU. Therefore, the first ONU transmits a signal on the first PON channel within the measurement window. This allows the second OLT to measure the signal quality received at the second port within the measurement window and obtain the signal quality corresponding to the first ONU. By repeating the above process, the signal quality corresponding to each ONU in the PON can be obtained. Based on the signal quality corresponding to each ONU, the processing unit can accurately determine the status of the backbone link, thereby improving the accuracy of measuring the backbone link status. Furthermore, since a measurement window is provided for the first ONU and the signal quality corresponding to the first ONU is measured within the measurement window, the processing unit can measure the signal quality corresponding to the first ONU in a relatively short period of time, and the duration of the measurement window can be set to be relatively short. Therefore, although a measurement window is provided for each ONU to obtain the signal quality of each ONU within the measurement window corresponding to each ONU, the total time length of the measurement window corresponding to each ONU is also relatively short, which improves the efficiency of measuring the backbone link status.

[0182] See also Figure 6 The embodiment of the present application provides a device 600 for measuring link status, which is deployed in the above Figure 2 On the second OLT in the PON architecture shown, or Figure 4 The method 400 provided on the second OLT includes:

[0183] A receiving unit 601 is configured to receive first indication information, where the first indication information is information sent by a first OLT to the apparatus 600 and a first optical network unit (ONU), the first OLT and the apparatus 600 being two devices in a passive optical network (PON), the first ONU being one of at least one ONU included in the PON, and the first indication information being used to indicate a measurement window for measuring the first ONU;

[0184] The processing unit 602 is configured to measure a signal received by the second port from the first PON channel within the measurement window to obtain a signal quality corresponding to the first ONU, wherein the signal received by the second port includes a measurement signal sent by the first ONU within the measurement window, the second port is a port on the apparatus 600, the first PON channel is used to transmit the measurement signal, the second PON channel is used to transmit a service signal, the optical wavelength corresponding to the measurement signal is different from the optical wavelength corresponding to the service signal, and the first PON channel and the second PON channel are channels carried on a link between the second port and the first ONU;

[0185] The sending unit 603 is configured to send measurement information to the first OLT, where the measurement information includes the signal quality corresponding to each ONU in the PON. The measurement information is used to trigger the first OLT to determine the quality of the trunk link based on the signal quality corresponding to each ONU. The trunk link is the common part of the link from the second port to each ONU.

[0186] Optionally, the detailed implementation process of the receiving unit 601 receiving the first indication information can be found in Figure 4 The relevant contents in step 403 of the method 400 are not described in detail here.

[0187] Optionally, the detailed implementation process of the processing unit 602 measuring the signal received by the second port can be found in Figure 4 The relevant contents in step 403 of the method 400 are not described in detail here.

[0188] Optionally, the detailed implementation process of the sending unit 603 sending the measurement information can be found in Figure 4 The relevant contents in step 404 of the method 400 are not described in detail here.

[0189] Optionally, the first indication information includes at least one of a start time of the measurement window and a time length of the measurement window.

[0190] Optionally, the measurement window includes at least one communication cycle, each communication cycle includes a first time period and a sending window corresponding to each ONU, the sending window corresponding to the first ONU is a window for the first ONU to send operation and maintenance services to the first OLT, and the first indication information is used to instruct the first ONU to send a measurement signal in the first time period.

[0191] Optionally, the signal quality corresponding to the first ONU includes at least one received signal strength indication RSSI, and the at least one RSSI is the RSSI of a signal received by the second port within the measurement window.

[0192] In an embodiment of the present application, a receiving unit receives first indication information, and a processing unit measures the signal received by the second port from the first PON channel within the measurement window to obtain the signal quality corresponding to the first ONU. The signal received by the second port includes the signal sent by the first ONU within the measurement window, and the second PON channel is used to transmit data services. A sending unit sends measurement information to the first OLT, where the measurement information includes the signal quality corresponding to each ONU in the PON. This allows the first OLT to determine the quality of the backbone link based on the signal quality corresponding to each ONU. The backbone link is the common portion of the link from the second port to each ONU. Since the first indication information is used to indicate the measurement window for measuring the first ONU, the first ONU will send a signal on the first PON channel within the measurement window. This allows the processing unit to measure the signal quality received by the second port within the measurement window and obtain the signal quality corresponding to the first ONU. By repeating the above process, the signal quality corresponding to each ONU in the PON can be obtained. The sending unit sends the signal quality corresponding to each ONU to the first OLT. Based on the signal quality corresponding to each ONU, the first OLT can accurately determine the status of the backbone link. Only when the status of the backbone link is normal will the service be switched to the backbone link, allowing normal transmission of the service on the backbone link. This link status detection method ensures that the service can continue normally after link switching. Obtaining the signal quality corresponding to each ONU improves the accuracy of measuring the backbone link status. Furthermore, since a measurement window is provided for the first ONU and the signal quality corresponding to the first ONU is measured within this measurement window, the processing unit can measure the signal quality corresponding to the first ONU in a relatively short time, and the duration of the measurement window can be set to be relatively short. Therefore, although a measurement window is provided for each ONU to obtain the signal quality corresponding to each ONU within the measurement window corresponding to each ONU, the total duration of the measurement window corresponding to each ONU is also relatively short, thereby improving the efficiency of measuring the backbone link status.

[0193] See also Figure 7 , the embodiment of the present application provides a schematic diagram of a device 700 for measuring link status. The device 700 may be the above Figure 1 The OLT in the PON architecture 100 shown, Figure 2 The first OLT in the PON architecture 200 shown, Figure 3 The OLT or Figure 4 The first OLT in the method 400 is shown. The apparatus 700 includes at least one processor 701 , an internal connection 702 and at least one port 703 .

[0194] The device 700 is a hardware structure device that can be used to implement Figure 5 The functional modules in the device 500 are as follows. For example, those skilled in the art may think of Figure 5 The processing unit 502 in the device 500 shown may be implemented by the at least one processor 701. Figure 5 The sending unit 501 and the receiving unit 503 in the device 500 shown can be implemented through the at least one port 703 .

[0195] Optionally, the device 700 may also be used to implement the functions of the OLT in any of the above embodiments.

[0196] Optionally, the device 700 may be Figure 1 The OLT or Figure 3 The OLT in the illustrated method 400. The at least one port 703 includes a first port and a second port on the OLT.

[0197] Optionally, the device 700 may be Figure 2 The first OLT or Figure 4 The first OLT in the illustrated method 400. The at least one port 703 comprises a first port on the first OLT.

[0198] Optionally, the processor 701 may be a hardware circuit, a general-purpose central processing unit (CPU), a network processor (NP), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.

[0199] Optional, see Figure 7In the case where the processor 701 is a CPU or a microprocessor, the device 700 further includes a memory 704. Figure 5 The processing unit 502 in the illustrated apparatus 500 may be implemented by the at least one processor 701 calling codes in the memory 704 .

[0200] The internal connection 702 may include a path for transmitting information between the components. Optionally, the internal connection 702 is a single board or a bus.

[0201] The at least one port 703 is used for communicating with other devices or communication networks.

[0202] The memory 704 may be a read-only memory (ROM) or other static storage device capable of storing static information and instructions, a random access memory (RAM) or other dynamic storage device capable of storing information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and capable of being accessed by a computer, but not limited thereto. The memory may be independent and connected to the processor via a bus. The memory may also be integrated with the processor.

[0203] The memory 704 is used to store application code for executing the solution of the present application, and the execution is controlled by the processor 701. The processor 701 is used to execute the application code stored in the memory 704 and cooperate with at least one port 703, so that the device 700 can implement the functions of the method of the present invention.

[0204] In a specific implementation, as an embodiment, the processor 701 may include one or more CPUs, such as Figure 7 CPU0 and CPU1 in.

[0205] In a specific implementation, as an embodiment, the apparatus 700 may include multiple processors, such as Figure 7701 and processor 707 in FIG. Each of these processors may be a single-CPU processor or a multi-CPU processor. A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0206] See also Figure 8 , the embodiment of the present application provides a schematic diagram of a device 800 for measuring link status. The device 800 may be the above Figure 2 The second OLT in the PON architecture 200 shown, or Figure 4 The second OLT in the method 400 is shown. The apparatus 800 includes at least one processor 801 , an internal connection 802 and at least one port 803 .

[0207] The device 800 is a hardware structure device that can be used to implement Figure 6 The functional modules in the device 600 are as follows. For example, those skilled in the art may think of Figure 6 The processing unit 602 in the device 600 shown may be implemented by the at least one processor 801. Figure 6 The sending unit 603 and the receiving unit 601 in the device 600 shown can be implemented through the at least one port 803 .

[0208] Optionally, the device 800 may also be used to implement the function of the second OLT in any of the above embodiments.

[0209] Optionally, the device 800 may be Figure 2 The second OLT or Figure 4 The second OLT in the illustrated method 400. The at least one port 803 comprises a second port on the second OLT.

[0210] Optionally, the processor 801 may be a hardware circuit, a general-purpose central processing unit (CPU), a network processor (NP), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.

[0211] Optional, see Figure 8 In the case where the processor 801 is a CPU or a microprocessor, the device 800 further includes a memory 804. Figure 6The processing unit 602 in the illustrated apparatus 600 may be implemented by the at least one processor 801 calling codes in the memory 804 .

[0212] The internal connection 802 may include a path for transmitting information between the components. Optionally, the internal connection 802 is a single board or a bus.

[0213] The at least one port 803 is used for communicating with other devices or communication networks.

[0214] The memory 804 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor via a bus. The memory may also be integrated with the processor.

[0215] The memory 804 is used to store application code for executing the solution of the present application, and the execution is controlled by the processor 801. The processor 801 is used to execute the application code stored in the memory 804 and cooperate with at least one port 803, so that the device 800 can implement the functions of the method of the present invention.

[0216] In a specific implementation, as an embodiment, the processor 801 may include one or more CPUs, such as Figure 8 CPU0 and CPU1 in.

[0217] In a specific implementation, as an embodiment, the apparatus 800 may include multiple processors, such as Figure 8 801 and processor 807 in FIG. Each of these processors can be a single-CPU processor or a multi-CPU processor. A processor herein can refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0218] See also Figure 9 The embodiment of the present application provides a system 900 for measuring link status, the system 900 includes: Figure 5 The device 500 shown and Figure 6 The device 600 shown, or the system 900 includes Figure 7 The device 700 shown and Figure 8 The device 800 is shown.

[0219] like Figure 5 The device 500 shown or Figure 8 The device 900 shown may be a first OLT 901, such as Figure 6 The device 600 shown or Figure 8 The device 800 shown may be a second OLT 902 .

[0220] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.

[0221] The above description is merely an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A method for measuring link status, characterized in that: The method comprises: A first optical line terminal OLT sends first indication information to a first optical network unit ONU through a first port, where the first OLT is a device in a passive optical network PON, and the first ONU is one of at least one ONU included in the PON, and the first indication information is used to indicate a measurement window for measuring the first ONU; The first OLT obtains, by the first ONU, a signal quality corresponding to the first ONU, where the signal quality is a signal quality received by the second port from the first PON channel within the measurement window, the signal received by the second port includes a measurement signal sent by the first ONU within the measurement window, the first PON channel is used to transmit the measurement signal, the second PON channel is used to transmit a service signal, an optical wavelength corresponding to the measurement signal is different from an optical wavelength corresponding to the service signal, and the first PON channel and the second PON channel are channels carried on a link between the second port and the first ONU; The first OLT determines a status of a trunk link based on signal quality corresponding to each ONU in the PON, where the trunk link is a common portion of a link from the second port to each ONU.

2. The method according to claim 1, wherein The first indication information includes at least one of a start time of the measurement window and a time length of the measurement window.

3. The method according to claim 1 or 2, wherein: The first port is a port on the first OLT, the second port is a port on the second OLT, the first OLT and the second OLT are different OLT devices, and the method further includes: The first OLT sends the first indication information to the second OLT, where the first indication information is further used to instruct the second OLT to obtain quality of a signal received by the second port from the first PON channel within the measurement window.

4. The method according to claim 3, wherein The first OLT obtaining the signal quality corresponding to the first ONU includes: The first OLT receives measurement information sent by the second OLT, where the measurement information includes signal quality corresponding to the first ONU.

5. The method according to claim 1 or 2, wherein: The first port and the second port are two different ports on the first OLT.

6. The method according to any one of claims 1, 2 or 4, wherein: The measurement window includes at least one sending cycle, each sending cycle includes a first time period and a sending window corresponding to each ONU, the sending window corresponding to the first ONU is a window for the first ONU to send operation and maintenance services to the first OLT, and the first indication information is used to instruct the first ONU to send the measurement signal in the first time period.

7. The method according to claim 3, wherein The measurement window includes at least one sending cycle, each sending cycle includes a first time period and a sending window corresponding to each ONU, the sending window corresponding to the first ONU is a window for the first ONU to send operation and maintenance services to the first OLT, and the first indication information is used to instruct the first ONU to send the measurement signal in the first time period.

8. The method according to claim 5, wherein The measurement window includes at least one sending cycle, each sending cycle includes a first time period and a sending window corresponding to each ONU, the sending window corresponding to the first ONU is a window for the first ONU to send operation and maintenance services to the first OLT, and the first indication information is used to instruct the first ONU to send the measurement signal in the first time period.

9. The method according to any one of claims 1, 2, 4, 7 or 8, wherein: The signal quality corresponding to the first ONU includes at least one received signal strength indicator RSSI, and the at least one RSSI is the RSSI of a signal received by the second port within the measurement window.

10. The method according to claim 3, wherein The signal quality corresponding to the first ONU includes at least one received signal strength indicator RSSI, and the at least one RSSI is the RSSI of a signal received by the second port within the measurement window.

11. The method according to claim 5, wherein The signal quality corresponding to the first ONU includes at least one received signal strength indicator RSSI, and the at least one RSSI is the RSSI of a signal received by the second port within the measurement window.

12. The method according to claim 6, wherein The signal quality corresponding to the first ONU includes at least one received signal strength indicator RSSI, and the at least one RSSI is the RSSI of a signal received by the second port within the measurement window.

13. A method for measuring link status, characterized in that: The method comprises: The second optical line terminal OLT receives first indication information, wherein the first indication information is information sent by the first OLT to the second OLT and a first optical network unit ONU, the first OLT and the second OLT are two devices in a passive optical network PON, the first ONU is one of at least one ONU included in the PON, and the first indication information is used to indicate a measurement window for measuring the first ONU; The second OLT measures a signal received by the second port from the first PON channel within the measurement window to obtain a signal quality corresponding to the first ONU, wherein the signal received by the second port includes a measurement signal sent by the first ONU within the measurement window, the second port is a port on the second OLT, the first PON channel is used to transmit the measurement signal, the second PON channel is used to transmit a service signal, an optical wavelength corresponding to the measurement signal is different from an optical wavelength corresponding to the service signal, and the first PON channel and the second PON channel are channels carried on a link between the second port and the first ONU; The second OLT sends measurement information to the first OLT, where the measurement information includes a signal quality corresponding to each ONU in the PON, and the measurement information is used to trigger the first OLT to determine a quality of a trunk link based on the signal quality corresponding to each ONU, where the trunk link is a common part of a link from the second port to each ONU.

14. The method according to claim 13, wherein The first indication information includes at least one of a start time of the measurement window and a time length of the measurement window.

15. The method according to claim 13 or 14, characterized in that The measurement window includes at least one communication cycle, each communication cycle includes a first time period and a sending window corresponding to each ONU, the sending window corresponding to the first ONU is a window for the first ONU to send operation and maintenance services to the first OLT, and the first indication information is used to instruct the first ONU to send the measurement signal in the first time period.

16. The method according to claim 13 or 14, wherein: The signal quality corresponding to the first ONU includes at least one received signal strength indicator RSSI, and the at least one RSSI is the RSSI of a signal received by the second port within the measurement window.

17. The method according to claim 15, wherein The signal quality corresponding to the first ONU includes at least one received signal strength indicator RSSI, and the at least one RSSI is the RSSI of a signal received by the second port within the measurement window.

18. A device for measuring link status, characterized in that: The device comprises: A sending unit, configured to send first indication information to a first optical network unit (ONU) through a first port, where the apparatus is a device in a passive optical network (PON), the first ONU is one of at least one ONU included in the PON, and the first indication information is used to indicate a measurement window for measuring the first ONU; a processing unit, configured to obtain a signal quality corresponding to the first ONU, where the signal quality is a signal quality received by the second port from the first PON channel within the measurement window, the signal received by the second port includes a measurement signal sent by the first ONU within the measurement window, the first PON channel is used to transmit the measurement signal, the second PON channel is used to transmit a service signal, an optical wavelength corresponding to the measurement signal is different from an optical wavelength corresponding to the service signal, and the first PON channel and the second PON channel are channels carried on a link between the second port and the first ONU; The processing unit is further configured to determine a status of a trunk link based on a signal quality corresponding to each ONU in the PON, where the trunk link is a common portion of a link from the second port to each ONU.

19. The device according to claim 18, wherein The first indication information includes at least one of a start time of the measurement window and a time length of the measurement window.

20. The device according to claim 18 or 19, characterized in that The first port is a port on the device, the second port is a port on the second OLT, the device and the second OLT are different OLT devices, and the sending unit is further used to send the first indication information to the second OLT, and the first indication information is further used to instruct the second OLT to obtain the signal quality received by the second port from the first PON channel within the measurement window.

21. The device according to claim 20, characterized in that The device further includes: a receiving unit, The receiving unit is configured to receive measurement information sent by the second OLT, where the measurement information includes signal quality corresponding to the first ONU.

22. The device according to claim 18 or 19, characterized in that The first port and the second port are two different ports on the device.

23. The device according to any one of claims 18, 19 or 21, characterized in that The measurement window includes at least one sending cycle, each sending cycle includes a first time period and a sending window corresponding to each ONU, the sending window corresponding to the first ONU is a window for the first ONU to send operation and maintenance services to the device, and the first indication information is used to instruct the first ONU to send the measurement signal in the first time period.

24. The device according to claim 20, wherein The measurement window includes at least one sending cycle, each sending cycle includes a first time period and a sending window corresponding to each ONU, the sending window corresponding to the first ONU is a window for the first ONU to send operation and maintenance services to the device, and the first indication information is used to instruct the first ONU to send the measurement signal in the first time period.

25. The device according to claim 22, wherein The measurement window includes at least one sending cycle, each sending cycle includes a first time period and a sending window corresponding to each ONU, the sending window corresponding to the first ONU is a window for the first ONU to send operation and maintenance services to the device, and the first indication information is used to instruct the first ONU to send the measurement signal in the first time period.

26. The device according to any one of claims 18, 19, 21, 24 or 25, characterized in that The signal quality corresponding to the first ONU includes at least one received signal strength indicator RSSI, and the at least one RSSI is the RSSI of a signal received by the second port within the measurement window.

27. The device according to claim 20, wherein The signal quality corresponding to the first ONU includes at least one received signal strength indicator RSSI, and the at least one RSSI is the RSSI of a signal received by the second port within the measurement window.

28. The device according to claim 22, wherein The signal quality corresponding to the first ONU includes at least one received signal strength indicator RSSI, and the at least one RSSI is the RSSI of a signal received by the second port within the measurement window.

29. The device according to claim 23, wherein The signal quality corresponding to the first ONU includes at least one received signal strength indicator RSSI, and the at least one RSSI is the RSSI of a signal received by the second port within the measurement window.

30. A device for measuring link status, characterized in that: The device comprises: a receiving unit, configured to receive first indication information, wherein the first indication information is information sent by a first OLT to the apparatus and a first optical network unit (ONU), the first OLT and the apparatus are two devices in a passive optical network (PON), the first ONU is one of at least one ONU included in the PON, and the first indication information is used to indicate a measurement window for measuring the first ONU; a processing unit, configured to measure a signal received by the second port from the first PON channel within the measurement window to obtain a signal quality corresponding to the first ONU, wherein the signal received by the second port includes a measurement signal sent by the first ONU within the measurement window, the second port is a port on the device, the first PON channel is used to transmit the measurement signal, the second PON channel is used to transmit a service signal, the optical wavelength corresponding to the measurement signal is different from the optical wavelength corresponding to the service signal, and the first PON channel and the second PON channel are channels carried on a link between the second port and the first ONU; a sending unit, configured to send measurement information to the first OLT, the measurement information including a signal quality corresponding to each ONU in the PON, the measurement information being used to trigger the first OLT to determine a quality of a trunk link based on the signal quality corresponding to each ONU, the trunk link being a common portion of a link from the second port to each ONU.

31. The device according to claim 30, wherein The first indication information includes at least one of a start time of the measurement window and a time length of the measurement window.

32. The device according to claim 30 or 31, characterized in that The measurement window includes at least one communication cycle, each communication cycle includes a first time period and a sending window corresponding to each ONU, the sending window corresponding to the first ONU is a window for the first ONU to send operation and maintenance services to the first OLT, and the first indication information is used to instruct the first ONU to send the measurement signal in the first time period.

33. The device according to claim 30 or 31, characterized in that The signal quality corresponding to the first ONU includes at least one received signal strength indicator RSSI, and the at least one RSSI is the RSSI of a signal received by the second port within the measurement window.

34. The device according to claim 32, wherein The signal quality corresponding to the first ONU includes at least one received signal strength indicator RSSI, and the at least one RSSI is the RSSI of a signal received by the second port within the measurement window.

35. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a computer, the method according to any one of claims 1 to 17 is implemented.

36. A computer program product, characterized in that The computer program product includes a computer program stored in a computer-readable storage medium, and the computer program is loaded by a processor to implement the method according to any one of claims 1 to 17.

37. A system for measuring link status, characterized in that: The device comprises the device according to any one of claims 18 to 29 and the device according to any one of claims 30 to 34.

Citation Information

Patent Citations

  • A network entity for geographically routing a data packet towards a mobile device over a communication network

    CN106797345A

  • Optical fiber troubleshooting method, device and system

    CN107078793A