OLT cutover method and device, electronic equipment, storage medium and program product
By obtaining the original location information of the ONU and the identifier and current location information of unregistered ONUs, a target configuration script is generated, which solves the problem of cumbersome operation in the existing OLT cutover method, realizes efficient emergency service restoration, and improves cutover efficiency.
Patent Information
- Application Number
- CN202511329969.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-17
- Publication Date
- 2025-12-16
AI Technical Summary
Existing OLT splicing methods are cumbersome to operate in emergency repair scenarios and cannot meet the timeliness requirements of emergency restoration services. They require multiple adjustments to the fiber insertion positions of PON lines to correct the fiber correspondence.
By obtaining the original location information of the ONUs in the original device and the identifiers and current location information of the unregistered ONUs in the target device, a target configuration script is generated to accurately determine the PON ports of the unregistered ONUs in the original device, replacing manual port-by-port configuration and shortening the cutover time.
It improves the efficiency of OLT network element replacement and cutover process, meets the timeliness requirements of emergency restoration services, avoids the tedious process of manually correcting fiber optic connections, and shortens the cutover process time.
Smart Images

Figure CN121151718A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of transmission and bearer, and particularly relates to an OLT switching method and device, electronic equipment, storage medium and program product. BACKGROUND
[0002] In the field of cable access network, the PON port configuration information of the OLT device is used to control service access. When the OLT device is disconnected due to disaster weather, the operator may use a vehicle-mounted OLT device for repair. The existing switching method is to pull out the PON optical fiber from the ODF distribution frame corresponding to the disaster OLT device and insert it into the ODF distribution frame corresponding to the vehicle-mounted OLT, simultaneously multiplexing part of the configuration file of the disaster OLT device as the initial configuration file of the vehicle-mounted OLT device, and then adjusting the optical fiber insertion position of each PON line multiple times to gradually complete the OLT service migration switching.
[0003] However, the existing switching method has obvious defects. Since the label of the optical fiber in the PON line of the original OLT device may be incorrect, and the layout of the optical fiber insertion port position in the ODF distribution frame outside the machine room may be inconsistent with the layout of the PON board card port inside the machine room, therefore, in the emergency repair scene, the PON optical fiber first inserted into the PON port of the vehicle-mounted OLT device is likely to be not the original PON port position corresponding to the PON optical fiber in the original OLT device. Therefore, it is necessary to manually check the online state of the ONU under each PON port of the vehicle-mounted OLT, and to correct the correspondence between the PON line and the target PON port by adjusting the optical fiber insertion position of each PON line multiple times. The whole process is complicated and time-consuming, and it is difficult to meet the timeliness requirement of emergency service restoration. SUMMARY
[0004] Based on the above technical problems, the present disclosure provides an OLT switching method, device, electronic equipment, storage medium and program product.
[0005] In a first aspect, the present disclosure provides an OLT switching method, comprising: obtaining original position information of all configured optical network units (ONUs) in an original device, identifiers of unregistered ONUs in a target device, and current position information of the unregistered ONUs; determining original passive optical network (PON) ports corresponding to the unregistered ONUs in the original device based on the original position information of the configured ONUs and the current position information of the unregistered ONUs; generating a target configuration script of the target device based on a configuration file of the original device, the current position information of the unregistered ONUs, and the original PON ports corresponding to the unregistered ONUs in the original device.
[0006] Further, according to the method of the first aspect of the present disclosure, the original position information of all configured optical network units (ONUs) in the original device and the identifiers and the current position information of the unregistered ONUs in the target device are obtained, including: Based on the configuration file of the original device, an original position hash table containing the identifiers and the position information of all configured ONUs in the original device is obtained, the key of the original position hash table being the identifier of the ONU and the value being the identifier of the original configuration PON port corresponding to the identifier of the ONU in the configuration file. Periodically based on the relevant information of the unregistered ONUs in the target device, a current position hash table of the unregistered ONUs is obtained, the key of the current position hash table being the identifier of the unregistered ONU and the value being the identifier of the current PON port currently connected by the unregistered ONU.
[0007] Further, according to the method of the first aspect of the present disclosure, based on the original position information of the configured ONUs and the identifiers of the unregistered ONUs, the original passive optical network (PON) port corresponding to the unregistered ONU in the original device is determined, including: Taking the identifier of a certain unregistered ONU as a query key, the corresponding PON port is found in the original position hash table, and the PON port is determined as the original PON port corresponding to the unregistered ONU in the original device; For the identifiers of multiple unregistered ONUs in the current position hash table, the above query operation is performed one by one, and the original PON port corresponding to each unregistered ONU in the original device is determined.
[0008] Further, according to the method of the first aspect of the present disclosure, based on the configuration file of the original device, the current position information of the unregistered ONUs, and the original PON port corresponding to the unregistered ONU in the original device, a target configuration script of the target device is generated, including: Based on the configuration file of the original device, an original configuration script corresponding to the original PON port is obtained; Based on the current position information of the unregistered ONUs and the original configuration script, the identifier of the original PON port corresponding to each ONU under the original PON port in the original configuration script is modified to the identifier of the current PON port currently connected by the unregistered ONU, and a target configuration script of the target device is generated.
[0009] Further, according to the method of the first aspect of the present disclosure, the method further includes: If the identifier of the current PON port corresponds to a PON port that has completed the configuration required by the OLT splitting, based on the identifier of the current PON port, the set of configured PON ports of the target device is updated.
[0010] Further, before generating the target configuration script of the target device based on the configuration file of the original device, the current location information of the unregistered ONU, and the original PON port corresponding to the unregistered ONU in the original device, the method according to the first aspect of the present disclosure further comprises: If the identifier of the current PON port currently connected by the unregistered ONU has been in the configured PON port set, the step of obtaining the target configuration script corresponding to the unregistered ONU is skipped.
[0011] Further, the method according to the first aspect of the present disclosure further comprises: If all the fibers to be cut over have been inserted into the ODF distribution frame of the target device, and the related information of the unregistered ONU is no longer detected in the target device, the OLT cut-over is completed.
[0012] In a second aspect, the present disclosure provides an OLT cut-over device, comprising: a location information obtaining module configured to obtain original location information of all configured optical network units (ONUs) in an original device, an identifier of an unregistered ONU in a target device, and current location information of the unregistered ONU; a PON port mapping module configured to determine an original passive optical network (PON) port corresponding to the unregistered ONU in the original device based on the original location information of the configured ONUs and the current location information of the unregistered ONU; a configuration script generating module configured to generate a target configuration script of the target device based on a configuration file of the original device, the current location information of the unregistered ONU, and the original PON port corresponding to the unregistered ONU in the original device.
[0013] In a third aspect, the present disclosure provides an electronic device, comprising a memory for storing computer readable instructions, and a processor for running the computer readable instructions, so that the electronic device performs the method according to any one of the embodiments of the first aspect.
[0014] In a fourth aspect, the present disclosure provides a non-transitory computer readable storage medium for storing computer readable instructions, which, when executed by a processor, causes the processor to perform the method according to any one of the embodiments of the first aspect.
[0015] In a fifth aspect, the present disclosure provides a computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of the embodiments of the first aspect.
[0016] The present disclosure provides an OLT splicing method, device, electronic equipment, storage medium and program product. The present disclosure accurately determines the corresponding original PON port of an unregistered ONU in the original device by obtaining the original position information of the ONU in the original device and the identifier and current position information of the unregistered ONU in the target device, and automatically generates a target configuration script in combination with the original device configuration file, thereby replacing the tedious operation of manual port-by-port configuration and improving the splicing efficiency. Compared with the existing OLT splicing method, the present method does not need to physically adjust the port position of the optical fiber, but can complete the splicing by only modifying the configuration script data of the target device, greatly shortens the splicing process time, can meet the timeliness demand of emergency rush-through service, avoids the tedious process of manually correcting the PON optical fiber connection PON port position, and avoids the tedious process of manually configuring the ONU data and service data of the PON port of the target OLT device, and therefore can improve the efficiency of the OLT network element replacement splicing process.
[0017] It is to be understood that both the foregoing general description and the following detailed description are exemplary and intended to provide further explanation of the subject technology. BRIEF DESCRIPTION OF DRAWINGS
[0018] The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings in which:
[0019] Figure 1 A flowchart of an OLT splicing method provided by an embodiment of the present disclosure; Figure 2 A flowchart of another OLT splicing method provided by an embodiment of the present disclosure; Figure 3 A flowchart of another OLT splicing method provided by an embodiment of the present disclosure; Figure 4 A flowchart of another OLT splicing method provided by an embodiment of the present disclosure; Figure 5 A flowchart of another OLT splicing method provided by an embodiment of the present disclosure; Figure 6 A block diagram of an OLT splicing device provided by an embodiment of the present disclosure; Figure 7 A hardware block diagram of an electronic equipment provided by an embodiment of the present disclosure; Figure 8 A schematic diagram of a computer-readable storage medium provided by an embodiment of the present disclosure. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of this disclosure more apparent, exemplary embodiments according to this disclosure will now be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this disclosure, and not all embodiments of this disclosure. It should be understood that this disclosure is not limited to the exemplary embodiments described herein.
[0021] In wired access networks, the PON port configuration information of OLT devices is the admission configuration data used to control PON service access, including ONU configuration information, service template configuration information, service flow configuration information, etc.
[0022] When encountering severe weather events such as typhoons and floods, communication equipment rooms may face serious failures such as power outages and equipment outages. For example, wired access network OLT equipment may become offline due to severe weather and cannot be repaired in a short time. In such scenarios, operators may use vehicle-mounted OLT equipment to achieve emergency service restoration. Vehicle-mounted OLT equipment is a new type of emergency communication equipment transported by emergency vehicles. It can perform replacement-style service repair on damaged OLT equipment during severe weather. The repair process involves connecting the ports of the vehicle-mounted OLT equipment to the fiber optic lines corresponding to the PON ports of the damaged OLT equipment, and quickly completing the PON port configuration on the vehicle-mounted OLT equipment.
[0023] During the aforementioned emergency repair process, the existing technical solution is as follows: Optical fibers are individually removed from the original ODF patch panel (the ODF patch panel near the outside of the room where the affected OLT is located) and inserted into the corresponding ODF patch panel for the vehicle-mounted OLT. Simultaneously, the recently saved configuration file of the original OLT network element (i.e., the affected OLT network element) is used as the current configuration file for the vehicle-mounted OLT equipment to complete data configuration. This method can be simply referred to as an OLT network element replacement and cutover method, that is, a cutover method that uses the vehicle-mounted OLT network element to replace the affected OLT network element.
[0024] In the existing OLT network element replacement and cutover method described above, during the process of connecting the port of the ODF patch panel corresponding to the vehicle-mounted OLT with the ODF port near the outside of the equipment room where the disaster-stricken OLT is located via optical fiber, it is necessary to manually check the online status of the ONU under the PON port of the vehicle-mounted OLT equipment, then determine whether the optical fiber connection position of the ODF port is correct, and adjust the position of the PON port where the optical fiber is inserted according to the determination result, until the currently active ONU in each PON line of the original OLT network element is online at the PON port of the vehicle-mounted OLT network element.
[0025] The existing splicing method needs to manually check the online state of the ONUs under each PON port of the vehicle-mounted OLT, and verifies the correctness of the connection by adjusting the fiber insertion position of each PON line multiple times, so the splicing process consumes a long time and cannot meet the timeliness requirement of emergency rush-through services.
[0026] Based on the above technical problems, the technical problem to be solved by the present disclosure is to avoid adjusting the fiber insertion port position of each PON line multiple times, so that after each PON line is inserted into the port of the ODF distribution frame of the vehicle-mounted OLT (or directly inserted into the PON port of the vehicle-mounted OLT), the fiber port position does not need to be adjusted, only the configuration file data of the vehicle-mounted OLT needs to be modified, thereby shortening the OLT splicing process time and meeting the timeliness requirement of emergency rush-through services.
[0027] Figure 1 A flowchart of an OLT splicing method provided by the embodiments of the present disclosure is shown.
[0028] As shown in Figure 1 The OLT splicing method is executed by a splicing controller, and specifically includes the following steps: Step 101, obtaining the original position information of all configured optical network units (ONUs) in the original equipment, the identifier of unregistered ONUs in the target equipment, and the current position information of the unregistered ONUs.
[0029] In one embodiment of the present disclosure, the original device refers to an OLT device to be cut off, for example: if the device fails and needs to be replaced urgently, the old OLT device that fails is the original device; if the network needs to be upgraded and the service needs to be migrated, the OLT device in the original machine room is the original device; if it is an emergency rescue (such as a disaster scenario), the OLT device that cannot continue to be used in the disaster area is the original device. The target device refers to the OLT device that will replace the original device and undertake the original service after cutting off, for example: if the old device is replaced, the newly deployed OLT device is the target device; if the service is migrated to a new machine room, the OLT device in the new machine room is the target device; if it is an emergency rescue, the vehicle-mounted emergency OLT device or the "temporarily deployed backup OLT device" is the target device. All configured ONUs refer to all ONU devices whose ONU identifiers have been configured and associated with the corresponding PON ports in the configuration file of the original device. The original location information refers to the correspondence between the ONU identifiers in the configuration file of the original device and the PON ports of the original device. The unregistered ONU refers to the ONU that is migrated from the PON port of the original device to the PON port of the target device and has not completed registration in the target device. The current location information refers to the physical connection relationship between the unregistered ONU and the PON port in the target device. The original location information of all configured optical network units (ONUs) in the original device is obtained from the original device, and the identifier and the current location information of the unregistered ONU in the target device are obtained from the target device. The above description of the original device and the target device is only exemplary and is not limited in the present disclosure.
[0030] Exemplarily, when performing OLT cutting, the target device is first configured to have basic running capability, network connectivity, management capability, and "basic environment" suitable for subsequent ONU service migration. Then, the original location information of the optical network unit (ONU) in the original device is obtained from the original device, and the identifier and the current location information of the unregistered ONU in the target device are obtained from the target device. The start-up configuration includes but is not limited to: physical interface configuration, link aggregation group configuration, VLAN configuration, network management IP interface configuration, static route configuration, network service configuration (including SSH, telnet, SNMP, etc.), ONU configuration template (such as: ONU type template, traffic template, DBA template).
[0031] Step 102, based on the original location information of the configured ONU and the identifier of the unregistered ONU, determining the corresponding original passive optical network (PON) port of the unregistered ONU in the original device.
[0032] In one embodiment of the present disclosure, the unregistered ONU refers to an ONU that has not completed configuration registration in the target device after migration from the original device to the target device. These ONUs are originally "original ONUs" that normally operate in the original device, but are displayed as "unregistered" in the new device because the carrying device is replaced. The original PON port refers to the PON port to which the unregistered ONU actually belongs in the original device before migration. According to the obtained original location information of the configured ONUs and the identifier of the unregistered ONU, the original PON port to which the unregistered ONU actually belongs in the original device is found.
[0033] Step 103, generating a target configuration script of the target device based on the configuration file of the original device, the current location information of the unregistered ONU, and the original PON port corresponding to the unregistered ONU in the original device.
[0034] In one embodiment of the present disclosure, the configuration file refers to the original service profile of all ONUs in the original device, which includes detailed configurations of all PON ports and subordinate ONUs in the original device, and these configurations are bound to the original PON port. The target configuration script refers to a set of instructions (such as a command line script) that can be directly executed on the target device. The detailed configuration information of all ONUs connected to the original PON port is extracted from the configuration file of the original device, and the current location information of the unregistered ONU is combined to generate the target configuration script of the target device.
[0035] In summary, according to the technical solution provided by the embodiments of the present disclosure, the original location information of the ONUs in the original device and the identifier and current location information of the unregistered ONUs in the target device are obtained, the original PON port corresponding to the unregistered ONU in the original device is accurately determined, and the target configuration script is automatically generated in combination with the configuration file of the original device, replacing the tedious operation of manual port-by-port configuration and improving the efficiency of the cut-over. Compared with the existing OLT cut-over method, the present method does not need to physically adjust the port position of the optical fiber, but only needs to modify the configuration script data of the target device to complete the cut-over, greatly shortening the process time of the cut-over, meeting the timeliness requirements of emergency service restoration, avoiding the tedious process of manually correcting the PON fiber connection PON port position, and avoiding the tedious process of manually configuring the ONU data and service data of the PON port of the target OLT device, thereby improving the efficiency of the OLT network element replacement cut-over process.
[0036] Figure 2 A flowchart of another OLT cut-over method provided by an embodiment of the present disclosure is shown.
[0037] As shown in Figure 2 , in the OLT cut-over method, the original location information of all configured optical network units (ONUs) in the original device and the current location information of the unregistered ONUs in the target device are obtained, specifically including the following steps: Step 201, based on the configuration file of the original device, obtaining a raw location hash table containing identifiers and location information of all configured ONUs in the original device, the key of the raw location hash table being the identifier of the ONU, and the value being the identifier of the ONU corresponding to the identifier of the original configuration PON port in the configuration file.
[0038] In an embodiment of the present disclosure, the location information of the configured ONU refers to the identifier of the original device PON port accessed by the ONU. By parsing the configuration file of the original device, the identifier of each ONU connected to each original configuration PON port and the identifier of the original configuration PON port (i.e. ID) are extracted, and the identifier of each ONU connected to each original configuration PON port and the ID of the original configuration PON port are written into a hash table, which is called a raw location hash table. The raw location hash table is a key-value mapping table, in which the key is the identifier of the ONU, and the value is the ID of the original configuration PON port corresponding to the identifier of the ONU in the configuration file of the original device.
[0039] Exemplarily, in the configuration file of the disaster-stricken OLT, the identifier of each ONU connected to each PON port (i.e. the identifier of the ONU) and the ID of the PON port (i.e. the ID of the original configuration PON port) are written into a hash table, which is called an original configuration ONU location hash table (i.e. a raw location hash table) and is saved as a variable origin_ONU_location_hashMap. The hash table is a key-value mapping table, in which the key is the identifier of the ONU, and the value is the ID of the original configuration PON port corresponding to the identifier of the ONU in the configuration file of the disaster-stricken OLT.
[0040] Step 202, periodically based on the related information of the unregistered ONUs in the target device, obtaining a current location hash table of the unregistered ONUs, the key of the current location hash table being the identifier of the unregistered ONU, and the value being the identifier of the current PON port currently connected by the unregistered ONU.
[0041] In an embodiment of the present disclosure, periodically means automatically performing once every certain period of time, such as every 1 minute, every 2 minutes, etc. The related information of the unregistered ONUs is automatically read from the target device, and by parsing the related information of the unregistered ONUs, the identifier of each unregistered ONU and the identifier of the current PON port currently connected by the unregistered ONU (i.e. the ID of the current PON port) are extracted and written into a hash table, which is called a current location hash table of the unregistered ONUs. In the current location hash table of the unregistered ONUs, the key is the identifier of the unregistered ONU, and the value is the ID of the current PON port currently connected by the unregistered ONU.
[0042] In summary, according to the technical scheme provided by the embodiment of the present disclosure, by one-time analysis of the configuration file of the original device, the original location hash table is generated, and the current location hash table generated by periodic combination of the related information of the unregistered ONU automatically read by the target device, so that the corresponding original passive optical network (PON) port of the unregistered ONU in the original device can be quickly found, and the information lag caused by one-time reading is avoided, and it is ensured that the current location hash table can reflect the latest connection state of the target device.
[0043] Further, based on the original location information of the configured ONU and the identifier of the unregistered ONU, the original PON port corresponding to the unregistered ONU in the original device is determined, comprising: Taking the identifier of a certain unregistered ONU as a query key, the corresponding PON port is found in the original location hash table, and the PON port is determined as the original PON port corresponding to the unregistered ONU in the original device; For the identifiers of multiple unregistered ONUs in the current location hash table, the above query operation is performed one by one, and the original PON port corresponding to each unregistered ONU in the original device is determined.
[0044] Specifically, the current location hash table contains the identifiers of multiple unregistered ONUs, and the identifier of a certain ONU is taken as a retrieval basis to match in the original location hash table to find the PON port corresponding to the identifier of the ONU, and the PON port is taken as the port to which the ONU belongs in the original device, that is, the original PON port. The above single-body query process is performed on the identifier of each unregistered ONU in the current location hash table in turn to form a batch mapping relationship of “identifier→original PON port”, and the original PON port corresponding to each unregistered ONU in the original device is obtained.
[0045] In summary, according to the technical scheme provided by the embodiment of the present disclosure, the present disclosure can quickly and accurately establish the mapping relationship between all unregistered ONUs in the target device and the corresponding original PON ports in the original device through the hash table efficient query and batch processing mechanism, which not only avoids the tediousness and errors of manual matching, but also provides accurate data support for subsequent automatic generation of target configuration scripts, thereby improving the efficiency and accuracy of configuration migration in the OLT cut-over process and shortening the cut-over time.
[0046] Figure 3 A flowchart of another OLT cut-over method provided by the embodiment of the present disclosure is shown.
[0047] As Figure 3As shown, the OLT splicing method generates a target configuration script of the target device based on the configuration file of the original device, the current location information of the unregistered ONU, and the original PON port corresponding to the unregistered ONU in the original device, including: Step 301, based on the configuration file of the original device, the original configuration script corresponding to the original PON port is obtained.
[0048] In an embodiment of the present disclosure, the original configuration script is a set of configuration instructions for the original PON port, which can include: the identifier of the ONU associated with the original PON port, the ONU authentication method and authentication keyword, and the service data corresponding to the ONU. The original configuration script corresponding to the original PON port is extracted from the configuration file of the original device.
[0049] Step 302, based on the current location information of the unregistered ONU and the original configuration script, the identifier of the original PON port corresponding to each ONU hung under the original PON port in the original configuration script is modified to the identifier of the current PON port currently connected by the unregistered ONU, and a target configuration script of the target device is generated.
[0050] In an embodiment of the present disclosure, in the original device, the original configuration script is converted according to the current location information of the unregistered ONU and the original configuration script, the conversion method is to modify the identifier of the original PON port corresponding to each ONU hung under the original PON port in the original configuration script to the identifier of the current PON port currently connected by the unregistered ONU, and then generate a target configuration script, and send the target configuration script to the target device.
[0051] In summary, according to the technical scheme provided by the embodiment of the present disclosure, the original configuration script is directly extracted from the configuration file of the original device without manual recording, and the modification of the port identifier can be performed in batches based on the original configuration script and the "current location information of the unregistered ONU", without repeated operation for a single ONU. Compared with the traditional OLT splicing, the configuration of the unregistered ONU usually depends on manual operation: the operation and maintenance personnel need to manually record the PON port configuration (such as VLAN, access restriction, etc.) corresponding to the ONU from the original device, and then reconfigure in the target device. The present disclosure does not need to rely on the real-time running state of the original device (only needs to read its configuration file), and can quickly generate a target configuration based on the current connection location of the unregistered ONU — even if the original device has failed, as long as the configuration file can be obtained, the ONU configuration in the target device can be quickly completed through this logic — significantly shortening the network recovery time in the fault scenario and improving the anti-fault capability of the network.
[0052] Further, if the identifier of the current PON port corresponds to a PON port that has completed the configuration required by the OLT cut, the configured PON port set of the target device is updated based on the identifier of the current PON port.
[0053] Specifically, an empty set, referred to as a configured PON port set, is initialized, which is used to store the identifiers of all configured ports in the target device. The configuration required by the OLT cut refers to the configuration in the target configuration script that needs to be completed by the current PON port in order for the corresponding ONU to work normally on the target device. After the target configuration script is generated, the identifier of the current PON port corresponds to a PON port that has completed the configuration required by the OLT cut, and the identifier of the current PON port is saved in the configured PON port set of the target device.
[0054] In summary, according to the dynamic updating process of the configured PON port set provided by the embodiments of the present disclosure, the essence is the "quantitative record" of the cut progress. The ratio of the number of port identifiers stored in the set to the total number of PON ports that need to be configured in the target device can directly reflect the proportion of the cut completed. For the operation and maintenance personnel, there is no need to manually check the port configuration state one by one (the traditional way requires logging in to the device to query one by one, which is extremely inefficient). By querying the set, the operation and maintenance personnel can directly and intuitively know "which ports have been completed" and "which ports are still not configured", which facilitates timely adjustment of the cut rhythm and avoids the problems of missed configuration (such as missing a port leading to the ONU in the region being unable to activate) or scheduling confusion caused by opaque progress.
[0055] Further, before generating the target configuration script of the target device based on the configuration file of the original device, the current location information of the unregistered ONU, and the original PON port of the unregistered ONU in the original device, the following steps are further included: If the identifier of the current PON port to which the unregistered ONU is currently connected is already in the configured PON port set, the step of obtaining the target configuration script corresponding to the unregistered ONU is skipped.
[0056] Specifically, before generating the target configuration script of the target device, the identifier of the current PON port to which the unregistered ONU is currently connected is compared with the identifiers of the configured ports stored in the configured PON port set, so as to determine whether the current PON port corresponding to the identifier of the current PON port has completed the configuration required by the OLT cut. If the identifier of the current PON port to which the unregistered ONU is currently connected is already in the configured PON port set, it means that the current PON port has completed all the cut configurations before, and there is no need to generate a new configuration script for the ONU under the port. Therefore, the step of obtaining the target configuration script corresponding to the unregistered ONU is skipped.
[0057] In summary, according to the technical scheme provided by the embodiment of the present disclosure, by comparing the 'configured set', the waste of system resources (such as repeated parsing configuration, generating scripts) can be avoided. Since one PON port can be connected to multiple ONUs, when the first ONU triggers the configuration, the port has completed the basic configuration, and the subsequent ONUs of the same port do not need to generate scripts repeatedly, and can directly skip, which not only reduces redundant operations, but also avoids invalid consumption caused by false triggering or repeated scanning, thereby improving the overall efficiency of OLT splicing.
[0058] Further, when the spliced optical fibers have all been inserted into the ODF distribution frame of the target device, and the target device no longer detects the related information of the unregistered ONU, the OLT splicing is completed.
[0059] Specifically, all optical fibers (to-be-spliced optical fibers) that need to be spliced have been inserted into the ODF distribution frame (optical fiber distribution frame, used for connection and management of optical fibers) of the target device (such as a vehicle-mounted OLT, a backup OLT, etc.) according to requirements, that is, the physical link connection has been completed. And the target device (such as the vehicle-mounted OLT mentioned above) cannot detect the'related information of the unregistered ONU' through its own detection mechanism (such as the ONU automatic discovery function), which means that the ONU that needs to be migrated has either successfully registered to the target device or there is no unregistered ONU left (that is, all ONUs that should be spliced have completed the access process).
[0060] In summary, according to the technical scheme provided by the embodiment of the present disclosure, the physical layer verification (full insertion of the to-be-spliced optical fiber into the ODF distribution frame of the target device) can ensure that all optical fiber links that need to be migrated have completed physical connection, avoiding the situation that some ONUs cannot be accessed due to missing or misinserted optical fibers (such as an optical fiber is not inserted, and the ONU connected to it cannot be registered, but it may be mistakenly judged as 'completed'); the device state verification (no unregistered ONU information in the target device) can ensure that all ONUs that should be migrated have completed registration (or there is no unregistered ONU left), avoiding the situation that the physical link is connected, but the ONU is not actually accessed (such as the configuration is not effective, or the registration fails), but the splicing is ended in advance.
[0061] Further, if the identifiers of all PON ports that need to be spliced in the target device are included in the configured PON port set, the OLT splicing is completed.
[0062] Specifically, in the process of performing OLT cut-over, it can be determined whether to end the OLT cut-over by judging whether the identifiers of all PON ports in the target device that need to be cut-over are contained in the configured PON port set. If the identifiers of all PON ports in the target device that need to be cut-over are contained in the configured PON port set, the cut-over end condition is met, which means that the OLT cut-over is completed.
[0063] In summary, compared with the traditional cut-over, the technical solution provided by the embodiments of the present disclosure can cause two problems due to the lack of a clear end condition: the operation and maintenance personnel subjectively judge that "it is almost completed" and terminate early, missing part of the port configuration; and the system continues to repeatedly scan the unconfigured ports (even if it has been completed), causing resource waste. The objective judgment of "whether the configured set contains all the ports that need to be cut-over" can accurately trigger the "cut-over completion" state, which ensures that all necessary ports have been configured and avoids the invalid continuation of the process.
[0064] In order to describe the technical solutions of the present disclosure in detail, refer to Figures 4-6 The OLT cut-over method of the present disclosure is described in detail.
[0065] Figure 4 The flowchart of another OLT cut-over method provided by the embodiments of the present disclosure is shown. Figure 5 The flowchart of another OLT cut-over method provided by the embodiments of the present disclosure is shown.
[0066] As shown in Figure 4 and Figure 5 , the OLT cut-over method specifically includes the following steps: Step 401: Complete the initial configuration of the vehicle-mounted OLT.
[0067] Specifically, when performing OLT cut-over, the cut-over controller first completes the initial configuration on the vehicle-mounted OLT (i.e. the target device). The OLT initial configuration includes but is not limited to: physical interface configuration, link aggregation group configuration, VLAN configuration, network management IP interface configuration, static route configuration, network service configuration (including SSH, telnet, SNMP, etc.), ONU configuration template (such as: ONU type template, traffic template, DBA template).
[0068] Step 402: Generate "original configuration ONU position hash table".
[0069] Specifically, in the configuration file of the damaged OLT (original device), the identifier of each ONU hung under each PON port and its PON port ID (i.e. the identifier of the original configuration PON port) are written into a hash table, called: original configuration ONU location hash table (i.e. original location hash table), saved as variable origin_ONU_location_hashMap. The hash table is a key-value mapping table, where the key is the identifier of the ONU, and the value is the original configuration PON port ID (i.e. the identifier of the original configuration PON port) corresponding to the identifier of the ONU in the OLT configuration file.
[0070] Step 403: initialize the "emergency OLT configured PON port set" as an empty set.
[0071] Specifically, an empty set is initialized, called emergency OLT configured PON port set (i.e. configured PON port set), saved as variable configured_PON_set.
[0072] Step 404: perform a period of switching tasks. Specifically, it includes steps 404-1 to 404-4 (see Figure 5 ).
[0073] Step 404-1: read the current automatically discovered unregistered ONU information from the vehicle-mounted OLT, and parse to generate: current ONU location hash table.
[0074] Specifically, the current automatically discovered unregistered ONU information (i.e. the relevant information of the unregistered ONU) is read from the vehicle-mounted OLT, from which the identifier of each unregistered ONU and its currently connected PON port ID (i.e. the identifier of the current PON port) are extracted and written into a hash table, called: current ONU location hash table (i.e. current location hash table), saved as variable current_ONU_location_hashMap. The hash table is a key-value mapping table, where the key is the identifier of the unregistered ONU, and the value is the currently connected PON port ID of the unregistered ONU.
[0075] Step 404-2: determine whether the "current ONU location hash table" is empty? If so, go to step 404-4, otherwise go to step 404-3.
[0076] Specifically, if current_ONU_location_hashMap is empty, go to step 404-4, otherwise go to step 404-3.
[0077] Step 404-3: Read the next key from the current_ONU_location_hashMap, and execute step 404-3-1 to step 404-3-6.
[0078] Specifically, in the current_ONU_location_hashMap, traverse each unregistered ONU identifier (i.e. traverse each key), and execute step 404-3-1 to step 404-3-6 for each key.
[0079] The specific description of the above step 404-3 is as follows.
[0080] Step 404-3-1: Read the current auto-discovered unregistered ONU information from the vehicle-mounted OLT, and parse to generate: the current_ONU_location_hashMap.
[0081] Specifically, in the current_ONU_location_hashMap, read a key, find the value (i.e. the current PON port ID where the unregistered ONU is located) corresponding to the key, and save it to the variable current_PON_ID.
[0082] Step 404-3-2: Determine whether the current_ONU_location_hashMap is empty? If yes, go to step 404-3-6, otherwise, execute step 404-3-3.
[0083] Specifically, if the current_PON_ID is already in the configured_PON_set, go to step 404-3-6. Otherwise, execute step 404-3-3.
[0084] Step 404-3-3: Read the next key from the current_ONU_location_hashMap, and execute step 404-3-1 to step 404-3-6.
[0085] Specifically, in the origin_ONU_location_hashMap, find the value (i.e. the original configured PON port ID corresponding to the identifier of the ONU in the configuration file of the affected OLT) corresponding to the key, and save it to the variable origin_PON_ID.
[0086] Step 404-3-4: Extract the CLI configuration script corresponding to the current PON port ID where the unregistered ONU is located from the configuration file of the affected OLT for conversion.
[0087] Specifically, from the configuration file of the damaged OLT, the CLI configuration script corresponding to the origin_PON_ID (i.e. the aforementioned original configuration script) is extracted and converted by replacing the PON port ID of each ONU in the CLI configuration script with the current_PON_ID. The converted CLI configuration script (i.e. the target configuration script) is sent to the CLI command line interface of the emergency OLT (i.e. the vehicle-mounted OLT).
[0088] Step 404-3-5: Update the set of PON ports configured by the emergency OLT.
[0089] Specifically, the current_PON_ID is added to the configured_PON_set.
[0090] Step 404-3-6: Determine whether the traversal of the "current ONU location hash table" is completed. Specifically, if the traversal of the current_ONU_location_hashMap is completed, step 404-3 ends, otherwise, go to step 404-3-1.
[0091] Step 405: Determine whether the switchover end condition is met.
[0092] Specifically, it is determined whether the switchover end condition is met. If yes, go to step 406, otherwise, go to step 404. The switchover end condition is that all the optical fibers to be switched over in the field have been inserted into the ODF distribution frame of the vehicle-mounted OLT, and the vehicle-mounted OLT no longer detects unregistered ONU devices.
[0093] Step 406: Switchover is completed.
[0094] In summary, according to the technical scheme provided by the embodiments of the present disclosure, the technical scheme mainly has the following two key points.
[0095] Key point 1: The "original configuration ONU location hash table" is generated after the OLT configuration file is parsed in step 402.
[0096] In step 404, according to the identifiers of the currently automatically discovered unregistered ONUs by the vehicle-mounted OLT and the current PON port ID, a "current ONU location hash table" is obtained, and each ONU identifier in the table is used as a query key to perform a quick search in the "original configuration ONU location hash table", to obtain the PON port ID originally belonging to the ONU, i.e. origin_PON_ID. Then, the PON port ID of each ONU in the original CLI configuration script corresponding to origin_PON_ID is replaced by current_PON_ID, to obtain a new script (i.e. a target configuration script) required for the current vehicle-mounted OLT to configure.
[0097] The above key technology accelerates the data processing process of automatically searching for the mapping relationship between current_PON_ID and origin_PON_ID, and thus can quickly generate a new script required for the current vehicle-mounted OLT to configure, thereby providing a key technology for realizing the quick replacement of the disaster OLT by the vehicle-mounted OLT.
[0098] Key point 2: Unlike the one-time synchronization method in the traditional technology, the above step 404 is executed multiple times, in order to be synchronized multiple times with the on-site PON fiber insertion operation.
[0099] The on-site PON fiber insertion operation into the PON port of the vehicle-mounted OLT generally involves dozens or even hundreds of PON ports, and needs a relatively long time (which may exceed 1 hour). If step 404 is executed only when the above on-site operation is completely finished, step 404 will configure data for many PON ports at one time, and the operation time may need to be increased by tens of minutes, resulting in that the completion time of step 404 is far behind the completion time of the on-site operation. In order to compress the total operation time, the technical solution of the present disclosure designs step 404 to be executed multiple times (i.e. periodically), and each execution of step 404 is only for the PON port into which the fiber has been inserted on site, and is based on configured_PON_set to filter the PON port IDs that have been configured before, to avoid repeated configuration.
[0100] The above configured_PON_set is initialized in step 403, and the elements of configured_PON_set are continuously accumulated during the multiple executions of step 404, until configured_PON_set contains all the PON port IDs that need to be cut over, and then the OLT network element replacement cut over is completed. The above key technology enables the on-site fiber insertion operation and the execution of step 404 in the background to be dynamically synchronized.
[0101] An embodiment will be described below in combination with Figure 4 and Figure 5 .
[0102] In this embodiment, both the vehicle-mounted emergency OLT and the affected OLT use Huawei vendor equipment.
[0103] Step 1: According to the standard starting template of Huawei OLT in the operator network, the starting configuration is performed.
[0104] Step 2: The construction process of the original configuration ONU location hash table is as follows.
[0105] The original 3 PON ports of the affected OLT have service access, which are 0 frame 3 slot 0 port, 0 frame 3 slot 4 port, and 0 frame 4 slot 0 port.
[0106] The ONU configuration information of the above PON ports is extracted from the original configuration file of the affected OLT, and the ONU identifier (including ONU authentication method and ONU authentication keyword) is parsed and extracted, such as sn-auth "485754431ACB3C9B" or password-auth "5910406014". The above ONU identifier is used as Key, and the PON port where the ONU is located in the original configuration file is used as Value, and a table entry of origin_ONU_location_hashMap is generated. In this embodiment, the origin_ONU_location_hashMap parsed is as follows, as shown in Table 1.
[0107] Table 1: Original ONU location hash table origin_ONU_location_hashMap
[0108] Step 3: Initialize an empty set configured_PON_set.
[0109] Step 4: Perform a period of cutover task. This step is executed multiple times until the cutover end condition is met.
[0110] The first cycle of step 4 is as follows: Step 4-1: According to the query command display ont autofind all of the vehicle-mounted OLT, the current automatic discovery of unregistered ONU information data is output as follows.
[0111] Command: display ont autofind all ---------------------------------- Serial number: 1 Frame / slot / port: 0 / 1 / 1 ONT NNI type: 2.5G / 1.25G ONT SN: 46485454527956A0 (FHTT-527956A0) Password: 0x35393132363836353436 (5913598019) Logical ID: Check code: Manufacturer ID: FHTT ONT version: BM.V3.0 ONT software version: RP0102 ONT device ID: HG6543C4 ONT feature word information: ONT MAC address: ONT ESN information: ONT auto-discovery time: 2024-05-20 14:32:48+08:00 Multi-channel capability: ------------------------ Serial number: 40 Frame / slot / port: 0 / 1 / 1 ONT NNI type: 2.5G / 1.25G ONT SN: 5A544547CE6368CB (ZTEG-CE6368CB) Password: 0x35393133363036313933 (5913702436) Logical ID: 5913606193 Check code: Manufacturer ID: ZTEG ONT version: V9.0 ONT software version: V2.2.0P1T9 ONT device ID: F663NV9 ONT feature word information: ONT MAC address: ONT ESN information: ONT auto-discovery time: 2023-01-13 01:34:13+08:00 Multi-channel capability: --------------------------- Serial Number: 41 Box / slot / port: 0 / 1 / 1 ONT NNI Type: 2.5G / 1.25G ONT SN: 46485454514EFE00 (HITT-514EFE00) Password: 0x35393132333934323035 (5913708133) Logical ID: Check Code: Manufacturer ID: HITT ONT Version: BM.V3.0 ONT Software Version: RP0104 ONT Equipment ID: HG6543C4 ONT Feature Word Information: - ONT MAC Address: - ONT ESN Information: - ONT Auto-Discovery Time: 2024-05-27 14:03:18+08:00 Multi-Channel Capability: - -------------------- From the above output data analysis, the "current ONU location hash table" in Table 2, i.e., current_ONU_location_hashMap, is obtained.
[0112] Table 2: Current ONU Location Hash Table current_ONU_location_hashMap
[0113] Step 4-2: current_ONU_location_hashMap is not empty, so step 4-3 is executed.
[0114] Step 4-3, the specific process is as follows.
[0115] Step 4-3-1: Read the first key: password-auth "5913598019", in current_ONU_location_hashMap, the Key corresponds to the Value is NA-0-1-1, so assign current_PON_ID = NA-0-1-1 Step 4-3-2: configured_PON_set == empty set, does not contain current_PON_ID, so continue execution.
[0116] Step 4-3-3: Find the Value corresponding to password-auth "5913598019" in origin_ONU_location_hashMap is NA-0-4-0, so assign origin_PON_ID = NA-0-4-0.
[0117] Step 4-3-4: From the configuration file of the affected OLT, extract the ONU authentication information configuration script corresponding to origin_PON_ID (NA-0-4-0, i.e. 0 frame 4 slot 0 port), replace the PON port NA-0-4-0 in the script with current_PON_ID = NA-0-1-1. Then, send the converted CLI configuration script to the vehicle-mounted OLT device.
[0118] On the basis of completing the above ONU authentication information configuration, the service-port configuration corresponding to current_PON_ID in the vehicle-mounted OLT also needs to be completed. Similarly, the PON port in the service-port configuration script needs to be replaced from origin_PON_ID (NA-0-4-0, i.e. 0 frame 4 slot 0 port) to current_PON_ID = NA-0-1-1. Then, send the converted CLI configuration script to the vehicle-mounted OLT device.
[0119] Step 4-3-5: Add current_PON_ID to configured_PON_set, the result is configured_PON_set == { NA-0-1-1}.
[0120] The above is the first execution cycle of Step 4, which realizes the data configuration of the PON port NA-0-1-1 of the first vehicle-mounted OLT inserted with the optical fiber.
[0121] The second cycle of Step 4 is as follows: The application program of the present embodiment executes Step 4 again after an interval of 1 minute, and according to the query command display ont autofind all of the vehicle-mounted OLT, the current ONU location hash table current_ONU_location_hashMap is parsed again as shown in Table 3.
[0122] Table 3: Current ONU location hash table current_ONU_location_hashMap
[0123] Similarly, according to the association query between the current_ONU_location_hashMap and the origin_ONU_location_hashMap, the PON port in the original script of the disaster-stricken OLT needs to be replaced from the origin_PON_ID (NA-0-3-0, that is, 0 frame 3 slot 0 port) to the current_PON_ID = NA-0-1-2.
[0124] The above is the second execution cycle of step 4, which realizes the data configuration of the PON port NA-0-1-2 of the vehicle-mounted OLT of the second inserted optical fiber.
[0125] The third cycle of step 4 is as follows: The application program of the embodiment executes step 4 again after 1 minute interval, and according to the query command display ont autofind all of the vehicle-mounted OLT, the current_ONU_location_hashMap in Table 4 is obtained again.
[0126] Table 4: current_ONU_location_hashMap
[0127] Similarly, according to the association query between the current_ONU_location_hashMap and the origin_ONU_location_hashMap, the PON port in the original script of the disaster-stricken OLT needs to be replaced from the origin_PON_ID (NA-0-3-4, that is, 0 frame 3 slot 4 port) to the current_PON_ID = NA-0-1-3.
[0128] The above is the third execution cycle of step 4, which realizes the data configuration of the PON port NA-0-1-3 of the vehicle-mounted OLT of the third inserted optical fiber.
[0129] After that, since the query command display ont autofind all cannot detect the unregistered ONU again, the switching application program is terminated, and the switching task is completed.
[0130] The present disclosure also provides an OLT switching device. Figure 6 The structure block diagram of an OLT switching device provided by the embodiment of the present disclosure is shown in the figure, which comprises a position information acquisition module 601, a PON port mapping module 602 and a configuration script generation module 603. Figure 6 As shown in the figure, the OLT switching device 600 comprises a position information acquisition module 601, a PON port mapping module 602 and a configuration script generation module 603.
[0131] Specifically, the location information obtaining module 601 is configured to obtain original location information of all configured optical network units (ONUs) in the original device, identifiers of unregistered ONUs in the target device, and current location information of the unregistered ONUs.
[0132] Specifically, the PON port mapping module 602 is configured to determine original passive optical network (PON) ports corresponding to the unregistered ONUs in the original device based on the original location information of the configured ONUs and the current location information of the unregistered ONUs.
[0133] Specifically, the configuration script generating module 603 is configured to generate a target configuration script of the target device based on a configuration file of the original device, the current location information of the unregistered ONUs, and the original PON ports corresponding to the unregistered ONUs in the original device.
[0134] The above, referring to the accompanying drawings Figure 1 to the accompanying drawings Figure 6 The OLT splicing method and device of the present disclosure are described in detail. In the splicing work of replacing a disaster-stricken OLT network element, the existing splicing method needs to manually check the online state of the ONUs under the PON port of the vehicle-mounted OLT device, then judge whether the fiber connection position of the ODF port is correct, and adjust the PON port position of the fiber insertion according to the judgment result until the current active ONU in each PON line of the original OLT network element is online on the PON port of the vehicle-mounted OLT network element. This method needs to adjust the fiber insertion port position of each PON line multiple times, therefore, the splicing process consumes a long time, and it is difficult to meet the timeliness demand of emergency rescue business.
[0135] The technical solution of the present disclosure proposes an OLT splicing method, which can realize that after each PON line is inserted into the port of the ODF distribution rack of the vehicle-mounted OLT (or directly inserted into the PON port of the vehicle-mounted OLT), the position of the fiber does not need to be adjusted, and only the configuration file data of the vehicle-mounted OLT needs to be modified. Therefore, this method can greatly shorten the length of the OLT splicing process, and meet the timeliness demand of emergency rescue business.
[0136] Compared with the prior art, the technical solution of the present disclosure is irreplaceable mainly in the following aspects: I. Significantly improve efficiency and shorten splicing time: the existing method needs to manually check the online state of the ONU frequently, and repeatedly adjusts the fiber insertion port position according to the result, which is time-consuming and tedious. The technical solution of the present disclosure realizes the splicing of the PON line by only modifying the configuration file data of the vehicle-mounted OLT, avoiding repeated physical adjustment, thereby greatly shortening the length of the splicing process.
[0137] II. Enhancing emergency response capabilities: In the event of network disruption caused by natural disasters or emergencies, rapid recovery of communication is crucial. The method of the present disclosure enables quick replacement of OLT network elements, improving the timeliness of emergency rescue services and effectively shortening network recovery time. Reducing human error and improving accuracy: Frequent manual adjustment of fiber port positions is prone to error, affecting the quality of splicing and network stability. The present proposal achieves splicing through configuration file modification, reducing human operation and improving the accuracy and reliability of splicing.
[0138] III. Strong adaptability and easy to promote: The method of the present disclosure does not depend on specific hardware or software platforms and is applicable to various vehicle-mounted OLT devices and network environments. It is easy to learn and master, suitable for promotion and application in a wide range of regions and scenarios.
[0139] IV. Significant cost-effectiveness: Existing methods require more human resources and take longer, increasing operating costs. The present proposal simplifies the splicing process, reducing labor demand and time cost, and improving overall cost-effectiveness.
[0140] Figure 7 A hardware block diagram of an electronic device is provided for the embodiments of the present disclosure. The electronic device 700 according to the embodiments of the present disclosure at least includes a processor; and a memory for storing computer readable instructions. When the computer readable instructions are loaded and run by the processor, the processor executes the OLT splicing method described in any one of the preceding embodiments of the present disclosure.
[0141] Figure 7 The electronic device 700 shown specifically includes a central processing unit (CPU) 701, a graphics processing unit (GPU) 702, and a memory 703. These units are connected to each other through a bus 704. The central processing unit (CPU) 701 and / or the graphics processing unit (GPU) 702 can be used as the above-mentioned processor, and the memory 703 can be used as the above-mentioned memory for storing computer readable instructions. In addition, the electronic device 700 can also include a communication unit 705, a storage unit 706, an output unit 707, an input unit 708, and an external device 709, which are also connected to the bus 704.
[0142] Figure 8 A schematic diagram of a computer readable storage medium is provided for the embodiments of the present disclosure. As shown in FIG. 8, the computer readable storage medium 800 includes a computer readable instruction 801. Figure 8As shown, the computer readable storage medium 800 according to embodiments of the present disclosure has computer readable instructions 801 stored thereon. When the computer readable instructions 801 are run by a processor, the OLT switchover method according to any of the preceding embodiments of the present disclosure described with reference to the above figures is performed. The computer readable storage medium includes, but is not limited to, for example, volatile memory and / or non-volatile memory. The volatile memory may, for example, include random access memory (RAM) and / or cache memory, etc. The non-volatile memory may, for example, include read-only memory (ROM), hard disk, flash memory, optical disk, magnetic disk, etc.
[0143] The present disclosure still further provides a computer program product, comprising a computer program which, when executed by a processor, implements the OLT switchover method according to any of the preceding embodiments of the present disclosure.
[0144] Those skilled in the art can realize that the units and algorithm steps of each example described in connection with the embodiments disclosed herein can be realized by electronic hardware, or a combination of computer software and electronic hardware. Whether the functions are performed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present disclosure.
[0145] The above describes the basic principles of the present disclosure in conjunction with specific embodiments, but it should be noted that the advantages, benefits, effects, etc. mentioned in the present disclosure are only examples and are not limiting, and these advantages, benefits, effects, etc. are not considered as necessary for each embodiment of the present disclosure. In addition, the above specific details are only for the purpose of example and understanding, and are not limiting, and the above details do not limit the present disclosure to the above specific details.
[0146] The block diagrams of the devices, apparatuses, equipment, systems involved in the present disclosure are only illustrative examples and are not intended to require or imply that the connections, arrangements, configurations are as shown in the block diagrams. As those skilled in the art will realize, these devices, apparatuses, equipment, systems can be connected, arranged, configured in any way. Words such as "include", "contain", "have", etc. are open-ended words, meaning "including but not limited to", and can be used interchangeably. The words "or" and "and" used herein mean the word "and / or", and can be used interchangeably unless the context clearly indicates otherwise. The word "such as" used herein means the phrase "such as but not limited to", and can be used interchangeably.
[0147] Also, as used in the description herein and throughout the claims that follow, the meaning of "or" includes "and / or" unless the context clearly dictates otherwise. For example, when used in the examination of "at least one of A or / and B" the phrase "at least one of A or B" means A or B or both. As used in the examination of "between one and three of A, B, and C," the phrase means A or B or C, or any combination thereof.
[0148] It is also important to note that the systems and methods of the disclosure can be embodied in a variety of forms depending on the particular requirements of the applications. Some embodiments can be implemented in software, while other embodiments can be implemented in hardware or a combination of software and hardware. As used herein the term "software" includes but is not limited to one or more computer program(s) or other computer readable instructions that can be stored or carried on a computer readable medium, such as a floppy disk, a flexible disk, a hard disk, a magnetic tape, a magnetic disk, an optical disk, a CD-ROM, RAM, ROM, PROM, EPROM, a flash memory, a solid state drive, or other memory chip or cartridge, or the like.
[0149] Various changes, modifications and alterations to the techniques described herein can be made without departing from the teachings of the attached claims. Moreover, the scope of the claims should not be limited to the particular aspects described in the above description and drawings. Rather, the scope of the claims should be understood to include any and all aspects that are within the scope of the claims.
[0150] The above description of disclosed aspects is intended to be illustrative, and not restrictive. Many other aspects can be apparent to those of skill in the art upon reviewing the above description. The scope of the claims should, therefore, be interpreted to include all such aspects and their equivalents. Various modifications and changes can be made thereto by those skilled in the art without departing from the broader scope of the disclosure as set forth in the claims that follow. The specification and drawings are accordingly to be regarded as illustrative rather than restrictive.
[0151] The above description has been given by way of example and the description is not intended to limit the embodiments of the disclosure to forms disclosed herein. Although various example aspects and embodiments have been discussed above, those of skill in the art will recognize certain variations, modifications, changes, additions and sub-combinations of the aspects and embodiments discussed above.
Claims
1. An OLT grooming method, characterized in that, The method comprises the following steps: obtaining original location information of all configured optical network units (ONUs) in a source device, identifiers of unregistered ONUs in a target device, and current location information of the unregistered ONUs; determining corresponding original passive optical network (PON) ports of the unregistered ONUs in the source device based on the original location information of the configured ONUs and the identifiers of the unregistered ONUs; generating a target configuration script of the target device based on a configuration file of the source device, the current location information of the unregistered ONUs, and the original PON ports corresponding to the unregistered ONUs in the source device.
2. The OLT grooming method of claim 1, wherein, The method comprises the following steps: obtaining an original location hash table containing identifiers and location information of all the configured ONUs in the source device based on a configuration file of the source device, wherein the key of the original location hash table is the identifier of the ONU, and the value is the identifier of the original configuration PON port corresponding to the identifier of the ONU in the configuration file; periodically obtaining a current location hash table of the unregistered ONUs based on relevant information of the unregistered ONUs in the target device, wherein the key of the current location hash table is the identifier of the unregistered ONU, and the value is the identifier of the current PON port currently connected by the unregistered ONU.
3. The OLT grooming method of claim 2, wherein, The method comprises the following steps: taking the identifier of a certain unregistered ONU as a query key to find the corresponding PON port in the original location hash table, and determining the PON port as the original PON port corresponding to the unregistered ONU in the source device; performing the above query operation on the identifiers of the unregistered ONUs in the current location hash table one by one, and determining the original PON port corresponding to each unregistered ONU in the source device.
4. The OLT grooming method of claim 2, wherein, The method comprises the following steps: obtaining an original configuration script corresponding to the original PON port based on the configuration file of the source device; modifying the identifier of the original PON port corresponding to each ONU hanging under the original PON port in the original configuration script to the identifier of the current PON port currently connected by the unregistered ONU based on the current location information of the unregistered ONUs and the original configuration script, and generating the target configuration script of the target device.
5. The OLT grooming method of claim 2, wherein, The method further comprises the following steps: if the identifier of the current PON port corresponds to a PON port that has completed the configuration required by the OLT migration, updating a set of configured PON ports of the target device based on the identifier of the current PON port.
6. The OLT grooming method of claim 5, wherein, The generating the target configuration script of the target device based on the configuration file of the original device, the current location information of the unregistered ONU, and the original PON port corresponding to the unregistered ONU in the original device further comprises: If the identifier of the current PON port currently connected by the unregistered ONU has been in the configured PON port set, the obtaining step of the target configuration script corresponding to the unregistered ONU is skipped.
7. The OLT grooming method of claim 5, wherein, The method further comprises: If the to-be-cut optical fibers have all been inserted into the ODF distribution frame of the target device, and the related information of the unregistered ONU is no longer detected in the target device, the OLT cutting is completed.
8. An OLT grooming device, comprising: Comprise: A location information obtaining module configured to obtain original location information of an optical network unit (ONU) in an original device and current location information of an unregistered ONU in a target device; A PON port mapping module configured to determine an original passive optical network (PON) port corresponding to the unregistered ONU in the original device based on the original location information of the ONU and the current location information of the unregistered ONU; A configuration script generating module configured to generate a target configuration script of the target device based on a configuration file of the original device, the current location information of the unregistered ONU, and the original PON port corresponding to the unregistered ONU in the original device.
9. An electronic device, comprising: Comprise: A memory for storing computer readable instructions; And A processor for running the computer readable instructions, so that the electronic device executes the OLT cutting method according to any one of claims 1-7.
10. A non-transitory computer-readable storage medium storing computer-readable instructions, the computer-readable instructions comprising: When the computer readable instructions are executed by the processor, the processor executes the OLT cutting method according to any one of claims 1-7.