Network telemetering method and device for distinguishing scenes
By introducing SDN architecture and hybrid sensing mechanism switching architecture into in-band network telemetry technology, combined with different working modes of INT and active sensing of nodes in the network, telemetry scalability and real-time problems in networks of various sizes are solved, and an efficient network is achieved. Status monitoring and fault detection.
Patent Information
- Application Number
- CN202410827550.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-25
AI Technical Summary
Existing in-band network telemetry technology has insufficient application scalability in networks of various sizes, making it difficult to achieve efficient telemetry task scheduling and real-time acquisition of network status information, especially when facing dynamic adjustment of sensing tasks and anti-packet loss scenarios. , the traditional method has the problems of lagging in perceptual information and insufficient response ability.
Adopting a hybrid sensing mechanism switching architecture based on software-defined network (SDN) architecture, through the network status collection unit, working mode switching unit, detection frequency adjustment unit and path control unit, the combination of different INT working modes and the active sensing function of nodes in the network are realized , dynamically adjust detection frequency and path planning to adapt to the needs of different network business scenarios.
It improves the ability to sense and update information within the network, ensures the timeliness and accuracy of sensed information, improves network performance and fault detection accuracy, and adapts to network monitoring needs in complex scenarios.
Smart Images

Figure CN118740647A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and specifically to a method for real-time telemetry of network status information, which is applied to a variety of network scenarios to perform full network monitoring, real-time evaluation of network status, and timely and accurate control of network anomalies, and in particular to a network telemetry method and device that distinguishes scenarios. Background Art
[0002] The network is a very complex distributed system. Therefore, network management means are needed in the network to manage network devices, regulate and control the operation status of the entire network, and be able to detect network faults in time and report them to the terminal. Traditional network monitoring methods are usually based on the server-client model. For example, SNMP allows network control and management systems to extract statistical data from their network elements for non-real-time data collection, sFlow provides a full network view by regularly sampling interface statistics and randomly sampling packet information, and NetFlow collects IP flow information at a certain sampling rate and sends the summary results to the flow collector for analysis. Although these methods have proven effective in the early days of the Internet, their limitations in achieving more complex monitoring are also obvious. Over the past decade, the Internet has undergone revolutionary changes and dramatic expansion around the world. As a result, networks have become increasingly flexible and programmable at the cost of increasing complexity. This means that it will be more challenging to troubleshoot the network and recover the network from unclear faults such as congestion, link failures, and black holes. Therefore, network management solutions need to evolve to be more automated, dynamically deepened according to the current situation, and even automatically react to network events. This automated response requires network telemetry systems to provide high-precision, fine-grained events (e.g., instantaneous traffic bursts) on a fine time scale. The rise of openflow-based SDN has provided new ideas for network monitoring technology. Data plane switches need to regularly report their characteristic information to the SDN controller to achieve centralized network control and management. However, due to the relatively long latency of data acquisition, incomplete end-to-end single-flow information, and the non-scalability of the processing burden on the switch, it is necessary to consider solving them through a more programmable data plane. Programming protocol-independent packet processors P4 or protocol-independent forwarding (POF) can realize a programmable and protocol-independent data plane. Therefore, the in-band network telemetry technology proposed based on the P4 language provides network operators with the ability to customize network monitoring solutions. INT greatly improves network visibility, realizes real-time fine-grained network monitoring, makes it easier to diagnose network anomalies, and solves the performance and scalability problems of traditional monitoring methods. INT has brought a new direction to network measurement technology with its real-time, accurate, and control plane-free characteristics. Measurement solutions and applications based on INT have become a research hotspot in current network operations, management, and maintenance.
[0003] Domestic and foreign scholars have produced a lot of research results on in-band network telemetry technology. At present, the INT specification has first explained the INT concept and the complete INT system prototype, and provided relevant application cases. In order to reduce the application overhead of INT technology, many studies have introduced new technologies. For example, source routing (SR) can purposefully guide the forwarding path of probe data packets based on the INT specification, thereby saving flow table overhead. In most network monitoring situations, especially when the link capacity utilization is relatively high, a high-precision real-time INT packet-by-packet monitoring strategy is not required. Kim et al. proposed a sampling sINT solution based on P4, which can complete the selective insertion of INT headers in terminal hosts. PINT divides telemetry data collection operations into three categories: data packet aggregation, static flow aggregation, and dynamic flow aggregation, which reduces INT monitoring overhead to the bit level while ensuring monitoring accuracy. Another major technical improvement direction of INT focuses on fault detection in the network. Tang et al. proposed an intelligent SDN fault location system PAINT based on INT. Tan et al. designed a packet loss monitoring system LossSight for INT. The system includes packet loss detection, location, diagnosis and recovery functions.
[0004] With the development of its technology, the current application research of INT mainly focuses on the optimization of a certain requirement for a single working mode. However, the existing different working modes of INT have shortcomings and lack application scalability in networks of various scales. There are two reasons: (1) Affected by traffic duration, traffic characteristics and traffic distribution, the INT method of on-path perception is difficult to achieve a high overall network link telemetry coverage and cannot achieve a high network fault detection accuracy; (2) The INT method of uploading perception information hop by hop requires each INT transmission node to collect perception data and construct detection messages for uploading, which will result in additional occupation of more network bandwidth. Therefore, how to take into account the advantages of the two working modes and achieve efficient telemetry task scheduling is a problem worthy of research. In addition, different network scenarios have different requirements for network internal perception information. The traditional single network perception method is difficult to guarantee the efficiency and real-time performance of monitoring under various network scales. Research on dynamically adjusting perception measurement tasks and timely obtaining network status information is still weak. Therefore, considering the adaptability of network perception scenarios, taking the two scenario requirements of high real-time and anti-packet loss as examples, the application of INT is analyzed:
[0005] Due to the end-to-end telemetry mechanism, INT cannot avoid packet loss, and various reasons may cause data packet loss during the perception process. Therefore, the INT perception effect will become unreliable due to potential network packet loss problems. Incomplete telemetry data will seriously affect the performance of upper-layer network telemetry applications. At present, most of the research on INT packet loss problems focuses on analyzing the packet loss itself, such as finding the specific location of packet loss, packet loss recovery, or detailed analysis of packet loss, using a variety of technologies such as network coding and machine learning to solve it. However, in complex network scenarios, these methods are difficult to quickly and conveniently expand their applications, and only focusing on the various optimization methods introduced by the packet loss cause itself increases the complexity of the network perception technology itself.
[0006] Due to the characteristics of INT's metadata collection along the way, if data transmission passes through too many routing devices, it will cause excessive overhead and increase the perception time. The overhead used to collect the metadata of the perception data packet can be minimized by averaging the number of nodes passed through each perception path or the information acquisition delay. In terms of reducing overhead, the current INT technology improvements focus on covering all links in the network and reducing repeated path perception nodes. However, on the basis of covering the links of the entire network, the problem of uneven update rate of perception information of nodes in the network is rarely considered, and a single vulnerable node cannot be decoupled for perception operations.
[0007] The technical solution of one of the prior arts retrieved by the inventor is introduced as follows:
[0008] Shandong Provincial Computing Center has disclosed a gray fault detection and positioning method and system based on hybrid in-band network telemetry, which relates to the field of fault detection. It includes: the server collects the hop-by-hop telemetry information of the passive INT detection packet, performs a primary detection on whether there is a fault, and sends a secondary detection instruction of the fault path to the controller of the virtual SDN network; the controller sends an active INT detection packet to the server, and performs a secondary detection on the path with a fault in the primary detection; the source server reroutes the data traffic of the path information that actually has a fault; the controller sets a priority for all the path information that actually has a fault, compares the paths according to the priority, and obtains the fault location; the controller feeds back the fault location to the server, and the server searches for all the paths related to the fault location and ages them in advance. This invention integrates active in-band network telemetry and passive in-band network telemetry to make up for the shortcomings of a single telemetry method and improve the efficiency and reliability of network telemetry.
[0009] The relative shortcomings of the prior art include:
[0010] (1) This technology sends active INT detection packets twice to lock the fault point, and then adjusts the path. It mainly focuses on locking the fault location and is implemented by integrating active and passive INT detection packets. However, it does not consider the changes in detection time cost under different network topology scales.
[0011] (2) Both the active detection method and the passive detection method involved in this technology are INT flow-by-flow detection methods. There is a possibility that the fault point will be lost due to fault recovery caused by the long detection time during the detection process.
[0012] The technical solution of the second prior art retrieved by the inventor is introduced as follows:
[0013] Guangdong New Generation Communication and Network Innovation Research Institute has disclosed an in-band network telemetry method based on network status, including: obtaining network status information during data packet telemetry, building a network status table based on the network status information; configuring a mapping relationship between the network status table and the telemetry frequency, and determining the telemetry frequency through the mapping relationship; adding telemetry control information to the data packet that meets the telemetry conditions based on the telemetry frequency to achieve in-band network telemetry. The invention can automatically adjust the frequency of network telemetry, reduce the additional network overhead brought by network telemetry to the network, and ensure the normal forwarding function of the network.
[0014] The relative shortcomings of the prior art include:
[0015] Technology 2 uses INT to collect network status as a benchmark to adjust the frequency of the transmitting end detection to improve the real-time acquisition of network information. However, the focus of the technology is on the comparison of the number of detection packets arriving and the arrival time between the transmitting and receiving ends. The actual network is complex and the scenarios are diverse. A single transmitting and receiving end may have practical problems such as misjudgment and inaccurate frequency adjustment.
[0016] In view of the above description of the prior art, the technical problems to be solved by the present invention include:
[0017] Due to the rapid development of network equipment and the enhancement of network programmability, the demand for network measurement technology is also increasing. More new applications are increasingly sensitive to changes in internal network indicators. In order to adapt to multi-type monitoring needs, traditional INT technology collects massive amounts of network status information and uploads it to the control end, which will greatly increase its workload. In addition, there are risks such as delayed and missing perception information due to the limitations of fixed data packet length.
[0018] In addition, due to the complex and changeable internal network conditions and frequent network anomalies, the application adaptability of traditional INT technology is insufficient, and it is difficult to flexibly change the measurement indicator requirements of various network business scenarios. In response to this technical problem, the method of the present invention constructs a hybrid perception mechanism switching architecture based on in-band network telemetry based on the network status characteristics in different scenarios, focusing on the key issues such as the switching of different INT working modes, the active perception notification function of nodes in the network, and the perception attribute priority path planning, so as to solve the problems of difficulty in obtaining network status information in complex scenarios and insufficient perception response capabilities in the network, so as to make the network operation more efficient and stable, ensure the timeliness and accuracy of perception information, and improve network performance.
[0019] In view of the above-mentioned deficiencies in the prior art, the present invention is proposed. Summary of the invention
[0020] The purpose of the present invention is to address the problems of difficulty in obtaining network status information in complex scenarios and insufficient network perception response capabilities in the prior art. According to the network status characteristics in different scenarios, a hybrid perception mechanism switching architecture based on in-band network telemetry is constructed. Focusing on key issues such as realizing INT multi-working mode combined switching, active perception notification function of nodes in the network and perception attribute priority path planning, the perception needs of different network business scenarios are considered, the active perception function is given to nodes in the network, the information perception and update capability in the network is improved, and the hybrid technology of INT working mode and network node perception is realized.
[0021] In order to achieve the above object, the present invention adopts the following technical solutions:
[0022] A network telemetry method for distinguishing scenarios is based on a software defined network (SDN) architecture. The control plane and the data plane are separated. The control plane is managed by a central controller. The data plane is actually processed by network devices. The central controller is responsible for decision-making of the entire network. The data plane uses a P4 programmable switch to support network node functions. The method includes a network status collection unit, a working mode switching unit, a detection frequency adjustment unit, and a path control unit. The working mode switching unit and the detection frequency adjustment unit are both included in the telemetry control unit.
[0023] The network status collection unit is used to collect network scenario information and real-time status information. The network scenario information is an information description of the business scenario to which the technology is applicable, which is convenient for selecting different working modes for path detection and adjustment of detection frequency; the real-time status information is the collected node metadata to accurately reflect the situation in the network, which is convenient for timely adjustment of telemetry strategies and ensuring the flexibility and reliability of in-network detection;
[0024] The working mode switching unit selects the telemetry mode according to the data collected by the network status collection module, based on the characteristics of different network scenarios, path status and different working modes of INT;
[0025] The detection frequency adjustment unit is responsible for receiving active sensing notifications from nodes in the network, thereby adjusting the detection frequency;
[0026] The path control unit is responsible for generating multiple detection paths that evenly cover nodes in the network according to the network topology; and replanning the detection paths based on the detection frequency adjustment;
[0027] The specific workflow includes the following steps:
[0028] Step S1, initial path planning is performed for network scenario attributes, with the goal of covering the entire network link, and the network collection unit obtains all network information;
[0029] Step S2, generating multiple detection paths that evenly cover nodes in the network according to the network topology through the path control unit based on the information fed back by the network collection unit;
[0030] Step S3, based on the information collected in step S1, selecting a working mode according to different network scales or different network scenarios;
[0031] Step S4, after the network information is collected, it is sent to the network scene information of the network status collection unit for storage; using the network resource information, further adjusting the detection method; providing services for detection path re-planning, detection frequency optimization, and node detection action adjustment;
[0032] The network status collection unit, working mode switching unit, detection frequency adjustment unit and path control unit are independent in function but support each other. The detection behavior is continuously adjusted and feedback is continuously provided through network status information to ensure the real-time and accuracy of perception.
[0033] Preferably, the nodes in the network are all provided with a function of autonomously detecting changes in network conditions between nodes, and the specific method is:
[0034] Step SI, receiving INT telemetry message;
[0035] Step SII, collecting node status information, and comparing the collected information with a set threshold according to a preset network indicator;
[0036] Step SIII, determining whether the metadata collected by the INT detection package is greater than a preset threshold; if not, proceeding to step SIV; if yes, proceeding to step SV;
[0037] Step SIV, the telemetry messages that do not exceed the threshold continue to collect telemetry information along the detection path;
[0038] Step SV: For telemetry message nodes exceeding the threshold, the nodes report telemetry to the central controller for active notification, and the telemetry messages continue to be detected along the path;
[0039] Step SVI, the central controller controls the transmitting end to adjust the telemetry frequency according to the notification information.
[0040] Preferably, the working mode switching unit includes a hybrid perception mode switching method based on network scenario information, or a perception method dynamically adjusted based on network status changes.
[0041] The hybrid perception mode switching method based on network scenario information is specifically as follows:
[0042] First, we analyze the perception requirements of network scenarios, and construct multi-objective optimization problems for different scenario requirements. In different scenarios, we can select reasonable information based on the perception requirements priority.
[0043] Secondly, based on the hybrid telemetry switching model, a set of constraints is constructed around network resource availability constraints, dependency constraints on scenario telemetry requirements, detection path direction, and perception effect requirements.
[0044] The method for dynamically adjusting the perception based on network status changes is specifically as follows:
[0045] In the adaptive switching framework, the complex internal situation of the network is taken into account. According to the different needs of collecting telemetry data, the perception parameter thresholds are set based on the flexible switching of the perception working mode. The detection frequency is adjusted on demand through dynamic interaction between nodes to achieve more measurement possibilities and realize flexible and efficient telemetry tasks.
[0046] Preferably, the detection frequency adjustment unit is connected with a threshold setting of a node in the network, and multiple adjustments are made to different detection frequencies according to whether the threshold is exceeded and the degree to which the threshold is exceeded.
[0047] Preferably, in step S4,
[0048] The re-planning of the detection path includes, but is not limited to, using the real-time transmission status of the link and the node queue depth provided by the network scenario information and the real-time recovered network status information, or real-time feedback of other iconic network conditions, combined with the scenario requirements to ensure high coverage of the information detection link in the network and high information volume obtained from the network resources;
[0049] Alternatively, for abnormal nodes, a separate detection path is set up, and a hop-by-hop detection mode is adopted to ensure the accuracy and completeness of detection information collection. In addition, in order to prevent node deterioration from being caused by the detection behavior itself, path redundancy operations are performed for the node directly connected to the upstream node to avoid excessive detection traffic flowing through the abnormal node.
[0050] Preferably, in step S4,
[0051] The detection frequency optimization is based on the initial detection frequency, and performs real-time update of the detection frequencies of different paths according to the speed of network information update.
[0052] Preferably, in step S4,
[0053] The node detection action adjustment is mainly aimed at switching the detection method and selecting the detection action for abnormal nodes in the network. It can select and switch the appropriate working mode for the node according to changes in the network scenario or changes in the status of a certain link. In addition, because the nodes in the network have active perception functions, they can also detect anomalies in the network in time and take active information upload actions, thereby improving the whole system's ability to handle abnormalities.
[0054] The present invention also provides a network telemetry device for distinguishing scenes using a network telemetry method, including:
[0055] The control plane is managed by a central controller, and the data plane, where the actual packet processing is performed by network devices, uses a central controller to make decisions for the entire network; the data plane uses P4 programmable switches to support network node functions; and,
[0056] A network status collection module, a working mode switching module, a detection frequency adjustment module and a path control module, wherein the working mode switching module and the detection frequency adjustment module are both included in the telemetry control module; wherein,
[0057] The network status collection module is used to collect network scenario information and real-time status information. The network scenario information is an information description of the business scenario to which the technology is applicable, which is convenient for selecting different working modes for path detection and adjustment of detection frequency; the real-time status information is the collected node metadata to accurately reflect the situation in the network, which is convenient for timely adjustment of telemetry strategies and ensures the flexibility and reliability of in-network detection;
[0058] The working mode switching module selects the telemetry mode according to the data collected by the network status collection module, based on the characteristics of different network scenarios, path status and different working modes of INT;
[0059] The detection frequency adjustment module is responsible for receiving active sensing notifications from nodes in the network, thereby adjusting the detection frequency;
[0060] The path control module is responsible for generating multiple detection paths that evenly cover nodes in the network according to the network topology; and replanning the detection paths based on the detection frequency adjustment.
[0061] The network status collection module, working mode switching module, detection frequency adjustment module and path control module are independent in function but support each other. The detection behavior is continuously adjusted and feedback is continuously provided through network status information to ensure the real-time and accuracy of perception.
[0062] The present invention also provides an electronic device, comprising a processor and a memory; wherein, when the processor executes a computer program stored in the memory, the aforementioned network telemetry method for distinguishing scenarios is implemented.
[0063] The present invention also provides a method for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned network telemetry method for distinguishing scenarios is implemented.
[0064] The beneficial effects that can be achieved by the present invention are:
[0065] With the rapid development of software-defined networks and programmable data planes, in-band network telemetry has received widespread attention as an advanced network monitoring method. INT uses data packets to carry network telemetry information and collects network status information hop by hop for congestion control, traffic scheduling, and anomaly detection. The method of the present invention proposes a network information hybrid perception method to combine the two working modes to achieve efficient telemetry task scheduling. Moreover, in different network service scenarios, such as anti-packet loss and high real-time requirement scenarios, it can meet various telemetry needs, implement flexible telemetry strategies, and obtain accurate telemetry information. The advantages of the present invention are
[0066] (1) The method of the present invention considers the problem of uneven update rate of node perception information in the network, and performs separate decoupled perception operations on single vulnerable nodes. On the basis of full network telemetry coverage, the perception requirements of different network service scenarios are considered, the node actions in the network are increased, and the ability to perceive and update information in the network is improved.
[0067] (2) With the development of its technology, the current application research of INT mainly focuses on the optimization of a certain requirement for a single working mode. However, the existing different working modes of INT have shortcomings and lack application scalability in networks of various scales. The method of the present invention combines two INT detection methods, takes into account the advantages of the two working modes, and switches the mechanism according to different network scenario requirements, such as the size of the network, to achieve better perception performance.
[0068] (3) Since the P4 language is used to configure the switching nodes, the method of the present invention has the following three characteristics: repeatability, platform independence, and protocol independence.
[0069] ① Reconfigurability: This means that the user of the method of the present invention can flexibly define the data plane processing behavior without changing the hardware. Through the user's different forwarding requirements for the data plane node, the P4 code can be changed without changing the device and waiting for the development of new equipment. That is, it supports the dynamic modification of the message processing method after the forwarding logic code is compiled and deployed on a specific platform.
[0070] ② Protocol independence: P4 code is not bound to certain specific network protocols. It allows the switching nodes to use network protocols as needed, making full use of device resources.
[0071] ③ Platform independence: Developers can write data packet processing logic independently of a specific underlying operating platform. Code can be quickly ported between different platforms such as hardware switches, FPGAs, SmartNICs, and software switches through device-related backend compilers, reducing the burden on developers and improving development efficiency.
[0072] Terminology explanation:
[0073] ① Software Defined Network: Software Defined Network (SDN) is a new network innovation architecture proposed by the Clean-Slate research group of Stanford University in the United States. It is a way to implement network virtualization. Its core technology OpenFlow separates the control plane and data plane of network devices, thereby achieving flexible control of network traffic, making the network as a pipeline more intelligent, and providing a good platform for innovation of core networks and applications.
[0074] ②P4 programmable data plane: Programming Protocol-independent Packet Processors, Programming Protocol-independent Packet Processors (P4) is a domain-specific language for network devices that specifies how data plane devices (switches, NICs, routers, filters, etc.) process data packets.
[0075] ③INT Inband Network Telemetry: Inband Network Telemetry (INT) is a network measurement technology. Fundamentally, it is a technology that uses data plane services to collect, carry, organize and report network status. It does not use a separate control plane management traffic to collect the above information. BRIEF DESCRIPTION OF THE DRAWINGS
[0076] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0077] Figure 1 It is the overall design framework diagram of the present invention;
[0078] Figure 2 A schematic diagram of a unit structure of a network telemetry method capable of distinguishing scenes according to the present invention;
[0079] Figure 3 It is a schematic diagram of the INT-MD working mode in the prior art;
[0080] Figure 4 It is a schematic diagram of the INT-MX working mode in the prior art;
[0081] Figure 5 This is a schematic diagram of the structure of the node active sensing working process;
[0082] Figure 6 Actively sense the workflow diagram for nodes;
[0083] Figure 7 This is a schematic diagram of the business scenario perception work with high real-time requirements;
[0084] Figure 8 A flow chart for dynamically adjusting the detection path based on changes in network status;
[0085] Fig. 9 A schematic diagram of an example of applying the present invention to a low-latency scenario. DETAILED DESCRIPTION
[0086] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0087] Figure 1 It is the overall design framework diagram of the present invention, such as Figure 1As shown, the present invention provides a scenario-differentiated network telemetry method, which adopts a software-defined network (SDN) architecture. Compared with the traditional network control plane and data plane integrated in the network device architecture, it introduces the separation of the control plane and the data plane. The control plane is managed by a central controller, while the data plane is performed by the network device to perform actual data packet processing. In addition, the central controller is responsible for the decision-making of the entire network. Through the programmatic flexibility of the controller, the SDN network is more programmable, and the network behavior can be adjusted as needed, supporting new protocols and services, providing greater flexibility and innovation space for the network, so that the network can adapt to new applications and services. The P4 (Programming Protocol-Independent Packet Processors) programmable switch is used in the data plane to support the network node function, which improves the flexibility, customizability and programmability of the network, enables network devices to better adapt to the ever-changing network environment and needs, and provides more space for advanced optimization, innovation and management of the network.
[0088] Figure 2 FIG. 1 is a schematic diagram of a unit structure of a network telemetry method capable of distinguishing scenes according to the present invention. Figure 2 As shown, the present invention includes a network status collection unit, a working mode switching unit, a detection frequency adjustment unit and a path control unit, wherein the working mode switching unit and the detection frequency adjustment unit are both included in the telemetry control unit; wherein,
[0089] The network status collection unit is used to collect network scenario information and real-time status information. The network scenario information is an information description of the business scenario to which the technology is applicable, which is convenient for selecting different working modes for path detection and adjustment of detection frequency; the real-time status information is the collected node metadata to accurately reflect the situation in the network, which is convenient for timely adjustment of telemetry strategies and ensuring the flexibility and reliability of in-network detection;
[0090] The working mode switching unit selects the telemetry mode according to the data collected by the network status collection module, based on the characteristics of different network scenarios, path status and different working modes of INT;
[0091] The detection frequency adjustment unit is responsible for receiving active sensing notifications from nodes in the network, thereby adjusting the detection frequency;
[0092] The path control unit is responsible for generating multiple detection paths that evenly cover nodes in the network according to the network topology; and replanning the detection paths based on the detection frequency adjustment;
[0093] The specific workflow includes the following steps:
[0094] Step S1, initial path planning is performed for network scenario attributes, with the goal of covering the entire network link, and the network collection unit obtains all network information;
[0095] Network attributes are divided into multiple dimensions for consideration, and the working mode is selected according to the different network scales. For example, for large-scale networks with a large average number of hops, the hop-by-hop detection mode is selected to avoid incomplete information collection or excessive information collection duplication due to the length limit of the data packet after too many hops; for small-scale topologies or topologies with simple node connections, the flow detection mode is adopted to recover network resources using a small number of detection packets. For different network scenarios, such as scenarios with severe packet loss, a major difficulty in detecting network information is the loss of detection packets during transmission. Therefore, the hop-by-hop detection mode is adopted to cover as much network node information as possible; for network scenarios with high real-time requirements, the real-time requirements for obtaining network resources are high and the time difference of recovering information from multiple detection paths is small, so the path is reasonably planned based on the hop-by-hop detection mode.
[0096] Step S2, generating multiple detection paths that evenly cover nodes in the network according to the network topology through the path control unit based on the information fed back by the network collection unit;
[0097] Step S3, based on the information collected in step S1, selecting a working mode according to different network scales or different network scenarios;
[0098] Step S4: After the network information is collected, it is sent to the network scene information of the network status collection unit for storage. The network resource information can be used to further adjust the detection method and improve the flexibility of the system. Specifically, the network status information unit can provide services for detection path re-planning, detection frequency optimization, and node detection action adjustment.
[0099] The re-planning of the detection path has two functions. The first is to use the real-time transmission status of the link provided by the network scenario information and the real-time recovered network status information, as well as the real-time feedback of the iconic network conditions such as the node queue depth, combined with the scenario requirements to ensure the high coverage of the network information detection link and the high amount of information obtained by the network resources; the second is to set a separate detection path for abnormal nodes, such as queue depth and transmission delay exceeding the threshold setting, which may cause node transmission conditions, and adopt a hop-by-hop detection mode to ensure the accuracy and completeness of the detection information collection. In addition, in order to prevent the node from deteriorating due to the impact of the detection behavior itself, the node is directly connected to the upper hop node for path redundancy operations to avoid too much detection traffic flowing through abnormal nodes.
[0100] Detection frequency optimization is to update the detection frequencies of different paths in real time based on the initial detection frequency and the speed of network information update. For example, if four detection paths are required to collect link information of the entire network, and one of the paths contains multiple nodes with many exchange behaviors, it is necessary to detect the links between nodes more frequently. Therefore, a faster frequency is set to ensure the timeliness of the information.
[0101] The node detection action adjustment is mainly aimed at switching the detection method and selecting the detection action for abnormal nodes in the network. It can select and switch the appropriate working mode for the node according to changes in the network scenario or changes in the status of a certain link. In addition, because the nodes in the network have active perception functions, they can also detect anomalies in the network in time and take active information upload actions, thereby improving the whole system's ability to handle abnormalities.
[0102] Therefore, the network status collection unit, working mode switching unit, detection frequency adjustment unit and path control unit are functionally independent but mutually supportive, and the detection behavior is continuously adjusted and continuously fed back through network status information to ensure the real-time and accuracy of perception.
[0103] The working mode switching unit includes a hybrid perception mode switching method based on network scenario information, or a perception method dynamically adjusted based on network status changes.
[0104] The hybrid perception mode switching method based on network scenario information is specifically introduced as follows:
[0105] In order to solve the problems of efficiency and accuracy of network information perception in complex scenarios, a hybrid perception switching method based on in-band network telemetry is proposed. As a hybrid measurement technology, in-band network telemetry technology is fundamentally a technology that uses data plane services to collect, carry, organize and report network conditions, without using a separate control plane management traffic to collect the above information. INT technology involves three functional nodes, each of which provides different functions. For telemetry managers, the business traffic that needs to be telemetered will add an INT header on the source node, which contains an instruction set that specifies the type of information to be collected, thus becoming an INT message. When it reaches the INT forwarding node, the collected information will be inserted into the INT message according to the instruction set, and finally all INT information will pop up on the INT sink node and send it to the monitoring device.
[0106] a. Introduction to INT working mode:
[0107] The INT standard proposes three working modes: In the classic INT-MD, the INT source node embeds the instruction into the forwarding service data packet, and embeds the metadata hop by hop as the data packet passes through the INT forwarding node. Finally, the INT sink node strips the instruction from the data packet and sends the accumulated telemetry data to the telemetry controller. The working mode is as follows: Figure 3 shown.
[0108] The packet processing process of the INT mode (also known as INT-MX) that improves on the working mode of the accompanying path and feeds back the metadata to the controller hop by hop is to add the INT instruction in the packet header at the source node, and then each forwarding node encapsulates the telemetry information into metadata according to the INT instruction in the packet and directly forwards the report message to the telemetry server. The INT host node finally strips off the INT header and forwards it to the receiver. In this mode, the modification of the data packet is limited to modifying the instruction header. The size of the data packet will not increase with the increase of devices passed through during the monitoring process. In the telemetry process, the processing complexity of the forwarding device is reduced, and the MTU limitation is avoided. However, the INT mode of packet-by-packet and hop-by-hop perception will introduce more out-of-band bandwidth overhead, and will also increase the pressure on data integration and processing of the data analysis system. The working method is as follows: Figure 4 shown.
[0109] On the basis of INT-MX, the network switching equipment exports metadata to the telemetry monitoring system directly from the data plane according to the INT instructions of its own flow monitoring list configuration, without the need to modify the data message. Since the INT data packet only uses the flag bit, the INT-XD mode will cause this mode to be overly dependent on the monitoring list configured in advance by the network administrator, and cannot flexibly customize and deploy monitoring solutions as needed. Therefore, the application of this working mode is not considered in the present invention.
[0110] The metadata categories that can be collected by INT technology are shown in Table 1 below:
[0111] Table 1 INT technology collection metadata category table
[0112]
[0113]
[0114] The use of basic metadata can complete the information perception inside the switching node. On this basis, according to the secondary perception information processing, the customized perception information can realize more detailed network information measurement, as shown in Table 2 below:
[0115] Table 2 Customized perception information table
[0116] Information Name Information Description node_pkt_drop_count Total number of node data packets lost node_byte_pro_time Node message processing time node_byte_pro_count Total number of node message processing route_hop_count The total number of nodes that the path passes through route_trace_rtt Round trip time of the path route_hop_throughput Instantaneous throughput of nodes passing through the path send_probe_count Total number of probe packets sent receive_probe_count Total number of probe packets received
[0117] b. Introduction to node active perception function:
[0118] In view of the current situation that the application scope of single INT working mode perception is limited, the present invention combines the advantages of two telemetry data collection working modes of INT along-the-path perception and hop-by-hop uploading of perception information, and switches the mechanism according to the requirements of different network scenarios, such as the size of the network, to achieve better perception performance. Considering the universality of the switching mechanism in different network scenarios, with the network scale as a reference, we first select the along-the-path perception information mode to broadcast unknown scenarios to obtain the entire network topology information, use information feedback to judge the switch according to the switching trigger conditions, and use the designed working mode switching module to switch the corresponding scenario-applicable mode to achieve efficient telemetry tasks. On the basis of INT working mode switching, in order to address the timeliness of perception information, a function is designed for nodes within the network to autonomously detect changes in network conditions between nodes. The working method is as follows Figure 5 shown.
[0119] The node queue depth is used as a reference factor for active perception triggering. The network congestion is measured according to the node queue depth, and the perception data is updated in a timely manner. Figure 6 As shown in the figure, all nodes in the network are equipped with active notification function. When the network situation is abnormal, congestion is used as the judgment standard. When the node queue depth exceeds the initial threshold set according to the network scenario, the congestion judgment condition is established, and the congested node begins to actively report the real-time network status and send INT detection data packets to the remote telemetry controller. In addition, the setting of the node active notification function is highly flexible, and the frequency can be dynamically adjusted according to the proportion of exceeding the threshold.
[0120] refer to Figure 6 , the specific method is:
[0121] Step SI, receiving INT telemetry message;
[0122] Step SII, collecting node status information, and comparing the collected information with a set threshold according to a preset network indicator;
[0123] Step SIII, determining whether the metadata collected by the INT detection package is greater than a preset threshold; if not, proceeding to step SIV; if yes, proceeding to step SV;
[0124] Step SIV, the telemetry messages that do not exceed the threshold continue to collect telemetry information along the detection path;
[0125] Step SV: For telemetry message nodes exceeding the threshold, the nodes report telemetry to the central controller for active notification, and the telemetry messages continue to be detected along the path;
[0126] Step SVI, the central controller controls the transmitting end to adjust the telemetry frequency according to the notification information.
[0127] c. Hybrid perception mode switching method based on network scenario information:
[0128] Based on the two INT working modes and the perception function of nodes in the network, we first analyze the perception requirements of network scenarios. For example, high real-time scenarios require high latency for the acquisition of perception information, and anti-packet loss scenarios require more frequent exploration cycles for the amount of perception information, that is, the perception coverage range. Therefore, multi-objective optimization problems can be constructed for different scenario requirements, so that reasonable information selection can be performed according to the perception demand priority in different scenarios.
[0129] Secondly, based on the hybrid telemetry switching model, a set of constraints is constructed around the network resource availability constraints, the dependency constraints of the scene telemetry requirements, the detection path direction, and the perception effect requirements. Taking the anti-packet loss scenario as an example, due to the unsatisfactory network conditions, there is a probability of loss in the collection of network status information during the detection process, which affects the overall network telemetry coverage. Therefore, the method of uploading information hop by hop is preferred to collect the initial network status information.
[0130] After collecting the status information of the entire network, the topological area can be divided according to the busyness of the node's exchange behavior and the link packet loss situation. The detection path composed of nodes with frequent exchange behavior maintains the INT working mode of uploading information hop by hop. For nodes with good link packet loss and moderate exchange status, the INT working mode of uploading information along the way is selected. The network status of the detection working mode is refined and adjusted, and constraint methods such as path redundancy planning are introduced to avoid bandwidth loss and increased congestion caused by repeated detection of congested links.
[0131] During the periodic detection of information within the network, when a node abnormality occurs, the detection path covering the abnormal node will detect abnormal network resource information, such as a sharp increase in queue depth, an abnormal increase in transmission delay between nodes, etc. Based on the indicators with high priority of network resources in different scenarios, the detection path is adjusted and the working mode is refined.
[0132] Specifically, based on the high priority of queue depth in anti-packet loss scenarios, when an abnormality occurs in a node in the network, that is, the queue depth exceeds the set initial threshold, the node actively perceives the function to upload information. At the same time, the detection frequency of the abnormal node detection path is increased and the INT working mode of uploading information hop by hop is selected to better monitor the status changes of abnormal nodes and provide real-time information for subsequent adjustments.
[0133] When the detection method is adjusted through multiple feedback of abnormal node information in the network, the node abnormality still cannot be alleviated, the abnormal nodes will only be selected with the node active perception function, and the network status detection path will exclude the abnormal nodes for path planning to prevent the secondary impact of the detection path on the abnormal nodes and ensure the rapid update of node information.
[0134] The method for dynamically adjusting the perception based on network status changes is described as follows in combination with two typical network scenarios:
[0135] Under the adaptive switching framework, considering the complex situation inside the network and the different needs for collecting telemetry data, the perception parameter threshold is set based on the flexible switching of the perception working mode, and the detection frequency is adjusted dynamically on demand by the nodes, so that dynamic interaction between nodes can achieve more measurement possibilities and realize flexible and efficient telemetry tasks. The following is an application description of two typical network scenarios with high real-time requirements and different packet loss levels.
[0136] a) For scenarios with high real-time requirements: For networks with high real-time requirements, the requirements for network information collection speed are higher. A numerical value can be set as the transmission time between congested nodes as a reference time. The frequency of active node perception can be increased or decreased according to the degree of exceeding or falling below the reference time. In addition, while the nodes are fully covered, the path with short perception time is selected according to the transmission delay between nodes and set to a high priority. The path is dynamically selected during the perception process. Taking the selection of working mode 1 as an example, the working process is described as follows Figure 7 shown.
[0137] Automatic perception switching strategy for scenarios with high real-time requirements:
[0138] In scenarios with high real-time requirements, the network's response speed is crucial, so perception switching should be fast and accurate.
[0139] Dynamic latency monitoring: monitors latency indicators of all paths in real time and compares them in real time based on preset thresholds.
[0140] Dynamic switching of sensing modes: When the latency of a specific path exceeds the threshold, the system automatically switches to a higher-frequency sensing mode. Conversely, if the latency is below the threshold, the detection frequency is reduced to optimize resource usage.
[0141] Priority path selection: Dynamically select based on real-time data, with latency as the core indicator, select multiple non-overlapping detection paths with low latency for detection packet detection path selection to ensure high-speed response of key services.
[0142] Emergency response mechanism: For sudden high-latency events, the detection frequency is increased, network information is reported multiple times for abnormal nodes, and detection and service path switching are urgently started to quickly locate and solve the problem.
[0143] b) Figure 8 Dynamically adjust the detection path flow chart based on network status changes, such as Figure 8 As shown, for different packet loss scenarios:
[0144] For scenarios with different packet loss severity, based on the INT working mode switching mechanism, the queue depth is used as a reference to select congested nodes and classify them outside the plan through path redundancy control. INT selects paths through nodes with smaller queue depths in the global network for path planning perception. In addition, congested nodes actively send detection packets once or multiple times according to different excess ratios, so as to pay attention to network information in time to solve INT packet loss and achieve more accurate perception and measurement effects.
[0145] Automatic perception switching strategy for scenarios with different packet loss levels:
[0146] When faced with different levels of packet loss severity, it is particularly important to ensure that the collected in-network information is not lost.
[0147] Real-time monitoring of queue depth: Continuously monitor the queue depth of each node in the network and adjust the detection strategy based on this.
[0148] Packet loss sensitivity adjustment: Dynamically adjust the frequency of sending probe packets and path selection based on queue depth and packet loss rate. For nodes with high packet loss rate, increase the probe frequency to closely monitor and adjust.
[0149] Path redundancy and selection: When a path with a high packet loss rate is detected, a path redundancy mechanism is automatically introduced to select an alternative path to maintain the comprehensiveness of network information collection.
[0150] Rapid response to packet loss events: Once a packet loss event is detected that exceeds the preset threshold, the node will be immediately triggered to actively detect and quickly adjust the route to reduce the impact.
[0151] Through these automatic sensing switching strategies, the network can dynamically adjust telemetry and path planning according to different requirements of real-time and packet loss, effectively improving the stability and performance of the network. Such dynamic adjustment not only improves the network's adaptability, but also ensures the continuity and efficiency of key applications.
[0152] c) Changes for different scenarios:
[0153] When the network scenario changes, for example, from a low-latency scenario to a high-packet-loss scenario, the system needs to be able to quickly identify this change and automatically adjust its perception strategy to adapt to the new network conditions, requiring the system to have a high degree of flexibility and adaptability. The following takes the automatic perception strategy adjustment process of a low-latency scenario changing to a high-packet-loss scenario as an example to cope with changes in different scenarios:
[0154] 1. Scene recognition and evaluation:
[0155] Data analysis: The system continuously analyzes the collected telemetry data (such as latency, packet loss rate, bandwidth, etc.) and can use statistical methods to predict the changing trend of network status.
[0156] Scenario determination: When data shows that the packet loss rate has increased significantly and latency is no longer a primary issue, the system automatically identifies it as a high packet loss scenario.
[0157] 2. Strategy switching and parameter adjustment:
[0158] Adjust the detection frequency: In high packet loss scenarios, increase the frequency of sending detection messages to monitor the network status more intensively and quickly find the source of the problem.
[0159] Path optimization: Automatically adjust the data transmission path based on historical network status information, give priority to paths with low packet loss rates, and add redundant paths when abnormal nodes are found in the network to prevent data loss.
[0160] 3. Fault diagnosis and recovery:
[0161] Real-time diagnosis: The system uses multi-dimensional detection data information to locate fault points, such as identifying whether packet loss is caused by network congestion or equipment failure. Network congestion usually occurs when network traffic is overloaded, and data packets are discarded because the network path or node exceeds the processing capacity. Packet loss in this case is usually related to high traffic periods or traffic surges on specific paths. The situation can be alleviated by sending perception notifications multiple times by the node and collecting detection path indicators; Equipment failure: This may be due to hardware or software problems in a forwarding device in the network (such as routers, switches), resulting in the inability to process passing data packets normally. Packet loss caused by equipment failure is usually random and cannot be associated with traffic changes, so it cannot be alleviated by node detection behavior.
[0162] Automatic recovery: After determining the cause of the failure, the system attempts to automatically resolve the problem, such as by adjusting the route to bypass the failed node, or automatically triggering recovery measures such as device restart.
[0163] 4. Performance monitoring and feedback adjustment:
[0164] Continuous monitoring: After the adjustment, the system will continue to monitor network performance to ensure the effectiveness of the measures taken, such as determining whether the information collection is comprehensive, whether the collection delay remains unchanged, etc., and prepare to further fine-tune the strategy.
[0165] Feedback mechanism: The system collects performance data after executing the strategy, which will be fed back into the strategy adjustment algorithm to optimize future strategy decisions.
[0166] Through the automatic perception policy adjustment process, the network management system can respond to changes in different network scenarios in real time, thereby ensuring the stable operation of the network and the continuity of services. This dynamic adjustment strategy not only improves the adaptability of the network, but also greatly enhances the reliability of the network and the service experience of users.
[0167] The present invention also provides a network telemetry device for distinguishing scenes using a network telemetry method, including:
[0168] The control plane is managed by a central controller, and the data plane, where the actual packet processing is performed by network devices, uses a central controller to make decisions for the entire network; the data plane uses P4 programmable switches to support network node functions; and,
[0169] A network status collection module, a working mode switching module, a detection frequency adjustment module and a path control module, wherein the working mode switching module and the detection frequency adjustment module are both included in the telemetry control module; wherein,
[0170] The network status collection module is used to collect network scenario information and real-time status information. The network scenario information is an information description of the business scenario to which the technology is applicable, which is convenient for selecting different working modes for path detection and adjustment of detection frequency; the real-time status information is the collected node metadata to accurately reflect the situation in the network, which is convenient for timely adjustment of telemetry strategies and ensures the flexibility and reliability of in-network detection;
[0171] The working mode switching module selects the telemetry mode according to the data collected by the network status collection module, based on the characteristics of different network scenarios, path status and different working modes of INT;
[0172] The detection frequency adjustment module is responsible for receiving active sensing notifications from nodes in the network, thereby adjusting the detection frequency;
[0173] The path control module is responsible for generating multiple detection paths that evenly cover nodes in the network according to the network topology; and replanning the detection paths based on the detection frequency adjustment.
[0174] The network status collection module, working mode switching module, detection frequency adjustment module and path control module are independent in function but support each other. The detection behavior is continuously adjusted and feedback is continuously provided through network status information to ensure the real-time and accuracy of perception.
[0175] Combine the following Fig. 9 The specific process of applying the present invention to low-latency scenarios is described as follows:
[0176] This example involves a network optimization framework for dynamically adjusting network paths and telemetry strategies in real time to deal with abnormal situations in the network and ensure key performance indicators such as low latency. The following is an extended description of a specific implementation process of the invention, involving steps such as message sending, receiving and processing. Fig. 9 As shown, the present invention can be applied to a variety of scenarios, and dual perception adjustment of the originator and the node in the network is performed according to the characteristics of the scenario. The framework of the present invention includes functional descriptions of the terminal device and the node device in the network. Taking the low-latency scenario as an example, in daily life, the demand for real-time communication, autonomous driving and other services increases. In order to ensure the reliability and real-time performance of information transmission, the present invention can provide support for such scenarios.
[0177] exist Fig. 9 The middle and lower layer forwarding planes collect information and transmit data according to the initial detection path. When an abnormality occurs in a node in the network, for example, the metadata collected by the detection packet at the S4 node shows that the transmission delay is higher than the set threshold, continuing to select the path passing through this node may cause local congestion in the network.
[0178] Therefore, based on this exception, the abnormal node in the forwarding plane notifies the control plane to adjust the telemetry solution. After receiving the abnormal information, the control plane can perform two operations:
[0179] ① Adjust the path. Adjust the path selected by the previous hop node according to the abnormal node, bypass the abnormal node, and divert the telemetry data through the upstream node to alleviate the abnormal situation. You can also design a dedicated detection path for the abnormal node to eliminate other interference and improve the accuracy of information collection at the node;
[0180] ② If the abnormality persists, or the number of abnormalities exceeds the initial setting value, the controller will adjust the fault according to the degree of abnormality. For example, the important indicator in low-latency scenarios is transmission delay. Adjusting a single node for troubleshooting is not enough to solve the problem of normal transmission in the network.
[0181] Therefore, the detection path and detection frequency are reset at the initiator to solve the abnormal problem, and active actions are used instead of passive actions for adjustment, which greatly improves the troubleshooting speed and information collection speed.
[0182] Specific implementation process:
[0183] 1. Initialization phase:
[0184] Configuration of the originating device: The originating device presets the detection path according to the service requirements and sets the frequency of sending the detection message (for example, once per second).
[0185] Telemetry configuration: Each node in the network is configured with basic telemetry functions, which can intercept the passing detection messages and collect key parameters such as latency and packet loss rate, and insert the telemetry information into the INT detection message according to the telemetry instructions.
[0186] 2. Sending and collecting detection messages:
[0187] Message generation and transmission: The transmitting device sends detection messages periodically, and each message contains a unique identifier and a sending timestamp.
[0188] Data collection: Nodes within the network capture passing probe packets, record their latency data and any abnormal indicators, and attach these data to the packet metadata.
[0189] 3. Anomaly detection and response:
[0190] Anomaly detection: Each node analyzes the passing detection messages. If it finds that the scenario-sensitive indicators, such as the latency indicator in the low-latency scenario, exceed the preset threshold, it is marked as an anomaly.
[0191] Message reporting: The node adds metadata to the abnormal message and sends it to the control plane.
[0192] Control plane analysis and decision-making: After receiving abnormal information, the control plane quickly analyzes and decides on the next step. The operations include:
[0193] ① Path adjustment: If the anomaly is local, the control plane will instruct the relevant upstream nodes to bypass the abnormal node and select an alternative path for data transmission.
[0194] ② Increase the detection frequency: For persistent or severe anomalies, you may need to increase the detection frequency of the node or path to monitor the problem more carefully.
[0195] ③ Exclusive detection path design: Design exclusive detection paths for abnormal nodes, eliminate other traffic interference, monitor and adjust these nodes specifically, perform redundant path planning for other nodes, and remove abnormal nodes to calculate the path using the graph theory optimization path algorithm.
[0196] 4. Dynamic adjustment and optimization:
[0197] Real-time adjustment of detection paths: Based on real-time feedback of network conditions, the control plane can dynamically adjust the detection path.
[0198] Information feedback loop: The adjusted paths and strategies will be fed back to the originators so that they can update their probe settings according to the latest network status.
[0199] 5. Troubleshooting and reporting:
[0200] Implementation of troubleshooting measures: At the same time, paths and nodes are monitored in real time during system operation, and specific troubleshooting measures such as hardware replacement and software upgrade are implemented on nodes or paths where problems are found.
[0201] Performance reports: Generate network performance reports regularly, including overall and local performance indicators of the network, as well as evaluation of the effectiveness of measures taken.
[0202] This detailed implementation process ensures efficient network operation and smooth operation of critical applications (such as real-time communications and autonomous driving), especially in scenarios requiring low latency and high reliability.
[0203] The present invention also provides an electronic device, comprising a processor and a memory; wherein, when the processor executes a computer program stored in the memory, the aforementioned network telemetry method for distinguishing scenarios is implemented.
[0204] The present invention also provides a method for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned network telemetry method for distinguishing scenarios is implemented.
[0205] The network telemetry method and device for distinguishing scenes proposed in the present invention aim at the increasingly complex and diverse development trend of the internal state of the network and the challenges of poor flexibility of perception mode, low timeliness of perception information, insufficient perception dynamics, etc. of the INT solution in different network scenarios. It combines P4, INT, path planning and other related technologies, based on the characteristic attributes of different business scenarios, and obtains the state information of the whole network by selecting the perception working mode according to the priority demand, and sensitively captures the abnormal situation through the active behavior of the nodes in the network, completes the real-time update of perception, and finally can realize the efficient monitoring of the whole network situation, the real-time evaluation of the network state, and the precise control of the abnormal situation of the network. From this perspective, it is difficult to find other alternative solutions to achieve the purpose of this invention, but in the specific implementation process, other telemetry technologies can be selected, such as IOAM (In-band Operation, Administration, and Maintenance) technology, which also has two working modes equivalent to INT technology, and is also in-band mode, and it is expected to obtain the same effect, which illustrates the scalability of the solution.
[0206] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0207] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0208] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0209] The above is a detailed introduction to a network telemetry method and device for distinguishing scenarios provided by the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A network telemetry method for distinguishing scenes, characterized in that: Based on the software defined network SDN architecture, the control plane and the data plane are separated. The control plane is managed by a central controller, and the data plane is actually processed by network devices. The central controller is responsible for decision-making for the entire network. The data plane uses a P4 programmable switch to support network node functions. It includes a network status collection unit, a working mode switching unit, a detection frequency adjustment unit, and a path control unit. The working mode switching unit and the detection frequency adjustment unit are both included in the telemetry control unit. The network status collection unit is used to collect network scenario information and real-time status information. The network scenario information is an information description of the business scenario to which the technology is applicable, which is convenient for selecting different working modes for path detection and adjustment of detection frequency; the real-time status information is the collected node metadata to accurately reflect the situation in the network, which is convenient for timely adjustment of telemetry strategies and ensuring the flexibility and reliability of in-network detection; The working mode switching unit selects the telemetry mode according to the data collected by the network status collection module, based on the characteristics of different network scenarios, path status and different working modes of INT; The detection frequency adjustment unit is responsible for receiving active sensing notifications from nodes in the network, thereby adjusting the detection frequency; The path control unit is responsible for generating multiple detection paths that evenly cover nodes in the network according to the network topology; and replanning the detection paths based on the detection frequency adjustment; The specific workflow includes the following steps: Step S1, initial path planning is performed for network scenario attributes, with the goal of covering the entire network link, and the network collection unit obtains all network information; Step S2, generating multiple detection paths that evenly cover nodes in the network according to the network topology through the path control unit based on the information fed back by the network collection unit; Step S3, based on the information collected in step S1, selecting a working mode according to different network scales or different network scenarios; Step S4, after the network information is collected, it is sent to the network scene information of the network status collection unit for storage; using the network resource information, further adjusting the detection method; providing services for detection path re-planning, detection frequency optimization, and node detection action adjustment; The network status collection unit, working mode switching unit, detection frequency adjustment unit and path control unit are independent in function but support each other. The detection behavior is continuously adjusted and feedback is continuously provided through network status information to ensure the real-time and accuracy of perception.
2. A network telemetry method for distinguishing scenarios according to claim 1, characterized in that: The nodes in the network are all provided with the function of autonomously detecting the changes in the network status between nodes, and the specific method is as follows: Step SI, receiving INT telemetry message; Step SII, collecting node status information, and comparing the collected information with a set threshold according to a preset network indicator; Step SIII, determining whether the metadata collected by the INT detection package is greater than a preset threshold; if not, proceeding to step SIV; if yes, proceeding to step SV; Step SIV, the telemetry messages that do not exceed the threshold continue to collect telemetry information along the detection path; Step SV: For telemetry message nodes exceeding the threshold, the nodes report telemetry to the central controller for active notification, and the telemetry messages continue to be detected along the path; Step SVI, the central controller controls the transmitting end to adjust the telemetry frequency according to the notification information.
3. A network telemetry method for distinguishing scenarios according to claim 1, characterized in that: The working mode switching unit includes a hybrid perception mode switching method based on network scenario information, or a dynamic adjustment perception method based on network status changes, The hybrid perception mode switching method based on network scenario information is specifically as follows: First, we analyze the perception requirements of network scenarios, and construct multi-objective optimization problems for different scenario requirements. In different scenarios, we can select reasonable information based on the perception requirements priority. Secondly, based on the hybrid telemetry switching model, a set of constraints is constructed around network resource availability constraints, dependency constraints on scenario telemetry requirements, detection path direction, and perception effect requirements. The method for dynamically adjusting the perception based on network status changes is specifically as follows: In the adaptive switching framework, the complex internal situation of the network is taken into account. According to the different needs of collecting telemetry data, the perception parameter thresholds are set based on the flexible switching of the perception working mode. The detection frequency is adjusted on demand through dynamic interaction between nodes to achieve more measurement possibilities and realize flexible and efficient telemetry tasks.
4. A network telemetry method for distinguishing scenarios according to claim 1, characterized in that: The detection frequency adjustment unit is connected with the threshold setting of the nodes in the network, and multiple adjustments are made to different detection frequencies according to whether the threshold is exceeded and the degree of exceeding the threshold.
5. A network telemetry method for distinguishing scenarios according to claim 1, characterized in that: In the step S4, The re-planning of the detection path includes, but is not limited to, using the real-time transmission status of the link and the node queue depth provided by the network scenario information and the real-time recovered network status information, or real-time feedback of other iconic network conditions, combined with the scenario requirements to ensure high coverage of the information detection link in the network and high information volume obtained from the network resources; Alternatively, for abnormal nodes, a separate detection path is set up, and a hop-by-hop detection mode is adopted to ensure the accuracy and completeness of detection information collection. In addition, in order to prevent node deterioration from being caused by the detection behavior itself, path redundancy operations are performed for the node directly connected to the upstream node to avoid excessive detection traffic flowing through the abnormal node.
6. A network telemetry method for distinguishing scenarios according to claim 1, characterized in that: In the step S4, The detection frequency optimization is based on the initial detection frequency, and performs real-time update of the detection frequencies of different paths according to the speed of network information update.
7. A network telemetry method for distinguishing scenarios according to claim 1, characterized in that: In the step S4, The node detection action adjustment is mainly aimed at switching the detection method and selecting the detection action for abnormal nodes in the network. It can select and switch the appropriate working mode for the node according to changes in the network scenario or changes in the status of a certain link. In addition, because the nodes in the network have active perception functions, they can also detect anomalies in the network in time and take active information upload actions, thereby improving the whole system's ability to handle abnormalities.
8. A network telemetry device using the network telemetry method for distinguishing scenarios according to any one of claims 1 to 7, characterized in that: include: The control plane is managed by a central controller, while the data plane where the actual packet processing is performed by network devices uses a central controller responsible for decision making for the entire network; The data plane uses P4 programmable switches to support network node functions; and, A network status collection module, a working mode switching module, a detection frequency adjustment module and a path control module, wherein the working mode switching module and the detection frequency adjustment module are both included in the telemetry control module; wherein, The network status collection module is used to collect network scenario information and real-time status information. The network scenario information is an information description of the business scenario to which the technology is applicable, so as to facilitate the selection of different working modes for path detection and adjustment of detection frequency. Real-time status information is the collected node metadata that accurately reflects the situation in the network, facilitates timely adjustment of telemetry strategies, and ensures the flexibility and reliability of in-network detection; The working mode switching module selects the telemetry mode according to the data collected by the network status collection module, based on the characteristics of different network scenarios, path status and different working modes of INT; The detection frequency adjustment module is responsible for receiving active sensing notifications from nodes in the network, thereby adjusting the detection frequency; The path control module is responsible for generating multiple detection paths that evenly cover nodes in the network according to the network topology; and replanning the detection paths based on the detection frequency adjustment. The network status collection module, working mode switching module, detection frequency adjustment module and path control module are independent in function but support each other. The detection behavior is continuously adjusted and feedback is continuously provided through network status information to ensure the real-time and accuracy of perception.
9. An electronic device, characterized in that: It comprises a processor and a memory; wherein, when the processor executes the computer program stored in the memory, it implements the network telemetry method for distinguishing scenarios as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein, when the computer program is executed by a processor, the network telemetry method for distinguishing scenarios as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Service function chain fault detection method based on data control plane hybrid perception
CN113660140A
Adaptive In-band Network Telemetry For Full Network Coverage
US20210084530A1
Cited By
Path state detection method and device, network equipment and readable storage medium
CN119814610A
Low-overhead in-band whole-network telemetering method and system based on compressed sensing
CN120880974A
Network equipment edge detection method and system based on heartbeat detection mechanism
CN121967281A
