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
equipment
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

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

The management method of configuration information in the data communications equipment
Technical field
The present invention relates to the approaches to IM of data communications equipment, relate in particular to the management method of device configuration information.
Background technology
In data communications equipment, it is the basis of assurance equipment reliably working that this equipment is configured, and described configuration is the set that the user carries out operation of equipment, and the good above-mentioned configuration information of management is the basic demand of user management device.For example, to the information that the user has been configured,, need preserve usually for avoiding repetitive operation complicated, trouble; And can easily show effective configuration that all have been made; After the business board in the equipment is taken out, insert once more, all configuration informations can both recover automatically, promptly support hot plug; Or the like.
The problem that these are a series of, relate to that each provides the module of user configuration information in the entire equipment, it is the configuration process module, therefore need provide a kind of simple, general, high-efficiency method, can be the various scattered configuration information of each module in the equipment whole effectively and manage together and use, consider the utilization of internal memory simultaneously, processing during system start-up when the recovery of configuration information and hot plug is particularly to the distributed environment environment of master control borad and a plurality of interface boards (as the comprise) management of configuration information down.
Existing configuration information management method is to realize by decompiling function (BuildRun) the chain mode of safeguarding each configuration process module, the effect of BuildRun function is that current configuration is decompiled into configuration order, i.e. the concrete configuration information of user's end of operation.By the BuildRun function, no matter be to need to show, or preserve configuration information, all to collect to each configuration process module, after each module is come out the configuration information decompiling, whole with become continuous character string a use, when system start-up, the configuration information of reading and saving is analyzed and is carried out.The disadvantage of said method is not provide the support to distributed environment, the efficiency of management to configuration information is low, show: the one, the information gathering time of butt joint oralia is long, poll collection again when configuration information uses like this, can waste system resource, and long acquisition time can make the user stand; The 2nd, only the mode of the configuration information of reading and saving is not supported hot plug when device start, can't preserve and recover when hot plug of the information on the interface board; The 3rd, to a large amount of configuration informations whole and after can take bigger memory headroom.
Summary of the invention
The object of the present invention is to provide the management method of configuration information in a kind of efficient, data communications equipment that managerial ability is stronger, this method can be supported the management of configuration information under the distributed environment, the recovery of configuration information and the processing of hot plug when support equipment starts.
For achieving the above object, the management method of configuration information in the data communications equipment provided by the invention 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.
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.
Management method according to configuration information in the described data communications equipment, the step that also comprises 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.
Described 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.
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 exist, the then normal execution of order, and wait acknowledge; Otherwise directly current configuration order is saved in the Section vector structure of arrays corresponding in the Section of front port.
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.
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 on slave board, starting; 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.
Because such scheme can make the preservation of configuration information by Section, recovery is united, make and adopt such scheme that the configuration information of digital communication equipment is managed, can be with the various scattered configuration informations of equipment, organize effectively flexibly, can be when device start recovery configuring information and the configuration information management when handling hot plug, having solved distributed environment support configuration preferably preserves, configuration restore, the recovery of interface board is charged when inserting after pulling out again configuration information, therefore, such scheme has the efficiency of management and the function of higher configuration information.
Description of drawings
Fig. 1 is an equipment main modular structure chart of using the method for the invention;
Fig. 2 is a not illustration of the data structure that adopts of the present invention.
Embodiment
Effectively manage for the configuration operation information to digital communication equipment, the present invention at first will divide the kind of device configuration information.The present invention is divided into two big classes with the various configurations of digital communication equipment: global configuration and interface configuration, and global configuration might be the precondition of each interface configuration, also might depend on the configuration of each interface, so global configuration can be subdivided into the preposition overall situation and rearmounted global configuration again again.Because digital communication equipment adopts various protocols to realize usually, therefore according to the agreement that is adopted, in fact the configuration information of above-mentioned two big classes comprises multiple different configuration information, and the management object of describing method of the present invention is at above-mentioned each configuration information.
The present invention is described in further detail below in conjunction with accompanying drawing
Fig. 1 is an equipment main modular structure chart of using the method for the invention.The user is configured datacom device by order line or webmaster mode, and the order of user input or webmaster are provided with to be given corresponding configuration process module and handle after explaining, each configuration process module is finished operational processes such as relevant parameter is provided with; Each configuration process module is registered the Buildrun function to profile management module, and cooperates profile management module to finish functions such as the collection of configuration information, demonstration, recovery.
Configuration information according to module management equipment shown in Figure 1, the method that the present invention adopts is, Section of corresponding every kind of configuration design, it is every kind of corresponding Section type of configuration, on master control borad, be provided for storing vectorial structure of arrays, i.e. Section vector structure (section is a node in this structure) according to Section with the Section of administration configuration data.In this Section vector structure of arrays, adopt vector to add the multistage single-track link table to the management of Section and organize.Every kind of Section type sequence is placed in the vector, and the Section that belongs to same type forms a section, and at intersegmental part, each Section lexicographic order by name is linked to be chained list, with reference to figure 2.Described data structure S 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 for the interface on the master control borad, is safeguarded the BuildRun function of master control borad, for the interface on the interface board, maintenance be configuration information.
Section type shown in Fig. 2 is Congfig, Controller E1, Serial, Ethernet, ... .Ospf, Route, stored the vector that points to above-mentioned Section type in the Section type vector table, the section that the Serial type of Serial type pointed is formed in the vector table has been shown among Fig. 2, in the linked list head of this section, described Section type is called " Serial ", the decompiling functional vector is the pointer of the concrete decompiling function table of this Serial type of sensing, the Section chained list is the pointer of the concrete Section node of this Serial type of sensing, concrete Section node has three among Fig. 2, title is respectively Serial10, Serial10.1, Serial1, at each Section node, BuildRun information is the pointer of the configuration information that sensing safeguards.
The present invention is based on the present many aspects of management system of the configuration information of above-mentioned data structure S.Aspect the BuildRun information management, write down the BuildRun decompiling function of each configuration process module registration in the Section type, and the sequencing between each decompiling function, the Physical module decompiling function, IP module decompiling function, FR module decompiling function and the PPP module decompiling function that point to as the decompiling functional vector of Serial section among Fig. 2, and determined the organizational form of Section Node B uildRun information thus.For guaranteeing the automatic configuration restore of hot plug rear port plate, all BuildRun information relevant with interface board all need dynamically preserve on master control borad and upgrade, if the configuration data of interface board has backup on master control borad, then upgrading work can be responsible for by backup module, otherwise can only initiatively be reported by interface board.Stipulate the Section type that all are relevant with interface board simultaneously, its BuildRun function pointer is sky, is example with Fig. 2, and the decompiling functional vector that is meant the Serial section is for empty.
The registration order of Section type has determined the order of configuration information in the configuration file, and in this example, the registration of Section type and BuildRun function is static initialization when the profile management module start-up course all.Wherein preposition overall Section and rearmounted overall Section are created in initialization procedure automatically by profile management module, all in addition Section all belong to interface class, and they dynamically add and deletion under the control of digital communication equipment interface management module.
When device start, aspect the recovery of configuration information, when equipment restarts, can be configured the recovery of information according to the configuration file of preserving.Because some configurations depend on interface, therefore must guarantee to create earlier interface and finish, so the process of recovery configuring information is divided into two stages:
Phase I is that interface recovers the stage.Read configuration file in the memory device of slave unit, described configuration file is the equipment file of the recording user configuration operation of generation automatically.Submit each order of carrying out in the configuration file in order to, if the switching interface mode command then normally create interface, and other any order is left in the basket all.When creating interface, whether the physical interface of at first judging appointment exists, if there is no then create it, but identify its unavailable (only allowing to do like this), and stipulate that all sub-interface, dynamic sockets that physical interface is relevant therewith all have identical unavailable attribute in the device start stage; Create successfully if interface exists also, identify then that it is available.Like this, after the pre-execution of configuration file one time, total interface and corresponding interface Section have set up.
Second stage reads configuration file once more and starts anew to submit to each order in the configuration file.This is all over being to carry out each configuration order veritably, to be configured the recovery of information.But must carry out special processing to following situation:
1, the execution of rearmounted global configuration command needs the abnormality processing flow process support of each protocol module.Can use the forwarding interface name when disposing such as static routing, if the interface board that these interfaces depended on does not exist, the routing module that carries out the static routing configuration of this moment still will allow its configuration successful (only allowing to do like this in the device start stage), and this part route is provided with unavailable sign position, before interface board is not also registered, all routes relevant with this piece interface board do not allow to show and revise, in case the interface board registration, then it is effective for Automatic Logos.
2 if the configuration order under the interface modes, then at first can judge this order operated whether have necessary being physically when front port, if exist, then order is normal carries out, and wait acknowledge.Otherwise directly with the current command line command, promptly configuration information articulates or is saved under the Section of front port by the configuration process module of equipment, and return command runs succeeded.Configuration file is after carrying out end for the second time, and all and unavailable interface related configuration order all have been collected under each interface Section.
After second stage was finished, system starting process finished, and has finished the recovery of configuration information simultaneously.
Aspect configuration information collection and demonstration, if the user need show or preserve current configuration, then check each Section type of data structure S in order, and from each Section single-track link table head begin the traversal, at first check Section whether available (by available sign), if the pairing interface physics of this interface Section does not exist, then ignore this Section, proceed to next node.If physically exist, then check whether articulated BuildRun information under this Section,, otherwise will continue to check whether this type of Section has registered the BuildRun function if having then directly demonstration or preservation, if function is not empty, then calls the BuildRun function and obtain configuration information.
The configuration information of above-mentioned all demonstrations and preservation all be current configuration of really working, if certain piece interface board has been carried out configuration operation, again it is pulled out away subsequently, then this part configuration information does not participate in showing and preserves, but still can be used for inserting again the configuration restore behind the interface board.
Aspect the hot plug support, under the interface management module controls of equipment, if interface board can be used, then the available sign of the Section of its corresponding interface is set to available; If this interface board is pulled out away, then be set to unavailable; And be set to available to the available sign of the Section of the plate corresponding interface of new insertion.As can be seen, this just makes available configuration information and disabled configuration information clearly make a distinction by an available sign.Like this, when interface board was pulled out away, the BuildRun information of interface board still was kept on the master control borad; When plugging again, configuration file obtains the notice of interface management module, travels through in the corresponding BuildRun information, is configured recovery.
In the present invention, BuildRun information on butt joint oralia and the master control borad is treated with a certain discrimination: the configuration information on the master control borad obtains by the BuildRun function of real-time calling registration, and the configuration information on the interface board then is real-time update and is kept at the memory cell that corresponding BuildRun function pointer points to.Like this, just avoided collecting the drawback of configuration information overlong time from interface board, make that simultaneously interface board is pulled out away after, configuration information is not lost, and the recovery of disposing during for hot plug provides the foundation.
Aspect Hot Spare, when in equipment, inserting slave board, just can collect present configuration information and send to slave board, the identical process of recovery process that disposes when on slave board, carrying out with device start; In the process of backing up in realtime, the configuration order that the user is imported is carried out at mainboard and slave board simultaneously.
For the renewal of the configuration information on the interface board on the slave board of interface board, can when receiving the lastest imformation of interface board, upgrade to slave board simultaneously master control borad.

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 of net element 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 迈普通信技术股份有限公司 Configure script rapid collection method 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
CN103109271B (en) The implementation method of migrate application and system between a kind of platform
CN101589592B (en) Multi-protocol removable storage device
CN101388844B (en) Data flow processing method and system
CN100438521C (en) Information management method in data communication equipment
CN101110846B (en) Management method and equipment for MAC address table item
CN101753362B (en) Configuring method and device of stacking virtual local area network of distributed network device
CN1820514B (en) System architecture, method and computer program product for managing telecommunication networks
US20230153141A1 (en) Cloud cost-based resource development system and method
CN101738997A (en) Multithread electric negative control system and control method
JP3562419B2 (en) Electronic exchange
CN101477386B (en) Timer implementing method and apparatus
CN103399781A (en) Cloud server and virtual machine management method thereof
CN113138882B (en) MySQL cluster-based automatic deployment method and device and related equipment
CN107659677A (en) The apparatus and method that a kind of IP address based on BMC automatically configures
CN101808010A (en) Equipment management method and equipment management device and main control board
CN101022633B (en) Allocation data recovering method, system and device
CN101286886B (en) Method and device to recover configuring information of network appliance
CN100539514C (en) Intelligent optical network equipment and its implementation with two central processing units
CN103051478A (en) Large-capacity telecommunication network management system as well as setting and application methods thereof
CN110413322A (en) A kind of server network interface management method, system and baseboard management controller
CN103235838B (en) A kind of figure for power distribution network is across figure automatic connection method
CN100407649C (en) Method for improving multiplexing-section protective ring or link transmission capacity
CN100550782C (en) Background server management system and management method thereof
CN105630634A (en) Application system disaster recovery backup switching method and device
CN103327127B (en) Distributed system drives working method and device

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20081126

Termination date: 20181016