CN107911229A - Based reminding method, device, electronic equipment and the storage medium that operating status changes - Google Patents

Based reminding method, device, electronic equipment and the storage medium that operating status changes Download PDF

Info

Publication number
CN107911229A
CN107911229A CN201710959748.8A CN201710959748A CN107911229A CN 107911229 A CN107911229 A CN 107911229A CN 201710959748 A CN201710959748 A CN 201710959748A CN 107911229 A CN107911229 A CN 107911229A
Authority
CN
China
Prior art keywords
function module
module
function
threshold value
frequency threshold
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710959748.8A
Other languages
Chinese (zh)
Other versions
CN107911229B (en
Inventor
陈梁
徐杨波
袁文君
武子荣
邵卓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN201710959748.8A priority Critical patent/CN107911229B/en
Publication of CN107911229A publication Critical patent/CN107911229A/en
Application granted granted Critical
Publication of CN107911229B publication Critical patent/CN107911229B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring

Abstract

The invention discloses a kind of operating status change based reminding method, device, electronic equipment and storage medium, the described method includes:The running state information sent according to the first function module received, updates state change number of first function module in section of default sampling time;The state table preserved according to itself, determine each objective function module of dependence first function module, search the corresponding each target of each objective function module and remind frequency threshold value, the target that each target reminds frequency threshold value to be opposite first function module reminds frequency threshold value;For each objective function module, judge whether the state change number of the first function module after renewal is more than the target prompting frequency threshold value of the objective function module;If so, the running state information of the first function module received is not sent to the objective function module.Network side equipment resource consumption is reduced in embodiments of the present invention, improves the stability and security of communication network.

Description

Based reminding method, device, electronic equipment and the storage medium that operating status changes
Technical field
The present invention relates to network communication technology field, more particularly to based reminding method, device, the electricity that a kind of operating status changes Sub- equipment and storage medium.
Background technology
In a communication network, especially in alarm monitoring network, network security is most important, when there are network side equipment When abnormal conditions, network side equipment needs to find in time and handle exception for the attack of faults itself either malice.
Existing network side equipment includes multiple function modules, and there are dependence, network between each function module Side apparatus, which finds and handles abnormal, to be carried out based on the structure of common basic network hierarchical mode, in network side equipment Each function module needs the interface of its at least one function module relied on by poll, its corresponding work(is realized to inquire about Energy.Positioned at the corresponding network function of function module of different layers realize between there is dependence by low layer to high level, even certain It is a little high-rise to there is dependence between low layer, exist between corresponding network function is realized with the function module of layer and rely on.Specifically After some function module in network side equipment starts, the configuration needed for it is read in therein first, voluntarily management is matched somebody with somebody The change put, when the operating status of this function module changes, it is necessary to notify to rely on other work(of this function module Can module so that other function modules changed according to this function module after operating status, processing it is issuable this other The change of function module itself functional requirement.
WiFi module connection is started with network side equipment, the workflow that upper layer application gets WiFi connection status is Example:After network side equipment starts, the WiFi module in network side equipment starts, and upper layer application starts, WiFi module search Wi-Fi hotspot, disconnects at this point for the state representation of upper layer application WiFi module for network, after upper layer application perception problems, starts Suspension reconnection mechanism simultaneously opens timer, and upper layer application is relied on by timer every the time interval of setting to inquire about it The interface of WiFi module, to inquire about the connection status of WiFi module, when WiFi module completion connection, and timer checks WiFi network has connected, and carries out network application processing.Or disconnected when WiFi module receives interference, and upper layer application exists During using WiFi network function, when the interface provided by WiFi module gets WiFi module current state to disconnect, upper strata Timer is opened using suspension reconnection mechanism is started, every the connectedness of the interval detection WiFi network of setting, works as WiFi Module completes connection, and timer checks WiFi network and connected, and carries out network application processing.
During actual network service, network operation state is often stablized and changes less, network side relatively Each function module has itself corresponding configuration file in equipment, and the real time content of each configuration file represents corresponding function mould The real-time running state of block.When network environment quickly changes, for example there is the attack of malice, or equipment fault When, the real-time running state of some function module will frequently change, and the operating status in this function module occurs every time During change, other functions of relying on this function module are required for obtaining the real-time running state of this function module, at this moment this A function module will be called by other function modules, so that cause network side equipment resource consumption excessive, communication network Stability and security substantially reduce.
The content of the invention
The present invention provides based reminding method, device, electronic equipment and the storage medium that a kind of operating status changes, to solve It is existing in the prior art obtain function module real-time running state, caused by network side equipment resource consumption it is excessive, communication The problem of stability and low security of network.
Above-mentioned in order to solve the problems, such as, the present invention provides the based reminding method that a kind of operating status changes, this method Including:
The running state information sent according to the first function module received, updates first function module default Sampling time section in state change number;
According to the state table that itself is preserved, determine to rely on each objective function module of first function module, and look into The corresponding each target of each objective function module is looked for remind frequency threshold value, wherein each target reminds frequency threshold value Target for opposite first function module reminds frequency threshold value;
For each objective function module, judging the state change number of first function module after renewal is The no corresponding target of the objective function module that is more than reminds frequency threshold value;Received if so, not sent to the objective function module The running state information of first function module arrived.
Further, for each objective function module, if the state change of first function module after renewal Number is not more than the corresponding prompting frequency threshold value of the objective function module, then is sent to the objective function module described in receiving The running state information of first function module.
Further, the method further includes:
The request of the subscription to first function module of the second function module transmission is received, wherein described subscribe in request Carry the dependence of the identification information and second function module of second function module for first function module Degree;
Degree of dependence of second function module for first function module is preserved in state table;
First function module of significance level according to to(for) current device, and second function module is for described The degree of dependence of first function module, determines the prompting number threshold of the second function module described in relatively described first function module Value;
First function module is directed in state table, preserves second function module, and preserve second work( The prompting frequency threshold value of energy module.
Further, the method further includes:
Receive the second function module transmission unsubscribes request to first function module, wherein described take Disappear the identification information subscribed to and second function module is carried in request;
First function module is directed in the state table, deletes the identification information and phase of second function module To the prompting frequency threshold value of the second function module described in first function module.
Further, it is described according to first function module preserved in the state table for the important of current device Second function module preserved in degree, and state table determines opposite for the degree of dependence of first function module The prompting frequency threshold value of the second function module includes described in first function module:
According to the significance level of first function module, corresponding first weighted value of the significance level is determined;
Second function module of degree of dependence according to to(for) first function module, determines that the degree of dependence corresponds to The second weighted value;
By the first product of the first corresponding weighted value of the significance level, and the degree of dependence it is corresponding second The sum of second product of weighted value, is determined as the corresponding prompting number of the second function module described in relatively described first function module Threshold value.
Further, the method further includes:
The running state information sent according to first function module of reception, to described in the state table the The current operating conditions information of one function module is updated.
Further, the method further includes:
Receive the solicited message of the operating status of inquiry first function module of the 3rd function module transmission;
The current operating conditions information of first function module is searched in the state table, will find described The current operating conditions information of one function module returns to the 3rd function module.
Further, the operating status that first function module received is not sent to the objective function module After information, the method further includes:
Outputting alarm information.
The present invention provides the alarm set that a kind of operating status changes, which includes:
Update module, for the running state information sent according to the first function module received, renewal described first Function module state change number in section of default sampling time;
Determine searching module, for the state table preserved according to itself, determine to rely on each of first function module Objective function module, and search the corresponding each target of each objective function module and remind frequency threshold value, wherein described every The target that a target reminds frequency threshold value to be opposite first function module reminds frequency threshold value;
Judgment module, for for each objective function module, judging first function module after renewal Whether state change number, which is more than the corresponding target of the objective function module, is reminded frequency threshold value;If so, not to the target work( Energy module sends the running state information of first function module received.
Further, the judgment module, is additionally operable to be directed to each objective function module.If described first after renewal The state change number of function module is not more than the corresponding prompting frequency threshold value of the objective function module, then triggers sending module;
Described device further includes:
Sending module, for for each objective function module, if the state of first function module after renewal Change the prompting frequency threshold value that number is not more than the objective function module, then sent to the objective function module described in receiving The operating status of first function module changes information.
Further, described device further includes:
Preserving module, the request of the subscription to first function module sent for receiving the second function module, wherein The identification information that second function module is carried in request and second function module of subscribing to is for described first The degree of dependence of function module;Degree of dependence of second function module for first function module is preserved in state table; First function module of significance level according to to(for) current device, and second function module is for first function The degree of dependence of module, determines relatively described first function module, the prompting frequency threshold value of second function module;In state First function module is directed in table, preserves second function module, and preserve the prompting number threshold of second function Value.
Further, the update module, is additionally operable to receive that second function module sends to first function Module unsubscribes request, wherein described unsubscribe the identification information that second function module is carried in request; First function module is directed in the state table, deletes the identification information and relatively described first of second function module The prompting frequency threshold value of second function module described in function module.
Further, the preserving module, specifically for the significance level according to first function module, determines that this is heavy Want corresponding first weighted value of degree;Second function module of degree of dependence according to to(for) first function module, really Corresponding second weighted value of the fixed degree of dependence;By the first product of the first corresponding weight of the significance level, and should be according to Rely the sum of the second product of the second corresponding weighted value of degree, be determined as the second work(described in relatively described first function module Can the corresponding prompting frequency threshold value of module.
Further, the update module, is additionally operable to the operation sent according to first function module of reception Status information, is updated the current operating conditions information of the first function module described in the state table.
Further, the sending module, is additionally operable to receive inquiry the first function mould that the 3rd function module is sent The solicited message of the operating status of block;The current operating conditions information of first function module is searched in the state table, The current operating conditions information of first function module found is returned into the 3rd function module.
Further, described device further includes:
Output module, for not sending the prompting of the first function module operating status change to second function module After information, outputting alarm information.
The present invention provides a kind of electronic equipment, including:Processor, communication interface, memory and communication bus, wherein, Processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor, during for performing the computer program stored on memory, realizes the method described in any of the above-described Step.
The present invention provides a kind of computer-readable recording medium, the computer-readable recording medium memory contains calculating Machine program, the computer program realize the method and step described in any of the above-described when being executed by processor.
The present invention provides based reminding method, device, electronic equipment and the storage medium that a kind of operating status changes, the side Method includes:The running state information sent according to the first function module received, updates first function module default Sampling time section in state change number;According to the state table that itself is preserved, determine to rely on first function module Each objective function module, and search the corresponding each target of each objective function module and remind frequency threshold value, wherein institute State the target that each target reminds frequency threshold value to be opposite first function module and remind frequency threshold value;For each target work( Energy module, judges whether the state change number of first function module after renewal is corresponding more than the objective function module Target reminds frequency threshold value;If so, the operation of first function module received is not sent to the objective function module Status information.In embodiments of the present invention, the first work(there are dependence is preserved in the management module in network side equipment Energy module and objective function module, and preserve the target for each objective function module that it is relied on relative to the first function module Frequency threshold value is reminded, after the running state information of the first function module transmission is received, updates the state of the first function module Change number, and when the state change number exceedes the prompting frequency threshold value of the objective function module, not to the objective function Module sends the running state information, and the operating status avoided in sampling time section the first function module of internal cause frequently changes, Caused by network side resource consumption it is excessive, so as to reduce network side equipment resource consumption, improve the stability of communication network And security.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is attached drawing needed in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the schematic diagram for the reminder process that a kind of operating status that the embodiment of the present invention 1 provides changes;
Fig. 2 is the function module graph of a relation for the network side equipment operation that the embodiment of the present invention 6 provides;
Fig. 3 is the flow chart for the network side equipment operation that the embodiment of the present invention 6 provides;
Fig. 4 A are the schematic diagram for a kind of electronic equipment that the embodiment of the present invention 7 provides;
Fig. 4 B are the alarm set schematic diagram that a kind of operating status provided in an embodiment of the present invention changes.
Embodiment
In order to reduce network side equipment resource consumption, the stability and security of communication network, the embodiment of the present invention are improved Provide based reminding method, device, electronic equipment and storage medium that a kind of operating status changes.
In order to make the object, technical solutions and advantages of the present invention clearer, make below in conjunction with the attached drawing present invention into one It is described in detail on step ground, it is clear that described embodiment is only the part of the embodiment of the present invention, rather than whole implementation Example.Based on the embodiments of the present invention, those of ordinary skill in the art are obtained without making creative work Every other embodiment, belongs to the scope of protection of the invention.
Embodiment 1:
Fig. 1 is the schematic diagram for the reminder process that a kind of operating status provided in an embodiment of the present invention changes, which includes Following steps:
S101:The running state information sent according to the first function module received, updates first function module State change number in section of default sampling time.
The based reminding method that operating status provided in an embodiment of the present invention changes is applied to the management module in network side equipment, The network side equipment includes the equipment such as router, gateway and repeater, which is that can update the first function module The equipment of state change number in section of default sampling time, the management module in network side equipment can be that network side is set Module, first function modules such as CPU or MCU in standby be located in network side equipment, and the first function module is to be capable of providing pair Answer the behaviour of the hardware module or software module of function, such as the first function module for network interface card hardware module either network side equipment Make system or application software module.
Change when the first function module in network side equipment detects that the current operating conditions of itself are sent, can be to network Management module in side apparatus sends running state information, can only change in the running state information including first function module Running state information after change, can also include the operating status before first function module changes and the operating status after change Information etc.., can basis after management module in network side equipment receives the running state information of the first function module transmission The running state information, state change number of the first function module of renewal in section of default sampling time.
The default sampling time Duan Weicong a certain moment starts the default time span corresponding period, as sampling when Between a certain moment of beginning of section can be the morning 9:00 or 9:05 specific one time point of grade or by the first function At the time of the time point that first time operating status after module startup changes starts as sampling time section etc., the default time Length can be 5 milliseconds, 2 seconds or 1 minute etc..
It can be in the first work(locally preserved to update state change number of first function module in sampling time section Energy module increases default value on the state change number in sampling time section, which can be for 0.5,1 or 2 etc. Numerical value, such as within the present sample period, the state change number of the first function module locally preserved is 1, default value For 1, then the state change number for updating the first function module is 2.
The running state information that first function module is sent includes the information of the operating status of the function module, or itself Operating status relevant information, such as when the first function module is application software module, fortune that the first function module is sent It can include current application normal operation in row status information, or the operating status of itself such as current application outage Information, when the first function module is interface module, the running state information that the first function module is sent can include network interface card mould Block normal operation, and further include the IP address got during normal operation or gateway information etc. and the phase of the operating status of itself Close information.
S102:According to the state table that itself is preserved, determine to rely on each objective function module of first function module, And search the corresponding each target of each objective function module and remind frequency threshold value, wherein each target reminds number Threshold value is that the target of opposite first function module reminds frequency threshold value.
State table is preserved in the management module of network side equipment, state table includes the first function module, relies on first Each objective function module of function module, and the corresponding each target of each objective function module remind frequency threshold value, wherein The target that each target reminds frequency threshold value to be opposite first function module reminds frequency threshold value.That is it is every in state table It is that each target corresponding with respect to each objective function module of the first function module reminds number threshold that a target, which reminds frequency threshold value, Value.
It can be reception that management module, which preserves in state table and relies on each objective function module of the first function module, Two function modules are asked for the subscription of the first function module, in state table using the second function module as depending on the first function The objective function module of module, which is preserved or receives user, is directed to the first function module, preserves a certain target work( Preserved after the preservation instruction of energy module etc..
Each objective function module target corresponding with respect to the first function module that management module preserves reminds frequency threshold value Can be that management module receives network operation person for relative to the first function module, the target prompting of each function module input Directly preserved after frequency threshold value or management module is according to the first function module, objective function module and default time Number thresholding algorithm, preserved after calculating etc..
The objective function module for relying on the first function module refers to directly or indirectly need to rely on the first function module The objective function module of energy normal operation.
Such as first function module be network interface card hardware module, DHCP (Dynamic Host Configuration Protocol, dynamic host configuration protocol) module operationally needs to pay close attention to the operating status of network interface card hardware module, it is therefore described DHCP modules are to rely on the objective function module of network interface card hardware module.
It can also be multiple, shape that the objective function module for the first function module of dependence that state table includes, which can be one, It can also be multiple that the first function module that state table includes, which can be one,.
Relative to same first function module, the corresponding target of each objective function module reminds frequency threshold value can phase Together can be different;Relative to the first different function modules, the corresponding target of same objective function module reminds frequency threshold value can With it is identical can be different.
S103:For each objective function module, the state change of first function module after renewal is judged Whether number, which is more than the corresponding target of the objective function module, is reminded frequency threshold value;If so, S104 is carried out, if not, carrying out S105。
For each objective function module, management module is according to the state change number of the first function module after renewal The no target more than the objective function module reminds the judging result of frequency threshold value, performs corresponding step.
S104:The running state information of first function module received is not sent to the objective function module.
If management module judges that the state change number of the first function module after renewal is more than the objective function module Target remind frequency threshold value, it may be considered that the default sampling time section in, the state change number of the first function module More frequently, in order to reduce the resource consumption of network side equipment, and ensure logical there may be exception with respect to the objective function module The safety and stability of communication network, the operating status that the first function module received is not sent to the objective function module are believed Breath.
S105:The running state information of first function module received is sent to the objective function module.
For each objective function module, if the state change number of first function module after renewal is not more than The corresponding prompting frequency threshold value of the objective function module, then send the first function mould received to the objective function module The running state information of block.
If management module judges that the state change number of the first function module after renewal is not more than the objective function mould The target of block reminds frequency threshold value, it is believed that in section of default sampling time, relative to the objective function module this first The state change number of function module is normal, then in order to ensure the objective function module normal operation, to the objective function module Send the running state information of the first function module received.
The running state information of the first function module sent to the objective function module can be carried in prompting message In be transmitted, the running state information of the first function module is removed in the prompting message, can also carry the first function mould Running state information before block change etc..
Due to preserving the first work(there are dependence in the management module in network side equipment in the embodiment of the present invention Energy module and objective function module, and preserve the target for each objective function module that it is relied on relative to the first function module Frequency threshold value is reminded, after the running state information of the first function module transmission is received, updates the state of the first function module Change number, and when the state change number exceedes the prompting frequency threshold value of the objective function module, not to the objective function Module sends the prompting message that operating status changes, and avoids the operating status frequency in sampling time section the first function module of internal cause Numerous change, caused by network side resource consumption it is excessive, so as to reduce network side equipment resource consumption, improve communication network Stability and security.
Embodiment 2:
In order to improve the operational efficiency of network side equipment, on the basis of the various embodiments described above, in the embodiment of the present invention, institute The method of stating further includes:
The running state information sent according to first function module of reception, to described in the state table the The current operating conditions information of one function module is updated.
The current operating conditions information of the first function module is preserved in the state table of the management module of network side equipment, can In order to the first function module itself, and each objective function module dependent on the first function module, for the first function mould The running state information of block is taken, and improves the operational efficiency of network side equipment.
Management module updates the first work(after the running state information of the first function module transmission is received in state table The current operating conditions information of energy module.Management module can not only preserve the current fortune of the first function module in state table Row status information, can also preserve the running state information before the first function module changes every time.
Usually,, can be to when a certain function module starts for the first time after the power is turned on after each network side equipment electrifying startup Management module sends the running state information of itself, and to inform that management module itself has been started up completing, management module judges shape Whether the function module is preserved in state table, if it is not, using the function module as the first function module in state table Preserved, and the state change number of first function module is arranged to default initial change number, it is default initial It can be for 0,1 or 5 etc. to change number.
Each first function module can be stored in management module for the significance level of current device, so as to manage mould Block directly preserves significance level of each first function module for current device in state table, can also be stored in each mould In block, after the first function module starts, significance level of first function module for current device, pipe are sent to management module Reason module preserves the significance level of the first function module for receiving for current device in state table.
First function module can carry the information of its significance level, then for each when sending running state information The first time of first function module after network side equipment electrifying startup starts, and it is right all to carry itself to management module transmission In the running state information of the significance level of current device, first function module that management module judges to receive is for current The significance level of equipment, whether first function module preserved with itself is consistent for the significance level of current device, if It is inconsistent, then the significance level according to first function module that receives for current device, update itself preservation this Significance level of one function module for current device.
First function module is parsed when sending running state information to management module for the ease of management module, Can be that running state information is packaged arrangement according to the form of setting, management module receives the operating status after arranging Information, is parsed according to the analytic method of setting, and the running state information after parsing is preserved.
State table in management module can be permanent preserves or clear in each network side equipment power down Remove.It can be that record has significance level of each first function module for current device in management module, therefore work as network side Device power, after the first function module electrifying startup, the running state information of itself is sent to management mould by the first function module After block, management module is by the first function module, and the running state information of the first function module is saved in state table, according to first Function module, determines significance level of first function module for current device, and is directed to the first function module, by the first function Module is saved in state table for the significance level of current device.
Specifically, in order to ensure the quick operation of equipment, it is pre-created in management module and preserves support operating status The state table of Information Access, include at least in state table the identification information of each first function module, the first function module for The significance level of current device, the first function module current operating conditions information, each second dependent on the first function module For the first function module degree of dependence, the information preserved in state table is as shown in the table for function module and each second function:
As shown above, the first function module preserved in state table has interface module, anomaly module, module respectively 2nd, module 3 ... module 12 and module 13, by taking interface module as an example, the identification information of the first function module preserved in state table is Interface module, the first function module are that the 3, first function module current operating conditions information is for the significance level of current device {IP:10.0.0.1 ... }, represent that the IP address that interface module is got is the relevant operational state information such as 10.0.0.1, rely on In the first function module each second function module for anomaly module, module 3 and module 12 etc., anomaly module pair In the degree of dependence of the first function be 0, module 3 is 1 for the degree of dependence of the first function module, module 12 is for the first function The degree of dependence of module is 3, and the information of other the first function modules is similar to interface module, does not do in embodiments of the present invention superfluous State.
In addition, the first function module is smaller for the corresponding value of significance level of current device in state table, then first Function module is higher for the significance level of current device, significance level corresponding value of first function module for current device Bigger, then the first function module is lower for the significance level of current device, and the second function module is for the first function mould The corresponding value of degree of dependence of block is smaller, then second function module is higher for the degree of dependence of the first function module, and second Function module is bigger for the corresponding value of degree of dependence of the first function module, then second function module is for the first function mould The degree of dependence of block is lower, such as interface module is 3 for the significance level of current device, then interface module is for current device Significance level be 3rd level, anomaly module is 0 for the degree of dependence of the first function module, then anomaly module pair In the first function module degree of dependence for the superlative degree.
When management module adds the first function module in state table, by the first function module identification information and this first Function module is added to corresponding position for the significance level of current device.
For example, user's WiFi network interface card moulds in first time manual unlocking network side equipment after the unlatching of current network side apparatus Block, WiFi interface modules get the relevant running state information of the network operations such as IP address, gateway and itself for currently setting Standby significance level, by running state information and itself is organized into corresponding form transmission for the significance level a of current device To management module.Due to being first switching on for WiFi interface modules, there is no the WiFi in the state table preserved in management module The relevant information of interface module, then management module WiFi interface modules are created into a line in state table and preserve WiFi network interface card moulds The running state information of block, is stored in the corresponding row of state table, and preserves important journey of the WiFi interface modules for current device Spend for a, the state change number of WiFi interface modules is arranged to default initial changes number 0.If user changes The network site of WiFi interface modules connection, WiFi interface modules reacquire relevant to network operations such as IP address, gateways Running state information, rearranges into the running state information of corresponding form, and management module is again whole according to WiFi interface modules The corresponding row of running state information renewal state table of correspondence form after reason, and to the state change number of WiFi interface modules It is updated.
In embodiments of the present invention, management module preserves the first function module in the state table that itself is preserved, easy to this First function module itself and each objective function module dependent on first function module are taken, and improve the first function mould The acquisition speed of block and each objective function module dependent on the first function module, so as to improve the operation effect of network side equipment Rate.
Embodiment 3:
In order to ensure the normal operation of each objective function module, on the basis of the various embodiments described above, the present invention is implemented In example, the method further includes:
The request of the subscription to first function module of the second function module transmission is received, wherein described subscribe in request Carry the dependence of the identification information and second function module of second function module for first function module Degree;
Degree of dependence of second function module for first function module is preserved in state table;
First function module preserved in state table of significance level according to to(for) current device, and second work( Energy module determines relatively described first function module, the second function mould for the degree of dependence of first function module The prompting frequency threshold value of block;
First function module is directed in state table, preserves second function module, and preserve second work( The prompting frequency threshold value of energy module.
Each second function module corresponds to different application functions, for the second different function modules, if phase To the first function module, the prompting frequency threshold value for each the second function module setting for relying on the first function module is identical , then when the state change number of the first function module reaches the identical prompting frequency threshold value, in network side equipment resource In the case of consumption is normal, it is possible to some second function modules occur because the current fortune of the first function module can not be got Row status information, causes those second function modules not work normally, then it is every to preserve opposite first function module for management module The corresponding prompting frequency threshold value of a second function module, rather than unified prompting frequency threshold value is used, so as to a certain degree On ensure that the normal operation of objective function module.
, can during the operating status for the first function module that the second function module preserves in the state table for obtaining management module To be to send the solicited message inquired about the running state information of the first function module to management module, management mould can also be received The running state information for the first function module that block directly transmits.
If some second function module is higher to the degree of dependence of the first function module, which may The running state information of the first function module of acquisition in real time is needed, the normal operation of itself is just can guarantee that, so second function Module by sending the solicited message inquired about the running state information of the first function module to management module, that is, this second Function module needs actively to go in state table to obtain the running state information of its first function module relied on, then when the first work( When the operating status of energy module changes, which possibly can not get the operation of the first function module in time Status information, so that corresponding processing can not be made in time.
So when if the second function module is higher to the degree of dependence of the first function module, management mould can be directly received Block changes for the operating status of the first function module, the running state information of the first function module directly transmitted, this Sample just needs the second function module to subscribe to the first function module, then when the operating status of the first function module changes, management Subscription operation of the module according to the second function module for the first function module, the first function module is sent to the second function module Running state information, objective function module performs countermeasure according to the current running state information of the first function module and completes Functions of modules.
Management module receives the request of the subscription to the first function module of the second function module transmission, wherein subscribing to request In carry the identification information of the second function module, after management module receives the subscription request of the second function module transmission, root According to identification information, for the first function module, preserved the second function module as objective function module.
In addition it can also be in the subscription request that the second function module is sent and carry the second function module for the first work( The degree of dependence of energy module, management module are directed to the first function module, are carried out the second function module as objective function module Preserve, degree of dependence of second function module for the first function module is carried out as the degree of dependence of the objective function module Preserve.
For example, network side equipment normal operation, DHCP workflows are normal, in the running state information of DHCP comprising pair " the dynamic host configuration management to a certain USB network card ", have subscribed " interface module operating status " event, and there is provided correspond to " degree of dependence ";When sometime, there is user to extract this USB network card in network side equipment, management module perceives USB The change of network interface card, the current operating conditions information updating state table using situation of change as the interface module, " network interface card that DHCP is subscribed to The corresponding prompting function of module operating status " is triggered, and DHCP receives the running state information that USB network card has been pulled out, and performs " the dynamic host configuration management of this USB network card " is eliminated to the operation of the running state information of DHCP, DHCP will be newly-generated Self-operating status information be sent to management module preservation be updated in state table.
Requirement of the alarm monitoring network to network stabilization is high, the operation of each function module in expectation network side apparatus Status information can be responded timely, and be not intended to continually respond in order to avoid seriously dragging the operation of slow network side equipment.It can not keep away The problems such as network attack of malice can be suffered from the process of running by exempting from ground alarm monitoring network, potential network side equipment failure Some caused function module frequently changes, so as to cause the resource of network side equipment largely to be taken, sets network side equipment Situation without response.Once prompting of the management module to the second function module in network side equipment, it is meant that to management module With the once calling of the second function module, so reminding, number is more frequent, and the resource consumption of network side equipment is bigger, and risk is also It is bigger, the prompting time of its opposite the first function module relied on is set for the second function module in network side equipment for this Number threshold value, to control the prompting number under abnormal conditions, to control the resource consumption of network side equipment, maintains the stability of network And security.
For each second function module, management module is relied on according to second function module preserved in state table First function module is for the significance level of current device, and dependence journey of second function module for the first function module Degree, determines the prompting frequency threshold value of opposite first function module second function module.
Management module determines the prompting frequency threshold value of opposite first function module second function module, can be by first Function module for current device significance level and second function module for the degree of dependence of the first function module and, It is determined as the prompting frequency threshold value of the first function module second function module relatively or according to the first function module pair The degree of dependence and default prompting number of significance level, second function module for the first function module in current device Thresholding algorithm, determines opposite first function module, the prompting frequency threshold value of second function module.
Management module is directed to the first function module in state table, is protected second function module as objective function module Deposit, and preserved the prompting frequency threshold value of second function module as the prompting frequency threshold value of objective function module.
In embodiments of the present invention, for the second different function modules, opposite first function module is determined, each second The corresponding prompting frequency threshold value of function module, ensure that the normal operation of function module.
Embodiment 4:
It is described in the embodiment of the present invention on the basis of the various embodiments described above in order to improve the flexibility of network side equipment Method further includes:
Receive the second function module transmission unsubscribes request to first function module, wherein described take Disappear the identification information subscribed to and second function module is carried in request;
First function module is directed in the state table, deletes the identification information and phase of second function module To first function module, the prompting frequency threshold value of second function module.
When some corresponding function of the second function module does not use, or the second function module need not be by management mould The running state information of first function module is directly transmitted by block, then the second function module is sent to first to management module Function module unsubscribes request, and management module is directed to the first function module in state table, deletes according to request is unsubscribed Except the identification information of the second function module, the second function module is for the degree of dependence of the first function module, and opposite first work( Energy module, the prompting frequency threshold value of the second function module, improves the flexibility of network side equipment, first is directed in management module After function module deletes the information of the second function module, reduce the quantity amount of storage in management module, drop to a certain extent The low resource consumption of network side equipment.
What the second function module was sent carries the second function module to unsubscribing in request for the first function module Identification information, additionally since being to be sent for the first function module, so also needing to carry in this unsubscribes request The identification information of first function module.
When the second function module is sent to the first function module after unsubscribing request to management module, management module exists It is directed to the first function module in state table, deletes the information of the second function module, for the second function module after unsubscribing, Or/and other function modules of subscription operation were not carried out, the first function module that management module actively will not be relied on it The prompting message that changes of operating status be transmitted, if the second function module or other function modules want to obtain its institute according to The running state information of the first bad function module is, it is necessary to send the operating status of the first function module of inquiry to management module Solicited message.
For the management module in network side equipment, the method further includes:
Receive the solicited message of the operating status of inquiry first function module of the 3rd function module transmission;
The current operating conditions information of first function module is searched in the state table, will find described The current operating conditions information of one function module returns to the 3rd function module.
The first function module of inquiry that management module in network side equipment is sent according to the 3rd function module received Operating status solicited message, the running state information of the first function module is inquired about in state table, by the first function module Running state information return to the 3rd function module, the 3rd function module can be the second function mould after unsubscribing Block, can be other function modules for not carrying out subscription operation.
The current operating conditions information of the first function module is preserved in the state table of management module, to the 3rd function module The running state information of the first function module returned is the current operating conditions information of the first function module.
The process of the current operating conditions information of the first function module is preserved in the state table of management module to be, institute The method of stating further includes:
The running state information sent according to first function module of reception, to described in the state table the The current operating conditions information of one function module is updated.
Because the first function module just can send itself only when the operating status of itself changes to management module Running state information, so after management module receives the running state information that the first function module is sent, it may be determined that the The current operating conditions of one function module are changed, and determine the running state information of the first function module after changing Running state information for the first function module received, management module is according to the operation shape of the first function module after change State information, the current operating conditions information for the first function module in the state table that itself is preserved are updated.
After the completion of the current operating conditions information updating of the first function module in the state table preserved in management module, The prompting message that the first function module operating status that management module is sent to objective function module and the 3rd function module changes The running state information of first function module of middle carrying, for the current operating conditions information of the first function module after renewal.
Management module for the running state information of the first function module change, to objective function module or the 3rd work( The running state information for the first function module that energy module is sent, is newest current after the first function module changes Running state information, can so ensure objective function module and the 3rd function module, can working as according to the first function module Preceding running state information, makes corresponding processing.
In embodiments of the present invention, when some corresponding function of the second function module does not use, or the second function The running state information of first function module need not be directly transmitted by module by management module, then the second function module to Management module sends the request that unsubscribes to the first function module, and management module deletes the second function for the first function module Module, improves the flexibility of network side equipment.
Embodiment 5:
In order to further ensure the safety and stability of communication network, on the basis of the various embodiments described above, the present invention In embodiment, the significance level according to first function module preserved in state table for current device, and state Second function module preserved in table determines relatively described first function for the degree of dependence of first function module Module, the prompting frequency threshold value of second function module include:
According to the significance level of first function module, corresponding first weighted value of the significance level is determined;
Second function module of degree of dependence according to to(for) first function module, determines that the degree of dependence corresponds to The second weighted value;
By the first product of the first corresponding weighted value of the significance level, and the degree of dependence it is corresponding second The prompting frequency threshold value corresponding with second function module is determined as of second product of weighted value.
Management module determines opposite first function module, the corresponding prompting frequency threshold value of each second function module, and will The corresponding maximum processing capability for reminding frequency threshold value as network side equipment in the sampling time of each second function module, if The operating status of first function module frequently changes, and when the state change number of the first function module exceedes a certain second work( Can module it is corresponding remind frequency threshold value when, management module to second function module send the first function module operation shape The prompting message that state changes, avoids network side equipment resource and is consumed risk totally, ensure that communication to a certain extent The safety and stability of network.
Management module is determining opposite first function module, and the second function module is corresponding when reminding frequency threshold value, can be with First according to the significance level of the first function module, corresponding first weighted value of the significance level is determined.The state table of management module First function module of middle preservation can be divided into 1-aLv grade for the significance level of current device, and aLv is any just whole Number, the significance level of the first function module can be that the significance level of bigger first function module of numerical value of aLv is higher, or The significance level of smaller first function module of numerical value of aLv is higher, the weight of each first function module preserved in state table Want degree identical possible different, can be that the significance level of some the first function module is higher in embodiments of the present invention, Then the stable operation of first function module for current device is played the role of more important.
Management module can determine corresponding first weight of the significance level according to the significance level of the first function module Value, management module can itself preserve the correspondence of each significance level and the first weighted value, according to some the first function The significance level of module, determines corresponding first weighted value of first function module.Assuming that the significance level of the first function module Corresponding first weighted value is aPow, and aPow is the positive number between 0 to 1, because the significance level of each first function module can The identical possibility of energy is different, then the corresponding first weighted value aPow possibility of the significance level of each first function module is identical may not Together.
Management module is determining opposite first function module, and the second function module is corresponding when reminding frequency threshold value, can be with It is after corresponding first weighted value of significance level of the first function module is determined, according to the second function module for first work( The degree of dependence of energy module, determines corresponding second weighted value of the degree of dependence.Second preserved in the state table of management module Function module can be divided into 1-bLv grade with respect to the degree of dependence of first function module, and bLv is any positive integer, the Two function modules relatively should with respect to bigger second function module of numerical value that the significance level of first function module can be bLv The degree of dependence of first function module is higher or bigger second function module of the numerical value of bLv is with respect to first function The degree of dependence of module is lower, degree of dependence of each second function module preserved in state table with respect to first function module May be identical possible different.Can be some second function module in embodiments of the present invention with respect to first function module according to Bad degree is higher, then the normal operation of second function module is got over respect to the degree of dependence of the operating status of first function module It is high.
Management module can determine the degree of dependence according to degree of dependence of second function module with respect to the first function module Corresponding second weighted value, management module can itself preserve the correspondence of each degree of dependence and the second weighted value, root According to degree of dependence of some second function module with respect to the first function module, determine second function module with respect to the first function mould Second weighted value of block.Assuming that the second function module the second weighted value corresponding with respect to the degree of dependence of the first function module is BPow, bPow are the positive number between 0 to 1, because each second function module may with respect to the degree of dependence of the first function module Identical possibility is different, then each second function module first weighted value bPow corresponding with respect to the degree of dependence of the first function module May be identical possible different.Corresponding different network side equipment, aPow and bPow can with it is identical can be different, aPow and bPow's With for 1, the determination process of aPow and bPow can be come definite, by a large amount of by substantial amounts of pressure test under normal conditions Pressure test can obtain correspond to same network side equipment, the constant that aPow and bPow are to determine.
So significance level aLv, the significance level corresponding first weighted value of the management module according to the first function module APow, the second function module are with respect to the degree of dependence bLv of the first function module and corresponding second weighted value of the degree of dependence BPow, determines that the corresponding prompting frequency threshold value of second function module is by the first corresponding weighted value of the significance level First product aLv*aPow, and the second product bLv*bPow of corresponding second weighted value in the degree of dependence region and be determined as The corresponding prompting frequency threshold value, that is, Lv=aLv*aPow+bLv*bPow of second function module, and aPow+bPow=1.
When the significance level of the first function module is a, degree of dependence of second function module with respect to the first function module For b, then with respect to the first function module, second function module is corresponding to remind frequency threshold value Lv=a*aPow+b*bPow.
Assuming that in a sampling time section nTime, there occurs n change, pipe for the operating status of a certain first function module Each second function module that module subscribes to first function module for being directed in state table is managed, determines first function module State change frequency n 1 >=a certain second function module corresponding prompting frequency threshold value Lv when, it is believed that first function module can It can be abnormal, may influence whether the normal operation of network side equipment, then first work(will be sent to second function module The prompting passage that energy module operating status changes is closed;And in section of next sampling time, by first function module State change number resets to 0, into abnormal protection state phase, and continue close to second function module send this first The prompting passage that function module operating status changes.In the present sample period and in abnormal protection state phase, mould is managed Block continues to record the operating status number of the first function module in the present sample period.If in the present sample period and In abnormal protection state phase, the problem of state change 2 >=Lv of frequency n of the first function module, is not present, then management module Think that the first function module recovers normal condition, in present sample period corresponding next sampling time section, open to Second function module sends the prompting passage of the first function module operating status change, releases abnormal protection state;But If the problem of state change 2 >=Lv of frequency n of the first function module still exists, continue to keep current prompting passage to close Closed state and abnormal protection state, if in section of a certain sampling time the problem of state change number >=Lv of the first function module It is not present, is just opened in corresponding next sampling period and remind passage to release abnormal protection state.
Due in embodiments of the present invention, when the state change number of the first function module exceedes a certain second function module During corresponding prompting frequency threshold value, the operating status that management module does not send the first function module to second function module changes Prompting message, avoid network side equipment resource to a certain extent and be consumed risk totally, ensure that communication network Safety and stability.
Embodiment 6:
In order to further ensure the safety and stability of communication network, on the basis of the various embodiments described above, the present invention In embodiment, after the prompting message that the first function module operating status change is not sent to second function module, The method further includes:
Outputting alarm information.
If in sampling time section, the state change number of the first function module is opposite more than some second function module The corresponding prompting frequency threshold value of first function module, then it is assumed that first function module is there may be exception, then management module Outputting alarm information, in order to which network operation person is handled accordingly for warning information, further ensures communication network Safety and stability.
Which function module is management module indicate there occurs exception in the warning information of output, and management module is in output announcement It can be the network operation of communication network where warning information is informed in a manner of mail, short message or buzzer etc. during alert information Abnormal cause present in communication network where person or management module are first found, and the abnormal cause searched out Carry in the warning information person etc. that sends jointly to network operation.
When network side equipment has exception, management module can make maintenance measure in time, such as find abnormal former Cause, and notify network operation person's current network side apparatus to need to safeguard in the presence of abnormal as far as possible.
If each first function module is directed in the state table of management module, using anomaly module as first work( The corresponding objective function module of energy module is preserved, and preserves dependence of the anomaly module with respect to first function module Degree is highest, then opposite first function module in above-described embodiment, and objective function module is corresponding to remind number threshold The definite method Lv=a*aPow+b*bPow of value, wherein Lv are the corresponding prompting frequency threshold value of anomaly module, a first For function module for the significance level of current device, aPow is corresponding first weight of significance level of each first function module Value, b are degree of dependence of the objective function module for the first function module, and bPow is objective function module for the first function mould Corresponding second weighted value of degree of dependence of block.
If objective function module of the anomaly module as each first function module, and anomaly module phase Degree of dependence to each first function module is highest, then relatively each first function module, and anomaly module corresponds to B it is identical, and the constant that aPow in current network side apparatus and bPow be to determine is obtained by substantial amounts of pressure test, then phase To each first function module, the corresponding aPow of each first function module is identical, relatively each first work(of anomaly module Can module bPow it is identical, then relatively each first function module, the corresponding prompting frequency threshold value of anomaly module is and each First function module is directly related for the significance level of current device.
The function module graph of a relation that Fig. 2 runs for network side equipment provided in an embodiment of the present invention, state as shown in Figure 2 The warning net management module of priority driven is management module, and the state table first that management module preserves is classified as the of preservation The identification information of one function module, is respectively interface module, anomaly module and module 2 etc..State table second is classified as guarantor The first function module deposited is respectively that interface module is for the significance level of current device for the significance level of current device 3rd, anomaly module is 1 for the significance level of current device and module 2 is 3 etc. for the significance level of current device. The current operating conditions information for the first function module that the row of state table the 3rd preserve, is respectively the current operating conditions of interface module Information includes { IP:10.0.0.1 ... }, represent the IP address that gets of interface module for the relevant operational states such as 10.0.0.1, The current operating conditions information of anomaly module includes { interface module failure ... }, represents that anomaly module finds network interface card The relevant operational states such as module failure, the current operating conditions information of module 2 include { state 1, state 2 ... }, representation module 2 Current state information be state 1 and the grade relevant operational state of state 2.The row of state table the 4th represent to subscribe to the first function module Second function module, is attention rate in bracket, represents degree of dependence of second function module with respect to the first function module, respectively For interface module, anomaly module is 0 i.e. highest with respect to the degree of dependence of interface module, and module 3 is with respect to interface module Degree of dependence is 1, and module 12 is 3 etc. relative to the degree of dependence of interface module, and for anomaly module, module 4 is opposite The degree of dependence of anomaly module is 1, and the degree of dependence of 5 relative anomalies discovery module of module is 2 etc., different for module 2 The degree of dependence of normal discovery module counter mould 2 is the 0 i.e. superlative degree, and the degree of dependence of 6 counter mould 2 of module is 2,4 phase of module Degree of dependence to module 2 is 2, and in the embodiment shown in Figure 2, the numerical value of significance level and degree of dependence is smaller, represents weight Want degree higher higher with degree of dependence.
By taking anomaly module as an example, the function between function module and the state of management module interact including the state of depositing, Subscribe to, take state and prompting, when the operating status of anomaly module, which is sent, to be changed, the fortune after changing is sent to management module Row status information, after management module receives the running state information of anomaly module transmission, in the state table that itself is preserved The state change number of middle update abnormal discovery module, and carried out more for the current operating conditions information of abnormal sending module Newly.If the subscription that anomaly module is sent for interface module to management module is asked, wherein carried in subscription request Have anomaly module identification information and anomaly module to the degree of dependence 0 of interface module, management module receives different In the subscription request that normal discovery module is sent, the mark of anomaly module is added in the corresponding row of the 4th the first function module of row Know information and the degree of dependence 0 to first function module.If anomaly module wants the current operation shape of acquisition module 2 State information, then anomaly module is to the solicited message of the operating status of management module transmission enquiry module 2, and management module is in shape The current operating conditions information { state 1, state 2 ... } of searching module 2 in state table, by the current operating conditions information of module 2 { state 1, state 2 ... } returns to anomaly module.If the operating status hair for the interface module that anomaly module is subscribed to After sending change, management module judges that state change number of the interface module within the present sample period is not more than, with respect to network interface card Module, the corresponding prompting frequency threshold value of anomaly module, then management module to anomaly module send interface module fortune Row status information.Interface module and other first function modules of the grade of module 2 are similar to anomaly module, in the embodiment of the present invention In do not repeat.
The various embodiments described above are illustrated with a specific embodiment below, Fig. 3 is what the embodiment of the present invention 6 provided The flow chart of network side equipment operation, comprises the following steps:
S301:Open equipment:Network side equipment is opened, and the management module in network side equipment is opened, and management module is certainly State table is preserved in the memory of body.
The state table preserved in management module can be after management module unlatching, create in memory.
Network operation person is had found when the sampling time, section nTime was 5s (second), in sampling time section by pressure test Prompting frequency threshold value be up to Lvmax=10 times, at the same the management module in network side equipment by the first function module for work as Significance level aLv points of preceding equipment are 1 to 10 etc., the significance level of each relatively current equipment of first function module corresponding the One weighted value aPow=0.5, objective function module are 0 to 10 etc. with respect to bLv points of the degree of dependence of the first function module, each mesh Mark function module second weighted value bPow=0.5 corresponding with respect to the degree of dependence of the first function module.
S302:Open module:Common function mould according to needed for the demand of system and user opens communication network operation Block and other function modules, each function module obtain the operating status of its first function module relied in management module Information, updates the running state information of itself, and the running state information after itself is updated is sent to management module, and to management Module sends the subscription request of the first function module relied on it.
The function module being opened is the common function module and application function mould opened according to system or user demand Block etc., the quantity for the function module being opened can be one or more.
By taking equipment search module and monitoring control module as an example:Monitoring control module is found and is controlled by equipment search module The significance level a of the supervisory control action of current device processed, wherein equipment search module as the first function module for current device =1, monitoring control module have subscribed the prompting function that the operating status of equipment search module changes, and monitoring control module is as mesh Degree of dependence b=9 of the function module to equipment search module is marked, then relative device search module, monitoring control module is corresponding Remind frequency threshold value Lv=1*0.5+9*0.5=5.
S303:State change:When some first function module is changed according to network environment or user demand, then The running state information that the content got is organized into corresponding form by first function module is sent to management module.
First function module is equipment search module, and monitoring control module is to rely on the target work(of the equipment search module Energy module, it is assumed that accessed warning device in a communication network, caused the operating status of equipment search module to be changed, become Represent to have searched warning device access in the operating status of equipment search module after change, equipment search module will be organized into pair The running state information after form is answered to be sent to management module.
S304:Management module is according to the state change number of first function module, and relies on first function module Each objective function module reminds frequency threshold value with respect to the target of first function module, for each objective function module, sentences The target whether the state change number for first function module of breaking is more than the objective function module reminds frequency threshold value;If It is to carry out S305, if not, carrying out S307.
Management module is according to the running state information received, and the more new equipment search module in state table is as first The current operating conditions information of function module, and update the state change time of the equipment search module within the present sample period Number, management module judge whether the state change number of equipment search module is more than, monitoring control module relative device search mould The target of block reminds frequency threshold value 5.
S305:Prompting is not sent:There are exception, management module is controlled the frequency of prompting, prevents to current device Resource consumption is excessive.
If attacker attempts to send packet spoof 7 to current device using attack tool within the present sample period A, state change frequency n=7 of equipment search module, then cause the state change number of equipment search module, controlled more than monitoring The target of molding block relative device search module reminds frequency threshold value Lv=5, then management module thinks that equipment search module is opposite Monitor control module and there is exception, and the abnormal resource for attempting frequently to call current device of equipment search module so that when The resource consumption increase of preceding equipment.Management module closes what is changed to monitoring control module sending device search module operating status Passage is reminded, the frequency of number is reminded in control.
S306:Abnormality processing, management module, which is found, has the reason for abnormal, and network is notified for the abnormal cause searched out Maintenance person needs to repair in the presence of abnormal.
S307:Send and remind:Receive the objective function of the prompting message of the operating status change of first function module Module, according to the content of prompting message, is handled according to set rule, ensures the normal realization of map network function.
If management module judges the state change number of equipment search module, searched less than monitoring control module relative device The target of rope module reminds frequency threshold value Lv=5, then management module thinks that the opposite monitoring control module of equipment search module is not deposited In exception, then the prompting message that the operating status of equipment search module changes is sent to monitoring control module, monitoring module root The operating status of itself is adjusted according to the current operating conditions information of equipment search module, normal with assurance function is realized.
Management module outputting alarm information in the embodiment of the present invention, in order to which network operation person carries out phase for warning information The processing answered, further ensures the safety and stability of communication network.
Embodiment 7:
On the basis of the various embodiments described above, the embodiment of the present invention additionally provides a kind of electronic equipment, as shown in Figure 4 A, bag Processor 401, communication interface 402, memory 403 and communication bus 404 are included, wherein, processor 401, communication interface 402, is deposited Reservoir 403 completes mutual communication by communication bus 404;
Memory 403, for storing computer program;
Processor 401, during for performing the computer program stored on memory 403, realizes following steps:
The running state information sent according to the first function module received, updates first function module default Sampling time section in state change number;
According to the state table that itself is preserved, determine to rely on each objective function module of first function module, and look into The corresponding each target of each objective function module is looked for remind frequency threshold value, wherein each target reminds frequency threshold value Target for opposite first function module reminds frequency threshold value;
For each objective function module, judging the state change number of first function module after renewal is The no corresponding target of the objective function module that is more than reminds frequency threshold value;Received if so, not sent to the objective function module The running state information of first function module arrived.
The communication bus 404 that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The communication bus 404 can be divided into address bus, data/address bus, controlling bus etc..For The communication being only used for easy to identify, in figure with a communication interface between above-mentioned electronic equipment and other equipment.
Memory 403 can include random access memory (Random Access Memory, RAM), can also include Nonvolatile memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory It can also be at least one storage device for being located remotely from aforementioned processor.
Above-mentioned processor 401 can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components.
In embodiments of the present invention, the processor of electronic equipment according to the storage in memory computer program, when connecing After the running state information for receiving the transmission of the first function module, the state change number of the first function module is updated, and in the shape When state change number exceedes the prompting frequency threshold value of the objective function module, do not send operating status to the objective function module and change The prompting message of change, avoid the sampling time section the first function module of internal cause operating status frequently change, caused by network Side resource consumption is excessive, so as to reduce network side equipment resource consumption, improves the stability and security of communication network.
Embodiment 8:
A kind of computer-readable recording medium is additionally provided on the basis of the various embodiments described above, in the embodiment of the present invention, The computer-readable recording medium memory contains computer program, and the computer program is executed by processor following steps:
The running state information sent according to the first function module received, updates first function module default Sampling time section in state change number;
According to the state table that itself is preserved, determine to rely on each objective function module of first function module, and look into The corresponding each target of each objective function module is looked for remind frequency threshold value, wherein each target reminds frequency threshold value Target for opposite first function module reminds frequency threshold value;
For each objective function module, judging the state change number of first function module after renewal is The no corresponding target of the objective function module that is more than reminds frequency threshold value;Received if so, not sent to the objective function module The running state information of first function module arrived.
The computer-readable recording medium, above computer readable storage medium storing program for executing can be the processors in electronic equipment Any usable medium or data storage device that can be accessed, include but not limited to magnetic storage for example floppy disk, hard disk, tape, Magneto-optic disk (MO) etc., optical memory such as CD, DVD, BD, HVD etc. and semiconductor memory such as ROM, EPROM, EEPROM, Nonvolatile memory (NAND FLASH), solid state hard disc (SSD) etc..
The computer-readable recording medium memory provided in embodiments of the present invention contains computer program, computer program Realized when being executed by processor after the running state information of the first function module transmission is received, the first function module of renewal State change number, and when the state change number exceedes the prompting frequency threshold value of the objective function module, not to the target Function module sends the prompting message that operating status changes, and avoids the operation shape in sampling time section the first function module of internal cause State frequently changes, caused by network side resource consumption it is excessive, so as to reduce network side equipment resource consumption, improve communication network The stability and security of network.
Fig. 4 B are the alarm set schematic diagram that a kind of operating status provided in an embodiment of the present invention changes, which includes:
Update module 41, for the running state information sent according to the first function module for receiving, renewal described the One function module state change number in section of default sampling time;
Determine searching module 42, for the state table preserved according to itself, determine to rely on the every of first function module A objective function module, and search the corresponding each target of each objective function module and remind frequency threshold value, wherein described The target that each target reminds frequency threshold value to be opposite first function module reminds frequency threshold value;
Judgment module 43, for for each objective function module, judging first function module after renewal State change number whether be more than the corresponding target of the objective function module and remind frequency threshold value;If so, not to the target The operating status that function module sends first function module received changes information.
The judgment module 43, is additionally operable to be directed to each objective function module.If the first function mould after renewal The state change number of block is not more than the corresponding prompting frequency threshold value of the objective function module, then triggers sending module 44;
Described device further includes:
Sending module 44, for for each objective function module, if the shape of first function module after renewal State changes the prompting frequency threshold value that number is not more than the objective function module, then the institute received is sent to the objective function module The operating status for stating the first function module changes information.
The update module 41, is additionally operable to the running state information sent according to the first function module received, certainly Search whether that there are first function module in the state table that body preserves;If so, the first function module received is sent Running state information, update the state change number of first function module in section of default sampling time;If not, Then according to first function module, significance level of first function module for current device is determined;By described first Function module, and first function module are added in state table for the significance level of current device, first received The running state information that function module is sent, updates state change of first function module in section of default sampling time Number.
Described device further includes:
Preserving module 45, the request of the subscription to first function module sent for receiving the second function module, its Described in subscribe to the identification information that second function module is carried in request and second function module for described the The degree of dependence of one function module;Dependence journey of second function module for first function module is preserved in state table Degree;First function module of significance level according to to(for) current device, and second function module is for described first The degree of dependence of function module, determines relatively described first function module, the prompting frequency threshold value of second function module; First function module is directed in state table, preserves second function module, and preserves the prompting time of second function Number threshold value.
The update module 41, is additionally operable to receive the taking first function module of the second function module transmission Disappear subscription request, wherein described unsubscribe the identification information that second function module is carried in request;In the state First function module is directed in table, deletes the identification information of second function module and relatively described first function module The prompting frequency threshold value of second function module.
The preserving module 45, specifically for the significance level according to first function module, determines the significance level Corresponding first weighted value;Second function module of degree of dependence according to to(for) first function module, determining should be according to Rely corresponding second weighted value of degree;By the first product of the first corresponding weight of the significance level, and the degree of dependence The sum of second product of the second corresponding weighted value, is determined as the second function module described in relatively described first function module Corresponding prompting frequency threshold value.
The update module 41, the operating status for being additionally operable to be sent according to first function module of reception are believed Breath, is updated the current operating conditions information of the first function module described in the state table.
The sending module 44, is additionally operable to receive the operation for inquiry first function module that the 3rd function module is sent The solicited message of state;The current operating conditions information of first function module is searched in the state table, will be found The current operating conditions information of first function module return to the 3rd function module.
Described device further includes:
Output module 46, for not sending carrying for the first function module operating status change to second function module After information of waking up, outputting alarm information.
In embodiments of the present invention, the first function there are dependence is preserved in the management module in network side equipment Module and objective function module, and preserve the target prompting that opposite first function module relies on its each objective function module Frequency threshold value, after the running state information of the first function module transmission is received, updates the state change of the first function module Number, and when the state change number exceedes the prompting frequency threshold value of the objective function module, not to the objective function module The prompting message that operating status changes is sent, the operating status avoided in sampling time section the first function module of internal cause frequently changes Become, caused by network side resource consumption it is excessive, so as to reduce network side equipment resource consumption, improve the stabilization of communication network Property and security.
For systems/devices embodiment, since it is substantially similar to embodiment of the method, so the comparison of description is simple Single, the relevent part can refer to the partial explaination of embodiments of method.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program Product.Therefore, the application can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the application can use the computer for wherein including computer usable program code in one or more The computer program production that usable storage medium is implemented on (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The application is with reference to the flow according to the method for the embodiment of the present application, equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or square frame in journey and/or square frame and flowchart and/or the block diagram.These computer programs can be provided The processors of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices, which produces, to be used in fact The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or The instruction performed on other programmable devices is provided and is used for realization in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a square frame or multiple square frames.
Although having been described for the preferred embodiment of the application, those skilled in the art once know basic creation Property concept, then can make these embodiments other change and modification.So appended claims be intended to be construed to include it is excellent Select embodiment and fall into all change and modification of the application scope.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and scope.In this way, if these modifications and changes of the present invention belongs to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these modification and variations.

Claims (18)

  1. A kind of 1. based reminding method that operating status changes, it is characterised in that the described method includes:
    The running state information sent according to the first function module received, updates first function module and is adopted default State change number in the sample period;
    According to the state table that itself is preserved, determine to rely on each objective function module of first function module, and search institute State the corresponding each target of each objective function module and remind frequency threshold value, frequency threshold value is phase wherein each target is reminded Frequency threshold value is reminded to the target of the first function module;
    For each objective function module, judge whether the state change number of first function module after renewal is big Frequency threshold value is reminded in the corresponding target of the objective function module;If so, do not send what is received to the objective function module The running state information of first function module.
  2. 2. the method as described in claim 1, it is characterised in that for each objective function module, if described after renewal The state change number of first function module is not more than the corresponding prompting frequency threshold value of the objective function module, then to the target work( Energy module sends the running state information of first function module received.
  3. 3. method as claimed in claim 1 or 2, it is characterised in that the method further includes:
    The request of the subscription to first function module of the second function module transmission is received, wherein described subscribe to carries in request Have second function module identification information and second function module for first function module degree of dependence;
    Degree of dependence of second function module for first function module is preserved in state table;
    First function module of significance level according to to(for) current device, and second function module is for described first The degree of dependence of function module, determines the prompting frequency threshold value of the second function module described in relatively described first function module;
    First function module is directed in state table, preserves second function module, and preserve the second function mould The prompting frequency threshold value of block.
  4. 4. method as claimed in claim 3, it is characterised in that the method further includes:
    Receive the second function module transmission unsubscribes request to first function module, wherein the cancellation is ordered Read the identification information that second function module is carried in request;
    First function module is directed in the state table, deletes the identification information of second function module and opposite institute State the prompting frequency threshold value of the second function module described in the first function module.
  5. 5. method as claimed in claim 3, it is characterised in that described according to first function of being preserved in the state table Module is for the significance level of current device, and second function module preserved in state table is for the first function mould The degree of dependence of block, determining the prompting frequency threshold value of the second function module described in relatively described first function module includes:
    According to the significance level of first function module, corresponding first weighted value of the significance level is determined;
    Second function module of degree of dependence according to to(for) first function module, determines the degree of dependence corresponding Two weighted values;
    By the first product of the first corresponding weighted value of the significance level, and the second weight that the degree of dependence is corresponding The sum of second product of value, is determined as the corresponding prompting number threshold of the second function module described in relatively described first function module Value.
  6. 6. the method as described in claim 1, it is characterised in that the method further includes:
    The running state information sent according to first function module of reception, to the first work(described in the state table The current operating conditions information of energy module is updated.
  7. 7. method as claimed in claim 6, it is characterised in that the method further includes:
    Receive the solicited message of the operating status of inquiry first function module of the 3rd function module transmission;
    The current operating conditions information of first function module is searched in the state table, first work(that will be found The current operating conditions information of energy module returns to the 3rd function module.
  8. 8. the method as described in claim 1, it is characterised in that it is described to the objective function module send receive described in After the running state information of first function module, the method further includes:
    Outputting alarm information.
  9. 9. the alarm set that a kind of operating status changes, it is characterised in that the device includes:
    Update module, for the running state information sent according to the first function module received, updates first function Module state change number in section of default sampling time;
    Determine searching module, for the state table preserved according to itself, determine to rely on each target of first function module Function module, and search the corresponding each target of each objective function module and remind frequency threshold value, wherein each mesh The target that mark reminds frequency threshold value to be opposite first function module reminds frequency threshold value;
    Judgment module, for for each objective function module, judging the state of first function module after renewal Change whether number is more than the corresponding target prompting frequency threshold value of the objective function module;If so, not to the objective function mould Block sends the running state information of first function module received.
  10. 10. device as claimed in claim 9, it is characterised in that the judgment module, is additionally operable to be directed to each objective function mould Block.If the state change number of first function module after renewal prompting time corresponding no more than the objective function module Number threshold value, then trigger sending module;
    Described device further includes:
    Sending module, for for each objective function module, if the state change of first function module after renewal Number is not more than the prompting frequency threshold value of the objective function module, then described first received is sent to the objective function module The operating status of function module changes information.
  11. 11. such as 9 or 10 any one of them device of claim, it is characterised in that described device further includes:
    Preserving module, the request of the subscription to first function module sent for receiving the second function module, wherein described The identification information that second function module is carried in request and second function module are subscribed to for first function The degree of dependence of module;Degree of dependence of second function module for first function module is preserved in state table;According to First function module is for the significance level of current device, and second function module is for first function module Degree of dependence, determine relatively described first function module described in the second function module prompting frequency threshold value;In state table For first function module, second function module is preserved, and preserve the prompting frequency threshold value of second function.
  12. 12. device as claimed in claim 11, it is characterised in that the update module, is additionally operable to receive second function What module was sent unsubscribes request to first function module, wherein it is described unsubscribe ask in carry described the The identification information of two function modules;First function module is directed in the state table, deletes second function module Identification information and relatively described first function module, the prompting frequency threshold value of second function module.
  13. 13. device as claimed in claim 11, it is characterised in that the preserving module, specifically for according to first work( The significance level of energy module, determines corresponding first weighted value of the significance level;According to second function module for described The degree of dependence of first function module, determines corresponding second weighted value of the degree of dependence;The significance level is corresponding First product of the first weight, and the sum of the second product of corresponding the second weighted value of the degree of dependence, are determined as opposite The corresponding prompting frequency threshold value of second function module described in first function module.
  14. 14. device as claimed in claim 9, it is characterised in that the update module, is additionally operable to described first according to reception The running state information that function module is sent, believes the current operating conditions of the first function module described in the state table Breath is updated.
  15. 15. device as claimed in claim 9, it is characterised in that the sending module, is additionally operable to receive the 3rd function module hair The solicited message of the operating status for inquiry first function module sent;The first function mould is searched in the state table The current operating conditions information of block, described is returned to by the current operating conditions information of first function module found Three function modules.
  16. 16. device as claimed in claim 9, it is characterised in that described device further includes:
    Output module, for not sending the prompting message of the first function module operating status change to second function module Afterwards, outputting alarm information.
  17. 17. a kind of electronic equipment, it is characterised in that including:Processor, communication interface, memory and communication bus, wherein, place Device, communication interface are managed, memory completes mutual communication by communication bus;
    Memory, for storing computer program;
    Processor, during for performing the computer program stored on memory, realizes any methods of claim 1-8 Step.
  18. 18. a kind of computer-readable recording medium, it is characterised in that the computer-readable recording medium memory contains computer Program, the computer program realize claim 1-8 any method and steps when being executed by processor.
CN201710959748.8A 2017-10-16 2017-10-16 Running state change reminding method and device, electronic equipment and storage medium Active CN107911229B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710959748.8A CN107911229B (en) 2017-10-16 2017-10-16 Running state change reminding method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710959748.8A CN107911229B (en) 2017-10-16 2017-10-16 Running state change reminding method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107911229A true CN107911229A (en) 2018-04-13
CN107911229B CN107911229B (en) 2020-12-08

Family

ID=61840515

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710959748.8A Active CN107911229B (en) 2017-10-16 2017-10-16 Running state change reminding method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107911229B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109658244A (en) * 2018-12-14 2019-04-19 北京向上心科技有限公司 Information cuing method, device, server and computer readable storage medium
CN110620736A (en) * 2019-10-23 2019-12-27 杭州迪普科技股份有限公司 Traffic scheduling method and device
CN111352846A (en) * 2020-03-06 2020-06-30 深圳前海微众银行股份有限公司 Test system number making method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007150778A (en) * 2005-11-29 2007-06-14 Nec Corp Unauthorized access detection method, device, and program
CN102571707A (en) * 2010-12-27 2012-07-11 王正伟 Attack protection method and system
CN104426947A (en) * 2013-08-27 2015-03-18 中兴通讯股份有限公司 Terminal intelligent updating method and system, terminal and data updating server
CN106131149A (en) * 2016-06-29 2016-11-16 深圳市智汇十方科技有限公司 The processing method of a kind of application software of mobile terminal exception and system
CN106211246A (en) * 2016-06-17 2016-12-07 深圳市金立通信设备有限公司 A kind of reduce the method for channel-sounding signal transmission times, base station and terminal
CN106557407A (en) * 2016-11-14 2017-04-05 腾讯科技(深圳)有限公司 A kind of monitoring method and device of apparatus of load
CN107027141A (en) * 2017-05-08 2017-08-08 广东欧珀移动通信有限公司 Information processing method, device and mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007150778A (en) * 2005-11-29 2007-06-14 Nec Corp Unauthorized access detection method, device, and program
CN102571707A (en) * 2010-12-27 2012-07-11 王正伟 Attack protection method and system
CN104426947A (en) * 2013-08-27 2015-03-18 中兴通讯股份有限公司 Terminal intelligent updating method and system, terminal and data updating server
CN106211246A (en) * 2016-06-17 2016-12-07 深圳市金立通信设备有限公司 A kind of reduce the method for channel-sounding signal transmission times, base station and terminal
CN106131149A (en) * 2016-06-29 2016-11-16 深圳市智汇十方科技有限公司 The processing method of a kind of application software of mobile terminal exception and system
CN106557407A (en) * 2016-11-14 2017-04-05 腾讯科技(深圳)有限公司 A kind of monitoring method and device of apparatus of load
CN107027141A (en) * 2017-05-08 2017-08-08 广东欧珀移动通信有限公司 Information processing method, device and mobile terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109658244A (en) * 2018-12-14 2019-04-19 北京向上心科技有限公司 Information cuing method, device, server and computer readable storage medium
CN110620736A (en) * 2019-10-23 2019-12-27 杭州迪普科技股份有限公司 Traffic scheduling method and device
CN110620736B (en) * 2019-10-23 2022-08-26 杭州迪普科技股份有限公司 Method and device for flow scheduling
CN111352846A (en) * 2020-03-06 2020-06-30 深圳前海微众银行股份有限公司 Test system number making method, device, equipment and storage medium
CN111352846B (en) * 2020-03-06 2024-03-19 深圳前海微众银行股份有限公司 Method, device, equipment and storage medium for manufacturing number of test system

Also Published As

Publication number Publication date
CN107911229B (en) 2020-12-08

Similar Documents

Publication Publication Date Title
CN107515796B (en) Equipment abnormity monitoring processing method and device
CN102929773B (en) information collecting method and device
CN108055144A (en) The monitoring method and system of a kind of network equipment
CN100388693C (en) Method and system for monitoring service quality according to service level protocol
CN108092847B (en) A kind of electric power LTE wireless terminal remote on-line monitoring method
CN106961352A (en) Monitoring system and monitoring method
CN107483268A (en) A kind of alert processing method and system
CN102882701B (en) A kind of electrical network core business data intelligent monitoring warning system and method
CN107911229A (en) Based reminding method, device, electronic equipment and the storage medium that operating status changes
CN104967537A (en) Alarm information pushing method and device
US8649270B2 (en) Dynamic network configuration
CN110891283A (en) Small base station monitoring device and method based on edge calculation model
CN109558301A (en) A kind of distributed system data monitoring method, device and relevant device
CN112346924A (en) Server monitoring method and system
CN112532435B (en) Operation and maintenance method, operation and maintenance management platform, equipment and medium
CN107168853A (en) A kind of server performance information acquisition method, system and substrate control manager
CN107360045A (en) The monitoring method and device of a kind of storage cluster system
CN105897933A (en) Service request processing method and device
CN107291868A (en) A kind of monitoring data processing unit and monitoring data processing method
CN109669835A (en) MySQL database monitoring method, device, equipment and readable storage medium storing program for executing
CN107797859A (en) A kind of dispatching method of timed task and a kind of dispatch server
CN113949537A (en) Firewall management method and system based on eBPF
CN106453504A (en) Monitoring system and method based on NGINX server cluster
CN101102217B (en) Processing method for duplicate alert and discontinuous reporting and monitoring in telecom network management system
CN116132519A (en) Device management method, device and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant