Optical network unit upgrading method, network device and computer readable storage medium

By compiling the server to provide upgrade version files for multiple models of OLT, the OLT selects the appropriate version and sends it to the ONU, which solves the problem of ONU erroneous upgrade, improves the success rate and efficiency of upgrades, and simplifies the operation and maintenance process.

CN116743578BActive Publication Date: 2026-04-28SHENZHEN C-DATA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN C-DATA TECH CO LTD
Filing Date
2023-07-11
Publication Date
2026-04-28

AI Technical Summary

Technical Problem

In PON systems, ONUs are prone to accidentally upgrading to versions they do not support during the upgrade process, causing them to malfunction. Furthermore, in existing technologies, the OLT can only upload the upgrade version file for another model after upgrading one type of ONU, resulting in a lengthy upgrade process.

Method used

The compilation server compiles the latest software code to obtain multiple upgrade version files according to the ONU model. The OLT then queries the target ONU model, selects the appropriate upgrade version file, and sends it to the ONU. The OLT side sets up an upgrade version file filtering mechanism to avoid accidental upgrades and stores multiple upgrade version files to support upgrades for different ONU models.

Benefits of technology

It improves the success rate of ONU upgrades, reduces upgrade time and maintenance costs, increases upgrade efficiency, avoids ONU malfunctions caused by erroneous upgrades, and simplifies maintenance processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116743578B_ABST
    Figure CN116743578B_ABST
Patent Text Reader

Abstract

The application relates to an optical network unit upgrading method, a network device and a computer readable storage medium. In cooperation with a compiling server, the optical network unit upgrading method provides different upgrading version files for different types of ONUs according to the latest software code of the ONUs by the compiling server; the OLT determines which upgrading version file is used by each ONU for upgrading, which is equivalent to setting an upgrading version file screening mechanism for the ONU on the OLT side, avoids the case that the ONU is mis-upgraded with an upgrading version file that is not supported by the ONU, and improves the success rate of ONU upgrading. Meanwhile, the OLT side can simultaneously store at least two upgrading version files from the compiling server, compared with the related art, the ONU upgrading method provided by the application can simultaneously upgrade different types of ONUs on the OLT, improves the upgrading efficiency, and reduces the time cost of ONU upgrading.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to an optical network unit upgrade method, network equipment, and computer-readable storage medium. Background Technology

[0002] In a PON (Passive Optical Network) system, a single OLT (Optical Line Terminal) may connect to multiple different models of ONUs (Optical Network Units). Currently, the most common upgrade method for ONUs is based on the OMCI (ONU Management and Control Interface) protocol: the upgrade file is uploaded to the OLT, which then transmits it to the connected ONUs, which use the received upgrade file to complete the upgrade. However, some ONUs lack a mechanism to verify the upgrade file, which may lead to them incorrectly using an unsupported upgrade file, resulting in ONU malfunction. Summary of the Invention

[0003] To address the problem in related technologies where ONUs are prone to incorrectly upgrading to unsupported upgrade versions and thus malfunction, this application provides an optical network unit upgrade method, a network device, and a computer-readable storage medium.

[0004] In a first aspect, this application provides an optical network unit (ONU) upgrade method, the ONU upgrade method comprising:

[0005] Receive an upgrade command sent by the optical line terminal, the upgrade command being used to instruct the optical network unit to be upgraded;

[0006] Obtain at least two upgrade version files obtained by compiling the latest software code according to at least two models of the optical network unit, wherein the upgrade version files correspond one-to-one with the model, and the latest software code is the latest software code of the optical network unit in the compilation server;

[0007] The at least two upgrade version files are transmitted to the optical line terminal so that the optical line terminal can use the upgrade version files to upgrade the corresponding model of the optical network unit.

[0008] By adopting the above technical solution, after receiving the upgrade command from the OLT, the compilation server obtains at least two upgrade version files. These upgrade version files are compiled from the latest software code according to the ONU model. The compilation server then sends these two upgrade version files to the OLT. The OLT can query the model of the target ONU currently online, select a target upgrade version file from the upgrade version files sent by the compilation server, and then send the target upgrade version file to the target ONU, allowing the target ONU to upgrade using the upgrade version file corresponding to its model. This ONU upgrade scheme, with the cooperation of the OLT and the compilation server, allows the compilation server to provide different upgrade version files for different ONU models based on the latest software code of the ONU; the OLT determines which upgrade version file each ONU should use for upgrading. This is equivalent to setting up an upgrade version file filtering mechanism for the ONU on the OLT side, avoiding the situation where the ONU mistakenly upgrades to an unsupported upgrade version file, thus improving the success rate of ONU upgrades. Meanwhile, the OLT can store at least two upgrade version files from the compilation server simultaneously. Compared with the related technologies, which can only upload the corresponding upgrade version file for another model after the OLT has completed the upgrade of one model of ONU, the ONU upgrade method provided in this application allows the OLT to upgrade different models of ONU at the same time, which improves upgrade efficiency and reduces the time cost of ONU upgrade.

