A kind of method and apparatus that suppresses terminal equipment cold starting trapping message
[technical field]
The present invention relates to the network management technology field in the Internet, relate in particular to a kind of method and apparatus that suppresses terminal equipment cold starting trapping message.
[background technology]
Along with development of internet technology, the network equipment is more and more, the network equipment is efficiently managed seem more and more important.Present NM server, the management that can provide convenience for the network equipment, concentrate, the operation that can read and write the network equipment.When various situations (when changing as rebooting status) appear in network equipment operation, then the network equipment can report Trap (trap) message to NM server, whether ruuning situation, configuring condition and watch-dog that NM server is understood equipment by the Trap message that receives take place unusually, thereby in time synchronizer disposes or equipment is taken effective measures.
Fig. 1 is the schematic diagram of terminal equipment when NM server sends the Trap message.Among the figure, terminal equipment is connected with wideband Communication apparatus, and wideband Communication apparatus is connected with NM server by network; When the terminal equipment power down powers on or restarts, the cold start-up Trap message that terminal equipment sends reports NM server through wideband Communication apparatus, inform the behavior of restarting of NM server oneself, in cold start-up Trap message, include a variate-value (configID), because the value of being somebody's turn to do is corresponding one by one with the configuration of terminal equipment, so can be used as the configuration identifier of terminal equipment; The configuration difference of terminal equipment, this variate-value is also just different, therefore can judge whether the configuration of terminal equipment changes by this variate-value, NM server determines the whether configuration of synchronous terminal equipment by this Trap message is analyzed, NM server will compare twice cold start-up Trap message before and after this terminal equipment, draw two kinds of different results, if comparative result is identical, the configuration that terminal equipment is described does not change, and then NM server does not need the configuration of this terminal equipment synchronously; Otherwise, illustrate that then the configuration information of this terminal equipment has changed, the NM server configuration of this terminal equipment synchronously as required.
Current nms server is being managed a large amount of network equipments, particularly the quantity of terminal equipment is surprising especially, when terminal equipment carries out cold start-up, can send a large amount of cold start-up Trap messages to NM server, whether NM server changes for the configuration information of judging this terminal equipment, with the configuration of this terminal equipment synchronously as required, then need to distribute ample resources to remove to analyze these messages, but some useless message (carry out cold start-up and dispose the cold start-up Trap message that is sent when not changing as terminal equipment) does not need NM server analysis, if NM server is also analyzed these messages, will cause the waste of NM server resource, cause the NM server decreased performance.
[summary of the invention]
The technical problem to be solved in the present invention provides a kind of method and apparatus that suppresses terminal equipment cold starting trapping message, can the useless cold start-up Trap message that terminal equipment sends be suppressed, and improves the management of performance of NM server.
The present invention realizes by following technical scheme:
A kind of method that suppresses terminal equipment cold starting trapping message may further comprise the steps:
101, terminal equipment sends the cold starting trap message of the configuration identifier that carries described terminal equipment to wideband Communication apparatus;
102, wideband Communication apparatus is analyzed described cold starting trap message, judge once whether the configuration identifier of the described terminal equipment of storage is consistent before described configuration identifier and its inside, if inconsistent, then report described cold starting trap message to NM server; Otherwise abandon described cold starting trap message.
Further comprise in the step 101: wideband Communication apparatus receives described cold starting trap message, and judges whether to enable cold starting trap message inhibition order, if do not enable, then reports described cold starting trap message to NM server; Otherwise, execution in step 102.
Wideband Communication apparatus is when NM server reports described cold starting trap message in the step 102, also comprise: wideband Communication apparatus is preserved the configuration identifier that carries in the described described cold starting trap message that receives, and the configuration identifier of the described terminal equipment of once storing before replacing.
Further improvement of the present invention is: described wideband Communication apparatus is with the described configuration identifier of its inner register holds.
Further comprise in the step 101: when terminal equipment powers on or restarts in power down, send described cold starting trap message to wideband Communication apparatus.
A kind of equipment that suppresses terminal equipment cold starting trapping message comprises:
The message receiver module is used for the cold starting trap message that carries its configuration identifier that receiving terminal apparatus sends;
The message sending module is used for reporting described cold starting trap message to NM server;
Also comprise:
The message analysis module, be used to analyze described cold starting trap message, judge once whether the configuration identifier of the described terminal equipment of storage is consistent before described configuration identifier and its inside, if it is inconsistent, determine described cold starting trap message is reported, if consistent, determine described cold starting trap message is abandoned.
The present invention further improves and is, also comprises: switch module is used to enable or closes described message analysis module.
The present invention further improves and is, also comprises: memory module, the terminal configuration sign that is used for storing described cold starting trap message.
The invention has the beneficial effects as follows: wideband Communication apparatus has been shared the part work that NM server is analyzed cold start-up Trap message, reduces the burden of NM server; Simultaneously, wideband Communication apparatus carries out selectivity to cold start-up Trap message and reports, suppressing terminal equipment configuration does not have the cold start-up Trap message of change, has saved NM server shared resource aspect the message processing, and the resource of NM server is utilized effectively; Simultaneously,, can keep original way to manage, report all cold start-up Trap messages,, improve the flexibility of NM server management so that NM server is learnt the log-on message of terminal equipment according to concrete needs.
[description of drawings]
Fig. 1 is the schematic diagram of terminal equipment when NM server sends the Trap message.
Fig. 2 is the part schematic diagram of Trap message.
Fig. 3 is the module map of wideband Communication apparatus of the present invention.
Fig. 4 is the method flow diagram that the present invention handles terminal equipment cold start-up Trap message.
[embodiment]
Below in conjunction with drawings and Examples the present invention is further set forth:
The configuration identifier value b0dc2b25a99e9db336e08c71ec27c55b (hexadecimal) that comprises terminal in the Trap message shown in Figure 2, some other information with terminal, the configuration identifier value of corresponding port is: b0dc2b25a99e9db336e08c71ec27c55b, after terminal is restarted, if this configuration identifier value still is this value in the Trap message, illustrate that then terminal configuration does not change; If this configuration identifier value changes (for example becoming 2655a13e594d957f8c261214d463901e) in the Trap message, illustrate that then terminal configuration changes.
Fig. 3 is the module map of wideband Communication apparatus of the present invention, comprising: message receiver module, message analysis module, message sending module, switch module and memory module; The message receiver module is connected with switch module, and switch module is connected with the message analysis module with the message sending module respectively, and memory module is connected with the message analysis module; When switch module was selected closure, the trend of signal flow was message receiver module-switch module-message analysis module-message sending module, constituted the preferred signal flow passage of the present invention; When switch module select to disconnect, the trend of signal flow was message receiver module-switch module-message sending module, constitute the present invention and prior art compatibility the signal flow passage.Wherein,
The message receiver module is used for the cold starting trap message that carries its configuration identifier that receiving terminal apparatus sends;
The message analysis module is used to analyze described cold starting trap message, and according to described configuration identifier, determines described cold starting trap message is reported or abandons;
The message sending module is used for reporting described cold starting trap message to NM server;
Switch module is used to enable or closes described message analysis module;
Memory module, the terminal configuration sign that is used for storing described cold starting trap message.
In order to allow NM server take less resources aspect the message analysis, being beneficial to NM server has more sufficient resources come network is managed, in wideband Communication apparatus, enable the message analysis module by switch module, described cold starting trap message is analyzed, this moment, wideband Communication apparatus was shared the work of NM server on message is handled, the cold start-up Trap message of selecting terminal equipment configuration information to change reports, NM server determines the whether configuration of synchronous terminal equipment according to concrete needs, simultaneously, restraining terminal equipment configuration information does not have the cold start-up Trap message of change, thereby NM server does not need to receive and handle these useless cold start-up Trap messages, and alleviates the burden of network.
In addition, the present invention can also close the message analysis module by switch module, manage original design style to keep existing network, be that wideband Communication apparatus is not analyzed cold start-up Trap message, and the cold start-up Trap message that directly sends to NM server reporting terminal equipment, so that NM server is understood the state whether terminal equipment restarted.The user can determine whether to enable the method that cold start-up Trap message is suppressed of the present invention as required, to improve the flexibility of network management.
Fig. 4 is the method flow diagram that the present invention handles terminal equipment cold start-up Trap message, and concrete process is as follows:
When terminal equipment powers on or restarts in power down, send the cold start-up Trap message that the carried terminal equipment disposition identifies, i.e. step 1 to wideband Communication apparatus;
Then, execution in step 2, wideband Communication apparatus receives and analyzes described cold start-up Trap message;
Then, execution in step 3, wideband Communication apparatus judges whether to enable cold starting trap message and suppresses order, if do not enable, then execution in step 4, report described cold starting trap message to NM server that is:;
If enable, execution in step 5 that is: judges whether the configuration identifier of the described terminal equipment of once storing before described configuration identifier and its inside is consistent;
If it is inconsistent, change has taken place in the configuration that terminal equipment is described, execution in step 6 promptly reports described cold starting trap message to NM server, the configuration identifier of the described terminal equipment of once storing before simultaneously, the described configuration identifier of the internal register of wideband Communication apparatus preservation replaces;
If consistent, illustrate that then the configuration of terminal equipment does not change, this cold start-up Trap message belongs to useless message, execution in step 7, wideband Communication apparatus abandons described cold starting trap message.
In sum, the present invention can suppress the useless cold start-up Trap message that terminal equipment sends, and reduces the burden of NM server, guarantees the use of NM server resources effective, improves the management of performance of NM server.