A networking method and network device
By introducing burst estimator logic into network equipment and using event occurrence rates and weight parameters within a time period to calculate burstiness metrics, the problem of burstiness assessment in event-driven telemetry information is solved and the monitoring efficiency of network equipment is improved. and data processing capabilities.
Patent Information
- Application Number
- CN202110181271.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-02-16
- Filing Date
- 2021-02-09
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-02-09
AI Technical Summary
When existing technology collects telemetry information, especially event-driven telemetry information, it is difficult to effectively assess the suddenness of events, and due to bandwidth limitations and storage requirements, event timestamps are lost and data is lost, affecting the visibility of network devices. and debugability.
A network device is designed that contains burst estimator logic. By tracking the event occurrence rate in different time periods, using the parameters T and alpha to weight the timestamp, the burstiness measure of the event is calculated to avoid storing all event timestamps. Save storage space.
It achieves accurate assessment of the suddenness of events without storing all event timestamps, improves the monitoring capabilities and data transmission efficiency of network equipment, and reduces storage and computing loads.
Smart Images

Figure CN113271233B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to network equipment and in particular but not exclusively to telemetry measurement. Background Art
[0002] Telemetry in networking provides the ability to monitor and retrieve information from a network (e.g., from one or more given network devices). The telemetry information that can be retrieved from a network device such as a switch, router, or network interface card (NIC) may vary and depend on, for example, the type and vendor of the network device. There are several categories of telemetry information, such as state-based and event-driven telemetry information.
[0003] Collecting telemetry information is described in several publications. For example, U.S. Patent 6,751,663 to Farrell et al. describes a system for collecting and aggregating data from network entities for data consuming applications. The system includes a data collector layer to receive network flow information from network entities and generate records based on the information. The system also includes a flow aggregation layer fed from the data collection layer and coupled to a storage device. The flow aggregation layer receives the records generated by the data collector layer and aggregates the received records. The system may also include a device interface layer coupled to the data collector layer and the distribution layer to obtain selected information stored in the storage device and distribute the selected information to the requesting data consuming application.
[0004] As another example, U.S. Patent 10,181,987 to Grandham et al. describes systems, methods, and computer-readable media for collector high availability. In some embodiments, a system receives a first data report generated by a capture agent on a host system deployed in a network from a first collector device. The system may also receive a second data report generated by a capture agent deployed on the host system from a second collector device. The first data report and the second data report may include business data captured by the capture agent at the host system during a time period. The system may determine that both the first data report and the second data report are associated with the capture agent, and identify duplicate data contained in the first data report and the second data report. The system may then deduplicate the first data report and the second data report to generate a deduplicated data report. Summary of the invention
[0005] According to an embodiment of the present disclosure, a network device is provided, comprising at least one network interface port, which is used as at least one ingress port for receiving network packets from a network, and is used as at least one egress port for forwarding network packets to the network; a memory; a control circuit, which is configured to monitor corresponding packet-related events in the network device, and the corresponding events have corresponding event timestamps; a burst estimator logic, which is configured to: track corresponding occurrence rates of events in the events over corresponding time periods in response to corresponding event timestamps in the event timestamps; follow a maximum occurrence rate in the occurrence rates; store the maximum occurrence rate in the memory; and find a measure of the burstiness of the event in response to the followed maximum occurrence rate.
[0006] Further in accordance with an embodiment of the present disclosure, the measure of the suddenness of the event is equal to the maximum occurrence rate observed.
[0007] Still further in accordance with an embodiment of the present disclosure, the burst estimator logic is configured to track a current occurrence rate of events in the event over a current time period in response to a previous occurrence rate of events in the event over a previous time period, and a time difference between a timestamp of a current event in the event and a timestamp of a previous event in the event.
[0008] Additionally, in accordance with an embodiment of the present disclosure, the burst estimator logic is configured to store in the memory a current rate and a timestamp of a current event in the events.
[0009] Furthermore, according to an embodiment of the present disclosure, the burst estimator logic is configured to delete timestamps of previous ones of the events from the memory.
[0010] Further in accordance with an embodiment of the present disclosure, the burst estimator logic is configured to track a current occurrence rate of events in the event over a current time period in response to a previous occurrence rate of events in the event over a previous time period plus a time difference between a timestamp of a current event in the event and a timestamp of a previous event in the event.
[0011] Still further in accordance with an embodiment of the present disclosure, the burst estimator logic is configured to reduce the current occurrence rate by a given factor.
[0012] Additionally, in accordance with an embodiment of the present disclosure, the burst estimator logic is configured to store in the memory a current rate and a timestamp of a current event in the events.
[0013] Furthermore, according to an embodiment of the present disclosure, the burst estimator logic is configured to delete timestamps of previous ones of the events from the memory.
[0014] Further in accordance with an embodiment of the present disclosure, the burst estimator logic is configured to overwrite in the memory a timestamp of a previous one of the events with a timestamp of a current one of the events.
[0015] According to another embodiment of the present disclosure, a networking method is also provided, including: receiving network packets from a network; forwarding the network packets to the network; monitoring corresponding packet-related events in a network device, the corresponding events having corresponding event timestamps; tracking corresponding occurrence rates of events in the events over corresponding time periods in response to corresponding event timestamps in the event timestamps; following a maximum occurrence rate in the occurrence rates; storing the maximum occurrence rate; and finding a measurement of the burstiness of the event in response to the followed maximum occurrence rate.
[0016] Still further in accordance with an embodiment of the present disclosure, the measure of the suddenness of the event is equal to the maximum occurrence rate observed.
[0017] In addition, according to an embodiment of the present disclosure, the tracking includes tracking the current occurrence rate of events in the event over a current time period in response to a previous occurrence rate of events in the event over a previous time period, and a time difference between a timestamp of a current event in the event and a timestamp of a previous event in the event.
[0018] Furthermore, according to an embodiment of the present disclosure, the method includes storing in the memory a current rate and a timestamp of a current event in the events.
[0019] According further to an embodiment of the present disclosure, the method includes deleting a timestamp of a previous one of the events from the memory.
[0020] Still further according to an embodiment of the present disclosure, the tracking includes tracking the current occurrence rate of events in the event over a current time period in response to the previous occurrence rate of events in the event over a previous time period plus the time difference between the timestamp of the current event in the event and the timestamp of the previous event in the event.
[0021] Additionally, according to an embodiment of the present disclosure, the method includes reducing the current occurrence rate by a given factor.
[0022] Furthermore, according to an embodiment of the present disclosure, the method includes storing in the memory a current rate and a timestamp of a current event in the events.
[0023] According further to an embodiment of the present disclosure, the method includes deleting a timestamp of a previous one of the events from the memory.
[0024] Still further in accordance with an embodiment of the present disclosure, the method includes overwriting in the memory a timestamp of a previous one of the events with a timestamp of a current one of the events.
[0025] According to another embodiment of the present disclosure, a software product is also provided, including a non-transitory computer-readable medium storing program instructions therein, wherein the instructions, when read by a central processing unit (CPU), enable the CPU to: monitor corresponding packet-related events in a network device, wherein the corresponding events have corresponding event timestamps; track corresponding occurrence rates of events in the events over corresponding time periods in response to corresponding event timestamps in the event timestamps; follow a maximum occurrence rate in the occurrence rates; store the maximum occurrence rate; and find a measure of the burstiness of the event in response to the followed maximum occurrence rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The present invention will be understood through the following detailed description in conjunction with the accompanying drawings, in which:
[0027] Figure 1A is a block diagram of a communication system constructed and operative in accordance with an embodiment of the present invention;
[0028] Figure 1B is a block diagram of an alternative communication system constructed and operative in accordance with an embodiment of the present invention;
[0029] FIG. 2A to FIG. 2C It is shown Figure 1A and Figure 1B Schematic diagram of the event burstiness of events in a system;
[0030] Figure 3 is included in Figure 1A and Figure 1B A flowchart of the steps in a method of estimating burstiness used in a system; and
[0031] FIG. 4A to FIG. 4B is included in Figure 3 An alternative flow chart of more detailed steps in the method. DETAILED DESCRIPTION
[0032] Overview
[0033] One type of telemetry is based on counters that count various events, such as the number of packets received on a port or the number of route accesses performed. Another type of telemetry is based on simple gauges that present the instantaneous status of various resources in a network device, such as the current buffer fill level or the current bandwidth (BW) transmitted on a given port.
[0034] Another type of telemetry information is event driven, where an indication is sent to a collector when an event occurs in a network device (e.g., a buffer exceeds a certain threshold, a packet is dropped, or latency exceeds a given threshold). The collector may be connected to the network device locally or via a network. The event may be reported using data including at least a portion of the packets involved in the event and additional metadata describing various aspects of the event (e.g., event type and timestamp).
[0035] When the volume of events to be reported to a collector becomes larger than the available bandwidth for forwarding the events to the collector, some event data may be dropped in the network device. For example, some event data that exceeds the bandwidth of the port on which the event data is sent to the collector may be dropped according to a tail drop mechanism so that when a queue storing event data is filled to its maximum capacity, newly arriving event data is dropped until the queue has enough room to accept incoming traffic. Some event data may be filtered based on the use of samplers and / or policers. Dropping and filtering of event data may result in low visibility of events occurring on the network and also lead to poor debuggability of the network.
[0036] One solution to the above problem is to aggregate event data so that data representing many events is compressed and sent to a collector in compressed form. U.S. Patent Application S / N 16 / 515,060 by Kfir et al., filed on July 18, 2019, describes a system for aggregating event data and is incorporated herein by reference. One such aggregation process is counting traffic associated with a particular flow. For example, counting traffic for a particular flow that is facing congestion, etc. Although counting traffic or events may aggregate data and provide useful information for certain applications, counting is an aggregation process in which data is not only compressed, but also lost. In particular, the timing nature of events may be lost. For example, the individual timestamps when each corresponding event occurred cannot be counted and therefore may be lost.
[0037] An example of an event timing property is the burstiness of an event stream. Burstiness can be defined as an intermittent increase and decrease in activity or a measure of the frequency with which an event occurs. For example, are events evenly spaced over time (yielding a lesser degree of burstiness) or do events occur in one or more groups of bursts (yielding a higher degree of burstiness). A possible burst score algorithm for providing a burstiness measure (or burst score) can perform a mathematical analysis on a time event function provided by the duration of the event. An example can include examining the correlation between the time event function and a step function, where the step function width is equal to the number of events reported multiplied by the smallest possible gap between two events. For example, assuming that a total of 20 events are reported and the smallest possible gap between two events (not reported) is 1 microsecond, the width is equal to 1 times 20, which is equal to 20. Such a mathematical analysis is problematic because the input to the algorithm includes the timestamps of many, if not all, of the events. Due to bandwidth limitations, it is generally impractical to send all timing data to a collector to calculate a burst score using such an algorithm. It is also impractical to store all timing data in a network device until the burst score is calculated by the network device using such an algorithm due to the large amount of data that needs to be stored. Therefore, assessing the burstiness of event streams becomes challenging.
[0038] Embodiments of the present invention solve the above-mentioned problems by providing a network device that finds a measure of burstiness (burst score) without having to store all event timestamps. The network device includes a burst estimator logic that tracks event occurrence rates in different time periods based on the timestamps of the events. Different time periods may be overlapping or non-overlapping. The time periods may not be clearly identified by the burst estimator logic, but the burst estimator logic can track the corresponding occurrence rates over the corresponding time periods based on the configuration of the burst estimator logic, for example, using the parameters T and alpha described below, by applying more weight to more recent timestamps and less weight to earlier timestamps. The rate can be tracked using a rate estimator run by the burst estimator logic. In some embodiments, the rate estimator may include a rate estimator logic.
[0039] The burst estimator logic tracks the current occurrence rate in response to the previous occurrence rate (tracked by the burst estimator logic) and the most recent event timestamp. In this way, the current rate can be tracked without using older event timestamps, which can be deleted to save space in the memory of the network device. The burst estimator logic follows the maximum occurrence rate. The maximum rate indicates a measure of event burstiness. Therefore, a burstiness measure can be found without having to store all event timestamps over the entire reporting period that follows the burstiness measure.
[0040] Measures of burstiness may be found for a particular event type or multiple event types associated with one or more network flows. A "flow" is typically identified by the values of a particular set of header fields, such as source and destination addresses, source and destination ports, and the IP and TCP / UDP 5-tuple of protocol, or any suitable flow information, such as layer 2, 3, 4, or tunnel data, that is consistent across all packets in the flow.
[0041] In some embodiments, the burst estimator logic tracks the current occurrence rate in response to the previous occurrence rate and the difference between the current event timestamp and the previous event timestamp. The burst estimator logic can track the current occurrence rate in response to the previous occurrence rate plus the difference between the current event timestamp and the previous event timestamp. The current occurrence rate is saved as the state of the burst estimator logic. The state can be periodically reduced according to a given factor. In addition to saving the state, the burst estimator logic also saves the current event timestamp and the maximum state. In these embodiments, older event timestamps do not need to be saved. Typically, the previous event timestamp will be deleted from the memory or overwritten by the current event timestamp.
[0042] In some embodiments, the burst estimator logic tracks its new state based on the previous state plus a time difference equal to the current event timestamp minus the previous event timestamp. In some embodiments, the new state may be equal to the previous state plus a multiple of the time difference between the most recent event timestamps.
[0043] In some implementations, periodically (e.g., every time period T), the stored state of the burst estimator logic is decremented, e.g., the state is multiplied by a factor alpha having a value between 0 and 1. The values of T and alpha can be selected so that the burst estimator logic tracks the current state based on the current time period, which is not so large that it covers the average rate of all past events, nor so small that it covers only the most recent time period (e.g., the current and previous timestamps).
[0044] System Description
[0045] Documents incorporated herein by reference shall be considered to be an integral part of this application, except that to the extent any term is defined in such incorporated documents in a manner that conflicts with an explicit or implicit definition in this specification, only the definition in this specification shall apply.
[0046] Reference now Figure 1A , which is a block diagram of a communication system 20A constructed and operative in accordance with an embodiment of the present invention.
[0047] The operation of system 20A is illustrated by a network device 22, such as a switch, having a plurality of interfaces in the form of network interface ports 26 connected to a packet data network 24, such as an Ethernet or InfiniBand switch fabric. As is known in the art, ports 26 typically include appropriate physical layer (PHY) and data link layer interface circuitry. Ports 26, which are labeled with the letters AH for clarity in the following description, are configured to function as ingress ports and egress ports (or equivalently, ingress interfaces and egress interfaces) of network 24. Although for purposes of illustration, the network 24 is not illustrated in FIG. Figure 1A Ports 26A-D function as inlet ports, while ports 26E-H function as outlet ports, but in practice, all ports 26 are typically configured for bidirectional operation, as both inlet ports and outlet ports.
[0048] Ports 26A-D receive network packets belonging to multiple flows from network 24 to forward to corresponding egress interfaces for transmission to network 24. Assuming network 24 is an Internet Protocol (IP) network, packet flows can be identified by packet 5-tuples (source and destination IP addresses and ports, and transport protocols). Alternatively, any other suitable flow identifiers may be used based on layer 2, 3, 4, or tunnel data.
[0049] The network device 22 includes control circuitry in the form of forwarding and queuing logic 30 that forwards network packets to the appropriate egress ports 26E-F for transmission to the network 24. The logic 30 queues packets destined for each egress port in a transmit queue in the memory 28 while the packets wait their turn to be sent. The logic 30 does not necessarily send packets through a given egress port in the order in which they arrive, but may give certain queues higher priority than other queues.
[0050] Figure 1A The configurations of the network devices 22 and networks 24 shown are example configurations, which are selected purely for conceptual clarity. In alternative embodiments, any other suitable network and / or switch configurations may be used. The logic 30 in the network device 22 typically includes hardwired or programmable logic circuits, such as one or more application specific integrated circuits (ASICs) or field programmable gate arrays (FPGAs). Alternatively or additionally, at least some of the functions of the logic 30 may be implemented in software or firmware running on a programmable processor.
[0051] In some embodiments, the network device 22 may be implemented as any suitable network device, such as, but not limited to, a router or a network interface card (NIC), which may include an interface (e.g., a Peripheral Component Interconnect Express (PCIe) interface) to interface with a host device and one or more interfaces, such as port 26, to interface with the packet data network 24.
[0052] The forwarding and queuing logic 30 is also configured to monitor the network device 22 for packet-related events (e.g., buffer limits exceeded, and / or packets dropped) and generate data about the events. The corresponding events have corresponding event timestamps. The data for each event may include flow and event type information, event timestamps, and packet sizes of packets for the event related to the packet. A "flow" is typically identified by the values of a set of specified header fields, such as source and destination addresses, source and destination ports, IP and TCP / UDP 5-tuples for protocols, or any suitable flow information, such as layer 2, 3, 4, or tunnel data, which is consistent across all packets in the flow. The event data typically indicates the type of event associated with the event, such as, but not limited to, TTL expiration, illegal packets, or exceeding buffer limits.
[0053] The forwarding and queuing logic 30 may also run a sampler and / or policer to filter some event data to prevent some event data from being input to the burst estimator logic, as described below.
[0054] The network device 22 includes a burst estimator logic 32 that is configured to track corresponding occurrence rates of events over corresponding time periods in response to corresponding event timestamps and to follow a maximum occurrence rate. The burst estimator logic 32 may include a rate estimator executed by the burst estimator logic 32. In some embodiments, the rate estimator may include rate estimator logic in the burst estimator logic 32. The rate estimator may include any suitable software, hardware, or any suitable combination thereof. The corresponding time periods may be overlapping or non-overlapping. The logic 30 finds a measure of the burstiness of the event in response to the maximum occurrence rate. The logic 30 is configured to send the measure of the burstiness to a collector mode 34 located in the packet data network 24. The burst estimator logic 32 typically includes hardwired or programmable logic circuitry, such as one or more application specific integrated circuits (ASICs) or field programmable gate arrays (FPGAs). Alternatively or additionally, at least some of the functionality of the aggregation logic 32 may be implemented in software or firmware running on a programmable processor. Reference is made below to Figure 3 , FIG. 4A to FIG. 4B The operation of the burst estimator logic 32 is described in more detail.
[0055] Reference now Figure 1B , which is a block diagram of an alternative communication system 20B constructed and operated in accordance with an embodiment of the present invention. Communication system 20B is substantially the same as communication system 20A, except that collector node 34 is locally connected to network device 22 via interface 36, such as a PCIe interface. Logic 30 is configured to send the burstiness measurement to collector node 34 via interface 36.
[0056] Reference now FIG. 2A to FIG. 2C , FIG. 2A to FIG. 2CIt is shown Figure 1A and Figure 1B Schematic diagram of the event burstiness of events in the system 20A, 20B. Event timestamps provide useful information about the timing of events. For example, Figure 2A N-1 events in a cluster are shown, followed by a single event at time T1. Figure 2B Two clusters of (N-1) / 2 events are shown, followed by a single event at time T1. Figure 2C shows that N events are evenly spread between time T0 and time T1. It should be noted that even though FIG. 2A to FIG. 2C The examples shown in include the same number of events, but with very different suddenness of events. Figure 2A The suddenness of the events shown in Figure 2B The suddenness of the events shown in Figure 2B The suddenness of the events shown in Figure 2C The suddenness of the events shown in .
[0057] Reference now Figure 3 , which is included in Figure 1A and Figure 1B Flowchart 50 of steps in a method of estimating burstiness used in the system 20A, 20B. The burst estimator logic 32 ( Figure 1A , Figure 1B ) is configured to track (block 52) respective event occurrence rates over respective time periods in response to respective event timestamps in the event timestamps. The time periods may be overlapping or non-overlapping. The time periods may not be explicitly identified by the burst estimator logic 32, but the burst estimator logic 32 may track respective occurrence rates over respective time periods by applying more weight to more recent timestamps and less weight to older timestamps based on the configuration of the burst estimator logic 32. The occurrence rates may be tracked for a particular event type or multiple event types associated with one or more network flows. Any rate estimator logic may be used to track the rates, which may be hardware and / or software based. Details of the rate estimator logic will be described with reference to FIG. 4A to FIG. 4B Describe in more detail.
[0058] In some embodiments, the burst estimator logic 32 is configured to track the current occurrence rate in response to a previous occurrence rate (tracked by the burst estimator logic 32) and a recent event timestamp (e.g., the timestamp of the current event and the timestamp of the previous event). In this way, the current rate can be tracked without using the older event timestamps, which can be deleted to save memory 28 ( Figure 1A , Figure 1B ) in the space.
[0059] The burst estimator logic 32 is configured to follow (block 54) the maximum occurrence rate among the occurrence rates. FIG. 4A to FIG. 4B This step is described in more detail. The maximum rate indicates a measure of the burstiness of the event. The burst estimator logic 32 is configured to store (block 56) the maximum occurrence rate in the memory 28. If a previous maximum rate is stored in the memory 28, the previous maximum rate is deleted from the memory 28 or overwritten by the new maximum rate.
[0060] Burst Estimator Logic 32 ( Figure 1A , Figure 1B ) is configured to find (block 58) a measure of the burstiness of the event in response to the maximum rate of occurrence followed. In some embodiments, the measure of the burstiness of the event is equal to the maximum rate of occurrence followed. In other embodiments, the measure of the burstiness of the event may be proportional to the maximum rate of occurrence followed, for example, by multiplying the maximum rate by a given factor. Thus, a measure of the burstiness may be found without having to store all event timestamps for the entire reporting period following the measure of the burstiness. The measure of the burstiness may be calculated for a particular event type or multiple event types associated with one or more network flows.
[0061] Reference now FIG. 4A to FIG. 4B , FIG. 4A to FIG. 4B Yes Figure 3 An alternative flow chart of more detailed steps in the method.
[0062] As previously described, the burst estimator logic 32 ( Figure 1A , Figure 1B ) uses rate estimator logic to track the current rate of occurrence of some events over the current time period. The current rate of occurrence of one of the events over the current time period may be referred to as the current state or state of the burst estimator logic 32. The current state is typically calculated based on the previous state of the burst estimator logic 32 and a time difference, which may be equal to the difference between the timestamp of the current event and the timestamp of the previous event.
[0063] In some embodiments, the burst estimator logic 32 may calculate the current state as the previous state plus a time difference. In some embodiments, more than one time difference may be used to calculate the current state, such as the time difference between the current event timestamp and the previous event timestamp, and the time difference between the previous event timestamp and the older event timestamp, etc. In some embodiments, the state of the burst estimator logic 32 may be periodically reduced by a given factor.
[0064] Reference now Figure 4A Describing in more detail some of the steps performed by the burst estimator logic 32, Figure 4A Yes Figure 3 60A is a flow chart of more detailed steps in the method.
[0065] The burst estimator logic 32 is configured to receive (block 62) the timestamp of the current event and retrieve it from the memory 28 ( Figure 1A , Figure 1B ) retrieves the timestamp of the previous event and the state of the burst estimator logic 32. When the method starts, the value of state may be zero or any suitable value.
[0066] The burst estimator logic 32 is configured to track (box 64) a current state (i.e., a current rate of occurrence of some event over a current time period) in response to: a retrieved state or a previous state (i.e., a previous rate of occurrence of some event over a previous time period); a time difference between a timestamp of a current event and a timestamp of a previous event.
[0067] In some embodiments, the burst estimator logic 32 is configured to track a current state (i.e., a current rate of occurrence of some event over a current time period) in response to a retrieved state or a previous state (i.e., a previous rate of occurrence of some event over a previous time period) plus a time difference between a timestamp of the current event and a timestamp of the previous event.
[0068] As previously described, the burst estimator logic 32 may not explicitly identify the current time period, but the burst estimator logic 32 may track the occurrence rate over the current time period by placing more weight on more recent timestamps and less weight on older timestamps based on the configuration of the burst estimator logic 32, for example by using parameters T and alpha described in more detail below.
[0069] The burst estimator logic 32 is configured to store the current state (i.e., current occurrence rate) and the timestamp of the current event in the memory 28. In some embodiments, the burst estimator logic 32 is configured to delete the timestamp of the previous event from the memory 38. In some embodiments, the burst estimator logic 32 is configured to overwrite the timestamp of the previous event in the memory 28 with the timestamp of the current event.
[0070] At decision block 72, the burst estimator logic 32 is configured to determine whether the current state of the burst estimator logic 32 is greater than the stored maximum state. If the current state is greater than the stored maximum state (branch 74), the burst estimator logic 32 is configured to store (block 76) the current state as the maximum state in the memory 28. If the current state is not greater than the stored maximum state (branch 78), processing continues with the steps of block 62 for the next event. Similarly, after the steps of block 76, processing continues with the steps of block 62 for the next event.
[0071] As part of an independent processing loop, the burst estimator logic 32 is configured to track the passage of a time period T, for example using a resettable timer. At decision block 66, the burst estimator logic 32 is configured to determine whether the time period T has ended. If the time period T has ended (branch 68), the burst estimator logic 32 is configured to reduce (block 70) the state (i.e., the current occurrence rate) by a given factor, for example by multiplying the state by a factor alpha (which is greater than zero but less than one). The burst estimator logic 32 may also be configured to reset the timer that times the time period T. By periodically reducing the state of the burst estimator logic 32, the burst estimator logic 32 places more weight on more recent timestamps and less weight on more distant timestamps. Thus, T and alpha may be selected to control how much weight the burst estimator logic 32 places on more recent timestamps and more distant timestamps, thereby defining the concept of a current time period that tracks the current state. If the time period T has not ended (branch 71), the steps of decision block 66 are repeated.
[0072] refer to Figure 4A The steps described in flowchart 60A may be performed in any suitable order.
[0073] Figure 4B Yes Figure 3 60B is a flowchart of more detailed steps in the method of . Whenever a new event is received, the steps of blocks 62 and 64 are performed. The steps of blocks 66, 70, 72 and 76 are performed as a separate processing loop as described below. The burst estimator logic 32 is configured to track the passage of time period T, for example using a resettable timer. At decision block 66, the burst estimator logic 32 is configured to determine whether the time period T has ended. If the time period T has not ended (branch 71), the steps of decision block 66 are repeated. If the time period T has ended (branch 68), the burst estimator logic 32 is configured to reduce (block 70) the state (i.e., the current occurrence rate) by a given factor, for example by multiplying the state by a factor alpha (which is greater than zero but less than one). The burst estimator logic 32 can also be configured to reset the timer that times the time period T. At decision block 72, the burst estimator logic 32 is configured to determine whether the current state of the burst estimator logic 32 is greater than the maximum state stored. If the current state is greater than the stored maximum state (branch 74), the burst estimator logic 32 is configured to store (block 76) the current state as the maximum state in the memory 28. If the current state is not greater than the stored maximum state (branch 78), processing continues with the steps of decision block 66. Similarly, after the steps of block 76, processing continues with the steps of decision block 66.
[0074] Examples using different alpha and T values are shown below.
[0075] In the first example, burst measurements of 100KB bursts at different rates (0.1, 1, 10, 100 Gbps (Gigabits per second)) with alpha equal to 0.75 and T equal to 10 microseconds are found:
[0076] 0.1 Gbps 1 Gbps 10 Gbps 100 Gbps 100KB burst 0.03 2.7 28 66
[0077] In the second example, burst measurements of 100KB bursts at different rates (0.1, 1, 10, 100 Gbps (Gigabits per second)) with alpha equal to 0.9375 and T equal to 1 microsecond are found:
[0078] 0.1 Gbps 1 Gbps 10 Gbps 100 Gbps 100KB burst 0.0008 1.7 25 106
[0079] For the sake of clarity, various features of the invention described in the context of separate embodiments may also be provided in combination in a single embodiment. Conversely, for the sake of brevity, various features of the invention described in the context of a single embodiment may also be provided separately or in any suitable sub-combination.
[0080] The above embodiments are cited by way of example, and the present invention is not limited to what has been specifically shown and described above. On the contrary, the scope of the present invention includes the combination and sub-combination of the various features described above, as well as variations and modifications thereof that will occur to a person skilled in the art after reading the foregoing description and that are not disclosed in the prior art.
Claims
1. A network device, comprising: at least one network interface port that functions as at least one ingress port for receiving a first network packet from a network and as at least one egress port for forwarding a second network packet to the network; Memory; a control circuit configured to monitor the network device for events related to packets, the events related to packets having corresponding event timestamps; as well as The burst estimator logic is configured to: tracking respective occurrences of the packet-related events over respective time periods in response to the respective event timestamps; The maximum incidence rate among the corresponding incidence rates described is followed; storing the maximum occurrence rate in the memory; as well as A measure of the burstiness of the packet-related event is found in response to the observed maximum occurrence rate.
2. The network device of claim 1, wherein the measure of the burstiness of the packet-related events is equal to the maximum rate of occurrence observed.
3. A network device according to claim 1, wherein the burst estimator logic is configured to track the current occurrence rate of the packet-related events over a current time period in response to: the previous occurrence rate of the packet-related events over a previous time period; and the time difference between the timestamp of a current packet-related event in the packet-related events and the timestamp of a previous packet-related event in the packet-related events.
4. The network device of claim 3, wherein the burst estimator logic is configured to store in the memory a current rate and a timestamp of the current packet-related events.
5. The network device of claim 4, wherein the burst estimator logic is configured to delete the timestamp of the previous packet-related event from the memory.
6. A network device according to claim 1, wherein the burst estimator logic is configured to track a current occurrence rate of the packet-related events over a current time period in response to a previous occurrence rate of the packet-related events over a previous time period plus a time difference between a timestamp of a current packet-related event among the packet-related events and a timestamp of a previous packet-related event among the packet-related events.
7. The network device of claim 6, wherein the burst estimator logic is configured to reduce the current occurrence rate by a given factor.
8. The network device of claim 7, wherein the burst estimator logic is configured to store in the memory a current rate and a timestamp of the current packet-related events.
9. The network device of claim 8, wherein the burst estimator logic is configured to delete the timestamp of the previous packet-related event from the memory.
10. The network device of claim 8, wherein the burst estimator logic is configured to overwrite the timestamp of the previous packet-related event in the memory with the timestamp of the current packet-related event.
11. A networking method, comprising: receiving a first network packet from a network; forwarding a second network packet to the network; Monitoring network devices for events associated with packets, the events associated with packets having corresponding event timestamps; tracking respective occurrences of the packet-related events over respective time periods in response to the respective event timestamps; The maximum incidence rate among the corresponding incidence rates described is followed; storing the maximum occurrence rate; as well as A measure of the burstiness of the packet-related event is found in response to the observed maximum occurrence rate.
12. The networking method of claim 11, wherein the measure of the burstiness of the packet-related events is equal to the maximum rate of occurrence observed.
13. A networking method according to claim 11, wherein the tracking includes tracking a current occurrence rate of the group-related events over a current time period in response to: a previous occurrence rate of the group-related events over a previous time period; and a time difference between a timestamp of a current group-related event among the group-related events and a timestamp of a previous group-related event among the group-related events.
14. The networking method of claim 13, further comprising storing in a memory a current rate and a timestamp of the current packet-related events.
15. The networking method of claim 14, further comprising deleting the timestamp of the previous packet-related event from the memory.
16. A networking method according to claim 11, wherein the tracking includes tracking the current occurrence rate of the packet-related events over a current time period in response to the previous occurrence rate of the packet-related events over a previous time period plus the time difference between the timestamp of the current packet-related event among the packet-related events and the timestamp of the previous packet-related event among the packet-related events.
17. The networking method according to claim 16, further comprising reducing the current occurrence rate by a given factor.
18. The networking method of claim 17, further comprising storing in a memory a current rate and a timestamp of the current packet-related events.
19. The networking method of claim 18, further comprising deleting the timestamp of the previous packet-related event from the memory.
20. The networking method of claim 18, further comprising overwriting the timestamp of the previous packet-related event in the memory with the timestamp of the current packet-related event.
21. A non-transitory computer readable medium having stored therein program instructions which, when read by a central processing unit (CPU), cause the CPU to: Monitoring network devices for events associated with packets, the events associated with packets having corresponding event timestamps; tracking respective occurrences of the packet-related events over respective time periods in response to the respective event timestamps; The maximum incidence rate among the corresponding incidence rates described is followed; storing the maximum occurrence rate; as well as A measure of the burstiness of the packet-related event is found in response to the observed maximum occurrence rate.
Citation Information
Patent Citations
High availability of collectors of traffic reported by network sensors
US10181987B2
Telemetry Event Aggregation
US20210021503A1
System wide flow aggregation process for aggregating network activity records
US6751663B1
Rfid-based data reduction system and techniques
CN101727604A
System and method for monitoring and analyzing network traffic
CN102106101A
