WO2016023290A1 - Network protocol configuration method and device - Google Patents

Network protocol configuration method and device Download PDF

Info

Publication number
WO2016023290A1
WO2016023290A1 PCT/CN2014/091434 CN2014091434W WO2016023290A1 WO 2016023290 A1 WO2016023290 A1 WO 2016023290A1 CN 2014091434 W CN2014091434 W CN 2014091434W WO 2016023290 A1 WO2016023290 A1 WO 2016023290A1
Authority
WO
WIPO (PCT)
Prior art keywords
area
level
routing device
network protocol
routing
Prior art date
Application number
PCT/CN2014/091434
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 WO2016023290A1 publication Critical patent/WO2016023290A1/en

Links

Images

Definitions

  • IS-IS Intermediate System to Intermediate System Routing Protocol
  • the Intermediate System to Intermediate System Routing Protocol (IS-IS) protocol is a dynamic routing protocol and is one of the dynamic routing protocols commonly used by telecom operators. It is especially suitable for large networks. But for a large network, such as a network with 1000 routing devices, each device writes an IS-IS protocol configuration, which is heavy and error-prone.
  • the embodiment of the invention provides a method and a device for configuring a network protocol to solve at least the above problems.
  • determining, according to the initial area number, the area number corresponding to the other Level-1 area devices in the regional routing device set according to the preset rule including: sequentially: initializing the initial area number
  • the area number obtained by adding a predetermined value is respectively used as the area number of the above-mentioned other area routing device, wherein the predetermined value may be selected to be 1 in a preferred embodiment of the embodiment of the present invention.
  • Step 4 The user adjusts other attribute configuration templates of IS-IS according to different areas, and each area provides a default template to reduce the workload input by the user.
  • the user is required to select the Level-2 area device on the topology map, and input the Level-2 area number and the Level-1 start area number, and automatically calculate the area of the device for the user according to the topology connection relationship of the device.
  • Planning, and combining the device connection relationship and other attribute configuration templates to automatically calculate the IS-IS configuration of each device which is more intelligent than the prior art, requires less user input manually, and the network scale is larger, the technology of the present application
  • the advantage of the solution is more obvious, and the whole operation process of the present application is simple and natural, and conforms to the user's network planning habits.
  • the configuration module 52 includes:
  • the embodiments of the present invention achieve the following beneficial effects: solving the problem of large workload and error-prone caused by manual input of a large number of parameters in the process of configuring a network protocol in the related art, and requiring the user to manually input content. Very few, greatly less the workload of managers.

Landscapes

  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Provided are a network protocol configuration method and device. The configuration method comprises: acquiring a topological graph of a network to which a designated apparatus belongs; and configuring a designated parameter according to the topological graph, wherein the designated parameter is a parameter of a network protocol used by the designated apparatus. By means of the technical solution provided in the present invention, the problems in the related art that the workload is heavy and errors are easy to occur due to the fact that a large number of parameters need to be manually input in the process of configuring a network protocol are solved, and less content is required to be manually input by a user, thereby greatly reducing the workload of a management staff.

Description

