CN111049697A - Network link quality monitoring method and device - Google Patents

Network link quality monitoring method and device Download PDF

Info

Publication number
CN111049697A
CN111049697A CN201811191833.5A CN201811191833A CN111049697A CN 111049697 A CN111049697 A CN 111049697A CN 201811191833 A CN201811191833 A CN 201811191833A CN 111049697 A CN111049697 A CN 111049697A
Authority
CN
China
Prior art keywords
network
monitoring
interface
preset
link quality
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811191833.5A
Other languages
Chinese (zh)
Other versions
CN111049697B (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 CN201811191833.5A priority Critical patent/CN111049697B/en
Publication of CN111049697A publication Critical patent/CN111049697A/en
Application granted granted Critical
Publication of CN111049697B publication Critical patent/CN111049697B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a network link quality monitoring method, which comprises the steps of obtaining the address information of each network node in a designated routing path corresponding to a designated virtual router (vRouter); establishing monitoring network connection between a preset virtual computing node and the virtual router; and according to the address information of each network node, sending an Internet packet searching device (PING) packet from the preset virtual computing node to each network node through the monitoring network connection to obtain the network link quality parameter corresponding to each network node. The invention also discloses a device for monitoring the quality of the network link, a storage medium and an information processing device.

Description

Network link quality monitoring method and device
Technical Field
The invention relates to a Software Defined Network (SDN) technology, in particular to a Network link quality monitoring method and device.
Background
SDN is a novel network innovative architecture, and its core idea is to separate a control plane and a forwarding plane of a network device to realize flexible control of network traffic, and provide an Application Programming Interface (API) with an open standard to the outside to realize flexible network deployment requirements of various service platforms.
More and more data center networks adopt the SDN technology, so that the utilization rate and the deployment efficiency of network resources are improved, and the network maintenance cost is reduced. By means of the virtualization of the SDN and the overlay network (overlay) technology, a multi-tenant and multi-routing service model can be achieved, and safe and flexible two-layer and three-layer communication is provided for a virtual host of a virtual data center. Generally, the forwarding quality of an overlay network needs to be monitored by adopting an SDN technology, and the health condition of the network is measured according to needs or at regular time, so as to meet the network high-reliability requirements of services such as a telecommunication cloud, a private cloud, a public cloud and the like.
At present, after the virtual data center adopts the SDN technology, the following network forwarding quality monitoring method is generally adopted:
firstly, Bidirectional Forwarding Detection (BFD) is adopted to perform link on-off Detection and trigger link fast switching, and the Detection period can reach 3.3ms generally. BFD detection can be started between Virtual Network Functions (VNFs) in an overlay Network, link on-off monitoring between a Virtual Machine (VM) and the VM is achieved, and monitoring of the VM out of a Virtual data center depends on whether equipment outside the Virtual data center can be in butt joint with the BFD functions or not. However, BFD cannot provide measurement data in terms of link packet loss, link delay, etc.;
secondly, an Operation Administration and Maintenance (OAM) monitoring standard of a Y.1731 Ethernet issued by an ITU organization can monitor the transmission quality of a network link such as the on-off, time delay and packet loss of a single layer network (Underlay) link; however, the overlay network cannot monitor the transmission quality of the network link from the user access side to the network element in the last kilometer, and the forwarding of the two-layer multicast to the outside of the data center needs to rely on the conventional router to support the Connectivity Fault Management (CFM) characteristic, so that the coverage of the monitoring in the north-south direction is difficult.
Therefore, how to monitor the transmission quality of the network link covering the overlay network from end to end in the SDN network scene is a problem to be solved urgently.
Disclosure of Invention
In view of this, embodiments of the present invention are expected to provide a method and an apparatus for monitoring network link quality, which can implement monitoring of network link transmission quality from end to end in an overlay network under an SDN network scenario.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the embodiment of the invention provides a network link quality monitoring method, which comprises the following steps:
acquiring address information of each network node in an appointed routing path corresponding to an appointed virtual router;
establishing monitoring network connection between a preset virtual computing node and the virtual router;
and sending an Internet Packet explorer (PING, Packet Internet Groper) Packet from the preset virtual computing node to each network node through the monitoring network connection according to the address information of each network node, so as to obtain the network link quality parameter corresponding to each network node.
In the foregoing solution, the establishing a monitoring network connection from a preset virtual computing node to the virtual router includes:
establishing an interface pair from the preset virtual computing node to the virtual router, and establishing the monitoring network connection through the interface pair;
the interface pair includes: a first interface and a second interface;
determining a Dynamic Host Configuration Protocol (DHCP) interface of a preset subnet connected with the virtual router as a first interface;
and determining a preset interface on the virtual switch of the preset virtual computing node as a second interface.
In the foregoing solution, the method further includes:
establishing a namespace containing the virtual router;
mapping the first interface to the namespace.
In the above scheme, the method further comprises:
presetting a network link quality parameter threshold, and sending prompt information when the acquired network link quality parameter exceeds the preset network link quality parameter threshold.
The embodiment of the invention also provides a network link quality monitoring device, which comprises: the device comprises an acquisition module, a setting module and a test module; wherein,
the acquisition module is used for acquiring the address information of each network node in the designated routing path corresponding to the designated virtual router;
the setting module is used for establishing monitoring network connection between a preset virtual computing node and the virtual router;
and the test module is used for sending a PING packet to each network node from the preset virtual computing node through the monitoring network connection according to the address information of each network node to obtain the network link quality parameter corresponding to each network node.
In the foregoing solution, the setting module is specifically configured to:
establishing an interface pair from the preset virtual computing node to the virtual router, and establishing the monitoring network connection through the interface pair;
the interface pair includes: a first interface and a second interface;
determining a DHCP interface of a preset subnet connected with the virtual router as a first interface;
and determining a preset interface on the virtual switch of the preset virtual computing node as a second interface.
In the foregoing solution, the setting module is further configured to:
establishing a namespace containing the virtual router;
mapping the first interface to the namespace.
In the foregoing solution, the test module is further configured to:
presetting a network link quality parameter threshold, and sending prompt information when the acquired network link quality parameter exceeds the preset network link quality parameter threshold.
The embodiment of the invention also provides a storage medium, on which an executable program is stored, and the executable program realizes the steps of any one of the network link quality monitoring methods when being executed by a processor.
The embodiment of the invention also provides a network link quality monitoring device, which comprises a processor, a memory and an executable program which is stored on the memory and can be run by the processor, wherein when the processor runs the executable program, the processor executes any step of the network link quality monitoring method.
The network link quality monitoring method and device provided by the embodiment of the invention; acquiring address information of each network node in a designated routing path corresponding to a designated virtual routing (vRouter) router; establishing monitoring network connection between a preset virtual computing node and the virtual router; and sending a PING packet to each network node from the preset virtual computing node through the monitoring network connection according to the address information of each network node to obtain the network link quality parameter corresponding to each network node. Therefore, an end-to-end network test is realized by sending a PING packet to another node through a preset virtual computing node in an overlay network under an SDN network scene; and the monitoring of the transmission quality of network links such as broken links, packet loss number or time delay and the like can be realized through the PING packet.
Drawings
Fig. 1 is a schematic flow chart of a network link quality monitoring method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an SDN component architecture according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a monitoring task implementation flow according to an embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating a process of establishing a monitoring task according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a monitoring task according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a network link quality monitoring apparatus according to an embodiment of the present invention.
Detailed Description
In the embodiment of the invention, the address information of each network node in the appointed routing path corresponding to the appointed virtual router is obtained; establishing monitoring network connection between a preset virtual computing node and the virtual router; and sending a PING packet to each network node from the preset virtual computing node through the monitoring network connection according to the address information of each network node to obtain the network link quality parameter corresponding to each network node.
The present invention will be described in further detail with reference to examples.
As shown in fig. 1, the method for monitoring network link quality provided in the embodiment of the present invention includes:
step 101: acquiring address information of each network node in an appointed routing path corresponding to an appointed virtual router;
here, the network link quality monitoring may be performed by a node such as a preset virtual computing node in the SDN; network link quality monitoring can be carried out in a mode of loading a monitoring driver on the virtual computing node; the virtual router refers to a virtual router in an SDN; the specified routing path may be all routing paths connected to the virtual router, or may be a partial routing path; the routing path of the virtual router may be obtained from an SDN information management point such as an SDN controller, a cloud platform, or the like. The preset virtual computing node may include a VM, a virtual switch (vSwitch), and the like;
a networking schematic diagram of an SDN may be as shown in fig. 2, and a cloud platform may confirm a vRouter and a name thereof that need to perform network link monitoring; a monitoring driver can be set in the preset virtual computing node through an SDN controller;
the preset virtual computing node can acquire authentication of the cloud platform based on the name of the vRouter and authentication information of the configuration file, and further acquire address information and the like of each network node in a designated routing path such as a vRouter related subnet gateway address, an external network gateway address, a subnet DHCP interface, each subnet host address and the like from the cloud platform or an SDN controller and the like; here, the preset virtual computing node is used as one end of the overlay network, each network node in a designated routing path is used as the other end of the network, and end-to-end monitoring in the overlay network is realized by directly monitoring the quality of a network link from the preset virtual computing node to each network node; the preset virtual computing node can be set according to a network endpoint tested by actual requirements.
Step 102: establishing monitoring network connection between a preset virtual computing node and the virtual router;
here, the monitoring network connection may be a network path in the SDN, such as a pair of interconnected interfaces, or a tunnel of the SDN; here, the preset virtual computing node is used for monitoring network link quality, and may be referred to as a monitoring node;
the monitoring network connection is used for transmitting a test data packet between a preset virtual computing node and each network node in the appointed routing path of the virtual router, and the like.
Further, an interface pair from the preset virtual computing node to the virtual router is established, and the monitoring network connection is established through the interface pair; the interface pair includes: a first interface and a second interface; determining a DHCP interface of a preset subnet connected with the virtual router as a first interface; determining a preset interface on a virtual switch of the preset virtual computing node as a second interface;
specifically, information such as an Internet Protocol (IP) address and a Media Access Control (MAC) address of a subnet DHCP interface of the virtual router may be randomly selected and assigned to the first interface; adding a second interface into a vSwitch to which a preset virtual computing node belongs; the preset virtual computing node may send a test packet to each network node in each designated routing path through the first interface, where the first interface may be referred to as a monitoring source or a monitoring source interface.
Further, establishing a namespace comprising the virtual router; mapping the first interface to the namespace;
specifically, a name space may be established for address information of each network node in a designated routing path corresponding to the virtual router, and the first interface may be mapped to the name space; therefore, the isolation effect can be achieved, and the operation efficiency is improved.
Step 103: sending a PING packet to each network node from the preset virtual computing node through the monitoring network connection according to the address information of each network node to obtain a network link quality parameter corresponding to each network node;
here, the network link quality parameter obtained by sending a PING packet may include: broken link information, packet loss number or network delay information; here, the PING packet may be sent according to a preset sending time rule, such as setting a sending period, a sending duration, a sending interval, and the like; by means of the concurrent ping test, dependence on the special monitoring function of the target node is eliminated, and the monitoring precision can reach millisecond level.
Further, a network link quality parameter threshold may be preset, and when the obtained network link quality parameter exceeds the preset network link quality parameter threshold, a prompt message is sent.
In practical application, a plurality of preset virtual computing nodes can be set in the SDN for monitoring the network link quality, and the SDN controller can select one or more preset virtual computing nodes for monitoring; one pre-provisioned virtual compute node may monitor different vroters by establishing multiple monitoring network connections. When the network link quality parameter exceeds the preset network link quality parameter threshold, prompt information such as warning information and the like can be sent out to prompt management personnel to process.
The SDN controller is separated from the preset virtual computing node, so that a framework of separating control and monitoring is realized, and the concurrent monitoring capability of a large-capacity network is supported; meanwhile, the monitoring driver can dynamically unload and load, and can flexibly expand and use different packet sending modes.
The positive effects produced by the present invention will be described in further detail with reference to specific examples below;
the network elements or components involved in the SDN are shown in fig. 2, where an SDN controller is responsible for management of monitoring tasks, scheduling of monitoring drivers, and generation and deletion of monitoring alarms; presetting virtual computing nodes, namely monitoring drivers in the monitoring nodes are responsible for responding to the dispatching of the SDN controller, creating a monitoring source interface, executing monitoring and storing results; the SDN controller and the monitoring driver are interconnected through a control plane network, and a link is described by a dotted line; the monitoring behavior is initiated from a network namespace to which a monitoring source interface belongs, and is radiated to all target subnets or nodes of the vRouter through an overlay network, such as south-north traffic formed by connection of Xa1, Xa2, Xa3 and Xa4, or east-west traffic formed by connection of Xb1, Xb2 and Xb 3;
the implementation method of network link quality monitoring mainly includes creating a monitoring task, initiating monitoring, analyzing a monitoring result, and the like, as shown in fig. 3, the specific process includes the following steps:
step 301: confirming a vRouter needing to establish link monitoring and the name of the vRouter through a cloud platform;
step 302: based on an SDN controller, establishing a monitoring task corresponding to the vRouter; if successful, step 303 may be performed, and if failed, an error message may be returned;
specifically, as shown in the SDN data interaction diagram of fig. 4, the data interaction step of step 302 includes:
step 3021: inputting the vRouter to be monitored into the SDN controller according to confirmation;
step 3022: the SDN controller selects a monitoring node according to the requirement, and triggers a monitoring driver to establish a monitoring source interface;
step 3023: the monitoring driver acquires authentication of the cloud platform based on authentication information of the vRouter name and the configuration file, further acquires lists of vRouter-related subnet gateway addresses, outer network gateway addresses, subnet DHCP interfaces, all subnet host addresses and the like, and generates a target file;
step 3024: the monitoring driver creates a network name space for the vRouter of the monitoring driver according to the information searched in the step 3023 if the information is complete, and creates an interface pair;
step 3025: according to the interface pair created in step 3024, the monitoring driver randomly selects information such as IP and MAC addresses of a DHCP interface of a subnet to assign to the interface pair. One interface is mapped to a network name space, and the other interface is added to a vSwitch to which the monitoring node belongs; generating a monitoring task file;
the monitoring driver can randomly select a subnet DHCP interface as a monitoring source interface and map the monitoring source interface to an interface of a network name space; interface information of vSwitch to which an extensible virtual local area network Tunnel endpoint (VTEP, VXLAN Tunnel End Point) belongs is set through an Open Virtual Switch Database (OVSDB), a Representational State Transfer (REST) interface and the like;
step 3026: the SDN controller inquires the creation result of the vRouter on the monitoring node, and if a corresponding monitoring task file exists, the vRouter is written into a local database and returns the success of task creation; and if the necessary information is not existed or is not complete, backing back the monitoring task and prompting error information.
Step 303: and configuring the monitoring time length of the monitoring task vRouter and an alarm threshold value of packet loss or time delay, and starting the monitoring task. If the link quality is successful, link quality from the monitoring source to all target nodes can be checked in one sub-period, and when the link quality is attenuated to a threshold value, link alarm can be generated at the same time; if the failure occurs, feeding back error information; the monitoring duration of the vRouter can be configured according to requirements, and monitoring tasks can be executed according to requirements;
specifically, as shown in fig. 5, the data interaction step of step 303 includes:
step 3031: the SDN controller starts a timer to poll all monitoring nodes at regular time;
step 3032: the SDN controller schedules a monitoring node driver to initiate monitoring activities based on vRouter information in the monitoring task file;
step 3033: the monitoring driver initiates concurrent ping monitoring in a naming space to which the task vRouter belongs based on a locally generated target file;
step 3034: collecting monitoring results, writing the monitoring results into a local monitoring result file, and marking a monitoring completion state; in practical application, the detection result can be output to a Comma-Separated Values (CSV) format file identified by a virtual router universal unique identifier (vrouid);
step 3035: the SDN controller acquires monitoring states of monitoring points at regular time, and if the monitoring states are marked to be completion states, monitoring result files are extracted; if the mark is not finished or not marked, skipping the step and continuing the timing check next time;
step 3036: and the SDN generates or disappears alarms corresponding to the vRouter based on the monitoring result file and the threshold, wherein the alarms comprise broken link, packet loss overrun or time delay overrun alarms.
As shown in fig. 6, the network link quality monitoring apparatus provided in the embodiment of the present invention includes: an acquisition module 61, a setup module 62, and a test module 63, wherein,
the obtaining module 61 obtains address information of each network node in a specified routing path corresponding to a specified virtual router;
here, the network link quality monitoring may be performed by a node such as a preset virtual computing node in the SDN; network link quality monitoring can be carried out in a mode of loading a monitoring driver on the virtual computing node; the virtual router refers to a virtual router in an SDN; the specified routing path may be all routing paths connected to the virtual router, or may be a partial routing path; the routing path of the virtual router may be obtained from an SDN information management point such as an SDN controller, a cloud platform, or the like. The preset virtual computing nodes may include VMs, vSwitch and the like;
a networking schematic diagram of an SDN may be as shown in fig. 2, and a cloud platform may confirm a vRouter and a name thereof that need to perform network link monitoring; a monitoring driver can be set in the preset virtual computing node through an SDN controller;
the preset virtual computing node can acquire authentication of the cloud platform based on the name of the vRouter and authentication information of the configuration file, and further acquire address information and the like of each network node in a designated routing path such as a vRouter related subnet gateway address, an external network gateway address, a subnet DHCP interface, each subnet host address and the like from the cloud platform or an SDN controller and the like; here, the preset virtual computing node is used as one end of the overlay network, each network node in a designated routing path is used as the other end of the network, and end-to-end monitoring in the overlay network is realized by directly monitoring the quality of a network link from the preset virtual computing node to each network node; the preset virtual computing node can be set according to a network endpoint tested by actual requirements.
The setting module 62 is configured to establish a monitoring network connection between a preset virtual computing node and the virtual router;
here, the monitoring network connection may be a network path in the SDN, such as a pair of interconnected interfaces, or a tunnel of the SDN; here, the preset virtual computing node is used for monitoring network link quality, and may be referred to as a monitoring node;
the monitoring network connection is used for transmitting a test data packet between a preset virtual computing node and each network node in the appointed routing path of the virtual router, and the like.
Further, an interface pair from the preset virtual computing node to the virtual router is established, and the monitoring network connection is established through the interface pair; the interface pair includes: a first interface and a second interface; determining a DHCP interface of a preset subnet connected with the virtual router as a first interface; determining a preset interface on a virtual switch of the preset virtual computing node as a second interface;
specifically, information such as an IP address and an MAC address of a subnet DHCP interface of the virtual router may be randomly selected and assigned to the first interface; adding a second interface into a vSwitch to which a preset virtual computing node belongs; the preset virtual computing node may send a test packet to each network node in each designated routing path through the first interface, where the first interface may be referred to as a monitoring source or a monitoring source interface.
Further, establishing a namespace comprising the virtual router; mapping the first interface to the namespace;
specifically, a name space may be established for address information of each network node in a designated routing path corresponding to the virtual router, and the first interface may be mapped to the name space; therefore, the isolation effect can be achieved, and the operation efficiency is improved.
The test module 63 is configured to send a PING packet to each network node from the preset virtual computing node through the monitoring network connection according to the address information of each network node, so as to obtain a network link quality parameter corresponding to each network node;
here, the network link quality parameter obtained by sending a PING packet may include: broken link information, packet loss number or network delay information; here, the PING packet may be sent according to a preset sending time rule, such as setting a sending period, a sending duration, a sending interval, and the like; by means of the concurrent ping test, dependence on the special monitoring function of the target node is eliminated, and the monitoring precision can reach millisecond level.
Further, a network link quality parameter threshold may be preset, and when the obtained network link quality parameter exceeds the preset network link quality parameter threshold, a prompt message is sent.
In practical application, a plurality of preset virtual computing nodes can be set in the SDN for monitoring the network link quality, and the SDN controller can select one or more preset virtual computing nodes for monitoring; one pre-provisioned virtual compute node may monitor different vroters by establishing multiple monitoring network connections. When the network link quality parameter exceeds the preset network link quality parameter threshold, prompt information such as warning information and the like can be sent out to prompt management personnel to process.
The SDN controller is separated from the preset virtual computing node, so that a framework of separating control and monitoring is realized, and the concurrent monitoring capability of a large-capacity network is supported; meanwhile, the monitoring driver can dynamically unload and load, and can flexibly expand and use different packet sending modes.
In practical applications, the obtaining module 61, the setting module 62, and the testing module 63 may be implemented by a CPU, a Microprocessor (MCU), a Digital Signal Processor (DSP), or a Field Programmable Gate Array (FPGA) of a server or a terminal, etc. that constructs an SDN network.
The storage medium provided in the embodiment of the present invention stores thereon an executable program, and the executable program, when executed by a processor, implements a network link quality monitoring method, as shown in fig. 1, the method including:
step 101: acquiring address information of each network node in an appointed routing path corresponding to an appointed virtual router;
here, the network link quality monitoring may be performed by a node such as a preset virtual computing node in the SDN; network link quality monitoring can be carried out in a mode of loading a monitoring driver on the virtual computing node; the virtual router refers to a virtual router in an SDN; the specified routing path may be all routing paths connected to the virtual router, or may be a partial routing path; the routing path of the virtual router may be obtained from an SDN information management point such as an SDN controller, a cloud platform, or the like. The preset virtual computing nodes may include VMs, vSwitch and the like;
a networking schematic diagram of an SDN may be as shown in fig. 2, and a cloud platform may confirm a vRouter and a name thereof that need to perform network link monitoring; a monitoring driver can be set in the preset virtual computing node through an SDN controller;
the preset virtual computing node can acquire authentication of the cloud platform based on the name of the vRouter and authentication information of the configuration file, and further acquire address information and the like of each network node in a designated routing path such as a vRouter related subnet gateway address, an external network gateway address, a subnet DHCP interface, each subnet host address and the like from the cloud platform or an SDN controller and the like; here, the preset virtual computing node is used as one end of the overlay network, each network node in a designated routing path is used as the other end of the network, and end-to-end monitoring in the overlay network is realized by directly monitoring the quality of a network link from the preset virtual computing node to each network node; the preset virtual computing node can be set according to a network endpoint tested by actual requirements.
Step 102: establishing monitoring network connection between a preset virtual computing node and the virtual router;
here, the monitoring network connection may be a network path in the SDN, such as a pair of interconnected interfaces, or a tunnel of the SDN; here, the preset virtual computing node is used for monitoring network link quality, and may be referred to as a monitoring node;
the monitoring network connection is used for transmitting a test data packet between a preset virtual computing node and each network node in the appointed routing path of the virtual router, and the like.
Further, an interface pair from the preset virtual computing node to the virtual router is established, and the monitoring network connection is established through the interface pair; the interface pair includes: a first interface and a second interface; determining a DHCP interface of a preset subnet connected with the virtual router as a first interface; determining a preset interface on a virtual switch of the preset virtual computing node as a second interface;
specifically, information such as an IP address and an MAC address of a subnet DHCP interface of the virtual router may be randomly selected and assigned to the first interface; adding a second interface into a vSwitch to which a preset virtual computing node belongs; the preset virtual computing node may send a test packet to each network node in each designated routing path through the first interface, where the first interface may be referred to as a monitoring source or a monitoring source interface.
Further, establishing a namespace comprising the virtual router; mapping the first interface to the namespace;
specifically, a name space may be established for address information of each network node in a designated routing path corresponding to the virtual router, and the first interface may be mapped to the name space; therefore, the isolation effect can be achieved, and the operation efficiency is improved.
Step 103: sending a PING packet to each network node from the preset virtual computing node through the monitoring network connection according to the address information of each network node to obtain a network link quality parameter corresponding to each network node;
here, the network link quality parameter obtained by sending a PING packet may include: broken link information, packet loss number or network delay information; here, the PING packet may be sent according to a preset sending time rule, such as setting a sending period, a sending duration, a sending interval, and the like; by means of the concurrent ping test, dependence on the special monitoring function of the target node is eliminated, and the monitoring precision can reach millisecond level.
Further, a network link quality parameter threshold may be preset, and when the obtained network link quality parameter exceeds the preset network link quality parameter threshold, a prompt message is sent.
In practical application, a plurality of preset virtual computing nodes can be set in the SDN for monitoring the network link quality, and the SDN controller can select one or more preset virtual computing nodes for monitoring; one pre-provisioned virtual compute node may monitor different vroters by establishing multiple monitoring network connections. When the network link quality parameter exceeds the preset network link quality parameter threshold, prompt information such as warning information and the like can be sent out to prompt management personnel to process.
The SDN controller is separated from the preset virtual computing node, so that a framework of separating control and monitoring is realized, and the concurrent monitoring capability of a large-capacity network is supported; meanwhile, the monitoring driver can dynamically unload and load, and can flexibly expand and use different packet sending modes.
The information processing apparatus provided in the embodiment of the present invention includes a processor, a memory, and an executable program stored on the memory and capable of being run by the processor, and executes a method for implementing network link quality monitoring when the processor runs the executable program, as shown in fig. 1, where the method includes:
step 101: acquiring address information of each network node in an appointed routing path corresponding to an appointed virtual router;
here, the network link quality monitoring may be performed by a node such as a preset virtual computing node in the SDN; network link quality monitoring can be carried out in a mode of loading a monitoring driver on the virtual computing node; the virtual router refers to a virtual router in an SDN; the specified routing path may be all routing paths connected to the virtual router, or may be a partial routing path; the routing path of the virtual router may be obtained from an SDN information management point such as an SDN controller, a cloud platform, or the like. The preset virtual computing nodes may include VMs, vSwitch and the like;
a networking schematic diagram of an SDN may be as shown in fig. 2, and a cloud platform may confirm a vRouter and a name thereof that need to perform network link monitoring; a monitoring driver can be set in the preset virtual computing node through an SDN controller;
the preset virtual computing node can acquire authentication of the cloud platform based on the name of the vRouter and authentication information of the configuration file, and further acquire address information and the like of each network node in a designated routing path such as a vRouter related subnet gateway address, an external network gateway address, a subnet DHCP interface, each subnet host address and the like from the cloud platform or an SDN controller and the like; here, the preset virtual computing node is used as one end of the overlay network, each network node in a designated routing path is used as the other end of the network, and end-to-end monitoring in the overlay network is realized by directly monitoring the quality of a network link from the preset virtual computing node to each network node; the preset virtual computing node can be set according to a network endpoint tested by actual requirements.
Step 102: establishing monitoring network connection between a preset virtual computing node and the virtual router;
here, the monitoring network connection may be a network path in the SDN, such as a pair of interconnected interfaces, or a tunnel of the SDN; here, the preset virtual computing node is used for monitoring network link quality, and may be referred to as a monitoring node;
the monitoring network connection is used for transmitting a test data packet between a preset virtual computing node and each network node in the appointed routing path of the virtual router, and the like.
Further, an interface pair from the preset virtual computing node to the virtual router is established, and the monitoring network connection is established through the interface pair; the interface pair includes: a first interface and a second interface; determining a DHCP interface of a preset subnet connected with the virtual router as a first interface; determining a preset interface on a virtual switch of the preset virtual computing node as a second interface;
specifically, information such as an IP address and an MAC address of a subnet DHCP interface of the virtual router may be randomly selected and assigned to the first interface; adding a second interface into a vSwitch to which a preset virtual computing node belongs; the preset virtual computing node may send a test packet to each network node in each designated routing path through the first interface, where the first interface may be referred to as a monitoring source or a monitoring source interface.
Further, establishing a namespace comprising the virtual router; mapping the first interface to the namespace;
specifically, a name space may be established for address information of each network node in a designated routing path corresponding to the virtual router, and the first interface may be mapped to the name space; therefore, the isolation effect can be achieved, and the operation efficiency is improved.
Step 103: sending a PING packet to each network node from the preset virtual computing node through the monitoring network connection according to the address information of each network node to obtain a network link quality parameter corresponding to each network node;
here, the network link quality parameter obtained by sending a PING packet may include: broken link information, packet loss number or network delay information; here, the PING packet may be sent according to a preset sending time rule, such as setting a sending period, a sending duration, a sending interval, and the like; by means of the concurrent ping test, dependence on the special monitoring function of the target node is eliminated, and the monitoring precision can reach millisecond level.
Further, a network link quality parameter threshold may be preset, and when the obtained network link quality parameter exceeds the preset network link quality parameter threshold, a prompt message is sent.
In practical application, a plurality of preset virtual computing nodes can be set in the SDN for monitoring the network link quality, and the SDN controller can select one or more preset virtual computing nodes for monitoring; one pre-provisioned virtual compute node may monitor different vroters by establishing multiple monitoring network connections. When the network link quality parameter exceeds the preset network link quality parameter threshold, prompt information such as warning information and the like can be sent out to prompt management personnel to process.
The SDN controller is separated from the preset virtual computing node, so that a framework of separating control and monitoring is realized, and the concurrent monitoring capability of a large-capacity network is supported; meanwhile, the monitoring driver can dynamically unload and load, and can flexibly expand and use different packet sending modes.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the scope of the present invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for monitoring network link quality, the method comprising:
acquiring address information of each network node in an appointed routing path corresponding to an appointed virtual router;
establishing monitoring network connection between a preset virtual computing node and the virtual router;
and sending an Internet packet explorer PING packet to each network node from the preset virtual computing node through the monitoring network connection according to the address information of each network node to obtain the network link quality parameter corresponding to each network node.
2. The method of claim 1, wherein establishing the monitoring network connection of the provisioned virtual compute node to the virtual router comprises:
establishing an interface pair from the preset virtual computing node to the virtual router, and establishing the monitoring network connection through the interface pair;
the interface pair includes: a first interface and a second interface;
determining a Dynamic Host Configuration Protocol (DHCP) interface of a preset subnet connected with the virtual router as a first interface;
and determining a preset interface on the virtual switch of the preset virtual computing node as a second interface.
3. The method of claim 2, further comprising:
establishing a namespace containing the virtual router;
mapping the first interface to the namespace.
4. The method according to any one of claims 1 to 3, further comprising:
presetting a network link quality parameter threshold, and sending prompt information when the acquired network link quality parameter exceeds the preset network link quality parameter threshold.
5. An apparatus for monitoring network link quality, the apparatus comprising: the device comprises an acquisition module, a setting module and a test module; wherein,
the acquisition module is used for acquiring the address information of each network node in the designated routing path corresponding to the designated virtual router;
the setting module is used for establishing monitoring network connection between a preset virtual computing node and the virtual router;
and the test module is used for sending a PING packet to each network node from the preset virtual computing node through the monitoring network connection according to the address information of each network node to obtain the network link quality parameter corresponding to each network node.
6. The apparatus according to claim 5, wherein the setting module is specifically configured to:
establishing an interface pair from the preset virtual computing node to the virtual router, and establishing the monitoring network connection through the interface pair;
the interface pair includes: a first interface and a second interface;
determining a DHCP interface of a preset subnet connected with the virtual router as a first interface;
and determining a preset interface on the virtual switch of the preset virtual computing node as a second interface.
7. The apparatus of claim 6, wherein the setup module is further configured to:
establishing a namespace containing the virtual router;
mapping the first interface to the namespace.
8. The apparatus of any of claims 6 to 7, wherein the testing module is further configured to:
presetting a network link quality parameter threshold, and sending prompt information when the acquired network link quality parameter exceeds the preset network link quality parameter threshold.
9. A storage medium having stored thereon an executable program, which when executed by a processor performs the steps of the network link quality monitoring method according to any one of claims 1 to 4.
10. A network link quality monitoring apparatus comprising a processor, a memory and an executable program stored on the memory and executable by the processor, wherein the processor executes the executable program to perform the steps of the network link quality monitoring method according to any one of claims 1 to 4.
CN201811191833.5A 2018-10-12 2018-10-12 Network link quality monitoring method and device Active CN111049697B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811191833.5A CN111049697B (en) 2018-10-12 2018-10-12 Network link quality monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811191833.5A CN111049697B (en) 2018-10-12 2018-10-12 Network link quality monitoring method and device

Publications (2)

Publication Number Publication Date
CN111049697A true CN111049697A (en) 2020-04-21
CN111049697B CN111049697B (en) 2023-05-30

Family

ID=70230539

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811191833.5A Active CN111049697B (en) 2018-10-12 2018-10-12 Network link quality monitoring method and device

Country Status (1)

Country Link
CN (1) CN111049697B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115086204A (en) * 2022-04-22 2022-09-20 清华大学 High-reliability multi-factor network quality evaluation method and device for Overlay network
CN115242301A (en) * 2022-07-22 2022-10-25 中国电信股份有限公司 Network link monitoring method and device, storage medium and communication equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035691A (en) * 2009-09-28 2011-04-27 中国移动通信集团公司 Method and device for detecting quality of network link
CN106487695A (en) * 2015-08-25 2017-03-08 华为技术有限公司 A kind of data transmission method, virtual network managing device and data transmission system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035691A (en) * 2009-09-28 2011-04-27 中国移动通信集团公司 Method and device for detecting quality of network link
CN106487695A (en) * 2015-08-25 2017-03-08 华为技术有限公司 A kind of data transmission method, virtual network managing device and data transmission system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115086204A (en) * 2022-04-22 2022-09-20 清华大学 High-reliability multi-factor network quality evaluation method and device for Overlay network
CN115242301A (en) * 2022-07-22 2022-10-25 中国电信股份有限公司 Network link monitoring method and device, storage medium and communication equipment
CN115242301B (en) * 2022-07-22 2024-05-14 中国电信股份有限公司 Network link monitoring method and device, storage medium and communication equipment

Also Published As

Publication number Publication date
CN111049697B (en) 2023-05-30

Similar Documents

Publication Publication Date Title
CN108293001B (en) Software defined data center and deployment method of service cluster in software defined data center
CN110324165B (en) Network equipment management method, device and system
CN107465565B (en) Link test method and apparatus and system
CN109561033B (en) Method and device for multicast replication in Overlay network
EP3637687B1 (en) Method for orchestrating software defined network, and sdn controller
WO2016177049A1 (en) Method and device for achieving capacity expansion and reduction of access apparatus
WO2017036180A1 (en) Packet processing method and device
CN106357542B (en) The method and software defined network controller of multicast service are provided
CN111614505B (en) Message processing method and gateway equipment
CN103986638A (en) Method and device for binding multiple public network links for ADVPN tunnel
CN105790988B (en) Method and device for realizing operation maintenance management function
CN113630312A (en) Path detection method, device, network equipment and computer readable storage medium
CN112667293B (en) Method, device and storage medium for deploying operating system
CN111049697A (en) Network link quality monitoring method and device
CN109379239B (en) Method and device for configuring access switch in OpenStack environment
US11223965B2 (en) Method and apparatus for controlling network sensors
CN103401954A (en) Implementation method of virtual DHCP (dynamic host configuration protocol)
CN109510717B (en) Method, device, equipment and storage medium for acquiring information of node equipment
US20130135992A1 (en) Method and system for managing high capacity traffic offload in an ip network nucleus in the transport layer
CN106330511B (en) Network element equipment and method for opening data communication network
WO2016155204A1 (en) Test processing method and apparatus for message
CN104468467A (en) Dynamic host configuration protocol (DHCP) message transmitting method and device
WO2016065925A1 (en) Controller replacing method and device
WO2018077124A1 (en) Method, device, and system for service alarm processing
CN110545240B (en) Method for establishing label forwarding table and forwarding message based on distributed aggregation system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant