CN102780577A - Method for detecting network fault - Google Patents

Method for detecting network fault Download PDF

Info

Publication number
CN102780577A
CN102780577A CN2012101263611A CN201210126361A CN102780577A CN 102780577 A CN102780577 A CN 102780577A CN 2012101263611 A CN2012101263611 A CN 2012101263611A CN 201210126361 A CN201210126361 A CN 201210126361A CN 102780577 A CN102780577 A CN 102780577A
Authority
CN
China
Prior art keywords
webserver
feedback response
link order
network
network server
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
Application number
CN2012101263611A
Other languages
Chinese (zh)
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.)
China Digital Video Beijing Ltd
Original Assignee
China Digital Video Beijing 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 China Digital Video Beijing Ltd filed Critical China Digital Video Beijing Ltd
Priority to CN2012101263611A priority Critical patent/CN102780577A/en
Publication of CN102780577A publication Critical patent/CN102780577A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method for detecting a network fault. The method specifically comprises the following steps: sequentially sending a connection instruction to a network server, wherein the connection instruction is used for the connection with the network server; detecting whether a feedback response from the network server is received within a set time period; if the feedback response from the network server is received, judging that the network between the local machine and the network server is normal; and if no feedback response from the network server is received, resending the connection instruction to the network server which does not feed back the feedback response, and recording the number of times of sending the connection instruction. By using the method, the problem of the network fault during acquiring data from the Internet is solved; the network fault is detected by sending the connection instruction, so that errors during importing data from the network server can be judged in time; therefore, a user can master the connection state at the first time; and the method is high in instantaneity.

Description

A kind of network fault detecting method
Technical field
The present invention relates to the Internet communication technology field, particularly a kind of network fault detecting method.
Background technology
Because fast development of information technology, the world has got into the epoch of information, and information is numerous and jumbled, because information can be supported utilization for some crowd, thereby is regarded as a kind of resource, these information that can support utilization are claimed information.So-called information broadcasting system also is image-text information broadcasting system, is for traditional television broadcast system.Traditional video broadcast system is a main task to broadcast movable television image and sound accompaniment all, and information broadcasting system is to be major-minor with dynamic image with literal, figure, chart, propagates the system of various information.It can independently accomplish the broadcast of a television channel (information channel, TV shopping channel), also can be attached in traditional broadcast system, increases the broadcast amount of information of channel.Existing information broadcasting system has following characteristic: 1, picture, video, on roll, a left side flies, the animation footmark with screen broadcast 2, multirow information real time modifying broadcasts 3 in real time, all kinds of TV column templates of customizing; The column packing directly applies mechanically 4, board-like versatile and flexible; Can set a plurality of advertisement position 5 arbitrarily, unlimited layer captions can add a large amount of display advertising information and animation file in stack 6, the advertisement show window in real time; And title and Word message 7 can be arranged in every advertising message, can broadcast Financial Information simultaneously; Exchange rate window, stock market's wind and cloud, weather forecast etc.
Realize in the process of the present invention the inventor, find to have following defective in the prior art: when the client of information broadcasting system when network data provider obtains data, if during occurring network do not connect when waiting mistake, the client can not in time learn.
Summary of the invention
To defective of the prior art, the invention solves the problem of obtaining the network failure that occurs the data procedures from the Internet.
The invention provides a kind of network fault detecting method in order to solve above technical problem, specifically comprise:
Send link order to the webserver in order, said link order is used for being connected with the webserver;
Whether detection receives the feedback response from the said webserver in the time period of setting;
If receive the feedback response from the said webserver, then the network between the judgement and the said webserver is normal;
If do not receive feedback response, then send link order to the webserver that does not return said feedback response again, and record sends the link order number of times from the said webserver.
Wherein, said feedback response comprise said network server address and with the corresponding return code of said network server address.
Wherein, the said feedback response that receives from the said webserver specifically comprises:
Receive said from the said network server address in the feedback response of the said webserver and with the corresponding return code of said network server address, obtain the webserver that does not return said feedback response.
Wherein, said again to said webserver transmission link order, and after the record transmission link order number of times, also comprise:
Judge whether current transmission link order number of times surpasses predetermined threshold value, if send link order and finish the decision network fault; Otherwise, continue to send said link order.
Wherein, after the network between the said judgement and the said webserver is normal, also comprise:
Import data from the said webserver.
Wherein, said when the said webserver imports data, adopt the atomization operation, be specially: in importing data procedures, is connected with the webserver and makes a mistake, said data rewind is to importing preceding state.
Compared with prior art; The embodiment of the invention has the following advantages: through sending link order network failure is detected; Can in time make judgement, let the user can grasp the connection situation very first time, have good real time performance when the webserver imports data, mistake occurring.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1: the flow chart that is a kind of network fault detecting method in the embodiment of the invention 1;
Fig. 2: the flow chart that is another kind of network fault detecting method in the embodiment of the invention 2.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obvious described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
A kind of network fault detecting method is provided in the embodiment of the invention 1, as shown in Figure 1, may further comprise the steps:
Step S101 sends link order to the webserver in order, and said link order is used for being connected with the webserver.
Step S102 detects in the time period of setting whether receive the feedback response from the said webserver, if receive feedback response from the said webserver, and implementation step S103 then, otherwise, implementation step S104;
Wherein, said feedback response comprise said network server address and with the corresponding return code of said network server address;
The said feedback response that receives from the said webserver specifically comprises:
Receive said from the said network server address in the feedback response of the said webserver and with the corresponding return code of said network server address, obtain the webserver that does not return said feedback response.
Step S103, if receive the feedback response from the said webserver, then the network between the judgement and the said webserver is normal.
Step S104 sends link order to the webserver that does not return said feedback response again, and record transmission link order number of times,
Wherein, said again to said webserver transmission link order, and after the record transmission link order number of times, also comprise:
Judge whether current transmission link order number of times surpasses predetermined threshold value, if send link order and finish, with said webserver connection failure; Otherwise, continue to send said link order.
The beneficial effect that the technical scheme of the embodiment of the invention obtains is following: through sending link order network failure is detected; Can in time make judgement to when the webserver imports data, mistake occurring; Let the user can grasp the connection situation very first time, have good real time performance.
Another kind of network fault detecting method is provided in the embodiment of the invention 2, as shown in Figure 2, may further comprise the steps:
Step S201 sends link order to the webserver in order, and said link order is used for being connected with the webserver.
Step S202 detects in the time period of setting whether receive the feedback response from the said webserver, if receive feedback response from the said webserver, and implementation step S203 then, otherwise, implementation step S204;
Wherein, said feedback response comprise said network server address and with the corresponding return code of said network server address;
The said feedback response that receives from the said webserver specifically comprises:
Receive said from the said network server address in the feedback response of the said webserver and with the corresponding return code of said network server address, obtain the webserver that does not return said feedback response.
Step S203, if receive the feedback response from the said webserver, then the network between the judgement and the said webserver is normal.
Step S204 sends link order to the webserver that does not return said feedback response again, and record transmission link order number of times,
Wherein, said again to said webserver transmission link order, and after the record transmission link order number of times, also comprise:
Judge whether current transmission link order number of times surpasses predetermined threshold value, if send link order and finish, with said webserver connection failure; Otherwise, continue to send said link order.
Step S205 imports data from the said webserver, during said importing data, adopts the atomization operation, is specially: in importing data procedures, is connected with the webserver and makes a mistake, said data rewind is to importing preceding state.
The beneficial effect that the technical scheme of the embodiment of the invention obtains is following: through sending link order network failure is detected; Can in time make judgement to when the webserver imports data, mistake occurring; Let the user can grasp the connection situation very first time, have good real time performance.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize through hardware, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding; Technical scheme of the present invention can be come out with the embodied of software product, this software product can be stored in a non-volatile memory medium (can be CD-ROM, USB flash disk; Portable hard drive etc.) in; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the sketch map of a preferred embodiment, module in the accompanying drawing or flow process might not be that embodiment of the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
More than disclosedly be merely several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.

Claims (6)

1. a network fault detecting method is characterized in that, comprising:
Send link order to the webserver in order, said link order is used for being connected with the webserver;
Whether detection receives the feedback response from the said webserver in the time period of setting;
If receive the feedback response from the said webserver, then the network between the judgement and the said webserver is normal;
If do not receive feedback response, then send link order to the webserver that does not return said feedback response again, and record sends the link order number of times from the said webserver.
2. the method for claim 1 is characterized in that, said feedback response comprise said network server address and with the corresponding return code of said network server address.
3. according to claim 1 or claim 2 method is characterized in that the said feedback response that receives from the said webserver specifically comprises:
Receive said from the said network server address in the feedback response of the said webserver and with the corresponding return code of said network server address, obtain the webserver that does not return said feedback response.
4. the method for claim 1 is characterized in that, and is said again to said webserver transmission link order, and after the record transmission link order number of times, also comprises:
Judge whether current transmission link order number of times surpasses predetermined threshold value, if send link order and finish the decision network fault; Otherwise, continue to send said link order.
5. the method for claim 1 is characterized in that, after the network between the said judgement and the said webserver is normal, also comprises:
Import data from the said webserver.
6. method as claimed in claim 5 is characterized in that, and is said when the said webserver imports data; The operation of employing atomization; Be specially: in importing data procedures, be connected with the webserver and make a mistake, said data rewind state before import.
CN2012101263611A 2012-04-26 2012-04-26 Method for detecting network fault Pending CN102780577A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101263611A CN102780577A (en) 2012-04-26 2012-04-26 Method for detecting network fault

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101263611A CN102780577A (en) 2012-04-26 2012-04-26 Method for detecting network fault

Publications (1)

Publication Number Publication Date
CN102780577A true CN102780577A (en) 2012-11-14

Family

ID=47125343

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101263611A Pending CN102780577A (en) 2012-04-26 2012-04-26 Method for detecting network fault

Country Status (1)

Country Link
CN (1) CN102780577A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104219091A (en) * 2014-08-27 2014-12-17 中国科学院计算技术研究所 System and method for network operation fault detection
CN104330999A (en) * 2014-06-27 2015-02-04 青岛海尔股份有限公司 Processing method and processing device after control command is sent to degerming and odor-removing device
CN106034039A (en) * 2015-03-13 2016-10-19 腾讯科技(深圳)有限公司 Fault notification method and system
CN107070739A (en) * 2017-02-24 2017-08-18 上海斐讯数据通信技术有限公司 A kind of router operation troubles intelligent detecting method and system
CN107704582A (en) * 2017-10-08 2018-02-16 安徽康佳电子有限公司 A kind of closed loop Ecological feed-back catenary system based on server and webpage
CN110138628A (en) * 2018-02-02 2019-08-16 浙江宇视科技有限公司 A kind of camera network fault real-time diagnosis and restoration methods, device and video camera
CN112260897A (en) * 2020-10-19 2021-01-22 海尔优家智能科技(北京)有限公司 Method and device for identifying connection abnormity
CN112985854A (en) * 2019-12-16 2021-06-18 青岛海尔新能源电器有限公司 Fault detection method and detector for heat pump water heater

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1791034A (en) * 2004-12-13 2006-06-21 华为技术有限公司 Detecting method
CN101383734A (en) * 2008-10-20 2009-03-11 华为技术有限公司 State detecting method, system and apparatus
CN101656633A (en) * 2008-08-21 2010-02-24 北京亿企通信息技术有限公司 Method for testing network in instant messaging device
CN101662387A (en) * 2009-10-14 2010-03-03 中国电信股份有限公司 System for detecting computer accessing situation in network and method thereof
CN102148725A (en) * 2011-03-21 2011-08-10 中兴通讯股份有限公司 Service state detecting method and system for AAA server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1791034A (en) * 2004-12-13 2006-06-21 华为技术有限公司 Detecting method
CN101656633A (en) * 2008-08-21 2010-02-24 北京亿企通信息技术有限公司 Method for testing network in instant messaging device
CN101383734A (en) * 2008-10-20 2009-03-11 华为技术有限公司 State detecting method, system and apparatus
CN101662387A (en) * 2009-10-14 2010-03-03 中国电信股份有限公司 System for detecting computer accessing situation in network and method thereof
CN102148725A (en) * 2011-03-21 2011-08-10 中兴通讯股份有限公司 Service state detecting method and system for AAA server

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104330999A (en) * 2014-06-27 2015-02-04 青岛海尔股份有限公司 Processing method and processing device after control command is sent to degerming and odor-removing device
CN104330999B (en) * 2014-06-27 2018-02-02 青岛海尔股份有限公司 Processing method from control instruction to degerming deodorizing device and processing unit after sending
CN104219091A (en) * 2014-08-27 2014-12-17 中国科学院计算技术研究所 System and method for network operation fault detection
CN106034039A (en) * 2015-03-13 2016-10-19 腾讯科技(深圳)有限公司 Fault notification method and system
CN106034039B (en) * 2015-03-13 2019-12-10 腾讯科技(深圳)有限公司 Fault notification method and system
CN107070739A (en) * 2017-02-24 2017-08-18 上海斐讯数据通信技术有限公司 A kind of router operation troubles intelligent detecting method and system
CN107704582A (en) * 2017-10-08 2018-02-16 安徽康佳电子有限公司 A kind of closed loop Ecological feed-back catenary system based on server and webpage
CN110138628A (en) * 2018-02-02 2019-08-16 浙江宇视科技有限公司 A kind of camera network fault real-time diagnosis and restoration methods, device and video camera
CN110138628B (en) * 2018-02-02 2021-06-22 浙江宇视科技有限公司 Real-time diagnosis and recovery method and device for network fault of camera and camera
CN112985854A (en) * 2019-12-16 2021-06-18 青岛海尔新能源电器有限公司 Fault detection method and detector for heat pump water heater
CN112260897A (en) * 2020-10-19 2021-01-22 海尔优家智能科技(北京)有限公司 Method and device for identifying connection abnormity

Similar Documents

Publication Publication Date Title
CN102780577A (en) Method for detecting network fault
US9787487B2 (en) Facilitating media streaming with social interaction
CN103974061B (en) A kind of method of testing and system play
US10601891B2 (en) Cloud streaming service system and cloud streaming service method for utilizing an optimal GPU for video decoding based on resource conditions, and apparatus for the same
CN104023271A (en) Advertisement information pushing method and user equipment
CN109561266A (en) The screenshotss method and TV of TV
CN103716656A (en) Video loading method and electronic device
CN109120949B (en) Video message pushing method, device, equipment and storage medium for video set
CN103533399A (en) Video-information display method and device
CN103546774A (en) Method and system for realizing seamless access to media file
CN103607642A (en) On demand method of multimedia program and electronic equipment
CN103414866A (en) Method for playing on-line audio and on-line video, embedded type multimedia device and television set
CN103747282A (en) Program list arranging method and equipment
CN101951376A (en) Method, equipment and system for processing advertisement
CN105872602A (en) Advertisement data obtaining method, device and related system
CN104581396A (en) Processing method and device for promotion information
CN102497580B (en) Video information synthesizing method based on audio feature information
CN103618952A (en) Method for playing boot animation of intelligent television and intelligent television
CN103248647A (en) Method and server providing cross-platform book reading
CN103136235A (en) Data processing platform, data processing system and data processing method
CN103746904A (en) Information interaction method and device
CN103379022B (en) A kind of instant communication method based on Internet map search and system
CN103747342A (en) Program list arranging method and device
CN103957446B (en) Set top box and its control method that support multi-user based on linux uses
CN106028051A (en) Method for realizing digital education interaction based on mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20121114

RJ01 Rejection of invention patent application after publication