CN108777640A - A kind of server detection method, device, system and storage medium - Google Patents

A kind of server detection method, device, system and storage medium Download PDF

Info

Publication number
CN108777640A
CN108777640A CN201810563883.5A CN201810563883A CN108777640A CN 108777640 A CN108777640 A CN 108777640A CN 201810563883 A CN201810563883 A CN 201810563883A CN 108777640 A CN108777640 A CN 108777640A
Authority
CN
China
Prior art keywords
server
network
detection
address
mark
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
CN201810563883.5A
Other languages
Chinese (zh)
Other versions
CN108777640B (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.)
Tencent Technology Shenzhen Co Ltd
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Tencent Cloud Computing Beijing 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 Tencent Technology Shenzhen Co Ltd, Tencent Cloud Computing Beijing Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810563883.5A priority Critical patent/CN108777640B/en
Publication of CN108777640A publication Critical patent/CN108777640A/en
Application granted granted Critical
Publication of CN108777640B publication Critical patent/CN108777640B/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/04Network management architectures or arrangements
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Abstract

The embodiment of the invention discloses a kind of server detection method, device, system and storage medium, the embodiment of the present invention obtains probe requests thereby in basic network, and the mark of the private network where destination server to be detected is taken in the probe requests thereby;It is identified as the private network distribution transmission label based on described, and the detection address in basic network is distributed for the private network;Obtain the physical address of destination server to be detected in the private network;According to the mark, detection address, physical address and transmission label, control is located at the detecting server in basic network by the network equipment in basic network, and probe messages are sent to the destination server;Receive the result of detection that the destination server is returned based on the probe messages.The program can dispose each server in basic network so that management server can flexibly allocate each server and be detected to server, improve the convenience detected to server.

Description

