CN104869033B - It is a kind of to be used to determine the method and apparatus extremely linked - Google Patents
It is a kind of to be used to determine the method and apparatus extremely linked Download PDFInfo
- Publication number
- CN104869033B CN104869033B CN201510198012.4A CN201510198012A CN104869033B CN 104869033 B CN104869033 B CN 104869033B CN 201510198012 A CN201510198012 A CN 201510198012A CN 104869033 B CN104869033 B CN 104869033B
- Authority
- CN
- China
- Prior art keywords
- link
- equipment
- testing result
- result information
- detected
- 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.)
- Active
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/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
Landscapes
- Engineering & Computer Science (AREA)
- Environmental & Geological Engineering (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
It is a kind of to be used to determine the method and apparatus extremely linked.It is used to determine the method extremely linked in the first equipment the present invention provides a kind of, wherein, this method includes:Obtain the testing result information of link from second equipment at least once, and when all testing result information of the link indicate it is described be linked as extremely linking when, the link is determined as extremely linking;Wherein, a testing result information network of the instruction based at least one service provider links the testing result being detected to described, and the corresponding service provider of different testing result information of same link is different.According to the scheme of the present embodiment, it is more accurate to linking the result being detected to cause, and enables to more important link preferentially to be detected, when more important link is confirmed as extremely linking, can quickly alert.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method and apparatus for determining extremely to link.
Background technology
In the prior art, during the dead link of monitoring, one-time detection only usually is carried out to a link, and according to this
The testing result that disposable detection obtains directly determines to be linked as extremely link or non-dead link;Also, work as link to be detected
For it is multiple when, the prior art typically directly using the scheme of serial or parallel come successively to it is such link be detected.
The content of the invention
It is used to determine the method and apparatus extremely linked the object of the present invention is to provide a kind of.
According to an aspect of the present invention, there is provided it is a kind of to be used to determine the method extremely linked in the first equipment, wherein, should
Method includes:
The testing result information of link from second equipment, and owning when the link are obtained at least once
Testing result information indicates described when being linked as extremely linking, and the link is determined as extremely linking;
Wherein, a testing result information network of the instruction based at least one service provider links what is be detected to described
Testing result, and the corresponding service provider of different testing result information of same link is different.
According to another aspect of the present invention, additionally provide a kind of side for being used to link is detected in the second equipment
Method, wherein, this method includes:
Obtain link to be detected;
Network based at least one service provider is detected the link, obtains the testing result information of the link, and
When the testing result information indicates that this is linked as extremely linking, the testing result information is supplied to first equipment.
According to another aspect of the present invention, additionally provide it is a kind of be used to determine the device that extremely links in the first equipment,
Wherein, which includes:
For obtaining the testing result information of link from second equipment at least once, and when the link
All testing result information indicate the device for when being linked as extremely linking, the link being determined as extremely linking;
Wherein, a testing result information network of the instruction based at least one service provider links what is be detected to described
Testing result, and the corresponding service provider of different testing result information of same link is different.
According to another aspect of the present invention, additionally provide a kind of dress for being used to link is detected in the second equipment
Put, wherein, which includes:
For obtaining the device of link to be detected;
The link is detected for the network based at least one service provider, obtains the testing result letter of the link
Breath, and when the testing result information indicates that this is linked as extremely linking, the testing result information is supplied to described first
The device of equipment.
According to another aspect of the present invention, a kind of system is additionally provided, which includes the first equipment of the present invention
With the second equipment.
Compared with prior art, the present invention has the following advantages:1) only when based on whole institutes of service provider available for detection
The testing result information of acquisition indicates one when being linked as extremely linking, and just is determined as extremely linking by the link, so as to so that
The result that must be detected is more accurate, avoids the problem that directly being detected as extremely linking by normal link due to single service provider;2)
It is to be detected the plurality of link to be detected according to the precedence information of the plurality of link when being linked as multiple, so that
So that more important link (link of the official website of such as through service side) can be preferentially detected, so that when heavier
When the link wanted is detected as extremely linking, the link can be reported in time, and when finally determining that this is linked as extremely linking, can
Give a warning and deal with time, so that the link can recover normal as early as possible;3) the second equipment is merely responsible for the inspection to link
Survey, control of first device service to detection process, and can be transmitted between the first equipment and the second equipment by message queue
Testing result information and detection configured information, this causes the coupling between the first equipment and the second equipment to substantially reduce, and subtracts
The strong dependency between the first equipment and the second equipment is lacked;4) for link to be detected, when the second equipment is based at least one
When the network of a service provider is detected the link obtained testing result information and indicates that this is linked as extremely linking, second sets
It is standby to report the link to the first equipment, afterwards, letter is indicated for the detection of the link whenever the first equipment is provided to the second equipment
During breath, the second equipment just re-starts detection based on the network of other service providers to the link, is circulated with this, and the first equipment can
The testing result information of the corresponding link of multiple service providers is obtained, only when the corresponding detection of whole service providers available for detection
When result information indicates that this is linked as extremely linking, the first equipment just determines that this is linked as extremely linking, so that testing result is more
It is accurate to add.
Brief description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, of the invention is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is the flow diagram of the method for being used to determine extremely to link of one embodiment of the invention;
Fig. 2 is the flow diagram of the method for being used to determine extremely to link of another embodiment of the present invention;
Fig. 3 is the structure diagram of the system for being used to determine extremely to link of one embodiment of the invention;
Fig. 4 is the structure diagram of the system for being used to determine extremely to link of another embodiment of the present invention;
Fig. 5 is the exemplary multiple schematic diagrames for linking corresponding priority level;
Fig. 6 is the schematic diagram of an exemplary priority level and the correspondence of detection relevant information.
The same or similar reference numeral represents the same or similar component in attached drawing.
Embodiment
The present invention is described in further detail below in conjunction with the accompanying drawings.
Fig. 1 is the flow diagram of the method for being used to determine extremely to link of one embodiment of the invention.
Wherein, the method for the present embodiment is mainly realized by the first equipment and the second equipment;First equipment and
Two equipment include but not limited to single network server, the server group of multiple webservers composition or based on cloud computings
The cloud being made of a large amount of computers or the webserver of (Cloud Computing), wherein, cloud computing is Distributed Calculation
One kind, a super virtual computer being made of the computer collection of a group loose couplings;First equipment and the second equipment
Residing network includes but not limited to internet, wide area network, Metropolitan Area Network (MAN), LAN, VPN network etc.;Preferably, described first set
Standby and the second equipment is located in same LAN;It is highly preferred that the LAN includes the first equipment and multiple second equipment.
It should be noted that first equipment and the second equipment are only for example, other are existing or are likely to occur from now on
The first equipment and the second equipment be such as applicable to the present invention, should also be included within the scope of the present invention, and with reference side
Formula is incorporated herein.
Step S101, step S102 and step S103 are included according to the method for the present embodiment.
In step S101, the second equipment obtains link to be detected.
Specifically, the implementation of the second equipment acquisition link to be detected includes but not limited to:
1) the first equipment provides link to the second equipment, and the second equipment receives the link from the first equipment.
Specifically, the first equipment provides link based on the network linking between the second equipment to the second equipment, and second sets
It is standby that the link from the first equipment is received by the network linking.
Preferably, first equipment and the second equipment are located in same LAN, and the first equipment passes through file copy
Order to the second equipment and link is provided, the second equipment directly receives the link.
Preferably, in this implementation, the first equipment is also provided to while the offer link of the second equipment to the second equipment
Configured information, the configured information are used to indicate that network of second equipment based at least one service provider examines the link
Survey.Wherein, the first equipment can determine at least one service provider using various ways;For example, the first equipment is at random from available for examining
A service provider is randomly choosed in whole service providers of survey;In another example the first equipment is according to whole service providers available for detection
History Detection accuracy, to select the highest service provider of history Detection accuracy.
2) the second equipment is received from other equipment, to be detected link.
Preferably, the other equipment is located in same LAN with first equipment, second equipment.Specifically
Ground, the second equipment receive the implementation from other equipment, to be detected link and are set with the reception of the second equipment from first
The implementation of standby link is same or similar.
3) the second equipment, which directly acquires, is manually entered to second equipment, to be detected link.
Preferably, it is described it is to be detected be linked as multiple, the step S101 further comprises:Second equipment obtains to be checked
The multiple links surveyed and the precedence information of the plurality of link.
Wherein, the precedence information is used to indicate the priority level each linked in the plurality of link;Preferably, often
A priority level can be further subdivided into more sub- grades.
Fig. 5 is the schematic diagrames of a corresponding priority level of exemplary multiple links, wherein, priority level from height to
Low to be followed successively by A, B, C, B1 and B2 are the sub- grade included in priority B;The priority level of url1 is A's, url2 and url3
Priority level is B1, and the priority level of url4 is B2, and the priority level of url5 is C.
It should be noted that can be according to many factors (significance level of the amount of being clicked, link such as link, the people of user
Work set etc.) come determine link priority level;
It should be noted that preferably, it is right that each priority level institute is previously stored with the first equipment and the second equipment
The detection relevant information answered.Wherein, the detection relevant information includes any with the relevant information of detection mode that is linking;It is preferred that
Ground, the detection relevant information include but not limited to:Detection pattern (such as serial, parallel, one process, multi-process), detection week
Phase etc..
For example, Fig. 6 is the schematic diagram of an exemplary priority level and the correspondence of detection relevant information;Wherein,
Priority level is followed successively by A, B, C from high to low, and priority level B further comprises sub- grade B1 and B2;Priority level A's
Detection pattern is one process/serial, and detection cycle is 2 minutes;The detection pattern of priority level B1 is one process/parallel, inspection
It is 5 minutes to survey the cycle;The detection pattern of priority level B2 is 2 processes/parallel, and detection cycle is 5 minutes;Priority level C
Detection pattern be multi-process/serial, detection cycle is 10 minutes.
Specifically, the second equipment obtains the realization side of the precedence information of multiple links to be detected and the plurality of link
Formula includes but not limited to:
1) the first equipment provides the precedence information of multiple links and the plurality of link to the second equipment;Second equipment connects
Receive the precedence information of multiple links and the plurality of link from the first equipment.This implementation and foregoing first equipment to
Second equipment provides link, and the implementation that the second equipment receives the link from the first equipment is similar, and details are not described herein.
2) the second equipment receives the priority letter from multiple links and the plurality of link other equipment, to be detected
Breath.This implementation and the reception of foregoing second equipment are similar from the implementation linked other equipment, to be detected, herein
Repeat no more.
3) the second equipment, which directly acquires, is manually entered to second equipment, to be detected multiple links and the plurality of chain
The precedence information connect.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention
System, it should be appreciated by those skilled in the art that any implementation for obtaining link to be detected, should be included in the model of the present invention
In enclosing.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention
System, it should be appreciated by those skilled in the art that any implementation for obtaining link to be detected, should be included in the model of the present invention
In enclosing.
In step s 102, network of second equipment based at least one service provider is detected the link, is somebody's turn to do
The testing result information of link, and when the testing result information indicates that this is linked as extremely linking, the testing result is believed
Breath is supplied to first equipment.
Wherein, the second equipment determines that the implementation of at least one service provider includes but not limited to:
1) the second equipment determines at least one service provider according to the configured information from the first equipment.
For example, in step S101, the second equipment obtains link url1 and configured information from the first equipment, this refers to
Show information be used for indicate network of second equipment based on service provider SP1 the link is detected;Then the second equipment refers to according to this
Show that information determines that service provider is SP1.
2) the second equipment randomly chooses at least one service provider in whole service providers available for detection.
For example, whole service providers available for detection include:SP1、SP2、SP3;Second equipment is in above three service provider
Middle random selection service provider SP1.
Wherein, the testing result information is used to indicate that the network based at least one service provider examines the link
The testing result of survey, the testing result are linked as extremely link or non-dead link for expression.Wherein, the testing result packet
Include any for indicating information of at least one service provider to the testing result of link, it is preferable that the testing result information of link
Including but not limited to:
1) it is used for the information of the corresponding at least one service provider of this detection, and it is every at least one service provider
Testing result of a service provider to the link.
2) the current detected number of the link.
3) each service provider at least one service provider to determined by the testing result of the link, the link work as
Preceding testing result.It should be noted that if service provider is one, then the detection knot based on the network of the service provider to the link
Fruit is the current testing result of the link;If service provider is multiple, when the corresponding testing result of the plurality of service provider represents
When being linked as extremely linking, the current testing result of the link is dead link, is deposited when in the corresponding testing result of the plurality of service provider
For represent this be linked as it is non-extremely link testing result when, the current testing result of the link is non-dead link.
Wherein, the testing result information can be supplied to first equipment by the second equipment using various ways.
For example, the testing result information of link is sent to by the second equipment based on the network connection between the first equipment
First equipment.
In another example the testing result information of link is written to for from the second equipment to the first equipment transmission by the second equipment
In the first message queue (Message Queue, MQ) of information.
Specifically, in step s 102, it is based respectively on for link to be detected, the second equipment at least one service provider
The network of each service provider the link is detected, to obtain the testing result information of the link, and by the testing result
When information indicates that this is linked as extremely linking, which is supplied to the first equipment.
For example, in step S101, the second equipment obtains link url1 and configured information from the first equipment, this refers to
Show information be used for indicate network of second equipment based on service provider SP1 the link is detected;In step s 102, second set
Standby to initiate access request to url1 based on the network of SP1, to obtain the testing result information of url1, which is used for
The testing result for indicating to be detected url1 based on the network of SP1 is dead link, then the second equipment is by the testing result information
It is supplied to the first equipment.
In another example in step S101, the second equipment obtains link url1 and configured information from the first equipment, should
Configured information is used to indicate that network of second equipment based on service provider SP1 and SP2 is detected the link;In step S102
In, the network that the second equipment is based respectively on SP1 and SP2 initiates access request to url1, to obtain the testing result information of url1,
Network of the testing result information instruction based on SPI and SP2 is dead link to the testing result that url1 is detected, then and second
The testing result information is supplied to the first equipment by equipment.
As a preferred embodiment, in step S101, the second equipment obtain it is multiple link and the plurality of link it is excellent
First level information;Step S102 further comprises step S102-1.In step S102-1, the second equipment is according to the plurality of link
Precedence information, to each link in the multiple link, the network based at least one service provider examines the link
Survey, obtain the testing result information of the link, and when the testing result information indicates that this is linked as extremely linking, by the inspection
Survey result information and be supplied to first equipment.
As an example, in step S101, the second equipment obtains the priority of multiple links and the plurality of link
Information, the priority level corresponding to the plurality of link indicated by the precedence information are as shown in Figure 5.In step s 102,
Second equipment randomly choose service provider SPI come to it is the plurality of link be detected, first, the second equipment based on the network of SPI come
Url1 is detected, obtains the testing result information of url1, testing result information instruction url1 is non-dead link;Then,
Network of second equipment based on SPI is detected url2 and url3, obtains the testing result information of url2 and url3, url2's
Testing result instruction url2 is non-dead link, and the testing result instruction url3 of url3 is dead link, and the second equipment is by the inspection of url3
Survey result information and be supplied to the first equipment;Afterwards, network of second equipment based on SP1 is detected url4, obtains url4's
Testing result information, the testing result instruction url4 of url4 is non-dead link;Afterwards, network pair of second equipment based on SP1
Url5 is detected, and obtains the testing result information of url5, and testing result instruction url5 is dead link, and the second equipment examines this
Survey result information and be supplied to the first equipment.
Preferably for multiple links to be detected, the second equipment according to the precedence information of the plurality of link and with
The corresponding detection relevant information of priority level, the network based at least one service provider are detected the plurality of link.
For example, be based on Fig. 6, at least one link that priority level is A, the second equipment at intervals of two minutes, based at least one clothes
The network of business business, one-time detection is carried out using one process/serial detection pattern at least one link.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention
System, it should be appreciated by those skilled in the art that any network based at least one service provider is detected the link, is somebody's turn to do
The testing result information of link, and when the testing result information indicates that this is linked as extremely linking, the testing result is believed
Breath is supplied to the implementation of first equipment, should be included in the scope of the present invention.
It should be noted that step S102 can be performed a plurality of times, and for same link, step S102 when institutes are performed every time
Corresponding at least one service provider is different.For example, whole service providers available for detection include:SP1、SP2、SP3;In step
In S101, the second equipment obtains link url1 to be detected;Then, the second equipment performs step S102, the network pair based on SP1
Url1 is detected, and obtains the testing result information of url1, and when the testing result information indicates that this is linked as extremely linking,
The testing result information is supplied to the first equipment;Afterwards, the second equipment performs step S102 again, the network pair based on SP2
Url1 is detected, and obtains the testing result information of url1, and when testing result information instruction url1 is extremely links, by this
Testing result information is supplied to the first equipment;Afterwards, the second equipment performs step S102 again, based on the network of SP3 to url1
It is detected, obtains the testing result information of url1, and when testing result information instruction url1 is extremely links, this is detected
Result information is supplied to the first equipment.
In step s 103, the first equipment obtains from second equipment, link testing result letter at least once
Breath, and when all testing result information of the link indicate it is described be linked as extremely linking when, the link is determined as dead
Link.Wherein, the corresponding service provider of the different testing result information of same link is different.
For example, whole service providers available for detection include:SP1、SP2、SP3;In step s 103, the first equipment priority
The testing result information of link url1 from the second equipment is obtained three times, and the testing result information obtained for the first time is corresponding
Service provider is SPI, and second of corresponding service provider of testing result information obtained is SP2, and the testing result information of acquisition corresponds to
Service provider be SP3, when the testing result information that this is obtained three times indicate url1 for dead link when, the first equipment determines url1
For dead link.
Wherein, the first equipment can use various ways to obtain testing result information from the second equipment, linking.
For example, the first equipment receives the inspection of link from the second equipment based on the network connection between the second equipment
Survey result information.
In another example the first equipment reads the testing result information of link from the second equipment from first message queue.
Wherein, the first equipment can determine to have got all testing result information of link using various ways;For example, work as
When first equipment does not get from the second equipment, link testing result information more than the scheduled time, the first equipment determines
All testing result information of the link are got;In another example when the testing result for the link that the first equipment is got is believed
During the quantity a predetermined level is exceeded of breath, the first equipment determines to have got all testing result information of the link.
It should be noted that when the first equipment get, to indicate that this is linked as non-for any testing result information of link
During dead link, the first equipment determines that this is linked as non-dead link.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention
System, it should be appreciated by those skilled in the art that any obtain from second equipment, link testing result letter at least once
Breath, and when all testing result information of the link indicate it is described be linked as extremely linking when, the link is determined as dead
The implementation of link, should be included in the scope of the present invention.
In the prior art, during the dead link of monitoring, one-time detection only usually is carried out to a link, and according to this
The testing result that disposable detection obtains directly determines to be linked as extremely link or non-dead link;Also, work as link to be detected
When quantity is multiple, the prior art is typically directly successively detected such link using the scheme of serial or parallel.
Present invention finds problems with existing in the prior art:1) by many factors (such as computer room situation, signal condition
Deng) influence, the disposable, network based on single service provider is detected obtained testing result to link may be not
Accurately, this causes some are normally linked may be confirmed as extremely linking, so that many unnecessary processing operations can be produced, very
Extremely the corresponding service side of link may be given to make troubles;2) directly using the scheme of serial or parallel come successively to be detected
Multiple links are detected so that some more important links cannot be detected in time, and to work as such important chain
When being connected in dead link, it is impossible in time report the testing result of the link, so that the link cannot be repaired just in time
Often, so that user can not may normally access the link in a long time, thereby increases and it is possible to give the link corresponding service side
Very big loss is brought, also, the quantity of link to be detected is more, and the problem is more obvious;3) in the prior art, to link
Detect, report and handle and all realized in single process, between each process exist largely repeat logic, and process it
Between need not interact, this make it that detection process is complexity, and once has process to go wrong, may make whole system can not
Normal work.
According to the scheme of the present embodiment, only when the testing result information obtained based on whole service providers available for detection
When instruction one is linked as extremely linking, just the link is determined as extremely linking, so that the result of detection is more accurate
Really, avoid the problem that directly being detected as extremely linking by normal link due to disposable, single service provider;It is in addition, to be detected
When being linked as multiple, can according to the precedence information of the plurality of link come to it is the plurality of link be detected so that compared with
Important link (link of the official website of such as through service side) can be preferentially detected, so that when more important chain
Connect when being detected as extremely linking, the link can be reported in time, and when finally determining that this is linked as extremely linking, can send out in time
Go out to alert and deal with, so that the link can recover normal as early as possible;In addition, in the scheme of this implementation, the second equipment is only negative
Detection of the duty to link, control of first device service to detection process, and can be by disappearing between the first equipment and the second equipment
Queue is ceased to transmit testing result information and detection configured information, this make it that the coupling between the first equipment and the second equipment is big
It is big to reduce, and reduce the strong dependency between the first equipment and the second equipment.
Fig. 2 is the flow diagram of the method for being used to determine extremely to link of another embodiment of the present invention.The present embodiment
Method mainly realized by the first equipment and the second equipment, wherein, first equipment and the second equipment are made with reference in Fig. 1
Any explanation, the mode quoted is incorporated herein.
According to the method for the present embodiment include step S201, step S202, step S203, step S204, step S205 and
Step S206.
In step s 201, the second equipment obtains link to be detected.
Wherein, the implementation of the step S201 and the implementation with reference to step S101 in Fig. 1 are same or similar,
Details are not described herein.
In step S202, network of second equipment based at least one service provider is detected the link, is somebody's turn to do
The testing result information of link, and when the testing result information indicates that this is linked as extremely linking, the testing result is believed
Breath is supplied to first equipment.
Wherein, the implementation of the step S202 and the implementation with reference to step S102 in Fig. 1 are same or similar,
Details are not described herein.
In step S203, the first equipment obtains the testing result information of link from the second equipment.
Wherein, the first equipment obtains the implementation of from the second equipment, connection testing result information, in reference
It is described in detail in the step S103 of Fig. 1, details are not described herein.
In step S204, when again testing result information instruction is linked as extremely link and the link meets predetermined to examine
During survey condition, the first equipment provides the detection configured information for the link to the second equipment.
Wherein, the detection configured information is used to indicate to be based at least one service corresponding with the testing result information
The network of other different service providers of business links to detect.Preferably, the detection configured information includes but not limited to:For referring to
Show the information of at least one service provider, information for indicating the link etc..
Wherein, the re-detection condition includes any condition that can be used to indicate that and need that re-detection is carried out to link;It is excellent
Selection of land, the re-detection condition include but not limited to:
1) the detected number of link is less than pre-determined number threshold value.
Preferably, the pre-determined number threshold value is the quantity of whole service providers.
2) exist and be not yet used for the network for detecting the link.
For example, whole service providers available for detection include:SP1, SP2, SP3, the base that the first equipment is currently only got
In the testing result information that the network of service provider SPI is detected url1, then the net that not yet user detects link is there is currently
Network (that is, network of the network of SP2 and SP3).
It should be noted that above-mentioned re-detection condition is only for example, those skilled in the art will be understood that and any can use
Need to carry out link the condition of re-detection in instruction, should be included in the range of re-detection condition of the present invention.
Wherein, the first equipment can use various ways to be provided to second equipment and indicate letter for the detection of the link
Breath.
For example, the first equipment sends the inspection for linking based on the network connection between the second equipment to the second equipment
Survey configured information.
In another example the first equipment will be written to for from the first equipment to the second equipment for the detection configured information of link
In the second message queue for transmitting information.
It should be noted that second message queue and first message queue, can be same message queue, or it is different
Message queue.For example, establishing message queue Queue1 between the first equipment and the second equipment, the first equipment and the second equipment are equal
Information can be read or write by Queue1.In another example establish message queue between the first equipment and the second equipment
Queue1 and Queue2, Queue1 be used to transmitting information that the first equipment provides to the second equipment (namely the first equipment to
Queue1 writes information, and the second equipment reads information from Queue1), Queue2 is used for the second equipment of transmission and is provided to the first equipment
Information (namely the second equipment to Queue2 write information, the first equipment from Queue2 read information).Preferably, when in system
Including the first equipment and during multiple second equipment, can be established between the first equipment and each second equipment for transmitting information
At least one message queue.
Specifically, when the testing result information of link indicates that this is linked as extremely link and the link meets predetermined re-detection bar
During part, the first equipment provides the detection configured information for the link to the second equipment, so that the second equipment carries out the link
Re-detection.
For example, whole service providers available for detection include:SP1, SP2, SP3, pre-determined number threshold value are 3.In step
In S103, the first equipment obtains the detection configured information of url1, which is used to indicate the network pair based on SPI
The testing result that url1 is detected is dead link;In step S104, it is 1 that the first equipment, which determines that url1 is detected number, low
In pre-determined number threshold value 3, then the first equipment provides detection configured information for url1, the detection configured information to the second equipment
Network of the instruction based on SP2 and SP3 is detected url1.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention
System, it should be appreciated by those skilled in the art that any when testing result information instruction is linked as extremely link and the chain fills
During the predetermined re-detection condition of foot, the implementation of the detection configured information for the link is provided to the second equipment, should all be included
Within the scope of the invention.
In the present embodiment, it is preferable that when the testing result information instruction described in be linked as extremely link and it is described link not
When meeting the predetermined re-detection condition, the first equipment determines described to be linked as extremely linking.
For example, whole service providers available for detection include:SP1, SP2, SP3, pre-determined number threshold value are 3.In step
In S103, the first equipment obtains the detection configured information of url1, which is used to indicate the network pair based on SP3
The testing result that url1 is detected is dead link;In step S104, the first equipment determine to have obtained be based respectively on SP1,
The testing result information that the network of SP2, SP3 are detected url1, then the first equipment determine url1 for dead link.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention
System, it should be appreciated by those skilled in the art that it is any when the testing result information instruction described in be linked as extremely link and the chain
Connect when being unsatisfactory for the predetermined re-detection condition, determine the implementation for being linked as extremely linking, should be included in the present invention
In the range of.
In step S205, the second equipment obtains from first equipment, for the link detection instruction letter
Breath.
Wherein, the second equipment can use various ways to obtain from first equipment, for link detection instruction
Information.
For example, the second equipment based on the network connection between the first equipment, receive it is from the first equipment, for linking
Detection configured information.
In another example the second equipment reads from the first equipment, for link detection instruction from second message queue
Information.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention
System, it should be appreciated by those skilled in the art that any receive from first equipment, for the link detection instruction letter
The implementation of breath, should be included in the scope of the present invention.
In step S206, the second equipment is according to the detection configured information, based on the network of other service providers to described
Link re-starts detection, obtains new testing result information, and be supplied to described first to set the new testing result information
It is standby.
Wherein, the second equipment re-starts detection based on the network of other service providers to link, obtains new testing result
Information, and the new testing result information is supplied to the implementation of first equipment, and with reference to step S102 in Fig. 1
Implementation is same or similar, and details are not described herein.
It should be noted that step S205 and step S206 can be repeated as many times as required execution, for example, whenever the first equipment is to
Two equipment provide the detection configured information of link, and just repeat step S205 and step S206 to be indicated according to the detection the second equipment
The new testing result information of the information acquisition link, and new testing result information is supplied to the first equipment.
In step S207, the first device repeats steps S203 and step S204, until the testing result letter currently obtained
Extremely link is linked as described in breath instruction and the link is unsatisfactory for the predetermined re-detection condition.
For example, whole service providers available for detection include:SP1、SP2、SP3.In step s 201, the second equipment obtains
Link url1 to be detected;In step S202, network of second equipment based on SP1 is detected url1, obtains and is used to refer to
It is the testing result information extremely linked to show url1, then the testing result information is written in first message queue by the second equipment;
In step S203, the first equipment reads the testing result information from first message queue;In step S204, set when first
During for determining there remains network (namely the network of SP2 and SP3) for being not yet used for detection link, then the first equipment will be used for
The detection configured information of url1 is written in second message queue, which is used to indicate the network pair based on SP2
Url1 is detected;In step S205, the second equipment is read from second message queue comes from the detection configured information;In step
In rapid S206, for the second equipment according to the detection configured information, the network based on SP2 is detected url1, obtains new detection
Result information, and the new testing result information is written in first message queue;In step S207, the first equipment repeats to walk
Rapid S203 and step S204, when the new testing result information that the first equipment determines to read from first message queue indicates
Url1 is dead link, and be there remains when not yet being used to detect network (namely network of SP3) of link, and the first equipment will be new
Detection configured information be written in second message queue, the detection configured information be used for indicate based on the network of SP2 to url1
It is detected;Afterwards, the second device repeats steps S205 and step S206 to provide new testing result information to the first equipment;
Afterwards, the first equipment repeat step S203 and step S204 again, and when being read from first message queue, url1 new
Testing result information instruction url1 is that it is dead to determine url1 when extremely linking and there is currently no not yet to be used to detect the network of url1
Link, and stop the detection to url1.
It should be noted that in the present embodiment, once the testing result information instruction that the first equipment currently obtains is linked as
Non- dead link, the first equipment directly determines that this is linked as non-dead link, and stops the detection to the link.
According to the scheme of the present embodiment, for link to be detected, when net of second equipment based at least one service provider
When network is detected the link obtained testing result information and indicates that this is linked as extremely linking, the second equipment is to the first equipment
The link is reported, afterwards, when the first equipment provides the detection configured information for the link to the second equipment, the second equipment
Just detection is re-started to the link based on the network of other service providers, is circulated with this, the first equipment can obtain multiple services
The testing result information of the corresponding link of business, only when the corresponding testing result information instruction of whole service providers available for detection
When this is linked as extremely linking, the first equipment just determines that this is linked as extremely linking, so that testing result is more accurate.
Fig. 3 is the structure diagram of the system for being used to determine extremely to link of one embodiment of the invention.According to the present embodiment
System include the first equipment and the second equipment;First equipment includes being used to determine the device extremely linked (hereinafter referred to as
" first device "), which includes being used to obtain from second equipment, link testing result letter at least once
Breath, and when all testing result information of the link indicate it is described be linked as extremely linking when, the link is determined as dead
The device (hereinafter referred to as " the first determining device 103 ") of link;Second equipment includes being used for be detected link
Device (hereinafter referred to as " second device "), the second device include being used for the device for obtaining link to be detected (hereinafter referred to as
For " the second acquisition device 101 ") and for the network based at least one service provider the link is detected, it is somebody's turn to do
The testing result information of link, and when the testing result information indicates that this is linked as extremely linking, the testing result is believed
Breath is supplied to the device (hereinafter referred to as " the 3rd provide device 103 ") of the first equipment.
Second acquisition device 101 of the second equipment obtains link to be detected.
Specifically, the second acquisition device 101 obtains the implementation of link to be detected and includes but not limited to:
1) first device of the first equipment further comprises for providing the device linked (hereinafter referred to as to the second equipment
" second provides device ", not shown);The second device of second equipment further comprises for receiving the link from the first equipment
Device (hereinafter referred to as " reception device ", not shown).The second of first equipment provides device and provides link to the second equipment,
The reception device of second equipment receives the link from the first equipment.
Specifically, the second offer device is provided based on the network linking between the first equipment and the second equipment to the second equipment
Link, reception device receive the link from the first equipment by the network linking.
Preferably, first equipment and the second equipment are located in same LAN, and the second offer device passes through file
Copy command provides link to the second equipment, and reception device directly receives the link.
Preferably, in this implementation, second provide device to the second equipment provide link while, also to the second equipment
Configured information is provided, which is used to indicate that network of second equipment based at least one service provider carries out the link
Detection.Wherein, the second offer device can determine at least one service provider using various ways;For example, the second offer device is random
A service provider is randomly choosed from whole service providers available for detection;In another example second offer device according to can be used for examine
The history Detection accuracy of whole service providers of survey, to select the highest service provider of history Detection accuracy.
2) the second acquisition device 101 receives from other equipment, to be detected link.
Preferably, the other equipment is located in same LAN with first equipment, second equipment.Specifically
Ground, the second acquisition device 101 receives the implementation of from other equipment, to be detected link and reception device is received and come from
The implementation of the link of first equipment is same or similar.
3) the second acquisition device 101, which directly acquires, is manually entered to second equipment, to be detected link.
Preferably, it is described it is to be detected be linked as multiple, second acquisition device 101 further comprises treating for acquisition
(hereinafter referred to as " the 4th acquisition device ", figure is not for the device of multiple links of detection and the precedence information of the plurality of link
Show).
Wherein, the precedence information is used to indicate the priority level each linked in the plurality of link;Preferably, often
A priority level can be further subdivided into more sub- grades.
Fig. 5 is the schematic diagrames of a corresponding priority level of exemplary multiple links, wherein, priority level from height to
Low to be followed successively by A, B, C, B1 and B2 are the sub- grade included in priority B;The priority level of url1 is A's, url2 and url3
Priority level is B1, and the priority level of url4 is B2, and the priority level of url5 is C.
It should be noted that can be according to many factors (significance level of the amount of being clicked, link such as link, the people of user
Work set etc.) come determine link priority level;
It should be noted that preferably, it is right that each priority level institute is previously stored with the first equipment and the second equipment
The detection relevant information answered.Wherein, the detection relevant information includes any with the relevant information of detection mode that is linking;It is preferred that
Ground, the detection relevant information include but not limited to:Detection pattern (such as serial, parallel, one process, multi-process), detection week
Phase etc..
For example, Fig. 6 is the schematic diagram of an exemplary priority level and the correspondence of detection relevant information;Wherein,
Priority level is followed successively by A, B, C from high to low, and priority level B further comprises sub- grade B1 and B2;Priority level A's
Detection pattern is one process/serial, and detection cycle is 2 minutes;The detection pattern of priority level B1 is one process/parallel, inspection
It is 5 minutes to survey the cycle;The detection pattern of priority level B2 is 2 processes/parallel, and detection cycle is 5 minutes;Priority level C
Detection pattern be multi-process/serial, detection cycle is 10 minutes.
Specifically, the 4th acquisition device obtains the reality of the precedence information of multiple links to be detected and the plurality of link
Existing mode includes but not limited to:
1) the second offer device of the first equipment further comprises being used to provide multiple links to the second equipment and this is more
The device (hereinafter referred to as " the first son provides device ", not shown) of the precedence information of a link;First son provide device to
Second equipment provides the precedence information of multiple links and the plurality of link, and the 4th acquisition device is received from the first equipment
Multiple links and the precedence information of the plurality of link.This implementation is provided with the foregoing second offer device to the second equipment
Link, the implementation that reception device receives the link from the first equipment is similar, and details are not described herein.
2) the 4th acquisition device is received from the preferential of multiple links and the plurality of link other equipment, to be detected
Level information.This implementation receives from other equipment, the to be detected realization side linked with foregoing second acquisition device 101
Formula is similar, and details are not described herein.
3) the 4th acquisition device, which directly acquires, is manually entered to second equipment, to be detected multiple links and this is more
The precedence information of a link.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention
System, it should be appreciated by those skilled in the art that any implementation for obtaining link to be detected, should be included in the model of the present invention
In enclosing.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention
System, it should be appreciated by those skilled in the art that any implementation for obtaining link to be detected, should be included in the model of the present invention
In enclosing.
3rd offer network of the device 102 based at least one service provider of the second equipment is detected the link, obtains
The testing result information of the link is obtained, and when the testing result information indicates that this is linked as extremely linking, the detection is tied
Fruit information is supplied to first equipment.
Wherein, the 3rd offer device 102 determines that the implementation of at least one service provider includes but not limited to:
1) the 3rd offer device 102 determines at least one service provider according to the configured information from the first equipment.
For example, the second acquisition device 101 obtains link url1 and configured information from the first equipment, the configured information
For indicating that network of second equipment based on service provider SP1 is detected the link;Then the 3rd offer device 102 refers to according to this
Show that information determines that service provider is SP1.
2) the 3rd offer device 102 randomly chooses at least one service provider in whole service providers available for detection.
For example, whole service providers available for detection include:SP1、SP2、SP3;3rd provides device 102 in above three
Service provider SP1 is randomly choosed in service provider.
Wherein, the testing result information is used to indicate that the network based at least one service provider examines the link
The testing result of survey, the testing result are linked as extremely link or non-dead link for expression.Wherein, the testing result packet
Include any for indicating information of at least one service provider to the testing result of link, it is preferable that the testing result information of link
Including but not limited to:
1) it is used for the information of the corresponding at least one service provider of this detection, and it is every at least one service provider
Testing result of a service provider to the link.
2) the current detected number of the link.
3) each service provider at least one service provider to determined by the testing result of the link, the link work as
Preceding testing result.It should be noted that if service provider is one, then the detection knot based on the network of the service provider to the link
Fruit is the current testing result of the link;If service provider is multiple, when the corresponding testing result of the plurality of service provider represents
When being linked as extremely linking, the current testing result of the link is dead link, is deposited when in the corresponding testing result of the plurality of service provider
For represent this be linked as it is non-extremely link testing result when, the current testing result of the link is non-dead link.
Wherein, the testing result information can be supplied to described first to set by the 3rd offer device 102 using various ways
It is standby.
For example, the 3rd provides device 102 based on the network connection between the second equipment and the first equipment, by the detection of link
Result information is sent to the first equipment.
In another example the testing result information of link is written to for from the second equipment to first by the 3rd offer device 102
Equipment is transmitted in the first message queue (Message Queue, MQ) of information.
Specifically, it is based respectively on each at least one service provider for link to be detected, the 3rd offer device 102
The network of service provider is detected the link, to obtain the testing result information of the link, and the testing result information is referred to
When showing that this is linked as extremely linking, which is supplied to the first equipment.
For example, the second acquisition device 101 obtains link url1 and configured information from the first equipment, the configured information
For indicating that network of second equipment based on service provider SP1 is detected the link;3rd provides device 102 based on SP1's
Network initiates access request to url1, and to obtain the testing result information of url1, which is used to indicate to be based on SP1
The testing result that is detected to url1 of network be dead link, then the 3rd offer device 102 provides the testing result information
To the first equipment.
In another example obtain link url1 and configured information from the first equipment, the instruction in the second acquisition device 101
Information is used to indicate that network of second equipment based on service provider SP1 and SP2 is detected the link;3rd provides device 102
The network for being based respectively on SP1 and SP2 initiates access request to url1, to obtain the testing result information of url1, the testing result
Network of the information instruction based on SPI and SP2 is dead link to the testing result that url1 is detected, then the second equipment examines this
Survey result information and be supplied to the first equipment.
As a preferred embodiment, the 4th acquisition device obtains the precedence information of multiple links and the plurality of link;
3rd offer device 102 further comprises for the precedence information according to the plurality of link, to every in the multiple link
A link, the network based at least one service provider are detected the link, obtain the testing result information of the link, and work as
When the testing result information indicates that this is linked as extremely linking, the testing result information is supplied to the dress of first equipment
Put (hereinafter referred to as " the second son provides device ", not shown).
As an example, the 4th acquisition device obtains the precedence information of multiple links and the plurality of link, this is excellent
The priority level corresponding to the plurality of link indicated by first level information is as shown in Figure 5.Second son provides device random selection
Service provider SPI come to it is the plurality of link be detected, first, second son provide device based on the network of SPI come to url1 carry out
Detection, obtains the testing result information of url1, and testing result information instruction url1 is non-dead link;Then, the second son provides
Network of the device based on SPI is detected url2 and url3, obtains the testing result information of url2 and url3, the detection of url2
As a result url2 is indicated as non-dead link, and the testing result instruction url3 of url3 is dead link, and the second son provides device by url3's
Testing result information is supplied to the first equipment;Afterwards, the second son provides network of the device based on SP1 and url4 is detected, and obtains
The testing result information of url4 is obtained, the testing result instruction url4 of url4 is non-dead link;Afterwards, the second son provides device and is based on
The network of SP1 is detected url5, obtains the testing result information of url5, and testing result instruction url5 is dead link, the
Two sons provide device and the testing result information are supplied to the first equipment.
Preferably for multiple links to be detected, the second son provides precedence information of the device according to the plurality of link
And with the corresponding detection relevant information of priority level, the network based at least one service provider carries out the plurality of link
Detection.For example, being based on Fig. 6, at least one link that priority level is A, the second son provides device at intervals of two minutes, base
In the network of at least one service provider, one-time detection is carried out at least one link using one process/serial detection pattern.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention
System, it should be appreciated by those skilled in the art that any network based at least one service provider is detected the link, is somebody's turn to do
The testing result information of link, and when the testing result information indicates that this is linked as extremely linking, the testing result is believed
Breath is supplied to the implementation of first equipment, should be included in the scope of the present invention.
It should be noted that the 3rd offer device 102 can be performed a plurality of times and perform operation, and carried for same link, the 3rd
It is different to perform at least one service provider corresponding during operation every time for device 102.For example, whole service providers available for detection
Including:SP1、SP2、SP3;Second acquisition device 101 obtains link url1 to be detected;Then, the 3rd offer device 102 performs
Network of the operation based on SP1 is detected url1, obtains the testing result information of url1, and when the testing result information refers to
When showing that this is linked as extremely linking, which is supplied to the first equipment;Afterwards, the 3rd offer device 102 is held again
Row operation, the network based on SP2 are detected url1, obtain the testing result information of url1, and work as the testing result information
When indicating url1 extremely to link, which is supplied to the first equipment;Afterwards, the 3rd offer device 102 is held again
Row operation, the network based on SP3 are detected url1, obtain the testing result information of url1, and work as the testing result information
When indicating url1 extremely to link, which is supplied to the first equipment.
First determining device 103 of the first equipment obtains the detection knot of link from second equipment at least once
Fruit information, and when all testing result information of the link indicate it is described be linked as extremely linking when, the link is determined
For dead link.Wherein, the corresponding service provider of the different testing result information of same link is different.
For example, whole service providers available for detection include:SP1、SP2、SP3;First determining device 103 successively obtains three times
Fetch the testing result information of link url1 from the second equipment, the corresponding service provider of testing result information obtained for the first time
For SPI, the corresponding service provider of testing result information that obtains for second is SP2, the corresponding service of testing result information of acquisition
Business is SP3, and when the testing result information that this is obtained three times indicates url1 extremely to link, the first determining device 103 determines
Url1 is dead link.
Wherein, the first determining device 103 can use various ways to obtain from the second equipment, link testing result letter
Breath.
For example, the first determining device 103 is received based on the network connection between the first equipment and the second equipment and is come from second
Equipment, link testing result information.
In another example the first determining device 103 reads the detection knot of link from the second equipment from first message queue
Fruit information.
Wherein, the first determining device 103 can determine to have got all testing result information of link using various ways;
For example, when not getting from the second equipment, link testing result information more than the scheduled time, the first determining device
103 determine to have got all testing result information of the link;In another example when the testing result information of the link got
Quantity a predetermined level is exceeded when, the first determining device 103 determines to have got all testing result information of the link.
It should be noted that when any testing result information get, link indicates that this is linked as non-dead link,
First equipment determines that this is linked as non-dead link.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention
System, it should be appreciated by those skilled in the art that any obtain from second equipment, link testing result letter at least once
Breath, and when all testing result information of the link indicate it is described be linked as extremely linking when, the link is determined as dead
The implementation of link, should be included in the scope of the present invention.
In the prior art, during the dead link of monitoring, one-time detection only usually is carried out to a link, and according to this
The testing result that disposable detection obtains directly determines to be linked as extremely link or non-dead link;Also, work as link to be detected
When quantity is multiple, the prior art is typically directly successively detected such link using the scheme of serial or parallel.
Present invention finds problems with existing in the prior art:1) by many factors (such as computer room situation, signal condition
Deng) influence, the disposable, network based on single service provider is detected obtained testing result to link may be not
Accurately, this causes some are normally linked may be confirmed as extremely linking, so that many unnecessary processing operations can be produced, very
Extremely the corresponding service side of link may be given to make troubles;2) directly using the scheme of serial or parallel come successively to be detected
Multiple links are detected so that some more important links cannot be detected in time, and to work as such important chain
When being connected in dead link, it is impossible in time report the testing result of the link, so that the link cannot be repaired just in time
Often, so that user can not may normally access the link in a long time, thereby increases and it is possible to give the link corresponding service side
Very big loss is brought, also, the quantity of link to be detected is more, and the problem is more obvious;3) in the prior art, to link
Detect, report and handle and all realized in single process, between each process exist largely repeat logic, and process it
Between need not interact, this make it that detection process is complexity, and once has process to go wrong, may make whole system can not
Normal work.
According to the scheme of the present embodiment, only when the testing result information obtained based on whole service providers available for detection
When instruction one is linked as extremely linking, just the link is determined as extremely linking, so that the result of detection is more accurate
Really, avoid the problem that directly being detected as extremely linking by normal link due to disposable, single service provider;It is in addition, to be detected
When being linked as multiple, can according to the precedence information of the plurality of link come to it is the plurality of link be detected so that compared with
Important link (link of the official website of such as through service side) can be preferentially detected, so that when more important chain
Connect when being detected as extremely linking, the link can be reported in time, and when finally determining that this is linked as extremely linking, can send out in time
Go out to alert and deal with, so that the link can recover normal as early as possible;In addition, in the scheme of this implementation, the second equipment is only negative
Detection of the duty to link, control of first device service to detection process, and can be by disappearing between the first equipment and the second equipment
Queue is ceased to transmit testing result information and detection configured information, this make it that the coupling between the first equipment and the second equipment is big
It is big to reduce, and reduce the strong dependency between the first equipment and the second equipment.
Fig. 4 is the structure diagram of the system for being used to determine extremely to link of another embodiment of the present invention.According to this implementation
The service system of example includes the first equipment and the second equipment.First equipment includes first device, which includes the
One determining device 103, first determining device 103 further comprise from second equipment, link for obtaining
The device (hereinafter referred to as " the first acquisition device 103-1 ") of testing result information, for being indicated when the testing result information
It is described to be linked as extremely link and the link is when meeting predetermined re-detection condition, provided to second equipment and be used for the link
Detection configured information device (hereinafter referred to as " first provides device 103-2 ") and for triggering the first acquisition device
The offers of 103-1 and first device 103-2 repeats operation, until the testing result information currently obtained indicates the link
The device (hereinafter referred to as " iteration means 103-3 ") of the predetermined re-detection condition is unsatisfactory for for dead link and described link.
Second equipment includes second device, which includes the second acquisition device the 101, the 3rd and provide device 102, for obtaining
Fetch device (hereinafter referred to as " the 3rd acquisition device of detection configured information from first equipment, for the link
104 "), for according to the detection configured information, the network based on other service providers to re-start inspection to the link
Survey, obtain new testing result information, and be supplied to the device of first equipment (following the new testing result information
Referred to as " the 4th provides device 105).
Second acquisition device 101 of the second equipment obtains link to be detected.
Wherein, the implementation of the second acquisition device 101 in Fig. 3 with reference to being described in detail, and details are not described herein.
3rd offer network of the device 102 based at least one service provider of the second equipment is detected the link, obtains
The testing result information of the link is obtained, and when the testing result information indicates that this is linked as extremely linking, the detection is tied
Fruit information is supplied to first equipment.
Wherein, the implementation of the 3rd offer device 102 in Fig. 3 with reference to being described in detail, and details are not described herein.
First acquisition device 103-1 of the first equipment obtains the testing result information of link from the second equipment.
Wherein, the first acquisition device 103-1 obtains the realization side of from the second equipment, connection testing result information
Formula, the implementation with obtaining testing result information from the second equipment, being connected with reference to the first determining device 103 in Fig. 3
Same or similar, details are not described herein.
When testing result information instruction is linked as extremely link and the link meets predetermined re-detection condition, first
The first of equipment provides device 103-2 and the detection configured information for being used for the link is provided to the second equipment.
Wherein, the detection configured information is used to indicate to be based at least one service corresponding with the testing result information
The network of other different service providers of business links to detect.Preferably, the detection configured information includes but not limited to:For referring to
Show the information of at least one service provider, information for indicating the link etc..
Wherein, the re-detection condition includes any condition that can be used to indicate that and need that re-detection is carried out to link;It is excellent
Selection of land, the re-detection condition include but not limited to:
1) the detected number of link is less than pre-determined number threshold value.
Preferably, the pre-determined number threshold value is the quantity of whole service providers.
2) exist and be not yet used for the network for detecting the link.
For example, whole service providers available for detection include:SP1, SP2, SP3, the base that the first equipment is currently only got
In the testing result information that the network of service provider SPI is detected url1, then the net that not yet user detects link is there is currently
Network (that is, network of the network of SP2 and SP3).
It should be noted that above-mentioned re-detection condition is only for example, those skilled in the art will be understood that and any can use
Need to carry out link the condition of re-detection in instruction, should be included in the range of re-detection condition of the present invention.
Wherein, the first offer device 103-2 can use various ways to be provided to second equipment for the link
Detect configured information.
For example, first provides device 103-2 based on the network connection between the first equipment and the second equipment, to the second equipment
Send the detection configured information for linking.
It is used in another example the first offer device 103-2 will be written to for the detection configured information of link from the first equipment
In the second message queue that information is transmitted to the second equipment.
It should be noted that second message queue and first message queue, can be same message queue, or it is different
Message queue.For example, establishing message queue Queue1 between the first equipment and the second equipment, the first equipment and the second equipment are equal
Information can be read or write by Queue1.In another example establish message queue between the first equipment and the second equipment
Queue1 and Queue2, Queue1 be used to transmitting information that the first equipment provides to the second equipment (namely the first equipment to
Queue1 writes information, and the second equipment reads information from Queue1), Queue2 is used for the second equipment of transmission and is provided to the first equipment
Information (namely the second equipment to Queue2 write information, the first equipment from Queue2 read information).Preferably, when in system
Including the first equipment and during multiple second equipment, can be established between the first equipment and each second equipment for transmitting information
At least one message queue.
Specifically, when the testing result information of link indicates that this is linked as extremely link and the link meets predetermined re-detection bar
During part, first, which provides device 103-2, provides the detection configured information for being used for the link to the second equipment, so that the second equipment is to this
Link carries out re-detection.
For example, whole service providers available for detection include:SP1, SP2, SP3, pre-determined number threshold value are 3.First obtains
Device 103-1 obtains the detection configured information of url1, which is used to indicate to carry out url1 based on the network of SPI
The testing result of detection is dead link;It is 1 that first offer device 103-2, which determines that url1 is detected number, less than pre-determined number threshold
Value 3, then first provide detection configured informations of the device 103-2 to the offer of the second equipment for url1, which refers to
Show that the network based on SP2 and SP3 is detected url1.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention
System, it should be appreciated by those skilled in the art that any when testing result information instruction is linked as extremely link and the chain fills
During the predetermined re-detection condition of foot, the implementation of the detection configured information for the link is provided to the second equipment, should all be included
Within the scope of the invention.
In the present embodiment, it is preferable that first device is further included for being linked as when described in testing result information instruction
Dead link and when the link is unsatisfactory for the predetermined re-detection condition, determines device (the following letter for being linked as extremely linking
Referred to as " the second determining device ", not shown).
For example, whole service providers available for detection include:SP1, SP2, SP3, pre-determined number threshold value are 3.First obtains
Device 103-1 obtains the detection configured information of url1, which is used to indicate to carry out url1 based on the network of SP3
The testing result of detection is dead link;Second determining device determines to have obtained the network for being based respectively on SP1, SP2, SP3 to url1
The testing result information being detected, then the second determining device determine url1 for dead link.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention
System, it should be appreciated by those skilled in the art that it is any when the testing result information instruction described in be linked as extremely link and the chain
Connect when being unsatisfactory for the predetermined re-detection condition, determine the implementation for being linked as extremely linking, should be included in the present invention
In the range of.
3rd acquisition device 104 of the second equipment obtains detection from first equipment, for the link and refers to
Show information.
Wherein, the 3rd acquisition device 104 can use various ways to obtain inspection from first equipment, for link
Survey configured information.
For example, the 3rd acquisition device 104 is received based on the network connection between the second equipment and the first equipment and is come from first
Equipment, detection configured information for link.
In another example the 3rd acquisition device 104 reads inspection from the first equipment, for link from second message queue
Survey configured information.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention
System, it should be appreciated by those skilled in the art that any receive from first equipment, for the link detection instruction letter
The implementation of breath, should be included in the scope of the present invention.
The 4th of second equipment provides device 105 according to the detection configured information, the network pair based on other service providers
The link re-starts detection, obtains new testing result information, and the new testing result information is supplied to described
One equipment.
Wherein, the 4th offer device 105 re-starts detection based on the network of other service providers to link, obtains new inspection
Result information is surveyed, and the new testing result information is supplied to the implementation of first equipment, and with reference to the in Fig. 3 the 3rd
There is provided network of the device 102 based at least one service provider to be detected the link, obtain the testing result information of the link,
And when the testing result information indicates that this is linked as extremely linking, the testing result information is supplied to the reality of the first equipment
Existing mode is same or similar, and details are not described herein.
It should be noted that the 3rd acquisition device 104 and the 4th offer device 105 can be repeated several times and perform operation, for example,
Whenever the first equipment provides the detection configured information linked to the second equipment, the 3rd acquisition device 104 and the 4th provides device 105
Just operation is repeated to obtain the new testing result information of the link according to the detection configured information, and by new detection knot
Fruit information is supplied to the first equipment.
The iteration means 103-3 of first equipment triggers the offer devices of the first acquisition device 103-1 and first 103-2 and repeats to hold
Row operation, until be linked as extremely link described in the testing result information instruction currently obtained and the link be unsatisfactory for it is described predetermined
Re-detection condition.
For example, whole service providers available for detection include:SP1、SP2、SP3.Second acquisition device 101 of the second equipment
Obtain link url1 to be detected;3rd offer device 102 of the second equipment is detected url1 based on the network of SP1, obtains
It must be used to indicate that url1 is the testing result information extremely linked, then the testing result information is written to by the 3rd offer device 102
In first message queue;First acquisition device 103-1 of the first equipment reads the testing result information from first message queue;
When determining there remains network (namely the network of SP2 and SP3) for being not yet used for detection link, first provides device 103-
2 will be written in second message queue for the detection configured information of url1, which is used to indicate based on SP2's
Network is detected url1;3rd acquisition device 104 of the second equipment is read from second message queue to be referred to from the detection
Show information;The 4th of second equipment provides device 105 according to the detection configured information, and the network based on SP2 examines url1
Survey, obtain new testing result information, and the new testing result information is written in first message queue;Iteration means 103-
3 the first acquisition device 103-1 of triggering and the first offer device 103-2 repeat operation, when definite from first message queue
The new testing result information instruction url1 read is dead link, and there remains and be not yet used for the network for detecting link
When (namely network of SP3), new detection configured information is written in second message queue by the first equipment, detection instruction letter
Breath is used to indicate that the network based on SP2 is detected url1;Afterwards, the 3rd acquisition device 104 and the 4th of the second equipment carries
Operation is repeated to provide new testing result information to the first equipment for device 105;Afterwards, iteration means 103-3 is again
The offers of first acquisition device 103-1 and first device 103-2 is provided and repeats operation, and works as and is read from first message queue
, the new testing result information instruction url1 of url1 be extremely to link and there is currently no the network for being not yet used for detecting url1
When, url1 is determined as dead link, and stops the detection to url1.
It should be noted that in the present embodiment, once the testing result information instruction that the first equipment currently obtains is linked as
Non- dead link, the first equipment directly determines that this is linked as non-dead link, and stops the detection to the link.
According to the scheme of the present embodiment, for link to be detected, when net of second equipment based at least one service provider
When network is detected the link obtained testing result information and indicates that this is linked as extremely linking, the second equipment is to the first equipment
The link is reported, afterwards, when the first equipment provides the detection configured information for the link to the second equipment, the second equipment
Just detection is re-started to the link based on the network of other service providers, is circulated with this, the first equipment can obtain multiple services
The testing result information of the corresponding link of business, only when the corresponding testing result information instruction of whole service providers available for detection
When this is linked as extremely linking, the first equipment just determines that this is linked as extremely linking, so that testing result is more accurate.
It should be noted that the present invention can be carried out in the assembly of software and/or software and hardware, for example, this hair
Bright each device can using application-specific integrated circuit (ASIC) or any other realized similar to hardware device.In one embodiment
In, software program of the invention can be performed by processor to realize steps described above or function.Similarly, it is of the invention
Software program (including relevant data structure) can be stored in computer readable recording medium storing program for performing, for example, RAM memory,
Magnetically or optically driver or floppy disc and similar devices.In addition, some steps or function of the present invention can employ hardware to realize, example
Such as, as coordinating with processor so as to performing the circuit of each step or function.
It is obvious to a person skilled in the art that the invention is not restricted to the details of above-mentioned one exemplary embodiment, Er Qie
In the case of without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter
From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power
Profit requires rather than described above limits, it is intended that all in the implication and scope of the equivalency of claim by falling
Change is included in the present invention.Any reference numeral in claim should not be considered as to the involved claim of limitation.This
Outside, it is clear that one word of " comprising " is not excluded for other units or step, and odd number is not excluded for plural number.That is stated in system claims is multiple
Unit or device can also be realized by a unit or device by software or hardware.The first, the second grade word is used for table
Show title, and be not offered as any specific order.
Claims (16)
1. a kind of be used to determine the method extremely linked in the first equipment, wherein, this method includes:
The testing result information of link from the second equipment is obtained at least once, and when all testing results of the link
Information indicates described when being linked as extremely linking, and the link is determined as extremely linking;
Wherein, a testing result information network of the instruction based at least one service provider links the detection being detected to described
As a result, and same link the corresponding service provider of different testing result information it is different;
Wherein, obtain the testing result information and include the step of determining the dead link:
Obtain the testing result information of link from second equipment;
When being linked as extremely link described in testing result information instruction and the link meets predetermined re-detection condition, to institute
State the second equipment provide for the link detection configured information, wherein, it is described detection configured information be used for indicate be based on
The networks of other different service providers of the corresponding at least one service provider of the testing result information detects the link;
Repetition obtains the step of testing result information and provides the step of detecting configured information to second equipment, until ought
Extremely link is linked as described in the testing result information instruction of preceding acquisition and the link is unsatisfactory for the predetermined re-detection condition.
2. according to the method described in claim 1, wherein, this method further includes:
Extremely link is linked as described in being indicated when the testing result information and the link is unsatisfactory for the predetermined re-detection condition
When, determine described to be linked as extremely linking.
3. method according to claim 1 or 2, wherein, the predetermined re-detection condition includes at least one of following:
The detected number of-link is less than pre-determined number threshold value;
- exist and be not yet used to detect the network of the link.
4. method according to claim 1 or 2, wherein, this method further includes:
Link is provided to second equipment.
5. according to the method described in claim 4, wherein, it is described be linked as it is multiple, there is provided the step of link, includes:
The precedence information of the multiple link and the plurality of link is provided to second equipment.
6. a kind of method for being used to be detected link in the second equipment, wherein, this method includes:
Obtain link to be detected;
Network based at least one service provider is detected the link, obtains the testing result information of the link, and works as institute
When stating testing result information and indicating that this is linked as extremely linking, the testing result information is supplied to the first equipment;
Wherein, after the step of obtaining testing result information and being supplied to first equipment, this method further includes:
Detection configured information from first equipment, for the link is obtained, wherein, the detection configured information is used
Described link is detected based on the network of other service providers different from least one service provider in instruction;
According to the detection configured information, the network based on other service providers re-starts detection to the link, obtains
New testing result information, and the new testing result information is supplied to first equipment.
7. according to the method described in claim 6, wherein, the step of obtaining link to be detected, includes:
Receive the link from the first equipment.
8. the method according to claim 6 or 7, wherein, to be detected being linked as is multiple, described to obtain link to be detected
The step of include:
Obtain the precedence information of multiple links to be detected and the plurality of link;
Wherein, obtain testing result information and include the step of being supplied to first equipment:
According to the precedence information of the plurality of link, to each link in the multiple link, based at least one service provider
Network the link is detected, obtain the testing result information of the link, and when the testing result information indicates the chain
When being connected in dead link, the testing result information is supplied to first equipment.
9. a kind of be used to determine the device extremely linked in the first equipment, wherein, which includes:
For obtaining the testing result information of link from the second equipment at least once, and when all detections of the link
Result information indicates the device for when being linked as extremely linking, the link being determined as extremely linking;
Wherein, a testing result information network of the instruction based at least one service provider links the detection being detected to described
As a result, and same link the corresponding service provider of different testing result information it is different;
Wherein, for obtaining the testing result information and determining that the device extremely linked includes:
For obtaining the device of from second equipment, link testing result information;
For when the testing result information instruction described in be linked as extremely link and it is described link meet predetermined re-detection condition when,
The device of detection configured information for the link is provided to second equipment, wherein, the detection configured information is used for
Indicate the network of other service providers different based at least one service provider corresponding from the testing result information to detect
State link;
For triggering for obtaining the device of testing result information and for providing detection configured information to second equipment
Device repeat operation, until currently obtain testing result information instruction described in be linked as extremely link and it is described link not
Meet the device of the predetermined re-detection condition.
10. device according to claim 9, wherein, which further includes:
For when the testing result information instruction described in be linked as extremely link and it is described link be unsatisfactory for the predetermined re-detection
During condition, the device for being linked as extremely linking is determined.
11. the device according to claim 9 or 10, wherein, the predetermined re-detection condition includes at least one of following:
The detected number of-link is less than pre-determined number threshold value;
- exist and be not yet used to detect the network of the link.
12. the device according to claim 9 or 10, wherein, which further includes:
For providing the device of link to second equipment.
13. device according to claim 12, wherein, it is described be linked as it is multiple, for providing the device bag of the link
Include:
Device for the precedence information that the multiple link and the plurality of link are provided to second equipment.
14. a kind of device for being used to be detected link in the second equipment, wherein, which includes:
For obtaining the device of link to be detected;
The link is detected for the network based at least one service provider, obtains the testing result information of the link, and
When the testing result information indicates that this is linked as extremely linking, the testing result information is supplied to the dress of the first equipment
Put;
Wherein, for after obtaining testing result information and being supplied to the device of first equipment, which to further include:
For obtaining the device of detection configured information from first equipment, for the link, wherein, the detection
Configured information is used to indicate to detect described link based on the network of other service providers different from least one service provider;
For according to the detection configured information, the network based on other service providers re-starts detection to the link,
New testing result information is obtained, and the new testing result information is supplied to the device of first equipment.
15. device according to claim 14, wherein, the device for obtaining link to be detected includes:
For receiving the device of the link from the first equipment.
16. the device according to claims 14 or 15, wherein, to be detected being linked as is multiple, described to be checked for obtaining
The device of the link of survey includes:
Device for the precedence information for obtaining multiple links to be detected and the plurality of link;
Wherein, for obtaining testing result information and being supplied to the device of first equipment to include:
For the precedence information according to the plurality of link, to each link in the multiple link, based at least one clothes
The network of business business is detected the link, obtains the testing result information of the link, and when the testing result information indicates
When this is linked as extremely linking, the testing result information is supplied to the device of first equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510198012.4A CN104869033B (en) | 2015-04-23 | 2015-04-23 | It is a kind of to be used to determine the method and apparatus extremely linked |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510198012.4A CN104869033B (en) | 2015-04-23 | 2015-04-23 | It is a kind of to be used to determine the method and apparatus extremely linked |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104869033A CN104869033A (en) | 2015-08-26 |
CN104869033B true CN104869033B (en) | 2018-05-01 |
Family
ID=53914573
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510198012.4A Active CN104869033B (en) | 2015-04-23 | 2015-04-23 | It is a kind of to be used to determine the method and apparatus extremely linked |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104869033B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108062362A (en) * | 2017-12-01 | 2018-05-22 | 北京小度互娱科技有限公司 | Dead chain detection method and device |
CN112269666B (en) * | 2020-11-10 | 2023-07-25 | 北京百度网讯科技有限公司 | Applet dead-link detection method and device, computing device and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102663062A (en) * | 2012-03-30 | 2012-09-12 | 奇智软件(北京)有限公司 | Method and device for processing invalid links in search result |
CN102752154A (en) * | 2012-07-29 | 2012-10-24 | 西北工业大学 | Detecting method of dead link of Web site |
CN104036053A (en) * | 2014-07-07 | 2014-09-10 | 广州金山网络科技有限公司 | Invalid link address processing method and device |
CN104158697A (en) * | 2013-10-18 | 2014-11-19 | 深圳信息职业技术学院 | Dead link detection method and apparatus |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050041654A1 (en) * | 2003-08-20 | 2005-02-24 | Lee Hee-Choul | Multi-dimensional disconnected mesh switching network |
US9298839B2 (en) * | 2012-05-30 | 2016-03-29 | International Business Machines Corporation | Resolving a dead shortened uniform resource locator |
-
2015
- 2015-04-23 CN CN201510198012.4A patent/CN104869033B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102663062A (en) * | 2012-03-30 | 2012-09-12 | 奇智软件(北京)有限公司 | Method and device for processing invalid links in search result |
CN102752154A (en) * | 2012-07-29 | 2012-10-24 | 西北工业大学 | Detecting method of dead link of Web site |
CN104158697A (en) * | 2013-10-18 | 2014-11-19 | 深圳信息职业技术学院 | Dead link detection method and apparatus |
CN104036053A (en) * | 2014-07-07 | 2014-09-10 | 广州金山网络科技有限公司 | Invalid link address processing method and device |
Non-Patent Citations (1)
Title |
---|
《搜索引擎中无效链接情况的分析及对策》;杨海东,叶小岭;《淮阴师范学院学报》;20070521;第6卷(第1期);第69-72页 * |
Also Published As
Publication number | Publication date |
---|---|
CN104869033A (en) | 2015-08-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4369868B2 (en) | Acquisition and display of site visit path data | |
CN110275958A (en) | Site information recognition methods, device and electronic equipment | |
US20180314576A1 (en) | Automatic application repair by network device agent | |
CN106980572B (en) | Online debugging method and system for distributed system | |
US20190087180A1 (en) | Identifying equivalent javascript events | |
JP6037397B2 (en) | User operation log recording method, program and apparatus thereof | |
US20140250334A1 (en) | Detection apparatus and detection method | |
CN109831429A (en) | A kind of Webshell detection method and device | |
CN108809761A (en) | Presence detection method and device | |
CN110401580A (en) | Webpage status monitoring method and relevant device based on heartbeat mechanism | |
CN104869033B (en) | It is a kind of to be used to determine the method and apparatus extremely linked | |
WO2017164856A1 (en) | Comparable user interface object identifications | |
CN109992511B (en) | Device and method for obtaining code test coverage rate | |
CN113448834A (en) | Buried point testing method and device, electronic equipment and storage medium | |
CN110795003A (en) | Interface display method and device | |
CN105656996B (en) | The detection method and device of back end survival | |
CN110347955A (en) | A kind of resource detection method and device | |
CN106909486A (en) | Processing business abnormal method, apparatus and system | |
CN106708710A (en) | Thread jamming identification method and apparatus | |
CA2788100C (en) | Crawling of generated server-side content | |
CN107018039B (en) | Method and device for testing performance bottleneck of server cluster | |
JP3897897B2 (en) | TROUBLESHOOTING DEVICE AND TROUBLESHOOTING METHOD IN A NETWORK COMPUTING ENVIRONMENT AND COMPUTER-READABLE RECORDING MEDIUM CONTAINING TROUBLESHOOTING PROGRAM | |
CN108156048A (en) | It is a kind of to realize the method and apparatus that application crashes information is obtained in complex scene | |
CN107332730B (en) | Protocol extensible service availability detection system and method | |
CN108229127B (en) | System and method for generating authentication data in advance to distinguish clients |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |