Summary of the invention
Monitor the problems referred to above existed for existing network failure, now provide a kind of be intended to realize can in terminal network appliance to networking fault monitor the fault real-time listening system based on terminal network appliance and terminal network appliance.
Concrete technical scheme is as follows:
Based on a fault real-time listening system for terminal network appliance, be applied in terminal network appliance, comprise:
Whether one monitoring means, send fault in order to monitor described terminal network appliance, to generate monitoring result and to export;
One output unit, connects described monitoring means, and when described terminal network appliance sends fault, described monitoring means generates fault message, and described output unit is in order to be sent to server and/or client by described fault message.
Preferably, the data communication protocol of described terminal network appliance has hierarchical structure, described hierarchical structure comprises from top to bottom: application layer module, presentation layer module, session layer module, transport layer module, network layer module, Data Link Layer Module and physical layer block, and described terminal network appliance comprises:
One filters administrative unit, be connected with described monitoring means, described filtration administrative unit comprises described physical layer block, Data Link Layer Module and described network layer module, and described filtration administrative unit provides a link table, in order to process packet according to the rule in described link table;
Whether described monitoring means processes described packet in order to monitor described filtration administrative unit in Preset Time, to generate monitoring result and to export.
Preferably, described monitoring means comprises:
Whether one detection module, process described packet in order to monitoring described filtration administrative unit in Preset Time, and output detections result;
One matching module, connects described detection module, provides one to preset list, in order to described testing result to be mated with the fault type in described list, to obtain corresponding fault type, and exports.
Preferably, described terminal network appliance also comprises:
One wireless data transmission unit, is connected with described monitoring means, and described wireless data transmission unit comprises described physical layer block, described Data Link Layer Module and described transport layer module, and described wireless data transmission unit is in order to receive and dispatch described packet;
Whether described monitoring means processes described packet in order to monitor described wireless data transmission unit in described Preset Time, to generate monitoring result and to export.
Preferably, whether described detection module processes described packet in order to monitor described wireless data transmission unit in described Preset Time, and output detections result;
Described matching module, in order to described testing result to be mated with the fault type in described list, to obtain corresponding fault type, and exports.
Preferably, described terminal network appliance also comprises:
One network element, connects described monitoring means, in order to transmitting network data bag;
Whether described monitoring means processes described network packet in order to monitor described network element in Preset Time, to generate monitoring result and to export.
Preferably, described network element comprises:
One link block, in order to set up the connection of described terminal network appliance and described server;
Whether described monitoring means is normally connected with described server in order to monitor described terminal network appliance, to generate monitoring result and to export.
Preferably, described network element comprises:
One path module, in order to record described packet arrive destination address the path of process and corresponding timing node;
Whether described monitoring means is normal in order to monitor described path module, to generate monitoring result and to export.
Preferably, described network element comprises:
One streaming media module, in order to transfer audio files, and/or video file, and/or multimedia file;
Whether described monitoring means can audio file described in normal transmission in order to monitor described streaming media module, and/or described video file, and/or described multimedia file, to generate monitoring result and to export.
A kind of terminal network appliance, comprises the above-mentioned fault real-time listening system based on terminal network appliance.
The beneficial effect of technique scheme:
In the technical program, fault real-time listening system based on terminal network appliance can be monitored network failure at terminal network appliance by monitoring means, monitoring result can be sent to the server of ISP by output unit, just can determine failure cause to realize ISP without the need to location.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under the prerequisite of not making creative work, all belongs to the scope of protection of the invention.
It should be noted that, when not conflicting, the embodiment in the present invention and the feature in embodiment can combine mutually.
Below in conjunction with the drawings and specific embodiments, the invention will be further described, but not as limiting to the invention.
As shown in Figure 1, a kind of fault real-time listening system based on terminal network appliance, is applied in terminal network appliance, comprises:
Whether one monitoring means 2, send fault in order to monitoring terminal network equipment, to generate monitoring result and to export;
One output unit 5, connects monitoring means 2, and when terminal network appliance sends fault, monitoring means 5 generates fault message, and output unit 5 is in order to be sent to server 6 and/or client 7 by fault message.
In the present embodiment, fault real-time listening system based on terminal network appliance can be monitored network failure at terminal network appliance by monitoring means 2, monitoring result can be sent to the server 6 of ISP by output unit 5, just can determine failure cause to realize ISP without the need to location.
As shown in Figure 1, in a preferred embodiment, the data communication protocol of terminal network appliance has hierarchical structure, hierarchical structure comprises from top to bottom: application layer module, presentation layer module, session layer module, transport layer module, network layer module, Data Link Layer Module and physical layer block, and terminal network appliance comprises:
One filters administrative unit 1, is connected with monitoring means 2, filters administrative unit 1 and comprises physical layer block, Data Link Layer Module and network layer module, filters administrative unit 1 and provides a link table, in order to process packet according to the rule in link table;
Whether monitoring means 2 filters administrative unit 1 in order to monitoring in Preset Time and processes packet, to generate monitoring result and to export.
In the present embodiment, the fault of physical layer block, Data Link Layer Module and network layer module can be monitored by monitoring means 2 based on the fault real-time listening system of terminal network appliance, to realize the monitoring to incipient fault, monitoring result can be sent to server 6 and the client 7 of ISP by output unit 5, just can determine failure cause to realize ISP without the need to location.
As shown in Figure 1, in a preferred embodiment, monitoring means 2 comprises:
Whether one detection module 21, process packet in Preset Time inner filtration administrative unit 1 in order to monitoring, and output detections result;
One matching module 22, connection detection module 21, provides one to preset list, in order to testing result to be mated with the fault type in list, to obtain corresponding fault type, and exports.
In the present embodiment, by output unit 5, the fault behavior monitored is reported to the server 6 of ISP, with facilitate ISP when time without the need to test problems, can directly know the reason causing fault, by output unit 5, the fault type monitored is sent to client 7 simultaneously, settles a dispute by the parties concerned themselves fault for user.
In a preferred embodiment, terminal network appliance also comprises:
One wireless data transmission unit 3, is connected with monitoring means 2, and wireless data transmission unit 3 comprises physical layer block, Data Link Layer Module and transport layer module, and wireless data transmission unit 3 is in order to transceiving data bag;
Whether monitoring means 2 processes packet in order to monitoring wireless data transmission unit in Preset Time 3, to generate monitoring result and to export.
In the present embodiment, monitoring means 2 can to terminal network appliance as router carries out real-time dynamic a kind of monitoring behavior, not only can monitor the user's suspension problem because router causes, also by monitoring means 2 to filtering the monitoring of administrative unit 1 and wireless data transmission unit 3 to realize the monitoring to the incipient fault behavior below transport layer, as the disconnection occurred during online peak period, wireless client cannot accesses network, but this behavior does not affect cable customer holds accesses network, wireless data transmission unit 3 transceiving data rate reduction, wireless client access webpage is slow, Deng behavior.
In a preferred embodiment, whether detection module 21 processes packet in order to monitoring wireless data transmission unit in Preset Time 3, and output detections result;
Matching module 22, in order to testing result to be mated with the fault type in list, to obtain corresponding fault type, and exports.
In the present embodiment, by detection module 21 real-time listening router abnormal behaviour, this abnormal behaviour comprises behavior of breaking down such as wireless disconnection, client and does not get IP address, network disconnection etc.; Also comprise that incipient fault behavior is as too low in wireless data transmission unit 3 transceiving data speed, router forwarding data bag time packet loss more, iptables regular loss, air interference are larger etc., and accesses network that behavior causes is slack-off, the problem such as network failure once in a while.
In a preferred embodiment, terminal network appliance also comprises:
One network element 4, connects monitoring means 2, in order to transmitting network data bag;
Whether monitoring means 2 processes network packet in order to monitoring network unit in Preset Time 4, to generate monitoring result and to export.
Further, network element 4 can comprise application layer module, presentation layer module and session layer module.
In the present embodiment, can the abnormal behaviour of monitoring terminal network equipment itself by monitoring means 2, by monitoring network unit 4 to realize monitoring to behavior of breaking down more than defeated layer, as wireless disconnection, webpage of not opening, but bitcom such as can to use at the failure problems.
In a preferred embodiment, network element 4 comprises:
One link block 41, in order to set up the connection of terminal network appliance and server 6;
Whether monitoring means 2 is normally connected with server 6 in order to monitoring terminal network equipment, to generate monitoring result and to export.
In the present embodiment, and network connection speed whether unobstructed by the network of ping order monitoring link block 41.
In a preferred embodiment, network element 4 comprises:
One path module 42, in order to record data bag arrive destination address the path of process and corresponding timing node;
Whether monitoring means 2 is normal in order to monitor path module 42, to generate monitoring result and to export.
In the present embodiment, follow the tracks of (tracert) order by route and determine the path that IP packet access destination is taked.
In a preferred embodiment, network element 4 comprises:
One streaming media module 43, in order to transfer audio files, and/or video file, and/or multimedia file;
Whether monitoring means 2 can normal transmission audio file in order to monitoring stream media module 43, and/or video file, and/or multimedia file, to generate monitoring result and to export.
In the technical program, for router, the detailed process of monitoring fault is: router electrifying startup monitor process; Router is connected to network; Monitoring means 2 Real-Time Monitoring router abnormal behaviour; When note abnormalities behavior time, by output unit 5, abnormal behaviour is reported to server 6 and client 7.
Can the abnormal behaviour of dynamic monitoring terminal network equipment in real time by monitoring means 2, this abnormal behaviour not only comprises and suddenly to break down, as network disconnects, ping failure, DNS (DomainNameSystem, domain name system) resolve extremely, process is closed, the behavior of the problems such as wireless connections disconnection, also comprise incipient fault behavior, as the network layer below transport layer and data link layer possibility produced problem, wireless connection is caused but not open webpage though wireless data indirect under the strong state of interference is not received or do not given out a contract for a project, packet forwards abnormal by iptables, packet loss is high, ping wraps that overtime rate is high causes the behavior slowly of client random access webpage, also these abnormal behaviour can being reported ISP place, when ISP process problem, directly processing problem without the need to the log information of detection failure just by reporting.
Further, also this monitoring behavior can be applied to software test, with make tester without the need to by analyze external environment, exogenous data, without the need to being supported by extraneous instrument, directly can investigate problem place by abnormal log.
A kind of terminal network appliance, comprises the above-mentioned fault real-time listening system based on terminal network appliance.
Advantage of the present invention has:
(1) router abnormal behaviour can be monitored dynamically in real time;
(2) abnormal behaviour daily record can be reported to ISP place in time, ISP just can determine failure cause place without the need to location;
(3) can by abnormal behaviour report of user, to understand in the very first time to make user that cause cannot the basic reason of accesses network;
(4) not only can monitor transport layer fault, the fault of the following network layer of transport layer, data link layer can also be monitored;
(5) not only monitor and break down, can also incipient fault be monitored.
The foregoing is only preferred embodiment of the present invention; not thereby embodiments of the present invention and protection range is limited; to those skilled in the art; should recognize and all should be included in the scheme that equivalent replacement done by all utilizations specification of the present invention and diagramatic content and apparent change obtain in protection scope of the present invention.