CN109245957B - Network health degree detection method and device - Google Patents

Network health degree detection method and device Download PDF

Info

Publication number
CN109245957B
CN109245957B CN201710556895.0A CN201710556895A CN109245957B CN 109245957 B CN109245957 B CN 109245957B CN 201710556895 A CN201710556895 A CN 201710556895A CN 109245957 B CN109245957 B CN 109245957B
Authority
CN
China
Prior art keywords
detection
network
message
sdn controller
detection message
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
CN201710556895.0A
Other languages
Chinese (zh)
Other versions
CN109245957A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201710556895.0A priority Critical patent/CN109245957B/en
Publication of CN109245957A publication Critical patent/CN109245957A/en
Application granted granted Critical
Publication of CN109245957B publication Critical patent/CN109245957B/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
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Abstract

The invention provides a method and a device for detecting network health, wherein the method comprises the following steps: the SDN controller sends a detection message to a source switch located in an Overlay network, wherein the source switch forwards the detection message in a network where the SDN controller is located through one or more switches; the SDN controller receives detection messages sent by the one or more switches and acquires actual transmission paths of the detection messages according to the detection messages; the SDN controller determines the health degree of the network according to the actual transmission path of the detection message and the preset transmission path of the detection message. The problem that the related technology lacks of effective management of the Underray network health degree in the related technology is solved, accurate detection of the network health degree is realized, and effective management of the network is facilitated subsequently.

Description

Network health degree detection method and device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for detecting network health.
Background
In the related art, with the development of network virtualization technology, software defined network (Software Defined Network, abbreviated as SDN) technology gradually matures from concept, and a primary commercial stage is entered. One major application scenario for SDN is the definition of Overlay networks.
Overlay technology refers to "overlaying" a software-defined virtual logical network on a physical network. This logical network is called an Overlay network, and the physical network that carries it is called an Underlay network. The Overlay technology is a technology for constructing a two-layer network of a service (logic) into a three/four-layer network message of a traditional (physical) for transmission, and is a tunneling technology.
The Overlay technology is very important for data centers because of the fact that the cross-data center access is expected to be transparent to upper-layer services, and the fact that services are not interrupted (parameters such as MAC, IP and the like are required to be unchanged) during virtual machine migration.
In view of the importance and the wide range of applications of this technology, the need to know the health of the entire Overlay network is quite urgent. Current industry focus is on whether a network node fails, and on both dimensions of network performance.
The Overlay network belongs to a logical two-layer network, and is shown as a directly connected switch node A, B on the Overlay network topology, and multiple paths may exist on the Underlay network. On this premise, operators may have different plans for network traffic. For example, from the viewpoint of balancing network traffic, a large number of messages with different source and destination IP should be distributed on a plurality of underway paths in a relatively average manner in statistics; from the aspect of ensuring the order preservation of messages in a stream, messages with the same five-tuple (source IP, destination IP, source port, destination port, protocol type) should travel the same underway path; from a traffic priority perspective, high priority traffic should travel a wide, short range underway path. Whether the actual network traffic accords with the plan is an important dimension of the Overlay network health.
Aiming at the problem of lack of an effective method for managing the health degree of an underway network in the related technology, no effective solution exists at present.
Disclosure of Invention
The embodiment of the invention provides a method and a device for detecting network health, which are used for at least solving the problem that the related technology lacks effective management of the health of an underway network.
According to an embodiment of the present invention, there is provided a method for detecting network health, including: a software defined network (Software Defined Network, abbreviated as SDN) controller sends a detection message to a source switch located in an Overlay network Overlay, wherein the source switch forwards the detection message in a network in which the SDN controller is located through one or more switches, and the network includes the Overlay and/or a bearer network Overlay; the SDN controller receives detection messages sent by the one or more switches and acquires actual transmission paths of the detection messages according to the detection messages; and the SDN controller determines the health degree of the network according to the actual transmission path of the detection message and the preset transmission path of the detection message.
Optionally, before the SDN controller sends the detection message to the source switch located in the Overlay network Overlay, the method further includes: and sending a flow table to all switches except the source switch in the network, wherein the flow table is used for indicating the switch to forward the detection message to other switches and sending the detection message to the SDN controller.
Optionally, the SDN controller receives a detection message sent by the one or more switches, including: and receiving the detection messages sent by the one or more switches within preset time.
Optionally, before the SDN controller sends a detection message to a source switch located in an Overlay network Overlay, the SDN controller sets an identifier in the detection message.
Optionally, the SDN controller receives a detection message sent by the one or more switches, including: and the SDN controller determines whether the received message is the detection message or not through the identification, and if not, discards the received message.
Optionally, before the SDN controller sends the detection message to the source switch located in the Overlay network Overlay, the method further includes: obtaining a generation rule of the detection message, wherein the generation rule comprises at least one of the following: five-tuple feature, number of messages; and generating the detection message according to the generation rule.
Optionally, after the SDN controller receives the detection message sent by the one or more switches, the method further includes: the SDN controller classifies a plurality of detection messages according to transmission paths to obtain one or more actual transmission paths; and determining the number of messages transmitted on each actual transmission path.
Optionally, the SDN controller determines the health of the network according to an actual transmission path of the detection packet and a preset transmission path of the detection packet, including: and determining the health degree of the network according to the number of the messages transmitted on each actual transmission path and the number of the preset messages transmitted on the preset transmission path of the detection message.
According to another embodiment of the present invention, there is also provided a network health detection apparatus, including: a sending module, configured to send a detection packet to a source switch located in an Overlay network Overlay, where the source switch forwards the detection packet in a network where an SDN controller is located through one or more switches, where the network includes the Overlay and/or a bearer network Underlay; the receiving module is used for receiving the detection messages sent by the one or more switches and acquiring the actual transmission paths of the detection messages according to the detection messages; the determining module is used for determining the health degree of the network according to the actual transmission path of the detection message and the preset transmission path of the detection message.
Optionally, before the SDN controller sends the detection message to the source switch located in the Overlay network, the sending module is further configured to send a flow table to all switches in the network except for sending the source switch, where the flow table is configured to instruct the switch to forward the detection message to other switches, and send the detection message to the SDN controller.
According to another embodiment of the present invention, there is provided a storage medium comprising a stored program, wherein the program when run performs the method as described in any of the above alternative embodiments.
According to another embodiment of the present invention, a processor is provided for running a program, wherein the program when run performs the method as described in any of the above alternative embodiments.
According to the invention, the SDN controller determines the network health degree of a certain network to be detected, sends the detection message to a source switch in the network within a control range, the source switch sends the detection message to other switches, each switch receives the detection message and forwards the detection message to the SDN controller except for forwarding the detection message to a subsequent node normally, the SDN controller finally receives a plurality of detection messages, determines the actual transmission path of each detection message, then determines the matching degree of the actual transmission path of each detection message and the expected preset transmission path, further determines the health degree of the network, and whether information such as faults exist, thereby solving the problem that the related technology lacks effective management of the Underray network health degree in the related technology, realizing accurate detection of the network health degree and facilitating the effective management of the network subsequently.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a diagram of a network architecture according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for detecting network health according to an embodiment of the invention;
FIG. 3 is an architecture diagram of a network health detection system in accordance with a preferred embodiment of the present invention;
FIG. 4 is a message transmission diagram according to embodiment 1;
FIG. 5 is a downstream representation intent in accordance with particular embodiment 1;
FIG. 6 is a diagram of transmission of a detection message according to embodiment 1;
FIG. 7 is a second diagram illustrating transmission of a detection message according to embodiment 1;
FIG. 8 is a schematic diagram of rendering results according to embodiment 1;
fig. 9 is a schematic diagram of a practical transmission path of a message according to embodiment 1;
FIG. 10 is a diagram illustrating transmission of a detection message according to embodiment 2;
fig. 11 is a schematic diagram of actual transmission of a detection message according to embodiment 2;
fig. 12 is a schematic diagram of actual transmission of a detection message according to embodiment 2;
fig. 13 is a schematic diagram of rendering results according to embodiment 2.
Detailed Description
Example 1
An embodiment of the present application provides an SDN network, where a network architecture of the network may include an Overlay and an Underlay, and an SDN controller manages switch devices in the network. Fig. 1 is a network architecture diagram according to an embodiment of the present invention, and as shown in fig. 1, the network includes two parts, overlay and Underlay, each comprising a plurality of switches.
In this embodiment, a method for detecting network health running on the above network architecture is provided, and fig. 2 is a flowchart of a method for detecting network health according to an embodiment of the present invention, as shown in fig. 2, where the flowchart includes the following steps:
step S202, an SDN controller sends a detection message to a source switch located in an Overlay network, wherein the source switch forwards the detection message in a network where the SDN controller is located through one or more switches, and the network comprises the Overlay and/or bearer network Underlay;
step S204, the SDN controller receives the detection message sent by the one or more switches and acquires the actual transmission path of the detection message according to the detection message;
in step S206, the SDN controller determines the health of the network according to the actual transmission path of the detection message and the preset transmission path of the detection message.
Through the steps, the SDN controller determines the network health degree of a certain network to be detected, sends a detection message to a source switch in the network within a control range, sends the detection message to other switches, and after each switch receives the detection message, forwards the detection message to a subsequent node normally, forwards the detection message to the SDN controller, finally the SDN controller receives a plurality of detection messages, determines the actual transmission path of each detection message, then determines the matching degree of the actual transmission path of the detection message and a preset expected transmission path, further determines the health degree of the network, and whether information such as faults exist, thereby solving the problem that the related technology lacks effective management of the Underlay network health degree in the related technology, realizing accurate detection of the network health degree, and facilitating the effective management of the network subsequently.
Optionally, before the SDN controller sends the detection message to the source switch located in the Overlay network Overlay, the method further includes: and sending a flow table to all switches except a source switch sending the detection message in the network, wherein the flow table is used for indicating the switch to forward the detection message to other switches and sending the detection message to the SDN controller.
Optionally, the SDN controller receives a detection message sent by the one or more switches, including: and receiving the detection message sent by the one or more switches within a preset time.
Optionally, before the SDN controller sends a detection message to a source switch located in an Overlay network Overlay, the SDN controller sets an identifier in the detection message. The identifier is used for identifying the message as the detection message.
Optionally, the SDN controller receives a detection message sent by the one or more switches, including: the SDN controller determines whether the received message is the detection message through the identification, if not, the received message is discarded.
Optionally, before the SDN controller sends the detection message to the source switch located in the Overlay network Overlay, the method further includes: obtaining a generation rule of the detection message, wherein the generation rule comprises at least one of the following: five-tuple feature, number of messages; and generating the detection message according to the generation rule.
Optionally, after the SDN controller receives the detection message sent by the one or more switches, the method further includes: the SDN controller classifies a plurality of detection messages according to transmission paths to obtain one or more actual transmission paths; and determining the number of messages transmitted on each actual transmission path.
Optionally, the SDN controller determines the health of the network according to an actual transmission path of the detection packet and a preset transmission path of the detection packet, including: and determining the health degree of the network according to the number of the messages transmitted on each actual transmission path and the number of the preset messages transmitted on the preset transmission path of the detection message.
The following description is of the preferred embodiments of the invention.
The preferred embodiment of the invention can enable a user to customize the Overlay network health standard of the dimension, then detect the actual flow of the Underlay network bearing the Overlay network, finally achieve the purpose of comparing whether the Overlay network condition accords with the expectation or not, and adjust the network definition through the SDN controller based on the comparison.
In order to solve the problems in the related art, the preferred embodiment discloses an analysis method and a system for detecting the multipath data traffic distribution health of an Underlay network carrying a certain Overlay network.
In order to achieve the above purpose, the preferred embodiment discloses a method for actually detecting the multipath data traffic distribution health of a custom Overlay network and obtaining the detection result. Comprises four steps:
step one, acquiring Overlay and underway network topology conditions;
step two, defining the health degree of the Overlay network;
detecting actual traffic in the underway network;
and step four, obtaining a detection result and comparing and analyzing the detection result with the expected health degree.
The four steps are described in detail as follows:
step one, obtaining Overlay and Underlay network topology conditions through a topology and tunnel management module of an SDN controller. The method is used for selecting an Overlay source, a destination switch and an expected underway path which need to be detected in the process of self-defining health.
And step two, defining the health degree of the Overlay network, and generating a message during actual detection, and analyzing and comparing the detected result.
1) Determining an Overlay network of which the health degree needs to be detected;
2) Determining the generation rule of the detection message, including five-tuple characteristics (source and destination IP, source and destination ports, protocol type) and message quantity. These rules will be used to generate the detection message;
3) Determining an expected underway network transmission path of the message conforming to the generation rule;
4) Repeating the steps 2) and 3), and finishing the definition of the health degree of the detection.
And thirdly, performing actual detection, including issuing a flow table, generating a detection message and issuing the detection message.
1. And issuing a flow table to all switches except the Overlay network source switch involved in the detection. The flow table requires the switch to forward the detection message normally and send the message to the SDN controller, and the above steps are to obtain the detection result later. The reason for issuing the flow table to all switches except the Overlay network source switch involved in the detection is the uncertainty of the actual transmission path of the message, and all possible paths must be monitored;
2. and generating a certain number of detection messages according to the detection message generation rule in the step two. The message body of these messages will be marked with a special mark of fixed length according to a certain offset, indicating the identity, belonging detection number and message number of the detected message. These special marks will then be used to calculate the actual transmission path of the message;
3. and sending all the detection messages to the Overlay network source switch involved in the detection.
And fourthly, monitoring a detection message sent by the switch for obtaining an actual detection result, and then calculating and comparing.
1. Monitoring a sending message of the switch, if the sending message contains the detection mark generated in the step three, storing, otherwise discarding;
2. after confirming that the message belongs to the detection message, classifying according to the message number contained in the detection mark, and classifying the detection messages belonging to the same detection and the same number and sent by different switches into one type, so as to calculate the actual transmission path of the message in the underway network;
3. terminating monitoring after exceeding the preset time;
4. comparing the calculated actual transmission path of each message with the health degree defined in the second step, including whether the actual transmission path is consistent with the expected path, whether the percentage of the message transmitted in a certain path is lost, and obtaining a final detection result.
In order to implement the above method, the preferred embodiment further provides an Overlay network health detection system, which includes three subsystems: the health degree self-defining and presenting subsystem, the actual flow detection subsystem and the result analysis subsystem. The functions of each subsystem are as follows:
and the health degree self-defining and presenting subsystem is used for self-defining the health degree of the Overlay network and intuitively displaying the network structure and the detection result. The method comprises Overlay and Underlay topology drawing, path rendering, overlay network selection detection, message rule definition detection and Underlay path selection prediction functions;
and the actual flow detection subsystem is used for performing actual detection. The method comprises the functions of issuing a detection flow table, generating a detection message and issuing the detection message;
and the result analysis subsystem is used for analyzing detection results. The method comprises the functions of message sending monitoring, actual path calculation, comparison of an actual path and an expected path and message transmission proportion calculation.
FIG. 3 is a block diagram of a network health detection system according to a preferred embodiment of the present invention, as shown in FIG. 3, including a health customization and rendering subsystem, an actual flow detection subsystem, and a results analysis subsystem.
The following are specific embodiments of the preferred embodiment
The Underlay network structure is obtained through the SDN controller, and a tunnel is created on the corresponding switch to form an Overlay network, as shown in fig. 1, and in general, the larger network generally divides the physical structure into three layers, namely an access layer, a convergence layer and a core layer.
As shown in fig. 1, A, L pertains to an access stratum switch; B-I belongs to the convergence layer exchanger; J. k belongs to the core layer switch.
Wherein the underway topology is represented below the grey division line. There are multiple underway paths between switches a and L, represented by blue double-headed arrows.
The Overlay topology is shown above the grey separation line. Since a tunnel is established between switches a and L, both are directly connected from an Overlay perspective, represented by the double-headed arrow.
The present preferred embodiment will be described in detail below with reference to the network configuration embodiment illustrated in fig. 1.
Example 1
The scene of the embodiment is as follows: TCP messages with user-defined health criteria of sub-networks 192.168.1.1/24-192.168.100.1/24 are all transmitted via the underway path A-B-C-E-J-K-H-F-L, as shown in FIG. 4, and FIG. 4 is a message transmission diagram according to embodiment 1.
Step 101, a user selects an Overlay network to be detected from a topology interface presented by the health degree customization and presentation subsystem. In the topology shown in fig. 1, an Overlay network between A, L switches is selected.
In step 102, the user designates the characteristic five-tuple of the detected message as the sub-network 192.168.1.1/24-192.168.100.1/24, the protocol as TCP, and the number of the detected messages is 5000.
Step 103, the user designates the desired underway path as A-B-C-E-J-K-H-F-L, as shown in FIG. 3. And initiating detection.
Step 104, the actual flow detection subsystem receives the detection request and issues a flow table to all switches except switch a. The flow table requires the switch to forward the detected message normally and send the message to the SDN controller, as shown in fig. 5, fig. 5 is a downstream representation intent according to embodiment 1.
Step 105, after the flow table is issued, the actual flow detection subsystem uniformly generates 5000 TCP messages with source and destination IP between 192.168.1.1/24 and 192.168.100.1/24. A special mark is added into the message body to indicate the identity, the attributive detection number and the message number of the detection message.
Step 106, the notification result analysis subsystem starts up the sending and monitoring of the detection messages, and sends all the detection messages to the exchange a, as shown in fig. 6, fig. 6 is a first detection message transmission schematic diagram according to embodiment 1.
In step 107, the detection message is transmitted in the underway network. Assuming that the health is expected, the actual flow of the test message is shown in fig. 7, and fig. 7 is a second test message transmission diagram according to embodiment 1.
And step 108, the result analysis subsystem monitors the sent message within a preset time. After receiving the report message, intercepting the message according to the fixed offset, and confirming whether the message is a detection message. If not, discarding. If the message is the detection message, the message number is analyzed, the messages sent by the switches with the same number are classified, and meanwhile, the message transmission path is calculated according to the underway topology structure.
And step 109, closing monitoring after the preset time is exceeded. If the transmission path is not calculated, the calculation is continued. After the transmission path calculation is completed, counting the distribution of the messages in each path, giving a detection report, and informing the health degree user definition and the rendering subsystem to render the actual transmission path of the detection message.
Under the condition that the detection result accords with the expectation, the transmission rate of the messages on the A-B-C-E-J-K-H-F-L path in the detection report is 100%, the health degree customization and presentation subsystem rendering result is shown in fig. 7, fig. 8 is a schematic diagram of the rendering result according to the specific embodiment 1, and the arrow in fig. 8 represents the transmission path of the detection messages; fig. 9 is a schematic diagram of actual transmission paths of a message according to embodiment 1, and as shown in fig. 9, illustrates an unexpected result: the detection messages respectively reach the switch L through two arrow paths. In the detection report, the transmission rate of the messages on the A-B-C-E-J-K-H-F-L path is 75%, and the transmission rate of the messages on the A-B-D-J-K-I-G-L path is 25%.
Example 2
The scene of the embodiment is as follows: TCP messages with the health standard of 192.168.1.1/24-192.168.100.1/24 of the sub-network are transmitted in an equalizing mode through an Underlay path A-B-D-J-K-I-G-L and an equalizing mode through an A-C-E-J-K-H-F-L, and the transmission proportion of the two paths is approximately 50% respectively. Referring to fig. 10, fig. 10 is a diagram illustrating transmission of a detection message according to embodiment 2.
Step 201, a user selects an Overlay network to be detected from a topology interface presented by the health customization and presentation subsystem. In the topology shown in fig. 1, an Overlay network between A, L switches is selected.
Step 202, the user designates the characteristic five-tuple of the detected message as the sub-network 192.168.1.1/24-192.168.100.1/24, the protocol as TCP, and the number of the detected messages is 10000.
In step 203, the user designates the expected underway paths as A-B-D-J-K-I-G-L and A-C-E-J-K-H-F-L, with transmission ratios of 50% each. As shown in fig. 10. And initiating detection.
In step 204, the actual flow detection subsystem receives the detection request and issues a flow table to all switches except switch a. The flow table requires the switch to forward the detected message normally and send the message to the SDN controller. As in fig. 5.
Step 205, after the flow table is issued, the actual flow detection subsystem uniformly generates 10000 TCP messages with source and destination IP between 192.168.1.1/24 and 192.168.100.1/24. A special mark is added into the message body to indicate the identity, the attributive detection number and the message number of the detection message.
And 206, informing the result analysis subsystem to start up the detection message uploading monitoring and transmitting all the detection messages to the exchange A. As shown in fig. 7.
In step 207, the detection message is transmitted in the underway network. Assuming that the health degree meets the expectation, the actual flow of the detection message is shown in fig. 11 and fig. 12, fig. 11 is an actual transmission schematic diagram of the detection message according to embodiment 2, and fig. 12 is an actual transmission schematic diagram of the detection message according to embodiment 2.
In step 208, the result analysis subsystem monitors the report in a preset time. After receiving the report message, intercepting the message according to the fixed offset, and confirming whether the message is a detection message. If not, discarding. If the message is the detection message, the message number is analyzed, the messages sent by the switches with the same number are classified, and meanwhile, the message transmission path is calculated according to the underway topology structure.
Step 209, after the preset time is exceeded, the monitoring is turned off. If the transmission path is not calculated, the calculation is continued. After the transmission path calculation is completed, counting the distribution of the messages in each path, giving a detection report, and informing the health degree user definition and the rendering subsystem to render the actual transmission path of the detection message.
Under the condition that the detection result meets the expectation, the transmission rates of the A-B-D-J-K-I-G-L and the A-C-E-J-K-H-F-L in the detection report are approximately 50%, the health degree customization and the rendering result of the rendering subsystem are shown in FIG. 13, and FIG. 13 is a schematic diagram of the rendering result according to embodiment 2.
The technical scheme adopted in the application file has the following advantages:
attention is paid to the health of multipath data traffic distribution dimensions of an Overlay network which is ignored in the current industry. The method and the system for detecting the health degree of the dimension are provided for the first time;
and secondly, the definition of the health degree is flexible. The combination of multiple groups of health degrees can be contained in one detection, and meanwhile, each group of health degrees can be independently defined by a user, so that personalized requirements are met;
third, the actual path calculation is simple and efficient. The actual path can be calculated only by intercepting the detection number and the message number according to the fixed offset, and the message is not required to be analyzed and sent;
fourth, the detection result presents intuitively. The actual path of the detection message is rendered on the network topological graph, and meanwhile, the detection message comprises the percentage of whether the actual path is consistent with the expected path or not, and the detection message has the result abstract of whether the packet is lost or not, so that the detection message is convenient for a user to check.
In summary, the preferred embodiment provides a method and a system for detecting the health degree of an Overlay network in a network virtualization scene, which can flexibly and conveniently customize health degree standards and intuitively reflect detection results. Today, the Overlay technology is applied more widely, so that operators are helped to know whether the current Overlay network state meets the expectations or not accurately, and the possible problems can be solved timely.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
Example two
In this embodiment, a device for detecting network health is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
According to another embodiment of the present invention, there is also provided a network health detection apparatus, including: a sending module, configured to send a detection packet to a source switch located in an Overlay network Overlay, where the source switch forwards the detection packet in a network where the SDN controller is located through one or more switches, where the network includes the Overlay and/or a bearer network Underlay; the receiving module is used for receiving the detection messages sent by the one or more switches and acquiring the actual transmission paths of the detection messages according to the detection messages; the determining module is used for determining the health degree of the network according to the actual transmission path of the detection message and the preset transmission path of the detection message.
Optionally, before the SDN controller sends the detection message to the source switch located in the Overlay network, the sending module is further configured to send a flow table to all switches in the network except for sending the source switch, where the flow table is configured to instruct the switch to forward the detection message to other switches, and send the detection message to the SDN controller.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
Example III
According to another embodiment of the present invention, there is provided a storage medium comprising a stored program, wherein the program when run performs the method as described in any of the above alternative embodiments.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Example IV
According to another embodiment of the present invention, a processor is provided for running a program, wherein the program when run performs the method as described in any of the above alternative embodiments.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (11)

