Terminal version upgrade control method, device, equipment and readable storage medium

By establishing the association mapping relationship between ONUs and OMCI message control within the OLT service board, the limitations of ONU terminal version upgrades in the PON system are resolved, and a normal upgrade process without the participation of the main control board is achieved.

CN119544493BActive Publication Date: 2025-09-26FIBERHOME TELECOMMUNICATION TECHNOLOGIES CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411601208.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-11
Publication Date
2025-09-26
Estimated Expiration
2044-11-11

AI Technical Summary

Technical Problem

The existing PON system has limitations such as the inability to set up an FTP server, loss of upgrade image version, main control board compatibility issues, inability to confirm version consistency, and main control board busyness, which result in the ONU terminal version being unable to be upgraded normally.

Method used

An association mapping relationship is established between the source ONU and the destination ONU in the OLT service card. The source ONU is controlled through OMCI messages to generate and forward the image copy process, realizing interaction of the target image version upgrade, avoiding excessive involvement of the main control card and upgrade file header verification.

Benefits of technology

It does not require excessive involvement of the main control board, simplifies the upgrade process, ensures that the ONU terminal version in the PON system can be upgraded normally, and reduces the dependence on FTP server setup and version acquisition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119544493B_ABST
    Figure CN119544493B_ABST
Patent Text Reader

Abstract

A terminal version upgrade control method, device, equipment and readable storage medium, relating to the field of PON terminal upgrade, including: when a service board in an OLT receives a mirror copy instruction issued by a main control board, establishing an association mapping relationship between a source ONU and a destination ONU based on the mirror copy instruction, wherein the source ONU stores a target upgrade mirror version; controlling the source ONU to start a mirror copy process so that the source ONU generates an OMCI message, the OMCI message including a first field for identifying the transmission direction of the OMCI message; when the OMCI message is received and the transmission direction of the OMCI message is determined to be ONU based on the first field, forwarding the OMCI message to the destination ONU based on the association mapping relationship, so that the destination ONU can realize an upgrade interaction of the target upgrade mirror version with the source ONU based on the OMCI message. Through this application, the normal upgrade of the ONU terminal version in the PON system can be effectively achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of PON (Passive Optical Network) terminal upgrade, and in particular to a terminal version upgrade control method, apparatus, device and readable storage medium. Background Art

[0002] When implementing an ONU (Optical Network Unit) upgrade in an existing PON system, the upgrade image version (i.e., upgrade package) is usually forwarded from one ONU to another ONU device via the OLT (Optical Line Terminal) through OMCI (ONU Management and Control Interface) message transmission, thereby achieving the purpose of mirror replication between the two ONU devices. Specifically, when there is a need for an ONU upgrade, it is necessary to first find the target upgrade image version, and then set up an FTP (File Transfer Protocol) server to transmit the upgrade image version to the OLT device. Therefore, when starting the ONU image version upgrade, the main control board in the OLT will first obtain the ONU upgrade image version through the FTP server and transmit it to the service board in the OLT. After receiving the ONU upgrade image version, the service board can transmit the upgrade image version to the ONU device via OMCI (ONU Management and Control Interface) message in the form of fragmented message transmission, thereby achieving mirror replication between the ONU devices.

[0003] Although the above scheme can realize the upgrade of ONU terminal version in PON system, it will not be able to upgrade the ONU terminal version if the following problems occur, that is, it has certain limitations: (1) the existing network conditions do not allow or it is inconvenient to build an FTP server; (2) the upgrade image version cannot be obtained or lost for a while; (3) the main control board or service board needs to verify the information of the upgrade file header, which may fail to verify due to inconsistent ONU types, thus affecting the normal upgrade, that is, the main control board or service board has compatibility issues with the current ONU to be upgraded; (4) the consistency between the upgrade image version and the target version cannot be confirmed; (5) the main control board is busy, so that the ONU image version cannot be upgraded through the main control or network management. It can be seen that how to effectively ensure that the ONU terminal version in the PON system can be upgraded normally is a problem that needs to be solved urgently. Summary of the Invention

[0004] The present application provides a terminal version upgrade control method, device, equipment and readable storage medium, which can effectively realize the normal upgrade of the ONU terminal version in the PON system.

[0005] In a first aspect, an embodiment of the present application provides a terminal version upgrade control method, which is applied to a service board in an OLT. The method includes:

[0006] When receiving the image copy instruction issued by the main control board, an association mapping relationship between the source ONU and the destination ONU is established based on the image copy instruction, and the source ONU stores the target upgrade image version;

[0007] Control source ONU to start mirror copy process, so that source ONU generates OMCI message, and described OMCI message includes the first field for identifying OMCI message transmission direction;

[0008] When the OMCI message is received and the transmission direction of the OMCI message is determined to be ONU based on the first field, the OMCI message is forwarded to the destination ONU based on the association mapping relationship, so that the destination ONU can realize the upgrade interaction of the target upgrade mirror version with the source ONU based on the OMCI message.

[0009] In combination with the first aspect, in one embodiment, establishing an association mapping relationship between the source ONU and the destination ONU based on the mirror copy instruction includes:

[0010] Obtain the source ONU information and destination ONU information carried by the mirror copy instruction, wherein the source ONU information includes the source ONU model, the source ONU hardware version number, the slot number of the source ONU, the PON port number of the source ONU, and the source ONU authorization number; the destination ONU information includes the destination ONU model, the destination ONU hardware version number, the slot number of the destination ONU, the PON port number of the destination ONU, and the destination ONU authorization number;

[0011] If it is detected that the source ONU model is the same as the destination ONU model and the source ONU hardware version number is the same as the destination ONU hardware version number, an association mapping relationship between the source ONU and the destination ONU is established based on the source ONU information and the destination ONU information.

[0012] In conjunction with the first aspect, in one embodiment, before the step of controlling the source ONU to start the mirror copy process, the method further includes:

[0013] Issue an OMCI detection message to the source ONU, so that the source ONU obtains a target flag based on the OMCI detection message, and generates a first OMCI reply message based on the target flag, wherein the target flag is used to identify whether the source ONU supports a mirror copy function;

[0014] When the field corresponding to the target flag bit in the first OMCI reply message received is filled with the first preset value, the step of controlling the source ONU to start the mirror copy process is performed, and the first preset value is used to characterize that the source ONU supports the mirror copy function;

[0015] When the field corresponding to the target flag bit in the received first OMCI reply message is filled with a second preset value, the mirror copy process is ended, and the second preset value is used to indicate that the source ONU does not support the mirror copy function.

[0016] In conjunction with the first aspect, in one embodiment, the control source ONU starts the mirror copy process so that the source ONU generates an OMCI message, including:

[0017] Issue a mirror copy startup instruction to the source ONU, so that the source ONU starts the mirror copy process based on the mirror copy startup instruction and generates an OMCI message, wherein the first field in the OMCI message is filled with a third preset value, and the third preset value is used to characterize that the OMCI message transmission direction is ONU.

[0018] In conjunction with the first aspect, in one embodiment, the purpose ONU is based on OMCI message realization and source ONU target upgrade mirror version upgrade interaction, including:

[0019] The destination ONU starts the upgrade process based on the OMCI message and sends a second OMCI reply message to the service board after successful startup;

[0020] The service board forwards the second OMCI reply message to the source ONU based on the association mapping relationship, so that the source ONU generates a new OMCI message according to the second OMCI reply message and sends it to the service board, the new OMCI message includes the target upgrade image version and the first field, and the first field is filled with the third preset value, and the third preset value is used to characterize that the OMCI message transmission direction is ONU;

[0021] The service board forwards the new OMCI message to the destination ONU based on the first field and the association mapping relationship, so that the destination ONU can download the target upgrade image version based on the new OMCI message.

[0022] In conjunction with the first aspect, in one embodiment, after the purpose ONU realizes the step of downloading the target upgrade image version based on the new OMCI message, it also includes:

[0023] When service board receives the target OMCI message that source ONU sends, described target OMCI message is sent to OMCI protocol stack, so that OMCI protocol stack issues version activation instruction according to target OMCI message to purpose ONU, so that purpose ONU realizes the activation of target upgrade image version based on described version activation instruction, completes mirror copy;

[0024] The first field in the target OMCI message is filled with a fourth preset value, and the fourth preset value is used to indicate that the transmission direction of the target OMCI message is the OMCI protocol stack.

[0025] In conjunction with the first aspect, in one embodiment, after the step of completing the mirror copy, the method further includes:

[0026] Notify the main control board of the mirror copy status of the destination ONU and release the associated mapping relationship.

[0027] In conjunction with the first aspect, in one embodiment, forwarding the OMCI message to the destination ONU based on the association mapping relationship includes:

[0028] After the first field in the OMCI message is restored to the standard OMCI frame format, it is forwarded to the destination ONU based on the association mapping relationship.

[0029] In a second aspect, an embodiment of the present application provides a terminal version upgrade control device, the terminal version upgrade control device including an OLT, the OLT including a service board, the service board being configured to:

[0030] When receiving the image copy instruction issued by the main control board, an association mapping relationship between the source ONU and the destination ONU is established based on the image copy instruction, and the source ONU stores the target upgrade image version;

[0031] Control source ONU to start mirror copy process, so that source ONU generates OMCI message, and described OMCI message includes the first field for identifying OMCI message transmission direction;

[0032] When the OMCI message is received and the transmission direction of the OMCI message is determined to be ONU based on the first field, the OMCI message is forwarded to the destination ONU based on the association mapping relationship, so that the destination ONU can realize the upgrade interaction of the target upgrade mirror version with the source ONU based on the OMCI message.

[0033] In a third aspect, an embodiment of the present application provides a terminal version upgrade control device, which includes a processor, a memory, and a terminal version upgrade control program stored on the memory and executable by the processor, wherein when the terminal version upgrade control program is executed by the processor, the steps of the terminal version upgrade control method as described above are implemented.

[0034] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a terminal version upgrade control program is stored, wherein when the terminal version upgrade control program is executed by a processor, the steps of the terminal version upgrade control method as described above are implemented.

[0035] The beneficial effects of the technical solutions provided in the embodiments of the present application include at least:

[0036] When the service board in the OLT receives the mirror copy instruction issued by the main control board, an association mapping relationship is established between the source ONU and the destination ONU based on the mirror copy instruction, and the source ONU is controlled to start the mirror copy process so that the source ONU generates an OMCI message including a first field for identifying the transmission direction of the OMCI message; when the service board receives the OMCI message and determines that the transmission direction of the OMCI message is ONU based on the first field, the OMCI message is forwarded to the destination ONU based on the association mapping relationship, so that the destination ONU can realize the upgrade interaction of the target upgrade mirror version with the source ONU based on the OMCI message. It can be seen that the present application realizes the upgrade of the ONU in the service board, which does not require excessive participation of the main control board and does not require information verification of the upgrade file header and does not need to care about the establishment of the FTP server and the acquisition and confirmation of the version, etc., and only requires a simple command to complete the upgrade mirror version replication between the two ONUs, so as to effectively ensure that the ONU terminal version in the PON system can be upgraded normally. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 This is a flow chart of an embodiment of the terminal version upgrade control method of the present application;

[0038] Figure 2 Schematic diagram of the PON system involved in the embodiment of the present application;

[0039] Figure 3 This is a schematic diagram of the MEID and attributes involved in the embodiment of this application;

[0040] Figure 4 A schematic diagram of the OMCI message frame format involved in the embodiment of the present application;

[0041] Figure 5Another OMCI message frame format schematic diagram involved in the embodiment of the present application;

[0042] Figure 6 This is a timing diagram of the ONU image upgrade involved in the embodiment of the present application;

[0043] Figure 7 This is a hardware structure diagram of the terminal version upgrade control device involved in the embodiment of the present application. DETAILED DESCRIPTION

[0044] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0045] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.

[0046] In a first aspect, an embodiment of the present application provides a terminal version upgrade control method.

[0047] In one embodiment, referring to Figure 1 , Figure 1 The terminal version upgrade control method is applied to the service card in the OLT, such as Figure 1 As shown, the terminal version upgrade control method includes:

[0048] Step S10: When receiving the image copy instruction issued by the main control board, an association mapping relationship is established between the source ONU and the destination ONU based on the image copy instruction, and the source ONU stores the target upgrade image version.

[0049] For purposes of illustration, it should be noted that the target upgrade image version refers to the upgrade package used to implement an ONU upgrade, the source ONU refers to the ONU in the PON system that has the target upgrade image version, and the destination ONU is the ONU to be upgraded. To minimize the impact of the main control board in the OLT on the ONU upgrade process, this embodiment implements the ONU upgrade within the OLT's service board and minimizes the main control board's involvement in the ONU upgrade process. Specifically, only when the destination ONU requires an upgrade does the main control board send a mirror copy instruction to the service board to inform the service board that the destination ONU requires a version upgrade. The mirror copy instruction carries source and destination ONU information, enabling the service board to establish an association mapping relationship between the source and destination ONUs within the PON service system using the source and destination ONU information, and to store this association mapping relationship in the PON service system's data storage area.

[0050] Furthermore, in one embodiment, establishing an association mapping relationship between the source ONU and the destination ONU based on the mirror copy instruction includes:

[0051] Obtain the source ONU information and destination ONU information carried by the mirror copy instruction, wherein the source ONU information includes the source ONU model, the source ONU hardware version number, the slot number of the source ONU, the PON port number of the source ONU, and the source ONU authorization number; the destination ONU information includes the destination ONU model, the destination ONU hardware version number, the slot number of the destination ONU, the PON port number of the destination ONU, and the destination ONU authorization number;

[0052] If it is detected that the source ONU model is the same as the destination ONU model and the source ONU hardware version number is the same as the destination ONU hardware version number, an association mapping relationship between the source ONU and the destination ONU is established based on the source ONU information and the destination ONU information.

[0053] Exemplary, it should be understood that the source ONU information includes but is not limited to the source ONU model, the source ONU hardware version number, the slot number where the source ONU is located, the PON port number of the source ONU and the source ONU authorization number, and the destination ONU information includes but is not limited to the destination ONU model, the destination ONU hardware version number, the slot number where the destination ONU is located, the PON port number of the destination ONU and the destination ONU authorization number. In the present embodiment, after the service board receives the mirror copy instruction, the model, hardware version number, etc. of the source ONU and the destination ONU will be verified based on the source ONU information and the destination ONU information carried in the mirror copy instruction. After confirming that the information is consistent (i.e., the source ONU model is consistent with the destination ONU model and the source ONU hardware version number is consistent with the destination ONU hardware version number), an association mapping relationship between the source ONU and the destination ONU will be established in the PON service system, so that there is an association relationship between the slot number where the source ONU is located and the slot number where the destination ONU is located, the PON port number of the source ONU and the PON port number of the destination ONU, and the authorization number of the source ONU and the authorization number of the destination ONU.

[0054] Step S20: controlling the source ONU to start the mirror copy process so that the source ONU generates an OMCI message, wherein the OMCI message includes a first field for identifying a transmission direction of the OMCI message.

[0055] Exemplarily, it should be understood that if Figure 2 As shown, the PON system provided in this embodiment includes an OLT, a source ONU and a destination ONU, and the OLT is provided with a PON driver module of a service board and an OMCI protocol stack. Since the workflow and principle of the ONU are common knowledge in the art and are not the focus of this application, Figure 2 The specific components are not marked; the OLT and ONU interact through the OMCI protocol.

[0056] It should be noted that the source ONU in the present embodiment sends to the OMCI message of service board, is divided into two directions: one direction is the OMCI protocol stack process that is given to OLT, and another direction is to be forwarded to purpose ONU according to the association mapping relation between the ONU set up by service board;Therefore, source ONU, after starting mirror copy process, will be filled with the specific field (i.e. the first field) for identifying OMCI message transmission direction in OMCI message, to inform service board that this OMCI message needs to be forwarded to OMCI protocol stack process or ONU. In other words, service board can determine whether this OMCI message is sent to OMCI protocol stack process by the specific field in the OMCI message frame format sent by verification source ONU, or forward this OMCI message to purpose ONU according to the association mapping relation between ONU.

[0057] Furthermore, in one embodiment, before the step of controlling the source ONU to start the mirror copy process, the process further includes:

[0058] Issue an OMCI detection message to the source ONU, so that the source ONU obtains a target flag based on the OMCI detection message, and generates a first OMCI reply message based on the target flag, wherein the target flag is used to identify whether the source ONU supports a mirror copy function;

[0059] When the field corresponding to the target flag bit in the first OMCI reply message received is filled with the first preset value, the step of controlling the source ONU to start the mirror copy process is performed, and the first preset value is used to characterize that the source ONU supports the mirror copy function;

[0060] When the field corresponding to the target flag bit in the received first OMCI reply message is filled with a second preset value, the mirror copy process is ended, and the second preset value is used to indicate that the source ONU does not support the mirror copy function.

[0061] For example, in this embodiment, the source ONU needs to support the mirror copy function, while the target ONU to be upgraded does not need to support this function and only needs to support the conventional upgrade function. When storing the target upgrade image version, the source ONU not only stores the first address, version size, and CRC (Cyclic Redundancy Check) check value of the target upgrade image version in the corresponding data structure, but also sets a flag in the data structure indicating whether it supports mirror copy. That is, if the source ONU supports the mirror copy function, the flag is set, and if the source ONU does not support the mirror copy function, the flag is not set. For example, if the value of the flag before being set is 0, then after the flag is set, the corresponding flag value will become 1.

[0062] like Figure 3 As shown, it should be understood that, according to the OMCI standard definition, each MEID (Managed Entity ID) can have a maximum of 16 attributes ( Figure 3Each small rectangle in the figure represents an attribute, and each attribute can have multiple message interaction types (such as the commonly used SET, GET, CREATE, DELETE, etc.) to implement multiple methods. Therefore, this embodiment can also detect whether the target ONU supports the mirror replication function by extending an existing ME (Managed Entity) attribute in the original MEID or adding a new MEID (i.e., a MEID outside the standard protocol definition, i.e., a reserved MEID) based on the G988 protocol, and then issue a mirror replication start instruction to the source ONU device through this MEID.

[0063] For details, see Figure 3 As shown, this embodiment can detect whether the source ONU supports the mirror copy function by extending any one attribute in MEID 65001; for example, assuming that the attribute with ID 1 in MEID 65001 (i.e., ATTR ID1) is extended, an OMCI detection message will be sent to the source ONU through the GET message method of ATTR ID 1 to detect whether the source ONU supports the mirror copy function; after receiving the OMCI detection message, the source ONU will take out the flag value corresponding to the target flag stored in the data structure, determine whether it supports the mirror copy function according to the flag value, and fill the reply value of this attribute (i.e., the content of the first two bytes of the OMCI reply message) with this value; it should be noted that the reply value is a first preset value or a second preset value, wherein the specific values ​​of the first preset value and the second preset value and the number of bits occupied can be determined according to actual needs and are not limited here, as long as the first preset value is used to indicate that the source ONU supports the mirror copy function and the second preset value is used to indicate that the source ONU does not support the mirror copy function, for example, the first preset value is 1 and the second preset value is 2.

[0064] Therefore, if the source ONU detects that the flag value is 1, indicating that it supports the mirror copy function, the reply value in the first OMCI reply message is set to the first preset value and then sent to the service board to inform the service board that it supports the mirror copy function; and if the flag value is 0, indicating that it does not support the mirror copy function, the reply value in the first OMCI reply message is set to the second preset value and then sent to the service board to inform the service board that it does not support the mirror copy function.

[0065] In this embodiment, if the service board detects that the reply value in the first OMCI reply message is filled with the first preset value, it indicates that the source ONU supports the mirror copy function, and the source ONU is controlled to start the mirror copy process; and if the service board detects that the corresponding field in the first OMCI reply message is filled with the second preset value, it indicates that the source ONU does not support the mirror copy function, and the mirror copy process is directly ended; in addition, if the source ONU returns an error to the service board or the service board does not receive the reply message sent by the source ONU, then the service board will also directly end the mirror copy process.

[0066] Further, in one embodiment, the control source ONU starts the mirror copy process so that the source ONU generates an OMCI message, including:

[0067] Issue a mirror copy startup instruction to the source ONU, so that the source ONU starts the mirror copy process based on the mirror copy startup instruction and generates an OMCI message, wherein the first field in the OMCI message is filled with a third preset value, and the third preset value is used to characterize that the OMCI message transmission direction is ONU.

[0068] Exemplarily, in this embodiment, after determining that the source ONU supports the mirror copy function, the service board can send a mirror copy start instruction to the source ONU through the SET message method with the attribute ID 1 in MEID 65001, so that the source ONU starts the mirror copy process; if the start fails, the mirror copy process is terminated, but if the start is successful, the source ONU will fill in the upgrade start message (START DOWNLOAD, i.e., OMCI message) based on the format defined by the standard OMCI protocol, and send the OMCI message to the service board.

[0069] It should be noted that when generating the OMCI message, it is also necessary to fill in the first field for identifying the transmission direction of the OMCI message to inform the service board of the transmission direction of the OMCI message; wherein, the first field can be formed by extending the attributes of MEID, such as Figure 4 The first BIT (DB) in the Msg Type attribute is used as the first field. Figure 5 The Device Identifier in the . Figure 4 or Figure 5 The frame format method shown is used to fill the first field, and then send the OMCI message to the service board. Figure 4 and Figure 5 The OMCI message frame format fields not explained in the present embodiment are not reused or extended, which are common knowledge in the art and will not be described here for brevity.

[0070] For details, see Figure 4 As shown, according to the standard protocol, the fixed value corresponding to the first BIT bit of the Msg Type in the OMCI message frame format is 0. The present embodiment can be used to indicate the OMCI message direction sent by the source ONU by multiplexing this BIT bit; such as filling the first BIT bit with 0 (i.e., the fourth preset value is set to 0), to indicate that the original method is used by default, that is, this OMCI message needs to be sent to the OMCI protocol stack for processing; and if the first BIT bit is filled with 1 (i.e., the third preset value is set to 1), it means that the OMCI message needs to be forwarded to the ONU.

[0071] In addition, according to the standard protocol, the Device Identifier in the current OMCI message frame format only uses the lower 4 BIT bits to indicate whether this message is a standard OMCI message or an extended OMCI message. For example, if the lower 4 BIT bits are filled with A, it means that this message is a standard OMCI message, and if the lower 4 BIT bits are filled with B, it means that this message is a standard OMCI message. However, the upper 4 BIT bits are not currently used. Therefore, this embodiment can use the upper 4 BIT bits to indicate the direction of the OMCI message sent by the source ONU; for example, see Figure 5 As shown, the upper 4BIT bits are filled with 0x0 to indicate that this OMCI message needs to be sent to the OMCI protocol stack for processing, and the Device Identifier field will be filled with 0x0A or 0x0B (that is, the fourth preset value is set to 0x0A or 0x0B); and if the upper 4BIT bits are filled with 0x1, the Device Identifier field will be filled with 0x1A or 0x1B (that is, the third preset value is set to 0x1A or 0x1B), to indicate that this OMCI message needs to be forwarded to the ONU according to the association mapping relationship in the PON service system.

[0072] Step S30: When the OMCI message is received and the transmission direction of the OMCI message is determined to be ONU based on the first field, the OMCI message is forwarded to the destination ONU based on the association mapping relationship, so that the destination ONU can realize the upgrade interaction of the target upgrade image version with the source ONU based on the OMCI message.

[0073] Exemplarily, in this embodiment, after receiving the OMCI message sent by the source ONU, the service board will verify the first field contained in the message as soon as possible. If the filling content corresponding to the first field indicates that the transmission direction of the OMCI message is ONU, the service board will forward the OMCI message to the destination ONU according to the association mapping relationship between the ONUs to realize the interaction between the source ONU and the destination ONU, so that the source ONU and the destination ONU can transmit the target upgrade image version in the form of an OMCI message through the service board, that is, the destination ONU can obtain the target upgrade image version from the source ONU through the service board for normal copy and upgrade.

[0074] It can be seen that this embodiment implements the ONU upgrade within the service board, which does not require excessive involvement of the main control board, does not require information verification of the upgrade file header, and does not require concern for the establishment of an FTP server and version acquisition and confirmation. Instead, only a simple command is needed to complete the upgrade image version copy between the two ONUs, thereby effectively ensuring that the ONU terminal version in the PON system can be upgraded normally.

[0075] Further, in one embodiment, the forwarding of the OMCI message to the destination ONU based on the association mapping relationship includes:

[0076] After the first field in the OMCI message is restored to the standard OMCI frame format, it is forwarded to the destination ONU based on the association mapping relationship.

[0077] For example, in this embodiment, before forwarding the OMCI message to the destination ONU, the service board may preferably restore the first field in the OMCI message to the standard OMCI frame format, and then forward the OMCI message to the destination ONU according to the association mapping relationship between the ONUs to avoid problems such as interaction abnormalities caused by the first field; for example, if the first field is the first BIT bit of MsgType, the first field is restored to a fixed value under the standard OMCI frame format; for example, if the first field is Device Identifier, the high 4 BIT bits in the first field are restored to the unused state under the standard OMCI frame format.

[0078] Further, in one embodiment, the purpose ONU is based on OMCI message implementation and source ONU target upgrade mirror version upgrade interaction, including:

[0079] The destination ONU starts the upgrade process based on the OMCI message and sends a second OMCI reply message to the service board after successful startup;

[0080] The service board forwards the second OMCI reply message to the source ONU based on the association mapping relationship, so that the source ONU generates a new OMCI message according to the second OMCI reply message and sends it to the service board, the new OMCI message includes the target upgrade image version and the first field, and the first field is filled with the third preset value, and the third preset value is used to characterize that the OMCI message transmission direction is ONU;

[0081] The service board forwards the new OMCI message to the destination ONU based on the first field and the association mapping relationship, so that the destination ONU can download the target upgrade image version based on the new OMCI message.

[0082] Exemplarily, in this embodiment, the service board forwards the OMCI message sent by the source ONU to the destination ONU according to the association mapping relationship between the ONUs, to inform the destination ONU that the upgrade process needs to be started; therefore, after receiving the OMCI message forwarded by the service board, the destination ONU will start the upgrade process, and send a reply message (i.e., the second OMCI reply message) to the service board after successful startup to notify the service board that the startup upgrade is successful; and the service board forwards the second OMCI reply message sent by the destination ONU to the source ONU according to the association mapping relationship between the ONUs, so that the source ONU knows that the destination ONU has successfully started the upgrade, thereby completing the OMCI message interaction process in the upgrade startup phase.

[0083] After receiving the second OMCI reply message, the source ONU will start to transmit the upgrade package, that is, transmit the target upgrade image version to the service board in the form of an OMCI message, and fill the first field with the third preset value to inform the service board that the OMCI message needs to be transmitted to the ONU; therefore, the new OMCI message sent by the source ONU to the service board carries the target upgrade image version and the first field is set to the third preset value for characterizing that the OMCI message transmission direction is ONU.

[0084] And service board, after receiving new OMCI message and determining that OMCI message transmission direction is ONU according to the first field, will forward new OMCI message to purpose ONU according to the association mapping relation between ONU, so that purpose ONU can download target upgrade image version based on this new OMCI message;It should be noted that, although target upgrade image version is usually transmitted and downloaded in fragment form, but the flow process and principle of fragment transmission and download are all similar to above-mentioned, that is, when the fragment transmission and download of target upgrade image version are carried out at each time, source ONU all needs to fill the first field in OMCI message as the 3rd preset value.Therefore, the fragment download of all upgrade image messages and mirror image download end message interaction can be completed by the mode of above-mentioned message transmission.

[0085] Further, in one embodiment, after the purpose ONU realizes the step of downloading the target upgrade image version based on the new OMCI message, it also includes:

[0086] When service board receives the target OMCI message that source ONU sends, described target OMCI message is sent to OMCI protocol stack, so that OMCI protocol stack issues version activation instruction according to target OMCI message to purpose ONU, so that purpose ONU realizes the activation of target upgrade image version based on described version activation instruction, completes mirror copy;

[0087] The first field in the target OMCI message is filled with a fourth preset value, and the fourth preset value is used to indicate that the transmission direction of the target OMCI message is the OMCI protocol stack.

[0088] Exemplarily, in this embodiment, after completing the target upgrade image version transmission, the source ONU notifies the service board card of the completion of the target upgrade image version transmission in the form of an OMCI message, and fills the first field with a fourth preset value to inform the service board card that the OMCI message needs to be transmitted to the OMCI protocol stack; therefore, the target OMCI message sent by the source ONU to the service board card carries the information that the target upgrade image version transmission is completed and the first field is set to the fourth preset value for characterizing that the OMCI message transmission direction is the OMCI protocol stack.

[0089] After receiving the target OMCI message, the service board will verify the first field. If the verification result is that the OMCI message transmission direction is the OMCI protocol stack, the target OMCI message will be sent to the OMCI protocol stack for processing, so that the OMCI protocol stack can issue a version activation instruction to the destination ONU according to the received target OMCI message; wherein, the version activation instruction includes an ACTIVE IMAGE message and a COMMIT IMAGE message, the ACTIVE IMAGE message is used to notify the destination ONU to activate the target upgrade image version downloaded by it, and the COMMIT IMAGE message is used to notify the destination ONU to set the target upgrade image version downloaded by it as the default loading image, so that the destination ONU activates the target upgrade image version and sets the default loading image after receiving the version activation instruction, thereby realizing the activation of the upgraded version of the destination ONU, thereby completing the image copying.

[0090] Furthermore, in one embodiment, after the step of completing the mirror copy, the method further includes: notifying the main control board of the mirror copy status of the destination ONU and releasing the associated mapping relationship.

[0091] Exemplarily, in this embodiment, after the target ONU completes the target upgrade mirror version copy, the service board can notify the main control version about the mirror copy status of the target ONU, and at the same time delete the association mapping relationship between the source ONU and the target ONU in the data storage area of ​​the PON service system to restore the normal interaction process.

[0092] The following combination Figure 2 and Figure 6 This section describes the process of inter-ONU version upgrades.

[0093] First, after the main control board or network management sends the ONU mirror copy command to the service board, the service board establishes an association mapping relationship between the source ONU and the destination ONU in the PON service system based on the source ONU information and the destination ONU information; secondly, the service board sends an OMCI detection message to the source ONU through the PON driver module to determine whether the source ONU supports the mirror copy function; if the source ONU feeds back to the service board that it supports the mirror copy function, the service board will send a start mirror copy instruction to the source ONU to enable the source ONU to start the mirror copy, and after the startup is successful, it will feed back the start mirror copy OK and OMCI message to the service board to notify the destination ONU to start the upgrade process through the OMCI message, wherein the transmission direction of the OMCI message is ONU.

[0094] After the service board receives the startup image copy OK and OMCI message, the OMCI message will be forwarded to the destination ONU according to the association mapping relationship and through the PON driver module to inform the destination ONU to start the upgrade process; After the destination ONU successfully starts the upgrade process, the startup upgrade OK will be fed back to the service board, so that the service board will feed back the message of the destination ONU startup upgrade OK to the source ONU according to the management mapping relationship; After determining that the destination ONU successfully starts the upgrade process, the source ONU will start the transmission of the target upgrade image version in the form of OMCI message, that is, send the target upgrade image version to the service board, and in this process, the transmission direction of the OMCI message will be set to ONU; The service board continues to forward the OMCI message to the destination ONU according to the association mapping relationship, to realize the transmission of the target upgrade image version, so that the destination ONU starts downloading the target upgrade image version after receiving the OMCI message.

[0095] After source ONU completes the transmission of target upgrade image version, service board will be notified to terminate upgrading, to inform purpose ONU target upgrade image version transmission by service board; And purpose ONU, after terminating the downloading of target upgrade image version, will terminate upgrading OK by service board notification source ONU, so that source ONU sends the OMCI message for characterizing that ONU terminates upgrading to service board, now, the transmission direction of this OMCI message will be set to OMCI protocol stack; Therefore, after service board receives this OMCI message, this OMCI message will be sent to OMCI protocol stack by service board and processed, to inform purpose ONU to carry out the activation process of target upgrade image version by ACTIVE IMAGE message; Purpose ONU will send activation OK (i.e. ACTIVE OK) to OMCI protocol stack after activation success, so that OMCI protocol stack continues to send COMMIT IMAGE message to purpose ONU, to notify purpose ONU that target upgrade image version is set to default loading mirror image; Purpose ONU will send setting OK (i.e. COMMIT IMAGE) to OMCI protocol stack after setting is completed. OK), the mirror copy of the ONU is now completed. At this time, the ONU mirror copy OK message can be sent to the main control board or network management through the service board to inform the mirror copy status of the destination ONU.

[0096] In summary, this embodiment provides a supplementary upgrade solution when the existing network cannot upgrade the ONU through conventional upgrade methods, that is, controlling the ONU upgrade to be completed within the PON service board. This not only does not require excessive involvement of the main control board, but also does not require concern for server construction, version acquisition, etc., but only requires a simple command to complete the mirror version replication between the two ONUs, thereby achieving the purpose of normal ONU version upgrade.

[0097] In a second aspect, an embodiment of the present application further provides a terminal version upgrade control device.

[0098] In one embodiment, the terminal version upgrade control device includes an OLT, the OLT includes a service board, and the service board is used to:

[0099] When receiving the image copy instruction issued by the main control board, an association mapping relationship between the source ONU and the destination ONU is established based on the image copy instruction, and the source ONU stores the target upgrade image version;

[0100] Control source ONU to start mirror copy process, so that source ONU generates OMCI message, and described OMCI message includes the first field for identifying OMCI message transmission direction;

[0101] When the OMCI message is received and the transmission direction of the OMCI message is determined to be ONU based on the first field, the OMCI message is forwarded to the destination ONU based on the association mapping relationship, so that the destination ONU can realize the upgrade interaction of the target upgrade mirror version with the source ONU based on the OMCI message.

[0102] Furthermore, in one embodiment, the service board is specifically used for:

