Abnormal ONU detection method, electronic device and computer-readable storage medium
By detecting multiple subcarrier bands in the optical access network and scheduling the abnormal ONU to the test detection band, the problem of rogue ONU affecting normal communication is solved, and effective detection of abnormal ONU and normal operation of the system is achieved.
Patent Information
- Application Number
- PCT/CN2024/102030
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-09-21
- Filing Date
- 2024-06-27
- Publication Date
- 2025-03-27
AI Technical Summary
In the optical access network, some ONUs send signals in time slots that do not belong to their allocated bandwidth, or are always in a luminous state, resulting in rogue ONUs in the system, affecting the normal communication of other ONUs, and these abnormal rogue ONUs need to be detected.
By detecting multiple subcarrier bands, if an abnormal subcarrier band is detected, the ONU on it is scheduled to the test detection band in the multiple subcarrier bands, and determine whether an abnormality occurs in the test detection band to determine the abnormal ONU in the abnormal subcarrier band.
Effectively detect which ONUs in the abnormal subcarrier band are abnormal ONUs, realize effective detection of abnormal ONUs, and ensure the normal operation of the PON system.
Smart Images

Figure CN2024102030_27032025_PF_FP_ABST
Abstract
Description
Abnormal ONU detection method, electronic device and computer-readable storage medium
[0001] Cross-references
[0002] This application claims priority to a Chinese patent application filed with the Patent Office of China on September 21, 2023, with application number 202311234501.1 and application name “Abnormal ONU Detection Method, Electronic Device and Computer-readable Storage Medium”. The entire contents of the application are incorporated by reference into this application. Technical Field
[0003] The present application relates to the technical field of passive optical networks, and in particular to a method for detecting abnormal ONUs, an electronic device, and a computer-readable storage medium. Background Art
[0004] In recent years, optical access networks based on time-division multiplexing passive optical network (TDM-PON) technology have developed rapidly. In related technologies, uplink and downlink transmission of passive optical networks can be achieved using a multi-subcarrier approach. In the downlink direction, the optical line terminal (OLT) broadcasts each subcarrier data to each optical network unit (ONU) subnode. Each ONU selectively receives data stream information on a single or multiple subcarriers according to the OLT scheduling. In the uplink direction, each ONU sends data to the OLT side for communication according to the protocol scheduling time division frequency division multiplexing (TFDM) method.
[0005] In current commercial networks, some ONUs may transmit signals in timeslots outside their allocated bandwidth or remain in a continuous emitting state. These ONUs are called rogue ONUs. The presence of rogue ONUs in the system can affect the normal communication of other ONUs connected to the OLT PON port. Therefore, it is necessary to identify and detect these abnormal rogue ONUs.
[0006] Summary of the Invention
[0007] The present application provides a method for detecting an abnormal ONU, an electronic device, and a computer-readable storage medium, which are used to solve the problem of how to detect an abnormal ONU.
[0008] To solve the above technical problems, this application is implemented as follows:
[0009] In a first aspect, a method for detecting an abnormal ONU is provided, comprising: detecting multiple subcarrier bands; when an abnormal subcarrier band is detected, scheduling the ONU on the abnormal subcarrier band to a test detection band among the multiple subcarrier bands; judging whether an abnormality occurs in the test detection band, and determining the abnormal ONU in the abnormal subcarrier band based on the judgment result.
[0010] In a second aspect, an electronic device is provided, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the method described in the first aspect.
[0011] According to a third aspect, a computer-readable storage medium is provided. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method according to the first aspect.
[0012] In a fourth aspect, a system for detecting abnormal ONUs is provided, comprising an OLT and multiple ONUs, wherein: the OLT detects multiple subcarrier bands; when the OLT detects an abnormal subcarrier band, the ONU on the abnormal subcarrier band is scheduled to a test detection band among the multiple subcarrier bands; the OLT determines whether an abnormality occurs in the test detection band, and determines the abnormal ONU in the abnormal subcarrier band based on the determination result.
[0013] Based on the technical solution provided in the embodiments of the present application, in a scenario where a PON system uses multiple subcarrier bands for uplink, downlink and / or uplink and downlink transmission, after detecting an abnormal subcarrier band, the characteristics of multiple subcarriers can be utilized to schedule the ONU on the abnormal subcarrier band to other subcarrier bands of the multiple subcarrier bands (i.e., test detection bands), and whether the scheduled ONU is abnormal is determined by whether abnormalities occur in other subcarrier bands. Therefore, it is possible to effectively detect which ONUs in the abnormal subcarrier band are abnormal ONUs, thereby achieving effective detection of abnormal ONUs. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the technical solutions in this application or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0015] FIG1 is a schematic diagram of a PON using multiple subcarriers for uplink and downlink transmission according to an embodiment of the present application;
[0016] FIG2 is a flow chart of a method for detecting abnormal ONUs according to an embodiment of the present application;
[0017] FIG3 is a flow chart of a method for detecting abnormal ONUs according to an embodiment of the present application;
[0018] FIG4 is a flow chart of a method for detecting abnormal ONUs according to an embodiment of the present application;
[0019] FIG5 is a flow chart of a method for detecting abnormal ONUs according to an embodiment of the present application;
[0020] FIG6 is a flow chart of a method for detecting abnormal ONUs according to an embodiment of the present application;
[0021] FIG7 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
[0022] FIG8 is a schematic structural diagram of an abnormal ONU detection device according to an embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to help those skilled in the art better understand the technical solutions of this application, the following will clearly and completely describe the technical solutions of this application in conjunction with the drawings of one or more embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.
[0024] The terms "first," "second," and the like in this application and the claims are used to distinguish similar objects and are not used to describe a particular order or precedence. It should be understood that such terms are interchangeable where appropriate so that this application can be implemented in sequences other than those illustrated or described herein. In addition, the term "and / or" in this application and the claims refers to at least one of the connected objects, and the character " / " generally indicates that the connected objects are in an "or" relationship.
[0025] It should be noted that the technical solution provided in the embodiments of the present application can be applied to a PON system architecture that uses multiple subcarriers for upstream transmission, and can also be applied to a PON system architecture that uses multiple subcarriers for downstream transmission. It can also be applied to a PON system architecture that uses multiple subcarriers for upstream and downstream transmission. These PON system architectures can be, for example, 100G or 200G PON system architectures. In these PON system architectures, based on the technical solution provided in the embodiments of the present application, abnormal ONUs can be effectively detected. In traditional PON architectures, a single-carrier method is used, and all ONUs multiplex one upstream wavelength and one downstream wavelength for data communication. The multi-subcarrier method is to change the previous single-wavelength communication into multiple subcarrier wavelength communication in the upstream and / or downstream directions. The method of generating subcarrier wavelengths can be frequency division multiplexing (FDM), wavelength division multiplexing (WDM), and other methods. Taking the use of multiple subcarriers for upstream and downstream transmission as an example, a schematic diagram of a PON system architecture using multiple subcarriers for upstream and downstream transmission can be shown in Figure 1. In Figure 1, the OLT and multiple ONUs communicate through the Optical Distribution Network (ODN), where the PON topology adopts a point-to-multipoint form. When uplink and downlink transmission is based on multiple subcarriers, multiple ONUs can correspond to one subcarrier (for example, ONU1 and ONU2 shown in Figure 1 correspond to one subcarrier 1), and each ONU sends uplink data to the OLT in a time-division manner. Alternatively, a single ONU can completely occupy a single subcarrier (for example, ONU3 shown in Figure 1 occupies one subcarrier 2, and ONU4 occupies one subcarrier 3). The OLT can schedule and allocate ONUs based on traffic flow, so that the traffic flow on each subcarrier is as stable as possible. In Figure 1, when an abnormal ONU appears on a subcarrier band, the technical solution provided by the embodiment of the present application can effectively detect the abnormal ONU.
[0026] It should be noted that only Figure 1 is used as an example to illustrate the scenario of using multiple subcarriers for uplink and downlink transmission. In the scenario where multiple subcarriers are used for uplink and downlink transmission or downlink transmission, the OLT and multiple ONUs can also communicate through the ODN, and multiple ONUs can correspond to one subcarrier, or a single ONU can completely occupy one subcarrier. The OLT schedules and allocates the ONU according to the traffic. When an abnormal ONU appears on a subcarrier band, the technical solution provided by the embodiment of the present application can also effectively detect the abnormal ONU.
[0027] The following describes in detail the technical solutions provided by various embodiments of the present application in conjunction with the accompanying drawings.
[0028] Figure 2 is a flow chart of a method for detecting abnormal ONUs according to an embodiment of the present application. The method for detecting abnormal ONUs shown in Figure 2 can be executed by the OLT shown in Figure 1. The method for detecting abnormal ONUs shown in Figure 2 is as follows.
[0029] S202: Detect multiple subcarrier bands.
[0030] In a scenario where the OLT performs uplink, downlink, and / or uplink and downlink transmission with multiple ONUs based on a multi-subcarrier approach, multiple subcarrier bands can be detected to determine whether there are abnormal subcarrier bands among the multiple subcarrier bands. The abnormal subcarrier band here can be a subcarrier band where a communication anomaly occurs. The communication anomaly in a subcarrier band can be that one or more ONUs on the subcarrier band have a communication anomaly, that is, the subcarrier band includes one or more abnormal ONUs (also referred to as rogue ONUs). Among them, the communication anomaly in the ONU can be that the ONU sends a signal in a time slot that does not belong to its allocated bandwidth, or that the ONU is always in a light-emitting state, etc.
[0031] Optionally, in one implementation, when detecting multiple subcarriers, at least one of the following may be included:
[0032] Detect whether there are bit errors in multiple subcarrier bands;
[0033] Detect whether packet loss occurs in multiple subcarrier bands;
[0034] Check whether the power of multiple subcarrier bands fluctuates abnormally.
[0035] Considering that when a subcarrier band includes an abnormal ONU, that is, when a communication abnormality occurs in the subcarrier band, the subcarrier band will generally experience bit errors, packet loss (which may be packet loss during uplink transmission), and / or abnormal power fluctuations, therefore, when detecting multiple subcarrier bands, at least one of the following three items can be detected: whether the multiple subcarrier bands have bit errors, whether packet loss has occurred, and whether abnormal power fluctuations have occurred. Specifically, during the detection, each subcarrier band can be detected separately, that is, for each subcarrier band, at least one of the following items can be detected: whether bit errors, whether packet loss has occurred, and whether abnormal power fluctuations have occurred.
[0036] After testing multiple subcarrier bands, for each subcarrier band, if the test result includes at least one of the following three items: bit error in the subcarrier band, packet loss in the subcarrier band, and abnormal power fluctuation in the subcarrier band, it can be determined that a communication abnormality has occurred in the subcarrier band and the subcarrier band is an abnormal subcarrier band. Conversely, if the test result shows that no bit error, no packet loss, and no abnormal power fluctuation has occurred in the subcarrier band, it can be determined that no communication abnormality has occurred in the subcarrier band and the subcarrier band is a normal subcarrier band. In this way, after testing multiple subcarrier bands, it can be determined which of the multiple subcarrier bands are normal subcarrier bands and which subcarrier bands are abnormal subcarrier bands.
[0037] It should be noted that, in other possible implementations, other detection methods may also be used to detect multiple subcarrier bands, as long as abnormal subcarrier bands can be detected. Other detection methods will not be described one by one here.
[0038] In an embodiment of the present application, after detecting multiple subcarrier bands, if there are one or more abnormal subcarrier bands, the following S204 can be executed; if there are no abnormal subcarrier bands and all are normal subcarrier bands, S202 can be continued, that is, the detection of multiple subcarrier bands can continue, or the detection process can be ended.
[0039] S204: When an abnormal subcarrier band is detected, the ONU on the abnormal subcarrier band is scheduled to a test detection band among the multiple subcarrier bands.
[0040] When an abnormal subcarrier band is detected, for each abnormal subcarrier band, the ONU on the abnormal subcarrier band can be scheduled to a test detection band among multiple subcarrier bands, and data transmission is performed based on the test detection band.
[0041] When scheduling the ONUs on the abnormal subcarrier band to the test detection band, optionally, the ONUs on the abnormal subcarrier band can be scheduled to the test detection band in N times, with one ONU scheduled to the test detection band each time, where N is the number of ONUs on the abnormal subcarrier band. That is, the ONUs on the abnormal subcarrier band can be scheduled to the test detection band one by one in sequence. For example, assuming that there are 5 ONUs on the abnormal subcarrier band, when scheduling these 5 ONUs to the test detection band, scheduling can be performed in 5 times, with one ONU scheduled to the test detection band each time. Optionally, in a possible implementation, multiple ONUs can also be scheduled to the test detection band each time. For example, still taking the above-mentioned abnormal subcarrier band including 5 ONUs as an example, when scheduling these 5 ONUs to the test detection band, scheduling can be performed in 3 times, with 2 ONUs scheduled in the first time, 2 ONUs scheduled in the second time, and 1 ONU scheduled in the third time.
[0042] It should be noted that, considering that if multiple ONUs are scheduled to the test detection band each time, when an abnormality occurs in the test detection band, it is impossible to accurately determine which ONU among the multiple scheduled ONUs is the abnormal ONU. Therefore, in an embodiment of the present application, when scheduling ONUs, it is preferred to schedule one ONU to the test detection band each time.
[0043] When scheduling the ONU on the abnormal subcarrier band to the test detection band, in a possible implementation, the OLT can send an indication message to the ONU on the abnormal subcarrier band by broadcasting (here it can correspond to the situation where the uplink communication of the abnormal ONU is abnormal but the downlink communication is not abnormal), and the indication message is used to instruct the ONU on the abnormal subcarrier band to adjust the wavelength of its laser from the abnormal subcarrier band to the test detection band. After receiving the indication message from the OLT, the ONU on the abnormal subcarrier band can adjust the wavelength of the laser from the abnormal subcarrier band to the test detection band according to the indication of the indication message, thereby scheduling the ONU on the abnormal subcarrier band to the test detection band. Of course, in other possible implementations, the ONU on the abnormal subcarrier band can also be scheduled to the test detection band by other methods, and other possible implementations will not be explained one by one here.
[0044] The test detection band may be a subcarrier band among the multiple subcarrier bands excluding the abnormal subcarrier band. Optionally, in one implementation, the test detection band may be an idle subcarrier band among the multiple subcarrier bands excluding the abnormal subcarrier band, that is, an unused subcarrier band among the multiple subcarrier bands is used as the test detection band. In another implementation, the test detection band may also be a subcarrier band among the multiple subcarrier bands that has no abnormality and whose traffic is less than a preset threshold (which can be set according to actual needs), that is, a normal subcarrier band with less traffic among the multiple subcarrier bands is used as the test detection band. For example, the subcarrier band with the smallest traffic among the multiple subcarrier bands may be used as the test detection band, or a band may be randomly selected from the multiple subcarrier bands with less than the preset threshold as the test detection band, or a subcarrier band with less traffic may be selected as the test detection band according to actual business needs. The selection method of the subcarrier band with small traffic is not limited here.
[0045] It should be noted that the reason why the embodiment of the present application uses a normal subcarrier band with smaller traffic as a test detection band is to ensure that after the ONU on the abnormal subcarrier band is scheduled to the normal subcarrier band, the traffic of the normal subcarrier band will not be too large, so as to avoid affecting the normal communication of the original ONU on the normal subcarrier band. In actual application scenarios, if there is an idle subcarrier band among multiple subcarrier bands, the idle subcarrier band can be used as a test detection band, or a subcarrier band with smaller traffic among the normal subcarrier bands can be used as a test detection band. If there is no idle subcarrier band among multiple subcarrier bands, a subcarrier band with smaller traffic among the normal subcarrier bands can be used as a test detection band.
[0046] S206: Determine whether the test detection band is abnormal, and determine the abnormal ONU in the abnormal subcarrier band according to the determination result.
[0047] After the ONU on the abnormal subcarrier band is scheduled to the test detection band, the ONU on the abnormal subcarrier band can transmit data with the OLT based on the test detection band. At this time, it can be determined whether the communication in the test detection band is abnormal, and the abnormal ONU in the abnormal subcarrier band can be determined based on the judgment result.
[0048] As mentioned above, when scheduling the ONUs on the abnormal subcarrier band to the test detection band, the ONUs on the abnormal subcarrier band can be scheduled to the test detection band one by one in sequence. In this way, when judging whether an abnormality occurs in the test detection band, it is possible to judge whether an abnormality occurs in the test detection band each time an ONU to be tested on the abnormal subcarrier band is scheduled to the test detection band, and determine the abnormal ONU in the abnormal subcarrier band based on the judgment result.
[0049] When determining an abnormal ONU in the abnormal subcarrier band based on the determination result, specifically, after any ONU to be tested in the abnormal subcarrier band is scheduled to the test detection band, the ONU to be tested can perform data transmission based on the test detection band. When the ONU to be tested performs data transmission based on the test detection band, the test detection band can be tested, and whether an abnormality occurs in the test detection band can be determined based on the test result. The specific implementation of testing the test detection band can refer to the specific implementation of testing multiple subcarrier bands described in S202 above, and will not be described in detail here.
[0050] After determining whether the test detection band is abnormal, the judgment results may include: no abnormality in the test detection band; and abnormality in the test detection band. The following describes how to determine the abnormal ONU in the abnormal subcarrier band for these two judgment results.
[0051] If the test detection band shows no abnormalities, this can indicate two situations: the first is that the ONU under test is normal, or the second is that the ONU under test is abnormal and cannot be successfully scheduled or normally scheduled to the test detection band. In either case, it is possible to determine whether the ONUs on the abnormal subcarrier band have been traversed, that is, whether all ONUs on the abnormal subcarrier band have been scheduled to the test detection band. If no ONUs on the abnormal subcarrier band have been traversed, the abnormal ONU detection process can continue, that is, the ONUs that have not been traversed can be scheduled to the test detection band. If the ONUs on the abnormal subcarrier band have been traversed, it can be further determined whether there are ONUs on the abnormal subcarrier band that have not been successfully scheduled. If there are ONUs that have not been successfully scheduled, it can be shown that these ONUs are abnormal and cannot be successfully scheduled. At this time, the ONUs that have not been successfully scheduled can be determined as abnormal ONUs. If there are no ONUs that have not been successfully scheduled, it can be shown that the ONUs to be tested that are scheduled this time are normal ONUs. Afterwards, since the ONUs on the abnormal subcarrier band have been traversed, the detection process for the abnormal ONUs can be terminated. Wherein, when scheduling the ONUs that have not been traversed to the test detection band, they can be scheduled to the test detection band one by one in sequence, and after each ONU that has not been traversed is scheduled to the test detection band, S206 can be executed. In this way, a cyclic detection process for the abnormal ONUs can be formed, and the detection process for the abnormal ONUs can be terminated when all the ONUs that have not been traversed are scheduled to the test detection band.
[0052] If an abnormality occurs in the test detection band, it can be said that the ONU to be tested has been successfully scheduled to the test detection band, and the function of the ONU to be tested is still abnormal, resulting in an abnormality in the detection band. At this time, the ONU to be tested can be determined as an abnormal ONU. After the abnormal ONU is determined, the abnormal ONU can be scheduled to a discarded subcarrier band among multiple subcarrier bands, or the abnormal ONU can be scheduled to an abnormal subcarrier band. The discarded subcarrier band can be an unused subcarrier band among multiple subcarrier bands, or it can be a subcarrier band among multiple subcarrier bands that is dedicated to carrying abnormal ONUs.
[0053] Optionally, if the abnormal ONU is scheduled to the abandoned subcarrier band, then after the abnormal ONU is scheduled to the abandoned subcarrier band, the abnormal subcarrier band can be detected, and it is determined whether the abnormal subcarrier band has returned to normal based on the detection result. Wherein, when detecting the abnormal subcarrier band, the specific implementation method can refer to the specific implementation method of detecting multiple subcarrier bands recorded in the above-mentioned S202, which will not be described in detail here. If the abnormal subcarrier band returns to normal, it can be said that the abnormal ONU on the abnormal subcarrier band has been detected. At this time, the abnormal detection of the ONU can be terminated, that is, the detection process for the abnormal ONU is terminated, and there is no need to schedule other ONUs on the abnormal subcarrier band that have not been traversed to the test detection band. If the abnormal subcarrier band has not returned to normal, it can be said that there are still abnormal ONUs that have not been detected on the abnormal subcarrier band. At this time, it can be determined whether the ONUs on the abnormal subcarrier band have been traversed. If the traversal has been completed, it can be shown that there is an ONU on the abnormal subcarrier band that was not successfully scheduled during the previous traversal scheduling. At this time, the ONU that was not successfully scheduled can be determined as an abnormal ONU. If the traversal has not been completed, the detection process of the abnormal ONU can be continued, and the ONU that has not been traversed will be scheduled to the test detection band. Wherein, when scheduling the ONUs that have not been traversed to the test detection band, they can be scheduled to the test detection band one by one in sequence, and after each scheduling of an ONU that has not been traversed to the test detection band, S206 can be executed. In this way, a cyclic detection process for the abnormal ONU can be formed, and the detection process for the abnormal ONU is terminated when all the ONUs that have not been traversed are scheduled to the test detection band.
[0054] traversed, then can finish the detection process of abnormal ONU.At this moment, the ONU on the abnormal subcarrier band is all abnormal ONU (comprising the abnormal ONU that can be successfully scheduled, may comprise the abnormal ONU that can not be successfully scheduled).If not traversed, then can continue the detection process of abnormal ONU, be about to the ONU that is not traversed to be dispatched to the test detection band.Wherein, when the ONU that is not traversed is dispatched to the test detection band, can be to be dispatched to the test detection band one by one successively, and, after an ONU that is not traversed of every scheduling is on the test detection band, can carry out S206, like this, can form the cycle detection process to abnormal ONU, until the ONU that is not traversed is all dispatched to the test detection band when finishing the detection process to abnormal ONU.
[0055] After all the ONUs on the abnormal subcarrier band are scheduled to the test detection band of multiple subcarrier bands based on the above method, and the abnormal ONUs on the abnormal subcarrier band are determined according to whether the test detection band is abnormal, all the abnormal ONUs in the abnormal subcarrier band can be detected eventually. These abnormal ONUs will exist in the abandoned subcarrier band and / or the abnormal subcarrier band. Specifically, if all abnormal ONUs are abnormal ONUs that cannot be successfully scheduled, then all abnormal ONUs will exist on the abnormal subcarrier band; if all abnormal ONUs are abnormal ONUs that can be successfully scheduled, then all abnormal ONUs will exist on the abandoned subcarrier band (for the case where the detected abnormal ONUs are scheduled to the abandoned subcarrier band) or on the abnormal subcarrier band (for the case where the detected abnormal ONUs are scheduled to the abnormal subcarrier band); if the abnormal ONUs include abnormal ONUs that can be successfully scheduled and abnormal ONUs that cannot be successfully scheduled, then the abnormal ONUs will exist on the abandoned subcarrier band and the abnormal subcarrier band (for the case where the detected abnormal ONUs that can be successfully scheduled are scheduled to the abandoned subcarrier band), or all exist on the abnormal subcarrier band (for the case where the detected abnormal ONUs that can be successfully scheduled are scheduled to the abnormal subcarrier band).
[0056] To facilitate understanding of the detection process of the abnormal ONU detection method provided in the embodiments of the present application, reference may be made to the embodiments shown in the following Figures 3 to 6 .
[0057] FIG3 is a flow chart of a method for detecting abnormal ONUs according to an embodiment of the present application, which may include the following steps.
[0058] S301: Detect multiple subcarrier bands.
[0059] S302: Determine an abnormal subcarrier band among the multiple subcarrier bands according to the detection result.
[0060] S303: Schedule the ONU on the abnormal subcarrier band to the idle subcarrier band.
[0061] The number of abnormal subcarrier bands may be one or more, and the abnormal ONU detection process may be performed separately for each abnormal subcarrier band. For any abnormal subcarrier band, when detecting an abnormal ONU, the ONU in the abnormal subcarrier band may be scheduled to an idle subcarrier band. During scheduling, it may optionally be determined whether an idle subcarrier band exists among the multiple subcarrier bands. If so, the ONU in the abnormal subcarrier band may be scheduled to the idle subcarrier band. If not, the ONU in the abnormal subcarrier band may be scheduled to a subcarrier band with lower traffic among the multiple subcarrier bands. This embodiment will be described using the example of an idle subcarrier band. When scheduling the ONU in the abnormal subcarrier band to the idle subcarrier band, the ONUs in the abnormal subcarrier band may be scheduled one by one to the idle subcarrier band. Each time an ONU to be tested is scheduled to the idle subcarrier band, the ONU may perform data transmission based on the idle subcarrier band. During data transmission, S304 may be executed.
[0062] S304: For the scheduled ONU to be tested, determine whether an abnormality occurs in the idle subcarrier band.
[0063] After scheduling, for the ONU to be tested that is scheduled, it can be determined whether an abnormality occurs in the idle subcarrier band when the ONU to be tested is transmitting data based on the idle subcarrier band. If an abnormality occurs in the idle subcarrier band, S305 can be executed. If no abnormality occurs in the idle subcarrier band, two situations can be explained: one is that the ONU to be tested is a normal ONU, and therefore no abnormality occurs in the idle subcarrier band when data is transmitted based on the idle subcarrier band; the other is that the ONU to be tested is an abnormal ONU and cannot be successfully scheduled to the idle subcarrier band, and therefore no abnormality occurs in the idle subcarrier band. In either case, S308 can be executed.
[0064] S305: Determine the ONU to be tested as an abnormal ONU.
[0065] S306: Schedule the abnormal ONU to the discarded subcarrier band.
[0066] S307: Determine whether the abnormal subcarrier band has returned to normal.
[0067] If it returns to normal, it means that the abnormal ONU in the abnormal subcarrier band has been detected, and the detection process can be ended at this time, that is, S309 is executed; if it does not return to normal, it means that the abnormal subcarrier band also includes abnormal ONUs, and S308 can be executed at this time.
[0068] S308: Determine whether the ONUs on the abnormal subcarrier band have been traversed.
[0069] Determine whether the ONUs on the abnormal subcarrier band have been traversed, that is, determine whether all the ONUs on the abnormal subcarrier band have been scheduled to the idle subcarrier band. If so, the detection process can be ended, that is, execute S309. If not, it can return to execute S303, that is, continue to schedule the ONUs on the abnormal subcarrier band to the idle subcarrier band. The scheduling here can be to schedule the ONUs that have not been scheduled on the abnormal subcarrier band to the idle subcarrier band one by one.
[0070] It should be noted that if S308 is executed when it is determined in S304 that the idle subcarrier band has not been abnormal, and when executing S308, the judgment result is that the ONUs on the abnormal subcarrier band have been traversed, then it can be further determined whether the abnormal subcarrier band has returned to normal. If it has not returned to normal, it can be indicated that there are ONUs on the abnormal subcarrier band that have not been successfully scheduled. These ONUs are abnormal ONUs and remain on the abnormal subcarrier band when being scheduled. At this time, these ONUs that have not been successfully scheduled can be determined as abnormal ONUs. If it has returned to normal, it can be determined that the ONUs to be tested that are scheduled this time are normal ONUs. If S308 is executed when it is determined in S307 that the abnormal subcarrier band has not returned to normal, and when executing S308, the judgment result is that the ONUs on the abnormal subcarrier band have been traversed, it can be indicated that there are ONUs on the abnormal subcarrier band that were not successfully scheduled during the previous scheduling. At this time, these ONUs can be determined as abnormal ONUs.
[0071] S309: End.
[0072] Based on the embodiment shown in Figure 3, after the detection process is completed, the abnormal ONUs will all exist on the abandoned subcarrier band (for the case where all abnormal ONUs can be successfully scheduled), or all exist on the abnormal subcarrier band (for the case where no abnormal ONUs can be successfully scheduled), or exist on the abandoned subcarrier band and the abnormal subcarrier band (for the case where the abnormal ONUs include abnormal ONUs that can be successfully scheduled and abnormal ONUs that cannot be successfully scheduled).
[0073] FIG4 is a flow chart of a method for detecting abnormal ONUs according to an embodiment of the present application, which may include the following steps.
[0074] S401: Detect multiple subcarrier bands.
[0075] S402: Determine an abnormal subcarrier band among the multiple subcarrier bands according to the detection result.
[0076] S403: Schedule the ONU on the abnormal subcarrier band to the idle subcarrier band.
[0077] The number of abnormal subcarrier bands may be one or more, and the abnormal ONU detection process may be performed separately for each abnormal subcarrier band. For any abnormal subcarrier band, when detecting an abnormal ONU, the ONU in the abnormal subcarrier band may be scheduled to an idle subcarrier band. During scheduling, it may optionally be determined whether an idle subcarrier band exists among the multiple subcarrier bands. If so, the ONU in the abnormal subcarrier band may be scheduled to the idle subcarrier band. If not, the ONU in the abnormal subcarrier band may be scheduled to a subcarrier band with lower traffic among the multiple subcarrier bands. This embodiment will be described using the example of an idle subcarrier band. When scheduling the ONU in the abnormal subcarrier band to the idle subcarrier band, the ONUs in the abnormal subcarrier band may be scheduled one by one to the idle subcarrier band. Each time an ONU to be tested is scheduled to the idle subcarrier band, the ONU may perform data transmission based on the idle subcarrier band. During data transmission, S404 may be executed.
[0078] S404: For the scheduled ONU to be tested, determine whether an abnormality occurs in the idle subcarrier band.
[0079] After scheduling is performed, it is determined whether an idle subcarrier band is abnormal when the ONU to be tested is performing data transmission based on the idle subcarrier band. If an abnormality is found in the idle subcarrier band, S405 can be executed. If no abnormality is found in the idle subcarrier band, two situations can be explained: one is that the ONU to be tested is normal, and therefore no abnormality is found in the idle subcarrier band when data is transmitted based on the idle subcarrier band; the other is that the ONU to be tested is an abnormal ONU and cannot be successfully scheduled to the idle subcarrier band, and therefore no abnormality is found in the idle subcarrier band. In either case, S407 can be executed.
[0080] S405: Determine the ONU to be tested as an abnormal ONU.
[0081] S406: Schedule the abnormal ONU to the abnormal subcarrier band.
[0082] S407: Determine whether the ONUs on the abnormal subcarrier band have been traversed.
[0083] Determine whether the ONUs on the abnormal subcarrier band have been traversed, that is, determine whether all the ONUs on the abnormal subcarrier band have been scheduled to the idle subcarrier band. If so, the detection process can be ended, that is, execute S408. If not, it can return to execute S403, that is, continue to schedule the ONUs on the abnormal subcarrier band to the idle subcarrier band. The scheduling here can be to schedule the ONUs that have not been scheduled on the abnormal subcarrier band to the idle subcarrier band one by one.
[0084] It should be noted that if S407 is executed when it is determined in S404 that there is no abnormality in the idle subcarrier band, and when executing S407, the judgment result is that the ONU on the abnormal subcarrier band has been traversed, it can be said that the abnormal ONU only exists on the abnormal subcarrier band. At this time, the ONU on the abnormal subcarrier band can be determined as an abnormal ONU.
[0085] S408: End.
[0086] Based on the embodiment shown in FIG4 , after the detection process is completed, all abnormal ONUs will exist on the abnormal subcarrier band, and the abnormal ONUs on the abnormal subcarrier band include abnormal ONUs that can be successfully scheduled and / or abnormal ONUs that cannot be successfully scheduled.
[0087] FIG5 is a flow chart of a method for detecting abnormal ONUs according to an embodiment of the present application, which may include the following steps.
[0088] S501: Detect multiple subcarrier bands.
[0089] S502: Determine an abnormal subcarrier band among the multiple subcarrier bands according to the detection result.
[0090] S503: Schedule the ONU on the abnormal subcarrier band to the first subcarrier band.
[0091] The number of abnormal subcarrier bands may be one or more, and an abnormal ONU detection process may be performed separately for each abnormal subcarrier band. For any abnormal subcarrier band, when detecting an abnormal ONU, the ONU in the abnormal subcarrier band may be scheduled to a first subcarrier band. The first subcarrier band may be a normal subcarrier band among multiple subcarrier bands whose traffic is less than a preset threshold, or may be a normal subcarrier band with the lowest traffic among the multiple subcarrier bands. During scheduling, optionally, a first subcarrier band among the multiple subcarrier bands may be first determined, and then the ONU in the abnormal subcarrier band may be scheduled to the first subcarrier band. When scheduling the ONU in the abnormal subcarrier band to the first subcarrier band, the ONUs in the abnormal subcarrier band may be scheduled to the first subcarrier band one by one. Each time an ONU to be tested is scheduled to the first subcarrier band, the ONU may perform data transmission based on the first subcarrier band. During data transmission, S504 may be executed.
[0092] S504: For the scheduled ONU to be tested, determine whether an abnormality occurs in the first subcarrier band.
[0093] After scheduling is performed, for the ONU to be tested that is scheduled this time, it can be determined whether an abnormality occurs in the first subcarrier band when the ONU to be tested is performing data transmission based on the first subcarrier band. If an abnormality occurs in the first subcarrier band, S505 can be executed. If no abnormality occurs in the first subcarrier band, two situations can be explained: one is that the ONU to be tested is a normal ONU, and therefore no abnormality occurs in the first subcarrier band when data transmission is performed based on the first subcarrier band; the other is that the ONU to be tested is an abnormal ONU and cannot be successfully scheduled to the first subcarrier band, and therefore no abnormality occurs in the first subcarrier band. In either case, S508 can be executed.
[0094] S505: Determine the ONU to be tested as an abnormal ONU.
[0095] S506: Schedule the abnormal ONU to the discarded subcarrier band.
[0096] S507: Determine whether the abnormal subcarrier band has returned to normal.
[0097] If it returns to normal, it means that the abnormal ONU in the abnormal subcarrier band has been detected, and the detection process can be ended at this time, that is, S509 is executed; if it does not return to normal, it means that the abnormal subcarrier band also includes abnormal ONUs, and S508 can be executed at this time.
[0098] S508: Determine whether the ONUs on the abnormal subcarrier band have been traversed.
[0099] Determine whether the ONUs on the abnormal subcarrier band have been traversed, that is, determine whether all the ONUs on the abnormal subcarrier band have been scheduled to the first subcarrier band. If so, the detection process can be ended, that is, execute S509. If not, it can return to execute S503, that is, continue to schedule the ONUs on the abnormal subcarrier band to the first subcarrier band. The scheduling here can be to schedule the ONUs that have not been scheduled on the abnormal subcarrier band to the first subcarrier band one by one.
[0100] It should be noted that if S508 is executed when it is determined in S504 that the first subcarrier band has not been abnormal, and when S508 is executed, the result of the determination is that the ONUs on the abnormal subcarrier band have been traversed, then it can be further determined whether the abnormal subcarrier band has returned to normal. If it has not returned to normal, it can be indicated that there are ONUs on the abnormal subcarrier band that have not been successfully scheduled. These ONUs are abnormal ONUs and remain on the abnormal subcarrier band when being scheduled. At this time, these ONUs that have not been successfully scheduled can be determined as abnormal ONUs. If it has returned to normal, it can be determined that the ONUs to be tested that are scheduled this time are normal ONUs. If S508 is executed when it is determined in S507 that the abnormal subcarrier band has not returned to normal, and when S508 is executed, the result of the determination is that the ONUs on the abnormal subcarrier band have been traversed, then it can be indicated that there are ONUs on the abnormal subcarrier band that were not successfully scheduled during the previous scheduling. At this time, these ONUs can be determined as abnormal ONUs.
[0101] S509: End.
[0102] Based on the embodiment shown in Figure 5, after the detection process is completed, the abnormal ONUs will all exist on the abandoned subcarrier band (for the case where all abnormal ONUs can be successfully scheduled), or all exist on the abnormal subcarrier band (for the case where no abnormal ONUs can be successfully scheduled), or exist on the abandoned subcarrier band and the abnormal subcarrier band (for the case where the abnormal ONUs include abnormal ONUs that can be successfully scheduled and abnormal ONUs that cannot be successfully scheduled).
[0103] FIG6 is a flow chart of a method for detecting abnormal ONUs according to an embodiment of the present application, which may include the following steps.
[0104] S601: Detect multiple subcarrier bands.
[0105] S602: Determine an abnormal subcarrier band among the multiple subcarrier bands according to the detection result.
[0106] S603: Schedule the ONU on the abnormal subcarrier band to the first subcarrier band.
[0107] The number of abnormal subcarrier bands may be one or more, and the abnormal ONU detection process may be performed separately for each abnormal subcarrier band. For any abnormal subcarrier band, when detecting an abnormal ONU, the ONU in the abnormal subcarrier band may be scheduled to a first subcarrier band. The first subcarrier band may be a normal subcarrier band among multiple subcarrier bands whose traffic is less than a preset threshold, or may be a normal subcarrier band with the lowest traffic among the multiple subcarrier bands. During scheduling, optionally, a first subcarrier band among the multiple subcarrier bands may be first determined, and then the ONU in the abnormal subcarrier band may be scheduled to the first subcarrier band. When scheduling the ONU in the abnormal subcarrier band to the first subcarrier band, the ONUs in the abnormal subcarrier band may be scheduled to the first subcarrier band one by one. Each time an ONU to be tested is scheduled to the first subcarrier band, the ONU may perform data transmission based on the first subcarrier band. During data transmission, S604 may be executed.
[0108] S604: For the scheduled ONU to be tested, determine whether an abnormality occurs in the first subcarrier band.
[0109] After scheduling is performed, for the ONU to be tested that is scheduled this time, it can be determined whether an abnormality occurs in the first subcarrier band when the ONU to be tested is performing data transmission based on the first subcarrier band. If an abnormality occurs in the first subcarrier band, S605 can be executed. If no abnormality occurs in the first subcarrier band, two situations can be explained: one is that the ONU to be tested is a normal ONU, and therefore no abnormality occurs in the first subcarrier band when data transmission is performed based on the first subcarrier band; the other is that the ONU to be tested is an abnormal ONU and cannot be successfully scheduled to the first subcarrier band, and therefore no abnormality occurs in the first subcarrier band. In either case, S607 can be executed.
[0110] S605: Determine the ONU to be tested as an abnormal ONU.
[0111] S606: Schedule the abnormal ONU to the abnormal subcarrier band.
[0112] S607: Determine whether the ONUs on the abnormal subcarrier band have been traversed.
[0113] Determine whether the ONUs on the abnormal subcarrier band have been traversed, that is, determine whether all the ONUs on the abnormal subcarrier band have been scheduled to the first subcarrier band. If so, the detection process can be ended, that is, execute S608. If not, it can return to execute S603, that is, continue to schedule the ONUs on the abnormal subcarrier band to the first subcarrier band. The scheduling here can be to schedule the ONUs that have not been scheduled on the abnormal subcarrier band to the first subcarrier band one by one.
[0114] It should be noted that if S607 is executed when it is determined in S604 that there is no abnormality in the first subcarrier band, and when executing S607, the judgment result is that the ONU on the abnormal subcarrier band has been traversed, it can be said that the abnormal ONU only exists on the abnormal subcarrier band. At this time, the ONU on the abnormal subcarrier band can be determined as an abnormal ONU.
[0115] S608: End.
[0116] Based on the embodiment shown in FIG6 , after the detection process is completed, all abnormal ONUs will exist on the abnormal subcarrier band, and the abnormal ONUs on the abnormal subcarrier band include abnormal ONUs that can be successfully scheduled and / or abnormal ONUs that cannot be successfully scheduled.
[0117] In the embodiments shown in FIG. 3 to FIG. 6 , the specific implementation of each step can refer to the specific implementation of the corresponding step in the embodiment shown in FIG. 2 , and will not be described in detail here.
[0118] It should be noted that in actual application scenarios, if there are idle subcarrier bands among the multiple subcarrier bands, then when detecting abnormal ONUs, it can be implemented based on any of the embodiments shown in Figures 3 to 6. Furthermore, if it is required to use a minimum number of subcarrier bands to detect abnormal ONUs, it can be implemented based on the embodiment shown in Figure 6. If there are no idle subcarrier bands among the multiple subcarrier bands, then when detecting abnormal ONUs, it can be implemented based on the embodiment shown in Figure 5 or Figure 6. Furthermore, if it is required to use a minimum number of subcarrier bands to detect abnormal ONUs, it can be implemented based on the embodiment shown in Figure 6.
[0119] In an embodiment of the present application, after detecting abnormal ONUs on an abnormal subcarrier band, these abnormal ONUs may optionally be marked, and the detection result of the abnormal ONU may be reported. The detection result of the abnormal ONU may include an identifier of the abnormal ONU. When reporting the detection result, it may be reported to a management device in the background. The management device may inform the management personnel in the background which ONUs are abnormal based on the detection result, so that corresponding troubleshooting can be performed on these abnormal ONUs.
[0120] Optionally, when the abnormal subcarrier band includes normal ONUs, for these normal ONUs, in the abnormal ONU detection process, after scheduling the normal ONUs to the test detection band, they can continue to be retained in the test detection band and perform data transmission based on the test detection band, or the normal ONUs can be scheduled from the test detection band to other normal subcarrier bands among the multiple subcarrier bands. In this way, it is possible to ensure that the normal ONUs perform normal data transmission based on the test detection band or other normal subcarrier bands.
[0121] Based on the technical solution provided by the embodiment of the present application, in a scenario where a PON system uses multiple subcarriers for uplink, downlink and / or uplink and downlink transmission, after detecting an abnormal subcarrier band, the ONU on the abnormal subcarrier band can be scheduled to other subcarrier bands (i.e., test detection bands) of the multiple subcarrier bands by utilizing the characteristics of multiple subcarriers, and whether the scheduled ONU is abnormal is determined by whether the other subcarrier bands are abnormal. Therefore, it is possible to effectively detect which ONUs in the abnormal subcarrier band are abnormal ONUs, thereby achieving effective detection of abnormal ONUs. For the detected abnormal ONUs, since they can be scheduled to abandoned subcarrier bands and / or retained on the abnormal subcarrier band, the normal operation of the actual PON system under the existing network can be guaranteed.
[0122] The foregoing description describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0123] FIG7 is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. Referring to FIG7 , at the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage device. Of course, the electronic device may also include hardware required for other services.
[0124] The processor, network interface, and memory can be interconnected via an internal bus, such as an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus. These buses can be classified as address buses, data buses, and control buses. For ease of illustration, FIG7 shows only one bidirectional arrow, but this does not imply that there is only one bus or only one type of bus.
[0125] The memory is used to store programs. Specifically, the program may include program code, which includes computer operating instructions. The memory may include internal memory and non-volatile memory, and provides instructions and data to the processor.
[0126] The processor reads the corresponding computer program from the non-volatile memory into the internal memory and then runs it, forming a device for detecting abnormal ONUs at a logical level. The processor executes the program stored in the memory and is specifically configured to perform the following operations: detect multiple subcarrier bands; if an abnormal subcarrier band is detected, schedule the ONU in the abnormal subcarrier band to a test detection band among the multiple subcarrier bands; determine whether the test detection band is abnormal, and determine the abnormal ONU in the abnormal subcarrier band based on the determination result.
[0127] The method performed by the abnormal ONU detection device disclosed in the embodiment shown in FIG. 7 of this application can be applied to or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the method can be performed by hardware integrated logic circuits within the processor or by software instructions. The processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The methods, steps, and logic block diagrams disclosed in this application can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this application can be directly executed by a hardware decoding processor or by a combination of hardware and software modules within the decoding processor. The software module can be located in a storage medium well-known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory, and the processor reads the information in the memory and, in conjunction with its hardware, completes the steps of the above method.
[0128] The electronic device can also execute the methods of Figures 2 to 6 and realize the functions of the abnormal ONU detection device in the embodiments shown in Figures 2 to 6, which will not be described in detail in this application.
[0129] Of course, in addition to software implementation, the electronic device of this application does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc. That is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0130] The present application also provides a computer-readable storage medium storing one or more programs, wherein the one or more programs include instructions. When executed by a portable electronic device including a plurality of application programs, the instructions enable the portable electronic device to perform the method of the embodiments shown in FIG. 2 to FIG. 6 , and are specifically configured to perform the following operations:
[0131] Detecting multiple subcarrier bands;
[0132] In the case where an abnormal subcarrier band is detected, scheduling the ONU on the abnormal subcarrier band to a test detection band among the multiple subcarrier bands;
[0133] It is determined whether the test detection band is abnormal, and the abnormal ONU in the abnormal subcarrier band is determined according to the determination result.
[0134] FIG8 is a schematic diagram of the structure of an abnormal ONU detection device 80 according to an embodiment of the present application. Referring to FIG8 , in one software implementation, the abnormal ONU detection device 80 may include: a detection module 81, a scheduling module 82, and a determination module 83, wherein: the detection module 81 detects multiple subcarrier bands; the scheduling module 82, upon detecting an abnormal subcarrier band, schedules the ONU in the abnormal subcarrier band to a test detection band among the multiple subcarrier bands; and the determination module 83 determines whether the test detection band is abnormal and, based on the determination result, determines the abnormal ONU in the abnormal subcarrier band.
[0135] Optionally, the determination module 83 determines the abnormal ONU in the abnormal subcarrier band according to the judgment result, including: for any ONU to be tested on the abnormal subcarrier band, after scheduling the ONU to be tested to the test detection band, if the judgment result is that the test detection band is abnormal, the ONU to be tested is determined as an abnormal ONU.
[0136] Optionally, the scheduling module 82 further includes: scheduling the abnormal ONU to a discarded subcarrier band; or scheduling the abnormal ONU to the abnormal subcarrier band.
[0137] Optionally, when the abnormal ONU is scheduled to the abnormal subcarrier, the scheduling module 82 further includes: determining whether the ONUs on the abnormal subcarrier band have been traversed; when the ONUs on the abnormal subcarrier band have not been traversed, scheduling the ONUs that have not been traversed to the test detection band; when the ONUs on the abnormal subcarrier band have been traversed, ending the abnormal detection of the ONU.
[0138] Optionally, when the abnormal ONU is scheduled to the abandoned subcarrier band, the scheduling module 82 further includes: judging whether the abnormal subcarrier band has returned to normal; and ending the abnormal detection of the ONU when the abnormal subcarrier band has returned to normal.
[0139] Optionally, the scheduling module 82 also includes: when the abnormal subcarrier band has not returned to normal, determining whether the ONUs on the abnormal subcarrier band have been traversed; when the ONUs on the abnormal subcarrier band have not been traversed, scheduling the ONUs that have not been traversed to the test detection band; when the ONUs on the abnormal subcarrier band have been traversed, determining that there are ONUs on the abnormal subcarrier band that have not been successfully scheduled, and determining the ONUs that have not been successfully scheduled as abnormal ONUs.
[0140] Optionally, the determination module 83 determines the abnormal ONU in the abnormal subcarrier band according to the judgment result, including: for any ONU to be tested on the abnormal subcarrier band, after scheduling the ONU to be tested to the test detection band, if the judgment result is that the test detection band has no abnormality, judging whether the ONUs on the abnormal subcarrier band have been traversed; the scheduling module 82 also includes: if the ONUs on the abnormal subcarrier band have not been traversed, scheduling the ONUs that have not been traversed to the test detection band; the determination module 83 also includes: if the ONUs on the abnormal subcarrier band have been traversed, judging whether there are ONUs on the abnormal subcarrier band that have not been successfully scheduled, and if so, determining the ONU that has not been successfully scheduled as an abnormal ONU.
[0141] Optionally, the detection module 81 detects multiple subcarrier bands, including at least one of the following: detecting whether bit errors occur in the multiple subcarrier bands; detecting whether packet loss occurs in the multiple subcarrier bands; detecting whether abnormal fluctuations occur in the power of the multiple subcarrier bands; wherein, for each subcarrier band, the subcarrier band is characterized as an abnormal subcarrier band when the subcarrier band satisfies at least one of the following items: bit errors occur in the subcarrier band; packet loss occurs in the subcarrier band; and abnormal fluctuations occur in the power of the subcarrier band.
[0142] Optionally, the test detection band is an idle subcarrier band among the multiple subcarrier bands; or, the test detection band is a subcarrier band among the multiple subcarrier bands in which no abnormality occurs and the traffic is less than a preset threshold.
[0143] Optionally, the scheduling module 82 schedules the ONU on the abnormal subcarrier band to the test detection band among the multiple subcarrier bands, including: scheduling the ONU on the abnormal subcarrier band to the test detection band N times, scheduling one ONU to the test detection band each time, and N is the number of ONUs on the abnormal subcarrier band; wherein, the determination module 83 judges whether an abnormality occurs in the test detection band, and determines the abnormal ONU in the abnormal subcarrier band according to the judgment result, including: after each scheduling of an ONU to be tested on the abnormal subcarrier band to the test detection band, judging whether an abnormality occurs in the test detection band, and determining the abnormal ONU in the abnormal subcarrier band according to the judgment result.
[0144] Optionally, after determining the abnormal ONU in the abnormal subcarrier band, the determining module 83 further includes: marking the abnormal ONU in the abnormal subcarrier band and reporting the detection result of the abnormal ONU.
[0145] Optionally, the scheduling module 82 further includes: for the normal ONU on the abnormal subcarrier band, retaining the normal ONU on the test detection band, or scheduling the normal ONU to other normal subcarrier bands of the multiple subcarrier bands.
[0146] Optionally, the abnormal ONU detection device 80 is applied to at least one of the following: a PON system using multiple subcarrier bands for uplink transmission; a PON system using multiple subcarrier bands for downlink transmission; a PON system using multiple subcarrier bands for uplink and downlink transmission.
[0147] The abnormal ONU detection device 80 provided in the embodiment of the present application can also execute the methods of Figures 2 to 6 and realize the functions of the abnormal ONU detection device 80 in the embodiments shown in Figures 2 to 6, which will not be repeated in this application.
[0148] An embodiment of the present application also provides a system for detecting abnormal ONUs, which includes an OLT and multiple ONUs. The OLT can use multiple subcarrier bands to perform uplink transmission, downlink transmission, or uplink and downlink transmission with the multiple ONUs. One subcarrier band can have one or more ONUs. When an abnormal ONU appears on a subcarrier band, the OLT can effectively detect the abnormal ONU. When detecting an abnormal ONU, the OLT includes the following steps: detecting multiple subcarrier bands; when an abnormal subcarrier band is detected, scheduling the ONU on the abnormal subcarrier band to a test detection band among the multiple subcarrier bands; determining whether an abnormality occurs in the test detection band, and determining the abnormal ONU in the abnormal subcarrier band based on the determination result.
[0149] The specific implementation of the above steps can refer to the specific implementation of the corresponding steps in the embodiment shown in Figure 2, and will not be repeated here.
[0150] In the abnormal ONU detection system provided in the embodiment of the present application, the OLT can detect whether there is an abnormal subcarrier band in multiple subcarrier bands. After detecting the abnormal subcarrier band, the characteristics of multiple subcarriers can be used to schedule the ONU on the abnormal subcarrier band to other subcarrier bands (i.e., test detection bands) of the multiple subcarrier bands, and determine whether the scheduled ONU is abnormal by whether abnormalities occur in other subcarrier bands. In this way, it is possible to effectively detect which ONUs in the abnormal subcarrier band are abnormal ONUs, thereby achieving effective detection of abnormal ONUs.
[0151] In short, the above description is only a preferred embodiment of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
[0152] The systems, devices, modules, or units described in the above embodiments may be implemented by computer chips or entities, or by products having certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0153] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0154] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0155] The various embodiments in this application are described in a progressive manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences from other embodiments. In particular, the system embodiment is generally similar to the method embodiment, so the description is relatively simple. For relevant parts, refer to the partial description of the method embodiment.
Claims
1. A method for detecting an abnormal ONU, comprising: Detecting multiple subcarrier bands; In the case where an abnormal subcarrier band is detected, scheduling the ONU on the abnormal subcarrier band to a test detection band among the multiple subcarrier bands; It is determined whether the test detection band is abnormal, and the abnormal ONU in the abnormal subcarrier band is determined according to the determination result.
2. The detection method according to claim 1, wherein determining the abnormal ONU in the abnormal subcarrier band according to the judgment result comprises: For any ONU to be tested on the abnormal subcarrier band, after the ONU to be tested is scheduled to the test detection band, if the judgment result is that the test detection band is abnormal, the ONU to be tested is determined to be an abnormal ONU.
3. The detection method according to claim 2, further comprising: Scheduling the abnormal ONU to a discarded subcarrier band; or, The abnormal ONU is scheduled to the abnormal subcarrier band.
4. The detection method according to claim 3, in the case where the abnormal ONU is scheduled to the abnormal subcarrier, the method further comprises: Determine whether the ONUs on the abnormal subcarrier band have been traversed; In the case where the ONUs on the abnormal subcarrier band are not traversed, scheduling the ONUs that have not been traversed to the test detection band; In the case that the ONUs on the abnormal subcarrier band have been traversed, the abnormality detection of the ONU is ended.
5. The detection method according to claim 3, in the case where the abnormal ONU is scheduled to the abandoned subcarrier band, the method further comprises: Determining whether the abnormal subcarrier band returns to normal; When the abnormal subcarrier band returns to normal, the abnormality detection on the ONU is ended.
6. The detection method according to claim 5, further comprising: In the case that the abnormal subcarrier band has not returned to normal, determining whether the ONUs on the abnormal subcarrier band have been traversed; In the case where the ONUs on the abnormal subcarrier band are not traversed, scheduling the ONUs that have not been traversed to the test detection band; In the case that the ONUs on the abnormal subcarrier band have been traversed, it is determined that there is an ONU on the abnormal subcarrier band that has not been successfully scheduled, and the ONU that has not been successfully scheduled is determined as an abnormal ONU.
7. The detection method according to claim 1, wherein determining the abnormal ONU in the abnormal subcarrier band according to the judgment result comprises: For any ONU to be tested on the abnormal subcarrier band, after scheduling the ONU to be tested to the test detection band, if the judgment result is that no abnormality occurs in the test detection band, judging whether the ONUs on the abnormal subcarrier band have been traversed; In the case where the ONUs on the abnormal subcarrier band are not traversed, scheduling the ONUs that have not been traversed to the test detection band; In the case that the ONUs on the abnormal subcarrier band have been traversed, it is determined whether there is an ONU on the abnormal subcarrier band that has not been successfully scheduled, and if so, the ONU that has not been successfully scheduled is determined as an abnormal ONU.
8. The detection method according to claim 1, wherein the detecting of the multiple subcarrier bands comprises at least one of the following: Detecting whether bit errors occur in the multiple subcarrier bands; Detecting whether packet loss occurs in the multiple subcarrier bands; Detecting whether the power of the multiple subcarrier bands fluctuates abnormally; in, For each subcarrier band, if the subcarrier band satisfies at least one of the following conditions, the subcarrier band is characterized as an abnormal subcarrier band: A bit error occurs in the subcarrier band; Packet loss occurs in the subcarrier band; The power of the subcarrier band fluctuates abnormally.
9. The detection method according to claim 1, wherein the test detection band is an idle subcarrier band among the multiple subcarrier bands; or The test detection band is a subcarrier band among the multiple subcarrier bands in which no abnormality occurs and the flow rate is less than a preset threshold.
10. The detection method according to claim 1, wherein scheduling the ONU on the abnormal subcarrier band to a test detection band among the multiple subcarrier bands comprises: Scheduling the ONUs on the abnormal subcarrier band to the test detection band in N times, scheduling one ONU to the test detection band each time, where N is the number of ONUs on the abnormal subcarrier band; The step of judging whether the test detection band is abnormal and determining the abnormal ONU in the abnormal subcarrier band according to the judgment result includes: After scheduling an ONU to be tested on the abnormal subcarrier band to the test detection band, it is determined whether the test detection band is abnormal, and the abnormal ONU in the abnormal subcarrier band is determined according to the determination result.
11. The detection method according to claim 1, after determining the abnormal ONU in the abnormal subcarrier band, the method further comprises: The abnormal ONU in the abnormal subcarrier band is marked, and the detection result of the abnormal ONU is reported.
12. The detection method according to claim 1, further comprising: For a normal ONU on the abnormal subcarrier band, the normal ONU is retained on the test detection band, or the normal ONU is scheduled to other normal subcarrier bands of the multiple subcarrier bands.
13. The detection method according to any one of claims 1 to 12, wherein the method is applied to at least one of the following: PON system using multiple subcarrier bands for upstream transmission; PON systems that use multiple subcarrier bands for downlink transmission; A PON system that uses multiple subcarrier bands for upstream and downstream transmission.
14. An electronic device comprising: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method according to any one of claims 1 to 13.
15. A computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 13.
16. A detection system for abnormal ONU, comprising an OLT and a plurality of ONUs, wherein: The OLT detects multiple subcarrier bands; When the OLT detects an abnormal subcarrier band, The ONU is scheduled to a test detection band among the multiple subcarrier bands; The OLT determines whether an abnormality occurs in the test detection band, and determines an abnormal ONU in the abnormal subcarrier band according to the determination result.
Citation Information
Patent Citations
Abnormal ONU detection method, electronic equipment and computer readable storage medium
CN119676595A
A method and system for identifying malicious optical network units
CN102271293A
Method and device for processing uplink data exception
CN103051983A
Method for identifying rogue ONU in passive optical network and device
CN105743567A
ONU anomaly detection method, device, OLT, and optical network
CN109039444A