CN112653587B - Network connectivity state detection method and device - Google Patents

Network connectivity state detection method and device Download PDF

Info

Publication number
CN112653587B
CN112653587B CN201910968454.0A CN201910968454A CN112653587B CN 112653587 B CN112653587 B CN 112653587B CN 201910968454 A CN201910968454 A CN 201910968454A CN 112653587 B CN112653587 B CN 112653587B
Authority
CN
China
Prior art keywords
node
layer
service
service layer
load
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
CN201910968454.0A
Other languages
Chinese (zh)
Other versions
CN112653587A (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201910968454.0A priority Critical patent/CN112653587B/en
Publication of CN112653587A publication Critical patent/CN112653587A/en
Application granted granted Critical
Publication of CN112653587B publication Critical patent/CN112653587B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies

Abstract

The invention provides a method and a device for detecting a network connection state, wherein the method comprises the following steps: acquiring service interface information of an application layer of a network topology structure; collecting node connection information between a first service layer and a second service layer of the network topology structure, wherein the first service layer and the second service layer are adjacent layers in the network topology structure; and detecting the node connection state between the first service layer and the second service layer according to the service interface information and the node connection information. The network connection state detection device provided by the invention can ensure that the connection fault between each layer of nodes of the network topology structure can be detected in time, and further can quickly adjust the connection state of the corresponding link, so as to avoid the failure of the terminal in accessing the network.

Description

Network connectivity state detection method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for detecting a network connectivity status.
Background
Wide Area Networks (WAN), also known as extranets and public networks, are remote networks connecting computers in local Area networks or metropolitan Area networks in different regions for communication. At present, a server where a terminal device enters an application from an external network needs to experience a 4-layer network architecture, wherein a first layer is a Domain Name System (DNS) resolution layer and provides DNS resolution service, a second layer is a load layer and provides functions such as load balancing, signature checking or acceleration according to regions, machine rooms or operators, a third layer is a front-end processor layer and provides functions such as current limiting, speed limiting, blacklist, crawler and the like, and a fourth layer is an application layer and provides real service.
In the prior art, a first layer and a second layer, namely a part before a data request enters an intranet, and a third layer and a fourth layer are respectively handed over to different team management, so that a monitoring blind area is left at the handing-over part, for example, a certain node of the second layer fails, but an alarm is not triggered due to the fact that the request proportion is small or the threshold value is not reached, when a flow inlet depending on a certain application is just the node, the access request cannot be sensed because the access request does not reach the third layer and the fourth layer, so that the alarm cannot be triggered, the access failure of a user is caused, and technical maintenance personnel in the prior art cannot quickly find and locate the problem.
Therefore, the existing network connection management mode has the problems that the abnormality of the server is difficult to find in time, and further the application access fault is difficult to repair in time.
Disclosure of Invention
The embodiment of the invention provides a method and a device for detecting a network connection state, which are used for solving the problems that the existing network connection management mode is difficult to find server abnormity in time and further difficult to repair application access faults in time.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for detecting a network connectivity status, where the method includes:
acquiring service interface information of an application layer of a network topology structure;
collecting node connection information between a first service layer and a second service layer of the network topology structure;
and detecting the node connection state between the first service layer and the second service layer according to the service interface information and the node connection information.
In a second aspect, an embodiment of the present invention provides a network connectivity status detecting apparatus, including:
the first acquisition module is used for acquiring service interface information of an application layer of a network topology structure;
the second acquisition module is used for acquiring node connection information between a first service layer and a second service layer of the network topology structure;
and the detection module is used for detecting the node communication state between the first service layer and the second service layer according to the service interface information and the node connection information.
In a third aspect, an embodiment of the present invention provides a network connectivity status detection apparatus, including a processor, a memory, and a computer program stored in the memory and being executable on the processor, where the computer program, when executed by the processor, implements the steps in the network connectivity status detection method.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps in the network connectivity status detection method.
In the embodiment of the invention, the service interface information of the application layer of the network topology structure is collected, and the node connection information between the first service layer and the second service layer of the network topology structure is collected, so that the node connection state between the first service layer and the second service layer can be detected according to the service interface information and the node connection information. Therefore, the communication faults among the nodes of each layer of the network topology structure can be detected in time, and the connection condition of the corresponding link can be adjusted rapidly, so that the failure of the terminal in accessing the network is avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of a network connectivity status detection method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a network topology according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a network connectivity status detection apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another network connectivity status detection apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a detection module of a network connectivity status detection apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another network connectivity status detection apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another network connectivity status detection apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a method for detecting a network connectivity status according to an embodiment of the present invention, and as shown in fig. 1, the method includes the following steps:
step 101, collecting service interface information of an application layer of a network topology structure.
The network topology structure may be a network node connection structure established for a terminal to access a network, and may generally be composed of multiple layers of network nodes, where each layer of network nodes may be respectively configured to provide different services or functions, for example, a network topology structure in which the terminal accesses an external network, i.e., a wide area network, may have 4 layers, a first layer is a domain name resolution layer configured to provide DNS domain name resolution services, a second layer is a load layer configured to provide services such as load balancing, signature verification, acceleration, and the like, a third layer is a front-end processor layer configured to limit current and speed, provide functions such as a blacklist, a Distributed Denial of Service (DDOS for short), or a crawler, and a fourth layer is an application layer configured to provide a real application Service. It should be noted that the network topology is not limited to the 4-layer network topology, and may be a multilayer network topology arbitrarily set up according to actual needs.
The application layer may be a layer of the network topology that provides real application access services, typically the highest layer of the network topology.
The service interface information may be various interface information provided for the user to access the network in the application layer, such as a website access interface, access entries on a webpage, a video playing entry, and the like.
In this embodiment, the collecting of the service interface information of the application layer of the network topology may be scanning available interface information provided for a user to access a network in the application layer.
Step 102, collecting node connection information between a first service layer and a second service layer of the network topology structure, wherein the first service layer and the second service layer are adjacent layers in the network topology structure.
The first service layer and the second service layer may be two other layers in the network topology structure, except for the application layer, where there is a node connection relationship, and may be located before the application layer, that is, when a terminal accesses a network, the terminal needs to go through the first service layer and the second service layer before entering the application layer, and the first service layer and the second service layer are adjacent in the network topology structure.
The first service layer and the second service layer may each include one or more nodes, each node may be a network-side device or a network cluster, and when at least one of the first service layer and the second service layer includes a plurality of nodes, the first service layer and the second service layer may have a plurality of node connection relationships, for example, the first service layer includes 1 node, the second service layer includes 3 nodes, and the 1 node of the first service layer and the 3 nodes of the second service layer may respectively have a connection relationship; or, the first service layer includes 2 nodes, the second service layer includes 3 nodes, and each node of the first service layer may have a connection relationship with one or more nodes of the second service layer, respectively.
The collecting of the node connection information between the first service layer and the second service layer of the network topology may be to collect and integrate connection relationships between nodes between the first service layer and the second service layer in the network topology, so as to obtain which node in the first service layer has a connection relationship with the node in the second service layer.
For example, as shown in fig. 2, the connection relationship between 1 node of the domain name resolution layer and 4 nodes of the load layer may be collected, and the connection relationship between 4 nodes of the load layer and 3 nodes of the front-end processor layer may also be collected.
Optionally, as shown in fig. 2, the network topology includes a domain name resolution layer, a load layer, and a front-end processor layer;
the step 102 comprises:
and acquiring domain name address information from the node of the domain name resolution layer to each node of the load layer, and acquiring server address information from each node of the load layer to each node of the front-end processor layer.
In this embodiment, as shown in fig. 2, the network topology may include 4 layers, namely, a domain name resolution layer, a load layer, a front-end processor layer, and an application layer, when a user accesses a network through a terminal, the user needs to sequentially perform domain name resolution through the domain name resolution layer, then enter the load layer, share a current network access task among a plurality of operation units for execution, and then enter the front-end processor layer to ensure the security of the current network access task, and finally enter the application layer to provide a real application service for the user terminal.
As shown in fig. 2, each of the load layer, the front-end processor layer, and the application layer may include a plurality of nodes, each node of each layer may be connected to a different node of an adjacent layer to form a different access link, as shown in fig. 2, the node 1 of the domain name resolution layer may be connected to the nodes 2 and 3 of the load layer, the nodes 2 and 3 of the load layer may be connected to the node 4 of the front-end processor layer, and the node 4 of the front-end processor layer may be connected to the node 5 of the application layer, so that the nodes 1, 2, 4, and 5 and the nodes 1, 3, 4, and 5 form an access link, respectively.
When the node 2 of the load layer fails, but the alarm is not triggered because the proportion of the number of times of the failure is smaller or the failure does not reach a specific threshold value, if a traffic inlet depending on an application just needs to pass through the node 2, a network access request sent by the terminal cannot reach the front-end processor layer and the application layer, so that the network access failure of the user terminal cannot be caused because the network access request is not sensed by the application server.
In order to avoid the above situation, in this embodiment, node connection information between the domain name resolution layer and the load layer and node connection information between the load layer and the front-end processor layer may be collected, specifically, domain name address information from a node of the domain name resolution layer to each node of the load layer may be collected, for example, domain name address information (such as virtual IP address information) of a node of the load layer connected to a node 1 of the domain name resolution layer is collected, and it may be determined which nodes of the load layer and the node 1 of the domain name resolution layer have a connection relationship through the domain name address information, where each node of the load layer is allocated with a unique virtual IP address; and collecting server address information from each node of the load layer to each node of the front-end processor layer, for example, collecting server address information (such as Real Server (RS) address information) of a node of the front-end processor layer connected to the node 2 of the load layer, and determining which nodes of the load layer and the front-end processor layer have a connection relationship through the server address information, wherein each node of the front-end processor layer is allocated with a unique RS address.
Therefore, based on the collected domain name address information from the node of the domain name resolution layer to each node of the load layer and the collected server address information from each node of the load layer to each node of the front-end processor layer, the node communication state between the domain name resolution layer and the load layer and the node communication state between the load layer and the front-end processor layer are detected, so that when any node of the load layer and the front-end processor layer fails, the method in the embodiment can ensure that the node failure is detected in time, and is convenient for taking corresponding repair measures in time to avoid the condition of access failure when a user terminal accesses a network.
It should be noted that, in practical application, it may be configured to collect not only the node connection relationships between the domain name resolution layer and the load layer, and between the load layer and the front-end processor layer, but also the node connection relationships between any adjacent layers in the network topology structure by convention according to practical needs.
And 103, detecting the node connection state between the first service layer and the second service layer according to the service interface information and the node connection information.
Then, a node connectivity state between the first service layer and the second service layer may be detected according to the service interface information and the node connection information, specifically, a corresponding access link may be determined based on a certain service interface in the service interface information, and then a connectivity state between nodes included in the link is detected, specifically, each node may be sequentially accessed to see whether each node can normally operate.
For example, as shown in fig. 2, if it is determined that an access link of a certain service interface is, in turn, a node 1 of a domain name resolution layer, a node 2 of a load layer, a node 4 of a front-end processor layer, and a node 5 of an application layer, the node 1, the node 2, the node 4, and the node 5 may be sequentially accessed, if each node is normally accessed, it may be determined that a connection state of each node in the access link is good, and if a certain node has a fault and cannot be accessed, it may be determined that a connection state with the node is abnormal.
Optionally, the step 103 includes:
determining a first node of the first service layer and a second node in the second service layer based on the service interface information and the node connection information, wherein the second node has a connection relation with the first node;
and accessing the second node from the first node, and determining that a communication fault exists between the first node and the second node under the condition of failed access.
In this embodiment, two nodes having a connection relationship in the first service layer and the second service layer, that is, a first node of the first service layer and a second node of the second service layer, may be determined based on the service interface information and the node connection information, and the first node and the second node may be nodes in an access link corresponding to a certain service interface in the service interface information.
And then, the second node can be accessed from the first node to determine whether the access is successful or not, if the access is successful, the connection condition between the first node and the second node is determined to be good, the first node and the second node can work normally, and if the access is failed, the connection fault between the first node and the second node is determined to exist, and the abnormal fault exists in the second node.
For example, as shown in fig. 2, when accessing the node 2 of the load layer from the node 1 of the domain name resolution layer, if the access fails, it may be determined that the connection status between the node 1 and the node 2 is abnormal, the node 2 has a failure, and the node access address of the load layer needs to be replaced.
Therefore, the service layer with the communication fault and the corresponding nodes can be quickly and accurately determined by accessing each layer of nodes in the network topology structure in advance, the nodes with the fault can be maintained in time, specifically, the fault nodes can be manually repaired or replaced by maintainers, and the system can autonomously complete the fault repairing according to a preset fault repairing scheme.
Optionally, the accessing the second node from the first node, and in case of a failure in access, after determining that there is a connectivity fault between the first node and the second node, the method further includes:
and adjusting a third node which has a connection relation with the first node in the second service layer into an access entry node of the first node.
In this embodiment, after it is determined that a connectivity fault exists between the first node and the second node, a corresponding measure may be taken in time to repair the connectivity fault, specifically, an access entry node serving as a first node in the first service layer in the second service layer may be replaced, so as to ensure that a corresponding service interface can be normally accessed by enabling the first node to connect to another node in the second service layer, and more specifically, a third node in the second service layer, which has a connection relationship with the first node, may be determined from the node connection information, and adjusted to be the access entry node of the first node, so as to ensure that a user can normally access the corresponding service interface.
For example, as shown in fig. 2, when it is determined that the node 2 of the load layer has a fault, the node 3 of the load layer may be adjusted to serve as an access entry node of the node 1 of the domain name resolution layer, so as to ensure that the terminal can perform normal network access by sequentially accessing the node 1, the node 3, and the nodes 4 to 5.
Optionally, after step 103, the method further includes at least one of:
under the condition that the first service layer is a domain name resolution layer and the second service layer is a load layer, if the node communication fault between the first service layer and the second service layer is detected, modifying a node access address of the load layer;
and if the node communication fault between the first service layer and the second service layer is detected to occur under the condition that the first service layer is a load layer and the second service layer is a front-end processor layer, adjusting the server address of the front-end processor layer.
In this embodiment, when the first service layer is a domain name resolution layer and the second service layer is a load layer, if it is determined that a node connectivity fault exists between the domain name resolution layer and the load layer by detecting a node connectivity state between the domain name resolution layer and the load layer, a node access address of the load layer may be modified, so as to implement that another node in the load layer is used as an access entry node of a node in the domain name resolution layer, which has a connection relationship with the fault node in the load layer.
For example, as shown in fig. 2, in the case that there is a failure in the node 2 of the load layer, the access address of the node in the load layer, which has a connection relationship with the node 1 of the domain name resolution layer, may be modified, such as modifying the virtual IP address of the access node 2 to the backup virtual IP address of the node 2 or to the virtual IP address of the node 3.
When the first service layer is a load layer and the second service layer is a front-end processor layer, if it is determined that a node connectivity fault exists between the load layer and the front-end processor layer by detecting a node connectivity state between the load layer and the front-end processor layer, a server address, such as an RS address, of the front-end processor layer may be modified to process a network access task of a corresponding service interface through other server devices in the front-end processor layer, that is, to dynamically adjust an RS forwarding list of the front-end processor layer.
It should be noted that, while modifying the node access address of the load layer or adjusting the server address of the front-end processor layer, an alarm prompt signal may also be output to the management device of the corresponding layer, so as to notify the technical maintenance staff of the layer of the node failure message of the layer.
Optionally, the step 101 includes:
calling a service interface acquisition module to acquire service interface information of an application layer of a network topology structure;
sending the service interface information to an entrance detection module;
the step 102 comprises:
calling an entrance detection module to acquire node connection information between a first service layer and a second service layer of the network topology structure;
the step 103 comprises:
and the entrance detection module detects the node communication state between the first service layer and the second service layer according to the service interface information and the node connection information.
In practical application, in order to facilitate the node connectivity state detection function of the present solution to be realized by means of program calling, the present solution may be realized by developing an entry detection module for acquiring entry information of a node and detecting a node connectivity state and a service interface acquisition module for acquiring service interface information.
Specifically, as shown in fig. 2, the portal detection module may operate at a portal layer of the network topology, for example, the first service layer and the second service layer of the network topology, and the service interface acquisition module may operate at an application layer of the network topology, so that the service interface acquisition module may be called to acquire service interface information of the application layer and send the acquired service interface information to the portal detection module; the node connection information between the first service layer and the second service layer can be collected by calling an entrance detection module; the entrance detection module can detect the node connection state between the first service layer and the second service layer according to the received service interface information and the collected node connection information; as shown in fig. 2, the first service layer and the second service layer may be the domain name resolution layer and the load layer, respectively.
Thus, in the embodiment, the back-end service does not depend on the troubleshooting and positioning of an upper-layer team through the dynamic monitoring of the network topology structure from bottom to top, so that the problem can be found more quickly and the server can be switched to a normal server, the access success rate of each application service can be improved, and the business service quality of an enterprise can be ensured.
In this embodiment of the present invention, the mobile terminal may be any device having a storage medium, for example: terminal devices such as a Computer (Computer), a Mobile phone, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (Personal Digital Assistant, abbreviated as PDA), a Mobile Internet Device (MID), or a Wearable Device (Wearable Device).
In the network connectivity state detection method in this embodiment, the service interface information of the application layer of the network topology structure is collected, and the node connection information between the first service layer and the second service layer of the network topology structure is collected, so that the node connectivity state between the first service layer and the second service layer can be detected according to the service interface information and the node connection information. Therefore, the communication faults among the nodes of each layer of the network topology structure can be detected in time, and the connection condition of the corresponding link can be adjusted quickly so as to avoid the failure of the terminal in accessing the network.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a network connectivity status detection apparatus according to an embodiment of the present invention, and as shown in fig. 3, the network connectivity status detection apparatus 400 includes:
a first collecting module 301, configured to collect service interface information of an application layer of a network topology;
a second collecting module 302, configured to collect node connection information between a first service layer and a second service layer of the network topology structure, where the first service layer and the second service layer are adjacent layers in the network topology structure;
a detecting module 303, configured to detect a node connectivity state between the first service layer and the second service layer according to the service interface information and the node connection information.
Optionally, the network connectivity status detecting apparatus 300 further includes at least one of the following:
a modifying module 304, configured to modify a node access address of the load layer if a node connectivity fault is detected between the first service layer and the second service layer when the first service layer is a domain name resolution layer and the second service layer is the load layer;
a first adjusting module 305, configured to, when the first service layer is a load layer and the second service layer is a front-end processor layer, adjust a server address of the front-end processor layer if it is detected that a node connectivity fault occurs between the first service layer and the second service layer.
Fig. 4 only illustrates a case where the network connection state detection apparatus 300 includes the modification module 304 and the first adjustment module 305.
Optionally, as shown in fig. 5, the detecting module 303 includes:
a determining unit 3031, configured to determine, based on the service interface information and the node connection information, a first node in the first service layer and a second node in the second service layer, where the second node has a connection relationship with the first node;
a detecting unit 3032, configured to access the second node from the first node, and in a case that the access fails, determine that a connectivity fault exists between the first node and the second node.
Optionally, as shown in fig. 6, the network connection status detecting apparatus 300 further includes:
a second adjusting module 306, configured to adjust a third node in the second service layer, where the third node has a connection relationship with the first node, to be an access entry node of the first node.
Optionally, the network topology includes a domain name resolution layer, a load layer, and a front-end processor layer;
the first collecting module 301 is configured to collect domain name address information from a node on the domain name resolution layer to each node on the load layer, and collect server address information from each node on the load layer to each node on the front-end processor layer.
The network connection status detection apparatus 300 can implement each process in the method embodiment of fig. 1, and is not described herein again to avoid repetition. The network connectivity status detection apparatus 300 according to the embodiment of the present invention may collect service interface information of an application layer of a network topology structure and collect node connection information between a first service layer and a second service layer of the network topology structure, so as to detect a node connectivity status between the first service layer and the second service layer according to the service interface information and the node connection information. Therefore, the communication faults among the nodes of each layer of the network topology structure can be detected in time, and the connection condition of the corresponding link can be adjusted quickly so as to avoid the failure of the terminal in accessing the network.
Preferably, an embodiment of the present invention further provides a network connectivity status detection apparatus, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements each process of the above network connectivity status detection method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the foregoing network connectivity status detection method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the computer program is not described herein again. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
Referring to fig. 7, fig. 7 is a block diagram of a network connection status detecting apparatus according to still another embodiment of the present invention, and as shown in fig. 7, a network connection status detecting apparatus 700 includes: a processor 701, a memory 702 and a computer program stored on the memory 702 and operable on the processor, the components of the network connectivity status detecting apparatus 700 being coupled together by a bus interface 703, the computer program when executed by the processor 701 implementing the steps of:
acquiring service interface information of an application layer of a network topology structure;
collecting node connection information between a first service layer and a second service layer of the network topology structure, wherein the first service layer and the second service layer are adjacent layers in the network topology structure;
and detecting the node connection state between the first service layer and the second service layer according to the service interface information and the node connection information.
Optionally, the computer program, when executed by the processor 701, is further configured to:
under the condition that the first service layer is a domain name resolution layer and the second service layer is a load layer, if the node communication fault between the first service layer and the second service layer is detected, modifying a node access address of the load layer;
and if the node communication fault between the first service layer and the second service layer is detected to occur under the condition that the first service layer is a load layer and the second service layer is a front-end processor layer, adjusting the server address of the front-end processor layer.
Optionally, the computer program, when executed by the processor 701, is further configured to:
determining a first node of the first service layer and a second node in the second service layer based on the service interface information and the node connection information, wherein the second node has a connection relation with the first node;
and accessing the second node from the first node, and determining that a communication fault exists between the first node and the second node under the condition of failed access.
Optionally, the computer program, when executed by the processor 701, is further configured to:
and adjusting a third node which has a connection relation with the first node in the second service layer into an access entry node of the first node.
Optionally, the network topology includes a domain name resolution layer, a load layer, and a front-end processor layer;
the computer program, when executed by the processor 701, is further configured to:
and acquiring domain name address information from the node of the domain name resolution layer to each node of the load layer, and acquiring server address information from each node of the load layer to each node of the front-end processor layer.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (8)

1. A method for detecting a network connectivity status, the method comprising:
acquiring service interface information of an application layer of a network topology structure;
collecting node connection information between a first service layer and a second service layer of the network topology structure, wherein the first service layer and the second service layer are adjacent layers in the network topology structure;
detecting a node connectivity state between the first service layer and the second service layer according to the service interface information and the node connection information, including: determining a first node of the first service layer and a second node in the second service layer based on the service interface information and the node connection information, wherein the second node has a connection relation with the first node; accessing the second node from the first node, and determining that a communication fault exists between the first node and the second node under the condition of failed access;
after the detecting the node connectivity status between the first service layer and the second service layer, the method further includes at least one of:
under the condition that the first service layer is a domain name resolution layer and the second service layer is a load layer, if the node communication fault between the first service layer and the second service layer is detected, modifying a node access address of the load layer;
and if the node communication fault between the first service layer and the second service layer is detected to occur under the condition that the first service layer is a load layer and the second service layer is a front-end processor layer, adjusting the server address of the front-end processor layer.
2. The method of claim 1, wherein after determining that a connectivity fault exists between the first node and the second node, the method further comprises:
and adjusting a third node which has a connection relation with the first node in the second service layer into an access entry node of the first node.
3. The method according to any of claims 1 to 2, wherein the network topology comprises a domain name resolution layer, a load layer and a front-end processor layer;
the collecting node connection information between a first service layer and a second service layer of the network topology structure includes:
and acquiring domain name address information from the node of the domain name resolution layer to each node of the load layer, and acquiring server address information from each node of the load layer to each node of the front-end processor layer.
4. A network connectivity status detection apparatus, comprising:
the first acquisition module is used for acquiring service interface information of an application layer of a network topology structure;
the second acquisition module is used for acquiring node connection information between a first service layer and a second service layer of the network topology structure, wherein the first service layer and the second service layer are adjacent layers in the network topology structure;
a detection module, configured to detect a node connectivity state between the first service layer and the second service layer according to the service interface information and the node connection information, where the detection module includes: a determining unit, configured to determine, based on the service interface information and the node connection information, a first node of the first service layer and a second node in the second service layer, where the second node has a connection relationship with the first node; a detection unit, configured to access the second node from the first node, and in a case of an access failure, determine that a connectivity fault exists between the first node and the second node;
the network connectivity status detection apparatus further includes at least one of:
a modification module, configured to modify a node access address of a load layer if a node connectivity fault is detected between the first service layer and the second service layer when the first service layer is a domain name resolution layer and the second service layer is the load layer;
a first adjusting module, configured to, when the first service layer is a load layer and the second service layer is a front-end processor layer, adjust a server address of the front-end processor layer if it is detected that a node connectivity fault occurs between the first service layer and the second service layer.
5. The network connectivity status detection device according to claim 4, further comprising:
and the second adjusting module is used for adjusting a third node which has a connection relation with the first node in the second service layer into an access entry node of the first node.
6. The apparatus according to any one of claims 4 to 5, wherein the network topology structure comprises a domain name resolution layer, a load layer and a front-end processor layer;
the first acquisition module is used for acquiring domain name address information from the node of the domain name resolution layer to each node of the load layer and acquiring server address information from each node of the load layer to each node of the front-end processor layer.
7. A network connectivity status detecting apparatus, comprising a processor, a memory and a computer program stored on the memory and operable on the processor, wherein the computer program, when executed by the processor, implements the steps in the network connectivity status detecting method according to any one of claims 1 to 3.
8. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the network connectivity status detection method according to any one of claims 1 to 3.
CN201910968454.0A 2019-10-12 2019-10-12 Network connectivity state detection method and device Active CN112653587B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910968454.0A CN112653587B (en) 2019-10-12 2019-10-12 Network connectivity state detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910968454.0A CN112653587B (en) 2019-10-12 2019-10-12 Network connectivity state detection method and device

Publications (2)

Publication Number Publication Date
CN112653587A CN112653587A (en) 2021-04-13
CN112653587B true CN112653587B (en) 2022-10-21

Family

ID=75343794

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910968454.0A Active CN112653587B (en) 2019-10-12 2019-10-12 Network connectivity state detection method and device

Country Status (1)

Country Link
CN (1) CN112653587B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104394082A (en) * 2014-11-20 2015-03-04 重庆金美通信有限责任公司 Neighbor discovery and link status detecting method applicable to broadcast link
CN105931670A (en) * 2016-04-22 2016-09-07 西安电子科技大学 Nand Flash memory array based storage control apparatus

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7269135B2 (en) * 2002-04-04 2007-09-11 Extreme Networks, Inc. Methods and systems for providing redundant connectivity across a network using a tunneling protocol
CN100454849C (en) * 2005-08-05 2009-01-21 华为技术有限公司 Fault detecting method in next generation network
NZ589088A (en) * 2008-05-09 2013-02-22 Accenture Global Services Ltd Monitoring system for a power distribution grid with communication of sensed conditions
CN101931982A (en) * 2010-08-18 2010-12-29 北京星网锐捷网络技术有限公司 Network failure positioning method and device
CN102308526B (en) * 2011-07-06 2013-04-24 华为技术有限公司 Method, convergence device and system for realizing connected detection
CN102594613B (en) * 2012-04-01 2015-04-08 华为技术有限公司 Method and device for failure diagnosis of multi-protocol label switching virtual private network (MPLS VPN)
CN103378980B (en) * 2012-04-16 2016-09-28 河南山谷网安科技股份有限公司 A kind of layer network alarm and business correlation analysis and device
CN103124225B (en) * 2012-12-19 2015-12-02 杭州华为数字技术有限公司 The initialized detection method of multinode and device, system
CN105634857A (en) * 2014-11-26 2016-06-01 中兴通讯股份有限公司 Link connectivity detecting method and device
CN106330506B (en) * 2015-06-29 2019-08-16 华为技术有限公司 A kind of traffic failure localization method and device
US10200382B2 (en) * 2015-11-05 2019-02-05 Radware, Ltd. System and method for detecting abnormal traffic behavior using infinite decaying clusters
CN106571967A (en) * 2016-11-09 2017-04-19 上海斐讯数据通信技术有限公司 Multi-level network topology management method and device
CN108156007B (en) * 2016-12-05 2021-02-26 北京国双科技有限公司 Attribution method and device for network service fault
CN109039763A (en) * 2018-08-28 2018-12-18 曙光信息产业(北京)有限公司 A kind of network failure nodal test method and Network Management System based on backtracking method
CN110149223B (en) * 2019-05-10 2022-04-15 中国联合网络通信集团有限公司 Fault positioning method and equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104394082A (en) * 2014-11-20 2015-03-04 重庆金美通信有限责任公司 Neighbor discovery and link status detecting method applicable to broadcast link
CN105931670A (en) * 2016-04-22 2016-09-07 西安电子科技大学 Nand Flash memory array based storage control apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"电网故障诊断方法及其系统架构研究";王磊,;《中国博士学位论文全文数据库 (工程科技Ⅱ辑)》;20131015;全文 *

Also Published As

Publication number Publication date
CN112653587A (en) 2021-04-13

Similar Documents

Publication Publication Date Title
US20190140890A1 (en) Method and system of a dynamic high-availability mode based on current wide area network connectivity
US8811152B2 (en) System and method to support secondary channel connection from residential gateway to service provider network
WO2021128977A1 (en) Fault diagnosis method and apparatus
CN108306747B (en) Cloud security detection method and device and electronic equipment
CN113347037B (en) Data center access method and device
US8051202B2 (en) Method and apparatus for providing alarm correlation for a gateway router
CN112291075A (en) Network fault positioning method and device, computer equipment and storage medium
CN103634166B (en) Equipment survival detection method and equipment survival detection device
CN113852506A (en) Fault processing method and device, electronic equipment and storage medium
US10505844B2 (en) Network element federation controller and forwarding box
CN113949649B (en) Fault detection protocol deployment method and device, electronic equipment and storage medium
CN113162815B (en) Flow switching method, system, equipment and medium
CN112653587B (en) Network connectivity state detection method and device
US20090238077A1 (en) Method and apparatus for providing automated processing of a virtual connection alarm
CN111385157A (en) Server abnormity detection method and device
CN115102865A (en) Network security device topology management method and system
CN107864057B (en) Online automatic checking and alarming method based on networking state
CN111600769A (en) Site detection method and device and storage medium
TWI831540B (en) How to block signaling storm
KR100623554B1 (en) Intrusion Tolerant Technologies of DNS and DHCP Server for Survival of Internet Service
US20100046381A1 (en) Method and apparatus for processing of an alarm related to a frame relay encapsulation failure
CN111245643B (en) IT asset monitoring method and system
US11477069B2 (en) Inserting replay events in network production flows
TW201824896A (en) Surveying system and surveying method of wireless network service using a group probing module and an analyzing module to automatically survey whether the wireless network gateway malfunctions
US20230208705A1 (en) Method and system for analysing virtual network health, and network device

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