Invention content
The technical problem to be solved by the present invention is to:In view of the problems of the existing technology, a kind of raising webmaster work is provided
Make the method and device that station accesses network element device efficiency, the present invention is based on service buffers to add timestamp contrast conting, data buffer storage
Add data characteristics cache-time, the control of pre-read algorithm the methods of to pre-read in advance, it is low to solve access efficiency under above-mentioned scene
The problem of.
The technical solution adopted by the present invention is as follows:
It is a kind of improve network management workstation access network element device efficiency method include:
Step 1:Application layer module is initiated to read network element device information request, and operation layer module receives application layer module and sends
Reading network element device information request, the operation layer module of network management workstation judges network management workstation buffer area with the presence or absence of reading
The corresponding service buffer of network element device information, if it is present network management workstation by operation layer module to SNMP agent mould
The stamp request of block sending time, executes step 2;Otherwise, operation layer module sends access request to data layer module, executes step 3;
Step 2:The timestamp of return is compared operation layer module with timestamp in the buffer area, if timestamp
Unanimously, then corresponding data cached with SNMP module time of return stamps in return cache area;Otherwise, operation layer module is to data Layer
Module sends access request, executes step 3;The timestamp request refers to reading the timestamp of business classification or table
Request;The timestamp of the return refers to that SNMP agent module returns to the time of business classification or the request of table timestamp
Stamp;
Step 3:After data layer module receives the access request of operation layer module, effective time map is cached according to MIB
Configuration file reads the MIB caching effective times of the network element device;Then operation layer module is configured according to MIB effective times,
Corresponding MIB cachings have been checked whether in buffer area, have been asked if it is not, data layer module initiates SNMP to SNMP agent module
It asks;Otherwise, step 4 is executed;
Step 4:Whether the cache-time that data layer module compares current MIB cachings in buffer area is more than the network element device
MIB cache effective time, if the MIB no more than the network element device caches effective time, the net in return cache area
Element device is corresponding data cached;Otherwise, then it is assumed that the MIB caching effective times in buffer area need to update, then data Layer
Module initiates SNMP requests to SNMP agent module again.
Further, timestamp in the timestamp and buffer area of return is compared with operation layer module in the step 2
To while, according to algorithm is pre-read, operation layer module carries out network element device information pre-read step.
Further, the algorithm specific implementation process that pre-reads is:
Step 21:Operation layer module receives the request of business pre-read, judges whether the counter of network management workstation is opened,
If counter opens the counting to corresponding business, judge whether the service request count value is more than timer threshold, executes step
Rapid 22;Otherwise, it exits;
Step 22:If the service counting value is more than timer threshold, counter is set to 0, and create new service request
TTL chains, and this request is added to TTL chain heads, the life span that the TTL chains are arranged is 0, until new pre-reads service request;
Otherwise, whether the life span of the operation layer module polls service request is more than ttl threshold of router, executes step 23;Ttl threshold of router and meter
When device threshold value depending on actual conditions, can be configured to 3.
Step 23:If the life span of the service request is more than ttl threshold of router, exit;Otherwise, service request title is remembered
Service request TTL last-of-chains are recorded, and its life span adds 1.
Further, the operation layer module progress network element device pre-read step detailed process includes:
Step 211:After the pre-read request for receiving operation layer module, operation layer module can have been checked whether according to TTL chains
With the associated mapping of pre-read, if so, execute step 212;Otherwise, the classification of raw requests business is recorded;
Step 212 judges whether the life span of the TTL chains is less than ttl threshold of router, if the life span of the TTL chains is less than
Network element device information request is read in ttl threshold of router, then application layer module initiation, and operation layer module receives the reading that application layer module is sent
Network element device information request is taken, and the reading network element device information request is asked labeled as pre-read, setting pre-read is asked
The life span asked adds 1;If the ttl value of the TTL chains is more than or equal to preset value, exit.
It is a kind of improve network management workstation access network element device efficiency device include:
Operation layer module, when application layer module is initiated to read network element device information request, operation layer module receives application layer
Whether the reading network element device information request that module is sent, the operation layer module of network management workstation judge network management workstation buffer area
In the presence of read the corresponding service buffer of network element device information, if it is present network management workstation by operation layer module to
The stamp request of SNMP agent module sending time;Otherwise, operation layer module sends access request to data layer module;Then
The timestamp of return is compared operation layer module with timestamp in the buffer area, if timestamp is consistent,
It is then corresponding data cached with SNMP module time of return stamps in return cache area;Otherwise, operation layer module is to data layer module
Send access request;The timestamp request refers to reading business classification or the timestamp request of table;The return
Timestamp refer to SNMP agent module return the business classification or table timestamp request timestamp;
Data layer module after the access request for receiving operation layer module for data layer module, caches effective according to MIB
Time map configuration file reads the MIB caching effective times of the network element device;Then when operation layer module is effective according to MIB
Between configure, corresponding MIB caching has been checked whether in buffer area, if it is not, data layer module is to SNMP agent module
Initiate SNMP requests;Otherwise, whether data layer module compares the cache-time of current MIB cachings in buffer area more than the network element
The MIB of equipment caches effective time;If the cache-time of current MIB cachings is no more than the network element device in buffer area
MIB caches effective time, then the network element device in return cache area is corresponding data cached;Otherwise, then it is assumed that in buffer area
MIB caching effective time need to update, then data layer module again to SNMP agent module initiate SNMP request.
Further, it is described the timestamp of return is compared with timestamp in buffer area with operation layer module it is same
When, according to algorithm is pre-read, operation layer module carries out network element device information pre-read step.
Further, the algorithm specific implementation process that pre-reads is:
Step 21:Operation layer module receives the request of business pre-read, judges whether the counter of network management workstation is opened,
If counter opens the counting to corresponding business, judge whether the service request count value is more than timer threshold, executes step
Rapid 22;Otherwise, it exits;
Step 22:If the service counting value is more than timer threshold, counter is set to 0, and create new service request
TTL chains, and this request is added to TTL chain heads, the life span that the TTL chains are arranged is 0, until new pre-reads service request;
Otherwise, whether the life span of the operation layer module polls service request is more than ttl threshold of router, executes step 23;Ttl threshold of router and meter
When device threshold value depending on actual conditions, can be configured to 3.
Step 23:If the life span of the service request is more than ttl threshold of router, exit;Otherwise, service request title is remembered
Service request TTL last-of-chains are recorded, and its life span adds 1.
Further.The operation layer module carries out network element device pre-read step detailed process:
Step 211:After the pre-read request for receiving operation layer module, operation layer module can have been checked whether according to TTL chains
With the associated mapping of pre-read, if so, execute step 212;Otherwise, the classification of raw requests business is recorded;
Step 212:Judge whether the life span of the TTL chains is less than ttl threshold of router, if the life span of the TTL chains is less than
Network element device information request is read in ttl threshold of router, then application layer module initiation, and operation layer module receives the reading that application layer module is sent
Network element device information request is taken, and the reading network element device information request is asked labeled as pre-read, setting pre-read is asked
The life span asked adds 1;If the ttl value of the TTL chains is more than or equal to preset value, exit.
In conclusion by adopting the above-described technical solution, the beneficial effects of the invention are as follows:
The present invention is based on service buffers to add timestamp contrast conting, data buffer storage adds data characteristics cache-time, pre-read
Intelligent algorithm control the methods of is pre-read in advance, and access efficiency is low under the above-mentioned scene that solves the problems, such as to have determined.
The present invention, which can efficiently reduce the information in the request message in network, especially equipment by service buffer, not to be had
Problem is read in repetition when changing.The wasting of resources that MIB is read repeatedly within the scope of similar time is reduced by data buffer storage.It is logical
Pre-read intelligent algorithm is crossed, intelligent response is promoted, fulfils request ahead of schedule, reduces interaction time, promotes user experience.
Specific implementation mode
All features disclosed in this specification or disclosed all methods or in the process the step of, in addition to mutually exclusive
Feature and/or step other than, can combine in any way.
This specification(Including any accessory claim, abstract and attached drawing)Disclosed in any feature, except non-specifically chatting
It states, can be replaced by other alternative features that are equivalent or have similar purpose.That is, unless specifically stated, each feature is only
It is an example in a series of equivalent 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 that level cache, operation layer safeguard two
Grade caching and pre-read management.Level cache is the MIB grades caching based on MIB aging characteristics.The L2 cache that operation layer is safeguarded
It is based on the operation layer caching for carrying out timestamp calculating on business classification or MIB tables.If the various webmaster business of application layer
Access equipment is needed, is all filtered by operation layer L2 cache(First request time stamp, then it is corresponding in operation layer caching
Timestamp compares, and judges whether operation layer is data cached consistent with equipment truthful data, if unanimously, just directly using caching number
According to), avoid ineffective access.And service related information is read by pre-read management algorithm in advance, improves efficiency.In data Layer
In level cache, two kinds of business are mainly solved by way of based on data characteristics allocating cache effective time in similar time point
The problem of upper while one back end of access, repeated accesses.
2, the present invention includes EMS network management workstations and SNMP agent module two parts.Wherein SNMP agent module is network element
One process of equipment, including a timestamp calculator.When the request of SNMP agent module time of receipt (T of R) stamp MIB, according to working as
The value of preceding MIB calculates a timestamp and responds network management workstation.
3, operation layer module refers to the data handling procedure that operation layer is realized in network management workstation.What data layer module referred to
It is the data handling procedure that data Layer is realized in network management workstation.Application layer module refers to application layer digital display in network management workstation
Data handling procedure.
4, MIB caches effective time map configuration file and refers to configuring MIB features.Title including MIB, with
And the title of MIB corresponds to MIB caching effective times.
5, depending on actual conditions, timer threshold can be configured to 5s for ttl threshold of router and timer threshold.Ttl threshold of router is
3。
6, TTL chains refer to the directive linked data structure marked with life span, i.e. business and another business phase
Associated mapping.
As shown in Fig. 1, the present apparatus is divided into network management workstation and SNMP agent module two parts.Wherein SNMP agent module
For a process of equipment, including a timestamp calculator.When the SNMP agent module time of receipt (T of R), which stabs, asks, according to current
Timestamp asks corresponding business datum to calculate a timestamp and responds network management workstation.Network management workstation is divided into application layer mould
Block, operation layer module, data layer module.Data layer module safeguards that level cache, operation layer module are safeguarded L2 cache and pre-read
Take management.Level cache is the MIB grades caching based on MIB aging characteristics.The L2 cache that operation layer module is safeguarded is to be based on industry
The operation layer caching of timestamp verification is carried out in business classification or MIB tables.The various webmaster business of application layer module are if necessary
Access equipment is all filtered by operation layer L2 cache, avoids ineffective access.And it is read in advance by pre-read management
Service related information improves efficiency.In data Layer level cache, what is mainly solved is that two kinds of business are same on similar time point
When access a back end, the problem of repeated accesses,
The operation layer module caching flow of system is as shown in Fig. 2, and application layer module, which initiates the reading of network element device information, asks
It asks, after operation layer module receives request, it is first determined whether there are this network element device cachings, if not provided, directly accessing net
Element device, and update network element device caching and network element device cache-time stamp, if there is network element device cache, then only need to
SNMP agent module initiate read this business classification or table timestamp request, then compare whether in current cache when
Between stab consistent, if unanimously, being returned to data cached, if inconsistent, then send SNMP requests to SNMP agent module.Together
When, pre-read request can be also initiated to pre-read manager.
After data Layer receives the request of operation layer, the effective time configuration for reading MIB is configured according to MIB, then slow to data
Check whether that corresponding MIB cachings if there is caching, then compare if it is not, directly initiating to ask to proxy for equipment in depositing
Whether it is more than the effective time of MIB configurations to the cache-time of current cache, if being not more than this time, just directly returns
It is data cached, if it is greater, then thinking that MIB cachings are more outmoded, then mib information request is initiated to proxy for equipment.
After the pre-read request for receiving operation layer, pre-read manager can configure according to pre-read and check whether pre-read
Relationship maps if so, then initiating MIB read requests, and are asked labeled as pre-read, when the existence that pre-read is asked is arranged
Between.If it is not, recording raw requests traffic ID.Pre-read there are the regular computational threads of service request correlation,
After calculating, dynamic changes pre-read configuration mapping.Reach and is accustomed to according to user, the effect of intelligent pre-read.
The invention is not limited in specific implementation modes above-mentioned.The present invention, which expands to, any in the present specification to be disclosed
New feature or any new combination, and disclose any new method or process the step of or any new combination.