Network resource checking method and device, electronic equipment and storage medium
By unplugging fibers one by one and monitoring the reconnection request of the optical splitter's downstream port, the optical splitter is determined as the optical splitter for ONU access, which solves the problems of tedious and low-efficiency network resource inventory steps in the existing technology, and realizes fast and convenient resource allocation. Inventory.
Patent Information
- Application Number
- CN202410352557.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-26
- Publication Date
- 2024-10-18
AI Technical Summary
The existing network resource inventory methods are cumbersome and inefficient. They require manual operations and cannot efficiently handle changes in connection relationships of resource devices in ODN.
By unplugging fibers one by one and monitoring the downstream ports of the optical splitter, if a reconnection request is detected, the optical splitter is determined as the optical splitter for ONU access, realizing resource inventory, simplifying steps and improving efficiency.
It realizes fast and convenient network resource inventory, improves resource inventory efficiency, and reduces the need for manual operations.
Smart Images

Figure CN118803480A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer application technology, and in particular to a network resource inventory method, device, electronic device and storage medium. Background Art
[0002] At present, when ODN is used for a long time, the connection relationship between resource devices in ODN and resource devices will change, and network resource inventory needs to be carried out in time. However, the network resource inventory method in the related art has the problems of cumbersome steps and low efficiency. Summary of the invention
[0003] The present application aims to at least to some extent solve the problems of the network resource inventory methods in the related art, most of which require manual operation, have complicated steps and low efficiency of network resource inventory.
[0004] To this end, the first aspect embodiment of the present application proposes a network resource inventory method, which can unplug the fibers of multiple downstream ports of the splitter one by one and monitor the reconnection request. If a reconnection request is monitored, the splitter is used as the splitter accessed by the ONU, and the splitter accessed by the ONU can be determined, thereby realizing the resource inventory of the ONU hung under the splitter, which has the advantages of convenience, speed and high efficiency of network resource inventory.
[0005] A second embodiment of the present application provides a network resource inventory device.
[0006] A third aspect of the present application provides an electronic device.
[0007] The fourth aspect of the present application provides a computer-readable storage medium.
[0008] The first aspect of the present application proposes a network resource inventory method, including: starting from the first downstream port of the target splitter in the optical distribution network ODN, determining the first downstream port of the target splitter as the currently traversed downstream port, and unplugging the fiber of the currently traversed downstream port; if a reconnection request sent by the target optical network unit ONU is monitored, using the target splitter as the splitter accessed by the target ONU; updating the next downstream port of the currently traversed downstream port to the currently traversed downstream port, and returning to execute the fiber unplugging of the currently traversed downstream port and its subsequent steps until the last downstream port of the target splitter is traversed.
[0009] According to the network resource inventory method of the embodiments of the present application, the fiber of multiple downstream ports of the optical splitter can be unplugged one by one, and the reconnection requests can be monitored. If a reconnection request is monitored, the optical splitter is used as the optical splitter accessed by the ONU, and the determination of the optical splitter accessed by the ONU can be realized, that is, the resource inventory of the ONUs hung under the optical splitter can be realized, which has the advantages of convenience, high efficiency of network resource inventory, etc.
[0010] In addition, the network resource inventory method according to the above embodiments of the present application may further have the following additional technical features:
[0011] In an embodiment of the present application, after using the target optical splitter as the optical splitter accessed by the target ONU, it further includes: using the currently traversed downstream port as the downstream port of the target optical splitter accessed by the target ONU.
[0012] In an embodiment of the present application, the target optical splitter includes a target i-th level optical splitter and a target j-th level optical splitter, where i < j, and both i and j are positive integers. The method further includes: if the target i-th level optical splitter is the i-th level optical splitter accessed by the target ONU, and the target j-th level optical splitter is the j-th level optical splitter accessed by the target ONU, using the target i-th level optical splitter as the i-th level optical splitter accessed by the target j-th level optical splitter; using the downstream port of the target i-th level optical splitter accessed by the target ONU as the downstream port of the target i-th level optical splitter accessed by the target j-th level optical splitter.
[0013] In an embodiment of the present application, the method further includes: extracting a target serial number from the reconnection request; determining the candidate ONU identified by the target serial number as the target ONU.
[0014] In an embodiment of the present application, after using the currently traversed downstream port as the downstream port of the target optical splitter accessed by the target ONU, it further includes: establishing an association relationship between the target serial number and the target optical splitter; obtaining a target i-th level optical splitter having an association relationship with the target serial number; obtaining a target j-th level optical splitter having an association relationship with the target serial number; establishing an association relationship between the target i-th level optical splitter and the target j-th level optical splitter; where i < j, and both i and j are positive integers.
[0015] In one embodiment of the present application, the method also includes: establishing an association relationship between the target serial number and the downstream port of the target splitter to which the target ONU accesses; obtaining the downstream port of the target i-th level splitter having an association relationship with the target serial number as the downstream port of the target i-th level splitter to which the target ONU accesses; establishing an association relationship between the target j-th level splitter and the downstream port of the target i-th level splitter to which the target ONU accesses.
[0016] In one embodiment of the present application, if the target splitter includes a target first-level splitter and a target second-level splitter, the method also includes: obtaining the number M of downstream ports of the target first-level splitter and the number N of downstream ports of the target second-level splitter, wherein M and N are both positive integers; creating a target column vector of M rows and a target row vector of N columns for the target ONU; determining the values of the elements of the target column vector based on the downstream port of the target first-level splitter to which the target ONU is connected; and determining the values of the elements of the target row vector based on the downstream port of the target second-level splitter to which the target ONU is connected.
[0017] In one embodiment of the present application, the value of the element of the target column vector is determined based on the downstream port of the target first-level splitter to which the target ONU is connected, including: if the target ONU is connected to the s-th downstream port of the target first-level splitter, the first set value is determined as the value of the element of the s-th from-last row of the target column vector, where s is a positive integer not greater than M; and the second set value is determined as the values of the remaining elements other than the elements of the s-th from-last row of the target column vector.
[0018] In one embodiment of the present application, the value of the element of the target row vector is determined based on the downstream port of the target second-level splitter to which the target ONU is connected, including: if the target ONU is connected to the t-th downstream port of the target second-level splitter, the first set value is determined as the value of the element of the t-th from-last column of the target row vector, where t is a positive integer not greater than N; and the second set value is determined as the value of the remaining elements other than the element of the t-th from-last column of the target row vector.
[0019] In one embodiment of the present application, the first set value is 1 and the second set value is 0; the method also includes: obtaining the product of the target column vector and the target row vector as the relationship matrix of the target ONU; identifying that the value of the element in the xth row and yth column in the relationship matrix of the target ONU is 1, where x is a positive integer not greater than M, and y is a positive integer not greater than N; determining that the target ONU accesses the (M+1-x)th downstream port of the target first-level splitter; determining that the target ONU accesses the (N+1-y)th downstream port of the target second-level splitter.
[0020] In one embodiment of the present application, the method further includes: summing the relationship matrix of each candidate ONU connected to a passive optical network PON port in the ODN to obtain a total relationship matrix; and obtaining a resource inventory result of the ODN based on the total relationship matrix.
[0021] In one embodiment of the present application, the method also includes: identifying whether the optical power change trends of multiple target ONUs connected to the target splitter are consistent, wherein the multiple target ONUs include a target first ONU and multiple target second ONUs; if the optical power change trends of the multiple target second ONUs are consistent, and the optical power change trend of the target first ONU is inconsistent with the optical power change trend of any target second ONU, marking the target first ONU as an abnormal ONU; and generating indication information for instructing a location audit of the abnormal ONU.
[0022] The second aspect of the present application proposes a network resource inventory device, including: a first processing module, which is used to start from the first downstream port of the target splitter in the optical distribution network ODN, determine the first downstream port of the target splitter as the currently traversed downstream port, and unplug the fiber of the currently traversed downstream port; a second processing module, which is used to use the target splitter as the splitter accessed by the target ONU if a reconnection request sent by the target optical network unit ONU is monitored; a third processing module, which is used to update the next downstream port of the currently traversed downstream port to the currently traversed downstream port, and return to execute the fiber unplugging of the currently traversed downstream port and its subsequent steps until the last downstream port of the target splitter is traversed.
[0023] The network resource inventory device of the embodiment of the present application can unplug the fibers of multiple downstream ports of the splitter one by one and monitor the reconnection request. If a reconnection request is monitored, the splitter is used as the splitter accessed by the ONU, and the splitter accessed by the ONU can be determined, so that the resource inventory of the ONU hung under the splitter can be realized, which has the advantages of convenience, speed and high efficiency of network resource inventory.
[0024] In addition, the network resource inventory device according to the above embodiments of the present application may further have the following additional technical features:
[0025] In an embodiment of the present application, after using the target optical splitter as the optical splitter to which the target ONU is connected, the second processing module is further configured to: use the currently traversed downstream port as the downstream port of the target optical splitter to which the target ONU is connected.
[0026] In an embodiment of the present application, the target optical splitter includes a target i-th stage optical splitter and a target j-th stage optical splitter, where i < j, and both i and j are positive integers. The second processing module is further configured to: if the target i-th stage optical splitter is the i-th stage optical splitter to which the target ONU is connected, and the target j-th stage optical splitter is the j-th stage optical splitter to which the target ONU is connected, use the target i-th stage optical splitter as the i-th stage optical splitter to which the target j-th stage optical splitter is connected; use the downstream port of the target i-th stage optical splitter to which the target ONU is connected as the downstream port of the target i-th stage optical splitter to which the target j-th stage optical splitter is connected.
[0027] In an embodiment of the present application, the second processing module is further configured to: extract a target serial number from the reconnection request; determine the candidate ONU identified by the target serial number as the target ONU.
[0028] In an embodiment of the present application, after using the currently traversed downstream port as the downstream port of the target optical splitter to which the target ONU is connected, the second processing module is further configured to: establish an association relationship between the target serial number and the target optical splitter; obtain a target i-th stage optical splitter having an association relationship with the target serial number; obtain a target j-th stage optical splitter having an association relationship with the target serial number; establish an association relationship between the target i-th stage optical splitter and the target j-th stage optical splitter; where i < j, and both i and j are positive integers.
[0029] In an embodiment of the present application, the second processing module is further configured to: establish an association relationship between the target serial number and the downstream port of the target optical splitter to which the target ONU is connected; obtain the downstream port of the target i-th stage optical splitter having an association relationship with the target serial number as the downstream port of the target i-th stage optical splitter to which the target ONU is connected; establish an association relationship between the target j-th stage optical splitter and the downstream port of the target i-th stage optical splitter to which the target ONU is connected.
[0030] In one embodiment of the present application, if the target splitter includes a target first-level splitter and a target second-level splitter, the second processing module is also used to: obtain the number M of downstream ports of the target first-level splitter and the number N of downstream ports of the target second-level splitter, where M and N are both positive integers; create a target column vector of M rows and a target row vector of N columns for the target ONU; determine the values of the elements of the target column vector based on the downstream port of the target first-level splitter to which the target ONU is connected; determine the values of the elements of the target row vector based on the downstream port of the target second-level splitter to which the target ONU is connected.
[0031] In one embodiment of the present application, the second processing module is also used to: if the target ONU is connected to the sth downstream port of the target first-level splitter, determine the first set value as the value of the element of the sth from last row of the target column vector, where s is a positive integer not greater than M; determine the second set value as the value of the remaining elements other than the element of the sth from last row of the target column vector.
[0032] In one embodiment of the present application, the second processing module is also used to: if the target ONU is connected to the tth downstream port of the target second-level splitter, determine the first set value as the value of the element of the tth from-to-last column of the target row vector, where t is a positive integer not greater than N; determine the second set value as the value of the remaining elements other than the element of the tth from-to-last column of the target row vector.
[0033] In one embodiment of the present application, the first set value is 1, and the second set value is 0; the second processing module is also used to: obtain the product of the target column vector and the target row vector as the relationship matrix of the target ONU; identify that the value of the element in the xth row and yth column in the relationship matrix of the target ONU is 1, where x is a positive integer not greater than M, and y is a positive integer not greater than N; determine that the target ONU accesses the (M+1-x)th downstream port of the target first-level splitter; determine that the target ONU accesses the (N+1-y)th downstream port of the target second-level splitter.
[0034] In one embodiment of the present application, the second processing module is further used to: sum the relationship matrix of each candidate ONU connected to a passive optical network PON port in the ODN to obtain a total relationship matrix; and obtain a resource inventory result of the ODN based on the total relationship matrix.
[0035] In one embodiment of the present application, the second processing module is further used to: identify whether the optical power change trends of multiple target ONUs connected to the target splitter are consistent, wherein the multiple target ONUs include a target first ONU and multiple target second ONUs; if the optical power change trends of the multiple target second ONUs are consistent, and the optical power change trend of the target first ONU is inconsistent with the optical power change trend of any target second ONU, mark the target first ONU as an abnormal ONU; and generate indication information for instructing a location audit of the abnormal ONU.
[0036] The third aspect of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the network resource inventory method as described above is implemented.
[0037] The electronic device of the embodiment of the present application can unplug fibers from multiple downstream ports of the splitter one by one and monitor reconnection requests. If a reconnection request is monitored, the splitter is used as the splitter accessed by the ONU, and the splitter accessed by the ONU can be determined, so that the resource inventory of the ONU hung under the splitter can be realized, which has the advantages of convenience, speed, high efficiency of network resource inventory, etc.
[0038] The fourth aspect of the present application provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the network resource inventory method as described above is implemented.
[0039] The computer-readable storage medium of the embodiment of the present application can unplug fibers from multiple downstream ports of the splitter one by one and listen to reconnection requests. If a reconnection request is listened to, the splitter is used as the splitter accessed by the ONU, and the splitter accessed by the ONU can be determined, so that the resource inventory of the ONU hung under the splitter can be realized, which has the advantages of convenience, speed, high efficiency of network resource inventory, etc.
[0040] Additional aspects and advantages of the present application will be given in part in the following description, and in part will become apparent from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0042] Figure 1 A flowchart of a network resource inventory method according to an embodiment of the present application;
[0043] Figure 2 A flowchart of a network resource inventory method according to another embodiment of the present application;
[0044] Figure 3 A flowchart of a network resource inventory method according to another embodiment of the present application;
[0045] Figure 4 A flowchart of a network resource inventory method according to another embodiment of the present application;
[0046] Figure 5 A schematic diagram of the structure of a network resource inventory device according to an embodiment of the present application;
[0047] Figure 6 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0048] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0049] The following describes the network resource inventory method, device, electronic device and storage medium of the embodiments of the present application with reference to the accompanying drawings.
[0050] Figure 1 The figure is a flowchart of a network resource inventory method according to an embodiment of the present application.
[0051] like Figure 1 As shown, the network resource inventory method of the embodiment of the present application includes:
[0052] S101, starting from the first downstream port of a target optical splitter in an optical distribution network ODN, determining the first downstream port of the target optical splitter as a currently traversed downstream port, and pulling out fibers from the currently traversed downstream port.
[0053] It should be noted that the execution subject of the network resource inventory method of the embodiment of the present application can be an electronic device, and the network resource inventory device of the embodiment of the present application can be configured in any electronic device so that the electronic device can execute the network resource inventory method of the embodiment of the present application. Among them, the electronic device may include a workstation, a server, a computer, a user terminal and other intelligent devices, among which the user terminal includes but is not limited to a mobile phone, a computer, an intelligent voice interaction device, a smart home appliance, a vehicle-mounted terminal, etc.
[0054] It should be noted that there are no excessive restrictions on the target optical splitter, for example, it can be any optical splitter in an ODN (Optical Distribution Network).
[0055] In one embodiment, the target optical splitter includes a target i-th stage optical splitter and a target j-th stage optical splitter, where i < j, and both i and j are positive integers. For example, i = 1, j = 2, or i = 1, j = 3, or i = 2, j = 3.
[0056] In one embodiment, the target optical splitter includes a target first-stage optical splitter and a target second-stage optical splitter.
[0057] It should be noted that the target optical splitter includes a plurality of downstream ports, and there is no excessive limitation on the number of downstream ports of the target optical splitter. For example, it can be 8. The number of downstream ports of different target optical splitters may be different.
[0058] It should be noted that unplugging the optical fiber from the currently traversed downstream port means pulling out the optical fiber cable from the currently traversed downstream port.
[0059] S102, if a reconnection request sent by the target Optical Network Unit (ONU) is monitored, use the target optical splitter as the optical splitter to which the target ONU is connected.
[0060] S103, update the next downstream port of the currently traversed downstream port to the currently traversed downstream port, and return to perform unplugging the optical fiber from the currently traversed downstream port and subsequent steps until the last downstream port of the target optical splitter is traversed.
[0061] It can be understood that after unplugging the optical fiber from the currently traversed downstream port, if a reconnection request sent by the target ONU (Optical Network Unit) is monitored, it indicates that the target ONU is connected to the target optical splitter before unplugging the optical fiber from the currently traversed downstream port, then use the target optical splitter as the optical splitter to which the target ONU is connected.
[0062] It should be noted that if the target optical splitter is the last-stage optical splitter, the target ONU directly sends a reconnection request to the target optical splitter. For example, taking the last-stage optical splitter as the second-stage optical splitter, if the target optical splitter is the target second-stage optical splitter, the target ONU sends a reconnection request to the target second-stage optical splitter, and this reconnection request can be monitored.
[0063] On the contrary, if the target optical splitter is not the last-stage optical splitter, the target ONU directly sends a reconnection request to the last-stage optical splitter, and the last-stage optical splitter forwards the reconnection request to the target optical splitter. For example, taking the last-stage optical splitter as the second-stage optical splitter, if the target optical splitter is the target first-stage optical splitter, the target ONU sends a reconnection request to the target second-stage optical splitter, and the target second-stage optical splitter forwards the reconnection request to the target first-stage optical splitter, and this reconnection request can be monitored.
[0064] In one embodiment, a first port of a PON (Passive Optical Network) network analyzer is connected to an uplink port of a target splitter, and a second port of the PON network analyzer is connected to a PON port of an OLT (Optical Line Terminal), that is, the uplink port of the target splitter is serially connected to the PON network analyzer, and a reconnection request can be monitored through the PON network analyzer.
[0065] In one implementation, the method further includes extracting a target sequence number from the reconnection request, and determining the candidate ONU identified by the target sequence number as the target ONU, so as to determine the target ONU.
[0066] It should be noted that the target serial number is also called an SN (Serial Number) code, and there are no excessive restrictions on the target serial number. For example, it may include a downlink SN code sent by the OLT to the target ONU.
[0067] In one embodiment, after the target optical splitter is used as the optical splitter accessed by the target ONU, the currently traversed downstream port is also used as the downstream port of the target optical splitter accessed by the target ONU. It can be understood that after the currently traversed downstream port is unplugged, if a reconnection request sent by the target ONU is monitored, indicating that before the currently traversed downstream port is unplugged, the target ONU accesses the currently traversed downstream port, then the currently traversed downstream port is used as the downstream port of the target optical splitter accessed by the target ONU. In this way, the determination of the downstream port of the optical splitter accessed by the ONU can be realized.
[0068] As another possible implementation, after unplugging the fiber of the currently traversed downstream port, if no reconnection request is monitored, it indicates that no ONU is connected to the currently traversed downstream port before unplugging the fiber of the currently traversed downstream port.
[0069] For example, if the ODN includes a first-level optical splitter A, a second-level optical splitter B, a second-level optical splitter C, a second-level optical splitter D, and a second-level optical splitter E, the number of downlink ports of the above optical splitters is 8.
[0070] The resource inventory process of the first-level splitter A is as follows: starting from the first downstream port of the first-level splitter A, the first downstream port of the first-level splitter A is used as the currently traversed downstream port, and the fiber of the currently traversed downstream port is unplugged. If a reconnection request sent by ONU1 and ONU2 is monitored, the first-level splitter A is used as the splitter accessed by ONU1 and ONU2, and the first downstream port of the first-level splitter A is used as the downstream port of the first-level splitter A accessed by ONU1 and ONU2.
[0071] The second downstream port of the first-level splitter A is used as the currently traversed downstream port, and the fiber of the currently traversed downstream port is unplugged. If a reconnection request sent by ONU9 and ONU10 is monitored, the first-level splitter A is used as the splitter accessed by ONU9 and ONU10, and the second downstream port of the first-level splitter A is used as the downstream port of the first-level splitter A accessed by ONU9 and ONU10.
[0072] The third downstream port of the first-level splitter A is used as the currently traversed downstream port, and the fiber of the currently traversed downstream port is unplugged. If the reconnection request sent by ONU17 and ONU18 is monitored, the first-level splitter A is used as the splitter accessed by ONU17 and ONU18, and the third downstream port of the first-level splitter A is used as the downstream port of the first-level splitter A accessed by ONU17 and ONU18.
[0073] The fourth downstream port of the first-stage optical splitter A is used as the currently traversed downstream port, and the fiber of the currently traversed downstream port is unplugged, and no reconnection request sent by any ONU is monitored.
[0074] The fifth downstream port of the first-stage optical splitter A is used as the currently traversed downstream port, and the fiber of the currently traversed downstream port is unplugged, and no reconnection request sent by any ONU is monitored.
[0075] The sixth downstream port of the first-stage optical splitter A is used as the currently traversed downstream port, and the fiber of the currently traversed downstream port is unplugged, and no reconnection request sent by any ONU is monitored.
[0076] The 7th downstream port of the first-level splitter A is used as the currently traversed downstream port, and the fiber of the currently traversed downstream port is unplugged. If the reconnection request sent by ONU55 and ONU56 is monitored, the first-level splitter A is used as the splitter accessed by ONU55 and ONU56, and the 7th downstream port of the first-level splitter A is used as the downstream port of the first-level splitter A accessed by ONU55 and ONU56.
[0077] The 8th downstream port of the first-stage optical splitter A is used as the currently traversed downstream port, and the fiber of the currently traversed downstream port is unplugged, and no reconnection request sent by any ONU is monitored.
[0078] It should be noted that the resource inventory process of the second-level splitter B, the second-level splitter C, the second-level splitter D, and the second-level splitter E can all refer to the resource inventory process of the first-level splitter A, and will not be repeated here.
[0079] The resource inventory process of the second-level splitter B includes: using the second-level splitter B as the splitter accessed by ONU1, and using the first downstream port of the second-level splitter B as the downstream port of the second-level splitter B accessed by ONU1, using the second-level splitter B as the splitter accessed by ONU2, and using the second downstream port of the second-level splitter B as the downstream port of the second-level splitter B accessed by ONU2.
[0080] The resource inventory process of the second-level splitter C includes: using the second-level splitter C as the splitter to which ONU9 accesses, and using the first downstream port of the second-level splitter C as the downstream port of the second-level splitter C to which ONU9 accesses, using the second-level splitter C as the splitter to which ONU10 accesses, and using the second downstream port of the second-level splitter C as the downstream port of the second-level splitter C to which ONU10 accesses.
[0081] The resource inventory process of the second-level splitter D includes: using the second-level splitter D as the splitter to which ONU17 is connected, and using the first downstream port of the second-level splitter D as the downstream port of the second-level splitter D to which ONU17 is connected, using the second-level splitter D as the splitter to which ONU18 is connected, and using the second downstream port of the second-level splitter D as the downstream port of the second-level splitter D to which ONU18 is connected.
[0082] The resource inventory process of the second-level splitter E includes: using the second-level splitter E as the splitter to which ONU55 is connected, and using the 7th downstream port of the second-level splitter E as the downstream port of the second-level splitter B to which ONU55 is connected, using the second-level splitter E as the splitter to which ONU56 is connected, and using the 8th downstream port of the second-level splitter E as the downstream port of the second-level splitter E to which ONU56 is connected.
[0083] In summary, according to the network resource inventory method of the embodiment of the present application, starting from the first downstream port of the target optical splitter in the ODN, the first downstream port of the target optical splitter is determined as the currently traversed downstream port, and the fiber is unplugged for the currently traversed downstream port. If a reconnection request sent by the target ONU is monitored, the target optical splitter is used as the optical splitter accessed by the target ONU, and the next downstream port of the currently traversed downstream port is updated as the currently traversed downstream port, and the fiber unplugging and subsequent steps of the currently traversed downstream port are returned to execute until the last downstream port of the target optical splitter is traversed. In this way, the multiple downstream ports of the optical splitter can be unplugged one by one, and the reconnection request can be monitored. If a reconnection request is monitored, the optical splitter is used as the optical splitter accessed by the ONU, and the determination of the optical splitter accessed by the ONU can be realized, and the resource inventory of the ONU hanging under the optical splitter can be realized, which has the advantages of convenience and high efficiency of network resource inventory.
[0084] Figure 2 The figure is a flowchart of a network resource inventory method according to another embodiment of the present application.
[0085] like Figure 2 As shown, the network resource inventory method of the embodiment of the present application includes:
[0086] S201, starting from the first downstream port of the target optical splitter in the optical distribution network ODN, determining the first downstream port of the target optical splitter as the currently traversed downstream port, and pulling out the fiber of the currently traversed downstream port.
[0087] S202: If a reconnection request sent by a target optical network unit (ONU) is monitored, the target optical splitter is used as the optical splitter accessed by the target ONU.
[0088] S203, using the currently traversed downstream port as the downstream port of the target optical splitter to be accessed by the target ONU.
[0089] S204, updating the next downstream port of the currently traversed downstream port as the currently traversed downstream port, and returning to execute fiber pulling for the currently traversed downstream port and subsequent steps until the last downstream port of the target optical splitter is traversed.
[0090] For the relevant contents of steps S201 - S204 , please refer to the above embodiment and will not be described again here.
[0091] S205: If the target i-th level optical splitter is the i-th level optical splitter accessed by the target ONU, and the target j-th level optical splitter is the j-th level optical splitter accessed by the target ONU, use the target i-th level optical splitter as the i-th level optical splitter accessed by the target j-th level optical splitter.
[0092] At S206, use the downstream port of the target i-th level splitter to which the target ONU is connected as the downstream port of the target i-th level splitter to which the target j-th level splitter is connected.
[0093] It should be noted that the target splitter includes the target i-th level splitter and the target j-th level splitter, where i < j, and both i and j are positive integers.
[0094] For example, continuing with the above-mentioned first-level splitter A, second-level splitters B, C, D, and E, at this time i = 1 and j = 2.
[0095] If the first-level splitter A is the first-level splitter to which ONU1 and ONU2 are connected, and the second-level splitter B is the second-level splitter to which ONU1 and ONU2 are connected, use the first-level splitter A as the first-level splitter to which the second-level splitter B is connected, and use the downstream port of the first-level splitter A to which ONU1 and ONU2 are connected as the downstream port of the first-level splitter A to which the second-level splitter B is connected, that is, use the first downstream port of the first-level splitter A as the downstream port of the first-level splitter A to which the second-level splitter B is connected. It should be noted that in this embodiment, the first-level splitter A is the target first-level splitter, and the second-level splitter B is the target second-level splitter.
[0096] If the first-level splitter A is the first-level splitter to which ONU9 and ONU10 are connected, and the second-level splitter C is the second-level splitter to which ONU9 and ONU10 are connected, use the first-level splitter A as the first-level splitter to which the second-level splitter C is connected, and use the downstream port of the first-level splitter A to which ONU9 and ONU10 are connected as the downstream port of the first-level splitter A to which the second-level splitter C is connected, that is, use the second downstream port of the first-level splitter A as the downstream port of the first-level splitter A to which the second-level splitter C is connected. It should be noted that in this embodiment, the first-level splitter A is the target first-level splitter, and the second-level splitter C is the target second-level splitter.
[0097] If the first-level splitter A is the first-level splitter to which ONU17 and ONU18 are connected, and the second-level splitter D is the second-level splitter to which ONU17 and ONU18 are connected, use the first-level splitter A as the first-level splitter to which the second-level splitter D is connected, and use the downstream port of the first-level splitter A to which ONU17 and ONU18 are connected as the downstream port of the first-level splitter A to which the second-level splitter D is connected, that is, use the third downstream port of the first-level splitter A as the downstream port of the first-level splitter A to which the second-level splitter D is connected. It should be noted that in this embodiment, the first-level splitter A is the target first-level splitter, and the second-level splitter D is the target second-level splitter.
[0098] If the first-level optical splitter A is the first-level optical splitter accessed by ONU55 and ONU56, and the second-level optical splitter E is the second-level optical splitter accessed by ONU55 and ONU56, use the first-level optical splitter A as the first-level optical splitter accessed by the second-level optical splitter E, and use the downstream port of the first-level optical splitter A accessed by ONU55 and ONU56 as the downstream port of the first-level optical splitter A accessed by the second-level optical splitter E, that is, use the 7th downstream port of the first-level optical splitter A as the downstream port of the first-level optical splitter A accessed by the second-level optical splitter E. It should be noted that in this embodiment, the first-level optical splitter A is the target first-level optical splitter, and the second-level optical splitter E is the target second-level optical splitter.
[0099] In summary, according to the network resource inventory method of the embodiment of the present application, if the target i-th level optical splitter is the i-th level optical splitter accessed by the target ONU, and the target j-th level optical splitter is the j-th level optical splitter accessed by the target ONU, use the target i-th level optical splitter as the i-th level optical splitter accessed by the target j-th level optical splitter, and use the downstream port of the target i-th level optical splitter accessed by the target ONU as the downstream port of the target i-th level optical splitter accessed by the target j-th level optical splitter. Thus, it is possible to consider different levels of optical splitters accessed by the same ONU, implement the resource inventory of the remaining optical splitters hanging under the optical splitter, and consider the downstream ports of the optical splitters accessed by the ONU to implement the resource inventory of the remaining optical splitters hanging under the downstream ports of the optical splitter.
[0100] Figure 3 It is a schematic flowchart of the network resource inventory method according to another embodiment of the present application.
[0101] Such as Figure 3 As shown, after using the currently traversed downstream port as the downstream port of the target optical splitter accessed by the target ONU, it further includes:
[0102] S301, establish an association relationship between the target serial number and the target optical splitter.
[0103] S302, obtain the target i-th level optical splitter having an association relationship with the target serial number.
[0104] S303, obtain the target j-th level optical splitter having an association relationship with the target serial number.
[0105] S304, establish an association relationship between the target i-th level optical splitter and the target j-th level optical splitter.
[0106] It should be noted that i < j, and both i and j are positive integers. There is no excessive limitation on the association relationship. For example, it may include a mapping relationship, a correspondence relationship, etc. For the relevant content of the target i-th level optical splitter and the target j-th level optical splitter, reference can be made to the above embodiment, which will not be elaborated here.
[0107] It should be noted that the association between the target serial number and the target splitter is used to characterize that the target splitter is the splitter accessed by the target ONU identified by the target serial number, and the association between the target i-th level splitter and the target j-th level splitter is used to characterize that the target i-th level splitter is the i-th level splitter accessed by the target j-th level splitter.
[0108] For example, continuing to take the above-mentioned first-level splitter A, second-level splitter B, second-level splitter C, second-level splitter D, and second-level splitter E as an example, at this time i=1, j=2, the target sequence number is the downlink SN code, the association relationship between the downlink SN code and the first-level splitter is shown in Table 1, the association relationship between the downlink SN code and the second-level splitter is shown in Table 2, and the association relationship between the first-level splitter and the second-level splitter is shown in Table 3.
[0109] Table 1 Correlation between downlink SN code and first-stage optical splitter
[0110]
[0111] Table 2 Correlation between downlink SN code and second-level optical splitter
[0112]
[0113] Table 3 Correlation between the first-stage splitter and the second-stage splitter
[0114]
[0115] For example, taking the downstream SN code of 4857544300000001 as an example, an association relationship can be established between 4857544300000001 and the first-level optical splitter A, and an association relationship can be established between 4857544300000001 and the second-level optical splitter B, the first-level optical splitter A associated with 4857544300000001 is obtained, the second-level optical splitter B associated with 4857544300000001 is obtained, and an association relationship is established between the first-level optical splitter A and the second-level optical splitter B. It should be noted that in this embodiment, the first-level optical splitter A is the target first-level optical splitter, and the second-level optical splitter B is the target second-level optical splitter.
[0116] S305: Establish an association relationship between the target serial number and the downstream port of the target optical splitter to which the target ONU is connected.
[0117] S306, obtaining a downstream port of the target i-th level optical splitter associated with the target serial number as the downstream port of the target i-th level optical splitter to be accessed by the target ONU.
[0118] S307 , establishing an association relationship between the target j-th level optical splitter and the downlink port of the target i-th level optical splitter to which the target ONU is connected.
[0119] It should be noted that the association between the target serial number and the downstream port of the target optical splitter accessed by the target ONU is used to characterize the downstream port of the target optical splitter accessed by the target ONU, which is the downstream port of the target optical splitter accessed by the target ONU identified by the target serial number.
[0120] It should be noted that the association relationship between the target j-th level splitter and the downstream port of the target i-th level splitter accessed by the target ONU is used to characterize that the downstream port of the target i-th level splitter accessed by the target ONU is the downstream port of the target i-th level splitter accessed by the target j-th level splitter.
[0121] For example, the target sequence number is a downlink SN code, the association relationship between the downlink SN code and the downlink port of the first-level splitter is shown in Table 1, the association relationship between the downlink SN code and the downlink port of the second-level splitter is shown in Table 2, and the association relationship between the second-level splitter and the downlink port of the first-level splitter is shown in Table 3.
[0122] For example, taking the downstream SN code of 4857544300000001 as an example, an association relationship between 4857544300000001 and the first downstream port of the first-level optical splitter A can be established, and the downstream port of the first-level optical splitter associated with 4857544300000001 is obtained as the downstream port of the first-level optical splitter A accessed by ONU1, that is, the first downstream port of the first-level optical splitter A is obtained as the downstream port of the first-level optical splitter A accessed by ONU1, and an association relationship is established between the second-level optical splitter B and the first downstream port of the first-level optical splitter A. It should be noted that in this embodiment, the first-level optical splitter A is the target first-level optical splitter, and the second-level optical splitter B is the target second-level optical splitter.
[0123] In summary, according to the network resource inventory method of the embodiment of the present application, different levels of splitters that have an association relationship with the same target serial number can be taken into account, and an association relationship between splitters of different levels can be established to achieve resource inventory of the remaining splitters hung under the splitter. The downstream port of the splitter that has a mapping relationship with the target serial number can be taken into account, and an association relationship between the splitter and the downstream ports of the remaining splitters can be established to achieve resource inventory of the remaining splitters hung under the downstream port of the splitter.
[0124] Figure 4 The figure is a flowchart of a network resource inventory method according to another embodiment of the present application.
[0125] like Figure 4As shown, the network resource inventory method of the embodiment of the present application includes:
[0126] S401, starting from the first downstream port of the target optical splitter in the optical distribution network ODN, determining the first downstream port of the target optical splitter as the currently traversed downstream port, and pulling out the fiber of the currently traversed downstream port.
[0127] S402: If a reconnection request sent by a target optical network unit (ONU) is monitored, the target optical splitter is used as the optical splitter accessed by the target ONU.
[0128] S403: Use the currently traversed downstream port as the downstream port of the target optical splitter to be accessed by the target ONU.
[0129] S404, updating the next downstream port of the currently traversed downstream port to the currently traversed downstream port, and returning to execute fiber pulling for the currently traversed downstream port and subsequent steps until the last downstream port of the target optical splitter is traversed.
[0130] For the relevant contents of steps S401 - S404 , please refer to the above embodiment and will not be described again here.
[0131] S405 , obtaining the number M of downlink ports of the target first-level optical splitter and the number N of downlink ports of the target second-level optical splitter, wherein both M and N are positive integers.
[0132] S406: Create a target column vector of M rows and a target row vector of N columns for the target ONU.
[0133] It should be noted that the target optical splitter includes a target first-level optical splitter and a target second-level optical splitter. M and N may be the same or different, and there are no excessive restrictions on M and N. For example, M=N=8. The target column vectors of different target ONUs may be different, and the target row vectors of different target ONUs may be different.
[0134] For example, taking M=8, the target column vector F is as follows:
[0135]
[0136] Among them, F s is the value of the element in the s-th row of the target column vector F, where s is a positive integer not greater than 8.
[0137] For example, taking N=8 as an example, the target row vector G is as follows:
[0138] G=[G8 G7 G6 G5 G4 G3 G2 G1]
[0139] Among them, G tis the value of the element in the t-th row of the target row vector G, where t is a positive integer not greater than 8.
[0140] S407 , determining values of elements of a target column vector based on a downstream port of a target first-stage optical splitter to which the target ONU is connected.
[0141] In one embodiment, based on the downstream port of the target first-level splitter to which the target ONU is connected, the values of the elements of the target column vector are determined, including if the target ONU is connected to the s-th downstream port of the target first-level splitter, determining the first set value as the value of the element of the s-th-to-last row of the target column vector, wherein s is a positive integer not greater than M, and determining the second set value as the values of the remaining elements other than the element of the s-th-to-last row of the target column vector.
[0142] It should be noted that there are no excessive restrictions on the first set value and the second set value. For example, the first set value is 1 and the second set value is 0.
[0143] For example, continuing to take the above-mentioned first-level splitter A, second-level splitter B, second-level splitter C, second-level splitter D, and second-level splitter E as an example, at this time i=1, j=2, the first set value is 1, the second set value is 0, and M=8.
[0144] An 8-row target column vector F can be created for ONU1. ONU1 is connected to the first downstream port of the first-stage optical splitter A. Then 1 is determined as the value of the element in the last row of the target column vector F, and 0 is determined as the value of the remaining elements except the element in the last row of the target column vector F. That is, the target column vector F of ONU1 is as follows:
[0145]
[0146] An 8-row target column vector F can be created for ONU9. ONU9 is connected to the second downstream port of the first-stage optical splitter A. Then, 1 is determined as the value of the second-to-last row element of the target column vector F, and 0 is determined as the value of the remaining elements other than the second-to-last row element of the target column vector F. That is, the target column vector F of ONU9 is as follows:
[0147]
[0148] In one embodiment, based on the downstream port of the target first-level splitter to which the target ONU is connected, the values of the elements of the target column vector are determined, including if the target ONU is connected to the s-th downstream port of the target first-level splitter, determining the first set value as the value of the s-th row element of the target column vector, wherein s is a positive integer not greater than M, and determining the second set value as the values of the remaining elements other than the elements of the s-th row of the target column vector.
[0149] S408 , determining the value of the element of the target row vector based on the downstream port of the target second-level optical splitter to which the target ONU is connected.
[0150] In one embodiment, based on the downstream port of the target second-level splitter to which the target ONU is connected, the values of the elements of the target row vector are determined, including if the target ONU is connected to the tth downstream port of the target second-level splitter, determining the first set value as the value of the element in the tth-to-last column of the target row vector, wherein t is a positive integer not greater than N, and determining the second set value as the values of the remaining elements other than the element in the tth-to-last column of the target row vector.
[0151] For example, continuing to take the above-mentioned first-level spectrometer A, second-level spectrometer B, second-level spectrometer C, second-level spectrometer D, and second-level spectrometer E as an example, at this time i=1, j=2, the first set value is 1, the second set value is 0, and N=8.
[0152] An 8-column target row vector G can be created for ONU1. ONU1 is connected to the first downstream port of the second-stage optical splitter B. Then 1 is determined as the value of the element in the last column of the target row vector G, and 0 is determined as the value of the remaining elements except the element in the last column of the target row vector G. That is, the target row vector G of ONU1 is as follows:
[0153] G=[0 0 0 0 0 0 0 1]
[0154] An 8-column target row vector G can be created for ONU9. ONU1 is connected to the first downstream port of the second-stage optical splitter C. Then 1 is determined as the value of the element in the last column of the target row vector G, and 0 is determined as the value of the remaining elements except the element in the last column of the target row vector G. That is, the target row vector G of ONU9 is as follows:
[0155] G=[0 0 0 0 0 0 0 1]
[0156] An 8-column target row vector G can be created for ONU55. ONU55 is connected to the 7th downstream port of the second-stage optical splitter E. Then, 1 is determined as the value of the element of the 7th column from the end of the target row vector G, and 0 is determined as the value of the remaining elements other than the element of the 7th column from the end of the target row vector G. That is, the target row vector G of ONU55 is as follows:
[0157] G=[0 1 0 0 0 0 0 0]
[0158] In one embodiment, based on the downstream port of the target second-level splitter to which the target ONU is connected, the values of the elements of the target row vector are determined, including if the target ONU is connected to the tth downstream port of the target second-level splitter, determining the first set value as the value of the element in the tth-to-last column of the target row vector, wherein t is a positive integer not greater than N, and determining the second set value as the values of the remaining elements other than the element in the tth-to-last column of the target row vector.
[0159] In one embodiment, the first set value is 1, the second set value is 0, and the method also includes obtaining the product of the target column vector and the target row vector as the relationship matrix of the target ONU, identifying that the value of the element in the xth row and yth column in the relationship matrix of the target ONU is 1, wherein x is a positive integer not greater than M, and y is a positive integer not greater than N, determining that the ONU accesses the (M+1-x)th downstream port of the target first-level splitter, and determining that the ONU accesses the (N+1-y)th downstream port of the target second-level splitter.
[0160] For example, the target row vector F and target row vector G of ONU1 are as follows:
[0161]
[0162] G=[0 0 0 0 0 0 0 1]
[0163] The product of the target column vector F and the target row vector G of ONU1 can be obtained as the relationship matrix H of ONU1. The relationship matrix H of ONU1 is as follows:
[0164]
[0165] The value of the element in the 8th row and 8th column in the relationship matrix H identifying ONU1 is 1, x=y=8, M+1-x=1, N+1-y=1, which determines that ONU1 is connected to the 1st downstream port of the first-level splitter A, and determines that ONU1 is connected to the 1st downstream port of the second-level splitter B.
[0166] For example, the target row vector F and target row vector G of ONU9 are as follows:
[0167]
[0168] G=[0 0 0 0 0 0 0 1]
[0169] The product of the target column vector F and the target row vector G of ONU9 can be obtained as the relationship matrix H of ONU9. The relationship matrix H of ONU9 is as follows:
[0170]
[0171] The value of the element in the 7th row and 8th column in the relationship matrix H identifying ONU9 is 1, x=7, y=8, M+1-x=2, N+1-y=1, which determines that ONU9 accesses the second downstream port of the first-level splitter A, and determines that ONU9 accesses the first downstream port of the second-level splitter C.
[0172] In summary, according to the network resource inventory method of the embodiment of the present application, the number M of the downstream ports of the target first-level splitter and the number N of the downstream ports of the target second-level splitter are obtained, where M and N are both positive integers, and a target column vector of M rows and a target row vector of N columns are created for the target ONU. The values of the elements of the target column vector are determined based on the downstream port of the target first-level splitter accessed by the target ONU, and the values of the elements of the target row vector are determined based on the downstream port of the target second-level splitter accessed by the target ONU. Thus, a column vector and a row vector can be created for each ONU, the column vector is used to characterize the downstream port of the first-level splitter accessed by the ONU, and the row vector is used to characterize the downstream port of the second-level splitter accessed by the ONU.
[0173] Based on any of the above embodiments, the method further includes summing the relationship matrix of each candidate ONU connected to a passive optical network PON port in the ODN to obtain a total relationship matrix, and obtaining a resource inventory result of the ODN based on the total relationship matrix.
[0174] In one implementation, a PON port is connected to a target first-level optical splitter, and a resource inventory result of the ODN is obtained based on the total relationship matrix, including at least one of the following implementations:
[0175] Method 1: Obtain the number of non-zero rows in the total relationship matrix as the number L of target second-level optical splitters attached to the target first-level optical splitter, where L is a positive integer.
[0176] Method 2: Obtain the number of elements with a value of 1 in the total relationship matrix as the number P of candidate ONUs attached to the target first-level optical splitter.
[0177] Method 3: Obtain the number of elements with a value of 1 in the kth row from the end of the total relationship matrix as the number of candidate ONUs connected to the kth downstream port of the target first-level optical splitter, where k is a positive integer not greater than M.
[0178] Method 4: Obtain the number of elements with a value of 1 in the kth row from the end of the total relationship matrix as the number of candidate ONUs attached to the uth target second-level splitter, where u is a positive integer not greater than L.
[0179] Mode 5, identifying the value of the element in the kth to last row and the rth to last column in the total relationship matrix as 1, and determining the ONU connected to the rth downstream port of the uth target second-level optical splitter, where r is a positive integer not greater than N.
[0180] It should be noted that the sum of the number of candidate ONUs connected to each target second-level optical splitter is the number P of candidate ONUs connected to the target first-level optical splitter.
[0181] For example, continue to take the first-level splitter A, the second-level splitter B, the second-level splitter C, the second-level splitter D, and the second-level splitter E as an example, at this time i=1, j=2, the first setting value is 1, the second setting value is 0, M=N=8. The relationship matrix H of ONU1 is as follows:
[0182]
[0183] The relationship matrix H of ONU2 is as follows:
[0184]
[0185] The relationship matrix H of ONU9 is as follows:
[0186]
[0187] The relationship matrix H of ONU10 is as follows:
[0188]
[0189] The relationship matrix H of ONU17 is as follows:
[0190]
[0191] The relationship matrix H of ONU18 is as follows:
[0192]
[0193] The relationship matrix H of ONU55 is as follows:
[0194]
[0195] The relationship matrix H of ONU56 is as follows:
[0196]
[0197] The relationship matrices of ONU1, 2, 9, 10, 17, 18, 55, and 56 can be summed to obtain a total relationship matrix I, which is as follows:
[0198]
[0199] The number 4 of non-zero rows in the total relationship matrix I can be obtained as the number L of second-stage optical splitters attached to the first-stage optical splitter A.
[0200] The number 8 of the elements whose values are 1 in the total relationship matrix I can be obtained as the number P of candidate ONUs connected to the first-level optical splitter A.
[0201] The number 2 of elements with a value of 1 in the last row of the total relationship matrix I can be obtained as the number of candidate ONUs connected to the first downstream port of the first-level splitter A and as the number of candidate ONUs connected to the second-level splitter B.
[0202] The number 2 of elements with a value of 1 in the second to last row in the total relationship matrix I can be obtained as the number of candidate ONUs hung under the second downstream port of the first-level splitter A, and as the number of candidate ONUs hung under the second-level splitter C.
[0203] The number 2 of elements with a value of 1 in the third to last row of the total relationship matrix I can be obtained as the number of candidate ONUs connected to the third downstream port of the first-level splitter A and as the number of candidate ONUs connected to the second-level splitter D.
[0204] The number 2 of elements with a value of 1 in the 7th to last row of the total relationship matrix I can be obtained as the number of candidate ONUs connected to the 7th downstream port of the first-level splitter A and as the number of candidate ONUs connected to the second-level splitter E.
[0205] It should be noted that in this embodiment, the second-stage spectrometer B is the first target second-stage spectrometer, the second-stage spectrometer C is the second target second-stage spectrometer, the second-stage spectrometer D is the third target second-stage spectrometer, and the second-stage spectrometer E is the fourth target second-stage spectrometer.
[0206] Identify that the value of the element in the first to last row and the first to last column in the total relationship matrix is 1, and determine that ONU1 is connected to the first downstream port of the second-level splitter B. Identify that the value of the element in the first to last row and the second to last column in the total relationship matrix is 1, and determine that ONU2 is connected to the second downstream port of the second-level splitter B.
[0207] Identify that the value of the element in the second-to-last row and the first-to-last column in the total relationship matrix is 1, and determine that ONU9 is connected to the first downstream port of the second-level splitter C. Identify that the value of the element in the second-to-last row and the second-to-last column in the total relationship matrix is 1, and determine that ONU10 is connected to the second downstream port of the second-level splitter C.
[0208] Identify that the value of the element in the third-to-last row and the first-to-last column in the total relationship matrix is 1, and determine that ONU17 is connected to the first downstream port of the second-level splitter D. Identify that the value of the element in the third-to-last row and the second-to-last column in the total relationship matrix is 1, and determine that ONU18 is connected to the second downstream port of the second-level splitter D.
[0209] Identify that the value of the element in the 7th to last row and 7th to last column in the total relationship matrix is 1, and determine that ONU55 is connected to the 7th downstream port of the second-level splitter E. Identify that the value of the element in the 7th to last row and 8th to last column in the total relationship matrix is 1, and determine that ONU56 is connected to the 8th downstream port of the second-level splitter E.
[0210] On the basis of any of the above embodiments, the method further includes identifying whether the optical power change trends of multiple target ONUs connected to the target optical splitter are consistent, wherein the multiple target ONUs include a target first ONU and multiple target second ONUs, if the optical power change trends of the multiple target second ONUs are consistent, and the optical power change trend of the target first ONU is inconsistent with the optical power change trend of any target second ONU, the target first ONU is marked as an abnormal ONU, and indication information for indicating that the abnormal ONU is to be audited is generated. Thus, the optical power change trends of multiple ONUs connected to the same optical splitter can be taken into account to identify whether the position of the ONU is accurate, and indication information for indicating that the abnormal ONU is to be audited can be generated to inform the user to perform a position audit on the abnormal ONU, and automatic identification of the ONU with abnormal position can be achieved.
[0211] Based on any of the above embodiments, the method further includes obtaining an optical power variation trend of the candidate ONUs, and dividing multiple candidate ONUs with the same optical power variation trend into the same ONU group.
[0212] If the number of candidate ONUs in the ONU group is less than or equal to the number of downstream ports of the second-level optical splitter, multiple candidate ONUs in the ONU group are identified to access the same second-level optical splitter.
[0213] If the number of candidate ONUs in the ONU group is greater than the number of downstream ports of the second-level optical splitter, multiple candidate ONUs in the ONU group are identified to access the same first-level optical splitter.
[0214] After identifying that multiple candidate ONUs in the ONU group are connected to the same second-level optical splitter, the method further includes obtaining a downlink port of the first-level optical splitter to which a candidate first ONU in the ONU group is connected, as a downlink port of the first-level optical splitter to which other candidate ONUs other than the candidate first ONU in the ONU group are connected.
[0215] With the above Figures 1 to 4Corresponding to the network resource inventory method provided by the embodiment, the present application further provides a network resource inventory device. Since the network resource inventory device provided by the embodiments of the present application corresponds to the above-mentioned Figures 1 to 4 network resource inventory method provided by the embodiment, the implementation manners of the network resource inventory method are also applicable to the network resource inventory device provided by the embodiments of the present application, and will not be described in detail in the embodiments of the present application.
[0216] Figure 5 FIG. is a schematic structural diagram of a network resource inventory device according to an embodiment of the present application.
[0217] As Figure 5 shown, the network resource inventory device 100 of the embodiments of the present application may include: a first processing module 110, a second processing module 120, and a third processing module 130.
[0218] The first processing module 110 is configured to start from the first downstream port of the target optical splitter in the optical distribution network (ODN), determine the first downstream port of the target optical splitter as the currently traversed downstream port, and unplug the fiber from the currently traversed downstream port.
[0219] The second processing module 120 is configured to, if a reconnection request sent by the target optical network unit (ONU) is monitored, use the target optical splitter as the optical splitter to which the target ONU is connected.
[0220] The third processing module 130 is configured to update the next downstream port of the currently traversed downstream port as the currently traversed downstream port, and return to perform the fiber unplugging on the currently traversed downstream port and subsequent steps until the last downstream port of the target optical splitter is traversed.
[0221] In an embodiment of the present application, after using the target optical splitter as the optical splitter to which the target ONU is connected, the second processing module 120 is further configured to: use the currently traversed downstream port as the downstream port of the target optical splitter to which the target ONU is connected.
[0222] In an embodiment of the present application, the target optical splitter includes a target i-th level optical splitter and a target j-th level optical splitter, i < j, and both i and j are positive integers. The second processing module 120 is further configured to: if the target i-th level optical splitter is the i-th level optical splitter to which the target ONU is connected, and the target j-th level optical splitter is the j-th level optical splitter to which the target ONU is connected, use the target i-th level optical splitter as the i-th level optical splitter to which the target j-th level optical splitter is connected; use the downstream port of the target i-th level optical splitter to which the target ONU is connected as the downstream port of the target i-th level optical splitter to which the target j-th level optical splitter is connected.
[0223] In an embodiment of the present application, the second processing module 120 is further configured to: extract a target serial number from the reconnection request; and determine the candidate ONU identified by the target serial number as the target ONU.
[0224] In an embodiment of the present application, after using the currently traversed downstream port as the downstream port of the target splitter to which the target ONU is connected, the second processing module 120 is further configured to: establish an association relationship between the target serial number and the target splitter; obtain a target i-th level splitter having an association relationship with the target serial number; obtain a target j-th level splitter having an association relationship with the target serial number; and establish an association relationship between the target i-th level splitter and the target j-th level splitter, where i < j, and both i and j are positive integers.
[0225] In an embodiment of the present application, the second processing module 120 is further configured to: establish an association relationship between the target serial number and the downstream port of the target splitter to which the target ONU is connected; obtain the downstream port of the target i-th level splitter having an association relationship with the target serial number as the downstream port of the target i-th level splitter to which the target ONU is connected; and establish an association relationship between the target j-th level splitter and the downstream port of the target i-th level splitter to which the target ONU is connected.
[0226] In an embodiment of the present application, if the target splitter includes a target first-level splitter and a target second-level splitter, the second processing module 120 is further configured to: obtain the number M of downstream ports of the target first-level splitter and the number N of downstream ports of the target second-level splitter, where both M and N are positive integers; create a target column vector with M rows and a target row vector with N columns for the target ONU; determine the values of the elements of the target column vector based on the downstream port of the target first-level splitter to which the target ONU is connected; and determine the values of the elements of the target row vector based on the downstream port of the target second-level splitter to which the target ONU is connected.
[0227] In an embodiment of the present application, the second processing module 120 is further configured to: if the target ONU is connected to the s-th downstream port of the target first-level splitter, determine the value of the element in the penultimate s-th row of the target column vector as a first set value, where s is a positive integer not greater than M; and determine the values of the remaining elements other than the element in the penultimate s-th row of the target column vector as a second set value.
[0228] In one embodiment of the present application, the second processing module 120 is also used to: if the target ONU is connected to the tth downstream port of the target second-level splitter, determine the first set value as the value of the element of the tth from-to-last column of the target row vector, where t is a positive integer not greater than N; determine the second set value as the values of the remaining elements other than the element of the tth from-to-last column of the target row vector.
[0229] In one embodiment of the present application, the first set value is 1, and the second set value is 0; the second processing module 120 is also used to: obtain the product of the target column vector and the target row vector as the relationship matrix of the target ONU; identify that the value of the element in the xth row and yth column in the relationship matrix of the target ONU is 1, where x is a positive integer not greater than M, and y is a positive integer not greater than N; determine that the target ONU accesses the (M+1-x)th downstream port of the target first-level splitter; determine that the target ONU accesses the (N+1-y)th downstream port of the target second-level splitter.
[0230] In one embodiment of the present application, the second processing module 120 is further used to: sum the relationship matrix of each candidate ONU connected to a passive optical network PON port in the ODN to obtain a total relationship matrix; and obtain a resource inventory result of the ODN based on the total relationship matrix.
[0231] In one embodiment of the present application, the second processing module 120 is further used to: identify whether the optical power change trends of multiple target ONUs connected to the target splitter are consistent, wherein the multiple target ONUs include a target first ONU and multiple target second ONUs; if the optical power change trends of the multiple target second ONUs are consistent, and the optical power change trend of the target first ONU is inconsistent with the optical power change trend of any target second ONU, mark the target first ONU as an abnormal ONU; and generate indication information for instructing a location audit of the abnormal ONU.
[0232] The network resource inventory device of the embodiment of the present application can unplug the fibers of multiple downstream ports of the splitter one by one and monitor the reconnection request. If a reconnection request is monitored, the splitter is used as the splitter accessed by the ONU, and the splitter accessed by the ONU can be determined, so that the resource inventory of the ONU hung under the splitter can be realized, which has the advantages of convenience, speed and high efficiency of network resource inventory.
[0233] In order to implement the above embodiment, Figure 6As shown, the present application also proposes an electronic device 200, comprising: a memory 210, a processor 220, and a computer program stored in the memory 210 and executable on the processor 220. When the processor 220 executes the program, it implements the network resource inventory method proposed in the aforementioned embodiment of the present application.
[0234] The electronic device of the embodiment of the present application can unplug fibers from multiple downstream ports of the splitter one by one and listen to reconnection requests through the processor executing a computer program stored in the memory. If a reconnection request is listened to, the splitter is used as the splitter accessed by the ONU, and the splitter accessed by the ONU can be determined, so that the resources of the ONU hung under the splitter can be checked, which has the advantages of convenience, speed, high efficiency of network resource inventory, etc.
[0235] In order to implement the above embodiments, the present application also proposes a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the network resource inventory method proposed in the above embodiments of the present application is implemented.
[0236] The computer-readable storage medium of the embodiment of the present application can unplug fibers from multiple downstream ports of the splitter one by one and listen to reconnection requests by storing a computer program and being executed by a processor. If a reconnection request is listened to, the splitter is used as the splitter accessed by the ONU, and the splitter accessed by the ONU can be determined, so that the resource inventory of the ONU hung under the splitter can be realized, which has the advantages of convenience, speed, high efficiency of network resource inventory, etc.
[0237] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0238] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0239] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0240] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0241] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0242] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0243] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0244] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A network resource inventory method, characterized in that: Including: Starting from the first downstream port of the target splitter in the optical distribution network (ODN), determining the first downstream port of the target splitter as the currently traversed downstream port, and unplugging the fiber from the currently traversed downstream port. If a reconnection request sent by the target optical network unit (ONU) is monitored, using the target splitter as the splitter to which the target ONU is connected. Updating the next downstream port of the currently traversed downstream port to the currently traversed downstream port, and returning to perform the fiber unplugging on the currently traversed downstream port and its subsequent steps until the last downstream port of the target splitter is traversed.
2. The method according to claim 1, characterized in that After using the target splitter as the splitter to which the target ONU is connected, further including: Using the currently traversed downstream port as the downstream port of the target splitter to which the target ONU is connected.
3. The method according to claim 2, characterized in that The target splitter includes a target i-th level splitter and a target j-th level splitter, where i < j, and both i and j are positive integers. The method further includes: If the target i-th level splitter is the i-th level splitter to which the target ONU is connected, and the target j-th level splitter is the j-th level splitter to which the target ONU is connected, using the target i-th level splitter as the i-th level splitter to which the target j-th level splitter is connected. Using the downstream port of the target i-th level splitter to which the target ONU is connected as the downstream port of the target i-th level splitter to which the target j-th level splitter is connected.
4. The method according to claim 2, characterized in that: The method further includes: Extracting a target serial number from the reconnection request. Determining the candidate ONU identified by the target serial number as the target ONU.
5. The method according to claim 4, characterized in that After using the currently traversed downstream port as the downstream port of the target splitter to which the target ONU is connected, further including: Establishing an association relationship between the target serial number and the target splitter. Obtaining a target i-th level splitter having an association relationship with the target serial number. Obtaining a target j-th level splitter having an association relationship with the target serial number. Establishing an association relationship between the target i-th level splitter and the target j-th level splitter; where i < j, and both i and j are positive integers.
6. The method according to claim 5, characterized in that The method further includes: Establishing an association relationship between the target serial number and the downstream port of the target splitter to which the target ONU is connected. Obtaining the downstream port of the target i-th level splitter having an association relationship with the target serial number as the downstream port of the target i-th level splitter to which the target ONU is connected. Establishing an association relationship between the target j-th level splitter and the downstream port of the target i-th level splitter to which the target ONU is connected.
7. The method according to claim 3, characterized in that If the target splitter includes a target first-level splitter and a target second-level splitter, the method further includes: Obtaining the number M of the downstream ports of the target first-level splitter and the number N of the downstream ports of the target second-level splitter, where M and N are both positive integers. Creating a target column vector with M rows and a target row vector with N columns for the target ONU. Determine the value of the element of the target column vector based on the downlink port of the target first-level optical splitter accessed by the target ONU; Based on the downlink port of the target second-level optical splitter accessed by the target ONU, the value of the element of the target row vector is determined.
8. The method according to claim 7, characterized in that The determining the value of the element of the target column vector based on the downlink port of the target first-level optical splitter accessed by the target ONU includes: If the target ONU is connected to the sth downstream port of the target first-stage optical splitter, the first set value is determined as the value of the element of the sth row from the end of the target column vector, where s is a positive integer not greater than M; The second set value is determined as the value of the remaining elements other than the elements in the s-th last row of the target column vector.
9. The method according to claim 8, characterized in that The determining the value of the element of the target row vector based on the downlink port of the target second-level optical splitter accessed by the target ONU includes: If the target ONU is connected to the t-th downstream port of the target second-stage optical splitter, the first set value is determined as the value of the element of the t-th column from the end of the target row vector, where t is a positive integer not greater than N; The second set value is determined as the value of the remaining elements except the element in the t-th column from the end of the target row vector.
10. The method according to claim 9, characterized in that The first setting value is 1, and the second setting value is 0; The method further comprises: Obtaining the product of the target column vector and the target row vector as the relationship matrix of the target ONU; The value of the element in the xth row and yth column in the relationship matrix identifying the target ONU is 1, wherein x is a positive integer not greater than M, and y is a positive integer not greater than N; Determine that the target ONU accesses the (M+1-x)th downstream port of the target first-level optical splitter; Determine that the target ONU accesses the (N+1-y)th downstream port of the target second-level optical splitter.
11. The method according to claim 10, characterized in that The method further comprises: The relationship matrix of each candidate ONU connected to a passive optical network PON port in the ODN is summed to obtain a total relationship matrix; Based on the total relationship matrix, a resource inventory result of the ODN is obtained.
12. The method according to any one of claims 1 to 11, characterized in that The method further comprises: Identify whether the optical power change trends of multiple target ONUs connected to the target optical splitter are consistent, wherein the multiple target ONUs include a target first ONU and multiple target second ONUs; If the optical power change trends of the multiple target second ONUs are consistent, and the optical power change trend of the target first ONU is inconsistent with the optical power change trend of any target second ONU, the target first ONU is marked as an abnormal ONU; Instruction information for instructing to perform a location audit on the abnormal ONU is generated.
13. A network resource inventory device, characterized in that: include: The first processing module is used to start from the first downstream port of the target optical splitter in the optical distribution network ODN, determine the first downstream port of the target optical splitter as the currently traversed downstream port, and pull the fiber of the currently traversed downstream port; The second processing module is used for, if a reconnection request sent by a target optical network unit ONU is monitored, using the target optical splitter as the optical splitter accessed by the target ONU; The third processing module is used to update the next downstream port of the currently traversed downstream port to the currently traversed downstream port, and return to execute the fiber pulling of the currently traversed downstream port and subsequent steps until the last downstream port of the target splitter is traversed.
14. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method according to any one of claims 1 to 12 is implemented.
15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 12 is implemented.