网络协议的配置方法及装置Network protocol configuration method and device 技术领域Technical field
本发明涉及通信领域,更具体地说,涉及网络协议的配置方法及装置。The present invention relates to the field of communications, and more particularly to a method and apparatus for configuring a network protocol.
背景技术Background technique
中间系统到中间系统的路由选择协议(Intermediate System to Intermediate System routing protocol,简称为IS-IS)协议是动态路由协议,是电信运营商普遍采用的动态路由协议之一,特别适合大型网络。但对于一个大型网络,比如有1000台路由设备的网络,每台设备写一次IS-IS协议配置,工作量很大且容易出错。The Intermediate System to Intermediate System Routing Protocol (IS-IS) protocol is a dynamic routing protocol and is one of the dynamic routing protocols commonly used by telecom operators. It is especially suitable for large networks. But for a large network, such as a network with 1000 routing devices, each device writes an IS-IS protocol configuration, which is heavy and error-prone.
现有技术中是写一个基础配置模板,再手工修改每台设备IS-IS协议的System Id、区域、层次、接口等核心参数。虽然采用了配置模板技术,减少了一定的工作量,但是依旧要人工修改System Id、区域、层次、接口这些核心参数,工作量大,容易出错。In the prior art, a basic configuration template is written, and core parameters such as System Id, region, hierarchy, and interface of each device IS-IS protocol are manually modified. Although the configuration template technology is adopted, the workload is reduced, but the core parameters such as System Id, region, hierarchy, and interface are still manually modified, and the workload is large and error-prone.
针对相关技术中在配置网络协议的过程中需要人工输入大量参数而导致的工作量大且易出错的问题,目前尚未提出有效的解决方案。In view of the large workload and error-prone problem caused by the manual input of a large number of parameters in the process of configuring a network protocol in the related art, an effective solution has not been proposed yet.
发明内容Summary of the invention
本发明实施例提供了一种网络协议的配置方法及装置,以至少解决上述问题。The embodiment of the invention provides a method and a device for configuring a network protocol to solve at least the above problems.
根据本发明的一个实施例,提供了一种网络协议的配置方法,包括:获取指定设备所属网络的拓扑图;根据所述拓扑图对指定参数进行配置,其中,该指定参数为所述指定设备所应用网络协议的参数。According to an embodiment of the present invention, a method for configuring a network protocol is provided, including: acquiring a topology map of a network to which a specified device belongs; configuring a specified parameter according to the topology map, where the specified parameter is the specified device The parameters of the applied network protocol.
优选地,所述网络协议,包括:中间系统到中间系统的路由选择协议IS-IS。Preferably, the network protocol comprises: an intermediate system to an intermediate system routing protocol IS-IS.
优选地,根据所述拓扑图对指定参数进行配置包括:基于所述拓扑图根据用户选择确定所述IS-IS的层2 Level-2区域路由设备;获取所述Level-2区域路由设备的区域号和与所述Level-2区域路由设备相连的层1 Level-1区域路由设备的起始区域号;根据所述起始区域号和所述拓扑图确定与所述Level-2区域路由设备相连的所述Level-1的所有区域路由设备的区域号。 Preferably, configuring the specified parameter according to the topology map includes: determining, according to the topology, the Layer 2 Level-2 area routing device of the IS-IS according to the user selection; and acquiring the area of the Level-2 area routing device. And a start area number of the level-1 level-1 area routing device connected to the level-2 area routing device; and determining, according to the start area number and the topology map, the level-2 area routing device The area number of all the regional routing devices of the Level-1.
优选地,根据所述起始区域号和所述拓扑图确定与所述Level-2区域路由设备相连的所述Level-1的所有区域路由设备的区域号包括:根据所述拓扑图确定与所述Level-2区域路由设备相连的所有Level-1的区域路由设备集合;从所述区域路由设备集合中选取一台区域路由设备,并将所述初始区域号作为选取的区域路由设备的区域号;根据所述初始区域号按照预设规则确定所述区域路由设备集合中其他Level-1的区域路由设备所对应区域号,其中,所述其它区域路由设备与选取的Level-1的区域路由设备构成所述区域路由设备集合。Preferably, determining, according to the starting area number and the topology, an area number of all area routing devices of the Level-1 connected to the Level-2 area routing device, including: determining, according to the topology map All Level-1 regional routing device sets connected to the Level-2 area routing device; selecting one regional routing device from the regional routing device set, and using the initial area number as the area code of the selected regional routing device Determining, according to the initial area number, the area number corresponding to the other Level-1 area routing device in the regional routing device set according to the preset rule, where the other area routing device and the selected Level-1 area routing device Forming the set of regional routing devices.
优选地,根据所述初始区域号按照预设规则确定所述区域路由设备集合中其他Level-1的区域设备所对应区域号,包括:将所述初始区域号依次加上一个预定值后得到的区域号分别作为所述其他区域路由设备的区域号。Preferably, determining, according to the initial area number, the area number corresponding to the other Level-1 area devices in the regional routing device set according to the preset rule, including: adding the initial area number to a predetermined value in turn The area number is used as the area number of the routing device of the other area.
优选地,通过配置模板对所述网络协议中除所述指定参数之外的其他参数进行配置,其中,所述其他参数包括:对于同一区域中的不同设备,所述网络协议中具备相同参数值的参数。Preferably, configuring, by using a configuration template, other parameters in the network protocol other than the specified parameter, where the other parameters include: the same parameter value in the network protocol for different devices in the same area Parameters.
优选地,其中,所述指定参数包括以下至少之一:区域号、接口参数。Preferably, wherein the specified parameter comprises at least one of the following: an area number, an interface parameter.
根据本发明的另一个实施例,还提供了一种网络协议的配置装置,包括:获取模块,设置为获取指定设备所属网络的拓扑图;配置模块,设置为根据所述拓扑图对指定参数进行配置,其中,该指定参数为所述指定设备所应用网络协议的参数。According to another embodiment of the present invention, a device for configuring a network protocol is further provided, including: an obtaining module, configured to acquire a topology map of a network to which the specified device belongs; and a configuration module configured to perform the specified parameter according to the topology map. The configuration, wherein the specified parameter is a parameter of a network protocol applied by the specified device.
优选地,所述配置模块设置为在所述网络协议,包括:中间系统到中间系统的路由选择协议IS-IS时,根据所述拓扑图对指定参数进行配置。Preferably, the configuration module is configured to configure the specified parameters according to the topology map when the network protocol includes: an intermediate system to an intermediate system routing protocol IS-IS.
优选地,所述配置模块包括:第一确定单元,设置为基于所述拓扑图根据用户选择确定所述IS-IS的层2 Level-2区域路由设备;获取单元,设置为获取所述Level-2区域路由设备的区域号和与所述Level-2区域路由设备相连的层1 Level-1区域路由设备的起始区域号;第二确定单元,设置为根据所述起始区域号和所述拓扑图确定与所述Level-2区域路由设备相连的所述Level-1的所有区域路由设备的区域号。Preferably, the configuration module includes: a first determining unit, configured to determine a Layer 2 Level-2 area routing device of the IS-IS according to the user selection based on the topology map; and an acquiring unit configured to acquire the Level- The area number of the area routing device and the start area number of the layer-1 Level-1 area routing device connected to the level-2 area routing device; the second determining unit is set according to the starting area number and the The topology map determines an area number of all area routing devices of the Level-1 that are connected to the Level-2 area routing device.
通过本发明实施例,采用根据网络的拓扑图对网络协议的指定参数进行配置的技术方案,解决了相关技术中在配置网络协议的过程中需要人工输入大量参数而导致的工作量大且易出错的问题,要求用户手工输入的内容极少,极大的较少了管理人员的工作量。 According to the embodiment of the present invention, the technical solution for configuring the specified parameters of the network protocol according to the topology map of the network is adopted, which solves the problem of large workload and error caused by manual input of a large number of parameters in the process of configuring the network protocol in the related art. The problem requires that the user manually input very little content, which greatly reduces the workload of the manager.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1为根据本发明实施例的网络协议的配置的流程图;1 is a flow chart showing a configuration of a network protocol according to an embodiment of the present invention;
图2为根据本发明优选实施例的网络协议配置的系统架构图;2 is a system architecture diagram of a network protocol configuration in accordance with a preferred embodiment of the present invention;
图3为根据本发明优选实施例的网络协议配置的示意图;3 is a schematic diagram of a network protocol configuration in accordance with a preferred embodiment of the present invention;
图4为根据本发明优选实施例的网络协议配置的另一示意图;4 is another schematic diagram of a network protocol configuration in accordance with a preferred embodiment of the present invention;
图5为根据本发明实施例的网路协议的配置装置的结构框图;FIG. 5 is a structural block diagram of a device for configuring a network protocol according to an embodiment of the present invention; FIG.
图6为根据本发明实施例的网路协议的配置装置的再一结构框图;6 is a block diagram showing still another structure of a network protocol configuration apparatus according to an embodiment of the present invention;
图7为根据本发明实施例的网络协议配置流程的另一示意图。FIG. 7 is another schematic diagram of a network protocol configuration procedure according to an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. 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.
本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。Other features and advantages of the invention will be set forth in the description which follows, The objectives and other advantages of the invention may be realized and obtained by means of the structure particularly pointed in the appended claims.
本发明实施例提供了一种网络协议的配置方法,图1为根据本发明实施例的网络协议的配置的流程图,如图1所示,该方法包括如下步骤:An embodiment of the present invention provides a method for configuring a network protocol. FIG. 1 is a flowchart of a configuration of a network protocol according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps:
步骤S102:获取指定设备所属网络的拓扑图;Step S102: Acquire a topology map of a network to which the specified device belongs.
步骤S104:根据上述拓扑图对指定参数进行配置,其中,该指定参数为上述指定设备所应用网络协议的参数。Step S104: Configure the specified parameter according to the foregoing topology map, where the specified parameter is a parameter of a network protocol applied by the specified device.
通过上述各个步骤,根据待配置网络协议的设备所属网络的拓扑图对网络协议的指定参数进行配置的技术方案,解决了相关技术中在配置网络协议的过程中需要人工 输入大量参数而导致的工作量大且易出错的问题,要求用户手工输入的内容极少,极大的较少了管理人员的工作量。Through the above various steps, the technical solution for configuring the specified parameters of the network protocol according to the topology map of the network to which the device to be configured belongs is solved, and the related art needs manual in the process of configuring the network protocol. The problem of large workload and error-prone caused by inputting a large number of parameters requires that the user manually input very little content, which greatly reduces the workload of the manager.
在步骤S104中,上述网络协议,包括:IS-IS,但不限于此。In step S104, the above network protocol includes: IS-IS, but is not limited thereto.
对于IS-IS协议来说,不同设备IS-IS协议差别如下:For the IS-IS protocol, the differences between the IS-IS protocols of different devices are as follows:
1)System Id不同,System Id(格式xxxx.xxxx.xxxx,比如1234.5678.9abc)在IS-IS协议里唯一标识一台路由设备,设备的Mac地址可以转化为System Id,比如媒体接入控制(Media Access Control,简称为MAC)00-25-11-49-2B-A4转化为System Id0025.1149.2BA4,本申请随机选取设备的一个Mac转化为System Id;1) Unlike System Id, System Id (format xxxx.xxxx.xxxx, such as 1234.5678.9abc) uniquely identifies a routing device in the IS-IS protocol, and the device's Mac address can be converted to System Id, such as media access control ( Media Access Control, referred to as MAC) 00-25-11-49-2B-A4 is converted to System Id0025.1149.2BA4, this application randomly selects a Mac of a device to be converted into System Id;
2)区域和层次不同,为了支持大规模的路由网络,IS-IS在路由域内采用两级的分层结构:Level-1和Level-2。一个大的路由域通常被分成多个区域(Areas)。区域内的路由通过Level-1路由器管理,区域间的路由通过Level-2路由器管理,本申请让用户选择Level-2区域设备,Level-2区域设备很少,又是在拓扑上直观的选择,非常简单,然后根据本方案提供的算法自动为用户计算出各个设备的区域和层次。2) Different regions and levels. In order to support large-scale routing networks, IS-IS adopts two levels of hierarchical structure in the routing domain: Level-1 and Level-2. A large routing domain is usually divided into multiple areas (Areas). The routes in the area are managed by Level-1 routers. The routes between the areas are managed by Level-2 routers. This application allows users to select Level-2 area devices. The Level-2 area devices are few and the topology is intuitive. Very simple, and then automatically calculate the area and level of each device for the user according to the algorithm provided by this solution.
3)接口不同,设备要在彼此连接的IP接口上启用IS-IS协议,不同设备的接口是不同的,本方案根据拓扑连接关系自动找到应该在哪个IP接口上启动IS-IS协议。3) The interface is different. The device must enable the IS-IS protocol on the IP interfaces connected to each other. The interfaces of the different devices are different. The solution automatically finds which IP interface to start the IS-IS protocol based on the topology connection.
4)其他属性不同,IS-IS协议的其他属性在一个区域内基本一致,本方案按照区域采用配置模板设置其他属性。4) Other attributes are different. The other attributes of the IS-IS protocol are basically the same in an area. This solution sets other attributes according to the area using the configuration template.
在具体实施过程中,步骤S104可以通过如下技术方案实现:基于上述拓扑图根据用户选择确定上述IS-IS的层2 Level-2区域路由设备;获取上述Level-2区域路由设备的区域号和与上述Level-2区域路由设备相连的层1 Level-1区域路由设备的起始区域号;根据上述起始区域号和上述拓扑图确定与上述Level-2区域路由设备相连的上述Level-1的所有区域路由设备的区域号。In a specific implementation, the step S104 may be implemented by: determining, according to the foregoing topology, the layer 2 Level-2 area routing device of the IS-IS according to the user topology; obtaining the area number and the area of the Level-2 area routing device. The starting area number of the Level-1 area-1 routing device connected to the Level-2 area routing device; determining the foregoing Level-1 connected to the Level-2 area routing device according to the foregoing starting area number and the foregoing topology map. The area number of the area routing device.
在本发明实施例的一个可选实施例中,上述步骤:根据上述起始区域号和上述拓扑图确定与上述Level-2区域路由设备相连的上述Level-1的所有区域路由设备的区域号可以包括:根据上述拓扑图确定与上述Level-2区域路由设备相连的所有Level-1的区域路由设备集合;从上述区域路由设备集合中选取一台区域路由设备,并将上述初始区域号作为选取的区域路由设备的区域号;根据上述初始区域号按照预设规则确定上述区域路由设备集合中其他Level-1的区域路由设备所对应区域号,其中,上述其它区域路由设备与选取的Level-1的区域路由设备构成上述区域路由设备集合。 In an optional embodiment of the present invention, the step of determining, according to the foregoing starting area number and the foregoing topology, the area number of all area routing devices of the Level-1 connected to the Level-2 area routing device may be The method includes: determining, according to the foregoing topology map, all Level-1 regional routing device sets connected to the Level-2 area routing device; selecting an area routing device from the regional routing device set, and using the initial area number as the selected The area number of the regional routing device is determined according to the initial area number, and the area number corresponding to the other Level-1 area routing device in the regional routing device set is determined according to the preset rule, wherein the other area routing device and the selected Level-1 The area routing device constitutes the above-mentioned regional routing device set.
在本发明实施例的另一个可选实施例中,根据上述初始区域号按照预设规则确定上述区域路由设备集合中其他Level-1的区域设备所对应区域号,包括:将上述初始区域号依次加上一个预定值后得到的区域号分别作为上述其他区域路由设备的区域号,其中,预定值在本发明实施例的一个优选实施例中可以选择为1。In another optional embodiment of the present invention, determining, according to the initial area number, the area number corresponding to the other Level-1 area devices in the regional routing device set according to the preset rule, including: sequentially: initializing the initial area number The area number obtained by adding a predetermined value is respectively used as the area number of the above-mentioned other area routing device, wherein the predetermined value may be selected to be 1 in a preferred embodiment of the embodiment of the present invention.
对于网络协议来说,其包括多个参数,为了使得管理人员输入的参数的工作量更少,在本发明实施例中,对于网络协议中同一网络中都相同的参数,还可以通过以下技术方案实现:通过配置模板对上述网络协议中除上述指定参数之外的其他参数进行配置,其中,上述其他参数包括:对于同一网络中的不同设备,上述网络协议中具备相同参数值的参数,可选地,上述其他参数可以包括但不限于:完全序号PDU(Complete Sequence Number PDU,简称为CSNP)的发送间隔、部分序号PDU(Partial Sequence Number PDU,简称为PSNP)的发送间隔,其中,PDU为Protocol Data Unit协议处理单元的简称。For the network protocol, it includes multiple parameters, and in order to make the workload of the parameters input by the administrator less, in the embodiment of the present invention, the following technical solutions can also be adopted for the same parameters in the same network in the network protocol. Implementation: configuring, by using a configuration template, parameters other than the foregoing specified parameters in the foregoing network protocol, where the foregoing other parameters include: parameters of the network protocol having the same parameter value for different devices in the same network, optionally The foregoing other parameters may include, but are not limited to, a transmission interval of a Complete Sequence Number PDU (CSNP), and a transmission interval of a Partial Sequence Number PDU (PSNP), where the PDU is a Protocol. Abbreviation for Data Unit protocol processing unit.
在本发明实施例,上述指定参数包括以下至少之一:区域号、接口参数。In the embodiment of the present invention, the specified parameter includes at least one of the following: an area number and an interface parameter.
为了更好的理解根据拓扑图对网络协议的指定参数的配置过程,以下结合优选实施例进行说明,但不限定本发明。In order to better understand the configuration process of the specified parameters of the network protocol according to the topology diagram, the following description is combined with the preferred embodiment, but the invention is not limited.
步骤一:用户在拓扑图上选择Level-2设备。Step 1: The user selects a Level-2 device on the topology map.
步骤二:弹出对话框提示用户输入Level-2设备的区域号,Level-1设备的起始区域号,本方案在Level-1起始区域号的基础上依次加1表示其余Level-1区域。Step 2: The pop-up dialog box prompts the user to enter the area number of the Level-2 device and the start area number of the Level-1 device. This scheme adds 1 to the Level-1 start area number to indicate the remaining Level-1 areas.
步骤三:本申请结合用户选择的Level-2设备和设备之间的拓扑连接关系,自动计算并显示IS-IS区域划分方案。当用户鼠标移动到某个区域时,自动显示这个区域包含的设备。Step 3: This application automatically calculates and displays the IS-IS area division scheme based on the topology connection relationship between the Level-2 device and the device selected by the user. When the user mouse moves to an area, the device contained in this area is automatically displayed.
步骤四:用户根据不同区域调整IS-IS的其他属性配置模板,每个区域提供一个默认的模板减少用户输入的工作量。Step 4: The user adjusts other attribute configuration templates of IS-IS according to different areas, and each area provides a default template to reduce the workload input by the user.
步骤五:根据步骤三计算出的区域划分方案,设备的Mac地址,设备之间连接的接口和不同区域的其他属性配置模板,计算出每台设备的IS-IS属性配置。Step 5: Calculate the IS-IS attribute configuration of each device according to the area division scheme calculated in step 3, the Mac address of the device, the interface connected between the devices, and other attribute configuration templates of different areas.
图2为根据本发明优选实施例的网络协议配置的系统架构图,以图2为例(An,Bn,Cn,Dn,En代表路由设备),假设用户选择A1,A2,A3为Level-2设备,然后用户输入的Level-2区域为01,Level-1起始区域为02,本方案计算并显示出图3,当用户鼠标移动到区域03时,本申请显示区域03的设备,如图4。 2 is a system architecture diagram of a network protocol configuration according to a preferred embodiment of the present invention. FIG. 2 is an example (An, Bn, Cn, Dn, En represents a routing device), and it is assumed that the user selects A1, A2, and A3 as Level-2. The device, then the Level-2 area entered by the user is 01, and the Level-1 starting area is 02. This scheme calculates and displays Figure 3. When the user mouse moves to the area 03, the device of the area 03 is displayed in the present application. 4.
综上所述,本发明上述实施例可以总结为利用配置模板和拓扑图,仅让用户在拓扑图上选择level-2区域路由设备,然后通过本方案的算法自动为用户计算出全部设备的IS-IS配置,并在拓扑图上直观的显示出自动生成的IS-IS配置规划,而对于拓扑图,其是一种最基本的网络设备连接关系显示技术,基本所有的网络管理系统都支持拓扑图这种基本技术。In summary, the foregoing embodiments of the present invention can be summarized as using a configuration template and a topology map, and only let the user select a level-2 regional routing device on the topology map, and then automatically calculate the IS of all devices by using the algorithm of the solution. -IS configuration, which automatically displays the automatically generated IS-IS configuration plan on the topology map. For the topology map, it is the most basic network device connection relationship display technology. Basically all network management systems support the topology. Figure this basic technique.
在本发明实施例中,仅要求用户在拓扑图上选择Level-2区域设备,输入Level-2区域号和Level-1起始区域号,根据设备的拓扑连接关系自动为用户计算出设备的区域规划,再结合设备连接关系和其他属性配置模板自动计算出每台设备的IS-IS配置,与现有技术相比更加智能,要求用户手工输入的内容极少,网络规模越大,本申请技术方案的优势越明显,并且,本申请整个操作过程简单自然,符合用户的网络规划习惯。In the embodiment of the present invention, the user is required to select the Level-2 area device on the topology map, and input the Level-2 area number and the Level-1 start area number, and automatically calculate the area of the device for the user according to the topology connection relationship of the device. Planning, and combining the device connection relationship and other attribute configuration templates to automatically calculate the IS-IS configuration of each device, which is more intelligent than the prior art, requires less user input manually, and the network scale is larger, the technology of the present application The advantage of the solution is more obvious, and the whole operation process of the present application is simple and natural, and conforms to the user's network planning habits.
在本实施例中还提供了一种网路协议的配置装置,用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述,下面对该装置中涉及到的模块进行说明。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。图5为根据本发明实施例的网路协议的配置装置的结构框图。如图5所示,该装置包括:In this embodiment, a device for configuring a network protocol is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments. The descriptions of the modules involved in the device are described below. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated. FIG. 5 is a structural block diagram of an apparatus for configuring a network protocol according to an embodiment of the present invention. As shown in Figure 5, the device includes:
获取模块50,设置为获取指定设备所属网络的拓扑图;The obtaining module 50 is configured to acquire a topology map of a network to which the specified device belongs;
配置模块52,与获取模块50连接,设置为根据上述拓扑图对指定参数进行配置,其中,该指定参数为上述指定设备所应用网络协议的参数。The configuration module 52 is connected to the obtaining module 50 and configured to configure the specified parameter according to the foregoing topology map, wherein the specified parameter is a parameter of a network protocol applied by the specified device.
其中,上述网络协议包括但不限于:IS-IS协议。The foregoing network protocol includes but is not limited to: an IS-IS protocol.
通过上述各个模块的综合作用,根据待配置网络协议的设备所属网络的拓扑图对网络协议的指定参数进行配置的技术方案,解决了相关技术中在配置网络协议的过程中需要人工输入大量参数而导致的工作量大且易出错的问题,要求用户手工输入的内容极少,极大的较少了管理人员的工作量。The technical solution for configuring the specified parameters of the network protocol according to the topology diagram of the network to which the device to be configured belongs is solved by the comprehensive function of the foregoing modules, and the related technologies need to manually input a large number of parameters in the process of configuring the network protocol. The resulting large workload and error-prone problems require very little manual input by the user, which greatly reduces the workload of the manager.
本发明实施例对上述技术方案的进一步改进在于,如图6所示,配置模块52包括:A further improvement of the foregoing technical solution in the embodiment of the present invention is that, as shown in FIG. 6, the configuration module 52 includes:
第一确定单元520,设置为基于上述拓扑图根据用户选择确定上述IS-IS的层2 Level-2区域路由设备; The first determining unit 520 is configured to determine the layer 2 Level-2 area routing device of the IS-IS according to the user selection based on the foregoing topology map;
获取单元522,与第一确定单元520连接,设置为获取上述Level-2区域路由设备的区域号和与上述Level-2区域路由设备相连的层1 Level-1区域路由设备的起始区域号;The obtaining unit 522 is connected to the first determining unit 520, and is configured to obtain the area number of the Level-2 area routing device and the starting area number of the layer 1 Level-1 area routing device connected to the Level-2 area routing device;
第二确定单元524,与获取单元522连接,设置为根据所述起始区域号和所述拓扑图确定与所述Level-2区域路由设备相连的所述Level-1的所有区域路由设备的区域号。The second determining unit 524 is connected to the obtaining unit 522, and is configured to determine, according to the starting area number and the topology map, an area of all area routing devices of the Level-1 connected to the Level-2 area routing device. number.
为了更好的理解上述实施例中网络协议的配置方法和装置的工作流程图,以下结合一个选有实施例进行说明。In order to better understand the configuration method of the network protocol in the above embodiment and the working flow chart of the device, the following describes an optional embodiment.
需要说明的是,本发明实施例提到的配置模板采用属性表形式,即属性+属性数值构成的键值对组合,如下表一所示(即IS-IS在认证请求(Request For Comment,简称为RFC)中的规定):It should be noted that the configuration template mentioned in the embodiment of the present invention adopts an attribute table form, that is, a combination of key value pairs composed of attribute + attribute values, as shown in the following Table 1 (ie, IS-IS in the request request (Request For Comment, short for short) As specified in RFC):
表一Table I
属性Attributes value
Instance.priorityInstance.priority 255255
Instance.metricTypeInstance.metricType narrowNarrow
Instance.te.enableInstance.te.enable trueTrue
Instance.fillHelloModeInstance.fillHelloMode multi_pointMulti_point
... ….....
用户选择Level-2设备,并输入Level-2设备区域号Level2Num,Level-1设备起始区域号Level1BeginNum后,计算IS-IS区域规划的算法如下:After you select a Level-2 device and enter the Level-2 device area Level2Num and Level-1 device start area number Level1BeginNum, the algorithm for calculating IS-IS area planning is as follows:
步骤110:创建用户选择的Level-2设备集合ArrayL2,并用用户选择的Level-2设备初始化ArrayL2,创建变量ArrayL2Length表示集合ArrayL2的设备总数,创建Level-1区域设备集合列表ListL1,ListL1[n]表示第n个Level-1区域设备集合,创建变ListL1_Index=-1,创建变量ArrayL2_Index=0;Step 110: Create a Level-2 device set ArrayL2 selected by the user, and initialize ArrayL2 with the Level-2 device selected by the user, create a variable ArrayL2Length to represent the total number of devices in the set ArrayL2, and create a Level-1 regional device set list ListL1, and ListL1[n] represents The nth Level-1 area device set, create a variable ListL1_Index=-1, create a variable ArrayL2_Index=0;
步骤210:顺序从集合ArrayL2中选择一台设备,设置这台设备的区域号为Level2Num,用Y表示这台设备。循环执行本步骤ArrayL2Length次,本算法结束。Step 210: Select a device from the set ArrayL2 in sequence, set the area number of the device to Level2Num, and use Y to represent the device. This step ArrayL2Length is executed cyclically, and the algorithm ends.
步骤310:从与设备Y直连的设备中选取一台设备,用X表示被选择的设备。本步骤执行次数等于与Y直连的设备个数,超过执行次数则返回步骤210;Step 310: Select one device from the device directly connected to the device Y, and use X to indicate the selected device. The number of executions of this step is equal to the number of devices directly connected to Y, and the number of executions is returned to step 210;
步骤410:如果设备X在集合ArrayL2中,返回步骤310继续执行;Step 410: If the device X is in the set ArrayL2, return to step 310 to continue execution;
步骤420:如果设备X有区域号,则返回步骤310继续执行; Step 420: If the device X has an area number, return to step 310 to continue execution;
步骤430:如果设备X没有区域号,ListL1_Index++,设置设备X的层次为Level-1-2,区域号为ListL1_Index+Level1BeginNum,并把设备X放入集合ListL1[ListL1_Index];Step 430: If the device X does not have an area number, ListL1_Index++, set the level of the device X to Level-1-2, the area number to ListL1_Index+Level1BeginNum, and put the device X into the set ListL1[ListL1_Index];
步骤510:以设备X为起点,进行图的深度优先遍历,Level-2设备不进行遍历,遍历过程中把与Level-2设备直连的设备层次设置为Level-1-2,反之设置为Level-1,所有遍历到的设备区域号均设置为ListL1_Index+Level1BeginNum,并放入集合ListL1[ListL1_Index]。Step 510: Perform the depth-first traversal of the graph with the device X as the starting point. The Level-2 device does not perform traversal. In the traversal process, the device level directly connected to the Level-2 device is set to Level-1-2, and vice versa. -1. All traversed device area numbers are set to ListL1_Index+Level1BeginNum and placed in the set ListL1[ListL1_Index].
还需要说明的是:(1)图的深度优先遍历算法是计算机图形学的标准算法,本申请不再特别说明;(2)由于Level-2设备不遍历,通过深度优先遍历就找出一个Level-1区域,以图2为例,A1,A2,A3为Level-2设备,选择D3为步骤510的设备X,由于不遍历Level-2设备,通过图的深度优先遍历算法就找到一个Level-1区域设备集合(D3,D2,D1,D4),如图7所示;It should also be noted that: (1) The depth-first traversal algorithm of the graph is a standard algorithm for computer graphics, which is not specifically described in this application; (2) because the Level-2 device does not traverse, a depth-first traversal is used to find a level. In the area of -1, take Figure 2 as an example. A1, A2, and A3 are Level-2 devices. Select D3 as device X in step 510. Since the Level-2 device is not traversed, a depth-first traversal algorithm is used to find a Level- 1 area equipment collection (D3, D2, D1, D4), as shown in Figure 7;
(3)以Level-2集合为圆心,其余Level-1集合围绕Level-2集合按圆形依次显示在拓扑图上,并在Level-1和Level-2区域之间画一条直线表示区域的连接关系,如图3所示。(3) The Level-2 set is centered, and the remaining Level-1 sets are displayed on the topology map in a circular order around the Level-2 set, and a straight line is drawn between the Level-1 and Level-2 areas to indicate the connection of the area. Relationship, as shown in Figure 3.
(4)用户修改每个区域的其他属性配置模板,配置模板提供拷贝、粘贴功能,以减少用户输入的工作量。(4) The user modifies other attribute configuration templates of each area, and the configuration template provides copying and pasting functions to reduce the workload input by the user.
(5)根据设备已计算的区域号、层次、区域的其他属性配置模板、随机选取一个Mac地址及通过拓扑连接关系找到设备之间连接的接口,然后根据这些信息依次生成每台设备的IS-IS配置信息。(5) According to the device's calculated area number, level, and other attributes of the area configuration template, randomly select a Mac address and find the interface between the devices through the topology connection relationship, and then generate IS- for each device according to the information. IS configuration information.
综上所述,本发明实施例实现了以下有益效果:解决了相关技术中在配置网络协议的过程中需要人工输入大量参数而导致的工作量大且易出错的问题,要求用户手工输入的内容极少,极大的较少了管理人员的工作量。In summary, the embodiments of the present invention achieve the following beneficial effects: solving the problem of large workload and error-prone caused by manual input of a large number of parameters in the process of configuring a network protocol in the related art, and requiring the user to manually input content. Very few, greatly less the workload of managers.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。 It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above are only the preferred embodiments of the present invention, and are not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
本发明提供的上述技术方案,采用根据网络的拓扑图对网络协议的指定参数进行配置的技术方案,解决了相关技术中在配置网络协议的过程中需要人工输入大量参数而导致的工作量大且易出错的问题,要求用户手工输入的内容极少,极大的较少了管理人员的工作量。 The technical solution provided by the present invention adopts a technical solution for configuring a specified parameter of a network protocol according to a topology map of a network, and solves the problem that a large amount of work is required in a process of configuring a network protocol in the related art, and a large amount of work is required. The error-prone problem requires that the user manually input very little content, which greatly reduces the workload of the manager.

