[go: up one dir, main page]

CN108418701A - Method and device for establishing border gateway protocol device network topology - Google Patents

Method and device for establishing border gateway protocol device network topology Download PDF

Info

Publication number
CN108418701A
CN108418701A CN201710075453.4A CN201710075453A CN108418701A CN 108418701 A CN108418701 A CN 108418701A CN 201710075453 A CN201710075453 A CN 201710075453A CN 108418701 A CN108418701 A CN 108418701A
Authority
CN
China
Prior art keywords
bgp
information
peer
equipment
bgplocalas
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201710075453.4A
Other languages
Chinese (zh)
Inventor
李庭煜
周家彬
张印
韩瑾辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Group Guizhou Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Guizhou Co Ltd
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 China Mobile Communications Group Co Ltd, China Mobile Group Guizhou Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201710075453.4A priority Critical patent/CN108418701A/en
Publication of CN108418701A publication Critical patent/CN108418701A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0213Standardised network management protocols, e.g. simple network management protocol [SNMP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of method and devices for establishing Border Gateway Protocol device network topology.This method includes:Judge in the configuration information of apparatus for network node whether to include Border Gateway Protocol (BGP) configuration information, wherein BGP configuration informations include the local autonomy field system BGPLocalAS information belonging to apparatus for network node;When including BGP configuration informations, according to the label of the BGP equipment in the autonomy field system BGPLocalAS information creating bgp network topologys in BGP configuration informations.The method disclosed by the invention for establishing Border Gateway Protocol device network topology succinctly can efficiently establish Border Gateway Protocol device network topology.

Description

建立边界网关协议设备网络拓扑的方法及装置Method and device for establishing border gateway protocol device network topology

技术领域technical field

本发明属于通信技术领域,尤其涉及一种建立边界网关协议设备网络拓扑的方法及装置。The invention belongs to the technical field of communication, and in particular relates to a method and a device for establishing a border gateway protocol device network topology.

背景技术Background technique

信息时代对计算机网络的依赖使得计算机网络运行的可靠性显得尤为重要,对网络管理提出了更高的要求。按照开放系统互联(Open System Interconnect;OSI)的定义,网络管理主要包括故障管理、配置管理、性能管理、安全管理和计费管理五个功能域。在上述五大功能域中,配置管理是基础,它的主要功能包括发现网络的拓扑结构,监视和管理网络设备的配置情况。其它各项功能则均以已知网络的拓扑结构为基础。网络拓扑发现的主要目的是获取和维护网络节点的存在信息和它们之间的连接关系信息,并在此基础上绘制出整个网络拓扑图。The dependence on computer network in the information age makes the reliability of computer network operation very important, and puts forward higher requirements for network management. According to the definition of Open System Interconnect (OSI), network management mainly includes five functional domains: fault management, configuration management, performance management, security management and billing management. Among the above five functional domains, configuration management is the foundation, and its main functions include discovering the topology of the network, monitoring and managing the configuration of network devices. All other functions are based on the known topology of the network. The main purpose of network topology discovery is to obtain and maintain the existence information of network nodes and the connection relationship information between them, and draw the entire network topology map on this basis.

目前Internet和其他较大的专有网络都由大量的自治系统(Autonomous System;AS)组成,这些网络的路由结构一般被划分为域内路由和域间路由两种结构。自治系统内部的路由器通过域内路由协议彼此交换路由信息,一般域内路由协议分为距离向量协议和链路状态协议。前者以路由信息协议(RIP)代表,后者常用的有开放最短路径优先(OSPF)协议和中间系统到中间系统(IS-IS)协议。自治系统边界路由器通过域间路由协议交换路由信息,目前Internet上的域间路由协议标准是边界网关协议(Border Gateway Protocol;BGP)。At present, the Internet and other large private networks are composed of a large number of autonomous systems (Autonomous System; AS), and the routing structures of these networks are generally divided into two types: intra-domain routing and inter-domain routing. The routers in the autonomous system exchange routing information with each other through intra-domain routing protocols. Generally, intra-domain routing protocols are divided into distance vector protocols and link state protocols. The former is represented by the Routing Information Protocol (RIP), and the latter is commonly used by the Open Shortest Path First (OSPF) protocol and the Intermediate System to Intermediate System (IS-IS) protocol. Autonomous system boundary routers exchange routing information through an inter-domain routing protocol. The current inter-domain routing protocol standard on the Internet is Border Gateway Protocol (BGP).

在当前网络中,边界网关协议BGP使用频繁。BGP是为TCP/IP(传输控制协议/因特网互联协议)互联网而设计的外部网关路由协议(或域间路由协议),用于多个自治域系统AS之间。BGP为距离矢量路由协议,但其既不是基于纯粹的链路状态算法,也不是基于纯粹的距离向量算法。在互联网中,BGP的主要功能是与其它自治域系统AS通过BGP交换网络可达信息。各个自治域系统AS可以运行不同的内部网关路由协议。其中, BGP更新信息包括网络号/自治域路径的成对信息,而自治域路径包括到达某个特定网络须经过的自治域串,这些更新信息通过TCP传送出去,以保证传输的可靠性。In current networks, Border Gateway Protocol BGP is frequently used. BGP is an exterior gateway routing protocol (or inter-domain routing protocol) designed for the TCP/IP (Transmission Control Protocol/Internet Interconnection Protocol) Internet, and is used between multiple autonomous domain systems AS. BGP is a distance vector routing protocol, but it is neither based on a pure link state algorithm nor a pure distance vector algorithm. In the Internet, the main function of BGP is to exchange network reachability information with other autonomous domain systems (AS) through BGP. Each autonomous domain system AS can run different interior gateway routing protocols. Among them, the BGP update information includes the paired information of the network number/autonomous domain path, and the autonomous domain path includes the autonomous domain string that must be passed through to reach a specific network. These update information are transmitted through TCP to ensure the reliability of transmission.

在传统的网络管理中,比如利用简单网络管理协议SNMP(Simple NetworkManagement Protocol)支持的网络管理。其中,SNMP由一组网络管理标准组成,其通过RFC-1213中的信息表ifTable和IP地址表ipAddrTable以及厂家私有SNMP信息来针对单个网元进行管理,偏重于物理层面,而缺少对于全局BGP设备构建网络拓扑等管理的手段;一些采用能够对全局BGP设备构建网络拓扑等管理的方法需要在每个网络节点分别设置分管服务器并通过全局服务器进行控制和管理,具有成本较高且系统复杂的缺点。In traditional network management, for example, the network management supported by Simple Network Management Protocol (SNMP) is used. Among them, SNMP is composed of a set of network management standards. It manages a single network element through the information table ifTable and IP address table ipAddrTable in RFC-1213, as well as private SNMP information of the manufacturer. It focuses on the physical layer and lacks global BGP equipment Management methods such as building network topology; some management methods that can build network topology for global BGP devices need to set up a separate server for each network node and control and manage it through the global server, which has the disadvantages of high cost and complex system .

发明内容Contents of the invention

本发明实施例提供了一种建立边界网关协议设备网络拓扑的方法及装置,能够简洁高效地建立边界网关协议设备网络拓扑。Embodiments of the present invention provide a method and device for establishing a BGP device network topology, which can simply and efficiently establish a BGP device network topology.

第一方面,提供了一种建立边界网关协议设备网络拓扑的方法,包括:判断网络节点设备的配置信息中是否包含有边界网关协议BGP配置信息,其中,BGP配置信息包括网络节点设备所属的本地自治域系统 BGPLocalAS信息;当包含有BGP配置信息时,根据BGP配置信息中的自治域系统BGPLocalAS信息创建BGP网络拓扑中的BGP设备的标记。In the first aspect, a method for establishing a network topology of a Border Gateway Protocol device is provided, including: judging whether the configuration information of the network node device contains Border Gateway Protocol BGP configuration information, wherein the BGP configuration information includes the local Autonomous domain system BGPLocalAS information; when BGP configuration information is included, the BGP device label in the BGP network topology is created according to the autonomous domain system BGPLocalAS information in the BGP configuration information.

第二方面,提供了一种建立边界网关协议设备网络拓扑的装置,包括:判断单元和第一处理单元。该判断单元用于判断网络节点设备的配置信息中是否包含有边界网关协议BGP配置信息,其中,BGP配置信息包括网络节点设备所属的本地自治域系统BGPLocalAS信息;该第一处理单元用于当包含有BGP配置信息时,根据BGP配置信息中的自治域系统BGPLocalAS信息创建BGP网络拓扑中的BGP设备的标记。In a second aspect, an apparatus for establishing a BGP device network topology is provided, including: a judging unit and a first processing unit. The judging unit is used to judge whether the configuration information of the network node device includes border gateway protocol BGP configuration information, wherein the BGP configuration information includes the information of the local autonomous domain system BGPLocalAS to which the network node device belongs; When there is BGP configuration information, create a BGP device label in the BGP network topology based on the autonomous domain system BGPLocalAS information in the BGP configuration information.

根据本发明实施例提供的建立边界网关协议设备网络拓扑的方法及装置,通过获得的网络节点的BGP配置信息中的本地自治域系统 BGPLocalAS信息创建BGP网络拓扑中的BGP设备的标记。实现对边界网关协议设备网络拓扑初步建立,不需要在每个网络节点分别设置分管服务器并通过全局服务器进行控制和管理,有效降低了系统建立成本和系统复杂度,能够实现对网络节点设备的自动发现自动添加。According to the method and device for establishing a BGP device network topology provided by the embodiments of the present invention, the BGP device label in the BGP network topology is created through the local autonomous domain system BGPLocalAS information in the obtained BGP configuration information of the network node. Realize the initial establishment of the network topology of the BGP equipment, without the need to set up a separate server for each network node and control and manage it through the global server, which effectively reduces the system establishment cost and system complexity, and can realize automatic monitoring of network node equipment. Discovery is added automatically.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所需要使用的附图作简单地介绍,显而易见地,下面所描述的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings required in the embodiments of the present invention. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without making creative efforts.

图1是本发明一种实施例的建立边界网关协议设备网络拓扑的方法的示意性流程图;1 is a schematic flowchart of a method for establishing a network topology of a BGP device according to an embodiment of the present invention;

图2是本发明一种实施例的建立边界网关协议设备网络拓扑的方法的示例性应用场景示意图;FIG. 2 is a schematic diagram of an exemplary application scenario of a method for establishing a BGP device network topology according to an embodiment of the present invention;

图3是本发明一种实施例的建立边界网关协议设备网络拓扑的方法中 BGP配置信息采集过程的示例性流程图;Fig. 3 is an exemplary flow chart of the BGP configuration information collection process in the method for establishing a border gateway protocol device network topology according to an embodiment of the present invention;

图4是本发明另一种实施例的建立边界网关协议设备网络拓扑的方法的示例性流程图;FIG. 4 is an exemplary flow chart of a method for establishing a BGP device network topology according to another embodiment of the present invention;

图5是本发明一种实施例的建立边界网关协议设备网络拓扑的方法的示例性效果图;FIG. 5 is an exemplary effect diagram of a method for establishing a network topology of a BGP device according to an embodiment of the present invention;

图6是本发明一种实施例的建立边界网关协议设备网络拓扑的装置的示意性结构框图;Fig. 6 is a schematic structural block diagram of an apparatus for establishing a BGP device network topology according to an embodiment of the present invention;

图7是本发明另一种实施例的建立边界网关协议设备网络拓扑的装置的示意性结构框图;FIG. 7 is a schematic structural block diagram of an apparatus for establishing a BGP device network topology according to another embodiment of the present invention;

图8是本发明一种实施例的建立边界网关协议设备网络拓扑的装置的计算设备实现示意性结构框图。Fig. 8 is a schematic structural block diagram of a computing device implementation of an apparatus for establishing a BGP device network topology according to an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

下面将详细描述本发明的各个方面的特征和示例性实施例。在下面的详细描述中,提出了许多具体细节,以便提供对本发明的全面理解。但是,对于本领域技术人员来说很明显的是,本发明可以在不需要这些具体细节中的一些细节的情况下实施。下面对实施例的描述仅仅是为了通过示出本发明的示例来提供对本发明的更好的理解。本发明决不限于下面所提出的任何具体配置和算法,而是在不脱离本发明的精神的前提下覆盖了元素、部件和算法的任何修改、替换和改进。在附图和下面的描述中,没有示出公知的结构和技术,以便避免对本发明造成不必要的模糊。Features and exemplary embodiments of various aspects of the invention will be described in detail below. In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by showing examples of the present invention. The present invention is by no means limited to any specific configurations and algorithms presented below, but covers any modification, substitution and improvement of elements, components and algorithms without departing from the spirit of the invention. In the drawings and the following description, well-known structures and techniques have not been shown in order to avoid unnecessarily obscuring the present invention.

需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

图1是本发明一种实施例的建立边界网关协议设备网络拓扑的方法的示意性流程图。如图1所示,该建立边界网关协议设备网络拓扑的方法 S100,可以包括:S110,判断网络节点设备的配置信息中是否包含有边界网关协议BGP配置信息,其中,BGP配置信息包括网络节点设备所属的本地自治域系统BGPLocalAS信息。S120,当包含有BGP配置信息时,根据BGP配置信息中的自治域系统BGPLocalAS信息创建BGP网络拓扑中的BGP设备的标记。在一示例中,网络节点设备可以是路由器、交换机、服务器或者主机等。当获得的网络节点设备配置信息包含BGP配置信息信息时,可以判定该网络节点设备为BGP设备,例如BGP路由器。该方法通过获得的网络节点的BGP配置信息中的本地自治域系统BGPLocalAS信息创建BGP网络拓扑中的BGP设备的标记。实现对边界网关协议设备网络拓扑初步建立,不需要在每个网络节点分别设置分管服务器并通过全局服务器进行控制和管理,有效降低了系统建立成本和系统复杂度,能够实现对网络节点设备的自动发现自动添加。在一些示例中,该方法可以还包括:比较BGPLocalAS信息的数据值与预设范围以判断BGPLocalAS信息是否正常。例如,判断该节点设备的BGPLocalAS项的数据是否为0、-1 或大于65535等这种不正常、不正确的自治域AS信息。在一些示例中,该方法还可以包括:当判定BGPLocalAS为正常时,判断包含BGP设备的 BGP网络拓扑是否已存在;若判定包含BGP设备的BGP网络拓扑不存在,则生成能够标识BGP设备的信息组,信息组包括BGP设备所属的 BGPLocalAS信息和BGP设备的标记。Fig. 1 is a schematic flowchart of a method for establishing a BGP device network topology according to an embodiment of the present invention. As shown in FIG. 1, the method S100 for establishing a network topology of a Border Gateway Protocol device may include: S110, judging whether the configuration information of the network node device includes Border Gateway Protocol BGP configuration information, wherein the BGP configuration information includes the network node device Information about the local autonomous domain system BGPLocalAS to which it belongs. S120. When the BGP configuration information is included, create a label of the BGP device in the BGP network topology according to the autonomous domain system BGPLocalAS information in the BGP configuration information. In an example, the network node device may be a router, a switch, a server, or a host. When the obtained network node device configuration information includes BGP configuration information, it can be determined that the network node device is a BGP device, such as a BGP router. The method creates a BGP device mark in the BGP network topology by using the local autonomous domain system BGPLocalAS information in the obtained BGP configuration information of the network node. Realize the initial establishment of the network topology of the BGP equipment, without the need to set up a separate server for each network node and control and manage it through the global server, which effectively reduces the system establishment cost and system complexity, and can realize automatic monitoring of network node equipment. Discovery is added automatically. In some examples, the method may further include: comparing the data value of the BGPLocalAS information with a preset range to determine whether the BGPLocalAS information is normal. For example, it is judged whether the data of the BGPLocalAS item of the node device is 0, -1 or greater than 65535 and other abnormal and incorrect autonomous domain AS information. In some examples, the method may further include: when it is determined that BGPLocalAS is normal, determining whether a BGP network topology containing a BGP device already exists; if it is determined that a BGP network topology containing a BGP device does not exist, generating information capable of identifying the BGP device Group, the information group includes the BGPLocalAS information to which the BGP device belongs and the label of the BGP device.

图2是本发明一种实施例的建立边界网关协议设备网络拓扑的方法的示例性应用场景示意图。如图2所示,该用于场景包括:网络节点设备例如图中,被管理设备210、被管理设备220和被管理设备220;网络管理服务器,例如,网络管理系统NMS。在一些示例中,该方法可以包括基于简单网络管理协议SNMP获取或接收网络节点设备的配置信息。例如,上述的被管理设备210、被管理设备220和被管理设备220内分别设置有 SNMP代理,以建立SNMP网络管理运行的环境。在一些示例中,目标网络的每个网络节点210、220、230上的被管理设备都可以通过SNMP代理接收或传送信息,SNMP代理拥有对应的被管理设备相关管理信息,用于将它们转换成与SNMP兼容的格式,这里的相关管理信息例如可以是被管理设备的配置信息,进而,SNMP代理可以通过SNMP协议将信息、数据传递到网络管理系统NMS进行处理;NMS运行应用程序来实现监控被管理设备的功能,NMS还可以为网络管理提供大量的处理程序及必须的储存资源。Fig. 2 is a schematic diagram of an exemplary application scenario of a method for establishing a BGP device network topology according to an embodiment of the present invention. As shown in FIG. 2 , the application scenario includes: network node devices such as managed device 210 , managed device 220 and managed device 220 in the figure; and a network management server such as a network management system NMS. In some examples, the method may include acquiring or receiving configuration information of the network node device based on the Simple Network Management Protocol SNMP. For example, the above-mentioned managed device 210, managed device 220 and managed device 220 are respectively provided with SNMP agents to establish an environment for SNMP network management and operation. In some examples, the managed devices on each network node 210, 220, 230 of the target network can receive or transmit information through an SNMP agent, and the SNMP agent has corresponding managed device-related management information for converting them into In a format compatible with SNMP, the relevant management information here can be, for example, the configuration information of the managed device. Furthermore, the SNMP agent can pass the information and data to the network management system NMS for processing through the SNMP protocol; the NMS runs the application program to realize the monitoring of the managed device The function of managing equipment, NMS can also provide a large number of processing programs and necessary storage resources for network management.

在一些实施例中,该方法还可以包括基于SNMP获取或接收存储在网络节点设备的管理信息库MIB的配置信息。例如,在目标网络的每个网络节点上配置一个管理信息库MIB(Manage Information Base),MIB其可以收集并存储管理信息,每个被管理设备对应的SNMP代理可以通过配置的MIB获得和存储所代理的被管理设备的配置信息。In some embodiments, the method may further include acquiring or receiving configuration information stored in a management information base (MIB) of the network node device based on SNMP. For example, configure a management information base MIB (Manage Information Base) on each network node of the target network, which can collect and store management information, and the SNMP agent corresponding to each managed device can obtain and store all information through the configured MIB. Agent's configuration information for managed devices.

在一些示例中,该方法可以包括对该SNMP的MIB进行访问。例如,对MIB的访问,可以通过应用层协议进行,以从MIB中采集到其对应的网络节点中的信息。具体地可以利用一网络信息采集进程可通过应用层协议SNMP对SNMP的MIB进行访问,采集网络节点210、220、230的配置信息,例如,IP地址和接口的配置数据信息以及常见的网络设备的基础配置信息等。在一些实施方式中,该方法可以通过应用层协议对SNMP的 MIB进行访问,还可以采集网络节点的BGP配置数据信息。其中,网络节点如果配置有BGP,则该网络节点的BGP配置可以包括BGP本地自治域AS信息(BGPLocalAS信息)、BGP对等体表(BGPPeerTable)信息等。In some examples, the method can include accessing the SNMP MIB. For example, the access to the MIB can be performed through the application layer protocol, so as to collect the information in the corresponding network node from the MIB. Specifically, a network information collection process can be used to access the MIB of SNMP through the application layer protocol SNMP, and collect configuration information of network nodes 210, 220, 230, such as configuration data information of IP addresses and interfaces, and configuration information of common network devices. Basic configuration information, etc. In some implementation manners, the method can access the MIB of SNMP through an application layer protocol, and can also collect BGP configuration data information of network nodes. Wherein, if the network node is configured with BGP, the BGP configuration of the network node may include BGP local autonomous domain AS information (BGPLocalAS information), BGP peer table (BGPPeerTable) information, and the like.

根据一些实施例,该方法中的BGP配置信息还可以包括与 BGPLocalAS信息具有对应关系的对等体表信息BGPPeerTable;该方法还可以包括:根据BGP配置信息中的对等体表信息BGPPeerTable创建BGP 网络拓扑中BGP设备与其他BGP设备的连接关系。在一些示例中,该方法中对等体表信息包括对等体远程地址、对等体的标识符和本端地址;该方法还可以包括:根据对等体远程地址和对等体的标识符判断包含BGP设备的对等体BGP设备的BGP网络拓扑是否已存在;若判定为包含BGP设备的对等体BGP设备的BGP网络拓扑是不存在,则根据对等体远程地址和本端地址,建立BGP设备和BGP设备的对等体BGP设备的连接关系。在一个示例中,对等体表信息BGPPeerTable的数据格式在表1中给出:According to some embodiments, the BGP configuration information in the method may also include peer table information BGPPeerTable corresponding to the BGPLocalAS information; the method may also include: creating a BGP network according to the peer table information BGPPeerTable in the BGP configuration information Connection relationship between a BGP device and other BGP devices in the otherid2ology. In some examples, the peer table information in the method includes the remote address of the peer, the identifier of the peer and the local address; the method may also include: according to the remote address of the peer and the identifier of the peer Determine whether the BGP network topology of the peer BGP device that includes the BGP device already exists; if it is determined that the BGP network topology of the peer BGP device that includes the BGP device does not exist, then according to the remote address and local address of the peer, Establish the connection relationship between the BGP device and the peer BGP device of the BGP device. In an example, the data format of the peer table information BGPPeerTable is given in Table 1:

表1:对等体表信息BGPPeerTableTable 1: Peer table information BGPPeerTable

根据表1的对等体表信息BGPPeerTable的数据格式:对等体的标识符bgpPeerIdentifier、对端网络节点设备IP地址bgpPeerRemoteAddr、本端网络节点设备IP地址bgpPeerLocalAddr。在一些示例中,该方法可以通过BGPPeerTable中的BGPPeerRemoteAddr字段获知该地址相应的BGP 对等体的远端IP地址(即该字段指示的邻居关系的对端IP地址),可以用目标IP地址destIP来表示这个IP地址的值Y;可以通过该对端IP地址的值destIP来获知对端设备;可以判断这个获知的对端设备是否在前述的 BGP拓扑图中存在有相应的节点设备标记,例如设备图标,如果不存在则不进行连接,如果存在该对端节点设备的图标,则可以通过本地IP地址 (即该表中的BGPPeerLocalAddr)字段,获知该地址相应的BGP对等体的本地IP地址(即该字段指示的邻居关系的本端IP地址),并用源IP地址srcIP来表示这个IP地址的值X。在一些示例中,该方法还可以包括在前述的BGP拓扑中,建立该BGP对等体表相应的该节点设备的标记,例如设备图标(srcIP对应的设备的图标)与其对端设备图标(destIP对应的设备的图标)之间的连线,并且,在这条连线的属性信息中记录下srcIP 和destIP,标明这条连线两端配置的IP信息。According to the data format of the peer table information BGPPeerTable in Table 1: peer identifier bgpPeerIdentifier, peer network node device IP address bgpPeerRemoteAddr, local network node device IP address bgpPeerLocalAddr. In some examples, the method can obtain the remote IP address of the BGP peer corresponding to the address through the BGPPeerRemoteAddr field in the BGPPeerTable (that is, the peer IP address of the neighbor relationship indicated by this field), and can use the destination IP address destIP to Indicates the value Y of this IP address; the peer device can be known through the value destIP of the peer IP address; it can be judged whether the learned peer device has a corresponding node device mark in the aforementioned BGP topology diagram, such as device If it does not exist, the connection will not be made. If there is an icon of the peer node device, the local IP address of the BGP peer corresponding to the address can be obtained through the local IP address (that is, the BGPPeerLocalAddr in the table) field ( That is, the local IP address of the neighbor relationship indicated by this field), and the source IP address srcIP is used to represent the value X of this IP address. In some examples, the method may also include, in the aforementioned BGP topology, establishing the BGP peer table corresponding to the node device's mark, such as the device icon (the icon of the device corresponding to srcIP) and its peer device icon (destIP icon of the corresponding device), and record srcIP and destIP in the attribute information of this connection, indicating the IP information configured at both ends of this connection.

图3是本发明一种实施例的建立边界网关协议设备网络拓扑的方法中 BGP配置信息采集过程的示例性流程图。如图3所示,该BGP配置信息采集过程可以包括:Fig. 3 is an exemplary flow chart of the BGP configuration information collection process in the method for establishing a border gateway protocol device network topology according to an embodiment of the present invention. As shown in Figure 3, the BGP configuration information collection process may include:

S310,访问每个网络节点的MIB以采集BGPLocalAS信息。在一些示例中,每个网络节点的MIB存储的信息可以包括该节点设备的配置信息。如果所在节点具有BGP设备,例如BGP路由器,或者说节点设备配置了 BGP路由协议,则该MIB中可以包括BGP配置MIB数据表的信息,例如: BGPLocalAS信息。在一些示例中,该方法可以利用一网络信息采集进程通过应用层协议SNMP对SNMP的MIB进行访问,除了采集基础的网络节点IP地址、接口配置数据信息外,还可以在访问该MIB时从中采集其节点中对应的被采集设备的配置信息,比如:配置了BGP协议的节点设备的BGP配置信息中的BGPLocalAS信息。S310, accessing the MIB of each network node to collect BGPLocalAS information. In some examples, the information stored in the MIB of each network node may include configuration information of the node device. If the node where the node is located has a BGP device, such as a BGP router, or the node device is configured with the BGP routing protocol, the MIB may include information in the BGP configuration MIB data table, for example: BGPLocalAS information. In some examples, the method can use a network information collection process to access the SNMP MIB through the application layer protocol SNMP. In addition to collecting basic network node IP addresses and interface configuration data information, it can also collect information from the MIB when accessing the MIB. The configuration information of the corresponding collected device in its node, for example: the BGPLocalAS information in the BGP configuration information of the node device configured with the BGP protocol.

S320,判断是否采集到BGPLocalAS信息,如果采集到则 BGPLocalAS信息则进入步骤S330;否则结束。在一些示例中,在访问MIB采集到的配置信息中,进行判断识别,确定是否采集到了 BGPLocalAS信息。如果判断采集到了BGPLocalAS信息,即表示该节点设备有BGP配置信息,从而表明该网络节点配置了BGP路由协议或者说被采集的节点设备配置了BGP设备,从而进入S330。在一些示例中,如果判断没有采集到BGPLocalAS信息,表示没有BGP配置信息,从而表明该网络节点未配置BGP路由协议或者说被采集的该节点设备未配置BGP 设备,从而结束该采集过程,例如。可以结束或停止对当前网络节点的节点设备BGP配置信息的采集,进入下一个网络节点的节点设备BGP配置信息的采集,例如:回到S310。S320, judging whether the BGPLocalAS information is collected, if the BGPLocalAS information is collected, then enter step S330; otherwise, end. In some examples, the configuration information collected by accessing the MIB is judged and identified to determine whether the BGPLocalAS information has been collected. If it is determined that BGPLocalAS information has been collected, it means that the node device has BGP configuration information, thus indicating that the network node is configured with BGP routing protocol or that the collected node device is configured with BGP device, thereby entering S330. In some examples, if it is determined that BGPLocalAS information is not collected, it means that there is no BGP configuration information, thereby indicating that the network node is not configured with a BGP routing protocol or that the collected node device is not configured with a BGP device, thereby ending the collection process, for example. The collection of the BGP configuration information of the node device of the current network node can be ended or stopped, and the collection of the BGP configuration information of the node device of the next network node can be started, for example, return to S310.

S330,访问MIB以采集对等体表BGPPeerTable信息。在一些示例中,每个网络节点的MIB存储的信息可以包括该节点设备的配置信息。当确定所在节点设备配置了BGP路由协议具或配置有BGP设备时,例如BGP路由器等,则该MIB中可以包括BGP配置MIB数据表的对等体表BGPPeerTable信息。在一些示例中,该方法也可以利用网络信息采集进程通过应用层协议SNMP对SNMP的MIB继续进行访问,以采集该配置了 BGP协议的节点设备的BGP配置信息中的对等体表BGPPeerTable信息。S330. Access the MIB to collect the information of the peer table BGPPeerTable. In some examples, the information stored in the MIB of each network node may include configuration information of the node device. When it is determined that the node device where the device is located is configured with the BGP routing protocol or is configured with a BGP device, such as a BGP router, the MIB may include the BGPPeerTable information of the BGP configuration MIB data table. In some examples, the method can also utilize the network information collection process to continue to visit the MIB of SNMP through the application layer protocol SNMP, so as to collect the peer table BGPPeerTable information in the BGP configuration information of the node device configured with the BGP protocol.

S340,基于所采集的BGPLocalAS信息和对等体表BGPPeerTable信息,形成一个BGP信息对象BGPInfo,然后结束该采集过程。在一个示例中,该信息对象BGPInfo的数据格式在表2中给出:S340. Based on the collected BGPLocalAS information and the peer table BGPPeerTable information, form a BGP information object BGPInfo, and then end the collection process. In an example, the data format of the information object BGPInfo is given in Table 2:

表2:信息对象BGPInfoTable 2: Information object BGPInfo

BGPInfoBGP Info localAslocalAs bgpPeerTable bgpPeerTable

在一些示例中,该方法还可以包括将该对象BGPInfo作为结果进行采集。通过在SNMP环境下的MIB中采集相应网络设备的BGP配置信息和程序判断逻辑,实现了利用该BGP配置信息中的BGPLocalAS信息生成 BGP拓扑图和设备图标、并利用BGP配置信息中的BGP对等体表中的信息建立本端设备与对端设备的连线,绘制出相应的BGP网络拓扑图,以及 BGP协议识别。由此,能够获得BGP网络拓扑的自动发现并生成BGP拓扑图,以及根据该拓扑图提供BGP可视化信息,从而带来了BGP网络快速故障定位、BGP协议管理的可视化、网络管理运营维护效率的提升等有益效果,使得网络管理员快速直观的掌握当前网络的BGP拓扑信息,为网络管理员提供准确有效的图形,以实现可视化查看即对BGP协议管理的可视化。In some examples, the method may also include collecting the object BGPInfo as a result. By collecting the BGP configuration information and program judgment logic of the corresponding network devices in the MIB in the SNMP environment, it is realized to use the BGPLocalAS information in the BGP configuration information to generate BGP topology diagrams and device icons, and to use the BGP peering information in the BGP configuration information. The information in the body surface establishes the connection between the local device and the peer device, draws the corresponding BGP network topology, and identifies the BGP protocol. As a result, it is possible to automatically discover the BGP network topology, generate a BGP topology map, and provide BGP visualization information based on the topology map, thereby bringing rapid BGP network fault location, visualization of BGP protocol management, and improvement of network management, operation and maintenance efficiency. and other beneficial effects, so that network administrators can quickly and intuitively grasp the BGP topology information of the current network, and provide accurate and effective graphics for network administrators, so as to realize visual inspection, that is, visualization of BGP protocol management.

在一些示例中,通过S310~S340可以获得每个网络节点的各种网络设备配置信息,包括BGP配置信息,从而能够在SNMP管理的网络中实现节点设备是否配置BGP协议的识别和BGP设备的发现,即实现了根据 BGP网络配置情况自动发现配置信息,为下面的BGP节点拓扑绘制和故障定位等等对BGP协议的管理提供了基础。In some examples, various network device configuration information of each network node, including BGP configuration information, can be obtained through S310-S340, so that the identification of whether the node device is configured with the BGP protocol and the discovery of BGP devices can be realized in the network managed by SNMP , which realizes the automatic discovery of configuration information according to the BGP network configuration, and provides a basis for the management of the BGP protocol such as BGP node topology drawing and fault location.

图4是本发明另一种实施例的建立边界网关协议设备网络拓扑的方法的示例性流程图。如图4所示,该方法可以包括:Fig. 4 is an exemplary flowchart of a method for establishing a BGP device network topology according to another embodiment of the present invention. As shown in Figure 4, the method may include:

S410,得到采集结果,在一个示例中,可以接收从某网络节点传送来的该节点设备的配置信息,例如该配合信息包括信息对象BGPInfo。进入 S420。S410, obtaining a collection result. In an example, configuration information of the node device transmitted from a certain network node may be received, for example, the coordination information includes an information object BGPInfo. Go to S420.

S420,判断节点设备的BGPInfo中的BGPLocalAS项是否有数据,并且该数据不为0或-1。如果为否(即没有数据,或者该数据为0或-1),则不继续往下处理(即结束该绘制流程);如果为是,则可以进入S430。S420. Determine whether the BGPLocalAS item in the BGPInfo of the node device has data, and the data is not 0 or -1. If it is no (that is, there is no data, or the data is 0 or -1), do not continue to process (that is, end the drawing process); if it is yes, you can enter S430.

步骤S430,创建BGP网络地图(BGP拓扑图),如BGP.map拓扑图,名称可以为BGP.map。进入S640。Step S430, creating a BGP network map (BGP topology map), such as BGP.map topology map, whose name may be BGP.map. Enter S640.

S440,在该BGP拓扑图中创建一个与该节点设备的BGPLocalAS项对应的信息组,可以用来放置与该节点设备在拓扑图中的有关信息、数据,可以将该信息组的名称用BGPLocalAS的AS号(ASNumber)来表示。进入S450。S440, create an information group corresponding to the BGPLocalAS item of the node device in the BGP topology map, which can be used to place relevant information and data related to the node device in the topology map, and the name of the information group can be used by BGPLocalAS AS number (ASNumber) to represent. Enter the S450.

S450,可以在该BGP拓扑图中创建该节点设备的图标,并放置在该信息组中。进入S460。S450. An icon of the node device may be created in the BGP topology diagram and placed in the information group. Enter S460.

S460,判断是否存在下一个节点设备的BGP对等体表数据。如果为是则进入S470,如果为否则不继续往下处理,表示该表中的每条数据都已经完成处理,可以结束该绘制流程。S460, judging whether there is BGP peer table data of the next node device. If it is yes, enter S470, if it is otherwise, do not continue to process, it means that each piece of data in the table has been processed, and the drawing process can be ended.

S470,当从BGPPeerRemoteAddr字段的数据获知这条数据指示的邻居关系的对端IP地址时,用目标IP(destIP)来表示该对端IP地址的值。进入S480。S470. When the peer IP address of the neighbor relationship indicated by this data is obtained from the data in the BGPPeerRemoteAddr field, use the destination IP (destIP) to represent the value of the peer IP address. Enter S480.

S480,根据该destIP获知对端设备。进入S490。S480. Obtain the peer device according to the destIP. Enter S490.

S490,判断该对端设备是否在该BGP拓扑图中存在对应的节点设备的图标,如果是则进入步骤S500,如果否则进入S460。S490, judging whether the peer device has a corresponding node device icon in the BGP topology map, if yes, go to step S500, if not, go to S460.

S500,将从BGPPeerLocalAddr字段的数据获知的这条数据指示的邻居关系的BGP连接的本端IP地址,用源IP(srcIP)来表示该本端IP地址的值。进入S510。S500. Using the source IP (srcIP) to represent the local IP address of the BGP connection of the neighbor relationship indicated by the data obtained from the data in the BGPPeerLocalAddr field, the value of the local IP address. Enter S510.

S510,在该BGP拓扑图中建立(如:绘制)传送来该BGPInfo的网络节点的节点设备的图标(本端节点设备)和获知的该对端设备的图标之间的连线,并在这条连线的属性中记录对应的srcIP和destIP,以标明这条连线两端配置的IP信息。进入S460。S510, establish (for example: draw) in the BGP topology diagram the connection between the node device icon (local node device) of the network node that transmits the BGPInfo and the learned icon of the peer device, and here Record the corresponding srcIP and destIP in the attributes of a connection to indicate the IP information configured at both ends of the connection. Enter S460.

由此,根据采集的各个网络节点的该BGP配置信息为基础生成相应的 BGP拓扑图,实现了基于SNMP的BGP协议识别,进而完成BGP网络拓扑发现。并且,可以利用该拓扑图进行管理,同时,其提供的BGP可视化信息,实现了基于SNMP对BGP的可视化管理,能够快速定位故障。Therefore, based on the collected BGP configuration information of each network node, a corresponding BGP topology map is generated, and the SNMP-based BGP protocol identification is realized, and then the BGP network topology discovery is completed. Moreover, the topology map can be used for management. At the same time, the BGP visualization information provided by it realizes the visualization management of BGP based on SNMP, and can quickly locate faults.

在一个实施例中,采用该方法创建的网络拓扑图在图5中示出,图5是本发明一种实施例的建立边界网关协议设备网络拓扑的方法的示例性效果图。图5显示了自治域AS64600通过BGP与其他自治域的邻居关系。In one embodiment, the network topology diagram created by this method is shown in FIG. 5 , which is an exemplary effect diagram of a method for establishing a BGP device network topology according to an embodiment of the present invention. Figure 5 shows the neighbor relationship between the autonomous domain AS64600 and other autonomous domains through BGP.

上文中结合图1至图5,详细描述了根据本发明实施例的建立边界网关协议设备网络拓扑的方法,下面将结合图6至图8,详细描述根据本发明实施例的建立边界网关协议设备网络拓扑的装置。The method for establishing the network topology of the BGP device according to the embodiment of the present invention has been described in detail above with reference to FIG. 1 to FIG. 5 . The method for establishing the BGP device according to the embodiment of the present invention will be described in detail below in conjunction with FIG. 6 to FIG. 8 means of network topology.

图6是本发明一种实施例的建立边界网关协议设备网络拓扑的装置的示意性结构框图。如图6所示,装置600包括:判断单元610和第一处理单元620。该判断单元610可以用于判断网络节点设备的配置信息中是否包含有边界网关协议BGP配置信息,其中,BGP配置信息包括网络节点设备所属的本地自治域系统BGPLocalAS信息;该第一处理单元620可以用于当包含有BGP配置信息时,根据BGP配置信息中的自治域系统BGPLocalAS信息创建BGP网络拓扑中的BGP设备的标记。根据本发明实施例的建立边界网关协议设备网络拓扑的装置600可对应于根据本发明实施例的建立边界网关协议设备网络拓扑的方法中的执行主体,并且建立边界网关协议设备网络拓扑的装置600中的各个单元的上述和其它操作和/ 或功能分别为了实现图1中的各个方法的相应流程,为了简洁,在此不再赘述。该装置600通过获得的网络节点的BGP配置信息中的本地自治域系统BGPLocalAS信息创建BGP网络拓扑中的BGP设备的标记。实现对边界网关协议设备网络拓扑初步建立,不需要在每个网络节点分别设置分管服务器并通过全局服务器进行控制和管理,有效降低了系统建立成本和系统复杂度,能够实现对网络节点设备的自动发现自动添加。Fig. 6 is a schematic structural block diagram of an apparatus for establishing a BGP device network topology according to an embodiment of the present invention. As shown in FIG. 6 , the apparatus 600 includes: a judging unit 610 and a first processing unit 620 . The judging unit 610 may be used to judge whether the configuration information of the network node device includes Border Gateway Protocol BGP configuration information, wherein the BGP configuration information includes information about the local autonomous domain system BGPLocalAS to which the network node device belongs; the first processing unit 620 may When BGP configuration information is included, it is used to create the BGP device label in the BGP network topology according to the autonomous domain system BGPLocalAS information in the BGP configuration information. The apparatus 600 for establishing a BGP device network topology according to an embodiment of the present invention may correspond to the execution subject in the method for establishing a BGP device network topology according to an embodiment of the present invention, and the apparatus 600 for establishing a BGP device network topology The above-mentioned and other operations and/or functions of each unit in FIG. 1 are respectively for realizing the corresponding flow of each method in FIG. 1 , and for the sake of brevity, details are not repeated here. The apparatus 600 creates a BGP device label in the BGP network topology by using the local autonomous domain system BGPLocalAS information in the obtained BGP configuration information of the network node. Realize the initial establishment of the network topology of the BGP equipment, without the need to set up a separate server for each network node and control and manage it through the global server, which effectively reduces the system establishment cost and system complexity, and can realize automatic monitoring of network node equipment. Discovery is added automatically.

图7是本发明另一种实施例的建立边界网关协议设备网络拓扑的装置的示意性结构框图。该装置700包括:判断单元710、第一处理单元720 和第二处理单元720。该判断单元710可以用于判断网络节点设备的配置信息中是否包含有边界网关协议BGP配置信息,其中,BGP配置信息包括网络节点设备所属的本地自治域系统BGPLocalAS信息;该第一处理单元720可以用于当包含有BGP配置信息时,根据BGP配置信息中的自治域系统BGPLocalAS信息创建BGP网络拓扑中的BGP设备的标记。该第二处理单元用于根据BGP配置信息中的对等体表信息BGPPeerTable创建 BGP网络拓扑中BGP设备与其他BGP设备的连接关系。Fig. 7 is a schematic structural block diagram of an apparatus for establishing a BGP device network topology according to another embodiment of the present invention. The apparatus 700 includes: a judging unit 710 , a first processing unit 720 and a second processing unit 720 . The judging unit 710 can be used to judge whether the configuration information of the network node device includes border gateway protocol BGP configuration information, wherein the BGP configuration information includes the information of the local autonomous domain system BGPLocalAS to which the network node device belongs; the first processing unit 720 can When BGP configuration information is included, it is used to create the BGP device label in the BGP network topology according to the autonomous domain system BGPLocalAS information in the BGP configuration information. The second processing unit is used to create connection relationships between the BGP device and other BGP devices in the BGP network topology according to the peer table information BGPPeerTable in the BGP configuration information.

在一些示例中,该装置700还可以包括信息获得单元,用于基于简单网络管理协议SNMP获取或接收网络节点设备的配置信息。在一些示例中,该信息获得单元还可以用于基于SNMP获取或接收存储在网络节点设备的管理信息库MIB的配置信息。In some examples, the apparatus 700 may further include an information obtaining unit, configured to obtain or receive configuration information of network node devices based on the Simple Network Management Protocol SNMP. In some examples, the information obtaining unit may also be configured to obtain or receive configuration information stored in a management information base (MIB) of the network node device based on SNMP.

在一些示例中,第一处理单元720还可以用于比较BGPLocalAS信息的数据值与预设范围以判断BGPLocalAS信息是否正常。在一些示例中,该第一处理单元还可以用于:当判定BGPLocalAS为正常时,判断包含 BGP设备的BGP网络拓扑是否已存在;若判定包含BGP设备的BGP网络拓扑不存在,则生成能够标识BGP设备的信息组,信息组包括BGP设备所属的BGPLocalAS信息和BGP设备的标记。在一些示例中,该对等体表信息包括对等体远程地址、对等体的标识符和本端地址。第二处理单元 730还可以用于:根据对等体远程地址和对等体的标识符判断包含BGP设备的对等体BGP设备的BGP网络拓扑是否已存在;若判定为包含BGP设备的对等体BGP设备的BGP网络拓扑是不存在,则根据对等体远程地址和本端地址,建立BGP设备和BGP设备的对等体BGP设备的连接关系。In some examples, the first processing unit 720 can also be used to compare the data value of the BGPLocalAS information with a preset range to determine whether the BGPLocalAS information is normal. In some examples, the first processing unit may also be used to: when determining that the BGPLocalAS is normal, determine whether a BGP network topology containing BGP devices already exists; if it is determined that a BGP network topology containing BGP devices does not exist, generate a The information group of the BGP device. The information group includes the BGPLocalAS information to which the BGP device belongs and the label of the BGP device. In some examples, the peer table information includes the remote address of the peer, the identifier of the peer, and the local address. The second processing unit 730 can also be used to: judge whether the BGP network topology of the peer BGP device containing the BGP device already exists according to the remote address of the peer and the identifier of the peer; If the BGP network topology of the BGP device does not exist, establish the connection relationship between the BGP device and the peer BGP device of the BGP device according to the remote address of the peer and the local address.

图8是本发明一种实施例的建立边界网关协议设备网络拓扑的装置的计算设备实现示意性结构框图。如图8所示结合上述的建立边界网关协议设备网络拓扑的方法和建立边界网关协议设备网络拓扑的装置的至少一部分可以由计算设备800包括输入设备801、输入端口802、处理器803、存储器804、输出端口805、以及输出设备806。其中,输入端口802、处理器803、存储器804、以及输出端口805通过总线810相互连接,输入设备801和输出设备806分别通过输入端口802和输出端口805与总线810 连接,进而与计算设备800的其他组件连接。需要说明的是,这里的输出接口和输入接口也可以用I/O接口表示。具体地,输入设备801接收来自外部的输入信息,并通过输入端口802将输入信息传送到处理器803;处理器803基于存储器804中存储的计算机可执行指令对输入信息进行处理以生成输出信息,将输出信息临时或者永久地存储在存储器804中,然后通过输出端口805将输出信息传送到输出设备806;输出设备806将输出信息输出到计算设备800的外部。Fig. 8 is a schematic structural block diagram of a computing device implementation of an apparatus for establishing a BGP device network topology according to an embodiment of the present invention. As shown in FIG. 8 , at least a part of the above-mentioned method for establishing a BGP network topology and the device for establishing a BGP network topology may be composed of a computing device 800 including an input device 801, an input port 802, a processor 803, and a memory 804. , output port 805 , and output device 806 . Wherein, the input port 802, the processor 803, the memory 804, and the output port 805 are connected to each other through the bus 810, and the input device 801 and the output device 806 are respectively connected to the bus 810 through the input port 802 and the output port 805, and then connected to the computing device 800 Other components are connected. It should be noted that the output interface and the input interface here may also be represented by an I/O interface. Specifically, the input device 801 receives input information from the outside, and transmits the input information to the processor 803 through the input port 802; the processor 803 processes the input information based on computer-executable instructions stored in the memory 804 to generate output information, The output information is temporarily or permanently stored in the memory 804 , and then the output information is transmitted to the output device 806 through the output port 805 ; the output device 806 outputs the output information to the outside of the computing device 800 .

上述存储器804包括用于数据或指令的大容量存储器。举例来说而非限制,存储器804可包括HDD、软盘驱动器、闪存、光盘、磁光盘、磁带或通用串行总线(USB)驱动器或者两个或更多个以上这些的组合。在合适的情况下,存储器804可包括可移除或不可移除(或固定)的介质。在合适的情况下,存储器804可在计算设备800的内部或外部。在特定实施例中,存储器804是非易失性固态存储器。在特定实施例中,存储器804包括只读存储器(ROM)。在合适的情况下,该ROM可以是掩模编程的ROM、可编程ROM(PROM)、可擦除PROM(EPROM)、电可擦除PROM(EEPROM)、电可改写ROM(EAROM)或闪存或者两个或更多个以上这些的组合。The aforementioned memory 804 includes mass storage for data or instructions. By way of example and not limitation, memory 804 may include a HDD, a floppy disk drive, flash memory, an optical disk, a magneto-optical disk, magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Storage 804 may include removable or non-removable (or fixed) media, where appropriate. Memory 804 may be internal or external to computing device 800, where appropriate. In a particular embodiment, memory 804 is a non-volatile solid-state memory. In particular embodiments, memory 804 includes read-only memory (ROM). Where appropriate, the ROM may be mask programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory or A combination of two or more of the above.

总线810包括硬件、软件或两者,将计算设备800的部件彼此耦接在一起。举例来说而非限制,总线810可包括加速图形端口(AGP)或其他图形总线、增强工业标准架构(EISA)总线、前端总线(FSB)、超传输(HT)互连、工业标准架构(ISA)总线、无限带宽互连、低引脚数(LPC)总线、存储器总线、微信道架构(MCA)总线、外围组件互连(PCI)总线、PCI-Express(PCI-X) 总线、串行高级技术附件(SATA)总线、视频电子标准协会局部(VLB)总线或其他合适的总线或者两个或更多个以上这些的组合。在合适的情况下,总线810可包括一个或多个总线810。尽管本发明实施例描述和示出了特定的总线,但本发明考虑任何合适的总线或互连。Bus 810 includes hardware, software, or both, and couples the components of computing device 800 to each other. By way of example and not limitation, bus 810 may include Accelerated Graphics Port (AGP) or other graphics bus, Enhanced Industry Standard Architecture (EISA) bus, Front Side Bus (FSB), HyperTransport (HT) interconnect, Industry Standard Architecture (ISA ) bus, InfiniBand Interconnect, Low Pin Count (LPC) bus, Memory Bus, Micro Channel Architecture (MCA) bus, Peripheral Component Interconnect (PCI) bus, PCI-Express (PCI-X) bus, Serial Advanced A Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable bus or a combination of two or more of these. Bus 810 may include one or more buses 810, where appropriate. Although embodiments of the invention describe and illustrate a particular bus, the invention contemplates any suitable bus or interconnect.

当通过图8所示的计算设备800实现结合图6描述的建立边界网关协议设备网络拓扑的装置时,输入设备801接收网络节点设备的配置信息,在特定实施例中,与输出设备相连的I/O接口可以包括硬件、软件或两者,提供用于在计算设备800与一个或多个I/O设备之间的通信的一个或多个接口。在合适的情况下,计算设备800可包括一个或多个这些I/O设备。一个或多个这些I/O设备可允许人和计算机系统800之间的通信。举例来说而非限制,I/O设备可包括键盘、小键盘、麦克风、监视器、鼠标、打印机、扫描仪、扬声器、静态照相机、触针、手写板、触摸屏、轨迹球、视频摄像机、另一合适的I/O设备或者两个或更多个以上这些的组合。I/O 设备可包括一个或多个传感器。本发明实施例考虑用于它们的任何合适的 I/O设备和任何合适的I/O接口。在合适的情况下,I/O接口可包括一个或多个装置或能够允许处理器803驱动一个或多个这些I/O设备的软件驱动器。在合适的情况下,I/O接口可包括一个或多个I/O接口。尽管本发明实施例描述和示出了特定的I/O接口,但本发明实施例考虑任何合适的I/O 接口。该处理器803基于存储器804中存储的计算机可执行指令,判断网络节点设备的配置信息中是否包含有边界网关协议BGP配置信息,其中, BGP配置信息包括网络节点设备所属的本地自治域系统BGPLocalAS信息;当包含有BGP配置信息时,根据BGP配置信息中的自治域系统 BGPLocalAS信息创建BGP网络拓扑中的BGP设备的标记。随后在需要时经由输出端口805和输出设备806将上述创建的网络拓扑输出。When the computing device 800 shown in FIG. 8 implements the device for establishing the BGP device network topology described in conjunction with FIG. 6, the input device 801 receives the configuration information of the network node device. In a specific embodiment, the I The I/O interface may include hardware, software, or both, providing one or more interfaces for communication between computing device 800 and one or more I/O devices. Computing device 800 may include one or more of these I/O devices, where appropriate. One or more of these I/O devices may allow communication between a person and computer system 800 . By way of example and not limitation, an I/O device may include a keyboard, keypad, microphone, monitor, mouse, printer, scanner, speakers, still camera, stylus, tablet, touch screen, trackball, video camera, other A suitable I/O device or a combination of two or more of these. An I/O device can include one or more sensors. Embodiments of the invention contemplate any suitable I/O devices and any suitable I/O interfaces for them. Where appropriate, an I/O interface may include one or more devices or software drivers capable of allowing processor 803 to drive one or more of these I/O devices. An I/O interface may include one or more I/O interfaces, where appropriate. Although embodiments of the invention describe and illustrate a particular I/O interface, embodiments of the invention contemplate any suitable I/O interface. The processor 803 judges whether the configuration information of the network node device includes BGP configuration information based on the computer-executable instructions stored in the memory 804, wherein the BGP configuration information includes the local autonomous domain system BGPLocalAS information to which the network node device belongs ; When BGP configuration information is included, create a BGP device label in the BGP network topology according to the autonomous domain system BGPLocalAS information in the BGP configuration information. The network topology created above is then output via the output port 805 and the output device 806 as needed.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本发明实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person familiar with the technical field can easily think of various equivalents within the technical scope disclosed in the present invention. Modifications or replacements shall all fall within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (14)

1. a kind of method for establishing Border Gateway Protocol device network topology, which is characterized in that including:
Judge in the configuration information of apparatus for network node whether to include Border Gateway Protocol (BGP) configuration information, wherein described BGP configuration informations include the local autonomy field system BGPLocalAS information belonging to the apparatus for network node;
When including BGP configuration informations, according to the autonomy field system BGPLocalAS information creatings in the BGP configuration informations The label of BGP equipment in bgp network topology.
2. the method for management Border Gateway Protocol equipment according to claim 1, which is characterized in that the BGP matches confidence Breath further includes the reciprocity body surface information BGPPeerTable for having correspondence with the BGPLocalAS information;
The method further includes:
It is created described in the bgp network topology according to the reciprocity body surface information BGPPeerTable in the BGP configuration informations The connection relation of BGP equipment and other BGP equipment.
3. the method for management Border Gateway Protocol equipment according to claim 1 or 2, which is characterized in that further include:It is based on Simple Network Management Protocol SNMP obtains or receives the configuration information of the apparatus for network node.
4. the method for management Border Gateway Protocol equipment according to claim 3, which is characterized in that described to be obtained based on SNMP The configuration information for taking or receiving the apparatus for network node further includes:It is obtained or is received based on SNMP and be stored in the network node The configuration information of the management information bank MIB of equipment.
5. the method for management Border Gateway Protocol equipment according to claim 1, which is characterized in that further include:Compare institute The data value of BGPLocalAS information is stated with preset range to judge whether the BGPLocalAS information is normal.
6. the method for management Border Gateway Protocol equipment according to claim 5, which is characterized in that further include:
When it is normal to judge the BGPLocalAS, judge whether the bgp network topology comprising the BGP equipment is existing;
If it is determined that the bgp network topology comprising the BGP equipment is not present, then the information that can be identified for that the BGP equipment is generated Group, described information group include the label of the BGPLocalAS information and the BGP equipment belonging to the BGP equipment.
7. the method for management Border Gateway Protocol equipment according to claim 2, which is characterized in that the equity body surface letter Breath includes peer-to-peer remote address, the identifier of peer-to-peer and local terminal address;
The method further includes:
The peer-to-peer BGP equipment for judging to include the BGP equipment according to the identifier of the peer-to-peer remote address and peer-to-peer Bgp network topology it is whether existing;
If it is determined that the bgp network topology for the peer-to-peer BGP equipment comprising the BGP equipment is not present, then according to the equity The connection relation of the peer-to-peer BGP equipment of the BGP equipment and the BGP equipment is established in body remote address and local terminal address.
8. a kind of device for establishing Border Gateway Protocol device network topology, which is characterized in that including:
Whether judging unit includes that Border Gateway Protocol (BGP) matches confidence in the configuration information for judging apparatus for network node Breath, wherein the BGP configuration informations include the local autonomy field system BGPLocalAS letters belonging to the apparatus for network node Breath;
First processing units, for when including BGP configuration informations, according to the autonomy field system in the BGP configuration informations The label of BGP equipment in BGPLocalAS information creating bgp network topologys.
9. the device of management Border Gateway Protocol equipment according to claim 8, which is characterized in that the BGP matches confidence Breath further includes the reciprocity body surface information BGPPeerTable for having correspondence with the BGPLocalAS information;
Further include second processing unit, for being created according to the reciprocity body surface information BGPPeerTable in the BGP configuration informations Build the connection relation of BGP equipment and other BGP equipment described in the bgp network topology.
10. the device of management Border Gateway Protocol equipment according to claim 8 or claim 9, which is characterized in that further include information Obtaining unit, the configuration information for obtaining or receiving the apparatus for network node based on Simple Network Management Protocol SNMP.
11. the device of management Border Gateway Protocol equipment according to claim 10, which is characterized in that described information obtains Unit is additionally operable to that the configuration information for the management information bank MIB for being stored in the apparatus for network node is obtained or received based on SNMP.
12. the device of management Border Gateway Protocol equipment according to claim 8, which is characterized in that first processing Unit is additionally operable to the data value of BGPLocalAS information described in comparison with preset range to judge that the BGPLocalAS information is It is no normal.
13. the device of management Border Gateway Protocol equipment according to claim 12, which is characterized in that first processing Unit is additionally operable to:
When it is normal to judge the BGPLocalAS, judge whether the bgp network topology comprising the BGP equipment is existing;
If it is determined that the bgp network topology comprising the BGP equipment is not present, then the information that can be identified for that the BGP equipment is generated Group, described information group include the label of the BGPLocalAS information and the BGP equipment belonging to the BGP equipment.
14. the device of management Border Gateway Protocol equipment according to claim 9, which is characterized in that the equity body surface Information includes peer-to-peer remote address, the identifier of peer-to-peer and local terminal address;
The second processing unit is additionally operable to:
The peer-to-peer BGP equipment for judging to include the BGP equipment according to the identifier of the peer-to-peer remote address and peer-to-peer Bgp network topology it is whether existing;
If it is determined that the bgp network topology for the peer-to-peer BGP equipment comprising the BGP equipment is not present, then according to the equity The connection relation of the peer-to-peer BGP equipment of the BGP equipment and the BGP equipment is established in body remote address and local terminal address.
CN201710075453.4A 2017-02-10 2017-02-10 Method and device for establishing border gateway protocol device network topology Pending CN108418701A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710075453.4A CN108418701A (en) 2017-02-10 2017-02-10 Method and device for establishing border gateway protocol device network topology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710075453.4A CN108418701A (en) 2017-02-10 2017-02-10 Method and device for establishing border gateway protocol device network topology

Publications (1)

Publication Number Publication Date
CN108418701A true CN108418701A (en) 2018-08-17

Family

ID=63125265

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710075453.4A Pending CN108418701A (en) 2017-02-10 2017-02-10 Method and device for establishing border gateway protocol device network topology

Country Status (1)

Country Link
CN (1) CN108418701A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112714066A (en) * 2019-10-24 2021-04-27 北京华为数字技术有限公司 BGP peer establishing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1756189B (en) * 2004-09-30 2010-04-14 北京航空航天大学 SNMP-based IP Network Topology Discovery Method
CN101795227A (en) * 2010-01-25 2010-08-04 杭州华三通信技术有限公司 Method and system for rapidly finding router
CN105337939A (en) * 2014-07-31 2016-02-17 华为技术有限公司 BGP logical topology generation method and device
US20160191329A1 (en) * 2012-12-20 2016-06-30 Dell Products, L.P. Systems and methods for topology discovery and application in a border gateway protocol based data center
CN105812168A (en) * 2014-12-31 2016-07-27 北京神州泰岳软件股份有限公司 Method and device for plotting network topological diagram
CN107104809A (en) * 2016-02-19 2017-08-29 北京神州泰岳软件股份有限公司 A kind of method and system for generating network topological diagram

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1756189B (en) * 2004-09-30 2010-04-14 北京航空航天大学 SNMP-based IP Network Topology Discovery Method
CN101795227A (en) * 2010-01-25 2010-08-04 杭州华三通信技术有限公司 Method and system for rapidly finding router
US20160191329A1 (en) * 2012-12-20 2016-06-30 Dell Products, L.P. Systems and methods for topology discovery and application in a border gateway protocol based data center
CN105337939A (en) * 2014-07-31 2016-02-17 华为技术有限公司 BGP logical topology generation method and device
CN105812168A (en) * 2014-12-31 2016-07-27 北京神州泰岳软件股份有限公司 Method and device for plotting network topological diagram
CN107104809A (en) * 2016-02-19 2017-08-29 北京神州泰岳软件股份有限公司 A kind of method and system for generating network topological diagram

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112714066A (en) * 2019-10-24 2021-04-27 北京华为数字技术有限公司 BGP peer establishing method and device
CN112714066B (en) * 2019-10-24 2024-06-04 北京华为数字技术有限公司 A method and device for establishing a BGP peer

Similar Documents

Publication Publication Date Title
US11876883B2 (en) Packet processing method, network node, and system
JP7108674B2 (en) Failure root cause determination method and device, and computer storage medium
CN107431657B (en) Method and apparatus for data packet marking for flow analysis across network domains
US10263808B2 (en) Deployment of virtual extensible local area network
US9391886B2 (en) Identification of the paths taken through a network of interconnected devices
JP7416919B2 (en) Data processing methods and devices and computer storage media
CN106992891B (en) A method and system for detecting abnormality in routing configuration of OSPF network
EP3677000A1 (en) Method and system for tracing packets in software defined networks
CN106921579B (en) Communication method and device based on Service Function Chain (SFC)
JP6193473B2 (en) Computer-implemented method, computer program product and computer
US9300540B2 (en) Multicast network diagnostics
CN105830406A (en) Method, device, and system for supporting flexible lookup keywords in software-defined networking
CN1663176A (en) Identify network routers and paths
CN103051477A (en) Network topology automatic acquisition method and system, and network management system
WO2016019645A1 (en) Method and system for turning on a data communication network, and storage medium
WO2017000802A1 (en) Service fault location method and device
US20130124721A1 (en) Detected IP Link and Connectivity Inference
CN108418754A (en) Method and device for establishing network topology
US20130042020A1 (en) Quick Network Path Discovery
US20190215191A1 (en) Deployment Of Virtual Extensible Local Area Network
EP4480153A1 (en) Underlay path discovery for a wide area network
CN110912853A (en) Method, device and system for anti-phishing attack inspection
CN108418701A (en) Method and device for establishing border gateway protocol device network topology
CN105634944A (en) Routing loop determination method and equipment
JP2010124512A (en) Network information presentation apparatus and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180817