[0103] Obtain the source ONU information and destination ONU information carried by the mirror copy instruction, wherein the source ONU information includes the source ONU model, the source ONU hardware version number, the slot number of the source ONU, the PON port number of the source ONU, and the source ONU authorization number; the destination ONU information includes the destination ONU model, the destination ONU hardware version number, the slot number of the destination ONU, the PON port number of the destination ONU, and the destination ONU authorization number;

[0104] If it is detected that the source ONU model is the same as the destination ONU model and the source ONU hardware version number is the same as the destination ONU hardware version number, an association mapping relationship between the source ONU and the destination ONU is established based on the source ONU information and the destination ONU information.

[0105] Furthermore, in one embodiment, the service board is further configured to:

[0106] Issue an OMCI detection message to the source ONU, so that the source ONU obtains a target flag based on the OMCI detection message, and generates a first OMCI reply message based on the target flag, wherein the target flag is used to identify whether the source ONU supports a mirror copy function;

[0107] When the field corresponding to the target flag bit in the first OMCI reply message received is filled with the first preset value, the step of controlling the source ONU to start the mirror copy process is performed, and the first preset value is used to characterize that the source ONU supports the mirror copy function;

[0108] When the field corresponding to the target flag bit in the received first OMCI reply message is filled with a second preset value, the mirror copy process is ended, and the second preset value is used to indicate that the source ONU does not support the mirror copy function.