Claims (10)

  1. 一种网络协议的配置方法,包括:A method for configuring a network protocol, including:
    获取指定设备所属网络的拓扑图;Obtain a topology map of the network to which the specified device belongs.
    根据所述拓扑图对指定参数进行配置,其中,该指定参数为所述指定设备所应用网络协议的参数。The specified parameter is configured according to the topology map, where the specified parameter is a parameter of a network protocol applied by the specified device.
  2. 根据权利要求1所述的方法,其中,所述网络协议,包括:The method of claim 1 wherein said network protocol comprises:
    中间系统到中间系统的路由选择协议IS-IS。Routing protocol IS-IS from intermediate system to intermediate system.
  3. 根据权利要求2所述的方法,其中,根据所述拓扑图对指定参数进行配置包括:The method of claim 2, wherein configuring the specified parameters according to the topology map comprises:
    基于所述拓扑图根据用户选择确定所述IS-IS的层2Level-2区域路由设备;Determining, according to the user topology, the layer 2 Level-2 area routing device of the IS-IS according to the topology map;
    获取所述Level-2区域路由设备的区域号和与所述Level-2区域路由设备相连的层1Level-1区域路由设备的起始区域号;Obtaining the area number of the routing device in the Level-2 area and the starting area number of the routing device of the layer 1 Level-1 area connected to the routing device of the Level-2 area;
    根据所述起始区域号和所述拓扑图确定与所述Level-2区域路由设备相连的所述Level-1的所有区域路由设备的区域号。And determining, according to the starting area number and the topology, an area number of all area routing devices of the Level-1 that are connected to the Level-2 area routing device.
  4. 根据权利要求3所述的方法,其中,根据所述起始区域号和所述拓扑图确定与所述Level-2区域路由设备相连的所述Level-1的所有区域路由设备的区域号包括:The method of claim 3, wherein determining the area number of all area routing devices of the Level-1 connected to the Level-2 area routing device according to the starting area number and the topology map comprises:
    根据所述拓扑图确定与所述Level-2区域路由设备相连的所有Level-1的区域路由设备集合;Determining, according to the topology map, all Level-1 regional routing device sets connected to the Level-2 area routing device;
    从所述区域路由设备集合中选取一台区域路由设备,并将所述初始区域号作为选取的区域路由设备的区域号;Selecting an area routing device from the regional routing device set, and using the initial area number as the area number of the selected area routing device;
    根据所述初始区域号按照预设规则确定所述区域路由设备集合中其他Level-1的区域路由设备所对应区域号,其中,所述其它区域路由设备与选取的Level-1的区域路由设备构成所述区域路由设备集合。And determining, according to the preset rule, the area number corresponding to the other area-1 routing device in the area routing device set according to the preset rule, where the other area routing device and the selected Level-1 area routing device are configured. The area routing device collection.
  5. 根据权利要求4所述的方法,其中,根据所述初始区域号按照预设规则确定所述区域路由设备集合中其他Level-1的区域设备所对应区域号,包括:The method according to claim 4, wherein determining the area number corresponding to the other Level-1 regional devices in the regional routing device set according to the initial rule number according to the preset rule includes:
    将所述初始区域号依次加上一个预定值后得到的区域号分别作为所述其他区域路由设备的区域号。 The area numbers obtained by sequentially adding the initial area numbers to a predetermined value are respectively used as the area numbers of the routing devices of the other areas.
  6. 根据权利要求1-5任一项所述的方法,其中,通过配置模板对所述网络协议中除所述指定参数之外的其他参数进行配置,其中,所述其他参数包括:对于同一区域中的不同设备,所述网络协议中具备相同参数值的参数。The method according to any one of claims 1 to 5, wherein other parameters of the network protocol other than the specified parameter are configured by a configuration template, wherein the other parameters include: for the same area Different devices, parameters of the network protocol having the same parameter values.
  7. 根据权利要求1-5任一项所述的方法,其中,其中,所述指定参数包括以下至少之一:区域号、接口参数。The method of any of claims 1-5, wherein the specified parameter comprises at least one of: an area number, an interface parameter.
  8. 一种网络协议的配置装置,包括:A device for configuring a network protocol, comprising:
    获取模块,设置为获取指定设备所属网络的拓扑图;Obtain a module, which is set to obtain a topology map of a network to which the specified device belongs;
    配置模块,设置为根据所述拓扑图对指定参数进行配置,其中,该指定参数为所述指定设备所应用网络协议的参数。The configuration module is configured to configure the specified parameter according to the topology map, where the specified parameter is a parameter of a network protocol applied by the specified device.
  9. 根据权利要求8所述的装置,其中,所述配置模块设置为在所述网络协议,包括:中间系统到中间系统的路由选择协议IS-IS时,根据所述拓扑图对指定参数进行配置。The apparatus according to claim 8, wherein the configuration module is configured to configure the specified parameter according to the topology map when the network protocol comprises: an intermediate system to an intermediate system routing protocol IS-IS.
  10. 根据权利要求9所述的装置,其中,所述配置模块包括:The apparatus of claim 9 wherein said configuration module comprises:
    第一确定单元,设置为基于所述拓扑图根据用户选择确定所述IS-IS的层2Level-2区域路由设备;a first determining unit, configured to determine a layer 2 Level-2 area routing device of the IS-IS according to the user selection based on the topology map;
    获取单元,设置为获取所述Level-2区域路由设备的区域号和与所述Level-2区域路由设备相连的层1Level-1区域路由设备的起始区域号;The obtaining unit is configured to obtain an area number of the routing device in the Level-2 area and a starting area number of the routing device of the layer 1 Level-1 area connected to the routing device of the Level-2 area;
    第二确定单元,设置为根据所述起始区域号和所述拓扑图确定与所述Level-2区域路由设备相连的所述Level-1的所有区域路由设备的区域号。 The second determining unit is configured to determine an area number of all area routing devices of the Level-1 connected to the Level-2 area routing device according to the starting area number and the topology map.
PCT/CN2014/091434 2014-08-11 2014-11-18 Network protocol configuration method and device WO2016023290A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410393246.XA CN105337859A (en) 2014-08-11 2014-08-11 Network protocol configuration method and device
CN201410393246.X 2014-08-11

Publications (1)

Publication Number Publication Date
WO2016023290A1 true WO2016023290A1 (en) 2016-02-18

Family

ID=55288166

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/091434 WO2016023290A1 (en) 2014-08-11 2014-11-18 Network protocol configuration method and device

Country Status (2)

Country Link
CN (1) CN105337859A (en)
WO (1) WO2016023290A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107154878A (en) * 2017-06-29 2017-09-12 国家电网公司 The collocation method of data communication network
CN113347103A (en) * 2021-05-31 2021-09-03 深圳市风云实业有限公司 Network establishment method for bone-free area

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453413A (en) * 2007-12-04 2009-06-10 华为技术有限公司 Method and apparatus for automatic topology discovery and resource management in PBB network
CN101572615A (en) * 2008-04-30 2009-11-04 华为技术有限公司 Network equipment management method, configuration management device and network system
CN102404190A (en) * 2010-09-16 2012-04-04 杭州华三通信技术有限公司 Method and device for determining Att signs under multi-topology

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383822A (en) * 2008-07-10 2009-03-11 北京邮电大学 Router virtual machine for aviation telecommunication network
US8102883B2 (en) * 2009-03-04 2012-01-24 Telefonaktiebolaget L M Ericsson (Publ) LDP IGP synchronization for broadcast networks

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453413A (en) * 2007-12-04 2009-06-10 华为技术有限公司 Method and apparatus for automatic topology discovery and resource management in PBB network
CN101572615A (en) * 2008-04-30 2009-11-04 华为技术有限公司 Network equipment management method, configuration management device and network system
CN102404190A (en) * 2010-09-16 2012-04-04 杭州华三通信技术有限公司 Method and device for determining Att signs under multi-topology

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107154878A (en) * 2017-06-29 2017-09-12 国家电网公司 The collocation method of data communication network
CN107154878B (en) * 2017-06-29 2020-06-19 国家电网公司 Configuration method of data communication network
CN113347103A (en) * 2021-05-31 2021-09-03 深圳市风云实业有限公司 Network establishment method for bone-free area
CN113347103B (en) * 2021-05-31 2022-02-18 深圳市风云实业有限公司 Network establishment method for bone-free area

Also Published As

Publication number Publication date
CN105337859A (en) 2016-02-17

Similar Documents

Publication Publication Date Title
WO2022068189A1 (en) Flow visualization monitoring method and apparatus, computer device, and storage medium
EP2989751B1 (en) Network resource matching
US20180210927A1 (en) Configuration, telemetry, and analytics of a computer infrastructure using a graph model
US10462010B2 (en) Detecting and managing recurring patterns in device and service configuration data
US20150012902A1 (en) Automatic mapping method for a distribution network based on logical layout
US10476837B2 (en) IPV4 addressing schema design methodology using a visual interactive tool
CN110650037B (en) Heterogeneous network device configuration method and device
EP3218805B1 (en) Method and system for model-driven, affinity-based, network functions
US9832073B2 (en) Analyzing network configuration complexity
CN112367211A (en) Method, device and storage medium for generating configuration template by device command line
CN112737853A (en) Network topology drawing method, equipment and storage medium
JP2011154540A (en) Similarity calculation program and similarity calculation device
CN115514696B (en) Method, device and equipment for transmitting computing power resource information
WO2016023290A1 (en) Network protocol configuration method and device
CN104662842A (en) Lattice based traffic measurement
CN112686580B (en) Workflow definition method and system capable of customizing flow
CN107679107A (en) A kind of grid equipment accessibility querying method and system based on chart database
US20050204290A1 (en) System and method for generating distributed application and distributed system topologies with management information in a networked environment
CN106330477A (en) Ethernet service configuration method, configuration device and network management
CN115733744A (en) Service placement assistance
CN115720241A (en) Model-based service placement
CN106330476B (en) Method for obtaining guaranteed bandwidth of user side port and network monitoring system
US11949548B2 (en) Method for service status analysis, server, and storage medium
CN114006887B (en) Method for distributing tunnel addresses in DVPN network and controller
CN112436993B (en) VPN private line discovery method and device based on configuration file analysis

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: 14899838

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: 14899838

Country of ref document: EP

Kind code of ref document: A1