[0009] Optionally, transmitting the at least two upgraded version files to the optical line terminal includes:

[0010] The compiled upgrade version files are stored as an upgrade list, and each upgrade version file in the upgrade list corresponds to one of the models.

[0011] The upgrade list is sent to the optical line terminal.

[0012] By adopting the above technical solution, the compilation server associates the upgrade version files with the ONU model in the upgrade list. When sending the upgrade version files to the OLT, the compilation server can directly transmit the upgrade list to the OLT. In this way, the OLT can directly obtain two or more upgrade version files from the upgrade list and know which ONU model each upgrade version file is applicable to.

[0013] Optionally, before storing the compiled upgrade version files as an upgrade list, the method further includes:

[0014] The latest version of the upgrade file obtained from compilation is used to overwrite the old upgrade file stored in the main control disk.

[0015] By adopting the above technical solution, the compilation server uses the latest version of the upgrade file to overwrite the old upgrade file in the main control disk, which reduces the storage space occupied by the upgrade file on the main control disk and saves storage resources.

[0016] Optionally, obtaining at least two upgrade version files compiled from the latest software code according to at least two models of the optical network units includes:

[0017] Detect the update status of the software code of the optical network unit;

[0018] If the software code is updated, at least two upgrade version files are obtained by compiling the latest software code according to all the aforementioned models.

[0019] Secondly, this application provides an optical network unit (ONU) upgrade method, the ONU upgrade method comprising:

[0020] Send upgrade instructions to the compilation server;

[0021] The compiler receives at least two upgrade version files from the compilation server based on the upgrade instruction. The at least two upgrade version files are obtained by the compilation server compiling the latest software code according to at least two types of optical network units. The upgrade version files correspond one-to-one with the type. The latest software code is the latest software code of the optical network unit in the compilation server.

[0022] Query the model of the target optical network unit that is currently online, and select the target upgrade version file for the target optical network unit from the at least two upgrade version files according to the queried model;

[0023] The target upgrade version file is sent to the target optical network unit so that the target optical network unit can upgrade according to the target upgrade version file.

[0024] By adopting the above technical solution, after the OLT sends the upgrade command to the compilation server, it obtains at least two upgrade version files from the compilation server. These upgrade version files are compiled by the compilation server according to the ONU model based on the latest software code. The OLT can query the model of the target ONU currently online, then select a target upgrade version file for the target ONU from the upgrade version files sent by the compilation server, and then send the target upgrade version file to the target ONU, allowing the target ONU to upgrade using the upgrade version file corresponding to its model. This ONU upgrade scheme, with the cooperation of the OLT and the compilation server, allows the compilation server to provide different upgrade version files for different ONU models based on the latest software code of the ONU; the OLT determines which upgrade version file each ONU uses for upgrading. This is equivalent to setting up an upgrade version file filtering mechanism for the ONU on the OLT side, avoiding the situation where the ONU mistakenly upgrades to an unsupported upgrade version file, thus improving the success rate of ONU upgrades. Meanwhile, the OLT can store at least two upgrade version files from the compilation server simultaneously. Compared with the related technologies, which can only upload the corresponding upgrade version file for another model after the OLT has completed the upgrade of one model of ONU, the ONU upgrade method provided in this application allows the OLT to upgrade different models of ONU at the same time, which improves upgrade efficiency and reduces the time cost of ONU upgrade.

[0025] Optionally, after receiving at least two upgrade version files from the compilation server according to the upgrade instruction, the method further includes: storing the at least two upgrade version files in an upgrade file storage area, wherein the upgrade file storage area is a storage area specifically used by the optical line terminal to store the upgrade version files.

[0026] By adopting the above technical solution, an upgrade file storage area is set up on the OLT side to specifically save upgrade version files, which facilitates the unified management of at least two upgrade version files by the OLT.

[0027] Optionally, the model of the target optical network unit currently in online status is queried, including:

[0028] Poll each line card to obtain the model of the target optical network unit currently online under that line card.

[0029] Optionally, after sending the target upgrade version file to the target optical network unit, the method further includes:

[0030] Receive an upgrade report message sent by the target optical network unit, the upgrade report message indicating that the target optical network unit has completed the upgrade;

[0031] Upon receiving the upgrade report message from each of the target optical network units, the target upgrade version file is deleted from the at least two upgrade version files.

[0032] By adopting the above technical solution, after the OLT sends the target upgrade version file to the target ONU, the target ONU can complete the upgrade using the target upgrade version file and then send an upgrade report message to the OLT to inform the OLT that it has completed the upgrade. After receiving the upgrade report message from the target ONU, the OLT can delete the corresponding target upgrade version file, thereby releasing the storage resources occupied by the target upgrade version file.

[0033] Thirdly, this application provides a network device, including a processor, a memory, and a communication bus. The communication bus is used to realize a communication connection between the processor and the memory. The memory stores at least one of a first computer program and a second computer program. The first computer program can be executed by the processor to implement the optical network unit upgrade method of any of the first aspects mentioned above. The second computer program can be executed by the processor to implement the optical network unit upgrade method of any of the second aspects mentioned above.

[0034] Fourthly, this application provides a computer-readable storage medium storing either a first computer program or a second computer program; the first computer program can be executed by a processor to implement the optical network unit upgrade method described in any one of the first aspects; the second computer program can be executed by a processor to implement the optical network unit upgrade method described in any one of the second aspects.

[0035] By adopting the above technical solution, a computer program carrier for the ONU upgrade method is provided.

[0036] In summary, this application includes at least the following beneficial technical effects:

[0037] 1. An upgrade version file filtering mechanism was set up for the ONU on the OLT side to avoid the ONU accidentally upgrading to an upgrade version file that it does not support, thereby improving the success rate of ONU upgrades;

[0038] 2. The OLT can upgrade different models of ONUs simultaneously, improving upgrade efficiency and reducing the time cost of ONU upgrades. Attached Figure Description

[0039] Figure 1 This is a schematic diagram of an interactive process of the ONU upgrade method provided in Embodiment 1 of this application;

[0040] Figure 2This is a schematic diagram of a process for a compilation server to obtain an upgrade version file, as shown in Embodiment 1 of this application.

[0041] Figure 3 A schematic diagram illustrating the relationship between the ONU software code update time and the encoder's timed compilation time and upgrade command reception time;

[0042] Figure 4 This is a schematic diagram illustrating another relationship between the ONU software code update time, the encoder's timed compilation time, and the upgrade command reception time.

[0043] Figure 5 This is a schematic diagram of the ONU upgrade system provided in Embodiment 2 of this application;

[0044] Figure 6 This is a schematic diagram of a server-side compilation process for the ONU upgrade method provided in Embodiment 2 of this application;

[0045] Figure 7 This is a schematic diagram of an OLT side of the ONU upgrade method provided in Embodiment 2 of this application;

[0046] Figure 8 This is a schematic diagram of the hardware structure of a network device provided in Embodiment 3 of this application.

[0047] Explanation of reference numerals in the attached figures:

[0048] 5-ONU upgrade system; 60-Compilation server; 600-Main control panel; 70-OLT; 80-Network device; 81-Processor; 82-Memory; 83-Communication bus. Detailed Implementation

[0049] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0050] Example 1:

[0051] This embodiment provides an ONU upgrade method. To help those skilled in the art understand the advantages of this ONU upgrade method, several ONU upgrade methods in related technologies are briefly described below:

[0052] Over-the-air (OTA) upgrades are performed remotely to the ONU via a wireless network. The ONU automatically obtains the latest upgrade version file and downloads it to its local machine for upgrade.

[0053] The TFTP (Trivial File Transfer Protocol) upgrade method uses a TFTP server to upload the upgrade version file to the ONU, which then automatically loads and upgrades the ONU.

[0054] The Web (World Wide Web) upgrade method involves uploading the required upgrade version file through the ONU's web interface, which is then automatically loaded and upgraded by the ONU.

[0055] The USB upgrade method requires first storing the upgrade file on a USB flash drive, then inserting the USB flash drive into the ONU's USB port, allowing the ONU to automatically read the upgrade file from the USB flash drive and perform the upgrade.

[0056] The OMCI upgrade method involves uploading the upgrade file to the OLT, which then transmits it to the ONU via the OMCI / OAM (Operation, Administration, Maintenance) protocol. The ONU then performs the upgrade itself. The specific steps of the OMCI upgrade method are as follows:

[0057] (1) Use the TFTP protocol to transfer the upgrade version file that matches the ONU model to the OLT for storage.

[0058] (2) The OLT sends an upgrade message to the ONU, informing the ONU that an upgrade operation is required.

[0059] (3) After receiving the upgrade message, the ONU sends an acknowledgment signal back to the OLT.

[0060] (4) The OLT will transmit the upgrade version file to the ONU via the OMCI / OAM protocol.

[0061] (5) After receiving the upgrade version file, the ONU performs various verification and decompression operations.

[0062] (6) The ONU begins the upgrade process and performs backup and restore operations during the upgrade process to ensure that no important data is lost during the upgrade process.

[0063] (7) ONU upgrade completed.

[0064] Compared to other upgrade methods, OMCI upgrades are more flexible, secure, and offer higher reliability and stability. However, OMCI upgrades also have some drawbacks, such as:

[0065] After the OLT transmits the upgrade file to the ONU, some ONUs have a built-in mechanism to determine whether the received upgrade file is suitable for their local upgrade. If the determination is that it is not suitable, the ONU can ignore the received upgrade file. However, some ONUs do not have this mechanism, causing them to upgrade directly without any judgment upon receiving the upgrade file from the OLT. If the upgrade file does not match the ONU's model, the upgrade will fail, and the ONU will not function properly.

[0066] In addition, only one upgrade version file can be uploaded to the OLT at a time. Therefore, when upgrading an ONU, the OLT must first upgrade one model of ONU before it can obtain the corresponding upgrade version file for another model and upgrade that model of ONU. This makes the entire upgrade process very time-consuming.

[0067] Based on the aforementioned shortcomings of the OMCI upgrade method, this embodiment provides an ONU upgrade method. Please refer to [link / reference]. Figure 1 The diagram illustrates an interactive process for the ONU upgrade method:

[0068] S102: The OLT sends an upgrade command to the compilation server.

[0069] When an ONU needs to be upgraded, the OLT can send an upgrade command to the compilation server, instructing the server to provide an upgrade version file for the ONU. In essence, the OLT can determine the need for an ONU upgrade based on commands issued by maintenance personnel; that is, the process of sending the upgrade command can be triggered by maintenance personnel on the OLT.

[0070] S104: The compilation server obtains at least two upgrade version files obtained by compiling the latest software code according to at least two types of optical network units.

[0071] After receiving the upgrade command, the compilation server can obtain at least two upgrade version files based on the command. In this embodiment, the upgrade version files correspond one-to-one with the ONU model, with one upgrade version file for each model. Therefore, the at least two upgrade version files obtained by the compilation server correspond to at least two different models.

[0072] The upgrade version file corresponding to a specific model is obtained by the compilation server compiling (profiled) the latest software code of the ONU according to that model. After maintenance personnel add, delete, or modify the ONU's software code, they upload the new software code to the compilation server. Therefore, upon receiving an upgrade command, the compilation server can compile the latest software code of the ONU according to its model, thus obtaining the upgrade version file corresponding to that model. Because the OLT can connect to more than one model of ONU, in this embodiment, the compilation server will compile the latest software code of the ONU according to more than one model, thus obtaining more than one upgrade version file. In some examples, the compilation server can compile the latest software code for all models of ONUs connected to the OLT, thereby compiling the corresponding upgrade version file for each ONU model.

[0073] In some examples of this embodiment, the compilation server only compiles the latest software code of the ONU to obtain the upgrade version file upon receiving an upgrade command. In these examples, the compilation server always compiles the upgrade version file after receiving the upgrade command. However, in other examples of this embodiment, the compilation server supports compiling the latest software code on a scheduled basis, and also supports compiling the latest software code triggered by an upgrade command. For example, a compilation server is set to compile the latest software code to obtain the upgrade version file at 11:50 PM every night. In this case, the compilation server can... Figure 2 The following process is shown to obtain the upgrade version file:

[0074] S202: The compilation server detects updates to the ONU's software code.

[0075] Upon receiving the upgrade command, the compilation server determines the update status of the ONU software code. Here, the compilation server determines whether the ONU software code has been updated by comparing it with the situation at the time of the most recent compilation. If the current latest software code of the ONU is the same as the software code corresponding to the most recent compilation, it means that the ONU software code has not been updated since the most recent compilation; if the current latest software code of the ONU is different from the software code corresponding to the most recent compilation, it means that the ONU software code has been updated since the most recent compilation.

[0076] It is understandable that, assuming the compiler server last performed a scheduled compilation at time T1, and received the upgrade instruction at time T2, where T2 is after time T1, then... Figure 3 and Figure 4 As shown. If the last update to the ONU software code by the operations and maintenance personnel occurred before time T1, please refer to [link / reference needed]. Figure 3Therefore, the updated software code was already compiled at time T1, generating the corresponding upgrade version file. Thus, when the compilation server receives the upgrade command at time T2, it will determine that the latest software code is identical to the software code compiled at time T1, and the ONU's software code (compared to time T1) has not been updated.

[0077] If the last update to the ONU software code by the operations and maintenance personnel occurred after time T1, please refer to [link to relevant documentation]. Figure 4 When the compilation server receives the upgrade instruction at time T2, it will find that the latest software code is inconsistent with the software code compiled at time T1, and the ONU's software code (compared to time T1) has been updated.

[0078] S204: Determine if the ONU's software code has been updated.

[0079] If the judgment result is yes, then execute S206; otherwise, execute S208.

[0080] S206: The compilation server compiles the latest software code according to at least two models, resulting in at least two upgrade version files.

[0081] If, after evaluation, the compilation server determines that the ONU's software code has been updated, then the upgrade version file obtained from the most recent scheduled compilation will not match the latest software code of the ONU. Since the latest software code at the current moment has not yet been compiled, the compilation server will recompile the latest software code according to at least two models to obtain the corresponding upgrade version file.

[0082] S208: The compilation server retrieves the most recently compiled and saved upgrade version file.

[0083] If, after evaluation, the compilation server determines that the ONU's software code has not been updated, it means that the latest software code at the current moment has already been compiled. The compilation server does not need to compile the latest software code again, but can directly obtain the previously compiled upgrade version file.

[0084] In some examples of this embodiment, the compilation server is equipped with a main control disk to store upgrade version files for different ONU models. After each compilation of the ONU software code, the compilation server can use the currently obtained upgrade version file to overwrite the previously stored upgrade version file, that is, use the latest version of the upgrade version file to overwrite the old upgrade version file.

[0085] In some examples of this embodiment, the compilation server can store at least two compiled upgrade version files in a list format. For example, the compilation server can associate multiple compiled upgrade version files with the ONU model to form an upgrade list, in which the upgrade version files correspond one-to-one with the ONU model.

[0086] S106: The compilation server will transfer at least two upgrade files to the OLT.

[0087] Once the build server has obtained at least two upgrade files, it can transmit these files as a response to the upgrade command to the OLT. Alternatively, if the build server has stored the upgrade files in an upgrade list, it can transmit the upgrade list to the OLT.

[0088] In some examples of this embodiment, the OLT is equipped with an upgrade file storage area, which is a dedicated storage area within the OLT for storing upgrade version files. Therefore, when the OLT receives upgrade version files from the compilation server, it can store these upgrade version files in this upgrade file storage area, thus achieving storage management of the upgrade version files.

[0089] S108: The OLT queries the model of the target ONU that is currently online, and selects the target upgrade version file for the target ONU from at least two upgrade version files based on the queried model.

[0090] After obtaining at least two upgrade version files from the compilation server, the OLT can query the currently online ONUs as target ONUs and obtain their model numbers. Since each line card of the OLT records information such as the model number of the ONUs registered under that line card when an ONU is successfully registered, in some examples of this embodiment, the OLT can poll each line card to determine which line card's ONUs are online and obtain information such as the model number of the online ONUs.

[0091] After obtaining the model number of the target ONU, the OLT can select the target upgrade version file for the target ONU from various upgrade version files based on the model number. Undoubtedly, the target upgrade version file is actually the upgrade version file corresponding to the model number of the target ONU.

[0092] S110: The OLT sends the target upgrade version file to the target optical network unit.

[0093] After the OLT selects the target upgrade version file for the target ONU, it can send the target upgrade version file to the target ONU so that the target ONU can complete the upgrade according to the target upgrade version file.

[0094] Understandably, because the OLT stores upgrade version files corresponding to at least two models, it can simultaneously upgrade at least two models of ONUs. For example, after sending the first upgrade version file to the first model of ONU, the OLT can send the second upgrade version file to the second model of ONU without waiting for all ONUs of the first model to complete their upgrades, allowing the second model of ONU to also be upgraded synchronously. Compared to related technologies where the OLT can only store one type of upgrade version file, and the OLT must wait for the upgrade of one model of ONU to complete before obtaining the upgrade version file corresponding to another model of ONU and controlling that other model of ONU to upgrade, the ONU upgrade method provided in this embodiment can significantly improve the OLT's upgrade efficiency for ONUs and reduce upgrade time.

[0095] S112: The target optical network unit is upgraded according to the target upgrade version file.

[0096] After receiving the target upgrade version file corresponding to its own model, the target ONU can upgrade according to the target upgrade version file. In some examples of this embodiment, after receiving the corresponding target upgrade version file, the target ONU will also perform various upgrade verification operations, including verification of the target upgrade version file and verification of the device's status.

[0097] In some examples, after the target ONU completes its upgrade, it will send an upgrade report message to the OLT. This message indicates that the target ONU has completed the upgrade according to the target upgrade version file. After the OLT receives upgrade report messages from each target ONU of the same model, it can delete the target upgrade version file corresponding to that model from its stored upgrade version files. This reduces the storage resources occupied by the upgrade version files on the OLT side.

