CN107995030A - A kind of network detection method, network fault detecting method and system - Google Patents

A kind of network detection method, network fault detecting method and system Download PDF

Info

Publication number
CN107995030A
CN107995030A CN201711216097.XA CN201711216097A CN107995030A CN 107995030 A CN107995030 A CN 107995030A CN 201711216097 A CN201711216097 A CN 201711216097A CN 107995030 A CN107995030 A CN 107995030A
Authority
CN
China
Prior art keywords
network
host
data
detection
list
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.)
Granted
Application number
CN201711216097.XA
Other languages
Chinese (zh)
Other versions
CN107995030B (en
Inventor
杨龙
王金龙
邓谦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Che Zhi Interconnect (beijing) Technology Co Ltd
Original Assignee
Che Zhi Interconnect (beijing) Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Che Zhi Interconnect (beijing) Technology Co Ltd filed Critical Che Zhi Interconnect (beijing) Technology Co Ltd
Priority to CN201711216097.XA priority Critical patent/CN107995030B/en
Publication of CN107995030A publication Critical patent/CN107995030A/en
Application granted granted Critical
Publication of CN107995030B publication Critical patent/CN107995030B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • H04L43/106Active monitoring, e.g. heartbeat, ping or trace-route using time related information in packets, e.g. by adding timestamps
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/12Network monitoring probes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of network detection method, network fault detecting method and system, network detection method is suitable for performing in the webserver, the webserver includes with one or more aggregate server communication connections and access in multiple Internet data centers, network detection method:Network topological information is obtained, network topological information includes the numbering and connection relation of each host, each interchanger and each Internet data center;Network detection list corresponding with each host is generated according to network topological information;The list update request that response data probe is sent, the corresponding network detection list of host associated by data probe is sent to the data probe, to indicate that the data probe carries out network state detection with default first time interval, and result of detection is sent to the webserver;The result of detection that each data probe reports is received, is sent after each result of detection is formed corresponding achievement data to corresponding aggregate server.

Description

A kind of network detection method, network fault detecting method and system
Technical field
The present invention relates to computer network field, more particularly to a kind of network detection method, network fault detecting method and System.
Background technology
Internet firm often possesses thousands of servers, these server distributions in the multiple computer rooms in the whole nation, and It is connected with each other incorporate's Intranet.Between the computer room and computer room of Intranet, between server and server, there is extensive network Communication, then the importance of communication quality is self-evident.Communication quality is weighed by corresponding achievement data, and the life of achievement data Cheng Ze is depended on and cyberspace is carried out to detect obtained result of detection.
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, accurate Exactness 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 net The problem of network topology covering is not complete, detection data is difficult to comprehensive utilization.Usually visited in view of network fault detecting method with network Premised on the result of survey, and across network of computer room quality and positioning failure are monitored accurately and in time, guarantee company's business is normally transported It is most important for row, it is from a passive one to an active one, it is necessary to a kind of new network detection and network failure for orientation problem will be diagnosed Detection scheme improves above-mentioned processing procedure.
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 extremely It 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, network Configuration management database is provided with server, configuration management database purchase has newest network topological information, network service Device is with one or more aggregate server communication connections and access is in multiple Internet data centers, each Internet data center More interchangers are deployed with, every interchanger access has multiple host, corresponding data probe is previously provided with every host And communicated to connect with the webserver, this method comprises the following steps:First, network topology letter is obtained from configuration management database Breath, network topological information include the numbering and connection relation of each host, each interchanger and each Internet data center;According to net Network topology information generates network detection list corresponding with each host;The list update request that response data probe is sent, by number Sent according to the corresponding network detection list of host associated by probe to the data probe, to indicate the data probe with default One time interval carries out network state detection, and result of detection is sent to the webserver;Receive what each data probe reported Result 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 host Network detection list the step of include:According to network topological information, to each host, by under the affiliated interchanger of the host its His host is disposed as needing the destination host detected;Corresponding net is generated according to the IP address of the host and each destination host Network detects list.
Alternatively, in the network according to the invention detection method, generated according to network topological information corresponding with each host Network detection list the step of include:According to network topological information, to each host, by the affiliated internet data of the host The destination host that identical host is arranged to needs and detects is numbered under other interchangers that center includes, with it;According to the host Corresponding 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 host Network detection list the step of include:According to network topological information, to each host, other which is not belonging to are mutual The 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 master The 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, will Network 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 more New request is sent from data probe according to default second time interval to the webserver;Sent to data probe associated by it The 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 version Survey list;The definite fresh information of data probe feedback is received, the corresponding network of its associated host is sent to the data probe Detect list.
Alternatively, in the network according to the invention detection method, cache database is additionally provided with the webserver, side Method further includes:The network topological information stored in configuration management database is obtained according to default 3rd time interval;If obtain The network topological information got relatively before network topological information change, then according to get network topological information generation New 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 data Sending to the step of corresponding aggregate server includes:Checking treatment is carried out to each result of detection;Qualified detection knot will be verified Fruit is converted into corresponding achievement data, and sends the achievement data to corresponding polymerization according to default index transmission rule and take Business device.
According to a further aspect of the invention, there is provided a kind of computing device, including one or more processors, memory with And one or more programs, wherein one or more program storages in memory and are configured as by one or more processors Perform, 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 programs Matter, one or more programs include instruction, and instruction is when executed by a computing apparatus so that computing device is according to the present invention Network 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 system Performed in system, which includes the one or more webserver, aggregate server, database server and multiple data and visit Pin, for the system access in multiple Internet data centers, each Internet data center is deployed with more interchangers, every exchange Machine access has multiple host, and corresponding data probe is previously provided with every host, is stored with the webserver and each number According to the corresponding network detection list of host associated by probe, this method comprises the following steps:First, data probe is from network service The corresponding network detection list of host associated by device acquisition, according to the network detection list got, with default first time Interval carries out network state detection, and result of detection is sent to the webserver;The webserver is received on each data probe The result of detection of report, sends to corresponding aggregate server after each result of detection is formed corresponding achievement data;Aggregated service Device receives one or more achievement datas for reporting of the webserver, according to the achievement data of each abnormal state to network connection into Row detection, if network connectivity fai_lure occurs in testing result instruction, sends alarm, the normal achievement data of each state is gathered It is total to calculate to obtain corresponding network quality data, and network quality data is sent to database server;Database service Device 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 closed The step of connection host corresponding network detection list, includes:According to default second time interval, send and arrange to the webserver Table 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 probe Network detection list version, then from the webserver obtain associated by the corresponding network detection list of host, with replace should The 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 resource Take 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 webserver According to storehouse and cache database, configuration management database purchase has newest network topological information, and network topological information includes each master The numbering and connection relation of machine, each interchanger and each Internet data center, this method further include the pre- Mr. of the webserver Into with each data probe associated by the corresponding network detection list of host, previously generate with each data probe associated by host it is corresponding Network detection list the step of include:According to network topological information, to each host, by under the affiliated interchanger of the host its His host is disposed as needing the destination host detected;Other interchangers that the affiliated Internet data center of the host is included Under, number with it identical host and be arranged to need the destination host detected;Other internet centres that the host is not belonging to Including each interchanger under, number with it identical host and be arranged to need the destination host detected;According to the host and each mesh The 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 default Three time intervals obtain the network topological information stored in configuration management database;If the network topological information got than Preceding network topological information changes, then new network detection list is generated according to the network topological information got, and deposit It 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 number Include 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 verified Survey result and be converted into corresponding achievement data, and send the achievement data to corresponding poly- according to default index transmission rule Hop server.
Alternatively, in the network according to the invention fault detection method, according to the achievement data of each abnormal state to net The step of network connection is detected includes:According to the achievement data of each abnormal state, detect every two under each Internet data center There 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 switches Barrier.
Alternatively, in the network according to the invention fault detection method, according to the achievement data of each abnormal state to net The step of network connection is detected includes:To each interchanger of the host number accounting not less than default first ratio, detection should Under the affiliated Internet data center of interchanger, interchanger there is the network for being connected to each interchanger under other Internet data centers First interchanger quantity accounting of failure;Exceed each internet data of default second ratio to the first interchanger quantity accounting Center, 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 net The step of network connection is detected includes:To each interchanger of the host number accounting not less than default first ratio, detection should There is the second exchange for being connected to the network failure of interchanger under other internet centres in the affiliated Internet data center of interchanger Machine quantity accounting;Exceed each Internet data center of default 3rd ratio to second switch quantity accounting, judge that it is deposited Network 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 gathered Total the step of calculating to obtain corresponding network quality data, includes:To the normal achievement data of each state, according to default Four time intervals generate tantile data;The normal achievement data of each state is polymerize by its corresponding interchanger, is counted The network quality index of each interchanger;The normal achievement data of each state is gathered by its corresponding Internet data center Close, count the network quality index of each Internet data center;With reference to the tantile data of generation, each interchanger and each internet The 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 more A webserver, aggregate server, database server and multiple data probes, the system access is in multiple interconnection netting indexs According to center, each Internet data center is deployed with more interchangers, and every interchanger, which accesses, multiple host, in every host Be previously provided with corresponding data probe, be stored with the webserver with each data probe associated by the corresponding network of host visit List is surveyed, within the system:Data probe is suitable for from the corresponding network detection list of host associated by webserver acquisition, root According to the network detection list got, network state detection is carried out with default first time interval, and result of detection is sent To the webserver;The webserver is suitable for receiving the result of detection that each data probe reports, and each result of detection is formed accordingly Achievement data after send to corresponding aggregate server;Aggregate server is suitable for receiving one or more that the webserver reports A achievement data, is detected network connection according to the achievement data of each abnormal state, if network occurs in testing result instruction Connecting 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 number According to, and network quality data is sent to database server;Database server is suitable for receiving and storing aggregate server hair The 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 information List is detected, and the corresponding network detection list of host associated by data probe is sent to the data probe, to indicate the number Network 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 finger Sent after marking data to corresponding aggregate server.In the above-mentioned technical solutions, network topological information includes each host, each exchange Machine and the numbering and connection relation of each Internet data center, the network detection list generated according to this network topological information All hosts can be covered, realize network all standing, reduce calculation amount and system resources consumption, and then can be in real time Detect the network connection situation between any two hosts, and realize adaptive network by issuing network detection list and open up Flutter 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 scheme There is abnormal network connection state and carry out active alarm, greatly speed up failure response time, and by dividing achievement data Cloth polymerize, and can obtain the network quality data between any two interchanger and any two Internet data center in real time.
Brief description of the drawings
In order to realize above-mentioned and related purpose, some illustrative sides are described herein in conjunction with following description and attached drawing Face, these aspects indicate the various modes that can put into practice principles disclosed herein, and all aspects and its equivalent aspect It is intended to fall under in the range of theme claimed.Read following detailed description in conjunction with the accompanying drawings, the disclosure it is above-mentioned And other purposes, feature and advantage will be apparent.Throughout the disclosure, identical reference numeral generally refers to identical Component or element.
Fig. 1 shows the schematic diagram of network fault detection system 100 according to an embodiment of the invention;
Fig. 2 shows the structure diagram of computing device 200 according to an embodiment of the invention;
Fig. 3 shows the flow chart of network fault detecting method 300 according to an embodiment of the invention;And
Fig. 4 shows the flow chart of network detection method 400 according to an embodiment of the invention.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.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 disclosure Completely 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 that Network fault detection system 100 in Fig. 1 is only exemplary, in specific practice situation, network fault detection system 100 In can have the webserver, aggregate server, database server and the data probe of varying number, the present invention to network therefore The quantity of the webserver, aggregate server, database server and data probe included by barrier detecting system 100 is not done Limitation.As shown in Figure 1, network fault detection system 100 includes the webserver 700, aggregate server 800, database service Device 900 and N number of data probe, N number of data probe be respectively data probe 1, data probe 2 ..., data probe N, wherein N is positive integer.
Network fault detection system 100 is accessed in multiple Internet data center (IDC:Internet Data Center), each Internet data center is deployed with more interchangers, and every interchanger access has multiple host, every host In 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, here The quantity of host is similarly N.Moreover, be stored with the webserver 700 with each data probe associated by the corresponding network of host Detect list.
Specifically, for 1~N of data probe, each data probe obtains associated host from the webserver 700 Corresponding network detection list, according to the network detection list got, network state is carried out with default first time interval Detection, and result of detection is sent to the webserver 700.The webserver 700 receives the detection knot that each data probe reports Fruit, sends to corresponding aggregate server 800 after each result of detection is formed corresponding achievement data.Aggregate server 800 connects Receive the one or more achievement datas that report of the webserver 700, according to the achievement data of each abnormal state to network connection into Row detection, if network connectivity fai_lure occurs in testing result instruction, sends alarm, the normal achievement data of each state is gathered It is total to calculate to obtain corresponding network quality data, and network quality data is sent to database server 900.Database takes Business 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 used In 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 as The cache of one or more rank of on-chip cache 210 and second level cache 212 etc, processor core 214 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 processor 204 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:Easily The property lost memory (RAM), nonvolatile memory (ROM, flash memory etc.) or any combination of them.System stores Device 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 Interface 244 and communication equipment 246) to basic configuration 102 via the communication of bus/interface controller 230 interface bus 240.Example Output equipment 242 include graphics processing unit 248 and audio treatment unit 250.They can be configured as contribute to via One or more A/V port 252 communicates with the various external equipments of such as display or loudspeaker etc.Outside example If interface 244 can include serial interface controller 254 and parallel interface controller 256, they, which can be configured as, contributes to Via one or more I/O port 258 and such as input equipment (for example, keyboard, mouse, pen, voice-input device, touch Input equipment) or the external equipment of other peripheral hardwares (such as printer, scanner etc.) etc communicate.Exemplary communication is set Standby 246 can include network controller 260, it can be arranged to be easy to via one or more communication port 264 and one The 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 wave Or computer-readable instruction in the modulated data signal of other transmission mechanisms etc, data structure, program module, and can With including any information delivery media." modulated data signal " can such signal, one in its data set or more It is a or it change can the mode of coding information in the signal carry out.As nonrestrictive example, communication media can be with Include 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 depositing Both storage media and communication media.
Computing device 200 can be implemented as server, such as file server, database server, application program service Device and WEB server etc., can also be embodied as a part for portable (or mobile) electronic equipment of small size, these electronic equipments Can be such as cell phone, personal digital assistant (PDA), personal media player device, wireless network browsing apparatus, individual Helmet, application specific equipment or the mixing apparatus that any of the above function can be included.Computing device 200 can also be real It is now to include desktop computer and the personal computer of notebook computer configuration.In certain embodiments, computing device 200 can It is embodied as the webserver, aggregate server and/or database server, and is configured as performing the network according to the invention event Hinder detection method.Wherein, one or more programs 222 of computing device 200 include being used to perform the network according to the invention event Hinder 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 service Device 700, aggregate server 800, database server 900 and 1~N of data probe are configured to perform the network according to the invention During 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 900 Or 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 700 Take the corresponding network detection list of associated host.Wherein, network detection list is believed by the webserver 700 according to network topology Breath previously generates, for ease of subsequent descriptions, first the webserver 700 is previously generated herein with each data probe associated by host Corresponding network detection list illustrates.
Specifically, configuration management database and cache database are provided with the webserver 700, configuration management database Newest network topological information is stored with, network topological information includes each host, each interchanger and each Internet data center Numbering and connection relation.According to one embodiment of present invention, when generating network detection list, the webserver 700 from Configuration management database obtains network topological information, according to network topological information, to each host, by exchange belonging to the host Other 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 host The network detection list answered, corresponding network detection list is generated according to the IP address of the host and each destination host.According to this Another embodiment of invention, when generating network detection list, the webserver 700 obtains network from configuration management database Topology information, according to network topological information, to each host, other friendships that the affiliated Internet data center of the host is included Change 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 host Address generates corresponding network detection list.According to still another embodiment of the invention, when generating network detection list, network Server 700 obtains network topological information from configuration management database, according to network topological information, to each host, by this Identical 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 detected Destination 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, because This according to still another embodiment of the invention, can previously generate in the following way with each data probe associated by host it is corresponding Network detection list.First, network topological information is obtained from configuration management database, according to network topological information, to each Host, other hosts under the affiliated interchanger of the host is disposed as needing the destination host detected, according to the host and respectively The IP address of destination host generates corresponding network detection list.Then the affiliated Internet data center of the host is included its Identical 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 other The destination host that identical host is arranged to needs and detects, last root are numbered under each interchanger that internet centre includes, with it Corresponding network detection list is generated according to the IP address of the host and each destination host, network detection list is stored with caching number According in storehouse.
In this embodiment, network topological information specifically includes:Network fault detection system 100 is accessed in 2 interconnections Network data center, is denoted as IDC1 and IDC2 respectively, and IDC1 and IDC2 are deployed with 2 interchangers, the interchanger of IDC1 deployment respectively SW1 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 respectively Jie 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 access Host 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 respectively And 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 data Probe 1~16.Table 1 shows the storage example of network topological information according to an embodiment of the invention, institute specific as follows Show:
Table 1
Below exemplified by generating host H1 associated by data probe 1, the mistake to previously generating corresponding network detection list Journey illustrates.For host H1, others host H2, H3 and H4 under the affiliated interchanger SW1 of the host are disposed as needing The destination host to be detected, will number under other interchangers SW2 that the affiliated Internet data center IDC1 of the host includes, with it Identical host H5 is arranged to need the destination host detected, other internet centres IDC2 which is not belonging to is included Under interchanger SW3 and SW4, number identical host H9 and H13 with it and be arranged to need the destination host detected, according to host H1 Corresponding network detection list L1 is generated with the IP address of destination host H5, H9 and H13, and network detection list L1 is stored in In 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 L1 Each 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 to Go 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 another Embodiment, the webserver 700 are opened up according to default 3rd time interval to obtain the network stored in configuration management database Flutter information, if the network topological information got relatively before network topological information change, according to the network that gets Topology information generates new network detection list, and is stored in cache database to update.In this embodiment, configure In 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 700 Process, according to one embodiment of present invention, can realize as follows.First, data probe is according to default Two time intervals, update request to obtain the corresponding network detection list of associated host to 700 transmission list of the webserver Version.Then, the webserver 700 responds the list update request that the data probe is sent, it is sent to the data probe The version of the corresponding network detection list of associated host, judges whether to determine renewal to indicate the data probe according to the version Network detection list, wherein list update request from the data probe according to default second time interval to the webserver 700 send.At this time, data probe receives the version of the newest network detection list of the return of the webserver 700, by the version This is compared with the version of current network detection list, if the version is newly in the current network detection list of the data probe Version, then to the webserver 700 send determine fresh information.The webserver 700 receives determining for data probe feedback Fresh information, the corresponding network detection list of its associated host is sent to the data probe, and then data probe takes from network Business 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 service 700 transmission list of device renewal request, with the version of the corresponding network detection list L1 of host H1 associated by acquisition.The webserver The 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 visits The 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 700 The version of list L1, by the version compared with the version of current network detection list, since current network detection arranges The 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 1 Sent 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 network Detection 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 time Every progress network state detection.According to one embodiment of present invention, first time interval is preset as 120 seconds, data probe 1 According to the network detection list L1 got, every 120 seconds to the network between network host H1 and destination host H5, H9 and H13 State is detected, and is ordered typically by PING (Packet Internet Groper, the Internet packets survey meter) to check Whether 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 service Mark, 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 detected In 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 time Specified in network detection list, so that data probe can therefrom obtain corresponding detection association after corresponding network detection list is obtained View.
Next, in step S313, the result of detection that data probe obtains after network state is detected is sent to network Server 700.According to one embodiment of present invention, data probe 1 has detected a destination host, i.e., can generate corresponding one A result of detection, result of detection generally comprise following field:Operating system, detection time started, detection end time, detection association The affiliated interchanger of view, destination host, destination host and/or the affiliated Internet data center of destination host.In view of individually transmission Single result of detection can bring unnecessary burden to system, therefore can use bulk transfer to the result of detection of a wheel, such as Every 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 avoided Need 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 invention One embodiment, data probe according to default resource occupation rule come judge its consume system resource whether excess load, if The system resource of consumption excess load, then stop detection, if the non-excess load of system resource of consumption, continues to detect.In the reality Apply in mode, resource occupation rule it is predeterminable for CPU usage less than 99% and memory usage be less than 95%.To data probe For 1, the occupancy of its CPU to host H1 is 75%, memory usage 50%, it is known that the system that data probe 1 consumes The 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 received As a result corresponding achievement data is formed.According to one embodiment of present invention, when forming achievement data, first to each result of detection Checking treatment is carried out, then corresponding achievement data is converted into by qualified result of detection is verified.Wherein, achievement data includes current Host, 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 usual It 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 probe In 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 rule The achievement data of rapid S321 generations is sent to corresponding aggregate server.Aggregate server mentioned above is one or more, Fig. 1 Merely illustrate aggregate server 800 in though, the quantity of actually aggregate server could be provided as it is multiple, it is follow-up to accelerate The processing speed of diagnostic network failure.When the quantity of aggregate server only has 1, such as only aggregate server 800, then net Network 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 algorithm Data.The address of each aggregate server is ranked up to obtain corresponding order first, in each achievement data Metric values seek hash value, to obtaining corresponding index value after the hash value modulus tried to achieve, by the achievement data send to this Aggregate server corresponding to the identical order of index value.It is existing mature technology, herein on the particular content of hash algorithm Do not repeated.It should be noted that presetting for index transmission rule, phase can be taken according to the difference of actual conditions The algorithm answered realizes that these can be readily apparent that for the technical staff for understanding the present invention program, and also exist Within 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 network Server 700 is formed according to the result of detection that each data probe reports, hereafter aggregate server 800 can first to each achievement data into Row 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 invention Example, 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 over Mutual 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 state Detection.According to one embodiment of present invention, it is each according to the achievement data of each abnormal state, detection when detecting network connection There is the network for being connected to another interchanger in host between each two interchanger, under an interchanger under Internet data center The host number accounting of failure, exceedes host number accounting each interchanger of default first ratio, judges that it exists and exchanges Network connectivity fai_lure between machine.Wherein, the first ratio is preset as 0.5.In this embodiment, to Internet data center For IDC1, host H1, H2 and H3 under the achievement data instruction interchanger SW1 of abnormal state occur being connected to interchanger SW2 Network 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 SW1 For 3/4=0.75, more than the first ratio, judge that SW1 deposits network connectivity fai_lure among the switches.To Internet data center For IDC2, there is the network for being connected to interchanger SW4 in the host H10 under the achievement data instruction interchanger SW3 of abnormal state Failure, 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 interchanger Network failure the first interchanger quantity accounting, each interconnection of default second ratio is exceeded to the first interchanger quantity accounting Network 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 and Speech, the achievement data of abnormal state is indicated under its affiliated Internet data center IDC2, interchanger SW3 and SW4 are connected to The network failure of interchanger SW2 under Internet data center IDC1,2 interchangers is amounted under IDC1, then interchanger goes out under IDC2 The 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 ratio Example, 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 implementation Example, detects the affiliated Internet data center of the interchanger and occurs being connected to the network failure of interchanger under other internet centres Second 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 party In formula, the host number accounting of interchanger SW3 is not less than default first ratio, then for SW3, the index number of abnormal state According to indicate its affiliated Internet data center IDC2 occur being connected under Internet data center IDC1, interchanger SW1 and SW2 Network failure, 2 interchangers are amounted under IDC1, then IDC2 occurs being connected to second of the network failure of interchanger under IDC1 and exchanges Machine quantity accounting is 2/2=100%, and more than default 3rd ratio, judging IDC2, there are the net between Internet data center Network connecting fault.
After aggregate server 800 completes network connection detection, step S332 is performed, if network company occurs in testing result instruction Failure is connect, then sends alarm.According to one embodiment of present invention, SW1 deposits network connectivity fai_lure among the switches, IDC2 There are the network connection event between the network connectivity fai_lure between Internet data center and interchanger and Internet data center Barrier, 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 phase The network quality data answered.According to one embodiment of present invention, when generating network quality data, first, to each state just Normal achievement data, generates tantile data according to default 4th time interval, the normal achievement data of each state is pressed it Corresponding interchanger is polymerize, and counts the network quality index of each interchanger, and the normal achievement data of each state is right by its The Internet data center answered is polymerize, and counts the network quality index of each Internet data center, in conjunction with point of generation The 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 used By the Metric values in hash algorithm and achievement data, achievement data is classified by the source of current hosts, then to every One 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 made For 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 just Normal achievement data is polymerize respectively, and the network quality index of each Internet data center is generated after corresponding statistics, is finally tied Close and state each tantile data, interchanger SW1, SW2, SW3, SW4, the network quality of Internet data center IDC1 and IDC2 and refer to Mark, forms corresponding network quality data.
After network quality data is obtained, aggregate server 800 performs step S334, and network quality data is sent to number According to storehouse server 900.According to one embodiment of present invention, aggregate server 800 sends network quality data to database Server 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 through The memory cache of the generated network quality data elder generation write into Databasce server 900 of polymerization, the caching preserve certain time, such as After one day, then corresponding network quality data switched into persistent storage, such as deposit OpenTSDB (Open Time Series Database, 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 device 200 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 invention Network detection method 400 instruction.According to one embodiment of present invention, it is provided with configuration management in the webserver 700 Database, configuration management database purchase have newest network topological information, and the webserver 700 polymerize clothes with one or more Business device is communicated to connect and accessed in multiple Internet data centers, and each Internet data center is deployed with more interchangers, often The access of platform interchanger has multiple host, and corresponding data probe is previously provided with every host and is led to the webserver 700 Letter connection.
As shown in figure 4, method 400 starts from step S410.In step S410, obtain network from configuration management database and open up Information 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 to One embodiment of the present of invention, when generating network detection list, according to network topological information, to each host, this is led Other 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 host Address generates corresponding network detection list, and generating corresponding network detection according to the IP address of the host and each destination host arranges Table.According to still another embodiment of the invention, when generating network detection list, according to network topological information, to each master Machine, by under other interchangers that the affiliated Internet data center of the host includes, number identical host with it and be arranged to need The 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 hair Another bright embodiment, when generating network detection list, according to network topological information, to each host, by the host The 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 it 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, because This can generate network detection list in the following way according to still another embodiment of the invention.First, believed according to network topology Breath, to each host, other hosts under the affiliated interchanger of the host is disposed as needing the destination host detected, according to The IP address of the host and each destination host generates corresponding network detection list.Then by the affiliated internet data of the host Identical host is numbered under other interchangers that pericardium includes, with it to be arranged to need the destination host detected, then by the host not Identical host is numbered under each interchanger that other internet centres belonged to include, with it and is arranged to the target master that needs detect Machine, 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 another Embodiment, is additionally provided with cache database in the webserver 700, configuration management is obtained according to default 3rd time interval The network topological information stored in database, if the network topological information got relatively before network topological information changed Become, then new network detection list is generated according to the network topological information got, and be stored in cache database so as to more Newly.Step S410, the concrete processing procedure of S420 and network detection list update, can refer to the webserver in method 300 700 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 probe The 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 interval Network state detects, and result of detection is sent to the webserver 700.According to one embodiment of present invention, can be by such as The list update request that under type response data probe is sent, network detection list is sent to the data probe.In the implementation In mode, response data probe is sent first list update request, list update request is by data probe according to default the Two time intervals are sent to the webserver 700, then send the corresponding network detection list of its associated host to data probe Version, 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 S430 Concrete 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 accordingly Sent after achievement data to corresponding aggregate server 800.According to one embodiment of present invention, can as follows will be each Result of detection is sent to corresponding aggregate server 800 after forming corresponding achievement data.In this embodiment, first to each spy Survey result and carry out checking treatment, will then verify qualified result of detection and be converted into corresponding achievement data, and according to default Index transmission rule sends the achievement data to corresponding aggregate server 800.Concrete processing procedure in step S440, can The 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, accurate Exactness 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 net Network topology covers the problem of incomplete, detection data is difficult to comprehensive utilization, then the Network Fault Detection side based on network detection The 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 information Sent into network detection list corresponding with each host, and by the corresponding network detection list of host associated by data probe to this Data probe, to indicate that the data probe carries out network state detection, receives the result of detection that each data probe reports, by each spy Survey after result forms corresponding achievement data and send to corresponding aggregate server.In the above-mentioned technical solutions, network topology is believed Breath includes the numbering and connection relation of each host, each interchanger and each Internet data center, is believed according to this network topology The network detection list of breath generation can cover All hosts, realize network all standing, reduce calculation amount and system money Source consumes, and then can real-time detect the network connection situation between any two hosts, and by issuing network detection List 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 sound Between seasonable, and by polymerizeing to the distribution of achievement data, any two interchanger and any two interconnection can be obtained in real time Network 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 send Include 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 rule Achievement data is sent to corresponding aggregate server.
B11. the method as described in B10, host associated by the data probe from webserver acquisition are corresponding The step of network detection list, includes:
According to default second time interval, request is updated to the webserver transmission list to obtain associated master The 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 webserver The 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 and Cache database, the configuration management database purchase have newest network topological information, and the network topological information includes each The numbering and connection relation of host, each interchanger and each Internet data center, it is advance that this method further includes the webserver Generation and the corresponding network detection list of host associated by each data probe, it is described previously generate with each data probe associated by lead The 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 with It 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 to Need 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 set To 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 arranged In 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 interval Network topological information;
If the network topological information got relatively before network topological information change, according to the network that gets Topology 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 out Sending 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 rule Achievement 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 connection The step of being detected includes:
According to the achievement data of each abnormal state, detect under each Internet data center between each two interchanger, one There 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 switches Connecting fault.
B17. the method as described in B16, what the achievement data according to each abnormal state was detected network connection Step includes:
To each interchanger of the host number accounting not less than default first ratio, interconnection netting index belonging to the interchanger is detected According under center, interchanger there is the first interchanger number for being connected to the network failure of each interchanger under other Internet data centers Measure accounting;
Exceed each Internet data center of default second ratio to the first interchanger quantity accounting, it is mutual to judge that it exists Network 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 connection The 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 detected The 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 exists Network 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 state The 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 interchanger Index;
The normal achievement data of each state is polymerize by its corresponding Internet data center, counts each interconnection netting index According 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 formed Corresponding 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 invention Example can be put into practice in the case of these no details.In some instances, known method, knot is not been shown in detail Structure 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 sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor The application claims of shield are than the feature more features that is expressly recited in each claim.More precisely, as following As claims reflect, inventive aspect is all features less than single embodiment disclosed above.Therefore, abide by Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself Separate 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 herein Between can be arranged in equipment as depicted in this embodiment, or alternatively can be positioned at and the equipment in the example In different one or more equipment.Module in aforementioned exemplary can be combined as a module or be segmented into addition multiple Submodule.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Member or group between be combined into one between module or unit or group, and can be divided into addition multiple submodule or subelement or Between subgroup.In addition at least some in such feature and/or process or unit exclude each other, it can use any Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and attached drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit requires, summary and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation Replace.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed One 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 embodiment The 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 method The processor of the necessary instruction of element forms the device for being used for implementing this method or method element.In addition, device embodiment Element 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 invention Function.
Various technologies described herein can combine hardware or software, or combinations thereof is realized together.So as to the present invention Method and apparatus, or some aspects of the process and apparatus of the present invention or part can take embedded tangible media, such as soft The 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 hair Bright equipment.
In the case where program code performs on programmable computers, computing device generally comprises processor, processor Readable storage medium (including volatile and non-volatile memory and or memory element), at least one input unit, and extremely A few output device.Wherein, memory is arranged to store program codes;Processor is arranged to according to the memory Instruction 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.Calculate Machine 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 information Pass 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 must Must 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 art It 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 that The language that is used in this specification primarily to readable and teaching purpose and select, rather than in order to explain or limit Determine subject of the present invention and select.Therefore, in the case of without departing from the scope and spirit of the appended claims, for this Many modifications and changes will be apparent from for the those of ordinary skill of technical field.For the scope of the present invention, to this The 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.

Claims (10)

1. a kind of network detection method, suitable for being performed in the webserver, configuration management is provided with the webserver Database, the configuration management database purchase have newest network topological information, the webserver and one or more Aggregate server is communicated to connect and accessed in multiple Internet data centers, and each Internet data center is deployed with more exchanges Machine, every interchanger access have multiple host, and corresponding data probe is previously provided with every host and is taken with the network Business device communication connection, the described method includes:
Network topological information is obtained from the configuration management database, the network topological information includes each host, each interchanger And the numbering and connection relation of each Internet data center;
Network detection list corresponding with each host is generated according to the network topological information;
The list update request that the data probe is sent is responded, by the corresponding network detection of host associated by the data probe List is sent to the data probe, to indicate that the data probe carries out network state detection with default first time interval, and Result of detection is sent to the webserver;
The result of detection that each data probe reports is received, is sent after each result of detection is formed corresponding achievement data to corresponding Aggregate server.
2. the method as described in claim 1, described to generate network spy corresponding with each host according to the network topological information The step of surveying list includes:
According to the network topological information, to each host, other hosts under the affiliated interchanger of the host are disposed as Need the destination host detected;
Corresponding network detection list is generated according to the IP address of the host and each destination host.
3. method as claimed in claim 1 or 2, described to generate network corresponding with each host according to the network topological information The step of detecting list includes:
According to the network topological information, to each host, other friendships that the affiliated Internet data center of the host is included Change planes down, identical host is numbered with it be arranged to need the destination host that detects;
Corresponding network detection list is generated according to the IP address of the host and each destination host.
It is 4. described according to network topological information generation and each host pair such as the method any one of claim 1-3 The step of network detection list answered, includes:
According to the network topological information, to each host, other internet centres which is not belonging to include each Identical host is numbered under interchanger, with it to be arranged to need the destination host detected;
Corresponding network detection list is generated according to the IP address of the host and each destination host.
5. such as the method any one of claim 1-4, the list update that the response data probe is sent is asked, The network detection list, which was sent to the step of data probe, to be included:
The list update request that the data probe is sent is responded, the list update request is by the data probe according to default The second time interval sent to the webserver;
The version of the corresponding network detection list of its associated host is sent to the data probe, to indicate the data probe root Judge whether to determine renewal network detection list according to the version;
The definite fresh information of data probe feedback is received, the corresponding network of its associated host is sent to the data probe Detect list.
6. such as the method any one of claim 1-5, cache database, the method are additionally provided with the webserver Further include:
The network topological information stored in the configuration management database is obtained according to default 3rd time interval;
If the network topological information got relatively before network topological information change, according to the network topology that gets Information generates new network detection list, and is stored in the cache database to update.
7. a kind of computing device, including:
One or more processors;
Memory;And
One or more programs, wherein one or more of program storages are in the memory and are configured as by described one A or multiple processors perform, and one or more of programs include being used to perform in the method according to claim 1-6 Either method instruction.
8. a kind of computer-readable recording medium for storing one or more programs, one or more of programs include instruction, Described instruction is when executed by a computing apparatus so that in method of the computing device according to claim 1-6 Either method.
9. a kind of network fault detecting method, suitable for being performed in network fault detection system, the system comprises one or more A webserver, aggregate server, database server and multiple data probes, the system access is in multiple interconnection netting indexs According to center, each Internet data center is deployed with more interchangers, and every interchanger, which accesses, multiple host, in every host Be previously provided with corresponding data probe, be stored with the webserver with each data probe associated by the corresponding net of host Network detects list, the described method includes:
The corresponding network detection list of host associated by data probe from webserver acquisition, according to the network got List is detected, network state detection is carried out with default first time interval, and result of detection is sent to the network service Device;
The webserver receives the result of detection that each data probe reports, and is sent out after each result of detection is formed corresponding achievement data Send to corresponding aggregate server;
Aggregate server receives one or more achievement datas that the webserver reports, according to the index of each abnormal state Data are detected network connection, if network connectivity fai_lure occurs in testing result instruction, send alarm, normal to each state Achievement data carry out polymerization and calculate to obtain corresponding network quality data, and the network quality data is sent to described Database server;
Database server receives and stores the network quality data of aggregate server transmission.
10. a kind of network fault detection system, the system comprises one or more webservers, aggregate server, data Storehouse server and multiple data probes, the system access is in multiple Internet data centers, each portion of Internet data center There are more interchangers in administration, and every interchanger access has multiple host, corresponding data probe, institute are previously provided with every host State be stored with the webserver with each data probe associated by the corresponding network detection list of host, within the system:
Data probe, suitable for the corresponding network detection list of host associated by being obtained from the webserver, according to getting Network detection list, network state detection is carried out with default first time interval, and result of detection is sent to the net Network server;
The webserver, suitable for receiving the result of detection that each data probe reports, corresponding index number is formed by each result of detection Sent according to rear to corresponding aggregate server;
Aggregate server, suitable for receiving one or more achievement datas that the webserver reports, according to each abnormal state Achievement data network connection is detected, if testing result instruction there is network connectivity fai_lure, alarm is sent, to each shape The normal achievement data of state carries out polymerization and calculates to obtain corresponding network quality data, and the network quality data is sent To the database server;
Database server, suitable for receiving and storing the network quality data of aggregate server transmission.
CN201711216097.XA 2017-11-28 2017-11-28 Network detection method, network fault detection method and system Active CN107995030B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711216097.XA CN107995030B (en) 2017-11-28 2017-11-28 Network detection method, network fault detection method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711216097.XA CN107995030B (en) 2017-11-28 2017-11-28 Network detection method, network fault detection method and system

Publications (2)

Publication Number Publication Date
CN107995030A true CN107995030A (en) 2018-05-04
CN107995030B CN107995030B (en) 2021-09-14

Family

ID=62033818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711216097.XA Active CN107995030B (en) 2017-11-28 2017-11-28 Network detection method, network fault detection method and system

Country Status (1)

Country Link
CN (1) CN107995030B (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110149307A (en) * 2019-04-03 2019-08-20 广东申立信息工程股份有限公司 A kind of IDC safety management system
CN111198774A (en) * 2018-10-31 2020-05-26 百度在线网络技术(北京)有限公司 Unmanned vehicle simulation abnormity tracking method, device, equipment and computer readable medium
CN111811560A (en) * 2020-05-29 2020-10-23 深圳元戎启行科技有限公司 Detection method, device and system of automatic driving sensor and computer equipment
CN111817911A (en) * 2020-06-23 2020-10-23 腾讯科技(深圳)有限公司 Method and device for detecting network quality, computing equipment and storage medium
CN112751704A (en) * 2020-12-17 2021-05-04 杭州安恒信息技术股份有限公司 Method, device and equipment for checking connectivity of heterogeneous network in network target range
CN112995042A (en) * 2021-05-11 2021-06-18 深圳市科力锐科技有限公司 Method, device and equipment for generating service topological graph and storage medium
CN113010386A (en) * 2021-03-19 2021-06-22 掌阅科技股份有限公司 Service detection method, computing device and computer storage medium
CN113055238A (en) * 2019-12-26 2021-06-29 深信服科技股份有限公司 Network detection method, platform and computer readable storage medium
CN113300908A (en) * 2021-04-28 2021-08-24 郑州信大捷安信息技术股份有限公司 Link monitoring method and system based on unidirectional network boundary equipment
CN113765727A (en) * 2020-06-03 2021-12-07 深信服科技股份有限公司 Data center network delay detection method, device, equipment and medium
CN113783752A (en) * 2021-08-26 2021-12-10 四川新网银行股份有限公司 Network quality monitoring method during mutual access of intranet cross-network inter-segment service systems
CN113905050A (en) * 2021-08-30 2022-01-07 深圳市联洲国际技术有限公司 Method, device and system for detecting internet access information
CN114070760A (en) * 2021-11-16 2022-02-18 北京知道创宇信息技术股份有限公司 Network space asset mapping method and device, network space asset database and computer readable storage medium
CN114095808A (en) * 2020-08-24 2022-02-25 华为技术有限公司 Network fault detection method, device, equipment and computer readable storage medium
CN114157554A (en) * 2021-12-21 2022-03-08 唯品会(广州)软件有限公司 Troubleshooting method and device, storage medium and computer equipment
CN114389982A (en) * 2022-01-04 2022-04-22 北京全路通信信号研究设计院集团有限公司 Network quality evaluation method, device, equipment and medium
CN115348197A (en) * 2022-06-10 2022-11-15 国网思极网安科技(北京)有限公司 Network asset detection method and device, electronic equipment and storage medium
CN115550211A (en) * 2021-06-29 2022-12-30 青岛海尔科技有限公司 Method and device for detecting network connection quality, storage medium and electronic device
CN115883400A (en) * 2022-11-10 2023-03-31 中国联合网络通信集团有限公司 Network monitoring method, device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101291232A (en) * 2008-06-03 2008-10-22 北京星网锐捷网络技术有限公司 Ethernet port, Ethernet switch and signal receiving and sending method of Ethernet equipment
CN102055626A (en) * 2010-12-31 2011-05-11 北京中创信测科技股份有限公司 Internet protocol (IP) network quality detecting method and system
CN102891779A (en) * 2012-09-27 2013-01-23 北京网瑞达科技有限公司 Large-scale network performance measuring system and method for IP network
US20160027229A1 (en) * 2014-07-25 2016-01-28 Blockchain Technologies Corporation System and method for securely receiving and counting votes in an election
CN105871634A (en) * 2016-06-01 2016-08-17 北京蓝海讯通科技股份有限公司 Method and application for detecting cluster anomalies and cluster managing system
CN106991033A (en) * 2017-04-01 2017-07-28 北京蓝海讯通科技股份有限公司 Notify method, device, server and the readable storage medium storing program for executing of alarm information

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101291232A (en) * 2008-06-03 2008-10-22 北京星网锐捷网络技术有限公司 Ethernet port, Ethernet switch and signal receiving and sending method of Ethernet equipment
CN102055626A (en) * 2010-12-31 2011-05-11 北京中创信测科技股份有限公司 Internet protocol (IP) network quality detecting method and system
CN102891779A (en) * 2012-09-27 2013-01-23 北京网瑞达科技有限公司 Large-scale network performance measuring system and method for IP network
US20160027229A1 (en) * 2014-07-25 2016-01-28 Blockchain Technologies Corporation System and method for securely receiving and counting votes in an election
CN105871634A (en) * 2016-06-01 2016-08-17 北京蓝海讯通科技股份有限公司 Method and application for detecting cluster anomalies and cluster managing system
CN106991033A (en) * 2017-04-01 2017-07-28 北京蓝海讯通科技股份有限公司 Notify method, device, server and the readable storage medium storing program for executing of alarm information

Cited By (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111198774A (en) * 2018-10-31 2020-05-26 百度在线网络技术(北京)有限公司 Unmanned vehicle simulation abnormity tracking method, device, equipment and computer readable medium
CN111198774B (en) * 2018-10-31 2023-09-29 百度在线网络技术(北京)有限公司 Unmanned vehicle simulation anomaly tracking method, device, equipment and computer readable medium
CN110149307A (en) * 2019-04-03 2019-08-20 广东申立信息工程股份有限公司 A kind of IDC safety management system
CN113055238B (en) * 2019-12-26 2023-02-03 深信服科技股份有限公司 Network detection method, platform and computer readable storage medium
CN113055238A (en) * 2019-12-26 2021-06-29 深信服科技股份有限公司 Network detection method, platform and computer readable storage medium
CN111811560A (en) * 2020-05-29 2020-10-23 深圳元戎启行科技有限公司 Detection method, device and system of automatic driving sensor and computer equipment
CN113765727B (en) * 2020-06-03 2023-07-11 深信服科技股份有限公司 Data center network time delay detection method, device, equipment and medium
CN113765727A (en) * 2020-06-03 2021-12-07 深信服科技股份有限公司 Data center network delay detection method, device, equipment and medium
CN111817911B (en) * 2020-06-23 2023-08-08 腾讯科技(深圳)有限公司 Method, device, computing equipment and storage medium for detecting network quality
CN111817911A (en) * 2020-06-23 2020-10-23 腾讯科技(深圳)有限公司 Method and device for detecting network quality, computing equipment and storage medium
CN114095808B (en) * 2020-08-24 2023-04-28 华为技术有限公司 Network fault detection method, device, equipment and computer readable storage medium
CN114095808A (en) * 2020-08-24 2022-02-25 华为技术有限公司 Network fault detection method, device, equipment and computer readable storage medium
CN112751704A (en) * 2020-12-17 2021-05-04 杭州安恒信息技术股份有限公司 Method, device and equipment for checking connectivity of heterogeneous network in network target range
CN112751704B (en) * 2020-12-17 2022-07-05 杭州安恒信息技术股份有限公司 Method, device and equipment for checking connectivity of heterogeneous network in network target range
CN113010386A (en) * 2021-03-19 2021-06-22 掌阅科技股份有限公司 Service detection method, computing device and computer storage medium
CN113300908B (en) * 2021-04-28 2022-03-11 郑州信大捷安信息技术股份有限公司 Link monitoring method and system based on unidirectional network boundary equipment
CN113300908A (en) * 2021-04-28 2021-08-24 郑州信大捷安信息技术股份有限公司 Link monitoring method and system based on unidirectional network boundary equipment
CN112995042B (en) * 2021-05-11 2021-08-17 深圳市科力锐科技有限公司 Method, device and equipment for generating service topological graph and storage medium
CN112995042A (en) * 2021-05-11 2021-06-18 深圳市科力锐科技有限公司 Method, device and equipment for generating service topological graph and storage medium
CN115550211A (en) * 2021-06-29 2022-12-30 青岛海尔科技有限公司 Method and device for detecting network connection quality, storage medium and electronic device
CN113783752A (en) * 2021-08-26 2021-12-10 四川新网银行股份有限公司 Network quality monitoring method during mutual access of intranet cross-network inter-segment service systems
CN113905050A (en) * 2021-08-30 2022-01-07 深圳市联洲国际技术有限公司 Method, device and system for detecting internet access information
CN113905050B (en) * 2021-08-30 2023-07-18 成都市联洲国际技术有限公司 Method, device and system for detecting internet access information
CN114070760A (en) * 2021-11-16 2022-02-18 北京知道创宇信息技术股份有限公司 Network space asset mapping method and device, network space asset database and computer readable storage medium
CN114157554B (en) * 2021-12-21 2024-02-23 唯品会(广州)软件有限公司 Fault checking method and device, storage medium and computer equipment
CN114157554A (en) * 2021-12-21 2022-03-08 唯品会(广州)软件有限公司 Troubleshooting method and device, storage medium and computer equipment
CN114389982A (en) * 2022-01-04 2022-04-22 北京全路通信信号研究设计院集团有限公司 Network quality evaluation method, device, equipment and medium
CN114389982B (en) * 2022-01-04 2024-04-09 北京全路通信信号研究设计院集团有限公司 Network quality assessment method, device, equipment and medium
CN115348197A (en) * 2022-06-10 2022-11-15 国网思极网安科技(北京)有限公司 Network asset detection method and device, electronic equipment and storage medium
CN115883400A (en) * 2022-11-10 2023-03-31 中国联合网络通信集团有限公司 Network monitoring method, device and storage medium

Also Published As

Publication number Publication date
CN107995030B (en) 2021-09-14

Similar Documents

Publication Publication Date Title
CN107995030A (en) A kind of network detection method, network fault detecting method and system
CN107835098A (en) A kind of network fault detecting method and system
CN107925588A (en) Band outer platform is adjusted and configured
CN105938443B (en) Method and system for executing diagnostic activities in a computing environment
CN102939594B (en) The method and apparatus that migration with the virtual resource in customer resources to data center environment is relevant
US11477093B2 (en) Coupling of a business component model to an information technology model
US9298732B2 (en) Searching cloud-based distributed storage resources using a set of expendable probes
CN107852368A (en) Highly usable service chaining for network service
US20160349993A1 (en) Data-driven ceph performance optimizations
CN104639406B (en) Relationship modeling computer network topologies are used based on dynamic
US20090204693A1 (en) Optimization of aspects of information technology structures
CN110506259A (en) System and method for calculate node management agreement
CN104580349A (en) Secure cloud management agent
Rajagopal et al. FedSDM: Federated learning based smart decision making module for ECG data in IoT integrated Edge-Fog-Cloud computing environments
CN107395414A (en) A kind of negative feedback control method and system based on output ruling
CN107249049A (en) A kind of method and apparatus screened to the domain name data that network is gathered
Brandt et al. Network Performance Counter Monitoring and Analysis on the Cray XC Platform.
CN107835089A (en) The method and apparatus for managing resource
CN110351299A (en) A kind of network connection detection method and device
Girish et al. Mathematical tools and methods for analysis of SDN: A comprehensive survey
CN109905268A (en) The method and device of network O&M
CN109710447A (en) For the method, apparatus of data access, medium and calculate equipment
US20080127083A1 (en) Method and system for combining multiple benchmarks
CN109582751A (en) A kind of measure and server of retrieval effectiveness
CN109936589A (en) Dynamic load balancing method, device and platform based on API hot value

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant