CN113708984B - Network quality detection method, device, computing equipment and computer storage medium - Google Patents

Network quality detection method, device, computing equipment and computer storage medium Download PDF

Info

Publication number
CN113708984B
CN113708984B CN202010432036.2A CN202010432036A CN113708984B CN 113708984 B CN113708984 B CN 113708984B CN 202010432036 A CN202010432036 A CN 202010432036A CN 113708984 B CN113708984 B CN 113708984B
Authority
CN
China
Prior art keywords
target
address
subnet
host
surviving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010432036.2A
Other languages
Chinese (zh)
Other versions
CN113708984A (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.)
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang 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 China Mobile Communications Group Co Ltd, China Mobile Group Zhejiang Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202010432036.2A priority Critical patent/CN113708984B/en
Publication of CN113708984A publication Critical patent/CN113708984A/en
Application granted granted Critical
Publication of CN113708984B publication Critical patent/CN113708984B/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
    • 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/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays

Abstract

The embodiment of the invention relates to the technical field of Internet, and discloses a network quality detection method, a device, a computing device and a computer storage medium, wherein the method comprises the following steps: acquiring address information and survival host information of each port in a network; determining the IP address of the surviving host in each subnet according to the address information and the surviving host information; transmitting a corresponding detection data packet to an IP address of each target survival host in target subnets so that each target survival host responds according to the detection data packet, wherein each target survival host is any one of the subnets; acquiring the response time of each target survival host; and determining a network quality index of the target subnet according to the response time. Through the mode, the embodiment of the invention realizes the visual determination of the network quality according to the network quality index.

Description

Network quality detection method, device, computing equipment and computer storage medium
Technical Field
The embodiment of the invention relates to the technical field of Internet, in particular to a network quality detection method, a network quality detection device, a computing device and a computer storage medium.
Background
In a network scene of the data center, multiple manufacturers, multiple types, multiple versions and multiple protocol networking are adopted, data are closed, equipment is autonomous, and the state of the next hop can be perceived only through different protocol messages at the equipment control end.
At present, quality detection is performed on a network mainly based on time sequence network element indexes of network equipment, such as packet rate, wrong packet number, link capacity and the like, the network is comprehensively evaluated, the access quality of source-destination IP is predicted according to an evaluation model, and alarm information is output.
The above method focuses more on the capacity and fault tolerance dimension of the network, and cannot directly perceive the network quality.
Disclosure of Invention
In view of the above problems, embodiments of the present invention provide a method, an apparatus, a computing device, and a computer storage medium for detecting network quality, which are used to solve the problem in the prior art that network quality cannot be directly perceived.
According to an aspect of an embodiment of the present invention, there is provided a method for detecting network quality, the method including:
acquiring address information and survival host information of each port in a network;
determining the IP address of the surviving host in each subnet according to the address information and the surviving host information;
transmitting a corresponding detection data packet to an IP address of each target survival host in target subnets so that each target survival host responds according to the detection data packet, wherein each target survival host is any one of the subnets;
acquiring the response time of each target survival host;
and determining a network quality index of the target subnet according to the response time.
In an alternative manner, the address information includes a port IP address and a corresponding mask, and the surviving host information includes an IP address of the surviving host;
the determining the IP address of the surviving host in each subnet according to the address information and the surviving host information includes:
determining available IP addresses in each subnet according to the port IP addresses and the corresponding masks;
calculating the difference between the available IP address in each subnet and the port IP address in each subnet to obtain the IP address of the available host in each subnet;
and determining the IP addresses of the available hosts in each subnet and the IP addresses of the surviving hosts which are the same to each other to obtain the IP addresses of the surviving hosts in each subnet.
In an alternative manner, the determining the available IP address in each subnet according to the port IP address and the corresponding mask includes:
determining a network address and a broadcast address of a subnet where each port IP address is located according to the port IP address and the corresponding mask;
and taking the address between the network address of each subnet and the broadcast address as the available IP address of each subnet.
In an alternative manner, the sending the corresponding probe data packet to the IP address of each target surviving host in the target subnet, so that each target surviving host responds according to the probe data packet, includes:
and evenly distributing the target survival hosts to a plurality of detection processes, wherein each detection process respectively sends corresponding detection data packets to the target survival hosts in the detection process, so that each target survival host responds according to the detection data packets.
In an alternative manner, each probing process includes a plurality of threads, and the plurality of threads send corresponding probing data packets to the target surviving host in the probing process, and simultaneously receive response data packets of the target surviving host of the threads.
In an alternative manner, the number of corresponding probe packets sent to each target surviving host in the target subnetwork is at least two;
the obtaining the response time of each target survival host includes:
acquiring a first response time of each target survival host for each detection data packet;
and calculating the average response time of each target survival host according to the first response time, and taking the average response time as the response time of the target survival host.
In an optional manner, the network quality indicator includes an average delay time and a survival rate, and the determining the network quality indicator of the target subnet according to the response time includes:
determining a first number of normally-responded target surviving hosts in the target subnet and a second number of delayed-response target surviving hosts according to the response time, wherein the normally-responded target surviving hosts are target surviving hosts with response time within a preset time range, and the delayed-response target surviving hosts are target surviving hosts with response time exceeding the preset time range;
determining the delay time of each delay response target survival host;
and determining the average delay time and the survival rate of the target subnet according to the first quantity, the second quantity and the delay time.
In an alternative manner, the determining the average delay time and the survival rate of the target subnet according to the first number, the second number and the delay time includes:
calculating the delay time sum of all target survival hosts with delay response;
dividing the delay time sum by the first number to obtain an average delay time of the target subnet;
calculating a sum of the first number and the second number;
and calculating the ratio between the first quantity and the sum of the quantities to obtain the survival rate of the target subnet.
According to another aspect of the embodiment of the present invention, there is provided a network quality detection apparatus, including:
the first acquisition module is used for acquiring address information and survival host information of each port in the network;
the first determining module is used for determining the IP address of the surviving host in each subnet according to the address information and the surviving host information;
the sending module is used for sending corresponding detection data packets to the IP address of each target survival host in the target subnetwork so that each target survival host responds according to the detection data packets, and the target subnetwork is any one subnetwork in the subnetworks;
the second acquisition module is used for acquiring the response time of each target survival host;
and the second determining module is used for determining the network quality index of the target subnet according to the response time.
According to another aspect of an embodiment of the present invention, there is provided a computing device including: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the network quality detection method.
According to yet another aspect of embodiments of the present invention, there is provided a computer readable storage medium having stored therein at least one executable instruction for causing a computing apparatus/device to perform a network quality detection method as described above.
The embodiment of the invention determines the IP address of the surviving host in each subnet based on all address information and surviving host information in the network, detects the target surviving host in the target subnet, determines the target subnet network quality index according to the response time of each target surviving host, can intuitively sense the network quality of the target subnet according to the network quality index, and is beneficial to carrying out abnormal positioning according to the network quality index. In addition, the network quality detection method provided by the embodiment of the invention does not need manual participation, can automatically realize network quality detection, saves manpower resource cost and improves network detection efficiency.
The foregoing description is only an overview of the technical solutions of the embodiments of the present invention, and may be implemented according to the content of the specification, so that the technical means of the embodiments of the present invention can be more clearly understood, and the following specific embodiments of the present invention are given for clarity and understanding.
Drawings
The drawings are only for purposes of illustrating embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
fig. 1 is a schematic flow chart of a network quality detection method according to an embodiment of the present invention;
fig. 2 is a flowchart showing a determination of an IP address of a surviving host in each subnet in a network quality detection method according to the embodiments of the present invention;
fig. 3 is a functional block diagram of a network quality detection apparatus according to an embodiment of the present invention;
FIG. 4 illustrates a schematic diagram of a computing device provided by an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be limited to the embodiments set forth herein.
Fig. 1 shows a flowchart of a method for detecting network quality according to an embodiment of the present invention. As shown in fig. 1, the method comprises the steps of:
step 110: and acquiring address information and survival host information of each port in the network.
The execution subject of the embodiment of the invention is a detection server, which can be implemented as a physical machine, a virtual machine, a container, etc. The probe server obtains information related to network communication through a simple network management protocol (simple network management protocol, SNMP). The SNMP protocol is a protocol specifically designed for management in an IP network, and each manageable network device supports the protocol. Under this protocol, any information related to objects, concepts, etc. in the network is uniquely identified by an object identifier (object identifier, OID), i.e. each OID corresponds to a category of information in the network, e.g. an IP address of a port, an IP address of a host, etc. Table 1 shows information represented by partial OIDs, as shown in table 1, the network information includes the port IP address, the port mask, the port description, the IP address in the address resolution protocol (address resolution protocol, ARP) cache table, and the corresponding MAC address information, each of which corresponds to a unique OID, so that the category of the network information can be determined according to the OID. In table 1, the port mask indicates a subnet mask of a subnet to which the port belongs. The port IP address and port mask cannot exist separately and must be used simultaneously. That is, one port IIP address necessarily corresponds to one port mask. The IP address and the MAC address in the ARP cache table represent the IP address and the corresponding MAC address of the surviving host to which each port is connected, respectively. The surviving host represents a host with a state of startup running. The ARP cache table is periodically updated, and correspondingly, the IP address of the surviving host is also periodically updated.
TABLE 1
OID Information processing system
.1.3.6.1.2.1.4.20.1.2 Port IP address
.1.3.6.1.2.1.4.20.1.3 Port mask
.1.3.6.1.2.1.2.2.1.2 Port description
.1.3.6.1.2.1.4.22.1.3 IP address of ARP cache table
.1.3.6.1.2.1.4.22.1.2 MAC address of ARP cache table
Address information and surviving host information are selected from the acquired network information according to the information represented by each OID. The address information includes the IP address of each port and the corresponding mask. The surviving host information comprises the IP address of surviving hosts in the network.
Step 120: and determining the IP address of the surviving host in each subnet according to the address information and the surviving host information.
In this step, all subnets in the network may be determined according to the IP addresses of the ports in the address information and the corresponding masks. The IP addresses of surviving hosts in each subnet may be determined based on the IP addresses of all surviving hosts in the network. Specifically, determining the IP address of the surviving host in each subnet specifically includes the following steps as shown in fig. 2:
step 210: the available IP addresses in each subnet are determined from the port IP address and the corresponding mask.
In this step, the IP address available in one subnet refers to the IP address after all IP addresses in the subnet have removed the network address and the broadcast address. And converting the IP addresses of the ports and the corresponding port masks into binary back phases, wherein the phase-phase results are the network addresses of the subnets where the ports are located. And converting the port mask into binary, and then inverting, wherein the inverting result is the phase or the result of the port IP address, namely the broadcast address of the subnet where the port is located. For example, the port IP address is 192.168.1.0, and the corresponding mask is 255.255.255.0, and after the port IP address and the mask are converted into binary, the network address is 192.168.1.0, and the broadcast address is 192.168.1.0. The port IP addresses with the same network address and broadcast address are located in the same subnet, so that all port IP addresses in the network are divided into multiple subnets. All addresses between the network address and the broadcast address in each subnet are taken as the available IP addresses in that subnet.
Step 220: and calculating the difference between the available IP addresses in each subnet and the port IP addresses in each subnet to obtain the IP addresses of the available hosts in each subnet.
In this step, the IP addresses available in each subnet include the port IP address and the IP address of the available host. And removing the port IP address from the available IP address to obtain the IP address of the available host in each subnet. Wherein the IP addresses of the available hosts are all IP addresses that can be assigned to the hosts.
Step 230: and determining the IP addresses of the available hosts in each subnet and the IP addresses of the surviving hosts which are the same to obtain the IP addresses of the surviving hosts in each subnet.
Wherein the IP addresses of surviving hosts comprise the IP addresses of surviving hosts in all subnets in the network. The IP addresses of the hosts available in each subnet include the IP addresses of surviving hosts and the IP addresses of other hosts. Wherein the IP addresses of the other hosts include IP addresses of non-surviving hosts and IP addresses not assigned to hosts. Wherein, the IP address of the non-surviving host represents the IP address of the offline state, such as the IP address of the shutdown state. And the IP address of the available host in each subnet and the IP address of the surviving host are intersected to obtain the IP address of the surviving host in each subnet. The set of IP addresses available in any subnet is denoted by als, the set of port IP addresses in that subnet is denoted by nets, the set of IP addresses of all surviving hosts in the network is denoted by amps, and the set of IP addresses of surviving hosts in that subnet, dests, can be expressed as: dests= (als-nets) Σarps.
Step 130: and sending corresponding detection data packets to the IP address of each target survival host in the target subnet so that each target survival host responds according to the detection data packets.
In this step, the target subnet is any one of the subnets. The surviving hosts in the target subnetwork are target surviving hosts. And sending a detection data packet to the IP address of the target survival host, and determining the network quality of the target subnet according to the response time of each target survival host. In the embodiment of the invention, the detection message comprises an IP address of the target survival host and a text of the sending message. The receiving message comprises an IP address of the target survival host and a response message body, and the detecting message and the receiving message can be matched through the IP address of the target survival host.
Step 140: response time of each target surviving host is obtained.
In this step, the response time of the target surviving host is the difference between the time when the response packet was received and the time when the probe packet was sent out. When the detection data packet is sent to the IP address of the target survival host, the corresponding sending time stamp is recorded, and when the detection data packet is received, the corresponding response time stamp is recorded, wherein the difference value between the response time stamp and the sending time stamp is the response time.
Step 150: and determining the network quality index of the target subnet according to the response time.
In this step, the network quality index of the target subnet includes information such as average delay time, survival rate, and timeout details of the target surviving host. The average delay time of the target subnet is the delay time of all target surviving hosts in the target subnet. Survival refers to the proportion of normally responding target surviving hosts in all target surviving hosts. The target surviving host with normal response is a target surviving host with response time within a preset time range, and the target surviving host beyond the preset time range is a target surviving host with delayed response.
The average latency is determined by the number n of normally responding target surviving hosts, the number m of latency responding target surviving hosts, and the latency d of each latency responding target surviving host. Specifically, calculating the difference between the response time of each target survival host with delayed response and the time maximum value specified by the preset time range, and obtaining the delay time d of each target survival host with delayed response. Calculating the delay time sum of all target survival hosts with delay responsesWherein d i Representing the latency of the target surviving host for the ith latency response. Delay time and +.>Target memory evenly distributed to normal responsesIn the number of active hosts, the average delay time of the target subnetwork is obtained>
The ratio of the number of normally responding target surviving hosts in the target subnet to the number of all responding target surviving hosts in the subnet is the survival rate of the target subnet, i.e., the survival rate of the target subnet, alivery=n/(n+m).
The embodiment of the invention determines the IP address of the surviving host in each subnet based on all address information and surviving host information in the network, detects the target surviving host in the target subnet, determines the target subnet network quality index according to the response time of each target surviving host, can intuitively sense the network quality of the target subnet according to the network quality index, and is beneficial to carrying out abnormal positioning according to the network quality index. In addition, the network quality detection method provided by the embodiment of the invention does not need to be manually participated, can automatically realize network quality detection, saves manpower resource cost and improves network detection efficiency; in addition, the IP address of the surviving host is updated in real time, so that the IP address information of the error-stored host can be obtained in real time, and the detection efficiency of the surviving host is improved.
In some embodiments, the target surviving hosts are equally distributed to a plurality of probing processes, and each probing process sends a corresponding probing data packet to the target surviving hosts in the probing process, so that each target surviving host responds according to the probing data packet. Message sharing among multiple probe processes, i.e., each process may know information of the target surviving hosts processed by the remaining processes, e.g., process 1 may know the IP address of the target surviving host being probed by process 2. The target surviving hosts are equally distributed to a plurality of detection processes in a polling mode. For example, if the probe process 1 is probing the target surviving host a, then the target surviving host B is allocated to the probe process 2. When all the detection processes have detection tasks, the remaining target survival hosts are evenly distributed to the waiting queues of the detection processes to wait for detection. In this way, multiple processes can detect multiple target surviving hosts at the same time, so that the detection efficiency of the target surviving hosts is improved.
In some embodiments, each probing process includes multiple threads that probe target surviving hosts in the probing process simultaneously. The thread is responsible for performing specific probing subtasks. For example, a probing process includes sub-tasks of assembling probe packets, sending probe packets, receiving response packets, etc., and each thread may be responsible for the execution of one sub-task. By means of the multi-thread mode, all detection subtasks can be performed simultaneously, for example, when one thread detects the target surviving host A, the other thread can receive a response data packet of the target surviving host B, and therefore detection efficiency is further improved. The sent detection data packet and the received response data packet both contain the IP address of the target surviving host, so that the target surviving host specifically aimed at by the received response data packet can be distinguished.
Fig. 3 is a schematic structural diagram of a network quality detection device according to an embodiment of the present invention. As shown in fig. 3, the apparatus includes: a first acquisition module 310, a first determination module 320, a transmission module 330, a second acquisition module 340, and a second determination module 350.
The first obtaining module 310 is configured to obtain address information and surviving host information of each port in the network.
The first determining module 320 is configured to determine an IP address of the surviving host in each subnet according to the address information and the surviving host information.
The sending module 330 is configured to send a corresponding probe packet to an IP address of each target surviving host in the target subnetwork, so that each target surviving host responds according to the probe packet, where the target subnetwork is any one of the subnetworks.
The second obtaining module 340 is configured to obtain a response time of each target surviving host.
The second determining module 350 is configured to determine a network quality indicator of the target subnet according to the response time.
In an alternative manner, the address information includes a port IP address and a corresponding mask, and the surviving host information includes an IP address of the surviving host;
the first determining module 320 is further configured to:
determining available IP addresses in each subnet according to the port IP addresses and the corresponding masks;
calculating the difference between the available IP address in each subnet and the port IP address in each subnet to obtain the IP address of the available host in each subnet;
and determining the IP addresses of the available hosts in each subnet and the IP addresses of the surviving hosts which are the same to each other to obtain the IP addresses of the surviving hosts in each subnet.
In an alternative manner, the first determining module 320 is further configured to:
determining a network address and a broadcast address of a subnet where each port IP address is located according to the port IP address and the corresponding mask;
and taking the address between the network address of each subnet and the broadcast address as the available IP address of each subnet.
In an alternative manner, the sending module 330 is further configured to:
and evenly distributing the target survival hosts to a plurality of detection processes, wherein each detection process respectively sends corresponding detection data packets to the target survival hosts in the detection process, so that each target survival host responds according to the detection data packets.
In an alternative manner, each probing process includes a plurality of threads, and the plurality of threads send corresponding probing data packets to the target surviving host in the probing process, and simultaneously receive response data packets of the target surviving host of the threads.
In an alternative manner, the number of corresponding probe packets sent to each target surviving host in the target subnetwork is at least two;
the second obtaining module 340 is further configured to:
acquiring a first response time of each target survival host for each detection data packet;
and calculating the average response time of each target survival host according to the first response time, and taking the average response time as the response time of the target survival host.
In an alternative manner, the network quality indicator includes an average delay time and a survival rate, and the second determining module 350 is further configured to:
determining a first number of normally-responded target surviving hosts in the target subnet and a second number of delayed-response target surviving hosts according to the response time, wherein the normally-responded target surviving hosts are target surviving hosts with response time within a preset time range, and the delayed-response target surviving hosts are target surviving hosts with response time exceeding the preset time range;
determining the delay time of each delay response target survival host;
and determining the average delay time and the survival rate of the target subnet according to the first quantity, the second quantity and the delay time.
In an alternative manner, the second determining module 350 is further configured to:
calculating the delay time sum of all target survival hosts with delay response;
dividing the delay time sum by the first number to obtain an average delay time of the target subnet;
calculating a sum of the first number and the second number;
and calculating the ratio between the first quantity and the sum of the quantities to obtain the survival rate of the target subnet.
The embodiment of the invention determines the IP address of the surviving host in each subnet based on all address information and surviving host information in the network, detects the target surviving host in the target subnet, determines the target subnet network quality index according to the response time of each target surviving host, can intuitively sense the network quality of the target subnet according to the network quality index, and is beneficial to carrying out abnormal positioning according to the network quality index. In addition, the network quality detection method provided by the embodiment of the invention does not need manual participation, can automatically realize network quality detection, saves manpower resource cost and improves network detection efficiency.
FIG. 4 illustrates a schematic diagram of a computing device in accordance with an embodiment of the invention, which is not limited to a particular implementation of the computing device.
As shown in fig. 4, the computing device may include: a processor 402, a communication interface (Communications Interface) 404, a memory 406, and a communication bus 408.
Wherein: processor 402, communication interface 404, and memory 406 communicate with each other via communication bus 408. A communication interface 404 for communicating with network elements of other devices, such as clients or other servers. The processor 402 is configured to execute the program 410, and may specifically perform relevant steps in the above-described embodiment of the method for detecting network quality.
In particular, program 410 may include program code including computer-executable instructions.
The processor 402 may be a central processing unit CPU, or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement embodiments of the present invention. The one or more processors included by the computing device may be the same type of processor, such as one or more CPUs; but may also be different types of processors such as one or more CPUs and one or more ASICs.
Memory 406 for storing programs 410. Memory 406 may comprise high-speed RAM memory or may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
Program 410 may be specifically invoked by processor 402 to cause a computing device to perform steps 110-150 of fig. 1, steps 210-230 of fig. 2, and to implement the functions of modules 110-150 of fig. 3.
Embodiments of the present invention provide a computer readable storage medium storing at least one executable instruction that, when executed on a computing device/apparatus, cause the computing device/apparatus to perform a method for detecting network quality in any of the method embodiments described above.
Embodiments of the present invention provide a computer program that is callable by a processor to cause a computing device to perform a method of detecting network quality in any of the method embodiments described above.
Embodiments of the present invention provide a computer program product comprising a computer program stored on a computer readable storage medium, the computer program comprising program instructions which, when run on a computer, cause the computer to perform a method of detecting network quality in any of the method embodiments described above.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general-purpose systems may also be used with the teachings herein. The required structure for a construction of such a system is apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It will be appreciated that the teachings of the present invention described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the present invention.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the above description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., the claimed invention requires more features than are expressly recited in each claim.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or components of the embodiments may be combined into one module or unit or component and, furthermore, they may be divided into a plurality of sub-modules or sub-units or sub-components. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specifically stated.

Claims (9)

1. A method for detecting network quality, the method comprising:
acquiring address information of each port in a network and survival host information, wherein the address information comprises port IP addresses and corresponding masks, and the survival host information comprises the IP addresses of the survival hosts;
determining the IP address of the surviving host in each subnet according to the address information and the surviving host information, including: determining available IP addresses in each subnet according to the port IP addresses and the corresponding masks; calculating the difference between the available IP address in each subnet and the port IP address in each subnet to obtain the IP address of the available host in each subnet; determining the IP addresses of the available hosts in each subnet and the IP addresses of the surviving hosts which are the same, so as to obtain the IP addresses of the surviving hosts in each subnet;
transmitting a corresponding detection data packet to an IP address of each target survival host in target subnets so that each target survival host responds according to the detection data packet, wherein each target survival host is any one of the subnets;
acquiring the response time of each target survival host;
and determining a network quality index of the target subnet according to the response time.
2. The method of claim 1, wherein said determining available IP addresses in each subnet from said port IP address and corresponding mask comprises:
determining a network address and a broadcast address of a subnet where each port IP address is located according to the port IP address and the corresponding mask;
and taking the address between the network address of each subnet and the broadcast address as the available IP address of each subnet.
3. The method of claim 1, wherein said sending a respective probe packet to an IP address of each target surviving host in the target subnet to cause each target surviving host to respond according to the probe packet comprises:
and evenly distributing the target survival hosts to a plurality of detection processes, wherein each detection process respectively sends corresponding detection data packets to the target survival hosts in the detection process, so that each target survival host responds according to the detection data packets.
4. A method according to claim 3, wherein each probing process comprises a plurality of threads, the plurality of threads sending corresponding probing packets to target surviving hosts in the probing process while receiving response packets from the target surviving hosts of the threads.
5. The method of claim 1, wherein the number of probe packets sent to each target surviving host in the target subnetwork is at least two;
the obtaining the response time of each target survival host includes:
acquiring a first response time of each target survival host for each detection data packet;
and calculating the average response time of each target survival host according to the first response time, and taking the average response time as the response time of the target survival host.
6. The method of claim 1, wherein the network quality indicator comprises an average delay time and a survival rate, and wherein the determining the network quality indicator for the target subnet based on the response time comprises:
determining a first number of normally-responded target surviving hosts in the target subnet and a second number of delayed-response target surviving hosts according to the response time, wherein the normally-responded target surviving hosts are target surviving hosts with response time within a preset time range, and the delayed-response target surviving hosts are target surviving hosts with response time exceeding the preset time range;
determining the delay time of each delay response target survival host;
and determining the average delay time and the survival rate of the target subnet according to the first quantity, the second quantity and the delay time.
7. The method of claim 6, wherein said determining the average delay time and survival rate of the target subnet based on the first number, the second number, and the delay time comprises:
calculating the delay time sum of all target survival hosts with delay response;
dividing the delay time sum by the first number to obtain an average delay time of the target subnet;
calculating a sum of the first number and the second number;
and calculating the ratio between the first quantity and the sum of the quantities to obtain the survival rate of the target subnet.
8. A network quality detection apparatus, the apparatus comprising:
the first acquisition module is used for acquiring address information of each port in the network and survival host information, wherein the address information comprises port IP addresses and corresponding masks, and the survival host information comprises the IP addresses of the survival hosts;
the first determining module is configured to determine an IP address of a surviving host in each subnet according to the address information and the surviving host information, and includes: determining available IP addresses in each subnet according to the port IP addresses and the corresponding masks; calculating the difference between the available IP address in each subnet and the port IP address in each subnet to obtain the IP address of the available host in each subnet; determining the IP addresses of the available hosts in each subnet and the IP addresses of the surviving hosts which are the same, so as to obtain the IP addresses of the surviving hosts in each subnet;
the sending module is used for sending corresponding detection data packets to the IP address of each target survival host in the target subnetwork so that each target survival host responds according to the detection data packets, and the target subnetwork is any one subnetwork in the subnetworks;
the second acquisition module is used for acquiring the response time of each target survival host;
and the second determining module is used for determining the network quality index of the target subnet according to the response time.
9. A computing device, the computing device comprising: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to perform a method for detecting network quality as claimed in any one of claims 1 to 7.
CN202010432036.2A 2020-05-20 2020-05-20 Network quality detection method, device, computing equipment and computer storage medium Active CN113708984B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010432036.2A CN113708984B (en) 2020-05-20 2020-05-20 Network quality detection method, device, computing equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010432036.2A CN113708984B (en) 2020-05-20 2020-05-20 Network quality detection method, device, computing equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN113708984A CN113708984A (en) 2021-11-26
CN113708984B true CN113708984B (en) 2023-10-27

Family

ID=78645646

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010432036.2A Active CN113708984B (en) 2020-05-20 2020-05-20 Network quality detection method, device, computing equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN113708984B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6115385A (en) * 1998-03-11 2000-09-05 Cisco Technology, Inc. Method and system for subnetting in a switched IP network
CN101304367A (en) * 2007-05-11 2008-11-12 华为技术有限公司 Method, system and apparatus for monitoring survive of subscriber conversation
CN101404597A (en) * 2008-11-19 2009-04-08 华为技术有限公司 Network quality index acquirement method, system and apparatus
CN102045244A (en) * 2009-10-10 2011-05-04 中兴通讯股份有限公司 IPV4 (Internet Protocol Version 4) network as well as implementation method and system for intercommunicating with new network
CN102497380A (en) * 2011-12-21 2012-06-13 余姚市供电局 Internal network data packet filtering method
CN103299583A (en) * 2010-11-18 2013-09-11 瑞典爱立信有限公司 Systems and methods for measuring available capacity and tight link capacity of IP paths from a single endpoint
CN104780078A (en) * 2015-04-03 2015-07-15 山东华软金盾软件有限公司 Method and system for initiatively detecting IP (Internet protocol) of switch
CN105227383A (en) * 2015-11-06 2016-01-06 广东电网有限责任公司电力科学研究院 A kind of device of network topology investigation
CN105450442A (en) * 2015-11-06 2016-03-30 广东电网有限责任公司电力科学研究院 Network topology checking method and system thereof
CN107770832A (en) * 2017-10-11 2018-03-06 崔吉洲 With interference free performance wireless relay ad hoc network method
CN107786366A (en) * 2016-08-31 2018-03-09 北京北信源软件股份有限公司 A kind of LAN internal network topology structural scan method
CN207995128U (en) * 2017-12-04 2018-10-19 重庆电子工程职业学院 The Distributed Hole Detection system of the Mobile agent of adaptive network
CN109660401A (en) * 2018-12-20 2019-04-19 中国电子科技集团公司第三十研究所 A kind of distributed network assets detection method
CN110198248A (en) * 2018-02-26 2019-09-03 北京京东尚科信息技术有限公司 The method and apparatus for detecting IP address
CN110661669A (en) * 2019-10-11 2020-01-07 云南电网有限责任公司德宏供电局 Network topology automatic discovery method of network equipment based on ICMP, TCP and UDP protocols

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018036746A1 (en) * 2016-08-24 2018-03-01 British Telecommunications Public Limited Company Data network address sharing

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6115385A (en) * 1998-03-11 2000-09-05 Cisco Technology, Inc. Method and system for subnetting in a switched IP network
CN101304367A (en) * 2007-05-11 2008-11-12 华为技术有限公司 Method, system and apparatus for monitoring survive of subscriber conversation
CN101404597A (en) * 2008-11-19 2009-04-08 华为技术有限公司 Network quality index acquirement method, system and apparatus
CN102045244A (en) * 2009-10-10 2011-05-04 中兴通讯股份有限公司 IPV4 (Internet Protocol Version 4) network as well as implementation method and system for intercommunicating with new network
CN103299583A (en) * 2010-11-18 2013-09-11 瑞典爱立信有限公司 Systems and methods for measuring available capacity and tight link capacity of IP paths from a single endpoint
CN102497380A (en) * 2011-12-21 2012-06-13 余姚市供电局 Internal network data packet filtering method
CN104780078A (en) * 2015-04-03 2015-07-15 山东华软金盾软件有限公司 Method and system for initiatively detecting IP (Internet protocol) of switch
CN105227383A (en) * 2015-11-06 2016-01-06 广东电网有限责任公司电力科学研究院 A kind of device of network topology investigation
CN105450442A (en) * 2015-11-06 2016-03-30 广东电网有限责任公司电力科学研究院 Network topology checking method and system thereof
CN107786366A (en) * 2016-08-31 2018-03-09 北京北信源软件股份有限公司 A kind of LAN internal network topology structural scan method
CN107770832A (en) * 2017-10-11 2018-03-06 崔吉洲 With interference free performance wireless relay ad hoc network method
CN207995128U (en) * 2017-12-04 2018-10-19 重庆电子工程职业学院 The Distributed Hole Detection system of the Mobile agent of adaptive network
CN110198248A (en) * 2018-02-26 2019-09-03 北京京东尚科信息技术有限公司 The method and apparatus for detecting IP address
CN109660401A (en) * 2018-12-20 2019-04-19 中国电子科技集团公司第三十研究所 A kind of distributed network assets detection method
CN110661669A (en) * 2019-10-11 2020-01-07 云南电网有限责任公司德宏供电局 Network topology automatic discovery method of network equipment based on ICMP, TCP and UDP protocols

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种高效的末跳路由发现技术;刘洋;方滨兴;智能计算机与应用(第001期);全文 *

Also Published As

Publication number Publication date
CN113708984A (en) 2021-11-26

Similar Documents

Publication Publication Date Title
US10044581B1 (en) Network traffic tracking using encapsulation protocol
CN111431758B (en) Cloud network equipment testing method and device, storage medium and computer equipment
CN108494623B (en) Performance test method and device of network forwarding device
US10033602B1 (en) Network health management using metrics from encapsulation protocol endpoints
CN109960634B (en) Application program monitoring method, device and system
CN109995842B (en) Grouping method and device for distributed server cluster
CN112637332B (en) Service registration discovery method and system
CN109787827B (en) CDN network monitoring method and device
US10348683B2 (en) Network packet filtering via media access control (MAC) address learning
CN109525684B (en) Message forwarding method and device
CN108933829A (en) A kind of load-balancing method and device
CN108600051B (en) BGP Anycast cluster service quality detection method and detection equipment
CN112564994B (en) Flow monitoring method and device, cloud server and storage medium
CN109769029B (en) Communication connection method based on electricity consumption information acquisition system and terminal equipment
CN110650042A (en) Electric power communication network health degree evaluation method and terminal equipment
US10498617B1 (en) System, method, and computer program for highly available and scalable application monitoring
CN113708984B (en) Network quality detection method, device, computing equipment and computer storage medium
JP5917678B1 (en) Information processing apparatus, method, and program
CN105939228B (en) A kind of health detecting method and device
CN109347743B (en) Special line communication method, computer readable storage medium and terminal equipment
US8619627B2 (en) Automatic determination of groupings of communications interfaces
CN110995483A (en) Network topology discovery method and device
CN113766363B (en) Fault monitoring method and device and computing equipment
CN115242693A (en) Network detection method, device, equipment and storage medium
CN114500459B (en) DNS protocol-based data scheduling method and device and electronic equipment

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