1. A method for detecting network health, comprising:
a Software Defined Network (SDN) controller sends a detection message to a source switch located in an Overlay network, wherein the source switch forwards the detection message in a network where the SDN controller is located through one or more switches, and the network comprises the Overlay and/or bearer network Underlay;
the SDN controller receives all detection messages transmitted by the one or more switches for forwarding the detection messages, and acquires actual transmission paths of the detection messages according to the detection messages; and the SDN controller determines the health degree of the network according to the actual transmission path of the detection message and the preset transmission path of the detection message.
2. The method of claim 1, wherein before the SDN controller sends the detection message to a source switch located in an Overlay network Overlay, the method further comprises:
and sending a flow table to all switches except the source switch in the network, wherein the flow table is used for indicating the switch to forward the detection message to other switches and sending the detection message to the SDN controller.
3. The method of claim 1, wherein the SDN controller receiving the detection message sent by the one or more switches comprises:
and receiving the detection messages sent by the one or more switches within preset time.
4. The method of claim 1, wherein before the SDN controller sends the detection message to a source switch located in an Overlay network Overlay, the method further comprises:
the SDN controller sets an identifier in the detection message.
5. The method of claim 4, wherein the SDN controller receives detection messages sent on the one or more switches, comprising:
and the SDN controller determines whether the received message is the detection message or not through the identification, and if not, discards the received message.
6. The method of claim 1, wherein before the SDN controller sends the detection message to a source switch located in an Overlay network Overlay, the method further comprises:
obtaining a generation rule of the detection message, wherein the generation rule comprises at least one of the following: five-tuple feature, number of messages;
and generating the detection message according to the generation rule.
7. The method of claim 1, wherein after the SDN controller receives the detection message sent by the one or more switches, the method further comprises:
the SDN controller classifies a plurality of detection messages according to transmission paths to obtain one or more actual transmission paths;
and determining the number of messages transmitted on each actual transmission path.
8. The method of claim 7, wherein the SDN controller determining the health of the network based on an actual transmission path of the detection message and a preset transmission path of the detection message comprises:
and determining the health degree of the network according to the number of the messages transmitted on each actual transmission path and the number of the preset messages transmitted on the preset transmission path of the detection message.
9. A network health detection device, comprising:
a sending module, configured to send a detection packet to a source switch located in an Overlay network Overlay, where the source switch forwards the detection packet in a network where an SDN controller is located through one or more switches, where the network includes the Overlay and/or a bearer network Underlay;
the receiving module is used for receiving all the detection messages transmitted by the one or more switches for forwarding the detection messages and acquiring actual transmission paths of the detection messages according to the detection messages;
the determining module is used for determining the health degree of the network according to the actual transmission path of the detection message and the preset transmission path of the detection message.
10. The apparatus of claim 9, wherein the sending module is further configured to send a flow table to all switches in the network except for the source switch, before the SDN controller sends the detection message to the source switch located in the Overlay network, where the flow table is configured to instruct a switch to forward the detection message to other switches and send the detection message to the SDN controller.
11. A storage medium having stored therein a computer program, wherein the computer program when executed by a processor implements the steps of the method of any of claims 1-8.
CN201710556895.0A 2017-07-10 2017-07-10 Network health degree detection method and device Active CN109245957B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710556895.0A CN109245957B (en) 2017-07-10 2017-07-10 Network health degree detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710556895.0A CN109245957B (en) 2017-07-10 2017-07-10 Network health degree detection method and device

Publications (2)

Publication Number Publication Date
CN109245957A CN109245957A (en) 2019-01-18
CN109245957B true CN109245957B (en) 2023-05-30

Family

ID=65083432

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710556895.0A Active CN109245957B (en) 2017-07-10 2017-07-10 Network health degree detection method and device

Country Status (1)

Country Link
CN (1) CN109245957B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112311580B (en) * 2019-08-01 2022-03-11 华为技术有限公司 Message transmission path determining method, device and system and computer storage medium
CN112887185B (en) * 2019-11-29 2024-03-15 华为云计算技术有限公司 Communication method and device of overlay network
CN112769632A (en) * 2020-11-30 2021-05-07 锐捷网络股份有限公司 Method and system for detecting network fault of data center
CN115567377A (en) * 2021-06-30 2023-01-03 中兴通讯股份有限公司 Path diagnosis method and system in SDN hybrid overlay network
CN114006856B (en) * 2021-12-30 2022-03-11 北京天维信通科技有限公司 Network processing method for realizing multi-path concurrent transmission based on HASH algorithm

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105812201A (en) * 2014-12-31 2016-07-27 华为技术有限公司 Link state detection method, device and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104796298B (en) * 2014-01-22 2019-06-07 新华三技术有限公司 A kind of method and device of SDN network accident analysis

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105812201A (en) * 2014-12-31 2016-07-27 华为技术有限公司 Link state detection method, device and system

Also Published As

Publication number Publication date
CN109245957A (en) 2019-01-18

Similar Documents

Publication Publication Date Title
CN109245957B (en) Network health degree detection method and device
US8855116B2 (en) Virtual local area network state processing in a layer 2 ethernet switch
CN108243106B (en) Method for controlling network slicing, forwarding device, control device and communication system
US9742667B2 (en) Packet processing method, device and system
CN106911588B (en) Method, device and system for realizing deep packet inspection optimization
CN106982458A (en) A kind of system of selection of network section and device
EP3082309A1 (en) Sdn controller, data centre system and router connection method
RU2014128627A (en) METHOD AND DEVICE FOR SERVICE TRANSMISSION MANAGEMENT
CN105765921A (en) Methods, systems, and computer readable media for DIAMETER routing using software defined network (SDN) functionality
WO2015143610A1 (en) Service implementation method for nfv system, and communications unit
CN113542051B (en) Monitoring flow load balancing method based on software defined network
US10819583B2 (en) Network device management method and apparatus
CN107306215B (en) Data processing method, system and node
CN109983736A (en) A kind of processing method, equipment and the system of NF component exception
CN111726293B (en) Message transmission method and device
CN105743687B (en) Method and device for judging node fault
EP4175333A1 (en) Information collection method and apparatus, storage medium, and electronic apparatus
CN111224901B (en) Data association method, device and distributed system
US10666558B2 (en) Automatic alignment of roles of routers in networks
EP3203693B1 (en) User message forwarding control method and processing node
US10511494B2 (en) Network control method and apparatus
CN109005122B (en) Message sending method and device and network equipment
CN112291076A (en) Packet loss positioning method, device and system and computer storage medium
KR102027315B1 (en) Method and apparatus for controling traffic using open flow switches and controller
CN108449252B (en) Dump method and device for access log

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