Network equipment management method and device, electronic equipment and storage medium
By obtaining the IS-IS topology information of the core equipment, determining the neighbor relationship between network equipment, and drawing a logical topology diagram, the problem of large data processing volume and slow speed in the existing technology is solved, and faster topology diagram drawing is achieved.
Patent Information
- Application Number
- CN202411261901.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-09
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2044-09-09
AI Technical Summary
When drawing logical topology diagrams between network devices, it is necessary to collect relevant information from all devices in the area, resulting in large data processing and slow drawing speed.
By obtaining the IS-IS topology information of the intermediate system to the intermediate system of the core equipment in the target network area, the direct physical neighbor relationship between the core equipment and other equipment is determined, and the logical topology diagram between the network equipment is drawn, reducing the amount of data collection, and improving the Draw speed.
It reduces the data processing volume, improves the drawing speed of logical topology diagrams, and avoids the problem of inconsistent physical link status between devices.
Smart Images

Figure CN119299310A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a management method, device, electronic device and storage medium for network equipment. Background Art
[0002] With the development of technology, the scale of network architecture has gradually expanded. In order to facilitate the management and maintenance of network devices in a region, a logical topology diagram between network devices in the region can be drawn. The network topology diagram presents the complex network structure in a graphical way, so that network administrators can intuitively see the location of each node in the network (such as computers, servers, switches, routers, etc.) and their connection relationships. This graphical representation method not only helps to understand the physical layout of the network, but also displays the logical connection, thus facilitating fault diagnosis, resource optimization, security protection, etc.
[0003] However, currently when drawing a logical topology diagram between network devices in a region, it is necessary to collect relevant information of all devices in the region. Thus, when the number of network devices in the region is large, the amount of data processing in the process of drawing the logical topology diagram is further increased, thereby reducing the drawing speed. Summary of the invention
[0004] The embodiments of the present application provide a network device management method, device, electronic device and storage medium to solve the problem in the prior art that when drawing a logical topology diagram between network devices in a region, it is necessary to collect relevant information of all devices in the region, which leads to a large amount of data processing and a slow drawing speed.
[0005] In a first aspect, an embodiment of the present application provides a method for managing a network device, the method comprising:
[0006] Obtaining intermediate system to intermediate system IS-IS topology information of an i-th core device in a target network area, wherein the IS-IS topology information of the i-th core device includes neighbor relationship information between the i-th core device and each first network device, wherein the first network device includes network devices other than the i-th core device in the target network area, and the value of i is each integer from 1 to N, and N represents the number of core devices in the target network area;
[0007] Determine, according to the neighbor relationship information between the ith core device and each of the first network devices, a network device that has a direct physical neighbor relationship with the ith core device;
[0008] A logical topology diagram between the network devices in the target network area is determined based on the obtained network devices that have a direct physical neighbor relationship with the N core devices.
[0009] Optionally, the neighbor relationship information between the ith core device and the jth first network device includes: a first identifier corresponding to the kth path, a second identifier corresponding to the kth path, and a target interface corresponding to the kth path;
[0010] The kth path is a path with the ith core device as the starting point device and the jth first network device as the end point device, where k is an integer from 1 to L, and L represents the number of paths between the ith core device and the jth first network device;
[0011] The first identifier represents an identifier of the end point device of the k-th path;
[0012] The second identifier represents an identifier of a next-hop device of the starting point device on the k-th path;
[0013] The target interface represents the interface through which the starting point device is connected to the device represented by the second identifier;
[0014] The value of j is any integer from 1 to M, where M represents the number of the first network devices;
[0015] The determining, based on the neighbor relationship information between the ith core device and each of the first network devices, a network device having a direct physical neighbor relationship with the ith core device comprises:
[0016] In a case where the first identifier is the same as the second identifier, determining that the network device that has a direct physical neighbor relationship with the i-th core device through the target interface includes the j-th first network device;
[0017] When the first identifier is different from the second identifier, it is determined that the network devices that have an indirect physical neighbor relationship with the i-th core device through the target interface include the j-th first network device.
[0018] Optionally, the method further comprises:
[0019] Acquire target information of each network device in the target network area;
[0020] Marking the target information in the logical topology diagram;
[0021] The target information includes at least one of the following:
[0022] Device identification, IS-IS neighbor protocol status, interface logical number, link utilization, link protocol status, interface cyclic redundancy check CRC bit error, and interface optical module optical attenuation value.
[0023] Optionally, the method further comprises:
[0024] Generate an inspection report according to the target information;
[0025] The inspection report includes at least one of the following:
[0026] Total number of interfaces, number of abnormal interfaces, abnormal interface IDs, interface IDs whose CRC error rate exceeds the first threshold, number of CRC errors, interface IDs whose link usage rate exceeds the second threshold, and interface IDs whose IS-IS neighbor status is abnormal.
[0027] Optionally, the method further comprises:
[0028] The inspection report is pushed to a predetermined communication address.
[0029] Optionally, the method further comprises:
[0030] In the logical topology diagram, an interface indicating an abnormality in the inspection report is prompted.
[0031] Optionally, the acquiring of intermediate system to intermediate system IS-IS topology information of an i-th core device in the target network area includes:
[0032] The IS-IS topology information of the i-th core device in the target network area is obtained through a collection instruction recognizable by the network devices in the target network area.
[0033] In a second aspect, an embodiment of the present application provides a management device for a network device, the device comprising:
[0034] A data acquisition module, used to obtain intermediate system to intermediate system IS-IS topology information of an i-th core device in a target network area, wherein the IS-IS topology information of the i-th core device includes neighbor relationship information between the i-th core device and each first network device, wherein the first network device includes network devices other than the i-th core device in the target network area, and the value of i is each integer from 1 to N, and N represents the number of core devices in the target network area;
[0035] The IS-IS network logical topology drawing module is used to:
[0036] Determine, according to the neighbor relationship information between the ith core device and each of the first network devices, a network device that has a direct physical neighbor relationship with the ith core device;
[0037] A logical topology diagram between the network devices in the target network area is determined based on the obtained network devices that have a direct physical neighbor relationship with the N core devices.
[0038] In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a transceiver, and a processor:
[0039] A memory for storing computer programs; a transceiver for sending and receiving data under the control of the processor; and a processor for reading the computer program in the memory and executing the network device management method described in the first aspect above.
[0040] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the network device management method described in the first aspect is implemented.
[0041] In an embodiment of the present application, the IS-IS topology information of the i-th core device in the target network area can be obtained, wherein the IS-IS topology information of the i-th core device includes the neighbor relationship information between the i-th core device and each first network device, the first network device includes the network devices other than the i-th core device in the target network area, and the value of i is each integer from 1 to N, and N represents the number of core devices in the target network area; thereby, based on the neighbor relationship information between the i-th core device and each first network device, the network device that has a direct physical neighbor relationship with the i-th core device is determined; and then based on the obtained network device that has a direct physical neighbor relationship with the N core devices, the logical topology diagram between the network devices in the target network area is determined.
[0042] It can be seen that in the embodiment of the present application, when determining the logical topology between network devices in the target network area, it is not necessary to collect relevant information of all network devices in the area, and only the IS-IS topology information of the core devices in the area needs to be collected. Based on the IS-IS topology information of each core device, the neighbor relationship between each network device in the area can be determined, and then the logical topology between the network devices in the area can be determined. Therefore, the embodiment of the present application can reduce the amount of data collection when determining the logical topology between network devices, thereby reducing the amount of data processing, and then speeding up the determination of the logical topology. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0044] Figure 1 A flowchart of a method for managing a network device provided in an embodiment of the present application;
[0045] Figure 2 This is a first example of a logical topology diagram of a target network area in an embodiment of the present application;
[0046] Figure 3 A second example of a logical topology diagram of a target network area in an embodiment of the present application;
[0047] Figure 4 A third example of a logical topology diagram of a target network area in an embodiment of the present application;
[0048] Figure 5 A structural block diagram of a management device for a network device provided in an embodiment of the present application;
[0049] Figure 6 A schematic diagram of a specific implementation of the management device of a network device provided in an embodiment of the present application;
[0050] Figure 7 A structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0051] In the embodiments of the present application, the term "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0052] In the embodiments of the present application, the term "plurality" refers to two or more than two, and other quantifiers are similar.
[0053] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0054] The embodiments of the present application provide a network device management method, apparatus, electronic device and storage medium to solve the problem in the prior art that when drawing a logical topology diagram between network devices in an area, it is necessary to collect relevant information of all devices in the area, which leads to large data processing volume and slow drawing speed.
[0055] Among them, the method and the device are based on the same application concept. Since the method and the device solve the problem in a similar principle, the implementation of the device and the method can refer to each other, and the repeated parts will not be repeated.
[0056] Figure 1 A schematic diagram of a flow chart of a method for managing a network device provided in an embodiment of the present application is shown. The method may include the following steps 101 to 103:
[0057] Step 101: Obtain the intermediate system to intermediate system IS-IS topology information of the i-th core device in the target network area.
[0058] It should be noted that the Intermediate System to Intermediate System (IS-IS) protocol is an interior gateway protocol (IGP) based on link status and using the Shortest Path First (SPF) algorithm for route calculation. Each network device (such as a router) running the IS-IS protocol will generate a Link State Protocol Data Unit (LSPDU), which contains the link state information of all IS-IS protocol-enabled interfaces of the network device. By establishing an IS-IS adjacency relationship with adjacent devices and updating the Link State Database (LSDB) of the local device, the LSDB can be synchronized with the LSDB of other devices in the entire IS-IS network. Based on the synchronization of LSDB, each network device in the domain can obtain IS-IS topology information and update it regularly through the Link State Protocol (LSP).
[0059] In an embodiment of the present application, the IS-IS topology information of the i-th core device includes the neighbor relationship information between the i-th core device and each first network device, the first network device includes the network devices in the target network area except the i-th core device, the value of i is each integer from 1 to N, and N represents the number of core devices in the target network area.
[0060] In addition, in order to support large-scale routing networks, IS-IS adopts a two-level hierarchical structure of backbone areas and non-backbone areas within the autonomous system. Generally speaking, Level-1 network devices are deployed in non-backbone areas, and Level-2 network devices and Level-1-2 network devices are deployed in backbone areas. Each non-backbone area is connected to the backbone area through Level-1-2 network devices. To ensure the continuity of the backbone area, the Level-2 level network devices in the routing domain must be physically continuous. All Level-2 level (i.e., forming a Level-2 neighbor relationship) network devices constitute the backbone network of the routing domain.
[0061] Optionally, the target network area includes the backbone area, that is, in the embodiment of the present application, a logical topology diagram between network devices in the backbone area can be drawn.
[0062] Step 102: Determine the network device that has a direct physical neighbor relationship with the i-th core device based on the neighbor relationship information between the i-th core device and each of the first network devices.
[0063] Among them, the neighbor relationship information between the i-th core device and each first network device can indicate which first network devices have a direct physical neighbor relationship with the i-th core device. After determining the network devices that have a direct physical neighbor relationship with each core device in the target network area, a logical topology map of the target network area can be drawn based on this.
[0064] Step 103: Determine a logical topology diagram between network devices in the target network area based on the obtained network devices that have direct physical neighbor relationships with the N core devices.
[0065] That is, based on the obtained network devices that have direct physical neighbor relationships with the N core devices, a logical topology diagram between the network devices in the target network area can be drawn.
[0066] It should be noted that the target network area includes multiple network devices, and the core device of the area has been set up between the network devices in the target network area. Therefore, the core device in the target network area is predetermined.
[0067] The core device transfers data during the transmission process between network devices. Therefore, there will be a direct physical neighbor relationship between the core device and some other network devices. In this way, based on the network devices that have a direct physical neighbor relationship with each core device, a logical topology map of the target network area can be drawn.
[0068] For example Figure 2As shown, in the first example, Router A and Router B are core devices. Based on Router B, Router C, Router D, Router E, and Router F that have a direct physical relationship with Router A, and Router A, Router C, Router D, Router E, and Router F that have a direct physical relationship with Router B, the logical topology diagram shown in the first example can be drawn.
[0069] For example Figure 3 As shown, in the second example, RouterA and RouterB are core devices. Based on RouterB, RouterC, and RouterD that have a direct physical relationship with RouterA, and RouterA, RouterE, and RouterF that have a direct physical relationship with RouterB, the logical topology diagram shown in the second example can be drawn.
[0070] For example Figure 4 As shown, in the third example, RouterA, RouterB, and RouterE are core devices. Based on RouterB and RouterC that have a direct physical relationship with RouterA, RouterA and RouterD that have a direct physical relationship with RouterB, and RouterC and RouterD that have a direct physical relationship with RouterE, the logical topology diagram shown in the third example can be drawn.
[0071] It can be seen that in the embodiment of the present application, it is not necessary to collect relevant information of all network devices in the area. Only the IS-IS topology information of the core devices in the area needs to be collected to draw the logical topology map between the network devices in the area, thereby reducing the amount of data collection and thus reducing the amount of data processing, thereby speeding up the drawing speed of the logical topology map.
[0072] It can be seen from the above steps 101 to 103 that in an embodiment of the present application, the IS-IS topology information of the i-th core device in the target network area can be obtained, wherein the IS-IS topology information of the i-th core device includes the neighbor relationship information between the i-th core device and each first network device, the first network device includes the network devices other than the i-th core device in the target network area, and the value of i is each integer from 1 to N, and N represents the number of core devices in the target network area; thereby, based on the neighbor relationship information between the i-th core device and each first network device, the network device that has a direct physical neighbor relationship with the i-th core device is determined; and then based on the obtained network device that has a direct physical neighbor relationship with the N core devices, the logical topology diagram between the network devices in the target network area is determined.
[0073] It can be seen that in the embodiment of the present application, when determining the logical topology between network devices in the target network area, it is not necessary to collect relevant information of all network devices in the area, and only the IS-IS topology information of the core devices in the area needs to be collected. Based on the IS-IS topology information of each core device, the neighbor relationship between each network device in the area can be determined, and then the logical topology between the network devices in the area can be determined. Therefore, in the embodiment of the present application, when determining the logical topology between network devices, the amount of data collection can be reduced, thereby reducing the amount of data processing, and then the speed of determining the logical topology can be accelerated.
[0074] In addition, in the prior art, the traditional network topology is generally drawn based on the physical logical connection, while the embodiment of the present application is drawn based on the physical logical connection and the IS-IS protocol, thereby avoiding the scenario in which the physical link status and the system interface protocol status are inconsistent after the long-distance physical link between devices needs to pass through the transmission wavelength division system.
[0075] Optionally, the neighbor relationship information between the ith core device and the jth first network device includes: a first identifier corresponding to the kth path, a second identifier corresponding to the kth path, and a target interface corresponding to the kth path;
[0076] The kth path is a path with the ith core device as the starting point device and the jth first network device as the end point device, where k is an integer from 1 to L, and L represents the number of paths between the ith core device and the jth first network device;
[0077] The first identifier represents an identifier of the end point device of the k-th path;
[0078] The second identifier represents an identifier of a next-hop device of the starting point device on the k-th path;
[0079] The target interface represents the interface through which the starting point device is connected to the device represented by the second identifier;
[0080] The value of j is any integer from 1 to M, where M represents the number of the first network devices;
[0081] In the above step 102, the determining of the network device having a direct physical neighbor relationship with the i-th core device according to the neighbor relationship information between the i-th core device and each of the first network devices includes the following steps A-1 to A-2:
[0082] Step A-1: when the first identifier is the same as the second identifier, determining that the network device that has a direct physical neighbor relationship with the i-th core device through the target interface includes the j-th first network device; (that is, if the first identifier is the same as the second identifier, it can be determined that the i-th core device has a direct physical neighbor relationship with the j-th first network device through the target interface;)
[0083] Step A-2: When the first identifier is different from the second identifier, it is determined that the network devices that have an indirect physical neighbor relationship with the i-th core device through the target interface include the j-th first network device (that is, if the first identifier is different from the second identifier, it can be determined that the i-th core device and the j-th first network device have an indirect physical neighbor relationship through the target interface).
[0084] The device identifier may be a system ID.
[0085] In order to facilitate the understanding of the above steps A-1 to A-2, Figures 2 to 4 The example shown describes the process of determining the network devices that have a direct physical neighbor relationship with each core device:
[0086] For example Figure 2 In the first example shown, RouterA and RouterB are core devices, and the collected IS-IS topology information of RouterA and the conclusions obtained based on the topology information can be shown in Table 1:
[0087] Table 1 IS-IS topology information and conclusions of RouterA
[0088]
[0089]
[0090]
[0091] It should be noted that each data in Table 1 corresponds to a path.
[0092] Based on the conclusions in Table 1, we can conclude that RouterA and RouterB have a direct physical neighbor relationship through Interface-a, and RouterA has a direct physical neighbor relationship with RouterC, RouterD, RouterE, and RouterF through Interface-x.
[0093] Similarly, according to the collected IS-IS topology information of RouterB, it can be obtained that RouterB and RouterA have a direct physical neighbor relationship through Interface-b, and RouterB has a direct physical neighbor relationship with RouterC, RouterD, RouterE, and RouterF through Interface-y.
[0094] Thus, based on the above content, we can get Figure 2 The logical topology diagram of the first example is shown.
[0095] For example Figure 3 In the second example shown, RouterA and RouterB are core devices, and the collected IS-IS topology information of RouterA and the conclusions obtained based on the topology information can be shown in Table 2:
[0096] Table 2 IS-IS topology information and conclusions of RouterA
[0097]
[0098]
[0099] Based on the conclusions in Table 2, we can conclude that RouterA and RouterB have a direct physical neighbor relationship through Interface-a, and RouterA, RouterC, and RouterD have a direct physical neighbor relationship through Interface-x.
[0100] Similarly, according to the collected IS-IS topology information of RouterB, it can be obtained that RouterB and RouterA have a direct physical neighbor relationship through Interface-b, and RouterB has a direct physical neighbor relationship with RouterE and RouterF through Interface-y.
[0101] Moreover, as shown in Table 2, data 2 in the neighbor relationship information between RouterA and RouterE can indicate that RouterD is located on the path between RouterA and RouterE, so it can be obtained that RouterD is connected to RouterE; similarly, data 2 in the neighbor relationship information between RouterA and RouterF can indicate that RouterC is located on the path between RouterA and RouterF, so it can be obtained that RouterC is connected to RouterF;
[0102] Thus, based on the above content, we can get Figure 3 The logical topology diagram of the second example is shown.
[0103] For example Figure 4 In the third example shown, RouterA, RouterB, and RouterE are core devices, and the collected IS-IS topology information of RouterA and the conclusions obtained based on the topology information can be shown in Table 3:
[0104] Table 3 IS-IS topology information and conclusions of RouterA
[0105]
[0106]
[0107] Based on the conclusions in Table 3, it can be concluded that RouterA and RouterB have a direct physical neighbor relationship through Interface-a1, and RouterA and RouterC have a direct physical neighbor relationship through Interface-a2.
[0108] Similarly, according to the collected IS-IS topology information of RouterB, it can be obtained that RouterB and RouterA have a direct physical neighbor relationship through Interface-b1, and RouterB and RouterD have a direct physical neighbor relationship through Interface-b2.
[0109] Similarly, according to the collected IS-IS topology information of Router E, it can be found that Router E and Router C have a direct physical neighbor relationship through Interface-e1, and Router E and Router F have a direct physical neighbor relationship through Interface-42.
[0110] Thus, based on the above content, we can get Figure 4 The logical topology diagram of the third example is shown.
[0111] It should be noted that, in addition, Figure 4 It expresses a physically continuous IS-IS protocol ring neighbor network topology scenario with five or more devices. This scenario rarely exists in real network topology planning. Ultra-large networks are generally built by planning autonomous systems (AS).
[0112] Optionally, the method further comprises:
[0113] Acquire target information of each network device in the target network area;
[0114] Marking the target information in the logical topology diagram;
[0115] The target information includes at least one of the following:
[0116] Device identification, IS-IS neighbor protocol status, interface logical number, link utilization, link protocol status, interface cyclic redundancy check CRC bit error, and interface optical module optical attenuation value.
[0117] In addition, the IS-IS neighbor protocol status indicates whether the neighbor relationship between the two network devices is normal. For example, a value of 1 for the IS-IS neighbor protocol status indicates that the neighbor relationship between the two network devices is normal, and a value of 0 indicates that the neighbor relationship between the two network devices is disconnected or abnormal.
[0118] The interface logic number indicates the logic number of the interface of the network device on which the IS-IS protocol is started.
[0119] The link utilization rate may also be referred to as a bandwidth utilization rate.
[0120] From the above, it can be seen that in an embodiment of the present application, the above-mentioned target information of each network device in the target network area can also be obtained, so that after the logical topology map is drawn, the target information of each network device can be marked in the logical topology map. In this way, the above-mentioned target information of each network device can be directly viewed through the logical topology map.
[0121] Among them, the above-mentioned target information belonging to the network device can be marked in an area corresponding to the network device; or, a touch switch can be set at the icon position of the network device (or a nearby position) in the logical topology diagram, and the above-mentioned target information of the network device can be displayed by clicking the touch switch.
[0122] Optionally, the method further comprises:
[0123] Generate an inspection report according to the target information;
[0124] The inspection report includes at least one of the following:
[0125] Total number of interfaces, number of abnormal interfaces, abnormal interface identification ID, interface ID whose CRC error exceeds the first threshold, number of CRC errors, interface ID whose link utilization rate exceeds the second threshold, interface ID whose interface optical module attenuation value is not within the predetermined range, interface ID whose link protocol status is abnormal, and interface ID whose IS-IS neighbor status is abnormal.
[0126] In addition, the total number of interfaces represents the number of interfaces with IS-IS protocol enabled on all network devices in the target network area; the abnormal interfaces represent abnormal interfaces among the interfaces with IS-IS protocol enabled on all network devices in the target network area, wherein the abnormal interfaces can be determined based on at least one of the link utilization rate, link protocol status, CRC error code, and interface optical module optical attenuation value, for example, an interface with a CRC error code exceeding a first threshold value belongs to an abnormal interface, an interface with a link utilization rate exceeding a second threshold value belongs to an abnormal interface, an interface with an interface optical module optical attenuation value not within a predetermined range belongs to an abnormal interface, an interface with an abnormal link protocol status belongs to an abnormal interface, and an interface with an abnormal IS-IS neighbor status belongs to an abnormal interface;
[0127] In addition, different types of abnormal interfaces among the abnormal interfaces (for example, interfaces whose CRC bit errors exceed the first threshold, interfaces whose link utilization rate exceeds the second threshold, interfaces whose interface optical module attenuation values are not within a predetermined range, interfaces whose link protocol status is abnormal, and interfaces whose IS-IS neighbor status is abnormal) can be classified and counted.
[0128] From the above, it can be seen that in the embodiment of the present application, the inspection report can be generated according to the above target information of each network device in the target network area, so that relevant personnel can view the relevant situation of the abnormal interface from the inspection report, so as to perform relevant processing according to the abnormal situation in time.
[0129] It is understandable that the target information of each network device in the logical topology diagram of the target network area can be periodically updated, thereby periodically updating the inspection report; or, the target information of each network device in the logical topology diagram of the target network area can be manually triggered to update, thereby periodically updating the inspection report.
[0130] Optionally, the method further comprises:
[0131] The inspection report is pushed to a predetermined communication address.
[0132] For example, the inspection report may be pushed to the communication address of the relevant user in the instant messaging application, so that the relevant personnel can view the relevant situation of the abnormal interface from the inspection report in time, so as to perform relevant processing according to the abnormal situation in time.
[0133] Optionally, the method further comprises:
[0134] In the logical topology diagram, an interface indicating an abnormality in the inspection report is prompted.
[0135] Among them, different ways of prompting can be adopted according to the abnormal type corresponding to the abnormal interface. For example, a disconnected (Down) interface can be marked in red, and an interface whose link usage exceeds the second threshold can be marked in yellow.
[0136] It can be seen from this that by prompting abnormal interfaces in the logical topology diagram, the abnormal interfaces can be clearly viewed in the logical topology diagram, so as to facilitate active inspection by operation and maintenance monitoring personnel.
[0137] Optionally, the acquiring of intermediate system to intermediate system IS-IS topology information of an i-th core device in the target network area includes:
[0138] The IS-IS topology information of the i-th core device in the target network area is obtained through a collection instruction recognizable by the network devices in the target network area.
[0139] Exemplarily, a client of the Network Configuration Protocol (NETCONF) or a client of the Command-Line Interface (CLI) SecureCRT / Putty may be used to send a collection instruction through a remote connection tool (SSH) or a remote login system (Telnet), thereby obtaining the IS-IS topology information through the collection quality. For example, the collection instruction may include at least one of the following:
[0140] 1. Command for collecting IS-IS topology information: show isis topology;
[0141] 2. Command used to collect IS-IS neighbor status: show isis adjacency;
[0142] 3. Commands for collecting device interface information: show interface|include protocol|Description|BW|Intf|CRC;
[0143] 4. Command used to collect device interface module information: show intf-statistics utilizationphy-interface-only.
[0144] It should be noted that the above-mentioned SecureCRT is a terminal emulation program that supports SSH; Putty is a free open source terminal emulator, serial console and network file transfer application that supports commonly used connection protocols such as SSH, Telnet, etc.
[0145] In addition, in the prior art, when collecting and drawing a logical topology diagram through the conventional Simple Network Management Protocol (SNMP) or Link Layer Discovery Protocol (LLDP), it is necessary to collect global network equipment and complex topology information. In the embodiments of the present application, only a few collection instructions need to be executed on the core device side (generally two devices that serve as the primary and backup for each other) to complete the collection of IS-IS topology information (Ms millisecond level), and the topology can be updated quickly and agilely after the information comparison is completed.
[0146] The above introduces the management method of the network device provided in the embodiment of the present application. The following will introduce the management device of the network device provided in the embodiment of the present application in conjunction with the accompanying drawings.
[0147] See also Figure 5 The present application also provides a network device management device, the device comprising:
[0148] The data acquisition module 501 is used to obtain the intermediate system to intermediate system IS-IS topology information of the i-th core device in the target network area, wherein the IS-IS topology information of the i-th core device includes the neighbor relationship information between the i-th core device and each first network device, the first network device includes the network devices other than the i-th core device in the target network area, and the value of i is each integer from 1 to N, and N represents the number of core devices in the target network area;
[0149] The IS-IS network logical topology drawing module 502 is used to:
[0150] Determine, according to the neighbor relationship information between the ith core device and each of the first network devices, a network device that has a direct physical neighbor relationship with the ith core device;
[0151] A logical topology diagram between the network devices in the target network area is determined based on the obtained network devices that have a direct physical neighbor relationship with the N core devices.
[0152] It can be seen that in the embodiment of the present application, the data acquisition module 501 is able to obtain the IS-IS topology information of the i-th core device in the target network area, wherein the IS-IS topology information of the i-th core device includes the neighbor relationship information between the i-th core device and each first network device, the first network device includes the network devices other than the i-th core device in the target network area, and the value of i is each integer from 1 to N, and N represents the number of core devices in the target network area; thereby, the IS-IS network logical topology drawing module 502 determines the network device that has a direct physical neighbor relationship with the i-th core device based on the neighbor relationship information between the i-th core device and each first network device; and then determines the logical topology diagram between the network devices in the target network area based on the obtained network device that has a direct physical neighbor relationship with the N core devices.
[0153] It can be seen that in the embodiment of the present application, when determining the logical topology between network devices in the target network area, it is not necessary to collect relevant information of all network devices in the area, and only the IS-IS topology information of the core devices in the area needs to be collected. Based on the IS-IS topology information of each core device, the neighbor relationship between each network device in the area can be determined, and then the logical topology between the network devices in the area can be determined. Therefore, in the embodiment of the present application, when determining the logical topology between network devices, the amount of data collection can be reduced, thereby reducing the amount of data processing, and then the speed of drawing the logical topology can be accelerated.
[0154] Optionally, the neighbor relationship information between the ith core device and the jth first network device includes: a first identifier corresponding to the kth path, a second identifier corresponding to the kth path, and a target interface corresponding to the kth path;
[0155] The kth path is a path with the ith core device as the starting point device and the jth first network device as the end point device, where k is an integer from 1 to L, and L represents the number of paths between the ith core device and the jth first network device;
[0156] The first identifier represents an identifier of the end point device of the k-th path;
[0157] The second identifier represents an identifier of a next-hop device of the starting point device on the k-th path;
[0158] The target interface represents the interface through which the starting point device is connected to the device represented by the second identifier;
[0159] The value of j is any integer from 1 to M, where M represents the number of the first network devices;
[0160] The IS-IS network logical topology drawing module 502 determines the network device that has a direct physical neighbor relationship with the i-th core device according to the neighbor relationship information between the i-th core device and each of the first network devices, including:
[0161] In a case where the first identifier is the same as the second identifier, determining that the network device that has a direct physical neighbor relationship with the i-th core device through the target interface includes the j-th first network device;
[0162] When the first identifier is different from the second identifier, it is determined that the network devices that have an indirect physical neighbor relationship with the i-th core device through the target interface include the j-th first network device.
[0163] Optionally, the data acquisition module 501 is further used for:
[0164] Acquire target information of each network device in the target network area;
[0165] Marking the target information in the logical topology diagram;
[0166] The target information includes at least one of the following:
[0167] Device identification, IS-IS neighbor protocol status, interface logical number, link utilization, link protocol status, interface cyclic redundancy check CRC bit error, and interface optical module optical attenuation value.
[0168] Optionally, the device further comprises:
[0169] A monitoring and alarm module, used to generate an inspection report based on the target information;
[0170] The inspection report includes at least one of the following:
[0171] Total number of interfaces, number of abnormal interfaces, abnormal interface identification ID, interface ID whose CRC error exceeds the first threshold, number of CRC errors, interface ID whose link utilization rate exceeds the second threshold, interface ID whose interface optical module attenuation value is not within the predetermined range, interface ID whose link protocol status is abnormal, and interface ID whose IS-IS neighbor status is abnormal.
[0172] Optionally, the device further comprises:
[0173] The monitoring and alarm module is used to push the inspection report to a predetermined communication address.
[0174] Optionally, the device further comprises:
[0175] The monitoring alarm module is used to prompt the interface indicating abnormality in the inspection report in the logical topology diagram.
[0176] Optionally, the data acquisition module 501 is specifically used for:
[0177] The IS-IS topology information of the i-th core device in the target network area is obtained through a collection instruction recognizable by the network devices in the target network area.
[0178] In summary, the specific implementation of the management device of the network device in the embodiment of the present application can be described as follows:
[0179] like Figure 6 As shown, the management device of the network device includes the following modules:
[0180] The data collection module is responsible for collecting IS-IS topology information and target information of network devices (i.e., routing devices) from the target network area, wherein the IS-IS topology information includes neighbor relationship information (i.e., the first identifier, the second identifier, and the target interface mentioned above), and the target information includes device identifier, IS-IS neighbor protocol status, interface logical number, link utilization rate, link protocol status, interface CRC error code, and interface optical module optical attenuation value;
[0181] The data storage module uses a graph database to store IS-IS topology information of network devices and a time series database to store target information;
[0182] It should be noted that a graph database is a database that uses a graph structure for semantic queries. It uses vertices, edges, and properties to represent and store data. Among them, a vertex is an abstraction of an object, generally referring to an entity, such as the router in the embodiment of the present application; an edge is an association between two vertices, directed or undirected, such as the connection line between the routers in the embodiment of the present application; a vertex property is a specific description of an object. Depending on the type represented by the vertex, each vertex can have different properties, such as the first identifier, the second identifier, the target interface, etc. in the embodiment of the present application.
[0183] A time series database is a database that stores a collection of data recorded in time sequence. Time series data refers to data collected, recorded or observed at a certain time interval or timestamp over a period of time. Time series data usually consists of two main parts: timestamp and corresponding collection value. The timestamp represents the time point or time period of the data point, which can be in the form of date, time, timestamp, etc. The collection value is the numerical value or indicator measured or recorded at a given time point or time period.
[0184] The data collection module can provide two modes: scheduled collection (3-5 minutes) and immediate collection. Both collection actions will trigger the start of the IS-IS network logical topology drawing module to update the logical topology map in a timely manner. Network devices generally provide two query display modes: detailed and brief. In order to quickly collect data (milliseconds Ms), all collection instructions are executed in a brief manner. Among them, the collection instructions can be as described above and will not be repeated here.
[0185] The IS-IS network logical topology drawing module is composed of a drawing submodule and a marking submodule, wherein the drawing submodule is responsible for retrieving data from the graph database and analyzing and drawing the logical topology diagram of the IS-IS protocol, marking the device identification (such as system ID) and the interface logical number; the marking submodule is responsible for retrieving target data from the timing database, and marking the various contents included in the target information in the logical topology diagram drawn by the drawing submodule; in addition, when the marking submodule marks the various contents included in the target information, the value range can be set for the same content for color marking, that is, the values in different value ranges are marked with different colors.
[0186] It should be noted that the specific process of the drawing submodule drawing the logical topology map based on the IS-IS topology information can be found in the above description and will not be repeated here.
[0187] The monitoring and alarm module is responsible for inspecting the target information in the logical topology diagram, and generating and pushing inspection reports; the inspection report includes the total number of interfaces, the number of abnormal interfaces, the abnormal interface identification ID, the interface ID whose CRC error exceeds the first threshold, the number of CRC errors, the interface ID whose link utilization rate exceeds the second threshold (for example, 70%), the interface ID whose interface optical module light attenuation value is not within the predetermined range, the interface ID whose link protocol status is abnormal, and the interface ID whose IS-IS neighbor status is abnormal; the push method includes at least one of the following: instant messaging APP message, SMS, email and network management system; in addition, the monitoring and alarm module can also alarm for abnormal interfaces.
[0188] Optionally, the IS-IS network logical topology drawing module may mark the abnormal interfaces in different ways according to the abnormal types corresponding to the abnormal interfaces. For example, a disconnected (Down) interface may be marked in red, and an interface whose link usage exceeds the second threshold may be marked in yellow.
[0189] Optionally, after the IS-IS network logical topology drawing module draws a logical topology diagram that conforms to the target information, it triggers the monitoring alarm module to perform an inspection action, thereby triggering an alarm.
[0190] In addition, as business development is getting faster and faster, driven by the wave of cloud-to-digital transformation, network quality requirements are also getting higher and higher. However, the current network core equipment failure relies on the traditional upload of logs to the log server for analysis, and pushes to the network management system in conjunction with SNMP information collection. Different report contents are configured with different processing priorities and alarm levels to generate alarm work orders. The alarm push process takes too long (5-10 minutes for the highest level alarm), and there are hidden dangers such as log loss and slow processing due to the processing performance bottleneck of the log server (alarm push is delayed or does not trigger push). Therefore, in order to grasp the health status of core equipment in a timely, accurate and intelligent manner and implement agile and automated inspections, this application proposes the management device of the network equipment described above.
[0191] In summary, compared with the prior art, the management device of the network device of the embodiment of the present application has the following beneficial effects:
[0192] (1) IS-IS topology information is collected through instructions that can be recognized by network devices, so as to analyze and draw a logical topology diagram. Only a few instructions need to be executed on the core device side to complete the collection of IS-IS topology information (in milliseconds). After the information is compared, the topology can be updated quickly and agilely.
[0193] (2) Based on the physical logical connection, the IS-IS protocol is drawn to avoid the scenario where the physical link status and the system interface protocol status are inconsistent after the long-distance physical link between devices needs to pass through the transmission wavelength division system.
[0194] (3) The topology drawn by combining the above target information (i.e., device identification, IS-IS neighbor protocol status, interface logical number, link utilization, link protocol status, interface cyclic redundancy check CRC bit error, and interface optical module optical attenuation value) can quickly and intuitively view the status information of each protocol interface, provide the ability to predict the occurrence of faults, which is conducive to improving fault handling efficiency and optimizing equipment maintenance plans. It can also facilitate operation and maintenance personnel to quickly inspect the operation of the core network and avoid account authorization problems of core equipment.
[0195] (4) It can realize real-time visual monitoring of inspection results, automatically count inspection results and generate reports, and intuitively display multi-indicator screening and classification to facilitate reporting management.
[0196] (5) It can realize automatic inspection of core network equipment, including "total number of interfaces, number of abnormal interfaces, abnormal interface identification ID, interface ID whose CRC error exceeds the first threshold, number of CRC errors, interface ID whose link utilization rate exceeds the second threshold, interface ID whose interface optical module attenuation value is not within the predetermined range, interface ID whose link protocol status is abnormal, interface ID whose IS-IS neighbor status is abnormal", etc. It only takes a few seconds to complete network inspection and alarm, solving the problems of low inspection efficiency, complicated inspection results, and long fault location time in the current operation and maintenance inspection of core network equipment.
[0197] It should be noted that the division of units in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0198] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a processor-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or 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 to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0199] It should be noted here that the above-mentioned device provided in the embodiment of the present application can implement all the method steps implemented in the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as those in the method embodiment will not be described in detail here.
[0200] The embodiment of the present application also provides an electronic device, such as Figure 7 As shown, the electronic device includes a memory 720, a transceiver 710, and a processor 700;
[0201] A memory 720, for storing computer programs;
[0202] The transceiver 710 is used to receive and send data under the control of the processor 700;
[0203] The processor 700 is used to read the computer program in the memory 720 and execute the network device management method described in the first aspect.
[0204] Among them, Figure 7 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically linking together various circuits of one or more processors represented by processor 700 and memory represented by memory 720. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 710 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium, which may include a wireless channel, a wired channel, an optical cable, and other transmission media. The processor 700 is responsible for managing the bus architecture and general processing, and the memory 720 may store data used by the processor 700 when performing operations.
[0205] The processor 700 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or a complex programmable logic device (CPLD). The processor 700 may also adopt a multi-core architecture.
[0206] It should be noted here that the above-mentioned device provided in the embodiment of the present application can implement all the method steps implemented in the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as those in the method embodiment will not be described in detail here.
[0207] An embodiment of the present application further provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the method for managing a network device described in the first aspect above is implemented.
[0208] The computer-readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (Magnet-Optica, MO)), etc.), optical storage (such as Compact Disk (CD), Digital Versatile Disc (DVD), Blu-ray Disc (BD), Holographic Versatile Disc (HVD), etc.), and semiconductor memory (such as Read-Only Memory (ROM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read Only Memory (EEPROM), non-volatile memory (NAND FLASH), solid-state drive (Solid State Disk or Solid State Drive, SSD)), etc.
[0209] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0210] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer executable instructions. These computer executable instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0211] These processor executable instructions may also be stored in a processor readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the processor readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0212] These processor-executable instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0213] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for managing a network device, characterized in that: The method comprises: Obtaining intermediate system to intermediate system IS-IS topology information of an i-th core device in a target network area, wherein the IS-IS topology information of the i-th core device includes neighbor relationship information between the i-th core device and each first network device, wherein the first network device includes network devices other than the i-th core device in the target network area, and the value of i is each integer from 1 to N, and N represents the number of core devices in the target network area; Determine, according to the neighbor relationship information between the ith core device and each of the first network devices, a network device that has a direct physical neighbor relationship with the ith core device; A logical topology diagram between the network devices in the target network area is determined based on the obtained network devices that have a direct physical neighbor relationship with the N core devices.
2. The method according to claim 1, characterized in that The neighbor relationship information between the ith core device and the jth first network device includes: a first identifier corresponding to the kth path, a second identifier corresponding to the kth path, and a target interface corresponding to the kth path; The kth path is a path with the ith core device as the starting point device and the jth first network device as the end point device, where k is an integer from 1 to L, and L represents the number of paths between the ith core device and the jth first network device; The first identifier represents an identifier of the end point device of the k-th path; The second identifier represents an identifier of a next-hop device of the starting point device on the k-th path; The target interface represents the interface through which the starting point device is connected to the device represented by the second identifier; The value of j is any integer from 1 to M, where M represents the number of the first network devices; The determining, based on the neighbor relationship information between the ith core device and each of the first network devices, a network device having a direct physical neighbor relationship with the ith core device comprises: In a case where the first identifier is the same as the second identifier, determining that the network device that has a direct physical neighbor relationship with the i-th core device through the target interface includes the j-th first network device; When the first identifier is different from the second identifier, it is determined that the network devices that have an indirect physical neighbor relationship with the i-th core device through the target interface include the j-th first network device.
3. The method according to claim 1 or 2, characterized in that: The method further comprises: Acquire target information of each network device in the target network area; Marking the target information in the logical topology diagram; The target information includes at least one of the following: Device identification, IS-IS neighbor protocol status, interface logical number, link utilization, link protocol status, interface cyclic redundancy check CRC bit error, and interface optical module optical attenuation value.
4. The method according to claim 3, characterized in that The method further comprises: Generate an inspection report according to the target information; The inspection report includes at least one of the following: Total number of interfaces, number of abnormal interfaces, abnormal interface identification ID, interface ID whose CRC error exceeds the first threshold, number of CRC errors, interface ID whose link utilization rate exceeds the second threshold, interface ID whose interface optical module attenuation value is not within the predetermined range, interface ID whose link protocol status is abnormal, and interface ID whose IS-IS neighbor status is abnormal.
5. The method according to claim 4, characterized in that The method further comprises: The inspection report is pushed to a predetermined communication address.
6. The method according to claim 4, characterized in that The method further comprises: In the logical topology diagram, an interface indicating an abnormality in the inspection report is prompted.
7. The method according to claim 1 or 2, characterized in that: The step of obtaining the intermediate system to intermediate system IS-IS topology information of the i-th core device in the target network area includes: The IS-IS topology information of the i-th core device in the target network area is obtained through a collection instruction recognizable by the network devices in the target network area.
8. A network equipment management device, characterized in that: The device comprises: A data acquisition module, used to obtain intermediate system to intermediate system IS-IS topology information of an i-th core device in a target network area, wherein the IS-IS topology information of the i-th core device includes neighbor relationship information between the i-th core device and each first network device, wherein the first network device includes network devices other than the i-th core device in the target network area, and the value of i is each integer from 1 to N, and N represents the number of core devices in the target network area; The IS-IS network logical topology drawing module is used to: Determine, according to the neighbor relationship information between the ith core device and each of the first network devices, a network device that has a direct physical neighbor relationship with the ith core device; A logical topology diagram between the network devices in the target network area is determined based on the obtained network devices that have a direct physical neighbor relationship with the N core devices.
9. An electronic device, characterized in that: Including memory, transceiver, processor: A memory for storing a computer program; a transceiver for sending and receiving data under the control of the processor; and a processor for reading the computer program in the memory and executing the network device management method according to any one of claims 1 to 7.
10. A readable storage medium, characterized in that: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by the processor, the method for managing a network device according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Method and device for plotting network topological diagram
CN105812168A
Accelerated MAC address resolution for IPv6 traffic with IS-IS Protocol
US20140211800A1
Path determining method, apparatus, and system
US20190140949A1