CN111934936B - Network state detection method and device, electronic equipment and storage medium - Google Patents

Network state detection method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111934936B
CN111934936B CN202010949872.8A CN202010949872A CN111934936B CN 111934936 B CN111934936 B CN 111934936B CN 202010949872 A CN202010949872 A CN 202010949872A CN 111934936 B CN111934936 B CN 111934936B
Authority
CN
China
Prior art keywords
network
routing
gateway nodes
gateway
node
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
CN202010949872.8A
Other languages
Chinese (zh)
Other versions
CN111934936A (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.)
Guangzhou Huya Technology Co Ltd
Original Assignee
Guangzhou Huya 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 Guangzhou Huya Technology Co Ltd filed Critical Guangzhou Huya Technology Co Ltd
Priority to CN202010949872.8A priority Critical patent/CN111934936B/en
Publication of CN111934936A publication Critical patent/CN111934936A/en
Application granted granted Critical
Publication of CN111934936B publication Critical patent/CN111934936B/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
    • H04L43/0823Errors, e.g. transmission errors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/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

Abstract

The embodiment of the application provides a network state detection method, a network state detection device, electronic equipment and a storage medium, and relates to the technical field of network detection. The method comprises the following steps: selecting two target gateway nodes from the SDWAN networking; obtaining an IP routing path at a designated moment according to the network routing data corresponding to the target gateway node; acquiring network health data of the IP routing path, and associating the network health data on the IP routing path to show the network state between the target gateway nodes; wherein the network health data includes network delay and packet loss rate of tunnels established between all gateway nodes in the IP routing path. According to the technical scheme, the network connection conditions of two gateway nodes connected in a SDWAN networking communication mode can be monitored and checked; meanwhile, the purpose of rapidly positioning the communication faults of the SDWAN networking can be realized.

Description

