Optical network unit upgrade method, optical line terminal and computer readable storage medium

By deploying the ONU batch upgrade solution in OLT, the cumbersome ONU upgrade problem in the PON network is solved, and the automated batch upgrade of multiple ONUs is realized, which reduces the operation and maintenance burden and cost, and improves the upgrade efficiency and success rate.

CN116709071BActive Publication Date: 2024-12-06SHENZHEN C-DATA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310921656.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-25
Publication Date
2024-12-06
Estimated Expiration
2043-07-25

AI Technical Summary

Technical Problem

In the PON network, operation and maintenance personnel need to upgrade software to multiple ONUs one by one, resulting in cumbersome upgrades and heavy operation and maintenance burden.

Method used

By deploying the ONU batch upgrade plan in OLT, the operation and maintenance personnel only need to issue upgrade instructions to the OLT. The OLT automatically creates and executes upgrade tasks, and batches up multiple ONUs to reduce the operation and maintenance personnel's operations and costs.

Benefits of technology

The batch upgrade of ONU has been realized, which has reduced the operation volume and cost of operation and maintenance personnel, improved the upgrade efficiency, reduced the impact on the business, and improved the success rate of the upgrade task.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116709071B_ABST
    Figure CN116709071B_ABST
Patent Text Reader

Abstract

The present application relates to an optical network unit upgrade method, an optical line terminal and a computer-readable storage medium. The optical network unit upgrade method includes: the optical line terminal obtains an upgrade instruction including target object information and target version information; the optical line terminal creates an upgrade task according to the upgrade instruction; the optical line terminal upgrades several target optical network units in an online state according to the upgrade version file corresponding to the target version information. The optical network unit upgrade solution embeds a system that can realize batch upgrades of optical network units into the optical line terminal. The operation and maintenance personnel only need to issue an upgrade instruction to the optical line terminal to realize batch upgrades of multiple optical network units under the optical line terminal in one upgrade task. The operation and maintenance personnel do not need to perform upgrade operations on each target optical network unit one by one, which reduces the operations of the operation and maintenance personnel during the upgrade process and reduces the operation and maintenance burden and cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of optical communication technology, and in particular to an optical network unit upgrading method, an optical line terminal and a computer-readable storage medium. Background Art

[0002] The PON (Passive Optical Network) system includes OLT (Optical Line Terminal) and ONU (Optical Network Unit). As a central office device, OLT is connected to the user-side optical splitter through a single optical fiber to achieve control and management of ONU. The ONU used by enterprises or home users is generally provided by operators and deployed in enterprises or users' homes. After the ONU is put into use, it often faces software upgrades. However, since the ONU is located in the user's home, it is too difficult to operate the ONU itself to upgrade. Based on this, the PON network defines a standard protocol to upgrade the version of a single ONU through the OLT, so that the operation and maintenance personnel can upgrade the software of a single ONU attached to it through the OLT device. However, an OLT has multiple PON ports, and a PON port usually connects to multiple ONUs at the same time. In this case, if the operation and maintenance personnel upgrade each ONU attached to the OLT one by one, there will be problems such as cumbersome upgrades and heavy operation and maintenance burdens. Summary of the invention

[0003] In order to solve the problem of cumbersome upgrade and heavy operation and maintenance burden when operation and maintenance personnel upgrade individual ONUs one by one from OLT in the related technology, the present application provides an ONU upgrade method, OLT and computer-readable storage medium.

[0004] In a first aspect, the present application provides an ONU upgrade method, comprising:

[0005] The OLT obtains an upgrade instruction including target object information and target version information, wherein the target object information is used to indicate a target ONU to be subjected to software upgrade, and the target object information includes a matching item for screening the target ONU; the target version information is used to indicate a software version that is expected to be applied to the target ONU;

[0006] The OLT creates an upgrade task according to the upgrade instruction;

[0007] The OLT upgrades the target ONUs in an online state according to the upgrade version file corresponding to the target version information.

[0008] By adopting the above technical solution, a batch upgrade solution for ONUs is deployed on the OLT, which is equivalent to embedding a system that can realize batch upgrade of ONUs into the OLT. The operation and maintenance personnel only need to send an upgrade instruction to the OLT, and specify the target ONU to be upgraded and the software version to which the target ONU needs to be upgraded to the OLT through the upgrade instruction. Then, the OLT can automatically create an upgrade task, and automatically use the corresponding upgrade version file to upgrade the target ONUs selected according to the matching items in the target object information. The ONU upgrade solution can realize batch upgrades of multiple ONUs under the OLT in one upgrade task, and the operation and maintenance personnel do not need to perform upgrade operations on each target ONU one by one on the OLT, which reduces the operations of the operation and maintenance personnel during the upgrade process, and reduces the operation and maintenance burden and operation and maintenance costs.

[0009] Optionally, the upgrade indication further includes upgrade condition information, where the upgrade condition information is used to indicate a condition for performing an upgrade operation on the target ONU; after the OLT creates an upgrade task according to the upgrade indication and before upgrading several of the target ONUs in an online state, it also includes:

[0010] The OLT monitors the execution timing of the upgrade task according to the upgrade condition information;

[0011] The OLT determines that a condition corresponding to the upgrade condition information is currently satisfied.

[0012] Through the above technical solution, the upgrade instruction sent by the operation and maintenance personnel to the OLT can also indicate the timing of executing the upgrade task to the OLT through the upgrade condition information, and the OLT can automatically monitor the running timing of the upgrade task according to the upgrade condition information after creating the upgrade task, so as to ensure that the target ONU is upgraded at the appropriate time. In this way, there is an opportunity to reduce the impact of the execution of the upgrade task on the normal services of the OLT and each ONU connected to the OLT by selecting the execution timing of the upgrade task, or there is an opportunity to improve the success rate of the upgrade task by selecting the execution timing of the upgrade task.

[0013] Optionally, the upgrade condition information includes an execution period of the upgrade operation; and the OLT monitoring the execution timing of the upgrade task according to the upgrade condition information includes:

[0014] The OLT determines whether the current moment is within the execution period, and if so, determines that the condition corresponding to the upgrade condition information is currently satisfied.

[0015] By adopting the above technical solution, when the operation and maintenance personnel send the upgrade condition information to the OLT, they can specify the execution period of the upgrade operation, so that the execution of the upgrade task on the OLT is carried out in a suitable period, and the impact of the upgrade task on the normal business on the OLT and ONU is minimized to avoid reducing the user's business experience. Moreover, this can also make the upgrade task be carried out during the relatively idle period of the OLT and ONU, avoiding the interruption of the upgrade task due to insufficient network resources and processing resources, thus improving the success rate of the upgrade task.

[0016] Optionally, the OLT upgrading the target ONU in an online state according to the upgrade version file corresponding to the target version information includes:

[0017] The OLT filters out the current target ONU according to the matching item in the target object information;

[0018] The OLT adds the identification information of the target ONU to a list to be upgraded;

[0019] The OLT determines the status of the target ONUs in the to-be-upgraded list one by one, and upgrades the target ONUs in an online state according to the upgrade version file.

[0020] Optionally, the upgrade indication further includes upgrade type information. If the upgrade type information indicates that the type corresponding to the upgrade task is an incremental upgrade, after the OLT adds the identification information of the target ONU to the list to be upgraded, the following further includes:

[0021] The OLT monitors the access actions of the ONUs under the OLT;

[0022] After the OLT detects the presence of the newly connected ONU, matching the ONU according to the matching item in the target object information;

[0023] If the match is successful, the OLT adds the identification information of the ONU to the list to be upgraded.

[0024] By adopting the above technical solution, the OLT can incrementally upgrade the ONUs under it, that is, after the OLT creates an upgrade task and before the upgrade task is terminated, the OLT will monitor the access of the new ONU, and after determining that a new ONU has been accessed, the newly accessed ONU will be matched according to the matching items contained in the target object information to determine whether the newly accessed ONU needs to be upgraded. If the match is successful, it proves that the newly accessed ONU should be upgraded, so the OLT adds its identification information to the to-be-upgraded list corresponding to the upgrade task, thereby completing the upgrade operation of the newly accessed ONU in this upgrade task. After the operation and maintenance personnel instruct the OLT to incrementally upgrade the ONU, the OLT can automatically complete the upgrade for the ONU that has not been connected when the upgrade task is created, but is connected to the OLT before the upgrade task is terminated and meets the target object information, without the need for the operation and maintenance personnel to create other additional upgrade tasks, which is conducive to further reducing the burden on the operation and maintenance personnel.

[0025] Optionally, the upgrade indication also includes upgrade type information. If the upgrade type information indicates that the type corresponding to the upgrade task is an existing upgrade, the OLT only upgrades the target ONU according to the list to be upgraded corresponding to the moment the upgrade task is created during the execution of the upgrade task.

[0026] By adopting the above technical solution, because the upgrade type information carried in the upgrade indication instructs the OLT to upgrade the existing stock, when the upgrade task is created, the target ONUs that need to be upgraded by the OLT during this upgrade task have all been determined. The OLT does not need to care whether the newly connected ONUs need to be upgraded during the upgrade task. Therefore, the above technical solution does not require the OLT to monitor the access of the ONU, which can reduce the processing burden of the OLT after the upgrade task is created, so that the OLT will tilt more processing resources toward the upgrade task, which is conducive to achieving optimal allocation of resources.

[0027] Optionally, after the OLT upgrades the target ONU in an online state according to the upgrade version file, the method further includes:

[0028] The OLT records the upgrade execution status for each target ONU, and the upgrade execution status includes the upgrade result and any one of the upgrade completion time and the upgrade failure reason.

[0029] By adopting the above technical solution, during the execution of the upgrade task, the OLT will record the upgrade status of each target ONU, record whether the upgrade result of the target ONU is successful or not, and record the upgrade completion time, and record the corresponding reason when the upgrade fails, so that the operation and maintenance personnel can check it when necessary. At the same time, because the OLT has a record of the upgrade status of each target ONU, after the OLT is restarted, it will not upgrade the target ONU that has completed the upgrade again during the process of continuing the upgrade task.

[0030] Optionally, at least one matching item in the target object information is a reverse matching item, and the reverse matching item is used to exclude the part that meets the matching item from the candidate ONU; the matching item includes at least one of PON port information, slot information, serial number information, manufacturer information, model information, current software version information, and current hardware version information.

[0031] By adopting the above technical solution, when the operation and maintenance personnel send the target object information to the OLT, they can set the corresponding matching items according to the upgrade requirements, and the operation and maintenance personnel can also set at least one of the matching items as a reverse matching item according to the upgrade requirements, so that the OLT can perform reverse matching when screening the target ONU, avoiding setting multiple forward matching items to achieve the same screening purpose, and further reducing the operation and maintenance burden and operation and maintenance costs.

[0032] In a second aspect, the present application also provides an OLT, comprising a processor and a memory, wherein the processor and the memory are communicatively connected; the processor is used to execute one or more computer programs stored in the memory to implement the ONU upgrade method described in any of the above items.

[0033] By adopting the above technical solution, the system function of realizing batch upgrading of ONUs is embedded in the OLT, so that when the ONU has a software upgrade requirement, the operation and maintenance personnel only need to send an upgrade instruction to the OLT, and specify the target ONU to be upgraded and the software version to which the target ONU needs to be upgraded to the OLT through the upgrade instruction. Then, the OLT can automatically create an upgrade task, and automatically use the corresponding upgrade version file to upgrade the target ONU selected according to the matching items in the target object information. The ONU upgrade solution can realize batch upgrading of multiple ONUs under the OLT in one upgrade task, and the operation and maintenance personnel do not need to perform upgrade operations on each target ONU one by one on the OLT, which reduces the operations of the operation and maintenance personnel during the upgrade process, and reduces the operation and maintenance burden and operation and maintenance costs.

[0034] In a third aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program; the computer program can be executed by one or more processors to implement the ONU upgrade method as described in any of the foregoing items.

[0035] By adopting the above technical solution, the operation and maintenance personnel only need to send an upgrade instruction to the OLT, and specify the target ONU to be upgraded and the software version to which the target ONU needs to be upgraded to the OLT through the upgrade instruction. Then, the OLT can automatically create an upgrade task, and automatically use the corresponding upgrade version file to upgrade the target ONU selected according to the matching items in the target object information. The ONU upgrade solution can realize batch upgrade of multiple ONUs under the OLT in one upgrade task, and the operation and maintenance personnel do not need to perform upgrade operations on each target ONU one by one on the OLT, which reduces the operations of the operation and maintenance personnel during the upgrade process, and reduces the operation and maintenance burden and operation and maintenance costs.

[0036] In summary, the present application includes at least the following beneficial technical effects: when multiple ONUs under the OLT have software upgrade requirements, the operation and maintenance personnel only need to directly send an upgrade instruction to the OLT, and indicate the target object information and target version information to the OLT, so that the OLT can automatically complete the creation and execution of the upgrade task, thereby automatically realizing batch upgrades of multiple ONUs under the OLT according to the instructions of the operation and maintenance personnel, without the need for the operation and maintenance personnel to perform upgrade operations on individual ONUs one by one on the OLT, thereby reducing the operation and maintenance burden and operation and maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 This is an optional flow chart of the ONU upgrade method provided in Embodiment 1 of the present application;

[0038] Figure 2 A schematic diagram of an optional flow chart of the OLT performing the upgrade task provided in the first embodiment of the present application;

[0039] Figure 3 A schematic diagram of a process for the OLT to update the list to be upgraded in the case of incremental upgrade provided in the first embodiment of the present application;

[0040] Figure 4 A schematic diagram of the architecture of the PON system shown in the second embodiment of the present application;

[0041] Figure 5 This is a schematic diagram of the state switching of the OLT upgrade task shown in the second embodiment of the present application;

[0042] Figure 6 A schematic diagram of the hardware structure of the OLT provided in the third embodiment of the present application;

[0043] Figure 7 This is a structural diagram of the ONU upgrade system provided in Example 3 of the present application.

[0044] Description of reference numerals:

[0045] 1-PON system; 2-OLT; 311, 312, 31n, 321, 322, 32n, 331, 332, 33n-ONU; 51-initial state; 52-ongoing state; 53-pause state; 54-terminated state; 601-processor; 602-memory; 7-optical network unit upgrade system; 702-indication receiving module; 704-task creation module; 706-task execution module. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0047] Embodiment 1:

[0048] The present application embodiment discloses an optical network unit upgrade method, which is applied to OLT, see Figure 1 A flow chart of the optical network unit upgrade method is shown as follows:

[0049] S102: The OLT obtains an upgrade instruction including target object information and target version information.

[0050] The upgrade indication obtained by the OLT includes target object information, which is used to indicate to the OLT the object that needs to be upgraded, i.e., the target ONU. The OLT can screen each ONU connected to itself according to the target object information to determine whether the corresponding ONU is the target ONU. Therefore, it can be understood that the target object information actually represents the screening conditions for screening the target ONU, which includes several matching items, and one matching item corresponds to a property information of the ONU. For example, in some examples of the present embodiment, the matching items can be selected from but not limited to PON port information, slot information, serial number information, manufacturer information, model information, current software version information, current hardware version information, etc. For example, in one example, the target object information includes two matching items, one of which is PON port information, which indicates that the PON port to which the target ONU belongs is "2", then it is possible to be screened as the target ONU port only when the PON port to which the ONU belongs is port No. 2. Assuming that the other matching item is manufacturer information, which indicates that the manufacturer to which the target ONU belongs is manufacturer a, then ONUs from other manufacturers except manufacturer a cannot be screened as target ONUs.

[0051] Matching items are divided into forward matching items and reverse matching items, wherein the forward matching item indicates that the ONU that matches the matching item is selected, while the reverse matching item indicates that the ONU that matches the matching item is excluded, that is, other ONUs except those that match the matching item are selected. For example, if one of the matching items in the target object information is PON port information, and it is a forward matching item, then if the PON port value of the ONU is not equal to the PON port value indicated by the matching item, it is impossible to be selected as the target ONU, on the contrary, it is possible to be selected as the target ONU only when its PON port value is equal to the PON port value indicated by the matching item. If one of the matching items in the target object information is current software version information, and the matching item is a reverse matching item, then if the current software version value of an ONU is equal to the software version value indicated by the matching item, it will no longer be selected as the target ONU, on the contrary, the ONU whose current software version value is not equal to the software version value indicated by the matching item may be selected as the target ONU.

[0052] It is understandable that when the OLT screens the target ONU according to the matching items in the target object information, each ONU connected to the OLT at the beginning is a candidate ONU. When the target object information contains at least two matching items, each of these matching items can screen out a part of qualified ONUs from the candidate ONUs, that is, the ONUs that may be selected as the target ONUs. In some examples, there is a "and" logical relationship between the at least two matching items, that is, the target ONU is the intersection of the ONUs screened out according to the matching items; in other examples, there is an "or" logical relationship between the at least two matching items, that is, the target ONU is the union of the ONUs screened out according to the matching items. In the actual application process, the logical relationship between the matching items in the target object information can be flexibly set by the operation and maintenance personnel according to the upgrade requirements. In addition to the simple "and" logical relationship or the simple "or" logical relationship, there can also be more complex logical relationships between the matching items.

[0053] The target version information included in the upgrade indication is used to indicate the software version that the target ONU is expected to apply, that is, the software version used by the target ONU after the upgrade is completed. The target version information determines which upgrade version file is used to upgrade the target ONU during the execution of the upgrade task. In some examples of this embodiment, the target version information generally includes the version number of the software version or other information that enables the OLT to determine the software version.

[0054] In this embodiment, the operation and maintenance personnel can directly configure on the OLT, so as to send the upgrade instruction to the OLT. For example, in some examples, the OLT itself has or can be connected to an external human-computer interaction device, and the operation and maintenance personnel can directly input the upgrade instruction on the OLT. In other examples, the operation and maintenance personnel can also input the upgrade instruction on a computer device that is connected to the OLT, and the computer device sends the upgrade instruction to the OLT.

[0055] S104. The OLT creates an upgrade task according to the upgrade instruction.

[0056] After receiving the upgrade instruction, the OLT can create an upgrade task according to the upgrade instruction. It is understandable that when the OLT creates the upgrade task, it can determine the corresponding target ONU according to the aforementioned target indication information, and obtain the upgrade version file of the corresponding software version according to the target version information.

[0057] In this embodiment, the OLT may use a general command line to write the upgrade task into a configuration file for storage, so that the upgrade task will not be lost after the OLT is restarted.

[0058] S106. The OLT upgrades several target ONUs in an online state according to the upgrade version file corresponding to the target version information.

[0059] After the OLT creates the upgrade task, it can start to execute the upgrade task. It is understandable that when executing the upgrade task, the OLT will use the upgrade version file corresponding to the target version information to upgrade the target ONU in the online state. Usually, there is more than one target ONU screened out, and the OLT can upgrade these ONUs one by one, which can avoid the problem of large-scale network disconnection on the user side at the same time, causing a large number of complaints. Of course, this embodiment does not exclude the practice of the OLT performing upgrade operations on several target ONUs at the same time.

[0060] Combine the following Figure 2 The flowchart shown is an exemplary description of a process for performing an upgrade task on an OLT:

[0061] S202: The OLT selects the current target ONU according to the matching items in the target object information.

[0062] The OLT can match each ONU currently connected to the OLT device according to the matching items in the target object information, thereby filtering out the target ONU. Currently, a maximum of 128 ONUs can be connected to a PON port of the OLT, and a maximum of 2048 ONUs can be connected to a 16-port OLT. Under normal circumstances, the OLT can filter out multiple target ONUs according to the matching items in the target object information.

[0063] S204: The OLT adds the identification information of the target optical network unit to the list to be upgraded.

[0064] When an ONU is determined to be a target ONU, the OLT can add the identification information of the ONU to the list to be upgraded. When the upgrade task is executed, the OLT will determine the upgrade object according to the identification information recorded in the list to be upgraded. It can be understood that the identification information recorded in the list to be upgraded should at least ensure that the recorded target ONU can be uniquely identified among all ONUs connected to the OLT.

[0065] S206 , the OLT determines the status of the target ONUs in the to-be-upgraded list one by one, and upgrades the target ONUs in the online state according to the upgrade version file.

[0066] Subsequently, when the OLT formally performs the upgrade operation, the state of each target ONU in the list to be upgraded can be determined one by one. If the target ONU currently polled is in an online state, the OLT can use the determined upgrade version file to perform the upgrade operation on the target ONU. If the target ONU currently polled is not online, the OLT can continue to determine the state of the next target ONU. It is understandable that the order in which the OLT polls the target ONU states can be determined according to the order in which each target ONU is recorded in the list to be upgraded, for example, in accordance with the order. It can also be carried out in other orders.

[0067] In some examples of the present embodiment, after the OLT upgrades the target ONU in the online state according to the upgrade version file corresponding to the target version information, the upgrade execution situation for the target ONU can also be recorded. For example, in some examples of the present embodiment, the upgrade situation recorded includes whether the upgrade result for the target ONU is success or failure. In some other examples of the present embodiment, the upgrade situation recorded can include the time when the target ONU is upgraded. In some other examples of the present embodiment, the upgrade result for the target ONU can be recorded at the same time, and the upgrade completion time can be recorded for the target ONU that is successfully upgraded, and the upgrade failure reason can be recorded for the target ONU that is upgraded. It can be understood that by recording the upgrade situation of each target ONU, it can be ensured that the operation and maintenance personnel can query when needed, so as to understand the upgrade overview. At the same time, because the upgrade situation for each target ONU has clear records, therefore, if the OLT device is restarted, it can also understand which target ONUs have completed the upgrade according to the records, and avoid OLT from upgrading the target ONU that has completed the upgrade again.

[0068] In some examples of this embodiment, the upgrade indication further includes upgrade condition information, which is used to indicate the timing of the OLT to perform the upgrade operation on the target ONU. Because the OLT will perform the upgrade operation on the target ONU only when the corresponding condition is met, after the upgrade task is created, before upgrading the target ONUs in the online state according to the upgrade version file corresponding to the target version information, the OLT will also monitor the execution timing of the upgrade task according to the upgrade condition information. Only after the OLT determines that the condition corresponding to the upgrade condition information is met, will the OLT upgrade the target ONUs in the online state according to the upgrade version file corresponding to the target version information.

[0069] After the upgrade task is created, the OLT begins to monitor according to the upgrade condition information to determine whether the conditions for performing the upgrade operation are currently met. In some examples of this embodiment, the upgrade condition information includes an execution period, and the OLT can determine whether to perform the upgrade operation by monitoring whether the current moment is within the execution period indicated by the upgrade condition information. In one example, the upgrade condition information contains two time period indication information, one of which is from June 7, 2023 and the week thereafter, and the other is 2:00~4:00 every day, then the time for the OLT to perform the upgrade operation will be 2:00~4:00 every day from June 7, 2023 to June 13, 2023. In some other examples of this embodiment, the upgrade condition information includes at least one of the processing resource occupancy rate threshold and the network resource occupancy rate threshold of the OLT, then the OLT needs to monitor not or not only the execution period. In one example, in addition to indicating the execution period, the upgrade indication information also requires that the processing resource occupancy rate of the OLT is not higher than 60%. In this case, the OLT will only consider that the condition corresponding to the upgrade condition information is currently met if it is determined that the processing resource occupancy rate of the OLT is less than or equal to 60% during the corresponding execution period.

[0070] In some examples of the present embodiment, the upgrade indication also includes upgrade type information, which is used to indicate the type corresponding to the upgrade task. Generally, the upgrade task is divided into two types: incremental upgrade and stock upgrade. Among them, stock upgrade means that after the upgrade is created, no matter whether there is a new ONU connected to the OLT, the target ONU in the list to be upgraded will not be added. In other words, stock upgrade means that the OLT will only upgrade the target ONU set at the time when the upgrade task is created in an upgrade task. Incremental upgrade means that after the upgrade task is created, if a new ONU is connected to the OLT, and the newly connected ONU can successfully match the matching item in the target object information, that is, it meets the conditions as the target ONU, then the identification information of the newly connected ONU can also be added to the list to be upgraded, and in the process of this upgrade task, the OLT will also upgrade the newly connected ONU. It is understandable that these two types of upgrades have their own advantages: the existing upgrade does not require the OLT to monitor the newly connected ONUs after the upgrade task is created, so the burden on the OLT can be reduced, allowing the OLT to use more processing resources for the execution of upgrade tasks and other business processing, which is conducive to the realization of resource optimization configuration; while in the incremental upgrade, the OLT can take into account the upgrade of the newly connected ONUs after the upgrade task is created and during the task execution. For these newly connected ONUs, the operation and maintenance personnel do not need to issue upgrade instructions again, further reducing the burden on the operation and maintenance personnel.

[0071] Combine the following Figure 3 The flowchart shown introduces the update of the upgrade list to be updated by the OLT in the case of incremental upgrade:

[0072] S302: The optical line terminal monitors the access action of the optical network unit under the optical line terminal.

[0073] S304: After detecting the presence of a newly connected optical network unit, the optical line terminal matches the optical network unit according to the matching items in the target object information.

[0074] S306: Determine whether the match is successful.

[0075] It is understandable that when the optical line terminal matches the newly connected ONU according to each matching item in the target object information, the matching method and logic are the same as the method of screening the target ONU when the optical line terminal generates the list to be upgraded.

[0076] S308: The optical line terminal adds the identification information of the newly connected optical network unit to the list to be upgraded.

[0077] S310: The optical line terminal determines whether the upgrade task has been terminated.

[0078] If the judgment result is yes, then the updating of the list to be upgraded is terminated; if the judgment result is no, then the monitoring is continued.

[0079] In the optical network unit upgrade method provided in this embodiment, the OLT can automatically create and execute the upgrade task according to the instructions of the operation and maintenance personnel, and realize the batch software upgrade of several target ONUs that meet the requirements. Therefore, in this upgrade solution, without the need to deploy an additional network management system, the operation and maintenance personnel can complete the upgrade of multiple target ONUs at one time based on the OLT alone, reducing the operation and maintenance burden and cost without increasing the economic cost of operation and maintenance.

[0080] Embodiment 2:

[0081] In order to make the advantages and details of the above-mentioned ONU upgrade method clearer to those skilled in the art, this embodiment will further elaborate on the ONU upgrade method based on the above-mentioned embodiment:

[0082] First, see Figure 4 The schematic diagram of the architecture of a PON system is shown: in the PON system 1, an OLT 2 and multiple ONUs connected to the OLT 2 are included. The first PON port 21 of the OLT 2 is connected to multiple ONUs (ONUs 311 to 31n) of the same manufacturer and model xh1. Some of these ONUs currently use V1 software version, and others use V2 software version. The second PON port 22 of the OLT 2 is also connected to multiple ONUs (ONUs 321 to 32n). These ONUs have the same manufacturer model as the ONUs under the first PON port 21, also xh1. Some of the ONUs under the second PON port 22 currently use V2 software version, and others use V3 software version. In addition, there are some ONUs (ONU 331 to 33n) that have not yet been connected to OLT 2, but may be connected to OLT 2 at any time as the optical network is deployed. Some of these ONUs have a manufacturer model of xh1, but others do not have a manufacturer model of xh1.

[0083] Assuming that the software version V2 has higher stability after actual application feedback, the operation and maintenance personnel now need to upgrade the software versions of all ONUs connected to OLT 2 to V2. The operation and maintenance personnel can send an upgrade instruction to OLT 2. In the upgrade instruction, the target object information sent by the operation and maintenance personnel can prompt OLT 2 to filter out all ONUs whose current software version is not V2 as target ONUs. According to the above introduction, for this upgrade requirement, a relatively simple way is to indicate to OLT that the manufacturer model is "xh1" through the forward matching item, and indicate to OLT that the software version number is "V2" through the reverse matching item. In this way, OLT 2 can filter out all ONUs whose manufacturer model is xh1 but whose current software version is not V2 as target ONUs. It is understandable that the operation and maintenance personnel can actually use a combination of multiple other matching items as target object information.

[0084] At the same time, the operation and maintenance personnel may also indicate target version information to OLT 2, and the target version information may include the version number of the target software version, that is, "V2".

[0085] In some examples of this embodiment, the operation and maintenance personnel can also issue upgrade condition information. For example, in one example, the upgrade condition information includes two time period indication information, one of which is used to indicate a date range, such as from today to the end of this month; and the other is used to indicate a specific time period in a day, such as 2:00~4:00 every day.

[0086] In some examples of this embodiment, the operation and maintenance personnel may also send upgrade type information in the upgrade instruction. For example, in this example, the upgrade type information carried in the upgrade instruction instructs OLT 2 to perform an incremental upgrade.

[0087] It can also be understood that in some cases, there is more than one upgrade requirement for the ONU connected to an OLT 2, so the operation and maintenance personnel can configure at least two upgrade tasks on the same OLT 2. In some examples, the operation and maintenance personnel can also indicate the ID (unique identification information) of the upgrade task to the OLT 2 in the upgrade instruction. However, in some examples of this embodiment, the operation and maintenance personnel may not specify the ID of the upgrade task, and the ID may be automatically generated by the OLT 2. The Li Ru Ru OLT 2 may automatically generate the ID of the upgrade task in sequence according to the order in which the operation and maintenance personnel issue the upgrade instructions.

[0088] After receiving the configuration of the operation and maintenance personnel, OLT 2 can create an upgrade task according to the upgrade instruction. It can first match each ONU currently connected to OLT 2 according to the matching items in the target object information, filter out the current target ONU and form a list to be upgraded. In the process after the list to be upgraded is generated, OLT 2 can also match the ONU newly connected to OLT 2 according to the introduction in the above embodiment and determine whether the newly connected ONU belongs to the target ONU, and add the identification information of the newly connected ONU to the list to be upgraded if the determination result is yes.

[0089] OLT2 will also monitor the execution time of the upgrade task according to the upgrade condition information. When it is determined that the execution condition is currently met, for example, when OLT 2 monitors that the system time reaches 2:00 a.m., it begins to use the upgrade version file corresponding to the V2 software version to upgrade each target ONU in the upgrade list. In some examples, OLT 2 will also record the upgrade result, upgrade completion time, upgrade failure reason and other information for each target ONU. It is understandable that OLT2 will continue to monitor whether the upgrade execution condition is currently met during the execution of the upgrade task. If the condition is met, the target ONUs remaining in the upgrade list will continue to be upgraded; if the condition is not met, the upgrade task will be interrupted. For example, in an example, when the system time reaches 4:00, OLT 2 will not continue to perform the upgrade task. In some examples of the present embodiment, when OLT 2 monitors that the current time does not meet the requirements of the upgrade condition information, the upgrade can be interrupted immediately, regardless of whether the upgrade of the target ONU currently being upgraded has been completed. In other examples, when OLT 2 detects that the current timing no longer meets the requirements of the upgrade condition information, it will simply not initiate upgrades for other target ONUs, but the upgrade of the target ONU currently being upgraded will continue to be executed. This can improve the upgrade success rate, and more importantly, prevent the target ONU currently being upgraded from failing to provide business services due to the direct interruption of the upgrade.

[0090] In this embodiment, when OLT 2 manages the upgrade task, it can follow Figure 5 The four states shown are managed: initial state 51, ongoing state 52, pause state 53 and terminated state 54. Initial state 51 refers to the state when the upgrade task is just created, ongoing state 52 refers to the state when the upgrade task is being executed, pause state 53 refers to the state of the upgrade task after the operation and maintenance personnel suspend the upgrade task; and terminated state 54 refers to the state of the upgrade task after the upgrade task is completed.

[0091] It can be understood that the aforementioned four states of the upgrade task can be switched, for example, from the initial state 51 to the ongoing state 52, and the switching condition is that OLT 2 first detects a time that meets the requirements of the upgrade condition information; the initial state 51 and the ongoing state 52 can also be switched to the pause state 53, and the switching condition is that OLT 2 detects that the operation and maintenance personnel has issued a task pause operation; the pause state 53 can return to the ongoing state 52, and the switching condition is that OLT 2 detects that the operation and maintenance personnel has issued a task resume operation; the pause state 53 can be switched to the termination state 54, and the switching condition can be that OLT 2 detects that the operation and maintenance personnel has issued a task stop operation, or that OLT 2 detects that all times that meet the timing for executing the upgrade task have passed, for example, in one example, OLT 2 detects that the current date has exceeded the maximum value of the date interval in the upgrade condition information. The ongoing state 52 can also switch to the termination state 54. The switching conditions include OLT 2 detecting that the operation and maintenance personnel have issued a task stop operation, and OLT 2 detecting that all times that meet the execution timing of the upgrade task have passed. For example, in one example, OLT 2 detects that the current date has exceeded the maximum value of the date range in the upgrade condition information.

[0092] In this embodiment, OLT 2 does not directly delete the upgrade task after the upgrade task enters the termination state 54, because the operation and maintenance personnel may still need to view it. Therefore, in some examples of this embodiment, OLT 2 can continue to retain the upgrade task until receiving a deletion instruction from the operation and maintenance personnel for the upgrade task. After receiving the deletion instruction, OLT 2 can delete the upgrade task; in some other examples, OLT 2 can retain the upgrade task in the termination state 54 for a period of time. When the preset time period is exceeded, OLT 2 can delete the upgrade task regardless of whether the operation and maintenance personnel have viewed it, thereby releasing the storage resources of OLT 2.

[0093] Embodiment three:

[0094] This embodiment provides an OLT 2, see Figure 6 As shown, the OLT 2 includes a processor 601 and a memory 602 that is communicatively connected to the processor 601. In some examples of this embodiment, the processor 601 and the memory 602 can communicate with each other through a communication bus. One or more computer programs are stored in the memory 602, and the processor 601 is used to execute the one or more computer programs stored in the memory 602 to implement the optical network unit upgrade method provided in any of the above examples. For the optical network unit upgrade method implemented by the processor 601 executing the computer program, please refer to the introduction of the above embodiment, which will not be repeated here.

[0095] The memory 602 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 602 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function, and instructions for implementing the optical network unit upgrade method provided in the above embodiment, etc.; the data storage area may store data involved in the optical network unit upgrade method provided in the above embodiment, etc.

[0096] The processor 601 may include one or more processing cores. The processor 601 calls the data stored in the memory 602 by running or executing the instructions, programs, code sets or instruction sets stored in the memory 602, and performs various functions and processes data of the present application. The processor 601 may be at least one of an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a central processing unit (CPU), a controller, a microcontroller and a microprocessor. It is understandable that for different devices, the electronic device used to implement the above-mentioned processor 601 function can also be other, and the embodiment of the present application is not specifically limited.

[0097] This embodiment also provides an optical network unit upgrade system 7, which can be deployed on the OLT in a software manner. Figure 7 As shown, the optical network unit upgrade system 7 includes an indication receiving module 702, a task creation module 704 and a task execution module 706, wherein the indication receiving module 702 is used to obtain an upgrade indication including target object information and target version information; the task creation module 704 is used to create an upgrade task according to the upgrade indication; and the task execution module 706 is used to upgrade several target ONUs in an online state according to the upgrade version file corresponding to the target version information.

[0098] It is understandable that the names of the modules included in the optical network unit upgrade system 7 are not immutable. For example, in some examples, the aforementioned instruction receiving module 702, the task creation module 704, and the task execution module 706 can also be replaced by the first module, the second module, and the third module, respectively. At the same time, the optical network unit upgrade system 7 can also include modules or units that implement other functions.

[0099] The various variations and specific examples of the optical network unit upgrade method provided in the aforementioned embodiment are also applicable to the optical network unit upgrade system 7 of the present embodiment. Through the aforementioned detailed description of the optical network unit upgrade method, those skilled in the art can clearly know the implementation method of the optical network unit upgrade system 7 of the present embodiment. For the sake of brevity of the specification, it will not be described in detail here.

[0100] The embodiment of the present application also provides a computer-readable storage medium, for example, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc. Various media that can store program codes. The computer-readable storage medium stores a computer program that can be loaded by a processor and execute the optical network unit upgrade method of the above embodiment.

[0101] As described above, the above embodiments are only used to introduce the technical solution of the present application in detail, but the description of the above embodiments is only used to help understand the method and core idea of ​​the present application and should not be understood as limiting the present application. Any changes or substitutions that can be easily thought of by technicians in this technical field within the technical scope disclosed in the present application should be included in the protection scope of the present application.

Claims

1. A method for upgrading an optical network unit, characterized in that: The optical network unit upgrading method comprises: The optical line terminal obtains an upgrade instruction including target object information and target version information, wherein the target object information is used to indicate a target optical network unit to be upgraded, and the target object information includes a matching item for screening the target optical network unit; the target version information is used to indicate a software version that is expected to be applied to the target optical network unit; The optical line terminal creates an upgrade task according to the upgrade instruction; The optical line terminal upgrades a plurality of target optical network units in an online state according to the upgrade version file corresponding to the target version information; The optical line terminal upgrades a plurality of target optical network units in an online state according to the upgrade version file corresponding to the target version information, comprising: The optical line terminal filters out the current target optical network unit according to the matching item in the target object information; The optical line terminal adds the identification information of the target optical network unit to a list to be upgraded; The optical line terminal determines the status of the target optical network units in the to-be-upgraded list one by one, and upgrades the target optical network units in an online state according to the upgrade version file; if the target optical network unit currently polled is not online, the optical line terminal continues to determine the status of the next target optical network unit; the upgrade indication also includes upgrade condition information, and the upgrade condition information is used to indicate the conditions for performing an upgrade operation on the target optical network unit; after the optical line terminal creates an upgrade task according to the upgrade indication, before upgrading several target optical network units in an online state, it also includes: The optical line terminal monitors the execution timing of the upgrade task according to the upgrade condition information; The optical line terminal determines that a condition corresponding to the upgrade condition information is currently satisfied; The optical line terminal manages the upgrade task according to the initial state, ongoing state, paused state and terminated state. The initial state refers to the state when the upgrade task is just created, the ongoing state refers to the state when the upgrade task is being executed, the paused state is the state of the upgrade task after the operation and maintenance personnel suspend the upgrade task, and the terminated state is the state of the upgrade task after the upgrade task is completed; The upgrade indication also includes upgrade type information. If the upgrade type information indicates that the type corresponding to the upgrade task is an incremental upgrade, after the optical line terminal adds the identification information of the target optical network unit to the list to be upgraded, it also includes: The optical line terminal monitors the access action of the optical network unit under the optical line terminal; After detecting the presence of the newly connected optical network unit, the optical line terminal matches the optical network unit according to the matching item in the target object information; If the match is successful, the optical line terminal adds the identification information of the optical network unit to the list to be upgraded; The upgrade indication also includes upgrade type information. If the upgrade type information indicates that the type corresponding to the upgrade task is a stock upgrade, the optical line terminal upgrades the target optical network unit only according to the to-be-upgraded list corresponding to the creation time of the upgrade task during the execution of the upgrade task; After the optical line terminal upgrades a plurality of target optical network units in an online state according to the upgrade version file corresponding to the target version information, the optical line terminal further comprises: The optical line terminal records the upgrade execution status for each target optical network unit, and the upgrade execution status includes the upgrade result and any one of the upgrade completion time and the upgrade failure reason.

2. The optical network unit upgrade method according to claim 1, characterized in that: The upgrade condition information includes an execution period of the upgrade operation; The optical line terminal monitoring the execution timing of the upgrade task according to the upgrade condition information includes: The optical line terminal determines whether the current moment is within the execution period, and if so, determines that the condition corresponding to the upgrade condition information is currently satisfied.

3. The optical network unit upgrade method according to any one of claims 1 to 2, characterized in that: At least one matching item in the target object information is a reverse matching item, and the reverse matching item is used to exclude the part that meets the matching item from the candidate optical network unit; the matching item includes at least one of passive optical network PON port information, slot information, serial number information, manufacturer information, model information, current software version information, and current hardware version information.

4. An optical line terminal, characterized in that: It comprises a processor and a memory, and a communication connection between the processor and the memory; the processor is used to execute one or more computer programs stored in the memory to implement the optical network unit upgrading method as described in any one of claims 1 to 3.

5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program; the computer program can be executed by one or more processors to implement the optical network unit upgrading method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Method for updating automatically optical network unit and optical line terminal

    CN101083564A

  • Optical network unit upgrading system and method

    CN112994938A