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

By acquiring and utilizing connection information between different domains and devices, a comprehensive network topology map is constructed, solving the problem of incomplete network topology construction in existing technologies, improving data interaction efficiency and reducing maintenance costs.

CN119254634BActive Publication Date: 2026-01-13INSPUR TIANYUAN COMM INFORMATION SYST CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing network topology construction methods cannot fully encompass the communication of various network elements, resulting in low data interaction efficiency and high maintenance costs.

Method used

A network topology diagram is constructed by acquiring the first, second, third, and fourth connection information between network element devices. The first connection information is obtained from the network management system of the same domain, the second connection information is obtained through network protocols, the third connection information is obtained through the first configuration information, and the fourth connection information is obtained through the second configuration information.

Benefits of technology

It enables the comprehensive construction of network topology, improves data interaction efficiency, and reduces maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119254634B_ABST
    Figure CN119254634B_ABST
Patent Text Reader

Abstract

The application provides a network topology determination method and device, electronic equipment, medium and program product, and belongs to the technical field of communication. The first connection information is automatically acquired through a network management system, and the automatic acquisition of the first connection information is realized. The second connection information is acquired according to a network protocol, and the efficiency of acquiring the second connection information is improved. The third connection information of a network element device of different domains and not existing the network protocol is acquired according to the first configuration information, which is beneficial to enrich the domains involved in the network topology graph. The fourth connection information of external equipment and the network element device is acquired according to the second configuration information, which is beneficial to improve the comprehensiveness of the network topology graph. The network topology graph is constructed according to the first connection information, the second connection information, the third connection information and the fourth connection information, the network topology structure between the equipment of the same domain, different domains and the outside is realized, and the network topology graph is more comprehensive.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] The integrated resource system is primarily responsible for interfacing with the integrated network management system to achieve comprehensive resource management. Different operators use different network management systems and protocols, and most operators rely on network management systems from major vendors. Standardizing data collection from these vendor-specific network management systems allows for flexible adaptation to different operator environments, significantly improving data exchange efficiency and reducing maintenance costs.

[0003] To standardize data collection for the network management systems of these large, fixed companies, a comprehensive network topology needs to be constructed. However, the existing network topology cannot encompass the communication of various network elements, and therefore, the construction of the existing network topology is not comprehensive. Summary of the Invention

[0004] This invention provides a network topology determination method, apparatus, electronic device, medium, and program product to address the shortcomings of incomplete network topology construction in the prior art, thereby enabling more comprehensive network topology construction.

[0005] This invention provides a network topology determination method, comprising the following steps: When network elements are located in the same domain of the network, first connection information between network elements is obtained from the network management system corresponding to the same domain; when network elements are located in different domains and there is a network protocol between them, second connection information between them is obtained based on the network protocol; when network elements are located in different domains and there is no network protocol between them, third connection information between them is obtained based on first configuration information; when an external device needs to communicate with network elements in the network management system, fourth connection information between the network elements and the external device is obtained based on the second configuration information; and a network topology diagram is constructed based on the first, second, third, and 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 there is no network protocol between the network element devices, a third connection information between the network element devices is obtained based on first configuration information. This includes: storing port information of a second device that needs to communicate in the port of the first device, or storing 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 located in different domains that need to communicate and do not have a network protocol; the ports are used to connect the network element devices and their corresponding network management systems; network element devices in different domains are connected to different network management systems; and the third connection information is obtained from the first configuration information based on a set program from the port of the first device or the port of the second device.

[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, a fourth connection information between the network element device and the external device is obtained based on a second configuration information. The method includes: storing port information of the external device on the port of the network element device to determine the second configuration information; and obtaining the second configuration information from the port of the network element device based on a set 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 an 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, so as 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 there are network protocols between the network element devices, the method obtains second connection information between the network element devices based on the network protocols, including: obtaining the Media Access Control (MAC) addresses of the two communicating network element devices respectively based on the network protocols 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 of the ports of the network element devices; obtaining the port information of the network element devices and the connection relationship of the ports of the network element devices based on the configuration table to obtain the first connection information.

[0011] The present invention also provides a network topology determination device, comprising: a first connection information acquisition module, configured to acquire first connection information between network elements from a network management system corresponding to the same domain when network elements are located in the same domain of the network; a second connection information acquisition module, configured to acquire second connection information between network elements based on network protocols when network elements are located in different domains and there are network protocols between network elements; a third connection information acquisition module, configured to acquire third connection information between network elements based on first configuration information when network elements are located in different domains and there are no network protocols between network elements; a fourth connection information acquisition module, configured to acquire fourth connection information between network elements and external devices based on second configuration information when an external device needs to communicate with network elements in the network management system; and a topology construction module, configured 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, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement any of the network topology determination methods described above.

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

[0014] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements any of the network topology determination methods described above.

[0015] The network topology determination method, apparatus, electronic device, medium, and program products provided by this invention automatically acquire first connection information through a network management system, achieving automatic acquisition of this first connection information. Second connection information is acquired based on network protocols, improving the efficiency of acquiring second connection information. Third connection information is acquired based on first configuration information for network element devices in different domains that do not share network protocols, enriching the domains involved in the network topology diagram. Fourth connection information is acquired based on second configuration information for external devices and network element devices, improving the comprehensiveness of the network topology diagram. This invention constructs a network topology diagram based on the first, second, third, and fourth connection information, enabling the construction of network topology structures between devices in the same domain, different domains, and external devices, making the network topology diagram more comprehensive. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0017] Figure 1 This is a flowchart illustrating the network topology determination method provided by the present invention.

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

[0019] Figure 3 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation

[0020] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0021] The following is combined Figures 1-3 The present invention describes a network topology determination method, apparatus, and electronic device.

[0022] Figure 1 This is a flowchart illustrating the network topology determination method provided by the present invention, as shown below. Figure 1 As shown, the network topology determination method includes steps S100 to S500, and the specific steps are as follows.

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

[0024] An operator's network has multiple domains, such as wireless domain, microwave domain, IP domain, transmission domain, and core network domain. One network management system manages one domain. Optionally, a domain may be managed by multiple network management systems. Network elements are devices connected to the network management system, such as wireless devices, microwave devices, data communication devices, transmission devices, and core network devices.

[0025] The execution entity of this invention embodiment 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, the 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 of the ports of the network element devices. Based on the configuration table, the port information of the network element devices and the connection relationship of the ports of the network element devices are obtained to obtain the first connection information.

[0027] The network management system includes a configuration table, which pre-stores port information of the network elements and their connection relationships. For example, if the network management system manages multiple microwave devices, the configuration table stores the port information of each microwave device and the connection relationships between them. By directly retrieving the configuration table of the network management system, the initial connection information of the network elements within the same domain corresponding to that network management system can be obtained.

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

[0029] S200: When network element devices are located in different domains and there are network protocols between them, obtain the second connection information between the network element devices based on the network protocols.

[0030] When network elements are located in different domains and there are network protocols between them, the second connection information between the network elements is obtained based on the network protocols. Specifically, the media access control (MAC) addresses of the two communicating network elements are obtained based on the network protocols to obtain the second connection information.

[0031] When network elements are located in different domains and there are network protocols between them, the Media Access Control (MAC) addresses of the two communicating network elements are obtained directly 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. LLDP can be used to obtain the second connection information between two network elements in different domains or between network elements in the network management system and external equipment (e.g., leased third-party equipment).

[0032] Resource management systems (e.g., NCE-IP systems) can learn the MAC addresses of two network elements connected to different domains through LLDP, thereby obtaining the cross-domain link between the two network elements. For example, the LLDP protocol can obtain the MAC address corresponding to the port of a wireless device connected to a microwave device, thus obtaining the cross-domain link between the wireless device and the microwave device.

[0033] By obtaining the second connection information through network protocols, the communication relationships between network element devices in different domains can be obtained efficiently and accurately, which is beneficial for the comprehensive construction of network topology maps.

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

[0035] When network elements are located in different domains and no network protocol exists between them, the two communicating network elements are managed by different network management systems. Therefore, it's impossible to automatically obtain third-party connection information between the two network elements using a unified network management system. This is because the two communicating network elements operate at different protocol stack layers, and no network protocol can collect third-party connection information across different protocol stack layers. For example, network elements in an Optical Transport Network (OTN) belong to the L1 physical layer, network elements in an IP-Metro network belong to the L2 link layer, and network elements in an IP core network belong to the L3 IP layer. Currently, no network protocol can collect data across the L1 physical layer and L2 link layer, or across the L1 physical layer and L3 IP layer. To obtain third-party connection information between network elements located in different domains and without a network protocol, corresponding first configuration information needs to be pre-configured on the respective network management systems of the two communicating network elements. Only then can the resource management system automatically collect third-party connection information based on this 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 network protocols.

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

[0038] If the external device is not managed by the network management system, such as a leased third-party device, then information about the external device cannot be obtained from the network management system, nor can the fourth connection information between the external device and the network element devices in the network management system be obtained. In this case, second configuration information can be configured on the network management system corresponding to the network element device that the external device needs to communicate with, according to customer specifications. The second configuration information describes the port information and connection relationship between the external device and the network element device.

[0039] S500: Constructs a network topology 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 that need to be used to construct the network topology map are converted into topology points. Based on the first connection information, the second connection information, the third connection information, and the fourth connection information, the connections between each topology point are constructed, and finally the network topology map is obtained.

[0041] The network topology diagram of this invention includes topology connections between devices within the same domain, different domains, and external devices. Examples include topology connections between wireless devices, between wireless devices and microwave devices, between wireless devices and data communication devices, between microwave devices and data communication devices, and between data communication devices and transmission devices.

[0042] The network topology determination method provided by this invention automatically acquires first connection information through a network management system, thus achieving automatic acquisition of this information. It acquires second connection information based on network protocols, improving the efficiency of acquiring second connection information. Based on first configuration information, it acquires third connection information for network element devices in different domains that do not share network protocols, enriching the domains involved in the network topology diagram. Based on second configuration information, it acquires fourth connection information between external devices and network element devices, improving the comprehensiveness of the network topology diagram. This invention constructs a network topology diagram based on the first, second, third, and fourth connection information, enabling the construction of network topology structures between devices within the same domain, different domains, and external devices, making the network topology diagram more comprehensive.

[0043] Based on the above embodiments, when network element devices are located in different domains and there is no network protocol between network element devices, the third connection information between network element devices is obtained based on the first configuration information, including steps S310 to S320, each step is 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 located in different domains and without network protocols that need to communicate. 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: Based on the configuration program, obtain first configuration information from the port of the first device or the port of the second device to obtain third connection information.

[0046] Network elements connect to the network management system via ports. When two network elements from different domains and without a shared network protocol need to communicate, these two network elements are designated as 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 vice versa, to obtain 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 WDM device's port to obtain the first configuration information. The first configuration information includes the IP device name, IP device number (e.g., rack number, slot number, etc.), and port number. 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. "to IP Device" is a configuration field. The first configuration information is "IP device name / IP device rack number / IP device slot number / IP device sub-slot number / IP device port number / connection information".

[0047] Alternatively, the port information of the connected WDM device can be added to the port description field of the IP device to obtain the first configuration information. In this case, the first configuration information includes the WDM device name, WDM device number (e.g., rack number, slot number, etc.), and port number of the WDM device. A setting field is added before the first configuration information. The resource management system accesses the setting field of the first device's port in the network management system corresponding to the first device according to the setting procedure 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 port settings field of the second device in the network management system corresponding to the second device according to the configured procedure 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 and second devices, which are located in different domains and do not have a network protocol, based on the port information of the first and second devices.

[0050] This invention enables the construction of configuration relationships between two network element devices in different domains and without network protocols by storing port information of the second device in the port of the first device or storing port information of the first device in the port of the second device. This allows for the automatic acquisition of third connection information from the network management system, thereby improving the efficiency of acquiring third connection information.

[0051] Based on the above embodiments, when an external device needs to communicate with a network element device in the network management system, the 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, each step of which is as follows.

[0052] S410: Stores port information of external devices on the ports of network element devices to determine the second configuration information.

[0053] S420: Based on the configuration program, obtain the second configuration information from the port of the network element device to obtain the fourth connection information.

[0054] The second configuration information is obtained from the port of the network element device based on the configuration program. Specifically, based on the access results of the configuration field in the port of the network element device by the configuration program, 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 in the network management system, because the external device and the network management system are incompatible, the second configuration information cannot be set in the port of the external device through the network management system. In this case, the network management system can set and store the port information (second configuration information) of the external device on the port of the network element connected to the external device. The second configuration information includes the name of the external device, the external device number, and the external device port number. A setting field is set before the second configuration information. The resource management system accesses the setting field in the port of the network element according to the setting procedure to obtain the second configuration information (port information of the external device). The resource management system obtains the port information of the network element from the network management system and obtains the fourth connection information based on the port information of the external device and the port information of the network element.

[0056] This invention enables the construction of configuration relationships between external devices and network element devices by storing port information of external devices in the ports of network element devices, thereby realizing the automatic acquisition of fourth connection information from the network management system and improving the efficiency of acquiring fourth connection information.

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

[0058] The second connection information acquisition module 202 is used to acquire second connection information between network element devices based on network protocols when network element devices are located in different domains and there are network protocols between 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 there is no network protocol between the network element devices.

[0060] The fourth connection information acquisition module 204 is used to acquire 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.

[0061] The topology building module 205 is used to build a network topology diagram 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 in this invention automatically acquires first connection information through a network management system, thus achieving automatic acquisition of the first connection information. It acquires second connection information according to network protocols, improving the efficiency of acquiring the second connection information. Based on first configuration information, it acquires third connection information for network element devices in different domains that do not have network protocols, which helps enrich the domains involved in the network topology map. Based on second configuration information, it acquires fourth connection information between external devices and network element devices, which helps improve the comprehensiveness of the network topology map. This invention constructs a network topology map based on the first, second, third, and fourth connection information, realizing the construction of network topology structures between devices in the same domain, different domains, and external devices, making the network topology map more comprehensive.

[0063] In one embodiment, the third connection information acquisition module 203 is used to store port information of the second device that needs to communicate in the port of the first device, or to store port information of the first device in the port of the second device, in order to determine the first configuration information. The first device and the second device are two network element devices located in different domains and without network protocols that need to communicate. The port is used to connect the network element device and the corresponding network management system. The 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 the set program to obtain the third connection information.

[0064] In one embodiment, the fourth connection information acquisition module 204 is used to store port information of external devices on the port of the network element device to determine the second configuration information; and to obtain 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 based on the access result of the configuration field in the port of the network element device by the configuration program, so as to obtain the second configuration information.

[0066] In one embodiment, the second connection information acquisition module 202 is used to acquire the Media Access Control (MAC) addresses of the two communicating network element devices based on the network protocol, so as 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 devices of the network management system and the connection relationship of the ports of the network element devices; based on the configuration table, the port information of the network element devices and the connection relationship of the ports of the network element devices are acquired to obtain the first connection information.

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

[0069] Furthermore, the logical instructions in the aforementioned memory 330 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0070] On the other hand, the present invention also provides a computer program product, which includes a computer program that 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. The method includes: when network element devices are located in the same domain in the network, obtaining first connection information between network element devices from the 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 the 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 the network element devices based on first configuration information; when an external device needs to communicate with a 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.

[0071] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program implements the network topology determination method provided by the above methods. The method includes: when network element devices are located in the same domain in a 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 the 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 the network element devices based on first configuration information; when an external device needs to communicate with a 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.

[0072] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0073] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments 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, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A network topology determination method, characterized by, The application comprises the following steps: 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 an external device needs to communicate with the network element devices in the network management system, obtaining the fourth connection information between the network element devices and the external device based on the second configuration information; Constructing a network topology graph 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 of claim 1, wherein, The step of obtaining 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 comprises the following steps: Storing the port information of the second device needing to communicate in the port of the first device, or storing 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 being the two network element devices needing to communicate and located in different domains and having no network protocol, the port being used to connect the network element devices and the corresponding network management system; the network element devices in different domains connecting different network management systems; Obtaining the first configuration information 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.

3. The network topology determination method of claim 1, wherein, The step of obtaining the fourth connection information between the network element devices and the external device based on the second configuration information when an external device needs to communicate with the network element devices in the network management system comprises the following steps: 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.

4. The network topology determination method of claim 3, wherein, The step of obtaining the second configuration information from the port of the network element device based on a setting program comprises the following steps: According to the access result of the setting field in the port of the network element device, obtaining the name of the external device, the number of the external device and the port number of the external device, to obtain the second configuration information.

5. The network topology determination method of claim 1, wherein, The step of 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 a network protocol between the network element devices comprises the following steps: Obtaining the media access control (MAC) address of the two network element devices needing to communicate based on the network protocol, to obtain the second connection information.

6. The network topology determination method of claim 1, wherein, The step of obtaining the first connection information between the network element devices from the network management system corresponding to the same domain comprises the following steps: Obtaining the configuration table of the network management system; the configuration table pre-storing the port information of the network element devices of the network management system and the connection relationship of the ports of the network element devices; Obtaining port information of the network element devices and connection relationship of the ports of the network element devices based on the configuration table to obtain the first connection information.

7. A network topology determination apparatus characterized by comprising: The method comprises the following steps: A first connection information obtaining module is configured to obtain first connection information between network element devices from a network management system corresponding to a same domain when the network element devices are located in the same domain in a network. A second connection information obtaining module is configured to obtain second connection information between the network element devices based on a network protocol when the network element devices are located in different domains and the network protocol exists between the network element devices. A third connection information obtaining module is configured to obtain third connection information between the network element devices based on first configuration information when the network element devices are located in different domains and the network protocol does not exist between the network element devices. A fourth connection information obtaining module is configured to obtain fourth connection information between the network element devices and external devices based on second configuration information when the external devices need to communicate with the network element devices in the network management system. A topology constructing module is configured to construct a network topology 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 on the memory and executable on the processor, characterized in that, The processor executes the program to implement the network topology determination method according to any one of claims 1 to 6. 9.A non-transitory computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the network topology determination method according to any one of claims 1 to 6.

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

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