Optical line terminal cutover method, device, and electronic equipment
By automatically generating and importing target configuration files, the problem of low cutover efficiency of OLT devices across different equipment manufacturers is solved, and efficient and accurate device switching is achieved.
Patent Information
- Application Number
- CN202211273520.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-18
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2042-10-18
AI Technical Summary
The existing technology lacks tools for cutting over the entire OLT device across different equipment manufacturers, resulting in low efficiency and error-prone manual operations.
By obtaining the global configuration file of the original optical line terminal and the corresponding relationship between the PON port cutover, a target configuration file is generated, and the target configuration file is imported into the destination optical line terminal, and the terminal is restarted to realize automatic cutover.
Improves OLT cutover efficiency, shortens cutover time, and reduces manual operation errors.
Smart Images

Figure CN115802210B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to an optical line terminal cutover method and device, an electronic device, and a computer-readable storage medium. Background Art
[0002] During access network equipment maintenance, equipment upgrades, network optimization, and other reasons often require a cutover of one or more PON (Passive Optical Network) ports of an OLT (Optical Line Termination), or even the entire OLT device, to update the physical link and transfer the device configuration. The cutover tools currently provided by mainstream network management vendors support the cutover of a single PON port across OLT device vendors (e.g., between a single PON port from vendor A and a single PON port from vendor B), but do not support the cutover of multiple PON ports or the entire OLT device. Cutover tools provided by OLT device vendors support the cutover of multiple PON ports or the entire device, but do not support the cutover of devices across different vendors and models.
[0003] In the prior art, there is no tool for cross-vendor whole-device cutover. Cross-vendor whole-ODT device cutover can only be done manually, which is labor-intensive, inefficient, and prone to errors. Summary of the Invention
[0004] The embodiments of the present application provide an optical line terminal cutover method and apparatus, which can solve the problem of low efficiency in manually cutting over the entire OLT equipment across manufacturers, thereby improving the cutover efficiency and shortening the cutover time.
[0005] In a first aspect, an embodiment of the present application discloses a method for cutting over an optical line terminal, comprising:
[0006] Obtain the global configuration file of the original optical line terminal;
[0007] Obtaining a PON port cutover correspondence relationship when the original optical line terminal is cutover to the destination optical line terminal;
[0008] Generate the PON port configuration data of the destination optical line terminal according to the PON port configuration data in the global configuration file and the PON port cutover correspondence;
[0009] splicing the PON port configuration data of the destination optical line terminal with the general configuration data of the destination optical line terminal to obtain a target configuration file;
[0010] Importing the target configuration file into the destination optical line terminal;
[0011] Restarting the destination optical line terminal makes the target configuration file effective for the restarted destination optical line terminal.
[0012] Optionally, before the step of importing the target configuration file into the destination optical line terminal, the method further includes:
[0013] Obtaining the optical network unit working status information of the original optical line terminal before the cutover, wherein the optical network unit working status information includes: port information corresponding to the optical network unit, the optical network unit management status and the number of MAC addresses online that match the optical network unit;
[0014] After the step of restarting the destination optical line terminal, the method further includes:
[0015] Obtaining the working status information of the optical network unit after the cutover of the destination optical line terminal;
[0016] According to the optical network unit working status information before cutover, the optical network unit working status information after cutover, and the PON port cutover correspondence, the optical network unit working status analysis results before and after cutover are obtained.
[0017] Optionally, obtaining the analysis results of the working status of the optical network unit before and after the cutover according to the working status information of the optical network unit before the cutover, the working status information of the optical network unit after the cutover, and the PON port cutover correspondence includes:
[0018] Taking the port information in the working status information of the optical network unit before the cutover as the original port information, and obtaining the destination port information corresponding to the original port information from the working status information of the optical network unit after the cutover according to the PON port cutover correspondence;
[0019] Comparing the optical network unit management status matched by the original port information with the optical network unit management status matched by the destination port information to obtain the optical network unit management status before and after the cutover corresponding to the original port information;
[0020] If the optical network unit management status before and after the cutover indicates that the optical network unit associated with the original port information is online before and after the cutover, compare the number of online MAC addresses matching the original port information with the number of online MAC addresses matching the destination port information to obtain the online MAC address information before and after the cutover corresponding to the original port information;
[0021] According to the management status of the optical network unit before and after the cutover and the online MAC address information before and after the cutover, the analysis result of the working status of the optical network unit before and after the cutover corresponding to the original port information is obtained.
[0022] Optionally, comparing the optical network unit management status that matches the original port information with the optical network unit management status that matches the destination port information to obtain the optical network unit management status before and after the cutover corresponding to the original port information includes:
[0023] When the optical network unit management state matched by the original port information matches the online state, and the optical network unit management state matched by the destination port information matches the offline state, obtaining a first optical network unit management state before and after the cutover, wherein the first optical network unit management state before and after the cutover is used to indicate that the optical network unit associated with the original port information is offline after the cutover;
[0024] When both the optical network unit management state matched by the original port information and the optical network unit management state matched by the destination port information match an online state, obtaining a second optical network unit management state before and after the cutover, wherein the second optical network unit management state before and after the cutover is used to indicate that the optical network unit associated with the original port information is online before and after the cutover;
[0025] When the optical network unit management state matched by the original port information matches the offline state, and the optical network unit management state matched by the destination port information matches the online state, a third optical network unit management state before and after the cutover is obtained, wherein the third optical network unit management state before and after the cutover is used to indicate that the optical network unit associated with the original port information is offline before the cutover.
[0026] Optionally, the step of comparing the number of online MAC addresses matching the original port information with the number of online MAC addresses matching the destination port information to obtain the online MAC address information before and after the cutover corresponding to the original port information includes:
[0027] When the number of online MAC addresses matched by the original port information is zero, obtaining first online MAC address information before and after the cutover, wherein the first online MAC address information before and after the cutover is used to indicate that the optical network unit associated with the original port information has no online MAC address before the cutover;
[0028] When the number of online MAC addresses matched by the original port information is greater than zero, second online MAC address information before and after the cutover is obtained based on a relationship between the number of online MAC addresses matched by the original port information and the number of online MAC addresses matched by the destination port information, wherein the second online MAC address information before and after the cutover is used to indicate that the number of online MAC addresses of the optical network unit associated with the original port information decreases or is normal after the cutover.
[0029] Optionally, the optical network unit working status information is obtained by the following method:
[0030] Run a service confirmation program that matches the current optical line terminal to obtain the optical network unit management status of the optical network unit under each port of the optical line terminal, as well as the number of online MAC addresses matched by the optical network unit, and obtain the optical network unit working status information based on the optical network unit management status and the number of online MAC addresses, as well as the port information corresponding to the optical network unit;
[0031] Among them, the service confirmation program automatically discovers the optical network unit under the port of the optical line terminal by executing the optical network unit query instruction, and obtains the optical network unit management status matching the optical network unit under the optical line terminal; the service confirmation program obtains the MAC address list under the port of the optical line terminal by executing the port MAC address query instruction, and obtains the number of online MAC addresses matching the optical network unit under the optical line terminal based on the obtained MAC address list.
[0032] In a second aspect, an embodiment of the present application discloses an optical line terminal cutover device, comprising:
[0033] The original configuration file acquisition module is used to obtain the global configuration file of the original optical line terminal;
[0034] A PON port cutover correspondence relationship acquisition module is used to obtain a PON port cutover correspondence relationship when the original optical line terminal is cutover to the destination optical line terminal;
[0035] A PON port configuration data generating module, configured to generate the PON port configuration data of the destination optical line terminal according to the PON port configuration data in the global configuration file and the corresponding relationship between the PON port cutover;
[0036] a target configuration file acquisition module, configured to concatenate the PON port configuration data of the destination optical line terminal with the general configuration data of the destination optical line terminal to obtain a target configuration file;
[0037] A target configuration file importing module, configured to import the target configuration file into the destination optical line terminal;
[0038] The target configuration file validation module is used to restart the destination optical line terminal so that the target configuration file takes effect on the restarted destination optical line terminal.
[0039] Optionally, the device further includes:
[0040] a pre-cutover optical network unit working status information acquisition module, configured to obtain the optical network unit working status information of the original optical line terminal before the cutover, wherein the optical network unit working status information includes: port information corresponding to the optical network unit, the optical network unit management status and the number of MAC addresses online that match the optical network unit;
[0041] After restarting the destination optical line terminal, the device further includes:
[0042] A post-cutover optical network unit working status information collection module, configured to collect the working status information of the optical network unit after the cutover of the destination optical line terminal;
[0043] The optical network unit working status analysis result acquisition module before and after cutover is used to obtain the optical network unit working status analysis results before and after cutover based on the optical network unit working status information before cutover, the optical network unit working status information after cutover, and the PON port cutover correspondence.
[0044] Optionally, the module for obtaining the analysis results of the optical network unit working status before and after the cutover is further used to:
[0045] Taking the port information in the working status information of the optical network unit before the cutover as the original port information, and obtaining the destination port information corresponding to the original port information from the working status information of the optical network unit after the cutover according to the PON port cutover correspondence;
[0046] Comparing the optical network unit management status matched by the original port information with the optical network unit management status matched by the destination port information to obtain the optical network unit management status before and after the cutover corresponding to the original port information;
[0047] If the optical network unit management status before and after the cutover indicates that the optical network unit associated with the original port information is online before and after the cutover, compare the number of online MAC addresses matching the original port information with the number of online MAC addresses matching the destination port information to obtain the online MAC address information before and after the cutover corresponding to the original port information;
[0048] According to the management status of the optical network unit before and after the cutover and the online MAC address information before and after the cutover, the analysis result of the working status of the optical network unit before and after the cutover corresponding to the original port information is obtained.
[0049] Optionally, comparing the optical network unit management status that matches the original port information with the optical network unit management status that matches the destination port information to obtain the optical network unit management status before and after the cutover corresponding to the original port information includes:
[0050] When the optical network unit management state matched by the original port information matches the online state, and the optical network unit management state matched by the destination port information matches the offline state, obtaining a first optical network unit management state before and after the cutover, wherein the first optical network unit management state before and after the cutover is used to indicate that the optical network unit associated with the original port information is offline after the cutover;
[0051] When both the optical network unit management state matched by the original port information and the optical network unit management state matched by the destination port information match an online state, obtaining a second optical network unit management state before and after the cutover, wherein the second optical network unit management state before and after the cutover is used to indicate that the optical network unit associated with the original port information is online before and after the cutover;
[0052] When the optical network unit management state matched by the original port information matches the offline state, and the optical network unit management state matched by the destination port information matches the online state, a third optical network unit management state before and after the cutover is obtained, wherein the third optical network unit management state before and after the cutover is used to indicate that the optical network unit associated with the original port information is offline before the cutover.
[0053] Optionally, the step of comparing the number of online MAC addresses matching the original port information with the number of online MAC addresses matching the destination port information to obtain the online MAC address information before and after the cutover corresponding to the original port information includes:
[0054] When the number of online MAC addresses matched by the original port information is zero, obtaining first online MAC address information before and after the cutover, wherein the first online MAC address information before and after the cutover is used to indicate that the optical network unit associated with the original port information has no online MAC address before the cutover;
[0055] When the number of online MAC addresses matched by the original port information is greater than zero, second online MAC address information before and after the cutover is obtained based on a relationship between the number of online MAC addresses matched by the original port information and the number of online MAC addresses matched by the destination port information, wherein the second online MAC address information before and after the cutover is used to indicate that the number of online MAC addresses of the optical network unit associated with the original port information decreases or is normal after the cutover.
[0056] Optionally, the optical network unit working status information is obtained by the following method:
[0057] Run a service confirmation program that matches the current optical line terminal to obtain the optical network unit management status of the optical network unit under each port of the optical line terminal, as well as the number of online MAC addresses matched by the optical network unit, and obtain the optical network unit working status information based on the optical network unit management status and the number of online MAC addresses, as well as the port information corresponding to the optical network unit;
[0058] Among them, the service confirmation program automatically discovers the optical network unit under the port of the optical line terminal by executing the optical network unit query instruction, and obtains the optical network unit management status matching the optical network unit under the optical line terminal; the service confirmation program obtains the MAC address list under the port of the optical line terminal by executing the port MAC address query instruction, and obtains the number of online MAC addresses matching the optical network unit under the optical line terminal based on the obtained MAC address list.
[0059] In a third aspect, an embodiment of the present application further discloses an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the optical line terminal cutover method described in the embodiment of the present application is implemented.
[0060] In a fourth aspect, an embodiment of the present application discloses a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the steps of the optical line terminal cutover method disclosed in the embodiment of the present application are performed.
[0061] The optical line terminal cutover method disclosed in an embodiment of the present application comprises the following steps: obtaining a global configuration file of an original optical line terminal; obtaining a PON port cutover correspondence when the original optical line terminal is cutover to a destination optical line terminal; generating PON port configuration data of the destination optical line terminal based on the PON port configuration data in the global configuration file and the PON port cutover correspondence; concatenating the PON port configuration data of the destination optical line terminal with the general configuration data of the destination optical line terminal to obtain a target configuration file; importing the target configuration file into the destination optical line terminal; and restarting the destination optical line terminal so that the target configuration file takes effect on the restarted destination optical line terminal, thereby improving OLT cutover efficiency and shortening cutover time.
[0062] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0064] Figure 1 This is one of the flow charts of the optical line terminal cutover method disclosed in the embodiment of the present application;
[0065] Figure 2 This is the second flow chart of the optical line terminal cutover method disclosed in the embodiment of the present application;
[0066] Figure 3 This is a schematic diagram of the contents of a global configuration file derived in the optical line terminal cutover method disclosed in an embodiment of the present application;
[0067] Figure 4 This is a schematic diagram of the corresponding relationship of PON port cutover in the optical line terminal cutover method disclosed in the embodiment of the present application;
[0068] Figure 5 This is a schematic diagram of part of the target configuration file generated in the optical line terminal cutover method disclosed in an embodiment of the present application;
[0069] Figure 6 This is a schematic diagram of the analysis results of the working status of the optical network unit before and after the cutover obtained in the optical line terminal cutover method disclosed in the embodiment of the present application;
[0070] Figure 7 This is one of the structural schematic diagrams of the optical line terminal cutover device disclosed in the embodiment of the present application;
[0071] Figure 8 This is the second structural diagram of the optical line terminal cutover device disclosed in the embodiment of the present application;
[0072] Figure 9 A block diagram schematically shows an electronic device for executing the method according to the present application; and
[0073] Figure 10 The figure schematically shows a storage unit for storing or carrying a program code for implementing the method according to the present application. DETAILED DESCRIPTION
[0074] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0075] Cutover of an OLT involves transferring the configuration of its physical links. The complete cutover process includes initiating the cutover, creating a data configuration script, distributing the configuration script, changing the physical links, confirming services, and modifying resources. Traditionally, creating and distributing cutover data configuration scripts is a manual process, which is time-consuming, inefficient, and prone to errors. For example, most industry cutover tools use network management interfaces (such as the TL1 northbound interface) to distribute configuration information to devices one by one through commands. Traditional cutover methods can be time-consuming. For example, when performing an entire cutover of an OLT serving 2,000 users, distributing the configuration script can take approximately four hours.
[0076] An embodiment of the present application provides an optical line terminal cutover method. A PON port cutover correspondence is pre-generated based on cutover service requirements for the original optical line terminal when the original optical line terminal is cutover to a destination optical line terminal. A computer program is then executed to generate a target configuration file suitable for the destination optical line terminal based on configuration data of the original optical line terminal and information such as the manufacturer and model of the destination optical line terminal. The configuration file is then imported to configure the destination optical line terminal based on the target configuration file automatically generated by the program. For business scenarios in which the entire optical line terminal is cutovered, this method can greatly improve the configuration efficiency of the optical line terminal, thereby shortening the cutover time for the entire device.
[0077] The following describes the specific implementation of the optical line terminal cutover method disclosed in the embodiment of the present application with examples.
[0078] like Figure 1 As shown, an optical line terminal cutover method disclosed in an embodiment of the present application includes: steps 110 to 160.
[0079] Step 110: Obtain the global configuration file of the original optical line terminal.
[0080] The configuration file of the optical line terminal is used to configure the operating parameters of each module in the optical line terminal. After the configuration file is imported into the optical line terminal, the optical line terminal will initialize each module based on the configuration data configured in the configuration file to operate based on the operating parameters set by the configuration data in the configuration file.
[0081] Different manufacturers and models of optical line terminals have certain requirements for the format and content of the configuration data included in the configuration file. For details, please refer to the configuration documentation of the corresponding model of equipment.
[0082] When an optical line terminal is connected to the network management system, maintenance personnel first send the created configuration file to the optical line terminal via commands or other means. The optical line terminal initializes each module based on the configuration data in the received configuration file and begins operation. Typically, the network management system stores the configuration data for each optical line terminal.
[0083] In an embodiment of the present application, a global configuration file for a specified optical line terminal can be exported through a network management system. The global configuration file includes configuration data for the following sections: pre-configuration, general configuration, VLAN configuration, GPON port configuration, service port configuration, and multicast configuration. Each section of configuration data describes the corresponding configuration item in a pre-set text format. For example, the GPON port configuration module describes configuration items such as the PON port's board number, slot number, port number, and speed.
[0084] Step 120: Acquire a PON port cutover correspondence relationship when the original optical line terminal is cutover to the destination optical line terminal.
[0085] Next, a PON port cutover correspondence relationship when the original optical line terminal is cutover to the destination optical line terminal is obtained.
[0086] In an embodiment of the present application, the PON port cutover correspondence is generated based on the port correspondence before and after the cutover planned on site. Among them, the PON port cutover correspondence includes: the correspondence between each port under the management IP of the original optical line terminal and each port under the management IP of the destination optical line terminal. In some embodiments of the present application, the ports in the PON port cutover correspondence can be represented by the management IP of the optical line terminal, as well as the board number, slot number and port number of the optical line terminal. The PON port cutover correspondence also includes: port type. Currently, there are mainly two types of port types: GPON and EPON, which need to be clarified during cutover. The port type is used to indicate the instruction logic used when translating the configuration file. Different port types have different instruction logics.
[0087] Step 130: Generate PON port configuration data of the destination optical line terminal according to the PON port configuration data in the global configuration file and the PON port cutover correspondence.
[0088] In some embodiments of the present application, the global configuration file can be parsed based on the configuration data format, port naming rules, and other configuration file generation rules in the configuration file of the original optical line terminal to obtain the relevant content of the global configuration file for configuring the PON port. Subsequently, based on the PON port cutover correspondence, the relevant content of the global configuration file for configuring the PON port of the original optical line terminal is converted into content for configuring the corresponding PON port of the destination optical line terminal in accordance with the configuration data format and port naming rules required by the destination optical line terminal, thereby obtaining the PON port configuration data of the destination optical line terminal.
[0089] Step 140: Concatenate the PON port configuration data of the destination optical line terminal with the general configuration data of the destination optical line terminal to obtain a target configuration file.
[0090] In addition to PON port configuration data, the global configuration file of the optical line terminal also includes: pre-configuration data (i.e., pre-configuration data), general configuration data (i.e., global-config), VLAN configuration data (i.e., vlan-config), service port configuration data (i.e., bbs-config), platform configuration data (i.e., platform-config), etc. During an OLT device cutover, the destination optical line terminal (i.e., the new OLT) has all parameters pre-configured except for global-config. Therefore, only the changed parts need to be updated, that is, only the general configuration data and PON port configuration need to be updated. In some embodiments of the present application, the general configuration data may include: rate template and service template information.
[0091] After obtaining the PON port configuration data of the destination optical line terminal, the pre-generated universal configuration data of the destination optical line terminal is spliced with the PON port configuration data of the destination optical line terminal according to the configuration file format required by the destination optical line terminal to obtain a target configuration file for importing into the destination optical line terminal.
[0092] Step 150: Import the target configuration file into the destination optical line terminal.
[0093] In some embodiments of the present application, the target configuration file obtained in the above steps can be imported into the destination optical line terminal using the configuration file import function of the network management system. For example, the target configuration file can be a startrun.dat file generated according to the configuration file format required by the manufacturer of the destination optical line terminal. After selecting the startrun.dat file in the network management system, the configuration file import command is executed through the network management system to import the configuration file into the designated optical line terminal.
[0094] Step 160: Restart the destination optical line terminal so that the target configuration file takes effect on the restarted destination optical line terminal.
[0095] After importing the target configuration file into the destination optical line terminal, the destination optical line terminal can be manually restarted or restarted via a remote command. After the destination optical line terminal is restarted, it will initialize each functional module using the locally stored configuration file. After the initialization is completed, the target configuration file will take effect on the restarted destination optical line terminal.
[0096] After testing, it was found that the process from importing the target configuration file into the destination optical line terminal to restarting the destination optical line terminal and completing initialization typically takes about 20 minutes. In contrast, using the traditional method of cutting over the entire optical line terminal, which requires several hours to cut over configuration data piece by piece, the optical line terminal cutover method disclosed in the embodiments of the present application significantly improves the cutover efficiency of the entire optical line terminal.
[0097] like Figure 2 As shown, in some embodiments of the present application, before the step of importing the target configuration file into the destination optical line terminal, the step further includes: step 141.
[0098] Step 141: Acquire the working status information of the optical network unit of the original optical line terminal before cutover.
[0099] The optical network unit working status information includes: port information corresponding to the optical network unit, the optical network unit management status and the number of online MAC (Media Access Control Address) addresses matched by the optical network unit.
[0100] Before the cutover begins, it is necessary to collect the management status and MAC address online information of the user's ONU (Optical Network Unit) before the cutover.
[0101] In some embodiments of the present application, a pre-generated service confirmation program can be executed to collect the ONU (i.e., optical network unit) management status and MAC address online information before the cutover, and then the port information corresponding to the ONU, as well as the collected management status and MAC address online information, are used together as the ONU working status information. The port information corresponding to the ONU includes: the management IP address of the OLT to which the optical network unit (i.e., ONU) is connected, the board number, slot number, and port number of the optical network unit in the OLT; the optical network unit management status is used to indicate whether the corresponding ONU is online or offline; and the MAC address online information is used to indicate the number of MAC addresses online.
[0102] In some embodiments of the present application, before executing the service confirmation procedure, it is first necessary to select the manufacturer and model of the original optical line terminal (i.e., the OLT to be cutover), and then execute the service confirmation procedure matching the selected original optical line terminal to collect the optical network unit management status and the number of MAC addresses online that match the optical network unit under the original optical line terminal as the working status information of the optical network unit before cutover.
[0103] In some embodiments of the present application, the working status information of the optical network unit is obtained by the following method: running a service confirmation program that matches the current optical line terminal to obtain the optical network unit management status of the optical network unit under each port of the optical line terminal, and the number of online MAC addresses matched by the optical network unit, and obtaining the optical network unit working status information based on the optical network unit management status and the number of online MAC addresses, as well as the port information corresponding to the optical network unit; wherein, the service confirmation program automatically discovers the optical network unit under the port of the optical line terminal by executing an optical network unit query instruction, and obtains the optical network unit management status of the optical network unit matched by the optical network unit under the optical line terminal; the service confirmation program obtains the MAC address list under the port of the optical line terminal by executing a port MAC address query instruction, and obtains the number of online MAC addresses matched by the optical network unit under the optical line terminal based on the obtained MAC address list.
[0104] In some embodiments of the present application, the service confirmation program is an online execution script, that is, the program needs to be run in a secure and isolated network that can log in to the network management device. The service confirmation program is pre-installed with an optical network unit query instruction and a port MAC address query instruction that match the manufacturer and model of the matching original optical line terminal. During the execution of the service confirmation program, the online ONU (i.e., optical network unit) of the specified port under the original optical line terminal can be automatically discovered by executing the optical network unit query instruction, and the number of online MAC addresses of the specified port (i.e., specified ONU) can be obtained by executing the port MAC address query instruction.
[0105] For example, when querying the ONU status of a certain port, the optical network unit query instruction can be: dispayont info 0 1 2all. There are two ONU states: online and offline. Online means that the ONU is automatically discovered by the OLT, and offline means that the ONU is not detected. The automatically discovered ONU will be managed by the OLT, and it can be considered that the ONU is in an online state. In some embodiments of the present application, the collected ONU management status information can be recorded in a file, and each line of text in the file describes the port information of a port and the status of the ONU on the port. For example, "106.5.1.14 1 / 2 / 1:2 online" means that the OLT management IP is 106.5.1.14, the PON port number is: board 1, slot 2, port 1, and the ONU numbered 2 is online.
[0106] For another example, when querying the MAC address online status of a specified port, the port MAC address query instruction can be: display mac-address port 0 / 1 / 2all. In some embodiments of the present application, the collected MAC address online information can be recorded in a file, with each line of text in the file describing the number of MAC addresses online for a specified number of ONUs on a port. For example, "#106.5.1.14!1 / 2 / 1:2@2!" indicates that the OLT management IP is 106.5.1.14, the PON port number is: board 1, slot 2, port 1, and ONU number 2 has two MAC addresses online.
[0107] By executing the above optical network unit query command, online ONUs that can access the OLT port may be automatically discovered and thus managed by the OLT. Therefore, in this way, online ONUs connected to the port under the OLT (i.e., automatically discovered ONUs) can be obtained. Furthermore, based on the port number, the online or offline status of the ONU corresponding to each port under the OLT can be obtained. By executing the above port MAC address query command, the number of online MAC addresses of each numbered ONU connected to each port under the OLT can be obtained.
[0108] At this point, the collection of the optical network unit management status of an OLT optical network unit matching and the collection of the number of online MAC addresses matching the port information are completed.
[0109] Correspondingly, after the step of restarting the destination optical line terminal, the method further includes: step 170 and step 180.
[0110] Step 170: Acquire the working status information of the optical network unit after the cutover of the destination optical line terminal.
[0111] For the specific implementation method of obtaining the working status information of the optical network unit after the cutover of the destination optical line terminal, refer to the specific implementation method of obtaining the working status information of the optical network unit of the original optical line terminal. The difference is that when selecting the optical line terminal to be collected, it is necessary to select the manufacturer and model that matches the destination optical line terminal, which will not be repeated here.
[0112] Step 180 , obtaining analysis results of the optical network unit working states before and after the cutover based on the optical network unit working state information before and after the cutover, and the PON port cutover correspondence.
[0113] After obtaining the optical network unit operating status information of the original optical line terminal (i.e., the optical network unit operating status information before the cutover) and the optical network unit operating status information of the destination optical line terminal (i.e., the optical network unit operating status information after the cutover), the port-based (equivalent to ONU) correspondence between the optical network unit operating status information before the cutover and the optical network unit operating status information after the cutover is determined based on the PON port cutover correspondence. Then, by comparing the optical network unit operating status information before the cutover and the optical network unit operating status information after the cutover of the corresponding port, the optical network unit operating status corresponding to each optical network unit before and after the cutover is analyzed to obtain the analysis results of the optical network unit operating status before and after the cutover.
[0114] Optionally, the analysis results of the working status of the optical network unit before and after the cutover may include one or more of the following analysis results: relevant information on the online status of the optical network unit before and after the cutover, change information on the number of online MAC addresses of the optical network unit, whether the optical network unit is working normally, reasons for abnormal working of the optical network unit, etc.
[0115] In order to make the readers more clearly understand the specific implementation methods and performance of the key steps of the optical line terminal cutover method disclosed in the embodiments of the present application, further examples are given.
[0116] In step 110, the global configuration file of the optical line terminal obtained primarily includes configuration data for the following sections: pre-configuration, general configuration, VLAN configuration, GPON port configuration, service port configuration, and multicast configuration. For example, for a model of an optical line terminal from a certain manufacturer, the configuration data for each module in its global configuration file primarily includes the following.
[0117] The pre-configuration part includes: board number and model information.
[0118] The general configuration section includes: OLT login settings, DBA (Dynamically Bandwidth Assignment) template, ONU rate template and service template.
[0119] In the VLAN configuration section, users configure all VLAN information created in the OLT, such as VLAN attributes and transparent transmission ports.
[0120] The GPON port configuration part is the data configuration of the ONU under all GPON ports, including, for example, configuration data of the ONU's logical ID, rate, VLAN, etc.
[0121] The service port configuration section includes: port aggregation information and VLAN transposition.
[0122] The multicast configuration part is to enable multicast for the corresponding service port, including: the configuration information of enabling or disabling the corresponding service port.
[0123] The contents (eg, configuration items) configured in the global configuration files of optical line terminals of different manufacturers and models are similar, and are not listed one by one here.
[0124] Figure 3 The following is a diagram showing the partial contents of a global configuration file of an optical line terminal. Figure 3 As shown, the global configuration file sets various parameters required for the normal operation of the optical line terminal. In the global configuration file, the configuration data is presented in the form of script language or text and is formatted according to a preset format to facilitate parsing and translation.
[0125] In step 120, the PON port cutover correspondence is generated based on the pre-cutover port correspondence planned on-site. The PON port cutover correspondence includes the correspondence between the port information of the original optical line terminal (OLT) connected to the ONU and the port information of the destination optical line terminal (OLT) connected to the ONU after the cutover. The port information includes the management IP address, board number, slot number, and port number of the connected ONT.
[0126] For example, when the management IP address of the original optical line terminal is 106.5.1.14 and the management IP address of the destination optical line terminal is 106.5.18.138, and during on-site planning, the ONU connected to port 1 of slot 2 of board 1 of the original optical line terminal needs to be connected to port 1 of slot 1 of board 1 of the destination optical line terminal, in the obtained PON port cutover correspondence, the PON port cutover correspondence of the ONU can be represented by the following two groups of port information correspondences: ((106.5.1.14, 1, 2, 1), (106.5.18.138, 1, 1, 1)), where the first group of port information (106.5.1.14, 1, 2, 1) is the port information of the original optical line terminal connected to the ONU, and the second group of port information (106.5.18.138, 1, 1, 1) is the port information of the ONU connected to the destination optical line terminal after the cutover.
[0127] In some embodiments of the present application, the port correspondence relationship before and after the cutover can be stored in the form of a text file, such as Figure 4 As shown in . Figure 4 Part of the PON port cutover correspondence file is shown in Figure 2.
[0128] In the aforementioned step 130, when generating the PON port configuration data of the destination optical line terminal based on the PON port configuration data in the global configuration file and the PON port cutover correspondence, a pre-generated translation program can be executed. The translation program reads the PON port cutover correspondence file and the global configuration file derived above, and then translates the global configuration file based on the contents of these two files to generate the target configuration file.
[0129] In some embodiments of the present application, a translation program can be written in Python and is used to translate the global configuration file of the original optical line terminal into a configuration file suitable for the destination optical line terminal in accordance with the data format required by the manufacturer of the destination optical line terminal. During the execution of the translation program, the global configuration file is first read and parsed according to the configuration data writing specifications in the configuration file of the original optical line terminal to obtain the configuration data of each original PON port; then, based on the PON port cutover correspondence, the destination PON port corresponding to each original PON port is determined, and the configuration data of the original PON port is assigned to the corresponding destination PON port; then, according to the configuration data writing specifications of the destination optical line terminal, the PON port configuration data of the destination optical line terminal is generated based on the configuration data of the destination PON port.
[0130] The translation program extracts the configuration data for the required configuration items by matching keywords with the required content. Based on the new OLT command template, it assigns values to the corresponding configuration items to generate configuration data that matches the destination optical line terminal. Specifically, it matches the required partial configuration data based on the type and number of the PON port to be cutover in the original OLT (i.e., the OLT before the cutover), extracts the configuration values for the corresponding configuration items, and then assigns these values to the configuration items for the corresponding PON ports in the new OLT's configuration file template, thereby generating PON port configuration data that matches the destination OLT (i.e., the new OLT).
[0131] The configuration data for OLTs from different manufacturers requires different configuration items. For example, if the new OLT is a ZTE device, the configuration data will include five configuration items: loid, mng, pon_onu, vport, and igmp. If the new OLT is a Huawei device, the configuration data will need to include two configuration items: onuadd and serviceport. Therefore, in the embodiments of the present application, multiple configuration file templates are provided for OLTs from different manufacturers. The translation program can select the corresponding configuration file template based on the OLT manufacturer and model selected by the user.
[0132] Next, in step 140, the target configuration file is generated by integrating the general configuration data (i.e., global-config) of the target optical line terminal with the PON port configuration data of the target optical line terminal in accordance with the configuration file template format required by the manufacturer of the target optical line terminal. For example, the new general configuration data and PON port configuration data are combined into a new startrun.dat file. Figure 5 According to Figure 3 The global configuration files described in Figure 4 The PON port cutover correspondence shown is part of the generated target configuration file.
[0133] The general configuration data is generated by the translation program according to the configuration template set by the cutover personnel.
[0134] When generating universal configuration data, the translation program can obtain information such as the names of universal configuration templates such as rate templates and service templates in the global configuration file of the original OLT by matching preset keywords (such as ont-lineprofine and ont-srvprofine). Then, the corresponding configuration template set by the cutover personnel for the target OLT is obtained, and the universal configuration data is generated together with the obtained template name and other information.
[0135] For example, the translation program reads the original OLT configuration file and the PON port cutover correspondence; reads the OLT management IP before cutover, the port before cutover, the OLT management IP after cutover, and the port after cutover from the PON port cutover correspondence; reads all the template numbers and template names of ont-srvprofile and ont-lineprofile from the original OLT configuration file, and adds the corresponding templates to the OLT configuration file after cutover; when writing the loid (location identifier, user registration code) part of the OLT after cutover, if the original ONU feature number is an SN number, it is converted into the corresponding hexadecimal, and the corresponding loid after cutover is written according to the port after cutover; reads the original PON port type, port number, ONU number and its corresponding rate, service template information, and writes a new pon_onu in combination with the configuration template of the OLT after cutover; reads the vlan information in the original serviceport, and writes a new vport according to whether there is vlan transposition, that is, single-layer vlan or double-layer vlan, and if there is user-vlan 45, then write the corresponding igmp, for each port, collect all user-vlans involved in the port, combine with the new OLT configuration template, write a new mng, and finally get a new configuration file.
[0136] In the aforementioned step 180, obtaining the analysis results of the working status of the optical network unit before and after the cutover based on the working status information of the optical network unit before the cutover, the working status information of the optical network unit after the cutover, and the PON port cutover correspondence includes: sub-steps 1801 to 1804.
[0137] Sub-step 1801, using the port information in the optical network unit working status information before cutover as the original port information, and according to the PON port cutover correspondence, obtaining the destination port information corresponding to the original port information from the optical network unit working status information after cutover.
[0138] As previously described, the port information includes the management IP address, board number, slot number, and port number of the connected optical line terminal. The management IP address, board number, slot number, and port number form the port information in a preset format, for example, "106.5.1.14 1 / 2 / 1." In embodiments of the present application, the destination port information corresponding to the original port information can be determined by performing keyword matching between the original port information and the port information in the PON port cutover correspondence.
[0139] Sub-step 1802: Compare the optical network unit management status matching the original port information with the optical network unit management status matching the destination port information to obtain the optical network unit management status before and after the cutover corresponding to the original port information.
[0140] After determining the destination port information corresponding to the original port information, for a set of mutually corresponding original port information and destination port information, the optical network unit management status that matches the original port information in the optical network unit working status information before cutover is matched with the optical network unit management status that matches the destination port information in the optical network unit working status information after cutover, so as to obtain the optical network unit management status before and after cutover corresponding to the original port information. The optical network unit management status before and after cutover corresponding to the original port information is used to indicate any one of the following situations: the optical network unit associated with the original port information is online before and after cutover, the optical network unit associated with the original port information is offline before cutover, and the optical network unit associated with the original port information is online before cutover and offline after cutover.
[0141] In the embodiment of the present application, the corresponding original port information and destination port information correspond to the same ONU.
[0142] In some embodiments of the present application, the optical network unit management status matching the original port information is compared with the optical network unit management status matching the destination port information to obtain the optical network unit management status before and after the cutover corresponding to the original port information, including any of the following situations.
[0143] In the first case, when the optical network unit management status matched by the original port information matches the online status, and the optical network unit management status matched by the destination port information matches the offline status, the first optical network unit management status before and after the cutover is obtained, wherein the first optical network unit management status before and after the cutover is used to indicate that the optical network unit associated with the original port information is offline after the cutover. The optical network unit management status matched by the original port information matches the online status, indicating that the ONU is online on the original OLT. The optical network unit management status matched by the destination port information matches the offline status, indicating that the ONU is offline on the destination OLT. After the OLT is cutover, the ONU changes from the online status to the offline status, which may be due to a problem in the cutover process. Therefore, it is necessary to record that the optical network unit management status of the ONU after the cutover is offline.
[0144] In the second case, when the optical network unit management status matched by the original port information and the optical network unit management status matched by the destination port information all match the online status, the second optical network unit management status before and after the cutover is obtained, wherein the second optical network unit management status before and after the cutover is used to indicate that the optical network unit associated with the original port information is online before and after the cutover. The optical network unit management status matched by the original port information matches the online status, indicating that the ONU is online on the original OLT. The optical network unit management status matched by the destination port information matches the offline status, indicating that the ONU is online on the destination OLT. After the OLT is cutover, the ONU remains online, and the cutover can be considered successful. At this time, it is necessary to record that the optical network unit management status of the ONU after the cutover is normal.
[0145] In the third case, when the optical network unit management state matched by the original port information matches the offline state, and the optical network unit management state matched by the destination port information matches the online state, the third optical network unit management state before and after the cutover is obtained, wherein the third optical network unit management state before and after the cutover is used to indicate that the optical network unit associated with the original port information is offline before the cutover. The optical network unit management state matched by the original port information matches the offline state, indicating that the ONU is offline on the original OLT. The optical network unit management state matched by the destination port information matches the online state, indicating that the ONU is online on the destination OLT. After the OLT is cutover, the ONU is converted from the offline state to the online state. The possible reason is that the ONU was not online before the cutover (such as the ONU is not in use or the ONU is powered off). At this time, it is necessary to record that the optical network unit management state of the ONU before the cutover is offline.
[0146] In sub-step 1803, when the optical network unit management status before and after the cutover indicates that the optical network unit associated with the original port information is online before and after the cutover, the number of online MAC addresses matching the original port information is compared with the number of online MAC addresses matching the destination port information to obtain the online MAC address information before and after the cutover corresponding to the original port information.
[0147] Only when the ONU is in the online state can the number of online MAC addresses of the ONU be collected. Therefore, only when the ONU's optical network unit management state after cutover is normal in the above steps, the number of online MAC addresses can be further judged.
[0148] In some embodiments of the present application, the step of comparing the number of MAC addresses online that matches the original port information with the number of MAC addresses online that matches the destination port information to obtain the MAC address online information before and after the cutover corresponding to the original port information includes the following two cases.
[0149] In the first case, when the number of MAC addresses online that match the original port information is equal to zero, first MAC address online information before and after the cutover is obtained, wherein the first MAC address online information before and after the cutover is used to indicate that the optical network unit associated with the original port information has no MAC address online before the cutover.
[0150] If the number of online MAC addresses matching the original port information is zero, this indicates that no ONU on this port under the OLT device has a MAC address online before the cutover. Therefore, no troubleshooting is required when analyzing the working status of the PON port before and after the cutover.
[0151] In the second case, when the number of MAC addresses online that match the original port information is greater than zero, the second MAC address online information before and after the cutover is obtained according to the relationship between the number of MAC addresses online that match the original port information and the number of MAC addresses online that match the destination port information, wherein the second MAC address online information before and after the cutover is used to indicate that the number of MAC addresses online of the optical network unit associated with the original port information decreases or is normal after the cutover.
[0152] When the number of online MAC addresses matching the original port information is greater than zero, it is necessary to further determine the change in the number of online MAC addresses matching the destination port information after the cutover relative to the number of online MAC addresses matching the original port information. If the number of online MAC addresses matching the destination port information is greater than or equal to the number of online MAC addresses matching the original port information, it can be assumed that the MAC addresses that were online before the cutover are still online, that is, the cutover is successful. In this case, the information that the number of online MAC addresses after the cutover is normal is obtained. If the number of online MAC addresses matching the destination port information is less than the number of online MAC addresses matching the original port information, it can be assumed that the MAC addresses that were online before the cutover are not online after the cutover. It is necessary to further check whether a port cutover error occurred during the cutover process. In this case, the information that the number of online MAC addresses after the cutover has decreased is obtained.
[0153] Sub-step 1804 , obtaining an analysis result of the optical network unit working status before and after the cutover corresponding to the original port information according to the optical network unit management status before and after the cutover and the MAC address online information before and after the cutover.
[0154] After obtaining the optical network unit management status and MAC address online information before and after the cutover corresponding to each ONU (i.e., each port information), the optical network unit management status and MAC address online information before and after the cutover are integrated based on the port information to obtain the optical network unit working status analysis results before and after the cutover corresponding to each ONU (i.e., port information). Figure 6 Taking the optical network unit working status analysis results before and after the cutover shown in as an example, the optical network unit working status analysis results before and after the cutover corresponding to a certain port information can be expressed as: "106.5.1.14 1 / 2 / 1:2 106.5.18.138 1 / 2 / 1:2 ONU normal MAC normal", where "106.5.1.14 1 / 2 / 1:2" is a port number of the original OLT before the cutover, and "106.5.18.138 1 / 2 / 1:2" is a port number of the destination OLT after the cutover.
[0155] The ONU working status analysis results before and after the cutover show three comparison results for ONU online status before and after the cutover: ONU normal, ONU offline before the cutover, and ONU offline. The MAC address comparison results also show three results: MAC normal, MAC reduction, and MAC before the cutover. "ONU normal" means the ONU is online before and after the cutover, "ONU offline" means the ONU is online before the cutover but offline after the cutover, and "MAC normal" means the MAC count remains the same after the cutover. Only when the ONU is normal will the number of online MAC addresses be checked.
[0156] According to the analysis results of the working status of the optical network unit before and after the cutover, it can be seen that: when the ONU and MAC are normal, it means that the user service is normal; when the ONU is normal and the MAC is reduced, it means that there may be a fault after the cutover, and further identification of the fault point is required to check whether there is any configuration missing; when the ONU is normal and there is no MAC before the cutover, it means that no MAC is online on the user side before the cutover and no action is required; when the ONU is not online before the cutover, it means that the ONU is not in use or the ONU is powered off before the cutover and no action is required; when the ONU is not online, it means that there may be a fault during the cutover process and further inspection of the on-site pigtail and line quality is required to determine the fault point (for example, if the entire PON port shows "ONU not online", check whether the PON port is open, the quality of the optical module, etc. If all of the above are fine, it can be located as a power outage during the user cutover process).
[0157] It can be seen that the analysis results of the optical network unit working status before and after the cutover provide a fast and effective means to verify whether the cutover work is carried out accurately, thereby ensuring the reliability of the OLT cutover.
[0158] In some embodiments of the present application, before importing the target configuration file into the destination optical line terminal, the number of PON ports that need to be cutover can be determined first. When the current cutover is a single PON port cutover, or a few PON ports cutover, rather than a cutover of all PON ports of the entire OLT, the configuration data in the target configuration file can be sent to the destination OLT by manually executing telnet to shorten the cutover time.
[0159] The optical line terminal cutover method disclosed in an embodiment of the present application comprises the following steps: obtaining a global configuration file of an original optical line terminal; obtaining a PON port cutover correspondence when the original optical line terminal is cutover to a destination optical line terminal; generating PON port configuration data of the destination optical line terminal based on the PON port configuration data in the global configuration file and the PON port cutover correspondence; concatenating the PON port configuration data of the destination optical line terminal with the general configuration data of the destination optical line terminal to obtain a target configuration file; importing the target configuration file into the destination optical line terminal; and restarting the destination optical line terminal so that the target configuration file takes effect on the restarted destination optical line terminal, thereby improving OLT cutover efficiency and shortening cutover time.
[0160] The optical line terminal cutover method disclosed in the embodiment of the present application generates a configuration file for the destination OLT by translating the global configuration file of the original OLT based on the cutover correspondence of the PON ports, and imports the generated configuration file into the destination OLT. This eliminates the need to manually send configuration data using a single instruction for manual cutover. This not only improves the cutover efficiency of the entire OLT and shortens the cutover time, but also reduces the error rate and improves the cutover accuracy.
[0161] Furthermore, the optical line terminal cutover method disclosed in the embodiment of the present application automatically collects and compares the ONU status and MAC address online information before and after the cutover, and outputs the comparison results to guide the cutover personnel to perform analysis and troubleshooting, facilitate real-time processing of cutover faults, help ensure that the user status before and after the OLT cutover is basically consistent, and ensure the accuracy of the cutover.
[0162] Correspondingly, the embodiment of the present application also discloses an optical line terminal cutover device, such as Figure 7 As shown, the device includes:
[0163] The original configuration file acquisition module 710 is used to obtain the global configuration file of the original optical line terminal;
[0164] A PON port cutover correspondence relationship acquisition module 720 is configured to acquire a PON port cutover correspondence relationship when the original optical line terminal is cutover to the destination optical line terminal;
[0165] A PON port configuration data generating module 730 is configured to generate the PON port configuration data of the destination optical line terminal according to the PON port configuration data in the global configuration file and the PON port cutover correspondence relationship;
[0166] A target configuration file acquisition module 740 is configured to concatenate the PON port configuration data of the destination optical line terminal with the general configuration data of the destination optical line terminal to obtain a target configuration file;
[0167] A target configuration file importing module 750 is configured to import the target configuration file into the destination optical line terminal;
[0168] The target configuration file validation module 760 is configured to restart the destination optical line terminal so that the target configuration file takes effect on the restarted destination optical line terminal.
[0169] Optional, such as Figure 8 As shown, the device also includes:
[0170] The optical network unit working status information collection module 741 before the cutover is used to obtain the optical network unit working status information of the original optical line terminal before the cutover, wherein the optical network unit working status information includes: port information corresponding to the optical network unit, the optical network unit management status and the number of MAC addresses online that match the optical network unit;
[0171] After restarting the destination optical line terminal, Figure 8 As shown, the device also includes:
[0172] The post-cutover optical network unit working status information collection module 770 is used to obtain the post-cutover optical network unit working status information of the destination optical line terminal;
[0173] The optical network unit working status analysis result acquisition module 780 before and after cutover is used to obtain the optical network unit working status analysis results before and after cutover based on the optical network unit working status information before cutover, the optical network unit working status information after cutover, and the PON port cutover correspondence.
[0174] Optionally, the module 780 for obtaining the analysis results of the optical network unit working status before and after the cutover is further configured to:
[0175] Taking the port information in the working status information of the optical network unit before the cutover as the original port information, and obtaining the destination port information corresponding to the original port information from the working status information of the optical network unit after the cutover according to the PON port cutover correspondence;
[0176] Comparing the optical network unit management status matched by the original port information with the optical network unit management status matched by the destination port information to obtain the optical network unit management status before and after the cutover corresponding to the original port information;
[0177] If the optical network unit management status before and after the cutover indicates that the optical network unit associated with the original port information is online before and after the cutover, compare the number of online MAC addresses matching the original port information with the number of online MAC addresses matching the destination port information to obtain the online MAC address information before and after the cutover corresponding to the original port information;
[0178] According to the management status of the optical network unit before and after the cutover and the online MAC address information before and after the cutover, the analysis result of the working status of the optical network unit before and after the cutover corresponding to the original port information is obtained.
[0179] Optionally, comparing the optical network unit management status that matches the original port information with the optical network unit management status that matches the destination port information to obtain the optical network unit management status before and after the cutover corresponding to the original port information includes:
[0180] When the optical network unit management state matched by the original port information matches the online state, and the optical network unit management state matched by the destination port information matches the offline state, obtaining a first optical network unit management state before and after the cutover, wherein the first optical network unit management state before and after the cutover is used to indicate that the optical network unit associated with the original port information is offline after the cutover;
[0181] When both the optical network unit management state matched by the original port information and the optical network unit management state matched by the destination port information match an online state, obtaining a second optical network unit management state before and after the cutover, wherein the second optical network unit management state before and after the cutover is used to indicate that the optical network unit associated with the original port information is online before and after the cutover;
[0182] When the optical network unit management state matched by the original port information matches the offline state, and the optical network unit management state matched by the destination port information matches the online state, a third optical network unit management state before and after the cutover is obtained, wherein the third optical network unit management state before and after the cutover is used to indicate that the optical network unit associated with the original port information is offline before the cutover.
[0183] Optionally, the step of comparing the number of online MAC addresses matching the original port information with the number of online MAC addresses matching the destination port information to obtain the online MAC address information before and after the cutover corresponding to the original port information includes:
[0184] When the number of online MAC addresses matched by the original port information is zero, obtaining first online MAC address information before and after the cutover, wherein the first online MAC address information before and after the cutover is used to indicate that the optical network unit associated with the original port information has no online MAC address before the cutover;
[0185] When the number of online MAC addresses matched by the original port information is greater than zero, second online MAC address information before and after the cutover is obtained based on a relationship between the number of online MAC addresses matched by the original port information and the number of online MAC addresses matched by the destination port information, wherein the second online MAC address information before and after the cutover is used to indicate that the number of online MAC addresses of the optical network unit associated with the original port information decreases or is normal after the cutover.
[0186] Optionally, the optical network unit working status information is obtained by the following method:
[0187] Run a service confirmation program that matches the current optical line terminal to obtain the optical network unit management status of the optical network unit under each port of the optical line terminal, as well as the number of online MAC addresses matched by the optical network unit, and obtain the optical network unit working status information based on the optical network unit management status and the number of online MAC addresses, as well as the port information corresponding to the optical network unit;
[0188] Among them, the service confirmation program automatically discovers the optical network unit under the port of the optical line terminal by executing the optical network unit query instruction, and obtains the optical network unit management status matching the optical network unit under the optical line terminal; the service confirmation program obtains the MAC address list under the port of the optical line terminal by executing the port MAC address query instruction, and obtains the number of online MAC addresses matching the optical network unit under the optical line terminal based on the obtained MAC address list.
[0189] The optical line terminal cutover device disclosed in the embodiment of the present application is used to implement the optical line terminal cutover method described in the embodiment of the present application. The specific implementation of each module of the device is not repeated here, and the specific implementation of the corresponding steps in the method embodiment can be referred to.
[0190] An optical line terminal cutover device disclosed in an embodiment of the present application improves OLT cutover efficiency and shortens cutover time by obtaining a global configuration file of an original optical line terminal; obtaining a PON port cutover correspondence when the original optical line terminal is cutovered to a destination optical line terminal; generating PON port configuration data of the destination optical line terminal based on PON port configuration data in the global configuration file and the PON port cutover correspondence; concatenating the PON port configuration data of the destination optical line terminal with general configuration data of the destination optical line terminal; importing the target configuration file into the destination optical line terminal; and restarting the destination optical line terminal so that the target configuration file takes effect on the restarted destination optical line terminal.
[0191] The optical line terminal cutover device disclosed in the embodiment of the present application generates a configuration file for the destination OLT by translating the global configuration file of the original OLT based on the cutover correspondence of the PON ports, and imports the generated configuration file into the destination OLT. This eliminates the need to manually send configuration data using a single instruction for manual cutover. This not only improves the cutover efficiency of the entire OLT and shortens the cutover time, but also reduces the error rate and improves the cutover accuracy.
[0192] Furthermore, the optical line terminal cutover device disclosed in the embodiment of the present application automatically collects and compares the ONU status and Mac online information before and after the current cutover, and outputs the comparison results to guide the cutover personnel to perform analysis and troubleshooting, facilitate real-time processing of cutover faults, help ensure that the user status before and after the OLT cutover is basically consistent, and ensure the accuracy of the cutover.
[0193] Each embodiment in this specification is described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similar or identical parts between the various embodiments can be referred to in conjunction with each other. For the device embodiments, since they are generally similar to the method embodiments, their description is relatively simple, and for relevant parts, reference can be made to the description of the method embodiments.
[0194] The above is a detailed introduction to the optical line terminal cutover method and device provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only intended to help understand the method of the present application and its core concept. At the same time, for those skilled in the art, based on the concept of the present application, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present application.
[0195] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.
[0196] The various component embodiments of the present application can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be appreciated by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all of the functions of some or all of the components in the electronic device according to the embodiment of the present application. The application can also be implemented as a device or apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program implementing the present application can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0197] For example, Figure 9 An electronic device that can implement the method according to the present application is shown. The electronic device can be a PC, a mobile terminal, a personal digital assistant, a tablet computer, etc. The electronic device conventionally includes a processor 910 and a memory 920, and program code 930 stored on the memory 920 and executable on the processor 910. When the processor 910 executes the program code 930, the method described in the above embodiments is implemented. The memory 920 can be a computer program product or a computer-readable medium. The memory 920 can be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM, a hard disk, or a ROM. The memory 920 has a storage space 9201 for program code 930 of a computer program for executing any of the method steps described above. For example, the storage space 9201 for program code 930 can include individual computer programs for implementing various steps in the above method. The program code 930 is computer-readable code. These computer programs can be read from or written to one or more computer program products. These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards, or floppy disks. The computer program includes a computer-readable code, and when the computer-readable code is run on an electronic device, the electronic device is caused to execute the method according to the above embodiment.
[0198] The embodiment of the present application further discloses a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the steps of the optical line terminal cutover method as described in the embodiment of the present application are implemented.
[0199] Such a computer program product may be a computer-readable storage medium having a computer program product. Figure 9 The memory 920 in the electronic device shown is similarly arranged as a storage segment, storage space, etc. The program code can be compressed and stored in the computer readable storage medium in an appropriate form. The computer readable storage medium is generally as shown in FIG. Figure 10 The portable or fixed storage unit generally includes computer-readable code 930', which is a code read by a processor and implements the steps of the above-described method when executed by the processor.
[0200] References herein to "one embodiment," "an embodiment," or "one or more embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Furthermore, please note that instances of the phrase "in one embodiment" do not necessarily all refer to the same embodiment.
[0201] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of this description.
[0202] In the claims, any reference signs placed between brackets shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in the claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present application may be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.
[0203] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for cutting over an optical line terminal, characterized in that: include: Obtain the global configuration file of the original optical line terminal; Obtaining a PON port cutover correspondence relationship when the original optical line terminal is cutover to the destination optical line terminal; Generate the PON port configuration data of the destination optical line terminal according to the PON port configuration data in the global configuration file and the PON port cutover correspondence; splicing the PON port configuration data of the destination optical line terminal with the general configuration data of the destination optical line terminal to obtain a target configuration file; Importing the target configuration file into the destination optical line terminal; Restarting the destination optical line terminal makes the target configuration file effective for the restarted destination optical line terminal.
2. The method according to claim 1, characterized in that Before the step of importing the target configuration file into the destination optical line terminal, the method further includes: Obtaining the optical network unit working status information of the original optical line terminal before the cutover, wherein the optical network unit working status information includes: port information corresponding to the optical network unit, the optical network unit management status and the number of MAC addresses online that match the optical network unit; After the step of restarting the destination optical line terminal, the method further includes: Obtaining the working status information of the optical network unit after the cutover of the destination optical line terminal; According to the optical network unit working status information before cutover, the optical network unit working status information after cutover, and the PON port cutover correspondence, the optical network unit working status analysis results before and after cutover are obtained.
3. The method according to claim 2, characterized in that The obtaining, according to the optical network unit working status information before and after the cutover, the optical network unit working status information after the cutover, and the PON port cutover correspondence, the optical network unit working status analysis results before and after the cutover, including: Taking the port information in the working status information of the optical network unit before the cutover as the original port information, and obtaining the destination port information corresponding to the original port information from the working status information of the optical network unit after the cutover according to the PON port cutover correspondence; Comparing the optical network unit management status matched by the original port information with the optical network unit management status matched by the destination port information to obtain the optical network unit management status before and after the cutover corresponding to the original port information; If the optical network unit management status before and after the cutover indicates that the optical network unit associated with the original port information is online before and after the cutover, compare the number of online MAC addresses matching the original port information with the number of online MAC addresses matching the destination port information to obtain the online MAC address information before and after the cutover corresponding to the original port information; According to the management status of the optical network unit before and after the cutover and the online MAC address information before and after the cutover, the analysis result of the working status of the optical network unit before and after the cutover corresponding to the original port information is obtained.
4. The method according to claim 3, characterized in that The comparing the optical network unit management status matching the original port information with the optical network unit management status matching the destination port information to obtain the optical network unit management status before and after the cutover corresponding to the original port information includes: When the optical network unit management state matched by the original port information matches the online state, and the optical network unit management state matched by the destination port information matches the offline state, obtaining a first optical network unit management state before and after the cutover, wherein the first optical network unit management state before and after the cutover is used to indicate that the optical network unit associated with the original port information is offline after the cutover; When both the optical network unit management state matched by the original port information and the optical network unit management state matched by the destination port information match an online state, obtaining a second optical network unit management state before and after the cutover, wherein the second optical network unit management state before and after the cutover is used to indicate that the optical network unit associated with the original port information is online before and after the cutover; When the optical network unit management state matched by the original port information matches the offline state, and the optical network unit management state matched by the destination port information matches the online state, a third optical network unit management state before and after the cutover is obtained, wherein the third optical network unit management state before and after the cutover is used to indicate that the optical network unit associated with the original port information is offline before the cutover.
5. The method according to claim 3, characterized in that The step of comparing the number of online MAC addresses matching the original port information with the number of online MAC addresses matching the destination port information to obtain online MAC addresses before and after the cutover corresponding to the original port information includes: When the number of online MAC addresses matched by the original port information is zero, obtaining first online MAC address information before and after the cutover, wherein the first online MAC address information before and after the cutover is used to indicate that the optical network unit associated with the original port information has no online MAC address before the cutover; When the number of online MAC addresses matched by the original port information is greater than zero, second online MAC address information before and after the cutover is obtained based on a relationship between the number of online MAC addresses matched by the original port information and the number of online MAC addresses matched by the destination port information, wherein the second online MAC address information before and after the cutover is used to indicate that the number of online MAC addresses of the optical network unit associated with the original port information decreases or is normal after the cutover.
6. The method according to any one of claims 2 to 5, characterized in that The optical network unit working status information is obtained by the following method: Run a service confirmation program that matches the current optical line terminal to obtain the optical network unit management status of the optical network unit under each port of the optical line terminal, as well as the number of online MAC addresses matched by the optical network unit, and obtain the optical network unit working status information based on the optical network unit management status and the number of online MAC addresses, as well as the port information corresponding to the optical network unit; Among them, the service confirmation program automatically discovers the optical network unit under the port of the optical line terminal by executing the optical network unit query instruction, and obtains the optical network unit management status matching the optical network unit under the optical line terminal; the service confirmation program obtains the MAC address list under the port of the optical line terminal by executing the port MAC address query instruction, and obtains the number of online MAC addresses matching the optical network unit under the optical line terminal based on the obtained MAC address list.
7. An optical line terminal cutover device, characterized in that: include: The original configuration file acquisition module is used to obtain the global configuration file of the original optical line terminal; A PON port cutover correspondence relationship acquisition module is used to obtain a PON port cutover correspondence relationship when the original optical line terminal is cutover to the destination optical line terminal; A PON port configuration data generating module, configured to generate the PON port configuration data of the destination optical line terminal according to the PON port configuration data in the global configuration file and the corresponding relationship between the PON port cutover; a target configuration file acquisition module, configured to concatenate the PON port configuration data of the destination optical line terminal with the general configuration data of the destination optical line terminal to obtain a target configuration file; A target configuration file importing module, configured to import the target configuration file into the destination optical line terminal; The target configuration file validation module is used to restart the destination optical line terminal so that the target configuration file takes effect on the restarted destination optical line terminal.
8. The device according to claim 7, characterized in that The device further comprises: a pre-cutover optical network unit working status information acquisition module, configured to obtain the optical network unit working status information of the original optical line terminal before the cutover, wherein the optical network unit working status information includes: port information corresponding to the optical network unit, the optical network unit management status and the number of MAC addresses online that match the optical network unit; After restarting the destination optical line terminal, the device further includes: A post-cutover optical network unit working status information collection module, configured to obtain the post-cutover optical network unit working status information of the destination optical line terminal; The optical network unit working status analysis result acquisition module before and after cutover is used to obtain the optical network unit working status analysis results before and after cutover based on the optical network unit working status information before cutover, the optical network unit working status information after cutover, and the PON port cutover correspondence.
9. An electronic device comprising a memory, a processor, and a program code stored in the memory and executable on the processor, wherein: When the processor executes the program code, the optical line terminal cutover method according to any one of claims 1 to 6 is implemented.
10. A computer-readable storage medium having program code stored thereon, characterized in that: When the program code is executed by a processor, the steps of the optical line terminal cutover method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Fast conversion method and system of PON equipment configuration file
CN108521616A
PON port cutover automatic configuration method and device
CN112468897A