Method and device for collecting link data in software defined network

Through the bidirectional active measurement protocol and Telemetry technology, sub-second monitoring of link data in software-defined networks is achieved, solving the problem of existing technologies that cannot quickly reflect link quality, and improving the performance and scheduling efficiency of network equipment.

CN120675911APending Publication Date: 2025-09-19ULTRAPOWER SOFTWARE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510815905.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-18
Publication Date
2025-09-19

AI Technical Summary

Technical Problem

Existing link quality detection technologies cannot achieve sub-second monitoring, and frequent polling will burden network devices and affect network performance.

Method used

Using a bidirectional active measurement protocol and Telemetry technology, a measurement session is initiated from the first network device to the second network device, and Telemetry traffic packets are pushed based on Telemetry technology. The collector parses the performance data and sends it to the SDN controller, which combines it with the session identifier information to generate link quality data.

Benefits of technology

It achieves sub-second link data monitoring, improves the efficiency and real-time performance of performance data collection, optimizes network traffic scheduling and control, and improves network performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120675911A_ABST
    Figure CN120675911A_ABST
Patent Text Reader

Abstract

The invention provides a method and a device for collecting link data in a software defined network (SDN), which can realize sub-second-level monitoring of the link data in the SDN, and is beneficial for an SDN controller to efficiently and accurately schedule and control network traffic. The method is applied to a collector and comprises the following steps: after a first network device initiates a measurement session to a second network device based on a bidirectional active measurement protocol, receiving a telemetering traffic packet corresponding to the measurement session pushed by the first network device based on a telemetering technology; analyzing the telemetering traffic packet to obtain link performance data corresponding to the measurement session and then sending performance data to a controller, the performance data including session identifier information and link performance index information; obtaining link data including session identifier information and link resource information of the measurement session through the first network device; and sending the link data to a controller, so that the controller combines the performance data and the link data according to the session identifier information to obtain link quality data and stores the link quality data in a database.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network communication technology, and in particular to a method and device for collecting link data in a software-defined network. Background Art

[0002] With the rapid development of Internet technology, the scope of network applications continues to expand, and network structures and applications are becoming increasingly complex. This complexity significantly increases the likelihood of various network problems and complicates network management. Software-Defined Networking (SDN) architecture aims to simplify the complexity of network management. In this architecture, the network control and data planes are separated, providing flexible traffic management and scheduling capabilities. However, link quality monitoring is one of the main challenges facing SDN. In particular, when network links are congested or fail, how to quickly and effectively reflect the quality of the network link and take timely traffic scheduling measures to minimize the impact on services and users has become an urgent issue for communications network operators.

[0003] However, traditional link quality monitoring technologies rely primarily on active polling mechanisms such as the Simple Network Management Protocol (SNMP) and Ping. While these technologies can provide some link quality information, their response times are typically in the order of minutes, failing to meet the high-quality link monitoring requirements of modern networks. Even by reducing the polling interval to improve response speed, achieving second-level or even sub-second monitoring is difficult. Furthermore, frequent polling places a heavy burden on network devices, impacting overall network performance.

[0004] Therefore, there is an urgent need for a solution to efficiently collect link data in software-defined networks to achieve sub-second monitoring of link data. Summary of the Invention

[0005] The present application provides a method and device for collecting link data in a software-defined network, which can achieve sub-second monitoring of link data in the software-defined network, facilitate the software-defined network controller to efficiently and accurately schedule and control network traffic, and optimize network performance.

[0006] In a first aspect, a method for collecting link data in a software-defined network is provided, which is applied to a collector and includes:

[0007] After the first network device initiates a measurement session to the second network device based on the bidirectional active measurement protocol, receiving a Telemetry traffic packet corresponding to the measurement session pushed by the first network device based on the Telemetry technology;

[0008] Parse Telemetry traffic packets to obtain performance data for the link corresponding to the measurement session. The performance data includes session identifier information and link performance indicator information.

[0009] Send performance data to the software-defined network (SDN) controller;

[0010] Acquire link data of the measurement session through the first network device, where the link data includes session identifier information and link resource information;

[0011] The link data is sent to the SDN controller so that the SDN controller can associate the performance data and link data according to the session identifier information to obtain link quality data and store it in the database.

[0012] In a feasible design, Telemetry traffic packets are parsed to obtain performance data for the link corresponding to the measurement session, including:

[0013] Determine, based on a value of a field in the Telemetry traffic packet that indicates the vendor, an encoder corresponding to the vendor of the first network device.

[0014] Use the encoder to parse the Telemetry traffic packet to obtain the performance data of the link corresponding to the measurement session.

[0015] In one feasible design, obtaining link data of a measurement session through the first network device includes:

[0016] After receiving the first indication information from the SDN controller, sending the first indication information to the first network device, where the first indication information includes a command for obtaining session information of the measurement session;

[0017] receiving session information sent from the first network device, where the session information includes an Internet Protocol address of the first network device, session identifier information, an Internet Protocol address of an interface of the first network device, and an Internet Protocol address of an interface of the second network device;

[0018] After receiving the second instruction information from the SDN controller, sending the second instruction information to the first network device, where the second instruction information includes a command for obtaining information of devices at both ends of the measurement session;

[0019] Receiving information about both end devices sent from the first network device, the information about both end devices including the Internet Protocol address of the interface of the first network device, the port number of the first network device, the Internet Protocol address of the interface of the second network device, and the port number of the second network device;

[0020] Determining matching session information and device information at both ends based on the Internet Protocol address of the first network device and the Internet Protocol address of the interface of the second network device;

[0021] According to the matched session information and the information of the devices at both ends, the session identifier information and the link resource information are determined, and the session identifier information and the link resource information constitute the link data.

[0022] In one possible design, performance data is sent to a software-defined network (SDN) controller, including:

[0023] Send performance data to the SDN controller via the Kafka message center; or

[0024] Send link data to the SDN controller, including:

[0025] Send link data to the SDN controller through the KAFKA message center.

[0026] In a second aspect, a method for collecting link data in a software-defined network is provided, which is applied to a software-defined network (SDN) controller. The method includes:

[0027] Obtain performance data from the collector, including session identifier information and link performance indicator information corresponding to the measurement session. The measurement session is a session initiated by the first network device to the second network device based on the bidirectional active measurement protocol. The performance data is generated by parsing the Telemetry traffic packets corresponding to the measurement session pushed by the first network device based on Telemetry technology.

[0028] Acquire link data of a measurement session from a collector, where the link data includes session identifier information and link resource information;

[0029] According to the session identifier information, the performance data and the link data are correlated and merged to obtain link quality data and stored in the database.

[0030] In one possible design, the method further includes:

[0031] Sending first indication information to the collector to obtain link data, where the first indication information includes a command for obtaining session information of the measurement session, where the session information includes an Internet Protocol address of the first network device, session identifier information, an Internet Protocol address of an interface of the first network device, and an Internet Protocol address of an interface of the second network device, or,

[0032] Send a second indication message to the collector to obtain link data, the second indication message includes a command for obtaining information about devices at both ends of the measurement session, the information about devices at both ends includes the Internet Protocol address of the interface of the first network device, the port number of the first network device, the Internet Protocol address of the interface of the second network device, and the port number of the second network device.

[0033] In a third aspect, a method for collecting link data in a software-defined network is provided, which is applied to a first network device, and the method includes:

[0034] Initiating a measurement session to the second network device based on a bidirectional active measurement protocol;

[0035] Pushes the Telemetry traffic packets corresponding to the measurement session to the collector based on Telemetry technology;

[0036] receiving first indication information from a collector, where the first indication information includes a command for obtaining session information of a measurement session;

[0037] After acquiring session information of the measurement session according to the first instruction information, the session information is sent to the collector, where the session information includes an Internet Protocol address of the first network device, session identifier information, an Internet Protocol address of an interface of the first network device, and an Internet Protocol address of an interface of the second network device;

[0038] receiving second indication information from the collector, where the second indication information includes a command for obtaining information of devices at both ends of the measurement session;

[0039] According to the second indication information, after obtaining the device information at both ends of the measurement session, the device information at both ends is sent to the collector, and the device information at both ends includes the Internet Protocol address of the interface of the first network device, the port number of the first network device, the Internet Protocol address of the interface of the second network device, and the port number of the second network device.

[0040] In a fourth aspect, a device for collecting link data in a software-defined network is provided, which is applied to a collector and includes:

[0041] The first information transmission module is configured to receive a Telemetry traffic packet corresponding to the measurement session pushed by the first network device based on the Telemetry technology after the first network device initiates a measurement session to the second network device based on the bidirectional active measurement protocol;

[0042] The traffic packet parsing module parses the Telemetry traffic packet to obtain performance data of the link corresponding to the measurement session. The performance data includes session identifier information and link performance indicator information.

[0043] The first information transmission module is further configured to send performance data to a software defined network SDN controller;

[0044] The first information transmission module is further configured to obtain link data of the measurement session through the first network device, where the link data includes session identifier information and link resource information;

[0045] The first information transmission module is further configured to send link data to the SDN controller, so that the SDN controller can associate the performance data and the link data according to the session identifier information to obtain link quality data and store the data in a database.

[0046] In a fifth aspect, a device for collecting link data in a software-defined network is provided, which is applied to a software-defined network (SDN) controller, and includes:

[0047] The second information transmission module is used to obtain performance data from the collector. The performance data includes session identifier information and link performance indicator information corresponding to the measurement session. The measurement session is a session initiated by the first network device to the second network device based on the bidirectional active measurement protocol. The performance data is generated by parsing the Telemetry traffic packets corresponding to the measurement session pushed by the first network device based on the Telemetry technology;

[0048] The second information transmission module is further configured to obtain link data of the measurement session from the collector, the link data including session identifier information and link resource information;

[0049] The data association module is used to associate the performance data and the link data according to the session identifier information to obtain the link quality data and store it in the database.

[0050] In a sixth aspect, a device for collecting link data in a software-defined network is provided, which is applied to a first network device, and includes:

[0051] A session initiating module, configured to initiate a measurement session to the second network device based on a bidirectional active measurement protocol;

[0052] The third information transmission module is used to push the Telemetry traffic packet corresponding to the measurement session to the collector based on Telemetry technology;

[0053] The third information transmission module is further configured to receive first indication information from the collector, where the first indication information includes a command for obtaining session information of the measurement session;

[0054] The third information transmission module is further configured to, after acquiring session information of the measurement session according to the first indication information, send the session information to the collector, where the session information includes an Internet Protocol address of the first network device, session identifier information, an Internet Protocol address of an interface of the first network device, and an Internet Protocol address of an interface of the second network device;

[0055] The third information transmission module is further configured to receive second indication information from the collector, where the second indication information includes a command for obtaining information about devices at both ends of the measurement session;

