Embodiment
Mode of operation change method in the embodiment of the present invention comprises: whether the current state of Sampling network management system changes, and described network management system comprises normal condition and abnormality; When determining that the current state of described network management system changes, generate the first instruction, described the first instruction is used to indicate described message transmission module change current operation mode.
In the embodiment of the present invention, whether current state that first can Sampling network management system changes, when determining that change has occurred the current state of described network management system, can generate described the first instruction, to indicate the message transmission module in mode of operation change device to change current mode of operation.For example, if the current state of described network management system is described normal condition before, detect and determine that change has occurred for it, become described abnormality, when described network management system possibly cannot normally receive information during in described abnormality, can indicate described message transmission module to stop sending message to described network management system, to save Internet resources; If the state of described network management system is described abnormality before, detect and determine that change has occurred for it, become described normal condition, when described network management system can normally receive information during in described normal condition, can indicate described message transmission module to start to send message to described network management system, so that described network management system can be received corresponding information in time, improve the reliability of described network management system, also reduced described network management system to the monitoring of the network equipment, maintenance difficulties.
Referring to Fig. 1, it is the main flow process of the mode of operation change method in the embodiment of the present invention.Described mode of operation change method can be applied to the mode of operation change device in a communication network, and described mode of operation change device at least can comprise a message transmission module.In the embodiment of the present invention, described mode of operation change method is mainly used in northbound interface side.The main flow process of described method is as follows:
Step 101: whether the current state of Sampling network management system changes, described network management system comprises normal condition and abnormality.
Whether the current state that first can detect described network management system changes.In the embodiment of the present invention, described network management system can comprise normal condition and abnormality.When described network management system is during in described normal condition, it can normally receive the information that northbound interface sends, and when described network management system is during in described abnormality, it possibly cannot normally receive information that northbound interface sends.
In the embodiment of the present invention, described network management system side can be applied the first agreement, and preferably, the first agreement described in the embodiment of the present invention can be ICMP (Internet Control Message Protocol, Internet Control Message Protocol).
If described network management system is in described abnormality, if now described message transmission module has sent information to described network management system, described network management system can send the first response message to described mode of operation change device, described the first response message can be for informing described mode of operation change device, and information sends unsuccessful.In the embodiment of the present invention, described the first response message can refer to ICMP response message.
When described network management system is during in described normal condition, described mode of operation change device can detect whether receive described the first response message that described network management system sends, described mode of operation change device can be regularly, in real time or detect while being triggered, and can obtain the first testing result, can determine whether the current state of described network management system changes according to described the first testing result.
If the current state of described network management system is described normal condition, if detect definite described mode of operation change device, received described the first response message, can determine that described network management system is in described abnormality according to described the first testing result; If detect definite described mode of operation change device, in the first duration, do not receive described the first response message, can determine that described network management system is still in described normal condition according to described the first testing result.
When described network management system is during in described abnormality, described mode of operation change device can detect whether in the first duration, receive described the first response message that described network management system sends, described mode of operation change device can be regularly, in real time or detect while being triggered, and can obtain the second testing result, can determine whether the current state of described network management system changes according to described the second testing result.
If described network management system is in described abnormality, even if now described message transmission module has sent information to described network management system, described network management system can not returned to described the first response message yet.Described mode of operation change device can detect whether in the first duration, receive described the first response message that described network management system sends, if detected, determine that described mode of operation change device has received described the first response message in described the first duration, can determine that described network management system is still in described abnormality according to described the first testing result; If detected, determine that described mode of operation change device does not receive described the first response message in the first duration, can determine that described network management system is in described normal condition according to described the first testing result.
Preferably, in the embodiment of the present invention, described mode of operation change device can be preset one first numerical value, when receiving continuously individual described the first response message of described the first numerical value that described network management system sends, can obtain the 3rd testing result, described mode of operation change device can determine whether the current state of described network management system changes according to described the 3rd testing result.
For example, the state before described network management system is described normal condition, and described the first numerical value is 4.If described mode of operation change device is continuous, received described the first response message for 3 times, in 3 continuous cycles, all received described the first response message, but in the 4th cycle, do not receive described the first response message, described mode of operation change device also can think that described network management system is still in described normal condition.
Or for example, the state before described network management system is described normal condition, and described the first numerical value is 3.If described mode of operation change device is continuous, all received described the first response message for 3 times, in 3 continuous cycles, all received described the first response message, described mode of operation change device can think that described network management system has become described abnormality from described normal condition.
Or for example, the state before described network management system is described abnormality, and described the first numerical value is 4.If described mode of operation change device is continuous, all do not receive described the first response message for 3 times, in 3 continuous cycles, all do not receive described the first response message, but in the 4th cycle, received described the first response message, described mode of operation change device also can think that described network management system is still in described abnormality.
Or for example, the state before described network management system is described abnormality, and described the first numerical value is 3.If described mode of operation change device is continuous, all do not receive described the first response message for 3 times, in 3 continuous cycles, all do not receive described the first response message, described mode of operation change device also can think that described network management system becomes described normal condition from described abnormality.
In the embodiment of the present invention, state before described network management system is described normal condition, if described mode of operation change device receives the first response message that described network management system sends, can determine that the state of described network management system becomes described abnormality from described normal condition.
Preferably, in the embodiment of the present invention, state before described network management system is described normal condition, if described mode of operation change device receives described the first numerical value described the first response message that described network management system sends continuously, can determine that the state of described network management system becomes described abnormality from described normal condition.
In the embodiment of the present invention, state before described network management system is described abnormality, if described mode of operation change device receives described the first numerical value described the first response message that described network management system sends continuously, the state that can determine described network management system is still described abnormality.
But because of before known described network management system be abnormality, also to the message buffering module in described message transmission module and described mode of operation change device, sent corresponding information, if continue to determine that described network management system is still when described abnormality, can not carry out corresponding operating, without sending corresponding information to described message transmission module and described message buffering module.
Concrete, if described mode of operation change device receives described the first numerical value described the first response message that described network management system sends continuously, the state that can determine described network management system is described abnormality.The content of last instruction that now described mode of operation change device sends before can determining, if last instruction sending before determining is in corresponding the first instruction of described abnormality with described network management system, before can determining, determined that described network management system is in described abnormality, the state that can determine described network management system does not change, and this is without carrying out corresponding operating again; And if last instruction sending before determining is in corresponding the first instruction of described normal condition with described network management system, can determine that described network management system is before in described normal condition, described mode of operation change device can determine that change has occurred the state of described network management system, can carry out follow-up corresponding operating.
State before described network management system is described abnormality, if do not receive the first response message that described network management system sends in the first duration, determine that the state of described network management system becomes described normal condition from described abnormality.
In the embodiment of the present invention, state before described network management system is described normal condition, if described mode of operation change device does not receive described the first response message that described network management system sends in described the first duration, the state that can determine described network management system is still described normal condition.But because of before known described network management system be normal condition, also to the message buffering module in described message transmission module and described mode of operation change device, sent corresponding information, if continue to determine that described network management system is still when described normal condition, can not carry out corresponding operating, without sending corresponding information to described message transmission module and described message buffering module.
Concrete, if described mode of operation change device does not receive described the first response message that described network management system sends in described the first duration, the state that can determine described network management system is described normal condition.The content of last instruction that now described mode of operation change device sends before can determining, if last instruction sending before determining is in corresponding the first instruction of described normal condition with described network management system, before can determining, determined that described network management system is in described normal condition, the state that can determine described network management system does not change, and this is without carrying out corresponding operating again; And if last instruction sending before determining is in corresponding the first instruction of described abnormality with described network management system, can determine that described network management system is before in described abnormality, described mode of operation change device can determine that change has occurred the state of described network management system, can carry out follow-up corresponding operating.
Step 102: when determining that the current state of described network management system changes, generate the first instruction, described the first instruction is used to indicate described message transmission module change current operation mode.
If determine that change has occurred the current state of described network management system, if determine that the current state of described network management system has become described abnormality from described normal condition, or the current state of determining described network management system has become described abnormality from described abnormality, described mode of operation change device can generate described the first instruction, to indicate described message transmission module change current operation mode.
If described network management system is before in described normal condition, the mode of operation before described message transmission module can be: to described network management system, send UDP message message, and can receive the UDP message message that described message buffering module sends, to described message buffering module, do not send UDP message message.If determine that change has occurred the state of described network management system, the state of determining described network management system has become described abnormality from described normal condition, can indicate described message transmission module change current operation mode according to described the first instruction generating, concrete, the mode of operation of described message transmission module can be changed to: the UDP message message being ready for sending to described network management system is sent to described message buffering module, and stop sending UDP message message to described network management system.
If described network management system is before in described abnormality, the mode of operation before described message transmission module can be: the UDP message message being ready for sending to described network management system is sent to described message buffering module, to described network management system, do not send UDP message message.If determine that change has occurred the state of described network management system, the state of determining described network management system has become described abnormality from described abnormality, can indicate described message transmission module change current operation mode according to described the first instruction generating, concrete, the mode of operation of described message transmission module can be changed to: stop sending UDP message message to described message buffering module, beginning sends UDP message message to described network management system, and can receive the UDP message message that described message buffering module sends.
In the embodiment of the present invention, described mode of operation change device is after generating described the first instruction, not only described the first instruction can be sent to described message transmission module, indicate described message transmission module change current operation mode, described the first instruction can also be sent to described message buffering module, can indicate described message buffering module change current operation mode.
Wherein, described mode of operation change device can send to described the first instruction described message transmission module and described message buffering module simultaneously, or can first described the first instruction be sent to described message transmission module, again described the first instruction is sent to described message buffering module, or can first described the first instruction be sent to described message buffering module, again described the first instruction is sent to described message transmission module, concrete sending order can be any.Preferably, can described the first instruction be sent to described message transmission module and described message buffering module simultaneously.
If described network management system is before in described normal condition, the mode of operation before described message buffering module can be: to described message transmission module, send the UDP message message of storage, and can not receive the UDP message message that described message transmission module sends.If determine that change has occurred the state of described network management system, the state of determining described network management system has become described abnormality from described normal condition, can indicate described message buffering module change current operation mode according to described the first instruction generating, concrete, the mode of operation of described message buffering module can be changed to: stop sending UDP message message to described message transmission module, and receive and store the UDP message message that described message transmission module sends.
If described network management system is before in described abnormality, the mode of operation before described message buffering module can be: to described message transmission module, do not send UDP message message, and receive and store the UDP message message that described message transmission module sends.If determine that change has occurred the state of described network management system, the state of determining described network management system has become described abnormality from described abnormality, can indicate described message buffering module change current operation mode according to described the first instruction generating, concrete, the mode of operation of described message buffering module can be changed to: start to send to described message transmission module the UDP message message of storage, and can not receive the UDP message message that described message transmission module sends.
In the embodiment of the present invention, if described network management system in described normal condition, described message transmission module can be normally sends UDP message message to described network management system.If described network management system is in described abnormality, described message transmission module can stop sending UDP message message to described network management system, and the UDP message message being ready for sending to described network management system can be sent to described message buffering module, described message buffering module can be stored the UDP message message of reception.If described network management system has become described normal condition from described abnormality, described message transmission module can restart again to send UDP message message to described network management system, and described message buffering module also can send to described message transmission module by the UDP message message of storage, for described message transmission module, sends to described network management system.
Thus, in described network management system, can stop during in described abnormality sending UDP message message to described network management system, in case described network management system cannot normally receive, can save Internet resources.And be provided with described message buffering module, the UDP message message normally not sending before temporarily can be stored, when becoming described normal condition again, described network management system sends again, can avoid packet loss as far as possible, reduce packet loss, improved the reliability of described network management system.
Referring to Fig. 2, the present invention also provides a kind of mode of operation change device, and described device can be arranged in communication network.Described device can comprise detection module 201, generation module 202 and message transmission module 203.Described device can also comprise message buffering module 204.
Whether detection module 201 can change for detection of the current state of network management system, and described network management system comprises normal condition and abnormality.
When the current state of described network management system is described normal condition, detection module 201 specifically can be for detection of the first response message that whether receives described network management system and send, obtain the first testing result, based on described the first testing result, determine whether the current state of described network management system changes.
When the current state of described network management system is described abnormality, detection module 201 specifically can be for detection of the first response message that whether receives described network management system send in the first duration, obtain the second testing result, based on described the second testing result, determine whether the current state of described network management system changes.
Detection module 201 specifically can be for being, while receiving the first response message that described network management system sends, to determine that the current state of described network management system becomes described abnormality from described normal condition when described the first testing result; Or when described the second testing result in the first duration, do not receive described network management system and send the first response message time, determine that the current state of described network management system becomes described normal condition from described abnormality.
Detection module 201 can also be for detection of the first numerical value described the first response message of whether receiving continuously that described network management system sends, obtain the 3rd testing result, if the 3rd testing result is yes, determine that the current state of described network management system becomes described abnormality from described normal condition.
Generation module 202 can generate the first instruction for when determining that the current state of described network management system changes, and described the first instruction is used to indicate described message transmission module change current operation mode.
In the current state of described network management system, when described normal condition becomes described abnormality, message transmission module 203 specifically can be for stopping sending to described network management system the instruction of UDP message message according to described the first instruction.
In the current state of described network management system, when described abnormality becomes described normal condition, message transmission module 203 specifically can be for starting to send to described network management system the instruction of UDP message message according to described the first instruction.
Message buffering module 204 can be for changing current operation mode according to described the first instruction.
In the current state of described network management system when described normal condition becomes described abnormality, message buffering module 204 specifically can send UDP message message to described message transmission module for stopping according to described the first instruction, and receives the instruction of the UDP message message of described message transmission module transmission.
In the current state of described network management system when described abnormality becomes described normal condition, the UDP message message that message buffering module 204 specifically can send for stop receiving described message transmission module according to described the first instruction, and start to send to described message transmission module the instruction of the UDP message message of storage.
Referring to Fig. 3, the present invention also provides a kind of mode of operation change system, and described system can be arranged in communication network.Described system can comprise network management system 301 and described mode of operation change device 302 as shown in Figure 2.
Whether mode of operation change device 302 can change for detection of the current state of network management system, described network management system comprises normal condition and abnormality, and when determining that the current state of described network management system changes, generate the first instruction, described the first instruction is used to indicate described message transmission module change current operation mode.
The UDP message message that network management system 301 can send for receiving described mode of operation change device, and when described network management system, to described mode of operation, change device during in described abnormality and send the first response message.
Mode of operation change method in the embodiment of the present invention comprises: whether the current state of Sampling network management system changes, and described network management system comprises normal condition and abnormality; When determining that the current state of described network management system changes, generate the first instruction, described the first instruction is used to indicate described message transmission module change current operation mode.
In the embodiment of the present invention, whether current state that first can Sampling network management system changes, when determining that change has occurred the current state of described network management system, can generate described the first instruction, to indicate the message transmission module in mode of operation change device to change current mode of operation.For example, if the current state of described network management system is described normal condition before, detect and determine that change has occurred for it, become described abnormality, when described network management system possibly cannot normally receive information during in described abnormality, can indicate described message transmission module to stop sending message to described network management system, to save Internet resources; If the state of described network management system is described abnormality before, detect and determine that change has occurred for it, become described normal condition, when described network management system can normally receive information during in described normal condition, can indicate described message transmission module to start to send message to described network management system, so that described network management system can be received corresponding information in time, improve the reliability of described network management system, also reduced described network management system to the monitoring of the network equipment, maintenance difficulties.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt complete hardware implementation example, implement software example or in conjunction with the form of the embodiment of software and hardware aspect completely.And the present invention can adopt the form that wherein includes the upper computer program of implementing of computer-usable storage medium (including but not limited to magnetic disc store and optical memory etc.) of computer usable program code one or more.
The present invention is with reference to describing according to flow chart and/or the block diagram of the method for the embodiment of the present invention, equipment (system) and computer program.Should understand can be in computer program instructions realization flow figure and/or block diagram each flow process and/or the flow process in square frame and flow chart and/or block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other reception data processing equipments able to programme to produce a machine, the instruction of carrying out by the processor of computer or other reception data processing equipments able to programme is produced for realizing the device in the function of flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other reception data processing equipments able to programme with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises command device, and this command device is realized the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
These computer program instructions also can be loaded on computer or other reception data processing equipments able to programme, make to carry out sequence of operations step to produce computer implemented processing on computer or other programmable devices, thereby the instruction of carrying out is provided for realizing the step of the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame on computer or other programmable devices.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.