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

Network link quality monitoring method and device Download PDF

Info

Publication number
CN111049697B
CN111049697B CN201811191833.5A CN201811191833A CN111049697B CN 111049697 B CN111049697 B CN 111049697B CN 201811191833 A CN201811191833 A CN 201811191833A CN 111049697 B CN111049697 B CN 111049697B
Authority
CN
China
Prior art keywords
network
interface
monitoring
link quality
preset
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
CN201811191833.5A
Other languages
Chinese (zh)
Other versions
CN111049697A (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 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 explorer (PING) packet from the preset virtual computing node to each network node through the monitoring network connection, and obtaining the network link quality parameter corresponding to each network node. The invention also discloses a device for monitoring the network link quality, a storage medium and an information processing device.

Description

Network link quality monitoring method and device
Technical Field
The present invention relates to software defined networking (SDN, software Defined Network) technology, and in particular, to a method and apparatus for monitoring network link quality.
Background
SDN is a novel network innovation architecture, and the core idea is to separate the control layer from the forwarding layer of network equipment so as to realize flexible control of network traffic, and provide standard open application programming interfaces (API, application Programming Interface) for the outside so as to realize flexible arrangement demands of various service platforms on the network.
By adopting SDN technology, the network resource utilization rate and deployment efficiency are improved, and the network maintenance cost is reduced. Through the virtualization of SDN and overlay network (overlay) technology, a multi-tenant and multi-route service model can be realized, and safe, flexible two-layer and three-layer communication is provided for a virtual host of a virtual data center. In general, an SDN technology is adopted to monitor the forwarding quality of an overlay network, and measure the health status of the network as required or at regular time, so as to meet the network high reliability requirements of services such as telecom cloud, private cloud, public cloud and the like.
At present, after the virtualized data center adopts the SDN technology, the following network forwarding quality monitoring method is generally adopted:
1. the bidirectional forwarding detection (BFD, bidirectional Forwarding Detection) is adopted to detect the on-off of the link and trigger the rapid switching of the link, and the detection period can reach 3.3ms. BFD detection can be started between Virtual network functions (VNF, virtualized Network Function) in an overlay network to realize link on-off monitoring from a Virtual computer (VM) to the VM, and the monitoring that the VM goes out of a Virtual data center depends on whether equipment outside the Virtual data center can be connected with the BFD functions or not. However, BFD cannot provide measurement data in terms of link packet loss, link delay, etc.;
2. the Y.1731 Ethernet operation administration maintenance (OAM, operation Administration and Maintenance) monitoring standard issued by the ITU organization can monitor the network link transmission quality such as the on-off, time delay and packet loss condition of a single layer network (Underlay) link; however, in the overlay network, the transmission quality of the network link from the user access side to the network element at the last kilometer cannot be monitored, and the forwarding of the two-layer packet to the outside of the data center needs to rely on the traditional router to support the connectivity fault management (CFM, connectivity Fault Management) characteristic, so that the corresponding north-south monitoring is difficult to cover.
Therefore, how to realize the monitoring of the end-to-end network link transmission quality of the overlay network in the SDN network scenario is a problem to be solved.
Disclosure of Invention
In view of this, the embodiments of the present invention expect to provide a method and an apparatus for monitoring network link quality, which can realize monitoring of network link transmission quality from end to end of an overlay network in an SDN network scenario.
In order to achieve the above 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 a designated routing path corresponding to a designated virtual router;
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 explorer (PING, packet Internet Groper) packet from the preset virtual computing node to each network node through the monitoring network connection, and obtaining the network link quality parameter corresponding to each network node.
In the above 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, dynamic Host Configuration Protocol) interface of a preset subnet connected by 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 above scheme, the method further comprises:
establishing a name space containing the virtual router;
the first interface is mapped 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 testing module; wherein,,
the acquisition module is used for acquiring 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 above scheme, 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 above scheme, the setting module is further configured to:
establishing a name space containing the virtual router;
the first interface is mapped to the namespace.
In the above scheme, 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, the executable program when executed by a processor realizes the steps of any one of the network link quality monitoring methods.
The embodiment of the invention also provides a network link quality monitoring device which comprises a processor, a memory and an executable program stored on the memory and capable of being operated by the processor, wherein the processor executes any one of the steps of the network link quality monitoring method when the executable program is operated by the processor.
The network link quality monitoring method and device provided by the embodiment of the invention; acquiring address information of each network node in a specified routing path corresponding to a specified virtual router (vRouter); 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 a network link quality parameter corresponding to each network node. In this way, the PING packet is sent to another node through a preset virtual computing node in the overlay network in the SDN network scene, so that the end-to-end network test is realized; and further, monitoring of network link transmission quality such as broken links, packet loss numbers or time delay can be realized through PING packets.
Drawings
Fig. 1 is a 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 of a process for creating a monitoring task according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a process for performing a monitoring task according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a network link quality monitoring device according to an embodiment of the present invention.
Detailed Description
In the embodiment of the invention, the address information of each network node in a designated routing path corresponding to a designated virtual router is acquired; 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 a network link quality parameter corresponding to each network node.
The present invention will be described in further detail with reference to examples.
The method for monitoring the network link quality provided by the embodiment of the invention, as shown in fig. 1, comprises the following steps:
step 101: acquiring address information of each network node in a designated routing path corresponding to a designated 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 performed by loading a monitoring driver on the virtual computing node; the virtual router refers to a virtual router in the SDN; the specified routing paths can be all routing paths connected with the virtual router or partial routing paths; 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. Wherein the preset virtual computing node may include a VM, a virtual switch (vSwitch), and the like;
the networking schematic diagram of the SDN may be as shown in fig. 2, where a cloud platform may be used to confirm a vruter and its name that needs to perform network link monitoring; setting a monitoring driver 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 vRouter name and the authentication information of the configuration file, and further acquire address information of each network node in a specified routing path such as a vRouter related subnet gateway address, an external network gateway address, a subnet DHCP interface, and/or each subnet host address and the like in the cloud platform or the SDN controller and the like; here, the preset virtual computing node is used as one end of the overlay network, each network node in the routing path is designated as the other end of the network, and the end-to-end monitoring in the overlay network is realized by directly monitoring the network link quality from the preset virtual computing node to each network node; the preset virtual computing node can be set according to the network endpoint tested by the actual demand.
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 interfaces that are mutually communicated or a tunnel of the SDN; here, the preset virtual computing node is used for monitoring the network link quality, and may be referred to as a monitoring node;
the monitoring network connection is used for transmitting a preset virtual computing node to a data packet and the like between each network node in the routing path appointed by the virtual router.
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, internet Protocol) address, a media access control (MAC, media Access Control) address, etc. of a subnet DHCP interface of the virtual router may be randomly selected and assigned to the first interface; the second interface is added to the vSwitch to which the preset virtual computing node belongs; the preset virtual computing node may send a test data 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 including the virtual router; mapping the first interface to the namespace;
specifically, a namespace may be established for address information of each network node in the designated routing path corresponding to the virtual router, and the first interface may be mapped to the namespace; therefore, the isolation effect can be achieved, and the operation efficiency is improved.
Step 103: sending a PING 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 to obtain a network link quality parameter corresponding to each network node;
here, by sending a PING packet, the obtained network link quality parameters may include: the broken link information, the packet loss number or the network delay information; here, the PING packet may be sent according to a preset sending time rule, for example, a sending period, a sending duration, a sending interval, and the like are set; the ping test can be initiated concurrently, so that the 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 acquired 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 a plurality of preset virtual computing nodes for monitoring; a preset virtual compute node may monitor different vruters 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 can be sent out to prompt a manager to process.
SDN controllers are separated from preset virtual computing nodes, a control and monitoring separation framework 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 package sending modes.
The positive effects produced by the present invention will be described in further detail with reference to specific examples;
network elements or components involved in the SDN are shown in fig. 2, wherein an SDN controller is responsible for management of monitoring tasks, scheduling monitoring driving and generation and deletion of monitoring alarms; presetting a virtual computing node, namely, a monitoring driver in a monitoring node is responsible for responding to scheduling of an SDN controller, creating a monitoring source interface, executing monitoring and storing a result; the SDN controller and the monitoring driver are interconnected through a control surface network, and the links are depicted by broken lines; the monitoring behavior is initiated from a network naming space to which the monitoring source interface belongs, and is radiated to all target subnets or nodes of the vRouter through an overlay network, such as north-south traffic formed by connecting Xa1, xa2, xa3 and Xa4 or east-west traffic formed by connecting Xb1, xb2 and Xb 3;
the implementation method of the network link quality monitoring mainly comprises the steps of creating a monitoring task, initiating monitoring, analyzing monitoring results and the like, and as shown in fig. 3, the specific flow comprises the following steps:
step 301: confirming a vRouter needing to create link monitoring and a name thereof through a cloud platform;
step 302: creating a monitoring task corresponding to the vRouter based on the SDN controller; if successful, step 303 may be performed, if failed, an error message is returned;
specifically, as shown in the SDN data interaction schematic of fig. 4, the data interaction step in step 302 includes:
step 3021: inputting the vRouter to be monitored to 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 create a monitoring source interface;
step 3023: the monitoring driver acquires authentication of the cloud platform based on the vRouter name and the authentication information of the configuration file, further acquires a list of vRouter related subnet gateway addresses, external network gateway addresses, subnet DHCP interfaces, addresses of all subnet hosts and the like, and generates a target file;
step 3024: the monitoring driver creates a network naming space for the vRouter of the information searched according to 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 subnet DHCP interface and assigns the information to the interface pair. Mapping one interface into a network naming space, and adding the other interface into a vSwitch to which a 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 subnet DHCP interface into an interface of a network naming space; setting interface information of vSwitch belonging to a virtual local area network Tunnel endpoint (VTEP) by means of an open virtual switch database (OVSDB, openv Switch Database), representational state transfer (REST, representational State Transfer) interface and the like;
step 3026: the SDN controller inquires the creation result of the vRouter on the monitoring node, if a corresponding monitoring task file exists, the local database is written in, and the task creation success is returned; if the monitoring task does not exist or the necessary information is incomplete, the monitoring task is backed up and error information is prompted.
Step 303: and configuring an alarm threshold value of packet loss or time delay of the monitoring task vRouter, and starting the monitoring task. If successful, the 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, a link alarm is generated at the same time; if the failure occurs, error information is fed back; the monitoring time length of the vRouter can be configured according to the requirement, and the monitoring task can be executed according to the requirement;
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 regularly;
step 3032: the SDN controller schedules the monitoring node to drive and initiate monitoring activities based on the information of the vRouter 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 the monitoring completion state; in practical application, the detection result can be output to Comma Separated Values (CSV) format files marked by virtual router universal unique identification codes (vrouid);
step 3035: the SDN controller regularly acquires monitoring states of the monitoring points, and if the states are marked to be finished states, the monitoring result files are extracted; if the marking is not finished or not marked, skipping the step and continuing to check at the next timing;
step 3036: SDN generates or disappears the alarm corresponding to vRouter based on the monitoring result file and the threshold value, including broken link, packet loss overrun or time delay overrun alarm.
The device for monitoring network link quality provided by the embodiment of the invention, as shown in fig. 6, comprises: an acquisition module 61, a setting module 62 and a testing module 63, wherein,
the obtaining module 61 obtains address information of each network node in a specified routing path corresponding to the 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 performed by loading a monitoring driver on the virtual computing node; the virtual router refers to a virtual router in the SDN; the specified routing paths can be all routing paths connected with the virtual router or partial routing paths; 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. Wherein, the preset virtual computing node can comprise VM, vSwitch and the like;
the networking schematic diagram of the SDN may be as shown in fig. 2, where a cloud platform may be used to confirm a vruter and its name that needs to perform network link monitoring; setting a monitoring driver 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 vRouter name and the authentication information of the configuration file, and further acquire address information of each network node in a specified routing path such as a vRouter related subnet gateway address, an external network gateway address, a subnet DHCP interface, and/or each subnet host address and the like in the cloud platform or the SDN controller and the like; here, the preset virtual computing node is used as one end of the overlay network, each network node in the routing path is designated as the other end of the network, and the end-to-end monitoring in the overlay network is realized by directly monitoring the network link quality from the preset virtual computing node to each network node; the preset virtual computing node can be set according to the network endpoint tested by the actual demand.
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 interfaces that are mutually communicated or a tunnel of the SDN; here, the preset virtual computing node is used for monitoring the network link quality, and may be referred to as a monitoring node;
the monitoring network connection is used for transmitting a preset virtual computing node to a data packet and the like between each network node in the routing path appointed by the virtual router.
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 a MAC address of a subnet DHCP interface of the virtual router can be randomly selected and assigned to the first interface; the second interface is added to the vSwitch to which the preset virtual computing node belongs; the preset virtual computing node may send a test data 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 including the virtual router; mapping the first interface to the namespace;
specifically, a namespace may be established for address information of each network node in the designated routing path corresponding to the virtual router, and the first interface may be mapped to the namespace; therefore, the isolation effect can be achieved, and the operation efficiency is improved.
The test module 63 is configured to send a PING packet from the preset virtual computing node to each network node via 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, by sending a PING packet, the obtained network link quality parameters may include: the broken link information, the packet loss number or the network delay information; here, the PING packet may be sent according to a preset sending time rule, for example, a sending period, a sending duration, a sending interval, and the like are set; the ping test can be initiated concurrently, so that the 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 acquired 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 a plurality of preset virtual computing nodes for monitoring; a preset virtual compute node may monitor different vruters 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 can be sent out to prompt a manager to process.
SDN controllers are separated from preset virtual computing nodes, a control and monitoring separation framework 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 package sending modes.
In practical applications, the acquiring 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 that constructs an SDN network.
The storage medium provided by the embodiment of the invention stores an executable program thereon, and when the executable program is executed by a processor, the executable program realizes a network link quality monitoring method, as shown in fig. 1, the method includes:
step 101: acquiring address information of each network node in a designated routing path corresponding to a designated 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 performed by loading a monitoring driver on the virtual computing node; the virtual router refers to a virtual router in the SDN; the specified routing paths can be all routing paths connected with the virtual router or partial routing paths; 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. Wherein, the preset virtual computing node can comprise VM, vSwitch and the like;
the networking schematic diagram of the SDN may be as shown in fig. 2, where a cloud platform may be used to confirm a vruter and its name that needs to perform network link monitoring; setting a monitoring driver 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 vRouter name and the authentication information of the configuration file, and further acquire address information of each network node in a specified routing path such as a vRouter related subnet gateway address, an external network gateway address, a subnet DHCP interface, and/or each subnet host address and the like in the cloud platform or the SDN controller and the like; here, the preset virtual computing node is used as one end of the overlay network, each network node in the routing path is designated as the other end of the network, and the end-to-end monitoring in the overlay network is realized by directly monitoring the network link quality from the preset virtual computing node to each network node; the preset virtual computing node can be set according to the network endpoint tested by the actual demand.
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 interfaces that are mutually communicated or a tunnel of the SDN; here, the preset virtual computing node is used for monitoring the network link quality, and may be referred to as a monitoring node;
the monitoring network connection is used for transmitting a preset virtual computing node to a data packet and the like between each network node in the routing path appointed by the virtual router.
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 a MAC address of a subnet DHCP interface of the virtual router can be randomly selected and assigned to the first interface; the second interface is added to the vSwitch to which the preset virtual computing node belongs; the preset virtual computing node may send a test data 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 including the virtual router; mapping the first interface to the namespace;
specifically, a namespace may be established for address information of each network node in the designated routing path corresponding to the virtual router, and the first interface may be mapped to the namespace; therefore, the isolation effect can be achieved, and the operation efficiency is improved.
Step 103: sending a PING 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 to obtain a network link quality parameter corresponding to each network node;
here, by sending a PING packet, the obtained network link quality parameters may include: the broken link information, the packet loss number or the network delay information; here, the PING packet may be sent according to a preset sending time rule, for example, a sending period, a sending duration, a sending interval, and the like are set; the ping test can be initiated concurrently, so that the 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 acquired 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 a plurality of preset virtual computing nodes for monitoring; a preset virtual compute node may monitor different vruters 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 can be sent out to prompt a manager to process.
SDN controllers are separated from preset virtual computing nodes, a control and monitoring separation framework 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 package sending modes.
The information processing device provided by the embodiment of the invention comprises a processor, a memory and an executable program stored on the memory and capable of being operated by the processor, wherein the processor executes a method for realizing network link quality monitoring when the executable program is operated by the processor, as shown in fig. 1, the method comprises the following steps:
step 101: acquiring address information of each network node in a designated routing path corresponding to a designated 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 performed by loading a monitoring driver on the virtual computing node; the virtual router refers to a virtual router in the SDN; the specified routing paths can be all routing paths connected with the virtual router or partial routing paths; 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. Wherein, the preset virtual computing node can comprise VM, vSwitch and the like;
the networking schematic diagram of the SDN may be as shown in fig. 2, where a cloud platform may be used to confirm a vruter and its name that needs to perform network link monitoring; setting a monitoring driver 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 vRouter name and the authentication information of the configuration file, and further acquire address information of each network node in a specified routing path such as a vRouter related subnet gateway address, an external network gateway address, a subnet DHCP interface, and/or each subnet host address and the like in the cloud platform or the SDN controller and the like; here, the preset virtual computing node is used as one end of the overlay network, each network node in the routing path is designated as the other end of the network, and the end-to-end monitoring in the overlay network is realized by directly monitoring the network link quality from the preset virtual computing node to each network node; the preset virtual computing node can be set according to the network endpoint tested by the actual demand.
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 interfaces that are mutually communicated or a tunnel of the SDN; here, the preset virtual computing node is used for monitoring the network link quality, and may be referred to as a monitoring node;
the monitoring network connection is used for transmitting a preset virtual computing node to a data packet and the like between each network node in the routing path appointed by the virtual router.
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 a MAC address of a subnet DHCP interface of the virtual router can be randomly selected and assigned to the first interface; the second interface is added to the vSwitch to which the preset virtual computing node belongs; the preset virtual computing node may send a test data 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 including the virtual router; mapping the first interface to the namespace;
specifically, a namespace may be established for address information of each network node in the designated routing path corresponding to the virtual router, and the first interface may be mapped to the namespace; therefore, the isolation effect can be achieved, and the operation efficiency is improved.
Step 103: sending a PING 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 to obtain a network link quality parameter corresponding to each network node;
here, by sending a PING packet, the obtained network link quality parameters may include: the broken link information, the packet loss number or the network delay information; here, the PING packet may be sent according to a preset sending time rule, for example, a sending period, a sending duration, a sending interval, and the like are set; the ping test can be initiated concurrently, so that the 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 acquired 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 a plurality of preset virtual computing nodes for monitoring; a preset virtual compute node may monitor different vruters 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 can be sent out to prompt a manager to process.
SDN controllers are separated from preset virtual computing nodes, a control and monitoring separation framework 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 package sending modes.
The above description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention, but any modifications, equivalents, improvements, etc. within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (8)

1. A method for monitoring network link quality, the method comprising:
acquiring address information of each network node in a designated routing path corresponding to a designated virtual router;
establishing an interface pair from a preset virtual computing node to the virtual router, and establishing 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; determining a preset interface on a virtual switch of the preset virtual computing node as a second interface;
and according to the address information of each network node, sending an Internet packet explorer PING packet from the preset virtual computing node to each network node through the monitoring network connection, and obtaining the network link quality parameter corresponding to each network node.
2. The method according to claim 1, characterized in that the method further comprises:
establishing a name space containing the virtual router;
the first interface is mapped to the namespace.
3. The method according to any one of claims 1 to 2, 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.
4. A network link quality monitoring apparatus, the apparatus comprising: the device comprises an acquisition module, a setting module and a testing module; wherein,,
the acquisition module is used for acquiring address information of each network node in the designated routing path corresponding to the designated virtual router;
the setting module is used for establishing an interface pair from a preset virtual computing node to the virtual router, and establishing 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; determining a preset interface on a virtual switch of the preset virtual computing node as a second interface;
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.
5. The apparatus of claim 4, wherein the setup module is further configured to:
establishing a name space containing the virtual router;
the first interface is mapped to the namespace.
6. The apparatus of any one of claims 4 to 5, wherein 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.
7. 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 of claims 1 to 3.
8. A network link quality monitoring device comprising a processor, a memory and an executable program stored on the memory and executable by the processor, wherein the processor performs the steps of the network link quality monitoring method of any one of claims 1 to 3 when the executable program is run by the processor.
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 CN111049697A (en) 2020-04-21
CN111049697B true 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)

Families Citing this family (2)

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

Citations (1)

* 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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106487695B (en) * 2015-08-25 2019-10-01 华为技术有限公司 A kind of data transmission method, virtual network managing device and data transmission system

Patent Citations (1)

* 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

Also Published As

Publication number Publication date
CN111049697A (en) 2020-04-21

Similar Documents

Publication Publication Date Title
US8270306B2 (en) Fault management apparatus and method for identifying cause of fault in communication network
CN107465565B (en) Link test method and apparatus and system
EP3637687B1 (en) Method for orchestrating software defined network, and sdn controller
US20170180456A1 (en) Method, device, and system for controlling network device auto-provisioning
CN108777640B (en) Server detection method, device, system and storage medium
CN101951345B (en) Message transmitting method and equipment
CN111142878B (en) SDN operation and maintenance method, device, equipment and readable storage medium
CN111049697B (en) Network link quality monitoring method and device
CN109873728A (en) A kind of terminal test method, device and storage medium
CN111614505B (en) Message processing method and gateway equipment
CN109344075A (en) Configuration method, test method, configuration server and service node device
CN112667293B (en) Method, device and storage medium for deploying operating system
CN115567383A (en) Network configuration method, host server, device, and storage medium
KR102287941B1 (en) Method for providing virtual customer premises equipment services using a single internet line, and a network function virtualization cloud for the same
CN113949649B (en) Fault detection protocol deployment method and device, electronic equipment and storage medium
CN109379239B (en) Method and device for configuring access switch in OpenStack environment
US20080267080A1 (en) Fault Verification for an Unpaired Unidirectional Switched-Path
CN107528788B (en) Method and device for realizing automatic stacking between network devices
CN112995042B (en) Method, device and equipment for generating service topological graph and storage medium
CN114697191A (en) Resource migration method, device, equipment and storage medium
CN108650337B (en) Server detection method, system and storage medium
CN113300871B (en) Networking method and device of simulation network
CN112636941A (en) Cloud network service opening method and device
CN110545240B (en) Method for establishing label forwarding table and forwarding message based on distributed aggregation system
CN111314198B (en) Method and equipment for setting port IP of white box switch

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