[0056] The third information transmission module is also used to obtain the device information at both ends of the measurement session according to the second indication information, and then send the device information at both ends to the collector. The device information at both ends includes the Internet Protocol address of the interface of the first network device, the port number of the first network device, the Internet Protocol address of the interface of the second network device, and the port number of the second network device.

[0057] In this embodiment, a first network device initiates a measurement session using a bidirectional active measurement protocol. This allows for precise performance measurements between both ends of a link, providing the collector with accurate and timely real-world performance data on the link, enabling high-precision data support for sub-second monitoring. Furthermore, the first network device periodically and proactively reports performance data to the collector using a "push mode" based on Telemetry technology. This allows for sub-second collection cycles, enabling rapid reflection of network status changes without the need for periodic polling of devices to obtain performance data. This significantly improves the efficiency and real-time nature of performance data collection. The collector obtains and sends sub-second performance data to the SDN controller, enabling the SDN controller to implement sub-second monitoring of the link based on this performance data. Furthermore, by using session identifier information to correlate performance data and link data corresponding to links in the same measurement session, the SDN controller can merge performance data and link resource data to generate link quality data. This allows the SDN controller to perform comprehensive analysis of the link quality data and more accurately determine the link's operating status based on the complete collected data. This solution facilitates the SDN controller to efficiently and accurately schedule and control network traffic, optimizing network performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0059] Figure 1 This is a system for collecting link data in a software-defined network provided by an exemplary embodiment of the present application;

[0060] Figure 2 This is a schematic flow chart of a method for collecting link data in a software-defined network provided by an exemplary embodiment of the present application;

[0061] Figure 3 This is a schematic diagram of a link data collection device in a software-defined network applied to a collector, provided by an exemplary embodiment of the present application;

[0062] Figure 4This is a schematic diagram of a link data collection device in a software-defined network applied to an SDN controller provided by an exemplary embodiment of the present application;

[0063] Figure 5 This is a schematic diagram of a link data collection device in a software-defined network applied to a first network device, provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0064] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0065] In order to achieve sub-second monitoring of link data in Software-Defined Networking (SDN), Figure 1 As shown, the present application provides a link data collection system in an SDN. The system includes a first network device, a second network device, a collector, an SDN controller, and a database.

[0066] Exemplarily, the system also includes a KAFKA message center.

[0067] Before data collection, the first network device and the second network device need to enable Telemetry and subscribe to Two-Way Active Measurement Protocol (TWAMP) data. The first network device and the second network device can be from various manufacturers.

[0068] The passive listening port needs to be enabled on the collector. Network devices from different manufacturers correspond to different ports.

[0069] After data collection begins, the first network device initiates a measurement session with the second network device using the bidirectional active measurement protocol. During the process of collecting performance data for the link corresponding to the measurement session, the first network device pushes Telemetry traffic packets to the collector using Telemetry technology. Upon receiving the Telemetry traffic packets, the collector uses the corresponding encoder, based on the manufacturer of the first network device, to parse the packets and obtain performance data for the link corresponding to the measurement session. This performance data includes session identifier information and link performance indicator information. The collector then sends this performance data to the SDN controller.

[0070] Exemplarily, the collector sends the performance data to the SDN controller through the KAFKA message center.

[0071] In the process of collecting link data of the link corresponding to the measurement session, the SDN controller sends the first indication information and the second indication information to the first network device through the collector. The first indication information includes a command for obtaining the session information of the measurement session, and the second indication information includes a command for obtaining the information of the devices at both ends of the measurement session. The first network device obtains the session information and the device information at both ends of the measurement session according to the first indication information and the second indication information, and sends them to the collector. The session information includes the Internet Protocol address of the first network device, the session identifier information, the Internet Protocol address of the interface of the first network device, and the Internet Protocol address of the interface of the second network device. The device information at both ends includes the Internet Protocol address of the interface of the first network device, the port number of the first network device, the Internet Protocol address of the interface of the second network device, and the port number of the second network device. The collector combines the two types of information to generate the link data of the measurement session, and then sends it to the SDN controller.

[0072] Exemplarily, the collector sends the link data to the SDN controller through the KAFKA message center.

[0073] The SDN controller associates the performance data and link data of the measurement session through the session identifier, then merges the performance data and link data to obtain link quality data and stores it in the database.

[0074] This embodiment of the application utilizes TWAMP technology, leveraging a complementary approach using Telemetry and commands to meet the stringent requirements of sub-second monitoring and data collection, enabling faster reflection of current link quality. Furthermore, by providing timely link quality data corresponding to the measurement session to the SDN controller, it provides more efficient link analysis data for SDN network traffic scheduling and control, enabling faster network adjustments.

[0075] Based on the above system, Figure 2 As shown, the present application provides a method for collecting link data in a software-defined network, which is applied to a collector and includes:

[0076] S110: After the first network device initiates a measurement session to the second network device based on the bidirectional active measurement protocol, a Telemetry traffic packet corresponding to the measurement session, which is pushed by the first network device based on the Telemetry technology, is received.

[0077] For example, the first network device pushes Telemetry traffic packets to the collector based on Google Remote Procedure Call (gRPC). The collector uses the Layer 2 gRPC Network Management Interface (gNMI) dial-out mode to connect to the first network device.

[0078] In the above example, because gRPC is based on the HTTP / 2 protocol and uses binary encoding and multiplexing, it reduces data redundancy and avoids head-of-line blocking when the first network device pushes Telemetry packets to the collector. This allows for low latency, high bandwidth utilization, and real-time capture of network traffic changes. Furthermore, because gRPC is cross-platform and cross-language, it can be integrated with the gNMI standard to unify interconnection specifications, enabling efficient interaction between devices from different vendors and the collector. Furthermore, the collector uses the Layer 2 gNMI Dial-out mode to connect to the first network device. This dial-out mode maximizes the collector's initiative, allowing it to proactively initiate connections with the first network device and retrieve data based on its own needs and policies. For example, the collector can dynamically adjust the frequency of connections with the first network device and the amount of data retrieved based on network traffic load, thereby better adapting to different network management scenarios.

[0079] S120: Parse the Telemetry traffic packet to obtain performance data of the link corresponding to the measurement session.

[0080] The performance data includes session identifier information and link performance indicator information.

[0081] Exemplarily, the link performance indicator information includes delay, jitter, and packet loss rate.

[0082] Because network devices from different vendors have different data formats, traffic packets from different vendors need to be parsed individually. In one feasible design, Telemetry traffic packets are parsed in the following way to obtain performance data for the link corresponding to the measurement session:

[0083] Determine, based on a value of a field in the Telemetry traffic packet that indicates the vendor, an encoder corresponding to the vendor of the first network device.

[0084] Use the encoder to parse the Telemetry traffic packet to obtain the performance data of the link corresponding to the measurement session.

[0085] Exemplarily, after obtaining the performance data, the performance data is encapsulated into a unified format using customization.

[0086] For example, based on the value of the vendor field in the Telemetry traffic packet, the system searches for the encoder corresponding to the vendor. The encoder is then used to parse the Telemetry traffic packet to obtain performance data. This performance data is then encapsulated into a custom, unified format and sent to the message center.

[0087] Because network devices from different vendors support different GPB and JSON formats, the preceding example analyzes the underlying vendor interface and adapts the parsing of Telemetry packets based on these vendor differences. This shields these underlying vendor protocol differences and uses unified technology to provide timely link performance data to upper layers.

[0088] S130: Send performance data to a software defined network (SDN) controller.

[0089] In one feasible design, performance data is sent to the SDN controller in the following manner:

[0090] Send performance data to the software-defined network (SDN) controller through the Kafka message center.

[0091] Specifically, the collector sends performance data to the KAFKA message center, and the KAFKA message center sends performance data to the SDN controller.

[0092] The above example leverages KAFKA's high throughput and low latency to ensure fast and reliable transmission of performance data to the SDN controller, avoiding the data transmission bottlenecks associated with traditional approaches. Furthermore, by leveraging KAFKA's asynchronous messaging mechanism, the coupling between the producer (i.e., collector) and the consumer (i.e., SDN controller) is reduced, allowing the SDN controller to process performance data more flexibly without affecting its primary functionality due to data reception.

[0093] S140: Acquire link data of the measurement session through the first network device.

[0094] The link data includes session identifier information and link resource information.

[0095] In one feasible design, obtaining link data of the measurement session by the first network device is implemented in the following manner, including:

[0096] After receiving the first indication information from the SDN controller, sending the first indication information to the first network device, where the first indication information includes a command for obtaining session information of the measurement session;

[0097] receiving session information sent from the first network device, where the session information includes an Internet Protocol address of the first network device, session identifier information, an Internet Protocol address of an interface of the first network device, and an Internet Protocol address of an interface of the second network device;

[0098] After receiving the second instruction information from the SDN controller, sending the second instruction information to the first network device, where the second instruction information includes a command for obtaining information of devices at both ends of the measurement session;

[0099] Receiving information about both end devices sent from the first network device, the information about both end devices including the Internet Protocol address of the interface of the first network device, the port number of the first network device, the Internet Protocol address of the interface of the second network device, and the port number of the second network device;

[0100] Determining matching session information and device information at both ends based on the Internet Protocol address of the first network device and the Internet Protocol address of the interface of the second network device;

[0101] According to the matched session information and the information of the devices at both ends, the session identifier information and the link resource information are determined, and the session identifier information and the link resource information constitute the link data.

[0102] For example, the collector sends a first instruction message to the first network device, containing the command "display twamp test-session." The collector receives session information from the first network device, including device-ip 1.1.1.1, test-session 31, sender-ip 10.30.13.1, reflector-ip 10.30.13.2. The collector records the data in the session information in a file using a unified format.

[0103] In this example, device-ip (1.1.1.1) identifies the Internet Protocol (IP) address of the first network device; the value (31) following test-session is the measurement session identifier; sender-ip (10.30.13.1) is the IP address of the interface on the first network device used to report Telemetry packets and conduct the measurement session; and reflector-ip (10.30.13.2) is the IP address of the interface on the second network device used to conduct the measurement session. It should be noted that the IP address can be either an IPv4 address or an IPv6 address.

[0104] The collector sends a second instruction message to the first network device. The second instruction message includes an LLDP command. The content of the LLDP command depends on the manufacturer of the first network device. For example, the LLDP command corresponding to manufacturer A is "dislldp neighbor," the LLDP command corresponding to manufacturer B is "show lldp neighbor brief," the LLDP command corresponding to manufacturer C is "display lldp neighbor-information," and the LLDP command corresponding to manufacturer D is "show lldpneighbors."

[0105] The collector receives information about both ends of the device sent from the first network device, including sender-ip 10.30.13.1, sender-port 8010, and reflector-ip 10.30.13.2, and reflector-port 8010. Sender-port (8010) is the port number used by the first network device for the measurement session, and reflector-port (8010) is the port number used by the second network device for the measurement session.

[0106] The collector uses device-ip 1.1.1.1 and reflector-ip 10.30.13.2 to match each session information with the device information at both ends. It then analyzes and determines the session identifier information (31) and link resource information (device-ip 1.1.1.1 sender-ip 10.30.13.1 reflector-ip 10.30.13.2 sender-port 8010 reflector-port 8010). Finally, the session identifier information and link resource information are combined to generate link data.

[0107] Taking into account that the device information at both ends obtained by the first network device usually does not contain the session identifier information of the measurement session, in the above example, the collector obtains the session information of the measurement session and the device information at both ends respectively, and uses the device identifiers of the devices at both ends to match and merge the two types of information to generate link data, so that the link information contained in the link data is complete and contains a session identifier, so that the subsequent SDN controller can associate the link data and performance data of the same measurement session according to the session identifier, and merge the link data and performance data to obtain link quality data and store it in the database.

[0108] S150 , sending the link data to the SDN controller, so that the SDN controller can associate the performance data and the link data according to the session identifier information to obtain link quality data and store it in a database.

[0109] In a feasible design, link data is sent to the SDN controller in the following manner:

[0110] Send link data to the SDN controller through the KAFKA message center.

[0111] The above example leverages KAFKA's high throughput and low latency to ensure fast and reliable transmission of link data to the SDN controller, avoiding the data transmission bottlenecks associated with traditional approaches. Furthermore, by leveraging KAFKA's asynchronous messaging mechanism, the coupling between the producer (i.e., collector) and the consumer (i.e., SDN controller) is reduced, allowing the SDN controller to process performance data more flexibly without affecting its primary functionality due to data reception.

[0112] In this embodiment, a first network device initiates a measurement session using a bidirectional active measurement protocol. This allows for precise performance measurements between both ends of a link, providing the collector with accurate and timely real-world performance data on the link, enabling high-precision data support for sub-second monitoring. Furthermore, the first network device periodically and proactively reports performance data to the collector using a "push mode" based on Telemetry technology. This allows for sub-second collection cycles, enabling rapid reflection of network status changes without the need for periodic polling of devices to obtain performance data. This significantly improves the efficiency and real-time nature of performance data collection. The collector obtains and sends sub-second performance data to the SDN controller, enabling the SDN controller to implement sub-second monitoring of the link based on this performance data. Furthermore, by using session identifier information to correlate performance data and link data corresponding to links in the same measurement session, the SDN controller can merge performance data and link resource data to generate link quality data. This allows the SDN controller to perform comprehensive analysis of the link quality data and more accurately determine the link's operating status based on the complete collected data. This solution facilitates the SDN controller to efficiently and accurately schedule and control network traffic, optimizing network performance.

[0113] Based on the above embodiments, Figure 1 and Figure 2 The present application also provides a method for collecting link data in a software-defined network, which is applied to a software-defined network SDN controller. The method includes:

[0114] S210: Acquire performance data from the collector. The performance data includes session identifier information and link performance indicator information corresponding to a measurement session. The measurement session is a session initiated by the first network device to the second network device based on a bidirectional active measurement protocol. The performance data is generated by parsing Telemetry traffic packets corresponding to the measurement session pushed by the first network device based on Telemetry technology.

[0115] Exemplarily, the performance data from the collector is obtained through the KAFKA message center.

[0116] S220: Acquire link data of the measurement session from the collector, where the link data includes session identifier information and link resource information.

[0117] Exemplarily, the link data of the measurement session from the collector is obtained through the KAFKA message center.

[0118] S230 , correlating the performance data and the link data according to the session identifier information to obtain link quality data and storing the data in a database.

[0119] That is, the link quality data includes performance data and link data having the same session identifier.

[0120] In one possible design, the method further includes:

[0121] Sending first indication information to the collector to obtain link data, where the first indication information includes a command for obtaining session information of the measurement session, where the session information includes an Internet Protocol address of the first network device, session identifier information, an Internet Protocol address of an interface of the first network device, and an Internet Protocol address of an interface of the second network device, or,

[0122] Send a second indication message to the collector to obtain link data, the second indication message includes a command for obtaining information about devices at both ends of the measurement session, the information about devices at both ends includes the Internet Protocol address of the interface of the first network device, the port number of the first network device, the Internet Protocol address of the interface of the second network device, and the port number of the second network device.

[0123] In the above example, the SDN controller sends the first indication information or the second indication information to the collector, so that the collector obtains the link data reported by the first network device by sending the first indication information or the second indication information to the first network device. Because the SDN controller can coordinate the network resource load to determine when the first network device reports the link data, the above example, through the SDN controller sending the first indication information or the second indication information, can ensure the rational utilization of network resources.

[0124] For other embodiments and effects, please refer to the description in S110 to S150 and will not be repeated here.

[0125] In this embodiment of the present application, the SDN controller uses session identifier information to associate performance data and link data for links corresponding to the same measurement session. This allows the SDN controller to combine the performance data and link resource data to generate link quality data. This allows the SDN controller to perform a comprehensive analysis of the link quality data and more accurately determine the link's operating status based on the complete collected data. Furthermore, because the performance data is generated by parsing Telemetry traffic packets corresponding to the measurement session pushed by the first network device based on Telemetry technology, and because Telemetry technology can collect data at a sub-second rate, the SDN controller in the above example can achieve sub-second monitoring of the link based on this performance data.

[0126] Based on the above embodiments, Figure 1 and Figure 2 The present application also provides a method for collecting link data in a software-defined network, which is applied to a first network device, and the method includes:

[0127] S310: Initiate a measurement session to a second network device based on a bidirectional active measurement protocol.

[0128] S320: Push the Telemetry traffic packet corresponding to the measurement session to the collector based on the Telemetry technology.

[0129] S330: Receive first instruction information from a collector, where the first instruction information includes a command for obtaining session information of a measurement session.

[0130] S340, after obtaining session information of the measurement session according to the first indication information, send the session information to the collector, where the session information includes the Internet Protocol address of the first network device, session identifier information, the Internet Protocol address of the interface of the first network device, and the Internet Protocol address of the interface of the second network device.

[0131] Specifically, after executing the command for obtaining the session information of the measurement session in the first instruction information, the first network device obtains the session information of the measurement session and then reports the session information to the collector.

[0132] S350: Receive second instruction information from the collector, where the second instruction information includes a command for obtaining information about devices at both ends of the measurement session.

[0133] S360, after obtaining the device information at both ends of the measurement session according to the second indication information, send the device information at both ends to the collector, the device information at both ends includes the Internet Protocol address of the interface of the first network device, the port number of the first network device, the Internet Protocol address of the interface of the second network device, and the port number of the second network device.

[0134] Specifically, after executing the command for obtaining the information of the devices at both ends of the measurement session in the second instruction information, the first network device obtains the information of the devices at both ends of the measurement session, and then reports the information of the devices at both ends to the collector.

[0135] For other implementation methods and effects of this embodiment, please refer to the description in S110 to S150 and will not be repeated here.

[0136] In this embodiment of the present application, the first network device uses a bidirectional active measurement protocol to initiate a measurement session, enabling accurate performance measurements between both ends of a link. This allows for accurate and timely real-world performance data on the link to be provided to the collector and SDN controller, providing high-precision data support for sub-second monitoring. Furthermore, based on Telemetry technology, the first network device periodically and proactively reports performance data to the collector in a "push mode." This allows for sub-second collection cycles, enabling rapid reflection of network status changes without the need for periodic polling of devices to obtain performance data. This significantly improves the efficiency and real-time nature of performance data collection, enabling sub-second monitoring of the link by the SDN controller.

[0137] like Figure 3 As shown, the present application also provides a device for collecting link data in a software-defined network, which is applied to a collector and includes:

[0138] The first information transmission module is configured to receive a Telemetry traffic packet corresponding to the measurement session pushed by the first network device based on the Telemetry technology after the first network device initiates a measurement session to the second network device based on the bidirectional active measurement protocol;

[0139] The traffic packet parsing module parses the Telemetry traffic packet to obtain performance data of the link corresponding to the measurement session. The performance data includes session identifier information and link performance indicator information.

[0140] The first information transmission module is further configured to send performance data to a software defined network SDN controller;

[0141] The first information transmission module is further configured to obtain link data of the measurement session through the first network device, where the link data includes session identifier information and link resource information;

[0142] The first information transmission module is further configured to send link data to the SDN controller, so that the SDN controller can associate the performance data and the link data according to the session identifier information to obtain link quality data and store the data in a database.

[0143] In one feasible design, the traffic packet parsing module is implemented in the following way to parse the Telemetry traffic packet and obtain the performance data of the link corresponding to the measurement session:

[0144] Determine, based on a value of a field in the Telemetry traffic packet that indicates the vendor, an encoder corresponding to the vendor of the first network device.

[0145] Use the encoder to parse the Telemetry traffic packet to obtain the performance data of the link corresponding to the measurement session.

[0146] In a feasible design, the apparatus further includes an information matching module, and the first information transmission module and the information matching module jointly implement obtaining link data of the measurement session through the first network device, wherein:

[0147] The first information transmission module is configured to, after receiving first indication information from the SDN controller, send the first indication information to the first network device, where the first indication information includes a command for obtaining session information of the measurement session;

[0148] The first information transmission module is used to receive session information sent from the first network device, where the session information includes an Internet Protocol address of the first network device, session identifier information, an Internet Protocol address of an interface of the first network device, and an Internet Protocol address of an interface of the second network device;

[0149] The first information transmission module is configured to, after receiving the second instruction information from the SDN controller, send the second instruction information to the first network device, where the second instruction information includes a command for obtaining information about devices at both ends of the measurement session;

[0150] The first information transmission module is used to receive the two-end device information sent from the first network device, the two-end device information including the Internet Protocol address of the interface of the first network device, the port number of the first network device, the Internet Protocol address of the interface of the second network device, and the port number of the second network device;

[0151] The information matching module is used to determine matching session information and information about devices at both ends based on the Internet Protocol address of the first network device and the Internet Protocol address of the interface of the second network device;

[0152] The information matching module is used to determine the session identifier information and link resource information according to the matched session information and the device information at both ends. The session identifier information and the link resource information constitute the link data.

[0153] In one feasible design, the first information transmission module is implemented in the following manner to send performance data to the software-defined network (SDN) controller:

[0154] Send performance data to the SDN controller via the Kafka message center; or

[0155] The first information transmission module is implemented in the following manner:

[0156] Send link data to the SDN controller through the KAFKA message center.

[0157] For other implementations and effects of the above-mentioned device, please refer to the description in the embodiment of the method for collecting link data in a software-defined network, which will not be repeated here.

[0158] like Figure 4 As shown, the present application provides a device for collecting link data in a software-defined network, which is applied to a software-defined network SDN controller, and the device includes:

