PON equipment MAC address automatic discovery and mapping method based on SSH protocol

Through the automatic discovery method based on the SSH protocol, the problem of incompatibility of multi-vendor PON device management systems is solved, and unified automatic discovery and management of equipment of different manufacturers is realized, reducing management complexity and operation and maintenance costs.

CN119603274APending Publication Date: 2025-03-11SUQIAN POWER SUPPLY COMPANY OF JIANGSU PROVINCE POWER
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411796989.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-09
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

The existing PON equipment management system is not compatible with equipment from different manufacturers, resulting in the unified discovery and monitoring of equipment from multiple manufacturers becoming a problem, increasing management complexity and work pressure.

Method used

The automatic discovery method based on the SSH protocol is adopted to obtain information by simulating the SSH login device, realize automatic discovery and link construction of the PON device, and generate the PON network topology diagram.

Benefits of technology

It realizes unified collection, monitoring and management of OLT and ONU equipment of different manufacturers, reduces management complexity, improves the speed and accuracy of equipment discovery, and reduces manual intervention and operation and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119603274A_ABST
    Figure CN119603274A_ABST
Patent Text Reader

Abstract

The invention relates to a PON (Passive Optical Network) equipment automatic discovery method based on an SSH (Secure Shell) protocol, which is particularly suitable for automatic identification and association of an optical line terminal and optical network unit equipment in a PON network. The method comprises the following steps: 1, simulating SSH login equipment to obtain information; 2, automatically discovering the PON equipment and constructing a link; and 3, topological mapping of the PON network. In the step 1, 1.1, SSH protocol connection and command execution are carried out; 1.2, extracting and analyzing information; 1.3, key information is stored. In the step 2, 2.1, a unique identifier is customized; 2.2, automatically discovering the PON equipment; and 2.3, constructing a PON (Passive Optical Network) link. By using the method provided by the invention, the barrier of manufacturers can be broken through, and unified acquisition, monitoring and management of OLT and ONU equipment of different manufacturers can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an automatic discovery method for PON equipment based on SSH protocol, and is particularly suitable for automatic identification and association of optical line terminals and optical network unit equipment in a PON network. Background Art

[0002] With the increasing number of PON devices in modern networks, PON network device management has become an important issue in network operation and maintenance. In traditional network device management, the identification of PON devices often relies on manual configuration and manual intervention, which not only increases the complexity of management and the probability of errors, but also leads to waste of network resources and low equipment management efficiency. With the access of more and more unified management platform systems for network devices, the management and monitoring pressure of PON network devices for operation and maintenance personnel has been reduced. For example, Huawei's eSight unified management platform, H3C iMC PLAT management platform and FiberHome ANM2000 network management system have effectively managed, automatically discovered and topologically monitored the OLT and ONU devices of their respective manufacturers. However, the management platforms of these manufacturers are limited to the effective discovery and monitoring of their own brand of PON devices, and are not compatible with devices from other manufacturers. In actual applications, PON devices usually come from different manufacturers, and the existing management system cannot achieve unified supervision of multi-vendor devices. This causes operation and maintenance personnel to rely on independent network management systems of multiple manufacturers for device monitoring, which increases management complexity and work pressure, and cannot achieve unified monitoring and automatic discovery of cross-vendor devices. Summary of the invention

[0003] The technical problem to be solved by the present invention is that the existing PON equipment management system is not compatible with equipment from different manufacturers, which makes it difficult to uniformly discover and monitor equipment from multiple manufacturers. Operation and maintenance personnel need to manage equipment separately in independent network management systems of multiple manufacturers, which increases management complexity and work pressure. How to provide a universal and automated PON equipment automatic discovery method to break through manufacturer barriers and realize unified collection, monitoring and management of OLT and ONU equipment from different manufacturers is a technical problem to be solved by the present invention.

[0004] In order to solve the problem of multi-vendor PON equipment management in the prior art, the present invention proposes an automatic discovery method for obtaining the MAC address of PON equipment based on the SSH protocol. The method can break through the manufacturer barriers and realize the unified collection, monitoring and management of OLT and ONU equipment from different manufacturers.

[0005] The steps of the method for automatically discovering and mapping the MAC address of a PON device based on the SSH protocol of the present invention are as follows:

[0006] 1. Simulate SSH login to the device to obtain information;

[0007] 2. Automatic discovery of PON devices and link construction;

[0008] 3. PON network topology diagram.

[0009] Furthermore, step 1, simulating SSH login to the device to obtain information includes:

[0010] 1.1, SSH protocol connection and command execution;

[0011] 1.2, information extraction and analysis;

[0012] 1.3, key information storage.

[0013] In step 1.1, the specific steps of SSH protocol connection and command execution are as follows:

[0014] The PON monitoring system periodically sends automatic discovery instructions to the server, such as Figure 1 As shown, after receiving the automatic discovery instruction, the server calls the Python script to execute SSH to connect to the OLT device. The process can be expressed as

[0015] P SSH (S)→Req(C)→Res(C)→Req(D)→Res(D) (1)

[0016] Where P SSH (S) represents the SSH connection process executed by the server through the Python script, C represents the Python script, D represents the target device, and Req and Res represent request and response respectively.

[0017] In step 1.2, information extraction and parsing are:

[0018] Extract valid information text from the echo result, parse the text content, and obtain the PON port name and PON port index of the OLT, and the peer ONU MAC address under the PON port.

[0019] In step 1.3, key information is stored as:

[0020] The keyword information obtained in step 1.2 is mapped and stored. The storage content includes the OLT device set and the ONUMAC address information under the PON port of the OLT device. The storage format is

[0021] F(OLT)={OLT-ID1,OLT-ID2,...,OLT-ID n} (2)

[0022] Where, OLT-ID nIndicates the unique device identifier of the OLT, and F(OLT) indicates the set of unique device identifiers of the OLT.

[0023] The mapping relationship between OLT devices and ONU devices is as follows:

[0024]

[0025] In the formula, Indicates the unique ONU identifier associated with the PON port of a specific OLT device

[0026] Furthermore, in step 2, the automatic discovery and link establishment of PON devices include:

[0027] 2.1, custom unique identifier;

[0028] 2.2, automatic discovery of PON devices;

[0029] 2.3, PON link construction.

[0030] Specifically, in step 2.1, the custom unique identifier is:

[0031] In the process of automatic discovery of PON devices, the unique identifier of the device (usually the MAC address) plays a vital role. The MAC address is assigned by the hardware manufacturer and is theoretically unique worldwide. However, in practical applications, due to the possibility of duplicate MAC addresses from different manufacturers, recognition errors or conflicts may occur during automatic discovery of PON devices. In order to solve this problem, the present invention introduces manufacturer information as a supplement on the basis of the traditional MAC address, and uses the SHA-256 hash algorithm to generate a unique identifier for the device. The specific method is to combine the MAC address of the device with the manufacturer type, and calculate a unique identifier through a hash algorithm, thereby avoiding conflicts caused by duplicate MAC addresses of devices from different manufacturers. The formula for generating the unique identifier is as follows:

[0032]

[0033] Among them, i takes values ​​of 1, 2, 3, etc. represents the unique identifier of the ith PON device, C j Indicates different manufacturers.

[0034] Specifically, in step 2.2, the PON device is automatically discovered as follows:

[0035] During the automatic discovery of PON devices, PON devices from different manufacturers can be automatically identified and distinguished by parsing device information (including MAC address and manufacturer information).

[0036] a) By obtaining the MAC information of the PON port under the OLT device, the basic information of each ONU device can be identified, and the unique identifier of the ONU device, pon ID Complete automatic discovery of ONU devices. During this process, the system automatically extracts the MAC address under the PON port of the OLT device and distinguishes and identifies each device based on the manufacturer's ID combined with the generated unique identifier.

[0037] Through this method, the system can efficiently and accurately discover and identify PON devices in the network, avoiding the complexity and potential errors of manual configuration.

[0038] According to the device information generated by parsing equations (2) and (3), the PON device information is first created. According to the MAC information obtained under the PON port of the OLT device, the basic information of the ONU device is created, and the ONU device is identified by the ONU device id to complete the automatic discovery of the ONU device.

[0039] Specifically, in step 2.3, the PON link is constructed as follows:

[0040] PON link construction is a crucial step in PON device management. After automatically discovering the device, we can build the link relationship between OLT and ONU devices. The specific process is as follows:

[0041] a) Traverse all OLT device sets: The system first traverses all OLT devices and obtains the PON port information of each OLT device. By analyzing the port name and MAC address, it selects qualified ports to ensure that these ports can be connected to the corresponding ONU devices.

[0042] b) Matching ONU devices with ONU-ID: By analyzing the acquired PON port information, the system matches each port with the corresponding ONU device. Based on the PON port name and the unique identifier of the ONU device, the identification (ONU-ID) of each ONU device is extracted.

[0043] c) Parse and build link relationships: By obtaining the MAC addresses of the OLT and ONU devices and combining them with unique identifiers, the system can automatically parse and build the physical link relationship between the OLT and ONU. The system establishes a connection between the OLT and ONU based on the unique identifier, and displays the relationship between the devices through a link relationship diagram, thereby realizing the automatic construction of the network topology.

[0044] Furthermore, in step 3, the PON network topology is mapped as follows:

[0045] In a PON network, the connection relationship between devices can be described by a graph theory model. Specifically, each device in the network can be regarded as a node of a graph, and the connectivity relationship between devices (such as the physical link between OLT and ONU) can be regarded as the edge of the graph. Based on this graph representation method, the topology of the PON network can be derived and constructed through the interaction between the SSH protocol and the device. Through known device information and connection relationships, unknown devices can be discovered and the construction of the network topology can be gradually completed. The present invention specifies the following description for the network topology modeling formula:

[0046] G=(V,E) (5)

[0047] Among them, G represents the topology of the entire PON network. V is a node set, representing devices, and E is an edge set, representing the connection relationship between devices. Through the traversal process of the graph, the devices in the network and the connection relationship between them can be gradually discovered and constructed. For example, by traversing the graph G, the physical connection relationship between the OLT and ONU devices can be discovered, and the topology of the entire network can be derived based on this. In addition, in order to improve the processing efficiency of the system and the speed of topology drawing, the system adopts multi-threading technology and hierarchical computing methods, which significantly improves the response speed of topology map generation.

[0048] An electronic device includes one or more processors for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors execute the aforementioned automatic discovery and mapping method of PON device MAC addresses based on the SSH protocol.

[0049] A storage medium stores a computer program, wherein the computer program is configured to execute the aforementioned automatic discovery and mapping method of MAC addresses of PON devices based on the SSH protocol when running.

[0050] The present invention has significant technical and economic benefits in the field of automatic discovery and link construction of PON devices, which are specifically reflected in the following aspects:

[0051] 1. Improvement of technical benefits

[0052] (1) Automated discovery of cross-vendor PON devices: Existing PON device management systems mostly rely on the vendor's own platform and lack the ability to uniformly manage and automatically discover devices across vendors. Through the present invention, the automatic discovery and management of PON devices has been significantly optimized, and cross-vendor automatic identification and association can be achieved between devices from different vendors, breaking through the limitations of vendor closure. By adopting the SSH protocol and automated scripts, the present invention does not need to rely on manual configuration and human intervention, and provides an efficient and accurate cross-vendor PON device automatic discovery and management solution, which greatly improves the speed and accuracy of device discovery.

[0053] (2) Generation of unique device identifier: By combining the device MAC address and manufacturer information to generate a unique identifier, the accuracy of device identification is ensured, the problem of MAC address duplication between devices from multiple manufacturers is effectively avoided, and the security and reliability of device identification are improved.

[0054] 2. Improvement of economic benefits

[0055] Reduced operation and maintenance costs: Through automated cross-vendor device discovery and link building, the complexity and error rate of traditional manual operation and maintenance are reduced, and the reliance on human resources is reduced, thus saving a lot of labor costs. The automated system can monitor device status in real time, detect potential faults in advance, and reduce network maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 This is a timing diagram of the SSH connection process executed by the Python script in the present invention.

[0057] Figure 2 This is a link relationship diagram between OLT and ONU devices in the present invention. DETAILED DESCRIPTION

[0058] The specific implementation plan of this program is as follows:

[0059] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the following reference is made to the attached Figure 1-2 It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the protection scope of the present invention.

[0060] 1. Automatic discovery and information collection of PON equipment

[0061] (1) Through the timed automatic discovery command, the PON monitoring system calls the Python script to execute SSH connection to the target OLT device. The connection process includes sending authentication information to the device and establishing a session. The Python script uses the SSH protocol to establish a connection with the device and executes specific commands to obtain device information.

[0062] (2) The system sends a request to the device through the SSH protocol, and the device returns response data, which contains the basic information of the device, port information, MAC address, etc.

[0063] (3) Based on the received echo results, the system extracts and parses key information, such as the PON port name of the OLT device, the PON port index, and the MAC address of the ONU device connected to it.

[0064] (4) The parsing process includes formatting the returned text data and extracting keywords that meet the requirements (such as OLT device identification, PON port information, ONU device MAC address, etc.).

[0065] (5) Extracted device information (such as the MAC address information of the OLT device and the ONU device under its PON port)

[0066] It will be mapped and stored in the database. The system generates a mapping relationship between OLT and ONU devices and uses it to build a logical relationship between devices.

[0067] (6) The storage format is shown in equations (2) and (3), which include the device unique identifier, device type (such as OLT, ONU) and their corresponding relationship.

[0068] 2. Automatic discovery of PON devices and link establishment

[0069] (1) In order to avoid MAC address conflicts between devices from different manufacturers, the present invention introduces device manufacturer information and uses the SHA-256 hash algorithm to perform hash calculation on the device's MAC address and manufacturer information to generate a unique identifier. This ensures that even if devices from multiple manufacturers have the same MAC address, they can be distinguished by the manufacturer information and the generated unique identifier.

[0070] (2) During the automatic discovery process, the system automatically extracts the PON port information and corresponding MAC address of the OLT device, and identifies and distinguishes devices from different manufacturers by comparing the generated unique identifier.

[0071] (3) Device information analysis and discovery: The system automatically generates basic information about each device based on the parsed information (such as the MAC address and manufacturer identifier of the OLT device’s PON port) and completes automatic discovery of ONU devices.

[0072] (4) Link building process: The system will traverse all identified OLT devices, obtain their PON port information, and analyze the ONU device corresponding to each PON port. By matching each PON port with the corresponding ONU device, the system can build a link relationship between the OLT and the ONU.

[0073] (5) Link relationship analysis: Through the unique identifier, the system can analyze and establish the physical link relationship between the OLT and the ONU, and generate a network topology diagram to show the connection relationship between each device.

[0074] 3. PON network topology mapping

[0075] After completing step 1 (SSH protocol automatically connects to the device and extracts information) and step 2 (automatically discovers PON devices and establishes links), the system generates a network topology diagram of the PON device according to formula (5). The results of the automatic discovery of PON devices in the experimental environment are shown in the figure below: Figure 2 shown. Figure 2 It shows the layout and connection of OLT devices and their ONU devices from different manufacturers in the network, and specifically shows the following information:

[0076] (1) Correspondence between OLT and ONU

[0077] The figure shows the connection relationship between each OLT device and its corresponding multiple ONU devices. Each OLT device is connected to ONU devices from different manufacturers through multiple PON ports, and these devices are automatically associated in the topology diagram based on the connection information of the PON ports.

[0078] (2) Identification of ONU devices from different manufacturers

[0079] Through the automatically extracted device information, the figure identifies the manufacturer information and unique identifier of each ONU device. ONU devices from different manufacturers are distinguished by different colors or symbols for easy observation and management. In this experiment, the system successfully identified ONU devices from different manufacturers such as Huawei and H3C.

[0080] (3) Link relationship between devices:

[0081] The network topology diagram clearly shows the logical links between OLT and ONU devices. Each connection line represents a physical link or a logical link, which intuitively reflects the interaction relationship and data transmission path between devices.

[0082] The above experimental results and analysis have proved the application effect of the present invention in automatic discovery and topology construction of PON networks, demonstrated its efficiency and accuracy in practical applications, and also verified the feasibility of automatic identification and management of cross-vendor equipment.

Claims

1. A method for automatically discovering and mapping the MAC address of a PON device based on the SSH protocol, characterized in that: Here are the steps: Step 1: Simulate SSH login to the device to obtain information; Step 2: Automatic discovery of PON equipment and link establishment; Step 3: Draw a PON network topology diagram.

2. According to the method for automatic discovery and mapping of PON device MAC addresses based on SSH protocol in claim 1, it is characterized in that: Step 1: Simulate SSH login to the device to obtain information including: 1.1, SSH protocol connection and command execution; 1.2, information extraction and analysis; 1.3, key information storage.

3. The method for automatically discovering and mapping the MAC address of a PON device based on the SSH protocol according to claim 2, characterized in that: In step 1.1, the specific steps of SSH protocol connection and command execution are as follows: The PON monitoring system sends automatic discovery instructions to the server at regular intervals. After receiving the automatic discovery instructions, the server calls the Python script to execute SSH to connect to the OLT device. The process can be expressed as follows: P SSH (S)→Req(C)→Res(C)→Req(D)→Res(D) (1) Where P SSH (S) represents the SSH connection process executed by the server through the Python script, C represents the Python script, D represents the target device, and Req and Res represent request and response respectively.

4. The method for automatically discovering and mapping the MAC address of a PON device based on the SSH protocol according to claim 2, characterized in that: In step 1.2, information extraction and parsing are as follows: Extract valid information text from the echo result, parse the text content, and obtain the PON port name and PON port index of the OLT, and the MAC address of the peer ONU under the PON port.

5. The method for automatically discovering and mapping the MAC address of a PON device based on the SSH protocol according to claim 2, characterized in that: In step 1.3, key information is stored as: The keyword information obtained in step 1.2 is mapped and stored. The storage content includes the OLT device set and the ONUMAC address information under the PON port of the OLT device. The storage format is F(OLT)={OLT-ID1,OLT-ID2,...,OLT-ID n } (2) Where, OLT-ID n represents the unique device identifier of the OLT, and F(OLT) represents the set of unique device identifiers of the OLT; The mapping relationship between OLT devices and ONU devices is as follows: In the formula, Indicates the unique ONU identifier associated with the PON port of a specific OLT device 6. The method for automatically discovering and mapping the MAC address of a PON device based on the SSH protocol according to claim 1, characterized in that: In step 2, automatic discovery of PON devices and link establishment include: 2.1, custom unique identifier; 2.2, automatic discovery of PON devices; 2.3, PON link construction.

7. The method for automatically discovering and mapping the MAC address of a PON device based on the SSH protocol according to claim 6, characterized in that: In step 2.1, the custom unique identifier is: Based on the existing MAC address, the manufacturer information is introduced as a supplement, and the SHA-256 hash algorithm is used to generate a unique identifier for the device. The MAC address of the device and the manufacturer type are combined to calculate an identifier through the hash algorithm, thereby avoiding conflicts caused by repeated MAC addresses of devices from different manufacturers. The formula for generating the unique identifier is as follows: Among them, i takes values ​​of 1, 2, 3, etc. represents the unique identifier of the ith PON device, C j Indicates different manufacturers.

8. The method for automatically discovering and mapping the MAC address of a PON device based on the SSH protocol according to claim 6, characterized in that: In step 2.2, the PON device is automatically discovered as: During the automatic discovery of PON devices, PON devices from different manufacturers can be automatically identified and distinguished by parsing device information; By obtaining the MAC information of the PON port under the OLT device, the basic information of each ONU device can be identified, and the unique identifier of the ONU device, PON ID Complete automatic discovery of ONU devices; the system automatically extracts the MAC address under the PON port of the OLT device, and distinguishes and identifies each device based on the manufacturer's identification combined with the generated unique identifier; According to the device information generated by parsing equations (2) and (3), the PON device information is first created; according to the MAC information obtained under the PON port of the OLT device, the basic information of the ONU device is created, and the ONU device is identified by the ONU device ID to complete the automatic discovery of the ONU device.

9. The method for automatically discovering and mapping the MAC address of a PON device based on the SSH protocol according to claim 6, characterized in that: In step 2.3, the PON link is constructed as follows: PON link construction is a crucial step in PON device management. After automatically discovering the device, the link relationship between the OLT and ONU devices is established; the specific process is as follows: a) Traverse all OLT device sets: The system first traverses all OLT devices and obtains the PON port information of each OLT device; by analyzing the port name and MAC address, it screens out qualified ports to ensure that these ports can be connected to the corresponding ONU devices; b) Matching ONU devices with ONU-ID: By analyzing the acquired PON port information, the system matches each port with the corresponding ONU device; extracts the identification of each ONU device based on the PON port name and the unique identifier of the ONU device; c) Parse and build link relationships: By obtaining the MAC addresses of the OLT and ONU devices and combining them with the unique identifier, the system can automatically parse and build the physical link relationship between the OLT and the ONU; establish the connection between the OLT and the ONU based on the unique identifier, and display the relationship between the devices through the link relationship diagram, thereby realizing the automatic construction of the network topology.

10. The method for automatically discovering and mapping the MAC address of a PON device based on the SSH protocol according to claim 1, characterized in that: In step 3, the PON network topology is shown as follows: In a PON network, the connection relationship between devices can be described by a graph theory model. Specifically, each device in the network can be regarded as a node of a graph, and the connectivity relationship between devices can be regarded as the edge of the graph; based on this representation method, the topology of the PON network can be derived and constructed through the interaction between the SSH protocol and the device; through the known device information and connection relationship, unknown devices can be discovered and the network topology can be gradually constructed; the network topology modeling formula is: G=(V,E) (5) Among them, G represents the topology of the entire PON network; V is the node set, representing the devices, and E is the edge set, representing the connection relationship between devices; the devices in the network and the connection relationship between them are gradually discovered and constructed.

11. An electronic device comprising one or more processors for storing one or more programs, characterized in that: When the one or more programs are executed by the one or more processors, the one or more processors execute the aforementioned automatic discovery and mapping method of the MAC address of a PON device based on the SSH protocol.

12. A storage medium storing a computer program, wherein: Among them, The computer program is configured to execute the aforementioned automatic discovery and mapping method of the MAC address of a PON device based on the SSH protocol when it is run.