Telemetry information reporting method, device, equipment, storage medium and product

By classifying telemetry information and monitoring congestion in the switch, key information is reported first, which solves the problem of message backlog and delay caused by the surge in telemetry data volume, improves network management and fault handling efficiency, and enhances system stability and reliability.

CN118474042BActive Publication Date: 2024-10-15INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410916972.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-10-15
Estimated Expiration
2044-07-09

AI Technical Summary

Technical Problem

When the amount of telemetry data surges, the controller cannot process it in time, resulting in message backlog and delay, affecting network management and fault handling efficiency.

Method used

By collecting the telemetry information to be reported in the switch, classifying it into levels, caching it into the preset information reporting queue, and monitoring the buffer occupancy of the queue, adjusting the telemetry information according to the degree of congestion, and reporting the target level information to the controller first to ensure key information. transmission.

Benefits of technology

Effectively manage the reporting of telemetry information, reduce system failures due to congestion, improve system stability and reliability, ensure timely processing and transmission of information, and improve overall performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118474042B_ABST
    Figure CN118474042B_ABST
Patent Text Reader

Abstract

The present invention provides a telemetry information reporting method, device, equipment, storage medium and product, which relates to the field of data processing technology. The method includes: collecting telemetry information to be reported, classifying the telemetry information by level, caching the classified telemetry information into a preset information reporting queue, monitoring the cache occupancy of the telemetry information in the preset information reporting queue, determining the congestion level of the preset information reporting queue according to the cache occupancy, adjusting the telemetry information in the preset information reporting queue according to the congestion level, determining the target level telemetry information corresponding to the congestion level, reporting the target level telemetry information to a controller, and the controller is used to analyze and process the target level telemetry information. The present invention. The switch of the present invention dynamically adjusts the reporting information according to the queue reporting congestion situation, ensures the timely processing and transmission of the information, and realizes the effective management of the reporting of telemetry information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a telemetry information reporting method, device, equipment, storage medium and product. Background Art

[0002] INT (Inband network telemetry) is a new type of network monitoring technology. By adding metadata to network data packets, metadata can provide rich network performance information, such as network congestion, latency, packet loss, etc., so that the controller can fully monitor and analyze data flows. It can also be used to identify network attacks and abnormal behaviors.

[0003] At present, in telemetry application scenarios, since the controller is in a central position in the network, the switch chip can be configured through the protocol to determine the type and quantity of telemetry information that needs to be collected and reported. The reported telemetry data can accurately reflect the network operation status and provide comprehensive monitoring information for the controller.

[0004] However, as the network scale and data volume increase, the amount of information that the controller needs to process becomes larger, which puts higher requirements on the controller's processing capabilities. When the amount of telemetry data in the network suddenly surges, the controller will be overwhelmed and unable to process the telemetry data in time, resulting in message backlogs and delays, further affecting network management and fault handling efficiency. Summary of the invention

[0005] In view of this, the present invention aims to propose a telemetry information reporting method, device, equipment, storage medium and product to solve the problem of the surge in telemetry data volume and excessive information volume that causes the controller to be unable to process it in time, resulting in message backlog and delay, affecting network management efficiency, and to achieve efficient reporting of telemetry information.

[0006] According to a first aspect of the present invention, a telemetry information reporting method is provided, which is applied to a switch, wherein the switch is communicatively connected to a controller, and the method comprises:

[0007] Collect telemetry information to be reported, classify the telemetry information by level, and cache the classified telemetry information into a preset information reporting queue;

[0008] Monitoring the cache occupancy of telemetry information in the preset information reporting queue, and determining the congestion level of the preset information reporting queue according to the cache occupancy;

[0009] According to the congestion level, adjusting the telemetry information in the preset information reporting queue to determine the target level of telemetry information corresponding to the congestion level;

[0010] The target level telemetry information is reported to the controller; wherein the controller is used to analyze and process the target level telemetry information.

[0011] Optionally, the collecting the telemetry information to be reported, classifying the telemetry information by level, and caching the classified telemetry information into a preset information reporting queue includes:

[0012] According to the received telemetry message, filtering the telemetry information to be reported in the telemetry message;

[0013] Classifying the telemetry information according to the telemetry information content type to obtain at least two levels of telemetry information; wherein the telemetry information includes primary telemetry information, secondary telemetry information and optional telemetry information;

[0014] Respectively marking the primary telemetry information, the secondary telemetry information, and the optional telemetry information with a higher level identification;

[0015] The classified and labeled telemetry information is cached in the preset information reporting queue.

[0016] Optionally, the filtering, according to the received telemetry message, the telemetry information to be reported in the telemetry message includes:

[0017] Receive telemetry messages sent by the in-band network;

[0018] Performing parameter screening on the telemetry message to determine target parameters in the telemetry message;

[0019] The filtered target parameters are determined as the telemetry information to be reported.

[0020] Optionally, the monitoring a cache occupancy of telemetry information in the preset information reporting queue, and determining a congestion level of the preset information reporting queue according to the cache occupancy includes:

[0021] Using a preset information monitoring thread to monitor the preset information reporting queue, and obtaining the cache length of the telemetry information in the preset information reporting queue;

[0022] Determining the cache occupancy of the telemetry information in the preset information reporting queue according to the cache length of the telemetry information and the queue length of the preset information reporting queue;

[0023] The corresponding relationship between the preset congestion level and the buffer occupancy is adopted to determine the congestion level corresponding to the buffer occupancy in the preset information reporting queue.

[0024] Optionally, adjusting the telemetry information in the preset information reporting queue according to the congestion level to determine the target level telemetry information corresponding to the congestion level includes:

[0025] Determine a change in congestion level of the preset information reporting queue between a current monitoring period and a previous monitoring period;

[0026] Determine, according to the congestion level change value and the preset congestion threshold, the first level telemetry information to be discarded in the preset information reporting queue; wherein the first level telemetry information includes at least one of optional telemetry information and secondary telemetry information;

[0027] The first level telemetry information in the preset information reporting queue is deleted, and the target level telemetry information to be reported in the preset information reporting queue is retained.

[0028] Optionally, the first-level telemetry information to be discarded in the preset information reporting queue is determined according to the congestion degree change value and a preset congestion threshold; wherein the first-level telemetry information includes at least one item of optional telemetry information and secondary telemetry information, including:

[0029] If the congestion level is greater than the first congestion threshold and less than the second congestion threshold, determining that the telemetry information to be discarded in the preset information reporting queue is optional telemetry information;

[0030] If the congestion level is greater than or equal to the second congestion threshold, it is determined that the telemetry information to be discarded in the preset information reporting queue includes optional telemetry information and secondary telemetry information.

[0031] Optionally, after deleting the first level telemetry information in the preset information reporting queue and retaining the target level telemetry information to be reported in the preset information reporting queue, the method further includes:

[0032] The deleted first-level telemetry information in the preset information reporting queue is moved to the preset buffer queue.

[0033] Optionally, reporting the target level telemetry information to the controller; wherein the controller is used to analyze and process the target level telemetry information, including:

[0034] In response to the controller receiving a reporting instruction returned by the control information, acquiring the target level telemetry information from a preset information reporting queue;

[0035] The target level telemetry information is reported to the controller.

[0036] Optionally, the reporting of the target level telemetry information to the controller; wherein, before the controller is used to analyze and process the target level telemetry information, it also includes:

[0037] Generate control information corresponding to the target level telemetry information according to the target level telemetry information in the preset information reporting queue; wherein the control information is used by the controller to determine a target algorithm corresponding to analyzing and processing the target level telemetry information;

[0038] The control information is pushed to the controller.

[0039] Optionally, after reporting the target level telemetry information to the controller, the method further includes:

[0040] Monitoring the reporting status of the target level telemetry information;

[0041] If the target level telemetry information is reported, and the cache occupancy of the telemetry information in the preset information reporting queue is less than the first congestion threshold, the first level telemetry information is reported to the controller through the preset buffer queue.

[0042] Optionally, if the target level telemetry information is reported, and the cache occupancy of the telemetry information in the preset information reporting queue is less than the first congestion threshold, before reporting the first level telemetry information to the controller through the preset buffer queue, it also includes:

[0043] According to the first level telemetry information in the preset information reporting queue, the control information pushed to the controller is updated; wherein the control information is used by the controller to adjust the target algorithm.

[0044] According to a second aspect of the present invention, there is provided a telemetry information reporting device, which is applied to a switch, wherein the switch is communicatively connected to a controller, and the device comprises:

[0045] An information collection module is used to collect telemetry information to be reported, classify the telemetry information by level, and cache the classified telemetry information into a preset information reporting queue;

[0046] An information monitoring module, used to monitor the cache occupancy of telemetry information in the preset information reporting queue, and determine the congestion level of the preset information reporting queue according to the cache occupancy;

[0047] A queue adjustment module, used to adjust the telemetry information in the preset information reporting queue according to the congestion level, and determine the target level of telemetry information corresponding to the congestion level;

[0048] An information reporting module is used to report the target level telemetry information to the controller; wherein the controller is used to analyze and process the target level telemetry information.

[0049] According to a third aspect of the present invention, there is also provided an electronic device, comprising:

[0050] processor;

[0051] a memory for storing instructions executable by the processor;

[0052] Wherein, the processor is configured to execute the instructions to implement the telemetry information reporting method as described above.

[0053] According to a fourth aspect of the present invention, there is further provided a readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the telemetry information reporting method as described above are implemented.

[0054] A fifth aspect of an embodiment of the present invention provides a computer program product, including a computer program / instruction, which implements the steps of the telemetry information reporting method as described above when executed by a processor.

[0055] The telemetry information reporting method provided in the embodiment of the present invention collects telemetry information to be reported, classifies the telemetry information by level, caches the classified telemetry information in a preset information reporting queue, monitors the cache occupancy of the telemetry information in the preset information reporting queue, determines the congestion level of the preset information reporting queue according to the cache occupancy, adjusts the telemetry information in the preset information reporting queue according to the congestion level, determines the target level telemetry information corresponding to the congestion level, and reports the target level telemetry information to a controller, which is used to analyze and process the target level telemetry information. In the embodiment of the present invention, the switch collects telemetry information to be reported, and classifies the telemetry information by level, divides the telemetry information into different levels, and caches it in a preset information reporting queue. By monitoring the reporting congestion of the telemetry information in the preset information reporting queue, the telemetry information in the preset information reporting queue is adjusted, and the transmission of the main information is prioritized in the event of congestion, so that the controller can analyze and process the main telemetry information. The switch can dynamically adjust the information reporting strategy according to the actual occupancy of the queue to ensure the transmission of key information. When the queue allows, the switch can report telemetry information of various levels, dynamically adjust the reported information, and ensure timely processing and transmission of the information. The controller analyzes the received telemetry information of the target level, which helps to improve the stability and reliability of the system, reduce system failures caused by congestion, effectively manage the reporting of telemetry information, ensure the transmission of key information, and improve the overall performance of the system.

[0056] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0058] Figure 1 It is a flowchart of a method for reporting telemetry information provided by an embodiment of the present invention;

[0059] Figure 2 yes Figure 1 Flow chart of step 101 in the telemetry information reporting method provided in the embodiment of the present invention;

[0060] Figure 3 yes Figure 1 Flow chart of step 102 in the telemetry information reporting method provided in the embodiment of the present invention;

[0061] Figure 4 yes Figure 1 Flow chart of step 103 in the telemetry information reporting method provided in the embodiment of the present invention;

[0062] Figure 5 is a flowchart of another method for reporting telemetry information provided by an embodiment of the present invention;

[0063] Figure 6 It is a schematic diagram of the architecture of a telemetry information reporting method provided by an embodiment of the present invention;

[0064] Figure 7 It is a scenario schematic diagram of a telemetry information reporting method provided by an embodiment of the present invention;

[0065] Figure 8 It is a structural schematic diagram of a telemetry information reporting device provided by an embodiment of the present invention;

[0066] Fig. 9 It is an interactive schematic diagram of a telemetry information reporting method provided by an embodiment of the present invention;

[0067] Fig.10 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0068] To make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented. The division of the following embodiments is for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other without contradiction.

[0069] It should be noted that Figure 6 The schematic diagram of the architecture for uploading telemetry information is shown in the figure. The server, switch and controller constitute the telemetry message transmission channel in this application. In this application, the server is used to send telemetry messages, where the telemetry message refers to the in-band network telemetry message. The switch is the core component of the system, located between the server and the terminal, and plays the role of a relay for data transmission. It is responsible for collecting and processing telemetry data and transmitting its telemetry data to the controller at the designated switch. It should be noted that the number of switches in the entire telemetry message transmission process is not limited to three. This application does not specifically limit the number of switches. The last switch transmitted to the server can be called a telemetry tail node or a reporting node. The controller is responsible for receiving and processing telemetry data from the switch, decoding, analyzing and making decisions on the data, and performing corresponding control operations according to specific business logic. In addition, the controller can include a corresponding visual interface, which can monitor the status and performance indicators of network equipment in real time, timely discover and handle network failures, and perform corresponding configurations and adjustments.

[0070] Reference Figure 1 , shows a flowchart of the steps of the telemetry information reporting method provided by an embodiment of the present invention, which is applied to a switch, the switch is communicatively connected with a controller, and the method may include:

[0071] Step 101, collect telemetry information to be reported, classify the telemetry information by level, and cache the classified telemetry information into a preset information reporting queue.

[0072] In an embodiment of the present invention, during network communication, such as in a switch scenario, after receiving an in-band network telemetry message, a controller is used to identify and parse the telemetry information of the in-band network telemetry message reported by the switch. If a packet abnormality is encountered, such as a message format error or an unexpected field value, the controller can perform corresponding exception handling operations, which may include reporting an error, discarding the message, or taking other measures to handle the abnormal situation. Therefore, in an embodiment of the present invention, the switch collects telemetry information and dynamically adjusts the telemetry message content to reduce the message content that the controller needs to process, thereby reducing the load on the controller.

[0073] It should be noted that when the server transmits telemetry messages to the target terminal or server, it will pass through the source switch, relay switch and termination switch, and the controller will monitor the switch in real time and receive relevant telemetry message information for analysis. The switch reports the telemetry information in the telemetry message. The switch is divided into three roles: source switch, relay switch and termination switch. When the data packet arrives at the source switch, the source switch adds the INT message header and metadata to it according to the data flow to be telemetry reported. The relay switch will relay and insert metadata after the packet according to the INT message header, and so on, until the last hop termination switch of the entire telemetry system. The termination switch will report the telemetry information to the controller.

[0074] Reference Figure 7 , showing a scenario schematic diagram of a telemetry information reporting method provided by an embodiment of the present invention. In the embodiment of the present invention, the switch is communicatively connected to the controller, and the switch may include a telemetry information reporting unit, a telemetry message collection unit and a switch chip. Specifically, the telemetry information reporting unit includes an information control thread, an information reporting thread and an information reporting queue, wherein the information control thread is used to monitor the accumulation of telemetry information in the information reporting queue, and notify the information reporting thread to adjust the amount of information when the information reporting queue is congested, the information reporting thread is used to upload telemetry information to the controller, and notify the controller of the adjustment of telemetry information, the information reporting queue is used to receive the telemetry information collected by the telemetry message collection unit, and cache the telemetry information to the information reporting queue for the information upload thread to call; the telemetry message collection unit is used to collect the telemetry messages obtained by the switch chip, and push the telemetry information to the information reporting queue after filtering out the telemetry information in the telemetry message to wait for upload. The controller end includes an information receiving unit and an algorithm unit, wherein the information receiving unit is used to receive telemetry information reported by the information reporting thread in the switch, and forward the telemetry information to the algorithm unit so that the algorithm unit analyzes and processes the telemetry information. The information receiving unit is also used to receive the adjustment status of the telemetry information reported by the switch.

[0075] Specifically, the telemetry message collection unit in the switch collects the telemetry information to be reported, the information control thread in the telemetry information reporting unit classifies the telemetry information by level, and caches the classified telemetry information to the preset information reporting queue. In this embodiment, the queue length of the information reporting queue is determined according to the actual switch space and load conditions, which will not be described in detail here. In this embodiment, the switch screens the telemetry information to be reported in the telemetry message according to the received telemetry message, and classifies the telemetry information according to the content type of the telemetry information to obtain three categories of telemetry information: primary telemetry information, secondary telemetry information, and optional telemetry information. The primary telemetry information, secondary telemetry information, and optional telemetry information are respectively marked with the upper level identifier, and the classified and marked telemetry information is cached to the preset information reporting queue.

[0076] In this embodiment, the information reporting queue serves as a buffer to receive and store telemetry information collected by the telemetry message collection unit. The information reporting thread extracts target information from the information reporting queue for uploading. Telemetry information refers to data collected from remote or difficult to directly access devices and systems through in-band telemetry network technology. Telemetry information is usually used by the controller to monitor, analyze and optimize the performance of the device or system. The content of the telemetry information may vary according to the specific application scenario and requirements, and usually includes the following types of information: device status information, namely device ID or identifier, device operating status, performance indicators, processing power (such as CPU utilization, memory utilization, etc.), network performance (such as bandwidth utilization, packet loss rate, delay, etc.), storage performance (such as disk I / O speed, storage space utilization, etc.) and configuration changes (such as system configuration, network configuration, etc.) and network topology information such as the connection relationship between devices, etc. This embodiment does not make specific limitations on this.

[0077] Step 102: monitor the cache occupancy of telemetry information in the preset information reporting queue, and determine the congestion level of the preset information reporting queue according to the cache occupancy.

[0078] In an embodiment of the present invention, the information control thread in the telemetry information reporting unit of the switch monitors the cache occupancy of the telemetry information in the preset information reporting queue, determines the congestion level of the preset information reporting queue according to the cache occupancy, and dynamically changes the uploaded information content according to the queue congestion situation, thereby reducing the message content that the controller needs to process and reducing the load on the controller.

[0079] Specifically, the information control thread in the switch is used to monitor the preset information reporting queue to obtain the current cache length of the telemetry information in the preset information reporting queue. The current cache length is the occupied length of the telemetry information in the information reporting queue, so as to determine the cache occupancy of the telemetry information in the preset information reporting queue according to the cache length of the telemetry information and the queue length of the preset information reporting queue. The cache occupancy can be determined by the ratio of the cache length of the telemetry information to the queue length of the information reporting queue. If the ratio is less than 33%, it indicates that the cache occupancy is slightly occupied. In this embodiment, the correspondence between the preset congestion level and the cache occupancy can be used to determine the congestion level corresponding to the cache occupancy in the preset information reporting queue, which will not be repeated here.

[0080] Step 103, according to the congestion level, adjust the telemetry information in the preset information reporting queue to determine the target level of telemetry information corresponding to the congestion level.

[0081] In an embodiment of the present invention, the information control thread in the switch adjusts the telemetry information in the preset information reporting queue according to the degree of congestion, and determines the target level of telemetry information corresponding to the degree of congestion. Specifically, the degree of congestion is determined based on a threshold comparison, including light congestion, moderate congestion and heavy congestion. In this embodiment, the telemetry information in the preset information reporting queue is adjusted according to the degree of congestion, and the target level of telemetry information corresponding to the degree of congestion is determined, specifically including determining the level of telemetry information to be discarded in the preset information reporting queue, including at least one item of optional telemetry information and secondary telemetry information, deleting the level of telemetry information to be discarded in the preset information reporting queue, and retaining the target level of telemetry information to be reported in the preset information reporting queue.

[0082] Specifically, according to the degree of congestion, the telemetry information in the preset information reporting queue is adjusted, and the target level of telemetry information corresponding to the degree of congestion is determined. In case of mild congestion, there is no need to immediately adjust the telemetry information in the information reporting queue, and you can continue to monitor and prepare for adjustment; in case of moderate congestion, optional telemetry information will be discarded, and primary telemetry information and secondary telemetry information will be retained; in case of severe congestion, optional telemetry information and secondary telemetry information will be discarded, and only primary telemetry information will be retained.

[0083] Step 104, reporting the target level telemetry information to the controller; wherein the controller is used to analyze and process the target level telemetry information.

[0084] In the embodiment of the present invention, after adjusting the telemetry information in the information reporting queue, the switch only reports the target level telemetry information to the controller. The controller is used to analyze and process the target level telemetry information. Specifically, the information receiving unit of the controller receives the target level telemetry information reported by the information reporting thread in the switch, and forwards the target level telemetry information to the algorithm unit so that the algorithm unit analyzes and processes the telemetry information. The information receiving unit is also used to receive the adjustment status of the telemetry information reported by the switch.

[0085] Further, see Figure 2 , showing Figure 1 A flowchart of step 101 in a telemetry information reporting method is provided. The method is basically the same as the telemetry information reporting method provided in the first embodiment of the present invention. Step 101 may include:

[0086] Step 201: Filter the telemetry information to be reported in the telemetry message according to the received telemetry message.

[0087] Step 202, classify the telemetry information according to the telemetry information content type to obtain at least two levels of telemetry information; wherein the telemetry information includes primary telemetry information, secondary telemetry information and optional telemetry information.

[0088] Step 203, respectively mark the primary telemetry information, the secondary telemetry information and the optional telemetry information with a high-level identifier.

[0089] Step 204, cache the classified and labeled telemetry information into a preset information reporting queue.

[0090] It should be noted that, in the embodiment of the present invention, the information control thread of the switch screens out the telemetry information to be reported based on the received telemetry message, ensuring that only parameter information with analysis value and algorithm-related is reported, thereby reducing unnecessary data transmission. According to the content type of the telemetry information, the screened telemetry information is classified into primary telemetry information, secondary telemetry information, and optional telemetry information.

[0091] For example, the telemetry information is classified to obtain at least two levels of telemetry information; wherein the telemetry information includes primary telemetry information, secondary telemetry information, and optional telemetry information:

[0092] a. Main telemetry information: core parameters used by the algorithm, such as switch ID, ingress and egress port numbers, ingress and egress port timestamps, etc.

[0093] b. Secondary telemetry information: secondary parameters used by the algorithm, such as port packet loss, latency, port utilization, etc.

[0094] c. Optional telemetry information: Controller panel display parameters that are not included in the algorithm evaluation, such as current port rate, queue information, etc.

[0095] In this embodiment, the primary telemetry information, secondary telemetry information, and optional telemetry information are respectively marked with corresponding level identifiers. The marking of level identifiers helps to quickly identify the priority of information in subsequent processing, and the classified and marked telemetry information is cached in a preset information reporting queue. The cached information facilitates orderly and efficient reporting, and provides a basis for dynamic adjustment. When the queue is congested, the system can dynamically adjust the reported information according to the marked level identifier, give priority to the reporting of the primary telemetry information, and improve the efficiency and accuracy of information processing.

[0096] Specifically, step 201 screens the telemetry information to be reported in the telemetry message according to the received telemetry message, which may specifically include the following steps:

[0097] First, it receives telemetry messages sent by the in-band network;

[0098] Secondly, performing parameter screening on the telemetry message to determine the target parameters in the telemetry message;

[0099] Secondly, the screened target parameters are determined as the telemetry information to be reported.

[0100] In the embodiment of the present invention, the telemetry information collection unit receives the telemetry message sent by the in-band network. Since the telemetry message contains a large amount of data, in order to save processing resources and data reporting efficiency, the telemetry message is firstly screened for parameters to determine the target parameters in the telemetry message, wherein the target parameters are the telemetry parameters required for the controller algorithm analysis, and the screened target parameters are thereby determined as the telemetry information to be reported.

[0101] Further, see Figure 3 , showing Figure 1 A flowchart of step 102 in a telemetry information reporting method is provided. The method is basically the same as the telemetry information reporting method provided in the first embodiment of the present invention. Step 102 may include:

[0102] Step 301: Use a preset information monitoring thread to monitor a preset information reporting queue to obtain a cache length of telemetry information in the preset information reporting queue.

[0103] Step 302: Determine the cache occupancy of the telemetry information in the preset information reporting queue according to the cache length of the telemetry information and the queue length of the preset information reporting queue.

[0104] Step 303: using the corresponding relationship between the preset congestion level and the buffer occupancy status, determine the congestion level corresponding to the buffer occupancy status in the preset information reporting queue.

[0105] It should be noted that, in an embodiment of the present invention, a preset information monitoring thread is used to perform real-time monitoring of the preset information reporting queue to obtain the cache length of the telemetry information in the preset information reporting queue, that is, the amount of telemetry information currently stored in the information reporting queue. According to the cache length of the telemetry information and the queue length of the preset information reporting queue (that is, the total capacity of the queue), the cache occupancy of the telemetry information in the preset information reporting queue is evaluated. Specifically, by comparing the cache length and the queue length, the occupancy rate of the queue can be obtained, that is, the occupancy rate is equal to the cache length / queue length. The preset correspondence between the congestion level and the cache occupancy is used to determine the congestion level corresponding to the cache occupancy in the preset information reporting queue. In this embodiment, according to the system preset rules or algorithms, the cache occupancy rate is mapped to different congestion levels (such as mild, moderate, and severe).

[0106] For example, mild congestion: the cache occupancy rate is low, for example, less than 33%, no immediate adjustment is required, but it should be continuously monitored; moderate congestion: the cache occupancy rate is, for example, 33% to 66%, consider adjusting the information reporting strategy, and may need to discard some secondary or optional information; severe congestion: the cache occupancy rate is high, for example, more than 66%, immediately adjust the information reporting strategy, give priority to the transmission of primary information, and discard secondary and optional information.

[0107] The embodiments of the present invention can timely detect congestion by real-time monitoring of the queue buffer length, so as to timely and dynamically adjust the information reporting strategy according to the congestion level, ensure the transmission of key information, reasonably evaluate and respond to congestion, help reduce system failures caused by congestion, effectively monitor and evaluate the congestion of the information reporting queue, and take corresponding adjustment measures according to the evaluation results to ensure efficient management.

[0108] Further, see Figure 4 , showing Figure 1 A flowchart of step 103 in a telemetry information reporting method is provided. The method is basically the same as the telemetry information reporting method provided in the first embodiment of the present invention. Step 103 may include:

[0109] Step 401: Determine a change in congestion level of the preset information reporting queue between a current monitoring period and a previous monitoring period.

[0110] Step 402, determining the first level telemetry information to be discarded in the preset information reporting queue according to the congestion level change value and the preset congestion threshold; wherein the first level telemetry information includes at least one item of optional telemetry information and secondary telemetry information.

[0111] Step 403, deleting the first level telemetry information in the preset information reporting queue, and retaining the target level telemetry information to be reported in the preset information reporting queue.

[0112] It should be noted that, in an embodiment of the present invention, between the current monitoring cycle and the previous monitoring cycle, a change value of the congestion level of the preset information reporting queue is determined, and by comparing the congestion levels of the two cycles, the dynamic change of the congestion situation is evaluated, and according to the change value of the congestion level and the preset congestion threshold, the first-level telemetry information to be discarded in the preset information reporting queue is determined, the first-level telemetry information: including at least one item of optional telemetry information and secondary telemetry information, the determined first-level telemetry information is deleted from the preset information reporting queue, and the congestion pressure of the queue is reduced by discarding non-core information, and the target level telemetry information to be reported in the preset information reporting queue is retained, usually the main telemetry information, to ensure the transmission of key information and maintain the stable operation of the system.

[0113] Specifically, in step 402, first-level telemetry information to be discarded in a preset information reporting queue is determined according to the congestion degree change value and a preset congestion threshold; wherein the first-level telemetry information includes at least one of optional telemetry information and secondary telemetry information, and may specifically include:

[0114] If the congestion level is greater than the first congestion threshold and less than the second congestion threshold, determining that the telemetry information to be discarded in the preset information reporting queue is optional telemetry information;

[0115] If the congestion level is greater than or equal to the second congestion threshold, it is determined that the telemetry information to be discarded in the preset information reporting queue includes optional telemetry information and secondary telemetry information.

[0116] In an embodiment of the present invention, a first congestion threshold and a second congestion threshold are predefined, wherein the first congestion threshold is a low threshold for triggering adjustment of the queue, such as slight congestion, and the second congestion threshold is a high threshold for triggering adjustment of the queue, such as moderate congestion. When the congestion level exceeds the first congestion threshold but does not reach the second congestion threshold, that is, slight to moderate congestion, it is determined that the telemetry information to be discarded in the preset information reporting queue is optional telemetry information, and by discarding non-core optional information, the reporting pressure of the queue and the processing pressure of the controller are reduced, while retaining primary and secondary information. When the congestion level is greater than or equal to the second congestion threshold, that is, moderate to severe congestion, it is determined that the telemetry information to be discarded in the preset information reporting queue includes optional telemetry information and secondary telemetry information. When the congestion is severe, the secondary information is further discarded to ensure the transmission of the primary information and maintain the stable operation of the system.

[0117] The embodiment of the present invention monitors the congestion level of the preset information reporting queue in real time. By setting multiple congestion thresholds, a hierarchical response strategy can be adopted according to different congestion levels. The dynamic discard strategy helps to optimize information transmission and ensure that information flow can be effectively managed under different congestion conditions. Effective congestion management helps to improve the stability and reliability of the system and reduce system failures caused by congestion. By reasonably and flexibly adjusting the information discard strategy, the transmission of key information is ensured, while optimizing resource utilization and improving the overall performance of the system.

[0118] Specifically, in step 403, after deleting the first level telemetry information in the preset information reporting queue and retaining the target level telemetry information to be reported in the preset information reporting queue, the method further includes:

[0119] The deleted first-level telemetry information in the preset information reporting queue is moved to the preset buffer queue.

[0120] In the embodiment of the present invention, in order to ensure the comprehensiveness and accuracy of the analysis results of the controller, the first-level telemetry information in the deleted preset information reporting queue is moved to the preset buffer queue, so that when the queue congestion is relieved, the first-level telemetry information is re-reported to the controller. It should be noted that the preset buffer queue is a storage space in the switch, which is not specifically limited here.

[0121] Specifically, step 104 reports the target level telemetry information to the controller; wherein the controller is used to analyze and process the target level telemetry information, including:

[0122] In response to the controller receiving a reporting instruction returned by the control information, acquiring the target level telemetry information from a preset information reporting queue;

[0123] The target level telemetry information is reported to the controller.

[0124] In the embodiment of the present invention, in response to the reporting instruction returned by the controller receiving the control information, the target level telemetry information is obtained from the preset information reporting queue. The target level telemetry information generally refers to the main telemetry information, ensuring that the reported information is the key information that has been screened and prioritized, and reporting the obtained target level telemetry information to the controller, so that the controller can receive and analyze the key information for network management, performance monitoring, fault diagnosis and other purposes.

[0125] Specifically, the target level telemetry information is reported to the controller; wherein, before the controller is used to analyze and process the target level telemetry information, it also includes:

[0126] Generate control information corresponding to the target level telemetry information according to the target level telemetry information in the preset information reporting queue; wherein the control information is used by the controller to determine a target algorithm corresponding to analyzing and processing the target level telemetry information;

[0127] The control information is pushed to the controller.