Network state detection method and device, electronic equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of network detection, in particular to a network state detection method, a network state detection device, electronic equipment and a storage medium.
Background
Large networking built based on SDWAN (Software Defined Networking in a Wide Area Network, software defined wide area network) typically has dynamic changes in a large number of network nodes, which are typically due to factors of increase or decrease of network nodes, change of network configuration, change of network transmission state, and may cause jitter of the network internal environment of the SDWAN networking and even change of network topology. Therefore, when network problems in the SDWAN networking can be found in time through the detection of the network state, especially when a fault state is encountered, the fault gateway node can be rapidly positioned, and the timely repair of the network is facilitated.
Currently, the detection modes of the network state are as follows: (1) The general monitoring framework tool, such as zabbix, grafana, obtains the network status information graph after simple configuration. However, this method is limited to the data collection of index type, and it is not possible to quickly find out a faulty node on the transmission link when a fault occurs. (2) The point-to-point failure is troubleshooted using command line tools, such as ping, netstat, traceroute. However, since the architecture of SDWAN networking is complex and the network environment is frequently changing, command line tools are also not applicable. Moreover, the command line tool is strongly dependent on a terminal machine, the authority is difficult to control, and the man-machine interaction is complex. The existing network state detection mode is difficult to detect the network state of each gateway node in real time, is unfavorable for monitoring the network state of networking, and is difficult to locate and troubleshoot a fault gateway and an IP routing path in time particularly when faults occur.
Disclosure of Invention
In order to solve the technical problem that the network state of each gateway node is inconvenient to detect in real time, the embodiment of the application provides a network state detection method, a device, electronic equipment and a storage medium.
In a first aspect, an embodiment of the present application provides a network status detection method, including the following steps:
selecting two target gateway nodes from the SDWAN networking;
obtaining an IP routing path at a designated moment according to the network routing data corresponding to the target gateway node;
acquiring network health data of the IP routing path, and associating the network health data on the IP routing path to show the network state between the target gateway nodes;
wherein the network health data includes network delay and packet loss rate of tunnels established between all gateway nodes in the IP routing path.
In an alternative embodiment of the first aspect, before the step of selecting two target gateway nodes from the SDWAN networking, the method further comprises:
collecting network health data and network routing data from each network node through a log collector; and the network health data and the network routing data are collected by all the gateways and are reported to the log collector at regular time for cleaning and storing in a database.
In an optional embodiment of the first aspect, the step of obtaining the IP routing path at the designated time according to the network routing data corresponding to the target gateway node includes:
and obtaining IP routing paths of the two target gateway nodes by using an IP routing algorithm according to the network routing data reported by the two target gateway nodes.
In an alternative embodiment of the first aspect, the step of selecting two target gateway nodes from the SDWAN networking includes:
the gateway node designates an initial gateway node and a destination gateway node for data transmission in the SDWAN networking.
In an optional embodiment of the first aspect, the step of obtaining IP routing paths of the two target gateway nodes by using an IP routing algorithm according to the network routing data reported by the two target gateway nodes includes:
acquiring IP address information of the initial gateway node and the target gateway node to form data packet information transmitted between the initial gateway node and the target gateway node;
acquiring IP address information of a corresponding target gateway node from the data packet information, and matching with IP routing paths of other gateway nodes recorded by a routing table of the current gateway node to acquire IP address information of a next gateway node until the next gateway node is the target gateway node;
according to gateway nodes obtained by sequential matching, an IP routing path from the initial node to the target node is formed;
the routing table is used for recording the path information from the current gateway node to other gateway nodes.
In an optional embodiment of the first aspect, the step of obtaining network health data of the IP routing path includes:
acquiring network health data of tunnel communication of every two adjacent gateway nodes in the IP routing path;
wherein the network health data includes network delay time and packet loss rate.
In an optional embodiment of the first aspect, the step of obtaining network health data of the IP routing path, and associating the network health data on the IP routing path to show a network state between the target gateway nodes includes:
taking network delay time and/or packet loss rate as preset marking conditions of the network state;
obtaining network delay time and/or packet loss rate of the corresponding two adjacent gateway nodes according to the network health data of each two adjacent gateway nodes;
and according to the preset marking conditions, marking and displaying the network state between every two adjacent gateway nodes.
In an optional embodiment of the first aspect, the network state detection method further includes:
and performing fault detection on each gateway node of the SDWAN networking, and selecting the gateway node with fault from the SDWAN networking as a target gateway node when the fault occurs.
In an optional embodiment of the first aspect, the step of performing fault detection on each network node of the SDWAN networking includes:
and acquiring network health data and network routing data stored in the database through a log analyzer, calling the log analyzer to perform real-time network fault analysis and monitoring, determining a target gateway node with faults, and displaying the fault network state of the target gateway node in an alarm identification mode.
In an optional embodiment of the first aspect, the network state detection method further includes:
extracting network health data and network routing data of a corresponding gateway node in the SDWAN networking from the database;
acquiring the time stamps of the network health data and the network routing data;
and associating the network health data on the IP routing paths of the corresponding gateway nodes according to the time stamps so as to show the network states of all gateway nodes in the SDWAN networking at each time point.
In a second aspect, an embodiment of the present application provides a network status detection apparatus, including:
a target gateway node selecting module for selecting two target network nodes from the SDWAN networking;
the IP route path acquisition module is used for acquiring an IP route path at a designated moment according to the network route data corresponding to the target gateway node;
the network state display module is used for acquiring the network health data of the IP routing path and associating the network health data on the IP routing path so as to display the network state between the target gateway nodes;
wherein the network health data includes network delay and packet loss rate of tunnels established between all gateway nodes in the IP routing path.
In a third aspect, an electronic device is provided, the electronic device comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: the network state detection method provided by implementing the first aspect of the embodiments of the present application is performed.
In a fourth aspect, a computer readable storage medium is provided, where a computer program is stored, where the program is executed by a processor to implement the network state detection method provided in the first aspect of the embodiment of the present application.
The beneficial effects that technical scheme that this application embodiment provided brought are:
according to the network state detection method provided by the embodiment of the application, the network health data are associated with the IP routing paths obtained through calculation of the two target gateway nodes in the SDWAN, so that the network states of the two target gateway nodes can be clearly displayed, and the network connection conditions of the two gateway nodes connected in a communication mode of the SDWAN are conveniently monitored and checked; meanwhile, the communication fault of the SDWAN networking can be rapidly positioned so as to remove the fault in time and repair the network in time.
Additional aspects and advantages of embodiments of the application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of embodiments of the application.
Drawings
The foregoing and/or additional aspects and advantages of embodiments of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, wherein:
fig. 1 is a schematic view of an application environment of a network state detection method according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a network state detection method according to an embodiment of the disclosure;
fig. 3 is a display interface of a gateway node according to an embodiment of the disclosure;
fig. 4 is a schematic flowchart of step S230 in the embodiment disclosed in the present application;
fig. 5 is a schematic structural diagram of a network status detection device according to an embodiment disclosed in the present application;
fig. 6 is a schematic structural diagram of an electronic device for repairing an exception of an inter-process communication according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are exemplary only for the purpose of illustrating the present application and are not to be construed as limiting the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. The term "and/or" as used herein includes all or any element and all combination of one or more of the associated listed items.
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a schematic view of an application environment of a network state detection method according to an embodiment of the disclosure. The execution basis in this embodiment is an SDWAN networking, as shown in fig. 1. In this embodiment, the architecture design of the SDWAN networking is implemented using the BGP/FOU protocol. The SDWAN networking comprises at least a control center and a plurality of gateways, and the SDWAN networking exists in the form of a control center node and gateway nodes. The control center node issues configuration to the network node and configures communication connection of each gateway node in the whole network. Under the configuration of the control center node, tunnels are established between each gateway node of the same SDWAN networking and other gateway nodes for communication, and data transmission is realized among the gateways according to transmission requirements. According to the illustration of fig. 1, a corresponding tunnel is established between two gateway nodes identified with double-headed solid arrows, and data can be directly transferred between the two gateways. If the gateway 1 and the gateways 2, 3, 4 are respectively identified by double-headed solid arrows, it means that the gateway 1 can directly transmit data with the gateways 2, 3, 4.
In this embodiment, the gateway corresponding to each gateway node is disposed in the same machine room, and each gateway is responsible for forwarding all data output or input by the respective machine room. Each gateway may be located in a geographical area, such as a city, and is responsible for data interaction and data processing in the corresponding geographical area. In this embodiment, the SDWAN networking may be used to build business data centers, the internet, or cloud services for an enterprise network or enterprise, such as configuring and processing live data generated by a live application throughout a place. And the gateway corresponding to each gateway node can be directly connected with the clients in the corresponding geographic areas and establish communication connection with the clients in other geographic areas. The same gateway forms a local area network with clients in the corresponding geographic area to which it is connected, while the gateway forms a wide area network with other gateways and corresponding clients of the SDWAN networking.
Referring to fig. 2, fig. 2 is a flow chart of a network state detection method according to an embodiment of the disclosure. According to fig. 2, the network state detection method provided in the embodiment of the present application includes the following steps:
s210, two target gateway nodes are selected from the SDWAN networking.
In the SDWAN networking shown in fig. 1, the control center node may select any two gateway nodes corresponding to the two gateways as the target gateway node. Wherein, the tunnel is established or not directly established between the two target gateway nodes.
The two target gateway nodes can acquire two gateway nodes or two gateway nodes in a set of gateway nodes of a certain block according to the checking requirement of the network state; or the requirement of comprehensive inspection can be met, and all network nodes at a certain moment in the SDWAN networking are arranged and combined to obtain all the gateway nodes combined pairwise.
S220, obtaining the IP routing path at the appointed moment according to the network routing data corresponding to the target gateway node.
The SDWAN networking provided in this embodiment may change due to the increase or decrease of gateway nodes, the change of network states between a certain gateway node or paths of two gateway nodes in the networking, the change of configuration of a control center node, and the like. Therefore, even two identical target gateway nodes, the IP routing paths corresponding to different times are not necessarily identical.
When the selected target gateway node in step S210 establishes a tunnel with other gateway nodes to perform communication, corresponding network routing data is formed, where the network routing data includes IP address information of itself and other gateway nodes that establish tunnels. And obtaining a data transmission path between gateway nodes according to the network routing data. Combining paths between at least two gateway nodes can result in an IP routing path between the two gateway nodes at the specified time. The IP routing path may be an IP routing path formed by directly connecting the two target gateway nodes provided above, or may be an IP routing path formed by indirectly connecting communication connections of a plurality of other gateway nodes.
S230, acquiring network health data of the IP routing path, and associating the network health data on the IP routing path to show the network state between the target gateway nodes.
The control center is connected with at least two gateway nodes through the IP routing path obtained in step S220. The network routing data of each gateway node comprises network quality information of a tunnel comprising the gateway node, and the IP routing paths obtained by the two target gateway nodes comprise corresponding network health data. The network health data includes network delays and packet loss rates for tunnels established between all gateway nodes in the IP routing path. The network delay and packet loss rate determinants include factors such as the network quality of the gateway node involved, and the network status of the tunnel in the IP routing path.
Therefore, in the IP routing path, the gateway nodes contain corresponding network health data. In this step, the network health data is associated with the corresponding IP routing path. The association method may be to mark the corresponding network health data on the corresponding IP routing path, or display the IP routing path in other manners such as symbols or wires capable of reflecting the network health data, so as to obtain the network health data between the target gateway nodes, and obtain the network status between the target gateway nodes.
According to the network state detection method provided by the embodiment of the application, network health data are associated to the IP routing paths obtained by calculation of the two target gateway nodes in the SDWAN networking, so that the network states of the two target gateway nodes can be clearly displayed, and the network connection conditions of the two gateway nodes in communication connection of the SDWAN networking can be conveniently monitored and checked; meanwhile, the communication fault of the SDWAN networking can be rapidly positioned so as to remove the fault in time and repair the network in time.
As shown in fig. 1, the architecture of the SDWAN networking provided above may further include a log collector and a database connected to the log collector.
The log collector is in communication connection with each gateway node of the SDWAN networking and is used for acquiring network health data and network routing data collected and reported by each network.
Before the step S210, the network state detection method provided in this embodiment further includes: acquiring network health data and network routing data through a log collector; and the network health data and the network routing data are collected by all the gateways and are reported to the log collector at regular time for cleaning and storing in a database.
The gateway corresponding to each network node generates corresponding network routing data while in communication connection. And the network health data corresponding to the IP routing path can be obtained from the network nodes in the network health data.
In order to meet the real-time network state checking requirement, the control center acquires network routing data acquired and regularly reported by each network and network health data of an IP routing path where the network routing data are located through a log acquisition device. The log collector is used for cleaning the data and storing the data in a database.
In this embodiment, the network routing data exists in the form of routing messages, and the network health data exists in the form of health messages. After the log collector acquires the routing message and the health message, the routing message and the health message are analyzed to obtain network health data of the corresponding IP routing path at the appointed moment and network routing data of the corresponding gateway node, and the network health data and the network routing data of the corresponding gateway node are stored in a database for a long time at the appointed moment. So that the change of the network state can be detected according to the historical data of the SDWAN networking later, and the network fault can be conveniently checked.
For the above step S220, it can further include: and obtaining IP routing paths of the two target gateway nodes by using an IP routing algorithm according to the network routing data reported by the two target gateway nodes.
In this embodiment, data transmission can be performed directly between two selected target gateway nodes, and data transmission can be performed through associated nodes other than the two target gateway nodes. For example, the gateway node shown in fig. 1 is taken as a gateway 1 and a gateway 4 in the illustration as two selected target network nodes, and data can be directly transmitted between the gateway 1 and the gateway 4, or can be sequentially transmitted from a path of the gateway 1-gateway 2-gateway 3-gateway 4. That is, between two target gateway nodes, multiple IP routing paths can be formed. But the gateway and network states at a given moment change such that different IP routing paths have different transmission costs. The transmission cost does not necessarily depend on the number of gateway nodes comprised by the IP routing path. That is, the transmission cost of the IP routing path that does not contain the smallest number of target gateway nodes is the smallest.
In this embodiment, the next gateway node for data transmission is obtained by using the IP routing algorithm according to the network routing data reported by each target gateway node and establishing a tunnel with other gateway nodes and the IP routing path with the lowest communication cost. According to the IP routing algorithm, the IP routing path with the lowest communication cost of the current gateway node can be found in sequence, the next gateway node for data transmission is obtained continuously until the found next gateway node is another target network node, and therefore the IP routing paths of the two target gateway nodes are obtained at the appointed moment.
In the process of transmitting data by the two target gateway nodes in this embodiment, there is a sequence of data acquisition, so for step S210, it may further include: and designating an initial gateway node and a destination network node for data transmission in the SDWAN networking at the network node.
Referring to fig. 3, fig. 3 is a display interface of a gateway node provided in an embodiment of the disclosure. Square point 1 and square point 2 shown in fig. 3 are the originating gateway node and the destination gateway node, respectively, in this embodiment. The IP address of the originating gateway node is 10.13.13.13, and the IP address of the destination gateway node is 10.10.10.10. Before transmitting the data, forming the data into a data packet, and forming the corresponding IP address information of the initial gateway node and the destination gateway node into data packet information, such as: src 10.13.13.13, target 10.10.10.10. And transmitting the data packet carrying the data packet information so that the data packet can be transmitted to a corresponding destination gateway node according to the data packet information.
And obtaining the next gateway node of the current gateway node of the data packet by using an IP routing algorithm. As shown in fig. 3, if the current gateway node is a square node 1, a routing table of the gateway node of the square node 1 is obtained, and the two obtained data records are respectively: mask 10.10.10.Xxx, dest 10.123.123.32 and mask 10.10.11.255, dest 10.123.123.31. According to the IP address information of the destination network node, the matching degree of the two data records is higher, wherein the mask is 10.10.10.255, the dest is 10.123.123.32, the gateway node which is the next gateway node of the square node 1 is the gateway node of the IP address information dest is 10.123.123.32 according to the data records, and the data packet is forwarded to the gateway node with the IP address information of 10.123.123.32. In fig. 3, the gateway node whose IP address information is 10.123.123.32 is set as the round node 1. Meanwhile, the information forwarded by the current route is stored in the routing table of the gateway node of the square node 1.
During the transmission of the data packet, no matter which gateway node is forwarded to, the data packet information is unchanged, namely, src is 10.13.13.13, target is 10.10.10.10, so as to be forwarded to the destination gateway node.
After the first forwarding of the data packet is completed, the round node 1 is the current gateway node, and two data records obtained from the routing table are respectively: mask 10.10.10.Xxx, dest 10.123.123.60 and mask 10.10.11.Xxx, dest 10.123.123.61. Similarly, according to the IP address information 10.10.10.10 of the destination gateway node of the packet, the IP address information of the next gateway node of the round node 1 is 10.123.123.60, and in fig. 3, the gateway node is set as the round node 2. Meanwhile, the information of the second route forwarding is stored in the routing table of the gateway node of the round node 1.
After the second forwarding of the data packet is completed, the round node 2 is the current gateway node, and two data records obtained from the routing table are respectively: mask 10.10.10.255, dest 10.10.10.10 and mask 10.10.11.255, dest 10.10.10.11. According to the same way, the IP address information of the next gateway node of the round node 2 is 10.10.10.10, namely the next gateway node of the round node 2 is obtained as the target gateway node, and the data packet is transmitted to the target gateway node from the network node of the round node 2 while the information of the route forwarding is stored in the routing table of the gateway node of the round node 2. In fig. 3, the destination gateway node is set as square node 2.
And obtaining the IP routing path of the data packet from the initial gateway node to the target gateway node according to the transmission track comprising the gateway node.
On the basis of the embodiment of obtaining the IP routing path, the step of obtaining the network health data of the IP routing path in the step S230 may specifically include: and acquiring network health data of the IP routing paths of every two adjacent gateway nodes in the IP routing paths.
Referring to fig. 4, fig. 4 is a specific flowchart illustrating step S230 in the embodiment disclosed in the present application.
On this basis, step S230 may further include:
s231, taking network delay time and/or packet loss rate as preset marking conditions of the network state;
s232, obtaining network delay time and/or packet loss rate of the two adjacent gateway nodes according to the network health data of each two adjacent gateway nodes;
s233, according to the preset marking conditions, marking and displaying the network state between every two adjacent gateway nodes.
In steps 231-233, the control center presets a marking condition for the network state with one or more parameters of the network health data, so as to mark the network state at a specified time according to the detected result.
The data packet is transmitted between two target gateway nodes, and is transmitted between every two adjacent gateway nodes in the determined IP routing path according to the sequence, so that the network health data of the IP routing path between every two adjacent gateway nodes can be respectively obtained when the transmission condition of the whole IP routing path between the two target gateway nodes is obtained. In this embodiment, the network delay time and/or the packet loss rate of the IP routing path between every two adjacent gateway nodes may be obtained.
And corresponding to the packet loss rates of different degrees, marking by connecting lines with different colors or different thicknesses. Each connecting line is connected according to two adjacent gateway nodes of the determined IP routing path, and the two adjacent gateway nodes are connected by corresponding color connecting lines according to the packet loss rate of the corresponding two adjacent gateway nodes for transmitting the data packets.
As shown in fig. 3, the packet loss rates for different levels of packet loss rate are marked with links of different thicknesses. If the packet loss rate between the square node 1 and the round node 1 is 3%, the preset range of [0,5% ] of the packet loss rate is satisfied, and the identification is performed by the finest connecting line. The packet loss rate between the round node 2 and the square node 1 is 35%, the preset range of the packet loss rate [30%,100% ] is satisfied, and the route diagram of the IP routing path is obtained by marking with the coarsest connecting line.
And obtaining the loss condition of the corresponding IP routing path through the marks of the two adjacent gateway nodes on the IP routing path. According to the above embodiment, if the IP routing path is composed of a plurality of gateway nodes, it is possible to detect a loss situation between different gateway nodes. If the different transmission nodes positioned in the same gateway on the IP route path are obtained according to the IP address information, the transmission nodes are connected with each other. The corresponding transmission nodes can be connected through the connection lines in the preset form, and the network states of different parts of the wide area network and the local area network in the IP routing path can be easily confirmed.
In this embodiment, corresponding transmission times are preset for two adjacent transmission nodes (including a network node) in the IP routing path, and corresponding network delay times are obtained according to the IP address information of the corresponding transmission nodes. The network delay time of the IP routing path formed by two adjacent transmission nodes comprises the network delay time of the IP routing path positioned before the network delay time.
On the basis of the path diagram of the IP routing path, the network delay condition between the transmission nodes of the IP routing path can be shown, so as to facilitate the network state of the data transmission process.
The network state detection method provided by the application can also be used for positioning the fault condition of the network.
By detecting, when a fault occurs in two specific gateway nodes, and possibly or has influence on transmission, the two gateway nodes are taken as target gateway nodes, and the network state between the target gateway nodes is detected so as to locate the fault of the IP routing path.
As shown in fig. 1, the connection to the SDWAN networking in the figure further includes a log analyzer. The log analyzer establishes signal connection with the database, obtains information of different transmission nodes in the SDWAN networking acquired by the log acquirer through the database, and analyzes corresponding network states. In this embodiment, the fault information collected from the SDWAN networking may be used as a trigger condition, and the log analyzer is triggered and invoked to perform fault and monitoring, specifically, two gateway nodes with faults are determined through network health data and network routing data of all gateway nodes stored in a database, and the two gateway nodes are used as two target gateway nodes at corresponding moments, and the fault network state of the target gateway node is displayed in an alarm identification manner.
Then, according to the network state detection method provided above, network state detection is performed on the two target gateway nodes to obtain a path diagram showing the network state of the IP routing path, so that the fault part and the fault cause in the IP routing path between the two target gateway nodes can be easily located. In this embodiment, for two target gateway nodes with faults, a path diagram alarm identification mode of an IP routing path may be displayed; or if the detected network health data of the two adjacent gateway nodes exceeds the preset range, displaying the corresponding IP routing path on the path diagram of the IP routing path in an alarm identification mode.
And collecting the network health data and the network routing data generated by all gateway nodes through a log collector, and storing the network health data and the network routing data into a database. Moreover, the network health data and the network routing data carry time stamps corresponding to the generation time of each data.
When a network state detection request of a gateway node at a specific moment is received, a timestamp of corresponding network health data and network routing data is obtained from a database, the corresponding network health data and the network routing data are obtained, and the network health data and the network routing data are associated to an IP routing path between corresponding network nodes. The IP routing path may be a tunnel between two adjacent gateway nodes of the IP routing path mentioned in the above embodiments. If the IP routing path comprises more than two gateway nodes, decomposing the IP routing path into a plurality of tunnels between two adjacent gateway nodes, obtaining corresponding network health data and network routing data for each tunnel, and associating the network health data and the network routing data on the corresponding tunnels so as to show the network state of the corresponding gateway nodes in the SDWAN networking at the corresponding moment.
According to the detection steps, the method can be used for replaying and rewinding network states of each gateway node at different moments so as to further perform fault location on the SDWAN networking, and the aim of monitoring is achieved according to network state changes at different moments.
Based on the same application concept as the network state detection method, the embodiment of the application further provides a network state detection device 500. Referring to fig. 5, fig. 5 is a schematic structural diagram of a network status detection device according to an embodiment of the disclosure.
The network state detection apparatus 500 includes:
a target gateway node selecting module 510, configured to select two target gateway nodes from the SDWAN networking;
an IP routing path obtaining module 520, configured to obtain an IP routing path at a specified time according to network routing data corresponding to the target gateway node;
a network state display module 530, configured to obtain network health data of the IP routing path, and associate the network health data on the IP routing path to display a network state between the target network nodes;
wherein the network health data includes network delay and packet loss rate of tunnels established between all gateway nodes in the IP routing path.
According to the network state detection device 500 provided by the embodiment of the application, the network health data are associated with the IP routing paths obtained through calculation of the two target gateway nodes in the SDWAN, so that the network states of the two target gateway nodes can be clearly displayed, and the network connection conditions of the two gateway nodes in communication connection of the SDWAN are conveniently monitored and checked; meanwhile, the communication fault of the SDWAN networking can be rapidly positioned by the method, so that the fault can be removed in time, and the network can be repaired in time.
Based on the same principle as the method shown in the embodiment of the present application, there is also provided an electronic device in the embodiment of the present application, where the electronic device may include, but is not limited to: a processor and a memory; a memory for storing computer operating instructions; and the processor is used for executing the method shown in the embodiment by calling the computer operation instruction. Compared with the prior art, the electronic equipment in the embodiment of the application can monitor and look for the network connection condition of two gateway nodes connected in the SDWAN networking communication, and can realize the purpose of rapidly positioning the communication fault of the SDWAN networking.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device for detecting a network status according to an embodiment of the present application.
In an alternative embodiment, an electronic device is provided, as shown in fig. 6, the electronic device 600 shown in fig. 6 includes: a processor 601 and a memory 603. Wherein the processor 601 is coupled to the memory 603, e.g. via a bus 602. Optionally, the electronic device 600 may also include a transceiver 604. It should be noted that, in practical applications, the transceiver 604 is not limited to one, and the structure of the electronic device 600 is not limited to the embodiment of the present application.
Among them, electronic devices include, but are not limited to: mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 6 is only an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present application.
The present application provides a computer readable storage medium having a computer program stored thereon, which when run on a computer, causes the computer to perform the corresponding method embodiments described above. Compared with the prior art, the computer readable storage medium in the embodiment of the application can monitor and check the network connection condition of two gateway nodes connected in the SDWAN networking communication, and can realize the purpose of rapidly positioning the communication fault of the SDWAN networking.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer-readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to perform the methods shown in the above-described embodiments.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the flowcharts of the figures may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily being sequential, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
The foregoing description is only of the preferred embodiments of the present application and is presented as a description of the principles of the technology being utilized. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this application is not limited to the specific combinations of features described above, but it is intended to cover other technical solutions formed by any combination of features described above or their equivalents without departing from the spirit of the disclosure. Such as the above-described features and technical features disclosed in the present application (but not limited to) having similar functions are mutually replaced.

