Method, apparatus, controller and medium for detecting network device port traffic
By configuring a secure length threshold and dynamically adjusting the acquisition cycle in the network device port output queue, the problems of high resource consumption and server performance requirements of network telemetry protocols are solved, and efficient port traffic detection is achieved.
Patent Information
- Application Number
- CN202110505633.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-10
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2041-05-10
AI Technical Summary
Network telemetry protocols increase the consumption of network resources and the computational and storage performance requirements of the acquisition and analysis servers when achieving millisecond-level streaming data acquisition.
By configuring the corresponding security length threshold for the port output queue of the network device port, receiving the port output queue length, and dynamically adjusting the port traffic collection cycle based on it, telemetry protocol data is generated and sent to the collection server.
It reduces the network resource consumption of collected data, lowers the requirements for server storage and data analysis, and can accurately capture micro-burst phenomena caused by port congestion.
Smart Images

Figure CN115412468B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, and in particular to a method, apparatus, controller, and storage medium for detecting port traffic of a network device. Background Technology
[0002] Network telemetry protocols employ a publish / subscribe push model, enabling millisecond-level streaming data acquisition and transmission. This allows for better reflection of real-time network status and real-time detection of micro-burst phenomena at ports. However, using network telemetry protocols increases network resource consumption and places higher demands on the computing and storage performance of the acquisition and analysis servers. Summary of the Invention
[0003] In view of this, one technical problem to be solved by the present invention is to provide a method, apparatus, controller and storage medium for detecting port traffic of network devices.
[0004] According to a first aspect of this disclosure, a method for detecting port traffic of a network device is provided, comprising: configuring a security length threshold corresponding to a port output queue of a network device port; receiving an identifier of the network device port and a port output queue length reported by the network device; wherein, if the network device determines that the port output queue length reaches the security length threshold, it reports the identifier and the port output queue length; setting a port traffic collection period for the network device port based on the port output queue length, and issuing a configuration instruction to the network device for configuring the port traffic sampling period; wherein, the network device collects traffic data of the network device port based on the port traffic collection period, generates telemetry protocol data based on the traffic data, and sends it to a collection server.
[0005] Optionally, setting the port traffic collection period of the network device port based on the port output queue length includes: setting multiple queue length ranges and corresponding interval traffic collection periods; determining the queue length range corresponding to the port output queue length, and setting the interval traffic collection period corresponding to this queue length range as the port traffic collection period.
[0006] Optionally, setting multiple queue length ranges and corresponding interval traffic collection periods includes: setting multiple consecutive queue length ranges and corresponding interval traffic collection periods for a preset queue length range of the port output queue length; wherein, relative to the growth direction of the queue length within the preset queue length range, the interval traffic collection periods corresponding to the multiple queue length ranges decrease sequentially.
[0007] Optionally, when configuring the security length threshold, a normal queue length range and a corresponding port standard traffic sampling period are set; wherein, the maximum queue length boundary of the normal queue length range is the security length threshold; a configuration instruction for configuring the security length threshold and the port standard traffic sampling period is issued to the network device; wherein, if the network device determines that the port output queue length has not reached the security length threshold, the network device collects the traffic data of the network device port based on the port standard traffic sampling period, generates telemetry protocol data based on the traffic data, and sends it to the collection server.
[0008] Optionally, a jitter suppression duration is set, and a configuration command for configuring the jitter suppression duration is sent to the network device; wherein, if the network device determines that the port output queue length has reached the safe length threshold, a jitter suppression timer is activated based on the jitter suppression duration; when the jitter suppression timer reaches the jitter suppression duration, if the network device determines that the port output queue length has reached the safe length threshold, the identifier and the port output queue length are reported.
[0009] Optionally, if the port traffic sampling period is less than or equal to a preset sampling period threshold, the traffic data collected in multiple port traffic sampling periods will be cached, and the cached traffic data will be encapsulated in a telemetry message and reported to the acquisition server.
[0010] According to a second aspect of this disclosure, a network device port traffic detection apparatus is provided, comprising: a port information configuration module for configuring a security length threshold corresponding to a port output queue of a network device port; a port information receiving module for receiving an identifier of the network device port and a port output queue length reported by the network device; wherein, if the network device determines that the port output queue length reaches the security length threshold, it reports the identifier and the port output queue length; and a sampling period configuration module for setting a port traffic collection period of the network device port based on the port output queue length, and issuing a configuration instruction to the network device for configuring the port traffic sampling period; wherein, the network device collects traffic data of the network device port based on the port traffic collection period, generates telemetry protocol data based on the traffic data, and sends it to a collection server.
[0011] Optionally, the sampling period configuration module is used to set multiple queue length ranges and corresponding interval traffic acquisition periods; determine the queue length range corresponding to the port output queue length, and set the interval traffic acquisition period corresponding to this queue length range as the port traffic acquisition period.
[0012] Optionally, the sampling period configuration module is specifically used to set multiple consecutive queue length intervals and corresponding interval traffic acquisition periods for a preset queue length range of the port output queue length; wherein, relative to the growth direction of the queue length within the preset queue length range, the interval traffic acquisition periods corresponding to the multiple queue length intervals decrease sequentially.
[0013] Optionally, the port information configuration module is further configured to set a normal queue length range and a corresponding port standard traffic sampling period when configuring the security length threshold; wherein, the maximum queue length boundary of the normal queue length range is the security length threshold; and to issue a configuration instruction to the network device for configuring the security length threshold and the port standard traffic sampling period; wherein, if the network device determines that the port output queue length has not reached the security length threshold, the network device collects traffic data of the network device port based on the port standard traffic sampling period, generates telemetry protocol data based on the traffic data, and sends it to the collection server.
[0014] Optionally, the jitter suppression duration configuration module is used to set the jitter suppression duration and send a configuration command to the network device to configure the jitter suppression duration; wherein, if the network device determines that the port output queue length has reached the safe length threshold, it enables a jitter suppression timer based on the jitter suppression duration; when the jitter suppression timer reaches the jitter suppression duration, if the network device determines that the port output queue length has reached the safe length threshold, it reports the identifier and the port output queue length.
[0015] Optionally, if the port traffic sampling period is less than or equal to a preset sampling period threshold, the traffic data collected in multiple port traffic sampling periods will be cached, and the cached traffic data will be encapsulated in a telemetry message and reported to the acquisition server.
[0016] According to a third aspect of this disclosure, a network device port traffic detection apparatus is provided, comprising: a memory; and a processor coupled to the memory, the processor being configured to perform the method described above based on instructions stored in the memory.
[0017] According to a fourth aspect of this disclosure, a controller is provided, comprising: a network device port traffic detection device as described above.
[0018] According to a fifth aspect of this disclosure, a computer-readable storage medium is provided that stores computer instructions which, when executed by a processor, perform the method described above.
[0019] The network device port traffic detection method, apparatus, controller, and storage medium disclosed herein can dynamically adjust the sampling period of port traffic according to the port output queue length of each port of the network device, which can significantly reduce the network resource occupation of collected data, reduce the requirements for server storage and data analysis when collecting large amounts of data, and accurately capture micro-burst phenomena caused by port congestion. Attached Figure Description
[0020] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1A This is a diagram illustrating minute-level traffic statistics queries using the SNMP GET method. Figure 1B This is a schematic diagram illustrating sub-second traffic statistics reporting in the telemetry method;
[0022] Figure 2 This is a flowchart illustrating an embodiment of the network device port traffic detection method according to the present disclosure;
[0023] Figure 3 A diagram showing the port output queues corresponding to each port of a network device;
[0024] Figure 4 This is a schematic diagram of a traffic curve for adaptively adjusting the port traffic collection period according to an embodiment of the network device port traffic detection method of this disclosure;
[0025] Figure 5 This is a schematic diagram of a module of an embodiment of a network device port traffic detection device according to the present disclosure;
[0026] Figure 6 This is a schematic diagram of another embodiment of a network device port traffic detection apparatus according to the present disclosure. Detailed Implementation
[0027] The present disclosure will now be described more fully with reference to the accompanying drawings, which illustrate exemplary embodiments of the present disclosure. The technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present disclosure, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present disclosure without creative effort are within the scope of protection of the present disclosure.
[0028] Collecting device port traffic statistics using the Simple Network Management Protocol (SNMP) polling method can only achieve traffic collection at the minute level, and cannot achieve traffic collection at the second or even millisecond level. Figure 1A This is a diagram illustrating minute-level traffic statistics queries in SNMP GET mode. For example, the traffic curve with a five-minute sampling period in SNMP GET mode reflects the average traffic for each five-minute period. It cannot show the real traffic situation at a smaller time granularity, such as the instantaneous increase in latency caused by micro-burst traffic, or even packet loss caused by queue overflow.
[0029] The main differences between the network telemetry (also known as telemetry) protocol and the SNMP protocol are twofold: first, the different methods of data acquisition. The SNMP protocol uses pull mode to collect device data, while the telemetry protocol actively sends device data information to the collector through push mode; second, the different device data formats. Figure 1B This is a schematic diagram of sub-second traffic statistics reporting in telemetry mode.
[0030] Network telemetry protocols employ a publish / subscribe push model, enabling millisecond-level streaming data acquisition and transmission, thus better reflecting real-time network status and detecting micro-burst phenomena at ports. However, adopting network telemetry protocols results in higher data acquisition frequencies, consuming more device processing resources, increasing network resource usage, and placing higher demands on the computing and storage performance of the acquisition and analysis servers.
[0031] Figure 2 This is a flowchart illustrating an embodiment of the network device port traffic detection method according to the present disclosure, as follows: Figure 2 As shown:
[0032] Step 201: Configure the security length threshold corresponding to the port output queue of the network device port.
[0033] In one embodiment, the network device can be a router, switch, etc. The network device has multiple ports, and each port has a port output queue. The network device first buffers the data that needs to be sent from one port in the port output queue corresponding to that port. Then, the network device sends the data buffered in the port output queue to the destination address through this port.
[0034] The length of the port output queue can be set, for example, to 200, 300, etc. The central controller configures the security length threshold for all ports of the network device by sending configuration commands to the network device to configure the security length threshold.
[0035] Step 202: Receive the network device port identifier and port output queue length reported by the network device; wherein, if the network device determines that the port output queue length has reached the safe length threshold, it reports the identifier and port output queue length, where "reached" means greater than or equal to.
[0036] Step 203: Set the port traffic sampling period for the network device port based on the port output queue length, and send a configuration command to the network device to configure the port traffic sampling period. Various existing methods can be used to generate and send the configuration command, and the network device can use these methods to configure the port traffic sampling period.
[0037] Step 204: The network device collects network device port traffic data periodically, generates telemetry protocol data based on the traffic data, and sends it to the collection server. Various existing methods can be used to generate and send telemetry protocol data based on the traffic data.
[0038] The network device port traffic detection method disclosed herein can dynamically adjust the sampling period of port traffic according to the queue length of each port of the network device, which can significantly reduce the network resource occupation of collected data and reduce the requirements for server storage and data analysis.
[0039] In one embodiment, a safe length threshold is set for the port output queue length of all ports of the network device; when it is detected that the port output queue length of each port does not exceed the preset safe length threshold, traffic data is collected according to the normal traffic sampling period (port standard traffic sampling period) and sent to the collection server.
[0040] When the port output queue length of any port exceeds the safe length threshold, the network device immediately sends the port queue length information to the central controller. The central controller calculates the port traffic sampling period for that port according to an adaptive algorithm and promptly issues a configuration command to the network device to change the configuration parameters of the port traffic sampling period.
[0041] In one embodiment, the port traffic collection period for a network device port can be set using various methods. For example, multiple queue length ranges and corresponding interval traffic collection periods can be set, a queue length range corresponding to the port output queue length can be determined, and the interval traffic collection period corresponding to this queue length range can be set as the port traffic collection period.
[0042] There are several methods for setting multiple queue length ranges and corresponding interval traffic collection periods. For example, for a preset queue length range for port output queue length, multiple consecutive queue length ranges and corresponding interval traffic collection periods can be set; relative to the increasing direction of queue length within the preset queue length range, the interval traffic collection periods corresponding to the multiple queue length ranges decrease sequentially.
[0043] When configuring the secure length threshold, a normal queue length range and the corresponding port standard traffic sampling period are set; the maximum queue length boundary of the normal queue length range is the secure length threshold. Configuration commands for configuring the secure length threshold and the port standard traffic sampling period are issued to the network device. If the network device determines that the port output queue length has not reached the secure length threshold, the network device collects traffic data from the network device port based on the port standard traffic sampling period, generates telemetry protocol data based on the traffic data, and sends it to the collection server.
[0044] When a network device detects that the port output queue length of a certain port does not exceed the safe length threshold, it samples the port traffic using the standard port traffic sampling period and sends it to the collection server. When it detects that the port output queue length of a certain port exceeds the safe length threshold, it determines the port traffic collection period based on the current port output queue length, and the port traffic collection period changes with the port output queue length.
[0045] In one embodiment, four traffic sampling period parameters are set according to the congestion severity (one standard port traffic sampling period and three interval traffic sampling periods): 5 minutes, 500 milliseconds, 50 milliseconds, and 10 milliseconds. The queue length range corresponding to each traffic sampling period is as follows:
[0046]
[0047] The preset queue length range is [Q0 - maximum queue length]. Multiple queue length intervals are set within this preset range: [Q0, Q1], [Q1, Q2], and [Q2, maximum queue length]. The normal queue length range is [0, Q0]. When the port output queue length Q of each port of the network device... tWhen the safe length threshold Q0 is not exceeded, a normal standard sampling period (port standard traffic sampling period) of 5 minutes is selected. When the network device detects the port output queue length Q of a certain port... t When the flow rate is between Q0 and Q1, it is considered a period of slight congestion, and the port traffic collection period is set to 500 milliseconds; when the port output queue length Q of a certain port... t When the traffic flow is between Q1 and Q2, it is considered a severely congested area, and the port traffic collection period is set to 50 milliseconds; when the port output queue length Q of a certain port... t If the congestion exceeds Q2, it is judged as severe congestion and the queue is about to overflow. The port traffic collection period is set to 10 milliseconds.
[0048] In one embodiment, latency information for all ports of the network device is obtained, and a safe length threshold is determined based on the latency information. The port output queues corresponding to each port of the network device (switch or router, etc.) are as follows: Figure 3 As shown, Figure 3 The output queue length of port 1 is relatively small, resulting in insufficient port bandwidth utilization. Over long-term operation, network devices have observed that port 2 has a more reasonable bandwidth utilization rate, and its queue latency meets service requirements. Therefore, the output queue length of port 2 is selected as the safe length threshold Q0.
[0049] When the output queue length of the port is Q t When the output queue length Q does not exceed Q0, the port traffic is collected and reported according to the normal standard sampling frequency (e.g., the standard port traffic sampling period is 5 minutes). t When the safe length threshold Q0 is exceeded, the port traffic acquisition period of the port is determined according to the preset sampling period algorithm, which can capture the micro-burst phenomenon of the port.
[0050] When the port output queue length reaches a certain value (safe length threshold), the probability of congestion on that port is very high. Even a slight increase in the port output queue length will cause the sampling frequency to increase rapidly and the sampling period to decrease rapidly. Reducing the sampling period (to the millisecond level) can capture micro-burst phenomena on the port. The port output queue length of each port is detected in real time by the network device hardware, and the current sampling frequency for each port is determined based on an exponential function of the sampling period. Using the adaptive port traffic sampling period method disclosed in this paper, the port traffic statistics curve of the network management system is as follows: Figure 4 As shown.
[0051] In one embodiment, a jitter suppression duration is set, and a configuration command for configuring the jitter suppression duration is sent to the network device. If the network device determines that the port output queue length has reached a safe length threshold, it enables a jitter suppression timer based on the jitter suppression duration; when the jitter suppression timer reaches the jitter suppression duration, if the network device determines that the port output queue length has reached the safe length threshold, it reports the identifier and the port output queue length.
[0052] To avoid the impact of instantaneous fluctuations in the port output queue length, when the port output queue length reaches the preset safe length threshold, a jitter suppression timer is activated. A reasonable jitter suppression duration is set (e.g., 3-5ms). When the jitter suppression timer reaches the set time, if the port output queue length still exceeds the preset safe length threshold, the queue length information is immediately reported to the central controller.
[0053] If the port traffic sampling period is less than or equal to the preset sampling period threshold, the traffic data collected in multiple port traffic sampling periods will be cached, and the cached multiple (e.g., 3, 5, etc.) traffic data will be encapsulated in a single telemetry message and reported to the acquisition server. For example, if the sampling period threshold is 100 milliseconds, when the port traffic sampling period is less than or equal to 100 milliseconds, sending too many single sampling data messages will consume too many resources. Therefore, multiple sampling data will be saved first, and then batch encapsulated in a single telemetry message and sent to the acquisition server.
[0054] In one embodiment, the present disclosure provides a network device port traffic detection device 50, including: a port information configuration module 51, a port information receiving module 52, a sampling period configuration module 53, and a suppression duration configuration module 54.
[0055] The port information configuration module 51 configures the security length threshold corresponding to the port output queue of the network device port. The port information receiving module 52 receives the identifier of the network device port and the port output queue length reported by the network device; wherein, if the network device determines that the port output queue length has reached the security length threshold, it reports the identifier and the port output queue length.
[0056] The sampling period configuration module 53 sets the port traffic collection period of the network device port based on the port output queue length, and sends a configuration command to the network device to configure the port traffic sampling period; wherein, the network device collects the traffic data of the network device port based on the port traffic collection period, generates telemetry protocol data based on the traffic data and sends it to the collection server.
[0057] In one embodiment, the sampling period configuration module 53 sets multiple queue length ranges and corresponding interval traffic acquisition periods, determines the queue length range corresponding to the port output queue length, and sets the interval traffic acquisition period corresponding to this queue length range as the port traffic acquisition period.
[0058] The sampling period configuration module 53 sets multiple consecutive queue length intervals and corresponding interval traffic acquisition periods for the preset queue length range of the port output queue length; wherein, relative to the growth direction of the queue length within the preset queue length range, the interval traffic acquisition period corresponding to the multiple queue length intervals decreases sequentially.
[0059] In one embodiment, the port information configuration module 51 obtains the latency information of all ports of the network device and determines the safe length threshold based on the latency information. When configuring the safe length threshold, the port information configuration module 51 sets the normal queue length range and the corresponding port standard traffic sampling period; wherein, the maximum queue length boundary of the normal queue length range is the safe length threshold.
[0060] The port information configuration module 51 sends configuration instructions to the network device to configure the security length threshold and the standard port traffic sampling period. The jitter suppression duration configuration module 54 sets the jitter suppression duration and sends configuration instructions to the network device to configure the jitter suppression duration.
[0061] Figure 6 This is a schematic diagram of a module of another embodiment of a gateway device according to the present disclosure. Figure 6 As shown, the device may include a memory 61, a processor 62, a communication interface 63, and a bus 64. The memory 61 is used to store instructions, and the processor 62 is coupled to the memory 61. The processor 62 is configured to execute the network device port traffic detection method described above based on the instructions stored in the memory 61.
[0062] The memory 61 can be a high-speed RAM, non-volatile memory, or a memory array. The memory 61 may also be divided into blocks, and these blocks can be combined into virtual volumes according to certain rules. The processor 62 can be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the network device port traffic detection method of this disclosure.
[0063] In one embodiment, this disclosure provides a controller including a network device port traffic detection device as described in any of the embodiments above. The controller may be a centralized controller, etc.
[0064] In one embodiment, this disclosure provides a computer-readable storage medium storing computer instructions that, when executed by a processor, implement the network device port traffic detection method as described in any of the preceding embodiments.
[0065] The network device port traffic detection method, apparatus, controller, and storage medium in the above embodiments configure a safe length threshold corresponding to the port output queue. The network device determines that the port output queue length has reached the safe length threshold and reports the identifier and port output queue length. The port traffic collection period is set based on the port output queue length and sent to the network device. The network device collects traffic data based on the port traffic, generates telemetry protocol data, and sends it to the collection server. It can dynamically adjust the port traffic sampling period according to the port output queue length of each port of the network device, which can significantly reduce the network resource occupation of the collected data, reduce the requirements for server storage and data analysis when collecting a large amount of data, and accurately capture micro-burst phenomena caused by port congestion.
[0066] The methods and systems of this disclosure may be implemented in many ways. For example, they may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order of steps for the methods is for illustrative purposes only, and the steps of the methods of this disclosure are not limited to the order specifically described above unless otherwise specifically stated. Furthermore, in some embodiments, this disclosure may also be implemented as a program recorded on a recording medium, the program including machine-readable instructions for implementing the methods according to this disclosure. Thus, this disclosure also covers recording media storing programs for performing the methods according to this disclosure.
[0067] The description in this disclosure is provided for illustrative and descriptive purposes only and is not intended to be exhaustive or to limit the disclosure to its forms. Many modifications and variations will be apparent to those skilled in the art. The embodiments were chosen and described in order to better illustrate the principles and practical application of this disclosure and to enable those skilled in the art to understand this disclosure and to design various embodiments with various modifications suitable for a particular purpose.
Claims
1. A method for detecting port traffic of a network device, comprising: Configure the security length threshold corresponding to the port output queue of the network device port; Receive the identifier of the network device port and the port output queue length reported by the network device; Based on the port output queue length, the port traffic collection period of the network device port is set, and a configuration instruction for configuring the port traffic sampling period is sent to the network device; The step of setting the port traffic collection period of the network device port based on the port output queue length includes: setting multiple queue length ranges and corresponding interval traffic collection periods; determining the queue length range corresponding to the port output queue length, and setting the interval traffic collection period corresponding to this queue length range as the port traffic collection period; If the network device determines that the port output queue length has reached the safe length threshold, it reports the identifier and the port output queue length; the network device collects the traffic data of the network device port based on the port traffic collection period, generates network telemetry protocol data based on the traffic data, and sends it to the collection server.
2. The method as described in claim 1, wherein setting multiple queue length ranges and corresponding interval traffic collection periods includes: For the preset queue length range of the port output queue length, multiple consecutive queue length interval ranges and corresponding interval traffic collection periods are set. Among them, relative to the growth direction of the queue length within the preset queue length range, the interval traffic collection period corresponding to the multiple queue length interval ranges decreases sequentially.
3. The method of claim 1, further comprising: When configuring the security length threshold, a normal queue length range and a corresponding port standard traffic sampling period are set; wherein, the maximum queue length boundary of the normal queue length range is the security length threshold; A configuration command is issued to the network device to configure the security length threshold and the standard traffic sampling period of the port; If the network device determines that the length of the port output queue has not reached the safe length threshold, the network device collects the traffic data of the network device port based on the standard traffic sampling period of the port, generates telemetry protocol data based on the traffic data, and sends it to the collection server.
4. The method of claim 1, further comprising: Set the jitter suppression duration and send a configuration command to the network device to configure the jitter suppression duration; Specifically, if the network device determines that the port output queue length has reached the safe length threshold, it enables a jitter suppression timer based on the jitter suppression duration; when the jitter suppression timer reaches the jitter suppression duration, if the network device determines that the port output queue length has reached the safe length threshold, it reports the identifier and the port output queue length.
5. The method of claim 1, further comprising: If the port traffic sampling period is less than or equal to the preset sampling period threshold, the traffic data collected in multiple port traffic sampling periods will be cached, and the cached traffic data will be encapsulated in a telemetry message and reported to the collection server.
6. A device for detecting port traffic of a network device, comprising: The port information configuration module is used to configure the security length threshold corresponding to the port output queue of the network device port; The port information receiving module is used to receive the identifier of the network device port and the port output queue length reported by the network device. The sampling period configuration module is used to set the port traffic collection period of the network device port based on the port output queue length, and to send a configuration instruction to the network device to configure the port traffic sampling period; Specifically, the sampling period configuration module is used to set multiple queue length ranges and corresponding interval traffic acquisition periods; determine the queue length range corresponding to the port output queue length; and set the interval traffic acquisition period corresponding to this queue length range as the port traffic acquisition period. If the network device determines that the port output queue length has reached the safe length threshold, the network device reports the identifier and the port output queue length; the network device collects the traffic data of the network device port based on the port traffic collection period, generates telemetry protocol data based on the traffic data, and sends it to the collection server.
7. The apparatus of claim 6, wherein, The sampling period configuration module is specifically used to set multiple consecutive queue length intervals and corresponding interval traffic acquisition periods for a preset queue length range of the port output queue length; wherein, relative to the growth direction of the queue length within the preset queue length range, the interval traffic acquisition periods corresponding to the multiple queue length intervals decrease sequentially.
8. The apparatus of claim 6, wherein, The port information configuration module is further configured to set a normal queue length range and a corresponding port standard traffic sampling period when configuring the security length threshold; wherein, the maximum queue length boundary of the normal queue length range is the security length threshold; and to issue a configuration instruction to the network device for configuring the security length threshold and the port standard traffic sampling period; wherein, if the network device determines that the port output queue length has not reached the security length threshold, the network device collects traffic data of the network device port based on the port standard traffic sampling period, generates telemetry protocol data based on the traffic data, and sends it to the collection server.
9. The apparatus of claim 6, further comprising: The jitter suppression duration configuration module is used to set the jitter suppression duration and send a configuration command to the network device to configure the jitter suppression duration; wherein, if the network device determines that the port output queue length has reached the safe length threshold, it enables a jitter suppression timer based on the jitter suppression duration; when the jitter suppression timer reaches the jitter suppression duration, if the network device determines that the port output queue length has reached the safe length threshold, it reports the identifier and the port output queue length.
10. The apparatus of claim 6, wherein, If the port traffic sampling period is less than or equal to the preset sampling period threshold, the traffic data collected in multiple port traffic sampling periods will be cached, and the cached traffic data will be encapsulated in a telemetry message and reported to the collection server.
11. A device for detecting port traffic of a network device, comprising: Memory; And a processor coupled to the memory, the processor being configured to perform the method as described in any one of claims 1 to 5 based on instructions stored in the memory.
12. A controller, comprising: The network device port traffic detection device as described in any one of claims 6 to 10.
13. A computer-readable storage medium storing computer instructions that are executed by a processor according to any one of claims 1 to 5.
Citation Information
Patent Citations
Method and device for configuring programmable queue of software defined network
CN106254271A
DNS (Domain Name System) tunnel Trojan detection method based on communication behavior analysis
CN107733851A
