Summary of the invention
Technical problem to be solved by this invention is: for prior art Problems existing, a kind of method and the device that improve network management workstation access network element device efficiency are provided, the present invention is based on that service buffer adds timestamp contrast conting, data buffer storage adds data characteristics cache-time, pre-read algorithm controls methods such as pre-reading in advance, solve the problem that access efficiency under above-mentioned scene is low.
The technical solution used in the present invention is as follows:
A kind of method improving network management workstation access network element device efficiency comprises:
Step 1: application layer module is initiated to read network element device information request, operation layer module receives the reading network element device information request that application layer module sends, the operation layer module of network management workstation judges whether network management workstation buffer area exists and reads the corresponding service buffer of this network element device information, if existed, then network management workstation is by operation layer module to the request of SNMP proxy module transmitting time stamp, performs step 2; Otherwise operation layer module sends access request to data layer module, perform step 3;
Step 2: timestamp in the timestamp returned and described buffer area is compared by operation layer module, if timestamp is consistent, then stabs corresponding data cached with SNMP module return time in return cache district; Otherwise operation layer module sends access request to data layer module, perform step 3; Described timestamp request refers to the timestamp request of reading this business categorizing or form; The described timestamp returned refers to the timestamp that SNMP proxy module returns this business categorizing or the request of form timestamp;
Step 3: after data layer module receives the access request of operation layer module, according to the effective time map configuration file of MIB buffer memory, reads the MIB buffer memory effective time of this network element device; Then operation layer module configures according to MIB effective time, looks into and see if there is corresponding MIB buffer memory in buffer area, if do not had, then data layer module initiates SNMP request to SNMP proxy module; Otherwise, perform step 4;
Step 4: in data layer module comparison buffer area, whether the cache-time of current MIB buffer memory is greater than the MIB buffer memory effective time of this network element device, if be not more than the MIB buffer memory effective time of this network element device, then corresponding data cached of this network element device in return cache district; Otherwise then think that the MIB buffer memory in buffer area needs to upgrade effective time, then data layer module initiates SNMP request to SNMP proxy module again.
Further, in described step 2 with operation layer module by while in the timestamp returned and buffer area, timestamp is compared, according to pre-reading algorithm, operation layer module carries out network element device information pre-read step.
Further, pre-reading algorithm specific implementation process described in is:
Step 21: operation layer module receives the request of business pre-read, judges whether the counter of network management workstation is opened, if the counting to corresponding business opened by counter, then judges whether this service request count value is greater than timer threshold, performs step 22; Otherwise, exit;
Step 22: if this service counting value is greater than timer threshold, then counter is set to 0, and create new service request TTL chain, and this request is added to TTL begin chain, the life span arranging this TTL chain is 0, by the time newly pre-reads service request; Otherwise whether the life span of this service request of operation layer module polls is greater than ttl threshold of router, perform step 23; Ttl threshold of router and timer threshold are determined according to actual conditions, can be configured to 3.
Step 23: if the life span of this service request is greater than ttl threshold of router, then exit; Otherwise, service request title is recorded to service request TTL last-of-chain, and its life span adds 1.
Further, described operation layer module is carried out network element device pre-read step detailed process and is comprised:
Step 211: after receiving the pre-read request of operation layer module, operation layer module can look into according to TTL chain the mapping seeing if there is and associate with pre-read, if had, performs step 212; Otherwise, record raw requests business categorizing;
Step 212 judges whether the life span of this TTL chain is less than ttl threshold of router, if the life span of this TTL chain is less than ttl threshold of router, then application layer module is initiated to read network element device information request, operation layer module receives the reading network element device information request that application layer module sends, and described reading network element device information request is labeled as pre-read request, the life span arranging pre-read request adds 1; If the ttl value of this TTL chain is more than or equal to preset value, then exit.
A kind of device improving network management workstation access network element device efficiency comprises:
Operation layer module, when application layer module is initiated to read network element device information request, operation layer module receives the reading network element device information request that application layer module sends, the operation layer module of network management workstation judges whether network management workstation buffer area exists and reads the corresponding service buffer of this network element device information, if existed, then network management workstation is asked to SNMP proxy module transmitting time stamp by operation layer module; Otherwise operation layer module sends access request to data layer module; Then
Timestamp in the timestamp returned and described buffer area is compared by operation layer module, if timestamp is consistent, then stabs corresponding data cached in return cache district with SNMP module return time; Otherwise operation layer module sends access request to data layer module; Described timestamp request refers to the timestamp request of reading this business categorizing or form; The described timestamp returned refers to the timestamp that SNMP proxy module returns this business categorizing or the request of form timestamp;
Data layer module, after receiving the access request of operation layer module, according to the effective time map configuration file of MIB buffer memory, reads the MIB buffer memory effective time of this network element device for data layer module; Then operation layer module configures according to MIB effective time, looks into and see if there is corresponding MIB buffer memory in buffer area, if do not had, then data layer module initiates SNMP request to SNMP proxy module; Otherwise whether the cache-time of current MIB buffer memory is greater than the MIB buffer memory effective time of this network element device in data layer module comparison buffer area; If the cache-time of current MIB buffer memory is not more than the MIB buffer memory effective time of this network element device in buffer area, then corresponding data cached of this network element device in return cache district; Otherwise then think that the MIB buffer memory in buffer area needs to upgrade effective time, then data layer module initiates SNMP request to SNMP proxy module again.
Further, described with operation layer module by while in the timestamp returned and buffer area, timestamp is compared, according to pre-reading algorithm, operation layer module carries out network element device information pre-read step.
Further, pre-reading algorithm specific implementation process described in is:
Step 21: operation layer module receives the request of business pre-read, judges whether the counter of network management workstation is opened, if the counting to corresponding business opened by counter, then judges whether this service request count value is greater than timer threshold, performs step 22; Otherwise, exit;
Step 22: if this service counting value is greater than timer threshold, then counter is set to 0, and create new service request TTL chain, and this request is added to TTL begin chain, the life span arranging this TTL chain is 0, by the time newly pre-reads service request; Otherwise whether the life span of this service request of operation layer module polls is greater than ttl threshold of router, perform step 23; Ttl threshold of router and timer threshold are determined according to actual conditions, can be configured to 3.
Step 23: if the life span of this service request is greater than ttl threshold of router, then exit; Otherwise, service request title is recorded to service request TTL last-of-chain, and its life span adds 1.
Further.Described operation layer module is carried out network element device pre-read step detailed process and is comprised:
Step 211: after receiving the pre-read request of operation layer module, operation layer module can look into according to TTL chain the mapping seeing if there is and associate with pre-read, if had, performs step 212; Otherwise, record raw requests business categorizing;
Step 212: judge whether the life span of this TTL chain is less than ttl threshold of router, if the life span of this TTL chain is less than ttl threshold of router, then application layer module is initiated to read network element device information request, operation layer module receives the reading network element device information request that application layer module sends, and described reading network element device information request is labeled as pre-read request, the life span arranging pre-read request adds 1; If the ttl value of this TTL chain is more than or equal to preset value, then exit.
In sum, owing to have employed technique scheme, the invention has the beneficial effects as follows:
The present invention is based on the methods such as service buffer adds timestamp contrast conting, data buffer storage adds data characteristics cache-time, the control of pre-read intelligent algorithm pre-reads in advance, the problem that under above-mentioned scene of having determined, access efficiency is low.
Reading problem is repeated when the present invention can reduce effectively by service buffer that in the request message, particularly equipment in network, this information does not change.The wasting of resources that within the scope of similar time, MIB reads repeatedly is reduced by data buffer storage.By pre-read intelligent algorithm, promote intelligent response, fulfil request ahead of schedule, reduce interaction time, promote Consumer's Experience.
Embodiment
All features disclosed in this specification, or the step in disclosed all methods or process, except mutually exclusive feature and/or step, all can combine by any way.
Arbitrary feature disclosed in this specification (comprising any accessory claim, summary and accompanying drawing), unless specifically stated otherwise, all can be replaced by other equivalences or the alternative features with similar object.That is, unless specifically stated otherwise, each feature is an example in a series of equivalence or similar characteristics.
Related description of the present invention:
1, network management workstation is divided into application layer, operation layer, data Layer.Data Layer safeguards level cache, and operation layer safeguards L2 cache and pre-read management.Level cache is the MIB level buffer memory based on MIB aging characteristic.The L2 cache that operation layer is safeguarded is the operation layer buffer memory calculated based on business classification or the enterprising line time stamp of MIB form.If the various webmaster business of application layer need access equipment, all undertaken filtering (first request time stamp by operation layer L2 cache, again with corresponding timestamp comparison in operation layer buffer memory, judge whether operation layer is data cached consistent with equipment True Data, if consistent, just directly use data cached), avoid ineffective access.And read service related information in advance by pre-read management algorithm, raise the efficiency.In data Layer level cache, on similar time point, access a back end, the problem of repeated accesses mainly through solving two kinds of business based on the mode of data characteristics allocating cache effective time simultaneously.
2, the present invention includes EMS network management workstation and SNMP proxy module two parts.Wherein SNMP proxy module is a process of network element device, comprises a timestamp calculator.When SNMP proxy module time of receipt (T of R) stamp MIB request, calculate a timestamp response network management workstation according to the value of current MIB.
3, operation layer module refers to the data handling procedure that in network management workstation, operation layer realizes.Data layer module refers to the data handling procedure that in network management workstation, data Layer realizes.Application layer module refers to the data handling procedure of application layer digital display in network management workstation.
4, the effective time map configuration file of MIB buffer memory refers to and is configured MIB feature.Comprise the title of MIB, and the title correspondence MIB buffer memory effective time of MIB.
5, ttl threshold of router and timer threshold are determined according to actual conditions, and timer threshold can be configured to 5s.Ttl threshold of router is 3.
6, TTL chain refers to the directive linked data structure of band life span mark, i.e. the mapping that is associated with another business of business.
As shown in Figure 1, this device is divided into network management workstation and SNMP proxy module two parts.Wherein SNMP proxy module is a process of equipment, comprises a timestamp calculator.When the stamp request of SNMP proxy module time of receipt (T of R), the business datum corresponding according to the request of current time stamp calculates a timestamp response network management workstation.Network management workstation is divided into application layer module, operation layer module, data layer module.Data layer module safeguards level cache, and operation layer module safeguards L2 cache and pre-read management.Level cache is the MIB level buffer memory based on MIB aging characteristic.The L2 cache that operation layer module is safeguarded is the operation layer buffer memory based on business classification or the verification of MIB form enterprising line time stamp.If the various webmaster business of application layer module need access equipment, all filtered by operation layer L2 cache, avoid ineffective access.And managed by pre-read and read service related information in advance, raise the efficiency.In data Layer level cache, what mainly solve is that two kinds of business access a back end, the problem of repeated accesses on similar time point simultaneously,
The operation layer module buffer memory flow process of system as shown in Figure 2, application layer module initiates network element device information read requests, after operation layer module receives request, first judge whether to there is this network element device buffer memory, if do not had, direct access network element device, and upgrade network element device buffer memory and network element device cache-time stamp, if there is network element device buffer memory, then only need the timestamp request of initiating to read this business categorizing or form to SNMP proxy module, whether comparison is consistent with the timestamp in current cache again, if consistent, with regard to return cache data, if inconsistent, SNMP request is sent again to SNMP proxy module.Meanwhile, also pre-read request can be initiated to pre-read manager.
After data Layer receives the request of operation layer, read configuration effective time of MIB according to MIB configuration, then in data buffer storage, look into the MIB buffer memory seeing if there is correspondence, if do not had, then initiate request directly to proxy for equipment, if there is buffer memory, then whether the cache-time of comparison current cache is greater than the effective time of MIB configuration, if be not more than this time, with regard to direct return cache data, if be greater than, then think that MIB buffer memory is more outmoded, then initiate mib information request to proxy for equipment.
After receiving the pre-read request of operation layer, pre-read manager can be looked into according to pre-read configuration and see if there is pre-read relationship maps, if had, then initiates MIB read requests, and is labeled as pre-read request, arrange the life span of pre-read request.If no, then record raw requests traffic ID.There is a regular computational threads of service request correlation in pre-read, after calculating, on-the-fly modifies pre-read configuration and map.Reach according to user habit, the effect of intelligent pre-read.
The present invention is not limited to aforesaid embodiment.The present invention expands to any new feature of disclosing in this manual or any combination newly, and the step of the arbitrary new method disclosed or process or any combination newly.