WO2016201991A1 - Network management method and device - Google Patents

Network management method and device Download PDF

Info

Publication number
WO2016201991A1
WO2016201991A1 PCT/CN2016/072740 CN2016072740W WO2016201991A1 WO 2016201991 A1 WO2016201991 A1 WO 2016201991A1 CN 2016072740 W CN2016072740 W CN 2016072740W WO 2016201991 A1 WO2016201991 A1 WO 2016201991A1
Authority
WO
WIPO (PCT)
Prior art keywords
ospf
network element
neighbor
instruction
area
Prior art date
Application number
PCT/CN2016/072740
Other languages
French (fr)
Chinese (zh)
Inventor
窦伟
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016201991A1 publication Critical patent/WO2016201991A1/en

Links

Images

Definitions

  • This application relates to, but is not limited to, IP wireless access network technology.
  • IP Radio Access Network IP Radio Access Network
  • OSPF Open Shortest Path First
  • IP Internet Protocol
  • MPLS Multi-Protocol Label Switching
  • a typical IPRAN network uses the OSPF protocol to perform route discovery on the access layer.
  • the OSPF protocol brings flexibility to the networking and brings difficulties to the operation and maintenance of the network.
  • the corresponding relationship between the network element and the information is set in advance, and an instruction from the user to view the network element is received, and information corresponding to the network element is displayed.
  • the information includes one or more of the following: an OSPF area where the NE is located, a route identifier, a local outbound interface address, and a neighbor address.
  • PING Packet Internet Grouper
  • TRACE detection is performed on the two network elements in the instruction.
  • the OSPF alarm information is monitored and displayed.
  • the information of each network element can be displayed independently, and the neighbor relationship between the network elements cannot be displayed.
  • This paper proposes a method and device for implementing network management, which can visually display the neighbor relationship between each network element in an OSPF area.
  • a method of implementing network management including:
  • the second instruction from the user to view the OSPF area is received, and the neighbor relationship between all network elements and the network element in the OSPF area in the second instruction is obtained and displayed.
  • the method further includes: performing PING detection on the neighbor link in the third instruction when receiving a third instruction from the user that indicates that the packet is detected by the inter-network searcher PING on the neighbor link. .
  • the method further includes: performing PING detection on two network elements in the fourth instruction when receiving a fourth instruction from the user indicating that PING detection is performed on any two network elements.
  • the method further includes: performing TRACE detection on the two network elements in the fifth instruction when receiving a fifth instruction from the user indicating that the tracking TRACE detection is performed on any two network elements.
  • the method further includes: when receiving the sixth instruction from the user indicating the query alarm information, listening to the OSPF alarm information and displaying.
  • the obtaining, by the obtaining, all OSPF areas where the first network element in the first instruction is located includes:
  • the OSPF area corresponding to the first network element is searched for in the correspondence between the information indicating the network element and the information indicating the OSPF area.
  • the acquiring the neighbor relationship between all the network elements and the network element of the OSPF area in the second instruction includes:
  • the obtaining the OSPF neighbor list of the OSPF area of the first network element in the second instruction includes: in a preset correspondence between the information indicating the network element, the information indicating the OSPF area, and the OSPF neighbor list And searching for the OSPF neighbor list corresponding to the OSPF area in the first network element and the second instruction;
  • the OSPF neighbor list of the OSPF area in the second instruction of each of the selected neighbors includes: a pre-set correspondence between the information indicating the network element, the information indicating the OSPF area, and the OSPF neighbor list, The selected neighbor, the OSPF neighbor list corresponding to the OSPF area in the second instruction.
  • the discovering, according to the obtained OSPF neighbor list of the first network element, all neighbors of the first network element include:
  • the discovering all neighbors of the selected neighbor according to the obtained OSPF neighbor list of the selected neighbor includes:
  • the area identifies all OSPF areas that are the same as the OSPF area in the second instruction
  • the acquiring, by the acquiring, the second network element to which the neighboring address of the selected entry belongs includes:
  • the second network element corresponding to the neighbor address of the selected entry is searched for in the correspondence between the information indicating the network element and the neighbor address.
  • a device for implementing network management comprising:
  • the receiving module is configured to: receive a first instruction from the user to view the first network element; and receive a second instruction from the user to view the OSPF area;
  • the first obtaining module is configured to: obtain all open shortest path first OSPF areas where the first network element is located, and display the information;
  • the second obtaining module is configured to: obtain and display a neighbor relationship between all network elements and network elements in the OSPF area in the second instruction.
  • the receiving module is further configured to:
  • the device also includes:
  • the detecting module is configured to: perform PING detection on the neighbor link in the third instruction.
  • the receiving module is further configured to:
  • the device also includes:
  • the detecting module is configured to: perform PING detection on two network elements in the fourth instruction.
  • the receiving module is further configured to:
  • the device also includes:
  • the detecting module is configured to: perform TRACE detection on two network elements in the fifth instruction.
  • the receiving module is further configured to:
  • the device also includes:
  • the detection module is configured to: monitor OSPF alarm information and display it.
  • the first obtaining module is configured to:
  • the OSPF area corresponding to the first network element is searched for in the correspondence between the information indicating the network element and the information indicating the OSPF area.
  • the second obtaining module is configured to:
  • the second obtaining module is configured to:
  • the OSPF neighbor list corresponding to the OSPF area in the first network element and the second instruction; Obtaining, by the OSPF neighbor list of the first network element, all the neighbors of the first network element; selecting each neighbor of the first network element in sequence; and setting information indicating the network element, information indicating the OSPF area, and The OSPF neighbor list is searched for, and the OSPF neighbor list corresponding to the OSPF area in the second instruction is searched for, and all the selected neighbors are found according to the obtained OSPF neighbor list of the selected neighbor. neighbor.
  • the second obtaining module is configured to:
  • the second obtaining module is configured to:
  • the second network element to which the neighboring address of the selected entry belongs is obtained, and the area identifier of the second network element is located and the second All the OSPF areas of the OSPF area in the command are obtained; the OSPF neighbor list of the OSPF area of the second network element obtained by the second network element is obtained respectively; and the obtained OSPF neighbor list of the second network element is obtained.
  • the neighboring address is an entry of the address of the selected neighbor, and the selected neighbor and the second network element are mutually neighbored.
  • the second obtaining module is configured to:
  • the second network element corresponding to the neighbor address of the selected entry is searched for in the correspondence between the information indicating the network element and the neighbor address.
  • a computer readable storage medium storing computer executable instructions for performing the method of any of the above.
  • the embodiment of the present invention includes: receiving a first instruction from the user to view the first network element, acquiring all OSPF areas where the first network element is located, and displaying; receiving the indication from the user to view the OSPF area
  • the second instruction acquires and displays the neighbor relationship between all network elements of the OSPF area in the second instruction and each network element.
  • the neighbor relationship between the network elements in the OSPF area is visually displayed by using the solution of the embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for implementing network management according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a display interface according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of an apparatus for implementing network management according to an embodiment of the present invention.
  • an embodiment of the present invention provides a method for implementing network management, including:
  • Step 100 Receive a first instruction from the user to view the first network element, obtain all OSPF areas where the first network element is located, and display the OSPF area.
  • all OSPF areas where the first network element in the first instruction is located include:
  • the OSPF area corresponding to the first network element is searched for in the correspondence between the information indicating the network element and the information indicating the OSPF area.
  • the information indicating the OSPF area may be an instance identifier and an area identifier.
  • Step 101 Receive a second instruction from the user to view an OSPF area, and obtain a neighbor relationship between all network elements and network elements in the OSPF area in the second instruction and display the neighbor relationship.
  • obtaining the neighbor relationship between all the NEs and the NEs in the OSPF area in the second instruction includes:
  • the OSPF neighbor list of the OSPF area in the second instruction of the first network element/selected neighbor is:
  • the OSPF neighbor list corresponding to the OSPF area in the first network element/selected neighbor and the second instruction is searched for in the correspondence between the information indicating the network element, the information indicating the OSPF area, and the OSPF neighbor list.
  • the neighbors of the selected network element are found according to the obtained first network element/selected neighbor OSPF neighbor list, including:
  • Selecting the obtained first network element/selected neighbor OSPF neighbor list entry obtaining the second network element to which the neighboring address of the selected entry belongs, obtaining the area identifier of the second network element and OSPF in the second instruction All the OSPF areas in the same area are obtained.
  • the OSPF neighbor list of the OSPF area of the second network element obtained by the second network element is obtained.
  • the neighboring address is found in the OSPF neighbor list of the second network element.
  • the entry of the address of the neighbor/selected neighbor determining that the first network element/selected neighbor and the second network element are mutually neighboring relationships; continuing to perform the selection of the obtained first network element/selected neighbor OSPF neighbor list other The steps of the entry.
  • the neighboring address is not the neighbor relationship between the selected network element and the second network element.
  • the entry of the neighbor list may also include a local outbound interface address.
  • the second network element to which the neighbor address of the selected entry belongs is:
  • the second network element corresponding to the neighbor address of the selected entry is searched for in the correspondence between the information indicating the network element and the neighbor address.
  • the neighbor links between the network elements that are in the neighbor relationship may be displayed (may be in different colors) To display information about the different status of the neighbor link, route ID, local outbound interface address, and neighbor address.
  • the method may further include performing a PING detection on the neighbor link in the third instruction when receiving a third instruction from the user indicating that the neighbor link is PING detected.
  • the method may further include: performing PING detection on the two network elements in the fourth instruction when receiving the fourth instruction from the user indicating that the PING detection is performed on any two network elements.
  • the method may further include performing TRACE detection on the two network elements in the fifth instruction when receiving the fifth instruction from the user indicating that the TRACE detection is performed on any two network elements.
  • the method may further include: receiving a sixth instruction from the user indicating the query alert information When listening to OSPF alarm information and display it.
  • the neighbor relationship between the network elements in the OSPF area is visually displayed by using the solution of the embodiment of the present invention.
  • FIG. 2 is a schematic diagram of the display interface.
  • the display interface includes four parts: an area for displaying a network element tree, and a user can select an network element to be viewed from the area; and display an area of the OSPF area, after the user selects the network element to be viewed, The OSPF area where the selected NE is located is displayed in the area. You can also select the OSPF area to be viewed from the area. The area where the neighbor relationship graph is displayed. After the user selects the OSPF area to be viewed, the selected OSPF is displayed in the area. Neighbor relationship between all network elements and NEs in the area; a personalized design area in which users can customize the information to be displayed in the area where the neighbor relationship graph is displayed.
  • an embodiment of the present invention further provides an apparatus for implementing network management, including:
  • the receiving module 21 is configured to: receive a first instruction from the user to view the first network element; and receive a second instruction from the user to view the OSPF area;
  • the first obtaining module 22 is configured to: obtain all open shortest path first OSPF areas where the first network element is located and display the same;
  • the second obtaining module 23 is configured to: acquire and display a neighbor relationship between all network elements and network elements in the OSPF area in the second instruction.
  • the receiving module 21 is further configured to:
  • the detecting module 24 is configured to: perform PING detection on the neighbor link in the third instruction.
  • the receiving module 21 is further configured to:
  • the detecting module 24 is configured to: perform PING detection on two network elements in the fourth instruction.
  • the receiving module 21 is further configured to:
  • the detecting module 24 is configured to perform TRACE detection on two network elements in the fifth instruction.
  • the receiving module 21 is further configured to:
  • the detecting module 24 is configured to: monitor and display OSPF alarm information.
  • the first obtaining module 22 is configured to:
  • the OSPF area corresponding to the first network element is searched for in the correspondence between the information indicating the network element and the information indicating the OSPF area.
  • the second obtaining module is configured to:
  • an OSPF neighbor list of the OSPF area of the first network element in the second instruction discovering all the neighbors of the first network element according to the obtained OSPF neighbor list of the first network element; selecting one neighbor of the first network element; obtaining the selected The OSPF neighbor list of the OSPF area in the second instruction of the neighbor; discovers all the neighbors of the selected neighbor according to the obtained OSPF neighbor list of the selected neighbor; continues to perform the selection of the neighbor of the first network element or a neighbor of the selected neighbor step.
  • the second obtaining module is configured to:
  • the OSPF neighbor list corresponding to the OSPF area in the first network element and the second instruction is searched for in the correspondence between the information indicating the network element, the information indicating the OSPF area, and the OSPF neighbor list.
  • the OSPF neighbor list of the network element discovers all the neighbors of the first network element; selects a neighbor of the first network element; in the correspondence between the preset information indicating the network element, the information indicating the OSPF area, and the OSPF neighbor list, Finding the selected neighbor, the OSPF neighbor list corresponding to the OSPF area in the second instruction, discovering all the neighbors of the selected neighbor according to the obtained OSPF neighbor list of the selected neighbor, and continuing to perform other neighbors or selected neighbors that select the first network element The steps of a neighbor.
  • the second acquiring module is configured to:
  • an OSPF neighbor list of the OSPF area of the first network element in the second instruction selecting an entry of the obtained OSPF neighbor list of the first network element; obtaining the second network element to which the neighboring address of the selected entry belongs, acquiring The area where the second network element is located is the same as the OSPF area in the second instruction; the OSPF neighbor list of the OSPF area of the second network element obtained by the second network element is obtained respectively; The OSPF neighbor list of the network element is used to find the entry of the address of the first network element, and the first network element and the second network element are mutually neighbors. Steps of other entries in the OSPF neighbor list;
  • Selecting a neighbor of the first network element obtaining an OSPF neighbor list of the OSPF area of the selected neighbor in the second command; selecting an entry of the OSPF neighbor list of the selected neighbor; obtaining the neighbor address of the selected entry
  • the list is obtained by searching the OSPF neighbor list of the second network element to find the address of the neighbor whose neighbor address is the selected neighbor, and determining that the selected neighbor and the second network element are mutually neighbors; Steps for other entries in the neighbor's OSPF neighbor list;
  • the step of selecting another neighbor of the first network element or a neighbor of the selected neighbor continues. .
  • the second obtaining module is configured to:
  • Select one of the OSPF areas in the second command obtain an OSPF neighbor list of the OSPF area in the second command, and select an entry of the obtained OSPF neighbor list.
  • the second network element corresponding to the neighbor address of the selected entry is obtained by the second network element corresponding to the neighboring address of the selected entry, and the OSPF area with the same area identifier as the OSPF area in the second instruction is obtained.
  • the OSPF neighbor list of the OSPF area of the second network element obtained by the second network element is obtained, and the OSPF neighbor list of the second network element is used to find the entry of the address of the selected network element.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the neighbor relationship between the network elements in the OSPF area is visually displayed by using the solution of the embodiment of the present invention.

Abstract

Disclosed are a network management method and device. The method comprises: receiving, from a user, a first instruction to look up a first network element, and acquiring and displaying all open shortest path first (OSPF) areas where the first network element is located; receiving, from the user, a second instruction to look up the OSPF areas, and acquiring and displaying a neighbor relationship between all the network elements of the OSPF areas in the second instruction.

Description

一种实现网络管理的方法和装置Method and device for realizing network management 技术领域Technical field
本申请涉及但不限于IP无线接入网络技术。This application relates to, but is not limited to, IP wireless access network technology.
背景技术Background technique
随着IP无线接入网络(IPRAN,IP Radio Access Network)组网方式在通信网络中的快速普及,动态路由协议特别是开放式最短路径优先(OSPF,Open Shortest Path First)协议因其在互联网协议(IP,Internet Protocol)/多协议标记交换(MPLS,Multiple Protocol Label Switching)组网中的灵活性及成熟性,越来越多的应用于通信网络中。With the rapid spread of the IP Radio Access Network (IPRAN) networking method in the communication network, the dynamic routing protocol, especially the Open Shortest Path First (OSPF) protocol, is based on the Internet Protocol. (IP, Internet Protocol)/Multi-Protocol Label Switching (MPLS) flexibility and maturity in networking, more and more used in communication networks.
一种典型的IPRAN网络是其接入层全部使用OSPF协议进行路由发现,但是OSPF协议给组网带来灵活性的同时,也给网络的运行维护带来了难度。A typical IPRAN network uses the OSPF protocol to perform route discovery on the access layer. However, the OSPF protocol brings flexibility to the networking and brings difficulties to the operation and maintenance of the network.
相关技术的实现网络管理的方法大致包括:Related art methods for implementing network management generally include:
预先设置网元和信息之间的对应关系,接收到来自用户的表示查看网元的指令,显示网元对应的信息。其中,信息包括以下的一个或多个:网元所在的OSPF区域,路由标识、本地出接口地址、邻居地址等。The corresponding relationship between the network element and the information is set in advance, and an instruction from the user to view the network element is received, and information corresponding to the network element is displayed. The information includes one or more of the following: an OSPF area where the NE is located, a route identifier, a local outbound interface address, and a neighbor address.
当接收到来自用户的表示对任意两个网元进行分组网间搜索器(PING,Packet Internet Grouper)检测的指令时,对指令中的两个网元进行PING检测。When receiving an instruction from the user to perform a packet network search (PING, Packet Internet Grouper) detection on any two network elements, PING detection is performed on the two network elements in the instruction.
当接收到来自用户的表示对任意两个网元进行追踪(TRACE)检测的指令时,对指令中的两个网元进行TRACE检测。When an instruction from the user indicating that any two network elements are tracked (TRACE) is received, TRACE detection is performed on the two network elements in the instruction.
当接收到来自用户的表示查询告警信息的指令时,监听OSPF的告警信息并显示。When receiving an instruction from the user indicating that the alarm information is queried, the OSPF alarm information is monitored and displayed.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求 的保护范围。The following is an overview of the topics detailed in this document. This summary is not intended to limit the claims The scope of protection.
相关技术的实现网络管理的方法中,只能独立地显示每个网元的信息,而无法显示网元之间的邻居关系。In the method for implementing network management in the related art, the information of each network element can be displayed independently, and the neighbor relationship between the network elements cannot be displayed.
本文提出了一种实现网络管理的方法和装置,能够直观地显示OSPF区域中每个网元之间的邻居关系。This paper proposes a method and device for implementing network management, which can visually display the neighbor relationship between each network element in an OSPF area.
一种实现网络管理的方法,包括:A method of implementing network management, including:
接收到来自用户的表示查看第一网元的第一指令,获取第一网元所在的所有开放式最短路径优先OSPF区域并显示;Receiving, by the user, a first instruction for viewing the first network element, acquiring all open shortest path first OSPF areas where the first network element is located, and displaying the same;
接收到来自用户的表示查看OSPF区域的第二指令,获取第二指令中的OSPF区域的所有网元和网元之间的邻居关系并显示。The second instruction from the user to view the OSPF area is received, and the neighbor relationship between all network elements and the network element in the OSPF area in the second instruction is obtained and displayed.
可选地,该方法还包括:当接收到来自所述用户的表示对邻居链路进行分组网间搜索器PING检测的第三指令时,对所述第三指令中的邻居链路进行PING检测。Optionally, the method further includes: performing PING detection on the neighbor link in the third instruction when receiving a third instruction from the user that indicates that the packet is detected by the inter-network searcher PING on the neighbor link. .
可选地,该方法还包括:当接收到来自所述用户的表示对任意两个网元进行PING检测的第四指令时,对所述第四指令中的两个网元进行PING检测。Optionally, the method further includes: performing PING detection on two network elements in the fourth instruction when receiving a fourth instruction from the user indicating that PING detection is performed on any two network elements.
可选地,该方法还包括:当接收到来自所述用户的表示对任意两个网元进行追踪TRACE检测的第五指令时,对所述第五指令中的两个网元进行TRACE检测。Optionally, the method further includes: performing TRACE detection on the two network elements in the fifth instruction when receiving a fifth instruction from the user indicating that the tracking TRACE detection is performed on any two network elements.
可选地,该方法还包括:当接收到来自所述用户的表示查询告警信息的第六指令时,监听OSPF的告警信息并显示。Optionally, the method further includes: when receiving the sixth instruction from the user indicating the query alarm information, listening to the OSPF alarm information and displaying.
可选地,所述获取第一指令中的第一网元所在的所有OSPF区域包括:Optionally, the obtaining, by the obtaining, all OSPF areas where the first network element in the first instruction is located includes:
在预先设置的表示网元的信息和表示OSPF区域的信息之间的对应关系中,查找所述第一网元对应的所有OSPF区域。The OSPF area corresponding to the first network element is searched for in the correspondence between the information indicating the network element and the information indicating the OSPF area.
可选地,所述获取第二指令中的OSPF区域的所有网元和网元之间的邻居关系包括:Optionally, the acquiring the neighbor relationship between all the network elements and the network element of the OSPF area in the second instruction includes:
获取所述第一网元在所述第二指令中的OSPF区域的OSPF邻居列表; Obtaining an OSPF neighbor list of the OSPF area of the first network element in the second instruction;
根据获得的第一网元的OSPF邻居列表发现所述第一网元的所有邻居;Discovering all neighbors of the first network element according to the obtained OSPF neighbor list of the first network element;
依次选择所述第一网元的每个邻居;Selecting each neighbor of the first network element in turn;
获取选择的每个邻居在所述第二指令中的OSPF区域的OSPF邻居列表;Obtaining an OSPF neighbor list of each selected neighbor in the OSPF area in the second instruction;
根据获得的选择的邻居的OSPF邻居列表发现所述选择的邻居的所有邻居。All neighbors of the selected neighbor are discovered according to the obtained OSPF neighbor list of the selected neighbor.
可选地,所述获取第一网元在第二指令中的OSPF区域的OSPF邻居列表包括:在预先设置的表示网元的信息、表示OSPF区域的信息和OSPF邻居列表之间的对应关系中,查找所述第一网元、所述第二指令中的OSPF区域对应的OSPF邻居列表;Optionally, the obtaining the OSPF neighbor list of the OSPF area of the first network element in the second instruction includes: in a preset correspondence between the information indicating the network element, the information indicating the OSPF area, and the OSPF neighbor list And searching for the OSPF neighbor list corresponding to the OSPF area in the first network element and the second instruction;
所述获取选择的每个邻居在第二指令中的OSPF区域的OSPF邻居列表包括:在预先设置的表示网元的信息、表示OSPF区域的信息和OSPF邻居列表之间的对应关系中,查找所述选择的邻居、所述第二指令中的OSPF区域对应的OSPF邻居列表。The OSPF neighbor list of the OSPF area in the second instruction of each of the selected neighbors includes: a pre-set correspondence between the information indicating the network element, the information indicating the OSPF area, and the OSPF neighbor list, The selected neighbor, the OSPF neighbor list corresponding to the OSPF area in the second instruction.
可选地,所述根据获得的第一网元的OSPF邻居列表发现第一网元的所有邻居包括:Optionally, the discovering, according to the obtained OSPF neighbor list of the first network element, all neighbors of the first network element include:
依次选择所述获得的第一网元的OSPF邻居列表的每一条表项;And selecting, in sequence, each entry of the OSPF neighbor list of the obtained first network element;
获取选择的表项的邻居地址所属的第二网元,获取所述第二网元所在的区域标识与所述第二指令中的OSPF区域相同的所有OSPF区域;Acquiring a second network element to which the neighboring address of the selected entry belongs, and obtaining all OSPF areas in which the area identifier of the second network element is the same as the OSPF area in the second instruction;
分别获取所述第二网元在每个获得的第二网元的OSPF区域的OSPF邻居列表;Obtaining, respectively, an OSPF neighbor list of the OSPF area of the second network element obtained by the second network element;
在获得的所述第二网元的OSPF邻居列表中查找到邻居地址为所述第一网元的地址的表项,确定所述第一网元和所述第二网元之间互为邻居关系;Determining, in the obtained OSPF neighbor list of the second network element, an entry whose neighbor address is the address of the first network element, and determining that the first network element and the second network element are neighbors each other relationship;
所述根据获得的选择的邻居的OSPF邻居列表发现选择的邻居的所有邻居包括:The discovering all neighbors of the selected neighbor according to the obtained OSPF neighbor list of the selected neighbor includes:
依次选择所述获得的选择的邻居的OSPF邻居列表的每一条表项;And selecting, in sequence, each entry of the obtained OSPF neighbor list of the selected neighbor;
获取选择的表项的邻居地址所属的第二网元,获取所述第二网元所在的 区域标识与所述第二指令中的OSPF区域相同的所有OSPF区域;Obtaining a second network element to which the neighboring address of the selected entry belongs, and acquiring the location of the second network element The area identifies all OSPF areas that are the same as the OSPF area in the second instruction;
分别获取所述第二网元在每个获得的第二网元的OSPF区域的OSPF邻居列表;Obtaining, respectively, an OSPF neighbor list of the OSPF area of the second network element obtained by the second network element;
在获得的所述第二网元的OSPF邻居列表中查找到邻居地址为所述选择的邻居的地址的表项,确定所述选择的邻居和所述第二网元之间互为邻居关系。And determining, by the obtained OSPF neighbor list of the second network element, an entry whose neighbor address is the address of the selected neighbor, and determining that the selected neighbor and the second network element are mutually neighbor relationships.
可选地,所述获取选择的表项的邻居地址所属的第二网元包括:Optionally, the acquiring, by the acquiring, the second network element to which the neighboring address of the selected entry belongs includes:
在预先设置的表示网元的信息和邻居地址之间的对应关系中,查找所述选择的表项的邻居地址对应的第二网元。The second network element corresponding to the neighbor address of the selected entry is searched for in the correspondence between the information indicating the network element and the neighbor address.
一种实现网络管理的装置,包括:A device for implementing network management, comprising:
接收模块,设置为:接收到来自用户的表示查看第一网元的第一指令;以及,接收到来自用户的表示查看OSPF区域的第二指令;The receiving module is configured to: receive a first instruction from the user to view the first network element; and receive a second instruction from the user to view the OSPF area;
第一获取模块,设置为:获取第一网元所在的所有开放式最短路径优先OSPF区域并显示;The first obtaining module is configured to: obtain all open shortest path first OSPF areas where the first network element is located, and display the information;
第二获取模块,设置为:获取第二指令中的OSPF区域的所有网元和网元之间的邻居关系并显示。The second obtaining module is configured to: obtain and display a neighbor relationship between all network elements and network elements in the OSPF area in the second instruction.
可选地,所述接收模块还设置为:Optionally, the receiving module is further configured to:
接收到来自所述用户的表示对邻居链路进行分组网间搜索器PING检测的第三指令;Receiving, by the user, a third instruction indicating that the neighboring link performs a packet network searcher PING detection;
所述装置还包括:The device also includes:
检测模块,设置为:对所述第三指令中的邻居链路进行PING检测。The detecting module is configured to: perform PING detection on the neighbor link in the third instruction.
可选地,所述接收模块还设置为:Optionally, the receiving module is further configured to:
接收到来自所述用户的表示对任意两个网元进行PING检测的第四指令;Receiving a fourth instruction from the user indicating that PING detection is performed on any two network elements;
所述装置还包括:The device also includes:
检测模块,设置为:对所述第四指令中的两个网元进行PING检测。The detecting module is configured to: perform PING detection on two network elements in the fourth instruction.
可选地,所述接收模块还设置为: Optionally, the receiving module is further configured to:
接收到来自所述用户的表示对任意两个网元进行追踪TRACE检测的第五指令;Receiving a fifth instruction from the user indicating that the TRACE detection is performed on any two network elements;
所述装置还包括:The device also includes:
检测模块,设置为:对所述第五指令中的两个网元进行TRACE检测。The detecting module is configured to: perform TRACE detection on two network elements in the fifth instruction.
可选地,所述接收模块还设置为:Optionally, the receiving module is further configured to:
接收到来自所述用户的表示查询告警信息的第六指令;Receiving a sixth instruction from the user indicating query alarm information;
所述装置还包括:The device also includes:
检测模块,设置为:监听OSPF的告警信息并显示。The detection module is configured to: monitor OSPF alarm information and display it.
可选地,所述第一获取模块是设置为:Optionally, the first obtaining module is configured to:
在预先设置的表示网元的信息和表示OSPF区域的信息之间的对应关系中,查找所述第一网元对应的所有OSPF区域。The OSPF area corresponding to the first network element is searched for in the correspondence between the information indicating the network element and the information indicating the OSPF area.
可选地,所述第二获取模块是设置为:Optionally, the second obtaining module is configured to:
获取所述第一网元在所述第二指令中的OSPF区域的OSPF邻居列表;根据获得的第一网元的OSPF邻居列表发现所述第一网元的所有邻居;依次选择所述第一网元的每个邻居;获取选择的每个邻居在所述第二指令中的OSPF区域的OSPF邻居列表;根据获得的选择的邻居的OSPF邻居列表发现所述选择的邻居的所有邻居。Acquiring an OSPF neighbor list of the OSPF area of the first network element in the second instruction; discovering all neighbors of the first network element according to the obtained OSPF neighbor list of the first network element; and selecting the first Each neighbor of the network element obtains an OSPF neighbor list of the OSPF area in the second instruction of each selected neighbor; and discovers all neighbors of the selected neighbor according to the obtained OSPF neighbor list of the selected neighbor.
可选地,所述第二获取模块是设置为:Optionally, the second obtaining module is configured to:
在预先设置的表示网元的信息、表示OSPF区域的信息和OSPF邻居列表之间的对应关系中,查找所述第一网元、所述第二指令中的OSPF区域对应的OSPF邻居列表;根据获得的第一网元的OSPF邻居列表发现所述第一网元的所有邻居;依次选择所述第一网元的每个邻居;在预先设置的表示网元的信息、表示OSPF区域的信息和OSPF邻居列表之间的对应关系中,查找所述选择的邻居、所述第二指令中的OSPF区域对应的OSPF邻居列表;根据获得的选择的邻居的OSPF邻居列表发现所述选择的邻居的所有邻居。Querying, in a corresponding relationship between the information indicating the network element, the information indicating the OSPF area, and the OSPF neighbor list, the OSPF neighbor list corresponding to the OSPF area in the first network element and the second instruction; Obtaining, by the OSPF neighbor list of the first network element, all the neighbors of the first network element; selecting each neighbor of the first network element in sequence; and setting information indicating the network element, information indicating the OSPF area, and The OSPF neighbor list is searched for, and the OSPF neighbor list corresponding to the OSPF area in the second instruction is searched for, and all the selected neighbors are found according to the obtained OSPF neighbor list of the selected neighbor. neighbor.
可选地,所述第二获取模块是设置为:Optionally, the second obtaining module is configured to:
选择所述获得的第一网元的OSPF邻居列表的一条表项;获取选择的表 项的邻居地址所属的第二网元,获取所述第二网元所在的区域标识与所述第二指令中的OSPF区域相同的所有OSPF区域;分别获取所述第二网元在每个获得的第二网元的OSPF区域的OSPF邻居列表;在获得的所述第二网元的OSPF邻居列表中查找到邻居地址为所述第一网元的地址的表项,确定所述第一网元和所述第二网元之间互为邻居关系。Selecting an entry of the obtained OSPF neighbor list of the first network element; obtaining the selected table Obtaining, by the second network element to which the neighboring address of the item belongs, all the OSPF areas in which the area identifier of the second network element is the same as the OSPF area in the second instruction; acquiring the second network element separately in each The OSPF neighbor list of the OSPF area of the second network element; the OSPF neighbor list of the second network element obtained is used to find an entry whose neighbor address is the address of the first network element, and the first network is determined. The element and the second network element are mutually neighbor relationships.
可选地,所述第二获取模块是设置为:Optionally, the second obtaining module is configured to:
依次选择所述获得的选择的邻居的OSPF邻居列表的每一条表项;获取选择的表项的邻居地址所属的第二网元,获取所述第二网元所在的区域标识与所述第二指令中的OSPF区域相同的所有OSPF区域;分别获取所述第二网元在每个获得的第二网元的OSPF区域的OSPF邻居列表;在获得的所述第二网元的OSPF邻居列表中查找到邻居地址为所述选择的邻居的地址的表项,确定所述选择的邻居和所述第二网元之间互为邻居关系。And the second network element to which the neighboring address of the selected entry belongs is obtained, and the area identifier of the second network element is located and the second All the OSPF areas of the OSPF area in the command are obtained; the OSPF neighbor list of the OSPF area of the second network element obtained by the second network element is obtained respectively; and the obtained OSPF neighbor list of the second network element is obtained. The neighboring address is an entry of the address of the selected neighbor, and the selected neighbor and the second network element are mutually neighbored.
可选地,所述第二获取模块是设置为:Optionally, the second obtaining module is configured to:
在预先设置的表示网元的信息和邻居地址之间的对应关系中,查找所述选择的表项的邻居地址对应的第二网元。The second network element corresponding to the neighbor address of the selected entry is searched for in the correspondence between the information indicating the network element and the neighbor address.
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述任一项的方法。A computer readable storage medium storing computer executable instructions for performing the method of any of the above.
与相关技术相比,本发明实施例包括:接收到来自用户的表示查看第一网元的第一指令,获取第一网元所在的所有OSPF区域并显示;接收到来自用户的表示查看OSPF区域的第二指令,获取第二指令中的OSPF区域的所有网元和每个网元之间的邻居关系并显示。通过本发明实施例的方案,直观地显示了OSPF区域中网元之间的邻居关系。Compared with the related art, the embodiment of the present invention includes: receiving a first instruction from the user to view the first network element, acquiring all OSPF areas where the first network element is located, and displaying; receiving the indication from the user to view the OSPF area The second instruction acquires and displays the neighbor relationship between all network elements of the OSPF area in the second instruction and each network element. The neighbor relationship between the network elements in the OSPF area is visually displayed by using the solution of the embodiment of the present invention.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为本发明实施例实现网络管理的方法的流程图;FIG. 1 is a flowchart of a method for implementing network management according to an embodiment of the present invention;
图2为本发明实施例显示界面的示意图; 2 is a schematic diagram of a display interface according to an embodiment of the present invention;
图3为本发明实施例实现网络管理的装置的结构组成示意图。FIG. 3 is a schematic structural diagram of an apparatus for implementing network management according to an embodiment of the present invention.
本发明的实施方式Embodiments of the invention
下面结合附图对本发明的实施方式进行描述。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Embodiments of the present invention will be described below with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
参见图1,本发明实施例提出了一种实现网络管理的方法,包括:Referring to FIG. 1, an embodiment of the present invention provides a method for implementing network management, including:
步骤100、接收到来自用户的表示查看第一网元的第一指令,获取第一网元所在的所有OSPF区域并显示。Step 100: Receive a first instruction from the user to view the first network element, obtain all OSPF areas where the first network element is located, and display the OSPF area.
本步骤中,获取第一指令中的第一网元所在的所有OSPF区域包括:In this step, all OSPF areas where the first network element in the first instruction is located include:
在预先设置的表示网元的信息和表示OSPF区域的信息之间的对应关系中,查找第一网元对应的所有OSPF区域。The OSPF area corresponding to the first network element is searched for in the correspondence between the information indicating the network element and the information indicating the OSPF area.
其中,表示OSPF区域的信息可以是实例标识和区域标识。The information indicating the OSPF area may be an instance identifier and an area identifier.
步骤101、接收到来自用户的表示查看OSPF区域的第二指令,获取第二指令中的OSPF区域的所有网元和网元之间的邻居关系并显示。Step 101: Receive a second instruction from the user to view an OSPF area, and obtain a neighbor relationship between all network elements and network elements in the OSPF area in the second instruction and display the neighbor relationship.
本步骤中,获取第二指令中的OSPF区域的所有网元和网元之间的邻居关系包括:In this step, obtaining the neighbor relationship between all the NEs and the NEs in the OSPF area in the second instruction includes:
获取第一网元在第二指令中的OSPF区域的OSPF邻居列表;根据获得的第一网元的OSPF邻居列表发现第一网元的所有邻居;选择所述第一网元的一个邻居;获取选择的邻居在所述第二指令中的OSPF区域的OSPF邻居列表;根据获得的选择的邻居的OSPF邻居列表发现所述选择的邻居的所有邻居;继续执行选择第一网元的其他邻居或选择的邻居的一个邻居的步骤。Acquiring an OSPF neighbor list of the OSPF area of the first network element in the second instruction; discovering all the neighbors of the first network element according to the obtained OSPF neighbor list of the first network element; selecting one neighbor of the first network element; acquiring Selecting, by the neighbor, the OSPF neighbor list of the OSPF area in the second instruction; discovering all the neighbors of the selected neighbor according to the obtained OSPF neighbor list of the selected neighbor; and continuing to perform other neighbors or selecting the first network element The steps of a neighbor of a neighbor.
其中,获取第一网元/选择的邻居在第二指令中的OSPF区域的OSPF邻居列表包括:The OSPF neighbor list of the OSPF area in the second instruction of the first network element/selected neighbor is:
在预先设置的表示网元的信息、表示OSPF区域的信息和OSPF邻居列表之间的对应关系中,查找第一网元/选择的邻居、第二指令中的OSPF区域对应的OSPF邻居列表。The OSPF neighbor list corresponding to the OSPF area in the first network element/selected neighbor and the second instruction is searched for in the correspondence between the information indicating the network element, the information indicating the OSPF area, and the OSPF neighbor list.
其中,“/”表示可替换。 Where "/" means replaceable.
其中,根据获得的第一网元/选择的邻居OSPF邻居列表发现选择的网元的所有邻居包括:The neighbors of the selected network element are found according to the obtained first network element/selected neighbor OSPF neighbor list, including:
选择获得的第一网元/选择的邻居OSPF邻居列表的一条表项;获取选择的表项的邻居地址所属的第二网元,获取第二网元所在的区域标识与第二指令中的OSPF区域相同的所有OSPF区域;分别获取第二网元在每个获得的第二网元的OSPF区域的OSPF邻居列表;在获得的第二网元的OSPF邻居列表中查找到邻居地址为第一网元/选择的邻居的地址的表项,确定第一网元/选择的邻居和第二网元之间互为邻居关系;继续执行选择获得的第一网元/选择的邻居OSPF邻居列表的其他表项的步骤。Selecting the obtained first network element/selected neighbor OSPF neighbor list entry; obtaining the second network element to which the neighboring address of the selected entry belongs, obtaining the area identifier of the second network element and OSPF in the second instruction All the OSPF areas in the same area are obtained. The OSPF neighbor list of the OSPF area of the second network element obtained by the second network element is obtained. The neighboring address is found in the OSPF neighbor list of the second network element. The entry of the address of the neighbor/selected neighbor, determining that the first network element/selected neighbor and the second network element are mutually neighboring relationships; continuing to perform the selection of the obtained first network element/selected neighbor OSPF neighbor list other The steps of the entry.
其中,当在获得的第二网元的OSPF邻居列表中查找不到邻居地址为选择的网元的地址的表项时,确定选择的网元和第二网元之间不是邻居关系。When the OSPF neighbor list of the obtained second network element is not found in the OSPF neighbor list, the neighboring address is not the neighbor relationship between the selected network element and the second network element.
其中,邻居列表的表项中还可以包含有本地出接口地址。The entry of the neighbor list may also include a local outbound interface address.
其中,获取选择的表项的邻居地址所属的第二网元包括:The second network element to which the neighbor address of the selected entry belongs is:
在预先设置的表示网元的信息和邻居地址之间的对应关系中,查找选择的表项的邻居地址对应的第二网元。The second network element corresponding to the neighbor address of the selected entry is searched for in the correspondence between the information indicating the network element and the neighbor address.
本步骤中,在显示第二指令中的OSPF区域的所有网元和每个网元之间的邻居关系时,可以显示互为邻居关系的网元之间的邻居链路(可以以不同的颜色来显示邻居链路的不同状态)、路由标识、本地出接口地址、邻居地址等信息。In this step, when all the network elements in the OSPF area and the neighbor relationship between each network element in the second command are displayed, the neighbor links between the network elements that are in the neighbor relationship may be displayed (may be in different colors) To display information about the different status of the neighbor link, route ID, local outbound interface address, and neighbor address.
该方法还可包括:当接收到来自用户的表示对邻居链路进行PING检测的第三指令时,对第三指令中的邻居链路进行PING检测。The method may further include performing a PING detection on the neighbor link in the third instruction when receiving a third instruction from the user indicating that the neighbor link is PING detected.
其中,可以在邻居链路上单击鼠标右键弹出菜单,用户从菜单中选择PING检测。Among them, you can click the right mouse button on the neighbor link to pop up the menu, and the user selects PING detection from the menu.
该方法还可包括:当接收到来自用户的表示对任意两个网元进行PING检测的第四指令时,对第四指令中的两个网元进行PING检测。The method may further include: performing PING detection on the two network elements in the fourth instruction when receiving the fourth instruction from the user indicating that the PING detection is performed on any two network elements.
该方法还可包括:当接收到来自用户的表示对任意两个网元进行TRACE检测的第五指令时,对第五指令中的两个网元进行TRACE检测。The method may further include performing TRACE detection on the two network elements in the fifth instruction when receiving the fifth instruction from the user indicating that the TRACE detection is performed on any two network elements.
该方法还可包括:当接收到来自用户的表示查询告警信息的第六指令 时,监听OSPF的告警信息并显示。The method may further include: receiving a sixth instruction from the user indicating the query alert information When listening to OSPF alarm information and display it.
通过本发明实施例的方案,直观地显示了OSPF区域中网元之间的邻居关系。The neighbor relationship between the network elements in the OSPF area is visually displayed by using the solution of the embodiment of the present invention.
图2为显示界面的示意图。如图2所示,显示界面包括四个部分:显示网元树的区域,用户可以从该区域中选择要查看的网元;显示OSPF区域的区域,用户选择要查看的网元后,在该区域中显示选择的网元所在的OSPF区域,用户也可以从该区域中选择要查看的OSPF区域;显示邻居关系图的区域,用户选择要查看的OSPF区域后,在该区域中显示选择的OSPF区域的所有网元和网元之间的邻居关系;个性化设计的区域,该区域中用户可以自定义在显示邻居关系图的区域中所要显示的信息。Figure 2 is a schematic diagram of the display interface. As shown in FIG. 2, the display interface includes four parts: an area for displaying a network element tree, and a user can select an network element to be viewed from the area; and display an area of the OSPF area, after the user selects the network element to be viewed, The OSPF area where the selected NE is located is displayed in the area. You can also select the OSPF area to be viewed from the area. The area where the neighbor relationship graph is displayed. After the user selects the OSPF area to be viewed, the selected OSPF is displayed in the area. Neighbor relationship between all network elements and NEs in the area; a personalized design area in which users can customize the information to be displayed in the area where the neighbor relationship graph is displayed.
参见图3,本发明实施例还提出了一种实现网络管理的装置,包括:Referring to FIG. 3, an embodiment of the present invention further provides an apparatus for implementing network management, including:
接收模块21,设置为:接收到来自用户的表示查看第一网元的第一指令;以及,接收到来自用户的表示查看OSPF区域的第二指令;The receiving module 21 is configured to: receive a first instruction from the user to view the first network element; and receive a second instruction from the user to view the OSPF area;
第一获取模块22,设置为:获取第一网元所在的所有开放式最短路径优先OSPF区域并显示;The first obtaining module 22 is configured to: obtain all open shortest path first OSPF areas where the first network element is located and display the same;
第二获取模块23,设置为:获取第二指令中的OSPF区域的所有网元和网元之间的邻居关系并显示。The second obtaining module 23 is configured to: acquire and display a neighbor relationship between all network elements and network elements in the OSPF area in the second instruction.
本发明实施例的装置中,接收模块21还设置为:In the apparatus of the embodiment of the present invention, the receiving module 21 is further configured to:
接收到来自用户的表示对邻居链路进行分组网间搜索器PING检测的第三指令;Receiving a third instruction from the user indicating that the inter-network searcher PING detects the neighbor link;
还包括:Also includes:
检测模块24,设置为:对第三指令中的邻居链路进行PING检测。The detecting module 24 is configured to: perform PING detection on the neighbor link in the third instruction.
本发明实施例的装置中,接收模块21还设置为:In the apparatus of the embodiment of the present invention, the receiving module 21 is further configured to:
接收到来自用户的表示对任意两个网元进行PING检测的第四指令;Receiving a fourth instruction from the user indicating that PING detection is performed on any two network elements;
还包括:Also includes:
检测模块24,设置为:对第四指令中的两个网元进行PING检测。The detecting module 24 is configured to: perform PING detection on two network elements in the fourth instruction.
本发明实施例的装置中,接收模块21还设置为: In the apparatus of the embodiment of the present invention, the receiving module 21 is further configured to:
接收到来自用户的表示对任意两个网元进行追踪TRACE检测的第五指令;Receiving a fifth instruction from the user indicating that the TRACE detection is performed on any two network elements;
还包括:Also includes:
检测模块24,设置为:对第五指令中的两个网元进行TRACE检测。The detecting module 24 is configured to perform TRACE detection on two network elements in the fifth instruction.
本发明实施例的装置中,接收模块21还设置为:In the apparatus of the embodiment of the present invention, the receiving module 21 is further configured to:
接收到来自用户的表示查询告警信息的第六指令;Receiving a sixth instruction from the user indicating the query alarm information;
还包括:Also includes:
检测模块24,设置为:监听OSPF的告警信息并显示。The detecting module 24 is configured to: monitor and display OSPF alarm information.
本发明实施例的装置中,第一获取模块22是设置为:In the apparatus of the embodiment of the present invention, the first obtaining module 22 is configured to:
在预先设置的表示网元的信息和表示OSPF区域的信息之间的对应关系中,查找第一网元对应的所有OSPF区域。The OSPF area corresponding to the first network element is searched for in the correspondence between the information indicating the network element and the information indicating the OSPF area.
本发明实施例的装置中,第二获取模块是设置为:In the apparatus of the embodiment of the present invention, the second obtaining module is configured to:
获取第一网元在第二指令中的OSPF区域的OSPF邻居列表;根据获得的第一网元的OSPF邻居列表发现第一网元的所有邻居;选择第一网元的一个邻居;获取选择的邻居在第二指令中的OSPF区域的OSPF邻居列表;根据获得的选择的邻居的OSPF邻居列表发现选择的邻居的所有邻居;继续执行选择第一网元的其他邻居或选择的邻居的一个邻居的步骤。Obtaining an OSPF neighbor list of the OSPF area of the first network element in the second instruction; discovering all the neighbors of the first network element according to the obtained OSPF neighbor list of the first network element; selecting one neighbor of the first network element; obtaining the selected The OSPF neighbor list of the OSPF area in the second instruction of the neighbor; discovers all the neighbors of the selected neighbor according to the obtained OSPF neighbor list of the selected neighbor; continues to perform the selection of the neighbor of the first network element or a neighbor of the selected neighbor step.
本发明实施例的装置中,第二获取模块是设置为:In the apparatus of the embodiment of the present invention, the second obtaining module is configured to:
在预先设置的表示网元的信息、表示OSPF区域的信息和OSPF邻居列表之间的对应关系中,查找第一网元、第二指令中的OSPF区域对应的OSPF邻居列表;根据获得的第一网元的OSPF邻居列表发现第一网元的所有邻居;选择第一网元的一个邻居;在预先设置的表示网元的信息、表示OSPF区域的信息和OSPF邻居列表之间的对应关系中,查找选择的邻居、第二指令中的OSPF区域对应的OSPF邻居列表;根据获得的选择的邻居的OSPF邻居列表发现选择的邻居的所有邻居;继续执行选择第一网元的其他邻居或选择的邻居的一个邻居的步骤。The OSPF neighbor list corresponding to the OSPF area in the first network element and the second instruction is searched for in the correspondence between the information indicating the network element, the information indicating the OSPF area, and the OSPF neighbor list. The OSPF neighbor list of the network element discovers all the neighbors of the first network element; selects a neighbor of the first network element; in the correspondence between the preset information indicating the network element, the information indicating the OSPF area, and the OSPF neighbor list, Finding the selected neighbor, the OSPF neighbor list corresponding to the OSPF area in the second instruction, discovering all the neighbors of the selected neighbor according to the obtained OSPF neighbor list of the selected neighbor, and continuing to perform other neighbors or selected neighbors that select the first network element The steps of a neighbor.
本发明实施例的装置中,所述第二获取模块是设置为: In the device of the embodiment of the present invention, the second acquiring module is configured to:
获取第一网元在第二指令中的OSPF区域的OSPF邻居列表;选择获得的第一网元的OSPF邻居列表的一条表项;获取选择的表项的邻居地址所属的第二网元,获取第二网元所在的区域标识与第二指令中的OSPF区域相同的所有OSPF区域;分别获取第二网元在每个获得的第二网元的OSPF区域的OSPF邻居列表;在获得的第二网元的OSPF邻居列表中查找到邻居地址为第一网元的地址的表项,确定第一网元和所述第二网元之间互为邻居关系;继续执行选择获得的第一网元的OSPF邻居列表的其他表项的步骤;Obtaining an OSPF neighbor list of the OSPF area of the first network element in the second instruction; selecting an entry of the obtained OSPF neighbor list of the first network element; obtaining the second network element to which the neighboring address of the selected entry belongs, acquiring The area where the second network element is located is the same as the OSPF area in the second instruction; the OSPF neighbor list of the OSPF area of the second network element obtained by the second network element is obtained respectively; The OSPF neighbor list of the network element is used to find the entry of the address of the first network element, and the first network element and the second network element are mutually neighbors. Steps of other entries in the OSPF neighbor list;
选择第一网元的一个邻居;获取选择的邻居在第二指令中的OSPF区域的OSPF邻居列表;选择获得的选择的邻居的OSPF邻居列表的一条表项;获取选择的表项的邻居地址所属的第二网元,获取第二网元所在的区域标识与第二指令中的OSPF区域相同的所有OSPF区域;分别获取第二网元在每个获得的第二网元的OSPF区域的OSPF邻居列表;在获得的第二网元的OSPF邻居列表中查找到邻居地址为选择的邻居的地址的表项,确定选择的邻居和第二网元之间互为邻居关系;继续执行选择获得的选择的邻居的OSPF邻居列表的其他表项的步骤;Selecting a neighbor of the first network element; obtaining an OSPF neighbor list of the OSPF area of the selected neighbor in the second command; selecting an entry of the OSPF neighbor list of the selected neighbor; obtaining the neighbor address of the selected entry Obtaining, by the second network element, all OSPF areas in which the area identifier of the second network element is the same as the OSPF area in the second instruction; respectively acquiring the OSPF neighbors of the OSPF area of the second network element obtained by the second network element The list is obtained by searching the OSPF neighbor list of the second network element to find the address of the neighbor whose neighbor address is the selected neighbor, and determining that the selected neighbor and the second network element are mutually neighbors; Steps for other entries in the neighbor's OSPF neighbor list;
继续执行选择第一网元的其他邻居或选择的邻居的一个邻居的步骤。。The step of selecting another neighbor of the first network element or a neighbor of the selected neighbor continues. .
本发明实施例的装置中,第二获取模块是设置为:In the apparatus of the embodiment of the present invention, the second obtaining module is configured to:
选择第二指令中的OSPF区域中的一个网元;获取选择的网元在第二指令中的OSPF区域的OSPF邻居列表;选择获得的OSPF邻居列表的一条表项;在预先设置的表示网元的信息和邻居地址之间的对应关系中,查找选择的表项的邻居地址对应的第二网元,获取第二网元所在的区域标识与第二指令中的OSPF区域相同的所有OSPF区域;分别获取第二网元在每个获得的第二网元的OSPF区域的OSPF邻居列表;在获得的第二网元的OSPF邻居列表中查找到邻居地址为选择的网元的地址的表项,确定选择的网元和第二网元之间互为邻居关系;继续执行选择获得的OSPF邻居列表的其他表项的步骤;继续执行选择第二指令中的OSPF区域中其他网元的步骤。Select one of the OSPF areas in the second command, obtain an OSPF neighbor list of the OSPF area in the second command, and select an entry of the obtained OSPF neighbor list. The second network element corresponding to the neighbor address of the selected entry is obtained by the second network element corresponding to the neighboring address of the selected entry, and the OSPF area with the same area identifier as the OSPF area in the second instruction is obtained. The OSPF neighbor list of the OSPF area of the second network element obtained by the second network element is obtained, and the OSPF neighbor list of the second network element is used to find the entry of the address of the selected network element. The step of determining the neighboring relationship between the selected network element and the second network element; continuing to perform the other entries of the selected OSPF neighbor list; and continuing to perform the step of selecting other network elements in the OSPF area in the second instruction.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行, 在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, System, device, device, device, etc.) In execution, one or a combination of the steps of the method embodiments is included.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
工业实用性Industrial applicability
通过本发明实施例的方案,直观地显示了OSPF区域中网元之间的邻居关系。 The neighbor relationship between the network elements in the OSPF area is visually displayed by using the solution of the embodiment of the present invention.

