Disclosure of Invention
In order to cope with urgent demands and challenges of future network services on network capability, on the basis of emerging technologies such as SDN, real-time states and global views of a network are accurately measured, flexible, fair and controllable scheduling is provided for network traffic, and performance indexes of the network services are comprehensively evaluated, so that a set of intelligent network measuring and scheduling technology system is very necessary.
Therefore, a new method is needed to be introduced to automatically generate corresponding network measurement configuration based on the network topology collected by the SDN controller and automatically issue the configuration to all southbound network devices, so as to realize dynamic measurement of network quality in the whole network range.
An automatic network measurement configuration method based on SDN comprises the following steps:
s1: the SDN controller acquires network topology in a BGP AS domain where the SDN controller is located;
s2: the SDN controller searches the interface information of the router in each link according to the link information in the network topology;
s3: the SDN controller respectively designates two routers in each link as a source endpoint and a destination endpoint;
s4: the SDN controller generates configuration information for each router designated as a source endpoint and a destination endpoint according to the selected network quality measurement protocol;
s5: the SDN controller issues configuration information to a corresponding router;
s6: the SDN controller receives the measurement result sent by the router.
Preferably, the method for the SDN controller to obtain the network topology in the BGP AS domain where the SDN controller in step S1 is located includes:
the SDN controller collects topology change information in a BGP AS domain through a BGP-LS protocol;
the SDN controller analyzes the topology change message to obtain the network topology in the BGP AS domain in real time.
Preferably, the interface information of the router searched in the step S2 includes an interface IP; in the step S3, the two routers in the link are respectively designated as a source endpoint and a destination endpoint in the following manner: and designating a router with a small IP address as a source endpoint and designating a router with a large IP address as a destination endpoint.
Preferably, the network quality measurement protocol in step S4 is a twamp protocol.
Preferably, the SDN controller includes a Telemetry server, the router supports a Telemetry protocol and starts the function, and in step S6, the SDN controller accepts a measurement result sent by the router and is implemented by the Telemetry protocol.
Preferably, the method further comprises the steps of:
s7: the SDN controller sends the measurement to the WEBUI.
An automatic configuration device for network measurement based on SDN,
comprising the following steps:
a memory for storing a computer program;
and the processor is used for realizing the steps of the method when executing the program stored in the memory.
A computer-readable storage medium comprising a memory, a storage medium, and a memory,
the computer readable storage medium has stored therein a computer program which, when executed by a processor, carries out the above-mentioned method steps.
The beneficial effects are that:
1. the invention automatically generates the corresponding network measurement configuration based on the network topology acquired by the SDN controller and automatically transmits the configuration to all the southbound network devices, thereby realizing the dynamic measurement of the network quality in the whole network range. The method can effectively improve the service deployment efficiency of network quality monitoring, improve the network automation degree, reduce the manual participation and save the cost.
2. The invention monitors the network quality of the whole network according to the physical link through the network active measurement protocol, when monitoring, the source endpoint and the destination endpoint are respectively identified according to the IP address of the endpoints at two ends of one link, the IP address is small as the source endpoint, the source endpoint and the destination endpoint are used for uniquely identifying the link, and the same link is only configured with one bidirectional measurement protocol. The intelligent network measuring and regulating system monitors the network quality of the whole network according to a physical link through a network active or passive measuring protocol, and respectively identifies a source endpoint and a destination endpoint according to the IP address sizes of endpoints at two ends of one link during monitoring. The IP address is small as the source endpoint and a pair of source and destination endpoints are used to uniquely identify the link. The method is characterized in that the input interface and the output interface of the measurement protocol are distinguished by comparing the IP address sizes of the source endpoint and the destination endpoint of one physical link, the source endpoint is used as the input interface, and the destination endpoint is used as the output interface. The same link is configured with only one bidirectional measurement protocol. Because one physical link in BGP-LS topology may appear as two topology links, a from a-port to B-port and vice versa, a duplicate configuration may occur if each topology link is configured. By distinguishing links by the identification of the source and destination endpoints, it is possible to avoid one physical link being repeatedly configured with the network measurement protocol twice.
3. According to the collected network topology, the invention automatically generates the network active or passive measurement protocol configuration, and automatically issues the southbound network equipment to realize the whole network quality measurement. And automatically generating network measurement configuration through the network topology automatically collected by the intelligent network measurement and adjustment system. Analyzing the network topology, and detecting link identifiers and node identifiers in the network topology; the IP addresses of the endpoints at the two ends of the link respectively identify a source endpoint and a destination endpoint, the IP address of which is small is the source endpoint, and the link is uniquely identified by a pair of the source endpoint and the destination endpoint; and automatically planning a network configuration scheme, automatically generating network measurement configuration including session number, IP address, port and other information, and supporting configuration generation of various network measurement protocols. The automatic generation of the network measurement protocol configuration can greatly simplify the design and implementation of the network measurement system, and because the network measurement and adjustment system can sense the change of the network topology in real time, the network quality measurement protocol can be reconfigured according to the change of the topology. The real-time network quality perception capability provides a key technical support for automatic optimization of network paths, and is significant. The network active or passive measurement protocol configuration automatically transmits the southbound network equipment, realizes the whole network quality measurement, greatly liberates manpower and improves the sensitivity of the system network quality monitoring.
4. By the method, the network topology is automatically collected by the intelligent network measuring and adjusting system, the network measurement configuration is automatically generated, the design and the realization of the network measurement system can be greatly simplified, and the network quality measurement protocol can be automatically reconfigured according to the change of the topology because the network measuring and adjusting system can sense the change of the network topology in real time. The real-time network quality perception capability provides a key technical support for automatic optimization of network paths, and is significant. The network is configured with an active or passive measurement protocol, and the south-oriented network equipment is automatically issued, so that the measurement of the network quality of the whole network is realized, the manpower is greatly liberated, the sensitivity of monitoring the network quality of the system is improved, and the network topology change is responded in time. By the technology, when network equipment or a link fails, the intelligent network can timely sense, and the network path is re-optimized by measuring the changed network topology, so that deterministic time delay assurance is provided.
Detailed Description
The following describes the embodiments of the present invention further with reference to the drawings.
As shown in fig. 1, the device according to this embodiment includes a front-end WEBUI interface, an SDN network controller, and a router. The front-end WEBUI interface is responsible for presenting functions such as network topology, link quality attribute measurement results, system configuration, service configuration and the like. The SDN network controller is responsible for collecting network topology, issuing network quality measurement protocol configuration, receiving link quality attribute measurements, configuration issuing, device discovery, device management and other functions. The router is responsible for the functions of data plane message forwarding, control plane BGP routing negotiation, network quality measurement protocol execution, link quality measurement result timely reporting through a transport layer protocol, and the like.
As shown in fig. 2, a flowchart of the present embodiment is specifically described below:
1. and obtaining BGP-LS network topology.
Step 1: adding the SDN controller into the same BGP AS domain where the router is located, and using the SDN controller AS a neighbor in the BGP AS domain of the router equipment;
step 2: and collecting topology change information in the BGP AS domain through the BGP-LS protocol of the SDN controller.
Step 3: and analyzing the topology change message to obtain the network topology in the BGP AS domain in real time.
2. And searching corresponding interface information in equipment management in the SDN controller according to the link information in the network topology.
Step 1: and searching interface information, such as interface IP, interface name, interface flow and the like, in the equipment management of the SDN controller according to the link information.
Step 2: and respectively identifying the source endpoint and the destination endpoint according to the IP address size of the endpoints at two ends of one link according to the link information. The IP address is small as the source endpoint and a pair of source and destination endpoints are used to uniquely identify the link.
3. And generating network quality measurement protocol configuration information of the corresponding link according to the link information and the interface information.
Step 1: and obtaining router equipment nodes at two ends of the link according to the link information, wherein the router equipment nodes have small IP addresses as source endpoints and large IP addresses as destination endpoints, and different endpoints adopt different configuration sentences.
Step 2: according to the network quality measurement protocol, planning a network configuration scheme, determining the network session test-session number, ensuring that the network session numbers are unique in the same node, ensuring that the network sessions are mutually independent and do not interfere with each other.
Step 3: generating a source sender configuration, wherein the configuration comprises a local (source) IP address (the address of the source is denoted as sender-IP, the address of the IP v6 is denoted as sender-IP 6), a local (source) port (denoted as sender-port), an opposite (destination) IP address (the address of the IP v4 is denoted as reflector-IP, the address of the IP v6 is denoted as reflector-IP 6), and an opposite (destination) port (denoted as reflector-port).
Step 4: generating a destination configuration, wherein the configuration comprises a local (destination) IP address (the address of the IP v4 is expressed as a local-IP, the address of the IP v6 is expressed as a local-IP v 6), a local (destination) port (expressed as a local-port), a peer (source) IP address (the address of the IP v4 is expressed as a remote-IP, the address of the IP v6 is expressed as a remote-IP 6), and a peer (source) port (expressed as a remote-port).
Step 5: filling the source terminal and destination terminal configurations generated in the step 3 and the step 4 into a configuration template to generate network quality measurement protocol configuration information, wherein the same link is configured with a bidirectional measurement protocol only once.
As shown in fig. 3, which is a simplest example of network topology, in this embodiment, the network quality measurement protocol uses the twamp protocol as an example, and the present technology is not limited to this protocol, but is only an example.
The network topology in fig. 3 is composed of two routers, and the routers are connected to each other and can be regarded as forming two round-trip links. The automatically generated network configuration is as follows:
in the first step, according to the link information, it can be known that the router nodes at both ends are router 1 and router 2, respectively defined by 10.10.10.1:2001 and 10.10.10.2:2010 are connected. Since the IP address of router 1 is smaller, it is considered as the source endpoint, and router 2 is considered as the destination endpoint.
And secondly, planning network session numbers. Because the network topology is relatively simple, the network connection on router 1 is planned as network session 1 and the network connection on router 2 is planned as network session 2.
Third, source configuration information of the router 1 is generated. According to the network topology, the home ip is an ipv4 address, the value is 10.10.10.1, the home port is 2001, the peer ip is an ipv4 address, the value is 10.10.10.2, and the peer port is 2010. Then the following source configuration information will be generated:
test-session 1sender-ip 10.10.10.1reflector-ip 10.10.10.2sender-port 2001
reflector-port 2010
fourth, destination configuration information of the router 2 is generated. According to the network topology, the home ip is an ipv4 address, the value is 10.10.10.2, the home port is 2010, the peer ip is an ipv4 address, the value is 10.10.10.1, and the peer port is 2001. Then the following destination configuration information will be generated:
test-session 2local-ip 10.10.10.2remote-ip 10.10.10.1local-port 2010remote-
port 2001
and fifthly, filling the network configuration information generated in the third step and the fourth step into a twamp configuration template respectively to generate final network measurement protocol configuration information.
The configuration information of the router 1 is as follows:
nqa twamp-light
client
test-session 1sender-ip 10.10.10.1reflector-ip 10.10.10.2sender-port 2001reflector-port 2010
sender
responder
the configuration information of the router 2 is as follows:
nqa twamp-light
client
sender
responder
test-session 2local-ip 10.10.10.2remote-ip 10.10.10.1local-port 2010remote-port 2001
4. and transmitting the configuration information of the network quality measurement protocol to the corresponding router equipment.
Step 1: and the SDN controller transmits the configuration information of the network quality measurement protocol to the corresponding router equipment through a southbound protocol netconf/ssh and other channels.
Step 2: after the SDN controller successfully issues the network quality measurement protocol configuration information, the network quality measurement protocol configuration information is written into a local database for persistence.
5. The network measurement protocol is started and the link quality attribute is measured.
Step 1: and after receiving the configuration information of the network measurement protocol issued by the SDN controller, the router starts network measurement.
Step 2: the router link source port sends a measurement message to the link destination port, and the link destination port replies a response message to the source port, thereby realizing bidirectional measurement.
6. The link quality attribute measurement results are reported to the controller through a telemet.
Step 1: the router supports a Telemetry protocol and starts the function, and a server reported by the Telemetry is configured as a Telemetry server of the SDN controller.
Step 2: the router link quality attribute measurement results include delay, jitter, packet loss rate, available bandwidth, etc. of the link. The router sends the result to a Telemetry server of the SDN controller through a Telemetry protocol.
Step 3: the SDN controller presents a real-time measurement result of the link quality attribute reported by the router on the WEBUI.
Network topology data samples are for example:
automatically generated network measurement protocol configuration samples: this example uses the twamp-light protocol, and the present technique is not limited to this protocol, but is merely one example.
Note that: the response is a reflector of the twamp-light measurement protocol, and is used for reflecting a measurement message echo request sent by a sender end of the router equipment at the opposite end of the link, and correspondingly replying an echo response message to realize bidirectional link measurement.