[go: up one dir, main page]

CN100438521C - Information management method in data communication equipment - Google Patents

Information management method in data communication equipment Download PDF

Info

Publication number
CN100438521C
CN100438521C CNB021441812A CN02144181A CN100438521C CN 100438521 C CN100438521 C CN 100438521C CN B021441812 A CNB021441812 A CN B021441812A CN 02144181 A CN02144181 A CN 02144181A CN 100438521 C CN100438521 C CN 100438521C
Authority
CN
China
Prior art keywords
section
configuration
interface
configuration information
buildrun
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.)
Expired - Fee Related
Application number
CNB021441812A
Other languages
Chinese (zh)
Other versions
CN1412995A (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB021441812A priority Critical patent/CN100438521C/en
Publication of CN1412995A publication Critical patent/CN1412995A/en
Application granted granted Critical
Publication of CN100438521C publication Critical patent/CN100438521C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention discloses a management method for configuration information in data communication equipment. The method designs a section for configuration information of each kind, according to the sections, section vector array structures used for storing and managing configuration data are arranged on a master control board. In this way, when the equipment is started, firstly, sections are created; then, the decompiling function (BuildRun) of each of configuration processing modules of the equipment is registered to the corresponding section of each of the section vector array structures; thirdly, according to configuration files stored by the equipment, configurations re restored to different sections. When the equipment runs, by invoking registered BuildRun functions in real time, the configuration information of the master control board is obtained, and the configuration information on an interface board is updated in real time and is stored in the corresponding section of the data structure S. The adoption of the scheme can flexibly and effectively organize various pieces of odd configuration information of the equipment, which solves the management problem of configuration information in a distributed environment.

Description

数据通信设备中配置信息的管理方法 Method for managing configuration information in data communication equipment

技术领域 technical field

本发明涉及数据通信设备的信息管理方法,尤其涉及设备配置信息的管理方法。The invention relates to an information management method of data communication equipment, in particular to a management method of equipment configuration information.

背景技术 Background technique

在数据通信设备中,对该设备进行配置是保证设备可靠工作的基础,所述配置是用户进行设备操作的集合,管理好上述配置信息是用户管理设备的基本要求。例如,对用户已经配置的信息,为避免复杂、麻烦的重复操作,通常需要进行保存;并能方便的显示所有已经做出的有效配置;当设备中的业务板被拔去后,再次插入,所有的配置信息都能自动恢复,即支持热插拔;等等。In a data communication device, configuring the device is the basis for ensuring reliable operation of the device. The configuration is a collection of device operations performed by the user, and managing the above configuration information is a basic requirement for the user to manage the device. For example, in order to avoid complex and cumbersome repeated operations, the information that has been configured by the user usually needs to be saved; and all effective configurations that have been made can be displayed conveniently; All configuration information can be restored automatically, that is, hot swap is supported; and so on.

这一系列的问题,涉及整个设备中各个提供用户配置信息的模块,即配置处理模块,因此需要提供一种简单、通用、高效的方法,能够把设备中各个模块的各种零散的配置信息有效地整和在一起进行管理和使用,同时考虑内存的利用,系统启动时配置信息的恢复和热插拔时的处理,特别是对分布式环境(如包括主控板和多个接口板的环境)下配置信息的管理。This series of problems involves each module that provides user configuration information in the entire device, that is, the configuration processing module. Therefore, it is necessary to provide a simple, general, and efficient method that can effectively integrate various scattered configuration information of each module in the device. Manage and use together, and consider the utilization of memory, the recovery of configuration information when the system starts, and the processing of hot swap, especially for distributed environments (such as environments including main control boards and multiple interface boards) ) under the management of configuration information.

现有的配置信息管理方法是通过维护各个配置处理模块的反编译函数(BuildRun)链方式来实现的,BuildRun函数的作用是把当前配置反编译成配置命令,即用户操作完毕的具体的配置信息。通过BuildRun函数,无论是需要显示,或是保存配置信息,都要向各个配置处理模块收集,各模块把配置信息反编译出来后,整和成连续的字符串在一块使用,在系统启动时,读取保存的配置信息,分析执行。上述方法的最大缺点在于没有提供对分布式环境的支持,对配置信息的管理效率低,表现在:一是对接口板的信息收集时间比较长,这样在配置信息使用时再轮询收集的话,会浪费系统资源,且过长的收集时间会使用户无法忍受;二是仅在设备启动时读取保存的配置信息的方式不支持热插拔,接口板上的信息在热插拔时的无法保存与恢复;三是对大量的配置信息整和后会占用较大的内存空间。The existing configuration information management method is realized by maintaining the decompilation function (BuildRun) chain of each configuration processing module. The function of the BuildRun function is to decompile the current configuration into a configuration command, that is, the specific configuration information that the user has completed. . Through the BuildRun function, whether it needs to display or save configuration information, it must be collected from each configuration processing module. After each module decompiles the configuration information, it is integrated into a continuous string and used together. When the system starts, Read saved configuration information, analyze and execute. The biggest disadvantage of the above method is that it does not provide support for distributed environments, and the management efficiency of configuration information is low. The performance is as follows: First, it takes a long time to collect information on the interface board. It will waste system resources, and the long collection time will make the user unbearable; second, the method of reading the saved configuration information only when the device starts does not support hot swapping, and the information on the interface board cannot be used during hot swapping. Save and restore; the third is that the integration of a large amount of configuration information will take up a large memory space.

发明内容 Contents of the invention

本发明的目的在于提供一种高效、管理能力较强的数据通信设备中配置信息的管理方法,该方法能够支持分布式环境下配置信息的管理,支持设备启动时配置信息的恢复和热插拔的处理。The purpose of the present invention is to provide a method for managing configuration information in data communication equipment with high efficiency and strong management capability. The method can support the management of configuration information in a distributed environment, and support the recovery of configuration information and hot swap when the device is started. processing.

为达到上述目的,本发明提供的数据通信设备中配置信息的管理方法,包括:In order to achieve the above purpose, the method for managing configuration information in data communication equipment provided by the present invention includes:

步骤1:划分设备配置信息的种类,每个种类的配置对应一个段Section,按照所述的Section在主控板上设置用于存储和管理配置数据的Section向量数组结构;Step 1: Divide the types of device configuration information, each type of configuration corresponds to a Section, and set a Section vector array structure for storing and managing configuration data on the main control board according to the Section;

步骤2:设备启动时,先创建Section,再将设备的各个配置处理模块的反编译函数BuildRun注册到上述Section向量数组结构的相应的Section下,并根据设备保存的配置文件将配置恢复到不同Section下;Step 2: When the device starts, create a Section first, then register the decompilation function BuildRun of each configuration processing module of the device under the corresponding Section of the above Section vector array structure, and restore the configuration to different Sections according to the configuration file saved by the device Down;

步骤3:设备运行时,通过实时调用已经注册的BuildRun函数获得主控板的配置信息,接口板上的配置信息实时更新并保存在上述Section向量数组结构相应的Section下。Step 3: When the device is running, the configuration information of the main control board is obtained by calling the registered BuildRun function in real time, and the configuration information on the interface board is updated in real time and saved in the corresponding Section of the above Section vector array structure.

所述Section向量数组结构包括Section类型向量表和每个Section类型组成的段,在段内部,各个Section连成链表;所述Section包括:The Section vector array structure includes a Section type vector table and sections formed by each Section type, and inside the section, each Section is connected into a linked list; the Section includes:

名称,用于指明Section的名称;Name, used to specify the name of the Section;

可用标识,用于标明Section所对应的物理接口是否存在;The available identifier is used to indicate whether the physical interface corresponding to the Section exists;

BuildRun信息,用于维护主控板的BuildRun函数或接口板上的配置信息。BuildRun information, used to maintain the BuildRun function on the main control board or the configuration information on the interface board.

根据所述的数据通信设备中配置信息的管理方法,还包括收集设备接口的配置信息的步骤,包括:检查数据结构中的各个Section是否可用,如果此Section所对应的接口不存在,则忽略此Section,如果物理上存在,则检查此Section下是否挂接了BuildRun信息,如果有则直接显示,否则将继续检查此类Section是否注册了BuildRun函数,如果函数不为空,则调用BuildRun函数获得配置信息。According to the management method of configuration information in the data communication device, it also includes the step of collecting configuration information of the device interface, including: checking whether each Section in the data structure is available, and if the interface corresponding to the Section does not exist, ignore this Section, if it exists physically, check whether the BuildRun information is attached under this Section, if so, it will be displayed directly, otherwise it will continue to check whether such a Section has registered the BuildRun function, if the function is not empty, call the BuildRun function to obtain the configuration information.

所述步骤2采用下述步骤配置文件将配置恢复到不同Section中:The step 2 uses the following steps to configure the file to restore the configuration to different Sections:

