Summary of the invention
Goal of the invention of the present invention provides a kind of utilization data configuration interface that sets up standard communication apparatus is carried out the method and system of data configuration, and its data receiver handles conveniently, and is simple to operate, favorable expandability, easy care
To achieve these goals, the invention provides a kind of method of communication equipment being carried out data configuration, comprise the steps: that mainly configuration tool sends configuration data stream by data-interface to configuration data final goal module, the data flow that described configuration data final goal module execution configuration-direct also will contain result returns to configuration tool by described data-interface, and described data flow is by the form transmission of data-interface with the common information bag; Its characteristics are: the configuration data form that a unified standard is set, to change into described standard configuration data format by the configuration data stream unification that a plurality of configuration tools are sent, will adopt the configuration data stream of reference format to issue a plurality of configuration data final goal modules again; The result of described configuration data final goal module also returns to described configuration tool after described standard configuration Data Format Transform.
The method of above-mentioned data configuration, its characteristics are: the configuration data form of described standard is a standard C MO form, described standard C MO form generates as follows: according to configuration data final goal module definition configuration management object CMO, with the standard operation of configuration management function with the paired CMO of formal transformation of configuration data items.
The method of above-mentioned data configuration, its characteristics are: described CMO is by defining as step:
(1) confirms described configuration data final goal module existing standard MIB definition;
(2) each leaf node in the standard mib storehouse all is defined as a CMO, and sets described leaf node and have identical module No.;
(3) order belongs to the CMO that the leaf node of same forms is defined as and has identical table number;
(4) make the index of CMO in forms by the put in order decision of leaf node in the MIB tree.
The method of above-mentioned data configuration, its characteristics are: described CMO is by defining as method:
(1) lists each required parameter of configuration feature, confirm that there is not definition in it in standard mib;
(2) give described parameter-definition CMO, and described CMO is had identical module No. and the table number with MIB definition CMO.
(3) a plurality of configuration parameters are formed forms, and Status state CMO definition are set, with described Status state CMO with have identical module No. and table number with other CMO in the forms.
The method of above-mentioned data configuration, its characteristics are: same configuration data items can be expressed by a plurality of dissimilar CMO.
The method of above-mentioned data configuration, its characteristics are: the table number of non-phenotypic variance selects that following two kinds of methods can be arranged:
(1) each configuration data items only takies a table number, and determines the configuration feature of CMO according to table number;
(2) a plurality of configuration data items are shared a table number, and determine the function of configuration according to the index of CMO in table.
The method of above-mentioned data configuration, its characteristics are: the parameter-definition to configuration tool is based on CMO, and the reflection that establishes between described parameter and the CMO concerns that each CMO comes unique identification, the described OID that is designated by a numerical value that generates by specified rule.
In order to realize the foregoing invention purpose better, the present invention also provides a kind of system that communication apparatus is carried out data configuration, mainly form, be provided with the data communication interface of mutual communication between described configuration tool layer and the described configuration data layer by configuration tool layer and configuration data layer; Its characteristic point is: between described configuration tool layer and described configuration data layer a virtual configuration plane is set also, described configuration plane provides the data format of a unified standard, is converted into the data format of described unified standard by described configuration plane from the interaction data of described configuration tool layer and described configuration data layer.
The system of above-mentioned data configuration, its characteristics are: described configuration plane is the configuration interface of the operation sequence of a definition rule that configuration management object CMO can be provided and standard thereof.
The system of above-mentioned data configuration, its characteristics are: described configuration tool layer can be order line terminal use, NMS user, data base administration user.
Adopt said method and system, can overcome problems of the prior art.In main design of the present invention, the equipment disposition plane layer is the core of configuration management, and it has defined the configuration tool layer and the configuration data layer carries out mutual some rules and method.
Embodiment
Further specify specific implementation method of the present invention and system below in conjunction with accompanying drawing
In accompanying drawing 1, communication apparatus is carried out data collocation system mainly to be made up of configuration tool layer 1 and configuration data layer 3, in configuration tool layer 1, order line terminal use, NMS user, data base administration user send configuration data stream 2 by data-interface to data configuration layer 3 respectively, data configuration layer 3 is made up of a plurality of configuration data final goal modules 4, and configuration data final goal module 4 receives configuration data stream 2 backs and carries out configuration-direct and the configuration process result is returned to configuration tool layer 1.
In accompanying drawing 2, the present invention mainly is made up of configuration tool layer 1, configuration plane layer 5 and configuration data layer 3 system that communication apparatus carries out data configuration, in configuration tool layer 1, configuration tool: order line terminal use, NMS user, data base administration user send configuration data stream 2 by data-interface to configuration plane layer 5 respectively, configuration plane layer 5 provides the standard configuration data format, each configuration tool in the configuration tool layer 1 must change into consolidation form with internal data by the rule of appointment, transmits downwards again.Configuration data final goal module 4 receives configuration data stream 2 backs and carries out configuration-direct and the configuration process result is returned to configuration tool layer 1.The major function that configuration plane layer 5 is realized comprises: the definition rule that configuration management object (CMO, the abbreviation of Config Management Object) is provided; The communication interface of configuration tool layer 1 to configuration data layer 3 is provided.
In Fig. 3, the present invention mainly comprises following three actions to the method that communication apparatus carries out data configuration: the object module preparation work I of each configuration data, configuration tool packing and configuration management plane message bag issue the object module of work II, each configuration data and carry out configuration III.
In Fig. 2 and Fig. 3, the workflow on the configuration management plane that the present invention is provided with is as follows:
1) object module according to each configuration data defines CMO
2) object module of each configuration data is to configuration plane registration configuration data processing mode
3) each configuration tool is called the function of configuration plane as order line or webmaster, is organized into the message packet format of configuration plane
4) the configuration management plane call each configuration data object module to configuration management plane registration configuration data processing mode, the message bag is handled
5) object module of each configuration data is handled the CMO in the message bag
6) the configuration management plane returns to configuration tool with the result of the object module of each configuration data
The configuration plane layer 5 of setting of the present invention is the core level of configuration management, and it has defined configuration tool layer 1 and configuration data layer 3 carries out mutual some rules and method, and configuration plane layer 5 is virtual levels in logic.
Configuration plane is converted into operation to configuration management object (CMO) with the realization of the function of all configuration managements.Configuration management object (CMO) is as a base unit of configuration feature division and configuration data management.
The major function of configuration plane layer 5 is: the definition rule of configuration management object (CMO, the abbreviation of Config ManagementObject) and the method for operation of standard thereof are provided; The communication mechanism of configuration tool layer 1 to configuration data layer 3 is provided.
In the present invention, be applicable to the target of different configuration tools, need finish following two work: configuration feature is converted into standard operation to the configuration management object, promptly organizes and define CMO in order to realize configuration data layer 3-socket; Configuration tool layer 1 utilizes existing CMO information, generates unified configuration messages.This needs public configuration messages Processing Interface, and will solve the configuration data items of different configuration tools and the problem that the CMO sign is changed mutually.The configuration feature of product is definition and the basis of dividing CMO, and which function a product comprises and can obtain embodying from configuration tool, and in an embodiment of the present invention, configuration tool mainly is webmaster and order line.
Any configuration management function all is the operation to some configuration datas, in the present invention, finishing each operated configuration data of certain specific function, is called a configuration management object, abbreviates CMO (ConfigManagement Object) as.After the operation of configuration data classified, each configuration management function all can be abstracted into one of standard operation (Set, Get, Get Next, Get Bulk) of configuration data items.
Routing table configuration feature with router in the communication apparatus is an example below, further specifies the method for organizing of CMO.By the input of analysis configuration instrument, output parameter, can learn that the routing table desired data is as shown in table 1:
The parameter that table 1 configuration routing table needs
The destination | Shielding | Routing Protocol | Priority | Metric | Next jumping | Forwarding interface | Attribute |
127.0.0.0. 0 | 255.255.255 .0 | static | 0 | 0 | 127.0.0.1 | 127.0.0.1 LOOP route | |
138.102.12 8.0 | 255.255.0.0 | direct | 0 | 0 | 138.102.12 9.7 | 138.102.129. 7 (Ethernet interfaces) | reje ct |
Each configuration data items in the above form all may be defined to a CMO, but for the configuration routing table, it is not enough that these visible configuration parameters are only arranged, and it is will add or the deletion routing table that above-mentioned configuration parameter can not make routing module understand.The present invention has also defined a new status data item specially for this reason, is in order to finish what function to indicate operation to these data, and this status indicator is defined as a standard C MO, is called state CMO.
Because above-mentioned a plurality of CMO have logically formed a table, and has a table features (can carry out interpolation, remove entries action), the present invention is called phenotype CMO with this class CMO, and agreement: the configuration feature that phenotype CMO is operated must increase state CMO definition.
The standard value of state CMO is as shown in table 2, when a configuration feature is to create or during retouching operation, the value of state CMO does not send in message in order to finish.
Table 2 " Status " the CMO standard value of setting
Create or revise | Deletion or recovery default value | Activate | Deexcitation |
3 | 4 | 1 | 2 |
Certainly, what should propose especially is, although configuration management object (CMO) mostly direct certain data form or variable corresponding to an inside modules, but be not directly to determine CMO in the present invention with these data forms, wherein main cause is that these forms may comprise many data, but can offer data that the outside is managed for configuration and few, and have only the CMO of a correspondence of data definition that can be configured and browse that practical meaning is just arranged.
Compare with above-mentioned routing table configuration feature, also have another kind of configuration feature not have parameter or only need a configuration data items, for example how reboot, write function do not need parameter, the present invention also will define a CMO to this configuration feature, but the data item that this CMO identified only allows a fixing value.For system time being set, function such as router domain name is set then only needs a parameter, the present invention's configuration parameter that this is unique is defined as CMO, and the data item that these CMO identified can be arranged to legal value arbitrarily, can be arbitrary string as domain name.The present invention is referred to as non-phenotype CMO with this type of CMO.
In an embodiment of the present invention, with the abstract method that example specifies CMO that is operating as of routing table, i.e. CMO definition step.
Step 1: at first whether have the standard mib definition of this module,, then define CMO as follows if having to the webmaster personnel inquiry.
Each leaf node in the standard mib storehouse all will be defined as a CMO, and they have identical module No.;
Belong to the CMO that the leaf node of same table is defined as and have identical table number;
The index of CMO in table is by the leaf node decision that puts in order in MIB tree.
The standard mib of IP module defines in RFC1213, and IP route table is the 0x15 work song table of IP table, and shown in the leaf node that IP route table comprises was defined as follows, the CMO that defines according to these leaf nodes had identical module No., table number:
IpRouteDest purpose IP bit location, CMO index: 0x1
IpRouteIfIndex forwarding interface index, CMO index: 0x2
IpRouteMetric1 route metric value, CMO index: 0x3
IpRouteMetric2 route stand-by metric CMO index: 0x4
IpRouteMetric3 route stand-by metric CMO index: 0x5
IpRouteMetric4 route stand-by metric CMO index: 0x6
IpRouteNextHop next-hop IP bit location CMO index: 0x7
IpRouteType route-type (directly, indirectly) CMO index: 0x8
IpRouteProto Routing Protocol CMO index: 0x9
IpRouteAge route life period CMO index: 0xa
IpRouteMask route shielding CMO index: 0xb
IpRouteMetric5 route stand-by metric CMO index: 0xc
IpRouteInfo routing iinformation CMO index: 0xd
The module I D that supposes the IP module is: 0x00230000, and then the IP route table CMO OID according to the MIB definition is:
#define CMO_ipRouteDest 0x00231501
#define CMO_ipRouteIfIndex 0x00231502
#define CMO_ipRouteMetricl 0x00231503
#define CMO_ipRouteMetric2 0x00231504
#define CMO_ipRouteMetric3 0x00231505
#define CMO_ipRouteMetric4 0x00231506
#define CMO_ipRouteNextHop 0x00231507
#define CMO_ipRouteType 0x00231508
#define CMO_ipRouteProto 0x00231509
#define CMO_ipRouteAge 0x0023150a
#define CMO_ipRouteMask 0x0023150b
#define CMO_ipRouteMetric5 0x0023150c
#define CMO_ipRouteInfo 0x0023150d
CMO OID is by a ULONG number of types value representation, and preceding two bytes are module I D, and the 3rd byte is table number, and the 4th byte represented the index of CMO in table.
The CMO OID sign of setting up a required basic parameter of route is complete, can finish functions such as route interpolation, parameter query, but can't realize the deletion of route, the route priority level is provided with, the routing property setting, need to define privately owned MIB and the corresponding CMO of MIB therewith, Proprietary MIB definition and management can be responsible for by webmaster or SNMPAgent designer for this reason.
Step 2: be irrealizable functional definition Proprietary MIB of standard mib and CMO.
List each required parameter of configuration feature, and check whether define in standard mib, if do not have, then to these parameter-definitions CMO, these CMO have identical module No. and the table number with MIB definition CMO.
If a plurality of configuration parameters are formed forms, then increase Status state CMO definition, it with have identical module No. and table number with other CMO in showing.
Before definition Proprietary MIB and CMO, also should be noted that the agreement on configuration management plane: a plurality of if desired parameters of configuration feature, then the CMO OID of these parameters has identical module No. and table number.This can influence the CMO define method under the different situations.Should note following 2 points for this reason; The first, protocol module CMO definition has the standard mib can reference, but a certain configuration feature has partial parameters not definition in MIB, and during then to this part parameter-definition CMO, its table number must define CMO with standard mib and be consistent.The CMO definition of the IP route table that for example the following describes is exactly an example.Second, protocol module does not have the standard mib can reference, then a configuration feature desired parameters all can be defined in same the table, and its CMO table number can be selected arbitrarily, when definition, do not existed table number to conflict mutually, otherwise brought difficulty can for the configuration messages parsing of protocol module with other.
Article one, real routing table also should comprise route priority (ipRoutePref), routing property (ipRouteAttr) except the parameter of above-mentioned standard mib definition.The present invention has also increased following CMO definition thus:
#define CMO_ipRoutePref 0x0023150e
#define CMO_ipRouteAttr 0x0023150f
Because routing table is a phenotypic variance, then needs to increase the state (interpolation, deletion, activation, deexcitation) that state CMO comes label table.
#define CMO_ipRouteStatus 0x00231510
Step 3: allow the configuration data items amplification, promptly allow same configuration data items to express by a plurality of dissimilar CMO.Determine finally should define what CMO.
Again have a look table 1 again, can find: configuration data items " shielding " can have two kinds of expression waies: except expressing with the standard point cellular, can also represent with shielding length.The present invention also defines a CMO to shielding length for this reason.
#define CMO_ipRouteMaskLen 0x00231511
So far all CMO definition of IP route table are finished, and are as shown in table 3:
Table 3 IP route table CMO definition
CMO describes | The CMO macrodefinition | CMO OID |
Purpose IP address | CMO_ipRouteDest | 0x00231501 |
The forwarding interface index | CMO_ipRouteIfIndex | 0x00231502 |
The route metric letter | CMO_ipRouteMetric1 | 0x00231503 |
The route stand-by metric | CMO_ipRouteMetric2 | 0x00231504 |
The route stand-by metric | CMO_ipRouteMetric3 | 0x00231505 |
The route stand-by metric | CMO_ipRouteMetric4 | 0x00231506 |
Next-hop ip address | CMO_ipRouteNextHop | 0x00231507 |
Route-type (directly, indirectly) | CMO_ipRouteType | 0x00231508 |
Routing Protocol | CMO_ipRouteProto | 0x00231509 |
The route life period | CMO_ipRouteAge | 0x0023150a |
The route shielding | CMO_ipRouteMask | 0x0023150b |
The route stand-by metric | CMO_ipRouteMetric5 | 0x0023150c |
Routing iinformation | CMO_ipRouteInfo | 0x0023150d |
Route priority | CMO_ipRoutePref | 0x0023150e |
Routing property (reject, blackhole) | CMO_ipRouteAttr | 0x0023150f |
The routing table state | CMO_ipRouteStatus | 0x00231510 |
The route shielding length | CMO_ipRouteMaskLen | 0x00231511 |
For non-phenotype CMO, only need CMO of definition to get final product.
Table 4 system restarts
CMO describes | CMO OID sign | Permissible value |
System restarts sign | CMO_REBOOT | 1 |
The table 5 configuration-system time
CMO describes | Type | Permissible value |
System time | CMO_SYSTIME | Any legal time |
In an embodiment of the present invention, the table number of non-phenotypic variance is selected to adopt two kinds of methods: first method, each configuration data items all take a table number, determine the configuration feature of this CMO according to table number.Second method, a plurality of configuration data items are shared a table number, determine configuration feature according to the index of CMO in table.
In an embodiment of the present invention, the present invention further utilizes CMO to generate unified configuration messages
Realize a configuration feature in product, its configuration parameter that needs is all fixed usually, and these configuration parameters can have different sources, comprise order line, webmaster or database.For configuration being converted into the standard operation to CMO, this just needs the parameter-definition of all configuration tools all will set up the reflection relation between parameter and the CMO based on CMO.
Each CMO comes unique identification by a numerical value that generates by specified rule, abbreviates OID (ObjectIdentifier) as.
Reflection relation between order line module hold-over command line parameter and the CMO sign, and be responsible for parameter is associated with specifying the CMO sign, the common message assembling function that utilizes configuration plane to provide is then formed a configuration messages with CMO OID and parameter value.
For webmaster, its configuration data items is presented as the value of the Object object in the MIB storehouse, Object is designated SNMP standard point cellular address, in order to finish of the conversion of MIB Object dot address, need write an Image Data structure that comprises SNMP Object sign and CMO OID simultaneously by the OAMAgent director to the CMO sign.When the Agent task receives the configuration messages of webmaster transmission,, finish the conversion of dot address to CMO OID by search database.
From top-operation as can be seen, a kind of configuration tool of every increase just needs the reflection relation of set of parameter to CMO.This reflection belongs to the characteristic of configuration tool, does not need the configuration data layer to be responsible for.For the module of each configuration data layer, only need to be responsible for resolving the message of standard C MO form, and finish specific operation by the message requirement and get final product, it needn't see the difference of configuration tool.
Further illustrate two kinds of different configuration tools of order line and webmaster with the routing configuration function below and how to form identical configuration messages.Suppose that the routing table configuration feature forms the CMO tabulation through abstract back, as shown in table 3.
One, at first with order behavior example:
In order to realize adding routing table, order line has defined such order:
ip route ip-address{mask/mask-length }{interface-name /gateway-address}
[preference preference-value][reject/blackhole]
Routing module need be registered this order by above-mentioned grammer to the order line module for supporting this order, indicates corresponding relation between each command parameter and the CMO OID by registration function.
1, suppose that order line is input as: the value that can obtain each CMO OID correspondence after ip route 10.10.11.11 255.255.0.0 20.20.30.30100 resolves through order line is:
Table 6 order line is resolved the corresponding relation of back OID and parameter value
The CMO definition | Parameter value | The OID sign |
Purpose IP | 10.10.11.11 | CMO_ipRouteDest |
Shielding IP | 255.255.0.0 | CMO_ipRouteMask |
Next-hop IP | 20.20.30.30 | CMO_ipRouteNextHop |
Priority | 100 | CMO_ipRoutePref |
2, the order line module is a parameter with OID sign and order line input value, calls public message assembling function, generates unified configuration messages and sends to configuration module.
Two, increasing a route table items with webmaster is that example further specifies embodiment of the present invention
Because network management configuration data item MIB Object is a static defining, for a configuration data items multiple expression way is arranged, define respectively under the situation of a plurality of CMO, MIB Object can only select one in a plurality of CMO, and the definition of MIBObject can only be a subclass of CMO set.Form the corresponding data structure of mib object sign and CMO OID sign at last by the MIB storehouse personnel of writing, as shown in table 7:
The corresponding relation of table 7 webmaster MIB Object sign that definition obtains according to CMO and CMO sign
Configuration data items | Data type | The mib object sign | OID |
Purpose IP | CMO_IPV4 | 1.3.6.1.4.1.2011.2.1.3. 1.1.1 | CMO_ipRouteDst |
Shielding IP | CMO_IPV4 | 1.3.6.1.4.1.2011.2.1.3. 1.1.2 | CMO_ipRouteMask |
Routing Protocol | CMO_IPV4 | 1.3.6.1.4.1.2011.2.1.3. 1.1.3 | CMO_ipRouteProto |
Next-hop IP | CMO_IPV4 | 1.3.6.1.4.1.2011.2.1.3. 1.1.4 | CMO_ipRouteNextHop |
Priority | CMO_INTEGER | 1.3.6.1.4.1.2011.2.1.3. 1.1.5 | CMO_ipRoutePref |
Metric | CMO_INTEGER | 1.3.6.1.4.1.2011.2.1.3. 1.1.6 | CMO_ipRouteMetric1 |
Routing property | CMO_INTEGER | 1.3.6.1.4.1.2011.2.1.3. | CMO_ipRouteAttr |
| | 1.1.7 | |
Status | CMO_INTEGER | 1.3.6.1.4.1.2011.2.1.3. 1.1.8 | CMO_ipRouteStatus |
1, suppose that webmaster carried out and order line: the function that ip route 10.10.11.11 255.255.0.020.20.30.30 100 is the same, certainly on network management interface mainly with check box, edit box as input medium.After carrying out this order, network management configuration message sends to router with the form of SNMP message, and the message main contents are as shown in table 8:
The configuration messages newspaper content that table 8 webmaster sends
The mib object sign | Numerical value |
1.3.6.1.4.1.2011.2.1.3.1.1.1 | 10.10.11.11 |
1.3.6.1.4.1.2011.2.1.3.1.1.2 | 255.255.0.0 |
1.3.6.1.4.1.2011.2.1.3.1.1.4 | 20.20.30.30 |
1.3.6.1.4.1.2011.2.1.3.1.1.5 | 100 |
2, after the Agent task on the router receives this configuration messages, be identified in the table 7 according to mib object and search, the mib object sign is replaced with the CMO sign, obtain the following CMO OID and the corresponding relation of parameter value at last, as shown in table 9.
The corresponding relation of OID and parameter value behind the table 9 webmaster command analysis
The CMO definition | Parameter value | The OID sign |
Purpose IP | 10.10.11.11 | CMO_ipRouteDest |
Shielding IP | 255.255.0.0 | CMO_ipRouteMask |
Next-hop IP | 20.20.30.30 | CMO_ipRouteNextHop |
Priority | 100 | CMO_ipRoutePref |
3, the same public message assembling function that calls with the order line module of Agent task is a parameter with OID sign and parameter value, is assembled into unified configuration messages and sends to configuration module.
From the top-operation flow process as can be seen, by introducing the CMO notion, the configuration data of different configuration tools finally all transforms the configuration messages for standard, and the most crucial function of configuration plane layer realizes.
In a word, the present invention is by the source of shield configuration data, no matter configuration data is from order line, SNMPAGENT or DB, each module that receives data only need provide a cover configuration interface to get final product, and the data receiver handles conveniently, easily expansion.
Under the situation that does not deviate from main technical schemes of the present invention and its design substantive features, multiple embodiments of the present invention can be used widely in multiple communication apparatus.