Claims (12)

1. A network state detection method, comprising the steps of:
selecting two target gateway nodes from the SDWAN networking;
according to the network routing data reported by the two target gateway nodes, an IP routing algorithm is utilized to obtain IP routing paths of the two target gateway nodes;
acquiring network health data of tunnels of every two adjacent gateway nodes in the IP routing path, and associating the network health data on the tunnels of every two adjacent gateway nodes in the IP routing path so as to show the network state of the tunnels of every two adjacent gateway nodes between the target gateway nodes;
wherein the network health data includes network delay and packet loss rate of tunnels established between all gateway nodes in the IP routing path.
2. The network state detection method of claim 1, further comprising, prior to the step of selecting two target gateway nodes from the SDWAN networking:
collecting network health data and network routing data from each network node through a log collector; and the network health data and the network routing data are collected by all the gateways and are reported to the log collector at regular time for cleaning and storing in a database.
3. The network state detection method according to claim 1, wherein the step of selecting two target gateway nodes from the SDWAN networking comprises:
an initial gateway node and a destination gateway node for data transmission in the SDWAN networking are designated in the gateway node.
4. The network state detection method according to claim 3, wherein the step of obtaining IP routing paths of the two target gateway nodes by using an IP routing algorithm according to the network routing data reported by the two target gateway nodes includes:
acquiring IP address information of the initial gateway node and the target gateway node to form data packet information transmitted between the initial gateway node and the target gateway node;
acquiring IP address information of a corresponding destination gateway node from the data packet information, and matching with IP routing paths of other gateway nodes recorded by a routing table of the current gateway node to obtain IP address information of a next gateway node until the next gateway node is the destination gateway node;
according to the gateway nodes obtained by sequential matching, an IP routing path from the initial node to the destination node is formed;
the routing table is used for recording path information from the current gateway node to other gateway nodes.
5. The network state detection method of claim 1, wherein,
the network health data includes network delay time and packet loss rate.
6. The network state detection method according to claim 5, the step of acquiring network health data of tunnel communications of each adjacent two gateway nodes in the IP routing path, associating the network health data on the tunnel communications of each adjacent two gateway nodes in the IP routing path to exhibit network states of a plurality of the tunnel communications between the target gateway nodes, comprising:
taking network delay time and/or packet loss rate as preset marking conditions of the network state;
according to the network health data of the tunnel communication of each two adjacent gateway nodes, network delay time and/or packet loss rate of the two corresponding adjacent gateway nodes are obtained;
and according to the preset marking condition, marking and displaying the network state of the tunnel communication between every two adjacent gateway nodes.
7. The network state detection method according to claim 2, further comprising:
and performing fault detection on each gateway node of the SDWAN networking, and selecting the gateway node with fault from the SDWAN networking as a target gateway node when the fault occurs.
8. The network status detection method according to claim 7, wherein the step of performing fault detection on each gateway node of the SDWAN networking comprises:
and acquiring network health data and network routing data stored in the database through a log analyzer, calling the log analyzer to perform real-time network fault analysis and monitoring, determining a target gateway node with faults, and displaying the fault network state of the target gateway node in an alarm identification mode.
9. The network state detection method of claim 8, further comprising:
extracting network health data and network routing data of a corresponding gateway node in the SDWAN networking from the database;
acquiring the time stamps of the network health data and the network routing data;
and associating the network health data on the IP routing paths of the corresponding gateway nodes according to the time stamps so as to show the network states of all gateway nodes in the SDWAN networking at each time point.
10. A network state detection apparatus, comprising:
a target gateway node selecting module for selecting two target gateway nodes from the SDWAN networking;
the IP routing path acquisition module is used for acquiring the IP routing paths of the two target gateway nodes by using an IP routing algorithm according to the network routing data reported by the two target gateway nodes;
a network state display module, configured to obtain network health data of tunnels of every two neighboring gateway nodes in the IP routing path, and associate the network health data on the tunnels of every two neighboring gateway nodes in the IP routing path, so as to display a network state of the tunnels of every two neighboring gateway nodes between the target gateway nodes;
wherein the network health data includes network delay and packet loss rate of tunnels established between all gateway nodes in the IP routing path.
11. An electronic device, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: a network state detection method according to any of claims 1-9.
12. A computer readable storage medium having stored thereon a computer program, characterized in that the program, when executed by a processor, implements the network state detection method of any of claims 1-9.
CN202010949872.8A 2020-09-10 2020-09-10 Network state detection method and device, electronic equipment and storage medium Active CN111934936B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010949872.8A CN111934936B (en) 2020-09-10 2020-09-10 Network state detection method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010949872.8A CN111934936B (en) 2020-09-10 2020-09-10 Network state detection method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111934936A CN111934936A (en) 2020-11-13
CN111934936B true CN111934936B (en) 2023-07-18

