Invention content
For the above problem existing for the monitoring of existing network failure, one kind is now provided and aims at and can be set in terminal network
The real-time monitoring system of the failure based on terminal network appliance and terminal network appliance being monitored in standby to network failure.
Specific technical solution is as follows:
A kind of real-time monitoring system of failure based on terminal network appliance, applied in terminal network appliance, including:
One monitoring unit, to monitor whether the terminal network appliance sends failure, to generate monitoring result and export;
One output unit connects the monitoring unit, when the terminal network appliance sends failure, the monitoring unit
Fault message is generated, the output unit by the fault message being sent to server and/or client.
Preferably, the data communication protocol of the terminal network appliance have hierarchical structure, the hierarchical structure from up to
Under include:Application layer module, expression layer module, session layer module, transport layer module, network layer module, Data Link Layer Module
And physical layer block, the terminal network appliance include:
One filtering administrative unit, connect with the monitoring unit, it is described filtering administrative unit including the physical layer block,
Data Link Layer Module and the network layer module, the filtering administrative unit provides a link table, to according to the link
Rule in table handles data packet;
The monitoring unit to monitored in preset time it is described filtering administrative unit whether to the data packet carry out
Processing, to generate monitoring result and export.
Preferably, the monitoring unit includes:
One detection module, to monitor in preset time it is described filtering administrative unit whether to the data packet at
Reason, and export testing result;
One matching module connects the detection module, provides a default list, to by the testing result and the table
Fault type in list is matched, and to obtain corresponding fault type, and is exported.
Preferably, the terminal network appliance further includes:
One wireless data transmission unit is connect with the monitoring unit, and the wireless data transmission unit includes the object
Layer module, the Data Link Layer Module and the transport layer module are managed, the wireless data transmission unit is described to receive and dispatch
Data packet;
Whether the monitoring unit in the preset time monitoring the wireless data transmission unit to the number
It is handled according to packet, to generate monitoring result and export.
Preferably, whether the detection module is right to monitor the wireless data transmission unit in the preset time
The data packet is handled, and exports testing result;
The matching module is the testing result to be matched with the fault type in the list, to obtain phase
The fault type answered, and export.
Preferably, the terminal network appliance further includes:
One network element connects the monitoring unit, to transmitting network data packet;
The monitoring unit to monitored in preset time the network element whether to the network packet carry out
Processing, to generate monitoring result and export.
Preferably, the network element includes:
One link block, to establish the connection of the terminal network appliance and the server;
The monitoring unit is to monitor whether the terminal network appliance normally connect with the server, to generate prison
It surveys result and exports.
Preferably, the network element includes:
One path module, to record the data packet arrive at location paths traversed and it is corresponding when segmentum intercalaris
Point;
Whether the monitoring unit is normal to monitor the path module, to generate monitoring result and export.
Preferably, the network element includes:
One streaming media module, to transfer audio files and/or video file and/or multimedia file;
Whether the monitoring unit can audio file described in normal transmission and/or institute to monitor the streaming media module
Video file and/or the multimedia file are stated, to generate monitoring result and export.
A kind of terminal network appliance, including the above-mentioned real-time monitoring system of the failure based on terminal network appliance.
The advantageous effect of above-mentioned technical proposal:
In the technical program, the real-time monitoring system of failure based on terminal network appliance can be in terminal network by monitoring unit
Network equipment is monitored network failure, and monitoring result can be sent to the service of Internet Service Provider by output unit
Device, to realize that Internet Service Provider just can determine failure cause without positioning.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art obtained under the premise of creative work is not made it is all its
His embodiment, shall fall within the protection scope of the present invention.
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the present invention can phase
Mutually combination.
The invention will be further described in the following with reference to the drawings and specific embodiments, but not as limiting to the invention.
As shown in Figure 1, a kind of real-time monitoring system of failure based on terminal network appliance, applied to terminal network appliance
In, including:
Whether one monitoring unit 2 sends failure to monitoring terminal network equipment, to generate monitoring result and export;
One output unit 5 connects monitoring unit 2, and when terminal network appliance sends failure, monitoring unit 5 generates failure
Information, output unit 5 by fault message being sent to server 6 and/or client 7.
In the present embodiment, the real-time monitoring system of failure based on terminal network appliance can be in terminal by monitoring unit 2
The network equipment is monitored network failure, can monitoring result be sent to Internet Service Provider by output unit 5
Server 6, to realize that Internet Service Provider just can determine failure cause without positioning.
As shown in Figure 1, in a preferred embodiment, the data communication protocol of terminal network appliance has hierarchical structure, layer
Secondary structure includes from top to bottom:Application layer module, expression layer module, session layer module, transport layer module, network layer module, number
According to link layer module and physical layer block, terminal network appliance includes:
One filtering administrative unit 1, connect with monitoring unit 2, and filtering administrative unit 1 includes physical layer block, data link
Layer module and network layer module, filtering administrative unit 1 provide a link table, to the rule in link table to data packet into
Row processing;
Monitoring unit 2 in preset time to monitor whether filtering administrative unit 1 is handled data packet, with generation
Monitoring result simultaneously exports.
In the present embodiment, the real-time monitoring system of failure based on terminal network appliance can monitor object by monitoring unit 2
The failure of layer module, Data Link Layer Module and network layer module is managed, to realize the monitoring to incipient fault, passes through output unit
5 can be sent to monitoring result the server 6 of Internet Service Provider and client 7, to realize Internet Service Provider
Failure cause is just can determine without positioning.
As shown in Figure 1, in a preferred embodiment, monitoring unit 2 includes:
One detection module 21 filters whether administrative unit 1 is handled data packet to monitor in preset time, and
Export testing result;
One matching module 22, connecting detection module 21 provide a default list, to will be in testing result and list therefore
Barrier type is matched, and to obtain corresponding fault type, and is exported.
In the present embodiment, the failure behavior monitored is reported to by Internet Service Provider by output unit 5
Server 6, with facilitate Internet Service Provider when without test problems in the case of, can directly know the original for causing failure
Cause, while the fault type monitored is sent to by client 7 by output unit 5, so that user settles a dispute by the parties concerned themselves failure.
In a preferred embodiment, terminal network appliance further includes:
One wireless data transmission unit 3, connect with monitoring unit 2, wireless data transmission unit 3 include physical layer block,
Data Link Layer Module and transport layer module, wireless data transmission unit 3 is to transceiving data packet;
Monitoring unit 2 in preset time monitor wireless data transmission unit 3 whether data packet is handled, with
Generation monitoring result simultaneously exports.
In the present embodiment, monitoring unit 2 can carry out terminal network appliance such as router dynamic a kind of monitoring in real time
Behavior can not only monitor user's suspension problem caused by router, can also be by monitoring unit 2 to filtering administrative unit 1
Monitoring with wireless data transmission unit 3 is to realize the monitoring to the incipient fault behavior below transport layer, such as on online peak
The disconnection occurred during phase, wireless client can not access network, but this behavior does not influence cable customer end and accesses network, wirelessly
3 transceiving data rate of data transmission unit reduces, and wireless client access webpage is slow, waits behaviors.
In a preferred embodiment, detection module 21 in preset time monitor wireless data transmission unit 3 whether
Data packet is handled, and exports testing result;
Matching module 22 is testing result to be matched with the fault type in list, to obtain corresponding failure classes
Type, and export.
In the present embodiment, router abnormal behaviour can be monitored in real time by detection module 21, which is included
Behavior of breaking down is such as wireless to be disconnected, client does not get IP address, network disconnects;It is for example wireless to further include incipient fault behavior
3 transceiving data rate of data transmission unit is too low, router forwarding data packet when packet loss is more, iptables regular loss, nothing
Line interference is larger to wait the caused network that accesses of behaviors slack-off, once in a while the problems such as network failure.
In a preferred embodiment, terminal network appliance further includes:
One network element 4 connects monitoring unit 2, to transmitting network data packet;
Monitoring unit 2 in preset time monitoring network unit 4 whether network packet is handled, with generation
Monitoring result simultaneously exports.
Further, network element 4 may include application layer module, expression layer module and session layer module.
In the present embodiment, by monitoring unit 2 can the abnormal behaviour of monitoring terminal network equipment in itself, pass through monitoring net
Network unit 4 is to realize the monitoring to behavior of having broken down more than defeated layer, such as:It wirelessly disconnects, webpage of not opening, but communicates soft
Part such as can use at the failure problems.
In a preferred embodiment, network element 4 includes:
One link block 41, to establish the connection of terminal network appliance and server 6;
Whether monitoring unit 2 normally connect to monitoring terminal network equipment with server 6, to generate monitoring result and defeated
Go out.
In the present embodiment, whether the network that link block 41 is monitored by ping orders is unobstructed and network connection is fast
Degree.
In a preferred embodiment, network element 4 includes:
One path module 42 arrives at location paths traversed and corresponding timing node to record data packet;
Whether monitoring unit 2 is normal to monitor path module 42, to generate monitoring result and export.
In the present embodiment, (tracert) is tracked by routing and orders the road for determining that IP data packet access targets are taken
Diameter.
In a preferred embodiment, network element 4 includes:
One streaming media module 43, to transfer audio files and/or video file and/or multimedia file;
Monitoring unit 2 to monitor streaming media module 43 whether can normal transmission audio file and/or video file and/
Or multimedia file, to generate monitoring result and export.
In the technical program, by taking router as an example, the detailed process for monitoring failure is:Router electrifying startup monitor into
Journey;Router is connected to network;Monitoring unit 2 monitors router abnormal behaviour in real time;When note abnormalities behavior when, pass through output
Abnormal behaviour is reported to server 6 and client 7 by unit 5.
By monitoring unit 2 can dynamic monitoring terminal network equipment in real time abnormal behaviour, which not only wraps
Include it is sudden broken down, as network disconnect, ping failure, DNS (Domain Name System, domain name system) parsing it is different
Often, the behavior for the problems such as process is closed, wireless connection disconnects, further includes incipient fault behavior, such as the network layer below transport layer
The problem of being likely to occur with data link layer, wireless data indirect in a state that interference is strong, which is not received or do not given out a contract for a project, to be caused wirelessly
Though connection is not opened but, webpage, data packet are by the way that iptables forwardings are abnormal, packet loss is high, overtime rate is high leads to visitor for ping packets
The slow behavior of family end random access webpage;These abnormal behaviours can be also reported at ISP, when ISP process problems, without inspection
The direct process problem of the log information reported can be passed through by surveying failure.
Further, also this monitoring behavior can be applied to software test, so that tester is without extraneous by analyzing
Environment, need not be supported exogenous data by extraneous tool, can directly pass through abnormal log and investigate to where problem.
A kind of terminal network appliance, including the above-mentioned real-time monitoring system of the failure based on terminal network appliance.
Advantages of the present invention has:
(1) router abnormal behaviour can be dynamically monitored in real time;
(2) abnormal behaviour daily record can be reported at ISP in time, ISP is just can determine without positioning where failure cause;
It (3) can be by abnormal behaviour report of user, so that user understands to cause in first time can not access the basic of network
Reason;
(4) transport layer failure can be not only monitored, may also listen for the event of transport layer following network layer, data link layer
Barrier;
(5) it does not listen only to break down, may also listen for incipient fault.
The foregoing is merely preferred embodiments of the present invention, not thereby limit embodiments of the present invention and protection model
It encloses, to those skilled in the art, should can appreciate that all with made by description of the invention and diagramatic content
Equivalent replacement and obviously change obtained scheme, should all include within the scope of the present invention.