A kind of server detection method, device, system and storage medium
Technical field
The present invention relates to Internet technical fields, and in particular to a kind of server detection method, device, system and storage are situated between Matter.
Background technology
In Internet service, it is often necessary to detecting server state, so as to allow the clothes according to server state Business device executes corresponding business, safety when ensureing that server executes business and reliability.
In the prior art, it is detected to the server in private network (Virtual Private Cloud, VPC) During, it needs detecting server being deployed in inside VPC, and need to dispose detecting server respectively to each VPC (often generate a VPC, be required to carry out a full set of detecting server deployment), the detecting server need to occupy the resource of VPC and Then equipment etc. carries out server detection based on VPC internal networks.For example, ping orders can be passed through in VPC internal networks Internet Control Message Protocol (Internet Control Message Protocol, ICMP) data packet is sent to server, And based on whether receive server return response message, come determine server whether in normal operating condition or with clothes Whether the connecting link between business device is in normal connection status etc..
In the research and practice process to the prior art, it was found by the inventors of the present invention that detecting server is disposed VPC Network internal, occupy VPC Internet resources to the deployment of detecting server with build, be not merely limited to VPC resources in network pipes Reason ability (such as some resources can not flexible dispatching in VPC), and need to change the composition of resource in VPC networks, very not It is convenient.
Invention content
A kind of server detection method of offer of the embodiment of the present invention, device, system and storage medium, it is intended to improve to service The convenience that device is detected.
In order to solve the above technical problems, the embodiment of the present invention provides following technical scheme:
A kind of server detection method, the method are applied to management server, the method includes:
Probe requests thereby is obtained in basic network, is taken in the probe requests thereby privately owned where destination server to be detected The mark of network;
It is identified as the private network distribution transmission label based on described, and is distributed in facilities network for the private network Detection address in network;
Obtain the physical address of destination server to be detected in the private network;
It is located at the detection service in basic network according to the mark, detection address, physical address and transmission label, control Device sends probe messages by the network equipment in basic network, to the destination server;
Receive the result of detection that the destination server is returned based on the probe messages.
A kind of server detection device, including:
First acquisition unit takes mesh to be detected for obtaining probe requests thereby in basic network in the probe requests thereby Mark the mark of the private network where server;
Allocation unit, for be based on it is described be identified as the private network distribution transmission label, and be the privately owned net Network distributes the detection address in basic network;
Second acquisition unit, the physical address for obtaining destination server to be detected in the private network;
Control unit, for being located at facilities network according to the mark, detection address, physical address and transmission label, control Detecting server in network sends probe messages by the network equipment in basic network to the destination server;
Receiving unit, the result of detection returned based on the probe messages for receiving the destination server.
Optionally, described control unit includes:
First transmission sub-unit, for being sent to the detection address, physical address and transmission label positioned at facilities network Detecting server in network, and control the detecting server and be based on the detection address, physical address and transmission label to position The network equipment in basic network sends probe messages;
Second transmission sub-unit, for the mark, detection address and transmission label to be sent to the network equipment, and The network equipment is controlled after receiving the probe messages, it will be described according to the mark, detection address and transmission label Probe messages are transmitted to the destination server.
Optionally, the detecting server includes multiple, and first transmission sub-unit includes:
Acquisition module, the status information for obtaining each detecting server in basic network;
Determining module determines the excellent of each detecting server for the status information according to each detecting server First grade;
Screening module is filtered out for the priority according to each detecting server from the multiple detecting server At least one detecting server obtains target acquisition server;
Sending module, for the detection address, physical address and transmission label to be sent to the target acquisition service Device.
Optionally, the determining module is specifically used for:
According to the status information of each detecting server, idle spy is filtered out from the multiple detecting server Server is surveyed, candidate detecting server is obtained;
Extract check figure and free memory from the status information of the candidate detecting server, and for the check figure and Weights are respectively set in free memory;
The excellent of each detecting server is determined according to the check figure, free memory and the weights of each candidate detecting server First grade.
Optionally, when target acquisition server is multiple, the sending module is specifically used for:
The multipacket message that configuration is made of the detection address, physical address and transmission label;
Multiple threads are called, and each group information is sent respectively to by each target acquisition service by the multiple thread Device.
Optionally, the network equipment includes multiple, and second transmission sub-unit is specifically used for:
Obtain the status information for each network equipment being located in basic network;
According to the status information of each network equipment, the priority of each network equipment is determined;
According to the priority of each network equipment, at least one network equipment is filtered out from the multiple network equipment, Obtain destination network device;
The mark, detection address and transmission label are sent to the destination network device.
Optionally, the first acquisition unit is specifically used for:
Configuration-direct is received in basic network;
The corresponding mark of private network where determining destination server to be detected according to the configuration-direct, detection week Phase and detection agreement;
Probe requests thereby is generated according to the mark, detection cycle and detection agreement.
Optionally, the private network includes multiple, and the allocation unit is specifically used for:
Based on private network of the mark where determining the destination server in multiple private networks;
Idle transmission label is obtained from preset transmission tally set, and obtains sky from preset detection address set Not busy detection address;
The transmission label of the free time is distributed into the private network, and the detection address of the free time is distributed to The private network.
Optionally, the second acquisition unit is specifically used for:
It receives the detecting server and sends the address acquisition request for carrying the mark;
All servers to be detected in the private network are obtained according to the mark, obtain destination server;
The server identification of preset list of physical addresses and destination server is obtained, and from the list of physical addresses Inquiry physical address corresponding with each server identification.
A kind of server detection system, the server detection system include management server, detecting server and network Equipment, the management server, detecting server and the network equipment are connected with each other between any two, and the server detection system exists The data for being transmitted to internal system are received in basic network by the management server, and pass through the network equipment and system The destination server that outside is located at private network connects, wherein
The management server is taken to be detected for obtaining probe requests thereby in basic network in the probe requests thereby The mark of private network where destination server;
It is identified as the private network distribution transmission label based on described, and is distributed in facilities network for the private network Detection address in network;
Obtain the physical address of destination server to be detected in the private network;
The detection address, physical address and transmission label are sent to the detecting server in basic network, with And the mark, detection address and transmission label are sent to the network equipment in basic network;
The detecting server, for being sent to the network equipment based on the detection address, physical address and transmission label Probe messages;
The network equipment, for after receiving the probe messages, being marked according to the mark, detection address and transmission The probe messages are transmitted to the destination server by label;
The result of detection that destination server is returned based on the probe messages is received, and by the result of detection described in Detecting server is sent to the management server.
A kind of storage medium, the storage medium are stored with a plurality of instruction, and described instruction is loaded suitable for processor, with Execute the step in any server detection method that the embodiment of the present invention is provided.
The embodiment of the present invention can obtain the private network carried where destination server to be detected in basic network Mark probe requests thereby, and based on be identified as private network distribution transmission label, and for private network distribute in facilities network Detection address in network obtains the physical address of destination server to be detected in private network;Then according to mark, detection ground Location, physical address and transmission label, the detecting server that control is located in basic network pass through the network in basic network Equipment sends probe messages to destination server, receives the result of detection that destination server is returned based on probe messages.The program The service of the compositions such as management server, detecting server and the network equipment can be disposed in the basic network outside private network Device detection system, so that management server can flexibly allocate each server or equipment (such as detecting server or net Network equipment etc.) resource destination server is detected, improve the convenience detected to server and flexibility.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is the schematic diagram of a scenario of server detection system provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of server detection method provided in an embodiment of the present invention;
Fig. 3 is another flow diagram of server detection method provided in an embodiment of the present invention;
Fig. 4 is the deployment Organization Chart of server detection system provided in an embodiment of the present invention;
Fig. 5 is the schematic diagram of message forwarding provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of server detection device provided in an embodiment of the present invention;
Fig. 7 is another structural schematic diagram of server detection device provided in an embodiment of the present invention;
Fig. 8 is the structural schematic diagram of server detection system provided in an embodiment of the present invention;
Fig. 9 is the structural schematic diagram of server provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, the every other implementation that those skilled in the art are obtained without creative efforts Example, shall fall within the protection scope of the present invention.
A kind of server detection method of offer of the embodiment of the present invention, device, system and storage medium.
Referring to Fig. 1, the schematic diagram of a scenario for the server detection system that Fig. 1 is provided by the embodiment of the present invention, the service Device detection system is located in basic network, which may include management server, detecting server and network Equipment etc., management server, detecting server and network equipment etc. between any two can by cable network or wireless network into Row connection.
Wherein, management server may include one or more, which can be used for fundamentals of management network In each detecting server and the network equipment etc., and distribution transmission label, detection address, triggering detection and receive result of detection Deng the management server can receive the data for being transmitted to internal system from exterior, for example, can receive user passes through end The configuration-direct for holding (such as mobile phone, tablet computer, laptop and desktop computer etc.) to send, to refer to according to according to configuration It enables and the generations detections such as the mark of the private network where the destination server in requisition for detection, detection cycle and detection agreement is asked It asks, which can also be private network distribution transmission label and the detection address in basic network, and obtain The physical address etc. of destination server to be detected in private network, and marked according to mark, detection address, physical address and transmission Label, control detecting server send probe messages by the network equipment in basic network, to destination server, for example, Detection address, physical address and transmission label etc. are sent to the detecting server in basic network, and will mark, spy Geodetic location and transmission label etc. are sent to the network equipment, so that detecting server sends probe messages to the network equipment, and by Probe messages are transmitted to destination server by the network equipment.
Detecting server can be used for detecting the destination server in private network, detection cycle and detection mode It can be scheduled by management server, while report result of detection to management server, for example, can be managed according to receiving Detection address, physical address and the transmission label that server is sent generate probe messages, and probe messages are sent to network and are set Standby, which may include one or more.
The network equipment can be the equipment such as interchanger, gateway and router, which can be used for forwarding detection Message or result of detection etc., the network equipment can be connect with the destination server of exterior, which may include One or more, for example, the network equipment can receive mark, detection address and transmission label of management server transmission etc., and After the probe messages for receiving detecting server transmission, probe messages are turned according to mark, detection address and transmission label etc. Issue the destination server in private network;And it after the result of detection for receiving destination server return, will detect As a result it is transmitted to detecting server.
Management server, detecting server and network equipment etc. are located in basic network, which is physics object Reason, for example, underlay networks, can build virtualization network on the basis of the basic network, for example, overlay nets Network, virtualize network can have public cloud virtualization network or private clound virtualization network etc..The basic network can be worked as The network of preceding data center network basis forwarding plane refers to as long as any two points routing is reachable in data center network It is physical basis layer;Base can be improved by the technique improvement, expansion number of devices, Bandwidth etc. of physical network device itself Plinth network.
Destination server in Fig. 1 is the server being detected, which is located in private network (i.e. VPC), The private network can be one piece of cyberspace that can customize (such as overlay network), can be disposed in private network Server, load balancing, database, non-relational database (Not Only SQL, Nosql) block storage etc. Service Sources, The network segment can also freely be divided in private network or formulate routing policy etc.;Private network can configure public network gateway to access Internet (i.e. Internet), while also configuration public network or access via telephone line being supported to build mixed cloud, network is patrolled between private network Collect isolation etc..The private network can be the virtualization technology pattern being superimposed in a kind of network architecture, and general framework is to base Under conditions of plinth network is without wholesale revision, the carrying on network is applied in realization, and can be detached with other network services, I.e. the private network can be built upon the virtual net on underlay networks, may make up by logical node and logical links Private network.
It should be noted that the schematic diagram of a scenario of server detection system shown in FIG. 1 is only an example, the present invention Embodiment description server detection system and scene be in order to more clearly illustrate the technical solution of the embodiment of the present invention, The restriction for technical solution provided in an embodiment of the present invention is not constituted, those of ordinary skill in the art are it is found that with service The appearance of the differentiation and new business scene of device detection system, technical solution provided in an embodiment of the present invention ask similar technology Topic, it is equally applicable.
It is described in detail separately below.
In the present embodiment, it will be described from the angle of management server, which can be integrated in In the network equipments such as server or gateway.
A kind of server detection method, including:Probe requests thereby is obtained in basic network, is taken in probe requests thereby to be detected The mark of private network where destination server;Label is transmitted based on private network distribution is identified as, and is private network Distribute the detection address in basic network;Obtain the physical address of destination server to be detected in private network;According to mark Know, detect address, physical address and transmission label, control is located at the detecting server in basic network by being located at basic network In the network equipment, to destination server send probe messages;Receive the detection knot that destination server is returned based on probe messages Fruit.
Referring to Fig. 2, Fig. 2 is the flow diagram for the server detection method that one embodiment of the invention provides.The service Device detection method may include:
In step S101, probe requests thereby is obtained in basic network, destination server to be detected is taken in probe requests thereby The mark of the private network at place.
Wherein, mark, the detection week of the private network where destination server to be detected can be carried in probe requests thereby The information such as phase and detection agreement, the mark are used for unique identification private network, which can be the title or volume of private network Number etc., for example, the mark can be made of number and/or letter etc..The detection cycle can carry out spirit according to actual needs Setting living, which may include Internet Control Message Protocol (Internet Control Message Protocol, ICMP) Or wait remote terminal protocols (Teletype Network, Telnet) etc..
Since management server can be deployed in basic network, and the destination server detected is needed to be located at privately owned net Network, therefore, management server can obtain probe requests thereby in basic network.Management server can be at interval of preset time Probe requests thereby is obtained, or obtains probe requests thereby etc. when receiving configuration-direct, specific acquisition opportunity can be according to reality It needs flexibly to be arranged, be not construed as limiting here.
In some embodiments, may include the step of acquisition probe requests thereby in basic network:In basic network Receive configuration-direct;The corresponding mark of private network where determining destination server to be detected according to configuration-direct, detection Period and detection agreement;Probe requests thereby is generated according to mark, detection cycle and detection agreement.
Specifically, management server can receive the configuration-direct of configurating terminal transmission in basic network, and the configuration is whole End can be the terminal configured to the corresponding detection information of configuration-direct, which can be mobile phone, tablet computer, notes This computer and desktop computer etc..For the configuration-direct for configuring detection information, which may include the mesh for needing to detect The corresponding mark of private network, detection cycle and detection agreement where marking server etc..Therefore, management server can root The corresponding mark of private network, detection cycle and detection agreement are determined according to the configuration-direct received, then according to mark, detection Period and detection agreement generate probe requests thereby.
For example, the content example that detection information includes can be:(1) mark of private network:A;Detection cycle:10 seconds; Detect agreement:ICMP;Or the mark of (2) private network:B, detection cycle:20 seconds, detect agreement:Telnet;Etc..
The probe requests thereby can also include source address, purpose other than including mark, detection cycle and detection agreement etc. The five-tuples such as address, source port number, destination port number and transport layer protocol can initiate after generating probe requests thereby to being located at Destination server in the private network is detected.
It should be noted that management server can obtain detection information from information bank, certainly, which may be used also To obtain by other means, which may include that the private network where needing the destination server that detects is corresponding Mark, detection cycle and detection agreement etc., then, according to the mark, detection cycle and detection agreement etc. for including in detection information Information generates probe requests thereby.
Wherein, the private network where needing the destination server detected may include one or more, work as private network When being multiple, configuration-direct corresponding for each private network can be received respectively, or obtain each private network respectively Corresponding detection information, with determine the corresponding mark of private network where the destination server that detects of needs, detection cycle and Agreement etc. is detected, and based on the corresponding mark of each private network, detection cycle and detection agreement etc., is generated respectively each privately owned The corresponding probe requests thereby of network.
In step s 102, based on be identified as private network distribution transmission label, and for private network distribute on basis Detection address in network.
After obtaining probe requests thereby, management server can transmit label, the transmission according to private network distribution is identified as Tag identifier private network, to be forwarded to probe messages, which can be virtual LAN (Virtual Local Area Network, VLAN) label, vlantag, or referred to as vlanID etc. are properly termed as, for example, the transmission mark The sequence number that label can be made of number.
And management server can be that private network distributes the detection address in basic network, wherein the detection Location can be the agreement (Internet Protocol, IP) interconnected between network, that is, distributes private network and be mapped in basic network In IP address, for example, UnderLayIP.
In some embodiments, private network includes multiple, and label is transmitted based on private network distribution is identified as, and It is that the step of private network distributes the detection address in basic network may include:
Based on private network of the mark where determining destination server in multiple private networks;
Idle transmission label is obtained from preset transmission tally set, and obtains sky from preset detection address set Not busy detection address;
Idle transmission label is distributed into private network, and private network is distributed into idle detection address.
Wherein, private network VPC may include multiple, for example, the first private network VPC-a, the second private network VPC- B, and the n-th private network VPC-n etc., the value of the n can be flexibly arranged according to actual needs, be not construed as limiting here.
Management server is previously provided with transmission tally set and detection address set etc., and each transmit in tally set may include May include multiple in multiple transmission labels, and each detection address set.Management server can be extracted from probe requests thereby Go out the mark for needing the private network where the destination server detected, and inquire corresponding mark in each private network, so Private network according to mark where determining destination server in multiple private networks afterwards, such as when in some private network When mark is consistent with the mark carried in probe requests thereby, it may be determined that need the private network where the destination server detected.
At this point, management server may determine that in preset transmission tally set with the presence or absence of idle transmission label, if depositing In idle transmission label, then idle transmission label can be obtained from transmission tally set, idle transmission label is distributed The private network detected to needs.If there is no idle transmission label, it can be waited for, until there is idle transmission Label.
When there are the transmission label of multiple free time, it can be distributed at random or according to preset algorithm by idle transmission label To private network, for example, when the transmission label of multiple free time includes 1000 to 1500, and need to detect the first private network VPC- When a, it is privately owned can to distribute to first from multiple idle transmission labels at random by one of idle transmission label 1000 Network VPC-a;When multiple free time transmission label include 2000 to 3000, and need detect the first private network VPC-a, second It, can at random will wherein three skies from the transmission label of multiple free time when private network VPC-b and third private network VPC-c Not busy transmission label 2000,2001 and 2002 is respectively allocated to the first private network VPC-a, the second private network VPC-b and the Three private network VPC-c, etc..
And management server may determine that in preset detection address set with the presence or absence of idle detection address, if depositing In idle detection address, then idle detection address can be obtained from detection address set, idle detection address is distributed The private network detected to needs.And idle detection address is obtained from preset detection address set, by idle detection Distribute to private network in address.
In step s 103, the physical address of destination server to be detected in private network is obtained.
Management server can privately owned net of the active where extracting the destination server that needs detect in probe requests thereby The mark of network, and server all or part of in the private network is obtained based on mark, destination server is obtained, target clothes Business device as needs the server detected, then obtains physical address of the destination server in private network.Either, it manages Server can be obtained after receiving detecting server and sending the address acquisition request for the mark for carrying private network based on the mark Take physical address of the destination server in private network.Wherein, which can be destination server in private network In IP address, for example, OverlayIP.
In some embodiments, the step of obtaining the physical address of destination server to be detected in private network can be with Including:
It receives detecting server and sends the address acquisition request for carrying mark;
All servers to be detected in private network are obtained according to mark, obtain destination server;
The server identification of preset list of physical addresses and destination server is obtained, and is inquired from list of physical addresses Physical address corresponding with each server identification.
Specifically, management server can receive the address acquisition that the detecting server in basic network is sent and ask It asks, the information such as the mark of private network where the destination server of detection in need can be carried in the acquisition request of the address, The mark of the private network can be management server when initiating to detect destination server, be sent to detecting server 's.At this point, management server can obtain preset list of physical addresses from database or memory, wherein this is physically The physical address of each server and each physical address and each service in private network can be stored in the list of location Mapping relations etc. between the mark of device.
Management server can obtain the corresponding server identification of all servers to be detected in private network, i.e. target The server identification of server, the server identification can be title or number of server etc., such as management server can be with Setting instruction is received, and instructs the server identification or management server that destination server to be detected is set based on setting The server identification etc. of destination server to be detected can be obtained from the corresponding server identification list of the private network.So Management server can traverse list of physical addresses afterwards, and object corresponding with each server identification is inquired from list of physical addresses Address is managed, the corresponding physical address of each server in private network, as object of the destination server in private network are obtained Manage address.
In step S104, it is located in basic network according to mark, detection address, physical address and transmission label, control Detecting server by the network equipment in basic network, send probe messages to destination server.
In some embodiments, facilities network is located at according to mark, detection address, physical address and transmission label, control Detecting server in network, can to the step of destination server transmission probe messages by the network equipment in basic network To include:
Detection address, physical address and transmission label are sent to the detecting server in basic network, and controlled Detecting server sends detection report based on detection address, physical address and transmission label to the network equipment in basic network Text;
Mark, detection address and transmission label are sent to the network equipment, and controls the network equipment and is receiving detection report Probe messages are transmitted to destination server by Wen Hou according to mark, detection address and transmission label.
After obtaining the information such as detection address, physical address and transmission label, management server can be by detection address, object Reason address and transmission label etc. are sent to the detecting server in basic network.
In some embodiments, detecting server includes multiple, and detection address, physical address and transmission label are sent May include to the step of detecting server in basic network:
Obtain the status information for each detecting server being located in basic network;
According to the status information of each detecting server, the priority of each detecting server is determined;
According to the priority of each detecting server, at least one detection service is filtered out from multiple detecting servers Device obtains target acquisition server;
Detection address, physical address and transmission label are sent to target acquisition server.
Specifically, when detecting server include one when, management server can directly will detect address, physical address and The information such as transmission label are sent to the detecting server.When detecting server includes multiple, management server can obtain respectively The priority of a detecting server, and the information such as detection address, physical address and transmission label are preferentially sent to priority height One or more detecting servers.
For example, the status information of each detecting server can be obtained, which may include detecting server Check figure, free memory are initiating to detect and do not initiate the information such as detection, then can be according to the state of each detecting server Information determines the priority of each detecting server, such as can be the various information setting weights in status information, state letter The total weight value of breath more high priority is higher, or carries out determining priority according to the free memory size of each detecting server, The bigger priority of free memory is more high.
At this point it is possible to according to the priority of each detecting server, filtered out from multiple detecting servers at least one Detecting server obtains target acquisition server, for example, can be carried out from high to low to each detecting server according to priority Sequence determines a detecting server of highest priority from multiple detecting servers, obtains a target acquisition server, Alternatively, determining that priority near preceding multiple detecting servers, obtains multiple target acquisition services from multiple detecting servers Device etc..After determining destination server, detection address, physical address and transmission label can be sent to target acquisition service Device.So that target acquisition server is based on detection address, physical address and transmits label to the network in basic network Equipment sends probe messages, for example, detecting server can receive the probe requests thereby of management server transmission, according to probe requests thereby In the mark of private network, detection cycle and detection agreement etc. generate probe messages, and marked according to detection address and transmission Label establish network interface card (i.e. vlan network interface cards), and send probe messages to the network equipment based on the network interface card and physical address.
In some embodiments, according to the status information of each detecting server, the excellent of each detecting server is determined The step of first grade may include:
According to the status information of each detecting server, idle detection service is filtered out from multiple detecting servers Device obtains candidate detecting server;Check figure and free memory, Yi Jiwei are extracted from the status information of candidate detecting server Weights are respectively set in check figure and free memory;It is determined according to check figure, free memory and the weights of each candidate detecting server each The priority of a detecting server.
For example, management server can according to the initiation of each detecting server detect or do not initiate detection etc. states Information filters out idle detecting server from multiple detecting servers, obtains candidate detecting server, and is detection clothes Weights are respectively set in each status information of business device, then according to the check figure of each candidate detecting server and its corresponding power Value and free memory and its corresponding weights, calculate the priority of each detecting server.
In some embodiments, when target acquisition server is multiple, detection address, physical address and transmission are marked Signing and issuing the step of giving target acquisition server may include:What configuration was formed by detecting address, physical address and transmission label Multipacket message;Multiple threads are called, and each group information is sent respectively to each target acquisition server by multiple threads.
When the destination server for needing to detect is multiple, multiple target acquisition servers can be detected parallel, Management server can configure multipacket message, be made of detection address, physical address and transmission label etc. per group information, example Such as, when needing to detect 3 destination servers, can configure the first group information is:Detect address 1, physical address 1 and transmission mark Label 1 etc.;Configuring the second group information is:Detect address 2, physical address 2 and transmission label 2 etc.;Configuring third group information is:Detection Address 3, physical address 3 and transmission label 3 etc.;Then multiple threads are called, and are sent out each group information respectively by multiple threads Each target acquisition server is given, for example, 3 threads are called, and by this 3 threads respectively by the first group information, second Group information and third group information are sent to target acquisition server 1, target acquisition server 23 and target acquisition server 3.
After mark, detection address and the transmission information such as label for obtaining private network, management server can will be privately owned Mark, detection address and transmission label of network etc. are sent to the network equipment in basic network.
In some embodiments, the network equipment includes multiple, identified to the network equipment transmission in basic network, Detection address may include with the step of transmission label:
Obtain the status information for each network equipment being located in basic network;
According to the status information of each network equipment, the priority of each network equipment is determined;
According to the priority of each network equipment, at least one network equipment is filtered out from multiple network equipments, is obtained Destination network device;
Mark, detection address and transmission label are sent to destination network device.
Specifically, when the network equipment includes one, management server can directly mark mark, detection address and transmission The information such as label are sent to the network equipment.When the network equipment includes multiple, management server can obtain each network equipment Priority, and mark, detection address and the transmission information such as label are preferentially sent to the high one or more networks of priority Equipment.
For example, the status information of each network equipment can be obtained, the status information may include the network equipment check figure, Free memory is initiating to detect and do not initiate the information such as detection, then can be according to the status information of each network equipment, really The priority of fixed each network equipment, such as can be the various information setting weights in status information, total power of status information It is higher to be worth more high priority, or carries out determining priority according to the free memory size of each network equipment, free memory Bigger priority is more high.Specifically, it can be filtered out from multiple network equipments according to the status information of each network equipment The idle network equipment, obtains candidate network equipment;It is extracted in check figure and residue from the status information of candidate network equipment It deposits, and weights is respectively set for check figure and free memory;According to check figure, free memory and the weights of each candidate network equipment Determine the priority of each network equipment.
At this point it is possible to according to the priority of each network equipment, at least one network is filtered out from multiple network equipments Equipment obtains destination network device, for example, can be ranked up from high to low to each network equipment according to priority, from more The network equipment that highest priority is determined in a network equipment, obtains a destination network device, alternatively, from multiple networks Determine that priority near preceding multiple network equipments, obtains multiple destination network devices etc. in equipment.Determining destination server Afterwards, mark, detection address and transmission label can be sent to destination network device.So that destination network device is receiving After probe messages, probe messages can be transmitted to destination server according to mark, detection address and transmission label, for example, net Network equipment can extract detection address and transmission label from probe messages, when the detection address and transmission that extract carrying are marked Label, with detection address that management server sends over and transmit label it is consistent when, can be according to the mark of private network from spy Extracts physical address in text is observed and predicted, probe messages are transmitted to by destination server according to mark and physical address.When needing to detect Destination server when being multiple, the network equipment can call multiple threads, and by multiple threads by each probe messages point It is not sent to each destination server.
In step S105, the result of detection that destination server is returned based on probe messages is received.
Destination server can parse probe messages after receiving probe messages, and based on the spy after parsing Text is observed and predicted to be then based on for example, physical address can be extracted from the probe messages to management server return result of detection Physical address passes sequentially through the network equipment and detecting server and returns to result of detection to management server.Obtaining result of detection Afterwards, management server can re-start detection by the detection cycle being arranged in probe requests thereby.It realizes and is based on VPC network rings Border detects the server in VPC networks by each server in basic network;Can specifically VPC networks not changed Under the premise of configuration and the network architecture etc., and without extended resources and adjustment framework, you can realize to VPC network servers Disparate networks state is detected, and network architecture suitability is strong, can be adapted to a variety of VPC network architectures, for example, general routing Encapsulation (Generic Routing Encapsulation, GRE) or network void seemingly change technology (Virtual Extensible LAN, VXLAN) etc..
In some embodiments, the step of receiving the result of detection that destination server is returned based on probe messages can wrap It includes:When destination server generates probe response packet in the preset time for receiving probe messages, receives destination server and return Normal first result of detection of destination server returned, the first result of detection are generated based on probe response packet;Work as destination server When not generating probe response packet in the preset time for receiving probe messages, the destination server that destination server returns is received The second abnormal result of detection.
Wherein, result of detection may include destination server is normal or destination server is abnormal etc., and destination server is normal Can be that destination server is in normal operating condition, or the connecting link between destination server is in and normally connect shape State or destination server can be used etc.;Destination server can be that destination server is in not operating status, Huo Zheyu extremely Connecting link between destination server, which is in, disconnects state destination server denied access or target It services unavailable etc..
Specifically, destination server can generate probe response packet after receiving probe messages in preset time, should Preset time can be flexibly arranged according to actual needs, and specific value is not construed as limiting here.When destination server is connecing When receiving generation probe response packet in the preset time of probe messages, illustrate that destination server is normal, at this point, server detection system System can receive normal first result of detection of destination server of destination server return, which can be mesh Server is marked to generate based on probe response packet.When destination server does not generate detection in the preset time for receiving probe messages When response bag, illustrate destination server exception, at this point, server detection system can receive the target clothes of destination server return Second result of detection of device exception of being engaged in, which can not generate probe response packet in destination server.
From the foregoing, it will be observed that the embodiment of the present invention can be obtained in basic network where carrying destination server to be detected The probe requests thereby of the mark of private network, and label is transmitted based on private network distribution is identified as, and distributed for private network Detection address in basic network obtains the physical address of destination server to be detected in private network;Then according to mark Know, detect address, physical address and transmission label, control is located at the detecting server in basic network by being located at basic network In the network equipment, send probe messages to destination server, receive the detection knot that is returned based on probe messages of destination server Fruit.The program can dispose management server, detecting server and network equipment etc. in the basic network outside private network The server detection system of composition (such as detects so that management server can flexibly allocate each server or equipment Server or the network equipment etc.) resource destination server is detected, improve the convenience detected to server And flexibility.
According to method described in above-described embodiment, citing is described in further detail below.
The present embodiment is by taking server detection system detects destination server as an example, server detection system deployment In basic network, the destination server detected is needed to be located in private network, which may include management Server, detecting server and network equipment etc., wherein management server, detecting server and proxy server are between any two It can be attached by cable network or wireless network.
It should be noted that in server detection system management server, detecting server and network equipment etc. quantity Can flexibly it be arranged according to actual needs, the present embodiment server detection set by institute's illustrated example for ease of description The type and quantity of server in system, should not be understood as the limit to the type and quantity of server in server detection system It is fixed, but no matter how many a and how many type server of all kinds of servers, the process of server detection is all similar, all may be used To be understood according to the example.
Referring to Fig. 5, Fig. 5 is the flow diagram of server detection method provided in an embodiment of the present invention.This method stream Journey may include:
201, the detection of the mark of the private network where management server acquisition carrying destination server to be detected is asked It asks.
Management server can obtain probe requests thereby at interval of preset time, or obtain and visit when receiving configuration-direct Request etc. is surveyed, specific acquisition opportunity can be flexibly arranged according to actual needs.
For example, management server can receive the configuration-direct of configurating terminal transmission, the configurating terminal in basic network Can be mobile phone, tablet computer, laptop and desktop computer etc..The configuration-direct can be used for configuring detection information, should Detection information may include the corresponding mark of the private network where needing the destination server that detects, detection cycle (such as 10 Second) and detection agreement (such as ICMP or Telnet) etc..It needs to visit at this point, management server can be obtained according to configuration-direct The corresponding mark of private network, detection cycle and detection agreement where the destination server of survey, then according to mark, detection week Phase and detection agreement etc. generate probe requests thereby.
202, management server is destination server distribution transmission label, and is distributed in basic network for private network Detection address.
After obtaining probe requests thereby, management server can according to be identified as private network distribution transmission label (such as Vlantag), at this point, extracting the mark of private network from probe requests thereby, can establish the mark of private network with Mapping relations between vlantag.And management server can be that private network distributes the detection address in basic network (for example, UnderLayIP).
For example, management server can be based on the privately owned net where mark from determining destination server in multiple private networks Network;Idle transmission label is obtained from preset transmission tally set, and obtains the free time from preset detection address set Detect address;Idle transmission label is distributed into private network, and private network is distributed into idle detection address.
When private network includes multiple private networks, and multiple private networks are previously provided with corresponding transmission tally set When, management server can from the mark for extracting the private network where needing the destination server that detects in probe requests thereby, The private network where destination server is determined according to the mark, it then can be from transmission tally set by idle transmission label Distribute to private network.
For example, when the transmission label of multiple free time includes 1000 to 1500, and need to detect the first private network VPC-a When, management server can be from multiple idle transmission labels at random by one of idle transmission label 1000, distribution To the first private network VPC-a;When multiple free time transmission label include 2000 to 3000, and need detect the first private network When VPC-a, the second private network VPC-b and third private network VPC-c, management server can be from the transmission mark of multiple free time At random by wherein three idle transmission labels 2000,2001 and 2002 in label, be respectively allocated to the first private network VPC-a, Second private network VPC-b and third private network VPC-c, etc..
203, management server will detect address and transmission label is sent to detecting server.
The information such as obtained detection address and transmission label can be sent to detecting server by management server.For example, As shown in figure 3, may include detecting server A, detecting server B and detecting server C etc. multiple in server detection system Detecting server can be at random or according to the excellent of each detecting server when management server gets a probe requests thereby First grade filters out detecting server A, and will detect the information such as address and transmission label, is sent to detecting server A.When management takes When business device gets 3 probe requests therebies, detection clothes can be filtered out at random or according to the priority of each detecting server Be engaged in device A, detecting server B and detecting server C, and by the corresponding detection address of each probe requests thereby and transmits the letters such as label Breath, is sent respectively to detecting server A, detecting server B and detecting server C etc..
204, detecting server establishes network interface card according to detection address and transmission label.
Detecting server, can be according to detection ground behind the detection address and transmission label for receiving management server transmission Location and transmission label establish network interface card (such as vlan network interface cards), can set the detection address to the IP address of the vlan network interface cards. For example, as shown in figure 3, the vlan network interface cards of detecting server A foundation are eth0.100, the vlan network interface cards that detecting server B is established For eth0.200, the vlan network interface cards that detecting server C is established are eth0.300 etc., and in Fig. 3, eth0 is physical network card.
205, management server will identify, detection address and transmission label are sent to the network equipment.
Management server can be in information such as mark, detection address and the transmission labels for obtaining private network, will be privately owned The information such as mark, detection address and the transmission label of network, are sent to the network equipment;Alternatively, management server can receive To the network equipment information acquisition request when, based on information acquisition request to the network equipment send private network mark, detection The information such as address and transmission label.
It should be noted that step 205 can also be to be executed between step 202 and step 203, or in step 203 With execution etc. between step 204, particular content is not construed as limiting here.
206, detecting server sends address to management server and obtains request.
207, management server is based on address and obtains request to detecting server transmission physical address.
Wherein, address obtains the mark that private network can be carried in request, and the mark of the private network can be pipe Reason server is sent to detecting server when getting probe requests thereby.Management server can be obtained in request from address and be carried The mark of private network is taken out, and inquires the physical address of each server in the private network according to the mark of private network, The physical address of destination server is obtained, for example, obtaining list of physical addresses from database or memory, is arranged from physical address Physical address corresponding with the server identification of each server in private network is inquired in table, obtains the physics of destination server Address (for example, OverlayIP), and the physical address sent to detecting server.
208, management server sends probe requests thereby to detecting server.
Management server can actively send the probe requests thereby to detecting server when getting probe requests thereby;Or Person is that management server can be taken to detection in the acquisition request for receiving detecting server transmission based on request is obtained The probe requests thereby etc. that business device is sent.
It should be noted that step 208 can be executed between step 201 and step 207, for example, step 208 can be with It is executed between step 201 and step 202, alternatively, step 208 can be with execution etc. between step 202 and step 203.
209, detecting server is based on probe requests thereby and generates probe messages.
Detecting server can extract destination server to be detected after receiving probe requests thereby from probe requests thereby The information such as mark, detection cycle and the detection agreement of the private network at place, and generate probe messages according to these information.
210, detecting server is based on network interface card and transmission label sends probe messages to the network equipment.
Transmission label, the detection information such as address and physical address can also be carried in the probe messages.For example, such as Fig. 3 Shown, detecting server A can be eth0.100 based on vlan network interface cards and vlantag is that vlan100 sends spy to the network equipment Text is observed and predicted, detecting server B can be eth0.200 based on vlan network interface cards and vlantag is that vlan200 is sent to the network equipment Probe messages, detecting server C can be eth0.300 based on vlan network interface cards and vlantag is that vlan300 is sent out to the network equipment Send probe messages etc..It should be noted that the network equipment in Fig. 3 may include multiple, do not show one by one herein.
It should be noted that when there are multiple network equipments, management server can obtain the excellent of each network equipment First grade, and determine that the higher one or more network equipments of priority obtain destination network device, then target is set for network Standby mark or address etc. are sent to detecting server, at this point, detecting server can be sent to the high network equipment of priority Probe messages.
211, the network equipment verifies detection address and transmission label.
Since the IP address of vlan network interface cards is detection address, the source address for the probe messages that the network equipment receives The as detection address.At this point, the network equipment can according to receive management server transmission detection address and transmission label, The detection address and transmission label that are carried in probe messages are verified, and source address is allowed to be detection address, and is carried The probe messages of vlantag pass through, i.e., when the detection address and transmission label carried in probe messages, are sent with management server Detection address with transmission label it is consistent when, illustrate verification pass through, otherwise, verification do not pass through.
212, after verification passes through, the network equipment is based on mark and physical address forwards probe messages to destination server.
For example, as shown in figure 3, may include in private network the first private network VPC-a, the second private network VPC-b, And multiple private networks such as third private network VPC-c, wherein may include multiple servers in each private network, for example, It may include server X1 to server Xn etc. in first private network VPC-a, may include clothes in the second private network VPC-b Be engaged in device Y1 to server Yn etc., may include server Z1 to server Zn etc. in third private network VPC-c, the value of n can To be flexibly arranged according to actual needs.
When need detect a private network in Servers-all (such as server X1 to server Xn in VPC-a) When, probe messages can be sent respectively to server X1 to server Xn by network equipment A;When need detect a private network In part server (such as server X1 and server X2 in VPC-a) when, network equipment A can distinguish probe messages Server X1 is sent to server X2;When the Servers-all (such as VPC-a and VPC-b) for needing 2 private networks of detection When, server X1 can be sent respectively to server Xn, Yi Jitong by network equipment B by the corresponding probe messages of VPC-a Network equipment C is crossed by the corresponding probe messages of VPC-b, is sent respectively to server Y1 to server Yn.
It should be noted that probe messages are during transmission, some changes may be sent, for example, such as Fig. 4 institutes Show, detecting server can carry detection with vlan messages based on the probe messages that probe requests thereby generates in the vlan messages Period, the detection information such as address and vlantag, after vlan messages are sent to the network equipment by detecting server, may pass through Multiple network equipments carry out transfer, for example, network equipment A can receive the vlan messages of detecting server transmission, and in vlan The mark that private network is added in message, obtains vxlan messages, vxlan messages is then sent to network equipment B, network is set Vlantag in vxlan messages can be deleted after receiving vxlan messages, obtain common message, last network is set by standby B Common message is sent to destination server by standby B;Etc..
213, destination server generates result of detection.
214, destination server returns to result of detection to the network equipment.
215, the network equipment returns to result of detection to detecting server.
216, detecting server returns to result of detection to management server.
Destination server can parse probe messages after receiving probe messages, and based on the spy after parsing It observes and predicts text and generates result of detection, and the path that can be transmitted along probe messages the network equipment and passes through successively and detects clothes Business device returns to result of detection to management server.
Wherein, result of detection may include destination server is normal or destination server is abnormal etc., and destination server is normal Can be that destination server is in normal operating condition, or the connecting link between destination server is in and normally connect shape State or destination server can be used etc.;Destination server can be that destination server is in not operating status, Huo Zheyu extremely Connecting link between destination server, which is in, disconnects state destination server denied access or target It services unavailable etc..
The embodiment of the present invention can detect the server in VPC networks by each server in basic network, Specifically can have VPC networks without occupying or expanding under the premise ofs not changing existing VPC network configurations and network architecture etc. Resource (for example, the resources such as server hardware or IP address) and adjustment framework, you can realize detecting function;And the network architecture is adapted to Property it is strong, a variety of VPC network architectures can be adapted to, for example, GRE or VXLAN etc., realize all kinds of nets to VPC network servers Network state is detected;Furthermore it is possible to the resource for flexibly allocating detecting server or network equipment etc. detects server, Improve the convenience detected to server and flexibility.
For ease of preferably implementing server detection method provided in an embodiment of the present invention, the embodiment of the present invention also provides one Device of the kind based on above-mentioned server detection method.Wherein the meaning of noun is identical with above-mentioned server detection method, specifically Realize that details can be with the explanation in reference method embodiment.
Referring to Fig. 6, Fig. 6 is the structural schematic diagram of server detection device provided in an embodiment of the present invention, the wherein clothes Business device detection device may include first acquisition unit 301, allocation unit 302, second acquisition unit 303, control unit 304 and Receiving unit 305 etc..
Wherein, it is taken in probe requests thereby to be detected for obtaining probe requests thereby in basic network first acquisition unit 301 Destination server where private network mark.
Wherein, wherein the mark of the private network where destination server to be detected can be carried in probe requests thereby, visited Survey period and the detection information such as agreement, which is used for unique identification private network, the detection agreement may include ICMP or Telnet etc..
First acquisition unit 301 can obtain probe requests thereby in basic network, for example, it may be at interval of preset time Probe requests thereby is obtained, or obtains probe requests thereby etc. when receiving configuration-direct, specific acquisition opportunity can be according to reality It needs flexibly to be arranged, be not construed as limiting here.
In some embodiments, first acquisition unit 301 specifically can be used for:Configuration is received in basic network to refer to It enables;The corresponding mark of private network, detection cycle and detection where determining destination server to be detected according to configuration-direct Agreement;Probe requests thereby is generated according to mark, detection cycle and detection agreement.
Specifically, first acquisition unit 301 can receive the configuration-direct of configurating terminal transmission in basic network, this is matched It can be the terminal configured to the corresponding detection information of configuration-direct to set terminal, the terminal can be mobile phone, tablet computer, Laptop and desktop computer etc..For the configuration-direct for configuring detection information, which may include needing to detect Destination server where the corresponding mark of private network, detection cycle and detection agreement etc..Therefore, management server can To determine the corresponding mark of private network, detection cycle and detection agreement according to the configuration-direct that receives, then according to mark, Detection cycle and detection agreement generate probe requests thereby.
Allocation unit 302 is identified as private network distribution transmission label for being based on, and is distributed in base for private network Detection address in plinth network.
After obtaining probe requests thereby, allocation unit 302 can transmit label, the transmission according to private network distribution is identified as Tag identifier private network, to be forwarded to probe messages, which can be the label of virtual LAN VLAN, It is properly termed as vlantag, or is vlanID etc..And allocation unit 302 can be that private network distributes in basic network Detection address, that is, distribute private network be mapped in the IP address in basic network, for example, UnderLayIP.
In some embodiments, allocation unit 302 specifically can be used for:It is determined from multiple private networks based on mark Private network where destination server;Obtain idle transmission label from preset transmission tally set, and from preset Idle detection address is obtained in detection address set;Idle transmission label is distributed into private network, and by idle spy Distribute to private network in geodetic location.
Wherein, private network VPC may include multiple, for example, the first private network VPC-a, the second private network VPC- B, and the n-th private network VPC-n etc., the value of the n can be flexibly arranged according to actual needs, be not construed as limiting here.
Allocation unit 302 is previously provided with transmission tally set and detection address set etc., and each transmit can wrap in tally set It may include multiple to include in multiple transmission labels, and each detection address set.Allocation unit 302 can be carried from probe requests thereby The mark of the private network where the destination server for needing to detect is taken out, and inquires corresponding mark in each private network, Then the private network according to mark where determining destination server in multiple private networks, such as when in some private network Mark it is consistent with the mark carried in probe requests thereby when, it may be determined that need the privately owned net where the destination server detected Network.At this point, allocation unit 302 can obtain idle transmission label from transmission tally set, idle transmission label is distributed The private network detected to needs.When there are the transmission labels of multiple free time, and need to detect multiple private networks, can obtain Take the number of private network, and random according to the number or idle transmission label is distributed to according to preset algorithm each privately owned Network.If there is no idle transmission label, it can be waited for, until there is idle transmission label.
And allocation unit 302 may determine that in preset detection address set with the presence or absence of idle detection address, if depositing In idle detection address, then idle detection address can be obtained from detection address set, idle detection address is distributed The private network detected to needs.And idle detection address is obtained from preset detection address set, by idle detection Distribute to private network in address.
Second acquisition unit 303, the physical address for obtaining destination server to be detected in private network.
Second acquisition unit 303 can private of the active where extracting the destination server that needs detect in probe requests thereby There is the mark of network, and obtain server all or part of in the private network based on mark, obtains destination server, the mesh Mark server as needs the server detected, then obtains physical address of the destination server in private network.Either, Second acquisition unit 303 can be after receiving detecting server and sending the address acquisition request for the mark for carrying private network, base Physical address of the destination server in private network is obtained in the mark.Wherein, which can be destination server IP address in private network, for example, OverlayIP.
In some embodiments, second acquisition unit 303 specifically can be used for:It receives detecting server and sends carrying mark The address of knowledge obtains request;All servers to be detected in private network are obtained according to mark, obtain destination server;It obtains The server identification of preset list of physical addresses and destination server, and inquiry and each server from list of physical addresses Identify corresponding physical address.
Control unit 304, for being located at basic network according to mark, detection address, physical address and transmission label, control In detecting server by the network equipment in basic network, send probe messages to destination server.
In some embodiments, as shown in fig. 7, control unit 304 may include the first transmission sub-unit 3041 and Two transmission sub-units 3042 etc., specifically can be as follows:
First transmission sub-unit 3041 is sent to for that will detect address, physical address and transmission label positioned at facilities network Detecting server in network, and control detecting server and be based on detection address, physical address and transmission label to positioned at facilities network The network equipment in network sends probe messages;
Second transmission sub-unit 3042 is sent to the network equipment for that will identify, detect address and transmission label, and controls Probe messages are transmitted to target clothes by the network equipment after receiving probe messages, according to mark, detection address and transmission label Business device.
In some embodiments, the first transmission sub-unit 3041 may include acquisition module, determining module, screening module It, specifically can be as follows with sending module etc.:
Acquisition module, the status information for obtaining each detecting server in basic network;
Determining module determines the priority of each detecting server for the status information according to each detecting server;
Screening module filters out at least for the priority according to each detecting server from multiple detecting servers One detecting server, obtains target acquisition server;
Sending module is sent to target acquisition server for that will detect address, physical address and transmission label.
Specifically, when detecting server includes one, the first transmission sub-unit 3041 can be directly by detection address, object The information such as reason address and transmission label are sent to the detecting server.When detecting server includes multiple, first sends son list Member 3041 can obtain the priority of each detecting server, and will preferentially detect the letters such as address, physical address and transmission label Breath is sent to the high one or more detecting servers of priority.
For example, the status information of each detecting server can be obtained by acquisition module, which may include visiting It surveys the check figure of server, free memory, initiating to detect and do not initiate the information such as detection, then determining module can be according to each The status information of a detecting server determines the priority of each detecting server, such as can be all kinds of in status information Weights are arranged in information, and the total weight value more high priority of status information is higher, or carry out the residue according to each detecting server Memory size determines that priority, the bigger priority of free memory are more high.
At this point, screening module can be filtered out according to the priority of each detecting server from multiple detecting servers At least one detecting server obtains target acquisition server, for example, can be taken from high to low to each detection according to priority Business device is ranked up, and a detecting server of highest priority is determined from multiple detecting servers, is obtained a target and is visited Server is surveyed, alternatively, determining that priority near preceding multiple detecting servers, obtains multiple targets from multiple detecting servers Detecting server etc..After determining destination server, sending module can send detection address, physical address and transmission label Give target acquisition server.So that target acquisition server is based on detection address, physical address and transmission label to positioned at base The network equipment in plinth network sends probe messages, for example, the detection that detecting server can receive management server transmission is asked It asks, probe messages is generated according to the mark of the private network in probe requests thereby, detection cycle and detection agreement etc., and according to spy Geodetic location and transmission label establish network interface card (i.e. vlan network interface cards), and are sent and detected to the network equipment based on the network interface card and physical address Message.
In some embodiments, determining module specifically can be used for:According to the status information of each detecting server, from Idle detecting server is filtered out in multiple detecting servers, obtains candidate detecting server;From candidate detecting server Check figure and free memory are extracted in status information, and weights are respectively set for check figure and free memory;According to each candidate Check figure, free memory and the weights of detecting server determine the priority of each detecting server.
In some embodiments, sending module specifically can be used for:Configuration is marked by detecting address, physical address and transmission Sign the multipacket message of composition;Multiple threads are called, and each group information is sent respectively to each target acquisition by multiple threads Server.
Wherein, when the destination server for needing to detect is multiple, multiple target acquisition servers can be carried out parallel Detection, sending module can configure multipacket message, be made of detection address, physical address and transmission label etc. per group information, Then multiple threads are called, and each group information is sent respectively to each target acquisition server by multiple threads.
In some embodiments, the second transmission sub-unit 3042 specifically can be used for:It obtains and is located in basic network The status information of each network equipment;According to the status information of each network equipment, the priority of each network equipment is determined;Root According to the priority of each network equipment, at least one network equipment is filtered out from multiple network equipments, is obtained target network and is set It is standby;Mark, detection address and transmission label are sent to destination network device.
Specifically, when the network equipment includes one, the second transmission sub-unit 3042 can be directly by mark, detection address It is sent to the network equipment with information such as transmission labels.When the network equipment includes multiple, the second transmission sub-unit 3042 can be with The priority of each network equipment is obtained, and the information such as mark, detection address and transmission label are preferentially sent to priority height One or more network equipments.
For example, the second transmission sub-unit 3042 can obtain the status information of each network equipment, which can be with Check figure, free memory including the network equipment are initiating to detect and do not initiate the information such as detection, then can be according to each net The status information of network equipment determines the priority of each network equipment, such as can be the various information setting in status information The total weight value more high priority of weights, status information is higher, or carries out true according to the free memory size of each network equipment Determine priority, the bigger priority of free memory is more high.Specifically, the second transmission sub-unit 3042 can be according to each network The status information of equipment filters out the idle network equipment from multiple network equipments, obtains candidate network equipment;From candidate net Check figure and free memory are extracted in the status information of network equipment, and weights are respectively set for check figure and free memory;According to Check figure, free memory and the weights of each candidate network equipment determine the priority of each network equipment.
At this point, the second transmission sub-unit 3042 can be according to the priority of each network equipment, from multiple network equipments Filter out at least one network equipment, obtain destination network device, for example, can according to priority from high to low to each network Equipment is ranked up, and a network equipment of highest priority is determined from multiple network equipments, a target network is obtained and sets It is standby, alternatively, determining that priority near preceding multiple network equipments, obtains multiple destination network devices from multiple network equipments Deng.After determining destination server, mark, detection address and transmission label can be sent to mesh by the second transmission sub-unit 3042 Mark the network equipment.So that destination network device after receiving probe messages, can be marked according to mark, detection address and transmission Probe messages are transmitted to destination server by label.
Receiving unit 305, the result of detection returned based on probe messages for receiving destination server.
Destination server can parse probe messages after receiving probe messages, and based on the spy after parsing It observes and predicts text and returns to result of detection to receiving unit 305, for example, physical address can be extracted from the probe messages, then base The network equipment and detecting server, which are passed sequentially through, in physical address returns to result of detection to receiving unit 305.It realizes and is based on VPC Network environment detects the server in VPC networks by each server in basic network;Can specifically it not change Under the premise of VPC network configurations and the network architecture etc., and without extended resources and adjustment framework, you can realize in VPC networks The disparate networks state of server is detected, and network architecture suitability is strong, can be adapted to a variety of VPC network architectures, for example, GRE or VXLAN etc..
Wherein, result of detection may include destination server is normal or destination server is abnormal etc., and destination server is normal Can be that destination server is in normal operating condition, or the connecting link between destination server is in and normally connect shape State or destination server can be used etc.;Destination server can be that destination server is in not operating status, Huo Zheyu extremely Connecting link between destination server, which is in, disconnects state destination server denied access or target It services unavailable etc..
From the foregoing, it will be observed that the embodiment of the present invention can be obtained in basic network by first acquisition unit 301 carry it is to be detected Destination server where private network mark probe requests thereby, and by allocation unit 302 be based on be identified as private network Distribution transmission label, and the detection address in basic network is distributed for private network, private is obtained by second acquisition unit 303 There is the physical address of destination server to be detected in network;Then by control unit 304 according to mark, detection address, physics Address and transmission label, control are located at the detecting server in basic network by the network equipment in basic network, to Destination server sends probe messages, and the result of detection that destination server is returned based on probe messages is received by receiving unit 305. The program can dispose the compositions such as management server, detecting server and the network equipment in the basic network outside private network Server detection system so that management server can flexibly allocate (such as the detection service of each server or equipment Device or the network equipment etc.) resource destination server is detected, improve the convenience detected to server and spirit Activity.
For ease of preferably implementing server detection method provided in an embodiment of the present invention, the embodiment of the present invention also provides one System of the kind based on above-mentioned server detection method.Wherein the meaning of noun is identical with above-mentioned server detection method, specifically Realize that details can be with the explanation in reference method embodiment.
Referring to Fig. 8, Fig. 8 is the structural schematic diagram of server detection system provided in an embodiment of the present invention, the clothes Business device detection system may include management server 401, detecting server 402 and network equipment 403 etc., management server 401, Detecting server 402 and the network equipment 403 are connected with each other between any two, and server detection system passes through management in basic network Server 401 receives the data for being transmitted to internal system, and is located at the mesh of private network by the network equipment 403 and exterior Mark server connection.
Wherein, it is taken in probe requests thereby to be detected for obtaining probe requests thereby in basic network management server 401 The mark of private network where destination server;Label is transmitted based on private network distribution is identified as, and is private network Distribute the detection address in basic network;Obtain the physical address of destination server to be detected in private network;It will detection Address, physical address and transmission label are sent to the detecting server 402 in basic network, and will mark, detection ground Location and transmission label are sent to the network equipment 403 in basic network.
Detecting server 402 is visited for being sent to the network equipment 403 based on detection address, physical address and transmission label Observe and predict text.
The network equipment 403, for that after receiving probe messages, will be detected according to mark, detection address and transmission label Message is transmitted to destination server;The result of detection that destination server is returned based on probe messages is received, and result of detection is led to It crosses detecting server 402 and is sent to management server 401.
In some embodiments, detecting server 402, the probe requests thereby for receiving the transmission of management server 401, base Probe messages are generated in probe requests thereby;Establish network interface card according to detection address and transmission label, and based on network interface card and physical address to The network equipment 403 sends probe messages.
In some embodiments, the network equipment 403, for after receiving probe messages, being extracted from probe messages Go out detection address and the transmission label of carrying;When the detection address and transmission label for extracting carrying, sent out with management server 401 The detection address brought with transmission label it is consistent when, according to mark from probe messages extracts physical address;According to mark and Probe messages are transmitted to destination server by physical address.
In some embodiments, management server 401, for obtaining each detecting server in basic network 402 status information;According to the status information of each detecting server 402, the priority of each detecting server 402 is determined; According to the priority of each detecting server 402, at least one detecting server is filtered out from multiple detecting servers 402 402, obtain target acquisition server 402;Detection address, physical address and transmission label are sent to target acquisition server 402。
In some embodiments, management server 401, for obtaining each network equipment in basic network 403 status information;According to the status information of each network equipment 403, the priority of each network equipment 403 is determined;According to The priority of each network equipment 403 filters out at least one network equipment 403 from multiple network equipments 403, obtains target The network equipment 403;Mark, detection address and transmission label are sent to destination network device 403.
In some embodiments, management server 401, for receiving configuration-direct in basic network;According to configuration The corresponding mark of private network, detection cycle and detection agreement where the determining destination server to be detected of instruction;According to mark Know, detection cycle and detection agreement generate probe requests thereby.
In some embodiments, private network includes multiple, management server 401, for being based on mark from multiple privates There is the private network determined in network where destination server;Idle transmission label is obtained from preset transmission tally set, And obtain idle detection address from preset detection address set;Idle transmission label is distributed into private network, with And private network is distributed into idle detection address.
In some embodiments, detecting server 402, for sending the address for carrying mark to management server 401 Obtain request.Management server 401, for when receiving address acquisition request, being obtained in private network and being owned according to mark Server to be detected, obtains destination server;The server identification of preset list of physical addresses and destination server is obtained, And physical address corresponding with each server identification is inquired from list of physical addresses.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, the detailed description above with respect to server detection method is may refer to, details are not described herein again.
From the foregoing, it will be observed that management server 401 can obtain probe requests thereby in basic network in the embodiment of the present invention, the spy The mark for taking the private network where destination server to be detected in request is surveyed, and is transmitted based on private network distribution is identified as Label, and the detection address in basic network is distributed for private network, then obtain target to be detected in private network The physical address of server, then detection address, physical address and transmission label are sent to the clothes of the detection in basic network Business device 402, and mark, detection address and transmission label are sent to the network equipment 403 in basic network.At this point, detection Server 402 can be sent based on detection address, physical address and transmission label to the network equipment 403 in basic network Probe messages;And the network equipment 403 can be after receiving probe messages, it will according to mark, detection address and transmission label Probe messages are transmitted to destination server, and receive the result of detection that destination server is returned based on probe messages.The program can To dispose the groups such as management server 401, detecting server 402 and the network equipment 403 in the basic network outside private network At server detection system so that management server 401 can flexibly allocate each server (such as detecting server 402 or the network equipment 403 etc.) resource destination server is detected, improve the convenience detected to server And flexibility.
The embodiment of the present invention also provides a kind of server, which can be the server in server detection system, For example, the structure of the management server, detecting server or the network equipment etc. in server detection system can be with the server Structure it is similar, as shown in figure 9, it illustrates the structural schematic diagrams of the server involved by the embodiment of the present invention, specifically:
The server may include one or processor 501, one or more meters of more than one processing core The components such as memory 502, power supply 503 and the input unit 504 of calculation machine readable storage medium storing program for executing.Those skilled in the art can manage It solves, server architecture does not constitute the restriction to server shown in Fig. 9, may include than illustrating more or fewer portions Part either combines certain components or different components arrangement.Wherein:
Processor 501 is the control centre of the server, utilizes each of various interfaces and the entire server of connection Part by running or execute the software program and/or module that are stored in memory 502, and calls and is stored in memory Data in 502, the various functions and processing data of execute server, to carry out integral monitoring to server.Optionally, locate Reason device 501 may include one or more processing cores;Preferably, processor 501 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 501.
Memory 502 can be used for storing software program and module, and processor 501 is stored in memory 502 by operation Software program and module, to perform various functions application and data processing.Memory 502 can include mainly storage journey Sequence area and storage data field, wherein storing program area can storage program area, the application program (ratio needed at least one function Such as sound-playing function, image player function) etc.;Storage data field can be stored uses created data according to server Deng.In addition, memory 502 may include high-speed random access memory, can also include nonvolatile memory, for example, at least One disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 502 can also include Memory Controller, to provide access of the processor 501 to memory 502.
Server further includes the power supply 503 powered to all parts, it is preferred that power supply 503 can pass through power management system System is logically contiguous with processor 501, to realize the work(such as management charging, electric discharge and power managed by power-supply management system Energy.Power supply 503 can also include one or more direct current or AC power, recharging system, power failure monitor electricity The random components such as road, power supply changeover device or inverter, power supply status indicator.
The server may also include input unit 504, which can be used for receiving the number or character letter of input Breath, and generation keyboard related with user setting and function control, mouse, operating lever, optics or trace ball signal are defeated Enter.
Although being not shown, server can also be including display unit etc., and details are not described herein.Specifically in the present embodiment, Processor 501 in server can according to following instruction, by the process of one or more application program is corresponding can It executes file to be loaded into memory 502, and the application program being stored in memory 502 is run by processor 501, to Realize various functions, it is as follows:
When the server is management server, probe requests thereby can be obtained in basic network, is taken in the probe requests thereby The mark of private network where destination server to be detected;Label, Yi Jiwei are transmitted based on private network distribution is identified as Private network distributes the detection address in basic network;Obtain destination server to be detected in private network physically Location;Pass through position according to mark, detection address, physical address and transmission label, the detecting server that control is located in basic network The network equipment in basic network sends probe messages to destination server;Destination server is received to return based on probe messages The result of detection returned.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, the detailed description above with respect to server detection method is may refer to, details are not described herein again.
From the foregoing, it will be observed that the embodiment of the present invention can be obtained in basic network where carrying destination server to be detected The probe requests thereby of the mark of private network, and label is transmitted based on private network distribution is identified as, and distributed for private network Detection address in basic network obtains the physical address of destination server to be detected in private network;Then according to mark Know, detect address, physical address and transmission label, control is located at the detecting server in basic network by being located at basic network In the network equipment, send probe messages to destination server, receive the detection knot that is returned based on probe messages of destination server Fruit.The program can dispose management server, detecting server and network equipment etc. in the basic network outside private network The server detection system of composition (such as detects so that management server can flexibly allocate each server or equipment Server or the network equipment etc.) resource destination server is detected, improve the convenience detected to server And flexibility.
It will appreciated by the skilled person that all or part of step in the various methods of above-described embodiment can be with It is completed by instructing, or controls relevant hardware by instructing and complete, which can be stored in one and computer-readable deposit In storage media, and is loaded and executed by processor.
For this purpose, the embodiment of the present invention provides a kind of storage medium, wherein being stored with a plurality of instruction, which can be handled Device is loaded, to execute the step in any server detection method that the embodiment of the present invention is provided.For example, the instruction Following steps can be executed:
Probe requests thereby is obtained in basic network, and the privately owned net where destination server to be detected is taken in the probe requests thereby The mark of network;Label is transmitted based on private network distribution is identified as, and the detection in basic network is distributed for private network Address;Obtain the physical address of destination server to be detected in private network;According to mark, detection address, physical address and Label is transmitted, control is located at the detecting server in basic network by the network equipment in basic network, is taken to target Business device sends probe messages;Receive the result of detection that destination server is returned based on probe messages.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
Wherein, which may include:Read-only memory (ROM, Read Only Memory), random access memory Body (RAM, Random Access Memory), disk or CD etc..
By the instruction stored in the storage medium, any server that the embodiment of the present invention is provided can be executed Step in detection method, it is thereby achieved that any server detection method institute that the embodiment of the present invention is provided can be real Existing advantageous effect refers to the embodiment of front, and details are not described herein.
A kind of server detection method, device, system and storage medium is provided for the embodiments of the invention above to carry out It is discussed in detail, principle and implementation of the present invention are described for specific case used herein, above example Explanation be merely used to help understand the present invention method and its core concept;Meanwhile for those skilled in the art, foundation The thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification is not It is interpreted as limitation of the present invention.

Claims (19)

1. a kind of server detection method, which is characterized in that the method is applied to management server, the method includes:
Probe requests thereby is obtained in basic network, and the private network where destination server to be detected is taken in the probe requests thereby Mark;
It is identified as the private network distribution transmission label based on described, and is distributed in basic network for the private network Detection address;
Obtain the physical address of destination server to be detected in the private network;
According to the mark, detection address, physical address and transmission label, it is logical that control is located at the detecting server in basic network The network equipment in basic network is crossed, probe messages are sent to the destination server;
Receive the result of detection that the destination server is returned based on the probe messages.
2. server detection method according to claim 1, which is characterized in that it is described according to it is described mark, detection address, Physical address and transmission label, the detecting server that control is located in basic network are set by the network in basic network It is standby, include to the step of destination server transmission probe messages:
The detection address, physical address and transmission label are sent to the detecting server in basic network, and controlled The detecting server is sent out based on the detection address, physical address and transmission label to the network equipment in basic network Send probe messages;
The mark, detection address and transmission label are sent to the network equipment, and controls the network equipment and is receiving To after the probe messages, the probe messages are transmitted to by the target according to the mark, detection address and transmission label Server.
3. server detection method according to claim 2, which is characterized in that the detecting server includes multiple, institute The step of detection address, physical address and transmission label are sent to the detecting server in basic network is stated to wrap It includes:
Obtain the status information for each detecting server being located in basic network;
According to the status information of each detecting server, the priority of each detecting server is determined;
According to the priority of each detecting server, at least one detection service is filtered out from the multiple detecting server Device obtains target acquisition server;
The detection address, physical address and transmission label are sent to the target acquisition server.
4. server detection method according to claim 3, which is characterized in that described according to each detecting server Status information, the step of priority for determining each detecting server includes:
According to the status information of each detecting server, idle detection clothes are filtered out from the multiple detecting server Business device, obtains candidate detecting server;
Check figure and free memory are extracted from the status information of the candidate detecting server, and is the check figure and residue Weights are respectively set in memory;
The preferential of each detecting server is determined according to the check figure, free memory and the weights of each candidate detecting server Grade.
5. server detection method according to claim 3, which is characterized in that when target acquisition server is multiple, It is described by the detection address, physical address and transmission label be sent to the target acquisition server the step of include:
The multipacket message that configuration is made of the detection address, physical address and transmission label;
Multiple threads are called, and each group information is sent respectively to by each target acquisition server by the multiple thread.
6. server detection method according to claim 2, which is characterized in that the network equipment include it is multiple, it is described By it is described mark, detection address and transmission label be sent to the network equipment the step of include:
Obtain the status information for each network equipment being located in basic network;
According to the status information of each network equipment, the priority of each network equipment is determined;
According to the priority of each network equipment, at least one network equipment is filtered out from the multiple network equipment, is obtained Destination network device;
The mark, detection address and transmission label are sent to the destination network device.
7. server detection method according to any one of claims 1 to 6, which is characterized in that described in basic network Obtain probe requests thereby the step of include:
Configuration-direct is received in basic network;
The corresponding mark of private network where determining destination server to be detected according to the configuration-direct, detection cycle and Detect agreement;
Probe requests thereby is generated according to the mark, detection cycle and detection agreement.
8. server detection method according to any one of claims 1 to 6, which is characterized in that the private network includes It is multiple, it is described to be identified as the private network distribution transmission label based on described, and distributed on basis for the private network The step of detection address in network includes:
Based on private network of the mark where determining the destination server in multiple private networks;
Idle transmission label is obtained from preset transmission tally set, and obtains the free time from preset detection address set Detect address;
The transmission label of the free time is distributed into the private network, and the detection address of the free time is distributed to described Private network.
9. server detection method according to any one of claims 1 to 6, which is characterized in that the acquisition is described privately owned The step of physical address of destination server to be detected, includes in network:
It receives the detecting server and sends the address acquisition request for carrying the mark;
All servers to be detected in the private network are obtained according to the mark, obtain destination server;
The server identification of preset list of physical addresses and destination server is obtained, and is inquired from the list of physical addresses Physical address corresponding with each server identification.
10. a kind of server detection device, which is characterized in that including:
First acquisition unit takes target clothes to be detected for obtaining probe requests thereby in basic network in the probe requests thereby The mark of private network where business device;
Allocation unit, for be based on it is described be identified as the private network distribution transmission label, and be the private network point Fit over the detection address in basic network;
Second acquisition unit, the physical address for obtaining destination server to be detected in the private network;
Control unit, for being located in basic network according to the mark, detection address, physical address and transmission label, control Detecting server by the network equipment in basic network, send probe messages to the destination server;
Receiving unit, the result of detection returned based on the probe messages for receiving the destination server.
11. a kind of server detection system, which is characterized in that the server detection system includes management server, detection clothes Business device and the network equipment, the management server, detecting server and the network equipment are connected with each other between any two, the server Detection system receives the data for being transmitted to internal system in basic network by the management server, and passes through the network The destination server that equipment is located at private network with exterior is connect, wherein
The management server takes target to be detected for obtaining probe requests thereby in basic network in the probe requests thereby The mark of private network where server;
It is identified as the private network distribution transmission label based on described, and is distributed in basic network for the private network Detection address;
Obtain the physical address of destination server to be detected in the private network;
The detection address, physical address and transmission label are sent to the detecting server in basic network, and will The mark, detection address and transmission label are sent to the network equipment in basic network;
The detecting server is detected for being sent to the network equipment based on the detection address, physical address and transmission label Message;
The network equipment, for after receiving the probe messages, being incited somebody to action according to the mark, detection address and transmission label The probe messages are transmitted to the destination server;
The result of detection that destination server is returned based on the probe messages is received, and the result of detection is passed through into the detection Server is sent to the management server.
12. server detection system according to claim 11, which is characterized in that the detecting server, for receiving The probe requests thereby that the management server is sent generates probe messages based on the probe requests thereby;
Network interface card is established according to the detection address and transmission label, and is sent to the network equipment based on the network interface card and physical address The probe messages.
13. server detection system according to claim 11, which is characterized in that the network equipment, for receiving To after the probe messages, detection address and the transmission label of carrying are extracted from the probe messages;
When the detection address and transmission label for extracting carrying, the detection address sended over management server and transmission label When consistent, the physical address is extracted from the probe messages according to the mark;
The probe messages are transmitted to the destination server according to the mark and physical address.
14. server detection system according to claim 11, which is characterized in that the management server, for obtaining The status information of each detecting server in basic network;
According to the status information of each detecting server, the priority of each detecting server is determined;
According to the priority of each detecting server, at least one detection service is filtered out from the multiple detecting server Device obtains target acquisition server;
The detection address, physical address and transmission label are sent to the target acquisition server.
15. server detection system according to claim 11, which is characterized in that the management server, for obtaining The status information of each network equipment in basic network;
According to the status information of each network equipment, the priority of each network equipment is determined;
According to the priority of each network equipment, at least one network equipment is filtered out from the multiple network equipment, is obtained Destination network device;
The mark, detection address and transmission label are sent to the destination network device.
16. according to claim 11 to 15 any one of them server detection system, which is characterized in that the management service Device, for receiving configuration-direct in basic network;
The corresponding mark of private network where determining destination server to be detected according to the configuration-direct, detection cycle and Detect agreement;
Probe requests thereby is generated according to the mark, detection cycle and detection agreement.
17. according to claim 11 to 15 any one of them server detection system, which is characterized in that the private network packet Multiple, the management server is included, for determining the destination server place from multiple private networks based on the mark Private network;
Idle transmission label is obtained from preset transmission tally set, and obtains the free time from preset detection address set Detect address;
The transmission label of the free time is distributed into the private network, and the detection address of the free time is distributed to described Private network.
18. according to claim 11 to 15 any one of them server detection system, which is characterized in that the detection service Device, for sending the address acquisition request for carrying the mark to the management server;
The management server, for when receiving described address acquisition request, the privately owned net to be obtained according to the mark All servers to be detected, obtain destination server in network;
The server identification of preset list of physical addresses and destination server is obtained, and is inquired from the list of physical addresses Physical address corresponding with each server identification.
19. a kind of storage medium, which is characterized in that the storage medium is stored with a plurality of instruction, and described instruction is suitable for processor It is loaded, the step in 1 to 9 any one of them server detection method is required with perform claim.
CN201810563883.5A 2018-06-04 2018-06-04 Server detection method, device, system and storage medium Active CN108777640B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810563883.5A CN108777640B (en) 2018-06-04 2018-06-04 Server detection method, device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810563883.5A CN108777640B (en) 2018-06-04 2018-06-04 Server detection method, device, system and storage medium

Publications (2)

Publication Number Publication Date
CN108777640A true CN108777640A (en) 2018-11-09
CN108777640B CN108777640B (en) 2020-08-07

Family

ID=64024683

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810563883.5A Active CN108777640B (en) 2018-06-04 2018-06-04 Server detection method, device, system and storage medium

Country Status (1)

Country Link
CN (1) CN108777640B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109818782A (en) * 2018-12-31 2019-05-28 南京红柑桔信息技术有限公司 The method that a kind of pair of server is classified
CN110784337A (en) * 2019-09-26 2020-02-11 平安科技(深圳)有限公司 Cloud service quality monitoring method and related product
CN111385203A (en) * 2020-03-19 2020-07-07 上海东普信息科技有限公司 Data transmission method, device and equipment based on hybrid cloud and storage medium
CN111385260A (en) * 2018-12-28 2020-07-07 广州市百果园信息技术有限公司 Port detection method, system, server and storage medium
WO2021056715A1 (en) * 2019-09-26 2021-04-01 平安科技(深圳)有限公司 Server proxy monitoring method and related product
CN113472900A (en) * 2021-09-01 2021-10-01 阿里云计算有限公司 Message processing method, device, storage medium and computer program product
CN113784408A (en) * 2021-11-11 2021-12-10 荣耀终端有限公司 Network switching method and electronic equipment
CN114079620A (en) * 2020-08-06 2022-02-22 北京国基科技股份有限公司 Method and device for determining online state of network equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8064356B1 (en) * 2005-01-11 2011-11-22 Verizon Services Corp. System and methods for measuring network performance
CN102437931A (en) * 2011-12-29 2012-05-02 华为技术有限公司 Detection method and device of service path
US9503463B2 (en) * 2012-05-14 2016-11-22 Zimperium, Inc. Detection of threats to networks, based on geographic location

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8064356B1 (en) * 2005-01-11 2011-11-22 Verizon Services Corp. System and methods for measuring network performance
CN102437931A (en) * 2011-12-29 2012-05-02 华为技术有限公司 Detection method and device of service path
US9503463B2 (en) * 2012-05-14 2016-11-22 Zimperium, Inc. Detection of threats to networks, based on geographic location

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111385260A (en) * 2018-12-28 2020-07-07 广州市百果园信息技术有限公司 Port detection method, system, server and storage medium
CN111385260B (en) * 2018-12-28 2022-01-25 广州市百果园信息技术有限公司 Port detection method, system, server and storage medium
CN109818782A (en) * 2018-12-31 2019-05-28 南京红柑桔信息技术有限公司 The method that a kind of pair of server is classified
CN110784337A (en) * 2019-09-26 2020-02-11 平安科技(深圳)有限公司 Cloud service quality monitoring method and related product
WO2021056716A1 (en) * 2019-09-26 2021-04-01 平安科技(深圳)有限公司 Cloud service quality monitoring method, and related product
WO2021056715A1 (en) * 2019-09-26 2021-04-01 平安科技(深圳)有限公司 Server proxy monitoring method and related product
CN110784337B (en) * 2019-09-26 2023-08-22 平安科技(深圳)有限公司 Cloud service quality monitoring method and related products
CN111385203A (en) * 2020-03-19 2020-07-07 上海东普信息科技有限公司 Data transmission method, device and equipment based on hybrid cloud and storage medium
CN114079620A (en) * 2020-08-06 2022-02-22 北京国基科技股份有限公司 Method and device for determining online state of network equipment
CN114079620B (en) * 2020-08-06 2024-02-27 北京国基科技股份有限公司 Method and device for determining online state of network equipment
CN113472900A (en) * 2021-09-01 2021-10-01 阿里云计算有限公司 Message processing method, device, storage medium and computer program product
CN113784408A (en) * 2021-11-11 2021-12-10 荣耀终端有限公司 Network switching method and electronic equipment

Also Published As

Publication number Publication date
CN108777640B (en) 2020-08-07

Similar Documents

Publication Publication Date Title
CN108777640A (en) A kind of server detection method, device, system and storage medium
CN104243265B (en) A kind of gateway control method, apparatus and system based on virtual machine (vm) migration
US10250508B2 (en) Load balancing method and system
CN102105865B (en) Method and system for power management in a virtual machine environment without disrupting network connectivity
CN103475722B (en) A kind of business cooperation platform realizes system
CN102334111B (en) Providing logical networking functionality for managed computer networks
CN104363159B (en) A kind of opening virtual network constructing system and method based on software defined network
CN105409172B (en) Logical switch
CN103491129B (en) A kind of service node collocation method, pool of service nodes Register and system
CN102473114B (en) Dynamically migrating computer networks
CN108475251A (en) It is put for the virtual network of container, heat exchange, pyrocondensation and disaster recovery
CN103559075B (en) A kind of data transmission method, device and system and memory device
CN102843286B (en) Implementation method, and system of virtual routers
CN107278359A (en) The method of Message processing, main frame and system in cloud computing system
CN103685608B (en) A kind of method and device for automatically configuring secure virtual machine IP address
CN110113441A (en) Realize computer equipment, the system and method for load balancing
CN108632067A (en) Disaster tolerance dispositions method, apparatus and system
CN104780088A (en) Service message transmission method and equipment
CN105554015A (en) Management network and method for multi-tenant container cloud computing system
CN102457439A (en) Virtual switching system and method of cloud computing system
CN104584484A (en) System and method providing policy based data center network automation
CN103368768A (en) Automatically scaled network overlay with heuristic monitoring in hybrid cloud environment
CN106105162A (en) Load equalizer based on switch
CN106034077A (en) Dynamic route configuration method, device and system thereof
CN107959614A (en) A kind of self-defined network-building method of multi-tenant based on network namespace, system

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