OLT uplink control method and device, electronic equipment and storage medium
By obtaining historical quality difference parameter data and inputting it into the decision prediction model, the error code and frequent flash breaking problems of the OLT uplink are automatically processed, and the problems of low efficiency and long user perception time in the existing technology are solved, and the OLT uplink is realized Self-healing and real-time monitoring of the link.
Patent Information
- Application Number
- CN202410966741.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-11-22
AI Technical Summary
In the prior art, the errors and frequent flash breaks of the OLT uplink link cause users of home broadband, TV services and Internet services to have a long perception time, and require a lot of manual verification and processing, which is inefficient.
By obtaining historical quality-defying parameter data and inputting it into the trained decision prediction model, the execution strategy is determined, and the OLT uplink automation and self-repair are realized to avoid affecting user perception.
Real-time monitoring and automated processing of OLT uplink links are realized, which reduces manual intervention, improves processing efficiency, and avoids the extension of user perception time.
Smart Images

Figure CN119011019A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of artificial intelligence technology, and in particular to a control method, device, electronic device and storage medium for an OLT uplink. Background Art
[0002] With the continuous development of high-bandwidth home services and 4K TV services, the requirements for network quality are becoming higher and higher. Among them, the Optical Line Terminal (OLT) equipment carries services such as home broadband, TV, Internet dedicated lines, and circuit leasing, and plays an important role in the access network structure. If the OLT uplink has bit errors, frequent flash disconnections, and other poor quality, it will affect the user perception of the home broadband service, TV service, voice service, Internet service, etc. attached to the OLT.
[0003] The maintenance method in the related technology is to manually check whether there is weak light in the OLT uplink, whether there are new bit errors, etc., and then determine whether it is necessary to modify the priority of the OLT uplink and perform temporary switching of the link, so as to notify the site to repair the link, and finally manually complete the verification and restoration of the data. However, manually checking the OLT uplink and judging whether temporary processing is required requires a lot of labor costs and is not efficient, which affects the customer's perception time for a long time. This is a problem that needs to be solved urgently. Summary of the invention
[0004] The present disclosure provides a control method, device, electronic device and storage medium for an OLT uplink.
[0005] In a first aspect, the present disclosure provides a method for controlling an OLT uplink, comprising: if quality difference parameter data of at least one of the two OLT uplinks at the current moment shows that it is in a poor quality state, obtaining historical quality difference parameter data between the current moment and a first historical moment, wherein the first historical moment is the moment closest to the current moment and the quality difference parameter data of the two OLT uplinks both show that they are in a normal state; inputting the interval time number between the first historical moment and the current moment, and the historical quality difference parameter data into a trained decision prediction model to determine the execution strategy of the pending services of the two OLT uplinks; and controlling the execution of the pending services of the two OLT uplinks according to the execution strategy.
[0006] In some embodiments, the above method also includes: if the quality difference parameter data of the two OLT uplinks at the current moment are both in a normal state, and the first service of the first OLT uplink in the two OLT uplinks at the previous moment is executed on the second OLT uplink, determining to switch the first service to the first OLT uplink for execution; or if the quality difference parameter data of the two OLT uplinks at the current moment are both in a normal state, and the second service of the second OLT uplink in the two OLT uplinks at the previous moment is executed on the first OLT uplink, determining to switch the second service to the second OLT uplink for execution.
[0007] In some embodiments, the two OLT uplinks include a first OLT uplink and a second OLT uplink, wherein determining execution strategies for services to be executed on the two OLT uplinks includes at least one of the following:
[0008] Determine to switch the pending service executed on the first OLT uplink to the second OLT uplink for execution, wherein the pending service includes the service of the first OLT uplink and / or the service of the second OLT uplink;
[0009] Determine to switch the pending service executed on the second OLT uplink to the first OLT uplink for execution, wherein the pending service includes the service of the first OLT uplink and / or the service of the second OLT uplink;
[0010] Determine that the pending service to be executed on the first OLT uplink continues to be executed on the first OLT uplink, wherein the pending service includes the service of the first OLT uplink and / or the service of the second OLT uplink;
[0011] It is determined that the pending service to be executed on the second OLT uplink continues to be executed on the second OLT uplink, wherein the pending service includes the service of the first OLT uplink and / or the service of the second OLT uplink.
[0012] In some embodiments, controlling the execution of pending services on two OLT uplinks according to the execution strategy includes: controlling the execution of pending services on the two OLT uplinks according to the execution strategy and the priorities of the pending services on the two OLT uplinks.
[0013] In some embodiments, the quality difference parameter data includes: cyclic redundancy check CRC bit error, number of flashes in a cycle, and traffic utilization.
[0014] In a second aspect, the present disclosure provides a control device for an OLT uplink, comprising: a data acquisition unit, for acquiring historical quality difference parameter data between the current moment and a first historical moment if the quality difference parameter data of at least one of the two OLT uplink links shows that it is in a poor quality state at the current moment, wherein the first historical moment is the moment closest to the current moment and the quality difference parameter data of the two OLT uplinks both show that they are in a normal state; a strategy determination unit, for inputting the interval time number between the first historical moment and the current moment, and the historical quality difference parameter data into a trained decision prediction model to determine the execution strategy of the pending services of the two OLT uplinks; a first control unit, for controlling the execution of the pending services of the two OLT uplinks according to the execution strategy.
[0015] In a third aspect, the present disclosure provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the control method of the OLT uplink disclosed in an embodiment of the present disclosure.
[0016] In a fourth aspect, the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the control method of the OLT uplink disclosed in the embodiment of the present disclosure.
[0017] In a fifth aspect, the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the control method of the OLT uplink disclosed in the embodiment of the present disclosure.
[0018] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0019] In the disclosed embodiment, the poor quality of the OLT uplink link can be monitored in real time and classified by itself, and the poor quality link can be automatically processed to achieve self-repair of the poor quality of the OLT uplink link to avoid affecting user perception. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0021] Figure 1 This is a flow chart of a method for controlling an OLT uplink according to an exemplary embodiment;
[0022] Figure 2 A schematic diagram showing visualization of prediction accuracy of a decision prediction model according to an exemplary embodiment;
[0023] Figure 3 is a schematic diagram of a confusion matrix after training according to an exemplary embodiment;
[0024] Figure 4 is a structural diagram of a control device for an OLT uplink according to an exemplary embodiment;
[0025] Figure 5 is a structural diagram of a control device for an OLT uplink according to another exemplary embodiment;
[0026] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure.
[0027] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0028] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0029] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in the embodiments of the present disclosure are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0030] The technical solution of the present invention and how the technical solution of the present invention solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.
[0031] OLT equipment carries services such as home broadband, TV, Internet dedicated lines, and circuit leasing, and plays an important role in the access network structure. Once an OLT device fails, the entire device's downstream services will be affected. Therefore, in the existing network, the OLT uplink to the metropolitan area network device BNG generally adopts a dual uplink networking structure, that is, there are two OLT uplink links to ensure the redundancy and robustness of the OLT uplink link.
[0032] In the OLT data configuration, in order to better manage and maintain the network, the service data is configured in a two-layer virtual local area network (VLAN) mode. Different services are marked with different outer VLANs with different tail numbers. For example, the outer VLAN tail number of the home broadband service is 0, the outer VLAN tail number of the on-demand service is 6, the outer VLAN tail number of the Internet dedicated line service is 3, and the multicast VLAN of the live broadcast service is 900. Different outer VLANs are used to distinguish services, and the outer VLAN is opened accordingly on the OLT uplink to enable communication between the OLT and the uplink metropolitan area network device BNG.
[0033] OLT equipment generally adopts dual uplinks for redundant protection. When one of the uplinks is interrupted, it can automatically switch to the other uplink. However, when one link has poor quality such as CRC errors or frequent interruptions, the service cannot be automatically switched to the backup link.
[0034] In the related art, manually checking the OLT uplink and judging whether temporary processing is needed requires a lot of labor costs and is inefficient, which affects the customer's perception time for a long time.
[0035] Based on this, the disclosed embodiment provides a control method, device, electronic device and storage medium for an OLT uplink, wherein the method includes: if the quality difference parameter data of at least one of the two OLT uplinks at the current moment shows that it is in a poor quality state, obtain the historical quality difference parameter data between the current moment and the first historical moment, wherein the first historical moment is the moment closest to the current moment and the quality difference parameter data of the two OLT uplinks are both shown to be in a normal state; input the interval time number between the first historical moment and the current moment, and the historical quality difference parameter data into a trained decision prediction model to determine the execution strategy of the pending services of the two OLT uplinks; according to the execution strategy, control the execution of the pending services of the two OLT uplinks. In this way, the quality difference of the OLT uplink can be monitored in real time and classified by itself, the automatic processing of the quality difference link can be completed, and the self-repair of the quality difference of the OLT uplink can be realized to avoid affecting user perception.
[0036] Figure 1The figure is a flow chart of a method for controlling an OLT uplink according to an exemplary embodiment.
[0037] like Figure 1 As shown, the control method of the OLT uplink provided by the embodiment of the present disclosure includes but is not limited to the following steps:
[0038] S1. If the quality difference parameter data of at least one of the two OLT uplinks at the current moment shows that it is in a poor quality state, obtain the historical quality difference parameter data between the current moment and the first historical moment, wherein the first historical moment is the moment closest to the current moment and the quality difference parameter data of the two OLT uplinks both show that they are in a normal state.
[0039] In the disclosed embodiment, quality difference parameter data of two OLT uplinks are collected at predetermined time intervals.
[0040] Exemplarily, the predetermined time interval is 1 minute, 5 minutes, 10 minutes, etc., and the embodiments of the present disclosure do not impose specific limitations on this.
[0041] In some embodiments, the quality difference parameter data includes: Cyclic Redundancy Check (CRC) bit error, number of flashes in a cycle, and traffic utilization.
[0042] It is understandable that when the number of new CRC errors is large and the speed of increase is fast, it will directly affect the service perception, especially the TV live broadcast service with high link quality requirements, which will cause screen distortion. Traditional maintenance methods require manual verification of whether there are CRC errors and emergency operations of switching links by logging into the device. Manual operations cannot be processed in real time, timeliness cannot be guaranteed, and the processing efficiency is low. In addition, when the OLT uplink link is frequently interrupted within a period, the service perception will decrease. The home broadband service will be disconnected and need to be re-logged in, and the TV service will be stuck. The traditional maintenance method is to notify the on-site maintenance personnel of the flash port information for verification, testing and positioning. The processing time may be long, affecting the customer's usage perception.
[0043] In the disclosed embodiment, the quality difference parameter data of the two OLT uplink links may include CRC bit errors, the number of strobes in a cycle, and the traffic utilization rate, so as to monitor the CRC bit errors, the number of strobes in a cycle, and the traffic utilization rate of the OLT uplink link in real time and judge and classify them by themselves, complete the automatic processing of the quality difference link, realize the self-repair of the quality difference of the OLT uplink link, and avoid affecting the user perception
[0044] Exemplarily, as shown in Table 1 below, a collection table of uplinks is established for each OLT, and collection is performed at predetermined time intervals, such as once every 10 minutes. The collection table includes three information of the two uplinks of the OLT, including CRC bit errors, number of flashes in a cycle, and flow utilization, forming a quality parameter data of the OLT uplink in a time series.
[0045]
[0046] Table 1
[0047] In the disclosed embodiment, the quality difference parameter data of two OLT uplink links are collected by using the OLT network device operations and development (Netdevops) technology.
[0048] The CRC error, number of flashes in a cycle, and traffic utilization of the OLT uplink are collected through Netdevops technology. Real-time information is obtained by interacting with the OLT device by sending display port statistics+port number, display port traffic+port number, and displaytraffic vlan+vlan number.
[0049] Among them, the TEXTFSM template used is used to extract the target information from the OLT device echo. The TEXTFSM templates for collecting the CRC bit error, the number of strobes in a cycle, and the traffic utilization of the OLT uplink port are shown in Table 2 below:
[0050]
[0051] Table 2
[0052] In an embodiment of the present disclosure, when the quality difference parameter data of at least one of the two OLT uplink links at the current moment is shown to be in a poor quality state, historical quality difference parameter data between the current moment and the first historical moment can be obtained, wherein the first historical moment is the moment closest to the current moment and the quality difference parameter data of the two OLT uplink links are both shown to be in a normal state.
[0053] For example, at time T1, link 1 and link 2 of the two OLT uplinks are both in normal state; at time T2, link 1 of the two OLT uplinks is in poor quality state, and link 2 is in normal state. If the current time is time T2, the quality difference parameters of the two OLT uplinks from time T1 to time T2 can be obtained.
[0054] Exemplarily, at T1, both link 1 and link 2 are in normal state; at T2, link 1 is in poor quality state, link 2 is in normal state; at T3, link 1 is still in poor quality state, link 2 is in poor quality state; at T4, link 1 returns to normal state, link 2 is still in poor quality state; at T5, link 1 is in normal state, link 2 returns to normal state; at T6, link 1 is in poor quality state, link 2 is in normal state. Among them, if the current moment is T2, the quality difference parameters of the two OLT uplink links from T1 to T2 can be obtained; or if the current moment is T3, the quality difference parameters of the two OLT uplink links from T1 to T3 can be obtained; or if the current moment is T4, the quality difference parameters of the two OLT uplink links from T1 to T4 can be obtained; or if the current moment is T6, the quality difference parameters of the two OLT uplink links from T5 to T6 can be obtained.
[0055] S2, inputting the interval time between the first historical moment and the current moment, and the historical quality difference parameter data into the trained decision prediction model to determine the execution strategy of the pending services of the two OLT uplink links.
[0056] In the disclosed embodiment, after obtaining the historical quality difference parameter data between the current moment and the first historical moment, the interval time number between the first historical moment and the current moment can be determined. Then, the interval time number between the first historical moment and the current moment and the historical quality difference parameter data are input into the trained decision prediction model to determine the execution strategy of the pending services of the two OLT uplink links.
[0057] In some embodiments, the trained decision prediction model is trained based on a long short-term memory network (LSTM).
[0058] LSTM has good time series prediction capabilities. It can extract valuable data implicit features by analyzing time series data. The basic data for OLT uplink link quality analysis is data collected at consecutive equally spaced time points, which is a series of time series data. Therefore, the disclosed embodiment uses LSTM to perform supervised classification learning on the OLT uplink link quality problem. In addition, because the OLT uplink link quality is staged from normal to poor, in order to avoid the LSTM memory capacity exceeding the limit, the interval between the first historical moment and the current moment is used as a sliding window to avoid LSTM processing too long sequences, and the long sequence is divided into multiple short sequences. In this way, LSTM only needs to remember the historical information related to the short sequence, which reduces the memory load of LSTM and allows it to focus on the recent patterns and laws in the short-term sequence.
[0059] By adjusting the sliding window size, batch size (batch_size) and other parameters, the training accuracy reaches more than 99%. For the visualization of prediction accuracy, see Figure 2 .
[0060] The confusion matrix after training is shown in Figure 3 , it can be seen that the values on the diagonal (that is, the part where the true value and the predicted value are the same) occupy the majority, indicating that the model can distinguish positive examples from negative examples very well, and the number of misclassified samples is only 7, that is, the values on the off-diagonal.
[0061] In some embodiments, the two OLT uplinks include a first OLT uplink and a second OLT uplink, wherein determining execution strategies for services to be executed on the two OLT uplinks includes at least one of the following:
[0062] Determine to switch the pending service executed on the first OLT uplink to the second OLT uplink for execution, wherein the pending service includes the service of the first OLT uplink and / or the service of the second OLT uplink;
[0063] Determine to switch the pending service executed on the second OLT uplink to the first OLT uplink for execution, wherein the pending service includes the service of the first OLT uplink and / or the service of the second OLT uplink;
[0064] Determine that the pending service to be executed on the first OLT uplink continues to be executed on the first OLT uplink, wherein the pending service includes the service of the first OLT uplink and / or the service of the second OLT uplink;
[0065] It is determined that the pending service to be executed on the second OLT uplink continues to be executed on the second OLT uplink, wherein the pending service includes the service of the first OLT uplink and / or the service of the second OLT uplink.
[0066] In the embodiment of the present disclosure, it is determined that the pending service executed on the first OLT uplink is switched to the second OLT uplink for execution, wherein the pending service includes the service of the first OLT uplink and / or the service of the second OLT uplink.
[0067] In the embodiment of the present disclosure, it is determined that the pending service executed on the second OLT uplink is switched to the first OLT uplink for execution, wherein the pending service includes the service of the first OLT uplink and / or the service of the second OLT uplink.
[0068] In the embodiment of the present disclosure, it is determined that the pending service to be executed on the first OLT uplink continues to be executed on the first OLT uplink, wherein the pending service includes the service of the first OLT uplink and / or the service of the second OLT uplink.
[0069] In the embodiment of the present disclosure, it is determined that the pending service to be executed on the second OLT uplink continues to be executed on the second OLT uplink, wherein the pending service includes the service of the first OLT uplink and / or the service of the second OLT uplink.
[0070] S3, controlling the execution of the pending services of the two OLT uplinks according to the execution strategy.
[0071] In the embodiment of the present disclosure, when the execution strategies of the pending services of the two OLT uplinks are determined, the execution of the pending services of the two OLT uplinks can be controlled according to the execution strategies.
[0072] By implementing the disclosed embodiment, if the quality difference parameter data of at least one of the two OLT uplinks at the current moment is displayed as being in a poor quality state, obtain the historical quality difference parameter data between the current moment and the first historical moment, wherein the first historical moment is the moment closest to the current moment and the quality difference parameter data of the two OLT uplinks are displayed as being in a normal state; input the interval between the first historical moment and the current moment, and the historical quality difference parameter data into the trained decision prediction model to determine the execution strategy of the pending services of the two OLT uplinks; according to the execution strategy, control the execution of the pending services of the two OLT uplinks. In this way, the quality difference of the OLT uplink can be monitored in real time and classified by itself, the automatic processing of the quality difference link can be completed, and the self-repair of the quality difference of the OLT uplink can be realized to avoid affecting user perception.
[0073] In some embodiments, if the quality difference parameter data of the two OLT uplinks at the current moment are both in a normal state, and the first service of the first OLT uplink in the two OLT uplinks at the previous moment is executed on the second OLT uplink, it is determined to switch the first service to the first OLT uplink for execution; or if the quality difference parameter data of the two OLT uplinks at the current moment are both in a normal state, and the second service of the second OLT uplink in the two OLT uplinks at the previous moment is executed on the first OLT uplink, it is determined to switch the second service to the second OLT uplink for execution.
[0074] In the embodiment of the present disclosure, when the quality difference parameter data of the two OLT uplinks at the current moment are both displayed to be in a normal state, and the first service of the first OLT uplink of the two OLT uplinks at the moment before the current moment is executed on the second OLT uplink, it can be determined that the first service is switched to the first OLT uplink for execution.
[0075] In the embodiment of the present disclosure, when the quality difference parameter data of the two OLT uplinks at the current moment are both displayed to be in a normal state, and the second service of the second OLT uplink in the two OLT uplinks at the moment before the current moment is executed on the first OLT uplink, it can be determined that the second service is switched to the second OLT uplink for execution.
[0076] To facilitate understanding of the embodiments of the present disclosure, according to the status of two OLT uplinks, taking the two OLT uplinks including eth1 (link 1) and eth2 (link 2) as an example, 9 types of link timing change types are sorted out as shown in Table 3 below:
[0077]
[0078] Table 3
[0079] By summarizing the above 9 types of link timing changes, the execution strategies of the services to be executed on the two OLT uplinks are divided into 7 categories and coded for classification of execution strategies, as shown in Table 4 below:
[0080] Execution strategy coding No action required 0 The eth1 service is switched from eth1 to eth2 1 eth2 services are switched from eth2 to eth1 2 The eth1 service is switched from eth2 to eth1 3 eth2 services are switched from eth1 to eth2 4 eth1eth2 services are switched from eth1 to eth2 5 eth1eth2 services are switched from eth2 to eth1 6
[0081] Table 4
[0082] For example, for the above 9 types of link timing changes, the execution strategies of the services to be executed on the two OLT uplink links are as follows:
[0083] Scenario 1: At time T1, both link 1 and link 2 are in normal state. At time T2, both link 1 and link 2 are in normal state. Then, no link processing is required. That is, the services of link 1 and link 2 are executed separately.
[0084] Scenario 2: At time T1, both link 1 and link 2 are in normal state; at time T2, link 1 is in poor quality state and link 2 is in normal state, so the service of link 1 is switched to link 2 for execution; at time T3, link 1 is restored to normal state and link 2 is in normal state, then the service of link 1 originally carried on link 2 needs to be switched back to link 1 for execution.
[0085] Scenario 3: At time T1, both link 1 and link 2 are in normal state; at time T2, link 1 is in poor quality state and link 2 is in normal state, then the service of link 1 is switched to link 2 for execution; at time T3, link 1 is still in poor quality state and link 2 is also in poor quality state, no processing is required, and the service is mainly carried on link 2; at time T4, link 1 returns to normal state and link 2 is still in poor quality state, then the service carried on link 2 needs to be switched to link 1; at time T5, link 1 is in normal state and link 2 returns to normal state, then the service originally carried on link 2 needs to be switched back from link 1 to link 2 for execution.
[0086] Scenario 4: At time T1, both link 1 and link 2 are in normal state; at time T2, link 1 is in poor quality state and link 2 is in normal state, then the service of link 1 is switched to link 2 for execution; at time T3, link 1 is still in poor quality state and link 2 is also in poor quality state, then no processing is required, and the service is mainly carried on link 2; at time T4, link 1 is still in poor quality state and link 2 returns to normal state, because the service has been switched to link 1 at T1, so no processing is required at this time; at time T5, link 1 returns to normal state and link 2 is in normal state, then the service originally carried on link 1 needs to be switched back from link 2 to link 1 for execution.
[0087] Scenario 5: At time T1, both link 1 and link 2 are in normal state; at time T2, link 1 is in poor quality state and link 2 is in normal state, then the service of link 1 is switched to link 2 for execution; at time T3, link 1 is restored to normal state and link 2 is in poor quality state, then all the service traffic of original link 1 and original link 2 carried on link 2 needs to be switched to link 1 for execution; at time T4, link 1 is in normal state and link 2 is restored to normal state, then the service carried by original link 2 needs to be switched back from link 1 to link 2 for execution.
[0088] Scenario 6: At time T1, both link 1 and link 2 are in normal state; at time T2, link 1 is in normal state and link 2 is in poor quality state, then the service of link 2 is automatically switched to link 1 for execution; at time T3, link 1 is in normal state and link 2 recovers to normal state, and the service originally carried by link 2 needs to be switched back from link 1 to link 2 for execution.
[0089] Scenario 7: At time T1, both link 1 and link 2 are in normal state; at time T2, link 1 is in normal state and link 2 is in poor quality state, then the service of link 2 is automatically switched to link 1 for execution; at time T3, both link 1 and link 2 are in poor quality state, because both links are of poor quality, no processing is done at this time; at time T4, link 1 returns to normal state and link 2 is in poor quality state, because at T2, the services are switched to link 1 for carrying, and no processing is done; at time T5, link 1 is in normal state and link 2 returns to normal state, and the services initially carried by link 2 are switched back from link 1 to link 2 for execution.
[0090] Scenario 8: At time T1, both link 1 and link 2 are in normal state; at time T2, link 1 is in normal state and link 2 is in poor quality state, then the service of link 2 is automatically switched to link 1 for execution; at time T3, both link 1 and link 2 are in poor quality state, because both links are of poor quality, no processing is done at this time; at time T4, link 1 is in poor quality state and link 2 returns to normal state, and the services carried by link 1 and link 2 initially carried by link 1 need to be switched to link 2 for execution.
[0091] Scenario 9: At time T1, both link 1 and link 2 are normal; at time T2, link 1 is a normal link and link 2 is in a poor quality state, then the service of link 2 is automatically switched to link 1 for execution; at time T3, link 1 is in a poor quality state and link 2 is in a normal state, then the services of link 1 and link 2 initially carried by link 1 are switched to link 2 for execution; at time T4, link 1 returns to normal and link 2 is in a normal state, then the services of link 1 initially carried by link 2 are switched back to link 1 for execution.
[0092] Exemplarily, the data of the two aggregation group ports of the two OLT uplink links (link 1 and link 2) collected are illustrated as shown in Table 5 below, where x1, x2, and x3 represent the CRC bit error, traffic utilization, and number of flashes within a cycle of the eth1 (link 1) port, and x4, x5, and x6 represent the CRC bit error, traffic utilization, and number of flashes within a cycle of the eth2 (link 2) port, and y represents the execution strategy.
[0093] Time x1 x2 x3 x4 x5 x6 y 2023 / 5 / 18 0:00 0 40 0 0 34 0 0 2023 / 5 / 18 0:10 0 41 0 2034 34 0 2 2023 / 5 / 18 0:20 0 42 0 2699 34 0 0 2023 / 5 / 18 0:30 0 43 0 0 37 0 4 2023 / 5 / 18 0:40 1000 40 0 0 38 0 1 2023 / 5 / 18 0:50 1034 39 0 0 29 0 0 2023 / 5 / 18 1:00 0 38 0 0 37 0 3 2023 / 5 / 18 1:10 0 36 0 0 34 0 0 2023 / 5 / 18 1:20 0 34 0 0 34 0 0 2023 / 5 / 18 1:30 0 37 0 0 37 0 0 2023 / 5 / 18 1:40 0 34 0 0 43 0 0 2023 / 5 / 18 1:50 0 37 0 0 43 0 0 2023 / 5 / 18 2:00 0 38 0 0 40 0 0 2023 / 5 / 18 2:10 0 29 0 0 39 0 0 2023 / 5 / 18 2:20 0 37 0 0 38 0 0
[0094] Table 5
[0095] In some embodiments, controlling the execution of pending services on two OLT uplinks according to the execution strategy includes: controlling the execution of pending services on the two OLT uplinks according to the execution strategy and the priorities of the pending services on the two OLT uplinks.
[0096] In the disclosed embodiment, priorities may be set for pending services on the two OLT uplinks, and the execution of the pending services on the two OLT uplinks may be controlled according to the execution strategy and the priorities of the pending services on the two OLT uplinks.
[0097] In some embodiments, the to-be-executed service of the first OLT uplink of the two OLT uplinks needs to be switched to the second OLT uplink, the total traffic utilization of the VLAN of the first OLT uplink is determined, the priority of the to-be-executed service is determined, and the VLAN of the to-be-executed service is determined based on the priority and the total traffic utilization; the calculation algorithm uses a dictionary traversal method to sort the values of the priority field according to the priority, and then add the values that meet the conditions to the list until their sum reaches or exceeds the total traffic utilization; according to the calculated VLAN of the to-be-executed service, a switching script is automatically generated; the above automatically generated script is sent to the device and the sent configuration is checked; and the MAC address and traffic of the corresponding VLAN are verified to be as expected.
[0098] In some embodiments, the services to be executed are divided into three priorities: live broadcast has the highest priority, which is defined as 2; on-demand priority is 1; and home broadband and dedicated line priority is 0.
[0099] In the disclosed embodiment, the collected link quality parameter data is used as input, and an OLT uplink link quality processing type prediction model based on the sliding window LSTM is used to output the execution strategy of the service to be executed, the method of self-repair and dynamic adjustment of the OLT uplink link, and priorities are set in combination with the degree of impact of the quality-poor link and service perception. The selection of the self-repair service is completed in combination with the real-time link bandwidth utilization, thereby realizing self-repair and verification of the entire process.
[0100] In the disclosed embodiment, the VLAN switching method for services such as live TV, on-demand, and home broadband is used to switch the service path. The OLT management VLAN still has dual uplink protection, and the OLT device will not be disconnected due to the interruption of one of the links. By querying the traffic conditions of each VLAN in real time, making decisions on VLAN switching plans, polling the traffic to monitor the health status, and using real-time parameters for dynamic decision-making, the peak traffic judgment is resolved to avoid unreasonable decisions and waste of resources. New uplink link strobe and other uplink link quality processing scenarios are added.
[0101] Figure 4 The figure is a structural diagram of a control device for an OLT uplink according to an exemplary embodiment.
[0102] like Figure 4 As shown, the short message management device 1 includes: a data acquisition unit 11, a strategy determination unit 12 and a first control unit 13.
[0103] The data acquisition unit 11 is used to obtain historical quality difference parameter data between the current moment and the first historical moment if the quality difference parameter data of at least one of the two OLT uplink links at the current moment shows that it is in a poor quality state, wherein the first historical moment is the moment closest to the current moment and the quality difference parameter data of the two OLT uplink links are both shown to be in a normal state.
[0104] The strategy determination unit 12 is used to input the interval time between the first historical moment and the current moment, and the historical quality difference parameter data into the trained decision prediction model to determine the execution strategy of the to-be-executed services of the two OLT uplinks.
[0105] The first control unit 13 is used to control the execution of the services to be executed on the two OLT uplinks according to the execution strategy.
[0106] like Figure 5 As shown, in some embodiments, the control device 1 of the OLT uplink further includes: a second control unit 14 .
[0107] The second control unit 14 is used to determine that the first service is switched to the first OLT uplink for execution if the quality difference parameter data of the two OLT uplinks at the current moment are both in a normal state, and the first service of the first OLT uplink in the two OLT uplinks at the previous moment is executed on the second OLT uplink; or to determine that the second service is switched to the second OLT uplink for execution if the quality difference parameter data of the two OLT uplinks at the current moment are both in a normal state, and the second service of the second OLT uplink in the two OLT uplinks at the previous moment is executed on the first OLT uplink.
[0108] In some embodiments, the two OLT uplinks include a first OLT uplink and a second OLT uplink, wherein the strategy determination unit 12 is specifically configured to perform at least one of the following:
[0109] Determine to switch the pending service executed on the first OLT uplink to the second OLT uplink for execution, wherein the pending service includes the service of the first OLT uplink and / or the service of the second OLT uplink;
[0110] Determine to switch the pending service executed on the second OLT uplink to the first OLT uplink for execution, wherein the pending service includes the service of the first OLT uplink and / or the service of the second OLT uplink;
[0111] Determine that the pending service to be executed on the first OLT uplink continues to be executed on the first OLT uplink, wherein the pending service includes the service of the first OLT uplink and / or the service of the second OLT uplink;
[0112] It is determined that the pending service to be executed on the second OLT uplink continues to be executed on the second OLT uplink, wherein the pending service includes the service of the first OLT uplink and / or the service of the second OLT uplink.
[0113] In some embodiments, the first control unit 13 is specifically configured to control the execution of the services to be executed on the two OLT uplinks according to the execution strategy and the priorities of the services to be executed on the two OLT uplinks.
[0114] According to an embodiment of the present disclosure, an electronic device is also provided, including: a processor; and a memory for storing instructions executable by the processor, wherein the processor is configured to: implement the control method of the OLT uplink disclosed in the embodiment of the present disclosure.
[0115] In order to implement the above embodiment, the embodiment of the present disclosure also proposes a storage medium.
[0116] When the instructions in the storage medium are executed by the processor, the processor is enabled to execute the OLT uplink control method disclosed in the embodiment of the present disclosure.
[0117] In order to implement the above embodiments, the embodiments of the present disclosure also provide a computer program product.
[0118] When the computer program product is executed by a processor of an electronic device, the electronic device is enabled to execute the OLT uplink control method disclosed in the embodiment of the present disclosure.
[0119] Figure 6 The figure is a structural block diagram of an electronic device according to an exemplary embodiment. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0120] like Figure 6As shown, the electronic device 1000 includes a processor 111, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 112 or a program loaded from a memory 116 to a random access memory (RAM) 113. In the RAM 113, various programs and data required for the operation of the electronic device 1000 are also stored. The processor 111, the ROM 112, and the RAM 113 are connected to each other via a bus 114. An input / output (I / O) interface 115 is also connected to the bus 114.
[0121] The following components are connected to the I / O interface 115: a memory 116 including a hard disk, etc.; and a communication part 117 including a network interface card such as a local area network (LAN) card, a modem, etc., and the communication part 117 performs communication processing via a network such as the Internet; a drive 118 is also connected to the I / O interface 115 as needed.
[0122] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 117. When the computer program is executed by the processor 111, the above-mentioned functions defined in the method of the present disclosure are executed.
[0123] In an exemplary embodiment, a storage medium including instructions is also provided, such as a memory including instructions, and the instructions can be executed by the processor 111 of the electronic device 1000 to complete the above method. Optionally, the storage medium can be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0124] In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0125] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0126] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for controlling an uplink of an optical line terminal OLT, characterized in that: include: If the quality difference parameter data of at least one of the two OLT uplinks at the current moment shows that it is in a poor quality state, obtain the historical quality difference parameter data between the current moment and the first historical moment, wherein the first historical moment is the moment closest to the current moment and the quality difference parameter data of the two OLT uplinks both show that they are in a normal state; Inputting the interval between the first historical moment and the current moment and the historical quality difference parameter data into the trained decision prediction model to determine the execution strategy of the services to be executed on the two OLT uplink links; According to the execution strategy, the execution of the services to be executed on the two OLT uplinks is controlled.
2. The method according to claim 1, characterized in that The method further comprises: If the quality difference parameter data of the two OLT uplinks at the current moment show that they are both in a normal state, and a first service of the first OLT uplink of the two OLT uplinks at a moment before the current moment is executed on the second OLT uplink, it is determined to switch the first service to the first OLT uplink for execution; or If the quality difference parameter data of the two OLT uplinks at the current moment are both in normal state, and the second service of the second OLT uplink in the two OLT uplinks at the previous moment is executed on the first OLT uplink, it is determined to switch the second service to the second OLT uplink for execution.
3. The method according to claim 1, characterized in that The two OLT uplinks include a first OLT uplink and a second OLT uplink, wherein the determining the execution strategy of the to-be-executed services of the two OLT uplinks includes at least one of the following: Determine to switch the pending service executed on the first OLT uplink to the second OLT uplink for execution, wherein the pending service includes the service of the first OLT uplink and / or the service of the second OLT uplink; Determine to switch the pending service executed on the second OLT uplink to the first OLT uplink for execution, wherein the pending service includes the service of the first OLT uplink and / or the service of the second OLT uplink; Determine that the pending service to be executed on the first OLT uplink continues to be executed on the first OLT uplink, wherein the pending service includes the service of the first OLT uplink and / or the service of the second OLT uplink; Determine that the pending service to be executed on the second OLT uplink continues to be executed on the second OLT uplink, wherein the pending service includes the service on the first OLT uplink and / or the service on the second OLT uplink.
4. The method according to any one of claims 1 to 3, characterized in that The controlling the execution of the pending services of the two OLT uplinks according to the execution strategy includes: According to the execution strategy and the priorities of the services to be executed on the two OLT uplinks, the execution of the services to be executed on the two OLT uplinks is controlled.
5. The method according to any one of claims 1 to 3, characterized in that The quality difference parameter data includes: cyclic redundancy check CRC bit error, number of flashes within a cycle, and flow utilization rate.
6. A control device for an OLT uplink, characterized in that it comprises: A data acquisition unit, configured to acquire historical quality difference parameter data between the current moment and a first historical moment if the quality difference parameter data of at least one of the two OLT uplink links at the current moment indicates that the quality difference parameter data is in a poor quality state, wherein the first historical moment is the moment closest to the current moment and the quality difference parameter data of the two OLT uplink links both indicate that the quality difference parameter data are in a normal state; A strategy determination unit, used to input the interval time between the first historical moment and the current moment, and the historical quality difference parameter data into the trained decision prediction model to determine the execution strategy of the to-be-executed services of the two OLT uplink links; The first control unit is used to control the execution of the to-be-executed services of the two OLT uplinks according to the execution strategy.
7. The device according to claim 6, characterized in that The device also includes: The second control unit is used to determine that the first service is switched to the first OLT uplink for execution if the quality difference parameter data of the two OLT uplinks are both in a normal state at the current moment, and the first service of the first OLT uplink in the two OLT uplinks at the previous moment is executed on the second OLT uplink; or to determine that the second service is switched to the second OLT uplink for execution if the quality difference parameter data of the two OLT uplinks are both in a normal state at the current moment, and the second service of the second OLT uplink in the two OLT uplinks at the previous moment is executed on the first OLT uplink.
8. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 5 when executing the computer program.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
10. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor, the method according to any one of claims 1 to 5 is performed.