步骤21:执行配置文件中的切换接口模式命令正常创建接口,在创建接口时,首先判断命令指定的物理接口是否存在,如果不存在则创建之,但标识其不可用,并规定所有与此物理接口相关的子接口、动态接口都具有相同的不可用属性;如果接口存在并创建成功,则标识其可用;Step 21: Execute the switch interface mode command in the configuration file to create an interface normally. When creating an interface, first judge whether the physical interface specified by the command exists. Interface-related sub-interfaces and dynamic interfaces all have the same unavailable attribute; if the interface exists and is successfully created, it is marked as available;

步骤22:执行配置文件中的接口模式下的配置命令,将获得的配置信息保存到相应接口的Section下。Step 22: Execute the configuration command in the interface mode in the configuration file, and save the obtained configuration information to the Section of the corresponding interface.

所述步骤22执行配置文件中的接口模式下的配置命令时,首先会判断当前接口是否物理上真实存在,如果存在,则命令正常执行,并等待应答;否则直接将当前配置命令保存到Section向量数组结构中相应的当前接口的Section中。When the step 22 executes the configuration command under the interface mode in the configuration file, it will first judge whether the current interface actually exists physically. If it exists, the command is executed normally and waits for a response; otherwise, the current configuration command is directly saved to the Section vector In the Section corresponding to the current interface in the array structure.

如果接口板可用,则将该接口板对应的接口Section的可用标识设置为可用;如果接口板不可用,则将该接口板对应的接口Section的可用标识设置为不可用。If the interface board is available, set the available flag of the interface section corresponding to the interface board to available; if the interface board is unavailable, set the available flag of the interface section corresponding to the interface board to unavailable.

当设备插入主控板的备板时,收集当前的配置信息发送给备板,在备板上进行启动时配置的恢复过程;在实时备份时,使用户输入的配置命令同时在主板和备板执行;在主控板收到接口板的更新信息时,同时向备板更新信息。When the device is inserted into the standby board of the main control board, the current configuration information is collected and sent to the standby board, and the recovery process of the startup configuration is performed on the standby board; during real-time backup, the configuration commands entered by the user are simultaneously displayed on the main board and the standby board Execute; when the main control board receives the update information from the interface board, it will update the information to the standby board at the same time.

由于上述方案能够通过Section使配置信息的保存、恢复统一起来,使得采用上述方案对数字通信设备的配置信息进行管理,能够将设备各种零散的配置信息、灵活有效地组织起来,能够在设备启动时恢复配置信息和处理热插拔时的配置信息管理,较好地解决了分布式环境支持配置保存,配置恢复,接口板带电拔后再插入时配置信息的恢复,因此,上述方案具有较高的配置信息的管理效率和功能。Since the above solution can unify the storage and restoration of configuration information through Section, the above solution can be used to manage the configuration information of digital communication equipment, and various scattered configuration information of the equipment can be organized flexibly and effectively. Restore configuration information in real-time and handle configuration information management when hot plugging, which better solves the problem of distributed environment supporting configuration saving, configuration recovery, and configuration information recovery when the interface board is plugged in after being powered on. Therefore, the above scheme has high The management efficiency and function of the configuration information.

附图说明 Description of drawings

图1是应用本发明所述方法的设备主要模块结构图;Fig. 1 is a structural diagram of the main modules of the equipment applying the method of the present invention;

图2是本发明采用的数据结构不例图。Fig. 2 is an example diagram of the data structure adopted by the present invention.

具体实施方式 Detailed ways

为了对数字通信设备的配置操作信息进行有效管理,本发明首先要划分设备配置信息的种类。本发明将数字通信设备的各种配置分成两大类:全局配置和接口配置,而全局配置有可能是各接口配置的前提条件,也有可能依赖于各接口的配置,因此全局配置又可以再细分为前置全局和后置全局配置。由于数字通信设备通常采用多种协议实现,因此根据所采用的协议,上述两大类的配置信息实际上包括多种不同的配置信息,本发明描述方法的管理对象既是针对上述每一种配置信息的。In order to effectively manage the configuration operation information of digital communication equipment, the present invention first divides the types of equipment configuration information. The present invention divides various configurations of digital communication equipment into two categories: global configuration and interface configuration, and the global configuration may be a prerequisite for each interface configuration, and may also depend on the configuration of each interface, so the global configuration can be further detailed Divided into pre-global and post-global configurations. Since digital communication devices are usually implemented using multiple protocols, according to the adopted protocols, the above two types of configuration information actually include a variety of different configuration information. of.

下面结合附图对本发明作进一步详细的描述The present invention will be described in further detail below in conjunction with accompanying drawing

图1是应用本发明所述方法的设备主要模块结构图。用户通过命令行或网管方式对数通设备进行配置,用户输入的命令或网管设置经解释后交给相应的配置处理模块进行处理,各配置处理模块完成有关的参数设置等操作处理;各配置处理模块向配置文件管理模块注册Buildrun函数,并配合配置文件管理模块完成配置信息的收集、显示、恢复等功能。Fig. 1 is a structural diagram of the main modules of the device applying the method of the present invention. The user configures the datacom device through the command line or the network management method, and the command or network management setting entered by the user is interpreted and handed over to the corresponding configuration processing module for processing, and each configuration processing module completes relevant parameter settings and other operations; each configuration processing The module registers the Buildrun function with the configuration file management module, and cooperates with the configuration file management module to complete configuration information collection, display, recovery and other functions.

依据图1所示的模块管理设备的配置信息,本发明采用的方法是,对应每种配置设计一个Section,即每种配置对应一个Section类型,按照Section在主控板上设置用于存储和管理配置数据的Section向量数组结构,即Section向量结构(section是该结构里的一个节点)。在该Section向量数组结构中,对Section的管理采用向量加多段单向链表来组织。每种Section类型顺序放在向量中,属于同一类型的Section组成一个段,在段内部,各个Section按名称的字母顺序连成链表,参考图2。所述数据结构S包括Section类型向量表和每个Section类型组成的段,在段内部,各个Section连成链表;所述Section包括:According to the configuration information of the module management device shown in Figure 1, the method adopted by the present invention is to design a Section corresponding to each configuration, that is, each configuration corresponds to a Section type, and set it on the main control board according to the Section for storage and management Configure the Section vector array structure of the data, that is, the Section vector structure (a section is a node in the structure). In the Section vector array structure, the management of Sections is organized by adding vectors and multi-segment one-way linked lists. Each Section type is placed in the vector in sequence, and Sections belonging to the same type form a section. Inside the section, each Section is linked into a linked list in alphabetical order of names, as shown in Figure 2. The data structure S includes a Section type vector table and a section composed of each Section type, and within the section, each Section is connected into a linked list; the Section includes:

名称,用于指明Section的名称;Name, used to specify the name of the Section;

可用标识,用于标明Section所对应的物理接口是否存在;The available identifier is used to indicate whether the physical interface corresponding to the Section exists;

BuildRun信息,对于主控板上的接口,维护主控板的BuildRun函数,对于接口板上的接口,维护的是配置信息。BuildRun information, for the interface on the main control board, maintain the BuildRun function of the main control board, and for the interface on the interface board, maintain the configuration information.

图2中所示的Section类型为Congfig、Controller E1、Serial、Ethernet、....Ospf、Route,Section类型向量表中存储了指向上述Section类型的向量,图2中示出了向量表中Serial类型指针指向的Serial类型组成的段,在该段的链表头中,所述的Section类型名为“Serial”,反编译函数向量为指向该Serial类型的具体反编译函数表的指针,Section链表为指向该Serial类型的具体的Section节点的指针,图2中具体的Section节点有三个,名称分别为Serial10、Serial10.1、Serial1,在各个Section节点,BuildRun信息即为指向所维护的配置信息的指针。The Section types shown in Figure 2 are Congfig, Controller E1, Serial, Ethernet, ... Ospf, Route, and the Section type vector table stores vectors pointing to the above Section types, and Figure 2 shows the Serial in the vector table The section composed of the Serial type pointed to by the type pointer, in the linked list header of this section, the Section type is called "Serial", the decompiled function vector is a pointer to the specific decompiled function table of the Serial type, and the Section linked list is Pointer to the specific Section node of the Serial type. In Figure 2, there are three specific Section nodes named Serial10, Serial10.1, and Serial1. In each Section node, the BuildRun information is a pointer to the maintained configuration information .

本发明基于上述数据结构S的配置信息的管理体现在多个方面。在BuildRun信息管理方面,Section类型中记录了各个配置处理模块注册的BuildRun反编译函数,以及各个反编译函数之间的先后顺序,如图2中Serial段的反编译函数向量指向的Physical模块反编译函数、IP模块反编译函数、FR模块反编译函数和PPP模块反编译函数,并由此决定了Section节点BuildRun信息的组织方式。为保证热插拔后接口板的自动配置恢复,所有与接口板相关的BuildRun信息都需要在主控板上动态保存和更新,如果接口板的配置数据在主控板上有备份,则更新工作可由备份模块负责,否则只能由接口板主动上报。同时规定所有与接口板相关的Section类型,其BuildRun函数指针均为空,以图2为例,是指Serial段的反编译函数向量为空。The management of configuration information based on the above data structure S in the present invention is embodied in multiple aspects. In terms of BuildRun information management, the Section type records the BuildRun decompilation functions registered by each configuration processing module, and the order of each decompilation function, as shown in Figure 2. The decompilation of the Physical module pointed to by the decompilation function vector of the Serial section Function, IP module decompilation function, FR module decompilation function and PPP module decompilation function, and thus determine the organization of Section node BuildRun information. In order to ensure the automatic configuration recovery of the interface board after hot swapping, all BuildRun information related to the interface board needs to be dynamically saved and updated on the main control board. If the configuration data of the interface board is backed up on the main control board, the update work The backup module can be responsible, otherwise the interface board can only report actively. At the same time, it is stipulated that for all Section types related to the interface board, the BuildRun function pointers are all empty. Taking Figure 2 as an example, it means that the decompiled function vector of the Serial section is empty.

Section类型的注册顺序决定了配置文件中配置信息的顺序,本例中,Section类型和BuildRun函数的注册全部在配置文件管理模块启动过程时静态初始化。其中前置全局Section和后置全局Section由配置文件管理模块在初始化过程中自动创建,除此以外所有的Section均属于接口类,它们在数字通信设备接口管理模块的控制下动态添加和删除。The registration order of the Section type determines the order of the configuration information in the configuration file. In this example, the registration of the Section type and the BuildRun function are all statically initialized during the startup process of the configuration file management module. Among them, the pre-global section and the post-global section are automatically created by the configuration file management module during the initialization process, and all other sections belong to the interface class, and they are dynamically added and deleted under the control of the digital communication device interface management module.

在设备启动时配置信息的恢复方面,设备重新启动时,可以根据保存的配置文件进行配置信息的恢复。由于一些配置依赖于接口,因此必须保证先创建接口完成,因此恢复配置信息的过程分为两个阶段:Regarding the restoration of configuration information when the device is started, when the device is restarted, the configuration information can be restored according to the saved configuration file. Since some configurations depend on the interface, it must be ensured that the interface is created first, so the process of restoring configuration information is divided into two stages:

第一阶段为接口恢复阶段。从设备的存储设备中读取配置文件,所述配置文件为设备自动生成的记录用户配置操作的文件。按顺序提交执行配置文件中的各个命令,如果是切换接口模式命令,则正常创建接口,而其它的任何命令都被忽略。在创建接口时,首先判断指定的物理接口在是否存在,如果不存在则创建之,但标识其不可用(只在设备启动阶段允许这样做),并规定所有与此物理接口相关的子接口、动态接口都具有相同的不可用属性;如果接口存在并创建成功,则标识其可用。这样,将配置文件预执行一遍以后,所有接口以及相应的接口Section都建立了。The first phase is the interface recovery phase. The configuration file is read from the storage device of the device, and the configuration file is a file automatically generated by the device to record user configuration operations. Submit and execute each command in the configuration file in order. If it is a command to switch the interface mode, the interface will be created normally, and any other commands will be ignored. When creating an interface, first determine whether the specified physical interface exists. If it does not exist, create it, but mark it as unavailable (only allowed in the device startup phase), and specify all sub-interfaces related to this physical interface, Dynamic interfaces all have the same unavailable property; if the interface exists and is successfully created, it is identified as available. In this way, after the configuration file is pre-executed, all interfaces and corresponding interface sections are established.

第二阶段,再次读取配置文件并从头开始提交配置文件中的各个命令。这一遍是真正地执行各个配置命令,以进行配置信息的恢复。但必须对以下情况进行特殊处理:In the second stage, the configuration file is read again and each command in the configuration file is submitted from scratch. This time is to actually execute each configuration command to restore the configuration information. But special handling must be done for the following cases:

1、后置全局配置命令的执行需要有各协议模块的异常处理流程支持。比如静态路由配置时会用到转发接口名,如果这些接口所依附的接口板不存在,此时的进行静态路由配置的路由模块仍要允许其配置成功(只在设备启动阶段允许这样做),并对这部分路由设置不可用标识位,在接口板还没有注册以前,与这块接口板相关的所有路由都不允许显示和修改,一旦接口板注册,则自动标识其有效。1. The execution of post global configuration commands needs to be supported by the exception handling process of each protocol module. For example, the forwarding interface name will be used in static routing configuration. If the interface board attached to these interfaces does not exist, the routing module that performs static routing configuration at this time must still allow its configuration to succeed (this is only allowed in the device startup phase). And set the unavailable flag for this part of the route. Before the interface board is registered, all the routes related to this interface board are not allowed to be displayed and modified. Once the interface board is registered, it will be automatically marked as valid.

2、如果是接口模式下的配置命令,则首先会判断该命令所操作的当前接口是否存在物理上真实存在,如果存在,则命令正常执行,并等待应答。否则直接将当前命令行命令,即配置信息由设备的配置处理模块挂接或保存到当前接口的Section之下,并返回命令执行成功。配置文件在第二次执行结束以后,所有与不可用接口相关的配置命令都被收集到了各个接口Section之下。2. If it is a configuration command in interface mode, it will first judge whether the current interface operated by the command exists physically. If it exists, the command will be executed normally and wait for a response. Otherwise, the current command line command, that is, the configuration information is directly mounted or saved by the configuration processing module of the device to the Section of the current interface, and the command execution success is returned. After the configuration file is executed for the second time, all configuration commands related to unavailable interfaces are collected under each interface Section.

第二阶段完成后,系统启动过程结束,同时完成了配置信息的恢复。After the second stage is completed, the system startup process ends, and the recovery of configuration information is completed at the same time.

在配置信息收集和显示方面,如果用户需要显示或保存当前配置,则按顺序查看数据结构S的各个Section类型,并从各Section单向链表头部开始遍历,首先检查Section是否可用(通过可用标识),如果此接口Section所对应的接口物理不存在,则忽略此Section,继续到下一个节点。如果物理上存在,则检查此Section下是否挂接了BuildRun信息,如果有则直接显示或保存,否则将继续检查此类Section是否注册了BuildRun函数,如果函数不为空,则调用BuildRun函数获得配置信息。In terms of configuration information collection and display, if the user needs to display or save the current configuration, then view each Section type of the data structure S in order, and traverse from the head of each Section singly linked list, first check whether the Section is available (by using the available identification ), if the interface corresponding to this interface Section does not exist physically, ignore this Section and continue to the next node. If it exists physically, check whether the BuildRun information is attached under this Section, if so, display or save it directly, otherwise, continue to check whether such Section has registered the BuildRun function, if the function is not empty, call the BuildRun function to obtain the configuration information.

上述所有显示和保存的配置信息的都是当前真正起作用的配置,如果对某块接口板执行了配置操作,随后又将它拔走,则这部分配置信息不参与显示和保存,但仍可以用于重新插入接口板后的配置恢复。All the configuration information displayed and saved above is the current configuration that actually works. If a configuration operation is performed on an interface board and then it is unplugged, this part of the configuration information will not be displayed and saved, but it can still be used. It is used to restore the configuration after the interface board is reinserted.

在热插拔支持方面,在设备的接口管理模块控制下,如果接口板可用,则将其对应接口的Section的可用标识设置为可用;如果该接口板被拔走,则设置为不可用;而对新插入的板对应接口的Section的可用标识设置为可用。可以看出,这就使得可用的配置信息和不可用的配置信息通过一个可用标识清楚地区分开来。这样,接口板被拔走时,接口板的BuildRun信息仍保存在主控板上;重新插上时,配置文件得到接口管理模块的通知,遍历相应的BuildRun信息中,进行配置恢复。In terms of hot-swapping support, under the control of the interface management module of the device, if the interface board is available, the available identification of the Section of the corresponding interface is set to be available; if the interface board is pulled out, it is set to be unavailable; and Set the usable flag of the section corresponding to the interface of the newly inserted board to be available. It can be seen that this makes available configuration information and unavailable configuration information clearly distinguished by an available identifier. In this way, when the interface board is unplugged, the BuildRun information of the interface board is still saved on the main control board; when it is plugged in again, the configuration file is notified by the interface management module, traverses the corresponding BuildRun information, and restores the configuration.

在本发明中,对接口板和主控板上的BuildRun信息是区别对待的:主控板上的配置信息通过实时调用注册的BuildRun函数来获得,而接口板上的配置信息则是实时更新并保存在对应的BuildRun函数指针指向的存储单元。这样,就避免了从接口板收集配置信息时间过长的弊端,同时使得接口板被拔走后,配置信息没有丢失,并为热插拔时配置的恢复提供了基础。In the present invention, the BuildRun information on the interface board and the main control board are treated differently: the configuration information on the main control board is obtained by invoking the registered BuildRun function in real time, while the configuration information on the interface board is updated and updated in real time. Stored in the storage unit pointed to by the corresponding BuildRun function pointer. In this way, the drawback of collecting configuration information from the interface board for a long time is avoided, and at the same time, the configuration information is not lost after the interface board is removed, and it provides a basis for configuration restoration during hot plugging.

在热备份方面,当在设备中插入备板时,就可以收集当前的配置信息发送给备板,在备板上进行与设备启动时配置的恢复过程相同的过程;在实时备份过程中,使用户输入的配置命令同时在主板和备板执行。In terms of hot backup, when the standby board is inserted into the device, the current configuration information can be collected and sent to the standby board, and the recovery process is the same as that configured when the device starts; in the real-time backup process, use The configuration commands entered by the user are executed on the main board and the standby board at the same time.

对于接口板上的配置信息在接口板的备板上的更新,可以在主控板收到接口板的更新信息时,同时向备板更新。For updating the configuration information on the interface board on the standby board of the interface board, when the main control board receives the update information from the interface board, it can update the configuration information to the standby board at the same time.

Claims (8)

1, the management method of configuration information in a kind of data communications equipment comprises:
Step 1: divide the kind of device configuration information, the corresponding section Section of the configuration of each kind is provided for storing the vectorial structure of arrays with the Section of administration configuration data according to described Section on master control borad;
Step 2: during device start, create Section earlier, decompiling function BuildRun with each configuration process module of equipment is registered under the corresponding Section of above-mentioned Section vector structure of arrays again, and the configuration file of preserving according to equipment with configuration restore under different Section;
Step 3: during equipment operation, the BuildRun function of having registered by real-time calling obtains the configuration information of master control borad, and the configuration information real-time update on the interface board also is kept under the corresponding Section of above-mentioned Section vector structure of arrays.
2, the management method of configuration information according to claim 1 is characterized in that: described Section vector structure of arrays comprises the section that Section type vector table and each Section type are formed, and at intersegmental part, each Section is linked to be chained list; Described Section comprises:
Title is used to indicate the title of Section;
Available sign is used to indicate whether the pairing physical interface of Section exists;
BuildRun information is used to safeguard the BuildRun function of master control borad or the configuration information on the interface board.
3, the management method of configuration information according to claim 2, it is characterized in that also comprising the step of the configuration information of collecting device interface, comprise: check whether each Section in the data structure is available, if the pairing interface of this Section does not exist, then ignore this Section, if physically exist, then check and whether articulated BuildRun information under this Section, if have then directly demonstration, otherwise will continue to check whether this type of Section has registered the BuildRun function, if function is not empty, then calls the BuildRun function and obtain configuration information.
4, the management method of configuration information according to claim 2 is characterized in that, step 2 adopt following arrangements of steps file with configuration restore in different Section:
Step 21: the switching interface mode command of carrying out in the configuration file is normally created interface, when creating interface, whether the physical interface of at first judging the order appointment exists, if there is no then create it, it is unavailable but identify, and stipulates that all sub-interface, dynamic sockets that physical interface is relevant therewith all have identical unavailable attribute; Create successfully if interface exists also, identify then that it is available;
Step 22: carry out the configuration order under the interface modes in the configuration file, the configuration information that obtains is saved under the Section of the corresponding interface.
5, the management method of configuration information according to claim 4, it is characterized in that: when described step 22 is carried out the following configuration order of interface modes in the configuration file, at first can judge when front port necessary being whether physically, if existence, then order is normal carries out, and wait acknowledge; Otherwise directly current configuration order is saved in the Section vector structure of arrays corresponding in the Section of front port.
6, according to the management method of claim 2,3,4 or 5 described configuration informations, it is characterized in that: if interface board can be used, then the available sign of the interface Section of this interface board correspondence is set to available; If interface board is unavailable, then the available sign of the interface Section of this interface board correspondence is set to unavailable.
7, the management method of configuration information according to claim 6 is characterized in that: when equipment inserts the slave board of master control borad, collect present configuration information and send to slave board, the recovery process of configuration when starting on slave board; When backing up in realtime, the configuration order that the user is imported is carried out at mainboard and slave board simultaneously; When master control borad is received the lastest imformation of interface board, simultaneously to the slave board lastest imformation.
8, according to the management method of claim 2,3,4 or 5 described configuration informations, it is characterized in that: configuration information real-time update on the described interface board of step 3 and preservation are by the interface management module controls of equipment.
CNB021441812A 2002-10-16 2002-10-16 Information management method in data communication equipment Expired - Fee Related CN100438521C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB021441812A CN100438521C (en) 2002-10-16 2002-10-16 Information management method in data communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB021441812A CN100438521C (en) 2002-10-16 2002-10-16 Information management method in data communication equipment

Publications (2)

Publication Number Publication Date
CN1412995A CN1412995A (en) 2003-04-23
CN100438521C true CN100438521C (en) 2008-11-26

Family

ID=4750546

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB021441812A Expired - Fee Related CN100438521C (en) 2002-10-16 2002-10-16 Information management method in data communication equipment

Country Status (1)

Country Link
CN (1) CN100438521C (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100346606C (en) * 2003-09-24 2007-10-31 华为技术有限公司 Information analytical method for facility configuration
US7155726B2 (en) * 2003-10-29 2006-12-26 Qualcomm Inc. System for dynamic registration of privileged mode hooks in a device
CN1300983C (en) * 2004-01-17 2007-02-14 华为技术有限公司 Exchange dynamic configuration restoring method
CN100417084C (en) * 2005-07-06 2008-09-03 中兴通讯股份有限公司 Method for Ensuring Data Consistency Between Network Element Control Processor and Management Control Unit
US8001287B2 (en) * 2006-10-10 2011-08-16 International Business Machines Corporation Dynamically updating alias location codes with correct location codes during concurrent installation of a component in a computer system
CN102419751A (en) * 2010-09-28 2012-04-18 迈普通信技术股份有限公司 Method for rapidly collecting configuration scripts and network communication equipment
CN102662683B (en) * 2011-12-30 2015-07-22 广东东研网络科技股份有限公司 Generating and importing method for communication facility configuration file based on key-value pair format
CN104022898A (en) * 2014-05-28 2014-09-03 上海斐讯数据通信技术有限公司 Switch configuration management method
CN106254430B (en) * 2016-07-25 2019-09-17 新华三技术有限公司 A kind of document handling method and device and a kind of interface board
CN110287220B (en) * 2019-07-24 2021-08-24 新华三大数据技术有限公司 Method and device for generating configuration reverse textualization

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1074767A (en) * 1992-01-20 1993-07-28 国际商业机器公司 The method that computing machine, equipment and system thereof reconfigure
US5706477A (en) * 1994-11-05 1998-01-06 Fujitsu Limited Circuit simulation model extracting method and device
US6282640B1 (en) * 1996-10-23 2001-08-28 Micron Technology, Inc. Method for improved storage of computer system configuration information

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1074767A (en) * 1992-01-20 1993-07-28 国际商业机器公司 The method that computing machine, equipment and system thereof reconfigure
US5706477A (en) * 1994-11-05 1998-01-06 Fujitsu Limited Circuit simulation model extracting method and device
US6282640B1 (en) * 1996-10-23 2001-08-28 Micron Technology, Inc. Method for improved storage of computer system configuration information

Also Published As

Publication number Publication date
CN1412995A (en) 2003-04-23

Similar Documents

Publication Publication Date Title
EP1179770B1 (en) File system
CN101110846B (en) Management method and equipment for MAC address table item
CN102075580B (en) Method and system for storing synchronous data in distributive network equipment
CN114172802A (en) Container network configuration method and device, computing node, main node and storage medium
CN101753362B (en) Configuring method and device of stacking virtual local area network of distributed network device
CN100438521C (en) Information management method in data communication equipment
WO2012013130A1 (en) Method and system for managing server information data
CN102104470A (en) Multi-network-card double-redundancy device and system under VxWorks system
CA2404191A1 (en) Methods and apparatus for configuration change management in communications networks
CN103186404A (en) System firmware update method and server system using the method
CN112235136B (en) Network file system backup method, system, terminal and storage medium
CN104793981A (en) Online snapshot managing method and device for virtual machine cluster
CN109542841A (en) The method and terminal device of data snapshot are created in cluster
CN109309633A (en) A method and device for managing a server node in an entire cabinet based on a management switch
JP3599364B2 (en) Network equipment
CN105634635A (en) Real-time clock (RTC) sharing method, device and system
CN101022633B (en) Method, system and device for restoring configuration data
CN108900441A (en) Method for switching network, the first electronic equipment and readable storage medium storing program for executing
CN115174374B (en) System, method, equipment and medium for configuring network time synchronization tool
JP2003318897A (en) Communication system, connection management server device and program
CN111030863B (en) A method, device, device and storage medium for determining node topology information
CN104298795A (en) Universal data model modeling tool system
CN108319679A (en) A kind of generation method and device of major key
CN102629905A (en) Slave card start control method of network equipment
CN102255944A (en) Management method and system for clustered system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20081126

Termination date: 20181016

CF01 Termination of patent right due to non-payment of annual fee