[0109] Furthermore, in one embodiment, the service board is specifically used to: send a mirror copy start instruction to the source ONU, so that the source ONU starts the mirror copy process based on the mirror copy start instruction and generates an OMCI message, and the first field in the OMCI message is filled with a third preset value, and the third preset value is used to characterize that the OMCI message transmission direction is ONU.

[0110] Further, in one embodiment, the purpose ONU is specifically used to start the upgrade process based on the OMCI message, and sends the second OMCI reply message to the service board after successful startup;

[0111] The service board is used to forward the second OMCI reply message to the source ONU based on the association mapping relationship, so that the source ONU generates a new OMCI message according to the second OMCI reply message and sends it to the service board, the new OMCI message includes the target upgrade image version and the first field, and the first field is filled with the third preset value, and the third preset value is used to characterize that the OMCI message transmission direction is ONU;

[0112] The service board is further configured to forward the new OMCI message to the destination ONU based on the first field and the association mapping relationship, so that the destination ONU can download the target upgrade image version based on the new OMCI message.

[0113] Furthermore, in one embodiment, the service board is further configured to:

[0114] When receiving the target OMCI message sent by source ONU, the target OMCI message is sent to OMCI protocol stack, so that OMCI protocol stack issues version activation instruction to purpose ONU according to target OMCI message, so that purpose ONU realizes the activation of target upgrade image version based on the version activation instruction, completes mirror copy;

[0115] The first field in the target OMCI message is filled with a fourth preset value, and the fourth preset value is used to indicate that the transmission direction of the target OMCI message is the OMCI protocol stack.

[0116] Furthermore, in one embodiment, the service board is further configured to: notify the main control board of the mirror copy status of the destination ONU, and release the associated mapping relationship.

[0117] Furthermore, in one embodiment, the service board is further configured to: restore the first field in the OMCI message to a standard OMCI frame format, and then forward the message to the destination ONU based on the association mapping relationship.

[0118] Among them, the functional implementation of each part in the above-mentioned terminal version upgrade control device corresponds to each step in the above-mentioned terminal version upgrade control method embodiment, and its functions and implementation processes are no longer detailed here.

[0119] In a third aspect, an embodiment of the present application provides a terminal version upgrade control device, which may be a personal computer (PC), a laptop computer, a server, or other device with data processing capabilities.

[0120] Reference Figure 7 , Figure 7 Schematic diagram of the hardware structure of the terminal version upgrade control device involved in the embodiment of the present application. In the embodiment of the present application, the terminal version upgrade control device may include a processor, a memory, a communication interface and a communication bus.

[0121] The communication bus may be of any type and is used to interconnect the processor, memory, and communication interface.

[0122] Communication interfaces include input / output (I / O) interfaces, physical interfaces, and logical interfaces, used to interconnect components within the terminal version upgrade control device, as well as interfaces used to interconnect the terminal version upgrade control device with other devices (such as other computing devices or user devices). Physical interfaces can include Ethernet interfaces, fiber optic interfaces, ATM (Asynchronous Transfer Mode) interfaces, etc. User devices can include displays, keyboards, etc.

[0123] The memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.

[0124] The processor may be a general-purpose processor that can call a terminal version upgrade control program stored in a memory and execute the terminal version upgrade control method provided in the embodiments of the present application. For example, the general-purpose processor may be a central processing unit (CPU). The method executed when the terminal version upgrade control program is called can refer to the various embodiments of the terminal version upgrade control method of the present application and will not be repeated here.

[0125] Those skilled in the art will understand that Figure 7 The hardware structure shown in the figure does not constitute a limitation to the present application and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.

[0126] In a fourth aspect, an embodiment of the present application also provides a computer-readable storage medium.

[0127] The readable storage medium of the present application stores a terminal version upgrade control program, wherein when the terminal version upgrade control program is executed by the processor, the steps of the terminal version upgrade control method as described above are implemented.

[0128] Among them, the method implemented when the terminal version upgrade control program is executed can refer to the various embodiments of the terminal version upgrade control method of this application, and will not be repeated here.

[0129] It should be noted that the terms "including" and "having" in the specification and claims of this application and the above-mentioned drawings, as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit "first", "second" and "third" to different types.

[0130] In the description of the embodiments of this application, the words "exemplary," "for example," or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary," "for example," or "for example" in the embodiments of this application should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary," "for example," or "for example" is intended to present the relevant concepts in a concrete manner.

[0131] In some processes described in the embodiments of the present application, multiple operations or steps are included that appear in a specific order. However, it should be understood that these operations or steps may not be performed in the order in which they appear in the embodiments of the present application or may be performed in parallel. The sequence numbers of the operations are only used to distinguish between different operations, and the sequence numbers themselves do not represent any order of execution. In addition, these processes may include more or fewer operations, and these operations or steps may be performed in sequence or in parallel, and these operations or steps may be combined.

