CN113207050B - Optical network unit replacement method and device, electronic equipment and storage medium - Google Patents

Optical network unit replacement method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113207050B
CN113207050B CN202110759784.6A CN202110759784A CN113207050B CN 113207050 B CN113207050 B CN 113207050B CN 202110759784 A CN202110759784 A CN 202110759784A CN 113207050 B CN113207050 B CN 113207050B
Authority
CN
China
Prior art keywords
optical network
network unit
state
communication system
configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110759784.6A
Other languages
Chinese (zh)
Other versions
CN113207050A (en
Inventor
梅景平
胡兆祥
郑直
王培佩
许巍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Yangtze Optical Technology Co ltd
Original Assignee
Wuhan Yangtze Optical Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Yangtze Optical Technology Co ltd filed Critical Wuhan Yangtze Optical Technology Co ltd
Priority to CN202110759784.6A priority Critical patent/CN113207050B/en
Publication of CN113207050A publication Critical patent/CN113207050A/en
Application granted granted Critical
Publication of CN113207050B publication Critical patent/CN113207050B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q11/0067Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects

Abstract

The invention discloses a method and a device for replacing an optical network unit, electronic equipment and a storage medium. The method is applied to a first optical network unit, and the first optical network unit is connected with a second optical network unit; the second optical network unit serves an optical network communication system including at least one optical network unit, including: under the condition that the first optical network unit is in a first state and the second optical network unit is in a second state, receiving self-configuration information sent by the second optical network unit; the self-configuration information comprises the configuration required by the second optical network unit to serve the optical network communication system; and continuing to serve the optical network communication system based on the self-configuration information instead of the second optical network unit.

Description

Optical network unit replacement method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of optical network communications technologies, and in particular, to a method and an apparatus for replacing an optical network unit, an electronic device, and a storage medium.
Background
Currently, in the field of Optical Network communication, a Point-to-Point (P2P) management mode is usually adopted for management of an Optical Network Unit (ONU), which results in that when a certain ONU in an Optical Network communication system is replaced, no matter what replacement method is adopted, an operation and maintenance person is required to replace the ONU in the Optical Network communication system at an Optical Line Terminal (OLT), which is cumbersome to operate, and even causes service interruption. For a Fiber to The Room (FTTR, Fiber to The Room) scenario, since a plurality of ONUs enter a user home or other application scenarios, if a plurality of ONUs are to be replaced at The same time, The operation time is long, The service interruption time is long, and The use experience of The user is affected.
Disclosure of Invention
In view of this, the main object of the present invention is to provide a method, an apparatus, an electronic device and a storage medium for replacing an optical network unit, where the method does not require an OLT in an optical network communication system to sense and replace an ONU, simplifies the replacement operation, does not affect the normal operation of other ONUs in the optical network communication system, does not cause service interruption, and greatly improves the user experience.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
in a first aspect, the present invention provides a method for replacing an optical network unit, which is applied to a first optical network unit, where the first optical network unit is connected to a second optical network unit; the second optical network unit serves an optical network communication system including at least one optical network unit, the method comprising:
under the condition that the first optical network unit is in a first state and the second optical network unit is in a second state, receiving self-configuration information sent by the second optical network unit; the self-configuration information comprises the configuration required by the second optical network unit to serve the optical network communication system;
and continuing to serve the optical network communication system based on the self-configuration information instead of the second optical network unit.
In the above aspect, the method further includes:
obtaining a first user instruction, and performing a first matching mode based on the first user instruction; under the first matching mode, obtaining a first configuration parameter of the mobile terminal; determining that the first optical network unit is in the first state based on the first configuration parameter; the first state is an inactive state; the inactive state is used for indicating that the first optical network unit is not currently serving the optical network communication system; the first user instruction is obtained under the condition that a first switch arranged on the first optical network unit is touched to meet a first set time sequence;
correspondingly, when the second optical network unit is in the second state, the second optical network unit enters a second matching mode based on a second user instruction, where the second matching mode is used for enabling the second optical network unit to obtain a second configuration parameter of the second optical network unit and determining that the second optical network unit is in the second state based on the second configuration parameter; the second state is an activated state; the activation state is used for indicating that the second optical network unit currently serves the optical network communication system; the second user instruction is obtained when a second switch arranged on the second optical network unit is touched to meet a second set time sequence.
In the above aspect, the method further includes:
sending a first message containing the first state to the second optical network unit; the first message is used for informing the second optical network unit that the first optical network unit is in the first state;
and receiving a second message which is sent by the second optical network unit and contains a second state, wherein the second message is used for informing the first optical network unit that the second optical network unit is in the second state.
In the above method, the method further comprises:
controlling the state of an indicator light on the first optical network unit; the status of the indicator light is used for indicating the operation condition of the first optical network unit.
In the foregoing solution, the replacing the second optical network unit with the self-configuration information to continue to serve the optical network communication system includes:
performing local configuration based on local sub-configuration information in the self-configuration information; performing virtual configuration based on the virtual sub-configuration information in the self-configuration information;
sending a configuration result to the second optical network unit; the configuration result is used for indicating that the first optical network unit replaces the second optical network unit to continue to serve the optical network communication system;
receiving confirmation information fed back by the second optical network unit; the confirmation information is used for informing that the replacement operation of the first optical network unit is completed.
In the above scheme, the virtual sub-configuration information includes identification information, a user name, a password, and at least one of the following information of a virtual domain in which the second optical network unit is located: the coding of the second optical network unit in the virtual domain, the role of the second optical network unit in the virtual domain, the service type of the second optical network unit in the virtual domain, the Dynamic Bandwidth Allocation (DBA) mode of the virtual domain, the networking mode among the members in the virtual domain, and the service quality mode of the virtual domain.
In the foregoing solution, the performing virtual configuration based on the virtual sub-configuration information in the self-configuration information includes:
obtaining an access request encapsulated with the virtual sub-configuration information;
sending the access request to the optical network communication system;
receiving an access result fed back by the optical network communication system; the access result is used for reflecting whether the first optical network unit accesses the virtual domain and whether the configuration in the virtual domain is completed.
In the above aspect, the method further includes: after receiving the acknowledgement information fed back by the second optical network unit, the method further includes:
exiting the first matching mode and entering a normal working state; the normal working state is a working state in which the first optical network unit has served the optical network communication system in place of the second optical network unit.
In a second aspect, the present invention further provides an optical network unit replacing device, which is applied to a first optical network unit, where the first optical network unit is connected to a second optical network unit; the second optical network unit serves an optical network communication system including at least one optical network unit, the apparatus comprising: a receiving unit and a service unit, wherein;
the receiving unit is configured to receive self-configuration information sent by the second optical network unit when the first optical network unit is in a first state and the second optical network unit is in a second state; the self-configuration information comprises the configuration required by the second optical network unit to serve the optical network communication system;
the service unit is configured to continue to serve the optical network communication system based on the self-configuration information instead of the second optical network unit.
In the above scheme, the apparatus further includes an obtaining unit, configured to obtain a first user instruction, and perform a first matching mode based on the first user instruction; under the first matching mode, obtaining a first configuration parameter of the mobile terminal; determining that the first optical network unit is in the first state based on the first configuration parameter; the first state is an inactive state; the inactive state is used for indicating that the first optical network unit is not currently serving the optical network communication system; the first user instruction is obtained when a first switch arranged on the first optical network unit is touched to meet a first set time sequence.
In the above solution, the apparatus further includes a control unit, configured to control a status of an indicator light on the first optical network unit; the status of the indicator light is used for indicating the operation condition of the first optical network unit.
In the above solution, the apparatus further includes a sending unit, configured to send a first packet including the first status to the second optical network unit; the first message is used for informing the second optical network unit that the first optical network unit is in the first state;
the receiving unit is further configured to receive a second message that includes a second status and is sent by the second optical network unit, where the second message is used to notify the first optical network unit that the second optical network unit is in the second status.
In the foregoing solution, the service unit is specifically configured to: performing local configuration based on local sub-configuration information in the self-configuration information; performing virtual configuration based on the virtual sub-configuration information in the self-configuration information; sending a configuration result to the second optical network unit; the configuration result is used for indicating that the first optical network unit replaces the second optical network unit to continue to serve the optical network communication system; receiving confirmation information fed back by the second optical network unit; the confirmation information is used for informing that the replacement operation of the first optical network unit is completed.
In the above solution, the service unit is further configured to obtain an access request encapsulated with the virtual sub-configuration information; sending the access request to the optical network communication system; receiving an access result fed back by the optical network communication system; the access result is used for reflecting whether the first optical network unit accesses the virtual domain and whether the configuration in the virtual domain is completed.
In the above scheme, the apparatus further comprises an exit unit, configured to exit the first matching mode and enter a normal operating state; the normal working state is a working state in which the first optical network unit has served the optical network communication system in place of the second optical network unit.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored; the computer program, when executed by a processor, implements the steps of any of the methods described above.
In a fourth aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes: a processor and a memory for storing a computer program operable on the processor, wherein the processor is operable to perform the steps of any of the above methods when executing the computer program.
The embodiment of the invention provides a method and a device for replacing an optical network unit, electronic equipment and a storage medium. The method is applied to a first optical network unit, and the first optical network unit is connected with a second optical network unit; the second optical network unit serves an optical network communication system including at least one optical network unit, including: under the condition that the first optical network unit is in a first state and the second optical network unit is in a second state, receiving self-configuration information sent by the second optical network unit; the self-configuration information comprises the configuration required by the second optical network unit to serve the optical network communication system; and continuing to serve the optical network communication system based on the self-configuration information instead of the second optical network unit. The method does not need an OLT in an optical network communication system to sense the ONU, only needs the replaced ONU and the replaced ONU to be in a first state and a second state respectively, then the replaced ONU sends the information which bears the role in the optical network communication system to the replaced ONU, and the replaced ONU is networked in the optical network communication system according to the information to replace the replaced ONU to bear the same role in the optical network communication system, thereby simplifying the replacement operation, not influencing the normal work of other ONUs in the optical network communication system, not causing service interruption, and greatly improving the user experience.
Drawings
Fig. 1 is a schematic flowchart of a method for replacing an optical network unit according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an optical network unit replacement device according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the following describes specific technical solutions of the present invention in further detail with reference to the accompanying drawings in the embodiments of the present invention. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a schematic flowchart of a method for replacing an optical network unit according to an embodiment of the present invention. As shown in fig. 1, the method is applied to a first optical network unit, which is connected to a second optical network unit; the second optical network unit serves an optical network communication system including at least one optical network unit, and the specific process includes:
s101: under the condition that the first optical network unit is in a first state and the second optical network unit is in a second state, receiving self-configuration information sent by the second optical network unit; the self-configuration information includes a configuration required by the second optical network unit to serve the optical network communication system.
It should be noted that, in the method, the first optical network unit is a replacement ONU, and is configured to replace the second optical network unit from the optical network communication system, and continue to replace the second optical network unit to assume the same role in the optical network communication system, for example, an FTTR system in which a plurality of ONUs enter a user's home or other use environment in the optical network communication system, and under the condition that the FTTR system adopts the tree network structure, if the second optical network unit assumes the role of the backbone in the optical network communication system, after the replacement method provided by the embodiment of the present invention, the first optical network unit still assumes a backbone role in the optical network communication system, that is, the first optical network unit replaces the second optical network unit to continue to provide the same service as the second optical network unit in the optical network communication system. It should be understood that the second optical network unit may be an on-line ONU; the ONU may only remain the power-on state and store the configuration information of the ONU, but cannot be on-line, that is, before being replaced, the second ONU may still assume a backbone role in the optical network communication system and be in the power-on working state; and the wire can not be pulled out and can not work normally. The former case may exist in replacement of an ONU at the time of update; in the latter case, the ONU cannot be wired and cannot operate normally, and therefore needs to be replaced.
In an actual application process, before the first optical Network unit and the second optical Network unit are replaced, the first optical Network unit and the second optical Network unit need to be connected, in an optional implementation manner, the first optical Network unit and the second optical Network unit are connected through an RJ45 Network cable, and User Network Interfaces (UNI) of the first optical Network unit and the second optical Network unit are connected through an RJ45 Network cable.
After the first optical network unit and the second optical network unit are connected, in some embodiments, the method further comprises:
obtaining a first user instruction, and performing a first matching mode based on the first user instruction; under the first matching mode, obtaining a first configuration parameter of the mobile terminal; determining that the first optical network unit is in the first state based on the first configuration parameter; the first state is an inactive state; the inactive state is used for indicating that the first optical network unit is not currently serving the optical network communication system; the first user instruction is obtained under the condition that a first switch arranged on the first optical network unit is touched to meet a first set time sequence;
correspondingly, when the second optical network unit is in the second state, the second optical network unit enters a second matching mode based on a second user instruction, and the second matching mode is used for enabling the second optical network unit to obtain a second configuration parameter of the second optical network unit; the second configuration parameter is used for indicating that the second optical network unit is in the second state; the second state is an activated state; the activation state is used for indicating that the second optical network unit currently serves the optical network communication system; the second user instruction is obtained when a second switch arranged on the second optical network unit is touched to meet a second set time sequence.
Here, the process of making the first optical network unit in the first state may be: the method includes the steps that a first switch in a first optical Network unit is enabled to enter a first matching mode according to the fact that the first switch meets a first set time sequence, then, a first configuration parameter of the first optical Network unit is obtained in the first matching mode, wherein the first configuration parameter can be a service model, Virtual Local Area Network (VLAN) configuration and the like, and after the first configuration parameter is obtained, the first optical Network unit is determined to be in a first state based on the first configuration parameter. It should be understood that, since the first optical network unit is a replacement ONU, it is a new device, and the configuration may also be a factory original configuration, that is, the first configuration parameter of the first optical network unit may be a factory original configuration parameter, and the first optical network unit recognizes that it is a factory original configuration, and determines that its state is the first state. Here, the first matching mode is set to distinguish from a normal operation mode of the ONU, which is already serving the optical network communication system.
It should be noted that the first switch disposed on the first optical network unit may be a switch specially configured for the first optical network unit to enter the first matching mode, and the form of the switch may be various, for example, a touch button, a key button, and the like. As an optional implementation manner, the first switch may be an original RESET key (RESET) in the first optical network unit, and the function of causing the first optical network unit to enter the first matching mode is implemented by setting a touch timing sequence for touching the RESET key to meet a first set timing sequence. The first setting timing may be manually set without conflict with the original function implemented by the reset key, for example, the first setting timing may be 2 short presses +1 long press, for example, 1 second(s) +1s +3 s. That is to say, when the timing when the user or the telecom technician presses the RESET key is the first set timing, a Central Processing Unit (CPU) of the first optical network Unit generates a first user instruction when detecting that the RESET key is pressed and the pressing timing meets the first set timing, and the first optical network Unit enters a first matching mode based on the first user instruction after generating the first user instruction. After the first optical network unit enters a first matching mode, the first optical network unit perceives a first configuration parameter of the first optical network unit, and determines that the state of the first optical network unit is a first state based on the first configuration parameter.
Similarly, the process of the second optical network unit in the second state is similar to the process of the first optical network unit in the first state, and is not described herein again. It should be noted that, the aforementioned first matching mode, first configuration parameter, first state and "first" in the first switch and the "second" in the second matching mode, second configuration parameter, second state and "second" in the second switch are only for convenience of describing different components, parameters and states of different devices, and are not intended to limit the present invention. It should be understood that, since the second optical network unit already serves the optical network communication system, the service model and the VLAN configuration in the second optical network unit are not factory original configurations, and the second optical network unit may determine that the second optical network unit is in the second state by sensing a second configuration parameter of the second optical network unit and comparing the second configuration parameter with the factory original configuration information, where the second configuration parameter and the factory original configuration information are not consistent.
Specifically, after the first optical network unit is in the first state and the second optical network unit is in the second state, the first optical network unit and the second optical network unit perform message interaction through a Virtual Remote Control Protocol (VRCP) to notify themselves of the states, in some embodiments, the method further includes:
sending a first message containing the first state to the second optical network unit; the first message is used for informing the second optical network unit that the first optical network unit is in the first state;
and receiving a second message which is sent by the second optical network unit and contains a second state, wherein the second message is used for informing the first optical network unit that the second optical network unit is in the second state.
It should be noted that the VRCP is a protocol specially set for implementing the replacement method provided in the embodiment of the present invention, and is mainly responsible for remote interaction and control between the OLT and the virtual domain and between the OLT and the ONU, and specifically may be as follows: 1) controlling and managing: the OLT controls and manages the virtual domain through the VRCP; 2) and the ONU performs information interaction with the OLT through the VRCP, such as information interaction in authentication and alarm processes. The message format of the information in the transmission process based on the VRCP may include: a destination Media Access Control (MAC), a source MAC, a message Type (Type), a Payload (Payload), and a check, where the destination MAC may carry identification information of a virtual domain. The message Type is a custom Type, the custom Type indicates that VRCP is adopted for transmission, the Payload can be a carrying segment with specific attributes, and the carrying segment follows a Type-Length-Value (TLV) structure and comprises attribute items, index items, Length and Payload, wherein different attribute items represent different contents, specifically, the attribute items can be 4 bytes, the different attribute items can be 0x0001-0x0fff respectively, the virtual domain global configuration attributes are effective for all ONU members managed in the virtual domain; 0x1000-0x1fff, aiming at the configuration of the main nodes under the condition that the virtual domain adopts a tree network; 0x2000-0x2fff, aiming at the configuration of the branch nodes under the condition that the virtual domain adopts the tree network; 0x3000-0x3fff, aiming at the configuration of terminal nodes under the condition that a virtual domain adopts a tree network; 0xe000-0xefff, configuring a virtual domain alarm and notification message, and sending the message to the OLT by the virtual domain. The terminal node referred to herein is also the aforementioned terminal node. The index item can be set to 4 bytes; the length can be set to 2 bytes; payload may be set to 40-1500 bytes.
The specific process described here is: the first optical network unit encapsulates a first state into a first message through a VRCP protocol, and sends the first message to the second optical network unit, and the second optical network unit receives the first message and analyzes the first message to know that the first optical network unit is in the first state. Similarly, the first optical network unit needs to receive a second message including the second state sent by the second optical network unit, so as to sense that the second optical network unit is in the second state.
S102: and based on the self-configuration information, the second optical network unit is replaced to be networked in the optical network communication system.
It is described herein that, when the first optical network unit receives the self-configuration information sent by the second optical network unit, the first optical network unit replaces the second optical network unit to group a network in the optical network communication system based on the self-configuration information, so as to continue to provide the same service as that of the second optical network unit in the optical network communication system.
Specifically, for S102, it may include:
performing local configuration based on local sub-configuration information in the self-configuration information; performing virtual configuration based on the virtual sub-configuration information in the self-configuration information;
sending a configuration result to the second optical network unit; the configuration result is used for indicating that the first optical network unit replaces the second optical network unit to continue to serve the optical network communication system;
receiving confirmation information fed back by the second optical network unit; the confirmation information is used for informing that the replacement operation of the first optical network unit is completed.
It is described here that, after the first optical network unit receives the self-configuration information sent by the second optical network unit, the local configuration is performed based on the local sub-configuration information in the self-configuration information, and the local configuration is completed, that is, the local configuration is completed, that is: setting parameters in the first optical network unit; and performing virtual configuration based on the virtual sub-configuration information in the self-configuration information, namely accessing and managing the virtual domain of the second optical network unit, completing the configuration in the virtual domain, and receiving the management of the virtual domain. After the configuration is completed, sending a configuration result to the second optical network unit to inform the second optical network unit that the first optical network unit replaces the second optical network unit to continue serving the optical network communication system, and after the configuration result is sent by the first optical network unit, the second optical network unit sends a confirmation message to the first optical network unit after receiving the configuration result to inform the first optical network unit that the replacement operation is completed.
Here, the local sub-configuration information may include some attributes configured in the first optical network unit itself, such as a service type, a VLAN configuration, and the like. The virtual sub-configuration information may include identification information of the virtual domain, a user name, a password, and at least one of: the coding of the second optical network unit in the virtual domain, the role of the second optical network unit in the virtual domain, the service type of the second optical network unit in the virtual domain, a Dynamic Bandwidth Allocation (DBA) mode of the virtual domain, a networking mode among members in the virtual domain, and a service quality mode of the virtual domain.
It should be noted that, when the second optical network unit is managed by a virtual domain, the self-configuration information may further include virtual sub-configuration information accessed to the virtual domain, so that the first optical network unit accesses the virtual domain and is managed by the virtual domain, where the virtual domain may be configured for an OLT in the optical network communication system, or may be created for the OLT in the optical network communication system, and may be used to manage at least one ONU in the optical network communication system. The identification information may be an identification number (ID), for example, a virtual domain ID. In an actual application process, at the beginning of creating the virtual domain, the OLT configures identification information, a user name and a password, a member role, a Service type, a DBA mode, a networking mode between members in the domain, a Quality of Service (QoS) mode, and the like of the virtual domain. The second optical network unit has accessed the virtual domain, and has automatically completed the related configuration in the virtual domain based on the role information of the local configuration of the second optical network unit, so the virtual sub-configuration information is the information after the second optical network unit completes the related configuration. The networking mode may be a MESH networking mode between the members in the virtual domain.
In some embodiments, the performing virtual configuration based on the virtual sub-configuration information in the self-configuration information may include:
obtaining an access request encapsulated with the virtual sub-configuration information;
sending the access request to the optical network communication system;
receiving an access result fed back by the optical network communication system; the access result is used for reflecting whether the first optical network unit accesses the virtual domain and whether the configuration in the virtual domain is completed.
It should be noted that, after obtaining the self-configuration information including the virtual sub-configuration information, the first optical network unit accesses to the virtual domain according to the virtual sub-configuration information, and completes the corresponding configuration, so as to achieve the purpose of replacing the second optical network unit. Specifically, the first optical network unit may send the access request to an OLT in the optical network communication system according to the VRCP, after receiving the access request, the OLT analyzes the access request to obtain identification information of the virtual domain and a user name and a password for accessing the virtual domain, then the OLT searches a table, which is stored by the OLT and has a mapping relationship between the created virtual domain and the identification information, with the identification information as an index to find the virtual domain, performs authentication processing based on the user name and the password, and searches for the user name and the password in a table having a correspondence between the user name and the password for creating the virtual domain, so that the authentication is successful, and at this time, an access result may be returned as OK, that is, the first optical network unit is allowed to access the virtual domain; and if the user name and the password cannot be searched in the corresponding relation table in which the user name and the password of the created virtual domain are stored, the authentication fails, and at the moment, the returned access result can be NO, namely the first optical network unit is not allowed to access the virtual domain. And when the first optical network unit is accessed to the virtual domain, the first optical network unit completes the configuration of the first optical network unit in the virtual domain to replace the second optical network unit to continue working based on the code of the second optical network unit in the virtual domain, the role of the second optical network unit in the virtual domain, the service type of the second optical network unit in the virtual domain, the Dynamic Bandwidth Allocation (DBA) mode of the virtual domain, the networking mode among members in the virtual domain, the service quality mode of the virtual domain and the like in the virtual sub-configuration information. The access result may further include information on whether configuration is completed, so as to inform the first optical network unit whether virtual configuration is completed.
It should be noted that, after the first optical network unit replaces the second optical network unit to operate in the optical network communication system, the second optical network unit may not access the virtual domain in a power-off or fiber-off manner. In some embodiments, if the second optical network unit can operate normally before being replaced, the second optical network unit further sends an exit notification message to the OLT and other members managed in the virtual domain through the VRCP, so as to notify the OLT and other members managed in the virtual domain that the OLT and other members are about to exit. By adopting the ONU replacement mode provided by the embodiment of the invention, all configurations for replacing the ONU are from the replaced ONU, the OLT in the optical network communication system is not required to sense and replace the ONU, the complicated operations such as the registration and authorization process on the OLT are avoided, the replacement is quick, and the normal work of other online ONUs in the virtual domain is not influenced, so that the probability of causing service interruption is reduced, the replacement process is simplified, and the user experience is greatly improved.
In some embodiments, after receiving the acknowledgement information fed back by the second optical network unit, the method further comprises:
exiting the first matching mode and entering a normal working state; the normal working state is a working state in which the first optical network unit has served the optical network communication system in place of the second optical network unit.
It should be noted that, after the first optical network unit completes the virtual configuration, it needs to exit from the first matching mode, and enter into a normal state to replace the second optical network unit to continue serving the optical network communication system.
In some embodiments, the method further comprises:
controlling the state of an indicator light on the first optical network unit; the status of the indicator light is used for indicating the operation condition of the first optical network unit.
It should be noted that, because the replacing method is automatically executed in the first Optical Network unit, and whether the replacing method is completed is macroscopically unclear by an operation and maintenance person or a user, the state of the indicator light on the first Optical Network unit may be controlled, where the state of the indicator light is used to indicate an operating condition of the first Optical Network unit, for example, a LOSs of Signal (LOS) indicator light and a Passive Optical Network (PON) indicator light on the first Optical Network unit alternately flash every 1 second, which indicates that the operating condition of the first Optical Network unit is in the first matching mode and is being replaced; for another example, a Local Area Network (LAN) indicator light flashes every 5 seconds, which indicates that the operation condition of the first optical Network unit is that the replacement is completed, the first optical Network unit has access to the virtual domain, and is networked in the optical Network communication system. It should be understood that the status of the indicator light may be set according to actual needs. Therefore, the embodiment of the invention controls the indicator light on the first optical network unit to indicate, can visually display the replacement result, is convenient for operation and maintenance personnel or users to know whether the first optical network unit is successfully replaced, and improves the working efficiency of the operation and maintenance personnel.
The embodiment of the invention provides an optical network unit replacing method, which does not need an OLT in an optical network communication system to sense an ONU, only needs to send information which plays roles in the optical network communication system to a replaced ONU after the replaced ONU and the replaced ONU are respectively in a first state and a second state, and the replaced ONU is networked in the optical network communication system according to the information to replace the replaced ONU to play corresponding roles in the optical network communication system, thereby simplifying the replacement operation, not influencing the work of other ONUs in the optical network communication system, not causing service interruption, and greatly improving the user experience.
Based on the same inventive concept as above, fig. 2 is a schematic structural diagram of an optical network unit replacement device according to an embodiment of the present invention. The invention also provides an optical network unit replacing device, which is applied to a first optical network unit, wherein the first optical network unit is connected with a second optical network unit; the second optical network unit serves an optical network communication system including at least one optical network unit, the apparatus comprising: a receiving unit 201 and a serving unit 202, wherein;
the receiving unit 201 is configured to receive self-configuration information sent by the second optical network unit when the first optical network unit is in a first state and the second optical network unit is in a second state; the self-configuration information comprises the configuration required by the second optical network unit to serve the optical network communication system;
the service unit 202 is configured to continue to serve the optical network communication system based on the self-configuration information instead of the second optical network unit.
In some embodiments, the apparatus further comprises an obtaining unit configured to obtain a first user instruction, perform a first matching pattern based on the first user instruction; under the first matching mode, obtaining a first configuration parameter of the mobile terminal; determining that the first optical network unit is in the first state based on the first configuration parameter; the first state is an inactive state; the inactive state is used for indicating that the first optical network unit is not currently serving the optical network communication system; the first user instruction is obtained when a first switch arranged on the first optical network unit is touched to meet a first set time sequence.
In some embodiments, the apparatus further comprises a control unit for controlling the status of an indicator light on the first optical network unit; the status of the indicator light is used for indicating the operation condition of the first optical network unit.
In some embodiments, the apparatus further includes a sending unit, configured to send a first packet including the first status to the second optical network unit; the first message is used for informing the second optical network unit that the first optical network unit is in the first state;
the receiving unit is further configured to receive a second message that includes a second status and is sent by the second optical network unit, where the second message is used to notify the first optical network unit that the second optical network unit is in the second status.
In some embodiments, the service unit 202 is specifically configured to: performing local configuration based on local sub-configuration information in the self-configuration information; performing virtual configuration based on the virtual sub-configuration information in the self-configuration information; sending a configuration result to the second optical network unit; the configuration result is used for indicating that the first optical network unit replaces the second optical network unit to continue to serve the optical network communication system; receiving confirmation information fed back by the second optical network unit; the confirmation information is used for informing that the replacement operation of the first optical network unit is completed.
In some embodiments, the service unit 202 is further configured to obtain an access request encapsulated with the virtual sub-configuration information; sending the access request to the optical network communication system; receiving an access result fed back by the optical network communication system; the access result is used for reflecting whether the first optical network unit accesses the virtual domain and whether the configuration in the virtual domain is completed.
In some embodiments, the apparatus further comprises an exit unit, configured to exit the first matching mode and enter a normal operating state; the normal working state is a working state in which the first optical network unit has served the optical network communication system in place of the second optical network unit.
It should be noted that the replacement apparatus for an optical network unit according to the embodiment of the present invention and the replacement method according to the embodiment of the present invention belong to the same inventive concept, and the meanings of the terms appearing herein have been described in detail in the foregoing, and are not described herein again.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the foregoing method embodiments, and the foregoing storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
An embodiment of the present invention further provides an electronic device, where the electronic device includes: a processor and a memory for storing a computer program capable of running on the processor, wherein the processor is configured to execute the steps of the above-described method embodiments stored in the memory when running the computer program.
Fig. 3 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention, where the electronic device 30 includes: the at least one processor 301, the memory 302, and optionally the electronic device 30 may further include at least one communication interface 303, and the various components in the electronic device 30 are coupled together by a bus system 304, it being understood that the bus system 304 is used to implement the connection communication between these components. The bus system 304 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 304 in fig. 3.
It will be appreciated that the memory 302 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic Random Access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced Synchronous Dynamic Random Access Memory), Synchronous linked Dynamic Random Access Memory (DRAM, Synchronous Link Dynamic Random Access Memory), Direct Memory (DRmb Random Access Memory). The memory 302 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 302 in embodiments of the present invention is used to store various types of data to support the operation of the electronic device 30. Examples of such data include: any computer program for operating on the electronic device 30, such as an implementation that continues to serve the optical network communication system based on the self-configuration information instead of the second optical network unit, etc., a program implementing the method of an embodiment of the present invention may be contained in the memory 302.
The method disclosed in the above embodiments of the present invention may be applied to the processor 301, or implemented by the processor 301. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium having a memory and a processor reading the information in the memory and combining the hardware to perform the steps of the method.
In an exemplary embodiment, the electronic Device 30 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the above-described methods.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment. In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (10)

1. The method for replacing the optical network unit is characterized by being applied to a first optical network unit which is connected with a second optical network unit; the second optical network unit serves an optical network communication system including at least one optical network unit, the method comprising:
under the condition that the first optical network unit is in a first state and the second optical network unit is in a second state, receiving self-configuration information sent by the second optical network unit; the self-configuration information comprises the configuration required by the second optical network unit to serve the optical network communication system; wherein the first state is an inactive state; the second state is an activated state;
and continuing to serve the optical network communication system based on the self-configuration information instead of the second optical network unit.
2. The method of claim 1, further comprising:
obtaining a first user instruction, and performing a first matching mode based on the first user instruction; under the first matching mode, obtaining a first configuration parameter of the mobile terminal; determining that the first optical network unit is in the first state based on the first configuration parameter; the inactive state is used for indicating that the first optical network unit is not currently serving the optical network communication system; the first user instruction is obtained under the condition that a first switch arranged on the first optical network unit is touched to meet a first set time sequence;
correspondingly, when the second optical network unit is in the second state, the second optical network unit enters a second matching mode based on a second user instruction, where the second matching mode is used for enabling the second optical network unit to obtain a second configuration parameter of the second optical network unit and determining that the second optical network unit is in the second state based on the second configuration parameter; the activation state is used for indicating that the second optical network unit currently serves the optical network communication system; the second user instruction is obtained when a second switch arranged on the second optical network unit is touched to meet a second set time sequence.
3. The method of claim 2, further comprising:
sending a first message containing the first state to the second optical network unit; the first message is used for informing the second optical network unit that the first optical network unit is in the first state;
and receiving a second message which is sent by the second optical network unit and contains a second state, wherein the second message is used for informing the first optical network unit that the second optical network unit is in the second state.
4. The method according to claim 1, wherein the continuing to serve the optical network communication system based on the self-configuration information instead of the second optical network unit comprises:
performing local configuration based on local sub-configuration information in the self-configuration information; performing virtual configuration based on the virtual sub-configuration information in the self-configuration information;
sending a configuration result to the second optical network unit; the configuration result is used for indicating that the first optical network unit replaces the second optical network unit to continue to serve the optical network communication system;
receiving confirmation information fed back by the second optical network unit; the confirmation information is used for informing that the replacement operation of the first optical network unit is completed.
5. The method according to claim 4, wherein the virtual sub-configuration information includes identification information of a virtual domain where the second optical network unit is located, a user name, a password, and at least one of: the coding of the second optical network unit in the virtual domain, the role of the second optical network unit in the virtual domain, the service type of the second optical network unit in the virtual domain, the Dynamic Bandwidth Allocation (DBA) mode of the virtual domain, the networking mode among the members in the virtual domain, and the service quality mode of the virtual domain.
6. The method according to claim 4, wherein the performing virtual configuration based on the virtual sub-configuration information in the self-configuration information comprises:
obtaining an access request encapsulated with the virtual sub-configuration information;
sending the access request to the optical network communication system;
receiving an access result fed back by the optical network communication system; the access result is used for reflecting whether the first optical network unit accesses the virtual domain for managing the second optical network unit and whether the configuration in the virtual domain is finished.
7. The method according to claim 3, wherein after receiving the acknowledgement information fed back by the second optical network unit, the method further comprises:
exiting the first matching mode and entering a normal working state; the normal working state is a working state in which the first optical network unit has served the optical network communication system in place of the second optical network unit.
8. An optical network unit replacement device is applied to a first optical network unit, and the first optical network unit is connected with a second optical network unit; the second optical network unit serves an optical network communication system including at least one optical network unit, the apparatus comprising: a receiving unit and a service unit, wherein;
the receiving unit is configured to receive self-configuration information sent by the second optical network unit when the first optical network unit is in a first state and the second optical network unit is in a second state; the self-configuration information comprises the configuration required by the second optical network unit to serve the optical network communication system; wherein the first state is an inactive state; the second state is an activated state;
the service unit is configured to continue to serve the optical network communication system based on the self-configuration information instead of the second optical network unit.
9. A computer-readable storage medium, characterized in that the readable storage medium has stored thereon a computer program; the computer program when executed by a processor implements the steps of the method of any one of claims 1 to 7.
10. An electronic device, characterized in that the electronic device comprises: a processor and a memory for storing a computer program operable on the processor, wherein the processor is operable to perform the steps of the method of any of claims 1 to 7 when the computer program is executed.
CN202110759784.6A 2021-07-06 2021-07-06 Optical network unit replacement method and device, electronic equipment and storage medium Active CN113207050B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110759784.6A CN113207050B (en) 2021-07-06 2021-07-06 Optical network unit replacement method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110759784.6A CN113207050B (en) 2021-07-06 2021-07-06 Optical network unit replacement method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113207050A CN113207050A (en) 2021-08-03
CN113207050B true CN113207050B (en) 2021-09-10

Family

ID=77022732

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110759784.6A Active CN113207050B (en) 2021-07-06 2021-07-06 Optical network unit replacement method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113207050B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113422644B (en) * 2021-08-23 2021-11-05 武汉长光科技有限公司 Alarm processing method, device, equipment, system and storage medium
CN113453099B (en) * 2021-09-01 2021-12-24 武汉长光科技有限公司 Multicast configuration method, system, device, electronic equipment and storage medium
CN115334379B (en) * 2022-10-12 2023-03-24 武汉长光科技有限公司 Online optical network unit replacement method and device, electronic equipment and storage medium
CN116528095A (en) * 2023-07-05 2023-08-01 宇洪通信技术(武汉)有限公司 ONU local connection quick copying and replacing method, medium and ONU equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102368692A (en) * 2011-09-23 2012-03-07 烽火通信科技股份有限公司 Passive optical network unit replacing method based on logic serial number
CN102480650A (en) * 2010-11-22 2012-05-30 中兴通讯股份有限公司 Information transmitting method in passive optical network system and passive optical network system
CN103916192A (en) * 2012-12-31 2014-07-09 上海贝尔股份有限公司 Optical network unit, optical line terminal group and optical network architecture
CN104144360A (en) * 2013-05-06 2014-11-12 上海贝尔股份有限公司 Method and device for reconfiguring wave lengths of optical network unit
CN104333462A (en) * 2014-10-27 2015-02-04 深圳市云猫信息技术有限公司 Method, system and mobile terminal for configuring optical network unit
EP2903191A1 (en) * 2014-02-04 2015-08-05 Alcatel Lucent Spatial division multiplexing equipment and associated method
CN106789309A (en) * 2016-12-30 2017-05-31 武汉长光科技有限公司 A kind of business configuration file migration method based on OLT device
CN107017946A (en) * 2017-02-15 2017-08-04 金钱猫科技股份有限公司 The method and system that a kind of ONU equipment is registered automatically

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4028570B2 (en) * 2005-11-11 2007-12-26 株式会社日立コミュニケーションテクノロジー ONU management method and optical transmission line termination device
CN101132234A (en) * 2006-08-24 2008-02-27 上海贝尔阿尔卡特股份有限公司 Device and method for detecting time slot conflict between optical network units in optical network
CN101552932B (en) * 2008-04-01 2013-08-28 华为技术有限公司 Method, devices and system for transmitting and processing optical-fiber network
CN112995806A (en) * 2021-02-07 2021-06-18 博为科技有限公司 Method, device, system and storage medium for upgrading optical network unit

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102480650A (en) * 2010-11-22 2012-05-30 中兴通讯股份有限公司 Information transmitting method in passive optical network system and passive optical network system
CN102368692A (en) * 2011-09-23 2012-03-07 烽火通信科技股份有限公司 Passive optical network unit replacing method based on logic serial number
CN103916192A (en) * 2012-12-31 2014-07-09 上海贝尔股份有限公司 Optical network unit, optical line terminal group and optical network architecture
CN104144360A (en) * 2013-05-06 2014-11-12 上海贝尔股份有限公司 Method and device for reconfiguring wave lengths of optical network unit
EP2903191A1 (en) * 2014-02-04 2015-08-05 Alcatel Lucent Spatial division multiplexing equipment and associated method
CN104333462A (en) * 2014-10-27 2015-02-04 深圳市云猫信息技术有限公司 Method, system and mobile terminal for configuring optical network unit
CN106789309A (en) * 2016-12-30 2017-05-31 武汉长光科技有限公司 A kind of business configuration file migration method based on OLT device
CN107017946A (en) * 2017-02-15 2017-08-04 金钱猫科技股份有限公司 The method and system that a kind of ONU equipment is registered automatically
CN110350974A (en) * 2017-02-15 2019-10-18 金钱猫科技股份有限公司 A method of avoid the ONU equipment of duplicate allocation from registering automatically

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
10Gbit/s EPON的改造研究分析;周展;《电信技术》;20180825(第08期);全文 *

Also Published As

Publication number Publication date
CN113207050A (en) 2021-08-03

Similar Documents

Publication Publication Date Title
CN113207050B (en) Optical network unit replacement method and device, electronic equipment and storage medium
CN113141550B (en) Management method and device of optical network unit, electronic equipment and storage medium
JP4024308B2 (en) Method for monitoring the connection of a transmission system and components for implementing the method
CN1897497B (en) Expand operation managing maintenance-ability discovery in Ethernet non-light source network
CN113014324B (en) Networking method, device, equipment, system and storage medium
KR20050014628A (en) Home network system and its configuration system
CN113132828B (en) Configuration method, device, equipment, system and storage medium
US10142713B2 (en) Dynamic selection of management information bases
CN107911764B (en) Method for accelerating business management of intensive EPON ONU
CN113315717B (en) Service balancing method and device, electronic equipment and storage medium
KR102019701B1 (en) Device profile based gateway platform system and method for integrated control and management of heterogeneous iot network
WO2014044112A1 (en) Device and method for controlling and supervising and alarming power supply of base station
EP3908007A1 (en) Method, system, and related device for administering optical network unit
US11108588B2 (en) Configuration information to an internet of things multiplexer
WO2015095995A1 (en) Method and device for upgrading system
CN113395215B (en) Communication method, system, device, electronic equipment and storage medium
CN110955537B (en) Method and device for containing pipes by physical machine
CN113423029A (en) Management method, system, device, electronic equipment and storage medium
JP2004222312A (en) Communication setting method and communication setting system for power line network
CN112596763A (en) Method, device and equipment for wireless upgrading of intelligent household equipment
KR100542410B1 (en) Element Management System in NGTS and Dynamic Management Component Construction Method thereon
CN113438095A (en) Method, device and equipment for managing configuration data and storage medium
CN108270592B (en) Network resource configuration control method and device
KR100274848B1 (en) Network management method for network management system
CN114390436B (en) Equipment control method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant