The content of the invention
For this reason, the present invention provides the technical solution of a kind of network detection and Network Fault Detection, to try hard to solve or extremelyIt is few alleviate above there are the problem of.
According to an aspect of the present invention, there is provided a kind of network detection method, suitable for being performed in the webserver, networkConfiguration management database is provided with server, configuration management database purchase has newest network topological information, network serviceDevice is with one or more aggregate server communication connections and access is in multiple Internet data centers, each Internet data centerMore interchangers are deployed with, every interchanger access has multiple host, corresponding data probe is previously provided with every hostAnd communicated to connect with the webserver, this method comprises the following steps:First, network topology letter is obtained from configuration management databaseBreath, network topological information include the numbering and connection relation of each host, each interchanger and each Internet data center;According to netNetwork topology information generates network detection list corresponding with each host;The list update request that response data probe is sent, by numberSent according to the corresponding network detection list of host associated by probe to the data probe, to indicate the data probe with defaultOne time interval carries out network state detection, and result of detection is sent to the webserver;Receive what each data probe reportedResult of detection, sends to corresponding aggregate server after each result of detection is formed corresponding achievement data.
Alternatively, in the network according to the invention detection method, generated according to network topological information corresponding with each hostNetwork detection list the step of include:According to network topological information, to each host, by under the affiliated interchanger of the host itsHis host is disposed as needing the destination host detected;Corresponding net is generated according to the IP address of the host and each destination hostNetwork detects list.
Alternatively, in the network according to the invention detection method, generated according to network topological information corresponding with each hostNetwork detection list the step of include:According to network topological information, to each host, by the affiliated internet data of the hostThe destination host that identical host is arranged to needs and detects is numbered under other interchangers that center includes, with it;According to the hostCorresponding network detection list is generated with the IP address of each destination host.
Alternatively, in the network according to the invention detection method, generated according to network topological information corresponding with each hostNetwork detection list the step of include:According to network topological information, to each host, other which is not belonging to are mutualThe destination host that identical host is arranged to needs and detects is numbered under each interchanger that cluster center includes, with it;According to the masterThe IP address of machine and each destination host generates corresponding network detection list.
Alternatively, in the network according to the invention detection method, the list update that response data probe is sent is asked, willNetwork detection list, which was sent to the step of data probe, to be included:The list update request that response data probe is sent, list is moreNew request is sent from data probe according to default second time interval to the webserver;Sent to data probe associated by itThe version of the corresponding network detection list of host, judges whether to determine that renewal network is visited to indicate the data probe according to the versionSurvey list;The definite fresh information of data probe feedback is received, the corresponding network of its associated host is sent to the data probeDetect list.
Alternatively, in the network according to the invention detection method, cache database is additionally provided with the webserver, sideMethod further includes:The network topological information stored in configuration management database is obtained according to default 3rd time interval;If obtainThe network topological information got relatively before network topological information change, then according to get network topological information generationNew network detection list, and be stored in cache database to update.
Alternatively, in the network according to the invention detection method, after each result of detection is formed corresponding achievement dataSending to the step of corresponding aggregate server includes:Checking treatment is carried out to each result of detection;Qualified detection knot will be verifiedFruit is converted into corresponding achievement data, and sends the achievement data to corresponding polymerization according to default index transmission rule and takeBusiness device.
According to a further aspect of the invention, there is provided a kind of computing device, including one or more processors, memory withAnd one or more programs, wherein one or more program storages in memory and are configured as by one or more processorsPerform, one or more programs include being used for the instruction for performing the network according to the invention detection method.
According to a further aspect of the invention, there is provided a kind of computer-readable storage medium for storing one or more programsMatter, one or more programs include instruction, and instruction is when executed by a computing apparatus so that computing device is according to the present inventionNetwork detection method.
According to a further aspect of the invention, there is provided a kind of network fault detecting method, suitable in Network Fault Detection systemPerformed in system, which includes the one or more webserver, aggregate server, database server and multiple data and visitPin, for the system access in multiple Internet data centers, each Internet data center is deployed with more interchangers, every exchangeMachine access has multiple host, and corresponding data probe is previously provided with every host, is stored with the webserver and each numberAccording to the corresponding network detection list of host associated by probe, this method comprises the following steps:First, data probe is from network serviceThe corresponding network detection list of host associated by device acquisition, according to the network detection list got, with default first timeInterval carries out network state detection, and result of detection is sent to the webserver;The webserver is received on each data probeThe result of detection of report, sends to corresponding aggregate server after each result of detection is formed corresponding achievement data;Aggregated serviceDevice receives one or more achievement datas for reporting of the webserver, according to the achievement data of each abnormal state to network connection intoRow detection, if network connectivity fai_lure occurs in testing result instruction, sends alarm, the normal achievement data of each state is gatheredIt is total to calculate to obtain corresponding network quality data, and network quality data is sent to database server;Database serviceDevice receives and stores the network quality data of aggregate server transmission.
Alternatively, in the network according to the invention fault detection method, data probe is obtained from the webserver and closedThe step of connection host corresponding network detection list, includes:According to default second time interval, send and arrange to the webserverTable renewal is asked to obtain the version of the corresponding network detection list of associated host;If the version is newly current in the data probeNetwork detection list version, then from the webserver obtain associated by the corresponding network detection list of host, with replace shouldThe current network detection list of data probe.
Alternatively, in the network according to the invention fault detection method, further include:Data probe is according to default resourceTake rule come judge its consumption system resource whether excess load;If excess load, stopping detect the system resource of consumption;If the non-excess load of system resource of consumption, continues to detect.
Alternatively, configuration management number is provided with the network according to the invention fault detection method, in the webserverAccording to storehouse and cache database, configuration management database purchase has newest network topological information, and network topological information includes each masterThe numbering and connection relation of machine, each interchanger and each Internet data center, this method further include the pre- Mr. of the webserverInto with each data probe associated by the corresponding network detection list of host, previously generate with each data probe associated by host it is correspondingNetwork detection list the step of include:According to network topological information, to each host, by under the affiliated interchanger of the host itsHis host is disposed as needing the destination host detected;Other interchangers that the affiliated Internet data center of the host is includedUnder, number with it identical host and be arranged to need the destination host detected;Other internet centres that the host is not belonging toIncluding each interchanger under, number with it identical host and be arranged to need the destination host detected;According to the host and each meshThe IP address for marking host generates corresponding network detection list, by network detection list storage and cache database.
Alternatively, in the network according to the invention fault detection method, further include:The webserver is according to defaultThree time intervals obtain the network topological information stored in configuration management database;If the network topological information got thanPreceding network topological information changes, then new network detection list is generated according to the network topological information got, and depositIt is stored in cache database to update.
Alternatively, in the network according to the invention fault detection method, each result of detection is formed into corresponding index numberInclude according to rear send to the step of corresponding aggregate server:Checking treatment is carried out to each result of detection;Qualified spy will be verifiedSurvey result and be converted into corresponding achievement data, and send the achievement data to corresponding poly- according to default index transmission ruleHop server.
Alternatively, in the network according to the invention fault detection method, according to the achievement data of each abnormal state to netThe step of network connection is detected includes:According to the achievement data of each abnormal state, detect every two under each Internet data centerThere is the host number accounting for the network failure for being connected to another interchanger in host between a interchanger, under an interchanger;Exceed each interchanger of default first ratio to host number accounting, judge that it deposits network connection event among the switchesBarrier.
Alternatively, in the network according to the invention fault detection method, according to the achievement data of each abnormal state to netThe step of network connection is detected includes:To each interchanger of the host number accounting not less than default first ratio, detection shouldUnder the affiliated Internet data center of interchanger, interchanger there is the network for being connected to each interchanger under other Internet data centersFirst interchanger quantity accounting of failure;Exceed each internet data of default second ratio to the first interchanger quantity accountingCenter, judging it, there are the network connectivity fai_lure between Internet data center and interchanger.
Alternatively, in the network according to the invention fault detection method, according to the achievement data of each abnormal state to netThe step of network connection is detected includes:To each interchanger of the host number accounting not less than default first ratio, detection shouldThere is the second exchange for being connected to the network failure of interchanger under other internet centres in the affiliated Internet data center of interchangerMachine quantity accounting;Exceed each Internet data center of default 3rd ratio to second switch quantity accounting, judge that it is depositedNetwork connectivity fai_lure between Internet data center.
Alternatively, in the network according to the invention fault detection method, the normal achievement data of each state is gatheredTotal the step of calculating to obtain corresponding network quality data, includes:To the normal achievement data of each state, according to defaultFour time intervals generate tantile data;The normal achievement data of each state is polymerize by its corresponding interchanger, is countedThe network quality index of each interchanger;The normal achievement data of each state is gathered by its corresponding Internet data centerClose, count the network quality index of each Internet data center;With reference to the tantile data of generation, each interchanger and each internetThe network quality index of data center, to form corresponding network quality data.
According to a further aspect of the invention, a kind of network fault detection system is also provided, which includes one or moreA webserver, aggregate server, database server and multiple data probes, the system access is in multiple interconnection netting indexsAccording to center, each Internet data center is deployed with more interchangers, and every interchanger, which accesses, multiple host, in every hostBe previously provided with corresponding data probe, be stored with the webserver with each data probe associated by the corresponding network of host visitList is surveyed, within the system:Data probe is suitable for from the corresponding network detection list of host associated by webserver acquisition, rootAccording to the network detection list got, network state detection is carried out with default first time interval, and result of detection is sentTo the webserver;The webserver is suitable for receiving the result of detection that each data probe reports, and each result of detection is formed accordinglyAchievement data after send to corresponding aggregate server;Aggregate server is suitable for receiving one or more that the webserver reportsA achievement data, is detected network connection according to the achievement data of each abnormal state, if network occurs in testing result instructionConnecting fault, then send alarm, and polymerization is carried out to the normal achievement data of each state and is calculated to obtain corresponding network quality numberAccording to, and network quality data is sent to database server;Database server is suitable for receiving and storing aggregate server hairThe network quality data sent.
The technical solution of the network according to the invention detection, network corresponding with each host is generated based on network topological informationList is detected, and the corresponding network detection list of host associated by data probe is sent to the data probe, to indicate the numberNetwork state detection is carried out according to probe, the result of detection that each data probe reports is received, each result of detection is formed into corresponding fingerSent after marking data to corresponding aggregate server.In the above-mentioned technical solutions, network topological information includes each host, each exchangeMachine and the numbering and connection relation of each Internet data center, the network detection list generated according to this network topological informationAll hosts can be covered, realize network all standing, reduce calculation amount and system resources consumption, and then can be in real timeDetect the network connection situation between any two hosts, and realize adaptive network by issuing network detection list and open upFlutter variation.
So as to which the technical solution of the network according to the invention fault detect is right on the basis of above-mentioned network detection schemeThere is abnormal network connection state and carry out active alarm, greatly speed up failure response time, and by dividing achievement dataCloth polymerize, and can obtain the network quality data between any two interchanger and any two Internet data center in real time.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in attached drawingExemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth hereLimited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosureCompletely it is communicated to those skilled in the art.
Fig. 1 shows the schematic diagram of network fault detection system 100 according to an embodiment of the invention.It should be pointed out thatNetwork fault detection system 100 in Fig. 1 is only exemplary, in specific practice situation, network fault detection system 100In can have the webserver, aggregate server, database server and the data probe of varying number, the present invention to network thereforeThe quantity of the webserver, aggregate server, database server and data probe included by barrier detecting system 100 is not doneLimitation.As shown in Figure 1, network fault detection system 100 includes the webserver 700, aggregate server 800, database serviceDevice 900 and N number of data probe, N number of data probe be respectively data probe 1, data probe 2 ..., data probe N, whereinN is positive integer.
Network fault detection system 100 is accessed in multiple Internet data center (IDC:Internet DataCenter), each Internet data center is deployed with more interchangers, and every interchanger access has multiple host, every hostIn be previously provided with corresponding data probe, it can thus be appreciated that the quantity of data probe is set according to the quantity of host, hereThe quantity of host is similarly N.Moreover, be stored with the webserver 700 with each data probe associated by the corresponding network of hostDetect list.
Specifically, for 1~N of data probe, each data probe obtains associated host from the webserver 700Corresponding network detection list, according to the network detection list got, network state is carried out with default first time intervalDetection, and result of detection is sent to the webserver 700.The webserver 700 receives the detection knot that each data probe reportsFruit, sends to corresponding aggregate server 800 after each result of detection is formed corresponding achievement data.Aggregate server 800 connectsReceive the one or more achievement datas that report of the webserver 700, according to the achievement data of each abnormal state to network connection intoRow detection, if network connectivity fai_lure occurs in testing result instruction, sends alarm, the normal achievement data of each state is gatheredIt is total to calculate to obtain corresponding network quality data, and network quality data is sent to database server 900.Database takesBusiness device 900 receives and stores the network quality data of the transmission of aggregate server 800.
Fig. 2 shows the structure diagram of computing device 200 according to an embodiment of the invention.In basic configuration 202,Computing device 200 typically comprises system storage 206 and one or more processor 204.Memory bus 208 can be usedIn the communication between processor 204 and system storage 206.
Depending on desired configuration, processor 204 can be any kind of processing, include but not limited to:Microprocessor(μ P), microcontroller (μ C), digital information processor (DSP) or any combination of them.Processor 204 can be included such asThe cache of one or more rank of on-chip cache 210 and second level cache 212 etc, processor core214 and register 216.Exemplary processor core 214 can include arithmetic and logical unit (ALU), floating-point unit (FPU),Digital signal processing core (DSP core) or any combination of them.Exemplary Memory Controller 218 can be with processor204 are used together, or in some implementations, Memory Controller 218 can be an interior section of processor 204.
Depending on desired configuration, system storage 206 can be any type of memory, include but not limited to:EasilyThe property lost memory (RAM), nonvolatile memory (ROM, flash memory etc.) or any combination of them.System storesDevice 206 can include operating system 220, one or more apply 222 and routine data 226.In some embodiments,Program 222 may be arranged to utilize 224 execute instruction of routine data by one or more processors 204 on an operating system.
Computing device 200 can also include contributing to from various interface equipments (for example, output equipment 242, Peripheral Interface244 and communication equipment 246) to basic configuration 102 via the communication of bus/interface controller 230 interface bus 240.ExampleOutput equipment 242 include graphics processing unit 248 and audio treatment unit 250.They can be configured as contribute to viaOne or more A/V port 252 communicates with the various external equipments of such as display or loudspeaker etc.Outside exampleIf interface 244 can include serial interface controller 254 and parallel interface controller 256, they, which can be configured as, contributes toVia one or more I/O port 258 and such as input equipment (for example, keyboard, mouse, pen, voice-input device, touchInput equipment) or the external equipment of other peripheral hardwares (such as printer, scanner etc.) etc communicate.Exemplary communication is setStandby 246 can include network controller 260, it can be arranged to be easy to via one or more communication port 264 and oneThe communication that other a or multiple computing devices 262 pass through network communication link.
Network communication link can be an example of communication media.Communication media can be usually presented as in such as carrier waveOr computer-readable instruction in the modulated data signal of other transmission mechanisms etc, data structure, program module, and canWith including any information delivery media." modulated data signal " can such signal, one in its data set or moreIt is a or it change can the mode of coding information in the signal carry out.As nonrestrictive example, communication media can be withInclude the wire medium of such as cable network or private line network etc, and it is such as sound, radio frequency (RF), microwave, infrared(IR) the various wireless mediums or including other wireless mediums.Term computer-readable medium used herein can include depositingBoth storage media and communication media.
Computing device 200 can be implemented as server, such as file server, database server, application program serviceDevice and WEB server etc., can also be embodied as a part for portable (or mobile) electronic equipment of small size, these electronic equipmentsCan be such as cell phone, personal digital assistant (PDA), personal media player device, wireless network browsing apparatus, individualHelmet, application specific equipment or the mixing apparatus that any of the above function can be included.Computing device 200 can also be realIt is now to include desktop computer and the personal computer of notebook computer configuration.In certain embodiments, computing device 200 canIt is embodied as the webserver, aggregate server and/or database server, and is configured as performing the network according to the invention eventHinder detection method.Wherein, one or more programs 222 of computing device 200 include being used to perform the network according to the invention eventHinder the instruction of detection method.
Fig. 3 shows the flow chart of network fault detecting method 300 according to an embodiment of the invention.Network serviceDevice 700, aggregate server 800, database server 900 and 1~N of data probe are configured to perform the network according to the inventionDuring fault detection method 300, the processing of network fault detecting method 300 is completed jointly by mutual data communication,Be embodied as respectively at this time the webserver 700, aggregate server 800, one of computing device 200 of database server 900Or multiple programs 222 include being used for the instruction for performing the network according to the invention fault detection method 300.
As shown in figure 3, method 300 starts from step S311.In step S311, data probe is obtained from the webserver 700Take the corresponding network detection list of associated host.Wherein, network detection list is believed by the webserver 700 according to network topologyBreath previously generates, for ease of subsequent descriptions, first the webserver 700 is previously generated herein with each data probe associated by hostCorresponding network detection list illustrates.
Specifically, configuration management database and cache database are provided with the webserver 700, configuration management databaseNewest network topological information is stored with, network topological information includes each host, each interchanger and each Internet data centerNumbering and connection relation.According to one embodiment of present invention, when generating network detection list, the webserver 700 fromConfiguration management database obtains network topological information, according to network topological information, to each host, by exchange belonging to the hostOther hosts are disposed as needing the destination host detected under machine, according to the generation pair of the IP address of the host and each destination hostThe network detection list answered, corresponding network detection list is generated according to the IP address of the host and each destination host.According to thisAnother embodiment of invention, when generating network detection list, the webserver 700 obtains network from configuration management databaseTopology information, according to network topological information, to each host, other friendships that the affiliated Internet data center of the host is includedChange planes down, identical host is numbered with it be arranged to need the destination host that detects, according to the host and the IP of each destination hostAddress generates corresponding network detection list.According to still another embodiment of the invention, when generating network detection list, networkServer 700 obtains network topological information from configuration management database, according to network topological information, to each host, by thisIdentical host, which is numbered, under each interchanger that other internet centres that host is not belonging to include, with it is arranged to what needs detectedDestination host, corresponding network detection list is generated according to the IP address of the host and each destination host.
The destination host quantity covered in view of network detection list is more, more can preferably detect network state, becauseThis according to still another embodiment of the invention, can previously generate in the following way with each data probe associated by host it is correspondingNetwork detection list.First, network topological information is obtained from configuration management database, according to network topological information, to eachHost, other hosts under the affiliated interchanger of the host is disposed as needing the destination host detected, according to the host and respectivelyThe IP address of destination host generates corresponding network detection list.Then the affiliated Internet data center of the host is included itsIdentical host is numbered under his interchanger, with it to be arranged to need the destination host that detects, then the host is not belonging to otherThe destination host that identical host is arranged to needs and detects, last root are numbered under each interchanger that internet centre includes, with itCorresponding network detection list is generated according to the IP address of the host and each destination host, network detection list is stored with caching numberAccording in storehouse.
In this embodiment, network topological information specifically includes:Network fault detection system 100 is accessed in 2 interconnectionsNetwork data center, is denoted as IDC1 and IDC2 respectively, and IDC1 and IDC2 are deployed with 2 interchangers, the interchanger of IDC1 deployment respectivelySW1 and SW2 are denoted as respectively, and the interchanger of IDC2 deployment is denoted as SW3 and SW4, lower point of interchanger SW1, SW2, SW3 and SW4 respectivelyJie Ru there are not 4 hosts, the host of SW1 accesses is denoted as H1, H2, H3 and H4 respectively, and numbering is followed successively by 1,2,3 and 4, SW2 accessHost be denoted as H5, H6, H7 and H8 respectively, numbering be followed successively by 1,2,3 and the host of 4, SW3 access be denoted as H9, H10, H11 respectivelyAnd H12, numbering be followed successively by 1,2,3 and the host of 4, SW4 access be denoted as H13, H14, H15 and H16 respectively, numbering is followed successively by 1,2,3 and 4.It follows that host amounts to 16, then the quantity N of data probe is also 16, and host H1~H16 is disposed with dataProbe 1~16.Table 1 shows the storage example of network topological information according to an embodiment of the invention, institute specific as followsShow:
Table 1
Below exemplified by generating host H1 associated by data probe 1, the mistake to previously generating corresponding network detection listJourney illustrates.For host H1, others host H2, H3 and H4 under the affiliated interchanger SW1 of the host are disposed as needingThe destination host to be detected, will number under other interchangers SW2 that the affiliated Internet data center IDC1 of the host includes, with itIdentical host H5 is arranged to need the destination host detected, other internet centres IDC2 which is not belonging to is includedUnder interchanger SW3 and SW4, number identical host H9 and H13 with it and be arranged to need the destination host detected, according to host H1Corresponding network detection list L1 is generated with the IP address of destination host H5, H9 and H13, and network detection list L1 is stored inIn cache database.At the same time, it is contemplated that the feasibility and convenience of detection, further include host H1, mesh in network detection list L1Each interchanger and the IP address of Internet data center that mark host H5, H9 and H13 are accessed.In addition, if follow-up nothing refers in particular toGo out, will be using data probe 1 and its associated host H1 as example, to further illustrate technical scheme.
Since network detection list is changed with the change of network topological information, then according to the present invention anotherEmbodiment, the webserver 700 are opened up according to default 3rd time interval to obtain the network stored in configuration management databaseFlutter information, if the network topological information got relatively before network topological information change, according to the network that getsTopology information generates new network detection list, and is stored in cache database to update.In this embodiment, configureIn management database the network topological information that is stored can real-time update, the 3rd time interval is preset as 30 minutes.
On data probe in step S311 the corresponding network detection list of associated host is obtained from the webserver 700Process, according to one embodiment of present invention, can realize as follows.First, data probe is according to defaultTwo time intervals, update request to obtain the corresponding network detection list of associated host to 700 transmission list of the webserverVersion.Then, the webserver 700 responds the list update request that the data probe is sent, it is sent to the data probeThe version of the corresponding network detection list of associated host, judges whether to determine renewal to indicate the data probe according to the versionNetwork detection list, wherein list update request from the data probe according to default second time interval to the webserver700 send.At this time, data probe receives the version of the newest network detection list of the return of the webserver 700, by the versionThis is compared with the version of current network detection list, if the version is newly in the current network detection list of the data probeVersion, then to the webserver 700 send determine fresh information.The webserver 700 receives determining for data probe feedbackFresh information, the corresponding network detection list of its associated host is sent to the data probe, and then data probe takes from networkBusiness device 700 gets the corresponding network detection list of associated host, to replace the current network detection list of the data probe.
In this embodiment, the second time interval is preset as 10 minutes, and data probe 1 is every 10 minutes to network service700 transmission list of device renewal request, with the version of the corresponding network detection list L1 of host H1 associated by acquisition.The webserverThe list update request that 700 response data probes 1 are sent, sends the corresponding networks of its associated host H1 to data probe 1 and visitsThe version of list L1 is surveyed, which is 3.1.5.Data probe 1 receives the newest network detection of the return of the webserver 700The version of list L1, by the version compared with the version of current network detection list, since current network detection arrangesThe version of table is 3.1.4, and version 3 .1.5 is newly in version 3 .1.4, it is determined that needs to update network detection list, data probe 1Sent to the webserver 700 and determine fresh information.The webserver 700 receives the definite fresh information that data probe 1 is fed back,The corresponding newest network detection list L1 of its associated host H1 are sent to the data probe, final data probe 1 is with networkDetection list L1 replaces its current network detection list.
Then, step S312 is performed, data probe is according to the network detection list got, between default first timeEvery progress network state detection.According to one embodiment of present invention, first time interval is preset as 120 seconds, data probe 1According to the network detection list L1 got, every 120 seconds to the network between network host H1 and destination host H5, H9 and H13State is detected, and is ordered typically by PING (Packet Internet Groper, the Internet packets survey meter) to checkWhether network is in connected state.In addition, it is not restricted on the agreement used in detection process, such as common HTTP,TCP, UDP and ICMP etc..Different detection agreements is used for different detection demands, if desired lays particular stress on the finger of quality of serviceMark, then can use HTTP or TCP, if desired lay particular stress on the index of network in itself, then can use ICMP.Certainly, agreement is detectedIn any combination, such as consultation can be detected under normal circumstances by the webserver 700 in net using HTTP and ICMP etc. at the same timeSpecified in network detection list, so that data probe can therefrom obtain corresponding detection association after corresponding network detection list is obtainedView.
Next, in step S313, the result of detection that data probe obtains after network state is detected is sent to networkServer 700.According to one embodiment of present invention, data probe 1 has detected a destination host, i.e., can generate corresponding oneA result of detection, result of detection generally comprise following field:Operating system, detection time started, detection end time, detection associationThe affiliated interchanger of view, destination host, destination host and/or the affiliated Internet data center of destination host.In view of individually transmissionSingle result of detection can bring unnecessary burden to system, therefore can use bulk transfer to the result of detection of a wheel, such asEvery 128 result of detection are retransmited to the webserver 700 after being compressed packing.
Further, in order to control the occupancy situation of server resource, the normal execution of business on interfering line, each number are avoidedNeed to check continually on the system resource of oneself consumption according to probe and carry out subsequent treatment according to Expenditure Levels.According to the present inventionOne embodiment, data probe according to default resource occupation rule come judge its consume system resource whether excess load, ifThe system resource of consumption excess load, then stop detection, if the non-excess load of system resource of consumption, continues to detect.In the realityApply in mode, resource occupation rule it is predeterminable for CPU usage less than 99% and memory usage be less than 95%.To data probeFor 1, the occupancy of its CPU to host H1 is 75%, memory usage 50%, it is known that the system that data probe 1 consumesThe non-excess load of resource, can continue to detect.
The webserver 700 performs step S321, by each detection after the result of detection that each data probe reports is receivedAs a result corresponding achievement data is formed.According to one embodiment of present invention, when forming achievement data, first to each result of detectionChecking treatment is carried out, then corresponding achievement data is converted into by qualified result of detection is verified.Wherein, achievement data includes currentHost, destination host, Metric values, network interaction time and/or timestamp, current hosts are the host for performing probe command,Destination host is detected host, and Metric values can be the field such as leapfrog number isometry optimal path.Checking treatment is usualIt is whether in the reasonable scope first to judge the value of field in result of detection, if the value of all fields is reasonable in result of that probeIn the range of, it is determined that result of that probe verification is qualified.
The webserver 700 enters step S322 after achievement data is formed, and will be walked according to default index transmission ruleThe achievement data of rapid S321 generations is sent to corresponding aggregate server.Aggregate server mentioned above is one or more, Fig. 1Merely illustrate aggregate server 800 in though, the quantity of actually aggregate server could be provided as it is multiple, it is follow-up to accelerateThe processing speed of diagnostic network failure.When the quantity of aggregate server only has 1, such as only aggregate server 800, then netNetwork server 700 directly sends achievement data to aggregate server 800.When the quantity of aggregate server has multiple,According to one embodiment of present invention, index transmission rule is preset as carrying out selective polymerization server reception index according to hash algorithmData.The address of each aggregate server is ranked up to obtain corresponding order first, in each achievement dataMetric values seek hash value, to obtaining corresponding index value after the hash value modulus tried to achieve, by the achievement data send to thisAggregate server corresponding to the identical order of index value.It is existing mature technology, herein on the particular content of hash algorithmDo not repeated.It should be noted that presetting for index transmission rule, phase can be taken according to the difference of actual conditionsThe algorithm answered realizes that these can be readily apparent that for the technical staff for understanding the present invention program, and also existWithin protection scope of the present invention, do not repeated herein.
Aggregate server 800 receives one or more achievement datas that the webserver 700 reports, and achievement data is by networkServer 700 is formed according to the result of detection that each data probe reports, hereafter aggregate server 800 can first to each achievement data intoRow filtration treatment, the achievement data that the network interaction time exceedes default threshold value or indicates network connection failure is filtered out,And the achievement data of abnormal state is denoted as, and it is remaining, it is denoted as the normal achievement data of state.An implementation according to the present inventionExample, network interaction time exceed default threshold value and show that performing the PING values obtained after PING orders exceedes the threshold value, and network is handed overMutual time instruction network connection failure shows that PING is obstructed.
And then aggregate server 800 performs step S331, network connection is carried out according to the achievement data of each abnormal stateDetection.According to one embodiment of present invention, it is each according to the achievement data of each abnormal state, detection when detecting network connectionThere is the network for being connected to another interchanger in host between each two interchanger, under an interchanger under Internet data centerThe host number accounting of failure, exceedes host number accounting each interchanger of default first ratio, judges that it exists and exchangesNetwork connectivity fai_lure between machine.Wherein, the first ratio is preset as 0.5.In this embodiment, to Internet data centerFor IDC1, host H1, H2 and H3 under the achievement data instruction interchanger SW1 of abnormal state occur being connected to interchanger SW2Network failure, 4 hosts are amounted under SW1, then the host number accounting for the network failure for being connected to SW2 occurs in host under SW1For 3/4=0.75, more than the first ratio, judge that SW1 deposits network connectivity fai_lure among the switches.To Internet data centerFor IDC2, there is the network for being connected to interchanger SW4 in the host H10 under the achievement data instruction interchanger SW3 of abnormal stateFailure, 4 hosts is amounted under SW3, then the host number accounting that the network failure for being connected to SW4 occurs in host under SW3 is 1/4=0.25, more than the first ratio, judge the network connectivity fai_lure that SW3 is not present between interchanger.
To each interchanger of the host number accounting not less than default first ratio, according to one embodiment of present invention,Detect under the affiliated Internet data center of the interchanger, each interchanger under other Internet data centers occurs being connected in interchangerNetwork failure the first interchanger quantity accounting, each interconnection of default second ratio is exceeded to the first interchanger quantity accountingNetwork data center, judging it, there are the network connectivity fai_lure between Internet data center and interchanger.Wherein, the second ratio is pre-It is set to 0.5.In this embodiment, the host number accounting of interchanger SW3 is not less than default first ratio, then to SW3 andSpeech, the achievement data of abnormal state is indicated under its affiliated Internet data center IDC2, interchanger SW3 and SW4 are connected toThe network failure of interchanger SW2 under Internet data center IDC1,2 interchangers is amounted under IDC1, then interchanger goes out under IDC2The the first interchanger quantity accounting for being now connected to the network failure of interchanger SW2 under IDC1 is 2/2=100%, more than the second ratioExample, judging IDC2, there are the network connectivity fai_lure between Internet data center and interchanger.
To each interchanger of the host number accounting not less than default first ratio, according to the present invention another implementationExample, detects the affiliated Internet data center of the interchanger and occurs being connected to the network failure of interchanger under other internet centresSecond switch quantity accounting, exceedes second switch quantity accounting each Internet data center of default 3rd ratio,Judging it, there are the network connectivity fai_lure between Internet data center.Wherein, the 3rd ratio is preset as 0.5.In the embodiment partyIn formula, the host number accounting of interchanger SW3 is not less than default first ratio, then for SW3, the index number of abnormal stateAccording to indicate its affiliated Internet data center IDC2 occur being connected under Internet data center IDC1, interchanger SW1 and SW2Network failure, 2 interchangers are amounted under IDC1, then IDC2 occurs being connected to second of the network failure of interchanger under IDC1 and exchangesMachine quantity accounting is 2/2=100%, and more than default 3rd ratio, judging IDC2, there are the net between Internet data centerNetwork connecting fault.
After aggregate server 800 completes network connection detection, step S332 is performed, if network company occurs in testing result instructionFailure is connect, then sends alarm.According to one embodiment of present invention, SW1 deposits network connectivity fai_lure among the switches, IDC2There are the network connection event between the network connectivity fai_lure between Internet data center and interchanger and Internet data centerBarrier, thereby determines that network failure, and alarm is sent to relevant staff and system.
In step S333, aggregate server 800 carries out each state normal achievement data polymerization and calculates to obtain phaseThe network quality data answered.According to one embodiment of present invention, when generating network quality data, first, to each state justNormal achievement data, generates tantile data according to default 4th time interval, the normal achievement data of each state is pressed itCorresponding interchanger is polymerize, and counts the network quality index of each interchanger, and the normal achievement data of each state is right by itsThe Internet data center answered is polymerize, and counts the network quality index of each Internet data center, in conjunction with point of generationThe network quality index of place value data, each interchanger and each Internet data center, to form corresponding network quality data.In the embodiment, predeterminable the 4th time interval is 5 minutes and 10 minutes, then to the normal achievement data of each state, first may be usedBy the Metric values in hash algorithm and achievement data, achievement data is classified by the source of current hosts, then to everyOne current hosts as source, the 50%th achievement data is come as 50 tantiles every polymerization generation in 5 minutes,The achievement data for coming the 99%th is generated every polymerization in 10 minutes as 99 tantiles, 50 tantiles and 99 tantiles are madeFor tantile data.The normal achievement data of state corresponding to interchanger SW1, SW2, SW3 and SW4 is polymerize respectively,The network quality index of each interchanger is generated after corresponding statistics, to the state corresponding to Internet data center IDC1 and IDC2 justNormal achievement data is polymerize respectively, and the network quality index of each Internet data center is generated after corresponding statistics, is finally tiedClose and state each tantile data, interchanger SW1, SW2, SW3, SW4, the network quality of Internet data center IDC1 and IDC2 and refer toMark, forms corresponding network quality data.
After network quality data is obtained, aggregate server 800 performs step S334, and network quality data is sent to numberAccording to storehouse server 900.According to one embodiment of present invention, aggregate server 800 sends network quality data to databaseServer 900 is to store.
After database server 900 receives the network quality data of the transmission of aggregate server 800, S341 is entered step,Store the network quality data that aggregate server 800 is sent.According to one embodiment of present invention, in order to accelerate to inquire about, pass throughThe memory cache of the generated network quality data elder generation write into Databasce server 900 of polymerization, the caching preserve certain time, such asAfter one day, then corresponding network quality data switched into persistent storage, such as deposit OpenTSDB (Open Time SeriesDatabase, time series databases of increasing income).
Fig. 4 shows the flow chart of network detection method 400 according to an embodiment of the invention.Work as computing device200 when being embodied as the webserver 700, and one or more programs 222 of computing device 200 include being used to perform according to the present inventionNetwork detection method 400 instruction.According to one embodiment of present invention, it is provided with configuration management in the webserver 700Database, configuration management database purchase have newest network topological information, and the webserver 700 polymerize clothes with one or moreBusiness device is communicated to connect and accessed in multiple Internet data centers, and each Internet data center is deployed with more interchangers, oftenThe access of platform interchanger has multiple host, and corresponding data probe is previously provided with every host and is led to the webserver 700Letter connection.
As shown in figure 4, method 400 starts from step S410.In step S410, obtain network from configuration management database and open upInformation is flutterred, network topological information includes the numbering and connection relation of each host, each interchanger and each Internet data center.
Then, step S420 is performed, network detection list corresponding with each host is generated according to network topological information.According toOne embodiment of the present of invention, when generating network detection list, according to network topological information, to each host, this is ledOther hosts are disposed as needing the destination host detected under the affiliated interchanger of machine, according to the host and the IP of each destination hostAddress generates corresponding network detection list, and generating corresponding network detection according to the IP address of the host and each destination host arrangesTable.According to still another embodiment of the invention, when generating network detection list, according to network topological information, to each masterMachine, by under other interchangers that the affiliated Internet data center of the host includes, number identical host with it and be arranged to needThe destination host of detection, corresponding network detection list is generated according to the IP address of the host and each destination host.According to this hairAnother bright embodiment, when generating network detection list, according to network topological information, to each host, by the hostThe target that identical host is arranged to needs and detects is numbered under each interchanger that other internet centres being not belonging to include, with itHost, corresponding network detection list is generated according to the IP address of the host and each destination host.
The destination host quantity covered in view of network detection list is more, more can preferably detect network state, becauseThis can generate network detection list in the following way according to still another embodiment of the invention.First, believed according to network topologyBreath, to each host, other hosts under the affiliated interchanger of the host is disposed as needing the destination host detected, according toThe IP address of the host and each destination host generates corresponding network detection list.Then by the affiliated internet data of the hostIdentical host is numbered under other interchangers that pericardium includes, with it to be arranged to need the destination host detected, then by the host notIdentical host is numbered under each interchanger that other internet centres belonged to include, with it and is arranged to the target master that needs detectMachine, finally generates corresponding network detection list according to the IP address of the host and each destination host.
Since network detection list is changed with the change of network topological information, then according to the present invention anotherEmbodiment, is additionally provided with cache database in the webserver 700, configuration management is obtained according to default 3rd time intervalThe network topological information stored in database, if the network topological information got relatively before network topological information changedBecome, then new network detection list is generated according to the network topological information got, and be stored in cache database so as to moreNewly.Step S410, the concrete processing procedure of S420 and network detection list update, can refer to the webserver in method 300700 previously generate with each data probe associated by the corresponding network detection list of host related content, do not repeated herein.
Next, in step S430, the list update that response data probe is sent is asked, will be main associated by data probeThe corresponding network detection list of machine is sent to the data probe, to indicate that the data probe is carried out with default first time intervalNetwork state detects, and result of detection is sent to the webserver 700.According to one embodiment of present invention, can be by such asThe list update request that under type response data probe is sent, network detection list is sent to the data probe.In the implementationIn mode, response data probe is sent first list update request, list update request is by data probe according to default theTwo time intervals are sent to the webserver 700, then send the corresponding network detection list of its associated host to data probeVersion, with indicate the data probe according to the version judge whether determine renewal network detection list, receive data probe it is anti-The definite fresh information of feedback, the corresponding network detection list of its associated host is sent to the data probe.In step S430Concrete processing procedure, can refer to the related content of step S311, S312 and S313 in method 300, is not repeated herein.
Finally, S440 is entered step, the result of detection that each data probe reports is received, each result of detection is formed accordinglySent after achievement data to corresponding aggregate server 800.According to one embodiment of present invention, can as follows will be eachResult of detection is sent to corresponding aggregate server 800 after forming corresponding achievement data.In this embodiment, first to each spySurvey result and carry out checking treatment, will then verify qualified result of detection and be converted into corresponding achievement data, and according to defaultIndex transmission rule sends the achievement data to corresponding aggregate server 800.Concrete processing procedure in step S440, canThe related content of step S321 and S322, are not repeated herein in reference method 300.
Existing network detection scheme is divided into two classes more, and one kind is manually to detect, time-consuming and laborious and shortage data supporting, accurateExactness is relatively low, and another kind of is the active probe Network status by way of disposing probe in all aol servers, but there are netNetwork topology covers the problem of incomplete, detection data is difficult to comprehensive utilization, then the Network Fault Detection side based on network detectionThe above problem equally occurs in case.The technical solution of network detection according to embodiments of the present invention, is given birth to based on network topological informationSent into network detection list corresponding with each host, and by the corresponding network detection list of host associated by data probe to thisData probe, to indicate that the data probe carries out network state detection, receives the result of detection that each data probe reports, by each spySurvey after result forms corresponding achievement data and send to corresponding aggregate server.In the above-mentioned technical solutions, network topology is believedBreath includes the numbering and connection relation of each host, each interchanger and each Internet data center, is believed according to this network topologyThe network detection list of breath generation can cover All hosts, realize network all standing, reduce calculation amount and system moneySource consumes, and then can real-time detect the network connection situation between any two hosts, and by issuing network detectionList realizes adaptive network topology and changes.So as to, the technical solution of Network Fault Detection according to embodiments of the present invention,On the basis of above-mentioned network detection scheme, active alarm is carried out to there is abnormal network connection state, greatly speeds up failure soundBetween seasonable, and by polymerizeing to the distribution of achievement data, any two interchanger and any two interconnection can be obtained in real timeNetwork quality data between network data center.
A7. the method as any one of A1-6, it is described each result of detection is formed into corresponding achievement data after sendInclude to the step of corresponding aggregate server:
Checking treatment is carried out to each result of detection;
The result of detection for verifying qualified is converted into corresponding achievement data, and should according to default index transmission ruleAchievement data is sent to corresponding aggregate server.
B11. the method as described in B10, host associated by the data probe from webserver acquisition are correspondingThe step of network detection list, includes:
According to default second time interval, request is updated to the webserver transmission list to obtain associated masterThe version of the corresponding network detection list of machine;
If the version newly in the version of the current network detection list of the data probe, is obtained from the webserverThe corresponding network detection list of associated host, to replace the current network detection list of the data probe.
B12. the method as described in B10 or 11, further includes:
The data probe according to default resource occupation rule come judge its consume system resource whether excess load;
If excess load, stopping detect the system resource of consumption;
If the non-excess load of system resource of consumption, continues to detect.
B13. the method as any one of B10-12, be provided with the webserver configuration management database andCache database, the configuration management database purchase have newest network topological information, and the network topological information includes eachThe numbering and connection relation of host, each interchanger and each Internet data center, it is advance that this method further includes the webserverGeneration and the corresponding network detection list of host associated by each data probe, it is described previously generate with each data probe associated by leadThe step of machine corresponding network detection list, includes:
According to the network topological information, to each host, other hosts under the affiliated interchanger of the host are all provided withIt is set to the destination host for needing to detect;
By under other interchangers that the affiliated Internet data center of the host includes, number identical host with it and be arranged toNeed the destination host detected;
Identical host is numbered under each interchanger that other internet centres that the host is not belonging to include, with it to setTo need the destination host detected;
Corresponding network detection list is generated according to the IP address of the host and each destination host, the network detection is arrangedIn table storage and cache database.
B14. the method as described in B13, further includes:
The webserver obtains what is stored in the configuration management database according to default 3rd time intervalNetwork topological information;
If the network topological information got relatively before network topological information change, according to the network that getsTopology information generates new network detection list, and is stored in the cache database to update.
B15. the method as any one of B10-14, it is described each result of detection is formed into corresponding achievement data after send outSending to the step of corresponding aggregate server includes:
Checking treatment is carried out to each result of detection;
The result of detection for verifying qualified is converted into corresponding achievement data, and should according to default index transmission ruleAchievement data is sent to corresponding aggregate server.
B16. the method as any one of B10-15, the achievement data according to each abnormal state is to network connectionThe step of being detected includes:
According to the achievement data of each abnormal state, detect under each Internet data center between each two interchanger, oneThere is the host number accounting for the network failure for being connected to another interchanger in host under interchanger;
Exceed each interchanger of default first ratio to host number accounting, judge that it deposits network among the switchesConnecting fault.
B17. the method as described in B16, what the achievement data according to each abnormal state was detected network connectionStep includes:
To each interchanger of the host number accounting not less than default first ratio, interconnection netting index belonging to the interchanger is detectedAccording under center, interchanger there is the first interchanger number for being connected to the network failure of each interchanger under other Internet data centersMeasure accounting;
Exceed each Internet data center of default second ratio to the first interchanger quantity accounting, it is mutual to judge that it existsNetwork connectivity fai_lure between networking data center and interchanger.
B18. the method as described in B16 or 17, the achievement data according to each abnormal state examine network connectionThe step of survey, includes:
To each interchanger of the host number accounting not less than default first ratio, interconnection netting index belonging to the interchanger is detectedThe second switch quantity accounting for occurring being connected to the network failure of interchanger under other internet centres according to center;
Exceed each Internet data center of default 3rd ratio to second switch quantity accounting, it is mutual to judge that it existsNetwork connectivity fai_lure between networking data center.
B19. the method as any one of B10-18, it is described that polymerization calculating is carried out to the normal achievement data of each stateThe step of to obtain corresponding network quality data, includes:
To the normal achievement data of each state, tantile data are generated according to default 4th time interval;
The normal achievement data of each state is polymerize by its corresponding interchanger, counts the network quality of each interchangerIndex;
The normal achievement data of each state is polymerize by its corresponding Internet data center, counts each interconnection netting indexAccording to the network quality index at center;
With reference to the tantile data of generation, each interchanger and the network quality index of each Internet data center, to be formedCorresponding network quality data.
In the specification that this place provides, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present inventionExample can be put into practice in the case of these no details.In some instances, known method, knot is not been shown in detailStructure and technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect,Above in the description to the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimesIn example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantorThe application claims of shield are than the feature more features that is expressly recited in each claim.More precisely, as followingAs claims reflect, inventive aspect is all features less than single embodiment disclosed above.Therefore, abide byThus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itselfSeparate embodiments as the present invention.
Those skilled in the art should understand that the module or unit or group of the equipment in example disclosed hereinBetween can be arranged in equipment as depicted in this embodiment, or alternatively can be positioned at and the equipment in the exampleIn different one or more equipment.Module in aforementioned exemplary can be combined as a module or be segmented into addition multipleSubmodule.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodimentChange and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodimentMember or group between be combined into one between module or unit or group, and can be divided into addition multiple submodule or subelement orBetween subgroup.In addition at least some in such feature and/or process or unit exclude each other, it can use anyCombination is disclosed to all features disclosed in this specification (including adjoint claim, summary and attached drawing) and so to appointWhere all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint powerProfit requires, summary and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generationReplace.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodimentsIn included some features rather than further feature, but the combination of the feature of different embodiments means in of the inventionWithin the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointedOne of meaning mode can use in any combination.
In addition, be described as herein can be by the processor of computer system or by performing for some in the embodimentThe method or the combination of method element that other devices of the function are implemented.Therefore, have and be used to implement the method or methodThe processor of the necessary instruction of element forms the device for being used for implementing this method or method element.In addition, device embodimentElement described in this is the example of following device:The device is used to implement as in order to performed by implementing the element of the purpose of the inventionFunction.
Various technologies described herein can combine hardware or software, or combinations thereof is realized together.So as to the present inventionMethod and apparatus, or some aspects of the process and apparatus of the present invention or part can take embedded tangible media, such as softThe form of program code (instructing) in disk, CD-ROM, hard disk drive or other any machine readable storage mediums,Wherein when program is loaded into the machine of such as computer etc, and is performed by the machine, the machine becomes to put into practice this hairBright equipment.
In the case where program code performs on programmable computers, computing device generally comprises processor, processorReadable storage medium (including volatile and non-volatile memory and or memory element), at least one input unit, and extremelyA few output device.Wherein, memory is arranged to store program codes;Processor is arranged to according to the memoryInstruction in the said program code of middle storage, performs the network detection method and/or network fault detecting method of the present invention.
By way of example and not limitation, computer-readable medium includes computer storage media and communication media.CalculateMachine computer-readable recording medium includes computer storage media and communication media.Computer-readable storage medium storage such as computer-readable instruction,The information such as data structure, program module or other data.Communication media is generally modulated with carrier wave or other transmission mechanisms etc.Data-signal processed passes to embody computer-readable instruction, data structure, program module or other data including any informationPass medium.Any combination above is also included within the scope of computer-readable medium.
As used in this, unless specifically stated, come using ordinal number " first ", " second ", " the 3rd " etc.Description plain objects are merely representative of the different instances for being related to similar object, and are not intended to imply that the object being so described mustMust have the time it is upper, spatially, in terms of sequence or given order in any other manner.
Although according to the embodiment of limited quantity, the invention has been described, benefits from above description, the artIt is interior it is clear for the skilled person that in the scope of the present invention thus described, it can be envisaged that other embodiments.Additionally, it should be noted thatThe language that is used in this specification primarily to readable and teaching purpose and select, rather than in order to explain or limitDetermine subject of the present invention and select.Therefore, in the case of without departing from the scope and spirit of the appended claims, for thisMany modifications and changes will be apparent from for the those of ordinary skill of technical field.For the scope of the present invention, to thisThe done disclosure of invention is illustrative and not restrictive, and it is intended that the scope of the present invention be defined by the claims appended hereto.