[0098] The ONU upgrade method provided in this embodiment, upon receiving the upgrade command sent by the OLT, the compilation server provides the OLT with at least two upgrade version files corresponding to at least two ONU models. The OLT can select the target upgrade version file for the target ONU based on its currently online model, and then send the target upgrade version file to the target ONU for upgrade. This prevents the ONU from mistakenly upgrading to the upgrade version file of another model, thus improving the success rate of ONU upgrades. Furthermore, because the OLT stores at least two upgrade version files simultaneously, it can upgrade at least two ONU models at the same time, significantly reducing the time spent on ONU upgrades in the PON system and improving upgrade efficiency. Moreover, when an upgrade is needed, maintenance personnel only need to issue a single command on the OLT to upgrade all ONUs, eliminating the need for personnel to perform upgrade operations on the OLT for each ONU model individually, reducing maintenance operations and burden, and lowering maintenance costs.

[0099] Example 2:

[0100] To make the advantages and details of the ONU upgrade method provided in the foregoing embodiments clearer to those skilled in the art, this embodiment will continue to describe the ONU upgrade method:

[0101] Please see first. Figure 5 , Figure 5 The diagram shown illustrates one embodiment of the ONU upgrade system 5 provided in this example. The ONU upgrade system 5 includes a compilation server 60 and an OLT 70. The compilation server 60 and OLT 70 are communicatively connected and can communicate via wired or wireless means, such as Bluetooth, near-field communication, WiFi, or Zigbee. In some examples, the compilation server 60 includes a main control disk 600, and the OLT 70's memory includes an upgrade file storage area.

[0102] Let's combine the following... Figure 6 The flowchart shown illustrates the process of compiling server 60 in the ONU upgrade method:

[0103] S602: The compilation server receives the upgrade command sent by the OLT.

[0104] The compilation server 60 receives the upgrade command sent by the OLT 70. This upgrade command informs the compilation server 60 that an upgrade is needed for the ONU. Therefore, the compilation server 60 needs to provide upgrade version files for each ONU model.

[0105] S604: The compilation server detects the update status of the ONU's software code and determines whether the software code has been updated.

[0106] If the judgment result is yes, then execute S606; otherwise, execute S610.

[0107] S606: The compilation server compiles the latest software code for multiple models, resulting in various upgrade version files.

[0108] If, after evaluation, the compilation server 60 determines that the ONU's software code has been updated, it can compile the latest software code for multiple ONU models, thereby generating multiple upgrade version files. In this embodiment, the compilation server 60 can compile corresponding upgrade version files for all ONU models connected to the OLT 70.

[0109] S608: The build server stores multiple upgrade version files as an upgrade list.

[0110] It is understandable that after each round of compilation (one round of compilation refers to the process by which the compilation server 60 completes the corresponding compilation work in response to a timed instruction or an upgrade instruction received from the OLT 70 side), it will obtain multiple upgrade version files. In this embodiment, the compilation server 60 can store the multiple upgrade version files obtained from one round of compilation as an upgrade list. In the upgrade list, the upgrade version files correspond one-to-one with the ONU model.

[0111] When the compilation server 60 obtains a new upgrade list, it can use this new upgrade list to overwrite the old upgrade list stored in the main control disk 600, thereby reducing the storage resource consumption of the main control disk 600 for storing the upgrade list. However, in some other examples of this embodiment, after the compilation server 60 obtains a new upgrade list, it can choose to retain the old upgrade list while storing the new upgrade list in the main control disk 600. For example, in one example, the main control disk 600 can store multiple upgrade lists in order of generation time.

[0112] S610: The build server retrieves the list of upgrades from the most recently compiled and saved build.

[0113] If the compilation server 60 determines, after evaluation, that the ONU's software code has not been updated, it means that the compilation server 60 has already compiled the software code for the current ONU, and therefore the corresponding upgrade list is already stored in the main control disk 600. The compilation server 60 only needs to retrieve the most recently stored upgrade list. It's understandable that if the compilation server 60 always overwrites the old upgrade list when storing upgrade lists in the main control disk 600, then when it determines that the ONU's software code has not been updated, the compilation server 60 can directly retrieve the currently uniquely stored upgrade list in the main control disk 600. However, if the compilation server 60 does not overwrite the old upgrade list when saving upgrade lists to the main control disk 600, but instead retains all historical upgrade lists, then when it determines that the ONU's software code has not been updated, the compilation server 60 needs to retrieve the most recently saved upgrade list from the main control disk 600.

[0114] S612: The build server sends the upgrade list to the OLT.

[0115] After obtaining the upgrade list corresponding to the latest software code of the ONU, the compilation server 60 sends the upgrade list to the OLT 70 as a response to the upgrade command sent by the OLT 70, so that the OLT 70 can upgrade the ONU according to the upgrade list.

[0116] The following is combined Figure 7 The flowchart shown illustrates the process on the OLT 70 side of the ONU upgrade method:

[0117] S702: The OLT sends an upgrade command to the compilation server.

[0118] When there is a need to upgrade the ONU software, the maintenance personnel can issue an upgrade command on the OLT 70 to instruct the OLT 70 to start the upgrade process. The OLT 70 can generate an upgrade instruction based on the upgrade command from the maintenance personnel, and then send the upgrade instruction to the compilation server 60.

[0119] S704: The OLT receives the upgrade list sent by the compilation server based on the upgrade instructions.

[0120] After receiving the upgrade command from the OLT 70, the compilation server 60 can obtain an upgrade list containing multiple upgrade version files based on the upgrade command, and then transmit the upgrade list to the OLT 70. For the process of the compilation server 60 obtaining the upgrade list, please refer to the previous description; it will not be repeated here. After receiving the upgrade list, the OLT 70 can store the upgrade list in the upgrade file storage area, which is a dedicated storage area on the OLT 70 side for storing upgrade version files.

[0121] S706: The OLT polling line card determines the model of the target ONU that is online.

[0122] After obtaining the upgrade list from the compilation server 60, the OLT 70 can poll the line cards to determine which line card's ONUs are online. The OLT 70 then uses these online ONUs as the target ONUs. The OLT 70 can obtain the target ONU's model information from the line card.

[0123] S708: The OLT selects the target upgrade version file corresponding to the target ONU from the upgrade list.

[0124] After obtaining the model number of the target ONU, the OLT 70 can select the upgrade version file corresponding to that model from the upgrade list based on the model information. This upgrade version file is the target upgrade version file for the target ONU.

[0125] S710: The OLT sends the target upgrade version file to the target ONU.

[0126] After obtaining the target upgrade version file of the target ONU, the OLT 70 sends the target upgrade version file to the target ONU so that the target ONU can perform a software upgrade based on the target upgrade version file.

[0127] S712: The OLT receives the upgrade report message sent by the target ONU.

[0128] In this embodiment, after the target ONU receives the target upgrade version file sent by the OLT 70, it performs the upgrade according to the target upgrade version file. After the upgrade is completed, the target ONU can send an upgrade report message to the OLT 70 to inform the OLT 70 that it has completed the upgrade according to the target upgrade version file.

[0129] S714: OLT deletes the target upgrade version file.

[0130] After receiving upgrade report messages from all target ONUs of a certain model, the OLT 70 can determine that all ONUs of that model have been upgraded. Once all ONUs of a certain model have been upgraded, the OLT 70 can delete the corresponding upgrade version file from the upgrade file storage area, thus freeing up storage resources in the upgrade file storage area.

[0131] The ONU upgrade method provided in this embodiment can improve the success rate of ONU upgrades, reduce the time required for ONU upgrades and the number of operations performed by maintenance personnel during the ONU upgrade process, thereby reducing maintenance costs.

[0132] Example 3:

[0133] This embodiment first provides a network device 80, please refer to... Figure 8 The hardware structure diagram of the network device 80 shown is as follows:

[0134] Network device 80 includes a processor 81, a memory 82, and a communication bus 83, wherein the processor 81 and the memory 82 are communicatively connected via the communication bus 83. The memory 82 can be used to store instructions, programs, code, code sets or instruction sets, and data. The memory 82 may include a program storage area and a data storage area. The program storage area can store instructions for implementing an operating system and instructions for at least one function, while the data storage area can store data.

[0135] In some examples of this embodiment, the network device 80 can be a compilation server as described in any of the foregoing examples. Its program storage area stores a first computer program, which can be executed by the processor 81 to implement the compilation server-side process in the ONU upgrade method provided in the above embodiments. The data storage area can store data related to the compilation server in the ONU upgrade method provided in the above embodiments. In other examples of this embodiment, the program storage area stores a second computer program, which can be executed by the processor 81 to implement the OLT-side process in the ONU upgrade method provided in the foregoing embodiments. The data storage area can store data related to the OLT-side in the ONU upgrade method provided in the above embodiments.

[0136] Processor 81 may include one or more processing cores. Processor 81 executes instructions, programs, code sets, or instruction sets stored in memory 82, calls data stored in memory 82, and performs various functions and processes data as described in this application. Processor 81 may be at least one of the following: Application Specific Integrated Circuit (ASIC), Digital Signal Processor (DSP), Digital Signal Processing Device (DSPD), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), Central Processing Unit (CPU), Controller, Microcontroller, and Microprocessor. It is understood that for different devices, the electronic devices used to implement the functions of processor 81 may also be other types, and this application embodiment does not specifically limit the specific implementation.

[0137] This application provides a computer-readable storage medium, including, for example, various media capable of storing program code such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk. The computer-readable storage medium stores at least one of a first computer program and a second computer program that can be loaded and executed by a processor 81. The first computer program can be executed by the processor 81 to implement the server-side compilation process in any of the aforementioned ONU upgrade methods; the second computer program can be executed by the processor 81 to implement the OLT-side process in any of the aforementioned ONU upgrade methods.

[0138] The above embodiments are only used to provide a detailed description of the technical solutions of this application. However, the description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application, and should not be construed as a limitation of this application. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the protection scope of this application.

Claims

1. A method for upgrading an optical network unit, characterized in that, The optical network unit upgrade method includes: Receive an upgrade command sent by the optical line terminal, the upgrade command being used to instruct the optical network unit to be upgraded; Obtain at least two upgrade version files by compiling the latest software code according to at least two models of the optical network unit, wherein each upgrade version file corresponds one-to-one with the model, and the latest software code is the latest software code of the optical network unit in the compilation server. The step of obtaining at least two upgrade version files obtained by compiling the latest software code according to at least two models of the optical network units includes: Obtain the receiving time T2 of the upgrade instruction, and query the time T1 of the most recent timed compilation after the receiving time T2; Detect the update status of the software code of the optical network unit before the time T1 of the timed compilation; If the software code is updated earlier than the scheduled compilation time T1, then the upgraded version file generated at the scheduled compilation time T1 is directly obtained; If the update time of the software code is later than the time T1 of the timed compilation but earlier than the time T2 of the reception, then the latest software code is compiled according to all the models to obtain at least two upgraded version files; The at least two upgrade version files are transmitted to the optical line terminal so that the optical line terminal can use the upgrade version files to upgrade the corresponding model of the optical network unit.

2. The optical network unit upgrade method according to claim 1, characterized in that, The step of transmitting the at least two upgraded version files to the optical line terminal includes: The compiled upgrade version files are stored as an upgrade list, and each upgrade version file in the upgrade list corresponds to one of the models. The upgrade list is sent to the optical line terminal.

3. The optical network unit upgrade method according to claim 2, characterized in that, Before storing the compiled upgrade version files as an upgrade list, the method further includes: The latest version of the upgrade file obtained from compilation is used to overwrite the old upgrade file stored in the main control disk.

4. A method for upgrading an optical network unit, characterized in that, The optical network unit upgrade method includes: Send upgrade instructions to the compilation server; The compiler receives at least two upgrade version files from the compilation server based on the upgrade instruction. The at least two upgrade version files are obtained by the compilation server compiling the latest software code according to at least two types of optical network units. The upgrade version files correspond one-to-one with the type. The latest software code is the latest software code of the optical network unit in the compilation server. Query the model of the target optical network unit that is currently online, and select the target upgrade version file for the target optical network unit from the at least two upgrade version files based on the queried model; The target upgrade version file is sent to the target optical network unit so that the target optical network unit can upgrade according to the target upgrade version file; In this process, after sending the first upgrade version file to the first type of target optical network unit, there is no need to wait for the first type of target optical network unit to complete the upgrade before sending the second upgrade version file to the second type of target optical network unit, so as to achieve parallel upgrade of different types of optical network units. After sending the target upgrade version file, continuously receive upgrade report messages sent by the target optical network unit, the upgrade report messages indicating that the target optical network unit has completed the upgrade; After confirming that all target optical network units of the same model that are online have sent the upgrade report message, delete the target upgrade version file corresponding to the same model from the upgrade file storage area; The step of receiving at least two upgrade version files from the compilation server according to the upgrade instruction further includes: The at least two upgrade version files are stored in the upgrade file storage area, which is a storage area specifically used by the optical line terminal to store the upgrade version files.

5. The optical network unit upgrade method according to claim 4, characterized in that, The model of the target optical network unit currently online includes: Poll each line card to obtain the model of the target optical network unit currently online under that line card.

6. A network device, characterized in that, The device includes a processor, a memory, and a communication bus. The communication bus is used to establish a communication connection between the processor and the memory. The memory stores at least one of a first computer program and a second computer program. The first computer program can be executed by the processor to implement the optical network unit upgrade method as described in any one of claims 1 to 3. The second computer program can be executed by the processor to implement the optical network unit upgrade method as described in any one of claims 4 to 5.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores either a first computer program or a second computer program; the first computer program can be executed by a processor to implement the optical network unit upgrade method as described in any one of claims 1 to 3; the second computer program can be executed by a processor to implement the optical network unit upgrade method as described in any one of claims 4 to 5.

Citation Information

Patent Citations

  • Method and system for multi-ONU (optical network unit) automatic upgrading in GPON (gigabit-capable passive optical network) access system

    CN102223256A

  • Method and apparatus compatible with multi-type ONU upgrade in OLT system

    CN109617748A