Claims (12)

  1. 一种实现网络管理的方法,包括:A method of implementing network management, including:
    接收到来自用户的表示查看第一网元的第一指令,获取第一网元所在的所有开放式最短路径优先OSPF区域并显示;Receiving, by the user, a first instruction for viewing the first network element, acquiring all open shortest path first OSPF areas where the first network element is located, and displaying the same;
    接收到来自用户的表示查看OSPF区域的第二指令,获取第二指令中的OSPF区域的所有网元和网元之间的邻居关系并显示。The second instruction from the user to view the OSPF area is received, and the neighbor relationship between all network elements and the network element in the OSPF area in the second instruction is obtained and displayed.
  2. 根据权利要求1所述的方法,该方法还包括:The method of claim 1 further comprising:
    当接收到来自所述用户的表示对邻居链路进行分组网间搜索器PING检测的第三指令时,对所述第三指令中的邻居链路进行PING检测。When receiving a third instruction from the user indicating that the packet-to-network searcher PING detects the neighbor link, performing PING detection on the neighbor link in the third instruction.
  3. 根据权利要求1所述的方法,该方法还包括:The method of claim 1 further comprising:
    当接收到来自所述用户的表示对任意两个网元进行PING检测的第四指令,对所述第四指令中的两个网元进行PING检测。When receiving a fourth instruction from the user indicating that PING detection is performed on any two network elements, PING detection is performed on two network elements in the fourth instruction.
  4. 根据权利要求1所述的方法,该方法还包括:The method of claim 1 further comprising:
    当接收到来自所述用户的表示对任意两个网元进行追踪TRACE检测的第五指令时,对所述第五指令中的两个网元进行TRACE检测。When receiving a fifth instruction from the user indicating that tracking TRACE detection is performed on any two network elements, TRACE detection is performed on two network elements in the fifth instruction.
  5. 根据权利要求1所述的方法,该方法还包括:The method of claim 1 further comprising:
    当接收到来自所述用户的表示查询告警信息的第六指令时,监听OSPF的告警信息并显示。When receiving the sixth instruction from the user indicating the query alarm information, the OSPF alarm information is monitored and displayed.
  6. 根据权利要求1~5任意一项所述的方法,其中,所述获取第一指令中的第一网元所在的所有OSPF区域包括:The method according to any one of claims 1 to 5, wherein the obtaining all OSPF areas where the first network element in the first instruction is located includes:
    在预先设置的表示网元的信息和表示OSPF区域的信息之间的对应关系中,查找所述第一网元对应的所有OSPF区域。The OSPF area corresponding to the first network element is searched for in the correspondence between the information indicating the network element and the information indicating the OSPF area.
  7. 根据权利要求1~5任意一项所述的方法,其中,所述获取第二指令中的OSPF区域的所有网元和网元之间的邻居关系包括:The method according to any one of claims 1 to 5, wherein the acquiring the neighbor relationship between all the network elements of the OSPF area and the network element in the second instruction includes:
    获取所述第一网元在所述第二指令中的OSPF区域的OSPF邻居列表;Obtaining an OSPF neighbor list of the OSPF area of the first network element in the second instruction;
    根据获得的第一网元的OSPF邻居列表发现所述第一网元的所有邻居; Discovering all neighbors of the first network element according to the obtained OSPF neighbor list of the first network element;
    依次选择所述第一网元的每个邻居;Selecting each neighbor of the first network element in turn;
    获取选择的每个邻居在所述第二指令中的OSPF区域的OSPF邻居列表;Obtaining an OSPF neighbor list of each selected neighbor in the OSPF area in the second instruction;
    根据获得的选择的邻居的OSPF邻居列表发现所述选择的邻居的所有邻居。All neighbors of the selected neighbor are discovered according to the obtained OSPF neighbor list of the selected neighbor.
  8. 根据权利要求7所述的方法,其中,The method of claim 7 wherein
    所述获取第一网元在第二指令中的OSPF区域的OSPF邻居列表包括:在预先设置的表示网元的信息、表示OSPF区域的信息和OSPF邻居列表之间的对应关系中,查找所述第一网元、所述第二指令中的OSPF区域对应的OSPF邻居列表;The obtaining the OSPF neighbor list of the OSPF area of the first network element in the second instruction includes: searching, in a correspondence between the preset information indicating the network element, the information indicating the OSPF area, and the OSPF neighbor list, a first network element, and an OSPF neighbor list corresponding to an OSPF area in the second instruction;
    所述获取选择的每个邻居在第二指令中的OSPF区域的OSPF邻居列表包括:在预先设置的表示网元的信息、表示OSPF区域的信息和OSPF邻居列表之间的对应关系中,查找所述选择的邻居、所述第二指令中的OSPF区域对应的OSPF邻居列表。The OSPF neighbor list of the OSPF area in the second instruction of each of the selected neighbors includes: a pre-set correspondence between the information indicating the network element, the information indicating the OSPF area, and the OSPF neighbor list, The selected neighbor, the OSPF neighbor list corresponding to the OSPF area in the second instruction.
  9. 根据权利要求7所述的方法,其中,The method of claim 7 wherein
    所述根据获得的第一网元的OSPF邻居列表发现第一网元的所有邻居包括:The discovering, according to the obtained OSPF neighbor list of the first network element, all neighbors of the first network element include:
    依次选择所述获得的第一网元的OSPF邻居列表的每一条表项;And selecting, in sequence, each entry of the OSPF neighbor list of the obtained first network element;
    获取选择的表项的邻居地址所属的第二网元,获取所述第二网元所在的区域标识与所述第二指令中的OSPF区域相同的所有OSPF区域;Acquiring a second network element to which the neighboring address of the selected entry belongs, and obtaining all OSPF areas in which the area identifier of the second network element is the same as the OSPF area in the second instruction;
    分别获取所述第二网元在每个获得的第二网元的OSPF区域的OSPF邻居列表;Obtaining, respectively, an OSPF neighbor list of the OSPF area of the second network element obtained by the second network element;
    在获得的所述第二网元的OSPF邻居列表中查找到邻居地址为所述第一网元的地址的表项,确定所述第一网元和所述第二网元之间互为邻居关系;Determining, in the obtained OSPF neighbor list of the second network element, an entry whose neighbor address is the address of the first network element, and determining that the first network element and the second network element are neighbors each other relationship;
    所述根据获得的选择的邻居的OSPF邻居列表发现选择的邻居的所有邻居包括:The discovering all neighbors of the selected neighbor according to the obtained OSPF neighbor list of the selected neighbor includes:
    依次选择所述获得的选择的邻居的OSPF邻居列表的每一条表项; And selecting, in sequence, each entry of the obtained OSPF neighbor list of the selected neighbor;
    获取选择的表项的邻居地址所属的第二网元,获取所述第二网元所在的区域标识与所述第二指令中的OSPF区域相同的所有OSPF区域;Acquiring a second network element to which the neighboring address of the selected entry belongs, and obtaining all OSPF areas in which the area identifier of the second network element is the same as the OSPF area in the second instruction;
    分别获取所述第二网元在每个获得的第二网元的OSPF区域的OSPF邻居列表;Obtaining, respectively, an OSPF neighbor list of the OSPF area of the second network element obtained by the second network element;
    在获得的所述第二网元的OSPF邻居列表中查找到邻居地址为所述选择的邻居的地址的表项,确定所述选择的邻居和所述第二网元之间互为邻居关系。And determining, by the obtained OSPF neighbor list of the second network element, an entry whose neighbor address is the address of the selected neighbor, and determining that the selected neighbor and the second network element are mutually neighbor relationships.
  10. 根据权利要求9所述的方法,其中,所述获取选择的表项的邻居地址所属的第二网元包括:The method according to claim 9, wherein the acquiring the second network element to which the neighbor address of the selected entry belongs includes:
    在预先设置的表示网元的信息和邻居地址之间的对应关系中,查找所述选择的表项的邻居地址对应的第二网元。The second network element corresponding to the neighbor address of the selected entry is searched for in the correspondence between the information indicating the network element and the neighbor address.
  11. 一种实现网络管理的装置,包括:A device for implementing network management, comprising:
    接收模块,设置为:接收到来自用户的表示查看第一网元的第一指令;以及,接收到来自用户的表示查看OSPF区域的第二指令;The receiving module is configured to: receive a first instruction from the user to view the first network element; and receive a second instruction from the user to view the OSPF area;
    第一获取模块,设置为:获取第一网元所在的所有开放式最短路径优先OSPF区域并显示;The first obtaining module is configured to: obtain all open shortest path first OSPF areas where the first network element is located, and display the information;
    第二获取模块,设置为:获取第二指令中的OSPF区域的所有网元和每个网元之间的邻居关系并显示。The second obtaining module is configured to: obtain and display a neighbor relationship between all network elements of the OSPF area in the second instruction and each network element.
  12. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-10任一项的方法。 A computer readable storage medium storing computer executable instructions for performing the method of any of claims 1-10.
PCT/CN2016/072740 2015-06-19 2016-01-29 Network management method and device WO2016201991A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510345868.X 2015-06-19
CN201510345868.XA CN106330725A (en) 2015-06-19 2015-06-19 Network management method and device

Publications (1)

Publication Number Publication Date
WO2016201991A1 true WO2016201991A1 (en) 2016-12-22

Family

ID=57544908

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/072740 WO2016201991A1 (en) 2015-06-19 2016-01-29 Network management method and device

Country Status (2)

Country Link
CN (1) CN106330725A (en)
WO (1) WO2016201991A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040196865A1 (en) * 2003-03-27 2004-10-07 Srikanth Natarajan Method and system for discovering a topology of a portion of a computer network
CN101547114A (en) * 2008-03-25 2009-09-30 中国科学院计算技术研究所 Topology processing system and method in autonomous system
US8018876B2 (en) * 2008-08-15 2011-09-13 At&T Intellectual Property I, L.P. Routing system and method with OSPF area zero split into a two level hierarchy for route calculation
CN104283882A (en) * 2014-10-11 2015-01-14 武汉烽火网络有限责任公司 Intelligent safety protection method for router

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453412B (en) * 2007-12-04 2012-09-05 华为技术有限公司 Method and apparatus for automatic topology discovery and resource management in PBB network
CN101282241B (en) * 2008-05-04 2011-04-13 中国科学院计算技术研究所 System for real time processing network route topological in autonomy system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040196865A1 (en) * 2003-03-27 2004-10-07 Srikanth Natarajan Method and system for discovering a topology of a portion of a computer network
CN101547114A (en) * 2008-03-25 2009-09-30 中国科学院计算技术研究所 Topology processing system and method in autonomous system
US8018876B2 (en) * 2008-08-15 2011-09-13 At&T Intellectual Property I, L.P. Routing system and method with OSPF area zero split into a two level hierarchy for route calculation
CN104283882A (en) * 2014-10-11 2015-01-14 武汉烽火网络有限责任公司 Intelligent safety protection method for router

Also Published As

Publication number Publication date
CN106330725A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
JP6195860B2 (en) Capability monitoring in service-oriented architecture
US8811193B2 (en) Network path discovery and analysis
US10560376B2 (en) Semantic information for labels in border gateway protocol
JP2015515832A (en) Integrated synchronization topology and route analysis
JP2015520962A (en) Synchronization management group
US10367686B2 (en) Automatically detecting roles of nodes in layered network topologies
US11075814B2 (en) Sub-topology discovery for operating hybrid solutions
US9497114B2 (en) Label stack identification for lawful interception of virtual private network traffic
CN102447639B (en) A kind of policy routing method and device
CN112751714B (en) Method, apparatus and computer storage medium for determining network topology
US20150023150A1 (en) Establishing and Protecting Label Switched Paths Across Topology-Transparent Zones
JP2016192757A (en) Route display method, route display program and route display apparatus
US20130042020A1 (en) Quick Network Path Discovery
US9515872B2 (en) Systems and methods for tunnel-free fast rerouting in internet protocol networks
WO2016201991A1 (en) Network management method and device
CN108924011A (en) Monitoring system, relevant device, method and medium for OSPF+ Routing Protocol
US10044599B2 (en) Method for managing domain routing table in router on network structure based on hierarchical domain
KR101616211B1 (en) Scalable networked device dynamic mapping
WO2016177112A1 (en) Method and device for implementing link state message refresh
JP2010124255A (en) Method of specifying input edge router, program, and computer
JP5035217B2 (en) Network system, network monitoring device and integrated monitoring device
US20140280804A1 (en) Relationship driven dynamic workflow system
JP4678778B2 (en) Multi-layer network operation management system and computer program
CN113497757A (en) Inter-domain shortest path segment routing using domain segment identifiers
US20190130036A1 (en) Identifying user intention from encrypted browsing activity

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16810732

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16810732

Country of ref document: EP

Kind code of ref document: A1