The content of the invention
Cause the problem of configuration difficulty is big for having differences property of network configuration in correlation technique, the present invention proposes a kind of net
The collocation method of network, can be called the bottom matched with external equipment to manage bag by abstract management level, completed to external equipment
Configuration, so as to simplify the complexity and maintenance difficulties of network configuration.
The technical proposal of the invention is realized in this way:
According to an aspect of the invention, there is provided a kind of collocation method of network.
The collocation method includes:
Abstract management level and bottom are configured in a network;
In abstract management level, abstraction interface module obtains equipment from bottom and supports information;
When accessing external equipment in a network, abstraction interface module is supported to believe according to the equipment corresponding with external equipment
Breath, the corresponding physical layer interface being invoked in bottom is configured to external equipment.
Wherein, in bottom, physical layer interface and equipment support information to be arranged in bottom-layer network management bag.
Wherein, holding equipment information includes:The device support list corresponding with external equipment.
Also, in abstract management level, abstract management level equipment is stored as from the device support list acquired in bottom
Support list.
Moreover, in a network after access external equipment, abstraction interface module searches are taken out to corresponding with external equipment
As management level device support list, corresponding physical layer interface is called to configure external equipment.
Further, holding equipment information includes:The Function Mapping list corresponding with external equipment, Function Mapping list
Be stored with the information of physical layer interface, wherein, abstraction interface module is according to Function Mapping list, by abstraction interface and physical layer interface phase
Correspondence.
Preferably, in abstract management level, abstract management level letter is stored as from the Function Mapping list acquired in bottom
Number map listing.
Alternatively, after configuration is complete, the collocation method also includes:
Abstraction interface module calls corresponding physical layer interface to obtain data from external equipment;
Acquired data are returned to abstraction interface by physical layer interface.
In addition, abstraction interface includes acquisition module, acquisition module is configured as obtaining equipment from bottom-layer network management bag
Support information.
Further, abstraction interface includes calling module, and calling module is configured as calling corresponding physical layer interface from outer
Portion's equipment obtains data.
The present invention calls the bottom matched with external equipment to manage bag by abstract management level, and completion is matched somebody with somebody to external equipment
Put, so as to simplify the complexity and maintenance difficulties of network configuration
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained belongs to what the present invention was protected
Scope.
There is provided a kind of collocation method of network according to one embodiment of present invention.
As shown in figure 1, collocation method according to embodiments of the present invention includes:
Step S101, configures abstract management level and bottom in a network;
Step S103, in abstract management level, abstraction interface module obtains equipment from bottom and supports information;And
Step S105, when accessing external equipment in a network, abstraction interface module is set according to corresponding with external equipment
Standby to support information, the corresponding physical layer interface being invoked in bottom is configured to external equipment.
Wherein, in bottom, physical layer interface and equipment support information to be arranged in bottom-layer network management bag.
Wherein, holding equipment information includes:The device support list corresponding with external equipment.
Also, in abstract management level, abstract management level equipment is stored as from the device support list acquired in bottom
Support list.
Moreover, in a network after access external equipment, abstraction interface module searches are taken out to corresponding with external equipment
As management level device support list, corresponding physical layer interface is called to configure external equipment.
Further, holding equipment information includes:The Function Mapping list corresponding with external equipment, Function Mapping list
Be stored with the information of physical layer interface, wherein, abstraction interface module is according to Function Mapping list, by abstraction interface and physical layer interface phase
Correspondence.
Preferably, in abstract management level, abstract management level letter is stored as from the Function Mapping list acquired in bottom
Number map listing.
Alternatively, after configuration is complete, the collocation method also includes:
Abstraction interface module calls corresponding physical layer interface to obtain data from external equipment;
Acquired data are returned to abstraction interface by physical layer interface.
In addition, abstraction interface includes acquisition module, acquisition module is configured as obtaining equipment from bottom-layer network management bag
Support information.Basic-level support facility information read module is alternatively referred to as in actual applications, for reading bottom-layer network management bag
Function Mapping list and device support list.
Further, abstraction interface includes calling module, and calling module is configured as calling corresponding physical layer interface from outer
Portion's equipment obtains data.
According to one embodiment of present invention there is provided a kind of method of network configuration, as shown in Fig. 2 for according to this hair
The schematic diagram of the network configuration structure of bright embodiment, including take out as interface layer(Abstract management level i.e. mentioned above)With bottom pipe
Reason bag(Bottom-layer network management bag i.e. mentioned above), wherein, abstraction layer includes abstraction interface, level of abstraction Function Mapping table
(Abstract management level Function Mapping table i.e. mentioned above)With level of abstraction device support list(Abstract management level i.e. mentioned above
Device support list), bottom, which is managed, includes bottom function interface(Physical layer interface i.e. mentioned above), Function Mapping list and
Device support list, wherein, Function Mapping list and device support list constitute holding equipment information mentioned above.Below
In, it is unified into noun statement above.
When in use, abstract management level will analyze the list of devices that existing management module can be supported respectively first, obtain
Taking equipment support list information is simultaneously recorded.Then analysis bottom-layer network management bag provides interface respective file, extracts abstract
The corresponding relation of interface name and bottom real interface name in bag, these information is stored in abstract management level, during to run
Realize the conversion that abstraction interface is called with physical layer interface.
Abstraction interface function module can also be included in abstract management level, all abstraction interfaces are provided in the module and existed
The realization of level of abstraction, then in abstraction interface, according to the corresponding abstract package informatin of abstraction interface equipment, calls corresponding bottom
Equipment management interface.
As shown in figure 3, being abstraction interface and the stream of the docking calculation of physical layer interface according to one embodiment of the present of invention
Cheng Tu, operationally, when the equipment of some type is found in network, calls abstraction interface, then in abstract management level
Workable bottom-layer network management bag is searched by device support list, loaded it if not loading the Bao Ze.Pair setting
When standby progress abstraction interface is called, physical layer interface is called, the true physical layer interface of corresponding function will be called in abstraction interface,
Then physical layer interface return value is obtained, abstraction interface returned data can realize abstraction interface and true bottom according to above step
The docking of interface.
In summary, by means of the above-mentioned technical proposal of the present invention, the present invention is called by abstract management level to be set with outside
The bottom management bag of standby matching, completes the configuration to external equipment, so that the complexity and maintenance difficulties of network configuration are simplified,
Technical scheme can also realize the on-demand loading of management module with packaging bottom layer interface, save and actively select
The time of load-on module is needed, and further provides for the descriptor format and interface correspondence form of bottom-layer network management bag, pipe is realized
Reason bag on demand using technical scheme by the physical layer interface of plurality of devices be packaged with it is abstract so that tension management
Functional module can solve the device configuration management in sophisticated network management, and will only need to the transparent management network equipment
The bottom-layer network management bag of the specific network equipment is provided, defined abstraction interface is realized, and record abstraction interface and true bottom
The corresponding relation of layer management interface, you can realize the encapsulation of network interface and the on-demand loading of management bag.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
God is with principle, and any modification, equivalent substitution and improvements made etc. should be included in the scope of the protection.