[0159] The second information transmission module is used to obtain performance data from the collector. The performance data includes session identifier information and link performance indicator information corresponding to the measurement session. The measurement session is a session initiated by the first network device to the second network device based on the bidirectional active measurement protocol. The performance data is generated by parsing the Telemetry traffic packets corresponding to the measurement session pushed by the first network device based on the Telemetry technology;

[0160] The second information transmission module is further configured to obtain link data of the measurement session from the collector, the link data including session identifier information and link resource information;

[0161] The data association module is used to associate the performance data and the link data according to the session identifier information to obtain the link quality data and store it in the database.

[0162] In a feasible design, the second information transmission module is further used to:

[0163] Sending first indication information to the collector to obtain link data, where the first indication information includes a command for obtaining session information of the measurement session, where the session information includes an Internet Protocol address of the first network device, session identifier information, an Internet Protocol address of an interface of the first network device, and an Internet Protocol address of an interface of the second network device, or,

[0164] Send a second indication message to the collector to obtain link data, the second indication message includes a command for obtaining information about devices at both ends of the measurement session, the information about devices at both ends includes the Internet Protocol address of the interface of the first network device, the port number of the first network device, the Internet Protocol address of the interface of the second network device, and the port number of the second network device.

[0165] For other implementations and effects of the above-mentioned device, please refer to the description in the embodiment of the method for collecting link data in a software-defined network, which will not be repeated here.

[0166] like Figure 5As shown, the present application also provides a device for collecting link data in a software-defined network, which is applied to a first network device, and the device includes:

[0167] A session initiating module, configured to initiate a measurement session to the second network device based on a bidirectional active measurement protocol;

[0168] The third information transmission module is used to push the Telemetry traffic packet corresponding to the measurement session to the collector based on Telemetry technology;

[0169] The third information transmission module is further configured to receive first indication information from the collector, where the first indication information includes a command for obtaining session information of the measurement session;

[0170] The third information transmission module is further configured to, after acquiring session information of the measurement session according to the first indication information, send the session information to the collector, where the session information includes an Internet Protocol address of the first network device, session identifier information, an Internet Protocol address of an interface of the first network device, and an Internet Protocol address of an interface of the second network device;

[0171] The third information transmission module is further configured to receive second indication information from the collector, where the second indication information includes a command for obtaining information about devices at both ends of the measurement session;

[0172] The third information transmission module is also used to obtain the device information at both ends of the measurement session according to the second indication information, and then send the device information at both ends to the collector. The device information at both ends includes the Internet Protocol address of the interface of the first network device, the port number of the first network device, the Internet Protocol address of the interface of the second network device, and the port number of the second network device.

[0173] For other implementations and effects of the above-mentioned device, please refer to the description in the embodiment of the method for collecting link data in a software-defined network, which will not be repeated here.

[0174] The basic principles of the present application have been described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, and effects mentioned in this application are merely illustrative and not restrictive, and it should not be assumed that these advantages, strengths, and effects are required of each embodiment of this application. In addition, the specific details disclosed above are merely illustrative and facilitating understanding, and are not restrictive. The above details do not limit this application to necessarily being implemented using the above specific details.

[0175] It should be understood that although the steps in the flowcharts of the accompanying drawings are shown in sequence as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the flowcharts of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0176] The block diagrams of the devices, devices, equipment, and systems involved in this application are intended only as illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, devices, equipment, and systems can be connected, arranged, or configured in any manner. Words such as "include," "comprise," "have," and the like are open-ended words, meaning "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or" and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.

[0177] It should also be noted that in the apparatus, device, and method of the present application, each component or each step can be decomposed and / or recombined, and such decomposition and / or recombination should be regarded as equivalent solutions of the present application.

[0178] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to be accorded the widest scope consistent with the principles and novel features disclosed herein.

[0179] The above description has been provided for the purpose of illustration and description. Furthermore, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although a number of example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations thereof.

Claims

1. A method for collecting link data in a software-defined network, characterized in that: Applied to the collector, the methods include: After the first network device initiates a measurement session to the second network device based on the bidirectional active measurement protocol, receiving a Telemetry traffic packet corresponding to the measurement session pushed by the first network device based on the Telemetry technology; Parsing the Telemetry traffic packet to obtain performance data of the link corresponding to the measurement session, the performance data including session identifier information and link performance indicator information; Sending the performance data to a software defined network (SDN) controller; acquiring, through the first network device, link data of the measurement session, where the link data includes session identifier information and link resource information; The link data is sent to the SDN controller, so that the SDN controller associates the performance data and the link data according to the session identifier information, merges them to obtain link quality data, and stores the data in a database.

2. The method according to claim 1, characterized in that Parsing the Telemetry traffic packet to obtain performance data of the link corresponding to the measurement session includes: Determining, based on a value of a field in the Telemetry traffic packet indicating the vendor, an encoder corresponding to the vendor of the first network device; The encoder is used to parse the Telemetry traffic packet to obtain performance data of the link corresponding to the measurement session.

3. The method according to claim 1 or 2, characterized in that The acquiring, through the first network device, the link data of the measurement session includes: After receiving first indication information from the SDN controller, sending the first indication information to the first network device, where the first indication information includes a command for obtaining session information of the measurement session; receiving session information sent from the first network device, the session information including an Internet Protocol address of the first network device, session identifier information, an Internet Protocol address of an interface of the first network device, and an Internet Protocol address of an interface of the second network device; After receiving the second indication information from the SDN controller, sending the second indication information to the first network device, where the second indication information includes a command for obtaining information of devices at both ends of the measurement session; Receiving information about two end devices sent from the first network device, the information about two end devices including the Internet Protocol address of the interface of the first network device, the port number of the first network device, the Internet Protocol address of the interface of the second network device, and the port number of the second network device; Determining matching session information and device information at both ends based on the Internet Protocol address of the first network device and the Internet Protocol address of the interface of the second network device; According to the matched session information and the information of the devices at both ends, the session identifier information and the link resource information are determined, and the session identifier information and the link resource information constitute the link data.