[0132] The above are only preferred embodiments of the present application and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A terminal version upgrade control method, characterized in that: The terminal version upgrade control method is applied to a service card in an OLT, and the method includes: When receiving the image copy instruction issued by the main control board, an association mapping relationship between the source ONU and the destination ONU is established based on the image copy instruction, and the source ONU stores the target upgrade image version; Control source ONU to start mirror copy process, so that source ONU generates OMCI message, and described OMCI message includes the first field for identifying OMCI message transmission direction; When the OMCI message is received and the transmission direction of the OMCI message is determined to be ONU based on the first field, the OMCI message is forwarded to the destination ONU based on the association mapping relationship, so that the destination ONU can realize the upgrade interaction of the target upgrade mirror version with the source ONU based on the OMCI message.

2. The terminal version upgrade control method according to claim 1, characterized in that: The establishing of an association mapping relationship between the source ONU and the destination ONU based on the mirror copy instruction includes: Obtain the source ONU information and destination ONU information carried by the mirror copy instruction, wherein the source ONU information includes the source ONU model, the source ONU hardware version number, the slot number of the source ONU, the PON port number of the source ONU, and the source ONU authorization number; the destination ONU information includes the destination ONU model, the destination ONU hardware version number, the slot number of the destination ONU, the PON port number of the destination ONU, and the destination ONU authorization number; If it is detected that the source ONU model is the same as the destination ONU model and the source ONU hardware version number is the same as the destination ONU hardware version number, an association mapping relationship between the source ONU and the destination ONU is established based on the source ONU information and the destination ONU information.

3. The terminal version upgrade control method according to claim 1, characterized in that: Before the step of starting the mirror copy process of the control source ONU, the method further includes: Issue an OMCI detection message to the source ONU, so that the source ONU obtains a target flag based on the OMCI detection message, and generates a first OMCI reply message based on the target flag, wherein the target flag is used to identify whether the source ONU supports a mirror copy function; When the field corresponding to the target flag bit in the first OMCI reply message received is filled with the first preset value, the step of controlling the source ONU to start the mirror copy process is performed, and the first preset value is used to characterize that the source ONU supports the mirror copy function; When the field corresponding to the target flag bit in the received first OMCI reply message is filled with a second preset value, the mirror copy process is ended, and the second preset value is used to indicate that the source ONU does not support the mirror copy function.

4. The terminal version upgrade control method according to claim 1, wherein: The control source ONU starts the mirror copy process so that the source ONU generates the OMCI message, including: Issue a mirror copy startup instruction to the source ONU, so that the source ONU starts the mirror copy process based on the mirror copy startup instruction and generates an OMCI message, wherein the first field in the OMCI message is filled with a third preset value, and the third preset value is used to characterize that the OMCI message transmission direction is ONU.

5. The terminal version upgrade control method according to claim 1, wherein: The purpose ONU realizes the upgrade interaction of the target upgrade mirror version with the source ONU based on the OMCI message, including: The destination ONU starts the upgrade process based on the OMCI message and sends a second OMCI reply message to the service board after successful startup; The service board forwards the second OMCI reply message to the source ONU based on the association mapping relationship, so that the source ONU generates a new OMCI message according to the second OMCI reply message and sends it to the service board, the new OMCI message includes the target upgrade image version and the first field, and the first field is filled with the third preset value, and the third preset value is used to characterize that the OMCI message transmission direction is ONU; The service board forwards the new OMCI message to the destination ONU based on the first field and the association mapping relationship, so that the destination ONU can download the target upgrade image version based on the new OMCI message.

6. The terminal version upgrade control method according to claim 5, characterized in that: After the purpose ONU realizes the step of downloading the target upgrade image version based on the new OMCI message, it also includes: When service board receives the target OMCI message that source ONU sends, described target OMCI message is sent to OMCI protocol stack, so that OMCI protocol stack issues version activation instruction according to target OMCI message to purpose ONU, so that purpose ONU realizes the activation of target upgrade image version based on described version activation instruction, completes mirror copy; The first field in the target OMCI message is filled with a fourth preset value, and the fourth preset value is used to indicate that the transmission direction of the target OMCI message is the OMCI protocol stack.

7. The terminal version upgrade control method according to claim 6, characterized in that: After completing the mirror copying step, the method further includes: Notify the main control board of the mirror copy status of the destination ONU and release the associated mapping relationship.

8. The terminal version upgrade control method according to claim 1, wherein: The method of forwarding the OMCI message to the destination ONU based on the association mapping relationship includes: After the first field in the OMCI message is restored to the standard OMCI frame format, it is forwarded to the destination ONU based on the association mapping relationship.

9. A terminal version upgrade control device, characterized in that: The terminal version upgrade control device includes an OLT, and the OLT includes a service board, and the service board is used to: When receiving the image copy instruction issued by the main control board, an association mapping relationship between the source ONU and the destination ONU is established based on the image copy instruction, and the source ONU stores the target upgrade image version; Control source ONU to start mirror copy process, so that source ONU generates OMCI message, and described OMCI message includes the first field for identifying OMCI message transmission direction; When the OMCI message is received and the transmission direction of the OMCI message is determined to be ONU based on the first field, the OMCI message is forwarded to the destination ONU based on the association mapping relationship, so that the destination ONU can realize the upgrade interaction of the target upgrade mirror version with the source ONU based on the OMCI message.

10. A terminal version upgrade control device, characterized in that: The terminal version upgrade control device includes a processor, a memory, and a terminal version upgrade control program stored in the memory and executable by the processor, wherein when the terminal version upgrade control program is executed by the processor, the steps of the terminal version upgrade control method according to any one of claims 1 to 8 are implemented.

11. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a terminal version upgrade control program, wherein when the terminal version upgrade control program is executed by the processor, the steps of the terminal version upgrade control method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Device and method for fragmented upgrade of ONU software version

    CN105183519A

  • PON terminal upgrading method and system based on OLT scheduling and OLT equipment

    CN111836138A