[0128] It should be noted that, in the embodiment of the present invention, the switch generates corresponding control information based on the target level telemetry information in the preset information reporting queue, and the control information is used to instruct the controller how to process the received target level telemetry information, including determining an applicable analysis algorithm. Before reporting the target level telemetry information, the switch first pushes the control information to the controller so that the controller can determine the target algorithm based on the control information, so as to perform corresponding analysis and processing on the received target level telemetry information, thereby ensuring effective use of the information.

[0129] In one embodiment of the present invention, the controller is used to receive telemetry information reported by the switch information reporting thread, and forward the telemetry information to the algorithm unit. At the same time, it receives control information reported by the switch and informs the algorithm unit of the change in the amount of information of the current telemetry information. Specifically, the controller receives the control information pushed by the switch, parses the control information, determines the target level of the telemetry information to be received, and determines the target algorithm for processing the telemetry information according to the target level of the telemetry information. In this embodiment, the information receiving unit of the controller receives the control information of the switch and the target level telemetry information, informs the algorithm unit of the change in the amount of information according to the control information, and the algorithm unit selects a suitable target algorithm according to the amount of information, and executes the selected target algorithm to analyze the target level telemetry information. The controller can flexibly select a suitable algorithm according to the change in the amount of information, improve the adaptability and efficiency of the analysis, and through effective information analysis, the controller end can make more optimized decisions and improve the overall performance of the system.

[0130] Further, see Figure 5 , shows a flowchart of the steps of another telemetry information reporting method provided by an embodiment of the present invention, which method is basically the same as the telemetry information reporting method provided by the first embodiment of the present invention, except that the method may further include:

[0131] Step 101, collect telemetry information to be reported, classify the telemetry information by level, and cache the classified telemetry information into a preset information reporting queue.

[0132] Step 102: monitor the cache occupancy of telemetry information in the preset information reporting queue, and determine the congestion level of the preset information reporting queue according to the cache occupancy.

[0133] Step 103, according to the congestion level, adjust the telemetry information in the preset information reporting queue to determine the target level of telemetry information corresponding to the congestion level.

[0134] Step 104, reporting the target level telemetry information to the controller; wherein the controller is used to analyze and process the target level telemetry information.

[0135] Step 105, monitoring the reporting status of the target level telemetry information.

[0136] In an embodiment of the present invention, the information monitoring thread of the switch monitors the preset information reporting queue in real time, monitors the reporting status of the target level telemetry information, and specifically monitors the uploaded information volume of the target level telemetry information in the preset information reporting queue to determine the reporting status, which is not specifically limited here.

[0137] Step 106: If the target level telemetry information is reported, and the cache occupancy of the telemetry information in the preset information reporting queue is less than the first congestion threshold, the first level telemetry information is reported to the controller through the preset buffer queue.

[0138] In the embodiment of the present invention, after the target level telemetry information is reported, it is decided whether to report the first level telemetry information according to the queue buffer occupancy. When it is confirmed that the target level telemetry information (usually the main telemetry information) has been successfully reported to the controller, the cache occupancy of the telemetry information in the preset information reporting queue is evaluated. If the cache occupancy is less than the first congestion threshold, it indicates that the queue congestion is low and there is enough space to process more information. When the above conditions are met, the switch reports the first level telemetry information to the controller through the preset buffer queue. The first level telemetry information includes the discarded optional telemetry information and the secondary telemetry information.

[0139] Specifically, in step 106, if the target level telemetry information is reported, and the cache occupancy of the telemetry information in the preset information reporting queue is less than the first congestion threshold, before reporting the first level telemetry information to the controller through the preset buffer queue, the following may also be included:

[0140] According to the first level telemetry information in the preset information reporting queue, the control information pushed to the controller is updated; wherein the control information is used by the controller to adjust the target algorithm.

[0141] It should be noted that, in the embodiment of the present invention, the switch pushes control information to the controller to inform the controller of information changes each time the telemetry information content is switched. The control information is used by the controller to adjust the target algorithm so that the controller can adjust the algorithm content in time according to the changes.

[0142] In order to facilitate those skilled in the art to fully understand the above telemetry information reporting method, refer to Fig. 9 , Fig. 9 It is an interactive flow chart of a telemetry information reporting method provided by an embodiment of the present invention, which shows the overall process of telemetry information reporting provided by an embodiment of the present invention, specifically including: a switch is communicatively connected with a controller, the switch includes a telemetry information reporting unit, a telemetry message collection unit and a switch chip, specifically, the telemetry message collection unit is used to collect telemetry messages obtained by the switch chip, and after filtering out telemetry information in the telemetry message, pushes it to an information reporting queue to wait for upload, the telemetry information reporting unit includes an information control thread, an information reporting thread and an information reporting queue, the information control thread monitors the accumulation of telemetry information in the information reporting queue, and notifies the information reporting thread to adjust the amount of information when the information reporting queue is congested, the information reporting thread is used to upload telemetry information to the controller, and notify the controller of the adjustment of telemetry information, the information reporting queue is used to receive the telemetry information collected by the telemetry message collection unit, and cache the telemetry information to the information reporting queue for the information upload thread to call. The controller end includes an information receiving unit and an algorithm unit. The information receiving unit is used to receive telemetry information reported by the information reporting thread in the switch, and forward the telemetry information to the algorithm unit so that the algorithm unit analyzes and processes the telemetry information. The information receiving unit also receives the adjustment status of the telemetry information reported by the switch.

[0143] Reference Figure 8 , shows a schematic diagram of the structure of a telemetry information reporting device provided by an embodiment of the present invention, which is applied to a switch, the switch is communicatively connected with a controller, and the device includes:

[0144] The information collection module 501 is used to collect telemetry information to be reported, classify the telemetry information by level, and cache the classified telemetry information into a preset information reporting queue;

[0145] The information monitoring module 502 is used to monitor the cache occupancy of the telemetry information in the preset information reporting queue, and determine the congestion level of the preset information reporting queue according to the cache occupancy;

[0146] The queue adjustment module 503 is used to adjust the telemetry information in the preset information reporting queue according to the congestion level, and determine the target level telemetry information corresponding to the congestion level;

[0147] The information reporting module 504 is used to report the target level telemetry information to the controller; wherein the controller is used to analyze and process the target level telemetry information.

[0148] Optionally, the information collection module 501 includes:

[0149] A first screening submodule, configured to screen the telemetry information to be reported in the telemetry message according to the received telemetry message;

[0150] A classification submodule, for classifying the telemetry information according to the telemetry information content type to obtain at least two levels of telemetry information; wherein the telemetry information includes primary telemetry information, secondary telemetry information and optional telemetry information;

[0151] A labeling submodule, used to label the primary telemetry information, the secondary telemetry information and the optional telemetry information with upper level identifiers respectively;

[0152] The cache submodule is used to cache the classified and labeled telemetry information into the preset information reporting queue.

[0153] Optionally, the first screening submodule includes:

[0154] A receiving unit, used for receiving telemetry messages sent by the in-band network;

[0155] A screening unit, used to screen the telemetry message for parameters and determine the target parameters in the telemetry message;

[0156] The determination unit is used to determine the screened target parameters as the telemetry information to be reported.

[0157] Optionally, the monitoring information module 502 includes:

[0158] A first monitoring submodule, configured to monitor the preset information reporting queue using a preset information monitoring thread, and obtain a cache length of telemetry information in the preset information reporting queue;

[0159] A first determination submodule, configured to determine the cache occupancy of the telemetry information in the preset information reporting queue according to the cache length of the telemetry information and the queue length of the preset information reporting queue;

[0160] The second determining submodule is used to determine the congestion level corresponding to the buffer occupancy in the preset information reporting queue by adopting the corresponding relationship between the preset congestion level and the buffer occupancy.

[0161] Optionally, the queue adjustment module 503 includes:

[0162] A third determination submodule, used to determine a congestion level change value of the preset information reporting queue between a current monitoring period and a previous monitoring period;

[0163] A fourth determination submodule, configured to determine the first level telemetry information to be discarded in the preset information reporting queue according to the congestion degree change value and the preset congestion threshold; wherein the first level telemetry information includes at least one of optional telemetry information and secondary telemetry information;

[0164] The adjustment submodule is used to delete the first-level telemetry information in the preset information reporting queue and retain the target-level telemetry information to be reported in the preset information reporting queue.

[0165] Optionally, the fourth determining submodule includes:

[0166] a first determining unit, configured to determine that the telemetry information to be discarded in the preset information reporting queue is optional telemetry information if the congestion level is greater than a first congestion threshold and less than a second congestion threshold;

[0167] The second determining unit is used to determine that the telemetry information to be discarded in the preset information reporting queue includes optional telemetry information and secondary telemetry information if the congestion level is greater than or equal to a second congestion threshold.

[0168] Optionally, the queue adjustment module 503 further includes:

[0169] The transfer submodule is used to transfer the deleted first-level telemetry information in the preset information reporting queue to a preset buffer queue.

[0170] Optionally, the information reporting module 504 includes:

[0171] An acquisition submodule, configured to acquire the target level telemetry information from a preset information reporting queue in response to a reporting instruction returned by the controller when receiving control information;

[0172] A reporting submodule is used to report the target level telemetry information to the controller.

[0173] Optionally, the device further comprises:

[0174] A message generation module is used to generate control information corresponding to the target level telemetry information in the preset information reporting queue; wherein the control information is used by the controller to determine a target algorithm corresponding to the analysis and processing of the target level telemetry information;

[0175] A push message module is used to push the control information to the controller.

[0176] Optionally, the device further comprises:

[0177] A monitoring and reporting module, used to monitor the reporting status of the target level telemetry information;

[0178] The secondary reporting module is used to report the first-level telemetry information to the controller through the preset buffer queue if the target-level telemetry information reporting is completed and the cache occupancy of the telemetry information in the preset information reporting queue is less than the first congestion threshold.

[0179] Optionally, the device further comprises:

[0180] An update message module is used to update the control information pushed to the controller according to the first level telemetry information in the preset information reporting queue; wherein the control information is used by the controller to adjust the target algorithm.

[0181] The telemetry information reporting device provided in the embodiment of the present invention collects telemetry information to be reported, classifies the telemetry information by level, caches the classified telemetry information in a preset information reporting queue, monitors the cache occupancy of the telemetry information in the preset information reporting queue, determines the congestion level of the preset information reporting queue according to the cache occupancy, adjusts the telemetry information in the preset information reporting queue according to the congestion level, determines the target level telemetry information corresponding to the congestion level, and reports the target level telemetry information to a controller, which is used to analyze and process the target level telemetry information. In the embodiment of the present invention, the switch collects telemetry information to be reported, and classifies the telemetry information by level, divides the telemetry information into different levels, and caches it in a preset information reporting queue. By monitoring the reporting congestion of the telemetry information in the preset information reporting queue, the telemetry information in the preset information reporting queue is adjusted, and the transmission of the main information is prioritized in the event of congestion, so that the controller can analyze and process the main telemetry information. The switch can dynamically adjust the information reporting strategy according to the actual occupancy of the queue to ensure the transmission of key information. When the queue allows, the switch can report telemetry information of various levels, dynamically adjust the reported information, and ensure timely processing and transmission of the information. The controller analyzes the received telemetry information of the target level, which helps to improve the stability and reliability of the system, reduce system failures caused by congestion, effectively manage the reporting of telemetry information, ensure the transmission of key information, and improve the overall performance of the system.

[0182] Reference Fig.10 , an embodiment of the present invention further provides an electronic device, such as Fig.10 As shown, it includes a processor 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602, and the memory 603 communicate with each other through the communication bus 604.

[0183] Memory 603, used for storing computer programs;

[0184] The processor 601 is used to execute the program stored in the memory 603 to implement the following steps:

[0185] Collect telemetry information to be reported, classify the telemetry information by level, and cache the classified telemetry information into a preset information reporting queue;

[0186] Monitoring the cache occupancy of telemetry information in the preset information reporting queue, and determining the congestion level of the preset information reporting queue according to the cache occupancy;

[0187] According to the congestion level, adjusting the telemetry information in the preset information reporting queue to determine the target level of telemetry information corresponding to the congestion level;

[0188] The target level telemetry information is reported to the controller; wherein the controller is used to analyze and process the target level telemetry information.

[0189] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0190] The communication interface is used for communication between the above terminal and other devices.

[0191] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0192] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0193] In another embodiment provided by the present invention, a computer-readable storage medium is also provided, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the telemetry information reporting method described in any of the above embodiments.

[0194] In another embodiment provided by the present invention, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the telemetry information reporting method described in any one of the above embodiments.

[0195] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

[0196] 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 existence of other identical elements in the process, method, article or device including the elements.

[0197] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0198] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A telemetry information reporting method, characterized in that: Applied to a switch, the switch is communicatively connected with a controller, and the method includes: Collect telemetry information to be reported, classify the telemetry information by level, and cache the classified telemetry information into a preset information reporting queue; Monitoring the cache occupancy of telemetry information in the preset information reporting queue, and determining the congestion level of the preset information reporting queue according to the cache occupancy; According to the congestion level, adjusting the telemetry information in the preset information reporting queue, and determining the target level telemetry information corresponding to the congestion level, including: determining the congestion level change value of the preset information reporting queue between the current monitoring cycle and the previous monitoring cycle, determining the first level telemetry information to be discarded in the preset information reporting queue according to the congestion level change value and the preset congestion threshold, deleting the first level telemetry information in the preset information reporting queue, and retaining the target level telemetry information to be reported in the preset information reporting queue; The target level telemetry information is reported to the controller; wherein the controller is used to analyze and process the target level telemetry information.

2. The method according to claim 1, characterized in that The collecting of telemetry information to be reported, classifying the telemetry information by level, and caching the classified telemetry information into a preset information reporting queue includes: According to the received telemetry message, filtering the telemetry information to be reported in the telemetry message; Classifying the telemetry information according to the telemetry information content type to obtain at least two levels of telemetry information; wherein the telemetry information includes primary telemetry information, secondary telemetry information and optional telemetry information; Respectively marking the primary telemetry information, the secondary telemetry information, and the optional telemetry information with a higher level identification; The classified and labeled telemetry information is cached in the preset information reporting queue.

3. The method according to claim 2, characterized in that The step of screening the telemetry information to be reported in the telemetry message according to the received telemetry message includes: Receive telemetry messages sent by the in-band network; Performing parameter screening on the telemetry message to determine target parameters in the telemetry message; The filtered target parameters are determined as the telemetry information to be reported.

4. The method according to claim 1, characterized in that: The monitoring of the cache occupancy of telemetry information in the preset information reporting queue, and determining the congestion level of the preset information reporting queue according to the cache occupancy includes: Using a preset information monitoring thread to monitor the preset information reporting queue, and obtaining the cache length of the telemetry information in the preset information reporting queue; Determining the cache occupancy of the telemetry information in the preset information reporting queue according to the cache length of the telemetry information and the queue length of the preset information reporting queue; The corresponding relationship between the preset congestion level and the buffer occupancy is adopted to determine the congestion level corresponding to the buffer occupancy in the preset information reporting queue.

5. The method according to claim 1, characterized in that The adjusting the telemetry information in the preset information reporting queue according to the congestion degree to determine the target level of telemetry information corresponding to the congestion degree includes: The first level telemetry information includes at least one of optional telemetry information and secondary telemetry information; the optional telemetry information and secondary telemetry information are obtained by classifying the telemetry information according to the telemetry information content type.

6. The method according to claim 5, characterized in that The step of determining the first-level telemetry information to be discarded in the preset information reporting queue according to the congestion degree change value and the preset congestion threshold; wherein the first-level telemetry information includes at least one item of optional telemetry information and secondary telemetry information, including: If the congestion level is greater than the first congestion threshold and less than the second congestion threshold, determining that the telemetry information to be discarded in the preset information reporting queue is optional telemetry information; If the congestion level is greater than or equal to the second congestion threshold, it is determined that the telemetry information to be discarded in the preset information reporting queue includes optional telemetry information and secondary telemetry information.

7. The method according to claim 5, characterized in that After deleting the first level telemetry information in the preset information reporting queue and retaining the target level telemetry information to be reported in the preset information reporting queue, the method further includes: The deleted first-level telemetry information in the preset information reporting queue is moved to the preset buffer queue.

8. The method according to claim 1, characterized in that The step of reporting the target level telemetry information to the controller; wherein the controller is used to analyze and process the target level telemetry information, including: In response to the controller receiving a reporting instruction returned by the control information, acquiring the target level telemetry information from a preset information reporting queue; The target level telemetry information is reported to the controller.

9. The method according to claim 1, characterized in that: The target level telemetry information is reported to the controller; wherein, before the controller is used to analyze and process the target level telemetry information, it also includes: Generate control information corresponding to the target level telemetry information according to the target level telemetry information in the preset information reporting queue; wherein the control information is used by the controller to determine a target algorithm corresponding to analyzing and processing the target level telemetry information; The control information is pushed to the controller.

10. The method according to claim 1, characterized in that After reporting the target level telemetry information to the controller, the method further includes: Monitoring the reporting status of the target level telemetry information; If the target level telemetry information is reported, and the cache occupancy of the telemetry information in the preset information reporting queue is less than the first congestion threshold, the first level telemetry information is reported to the controller through the preset buffer queue.

11. The method according to claim 10, characterized in that If the target level telemetry information is reported, and the cache occupancy of the telemetry information in the preset information reporting queue is less than the first congestion threshold, before reporting the first level telemetry information to the controller through the preset buffer queue, the method further includes: According to the first level telemetry information in the preset information reporting queue, the control information pushed to the controller is updated; wherein the control information is used by the controller to adjust the target algorithm.

12. A telemetry information reporting device, characterized in that: Applied to a switch, the switch is communicatively connected with a controller, and the device comprises: An information collection module is used to collect telemetry information to be reported, classify the telemetry information by level, and cache the classified telemetry information into a preset information reporting queue; An information monitoring module, used to monitor the cache occupancy of telemetry information in the preset information reporting queue, and determine the congestion level of the preset information reporting queue according to the cache occupancy; A queue adjustment module is used to adjust the telemetry information in the preset information reporting queue according to the congestion level, and determine the target level telemetry information corresponding to the congestion level; wherein the target level telemetry information is obtained by deleting the first level telemetry information in the preset information reporting queue, and the first level telemetry information is the telemetry information to be discarded determined based on the congestion level change value of the preset information reporting queue between the current monitoring cycle and the previous monitoring cycle and the preset congestion threshold; An information reporting module is used to report the target level telemetry information to the controller; wherein the controller is used to analyze and process the target level telemetry information.

13. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the instructions to implement the telemetry information reporting method as described in any one of claims 1 to 11.

14. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the telemetry information reporting method according to any one of claims 1 to 11 is implemented.

15. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, a telemetry information reporting method as described in any one of claims 1 to 11 is implemented.