4. The method according to claim 1 or 2, characterized in that The sending the performance data to the software defined network (SDN) controller includes: Send the performance data to the software defined network SDN controller via the KAFKA message center; or, The sending the link data to the SDN controller includes: The link data is sent to the SDN controller through the KAFKA message center.

5. A method for collecting link data in a software-defined network, characterized in that: Applied to a software-defined network (SDN) controller, the method includes: Obtain performance data from the collector, where the performance data includes session identifier information and link performance indicator information corresponding to a measurement session initiated by a first network device to a second network device based on a bidirectional active measurement protocol. The performance data is generated by parsing a Telemetry traffic packet corresponding to the measurement session and pushed by the first network device based on Telemetry technology. Acquire link data of the measurement session from the collector, the link data including session identifier information and link resource information; According to the session identifier information, the performance data and the link data are associated and merged to obtain link quality data, which is then stored in a database.

6. The method according to claim 5, characterized in that The method further comprises: Sending first indication information to the collector to obtain the link data, where the first indication information includes a command for obtaining session information of the measurement session, where the session information includes an Internet Protocol address of the first network device, session identifier information, an Internet Protocol address of an interface of the first network device, and an Internet Protocol address of an interface of the second network device, or Send a second indication message to the collector to obtain the link data, the second indication message includes a command for obtaining the device information at both ends of the measurement session, the device information at both ends includes the Internet Protocol address of the interface of the first network device, the port number of the first network device, the Internet Protocol address of the interface of the second network device, and the port number of the second network device.

7. A method for collecting link data in a software-defined network, characterized in that: Applied to a first network device, the method includes: Initiating a measurement session to the second network device based on a bidirectional active measurement protocol; Pushing the Telemetry traffic packet corresponding to the measurement session to the collector based on Telemetry technology; receiving first indication information from the collector, where the first indication information includes a command for obtaining session information of the measurement session; After acquiring session information of the measurement session according to the first indication information, sending the session information to the collector, the session information including the Internet Protocol address of the first network device, session identifier information, the Internet Protocol address of the interface of the first network device, and the Internet Protocol address of the interface of the second network device; receiving second indication information from the collector, where the second indication information includes a command for obtaining information of devices at both ends of the measurement session; According to the second indication information, after obtaining the device information at both ends of the measurement session, the device information at both ends is sent to the collector, where the device information at both ends includes the Internet Protocol address of the interface of the first network device, the port number of the first network device, the Internet Protocol address of the interface of the second network device, and the port number of the second network device.

8. A device for collecting link data in a software-defined network, characterized in that: Applied to the collector, the device includes: A first information transmission module is configured to receive, after a first network device initiates a measurement session to a second network device based on a bidirectional active measurement protocol, a Telemetry traffic packet corresponding to the measurement session pushed by the first network device based on the Telemetry technology; a traffic packet parsing module, configured to parse the Telemetry traffic packet to obtain performance data of the link corresponding to the measurement session, the performance data including session identifier information and link performance indicator information; The first information transmission module is further configured to send the performance data to a software defined network (SDN) controller; The first information transmission module is further configured to obtain link data of the measurement session through the first network device, the link data including session identifier information and link resource information; The first information transmission module is further configured to send the link data to the SDN controller, so that the SDN controller can associate the performance data and the link data according to the session identifier information to obtain link quality data and store the data in a database.

9. A device for collecting link data in a software-defined network, characterized in that: Applied to software-defined network (SDN) controller, the device includes: A second information transmission module is configured to obtain performance data from the collector, where the performance data includes session identifier information and link performance indicator information corresponding to a measurement session initiated by a first network device to a second network device based on a bidirectional active measurement protocol, and the performance data is generated by parsing a Telemetry traffic packet corresponding to the measurement session and pushed by the first network device based on Telemetry technology; The second information transmission module is further configured to obtain link data of the measurement session from the collector, the link data including session identifier information and link resource information; The data association module is used to associate the performance data and the link data according to the session identifier information to obtain link quality data and store it in a database.

10. A device for collecting link data in a software-defined network, characterized in that: Applied to a first network device, the apparatus includes: A session initiating module, configured to initiate a measurement session to the second network device based on a bidirectional active measurement protocol; A third information transmission module is configured to push the Telemetry traffic packet corresponding to the measurement session to the collector based on Telemetry technology; The third information transmission module is further configured to receive first indication information from the collector, where the first indication information includes a command for obtaining session information of the measurement session; The third information transmission module is further configured to, after acquiring session information of the measurement session according to the first indication information, send the session information to the collector, where the session information includes an Internet Protocol address of the first network device, session identifier information, an Internet Protocol address of an interface of the first network device, and an Internet Protocol address of an interface of the second network device; The third information transmission module is further configured to receive second indication information from the collector, where the second indication information includes a command for obtaining information of devices at both ends of the measurement session; The third information transmission module is also used to, after obtaining the information of the devices at both ends of the measurement session according to the second indication information, send the information of the devices at both ends to the collector, wherein the information of the devices at both ends includes the Internet Protocol address of the interface of the first network device, the port number of the first network device, the Internet Protocol address of the interface of the second network device, and the port number of the second network device.