A system and method for positioning and isolating abnormal emitting ONU in GPON uplink

CN122952225APending Publication Date: 2026-10-20BEIJING CHANGDIAN TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611230335.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-14
Publication Date
2026-10-20

AI Technical Summary

Technical Problem

由于多个ONU的上行光信号经无源分光器汇聚至同一OLT突发接收机,任一ONU在未获得授权的时段发光,均会对其他ONU的合法上行突发造成干扰,导致业务误码甚至中断

Benefits of technology

本发明身份编码由OLT通过标准定向功率控制消息施加,无需候选ONU生成或发送任何诊断专用信号,即使ONU激光门控路径故障,在其下行PLOAM接收与功率调节路径正常,且参考链路通过可观测性预检时,可执行定位。基于正交码的码分复用机制,可在8个诊断周期内同时完成6个候选ONU的身份区分,相较于串行逐台排查方案大幅缩短定位时长。定位诊断阶段仅调整ONU发射功率,无需去激活或关断候选ONU,仅在两轮校验确认后才对目标ONU执行去激活,最大程度降低对正常业务的影响。全程所有ONU保持在同一GPON上行工作波长,无需可调波长光模块,可直接部署于现有GPON网络。通过无异常基线阈值、唯一性判定、互补码符号翻转、健康控制不相关、隔离后恢复确认五层校验,有效抑制接收链路漂移、偶然相关与间歇异常导致的误定位。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure FT_1
    Figure FT_1
  • Figure FT_2
    Figure FT_2
  • Figure FT_3
    Figure FT_3
Patent Text Reader

Abstract

This invention discloses an orthogonal power coding system and method for locating and isolating abnormal uplink emitting ONUs in GPON, relating to the fields of gigabit passive optical networks, optical access network operation security, and abnormal uplink light source location. The identity coding in this invention is applied by the OLT through standard directional power control messages, eliminating the need for candidate ONUs to generate or send any diagnostic-specific signals. Even if the ONU's laser gating path fails, location can be performed if its downlink PLOAM reception and power adjustment paths are normal, and the reference link passes observability pre-check. Based on the code division multiplexing mechanism of orthogonal codes, the identity of six candidate ONUs can be distinguished simultaneously within eight diagnostic cycles, significantly shortening the location time compared to a serial, one-by-one troubleshooting approach. During the location diagnosis phase, only the ONU's transmit power is adjusted; there is no need to deactivate or shut down candidate ONUs. Deactivation of the target ONU is only performed after two rounds of verification, minimizing the impact on normal services.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of gigabit passive optical networks, optical access network operation security, and abnormal uplink light source location technology, specifically an orthogonal power encoding location and isolation system and method for abnormal uplink light emission ONUs in GPON. Background Technology

[0002] Gigabit passive optical networks (GONORs) employ a time-division multiple access (TDMA) mechanism for uplink transmission. The Optical Line Terminal (OLT) allocates non-overlapping uplink time slots to different Optical Network Units (ONUs) through bandwidth mapping (BWmap). Normally, an ONU only activates its uplink laser during authorized time slots. Since the uplink optical signals from multiple ONUs are converged to the same OLT burst receiver via a passive splitter, any ONU emitting light during an unauthorized time slot will interfere with the legitimate uplink bursts of other ONUs, leading to service errors or even interruptions.

[0003] Existing abnormal ONU location solutions have several shortcomings: First, window identification schemes based on identification codes and pilot signals require candidate ONUs to generate and send dedicated diagnostic signals. If the abnormal ONU firmware fails and refuses to cooperate, the location link directly fails. Second, schemes based on dark window optical power detection and single ONU bit error statistics can only confirm the existence of an anomaly, but cannot distinguish multiple candidate fault paths at the shared receiver, requiring individual troubleshooting, resulting in low location efficiency. Third, the location latency and service disturbance of serial sleep, individual deactivation, and time slot rearrangement schemes increase linearly with the number of candidates, and intermittent anomalies are prone to disappear within the observation window, leading to misattribution. Fourth, multi-wavelength grouping iterative schemes rely on tunable wavelength optical modules and multiple uplink wavelength resources, and cannot be directly applied to GPON scenarios where all ONUs share the same uplink operating wavelength. Fifth, GPON uplink bit interleaving parity check (BIP-8) accumulates across bursts, and without establishing clear measurement boundaries, it is difficult to uniquely map the bit error results to a specific diagnostic cycle. Summary of the Invention

[0004] The purpose of this invention is to provide an orthogonal power encoding location and isolation system and method for abnormal uplink emission ONUs in GPON, so as to solve the problems existing in the prior art.

[0005] To achieve the above objectives, the present invention provides the following technical solution: a method for orthogonal power encoding location and isolation of abnormal uplink luminous ONUs in GPON, comprising the following steps: Step 1: Establish a diagnostic session and save the power mode, equalization delay, ONU-ID, serial number, Alloc-ID / T-CONT, BWmap version, and protection status of each ONU; select a reference ONU with fixed power, multiple candidate ONUs, and a healthy control ONU with normal laser gating, ensuring all ONUs operate at the same GPON uplink wavelength; perform high and low transmit power mode calibration on the candidate ONUs and the healthy control ONU, determine the power stabilization waiting time, and bind each candidate ONU and the healthy control ONU to an independent code line in the orthogonal balanced codebook; Step 2: Establish a diagnostic baseline within the no-anomaly window where there is no unauthorized uplink emission on the port, calculate the relevant thresholds and the upper limit of the no-anomaly reference response, and store them together. The baseline will be invalidated and re-established when the port configuration, ONU set, or code line binding is changed. Step 3: Perform the first round of power coding diagnosis. Switch the transmit power mode of candidate ONU and health control ONU cycle by cycle according to the code line bound to each ONU. In the reference protection zone of each cycle, only the reference ONU is allocated uplink authorization. Collect the legal burst reception quality of the reference ONU and generate a reference response sequence. Calculate the normalized correlation coefficient between each code line and the reference response sequence. Determine whether there is a unique abnormal ONU to be confirmed based on the correlation threshold. Step 4: Perform the second round of complementary code verification and diagnosis. Apply the complementary code of its binding code line to the only ONU to be confirmed. Fix the other candidate ONUs to the low transmit power mode. The health control ONU maintains the original binding code line switching. Collect the reference response sequence again and calculate the correlation coefficient. Verify that the correlation coefficient corresponding to the target code line is flipped and the correlation coefficient corresponding to the health control ONU does not exceed the correlation threshold. Step 5: After the verification is passed, restore the power mode and uplink scheduling of the non-target ONU before diagnosis, deactivate the ONU to be confirmed, continuously collect the reference response after isolation, and after confirming that all have been restored to within the upper limit of the abnormal reference response, output the identity of the abnormal ONU and keep it in isolation. The abnormal ONU is that it is still emitting light without obtaining uplink authorization from BWmap, while its downlink PLOAM and power regulation channels are normal, and the unauthorized optical power still changes with the directional CPL; Under the same uplink wavelength, one reference ONU with fixed normal power, six candidate ONUs, and one laser-gated healthy control ONU are set up; An 8th-order Hadamard balanced codebook with all +1 code rows removed is used, and 8 effective diagnostic cycles are performed. Within the reference protection zone, only reference ONUs are authorized, and the identity attribution response is based solely on the B2 BIP-8 bit difference of the reference ONU and the reference burst group reception failure flag. The valid calibration burst RSSI of candidate ONUs and health control ONUs is only used to confirm power status and is not involved in identity attribution; The second round uses a target complementary code, with the remaining candidates fixed at low power, and health control maintains the original code. It also limits the number of consecutive responses after isolation to no more than 5. As a condition for final confirmation.

[0006] Before the first round of localization, all six candidate ONUs and the health control ONU were set to Normal mode, and eight reference responses were collected continuously. Then, uniformly set it to Normal-3 dB mode and continuously acquire 8 reference responses. Calculate separately: Pre-execution within the error-free window The same set of full height and full low were measured in pairs to obtain and ,in As a preset positive integer, Preset positive margin: Only when And at least one of the eight low-power samples satisfies If the system enters the location phase, it will either output that the diagnostic dynamic range is exceeded or the reference link is unobservable, and the system will restore the configuration without attribution.

[0007] The baseline is saved only if the following conditions are met simultaneously: If any condition is not met, data will be collected again.

[0008] Furthermore, in step one, the process of determining the high and low transmit power mode calibration and power stabilization waiting time is as follows: The high transmit power state is defined as Normal mode, and the low transmit power state is defined as Normal-3 dB mode. For each candidate ONU and health control ONU, the current power mode is first confirmed based on the received optical power of the legitimate uplink calibration burst. Then, based on the power level difference between the currently confirmed power mode and the target power mode and the adjustment direction, the required number of directional Change_Power_Level messages to make the ONU reach the target power mode are sent. This message is not sent if the target power mode is consistent with the current power mode. The ONU is retained in the coding batch only if the received optical power of the corresponding ONU in each of the three consecutive valid uplink calibration bursts in each power mode is within the corresponding receiving interval that is within the safe dynamic range of the OLT and does not overlap with each other. For each bidirectional power mode switch between Normal and Normal-3 dB, the time from the completion of the last required directional Change_Power_Level message to the time when the received optical power of the third consecutive valid uplink calibration burst enters the target reception range is recorded. The maximum value among all recorded values ​​of all candidate ONUs and health control ONUs is taken as the power stabilization waiting time. .

[0009] Furthermore, in step one, the orthogonal balanced codebook uses an 8th-order normalized Hadamard matrix with all +1 code rows removed. Each code row satisfies the balance constraint and the pairwise orthogonality constraint, satisfying the following mathematical relationship: in, Indicates the first The first code line Each code element The code length is 8; a symbol value of +1 corresponds to the Normal transmit power mode, and a symbol value of -1 corresponds to the Normal -3 dB transmit power mode; the six candidate ONUs are bound to the first six code lines in sequence, and the health control ONU is bound to the seventh code line.

[0010] Furthermore, in steps three and four, the reference protection zone for single-cycle power coding diagnosis consists of a pre-protection time, a reference burst group time, and a post-protection time. Both the pre-protection and post-protection times are set according to the sum of the OLT burst receiver recovery time, the ONU laser shutdown tolerance, and the equalization delay error. Within the reference protection zone, uplink authorization is only allocated to the fixed Alloc-ID of the reference ONU with fixed Normal power, and no uplink authorization is allocated to candidate ONUs, health control ONUs, or other ONUs. The reference burst group contains three independent uplink bursts: B0, B1, and B2. An unlicensed interval sufficient to allow the latter burst to form a new uplink burst is set between any two adjacent bursts. The start time, license length, FEC status, transmit power, and equalization delay of the three bursts are all kept fixed. The single-cycle response is unified as follows: in The difference in the number of bits between the BIP-8 carried by the reference ONU's B2 and the online calculation results of the OLT is due to... ; This is a reference burst group reception failure flag; if B0, B1, or B2 arrives without authorization, burst delimitation cannot be completed, ONU-ID is inconsistent, accumulated bytes cannot be reliably obtained, or B2 cannot be verified, then... and In other cases, Preamble, delimiter, and FEC checksum are excluded only according to protocol rules and are not considered failure conditions.

[0011] Furthermore, in step two, the specific process for establishing the baseline is as follows: Within a non-anomaly window where the port configuration version, ONU set, and code line binding remain unchanged, twenty sets of baseline power coding are executed. Each set contains eight single-cycle operations, and the eight single-cycle responses of each set form a baseline response sequence. The correlation coefficients between the zero-variance sequence and all code lines are set to zero. For non-zero-variance sequences, the baseline correlation coefficients of each code line are calculated using the same normalized correlation formula as for anomaly localization. ; All candidate ONUs and health control ONUs were set to Normal-3 dB mode, and thirty-two baseline responses were collected using the same reference protection zone and response rules. ; Relevant threshold No upper limit for abnormal response The following formulas shall be uniformly adopted for pre-inspection conditions: Only when And at least one of the eight low-power pre-detection samples meets the following requirements. If the location is entered on time, it will not be attributed and the configuration will be restored; any of the 32 baseline samples or At that time, the baseline was re-acquired; Relevant thresholds No abnormal reference response limit It is associated with and stored in relation to port configuration version, ONU set, and code line binding information.

[0012] Furthermore, in step three, the first round of power coding diagnosis executes eight effective diagnostic cycles, and the responses of these eight cycles form the first round reference response sequence. Its average value is denoted as When the variance of the response sequence is zero, the correlation coefficients of all code lines are set to zero; when the variance is non-zero, the correlation coefficients of each code line are indexed. Calculate the first round of normalized correlation coefficients. The calculation formula is: in, This is the reference response value for the m-th cycle in the first round. It is the m-th code element of the u-th code row; First round uniqueness condition: The second round applies pressure to the target ONU. ,but Still relative to the original binding line Calculate, and simultaneously satisfy: If any condition is not met, an abnormal ONU identity must not be output.

[0013] Furthermore, in step four, the second round of complementary code verification and diagnosis is performed for eight valid cycles, and the responses of the eight cycles form the second round reference response sequence. The second round of normalized correlation coefficients for each code line is calculated using the same formula; the unique ONU to be confirmed is determined to be an abnormal emitting ONU if and only if the following three conditions are met simultaneously: The first condition indicates that the correlation coefficient of the target code line flips sign in both rounds of diagnosis; the second condition indicates that the target correlation coefficient exceeds the correlation threshold in both rounds; and the third condition indicates that the health control ONU does not show significant correlation in either round of diagnosis.

[0014] Furthermore, in step five, the specific process for targeted deactivation and isolation confirmation is as follows: First, restore the power mode and uplink scheduling configuration saved by all non-target ONUs before diagnosis; stop allocating user data and regular management uplink authorization to the ONU to be confirmed, and only retain temporary calibration authorization for it; based on the level difference and adjustment direction between the currently confirmed power mode and the Normal-3 dB mode of the ONU, send the required number of directional Change_Power_Level messages to directionally reduce its transmit power; after the received optical power of three consecutive valid uplink calibration bursts has entered the low power reception range, and the power adjustment is confirmed to be in place, revoke the temporary calibration authorization allocated to the target ONU; send three consecutive Deactivate_ONU-ID messages to the ONU to be confirmed. After the deactivation operation is completed, in five consecutive reference protected areas with the same configuration, post-treatment reference responses are obtained according to the same response rules, and the recovery conditions are met. When the ONU is abnormal, its ONU-ID is output, its serial number is recorded in the management database, and it remains in an isolated state without being assigned uplink authorization. When any response value exceeds the limit, the abnormal identity is not output, the recovery failure is recorded, and the process of re-registering is initiated.

[0015] An orthogonal power coding localization and isolation system for GPON uplink abnormal light-emitting ONUs includes a power calibration and codebook binding module, a baseline establishment module, a first-round localization diagnosis module, a complementary code verification module, and a directional isolation module; The power calibration and codebook binding module is used to establish a diagnostic session and save an ONU configuration snapshot, select a reference ONU, candidate ONUs and health control ONUs, complete bidirectional calibration of two power modes, Normal and Normal-3 dB, determine the power stabilization waiting time, and bind the six candidate ONUs and health control ONUs to the independent balanced code lines of the 8th order Hadamard codebook respectively. The baseline establishment module is used to perform twenty sets of baseline power coding and thirty-two sets of low-power baseline measurements within an anomaly-free window, calculate and store relevant thresholds and anomaly-free reference response upper limits, monitor configuration changes and trigger baseline reconstruction; The first round of positioning and diagnosis module is used to send directional Change_Power_Level messages to switch the power mode of each ONU in cycles, configure the reference protection zone and collect the BIP-8 check difference and reception status of the reference ONU, generate a reference response sequence, calculate the normalized correlation coefficient and output the unique ONU to be confirmed judgment result; The complementary code verification module is used to apply complementary codes to the ONU to be confirmed to perform a second round of diagnosis, verify the correlation coefficient sign flipping condition and the health control uncorrelated condition, and output the verification conclusion of the abnormal ONU. The directional isolation module is used to restore the configuration of non-target ONUs, adjust the power of the target ONU in a directional manner and issue a deactivation command, collect the reference response after isolation and complete the restoration confirmation, and output the final isolation result.

[0016] Furthermore, the first round of positioning and diagnostic module includes a power control unit, a reference protection zone scheduling unit, a response acquisition unit, and related calculation units; The power control unit is used to confirm the current power mode of each ONU, calculate the required number of Change_Power_Level messages based on the target symbol and send them out in a targeted manner, and verify the power status through a valid calibration burst after waiting for the power to stabilize. The reference protection zone scheduling unit is used to configure the pre- and post-protection times of the reference protection zone and the authorization parameters of the three reference bursts B0, B1, and B2, and to control that only uplink authorization is allocated to the reference ONU within the protection zone. The response acquisition unit is used to extract the BIP-8 field of the B2 burst of the reference ONU, calculate the bit difference with the locally calculated value, and generate a single-cycle response value in combination with the burst reception status. The relevant calculation unit is used to calculate the normalized correlation coefficient between the reference response sequence and each code line, and outputs the determination result of the ONU to be confirmed based on the correlation threshold and uniqueness rule.

[0017] Compared with the prior art, the beneficial effects of the present invention are: The identity encoding of this invention is applied by the OLT through standard directional power control messages, without requiring candidate ONUs to generate or send any diagnostic-specific signals. Even if the ONU's laser gating path fails, location can be performed if its downlink PLOAM reception and power adjustment paths are normal and the reference link passes the observability pre-check. Based on the code division multiplexing mechanism of orthogonal codes, the identity of 6 candidate ONUs can be distinguished simultaneously within 8 diagnostic cycles, significantly shortening the location time compared to the serial, one-by-one troubleshooting scheme. During the location diagnosis phase, only the ONU's transmit power is adjusted, without deactivating or shutting down candidate ONUs. Deactivation of the target ONU is only performed after two rounds of verification confirmation, minimizing the impact on normal services. All ONUs maintain the same GPON uplink operating wavelength throughout the process, eliminating the need for adjustable wavelength optical modules and allowing direct deployment in existing GPON networks. Through five layers of verification—no abnormal baseline threshold, uniqueness determination, complementary code symbol flipping, health control irrelevance, and recovery confirmation after isolation—false location caused by receive link drift, accidental correlation, and intermittent anomalies is effectively suppressed. Attached Figure Description

[0018] Figure 1 This is a schematic diagram of the GPON uplink abnormal light emission ONU positioning structure of the present invention; Figure 2 This is a schematic diagram of the processing flow for the m-th diagnostic cycle of the present invention; Figure 3 This is a flowchart of the abnormal light-emitting ONU positioning and isolation process of the present invention. Detailed Implementation

[0019] The technical solutions of the present invention will be clearly and completely described below with reference to the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.

[0020] Please see Figure 1-3 This invention provides an orthogonal power coding system for locating and isolating GPON uplink abnormal emitting ONUs. It is applicable to GPON ONUs that continue to emit light without receiving uplink authorization from the OLT via BWmap, and whose downlink PLOAM receive and transmit power adjustment channels are functioning normally and can still execute OLT-directed Change_Power_Level messages. All diagnostic targets are connected to the same GPON port. Throughout the entire diagnostic cycle of the first round of anomaly location and the second round of complementary code confirmation, the six candidate ONUs, one health control ONU, and one reference ONU remain on the same GPON uplink operating wavelength without wavelength migration or group switching.

[0021] Throughout the diagnostic process, the OLT does not require, configure, or request any candidate ONU to send identification codes, pilot signals, specific RF identifiers, or candidate-specific data patterns for location purposes during unauthorized periods. Controlled disturbances corresponding to the candidate ONU's identification code are introduced solely by the OLT through a directed Change_Power_Level message to change its transmit power state; the candidate ONU itself is not aware of the diagnostic process. Candidate identification attribution is not based on adjusting the time slot arrangement of different BWmaps or comparing sets or intersections of affected time periods. During the two rounds of diagnostics, candidate ONUs are not activated one by one, nor is the fault scope narrowed by iteratively migrating candidate subsets across multiple uplink wavelengths.

[0022] Throughout the baseline establishment, anomaly localization, and isolation verification process, the reference ONU maintains a fixed Normal power mode, and its uplink bursts are legally authorized bursts, serving as a third-party quality observation target. The laser gating function of the health control ONU is fully functional, and it does not emit light during unauthorized periods. Like the candidate ONU, it switches between high and low transmit power according to an independent balanced codeline, used to expose incidental correlations caused by receive link drift, scheduling configuration contamination, or random noise, serving as a verification benchmark for diagnostic effectiveness. Candidate ONUs with normal laser gating are not authorized within the reference protection zone, so their power changes do not couple to the reference response; however, candidate ONUs that emit light abnormally still output light during unauthorized periods, and their power changes are coupled to the receive quality of the reference ONU's legal bursts via the optical splitter's optical superposition effect. This creates a physical identity marker where only ONUs that emit light illegally can map their power code to the reference response.

[0023] The ONU uplink optical transmitter includes a laser gating unit and a power level setting unit. The laser gating unit controls the laser switching based on uplink authorization; the power level setting unit updates the laser driver's bias current, modulation current, or emission gain based on the OLT-oriented Change_Power_Level message. In this case, the anomaly is that the laser gating unit remains permanently open during unauthorized periods, while the power level setting unit remains active. Therefore, the unauthorized emission power of this ONU can still exhibit observable changes as it switches between Normal and Normal-3 dB power modes.

[0024] I. Physical Mechanism Let the first The illegal interference optical power generated by a normally functioning laser-gated candidate ONU within the reference protection zone is [value missing]. Because it strictly adheres to the BWmap authorization for laser activation, and remains off within the reference protection zone where uplink authorization is not obtained, it satisfies the following: Let the candidate ONU number for abnormal emission be . When it is in a low-power state, the illegal interference optical power formed on the OLT side is The difference between its high and low transmission power is The linear ratio corresponding to optical power is ,satisfy: The illegal interference optical power of the abnormal ONU in the m-th diagnostic cycle. It can be represented as: in, The m-th symbol in the code line is used to bind the abnormal ONU. A value of +1 corresponds to high-power mode, and a value of -1 corresponds to low-power mode. When the symbol is +1, the exponent term is 1, and the interference power is... This refers to high-power interference; when the symbol is -1, the exponent term is 0, and the interference power is... This refers to low-power interference.

[0025] Assume the received signal power of a valid burst from a fixed power reference ONU on the OLT side is... The system background noise power is Then the equivalent signal-to-interference-plus-noise ratio of the reference burst in the m-th cycle for: For normal candidate ONUs, the interference term is 0, so it does not affect the signal-to-interference-plus-noise ratio (SINR). Only ONUs that emit abnormal light will have their interference power change with their own symbols, causing the SINR of the reference burst to fluctuate synchronously. This, in turn, causes the quality indicators of the reference burst, such as the received bit error rate (BER) and BIP-8 bit difference, to change synchronously with the code line. The reference response increases as the SINR decreases; that is, the stronger the interference, the higher the reference response value. This mechanism is the physical basis for identity attribution in this scheme: only unauthorized candidate ONUs that are still emitting light can couple the power coding applied by the OLT to the legitimate burst quality of the third-party reference ONU through the faulty optical path. The identity label does not depend on any content actively transmitted by the candidate ONU.

[0026] II. High and Low Power Calibration, Stabilization Waiting Time, and Codebook Design 1. Power Mode Calibration This embodiment employs two transmit power levels: a high-power mode, which is the Normal mode, i.e., the ONU's conventional transmit power; and a low-power mode, which is the Normal-3 dB mode, i.e., a transmit power 3 dB lower than the conventional power. Both power modes are within the transmit power range specified by the GPON standard, and as verified by the OLT receiver, the received optical power ranges corresponding to the two modes do not overlap and can be clearly distinguished.

[0027] Power calibration was performed on each of the six candidate ONUs and one health control ONU. The calibration process was as follows: The first step is to determine the current power mode of the ONU based on the received optical power of the recent legitimate uplink calibration burst. The second step is to calculate the number of targeted Change_Power_Level messages to be sent based on the difference between the current power mode and the target power mode, and the adjustment direction. In the GPON standard, each Change_Power_Level message corresponds to a fixed power adjustment step size; therefore, the required number of messages can be obtained by the ratio of the power difference to the step size. The third step is to send the corresponding number of Change_Power_Level messages to the target ONU. If the current mode is already consistent with the target mode, no messages are sent. The fourth step is to continuously monitor the legitimate uplink calibration burst received optical power of the ONU. The power mode calibration is considered successful only when the received optical power of three consecutive calibration bursts falls within the receiving range of the corresponding target power mode and the range is within the safe dynamic range of the OLT optical receiver.

[0028] Only ONUs that have completed calibration in both power modes and whose receiving intervals do not overlap can enter the subsequent coding diagnostic batch; if an ONU cannot achieve stable separation of the two power modes, it will be removed from the candidate set, its original power mode will be restored, and it will not participate in this diagnostic.

[0029] 2. Determination of power stabilization waiting time After the power adjustment command is issued, the ONU's transmit power needs a certain amount of time to stabilize to the target value. To ensure that the power remains stable during the diagnostic cycle, the power stabilization waiting time needs to be measured. .

[0030] For each candidate ONU and health control ONU, the power stabilization time in both the Normal to Normal-3 dB and Normal-3 dB to Normal directions is measured: the time is started from the moment the last Change_Power_Level message is sent and continues until the moment when the received optical power of the third consecutive valid uplink calibration burst enters the target reception range. This time is the stabilization time for a single handover.

[0031] Record all settling times for all seven ONUs and in both directions, and take the maximum value as the global power stabilization wait time. After the power configuration for each diagnostic cycle is completed, you must wait... The duration is adjusted to ensure that the transmit power of all ONUs has stabilized before entering the reference measurement phase, in order to avoid interference with the diagnostic results during the power transition process.

[0032] 3. Orthogonal balanced codebook This embodiment uses an 8th-order normalized Hadamard matrix as the codebook. After removing the DC code lines containing all +1s, seven balanced code lines remain, corresponding to six candidate ONUs and one health control ONU. Each code line satisfies balance and pairwise orthogonality. Specifically, the balance mechanism ensures that the duration of high and low power modes is equal for each ONU within a single diagnostic round, avoiding the impact of power offset on ONU services and lifespan. The pairwise orthogonality mechanism ensures that the power codes of different ONUs do not interfere with each other during correlation operations, allowing the contribution of each candidate to be separated from the superimposed reference response, thus achieving parallel positioning. The specific values ​​of the seven code lines are as follows: Candidate ONU1 binding code line: Candidate ONU2 binding code line: Candidate ONU3 binding code line: Candidate ONU4 binding code line: Candidate ONU5 binding code line: Candidate ONU6 binding code line: Health control ONU binding code line: A symbol value of +1 corresponds to the Normal high-power mode, and a symbol value of -1 corresponds to the Normal -3 dB low-power mode. The binding relationship between the code line and the ONU remains fixed within a single diagnostic session and is stored in association with baseline parameters.

[0033] III. Single-cycle power encoding diagnostic operation A single diagnostic cycle is the basic unit constituting baseline measurement, the first round of localization, and the second round of verification. Each cycle inputs the target power mode of seven ONUs and outputs a reference response value. The specific process of a single cycle operation is as follows: 1. Power Status Configuration The OLT first reads the most recent valid uplink calibration burst received optical power of the seven ONUs to confirm the current power mode of each ONU. For each ONU, it compares the current mode with the target mode for the current cycle, calculates the required number of Change_Power_Level messages and the adjustment direction, and sends the messages to the corresponding ONUs; no messages are sent to ONUs already in the target mode.

[0034] The completion time of sending the last Change_Power_Level message among the seven ONUs is taken as the completion time of the power status setting for this cycle; if none of the ONUs need to adjust their power, the start time of the power configuration operation for this cycle is taken as the completion time.

[0035] From the moment the power setting is completed, wait for the power to stabilize for a certain period of time. This ensures that the transmit power of all ONUs has stabilized to the target value. Subsequently, three consecutive valid uplink calibration bursts are allocated to each of the seven ONUs, and the time slots of all calibration bursts do not overlap with the reference protection zone.

[0036] The received optical power of all twenty-one calibration bursts is checked. The power status of the current cycle is deemed valid only if the received optical power of all bursts falls within the target power reception range of the corresponding ONU, and the process proceeds to the reference measurement phase. If any ONU's calibration burst fails to enter the target range, the current cycle is deemed invalid, and the current power mode of each ONU is reconfirmed and the configuration for the current cycle is re-executed. If multiple consecutive cycles are invalid, the diagnostic session is terminated, and the original configuration of all ONUs is restored.

[0037] 2. Reference protected areas and reference emergency response groups The reference protection zone is a dedicated uplink time window for acquiring reference responses, consisting of three parts: the pre-protection time, the reference burst group time, and the post-protection time. The lengths of both the pre-protection and post-protection times are set as the sum of the OLT burst receiver recovery time, the ONU laser shutdown tolerance, and the equalization delay error, to prevent other burst edges in adjacent time slots from leaking into the reference measurement interval.

[0038] The reference protection zone is not a completely unauthorized empty window. Within the zone, only three uplink burst authorizations (B0, B1, and B2) are sequentially assigned to the fixed Alloc-ID of the reference ONU. No uplink authorizations are assigned to any candidate ONU, health control ONU, or other service ONU, ensuring that the reference burst is only affected by unauthorized light emission.

[0039] B0, B1, and B2 are three independent uplink bursts. A sufficiently long unlicensed guard interval is set between any two adjacent bursts to ensure that each burst is an independent uplink burst, forming its own independent burst delimitation and reception process. The start time, license length, FEC enable status, transmit power configuration, and equalization delay parameters of the three bursts remain fixed throughout the entire diagnostic session, eliminating the impact of configuration changes on reception quality. Each burst includes a PLOu field and a BIP-8 field, conforming to the GPON standard uplink burst format.

[0040] B0 is used to flush the accumulated state before the start of the diagnostic cycle, and B1 is used to establish the BIP-8 accumulation start point for this cycle. The OLT, according to the GPON receiver's BIP-8 rules, calculates the local BIP-8 online for the bytes actually received after the BIP-8 field of B1 and before the BIP-8 field of B2, which should be included in the accumulation according to the protocol, and compares it with the BIP-8 carried by B2. Preamble, delimiter, and FEC check bytes are excluded according to the protocol rules; if the accumulated bytes cannot be reliably obtained or B2 cannot complete the check, then... , .

[0041] The BIP-8 field carried by the B2 burst is the checksum calculated by the ONU for the aforementioned complete cumulative range. The OLT compares the locally calculated BIP-8 value with the checksum carried by the B2 burst, and the difference in the number of bits is recorded as follows: The value ranges from 0 to 8. If B2 burst fails to receive, delimit, or complete the check comparison, then let .

[0042] Introduce a receive failure flag When any of the following situations occur, A value of 1 indicates: B0, B1, or B2 did not arrive at the authorized time; an optical signal was detected but burst delimitation could not be completed; the detected burst ONU-ID is inconsistent with the reference ONU; the BIP-8 check for the B2 burst could not be completed. Under other normal circumstances... The value is 0. In this embodiment, the single-cycle reference response value The calculation formula is: This response value comprehensively reflects the bit error rate and reception failure status of the reference burst; the stronger the interference, the higher the response value. The reference response sequence used for identity attribution is generated solely from the B2 BIP-8 comparison result of the reference ONU and the reception failure flag of the reference burst group. The legitimate calibration burst received optical power (RSSI) of the candidate ONU and the health control ONU is only used to verify the power status, is not included in the response sequence, does not participate in code correlation calculations, and is not used as a basis for identity determination. The OLT does not recover any candidate ONU identity information, codeword content, or pilot signal from the superimposed optical signal in the reference protection zone; attribution is based entirely on the correlation between power coding and reference quality.

[0043] IV. Establishment of Abnormal Baselines The baseline serves as the benchmark for anomaly detection. It must be established within a no-anomaly window, confirming that no unauthorized uplink emission occurs on the port, and it must correspond one-to-one with the current port configuration version, ONU set, and code line binding relationship. If any configuration condition changes, the original baseline immediately becomes invalid and must be re-established.

[0044] The baseline includes two types of parameters: correlation threshold. Upper limit of reference response without anomalies .

[0045] 1. Establishment of relevant thresholds Twenty sets of baseline power coding measurements were performed, each set consisting of eight single-cycle operations. The power configuration of each set was completely consistent with the subsequent anomaly localization, i.e., the seven ONUs switched power according to the binding code line. The eight single-cycle responses of each set formed a baseline response sequence. ,in This is the group number, ranging from 1 to 20.

[0046] For each set of baseline response sequences, calculate its baseline correlation coefficient with the seven code lines. , in The code line index takes values ​​from 1 to 6, corresponding to six candidates, and h corresponds to the health control ONU. The correlation coefficient is calculated in the same way as in the anomaly localization stage: if the variance of the response sequence is zero, all correlation coefficients are set to zero; when the variance is non-zero, the normalized Pearson correlation coefficient formula is used for calculation.

[0047] Relevant threshold Take the maximum absolute value of all correlation coefficients from the twenty baseline groups, and then add a margin of 0.05, i.e.: Only when calculated When the threshold is less than 1, the baseline is valid and saved; if the threshold does not meet the condition of being less than 1, it indicates that there is abnormal interference during the baseline measurement process, and it needs to be investigated and measured again. This threshold represents the maximum random correlation that noise and drift can produce in an anomaly-free scenario. Correlation exceeding this threshold in subsequent anomaly localization can be determined as significant correlation.

[0048] 2. Establishment of an upper limit for reference responses without anomalies All candidate ONUs and health control ONUs were set to Normal-3 dB low-power mode, with the reference protection zone configuration unchanged, and thirty-two single-cycle reference responses were continuously acquired. ,in This is the sample number, ranging from 1 to 32.

[0049] No abnormal reference response limit Take the maximum value of the thirty-two baseline responses, and then add a margin of 0.01, that is: This upper limit represents the highest level of the reference response when there is no abnormal light emission interference, and is used for subsequent recovery verification after isolation: if the reference response falls back below this upper limit after deactivating a certain ONU, it indicates that the ONU is indeed the source of interference, forming a causal closed loop.

[0050] V. First Round of Anomaly Localization and Related Uniqueness Determination Before the first round of localization, all six candidate ONUs and the health control ONU were set to Normal mode, and eight reference responses were collected continuously. Then, uniformly set it to Normal-3 dB mode and continuously acquire 8 reference responses. Calculate separately: Pre-execution within the error-free window The same set of full height and full low were measured in pairs to obtain and ,in As a preset positive integer, Preset positive margin: Only when And at least one of the eight low-power samples satisfies If the system enters the location phase, it will either output that the diagnostic dynamic range is exceeded or the reference link is unobservable, and the system will restore the configuration without attribution.

[0051] The baseline is saved only if the following conditions are met simultaneously: If any condition is not met, data will be collected again.

[0052] When the OLT detects an uplink abnormal light emission alarm or an abnormal increase in service error code on the PON port, it triggers the anomaly location process and performs the first round of power coding diagnosis.

[0053] The first round of diagnostics consists of eight valid diagnostic cycles, each corresponding to the m-th bit of seven code lines, sequentially configuring the power mode of each ONU. The reference response values ​​of the eight cycles form the first round response sequence. Calculate the average value of the sequence. .

[0054] If the variance of the response sequence is zero, it means that the reference response has no fluctuation and there is no interference that synchronizes with the power code. At this time, the correlation coefficients of all seven code lines are set to zero, indicating that there is no significant correlation and no abnormal identity is output.

[0055] If the variance of the response sequence is non-zero, then for each codeline index Calculate its normalized correlation coefficient with the response sequence. The calculation formula is: The correlation coefficient ranges from -1 to 1. The closer the absolute value is to 1, the stronger the synchronization between the code line and the reference response, and the higher the probability that the corresponding ONU is an abnormal light source. After calculating all correlation coefficients, a uniqueness determination is performed: a unique ONU to be confirmed is formed only if the following three conditions are met simultaneously: There exists one and only one candidate ONU whose absolute value of correlation coefficient is greater than the correlation threshold. ,Right now ,in This is the candidate's serial number; The absolute values ​​of the correlation coefficients of the remaining five candidate ONUs are all less than or equal to the correlation threshold, that is, for all and All have ; The absolute value of the correlation coefficient of the health control ONU is less than or equal to the correlation threshold, i.e. .

[0056] If zero candidates exceed the threshold, it indicates that the current interference and power coding are out of sync, making it impossible to locate the source through this round of coding. The candidate set needs to be adjusted or the diagnostic scope expanded. If multiple candidates exceed the threshold, it indicates the possible presence of multiple abnormal emitting ONUs or contamination in code line binding. The candidate subset needs to be reassembled and the coding diagnosis repeated. When the number of health control ONUs exceeds the threshold, it indicates a systematic error or link drift in the diagnostic process. The results of this round of diagnosis are invalid, and the configuration needs to be checked and the process retried.

[0057] VI. Complementary Code Verification and Targeted Deactivation After the first round of localization identifies a unique ONU to be confirmed, a second round of complementary code verification and diagnosis is performed to further rule out accidental correlations and establish causal relationships.

[0058] The second round of diagnostics is still performed under the same uplink operating wavelength, for a total of eight effective cycles. The power configuration rule is: the unique ONU to be confirmed is configured according to the complementary code of its original binding code line. Power switching is performed by inverting the symbol in each cycle; the other five candidate ONUs are fixed in Normal-3 dB low-power mode and do not perform power switching; the health control ONU continues to follow the original bound code line. Switch power to maintain the verification function.

[0059] The response of eight cycles constitutes the second round response sequence. The second-round correlation coefficients for each code line are calculated using the same formula. Since the ONU to be confirmed uses complementary codes, if it is indeed an interference source, the phase of its power fluctuations is completely opposite to that of the first round, and the corresponding correlation coefficient sign should be flipped; while other candidates, due to their fixed power, will not produce synchronous fluctuations, and their correlation coefficients should remain insignificant. The review must pass all three of the following conditions simultaneously: The first condition verifies symbol flipping, confirming that the interference does indeed change with the power code of the target ONU, showing a causal relationship; the second condition verifies that both rounds are significantly correlated, ruling out random fluctuations in a single round; the third condition verifies that health control has never been significantly correlated, confirming that the diagnostic process was not systematically contaminated.

[0060] Only when all three conditions are met can the ONU be confirmed as an abnormal emitting ONU, and subsequent deactivation operations be performed; if any one condition is not met, the current round of diagnosis is determined to be contaminated, the abnormal identity is not output, the pre-diagnosis configuration of all ONUs is restored, and the current diagnosis session ends.

[0061] After confirming the abnormal ONU, perform targeted deactivation and isolation operations: First, restore the power mode and uplink scheduling configuration saved by all non-target ONUs before diagnosis; stop allocating user data and regular management uplink authorization to the ONU to be confirmed, and only retain temporary calibration authorization for it; based on the level difference and adjustment direction between the currently confirmed power mode and the Normal-3 dB mode of the ONU, send the required number of directional Change_Power_Level messages to directionally reduce its transmit power; after the received optical power of three consecutive valid uplink calibration bursts has entered the low power reception range, and the power adjustment is confirmed to be in place, revoke the temporary calibration authorization allocated to the target ONU; send three consecutive Deactivate_ONU-ID messages to the ONU to be confirmed. After the deactivation operation is completed, in five consecutive reference protected areas with the same configuration, post-treatment reference responses are obtained according to the same response rules, and the recovery conditions are met. When the ONU is abnormal, its ONU-ID is output, its serial number is recorded in the management database, and it remains in an isolated state without being assigned uplink authorization. When any response value exceeds the limit, the abnormal identity is not output, the recovery failure is recorded, and the process of re-registering is initiated.

[0062] After completing the deactivation operation, perform isolation effectiveness verification: Collect reference responses after treatment in five consecutive reference protection zones with identical configurations, following the same rules. If all five response values ​​are not greater than the upper limit of the reference response without anomalies... This indicates that the interference disappeared after the deactivation operation, verifying that the ONU was indeed the abnormal light source. At this point, the ONU-ID of the ONU is output, its device serial number is recorded in the network management database, and it remains in an isolated state without being assigned uplink authorization. If any of the five response values ​​exceeds... This indicates that the interference has not been eliminated, the source of the anomaly has been incorrectly identified, the anomaly identity is not output, the record recovery failed, the target ONU will be included in the re-registration process, and the fault will be further investigated.

[0063] VII. Complete Diagnostic Process The complete positioning and isolation process of this invention includes the following steps: S101: Establish a diagnostic session. Save a snapshot of the configuration of all relevant ONUs on the current port, including power mode, equalization delay, ONU-ID, serial number, Alloc-ID and T-CONT mapping relationship, BWmap version and protection status; select one ONU with stable received power and low service priority from the online ONUs on the port as the reference ONU, select six suspected ONUs as the candidate set, and select one confirmed normal ONU as the health control ONU.

[0064] S102: Power Calibration and Codebook Binding. Completed Normal / Normal-3 dB bidirectional power calibration for seven ONUs and determined power stabilization latency. The seven 8th-order balanced Hadamard code lines are respectively bound to six candidate and health control ONUs.

[0065] S103: Establish an anomaly-free baseline. If no valid baseline is currently available, perform twenty sets of relevant baseline measurements and thirty-two sets of response upper limit baseline measurements within the anomaly-free window, calculate and save the relevant thresholds. With no abnormal response limit .

[0066] S104: Perform the first round of diagnostics. Perform eight single-cycle power-coded diagnostics according to the binding code line and collect the reference response sequence.

[0067] S105: Relevance Uniqueness Determination. Calculate the correlation coefficient of each code line to determine if there is a unique ONU to be confirmed; if not, end the session and restore the configuration.

[0068] S106: Perform the second round of complementary code verification. The target ONU uses the complementary code, the remaining candidates are fixed at low power, the health control maintains the original code, and eight diagnostic cycles are executed.

[0069] S107: Verification condition determination. Verify three conditions: symbol flipping, double wheel prominence, and health control irrelevance; if not met, end the session and restore the configuration.

[0070] S108: Targeted Isolation and Verification. Restore the configuration of the non-target ONU, deactivate the target ONU, verify the reference response after recovery, output the abnormal identity and maintain isolation; if verification fails, proceed to the exception handling process.

[0071] VIII. Calculation Examples The following numerical example illustrates the positioning process of this solution. Assume ONU4 within the port is an abnormally emitting ONU, and a pre-established baseline correlation threshold... =0.30, no upper limit for abnormal response. =0.135. In the first round of diagnosis, the reference response sequence for eight cycles is: The correlation coefficients for each code line were calculated, and the results are as follows: It can be seen that only the correlation coefficient of ONU4 (0.9701) is greater than the threshold of 0.30, while the correlation coefficients of the other candidates and health controls are all below the threshold. Therefore, ONU4 is determined to be the only ONU to be confirmed.

[0072] In the second round, a complementary code is applied to ONU4, while the remaining candidates are kept at low power. Health control maintains the original code, resulting in the second round response sequence: The correlation coefficient for the second round was calculated, and the result is as follows: Verification and review criteria: The target correlation coefficient flipped from 0.9701 to -0.9701, and the product was less than 0, satisfying the sign reversal condition; the absolute values ​​of both rounds were greater than 0.30, satisfying the double-round significance condition; the health control values ​​were 0 in both rounds, satisfying the no-correlation condition. Therefore, ONU4 was confirmed as an abnormally emitting ONU.

[0073] After deactivation, five consecutive reference responses are (0,0,0.125,0,0), all of which are less than the upper limit of 0.135, verifying that the interference has been eliminated. Finally, the identity of ONU4 is output and isolation is maintained.

[0074] IX. Abnormal Branches and Alternative Implementation Methods 1. Handling abnormal branches Various abnormal situations may occur during the diagnostic process, and the corresponding handling strategies are as follows: Power range cannot be stably separated: The ONU will not be included in the encoding batch, its original power mode will be immediately restored, and it will be removed from the candidate set.

[0075] If a valid calibration fails to enter the target range: the current diagnostic cycle is invalid; reconfigure and redo; if multiple cycles fail consecutively, terminate the diagnostic session and restore all ONU configurations.

[0076] When the variance of the reference response sequence is zero: all correlation coefficients are set to zero, no unique candidate is output, and it is determined that there is no synchronization interference at present.

[0077] If zero or more candidates exceed the threshold: do not output abnormal identities; if multiple candidates exceed the threshold, reorganize the candidate subset and recode the diagnosis in batches.

[0078] If the complementary code does not flip or is related to health control: if the current diagnosis is deemed to be systemically contaminated, do not output the identity, and restore the pre-diagnosis state.

[0079] If the response does not recover after deactivation: Do not output the abnormal identity, record the recovery failure, and transfer the target ONU to the re-registration or on-site troubleshooting process.

[0080] If an ONU registration, ranging, equalization latency, or protection status change occurs during diagnosis: immediately terminate the current diagnostic session, baseline synchronization fails, restore all ONU states according to the configuration snapshot, and then rebuild the baseline according to the new configuration.

[0081] 2. Alternative implementation methods Without departing from the core mechanism of this invention, the following extensions and substitutions can be made: Codebook expansion: A 16th, 32nd, or higher-order Hadamard matrix can be used to support simultaneous diagnosis of more candidate ONUs; when the number of candidates exceeds the code length minus 2, batch coding diagnosis can be performed. Other binary codebooks that satisfy balance and orthogonality can also be used, with the same positioning mechanism as this scheme.

[0082] Reference burst extension: B1 can be composed of multiple measurement bursts of fixed length, and the cumulative range is extended accordingly to improve the statistical stability of the measurement; the length of the protection zone can be adjusted according to the receiver characteristics of different OLT models. As long as the closed BIP measurement structure with the start boundary, measurement area and end boundary is retained, it is within the protection scope of this invention.

[0083] Extended response metrics: In addition to BIP-8 bit difference, metrics such as the number of uncorrectable FEC blocks assigned by reference burst and burst delimitation failure rate can be introduced to jointly constitute the reference response and improve adaptability to different interference intensities.

[0084] Deployment location expansion: The diagnostic orchestration control logic can be deployed inside the OLT or in an external access network security controller. It issues scheduling and power commands and collects measurement data through the OLT's control interface. The change in deployment location does not depart from the technical essence of this invention.

[0085] 10. System Implementation Method Corresponding to the above method, this embodiment also provides an orthogonal power coding location and isolation system for GPON uplink abnormal light-emitting ONUs, including a power calibration and codebook binding module, a baseline establishment module, a first-round location diagnosis module, a complementary code verification module, and a directional isolation module.

[0086] The power calibration and codebook binding module is responsible for establishing diagnostic sessions and saving configuration snapshots, performing ONU selection, bidirectional power calibration, stabilization time measurement and code line binding functions, and outputting the basic configuration parameters required for diagnosis.

[0087] The baseline establishment module is responsible for measuring, calculating and storing baselines without abnormalities, monitoring port configuration changes, triggering baseline failures and reconstructions, and maintaining the validity of baseline parameters.

[0088] The first-round positioning and diagnostic module consists of a power control unit, a reference protection zone scheduling unit, a response acquisition unit, and related calculation units. The power control unit performs power mode confirmation, directional CPL message delivery, and power stability verification; the reference protection zone scheduling unit is responsible for configuring the BWmap authorization for the reference burst to ensure the exclusivity of the protection zone; the response acquisition unit extracts the BIP-8 bit difference and reception status to generate a single-cycle response value; and the related calculation unit performs code-related operations and uniqueness determination, outputting the ONU result to be confirmed.

[0089] The complementary code verification module is responsible for the power configuration, response acquisition and verification condition determination of the second round of diagnosis, and outputs the final confirmation result of the abnormal ONU.

[0090] The targeted isolation module is responsible for the configuration restoration of non-target ONUs, the power adjustment and deactivation command issuance of target ONUs, and the response verification and result output after isolation, forming a complete closed loop of handling.

[0091] Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for orthogonal power encoding location and isolation of abnormal uplink luminous ONUs in GPON, characterized in that: Includes the following steps: Step 1: Establish a diagnostic session and save the power mode, equalization delay, ONU-ID, serial number, Alloc-ID / T-CONT, BWmap version, and protection status of each ONU; select a reference ONU with fixed power, multiple candidate ONUs, and a healthy control ONU with normal laser gating, ensuring all ONUs operate at the same GPON uplink wavelength; perform high and low transmit power mode calibration on the candidate ONUs and the healthy control ONU, determine the power stabilization waiting time, and bind each candidate ONU and the healthy control ONU to an independent code line in the orthogonal balanced codebook; Step 2: Establish a diagnostic baseline within the no-anomaly window where there is no unauthorized uplink emission on the port, calculate the relevant thresholds and the upper limit of the no-anomaly reference response, and store them together. The baseline will be invalidated and re-established when the port configuration, ONU set, or code line binding is changed. Step 3: Perform the first round of power coding diagnosis, switch the transmit power mode of candidate ONU and health control ONU cycle by cycle according to the code line bound to each ONU, allocate uplink authorization only to reference ONU in the reference protection zone of each cycle, collect the legal burst reception quality of reference ONU and generate reference response sequence; Calculate the normalized correlation coefficient between each code line and the reference response sequence, and determine whether there is a unique anomaly ONU to be confirmed based on the correlation threshold; Step 4: Perform the second round of complementary code verification and diagnosis. Apply the complementary code of its binding code line to the only ONU to be confirmed. Fix the other candidate ONUs to the low transmit power mode. The health control ONU maintains the original binding code line switching. Collect the reference response sequence again and calculate the correlation coefficient. Verify that the correlation coefficient corresponding to the target code line is flipped and the correlation coefficient corresponding to the health control ONU does not exceed the correlation threshold. Step 5: After the verification is passed, restore the power mode and uplink scheduling of the non-target ONU before diagnosis, deactivate the ONU to be confirmed, continuously collect the reference response after isolation, and after confirming that all have been restored to within the upper limit of the abnormal reference response, output the identity of the abnormal ONU and keep it in isolation. The abnormal ONU is that it is still emitting light without obtaining uplink authorization from BWmap, while its downlink PLOAM and power regulation channels are normal, and the unauthorized optical power still changes with the directional CPL; Under the same uplink wavelength, one reference ONU with fixed normal power, six candidate ONUs, and one laser-gated healthy control ONU are set up; An 8th-order Hadamard balanced codebook with all +1 code rows removed is used, and 8 effective diagnostic cycles are performed. Within the reference protection zone, only reference ONUs are authorized, and the identity attribution response is based solely on the B2 BIP-8 bit difference of the reference ONU and the reference burst group reception failure flag. The valid calibration burst RSSI of candidate ONUs and health control ONUs is only used to confirm power status and is not involved in identity attribution; The second round uses a target complementary code, with the remaining candidates fixed at low power, and health control maintains the original code. It also limits the number of consecutive responses after isolation to no more than 5. As a condition for final confirmation.

2. The orthogonal power encoding location and isolation method for abnormal uplink emission ONUs in GPON according to claim 1, characterized in that: In step one, the process of determining the high and low transmit power mode calibration and power stabilization waiting time is as follows: The high transmit power state is defined as Normal mode, and the low transmit power state is defined as Normal-3 dB mode. For each candidate ONU and health control ONU, the current power mode is first confirmed based on the received optical power of the legitimate uplink calibration burst. Then, based on the power level difference between the currently confirmed power mode and the target power mode and the adjustment direction, the required number of directional Change_Power_Level messages to make the ONU reach the target power mode are sent. This message is not sent if the target power mode is consistent with the current power mode. The ONU is retained in the coding batch only if the received optical power of the corresponding ONU in each of the three consecutive valid uplink calibration bursts in each power mode is within the corresponding receiving interval that is within the safe dynamic range of the OLT and does not overlap with each other. For each bidirectional power mode switch between Normal and Normal-3 dB, the time from the completion of the last required directional Change_Power_Level message to the time when the received optical power of the third consecutive valid uplink calibration burst enters the target reception range is recorded. The maximum value among all recorded values ​​of all candidate ONUs and health control ONUs is taken as the power stabilization waiting time. .

3. The orthogonal power encoding location and isolation method for abnormal uplink emission ONUs in GPON according to claim 2, characterized in that: In step one, the orthogonal balanced codebook uses an 8th-order normalized Hadamard matrix with all +1 code rows removed. Each code row satisfies the balance constraint and the pairwise orthogonality constraint, satisfying the following mathematical relationship: in, Indicates the first The first code line Each code element The code length is 8; a symbol value of +1 corresponds to the Normal transmit power mode, and a symbol value of -1 corresponds to the Normal -3 dB transmit power mode; the six candidate ONUs are bound to the first six code lines in sequence, and the health control ONU is bound to the seventh code line.

4. The orthogonal power encoding location and isolation method for abnormal uplink emission ONUs in GPON according to claim 3, characterized in that: In steps three and four, the reference protection zone for single-cycle power coding diagnosis consists of the pre-protection time, the reference burst group time, and the post-protection time. Both the pre-protection and post-protection times are set according to the sum of the OLT burst receiver recovery time, the ONU laser shutdown tolerance, and the equalization delay error. Within the reference protection zone, uplink authorization is only allocated to the fixed Alloc-ID of the reference ONU with fixed Normal power, and no uplink authorization is allocated to candidate ONUs, health control ONUs, or other ONUs. The reference burst group contains three independent uplink bursts: B0, B1, and B2. An unlicensed interval sufficient to allow the latter burst to form a new uplink burst is set between any two adjacent bursts. The start time, license length, FEC status, transmit power, and equalization delay of the three bursts are all kept fixed. The single-cycle response is unified as follows: in, To reference the difference in the number of bits between the BIP-8 carried by the ONU's B2 and the online calculation results of the OLT; For reference, if B0, B1, or B2 arrives without authorization, burst delimitation cannot be completed, ONU-ID is inconsistent, accumulated bytes cannot be reliably obtained, or B2 cannot be verified, then... and In other cases, Preamble, delimiter, and FEC checksum are excluded only according to protocol rules and are not considered failure conditions.

5. The orthogonal power encoding location and isolation method for abnormal uplink emission ONUs in GPON according to claim 4, characterized in that: In step two, the specific process of baseline establishment is as follows: Within a non-anomaly window where the port configuration version, ONU set, and code line binding remain unchanged, twenty sets of baseline power coding are executed. Each set contains eight single-cycle operations, and the eight single-cycle responses of each set form a baseline response sequence. ; The correlation coefficients between the zero-variance sequence and all code lines are set to zero. For non-zero-variance sequences, the baseline correlation coefficients of each code line are calculated using the same normalized correlation formula as for anomaly localization. ; All candidate ONUs and health control ONUs were set to Normal-3 dB mode, and thirty-two baseline responses were collected using the same reference protection zone and response rules. ; Relevant threshold No upper limit for abnormal response The following formulas shall be uniformly adopted for pre-inspection conditions: Only when And at least one of the eight low-power pre-detection samples meets the following requirements. If the location is entered on time, it will not be attributed and the configuration will be restored; any of the 32 baseline samples or At that time, the baseline was re-acquired; Relevant thresholds No abnormal reference response limit It is associated with and stored in relation to port configuration version, ONU set, and code line binding information.

6. The orthogonal power encoding location and isolation method for abnormal uplink emission ONUs in GPON according to claim 5, characterized in that: In step three, the first round of power coding diagnosis executes eight valid diagnostic cycles, and the responses of these eight cycles form the first round reference response sequence. Its average value is denoted as When the variance of the response sequence is zero, the correlation coefficients of all code lines are set to zero. When the variance is non-zero, for each codeline index Calculate the first round of normalized correlation coefficients. The calculation formula is: in, This is the reference response value for the m-th cycle in the first round. It is the m-th code element of the u-th code row; First round uniqueness condition: 。 7. The orthogonal power encoding location and isolation method for abnormal uplink emission ONUs in GPON according to claim 6, characterized in that: In step four, the second round applies pressure to the target ONU. ,but Still relative to the original binding line Calculate, and simultaneously satisfy: If any condition is not met, an abnormal ONU identity must not be output; The second round of complementary code verification and diagnosis executes for eight effective cycles, and the responses of these eight cycles form the second round reference response sequence. The second round of normalized correlation coefficients for each code row is calculated using the same formula; A unique ONU to be confirmed is an abnormally emitting ONU if and only if the following three conditions are met simultaneously; The first condition indicates that the correlation coefficient of the target code line flips sign in both rounds of diagnosis; the second condition indicates that the target correlation coefficient exceeds the correlation threshold in both rounds; and the third condition indicates that the health control ONU does not show significant correlation in either round of diagnosis.

8. The orthogonal power encoding location and isolation method for abnormal uplink emission ONUs in GPON according to claim 7, characterized in that: Step five, the specific process for targeted deactivation and isolation confirmation, is as follows: First, restore the power mode and uplink scheduling configuration saved by all non-target ONUs before diagnosis; stop allocating user data and regular management uplink authorization to the ONU to be confirmed, and only retain temporary calibration authorization for it; based on the level difference and adjustment direction between the currently confirmed power mode and the Normal-3 dB mode of the ONU, send the required number of directional Change_Power_Level messages to directionally reduce its transmit power. Once the received optical power of three consecutive valid uplink calibration bursts has entered the low-power reception range, and the power adjustment is confirmed to be in place, the temporary calibration authorization assigned to the target ONU is revoked; and three Deactivate_ONU-ID messages are sent consecutively to the ONU to be confirmed. After the deactivation operation is completed, in five consecutive reference protected areas with the same configuration, post-treatment reference responses are obtained according to the same response rules, and the recovery conditions are met. When the ONU is abnormal, its ONU-ID is output, its serial number is recorded in the management database, and it remains in an isolated state without being assigned uplink authorization. When any response value exceeds the limit, the abnormal identity is not output, the recovery failure is recorded, and the process of re-registering is initiated.

9. An orthogonal power encoding location and isolation system for GPON uplink abnormal light-emitting ONUs, characterized in that, It includes a power calibration and codebook binding module, a baseline establishment module, a first-round positioning and diagnosis module, a complementary code verification module, and a directional isolation module; The power calibration and codebook binding module is used to establish a diagnostic session and save an ONU configuration snapshot, select a reference ONU, candidate ONUs and health control ONUs, complete bidirectional calibration of two power modes, Normal and Normal-3 dB, determine the power stabilization waiting time, and bind the six candidate ONUs and health control ONUs to the independent balanced code lines of the 8th order Hadamard codebook respectively. The baseline establishment module is used to perform twenty sets of baseline power coding and thirty-two sets of low-power baseline measurements within an anomaly-free window, calculate and store relevant thresholds and anomaly-free reference response upper limits, monitor configuration changes and trigger baseline reconstruction; The first round of positioning and diagnosis module is used to send directional Change_Power_Level messages to switch the power mode of each ONU in cycles, configure the reference protection zone and collect the BIP-8 check difference and reception status of the reference ONU, generate a reference response sequence, calculate the normalized correlation coefficient and output the unique ONU to be confirmed judgment result; The complementary code verification module is used to apply complementary codes to the ONU to be confirmed to perform a second round of diagnosis, verify the correlation coefficient sign flipping condition and the health control uncorrelated condition, and output the verification conclusion of the abnormal ONU. The directional isolation module is used to restore the non-target ONU configuration, directionally adjust the target ONU power and issue a deactivation command, collect the reference response after isolation and complete the restoration confirmation, and output the final isolation result. The abnormal ONU is that it is still emitting light without obtaining uplink authorization from BWmap, while its downlink PLOAM and power regulation channels are normal, and the unauthorized optical power still changes with the directional CPL; Under the same uplink wavelength, one reference ONU with fixed normal power, six candidate ONUs, and one laser-gated healthy control ONU are set up; An 8th-order Hadamard balanced codebook with all +1 code rows removed is used, and 8 effective diagnostic cycles are performed. Within the reference protection zone, only reference ONUs are authorized, and the identity attribution response is based solely on the B2 BIP-8 bit difference of the reference ONU and the reference burst group reception failure flag. The valid calibration burst RSSI of candidate ONUs and health control ONUs is only used to confirm power status and is not involved in identity attribution; The second round uses a target complementary code, with the remaining candidates fixed at low power, and health control maintains the original code. It also limits the number of consecutive responses after isolation to no more than 5. As a condition for final confirmation.

10. The orthogonal power encoding location and isolation system for abnormal uplink light emission ONUs according to claim 9, characterized in that, The first round of positioning and diagnostic module includes a power control unit, a reference protection zone scheduling unit, a response acquisition unit, and related calculation units; The power control unit is used to confirm the current power mode of each ONU, calculate the required number of Change_Power_Level messages based on the target symbol and send them out in a targeted manner, and verify the power status through a valid calibration burst after waiting for the power to stabilize. The reference protection zone scheduling unit is used to configure the pre- and post-protection times of the reference protection zone and the authorization parameters of the three reference bursts B0, B1, and B2, and to control that only uplink authorization is allocated to the reference ONU within the protection zone. The response acquisition unit is used to extract the BIP-8 field of the B2 burst of the reference ONU, calculate the bit difference with the locally calculated value, and generate a single-cycle response value in combination with the burst reception status. The relevant calculation unit is used to calculate the normalized correlation coefficient between the reference response sequence and each code line, and outputs the determination result of the ONU to be confirmed based on the correlation threshold and uniqueness rule.