Method and device for inhibiting terminal device cold start trap message
[ technical field ]
The invention relates to the technical field of network management in the Internet, in particular to a method and equipment for inhibiting a terminal equipment cold start trap message.
[ background art ]
With the development of network technology, more and more network devices are provided, and it is more and more important to efficiently manage the network devices. The prior network management server can provide convenient and centralized management for network equipment and can carry out read and write operations on the network equipment. When various conditions (such as restart state change) occur in the operation of the network equipment, the network equipment reports Trap messages to the network management server, and the network management server knows the operation condition and configuration condition of the equipment and monitors whether the equipment is abnormal or not through the received Trap messages, so that the equipment configuration is synchronized in time or effective measures are taken for the equipment.
Fig. 1 is a schematic diagram of a terminal device sending a Trap message to a network management server. In the figure, a terminal device is connected with a broadband communication device, and the broadband communication device is connected with a network management server through a network; when the terminal equipment is powered off and powered on or restarted, a cold start Trap message sent by the terminal equipment is reported to the network management server through the broadband communication equipment to inform the network management server of the own restarting behavior, and the cold start Trap message contains a variable value (configID) which is in one-to-one correspondence with the configuration of the terminal equipment and can be used as a configuration identifier of the terminal equipment; the configuration of the terminal equipment is different, and the variable value is different, so that whether the configuration of the terminal equipment is changed or not can be judged through the variable value, the network management server analyzes the Trap message to determine whether the configuration of the terminal equipment is synchronized or not, the network management server compares the Trap messages of cold start of the terminal equipment twice before and after to obtain two different processing results, and if the comparison results are the same, the configuration of the terminal equipment is not changed, the network management server does not need to synchronize the configuration of the terminal equipment; otherwise, it indicates that the configuration information of the terminal device has changed, and the network management server synchronizes the configuration of the terminal device as required.
At present, a network management server manages a large amount of network devices, particularly the number of terminal devices is incredible, when a terminal device is in cold start, a large amount of cold start Trap messages are sent to the network management server, the network management server needs to allocate a large amount of resources to analyze the messages in order to judge whether configuration information of the terminal device changes or not and synchronize the configuration of the terminal device according to needs, but some useless messages (such as the cold start Trap messages sent when the terminal device is in cold start and the configuration is not changed) do not need to be analyzed by the network management server, and if the network management server analyzes the messages, the waste of the resources of the network management server is caused, so that the performance of the network management server is reduced.
[ summary of the invention ]
The technical problem to be solved by the invention is to provide a method and equipment for inhibiting a cold start Trap message of terminal equipment, which can inhibit a useless cold start Trap message sent by the terminal equipment and improve the management performance of a network management server.
The invention is realized by the following technical scheme:
a method for inhibiting a terminal device cold start trap message comprises the following steps:
101. the terminal equipment sends a cold start trap message carrying the configuration identifier of the terminal equipment to the broadband communication equipment;
102. the broadband communication equipment analyzes the cold start trap message, judges whether the configuration identifier is consistent with the configuration identifier of the terminal equipment stored in the broadband communication equipment in the previous time, and reports the cold start trap message to a network management server if the configuration identifier is inconsistent with the configuration identifier of the terminal equipment stored in the broadband communication equipment in the previous time; otherwise, discarding the cold start trap message.
Step 101 further comprises: the broadband communication equipment receives the cold start trap message, judges whether a cold start trap message inhibition command is started or not, and reports the cold start trap message to a network management server if the cold start trap message inhibition command is not started; otherwise, step 102 is performed.
When the broadband communication device reports the cold start trap message to the network management server in step 102, the method further includes: and replacing the configuration identifier of the terminal device stored last time with the configuration identifier stored by the broadband communication device.
The invention is further improved in that: the wideband communication device stores the configuration identifier by using an internal register thereof.
Step 101 further comprises: and when the terminal equipment is powered off or restarted, sending the cold start trap message to the broadband communication equipment.
An apparatus for suppressing a cold start trap message of a terminal device, comprising:
the message receiving module is used for receiving a cold start trap message which is sent by the terminal equipment and carries the configuration identifier of the terminal equipment;
the message sending module is used for reporting the cold start trap message to a network management server;
further comprising:
and the message analysis module is used for analyzing the cold start trap message and determining to report or discard the cold start trap message according to the configuration identifier.
The invention further improves that the method also comprises the following steps: and the switch module is used for starting or closing the message analysis module.
The invention further improves that the method also comprises the following steps: and the storage module is used for storing the terminal configuration identifier in the cold start trap message.
The invention has the beneficial effects that: the broadband communication equipment shares part of the work of analyzing the cold start Trap message by the network management server, and reduces the burden of the network management server; meanwhile, the broadband communication equipment selectively reports the cold start Trap message, so that the cold start Trap message with unchanged terminal equipment configuration is inhibited, the occupied resources of the network management server in the aspect of message processing are saved, and the resources of the network management server are effectively utilized; meanwhile, according to specific requirements, the original management mode can be reserved, and all cold start Trap messages are reported, so that the network management server can know the starting information of the terminal equipment, and the management flexibility of the network management server is improved.
[ description of the drawings ]
Fig. 1 is a schematic diagram of a terminal device sending a Trap message to a network management server.
Fig. 2 is a partial schematic diagram of a Trap message.
Fig. 3 is a block diagram of the broadband communication device of the present invention.
Fig. 4 is a flowchart of a method for processing a cold start Trap message of a terminal device according to the present invention.
[ detailed description of the invention ]
The invention is further illustrated below with reference to the accompanying drawings and examples:
the Trap message shown in fig. 2 includes a configuration identifier value b0dc2b25a99e9db336e08c71ec27c55b (hexadecimal) of the terminal, and some other information of the terminal, and the configuration identifier value of the corresponding port is: b0dc2b25a99e9db336e08c71ec27c55b, after the terminal is restarted, if the configuration identification value in the Trap message is still the value, the terminal configuration is not changed; if the configuration flag value in the Trap message changes (e.g., becomes 2655a13e594d957f8c261214d463901e), it indicates that the terminal configuration has changed.
Fig. 3 is a block diagram of a broadband communications device of the present invention, including: the message receiving module, the message analyzing module, the message sending module, the switch module and the storage module; the message receiving module is connected with the switch module, the switch module is respectively connected with the message sending module and the message analysis module, and the storage module is connected with the message analysis module; when the switch module is closed, the direction of the signal flow is a message receiving module, a switch module, a message analysis module and a message sending module, and an optimal signal flow channel is formed; when the switch module is selected to be disconnected, the direction of the signal flow is the message receiving module, the switch module and the message sending module, and a signal flow channel compatible with the prior art is formed. Wherein,
the message receiving module is used for receiving a cold start trap message which is sent by the terminal equipment and carries the configuration identifier of the terminal equipment;
the message analysis module is used for analyzing the cold start trap message and determining to report or discard the cold start trap message according to the configuration identifier;
the message sending module is used for reporting the cold start trap message to a network management server;
the switch module is used for starting or closing the message analysis module;
and the storage module is used for storing the terminal configuration identifier in the cold start trap message.
In order to enable the network management server to occupy less resources in the aspect of message analysis and facilitate the network management server to have more sufficient resources to manage the network, in the broadband communication equipment, a message analysis module is started through a switch module to analyze the cold start Trap message, at the moment, the broadband communication equipment shares the work of the network management server in message processing, the cold start Trap message with changed terminal equipment configuration information is selected to be reported, the network management server determines whether to synchronize the configuration of the terminal equipment according to specific needs, and meanwhile, the cold start Trap message with unchanged terminal equipment configuration information is inhibited, so that the network management server does not need to receive and process the useless cold start Trap messages, and the burden of the network is reduced.
In addition, the invention can also close the message analysis module through the switch module to reserve the original design style of the existing network management, namely the broadband communication equipment does not analyze the cold start Trap message, but directly reports the cold start Trap message sent by the terminal equipment to the network management server, so that the network management server can know whether the terminal equipment is restarted or not. The user can decide whether to start the method for inhibiting the cold start Trap message according to the requirement so as to improve the flexibility of network management.
Fig. 4 is a flowchart of a method for processing a cold start Trap message of a terminal device according to the present invention, and the specific process is as follows:
when the terminal equipment is powered off and powered on or restarted, sending a cold start Trap message carrying a configuration identifier of the terminal equipment to the broadband communication equipment, namely step 1;
then, step 2 is executed, the broadband communication equipment receives and analyzes the cold start Trap message;
and then, executing step 3, the broadband communication device judging whether to enable the cold start trap message suppression command, if not, executing step 4, namely: reporting the cold start trap message to a network management server;
if so, executing step 5, namely: judging whether the configuration identifier is consistent with the configuration identifier of the terminal equipment stored in the previous time in the configuration identifier;
if not, the configuration of the terminal device is changed, and step 6 is executed, namely the cold start trap message is reported to a network management server, and meanwhile, the configuration identifier stored in an internal register of the broadband communication device replaces the configuration identifier of the terminal device stored in the previous time;
if the messages are consistent, the configuration of the terminal equipment is not changed, the cold start Trap message belongs to a useless message, the step 7 is executed, and the broadband communication equipment discards the cold start Trap message.
In conclusion, the invention can inhibit useless cold start Trap messages sent by the terminal equipment, reduce the burden of the network management server, ensure the effective use of the resources of the network management server and improve the management performance of the network management server.