A kind of based on the method for VRF interface to equipment control
Technical field
The present invention relates to network equipment management technology, particularly relate to based on SNMP (SimpleNetwork Management Protocol, Simple Network Management Protocol) VPN (VirtualPrivate Network, virtual private networks) equipment is carried out to the technology of network management.
Background technology
Along with the development of network technology, network organizing pattern becomes diversified, require that conventional network equipment is except realizing by except Shell, web administration, also will realize snmp protocol management, thus the network equipment be managed be carried out to the management at remote graphics interface.SNMP is widely used NMP in current TCP/IP network, and its basic management pattern is manager-proxy mode.Manager's (being commonly referred to as work station) refers to the one section of program issued webmaster order, receive command response and alarm, provides network management interface; Agency specifically performs webmaster order corresponding actions and feedback action execution result or initiatively initiate one section of program of alarm, and agency is generally arranged in managed devices.SNMP adopts the request/response mode of polling mechanism, and namely management work station sends administration order to agency, and agency receives order and fill order, then send response to management work station; On the other hand, agency constantly monitors the managed devices at place, just initiatively sends alarm to management work station immediately once generation anomalous event.Communicating of usual management work station and Agent is realized by SNMP MIB (ManagementInformation Base, management information bank).By MIB, Agent informs which configuration management work station can do, and management work station is managed Agent by MIB.After the Agent of managed devices receives management work station SNMP request message, corresponding MIB list item is operated according to message content, each MIB list item completes oneself independently function, such as when needs upgrade-system, the configuration information of necessity is passed to system version administration module by SNMP by Agent, this module uses the modes such as FTP/TFTP to obtain redaction from management work station according to parameter, thus realizes system upgrade.
In the network equipment adopting MPLS VPN networking, usually an equipment is divided into several VRF (Virtual Routing Forwarding Instance according to interface, virtual flow-line forwarding instance), the network that each VRF correspondence one is privately owned, carrying out isolation between VRF cannot communicate.If management interface belongs to certain VRF, so all bookkeepings just need to use this VRF information.But MIB own can not carry VRF information, cause bookkeeping because lacking VRF information operation failure; Such as system upgrade module, needs to use FTP/TFTP module to carry out updating operation, and FTP/TFTP module operation is all need to use VRF relevant information, if do not have VRF information can only be operated in acquiescence VRF, so just possibly cannot download to version.If realized the transmission of VRF parameter by amendment MIB definition, all equipment and work station certainly will be caused all to need to carry out edition upgrading operation, cause cost to improve.So be how a problem needing to solve by the snmp management of one of them VRF Interface realization to equipment of the network equipment.
Summary of the invention
This programme mainly solves the problem how to be managed equipment by VRF interface, provides a kind of based on the method for VRF interface to equipment control.
Based on the method for VRF interface to equipment control, comprise the steps:
A, when SNMP proxy module is from after certain interface receives the administrative message from management work station, record the VRF information of this interface;
B, proxy module pass to relevant MIB processing module the VRF information that step a records;
The functional module of c, MIB processing module association uses the VRF information of the record in step a to communicate with management work station.
Further, between step a and b, also comprise: SNMP proxy module determines the MIB processing module of being correlated with according to the Object ID information in receiving management message.
Further, in step c, described MIB processing module belongs to the functional module associated by it.
The invention has the beneficial effects as follows, no matter easily manage when the equipment that achieves belongs to VRF, user does not worry that equipment in network has how many VRF, realizes work station to equipment control, the edition upgrading caused after avoiding introducing VRF, maintenance cost.
Accompanying drawing explanation
Fig. 1 is that the invention process example logic connects block diagram.
Embodiment
Based on the method for VRF interface to equipment control, comprise the steps:
A, when SNMP proxy module is from after certain interface receives the administrative message from management work station, record the VRF information of this interface;
B, proxy module pass to relevant MIB processing module the VRF information that step a records;
The functional module of c, MIB processing module association uses the VRF information of the record in step a to communicate with management work station.
For remote upgrade, the invention will be further described below.
Embodiment
The logic of modules connects block diagram as shown in Figure 1.Far-end altogether work station is connected with the SNMP proxy module of managed networks equipment, and SNMP proxy module is connected with the FTP MIB processing module of complete specific function, and FTP MIB processing module is connected with FTP functional module.In specific implementation process, FTP MIB processing module belongs to FTP functional module.The SNMP request intending upgrade of network apparatus software program is sent to the network equipment by management work station, and the SNMP message of reception is given SNMP proxy module by the network equipment; SNMP proxy module records the VRF information receiving the interface of this request after receiving SNMP request, and the MIB processing module that in asking with SNMP according to object ID (OID) information searching in SNMP request, MIB is corresponding; Lookup result is FTP MIB processing module, and so FTP MIB processing module gives the process of corresponding FTP functional module according to the VRF information imported into and SNMP solicited message; FTP functional module starts to communicate with management work station according to the information imported into.
Adopt the method that we use above, consistent with processing mode in the past in non-MPLS vpn environment, only have after managed networks equipment enables MPLS VPN function and management interface belongs to VRF, both can automatically adapt to this change, workstation software is not upgraded.Reduce exploitation and upgrade cost.