Family

ID=73309722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010949872.8A Active CN111934936B (en) 2020-09-10 2020-09-10 Network state detection method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111934936B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112788060B (en) * 2021-01-29 2023-07-04 北京字跳网络技术有限公司 Data packet transmission method and device, storage medium and electronic equipment
CN116266808A (en) * 2021-12-16 2023-06-20 中移(苏州)软件技术有限公司 Fault processing method and device and computer readable storage medium
CN115037643B (en) * 2022-03-25 2023-05-30 武汉烽火技术服务有限公司 Method and device for collecting and labeling network health state data
CN114844772A (en) * 2022-05-06 2022-08-02 上海欣诺通信技术股份有限公司 Management method and system based on Zabbix monitoring platform
CN117692457B (en) * 2024-01-31 2024-04-16 鹏城实验室 Data transmission method, system, equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025593A (en) * 2009-09-21 2011-04-20 中国移动通信集团公司 Distributed user access system and method
EP2432282A2 (en) * 2005-04-28 2012-03-21 Qualcomm Incorporated Wireless handoffs between multiple wireless networks
CN108933733A (en) * 2018-07-10 2018-12-04 中国联合网络通信集团有限公司 Determination method, apparatus, equipment and the readable storage medium storing program for executing of communication path between gateway
CN110289991A (en) * 2019-05-31 2019-09-27 北京大米科技有限公司 A kind of failure gateway detection method, device, storage medium and terminal
CN110365557A (en) * 2018-03-26 2019-10-22 中兴通讯股份有限公司 A kind of method and device of network interconnection
CN111464446A (en) * 2020-04-08 2020-07-28 广州虎牙科技有限公司 Communication method and device for multi-line server access and server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7159026B2 (en) * 2002-01-31 2007-01-02 Telcordia Technologies, Inc. Service performance correlation and analysis

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2432282A2 (en) * 2005-04-28 2012-03-21 Qualcomm Incorporated Wireless handoffs between multiple wireless networks
CN102025593A (en) * 2009-09-21 2011-04-20 中国移动通信集团公司 Distributed user access system and method
CN110365557A (en) * 2018-03-26 2019-10-22 中兴通讯股份有限公司 A kind of method and device of network interconnection
CN108933733A (en) * 2018-07-10 2018-12-04 中国联合网络通信集团有限公司 Determination method, apparatus, equipment and the readable storage medium storing program for executing of communication path between gateway
CN110289991A (en) * 2019-05-31 2019-09-27 北京大米科技有限公司 A kind of failure gateway detection method, device, storage medium and terminal
CN111464446A (en) * 2020-04-08 2020-07-28 广州虎牙科技有限公司 Communication method and device for multi-line server access and server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
曹利峰." 基于状态包检测的VPN网关的设计与实现".《中国人民解放军信息工程大学》.2005, *

Also Published As

Publication number Publication date
CN111934936A (en) 2020-11-13

Similar Documents

Publication Publication Date Title
CN111934936B (en) Network state detection method and device, electronic equipment and storage medium
US7096264B2 (en) Network analyzer having distributed packet replay and triggering
JP3510658B2 (en) Network analysis method
US8811193B2 (en) Network path discovery and analysis
WO2021128977A1 (en) Fault diagnosis method and apparatus
CN101035037B (en) Method, system and related device for detecting the network communication quality
CN112564964B (en) Fault link detection and recovery method based on software defined network
CN105049299A (en) Detection method and device for time delay state information and network architecture
CN113938407B (en) Data center network fault detection method and device based on in-band network telemetry system
EP2586158B1 (en) Apparatus and method for monitoring of connectivity services
CN101321095A (en) Communication system implementing link measurement and its link measuring method
CN112260922B (en) Method and system for quickly positioning network loop problem
US20130042020A1 (en) Quick Network Path Discovery
WO2007016830A1 (en) A method and client side for implementing the detection of dhcp service performance
CN103139014A (en) Method and device for network quality evaluating based on by-pass
US10992562B2 (en) System for network event detection and analysis
JP2005237018A (en) Data transmission to network management system
CN113676723A (en) Non-homologous network video monitoring fault positioning method and device based on Internet of things
US20040158780A1 (en) Method and system for presenting neighbors of a device in a network via a graphical user interface
US8467301B2 (en) Router misconfiguration diagnosis
US8484324B2 (en) Method and apparatus for dial plan debugging
CN105763347A (en) Method for obtaining parameter, network equipment and system
US10904123B2 (en) Trace routing in virtual networks
US20230231773A1 (en) Determining an organizational level network topology
CN112312228B (en) Method, device and storage medium for detecting medium transmission quality index

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