A kind of digital communication equipment access information management supporting multiple management mode
Technical field
The invention belongs to digital communicating field, refer more particularly to a kind of digital communication equipment access information management supporting multiple management mode.
Background technology
Current network communication apparatus, in order to the diversity requirement of satisfied different client, supports multiple way to manage---order line, SNMP, WEB etc. usually.The usual network equipment is in order to support these way to manages simultaneously, need independently to do functional development by these different service logics, even if same function, also multipass to be developed for different way to manage, rate of code reuse is low, research and development exploitation and safeguard that input cost is high, the consistency that function externally presents is poor, also add the software vulnerability possibility of equipment.
Fig. 1 is the software layer aggregated(particle) structure of current multiple way to manage the network equipment deposited, the network equipment such as, exists the logical business function module of the number such as network device interface, VLAN, equipment, in order to support snmp management, just needs to remove the configuration management function of development interface module, the configuration management function etc. of VLAN module by SNMP function logic; Same equipment also needs to support order line management, just needs the configuration management function etc. of the configuration management function by order line function logic development interface module, VLAN module; Similar, often newly increase a kind of way to manage on network devices, such as WEB way to manage, just again for it develops the configuration management function of all business function module.If there is N kind way to manage, and equipment has M kind business module need configuration management, developer will be input N the exploitation that M kind business module repeats, and concerning each business function module, independent maintenance between the code developed for this N time, once certain business function module changes, the code that the N number of way to manage before developed is relevant all needs amendment.
If different way to manage uses different developers on human resource development drops into, also probably occur that a kind of exploitation of developer to another kind of way to manage of way to manage is indifferent to, to user under different way to manage, the same business function of final products presents that there is some difference.
Summary of the invention
For solving the problem, the invention provides a kind of digital communication equipment access information management supporting multiple management mode, comprise the SNMP module with virtual SNMP access process logical block and Broker Core unit, target service module, the management program module with MIB tree.
Described virtual SNMP access process logical block is for providing the access SNMP access API of module;
Matching inquiry is carried out during the MIB of input parameter in target service module that described Broker Core unit is used for putting according to access API sets;
Management program module, for providing the management function of non-SNMP form, reaches management objectives by access API Access MIB.
Further, access API comprises GETAPI, GET-NEXTAPI, SETAPI, and wherein, GETAPI, GET-NEXTAPI are used for running status and/or the configuring condition of query facility, and SNMPSETAPI is for realizing the setting to equipment.
Further, the input parameter of GETAPI, GET-NEXTAPI comprises SNMP request type, the MIBOID of access, the object indexing of access, and the input parameter of SETAPI comprises SNMP request type, the MIBOID of access, the object indexing of access, the value of object to be configured.
The access method of the above-mentioned digital communication equipment access information management based on SNMP, comprises the steps:
Step one: management program module inputs MIB access request by access API;
Step 2: input parameter is delivered to Broker Core unit by virtual SNMP access process logical block;
Step 3: Broker Core unit carries out matching inquiry according to the MIBOID of access on MIB tree, finds the function point auxiliary code that this MIB is corresponding; Described auxiliary code is be registered to the call back function on MIB tree;
Step 4: auxiliary code judges SNMP request type, adjusts back the execution function of this MIB registration according to request type; Described execution function is the configuration management API of the functional module of SNMP request correspondence;
Step 5: perform function according to SNMP request type executable operations;
Step 6: function returns step by step, access API returns execution result eventually to management program module.
Further, in step 5, if SNMP request type is GET or GET-NEXT, performs function and just take out corresponding value from the functional module that request is corresponding, if SNMP request type is SET, perform function just by functional module corresponding for the settings write request of equipment.
Beneficial effect of the present invention is:
1. the present invention directly uses SNMP module as " general module ", does not need additionally to take out one " unified management program " again.Abstract work itself acquires a certain degree of difficulty and can increase exploitation amount, and SNMP module itself is well suited for serving as this function: first it is the function that digital communication equipment must be supported, is basic module; Secondly the use of SNMP only relates to GET, GET-NEXT, SET tri-kinds operation, and very terse being easy to is implemented.
2. the present invention is efficient, reliable.Because the code of other way to manages is completed by SNMP virtual access API, do not relate to snmp protocol message, network protocol stack is not needed to participate in, message is not had to send the process of wait acknowledge, whole handling process is more brief, and more efficiently, and the execution of whole program only has calling step by step of function, do not have network processes process, reliability is high.
3. the present invention supports concurrent.Because other way to manages are realized by SNMP virtual access API, and the execution of these API itself allows concurrent, thus the different way to manages of whole equipment effect when concurrent utilization is fine.
Accompanying drawing explanation
Fig. 1 is the software layer hierarchical structure chart of current multiple way to manage the network equipment deposited.
Fig. 2 is based on the unified software layer aggregated(particle) structure of the various way to manages of SNMP;
Fig. 3 is SNMPAGENT software configuration traditional on the network equipment;
Fig. 4 is the SNMPAGENT software configuration of the network equipment after increasing the process of virtual SNMP access logic.
Embodiment
A kind of digital communication equipment access information management supporting multiple management mode of the present invention, comprises the SNMP module with virtual SNMP access process logical block and Broker Core unit, target service module, the management program module with MIB tree.
Described virtual SNMP access process logical block is for providing the access SNMP access API of module.Access API comprises GETAPI, GET-NEXTAPI, SETAPI.Wherein, GETAPI, GET-NEXTAPI are used for running status and/or the configuring condition of query facility, and SNMPSETAPI is for realizing the setting to equipment.GETAPI, GET-NEXTAPI, SETAPI to as if equipment on MIB, i.e. the various function modeling management information bank of refining.Further, the input parameter of GETAPI, GET-NEXTAPI comprises SNMP request type, the MIBOID of access, the object indexing of access, and the input parameter of SETAPI comprises SNMP request type, the MIBOID of access, the object indexing of access, the value of object to be configured.
Matching inquiry is carried out during the MIB of input parameter in target service module that described Broker Core unit is used for putting according to access API sets.The management information bank that MIB and various function modeling refine.
Management program module, for providing the management function of non-SNMP form, uses the mode that similar network management system manages network equipments configuration---and the MIB being accessed equipment by SNMPGET, GET-NEXT, SET is developed.As shown in Figure 2, if other administration modules such as order line, WEB receive user to the configuration of certain function on equipment or inquiry request, so this administration module is not that functional module directly with concrete is mutual, but similar network management system, API is accessed, the MIB that access equipment is current by virtual SNMP.The key point of this design is the support that virtual SNMP accesses.
Below the working method of said system is described.
Traditional equipment end SNMPAGENT software configuration as shown in Figure 3, equipment end is after the SNMP request receiving webmaster, first Message processing is carried out, after parsing message content, next enters the core processing of SNMP agency, here the mib information that equipment is registered will be searched, this SNMP is found to ask corresponding concrete function point, then the aid in treatment code of this function point is adjusted back, according to the different classes of (GET of request, GET-NEXT or SET), the MIB performing this function point implements code, by configuration distributing to specific functional modules or the parameter getting request from functional module, SNMP Broker Core will organize execution result afterwards, message processing module (MPM) will build SNMP message, finally message is fed back to network management system.
The support of virtual SNMP access, as long as on original structure, increases virtual SNMP and accesses API processing logic, bypass Message processing process, just can multiplexing most of SNMP handling process originally except Message processing and code.Fig. 4 is the software configuration schematic diagram after increasing virtual SNMP access process logic.Virtual SNMP access provides GET, GET-NEXT, SETAPI with snmp protocol equivalence, on the basis of multiplexing existing SNMP process code, concurrency conflict is not had with normal SNMP Message processing, also there is not concurrency conflict each other in virtual access API, good function call level SNMP can be provided to access and support.
The access method of the above-mentioned digital communication equipment access information management based on SNMP, can be summarized as following steps:
Step one: management program module inputs MIB access request by access API;
Step 2: input parameter is delivered to Broker Core unit by virtual SNMP access process logical block;
Step 3: Broker Core unit carries out matching inquiry according to the MIBOID of access on MIB tree, finds the function point auxiliary code that this MIB is corresponding; Described auxiliary code is be registered to the call back function on MIB tree;
Step 4: auxiliary code judges SNMP request type, adjusts back the execution function of this MIB registration according to request type; Described execution function is the configuration management API of the functional module of SNMP request correspondence;
Step 5: perform function according to SNMP request type executable operations;
If SNMP request type is GET or GET-NEXT, performs function and just take out corresponding value from the functional module that request is corresponding, if SNMP request type is SET, perform function just by functional module corresponding for the settings write request of equipment.
Step 6: function returns step by step, access API returns execution result eventually to management program module.
Beneficial effect of the present invention is:
1. directly use SNMP module as " general module ", do not need additionally to take out again one " unified management program ".Abstract work itself acquires a certain degree of difficulty and can increase exploitation amount, and SNMP module itself is well suited for serving as this function: first it is the function that digital communication equipment must be supported, is basic module; Secondly the use of SNMP only relates to GET, GET-NEXT, SET tri-kinds operation, and very terse being easy to is implemented.
2. efficient, reliable.Because the code of other way to manages is completed by SNMP virtual access API, do not relate to snmp protocol message, network protocol stack is not needed to participate in, message is not had to send the process of wait acknowledge, whole handling process is more brief, and more efficiently, and the execution of whole program only has calling step by step of function, do not have network processes process, reliability is high.
3. support concurrent.Because other way to manages are realized by SNMP virtual access API, and the execution of these API itself allows concurrent, thus the different way to manages of whole equipment effect when concurrent utilization is fine.