CN106789383A - Route system monitoring method and device - Google Patents
Route system monitoring method and device Download PDFInfo
- Publication number
- CN106789383A CN106789383A CN201510811873.5A CN201510811873A CN106789383A CN 106789383 A CN106789383 A CN 106789383A CN 201510811873 A CN201510811873 A CN 201510811873A CN 106789383 A CN106789383 A CN 106789383A
- Authority
- CN
- China
- Prior art keywords
- router
- abnormal
- value
- route system
- test parameter
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0677—Localisation of faults
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0817—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
- H04L69/162—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/56—Routing software
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Computer Security & Cryptography (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a kind of route system monitoring method and device, wherein, methods described includes:Set up with router according to setting time interval and be connected, and test parameter value and process list are obtained from the router;Determine the route system with the presence or absence of abnormal according to the multiple test parameter value for obtaining;When it is determined that the route system has abnormal, abnormal process is searched according to the process list.The route system monitoring scheme provided by the present invention, user because router cannot be provided the user normally without servicing and restarter.
Description
Technical field
The present invention relates to router technology field, more particularly to a kind of route system monitoring method and dress
Put.
Background technology
Router is each LAN, the equipment of wide area network in connection internet, and it can be according to the situation of channel
Route is automatically selected and set, tandem sending signal is pressed with optimal path.Router is internet
Hinge, commonly known as " traffic-police ".Current router has been widely used for all trades and professions,
The router of various different class is (for example:TP-LINK wireless routers, D-LINK wireless routers,
Alpha's wireless router etc.) turn into and realized the connection of various backbone network inside, key internetworking and bone
The main force of dry net and internet interconnection business.It is known in those skilled in the art, operating system
It is the core of router operation, when operating system has exception, abnormal long time integration will cause route
Device cannot normal work.
However, though the router for there are various different class at present is widely used, do not exist simultaneously in route
The scheme being monitored to the system of router in device running, correspondingly, cannot also monitor in advance
The exception that route system occurs, cannot more avoid abnormal long time integration from causing router to be user
Normal service is provided.At present, when router cannot provide the user normal service (for example:With
Family finds to access data are slow, network is not opened or cannot be opened interface of router etc.), user institute energy
What is done is only restarter, and restarter had both taken the substantial amounts of time, and router can be increased again
Operating burden.
It can be seen that, it is necessary to the technical problem that those skilled in the art urgently solve is:A kind of router system is provided
System monitoring scheme, monitors the exception of route system in router running, different to carry out system
Often treatment, it is to avoid because router cannot provide the user normal service caused by abnormal long time integration
Situation occurs.
The content of the invention
In view of in the prior art in the absence of router system monitoring scheme problem, it is proposed that the present invention with
A kind of route system monitoring method and device for overcoming above mentioned problem is just provided.
According to one aspect of the present invention, there is provided a kind of route system monitoring method, including:According to
Setting time is spaced to be set up with router and is connected, and test parameter value is obtained from the router and is entered
Cheng Liebiao;Determine the route system with the presence or absence of different according to the multiple test parameter value for obtaining
Often;When it is determined that the route system has abnormal, abnormal process is searched according to the process list.
Preferably, the test parameter value includes the capability value and the capacity of buffer area of free area in internal memory
Value, the test parameter value that the basis is repeatedly obtained determines the route system with the presence or absence of abnormal
The step of include:Judge whether the capability value of the buffer area for repeatedly obtaining is incremented by, and judge repeatedly to obtain
The capability value of free area whether successively decrease;If the capability value of the buffer area for repeatedly obtaining is incremented by and free area
Capability value successively decrease, it is determined that the route system exists abnormal.
Preferably, comprising the appearance of buffer area shared by each process in the route system in the process list
Value, it is described to include the step of find abnormal journey according to the process list:The process is arranged respectively
The capability value of buffer area shared by each process in table is compared with the standard value of setting;Find out shared slow
The process of the standard value of the capability value more than setting in area is deposited, the process that will be found out is defined as exception and enters
Journey.
Preferably, it is described find abnormal process according to the process list the step of after, the side
Method also includes:Determine the corresponding program block of the abnormal process;Searched from described program block and cause described
There is abnormal program statement in process.
Preferably, described foundation with router according to setting time interval is connected, and from the router
Obtain test parameter value and process list the step of be:Pass through Socket agreements according to setting time interval
Set up with the router and be connected, and the test that the router is returned is received by the Socket agreements
Parameter value and process list.
Preferably, described foundation with router according to setting time interval is connected, and from the router
The step of obtaining test parameter value and process list includes:According to setting time interval and the router
Connection is set up, and journal file and process list are obtained from the router;From the journal file
In parse the test parameter value.
Preferably, the router is the weak system router based on (SuSE) Linux OS.
According to one aspect of the present invention, a kind of route system monitoring device is additionally provided, including:Even
Connection module, is connected, and obtained from the router for being set up with router according to setting time interval
Test parameter value and process list;Determining module, for according to the test parameter value for repeatedly obtaining
Determine the route system with the presence or absence of abnormal;Process searching modul, for when the determining module it is true
When the fixed route system has abnormal, abnormal process is searched according to the process list.
Preferably, the test parameter value includes the capability value and the capacity of buffer area of free area in internal memory
Value, the determining module includes:Judge module, the capability value of buffer area for judging multiple acquisition is
It is no to be incremented by, and judge whether the capability value of the free area for repeatedly obtaining successively decreases;Abnormal determining module, uses
If being incremented by the capability value of the multiple buffer area for obtaining and the capability value of free area successively decreasing, it is determined that be described
Route system exists abnormal.
Preferably, comprising the appearance of buffer area shared by each process in the route system in the process list
Value, the process searching modul includes:Comparing module, for respectively will be each in the process list
The capability value of buffer area shared by process is compared with the standard value of setting;Searching modul, for finding out
The capability value of shared buffer area is more than the process of the standard value of setting, and the process that will be found out is defined as
Abnormal process.
Preferably, the route system monitoring device also includes:Program block determining module, in institute
State after process searching modul finds abnormal process according to the process list, determine the abnormal process
Corresponding program block;Program statement determining module, the process is caused for being searched from described program block
There is abnormal program statement.
Preferably, the link block specifically for:According to setting time interval by Socket agreements with
The router sets up connection, and receives the test ginseng that the router is returned by the Socket agreements
Numerical value and process list.
Preferably, the link block includes:Log acquisition module, for according to setting time interval with
The router sets up connection, and journal file and process list are obtained from the router;Parsing
Module, for parsing the test parameter value from the journal file.
Preferably, the router is the weak system router based on (SuSE) Linux OS.
Route system monitoring scheme provided in an embodiment of the present invention, from route during router use
Test parameter is obtained in device, it is abnormal to determine that route system whether there is according to the test parameter for obtaining, when
When determining that route system has abnormal abnormal process is found out with reference to process list.Abnormal process determines
Afterwards, you can problem investigation targetedly is carried out to abnormal process, process is timely had into abnormality processing
Fall, process can be avoided abnormal for a long time and cause the router cannot normally to provide the user asking for service
Topic, therefore user is without restarter.It can be seen that, route system monitoring side provided in an embodiment of the present invention
Case, because user because router cannot be provided the user normally without servicing and restarter, therefore,
Both the experience of user can have been lifted, the operating burden of router can have been mitigated again.
Described above is only the general introduction of technical solution of the present invention, in order to better understand skill of the invention
Art means, and can be practiced according to the content of specification, and it is of the invention above and other in order to allow
Objects, features and advantages can become apparent, below especially exemplified by specific embodiment of the invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are for this
Field those of ordinary skill will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment,
And it is not considered as limitation of the present invention.And in whole accompanying drawing, be denoted by the same reference numerals
Identical part.In the accompanying drawings:
The step of Fig. 1 is a kind of according to embodiments of the present invention one route system monitoring method flow chart;
The step of Fig. 2 is a kind of according to embodiments of the present invention two route system monitoring method flow chart;
Fig. 3 is a kind of structured flowchart of according to embodiments of the present invention three route system monitoring device;
Fig. 4 is a kind of structured flowchart of according to embodiments of the present invention four route system monitoring device.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although being shown in accompanying drawing
The exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms the disclosure without
Should be limited by embodiments set forth here.Conversely, there is provided these embodiments are able to more thoroughly
Understand the disclosure, and can by the scope of the present disclosure it is complete convey to those skilled in the art.
Embodiment one
Reference picture 1, flows the step of show a kind of route system monitoring method of the embodiment of the present invention one
Cheng Tu.
The route system monitoring method of the embodiment of the present invention is comprised the following steps:
Step S102:Set up with router according to setting time interval and be connected, and obtained from router
Test parameter value and process list.
The specific selection of test parameter can be configured by those skilled in the art according to real needs, be protected
The selected test parameter of card can react route system performance state.For example:To can test
One or more relevant parameters of parameter setting into internal memory.
Wherein, can be by those skilled in the art according to reality during setting time is spaced in implementing
Demand is configured, for example:Time interval is arranged to 0.5 second, 1 second, 2 seconds etc., the present invention is implemented
This is not specifically limited in example.
Step S104:Determine route system with the presence or absence of abnormal according to the multiple test parameter value for obtaining.
For example:The test parameter value for obtaining every time is 3,10 times according to setting time interval acquiring
Test parameter value, then need to be determined route system with the presence or absence of abnormal according to this 30 values for obtaining.
It is determined that system with the presence or absence of it is abnormal when, can be using by the way of arbitrarily appropriate, such as:By sentencing
The capability value of buffer area determines system with the presence or absence of abnormal in disconnected internal memory;For example:By judging system
The utilization rate of CPU determines system with the presence or absence of abnormal;Again for example:With reference to the capacity of buffer area in internal memory
The utilization rate of value and system CPU determines system with the presence or absence of abnormal.
Step S106:When it is determined that route system has abnormal, search exception according to process list and enter
Journey.
Only it is to be capable of determining that route system has exception by step S104, but due in program
Comprising multiple processes, system exception caused by which process exception specifically in program then needs foundation to enter
Cheng Liebiao is investigated one by one determines abnormal process, so that those skilled in the art are carried out to abnormal process
Treatment.
By route system monitoring method provided in an embodiment of the present invention, during router use from
Test parameter is obtained in router, determines route system with the presence or absence of different according to the test parameter for obtaining
Often, abnormal process is found out with reference to process list when determining that route system has abnormal.Exception is entered
After journey determines, you can targetedly carry out problem investigation to abnormal process, timely there is process different
Often dispose, process can be avoided abnormal for a long time and cause the router cannot normally to provide the user service
Problem, therefore, user is without restarter.It can be seen that, route system provided in an embodiment of the present invention
Monitoring method, because user because router cannot be provided the user normally without servicing and restarter,
Therefore, Consumer's Experience can be both lifted, the operating burden of router can be mitigated again.
Embodiment two
Reference picture 2, flows the step of show a kind of route system monitoring method of the embodiment of the present invention two
Cheng Tu.
In the embodiment of the present invention system monitoring is carried out with to the weak system router based on (SuSE) Linux OS
As a example by, route system monitoring method of the invention is illustrated, specifically include following steps:
Step S202:Terminal is spaced to be set up with router according to setting time and is connected, and from router
Obtain test parameter value and process list.
Terminal in the embodiment of the present invention can be any with communication function and data processing function
Device, for example:Computer, server, mobile phone etc..
Wherein, test parameter value is included but is not limited to:The appearance of the capability value of free area and buffer area in internal memory
Value, the capability value of free area is the size of free memory in internal memory, and the capability value of buffer area is caching
Size.Comprising the capability value of buffer area shared by each process in route system in process list, by process
List is that can determine that the cache size shared by each process.
It is exemplified below two kinds of preferred modes that test parameter value and process list are obtained from router:
Preferred embodiment one:Set up with router by Socket agreements according to setting time interval and be connected, and
The test parameter value and process list returned by Socket agreements receiving router.
Wherein, Socket is that two programs on network realize data by a two-way communication connection
Exchange, one end of this connection is referred to as a Socket, correspondingly, Socket agreements are based on above-mentioned original
Manage the agreement for setting.The company set up between terminal and router from Socket agreements in this preferred embodiment
Connect, because the universality of Socket agreements is strong, terminal and router are adapted to the agreement, therefore, nothing
Need to again spend manpower and materials to research and develop communication protocol therebetween, substantial amounts of manpower and materials money can be saved
Source.
Preferred embodiment two:Set up with router according to setting time interval and be connected, and obtained from router
Journal file and process list;Test parameter value is parsed from journal file.
The journal file for obtaining router can get more parameter values, not only including test parameter value
Also include other specification value.Terminal can be not only to route system by the parameter value in journal file
No appearance is abnormal to be judged, other associations can also be judged, for example:The currently used road
By the number of users of device.
It should be noted that during implementing, can select above-mentioned any one preferred embodiment from
Test parameter value and process list are obtained in router, of course, it is possible to using other any appropriate sides
Formula, is not specifically limited in the embodiment of the present invention to this.And the time interval for setting can also be by ability
Field technique personnel be configured according to the actual requirements, and this is not specifically limited in the embodiment of the present invention.
Test parameter is arranged to the relevant parameter of internal memory, by internal memory relevant parameter in the embodiment of the present invention
Judge the leak case of internal memory, and then determine route system with the presence or absence of abnormal.And especially by internal memory
The situation of change of the capability value of middle free area and the capability value of buffer area judges the leak case of internal memory.
Step S204:Whether the capability value of the buffer area that terminal judges are repeatedly obtained is incremented by, and judges
Whether the capability value of the free area for repeatedly obtaining successively decreases;If so, step S206 is then performed, if it is not, then
Perform setting operation.
Terminal repeatedly from router obtain internal memory in buffer area capability value, and free area capacity
Value.Each capability value of the buffer area of acquisition is ranked up according to time order and function order is obtained, is judged many
Whether the capability value of the buffer area of secondary acquisition is incremented by;By each capability value of the free area of acquisition according to acquisition
Time order and function order is ranked up, and judges whether the capability value of the free area for repeatedly obtaining successively decreases.
Wherein, setting operation can be set as terminating this route system monitoring flow.
Step S206:If the capability value of the buffer area for repeatedly obtaining is incremented by and the capability value of free area is passed
Subtract, it is abnormal that terminal then determines that route system is present.
Internal memory is fixed in router, when route system is normal, the capability value of buffer area should be by
Small reciprocal change is arrived greatly.And buffer capacity value is incremented by always over time, the appearance of free area
Value successively decreases always, then illustrate route system cannot normally in buffer area storage it is data cached enter
Row release, i.e., RAM leakage occurs in that exception, now, then can determine that certain in route system is one or more
Individual process occurs in that exception.
Step S208:When it is determined that route system has abnormal, terminal is respectively by process list
The capability value of buffer area shared by each process is compared with the standard value of setting.
Comprising multiple processes in route system, accordingly also comprising multiple processes in row-column list is entered, this
In step, then the setting for needing the capability value that will be cached shared by each process in process list corresponding
Standard value be compared one by one.
, all to that should have caching release procedure, process is under normal circumstances for each process included in route system
If the affairs of process treatment are more, the capability value of the buffer area shared by it can also increase accordingly, but,
When increasing to the standard value of setting, it is corresponding data cached that caching release procedure can then discharge the process.And
If the capability value of process exception even its buffer area for taking is beyond the standard value of setting, caching release
It is corresponding data cached that program will not also discharge the process, therefore, this step shared by each process by that will delay
Deposit area's capability value to be compared with the standard value of setting, you can determine whether process is abnormal.
It should be noted that during implementing, a standard value can be set for each process,
Identical standard value can also be set for all processes.It is similar of course, it is possible to classify to process
Process setting identical standard value.For the specific setting means of standard value in the embodiment of the present invention, with
And the size of standard value is not especially limited.
Step S210:Terminal finds out the process of the standard value of the capability value more than setting of shared buffer area,
The process that will be found out is defined as abnormal process.
When the capability value of buffer area shared by process is more than the standard value for setting, you can determine that process is occurred in that
It is abnormal, when process take the capability value of buffer area less than or equal to setting standard value when, then can determine that into
Cheng Zhengchang.
Step S212:Terminal determines the corresponding program block of abnormal process.
The execution of each process in route system to that should have respective program block, process is relied on
Corresponding program block.Therefore, it is abnormal specific in order to occur to abnormal process it is determined that after abnormal process
Reason is analyzed, then it needs to be determined that the corresponding program block of abnormal program.
It is determined that the corresponding program block of abnormal program can be using by the way of arbitrarily appropriate, such as:Can basis
The mark of abnormal process determines its corresponding program block, it is also possible to according to abnormal process in each process
Sequence determines its corresponding program block.
Step S214:Terminal is searched from program block and causes process abnormal program statement occur.
After the program statement for causing process exception occur is found out, skilled person can be targetedly
Program statement is modified, to solve the problems, such as process exception.
For weak system router, due to its internal memory, flash memory scarcity of resources, if by router itself
Carrying out system monitoring will certainly influence the normal operation of route system.And provided in the embodiment of the present invention
Route system monitoring method, during router long-term use, only takes up a small amount of resource of router
Test parameter value is obtained from router, after getting test parameter value, i.e., by terminal-pair route system
Whether exception is monitored.And need not take the substantial amounts of resource of router itself carries out system monitoring, can
Effectively save router resource.It can be seen that, route system monitoring method provided in an embodiment of the present invention is applicable
In weak system router.
It should be noted that being only with the weak pattern system road based on (SuSE) Linux OS in the embodiment of the present invention
By the explanation carried out as a example by device, during implementing, the route system monitoring side that the present invention is provided
Method can be applicable to other weak system routers.
By route system monitoring method provided in an embodiment of the present invention, except with shown in embodiment one
Route system monitoring method have the advantage that it is outer, can also after abnormal process is determined,
Further determination causes the program statement of process exception, is easy to those skilled in the art to carry out program statement
Modification, can either save human resources, and the investigation time can be saved again, lift abnormal process treatment effeciency.
Embodiment three
Reference picture 3, shows a kind of structural frames of route system monitoring device of the embodiment of the present invention three
Figure.
The route system monitoring device of the embodiment of the present invention includes:Link block 302, for according to setting
Fix time to be spaced to be set up with router and be connected, and test parameter value and process are obtained from the router
List;Determining module 304, for determining the router according to the test parameter value for repeatedly obtaining
System is with the presence or absence of abnormal;Process searching modul 306, for determining the route when the determining module
When device system has abnormal, abnormal process is searched according to the process list.
By route system monitoring device provided in an embodiment of the present invention, during router use from
Test parameter is obtained in router, determines route system with the presence or absence of different according to the test parameter for obtaining
Often, abnormal process is found out with reference to process list when determining that route system has abnormal.Exception is entered
After journey determines, you can targetedly carry out problem investigation to abnormal process, timely there is process different
Often dispose, process can be avoided abnormal for a long time and cause the router cannot normally to provide the user service
Problem, therefore, user without restarter, therefore, can both lift Consumer's Experience, can subtract again
The operating burden of light router.
Example IV
Reference picture 4, has gone out a kind of structured flowchart of route system monitoring device of the embodiment of the present invention four.
The embodiment of the present invention is the further optimization to the route system monitoring device in embodiment three, excellent
Route system monitoring device after change includes:Link block 402, for according to setting time interval with
Router sets up connection, and test parameter value and process list are obtained from the router;Determine mould
Block 404, for determining that the route system whether there is according to the test parameter value for repeatedly obtaining
It is abnormal;Process searching modul 406, for determine that the route system is present different when the determining module
Chang Shi, abnormal process is searched according to the process list.
Preferably, the test parameter value includes the capability value and the capacity of buffer area of free area in internal memory
Value, the determining module 404 includes:Judge module 4042, for judging the multiple buffer area for obtaining
Whether capability value is incremented by, and judges whether the capability value of the free area for repeatedly obtaining successively decreases;It is abnormal to determine
Module 4044, if the capability value of the buffer area for repeatedly obtaining is incremented by and the capability value of free area successively decreases,
Then determine that the route system is present abnormal.
Preferably, comprising the appearance of buffer area shared by each process in the route system in the process list
Value, the process searching modul 406 includes:Comparing module 4062, for respectively arranging the process
The capability value of buffer area shared by each process in table is compared with the standard value of setting;Searching modul
4064, the process of standard value of the capability value more than setting for finding out shared buffer area will find out
The process be defined as abnormal process.
Preferably, the route system monitoring device also includes:Program block determining module 408, is used for
After the process searching modul 406 finds abnormal process according to the process list, it is determined that described
The corresponding program block of abnormal process;Program statement determining module 410, for being searched from described program block
The process is caused abnormal program statement occur.
Preferably, the link block 402 specifically for:Pass through Socket according to setting time interval
Agreement is set up with the router and is connected, and receives what the router was returned by the Socket agreements
Test parameter value and process list.
Preferably, the link block 402 includes:Log acquisition module 4022, during for according to setting
Between be spaced to be set up with the router and be connected, and journal file and process obtained from the router arrange
Table;Parsing module 4024, for parsing the test parameter value from the journal file.
Preferably, the router is the weak system router based on (SuSE) Linux OS.
The route system monitoring device of the present embodiment is used to realize previous embodiment one and embodiment two
In corresponding route system monitoring method, and with the beneficial effect of corresponding embodiment of the method,
This is repeated no more.
Each embodiment in this specification is described by the way of progressive, and each embodiment is stressed
Be all difference with other embodiment, between each embodiment identical similar part mutually referring to
.For system embodiment, because it is substantially similar to embodiment of the method, so the ratio of description
Relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
Provided herein route system monitoring scheme not with any certain computer, virtual system or its
Its equipment is inherently related.Various general-purpose systems can also be used together with based on teaching in this.According to upper
The description in face, it is obvious to construct the structure required by the system with the present invention program.Additionally,
The present invention is not also directed to any certain programmed language.It is understood that, it is possible to use various programming languages are realized
The content of invention described herein, and the description done to language-specific above is to disclose this hair
Bright preferred forms.
In specification mentioned herein, numerous specific details are set forth.It is to be appreciated, however, that this
Inventive embodiment can be put into practice in the case of without these details.In some instances, not
Known method, structure and technology are shown specifically, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help understand in each inventive aspect
Or it is multiple, in above to the description of exemplary embodiment of the invention, each feature of the invention is sometimes
It is grouped together into single embodiment, figure or descriptions thereof.However, should not be by the disclosure
Method be construed to reflect following intention:I.e. the present invention for required protection requirement ratio is in each claim
The middle more features of feature be expressly recited.More precisely, as the following claims reflect,
Inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows specific implementation
Thus claims of mode are expressly incorporated in the specific embodiment, and wherein each claim is in itself
All as separate embodiments of the invention.
Those skilled in the art are appreciated that can be carried out certainly to the module in the equipment in embodiment
Adaptively change and they are arranged in one or more equipment different from the embodiment.Can be with
Module or unit or component in embodiment is combined into a module or unit or component, and in addition may be used
To be divided into multiple submodule or subelement or sub-component.Except such feature and/or process or
Outside at least some in unit exclude each other, can be using any combinations to this specification (including companion
With claim, summary and accompanying drawing) disclosed in all features and so disclosed any method or
All processes or unit of person's equipment are combined.Unless expressly stated otherwise, this specification (including companion
With claim, summary and accompanying drawing) disclosed in each feature can it is identical by offers, equally or phase
Replace like the alternative features of purpose.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include it
Some included features are rather than further feature, but the group of the feature of different embodiments in its embodiment
Conjunction means to be within the scope of the present invention and formed different embodiments.For example, in claim
In book, the one of any of embodiment required for protection mode can use in any combination.
All parts embodiment of the invention can be realized with hardware, or be processed with one or more
The software module run on device is realized, or is realized with combinations thereof.Those skilled in the art should
Understand, basis can be realized using microprocessor or digital signal processor (DSP) in practice
Some or all parts in the route system monitoring scheme of the embodiment of the present invention some or it is complete
Portion's function.The present invention is also implemented as performing some or all of method as described herein
Equipment or program of device (for example, computer program and computer program product).Such realization
Program of the invention can be stored on a computer-readable medium, or can be with one or more letter
Number form.Such signal can be downloaded from internet website and obtained, or above be carried in carrier signal
For, or provided in any other form.
It should be noted that above-described embodiment the present invention will be described rather than limiting the invention,
And those skilled in the art can design replacement without departing from the scope of the appended claims
Embodiment.In the claims, any reference symbol being located between bracket should not be configured to right
It is required that limitation.Word "comprising" does not exclude the presence of element or step not listed in the claims.Position
Word "a" or "an" before element does not exclude the presence of element as multiple.The present invention can
To be realized by means of the hardware for including some different elements and by means of properly programmed computer.
If in the unit claim for listing equipment for drying, several in these devices can be by same
Individual hardware branch is embodied.The use of word first, second, and third does not indicate that any order.
These words can be construed to title.
The invention discloses A1, a kind of route system monitoring method, including:
Set up with router according to setting time interval and be connected, and test parameter is obtained from the router
Value and process list;
Determine the route system with the presence or absence of abnormal according to the multiple test parameter value for obtaining;
When it is determined that the route system has abnormal, abnormal process is searched according to the process list.
A2, the method according to A1, wherein, the test parameter value includes free area in internal memory
The capability value of capability value and buffer area, the test parameter value that the basis is repeatedly obtained determines the road
Included with the presence or absence of abnormal step by device system:
Judge whether the capability value of the buffer area for repeatedly obtaining is incremented by, and judge the free area for repeatedly obtaining
Capability value whether successively decrease;
If the capability value of the buffer area for repeatedly obtaining is incremented by and the capability value of free area successively decreases, it is determined that institute
State route system and there is exception.
A3, the method according to A1 or A2, wherein, the route is included in the process list
The capability value of buffer area shared by each process, described to find abnormal journey according to the process list in device system
The step of include:
Respectively by the capability value of buffer area shared by each process in the process list and the standard value for setting
It is compared;
The process of the standard value of the capability value more than setting of shared buffer area is found out, described in finding out
Process is defined as abnormal process.
A4, the method according to A1, wherein, find exception according to the process list described
After the step of process, methods described also includes:
Determine the corresponding program block of the abnormal process;
Searched from described program block and cause the process abnormal program statement occur.
A5, the method according to A1, wherein, it is described to be set up according to setting time interval and router
Connection, and be the step of acquisition test parameter value and process list from the router:
Set up with the router by Socket agreements according to setting time interval and be connected, and by described
Socket agreements receive test parameter value and the process list that the router is returned.
A6, the method according to A1, wherein, it is described to be set up according to setting time interval and router
Connection, and include the step of acquisition test parameter value and process list from the router:
Set up with the router according to setting time interval and be connected, and daily record is obtained from the router
File and process list;
The test parameter value is parsed from the journal file.
A7, the method according to A1, wherein, the router is based on (SuSE) Linux OS
Weak system router.
The invention discloses B8, a kind of route system monitoring device, including:
Link block, for being connected with router foundation according to setting time interval, and from the router
It is middle to obtain test parameter value and process list;
Determining module, for determining that the route system is according to the test parameter value for repeatedly obtaining
It is no to there is exception;
Process searching modul, for when the determining module determines that the route system has abnormal,
Abnormal process is searched according to the process list.
B9, the device according to B8, wherein, the test parameter value includes free area in internal memory
The capability value of capability value and buffer area, the determining module includes:
Judge module, for judging whether the capability value of buffer area of multiple acquisition is incremented by, and judges many
Whether the capability value of the free area of secondary acquisition successively decreases;
Abnormal determining module, if be incremented by for the capability value of the multiple buffer area for obtaining and free area appearance
Value successively decreases, it is determined that the route system exists abnormal.
B10, the device according to B8 or B9, wherein, the route is included in the process list
The capability value of buffer area shared by each process in device system, the process searching modul includes:
Comparing module, for respectively by the capability value of buffer area shared by each process in the process list with
The standard value of setting is compared;
Searching modul, the process of standard value of the capability value more than setting for finding out shared buffer area,
The process that will be found out is defined as abnormal process.
B11, the device according to B8, wherein, the route system monitoring device also includes:
Program block determining module, it is different for being found according to the process list in the process searching modul
After Chang Jincheng, the corresponding program block of the abnormal process is determined;
Program statement determining module, causes the process exception occur for being searched from described program block
Program statement.
B12, the device according to B8, wherein, the link block specifically for:
Set up with the router by Socket agreements according to setting time interval and be connected, and by described
Socket agreements receive test parameter value and the process list that the router is returned.
B13, the device according to B8, wherein, the link block includes:
Log acquisition module, is connected for being set up with the router according to setting time interval, and from institute
State acquisition journal file and process list in router;
Parsing module, for parsing the test parameter value from the journal file.
B14, the device according to B8, wherein, the router is based on (SuSE) Linux OS
Weak system router.
Claims (10)
1. a kind of route system monitoring method, including:
Set up with router according to setting time interval and be connected, and test parameter is obtained from the router
Value and process list;
Determine the route system with the presence or absence of abnormal according to the multiple test parameter value for obtaining;
When it is determined that the route system has abnormal, abnormal process is searched according to the process list.
2. method according to claim 1, it is characterised in that in the test parameter value includes
Deposit the capability value of middle free area and the capability value of buffer area, the test parameter that the basis is repeatedly obtained
Value determines that the route system includes with the presence or absence of abnormal step:
Judge whether the capability value of the buffer area for repeatedly obtaining is incremented by, and judge the free area for repeatedly obtaining
Capability value whether successively decrease;
If the capability value of the buffer area for repeatedly obtaining is incremented by and the capability value of free area successively decreases, it is determined that institute
State route system and there is exception.
3. method according to claim 1 and 2, it is characterised in that wrapped in the process list
Capability value containing buffer area shared by each process in the route system, it is described to be looked into according to the process list
The step of finding abnormal journey includes:
Respectively by the capability value of buffer area shared by each process in the process list and the standard value for setting
It is compared;
The process of the standard value of the capability value more than setting of shared buffer area is found out, described in finding out
Process is defined as abnormal process.
4. method according to claim 1, it is characterised in that arranged according to the process described
To after the step of abnormal process, methods described also includes table search:
Determine the corresponding program block of the abnormal process;
Searched from described program block and cause the process abnormal program statement occur.
5. method according to claim 1, it is characterised in that described to be spaced according to setting time
The step of being set up with router and be connected, and test parameter value and process list are obtained from the router
For:
Set up with the router by Socket agreements according to setting time interval and be connected, and by described
Socket agreements receive test parameter value and the process list that the router is returned.
6. method according to claim 1, it is characterised in that described to be spaced according to setting time
The step of being set up with router and be connected, and test parameter value and process list are obtained from the router
Including:
Set up with the router according to setting time interval and be connected, and daily record is obtained from the router
File and process list;
The test parameter value is parsed from the journal file.
7. method according to claim 1, it is characterised in that the router is based on Linux
The weak system router of operating system.
8. a kind of route system monitoring device, including:
Link block, for being connected with router foundation according to setting time interval, and from the router
It is middle to obtain test parameter value and process list;
Determining module, for determining that the route system is according to the test parameter value for repeatedly obtaining
It is no to there is exception;
Process searching modul, for when the determining module determines that the route system has abnormal,
Abnormal process is searched according to the process list.
9. device according to claim 8, it is characterised in that in the test parameter value includes
The capability value of middle free area and the capability value of buffer area are deposited, the determining module includes:
Judge module, for judging whether the capability value of buffer area of multiple acquisition is incremented by, and judges many
Whether the capability value of the free area of secondary acquisition successively decreases;
Abnormal determining module, if be incremented by for the capability value of the multiple buffer area for obtaining and free area appearance
Value successively decreases, it is determined that the route system exists abnormal.
10. device according to claim 8 or claim 9, it is characterised in that wrapped in the process list
Capability value containing buffer area shared by each process in the route system, the process searching modul includes:
Comparing module, for respectively by the capability value of buffer area shared by each process in the process list with
The standard value of setting is compared;
Searching modul, the process of standard value of the capability value more than setting for finding out shared buffer area,
The process that will be found out is defined as abnormal process.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510811873.5A CN106789383A (en) | 2015-11-20 | 2015-11-20 | Route system monitoring method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510811873.5A CN106789383A (en) | 2015-11-20 | 2015-11-20 | Route system monitoring method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106789383A true CN106789383A (en) | 2017-05-31 |
Family
ID=58885438
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510811873.5A Pending CN106789383A (en) | 2015-11-20 | 2015-11-20 | Route system monitoring method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106789383A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109787857A (en) * | 2018-12-28 | 2019-05-21 | 深圳市吉祥腾达科技有限公司 | A kind of wireless router product internal memory optimization and the method for test |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101599048A (en) * | 2009-07-01 | 2009-12-09 | 福建星网锐捷网络有限公司 | A kind of method and apparatus of internal memory monitoring |
CN102799471A (en) * | 2012-05-25 | 2012-11-28 | 上海斐讯数据通信技术有限公司 | Method and system for process recycling of operating system |
CN104486122A (en) * | 2014-12-17 | 2015-04-01 | 上海斐讯数据通信技术有限公司 | Router abnormality recovery system and method based on watchdog |
JP2015166956A (en) * | 2014-03-04 | 2015-09-24 | Necプラットフォームズ株式会社 | Information processor, failure detection method in information processor, and failure detection program in information processor |
-
2015
- 2015-11-20 CN CN201510811873.5A patent/CN106789383A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101599048A (en) * | 2009-07-01 | 2009-12-09 | 福建星网锐捷网络有限公司 | A kind of method and apparatus of internal memory monitoring |
CN102799471A (en) * | 2012-05-25 | 2012-11-28 | 上海斐讯数据通信技术有限公司 | Method and system for process recycling of operating system |
JP2015166956A (en) * | 2014-03-04 | 2015-09-24 | Necプラットフォームズ株式会社 | Information processor, failure detection method in information processor, and failure detection program in information processor |
CN104486122A (en) * | 2014-12-17 | 2015-04-01 | 上海斐讯数据通信技术有限公司 | Router abnormality recovery system and method based on watchdog |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109787857A (en) * | 2018-12-28 | 2019-05-21 | 深圳市吉祥腾达科技有限公司 | A kind of wireless router product internal memory optimization and the method for test |
CN109787857B (en) * | 2018-12-28 | 2021-02-23 | 深圳市吉祥腾达科技有限公司 | Method for optimizing and testing memory of wireless router product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10374918B2 (en) | Method and system for configuring behavioral network intelligence system using network monitoring programming language | |
CN106034330B (en) | Mobile terminal flow processing method, apparatus and system based on content distributing network | |
CN111131379B (en) | Distributed flow acquisition system and edge calculation method | |
EP2661020B1 (en) | Adaptive monitoring of telecommunications networks | |
CN111258627B (en) | Interface document generation method and device | |
CN111917777B (en) | Network data analysis method and device and electronic equipment | |
CN111147403B (en) | Message processing method and device, storage medium and electronic device | |
CN105630662B (en) | Internal-memory detection method and device | |
CN109040028B (en) | Industrial control full-flow analysis method and device | |
CN112235253A (en) | Data asset combing method and device, computer equipment and storage medium | |
EP3789882A1 (en) | Automatic configuration of logging infrastructure for software deployments using source code | |
US9641595B2 (en) | System management apparatus, system management method, and storage medium | |
De Pessemier et al. | Analysis of the quality of experience of a commercial voice-over-IP service | |
US10225358B2 (en) | Page push method, device, server and system | |
US7971054B1 (en) | Method of and system for real-time form and content classification of data streams for filtering applications | |
CN104363187A (en) | Gateway resource response method and gateway resource response device for internet of things | |
CN106789383A (en) | Route system monitoring method and device | |
CN106648722A (en) | Flume receiving side data processing method and device based on big data | |
CN106792876A (en) | End to end network perception evaluating method and system | |
CN114189480B (en) | Flow sampling method, device, electronic equipment and medium | |
CN106301832A (en) | A kind of method and apparatus of processing system daily record message | |
CN111131090A (en) | Message processing method and device | |
US20140359104A1 (en) | Grouping processing method and system | |
CN205792705U (en) | The network system of big data repository | |
CN106130800B (en) | Data frame processing method and device |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170531 |