Network topology determination method and device, electronic equipment, medium and program product

The method and device enhance network topology construction by using network management systems, protocols, and configuration information to create a comprehensive map, addressing the limitations of existing methods.

CN119254634AActive Publication Date: 2025-01-03INSPUR TIANYUAN COMM INFORMATION SYST CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411090490.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2025-01-03
Estimated Expiration
2044-08-09

AI Technical Summary

Technical Problem

Existing network topology construction methods are not comprehensive, failing to cover communication across various network element devices due to the lack of standardized data collection and integration across different network management systems.

Method used

A method and device for determining network topology that obtains connection information through network management systems, network protocols, and configuration information to construct a comprehensive network topology map, including first, second, third, and fourth connection information based on domain, protocol presence, and external device communication.

Benefits of technology

Enables the construction of a more comprehensive network topology map by automatically acquiring connection information, enhancing efficiency and comprehensiveness across domains and external devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119254634A_ABST
    Figure CN119254634A_ABST
Patent Text Reader

Abstract

The invention provides a network topology determination method and device, electronic equipment, a medium and a program product, belongs to the technical field of communication, and realizes automatic acquisition of first connection information by automatically acquiring the first connection information through a network management system. The second connection information is obtained according to the network protocol, and the efficiency of obtaining the second connection information is improved. According to the first configuration information, the third connection information of the network element equipment which has different domains and does not have a network protocol is obtained, and the domains involved by the network topological graph are enriched. According to the second configuration information, the fourth connection information of the external equipment and the network element equipment is obtained, and the comprehensiveness of the network topological graph is improved. The network topological graph is constructed according to the first connection information, the second connection information, the third connection information and the fourth connection information, so that a network topological structure among the same domain, different domains and external equipment is constructed, and the network topological graph is more comprehensive.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a method, device, electronic device, medium and program product for determining a network topology. Background Art

[0002] The integrated resource system is mainly responsible for connecting with the integrated network management system to achieve global resource management. The network management systems and network protocols used by different operators are different, and most operators use the network management systems of fixed large factories. Standardized data collection of the network management systems of these fixed large factories can flexibly adapt to the different sites of different operators, which can greatly improve the efficiency of data interaction and reduce maintenance costs.

[0003] In order to collect standardized data for the network management systems of these large fixed factories, a comprehensive network topology needs to be built. The existing network topology cannot cover the communication of various network element devices, so the construction of the existing network topology is not comprehensive. Summary of the invention

[0004] The present invention provides a network topology determination method, device, electronic device, medium and program product, which are used to solve the defect that the construction of network topology in the prior art is not comprehensive, and realize the construction of network topology to be more comprehensive.

[0005] The present invention provides a network topology determination method, comprising the following steps: when network element devices are located in the same domain in a network, first connection information between network element devices is obtained from a network management system corresponding to the same domain; when network element devices are located in different domains and a network protocol exists between network element devices, second connection information between network element devices is obtained based on the network protocol; when network element devices are located in different domains and no network protocol exists between network element devices, third connection information between network element devices is obtained based on first configuration information; when external devices need to communicate with network element devices in the network management system, fourth connection information between network element devices and external devices is obtained based on second configuration information; and a network topology diagram is constructed based on the first connection information, the second connection information, the third connection information and the fourth connection information.

[0006] According to a network topology determination method provided by the present invention, when network element devices are located in different domains and no network protocol exists between the network element devices, third connection information between the network element devices is obtained based on first configuration information, including: storing port information of a second device that needs to communicate in a port of the first device, or storing port information of the first device in a port of the second device to determine the first configuration information, the first device and the second device are two network element devices that need to communicate and are located in different domains and do not have a network protocol, the port is used to connect the network element device and the corresponding network management system; network element devices in different domains are connected to different network management systems; the first configuration information is obtained from the port of the first device or the port of the second device based on a setting program to obtain the third connection information.

[0007] According to a network topology determination method provided by the present invention, when an external device needs to communicate with a network element device in a network management system, fourth connection information between the network element device and the external device is obtained based on the second configuration information, including: storing the port information of the external device on the port of the network element device to determine the second configuration information; obtaining the second configuration information from the port of the network element device based on a setting program to obtain the fourth connection information.

[0008] According to a network topology determination method provided by the present invention, second configuration information is obtained from the port of a network element device based on a setting program, including: obtaining the name of the external device, the number of the external device and the port number of the external device according to the result of the setting program accessing the setting field in the port of the network element device to obtain the second configuration information.

[0009] According to a network topology determination method provided by the present invention, when network element devices are located in different domains and a network protocol exists between the network element devices, second connection information between the network element devices is obtained based on the network protocol, including: obtaining the media access control MAC addresses of the two communicating network element devices respectively based on the network protocol to obtain the second connection information.

[0010] According to a network topology determination method provided by the present invention, first connection information between network element devices is obtained from a network management system corresponding to the same domain, including: obtaining a configuration table of the network management system; the configuration table pre-stores port information of the network element devices of the network management system and the connection relationship between the ports of the network element devices; based on the configuration table, the port information of the network element devices and the connection relationship between the ports of the network element devices are obtained to obtain the first connection information.

[0011] The present invention also provides a network topology determination device, including: a first connection information acquisition module, which is used to obtain the first connection information between network element devices from the network management system corresponding to the same domain when the network element devices are located in the same domain in the network; a second connection information acquisition module, which is used to obtain the second connection information between the network element devices based on the network protocol when the network element devices are located in different domains and there is a network protocol between the network element devices; a third connection information acquisition module, which is used to obtain the third connection information between the network element devices based on the first configuration information when the network element devices are located in different domains and there is no network protocol between the network element devices; a fourth connection information acquisition module, which is used to obtain the fourth connection information between the network element device and the external device based on the second configuration information when the external device needs to communicate with the network element device in the network management system; and a topology construction module, which is used to construct a network topology map based on the first connection information, the second connection information, the third connection information and the fourth connection information.

[0012] The present invention also 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, any of the above-mentioned network topology determination methods is implemented.

[0013] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the computer program implements any of the above-mentioned network topology determination methods.

[0014] The present invention also provides a computer program product, comprising a computer program, and when the computer program is executed by a processor, the computer program implements any of the above-mentioned network topology determination methods.

[0015] The network topology determination method, device, electronic device, medium and program product provided by the present invention automatically obtain the first connection information through the network management system, thereby realizing the automatic acquisition of the first connection information. The second connection information is obtained according to the network protocol, thereby improving the efficiency of obtaining the second connection information. According to the first configuration information, the third connection information of the network element device in different domains and without the network protocol is obtained, which is conducive to enriching the domains involved in the network topology map. According to the second configuration information, the fourth connection information between the external device and the network element device is obtained, which is conducive to improving the comprehensiveness of the network topology map. The present invention constructs a network topology map according to the first connection information, the second connection information, the third connection information and the fourth connection information, thereby realizing the construction of the network topology structure between the same domain, different domains and the external devices, making the network topology map more comprehensive. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 It is a flow chart of the network topology determination method provided by the present invention.

[0018] Figure 2 It is a structural schematic diagram of the network topology determination device provided by the present invention.

[0019] Figure 3 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0020] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0021] Combine the following Figure 1-Figure 3 The present invention describes a method, device and electronic device for determining network topology.

[0022] Figure 1 is a flow chart of the network topology determination method provided by the present invention, such as Figure 1 As shown, the network topology determination method includes steps S100 to S500, and each step is specifically described as follows.

[0023] S100: When network element devices are located in the same domain in the network, first connection information between the network element devices is obtained from a network management system corresponding to the same domain.

[0024] The operator's network has multiple domains, such as wireless domain, microwave domain, IP domain, transmission domain, core network domain, etc. One network management system manages one domain. Optionally, one domain is managed by multiple network management systems. Network element devices are devices connected to the network management system, such as wireless devices, microwave devices, data communication devices, transmission devices, core network devices, etc.

[0025] The execution subject of the embodiment of the present invention is a resource management system, which is used to manage the connection information between network element devices in different network management systems and between network element devices and external devices.

[0026] The first connection information between network element devices is obtained from the network management system corresponding to the same domain. Specifically, a configuration table of the network management system is obtained; the configuration table pre-stores the port information of the network element devices of the network management system and the connection relationship between the ports of the network element devices; based on the configuration table, the port information of the network element devices and the connection relationship between the ports of the network element devices are obtained to obtain the first connection information.

[0027] The network management system includes a configuration table, in which port information of network element devices of the network management system and connection relationships of ports of the network element devices are pre-stored. For example, if the network management system manages multiple microwave devices, the configuration table stores port information of each microwave device and connection relationships between microwave devices. Directly acquiring the configuration table of the network management system can obtain the first connection information of network element devices in the same domain corresponding to the network management system.

[0028] Acquiring the first connection information through the configuration table improves the accuracy and efficiency of acquiring the first connection information.

[0029] S200: When the network element devices are located in different domains and a network protocol exists between the network element devices, second connection information between the network element devices is obtained based on the network protocol.

[0030] When the network element devices are located in different domains and a network protocol exists between the network element devices, the second connection information between the network element devices is obtained based on the network protocol. Specifically, the media access control MAC addresses of the two communicating network element devices are respectively obtained based on the network protocol to obtain the second connection information.

[0031] When network element devices are located in different domains and there is a network protocol between the network element devices, the Media Access Control (MAC) addresses of the two communicating network element devices are directly obtained according to the network protocol. The network protocol is the Link Layer Discovery Protocol (LLDP). For example, the Network Element Configuration - IP Network Management (NCE-IP) system can obtain the second connection information between the microwave equipment connected to the data communication equipment and the leased third-party equipment through LLDP. Through LLDP, the second connection information between two network element devices in different domains can be obtained, or the second connection information between the network element device in the network management system and the external equipment (for example, leased third-party equipment) can be obtained.

[0032] The resource management system (for example, NCE-IP system) can learn the MAC addresses of two network element devices connected in different domains through LLDP, and then obtain the cross-domain link between the two network element devices connected in different domains. For example, the MAC address corresponding to the wireless device port connected to the microwave device can be obtained through the LLDP protocol, thereby obtaining the cross-domain link between the wireless device and the microwave device.

[0033] The second connection information is obtained through the network protocol, so that the communication relationship between network element devices in different domains can be obtained efficiently and accurately, which is conducive to the comprehensive construction of the network topology map.

[0034] S300: When the network element devices are located in different domains and no network protocol exists between the network element devices, third connection information between the network element devices is acquired based on the first configuration information.

[0035] When network element devices are located in different domains and there is no network protocol between the network element devices, the two network element devices that communicate with each other are managed by different network management systems respectively, and the third connection information between the two network element devices cannot be automatically obtained according to the unified network management system. Since the two network element devices that communicate with each other are at different protocol stack layers, no network protocol can collect the third connection information across different protocol stack layers. For example, the network element devices in the Optical Transport Network (OTN) belong to the L1 physical layer, the network element devices in the IP Metropolitan Area Network (IP-Metro) belong to the L2 link layer, and the network element devices in the IP core network belong to the L3 IP layer. Currently, there is no network protocol that can collect data across the L1 physical layer and the L2 link layer or across the L1 physical layer and the L3 IP layer. To obtain the third connection information between network element devices that are located in different domains and do not have a network protocol, it is necessary to set the corresponding first configuration information in advance on the network management systems corresponding to the two communicating network element devices, so that the resource management system can automatically collect the third connection information according to the first configuration information.

[0036] The first configuration information is used to describe the port information and connection relationship of two network element devices located in different domains and without a network protocol.

[0037] S400: When the external device needs to communicate with the network element device in the network management system, fourth connection information between the preset network element device and the external device is obtained based on the second configuration information.

[0038] The external device is a device that is not managed by the network management system, such as a leased third-party device. At this time, it is impossible to obtain the information of the external device from the network management system, and it is even more impossible to obtain the fourth connection information between the external device and the network element device in the network management system. At this time, the second configuration information can be set on the network management system corresponding to the network element device that the external device needs to communicate with according to the customer's requirements. The second configuration information is used to describe the port information and connection relationship between the external device and the network element device.

[0039] S500: Construct a network topology map based on the first connection information, the second connection information, the third connection information and the fourth connection information.

[0040] The network element devices and / or external devices for which a network topology diagram needs to be constructed are converted into topology points, and the connections between the topology points are constructed according to the first connection information, the second connection information, the third connection information and the fourth connection information, so as to finally obtain a network topology diagram.

[0041] The network topology diagram of the present invention includes topological connections between devices in the same domain, different domains, and the outside world. For example, topological connections between wireless devices, topological connections between wireless devices and microwave devices, topological connections between wireless devices and data communication devices, topological connections between microwave devices and data communication devices, topological connections between data communication devices and transmission devices, etc.

[0042] The network topology determination method provided by the present invention automatically obtains the first connection information through the network management system, thereby realizing the automatic acquisition of the first connection information. The second connection information is obtained according to the network protocol, thereby improving the efficiency of obtaining the second connection information. According to the first configuration information, the third connection information of the network element device in different domains and without the network protocol is obtained, which is conducive to enriching the domains involved in the network topology map. According to the second configuration information, the fourth connection information between the external device and the network element device is obtained, which is conducive to improving the comprehensiveness of the network topology map. The present invention constructs a network topology map according to the first connection information, the second connection information, the third connection information and the fourth connection information, thereby realizing the construction of the network topology structure between the same domain, different domains and the external devices, making the network topology map more comprehensive.

[0043] Based on the above embodiment, when the network element devices are located in different domains and there is no network protocol between the network element devices, the third connection information between the network element devices is obtained based on the first configuration information, including steps S310 to S320, and each step is specifically as follows.

[0044] S310: Store the port information of the second device that needs to communicate in the port of the first device, or store the port information of the first device in the port of the second device to determine the first configuration information. The first device and the second device are two network element devices that need to communicate and are located in different domains and do not have a network protocol. The port is used to connect the network element device and the corresponding network management system; network element devices in different domains are connected to different network management systems.

[0045] S320: Acquire first configuration information from a port of the first device or a port of the second device based on a setting program to acquire third connection information.

[0046] The network element device is connected to the network management system through a port. When two network element devices in different domains and without a network protocol need to communicate, the two network element devices are the first device and the second device respectively. The network management system stores the port information of the second device in the port of the first device, or the network management system stores the port information of the first device in the port of the second device, thereby obtaining the first configuration information. For example, the first device is a wavelength division multiplexing (WDM) device, and the second device is an IP device. The port information of the connected IP device is added to the description field of the port of the WDM device, thereby obtaining the first configuration information. The first configuration information includes an IP device name, an IP device number (for example, a rack number of the IP device, a slot number of the IP device, etc.), and a port number of the IP device. For example, the first configuration information is set in the port of the WDM device. WDM port identifier (to IP device): to IP device IP device name / IP device rack number / IP device slot number / IP device sub-slot number / IP device port number / connection information. Among them, "to IP device" is a setting field. “IP device name / IP device rack number / IP device slot number / IP device sub-slot number / IP device port number / connection information” is the first configuration information.

[0047] Alternatively, add the port information of the connected WDM device to the description field of the port of the IP device to obtain the first configuration information. At this time, the first configuration information includes the WDM device name, the WDM device number (for example, the rack number of the WDM device, the slot number of the WDM device, etc.) and the port number of the WDM device. Add a setting field before the first configuration information. The resource management system accesses the setting field of the port of the first device in the network management system corresponding to the first device according to the setting program to obtain the first configuration information (the port information of the second device). The resource management system obtains the port information of the first device from the network management system corresponding to the first device.

[0048] Alternatively, the resource management system accesses the setting field of the port of the second device in the network management system corresponding to the second device according to the setting program to obtain the first configuration information (port information of the first device). The resource management system obtains the port information of the second device from the network management system corresponding to the second device.

[0049] The resource management system obtains third connection information between the first device and the second device, which are located in different domains and have no network protocol, according to the port information of the first device and the port information of the second device.

[0050] The present invention stores the port information of the second device in the port of the first device or stores the port information of the first device in the port of the second device, thereby realizing the construction of a configuration relationship between two network element devices in different domains and without a network protocol, and further realizing automatic acquisition of the third connection information from the network management system, thereby improving the efficiency of acquiring the third connection information.

[0051] Based on the above embodiment, when an external device needs to communicate with a network element device in a network management system, fourth connection information between the network element device and the external device is obtained based on the second configuration information, including steps S410 to S420, and each step is specifically as follows.

[0052] S410: Store the port information of the external device on the port of the network element device to determine the second configuration information.

[0053] S420: Acquire second configuration information from a port of the network element device based on a setting program to obtain fourth connection information.

[0054] The second configuration information is obtained from the port of the network element device based on the setting program. Specifically, according to the result of the setting program accessing the setting field in the port of the network element device, the name of the external device, the number of the external device and the port number of the external device are obtained to obtain the second configuration information.

[0055] When an external device communicates with a network element device in a network management system, since the external device does not match the network management system, the second configuration information cannot be set in the port of the external device through the network management system. At this time, the port information (second configuration information) of the external device can be set and stored on the port of the network element device connected to the external device through the network management system. The second configuration information includes the name of the external device, the number of the external device, and the port number of the external device. A setting field is set in front of the second configuration information. The resource management system accesses the setting field in the port of the network element device according to the setting program to obtain the second configuration information (port information of the external device). The resource management system obtains the port information of the network element device from the network management system, and obtains the fourth connection information according to the port information of the external device and the port information of the network element device.

[0056] The present invention stores the port information of the external device in the port of the network element device, thereby building a configuration relationship between the external device and the network element device, and then automatically obtaining the fourth connection information from the network management system, thereby improving the efficiency of obtaining the fourth connection information.

[0057] The network topology determination device provided by the present invention is described below. The network topology determination device described below and the network topology determination method described above can be referred to in correspondence with each other. Figure 2 As shown, a network topology determination device includes: a first connection information acquisition module 201, which is used to obtain first connection information between network element devices from a network management system corresponding to the same domain when the network element devices are located in the same domain in the network.

[0058] The second connection information acquisition module 202 is configured to acquire second connection information between network element devices based on the network protocol when the network element devices are located in different domains and a network protocol exists between the network element devices.

[0059] The third connection information acquisition module 203 is used to acquire third connection information between network element devices based on the first configuration information when the network element devices are located in different domains and no network protocol exists between the network element devices.

[0060] The fourth connection information acquisition module 204 is used to acquire fourth connection information between the network element device and the external device based on the second configuration information when the external device needs to communicate with the network element device in the network management system.

[0061] The topology construction module 205 is used to construct a network topology map based on the first connection information, the second connection information, the third connection information and the fourth connection information.

[0062] The network topology determination device provided by the embodiment of the present invention automatically obtains the first connection information through the network management system, thereby realizing the automatic acquisition of the first connection information. The second connection information is obtained according to the network protocol, thereby improving the efficiency of obtaining the second connection information. According to the first configuration information, the third connection information of the network element device in different domains and without the network protocol is obtained, which is conducive to enriching the domains involved in the network topology map. According to the second configuration information, the fourth connection information between the external device and the network element device is obtained, which is conducive to improving the comprehensiveness of the network topology map. The present invention constructs a network topology map according to the first connection information, the second connection information, the third connection information and the fourth connection information, thereby realizing the construction of the network topology structure between the same domain, different domains and the external devices, making the network topology map more comprehensive.

[0063] In one embodiment, the third connection information acquisition module 203 is used to store the port information of the second device that needs to communicate in the port of the first device, or to store the port information of the first device in the port of the second device to determine the first configuration information. The first device and the second device are two network element devices that need to communicate and are located in different domains and do not have a network protocol. The port is used to connect the network element device and the corresponding network management system; network element devices in different domains are connected to different network management systems; based on the setting program, the first configuration information is obtained from the port of the first device or the port of the second device to obtain the third connection information.

[0064] In one embodiment, the fourth connection information acquisition module 204 is used to store the port information of the external device on the port of the network element device to determine the second configuration information; and acquire the second configuration information from the port of the network element device based on the setting program to obtain the fourth connection information.

[0065] In one embodiment, the fourth connection information acquisition module 204 is used to obtain the name of the external device, the number of the external device and the port number of the external device according to the access result of the setting program to the setting field in the port of the network element device to obtain the second configuration information.

[0066] In one embodiment, the second connection information acquisition module 202 is used to respectively acquire the media access control MAC addresses of two communicating network element devices based on the network protocol to obtain the second connection information.

[0067] In one embodiment, the first connection information acquisition module 201 is used to acquire the configuration table of the network management system; the configuration table pre-stores the port information of the network element device of the network management system and the connection relationship between the ports of the network element device; based on the configuration table, the port information of the network element device and the connection relationship between the ports of the network element device are acquired to obtain the first connection information.

[0068] Figure 3 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 3As shown, the electronic device may include: a processor 310, a communication interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communication interface 320 and the memory 330 complete mutual communication through the communication bus 340. The processor 310 may call the logic instructions in the memory 330 to execute the network topology determination method, which includes: when the network element devices are located in the same domain in the network, obtaining first connection information between the network element devices from the network management system corresponding to the same domain; when the network element devices are located in different domains and there is a network protocol between the network element devices, obtaining second connection information between the network element devices based on the network protocol; when the network element devices are located in different domains and there is no network protocol between the network element devices, obtaining third connection information between the network element devices based on the first configuration information; when the external device needs to communicate with the network element device in the network management system, obtaining fourth connection information between the network element device and the external device based on the second configuration information; and constructing a network topology map based on the first connection information, the second connection information, the third connection information and the fourth connection information.

[0069] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0070] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the network topology determination method provided by the above methods, which includes: when the network element devices are located in the same domain in the network, obtaining the first connection information between the network element devices from the network management system corresponding to the same domain; when the network element devices are located in different domains and there is a network protocol between the network element devices, obtaining the second connection information between the network element devices based on the network protocol; when the network element devices are located in different domains and there is no network protocol between the network element devices, obtaining the third connection information between the network element devices based on the first configuration information; when the external device needs to communicate with the network element device in the network management system, obtaining the fourth connection information between the network element device and the external device based on the second configuration information; and constructing a network topology map based on the first connection information, the second connection information, the third connection information and the fourth connection information.

[0071] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the network topology determination method provided by the above-mentioned methods, the method comprising: when network element devices are located in the same domain in the network, obtaining first connection information between network element devices from a network management system corresponding to the same domain; when network element devices are located in different domains and there is a network protocol between the network element devices, obtaining second connection information between network element devices based on the network protocol; when network element devices are located in different domains and there is no network protocol between the network element devices, obtaining third connection information between network element devices based on the first configuration information; when external devices need to communicate with network element devices in the network management system, obtaining fourth connection information between the network element devices and the external devices based on the second configuration information; and constructing a network topology map based on the first connection information, the second connection information, the third connection information and the fourth connection information.

[0072] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0073] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0074] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for determining network topology, characterized in that: include: When the network element devices are located in the same domain in the network, obtaining first connection information between the network element devices from a network management system corresponding to the same domain; When the network element devices are located in different domains and a network protocol exists between the network element devices, obtaining second connection information between the network element devices based on the network protocol; When the network element devices are located in different domains and no network protocol exists between the network element devices, acquiring third connection information between the network element devices based on the first configuration information; When an external device needs to communicate with a network element device in the network management system, acquiring fourth connection information between the network element device and the external device based on the second configuration information; A network topology map is constructed based on the first connection information, the second connection information, the third connection information, and the fourth connection information.

2. The network topology determination method according to claim 1, characterized in that: When the network element devices are located in different domains and no network protocol exists between the network element devices, acquiring the third connection information between the network element devices based on the first configuration information includes: The port information of the second device that needs to communicate is stored in the port of the first device, or the port information of the first device is stored in the port of the second device to determine the first configuration information, the first device and the second device are two network element devices that need to communicate and are located in different domains and do not have a network protocol, and the port is used to connect the network element device and the corresponding network management system; network element devices in different domains are connected to different network management systems; The first configuration information is obtained from a port of the first device or a port of the second device based on a setting program to obtain the third connection information.

3. The network topology determination method according to claim 1, characterized in that: When the external device needs to communicate with the network element device in the network management system, obtaining fourth connection information between the network element device and the external device based on the second configuration information includes: Storing the port information of the external device on the port of the network element device to determine the second configuration information; The second configuration information is acquired from the port of the network element device based on a setting program to obtain the fourth connection information.

4. The network topology determination method according to claim 3, characterized in that: The acquiring the second configuration information from the port of the network element device based on a setting program includes: According to the result of the setting program accessing the setting field in the port of the network element device, the name of the external device, the number of the external device and the port number of the external device are obtained to obtain the second configuration information.

5. The network topology determination method according to claim 1, characterized in that: When the network element devices are located in different domains and a network protocol exists between the network element devices, obtaining the second connection information between the network element devices based on the network protocol includes: Based on the network protocol, media access control MAC addresses of the two communicating network element devices are respectively obtained to obtain the second connection information.

6. The network topology determination method according to claim 1, characterized in that: The acquiring the first connection information between the network element devices from the network management system corresponding to the same domain includes: Acquire a configuration table of the network management system; the configuration table pre-stores port information of network element devices of the network management system and connection relationships between ports of the network element devices; The port information of the network element device and the connection relationship of the ports of the network element device are acquired based on the configuration table to obtain the first connection information.

7. A network topology determination device, characterized in that: include: A first connection information acquisition module, configured to acquire first connection information between the network element devices from a network management system corresponding to the same domain when the network element devices are located in the same domain in the network; A second connection information acquisition module, configured to, when the network element devices are located in different domains and a network protocol exists between the network element devices, acquire second connection information between the network element devices based on the network protocol; A third connection information acquisition module, configured to acquire third connection information between the network element devices based on the first configuration information when the network element devices are located in different domains and no network protocol exists between the network element devices; a fourth connection information acquisition module, configured to acquire fourth connection information between the network element device and the external device based on the second configuration information when the external device needs to communicate with the network element device in the network management system; A topology construction module is used to construct a network topology map based on the first connection information, the second connection information, the third connection information and the fourth connection information.

8. 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 topology determination method according to any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the network topology determination method according to any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the network topology determination method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Method and apparatus for determining network topology, and centralized network state information storage device

    CN105637806A

  • Group customer private line end-to-end topology processing system and method

    CN114039857A

  • Network topological graph generation method, device and equipment

    CN116545861A

  • Network topology construction method and device, computer equipment and readable storage medium

    CN116827801A

  • Network topology automatic discovery method and device based on multiple protocols

    CN117176639A