Telemetry message transmission control method, product, computer equipment and storage medium
Real-time monitoring and adjustment of the backpressure frame trigger threshold through in-band network telemetry technology solves the problem of traditional PFC being unable to obtain sufficient dynamic headroom when queues are congested, enabling adaptive flow control and improving network adaptability and management. efficiency.
Patent Information
- Application Number
- CN202410756967.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-06-13
AI Technical Summary
Traditional PFC cannot obtain enough dynamic headroom space to store packets when the queue is congested, resulting in packet loss. It also lacks adaptive adjustment capabilities, resulting in performance degradation or increased packet loss rate.
Monitor the network traffic and performance indicators of the switch in real time through in-band network telemetry technology, obtain the back-pressure frame trigger threshold and remaining shared cache space information, adjust the back-pressure frame trigger threshold to obtain enough space to store telemetry messages, and achieve adaptive traffic control.
It improves network adaptability and flexibility, reduces administrator management workload, improves management efficiency, and provides more accurate network performance evaluation to support network optimization and troubleshooting.
Smart Images

Figure CN118337720B
Abstract
Description
Technical Field
[0001] The present application relates to the field of in-band network telemetry technology, and in particular to a telemetry message transmission control method, product, computer equipment and storage medium. Background Art
[0002] The development of network technology has become one of the core driving forces of today's digital era. As an important technology in the field of network monitoring, in-band network telemetry (INT) is attracting widespread attention and application. INT embeds specific metadata fields in network devices to achieve real-time monitoring and analysis of data packets in the network.
[0003] First, the dynamic headroom space in traditional PFC (Priority-based Flow Control) is limited and shared. When queues on other ports have occupied all the dynamic headroom space, a queue may not be able to obtain enough dynamic headroom space to store packets when congested, resulting in packet loss. Second, traditional PFC configuration requires administrators to manually set parameters, and the system lacks adaptive adjustment capabilities. This means that when the network load changes, the system may not be able to adapt, resulting in performance degradation or increased packet loss. Summary of the invention
[0004] Based on this, a telemetry message transmission control method, system, computer device and storage medium are provided, which can solve the technical problems that the traditional PFC cannot obtain sufficient dynamic margin space to store messages when there is queue congestion, resulting in packet loss, and the manual setting of parameters will cause the system to lack adaptive adjustment capabilities, resulting in performance degradation or increased packet loss rate. Therefore, the application aims to provide adaptive adjustment capabilities, handle extreme network congestion and packet loss situations, and improve management efficiency.
[0005] On the one hand, a telemetry message transmission control method is provided, which is used to control the transmission of a telemetry message to a target server through at least one switch, and the telemetry message transmission control method includes:
[0006] Real-time identification of whether telemetry messages exist in the switch;
[0007] In response to the existence of a telemetry message in the switch, obtaining telemetry data information of the current switch, the telemetry data information including a back pressure frame trigger threshold and a value of a remaining shared cache space, and adding the telemetry data information to the telemetry message to form a telemetry supervision message;
[0008] Read the telemetry supervision message and determine whether the remaining shared cache space is less than a preset dynamic margin threshold. If not, transmit the telemetry message to the next node. If so, adjust the back pressure frame trigger threshold according to the size of the telemetry message and the remaining shared cache space to obtain sufficient space to store the telemetry message.
[0009] In one embodiment, the step of obtaining telemetry information of the current switch includes:
[0010] Monitor the network traffic and performance indicators of the switch, obtain the storage value of the data packet buffer area of the current switch, obtain the value of the back pressure frame trigger threshold on the data packet buffer area, read the occupied space of the priority message queue stored in the data packet buffer area, and subtract the occupied space of the priority message queue stored therein from the storage value of the data packet buffer area as the value of the remaining shared buffer space;
[0011] The back pressure frame trigger threshold and the value of the remaining shared cache space are used as telemetry data information of the current switch.
[0012] In one embodiment, the step of transmitting the telemetry message to the next node includes:
[0013] Determining whether the switch where the telemetry message is located is the last hop telemetry switch directly connected to the target server according to whether the next node is the target server;
[0014] If not, sending the telemetry message to the next switch for transmission toward the target server;
[0015] If so, the telemetry message is sent to the target server.
[0016] In one embodiment, the telemetry message transmission control method further includes:
[0017] In response to the fact that the switch where the telemetry message is located is not the last-hop telemetry switch directly connected to the target server, after the telemetry message is transmitted to the next switch, the corresponding telemetry data information is obtained by monitoring the network traffic and performance indicators of the next switch, and the telemetry data information is added to the telemetry message to form a telemetry supervision message.
[0018] In one embodiment, the telemetry message transmission control method further includes:
[0019] In response to the switch where the telemetry message is located being the last hop telemetry switch directly connected to the target server, determining whether the telemetry supervision message on the switch has been read;
[0020] If the telemetry monitoring message on the switch has been read, the telemetry data information in the telemetry monitoring message is deleted to restore the telemetry message, and the telemetry message is sent to the target server;
[0021] If the telemetry supervision message on the switch is not read, the telemetry supervision message is read. When the remaining shared cache space in the telemetry supervision message is less than the preset dynamic margin threshold, the back pressure frame trigger threshold is adjusted according to the size of the telemetry message and the remaining shared cache space to obtain sufficient dynamic margin space to store the telemetry message, the telemetry data information in the telemetry supervision message is deleted and restored to the telemetry message, and the telemetry message is sent to the target server.
[0022] In one embodiment, the step of adjusting the back pressure frame trigger threshold according to the size of the telemetry message and the remaining shared cache space to obtain sufficient dynamic margin space to store the telemetry message includes:
[0023] Comparing the number of bytes of the telemetry message with the number of bytes of the remaining shared cache space;
[0024] When the number of bytes of the telemetry message is less than or equal to the number of bytes of the remaining shared cache space, the preset cache threshold upper limit is used as a new back pressure frame trigger threshold;
[0025] When the number of bytes of the telemetry message is greater than the number of bytes of the remaining shared cache space, the spatial difference between the number of bytes of the telemetry message and the number of bytes of the remaining shared cache space is obtained, and the preset cache gate upper limit minus the spatial difference is used as the new back pressure frame trigger threshold.
[0026] In one embodiment, the step of adjusting the back pressure frame trigger threshold according to the size of the telemetry message and the remaining shared cache space to obtain sufficient dynamic margin space to store the telemetry message includes:
[0027] The calculation formula for setting a new back pressure frame trigger threshold is:
[0028] ;
[0029] in is the number of bytes of remaining shared cache space, profill xoff is the number of bytes of the telemetry message, Xoff THreshold The upper limit of the preset cache gate;
[0030] The back pressure frame trigger threshold is adjusted by using a new back pressure frame trigger threshold calculated using a calculation formula for the new back pressure frame trigger threshold.
[0031] In one embodiment, when the number of bytes of the telemetry message is greater than the number of bytes of the remaining shared cache space, after the step of adjusting the back pressure frame trigger threshold using the calculation formula of the new back pressure frame trigger threshold, the step further includes:
[0032] After adjusting the back pressure frame trigger threshold, waiting for the priority message queue to execute for a first time interval, and detecting whether the number of bytes in the remaining shared cache space is greater than or equal to the number of bytes in the telemetry message;
[0033] When the number of bytes of the remaining shared cache space is greater than or equal to the number of bytes of the telemetry message, the telemetry message is stored in the remaining shared cache space.
[0034] In one embodiment, the telemetry message transmission control method further includes:
[0035] A priority-based flow control method is adopted in the switch to manage the priority message queue;
[0036] Setting a data packet buffer area in each switch to have a preset buffer gate lower limit value and a preset buffer gate upper limit value, wherein the preset buffer gate lower limit value is smaller than the preset buffer gate upper limit value;
[0037] Setting the space within the data packet buffer area that is smaller than the preset buffer gate lower limit value as a reserved space for storing a priority message queue;
[0038] Setting the area within the data packet buffer between the preset buffer gate lower limit value and the preset buffer gate upper limit value as a shared buffer space for buffering priority message queues;
[0039] The space within the data packet buffer area that is larger than the preset cache gate upper limit value is set as the dynamic margin space; the storage value of the data packet buffer area minus the space of the preset cache gate upper limit value is the storage value of the dynamic margin space, and the storage value of the dynamic margin space is set as the preset dynamic margin threshold.
[0040] In one embodiment, the telemetry message transmission control method further includes:
[0041] Determining whether the space occupied by the stored data in the data packet buffer area is lower than the preset buffer gate lower limit;
[0042] When the space occupied by the stored data in the data packet buffer area is lower than the preset buffer gate lower limit, it will trigger the resumption of the pause frame sent by the opposite end.
[0043] In one embodiment, the telemetry message transmission control method further includes:
[0044] Determining whether the space occupied by the stored data in the data packet buffer area is higher than the preset buffer gate upper limit;
[0045] When the space occupied by the stored data in the data packet buffer area is higher than the preset buffer gate upper limit, a pause frame will be sent to the previous node. After receiving the pause frame, the previous node stops sending priority messages to the next node.
[0046] In one embodiment, the telemetry message transmission control method further includes:
[0047] In response to the switch receiving a telemetry message, applying for storage space in the reserved space, the shared buffer space and the dynamic headroom space of the data packet buffer area of the switch;
[0048] Acquire storage addresses allocated in the reserved space, the shared cache space, and the dynamic margin space;
[0049] The telemetry message is stored in segments according to the storage addresses allocated to the reserved space, the shared cache space, and the dynamic margin space.
[0050] On the other hand, a telemetry message transmission control system is provided, the system comprising a terminal, at least one switch, a controller and a target server;
[0051] The terminal is used to generate a telemetry message, the terminal is connected to a target server via at least one switch, the controller is connected to the switch, and the controller is used to execute the steps of the method described above to control the telemetry message to be transmitted to the target server via at least one switch.
[0052] In another aspect, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0053] Real-time identification of whether telemetry messages exist in the switch;
[0054] In response to the existence of a telemetry message in the switch, obtaining telemetry data information of the current switch, the telemetry data information including a back pressure frame trigger threshold and a value of a remaining shared cache space, and adding the telemetry data information to the telemetry message to form a telemetry supervision message;
[0055] Read the telemetry supervision message and determine whether the remaining shared cache space is less than a preset dynamic margin threshold. If not, transmit the telemetry message to the next node. If so, adjust the back pressure frame trigger threshold according to the size of the telemetry message and the remaining shared cache space to obtain sufficient space to store the telemetry message.
[0056] In another aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:
[0057] Real-time identification of whether telemetry messages exist in the switch;
[0058] In response to the existence of a telemetry message in the switch, obtaining telemetry data information of the current switch, the telemetry data information including a back pressure frame trigger threshold and a value of a remaining shared cache space, and adding the telemetry data information to the telemetry message to form a telemetry supervision message;
[0059] Read the telemetry supervision message and determine whether the remaining shared cache space is less than a preset dynamic margin threshold. If not, transmit the telemetry message to the next node. If so, adjust the back pressure frame trigger threshold according to the size of the telemetry message and the remaining shared cache space to obtain sufficient space to store the telemetry message.
[0060] In another aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0061] Real-time identification of whether telemetry messages exist in the switch;
[0062] In response to the existence of a telemetry message in the switch, obtaining telemetry data information of the current switch, the telemetry data information including a back pressure frame trigger threshold and a value of a remaining shared cache space, and adding the telemetry data information to the telemetry message to form a telemetry supervision message;
[0063] Read the telemetry supervision message and determine whether the remaining shared cache space is less than a preset dynamic margin threshold. If not, transmit the telemetry message to the next node. If so, adjust the back pressure frame trigger threshold according to the size of the telemetry message and the remaining shared cache space to obtain sufficient space to store the telemetry message.
[0064] The telemetry message transmission control method, product, computer equipment and storage medium described above can monitor the telemetry data information of each switch node in the network in real time through in-band network telemetry technology, so as to promptly discover network bottlenecks and congestion points. Secondly, the back pressure frame trigger threshold is adjusted according to the size of the telemetry message and the remaining shared cache space to obtain sufficient space to store the telemetry message. The back pressure frame trigger threshold can be automatically adjusted according to the real-time monitored network status to adapt to changes in network load and improve the adaptability and flexibility of the network. It can reduce the administrator's management workload and improve management efficiency. At the same time, it can more accurately evaluate network performance, thereby providing strong support for network optimization and troubleshooting. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0066] Figure 1 This is an application environment diagram of a telemetry message transmission control method in one embodiment of the present application;
[0067] Figure 2 This is a flow chart of a telemetry message transmission control method in one embodiment of the present application;
[0068] Figure 3 This is a schematic diagram of a telemetry message transmission path in one embodiment of the present application;
[0069] Figure 4 This is a flow chart of the steps of a switch processing an in-band network telemetry message in one embodiment of the present application;
[0070] Figure 5 A schematic diagram of the structure of a data packet buffer area of a switch in one embodiment of the present application;
[0071] Figure 6 A schematic diagram of a structure for allocating telemetry message storage locations in a data packet buffer area of a switch in one embodiment of the present application;
[0072] Figure 7 This is a structural block diagram of a telemetry message transmission control system in one embodiment of the present application;
[0073] Figure 8 This is a diagram of the internal structure of a computer device in one embodiment of the present application. DETAILED DESCRIPTION
[0074] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0075] As described in the background technology, traditional network monitoring methods are usually based on traffic sampling or sampling, which can only provide limited information and may have a certain impact on network performance. In contrast, INT can provide detailed monitoring information at the packet level, not only does it not require additional sampling overhead, but it can also provide more comprehensive and accurate network performance data. The emergence of INT fills the gap in traditional network monitoring technology and brings new possibilities for network operation and management.
[0076] The implementation of INT technology depends on the support and configuration of network devices. In INT, network devices add specific fields to the metadata of data packets to record information related to the data packets. These fields can include the path, timestamp, traffic statistics, queue delay, etc. of the data packet. This information can be recorded and extracted at each node during the data packet transmission process, thus forming complete network path information and performance data.
[0077] Compared with the traditional centralized monitoring method, INT can be distributed on each node of the network for monitoring, achieving more flexible and fine-grained monitoring. This distributed monitoring method enables INT to cope with large-scale, high-speed network environments and provide more accurate performance metrics. INT has a wide range of application scenarios, including network troubleshooting, network optimization, performance tuning and other fields.
[0078] However, despite the many advantages brought by INT technology, it also faces some challenges and limitations. First, INT requires the support and configuration of network devices, and currently not all network devices support INT functions. Second, INT will add additional metadata fields to the data packet, increasing the size of the data packet, which may have a certain impact on the bandwidth utilization of the network and increase the possibility of congestion and packet loss.
[0079] In this context, PFC (Priority-based Flow Control) is a flow control technology that can effectively avoid packet loss. When the lossless queue of the downstream device is congested, it will send a backpressure signal "STOP" to the upstream device. After receiving the PAUSE frame message, the upstream device will stop sending messages of this priority level until it receives the PFC XON frame or a certain aging time has passed. Then it can resume traffic sending to achieve zero packet loss transmission.
[0080] In the key parameter settings of PFC, the headroom cache threshold (headroom) plays an important role. This parameter defines the maximum resources that a certain priority message can use in the headroom storage space. When this threshold is reached or exceeded, the interface may discard the received message, which directly affects the data transmission and packet loss. In addition, the back pressure frame trigger threshold (XOFF) is also one of the key parameters in PFC. It specifies the upper limit of the resources used by a certain priority message in the shared storage space. Once this threshold is reached, the system will trigger the PFC function and send a PAUSE frame to notify the upstream device to suspend sending traffic to alleviate congestion. In addition, the offset between the back pressure frame stop threshold and the trigger threshold (ingress-threshold-offset) also needs to be carefully set. This parameter determines the conditions for stopping sending PFC PAUSE frames when the resources used by a certain priority message are reduced by a fixed value to ensure the stability and recovery of traffic.
[0081] The reasonable setting of these key parameters is crucial to the performance and reliability of the PFC system and needs to be precisely adjusted according to the characteristics and requirements of the network to achieve the best flow control effect and minimize the occurrence of packet loss.
[0082] PFC is a network traffic management technology. When the queue of the downstream device is congested, the downstream device notifies the upstream device to stop sending the traffic of the queue by sending a pause signal, thereby avoiding data loss. At the same time, it solves the conflict between the Ethernet Pause mechanism and link sharing, so that traffic control is only for a specific priority queue, rather than the entire interface traffic. Each queue can pause or restart traffic sending separately without affecting other queues, realizing multiple traffic sharing links.
[0083] However, PFC relies on shared headroom space. Since headroom space is limited and shared, if queues on other ports have occupied all the headroom space, a queue may not be able to obtain enough headroom space to store packets when congestion occurs, resulting in packet loss. In this case, the lack of sufficient headroom space will cause the interface to be unable to process newly arrived packets in a timely manner, and may choose to discard some or all packets, thus affecting network performance and reliability.
[0084] Traditional PFC traffic management systems usually use fixed priority settings and queue thresholds, and administrators need to manually configure these parameters. Once configured, the system will perform traffic control according to these settings and lacks adaptive adjustment capabilities. Under this technical solution, administrators need to constantly monitor network traffic and performance indicators and manually adjust PFC configuration parameters, such as priority settings and queue thresholds, to adapt to different network loads and application scenarios.
[0085] Fixed priority settings may not adapt to changes in the network environment, resulting in performance degradation or increased packet loss. At the same time, there is a lack of real-time monitoring and feedback mechanisms, so administrators cannot detect network congestion and bottlenecks in time and cannot respond in a timely manner. In addition, there is a high degree of dependence on network administrators, and a lot of time and energy are required to manage and maintain the system. There are certain limitations when dealing with complex network environments and dynamic traffic loads, which may lead to performance degradation and poor user experience.
[0086] To solve the above problems, a telemetry message transmission control method is creatively proposed in an embodiment of the present invention. Through in-band network telemetry technology, adaptive adjustment based on PFC is implemented to prevent packet loss due to insufficient headroom space buffer. By using in-band network telemetry technology to monitor performance indicators in real time, including PFC information such as queue cache utilization, etc., precursors of packet loss can be discovered in advance and preventive settings can be made. PFC configuration parameters are dynamically adjusted according to the monitoring results so that PFC avoids packet loss and adapts to different network load conditions. It can also reduce the management workload of administrators and improve management efficiency.
[0087] The telemetry message transmission control method provided in this application can be applied to Figure 1 In the application environment shown. Among them, the terminal 101 communicates with the target server 103 through the network through multiple switches 102, and the controller 104 is connected to the switch 102. Among them, the terminal 101 can be but not limited to various personal computers, laptops, smart phones, tablet computers and portable wearable devices. The terminal 101 can also be a terminal. The terminal and the target server 103 can be implemented with independent servers or a server cluster composed of multiple servers. The switch 102 is the core component of the system. It is located between the terminal 101 and the target server 103 and plays the role of a relay for data transmission. It is responsible for the collection and processing of telemetry data and transmits its telemetry data to the controller 104 at the designated switch 102. The controller 104 is responsible for receiving and processing the telemetry data from the switch 102. It decodes, analyzes and makes decisions on the data and performs corresponding control operations according to specific business logic.
[0088] In one embodiment, Figure 2 As shown, a telemetry message transmission control method is provided, and the method is applied to Figure 1 The controller 104 in the embodiment is taken as an example to illustrate, and the following steps are included:
[0089] Step S1, real-time identification of whether there is a telemetry message in the switch;
[0090] Step S2, in response to the existence of a telemetry message in the switch, obtaining telemetry data information of the current switch, the telemetry data information including a back pressure frame trigger threshold and a value of a remaining shared cache space, and adding the telemetry data information to the telemetry message to form a telemetry supervision message;
[0091] Step S3, read the telemetry supervision message, determine whether the remaining shared cache space is less than the preset dynamic margin threshold, if not, transmit the telemetry message to the next node, if yes, adjust the back pressure frame trigger threshold according to the size of the telemetry message and the remaining shared cache space to obtain sufficient space to store the telemetry message.
[0092] like Figure 3 As shown, Figure 3 For the corresponding Figure 1 The schematic diagram of the telemetry message transmission path is as follows: the terminal sends an ordinary message to switch 1, identifies the telemetry message in the ordinary message, and adds the telemetry data information of switch 1 to the telemetry message. The controller reads the telemetry message in switch 1 to determine whether the remaining shared cache space is less than the preset dynamic margin threshold. If not, the telemetry message is transmitted to the next node switch 2. If so, the telemetry message is reported to the controller to adjust the back pressure frame trigger threshold. If the current switch is the last hop telemetry switch directly connected to the target server, that is, switch 3, the telemetry data information of switch 3 is added to the telemetry message and reported to the controller to adjust the back pressure frame trigger threshold until the telemetry message is transmitted to the target server.
[0093] In this embodiment, the step of obtaining telemetry information of the current switch includes:
[0094] Monitor the network traffic and performance indicators of the switch, obtain the storage value of the data packet buffer area of the current switch, obtain the value of the back pressure frame trigger threshold on the data packet buffer area, read the occupied space of the priority message queue stored in the data packet buffer area, and subtract the occupied space of the priority message queue stored therein from the storage value of the data packet buffer area as the value of the remaining shared buffer space;
[0095] The back pressure frame trigger threshold and the value of the remaining shared cache space are used as telemetry data information of the current switch.
[0096] Among them, the telemetry data information is the PFC (Priority-based Flow Control) cache usage related information, which is the specific information of the switch's packet cache area, including the preset cache gate lower limit value (Xon Threshold) of the packet cache area, the preset cache gate upper limit value (Xoff Threshold), the back pressure frame trigger threshold, the storage value of the packet cache area, the occupied space of the priority message queue stored in the packet cache area, and the remaining shared cache space. Usually, the back pressure frame trigger threshold is set by default to be equal to the preset cache gate upper limit value (Xoff Threshold). When the size of the telemetry message exceeds the size of the remaining shared cache space, the remaining shared cache space is difficult to accommodate the telemetry message, and the message must be discarded. The value of the back pressure frame trigger threshold needs to be dynamically set.
[0097] Specifically, the telemetry message contains the switch address (switch_id) and the management port IP. The switch monitors network traffic and performance indicators and adds PFC cache usage information to the telemetry message field. The following table shows an example of a telemetry message.
[0098]
[0099] Combination Figure 3 , Figure 4 In this embodiment, the step of transmitting the telemetry message to the next node includes:
[0100] Determining whether the switch where the telemetry message is located is the last hop telemetry switch directly connected to the target server according to whether the next node is the target server;
[0101] If not, sending the telemetry message to the next switch for transmission toward the target server;
[0102] If so, the telemetry message is sent to the target server.
[0103] like Figure 4 As shown, in this embodiment, the telemetry message transmission control method further includes:
[0104] In response to the fact that the switch where the telemetry message is located is not the last-hop telemetry switch directly connected to the target server, after the telemetry message is transmitted to the next switch, the corresponding telemetry data information is obtained by monitoring the network traffic and performance indicators of the next switch, and the telemetry data information is added to the telemetry message to form a telemetry supervision message.
[0105] It is understandable that when the next node of the telemetry message transmission is not the last hop telemetry switch, the telemetry data information of the next switch is added to the telemetry message, and then the back pressure frame trigger threshold is adjusted according to the size of the telemetry message and the remaining shared cache space to obtain sufficient space to store the telemetry message.
[0106] like Figure 4 As shown, in this embodiment, the telemetry message transmission control method further includes:
[0107] In response to the switch where the telemetry message is located being the last hop telemetry switch directly connected to the target server, determining whether the telemetry supervision message on the switch has been read;
[0108] If the telemetry monitoring message on the switch has been read, the telemetry data information in the telemetry monitoring message is deleted to restore the telemetry message, and the telemetry message is sent to the target server;
[0109] If the telemetry supervision message on the switch is not read, the telemetry supervision message is read. When the remaining shared cache space in the telemetry supervision message is less than the preset dynamic margin threshold, the back pressure frame trigger threshold is adjusted according to the size of the telemetry message and the remaining shared cache space to obtain sufficient dynamic margin space to store the telemetry message, the telemetry data information in the telemetry supervision message is deleted and restored to the telemetry message, and the telemetry message is sent to the target server.
[0110] In other embodiments, it can also be set that during the transmission of the telemetry message, the telemetry data information in the telemetry supervision message is never deleted, which can reduce the number of deletion operation steps. Specifically, the telemetry message transmission control method also includes:
[0111] When adding the telemetry data information of the current switch to the telemetry message to form the telemetry supervision message, the IP address information of the current switch is recorded accordingly; and the corresponding telemetry data information can be matched and obtained according to the IP address information of the switch;
[0112] After reading the telemetry supervision message, transmitting the telemetry supervision message to the next node;
[0113] After the telemetry supervision message is transmitted to the next node, it is determined whether the current node is a switch. If so, the corresponding telemetry data information is obtained by monitoring the network traffic and performance indicators of the current switch. The telemetry data information in the telemetry supervision message is updated according to the telemetry data information of the current switch to form a new telemetry supervision message, or the telemetry data information of the current switch is added to the telemetry supervision message to form a new telemetry supervision message.
[0114] In this way, the telemetry data information in the telemetry supervision message is not deleted, which can reduce the deletion operation steps. Only when reading the telemetry supervision message, the corresponding telemetry data information can be matched according to the IP address information of the switch, which can improve the processing efficiency of the switch.
[0115] In this embodiment, the step of adjusting the back pressure frame trigger threshold according to the size of the telemetry message and the remaining shared cache space to obtain sufficient dynamic margin space to store the telemetry message includes:
[0116] Comparing the number of bytes of the telemetry message with the number of bytes of the remaining shared cache space;
[0117] When the number of bytes of the telemetry message is less than or equal to the number of bytes of the remaining shared cache space, the preset cache threshold upper limit is used as a new back pressure frame trigger threshold;
[0118] When the number of bytes of the telemetry message is greater than the number of bytes of the remaining shared cache space, the spatial difference between the number of bytes of the telemetry message and the number of bytes of the remaining shared cache space is obtained, and the preset cache gate upper limit minus the spatial difference is used as the new back pressure frame trigger threshold.
[0119] Specifically, the step of adjusting the back pressure frame trigger threshold according to the size of the telemetry message and the remaining shared cache space to obtain sufficient dynamic margin space to store the telemetry message includes:
[0120] The calculation formula for setting a new back pressure frame trigger threshold is:
[0121] ;
[0122] in is the number of bytes of remaining shared cache space, profill xoff is the number of bytes of the telemetry message, Xoff THreshold The upper limit of the preset cache gate;
[0123] The back pressure frame trigger threshold is adjusted by using a new back pressure frame trigger threshold calculated using a calculation formula for the new back pressure frame trigger threshold.
[0124] In this embodiment, when the number of bytes of the telemetry message is greater than the number of bytes of the remaining shared cache space, after the step of adjusting the back pressure frame trigger threshold using the calculation formula of the new back pressure frame trigger threshold, the step further includes:
[0125] After adjusting the back pressure frame trigger threshold, waiting for the priority message queue to execute for a first time interval, and detecting whether the number of bytes in the remaining shared cache space is greater than or equal to the number of bytes in the telemetry message;
[0126] When the number of bytes of the remaining shared cache space is greater than or equal to the number of bytes of the telemetry message, the telemetry message is stored in the remaining shared cache space.
[0127] After adjusting the back pressure frame trigger threshold, the priority message queue is waited for execution by an interval of a first time length, so that the shared cache space is vacated after the queue to be executed within the first time length is executed, and the remaining shared cache space is increased to accommodate the telemetry message.
[0128] like Figure 5 As shown, in this embodiment, the telemetry message transmission control method further includes:
[0129] A priority-based flow control method is adopted in the switch to manage the priority message queue;
[0130] Setting a data packet buffer area in each switch to have a preset buffer gate lower limit value and a preset buffer gate upper limit value, wherein the preset buffer gate lower limit value is smaller than the preset buffer gate upper limit value;
[0131] Setting the space within the data packet buffer area that is smaller than the preset buffer gate lower limit value as a reserved space for storing a priority message queue;
[0132] Setting the area within the data packet buffer between the preset buffer gate lower limit value and the preset buffer gate upper limit value as a shared buffer space for buffering priority message queues;
[0133] The space within the data packet buffer area that is larger than the preset cache gate upper limit value is set as the dynamic margin space; the storage value of the data packet buffer area minus the space of the preset cache gate upper limit value is the storage value of the dynamic margin space, and the storage value of the dynamic margin space is set as the preset dynamic margin threshold.
[0134] The dynamic headroom is used to send a PAUSE frame to the previous hop device to stop sending packets to the shared buffer. If the dynamic headroom is used up, the received packets are discarded. In other words, the smaller the back pressure frame trigger threshold, the earlier the previous hop device can stop sending packets, and packet loss can be avoided.
[0135] In this embodiment, the telemetry message transmission control method further includes:
[0136] Determining whether the space occupied by the stored data in the data packet buffer area is lower than the preset buffer gate lower limit;
[0137] When the space occupied by the stored data in the data packet buffer area is lower than the preset buffer gate lower limit value, it will trigger the resumption of the pause frame sent by the opposite end.
[0138] In this embodiment, the telemetry message transmission control method further includes:
[0139] Determining whether the space occupied by the stored data in the data packet buffer area is higher than the preset buffer gate upper limit;
[0140] When the space occupied by the stored data in the data packet buffer area is higher than the preset buffer gate upper limit, a pause frame will be sent to the previous node. After receiving the pause frame, the previous node stops sending priority messages to the next node.
[0141] like Figure 6 As shown, in this embodiment, the telemetry message transmission control method further includes:
[0142] In response to the switch receiving a telemetry message, applying for storage space in the reserved space, the shared buffer space and the dynamic headroom space of the data packet buffer area of the switch;
[0143] Acquire storage addresses allocated in the reserved space, the shared cache space, and the dynamic margin space;
[0144] The telemetry message is stored in segments according to the storage addresses allocated to the reserved space, the shared cache space, and the dynamic margin space.
[0145] Figure 6 The schematic diagram is a structural diagram of allocating telemetry message storage locations in the data packet buffer area of the switch. When there are multiple telemetry messages in the priority message queue, each telemetry message is segmented and stored in the reserved space, the shared buffer space and the dynamic margin space.
[0146] That is, in response to a new telemetry message being added to the priority message queue, the telemetry message is segmented and stored in the reserved space, the shared cache space, and the dynamic margin space.
[0147] In this way, the priority message queue can be reasonably allocated and stored, so that the shared cache space and the dynamic margin space can be allocated according to the number of telemetry messages in the priority message queue, and real-time matching and adjustment of each telemetry message and its corresponding back pressure frame trigger threshold can be achieved, thereby increasing the adjustment flexibility of the back pressure frame trigger threshold.
[0148] In the above telemetry message transmission control method, the telemetry data information of each switch node in the network can be monitored in real time through in-band network telemetry technology, so as to timely discover network bottlenecks and congestion points. Secondly, the back pressure frame trigger threshold is adjusted according to the size of the telemetry message and the remaining shared cache space to obtain sufficient space to store the telemetry message. The back pressure frame trigger threshold can be automatically adjusted according to the real-time monitored network status to adapt to changes in network load and improve the adaptability and flexibility of the network. It can reduce the administrator's management workload and improve management efficiency. At the same time, it can more accurately evaluate network performance, thereby providing strong support for network optimization and troubleshooting.
[0149] See also Figure 1 In this embodiment, a telemetry message transmission control system is provided, the system comprising a terminal 101, at least one switch 102, a controller 104 and a target server 103.
[0150] The terminal 101 is used to generate telemetry messages. The terminal 101 is connected to the target server through at least one switch 102. The controller 104 is connected to the switch 102. The controller 104 is used to execute the steps of the method described above to control the telemetry message to be transmitted to the target server 103 through at least one switch 102.
[0151] In one embodiment, Figure 7 As shown, a controller 104 is provided, comprising: a message detection module 11, an additional telemetry data information module 12 and a threshold adjustment module 13.
[0152] The message detection module 11 is used to identify in real time whether there is a telemetry message in the switch.
[0153] The additional telemetry data information module 12 is used to obtain the telemetry data information of the current switch in response to the existence of the telemetry message in the switch, the telemetry data information includes the value of the back pressure frame trigger threshold and the remaining shared cache space, and the telemetry data information is added to the telemetry message to form a telemetry supervision message.
[0154] The threshold adjustment module 13 is used to read the telemetry supervision message and determine whether the remaining shared cache space is less than the preset dynamic margin threshold. If not, the telemetry message is transmitted to the next node. If so, the back pressure frame trigger threshold is adjusted according to the size of the telemetry message and the remaining shared cache space to obtain sufficient space to store the telemetry message.
[0155] In this embodiment, the step of obtaining telemetry information of the current switch includes:
[0156] Monitor the network traffic and performance indicators of the switch, obtain the storage value of the data packet buffer area of the current switch, obtain the value of the back pressure frame trigger threshold on the data packet buffer area, read the occupied space of the priority message queue stored in the data packet buffer area, and subtract the occupied space of the priority message queue stored therein from the storage value of the data packet buffer area as the value of the remaining shared buffer space;
[0157] The back pressure frame trigger threshold and the value of the remaining shared cache space are used as telemetry data information of the current switch.
[0158] In this embodiment, the step of transmitting the telemetry message to the next node includes:
[0159] Determining whether the switch where the telemetry message is located is the last hop telemetry switch directly connected to the target server according to whether the next node is the target server;
[0160] If not, sending the telemetry message to the next switch for transmission toward the target server;
[0161] If so, the telemetry message is sent to the target server.
[0162] In this embodiment, the telemetry message transmission control method further includes:
[0163] In response to the fact that the switch where the telemetry message is located is not the last-hop telemetry switch directly connected to the target server, after the telemetry message is transmitted to the next switch, the corresponding telemetry data information is obtained by monitoring the network traffic and performance indicators of the next switch, and the telemetry data information is added to the telemetry message to form a telemetry supervision message.
[0164] In this embodiment, the telemetry message transmission control method further includes:
[0165] In response to the switch where the telemetry message is located being the last hop telemetry switch directly connected to the target server, determining whether the telemetry supervision message on the switch has been read;
[0166] If the telemetry monitoring message on the switch has been read, the telemetry data information in the telemetry monitoring message is deleted to restore the telemetry message, and the telemetry message is sent to the target server;
[0167] If the telemetry supervision message on the switch is not read, the telemetry supervision message is read. When the remaining shared cache space in the telemetry supervision message is less than the preset dynamic margin threshold, the back pressure frame trigger threshold is adjusted according to the size of the telemetry message and the remaining shared cache space to obtain sufficient dynamic margin space to store the telemetry message, the telemetry data information in the telemetry supervision message is deleted and restored to the telemetry message, and the telemetry message is sent to the target server.
[0168] In this embodiment, the step of adjusting the back pressure frame trigger threshold according to the size of the telemetry message and the remaining shared cache space to obtain sufficient dynamic margin space to store the telemetry message includes:
[0169] Comparing the number of bytes of the telemetry message with the number of bytes of the remaining shared cache space;
[0170] When the number of bytes of the telemetry message is less than or equal to the number of bytes of the remaining shared cache space, the preset cache threshold upper limit is used as a new back pressure frame trigger threshold;
[0171] When the number of bytes of the telemetry message is greater than the number of bytes of the remaining shared cache space, the spatial difference between the number of bytes of the telemetry message and the number of bytes of the remaining shared cache space is obtained, and the preset cache gate upper limit minus the spatial difference is used as the new back pressure frame trigger threshold.
[0172] In this embodiment, the step of adjusting the back pressure frame trigger threshold according to the size of the telemetry message and the remaining shared cache space to obtain sufficient dynamic margin space to store the telemetry message includes:
[0173] The calculation formula for setting a new back pressure frame trigger threshold is:
[0174] ;
[0175] in is the number of bytes of remaining shared cache space, profill xoff is the number of bytes of the telemetry message, Xoff THreshold The upper limit of the preset cache gate;
[0176] The back pressure frame trigger threshold is adjusted by using a new back pressure frame trigger threshold calculated using a calculation formula for the new back pressure frame trigger threshold.
[0177] In this embodiment, when the number of bytes of the telemetry message is greater than the number of bytes of the remaining shared cache space, after the step of adjusting the back pressure frame trigger threshold using the calculation formula of the new back pressure frame trigger threshold, the step further includes:
[0178] After adjusting the back pressure frame trigger threshold, waiting for the priority message queue to execute for a first time interval, and detecting whether the number of bytes in the remaining shared cache space is greater than or equal to the number of bytes in the telemetry message;
[0179] When the number of bytes of the remaining shared cache space is greater than or equal to the number of bytes of the telemetry message, the telemetry message is stored in the remaining shared cache space.
[0180] In this embodiment, the telemetry message transmission control method further includes:
[0181] A priority-based flow control method is adopted in the switch to manage the priority message queue;
[0182] Setting a data packet buffer area in each switch to have a preset buffer gate lower limit value and a preset buffer gate upper limit value, wherein the preset buffer gate lower limit value is smaller than the preset buffer gate upper limit value;
[0183] Setting the space within the data packet buffer area that is smaller than the preset buffer gate lower limit value as a reserved space for storing a priority message queue;
[0184] Setting the area within the data packet buffer between the preset buffer gate lower limit value and the preset buffer gate upper limit value as a shared buffer space for buffering priority message queues;
[0185] The space within the data packet buffer area that is larger than the preset cache gate upper limit value is set as the dynamic margin space; the storage value of the data packet buffer area minus the space of the preset cache gate upper limit value is the storage value of the dynamic margin space, and the storage value of the dynamic margin space is set as the preset dynamic margin threshold.
[0186] In this embodiment, the telemetry message transmission control method further includes:
[0187] Determining whether the space occupied by the stored data in the data packet buffer area is lower than the preset buffer gate lower limit;
[0188] When the space occupied by the stored data in the data packet buffer area is lower than the preset buffer gate lower limit value, it will trigger the resumption of the pause frame sent by the opposite end.
[0189] In this embodiment, the telemetry message transmission control method further includes:
[0190] Determining whether the space occupied by the stored data in the data packet buffer area is higher than the preset buffer gate upper limit;
[0191] When the space occupied by the stored data in the data packet buffer area is higher than the preset buffer gate upper limit, a pause frame will be sent to the previous node. After receiving the pause frame, the previous node stops sending priority messages to the next node.
[0192] In this embodiment, the telemetry message transmission control method further includes:
[0193] In response to a new telemetry message being added to the priority message queue, the telemetry message is segmented and stored in the reserved space, the shared cache space, and the dynamic margin space.
[0194] In this embodiment, a telemetry message transmission control system includes a terminal, at least one switch, a controller and a target server;
[0195] The terminal is used to generate a telemetry message, the terminal is connected to a target server via at least one switch, the controller is connected to the switch, and the controller is used to execute the steps of the method described above to control the telemetry message to be transmitted to the target server via at least one switch.
[0196] In the above telemetry message transmission control system, the telemetry data information of each switch node in the network can be monitored in real time through in-band network telemetry technology, so as to timely discover network bottlenecks and congestion points. Secondly, the back pressure frame trigger threshold is adjusted according to the size of the telemetry message and the remaining shared cache space to obtain sufficient space to store the telemetry message. The back pressure frame trigger threshold can be automatically adjusted according to the real-time monitored network status to adapt to changes in network load and improve the adaptability and flexibility of the network. It can reduce the administrator's management workload and improve management efficiency. At the same time, it can more accurately evaluate network performance, thereby providing strong support for network optimization and troubleshooting.
[0197] For the specific definition of the telemetry message transmission control system, please refer to the definition of the telemetry message transmission control method above, which will not be repeated here. Each module in the above telemetry message transmission control system can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0198] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 8As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store telemetry message transmission control data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a telemetry message transmission control method is implemented.
[0199] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0200] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0201] Real-time identification of whether telemetry messages exist in the switch;
[0202] In response to the existence of a telemetry message in the switch, obtaining telemetry data information of the current switch, the telemetry data information including a back pressure frame trigger threshold and a value of a remaining shared cache space, and adding the telemetry data information to the telemetry message to form a telemetry supervision message;
[0203] Read the telemetry supervision message and determine whether the remaining shared cache space is less than a preset dynamic margin threshold. If not, transmit the telemetry message to the next node. If so, adjust the back pressure frame trigger threshold according to the size of the telemetry message and the remaining shared cache space to obtain sufficient space to store the telemetry message.
[0204] For the specific limitations on the steps implemented when the computer program is executed by the processor, please refer to the limitations on the method of controlling the transmission of telemetry messages mentioned above, which will not be repeated here.
[0205] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0206] Real-time identification of whether telemetry messages exist in the switch;
[0207] In response to the existence of a telemetry message in the switch, obtaining telemetry data information of the current switch, the telemetry data information including a back pressure frame trigger threshold and a value of a remaining shared cache space, and adding the telemetry data information to the telemetry message to form a telemetry supervision message;
[0208] Read the telemetry supervision message and determine whether the remaining shared cache space is less than a preset dynamic margin threshold. If not, transmit the telemetry message to the next node. If so, adjust the back pressure frame trigger threshold according to the size of the telemetry message and the remaining shared cache space to obtain sufficient space to store the telemetry message.
[0209] For the specific limitations on the steps implemented when the processor executes the computer program, please refer to the limitations on the method of controlling the transmission of telemetry messages mentioned above, which will not be repeated here.
[0210] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0211] Real-time identification of whether telemetry messages exist in the switch;
[0212] In response to the existence of a telemetry message in the switch, obtaining telemetry data information of the current switch, the telemetry data information including a back pressure frame trigger threshold and a value of a remaining shared cache space, and adding the telemetry data information to the telemetry message to form a telemetry supervision message;
[0213] Read the telemetry supervision message and determine whether the remaining shared cache space is less than a preset dynamic margin threshold. If not, transmit the telemetry message to the next node. If so, adjust the back pressure frame trigger threshold according to the size of the telemetry message and the remaining shared cache space to obtain sufficient space to store the telemetry message.
[0214] For the specific limitations on the steps implemented when the computer program is executed by the processor, please refer to the limitations on the method of controlling the transmission of telemetry messages mentioned above, which will not be repeated here.
[0215] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0216] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0217] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application.
Claims
1. A telemetry message transmission control method, It is characterized in that The telemetry message transmission control method is used to control the transmission of the telemetry message to the target server through at least one switch, and the telemetry message transmission control method includes: Real-time identification of whether telemetry messages exist in the switch; In response to the existence of a telemetry message in the switch, obtaining telemetry data information of the current switch, the telemetry data information including a back pressure frame trigger threshold and a value of a remaining shared cache space, and adding the telemetry data information to the telemetry message to form a telemetry supervision message; Read the telemetry supervision message, determine whether the remaining shared cache space is less than a preset dynamic margin threshold, if not, transmit the telemetry message to the next node, if yes, adjust the back pressure frame trigger threshold according to the size of the telemetry message and the remaining shared cache space to obtain sufficient space to store the telemetry message; The step of adjusting the back pressure frame trigger threshold according to the size of the telemetry message and the remaining shared cache space to obtain sufficient dynamic margin space to store the telemetry message includes: Comparing the number of bytes of the telemetry message with the number of bytes of the remaining shared cache space; When the number of bytes of the telemetry message is less than or equal to the number of bytes of the remaining shared cache space, the preset cache threshold upper limit is used as a new back pressure frame trigger threshold; When the number of bytes of the telemetry message is greater than the number of bytes of the remaining shared cache space, a spatial difference between the number of bytes of the telemetry message and the number of bytes of the remaining shared cache space is obtained, and a preset cache threshold upper limit minus the spatial difference is used as a new back pressure frame trigger threshold; Wherein, the telemetry message transmission control method further includes: A priority-based flow control method is adopted in the switch to manage the priority message queue; Setting a data packet buffer area in each switch to have a preset buffer gate lower limit value and a preset buffer gate upper limit value, wherein the preset buffer gate lower limit value is smaller than the preset buffer gate upper limit value; Setting the space within the data packet buffer area that is smaller than the preset buffer gate lower limit value as a reserved space for storing a priority message queue; Setting the area within the data packet buffer between the preset buffer gate lower limit value and the preset buffer gate upper limit value as a shared buffer space for buffering priority message queues; The space within the data packet buffer area that is larger than the preset cache gate upper limit value is set as the dynamic margin space; the storage value of the data packet buffer area minus the space of the preset cache gate upper limit value is the storage value of the dynamic margin space, and the storage value of the dynamic margin space is set as the preset dynamic margin threshold.
2. The telemetry message transmission control method according to claim 1, It is characterized in that The step of obtaining telemetry information of the current switch includes: Monitor the network traffic and performance indicators of the switch, obtain the storage value of the data packet buffer area of the current switch, obtain the value of the back pressure frame trigger threshold on the data packet buffer area, read the occupied space of the priority message queue stored in the data packet buffer area, and subtract the occupied space of the priority message queue stored therein from the storage value of the data packet buffer area as the value of the remaining shared buffer space; The back pressure frame triggering threshold and the value of the remaining shared buffer space are used as telemetry data information of the current switch.
3. The telemetry message transmission control method according to claim 1, It is characterized in that The step of transmitting the telemetry message to the next node comprises: Determining whether the switch where the telemetry message is located is the last hop telemetry switch directly connected to the target server according to whether the next node is the target server; If not, sending the telemetry message to the next switch for transmission toward the target server; If so, the telemetry message is sent to the target server.
4. The telemetry message transmission control method according to claim 3, It is characterized in that The telemetry message transmission control method further includes: In response to the fact that the switch where the telemetry message is located is not the last-hop telemetry switch directly connected to the target server, after the telemetry message is transmitted to the next switch, the corresponding telemetry data information is obtained by monitoring the network traffic and performance indicators of the next switch, and the telemetry data information of the next switch is added to the telemetry message to form a telemetry supervision message.
5. The telemetry message transmission control method according to claim 3, It is characterized in that The telemetry message transmission control method further includes: In response to the switch where the telemetry message is located being the last hop telemetry switch directly connected to the target server, determining whether the telemetry supervision message on the switch has been read; If the telemetry monitoring message on the switch has been read, the telemetry data information in the telemetry monitoring message is deleted to restore the telemetry message, and the telemetry message is sent to the target server; If the telemetry supervision message on the switch is not read, the telemetry supervision message is read. When the remaining shared cache space in the telemetry supervision message is less than the preset dynamic margin threshold, the back pressure frame trigger threshold is adjusted according to the size of the telemetry message and the remaining shared cache space to obtain sufficient dynamic margin space to store the telemetry message, the telemetry data information in the telemetry supervision message is deleted and restored to the telemetry message, and the telemetry message is sent to the target server.
6. The telemetry message transmission control method according to claim 1, It is characterized in that The step of adjusting the back pressure frame trigger threshold according to the size of the telemetry message and the remaining shared cache space to obtain sufficient dynamic margin space to store the telemetry message includes: The calculation formula for setting a new back pressure frame trigger threshold is: Where a is the number of bytes of remaining shared cache space, profille xoff The number of bytes in the telemetry message, Xoff THreshold The upper limit of the preset cache gate; The back pressure frame triggering threshold is adjusted by using a new back pressure frame triggering threshold calculated by using a calculation formula for the new back pressure frame triggering threshold.
7. The telemetry message transmission control method according to claim 6, It is characterized in that When the number of bytes of the telemetry message is greater than the number of bytes of the remaining shared cache space, after the step of adjusting the back pressure frame trigger threshold using the new back pressure frame trigger threshold calculation formula, the method further includes: After adjusting the back pressure frame trigger threshold, waiting for the priority message queue to execute for a first time interval, and detecting whether the number of bytes in the remaining shared cache space is greater than or equal to the number of bytes in the telemetry message; When the number of bytes of the remaining shared cache space is greater than or equal to the number of bytes of the telemetry message, the telemetry message is stored in the remaining shared cache space.
8. The telemetry message transmission control method according to claim 1, It is characterized in that The telemetry message transmission control method further includes: Determining whether the space occupied by the stored data in the data packet buffer area is lower than the preset buffer gate lower limit; When the space occupied by the stored data in the data packet buffer area is lower than the preset buffer gate lower limit, it will trigger the resumption of the pause frame sent by the opposite end.
9. The telemetry message transmission control method according to claim 1, It is characterized in that The telemetry message transmission control method further includes: Determining whether the space occupied by the stored data in the data packet buffer area is higher than the preset buffer gate upper limit; When the space occupied by the stored data in the data packet buffer area is higher than the preset buffer gate upper limit, a pause frame will be sent to the previous node. After receiving the pause frame, the previous node stops sending priority messages to the next node.
10. The telemetry message transmission control method according to claim 1, It is characterized in that The telemetry message transmission control method further includes: In response to the switch receiving a telemetry message, applying for storage space in the reserved space, the shared buffer space and the dynamic headroom space of the data packet buffer area of the switch; Obtaining storage addresses allocated in the reserved space, the shared cache space, and the dynamic margin space; The telemetry message is stored in segments according to the storage addresses allocated to the reserved space, the shared cache space, and the dynamic margin space.
11. A telemetry message transmission control system, It is characterized in that The system includes a terminal, at least one switch, a controller and a target server; The terminal is used to generate telemetry messages, the terminal is connected to a target server via at least one switch, the controller is connected to the switch, and the controller is used to execute the steps of any method described in claims 1 to 10 to control the telemetry messages to be transmitted to the target server via at least one switch.
12. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 10 are implemented.
13. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the telemetry message transmission control method described in any one of claims 1 to 10 are implemented.
14. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.
