Measuring packet dwell and propagation times
By extending the network flow measurement protocol, recording the entry and exit times of packets, and calculating the residence time, the problem of the inability of existing technologies to measure network path delays is solved, and delay monitoring and path optimization of network traffic are realized.
Patent Information
- Application Number
- CN202010195960.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-19
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-03-19
AI Technical Summary
Existing network measurement protocols cannot effectively measure the residence time and delay of packets in network paths, and it is difficult to identify network devices or paths that cause delays.
By extending the existing network flow measurement protocol, such as the IPFIX protocol, adding data fields for packet entry time and packet departure time, using filters to record these times on the network device, and outputting the record to the traffic collector to calculate the packet residence time to identify sources of delays.
Measure packet dwell time and latency without new protocols, identify network devices or paths causing latency, improve network traffic engineering and path selection, enhance latency monitoring capabilities, and support load balancing.
Smart Images

Figure CN113132179B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to computer networks, and more particularly, to measuring packet residence and propagation times in computer networks. Background Art
[0002] A computer network consists of a set of nodes and a set of links that connect one node to another. For example, a computer network may consist of a set of routers, and the set of links may be cables between the routers. When a first node in the network sends a message to a second node in the network, the message may pass through many links and many nodes. The set of links and nodes that the message passes through from the first node to the second node is called a path of the network. There may be more than one path between the first node and the second node.
[0003] Network traffic can propagate along a path through a router, thereby performing one or more operations other than routing network traffic along the path. This operation can include general flow-specific information collection. That is, the router can collect information about network traffic flows. The flow can be identified by a so-called five-tuple including source address, source port, destination address, destination port, and protocol. The flow information can include statistics about the traffic load, such as the number of packets per minute per flow or the amount of data per minute per flow, etc. As an embodiment, the router can collect flow information to provide local insight into the network traffic load.
[0004] Using an output protocol, a router can export flow information. Embodiments of an output protocol include the Internet Protocol Flow Information Export (IPFIX) protocol. B.Claise, "Specification of the IP Flow Information Export (IPFIX) Protocol for the Exchange of IP Traffic Flow Information" in IETF RFC 5101 (January 2008) and B.Claise, "Specification of the IP Flow Information Export (IPFIX) Protocol for the Exchange of Flow Information" in IETF RFC 7011-7015 (September 2013) describe information about IPFIX. A router can export flow information to allow for a number of different operations. For example, a router can export flow information to a central management device (such as a software-defined network controller, etc.). The central management device can then take various actions based at least in part on the output flow information. Summary of the invention
[0005] In summary, techniques for measuring the residence time of a packet using packet flow monitoring are described. As described herein, the packet residence time of a packet refers to the time elapsed from when the packet enters a network device, the network device applies one or more network services to the packet, and when the packet leaves the network device.
[0006] The present disclosure describes techniques, devices, systems, and methods for measuring packet residence time using existing protocols without implementing new protocols. In some aspects, network flow measurement protocols such as the IPFIX protocol can be extended to include additional data fields in the flow data records output to the traffic collector, including packet entry time and packet departure time. The additional data fields allow calculation of packet residence time within each network device and the time required for a packet to traverse between two network devices in the network. According to the technology of the present disclosure, network flow measurement protocols such as the IPFIX protocol can be extended to include at least packet entry time and packet departure time.
[0007] Based on the traffic to be detected, filters can be installed on one or more network devices in the network. The filter has monitoring properties defined in the "monitoring instance". When the network device receives a packet that matches the filter criteria, the network device records the time when the packet enters the network device, the time when the packet leaves the network device, and in some aspects records the packet residence time of the packet in the network device. The network device outputs the flow data record related to the packet to the traffic flow data collector. The output flow data record can include the packet arrival time, the packet departure time, the packet residence time, and the monitoring instance name, as well as the values of other attributes that identify the source and destination of the packet.
[0008] Using the techniques described herein, a traffic collector can derive information about how much time a packet resides in each network device along a path. In addition, by comparing packet arrival times and packet departure times at different network devices, the traffic collector can derive the time it takes a packet to traverse between two network devices. Therefore, a traffic collector operating according to the techniques of the present disclosure can help identify which network device or which path between network devices produces the greatest delay. Using the packet residence time recorded in the flow data record, the traffic collector described herein can derive information about which network device produces delays or congestion, thereby helping to identify delays caused by specific services applied to the network devices.
[0009] The technology of the present disclosure can provide one or more advantages. For example, the technology of the present disclosure eliminates the need for additional protocols supported by network devices to monitor packet delay or packet residence time. In addition, the technology of the present disclosure enables network devices to measure end-to-end delays for transmitting network traffic. The technology of the present disclosure also enables network devices to measure packet residence time or delay within a network device, wherein the network device applies one or more services to the packet. In addition, due to the wide support of various clients and network devices for network flow measurement protocols such as IPFIX, it is easy to adopt the technology of the present disclosure. Therefore, the technology of the present disclosure can be extended to include the above-mentioned data fields to allow enhanced packet delay monitoring without substantial impact on performance. In addition, in the case of load balancing network traffic across multiple paths, the technology of the present disclosure can allow the fastest path to be identified through the network, thereby improving the traffic engineering and path selection of network traffic within the network.
[0010] In some aspects, a network device includes: a first network interface; a second network interface; a forwarding unit configured to receive network packets of a packet flow via the first network interface, determine a packet arrival time of the network packets at the first network interface, provide the network packets to the second network interface for transmission to a destination, determine a packet departure time of the network packets from the second network interface; and a flow data exporter configured to create a flow data record specifying a packet arrival time and a packet departure time and provide the flow data record to a traffic flow data collector device physically separated from the network device.
[0011] In some aspects, a traffic flow data collector includes: one or more processors; and a computer-readable medium including instructions for causing the one or more processors to perform the following operations: receiving one or more flow data records from a plurality of network devices, each flow data record including a packet arrival time and a packet departure time; determining one or more network paths from a source device to a destination device from the one or more flow data records, the one or more network paths including two or more network devices from the plurality of network devices; identifying a first network device having a highest packet residence time along the one or more network paths, the packet residence time being based on the packet arrival time and the packet departure time; and determining a delay reduction action for the first network device.
[0012] In some aspects, a method includes: obtaining, by at least one computing device, a packet arrival time indicating a time when a network packet arrives at a network device; obtaining, by at least one computing device, a packet departure time indicating a time when a network packet leaves the network device; determining, by at least one computing device, a packet residence time of the network device based on the packet arrival time and the packet departure time; and determining, by at least one computing device and based on the packet residence time of the network device and the packet residence times of the multiple other network devices, a delay reduction action for one or more network devices and multiple other network devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 is a block diagram illustrating an example network system in accordance with the techniques described herein.
[0014] Figure 2 is a block diagram illustrating in further detail an exemplary network device configured in accordance with various aspects of the techniques described in this disclosure.
[0015] Figure 3 is a block diagram illustrating a data structure including elements for measuring packet residency in accordance with various aspects of the techniques described in this disclosure.
[0016] Figure 4 is a flow chart illustrating example operation of a network device in accordance with various aspects of the techniques described in this disclosure.
[0017] Figure 5 is a flow chart illustrating example operations for collecting and analyzing data stream records in accordance with various aspects of the techniques described in this disclosure.
[0018] Like reference numerals refer to like elements throughout the drawings and text. DETAILED DESCRIPTION
[0019] In general, the present disclosure describes techniques for measuring the packet residence time of a packet in a network node and the propagation time of a packet between network devices along a path through a packet network. Some network measurement protocols can only measure the round-trip delay between two network devices. An embodiment of the network measurement protocol is a two-way active measurement protocol (TWAMP). K. Hedayat describes additional information about TWAMP in "A Two-Way Active Measurement Protocol (TWAMP)" of Internet Engineering Task Force (IETF) RFC 5357 (October 2008), which is incorporated herein by reference in its entirety. Although protocols such as TWAMP are capable of measuring end-to-end packet propagation time along a network path between a source node and a destination node, such protocols are unable to measure the propagation time between network devices along the network path. In addition, protocols such as TWAMP are unable to measure the packet residence time of a packet within each network device along the network path, and thus are unable to determine the impact of network services applied to packets on network devices along the path between the source and the destination. Furthermore, TWAMP and other types of real-time performance monitoring (RPM) require the source and destination devices to support a protocol and may be limited by the number of probes used to obtain performance metrics.
[0020] Figure 1 is a block diagram illustrating an exemplary network system 100 according to the techniques described herein. In some aspects, the network system 100 may include a network traffic source 110 that communicates with one or more network traffic destinations 112A-112N (generally referred to as network traffic destinations 112) via a network 108, a traffic flow data collector 104, and a monitoring control client 106.
[0021] The network traffic source 110 may be any network device that serves as a source of network traffic. Embodiments of the network traffic source 110 include servers, Internet of Everything (IoT) devices, and any other device that generates and sends network packets via the network 108. For example, the network traffic source 110 may be a streaming video server that sends packets including video data to video clients executing on network traffic destinations 112A-112N via the network 108. The video monitoring service may measure parameters such as delay factors, jitter, loss rates, etc. Because the video monitoring service cannot distinguish TWAMP type packets, packets generated by protocols such as routing table managers (RTM) or TWAMP do not pass through services such as video monitoring. For this reason, RTM and TWAMP may have difficulty measuring the time it takes for a service node to apply real-time services to video traffic.
[0022] The network 108 may include one or more network devices 102A-102D (generally referred to as network devices 102). The network device 102 may be any type of device that receives network packets from a network traffic source 110 or another network device 102 and forwards the network packets to another network device 102 or a network traffic destination 112. For example, the network device 102 may be a router such as a backbone network edge or user network edge router, a core router, a gateway, a bridge, a hub, or other network devices such as a switch.
[0023] During operation, network device 102 may collect packet flow measurements regarding some or all network packets received and forwarded by network device 102. Figure 1 In the embodiment shown, it is possible to Figure 1 Packet flow measurements are obtained at observation points labeled P1-P10 in FIG. Each observation point is capable of measuring various aspects of network packet flow through network device 102. Figure 1 In the illustrated embodiment, observation points P1, P2, and P7 are capable of measuring aspects of packet flows through network device 102A. Similarly, observation points P3 and P4 are capable of measuring aspects of packet flows through network device 102B, observation points P5, P6, and P10 are capable of measuring aspects of packet flows through network device 102C, and observation points P8 and P9 are capable of measuring aspects of packet flows through network device 102D. In some aspects, observation points P1-P10 are capable of measuring packet arrival times of network packets at network interfaces of corresponding network devices 102A-102D, and after being processed by corresponding network devices 102A-102D, are capable of measuring packet departure times of network packets.
[0024] The network packet may take one of multiple paths through network 108 depending on the network device 102A-102D that receives the packet. Figure 1In the illustrated embodiment, there are two network paths for traffic between network traffic source 110 and network traffic destinations 112A-112N. The first path includes network devices 102A, 102B, and 102C. The second path includes network devices 102A, 102D, and 102C. The network interface that receives the network packet can be referred to as the ingress network interface with respect to the network packet. The network interface that forwards the network packet to the next hop toward the network traffic destination 112A-112N can be referred to as the egress network interface with respect to the network packet. The network interface can be an ingress network interface with respect to network packets passing through the network device in one direction and an egress network interface with respect to other network packets passing through the device in another direction. Thus, for network packets originating from network traffic source 110, sent to one or more network traffic destinations 112A-112N via a first path and traversing network 108, observation points P1, P3, and P5 may be associated with ingress network interfaces of network devices 102A, 102B, and 102C, respectively, and observation points P2, P4, and P6 may be associated with egress network interfaces of network devices 102A, 102B, and 102C, respectively. For packets originating from network traffic source 110, sent to one or more network traffic destinations 112A-112N via a second path and traversing network 108, observation points P1, P8, and P10 may be associated with ingress network interfaces of network devices 102A, 102D, and 102C, respectively, and observation points P7, P9, and P6 may be associated with egress network interfaces of network devices 102A, 102D, and 102C, respectively.
[0025] As described above, the network device 102 can measure packet arrival times and packet departure times of network packets passing through the network device 102. The network device 102 can store the packet arrival times and packet departure times of the network packets in a data flow record and send the data flow record to the traffic flow data collector 104. In some aspects, the network device 102 can determine the packet residence time and include the packet residence time in the data flow record.
[0026] The traffic flow data collector 104 can receive data flows from the network devices 102A-102D and store the data flow records in the flow database 114 for analysis. In some aspects, if the network device 102 does not determine the packet residence time, the traffic flow data collector 104 can use the packet arrival time and the packet departure time to determine the packet residence time of the network packet. The packet residence time can represent the amount of time that the network device 102 spends processing the network packet before forwarding the network packet to the next hop. Thus, the packet residence time can include the packet processing time to determine the next hop for the network packet and the processing time associated with the services running on the network device 102, such as the firewall service, filtering service, routing service, or other service provided on the network device 102.
[0027] Traffic flow data collector 104 or an analysis application (not shown) can use packet arrival times, packet departure times, and packet residence times to determine various aspects of network traffic flow through network 108. For example, for a first path of a network packet originating from network traffic source 110 to network traffic destinations 112A-112N (e.g., a path including network devices 102A, 102B, and 102C), the network path propagation time can be determined using packet arrival times determined at observation points P1, P3, and P5 and packet departure times at observation points P2, P4, and P6. In addition, the packet residence time for each of network devices 102A, 102B, and 102C can be determined. Similarly, for a second path of network packets from network traffic source 110 to network traffic destination 112A-112N (e.g., a path including network devices 102A, 102D, and 102C), the network path propagation time can be determined using the packet arrival times determined at observation points P1, P8, and P10 and the packet departure times at observation points P7, P9, and P6. In addition, the packet residence time of each network device 102A, 102D, and 102C can be determined. The traffic flow data collector 104 or an analysis application can use the network path propagation time and the packet residence time to determine the fastest path through the network 108. In addition, the packet residence time of the network device can be used to determine the network device 102 (e.g., a service node) that generates the greatest delay in packet throughput. Once it is determined that the network device 102 generates the delay, the traffic flow data collector 104 or other network management application can make an updated routing decision to direct network traffic away from the network device or node that generates the greatest delay. Additionally, network administrators can determine whether to remove, modify, or load balance services provided by latency-generating network devices to improve network throughput.
[0028] The monitoring control client 106 can be used to control which packets are measured at the observation point. For example, the monitoring control client 106 can provide a user interface used by a network administrator to determine which packets are selected for measurement. In some aspects, the monitoring control client 106 can be used to select the source address, destination address, protocol, and sampling rate of the filter applied by the network device 102, which selects the network packets to be measured at the observation point.
[0029] exist Figure 1 In the illustrated embodiment, a single network traffic source 110 is shown. Typically, the network system 100 has more than one network traffic source, and in fact, the network system 100 may have multiple network traffic sources 110. In addition, the network traffic source 110 may serve as a network traffic destination 112 relative to other network traffic sources 110. Similarly, the network traffic destination 112 may serve as a network traffic source 110 relative to other network traffic destinations. In addition, in Figure 1 In the illustrated embodiment, four network devices 102A- 102D are shown. The network system 100 may have fewer or more than four network devices 102 .
[0030] Reference Figures 2 to 5 Further details are provided regarding various aspects of the configuration and operation of the network device 102 , the traffic flow data collector 104 , and the monitoring control client 106 .
[0031] Figure 2 is a block diagram illustrating in further detail an exemplary network device 202 configured in accordance with various aspects of the techniques described in this disclosure. The network device 202 may be Figure 1 Any of the network devices 102A-102D shown in FIG. The network device 202 can be logically divided into a control plane 200 and a forwarding plane 250 (sometimes referred to as a data plane). Figure 1 As shown in FIG. 1 , the control panel 200 of the network device 202 includes a control unit 220 and the forwarding panel 250 includes a forwarding unit 201 and at least two network interfaces (e.g., a network interface 204 and a network interface 206). The network interfaces 204 and 206 may be network interfaces provided by a single unit such as a line card having a plurality of network interfaces, or may be provided as independent units (e.g., independent line cards).
[0032] The control unit 220 may provide capabilities related to determining a network topology and routing information that maintains the network topology. In some aspects, the control unit 220 includes a control processor 222, a protocol 224, a stream data exporter 226, and a management interface 232. The control processor 222 may include processing circuitry that executes software instructions, such as software instructions used by software or computer programs that define processes running on the control processor to perform the techniques described herein. For example, the control processor 222 may execute instructions that implement the protocol 224 and / or the stream data exporter 226. Alternatively, or in addition, the control processor 222 may include dedicated hardware for performing the techniques described herein, such as one or more integrated circuits, one or more application specific integrated circuits (ASICs), one or more application specific processors (ASSPs), one or more field programmable gate arrays (FPGAs), or any combination of one or more of the foregoing dedicated hardware embodiments. The software and data may be stored in a computer-readable storage medium ( Figure 2 ), such as a non-volatile computer-readable medium including a storage device (e.g., a disk drive or an optical drive) and / or a memory such as RAM (including various forms of DRAM, such as DDR2 SDRAM, or SRAM), flash memory, another form of fixed or removable storage medium that can be used to execute or store the desired program code and program data.
[0033] The control unit 220 can implement various routing protocols 224. Examples of the protocols include Open Shortest Path First (OSPF), Instant System to Instant System (IS-IS), Routing Information Protocol (RIP), RIPv2, IGRP, Border Gateway Protocol (BGP), Path Vector Routing Protocol, External Gateway Protocol (EGP), IGRP, and Enhanced Interior Gateway Routing Protocol (EIGRP). In some aspects, the control unit 220 can receive via the management interface 232 one or more control messages including routing information in a format specified by one or more of the protocols 224. The control unit 220 can interpret the data in the message according to the protocol and update the routing information base (RIB) 230 to the new routing information specified by the message. In addition, the control processor 222 can update the forwarding information base (FIB) 212 as needed based on the information in the RIB 230.
[0034] Forwarding unit 201 may provide capabilities related to processing network packets received at a network interface of network device 202. In some aspects, forwarding unit 201 includes forwarding processor 214 and packet processor 210. Forwarding unit 201 may receive an input packet (e.g., a packet at ingress network interface 204), process the packet, and select an egress network interface (e.g., network interface 206) to transmit the packet to a next hop (e.g., the next network device in a path through the network from the source address of the packet to the destination address of the packet). The next hop may be determined based on FIB 212.
[0035] Forwarding processor 214 includes circuitry for executing software instructions, such as those defined in a computer-readable storage medium ( Figure 2 The forwarding processor 214 may include software instructions used by software or computer programs (not shown in the figure), such as non-volatile computer-readable media including storage devices (e.g., disk drives or optical drives) and / or memory (such as RAM (including various forms of DRAM, such as DDR2 SDRAM, or SRAM), flash memory, another form of fixed or removable storage medium that can be used to execute or store the required program code and program data, etc.). Alternatively, or in addition, the forwarding processor 214 may include dedicated hardware for performing the techniques described herein, such as one or more integrated circuits, one or more ASICs, one or more ASSPs, one or more FPGAs, or any combination of one or more of the above dedicated hardware embodiments, etc.
[0036] As packets traverse the internal architecture of network device 202, packet processor 210 processes packets by performing a series of operations on each packet on a corresponding internal packet forwarding path. Packet processor 210 may include one or more configurable hardware chips (e.g., chipsets) that, when configured by an application running on control unit 220, define the operations performed on packets received by packet processor 210. In some embodiments, each chipset may represent a "packet forwarding engine" (PFE). Each chipset may include different chips each with dedicated functions, such as queuing, buffering, docking, and query / packet processing. Each chip may represent an application specific integrated circuit (ASIC) based, a field programmable gate array (FPGA) based, or other programmable hardware logic.
[0037] The packet processor 210 can process packets to identify packet properties and perform actions based on the properties. For example, the packet processor 210 can include a forwarding path element that, when executed, causes the packet processor 210 to examine the content of each packet (or another packet property, such as an input interface) and make forwarding decisions based thereon, apply filters, and / or perform billing, management, traffic analysis, and load balancing. The results of the packet processing determine how to forward packets received through a network interface (e.g., an ingress network interface 204) to another network interface (e.g., an egress network interface 206) or how the packet processor 210 of the forwarding unit 201 processes them in other ways.
[0038] The packet filter 208 is capable of obtaining packet data and selecting packets for further processing based on matching criteria. When present, the packet filter 208 can select packets based on rules and / or data defined in the monitoring instance 218. For example, the monitoring instance 218 can include data specifying a 5-tuple containing a source address, a destination address, a source port, a destination port, and a protocol ("monitoring instance data"). If the 5-tuple of the input packet matches the 5-tuple specified in the monitoring instance 218, the packet can be further processed in the manner specified in the monitoring instance 218. In addition, the monitoring instance can define a sampling rate. For example, a sampling rate of 1024 means that every 1024th input packet is selected and checked to determine whether the selected packet matches the properties specified in the monitoring instance 218 (e.g., a 5-tuple). A sampling rate of one (1) means that each packet is selected for inspection to determine whether further processing is performed as specified in the monitoring instance 218. The monitoring instance can be identified by the monitoring instance name. More than one monitoring instance 218 can be activated at any given time by the network device 202. Additionally, placing the same monitoring instance on multiple network devices in a network can provide the ability to receive flow data identifying the path a packet takes through the network.
[0039] The incoming packets may be processed by one or more packet services 209. Examples of such services include access control services, statistical sampling services, traffic policy services, rate limiting services, firewall services, and billing services.
[0040] The monitoring control client 106 can specify the monitoring instance 218 and service 209 for processing the input packet. Figure 1). For example, the monitoring control client can communicate one or more messages to the network device 202 via the management interface 232 to specify one or more monitoring instances and / or one or more services configured on the network device 202. The control processor 222 can communicate with the forwarding unit 201 to configure the monitoring instance and service 209 according to the information specified in the one or more messages. In some aspects, the dynamic task control protocol (DTCP) can be used to communicate between the monitoring control client 106 and the network device 202 via the management interface 232.
[0041] The incoming packets can be processed by packet forwarder 211. (Packet forwarder 211). Packet forwarder 211 examines the header of the incoming packet to determine the destination address of the packet. Packet forwarder 211 can consult FIB 212 to determine the next hop towards the destination device of the packet. Based on the forwarding information obtained from FIB 212, packet forwarder 211 can select egress network interface 206 to send the packet to the next hop.
[0042] As described above, a network device such as network device 202 may determine a packet arrival time T that indicates the time at which a packet arrives at a network interface of the network device (eg, ingress network interface 204). A and a packet departure time T indicating the time at which the packet is forwarded via a network interface of the network device (eg, egress network interface 206). D The packet filter 208 may select packets for which packet arrival times and packet departure times are determined and recorded. In some aspects, the monitoring instance 218 may specify that input packets having header data matching properties specified in the monitoring instance 218 and selected according to a sampling rate are provided to the metering process 216 via the packet filter 208.
[0043] The metering process 216 can record the packet arrival time T of the selected packets. A and the packet departure time T of the group D The metering process 216 can calculate the packet arrival time T A and the packet departure time T D Provided to the stream data outputter 226. The stream data outputter 226 can output the packet arrival time T A and the packet departure time T D The flow data record 228 is stored in the flow data record 228. In some implementations, the flow data exporter 226 can calculate the packet residence time T that represents the time the packet resides in the network device. RFor example, the packet residence time may be the elapsed time used by the packet filter 208, the packet service 210, and the packet forwarder 211 when processing the packet. In this implementation, the stream data outputter 226 may convert the packet residence time T R Stored in flow data record 228.
[0044] The flow data exporter 226 can output (eg, send) one or more flow data records 228 to the traffic flow data collector 104 ( Figure 1 ). The flow data exporter 226 can format the flow data record 228 according to the protocol and send the flow data record 228 to the traffic flow data collector 104 according to the protocol. In some aspects, the protocol is the IPFIX protocol. In other aspects, the protocol can be the NetFlow protocol. In still other aspects, other protocols can be used.
[0045] In some aspects, such as Figure 2 As shown in , the packet filter monitor 208 and the metering process 216 are arranged in the forwarding plane 250 of the network device 202. This is desirable because the time value obtained by the metering process is close to the data link, thus producing a highly accurate time value. In addition, as Figure 2 As shown in , in some aspects, the stream data exporter 226 is disposed in the control panel 250. In some aspects, the stream data exporter 226 can be disposed in the data panel 250.
[0046] Figure 3 is a block diagram illustrating a data structure of an exemplary flow data record 228 including elements for measuring packet residency in accordance with various aspects of the techniques described in this disclosure. Figure 3 An exemplary flow data record 228 is shown that includes data elements that extend elements specified by the IPFIX protocol. In some aspects, the exemplary flow data record 228 includes an observation domain identifier (ID) 301 that uniquely identifies a network device, i.e., the flow data record 228 is generated within a group of network devices that provide flow data records to the traffic flow data collector. Data elements 302-316 include extensions to the IPFIX protocol. Data elements 302-306 are associated with a packet arrival time T of the packet. A The packet arrival time includes a millisecond portion 302, a microsecond portion 304, and a nanosecond portion 306. Data elements 308-312 are associated with the packet departure time T of the packet. D Associated. Packet departure time T DThe packet dwell time 314 may be expressed in nanoseconds. As described above, in some implementations, the packet dwell time 314 may be calculated by the flow data exporter 226. In other implementations, the flow data collector 104 may calculate the packet dwell time 314. Figure 1 ) The packet residence time 314 is calculated based on the packet arrival time and the packet departure time in the flow data record 228. In this implementation, the packet residence time 314 may not exist in the data flow record 228, or the value of the packet residence time 314 field of the data flow record 228 may be provided by the data flow collector 104.
[0047] Figure 4 1 is a flow chart illustrating exemplary operation of a network device 102, 202 according to various aspects of the technology described in this disclosure. Operation begins with receiving a network packet at a network interface (402). For example, the network packet may be received at a router, switch, gateway, or other device configured to receive and transmit network packets.
[0048] The processing of an incoming network packet can take two paths. The forwarding path in the flowchart includes operations associated with forwarding a network packet to the next hop toward a destination. The metering path in the flowchart includes operations associated with obtaining metrics related to the processing of an incoming network packet. For example, a timing metric indicating the amount of time spent processing a packet in a forwarding panel of a network device can be obtained. The time can include the time used by a service process (firewall, billing service, access control service, etc.) and the time used by a packet forwarding process in determining the next hop for a network packet.
[0049] If any services are configured for the network device, processing along the forwarding path begins with one or more services processing an incoming network packet 408. For example, access control services, statistical sampling services, traffic policy services, rate limiting services, firewall services, and billing services may inspect packet headers and / or payload data and perform actions related to the services based on the packet data.
[0050] The packet processor can determine forwarding information for the network packet (410). For example, the packet processor can determine the packet destination address from the packet header information. The packet processor can consult a FIB or forwarding table to determine the network address of the network device, i.e., the next hop for the destination address. The packet can then be provided to an egress network interface selected based on the network address of the next hop network device (412). The forwarding path ends with the packet being sent via the selected network interface.
[0051] When a packet is received on an ingress network interface, operations along the metering path also begin. The filter can examine the packet data to determine whether to select the packet for monitoring (404). For example, the monitoring instance can include criteria for selecting packets for monitoring. The criteria can include some or all of the 5-tuple (source address, source port, destination address, destination port, protocol) or other matching criteria. In addition, the sampling rate can be limited by the monitoring instance. The sampling rate can specify the frequency with which packets are selected for monitoring. For example, a sampling rate of 1024 can indicate that one packet out of every 1024 packets received is selected to determine whether the packet data matches the filter criteria. If the packet is not selected for monitoring (branch "No" in 404), no further operations are performed on the metering and the metering path ends.
[0052] If a packet is selected for monitoring (branch “yes” in 404 ), the metering process can obtain the packet arrival time T A (406). In some aspects, the packet arrival time can be determined down to nanoseconds. When a packet is sent from an egress network interface, the metering process can obtain the packet departure time T of the packet. D (414). In some aspects, the packet departure time can be determined down to nanoseconds. The metering process can provide the packet arrival time and the packet departure time to the flow data exporter.
[0053] In some aspects, the flow data exporter may determine the packet residence time T based on the packet arrival time and the packet departure time received from the metering process. R , where T R =T D -T A (416). The packet residence time can represent the amount of time a packet resides on a network device. The time can include the time it takes a service to process the packet and the time it takes to determine the next hop of the packet. The flow data exporter can create a data flow record and add the packet arrival time, packet departure time, and packet residence period to the data flow record (418). Other data elements can be included in the data record. For example, an observation domain identifier can be added to the data flow record. The observation domain identifier can be a network address, device identifier, globally unique identifier (GUID), or other identifier used to distinguish the network device that created the data flow record from other network devices that provided the data flow record to the traffic collector. In addition, a monitoring instance name can be added to the data flow record. The monitoring instance name identifies the monitoring instance that specifies the criteria for selecting network packets for metering. The metering process can output the data flow record to the traffic flow data collector (420) and the metering operation ends. The data flow record can also include other data elements.
[0054] Figure 5 1 is a flow chart illustrating exemplary operations for collecting and analyzing data flow records according to various aspects of the techniques described in the present disclosure. A traffic flow data collector receives a data flow record of a packet (502). In some aspects, the packet residence time T is not determined at the network device. R , but is determined by the traffic flow data collector (504). The traffic flow data collector can store the data flow records in a database for analysis by the traffic flow data collector or other applications (506).
[0055] In some aspects, the analysis may include determining a packet propagation time for one or more paths between a source and destination pair (508). The total time from source to destination and the network connection propagation time between the network devices in the path can be determined using the packet arrival times and packet departure times of the network devices in the path of the packet propagating from the source to the destination. Figure 1 The exemplary network system 100 shown in , can determine the propagation time of the network connection between network devices 102A and 102B using the packet departure time of the packet from observation point P2 of network device 102A and the packet arrival time of the packet at observation point P3 of network device 102B. Similarly, the total propagation time through network 108 can be determined using the packet arrival time of the packet at observation point P1 and the packet departure time of the packet at observation point P6.
[0056] In addition, the analysis may include determining 510 the network devices and paths (or network connections within a path) with the greatest delay. For example, the propagation time of the network connection and the total propagation time through the network path can be used to determine the paths and connections with the greatest delay. The packet residence time of each network device can be used to determine the network device that causes the greatest delay in the network.
[0057] The results of the above-described analysis can be used to determine actions that can reduce delays in the network. For example, the network device with the greatest delay (e.g., the highest packet residence time) can be analyzed to determine whether any services running on the network device can be removed, or reconfigured, or load balanced to different network devices to reduce the time spent processing packets. In addition, the RIB, FIB, and / or forwarding table can be modified to direct network traffic away from network devices with higher packet residence times and toward network devices with relatively lower packet residence times.
[0058] The above-described techniques have been discussed in the context of services provided by physical network devices. The techniques can also be applied to virtual devices such as virtual routers, virtual switches, etc.
[0059] In some embodiments, the method includes: receiving one or more flow data records from multiple network devices by at least one computing device, each flow data record including a packet arrival time and a packet departure time; determining one or more network paths from a source device to a destination device by at least one computing device from the one or more flow data records, the one or more network paths including two or more network devices from the multiple network devices; identifying a first network device along the one or more network paths having a highest packet residence time by the at least one computing device, the packet residence time being based on the packet arrival time and the packet departure time; and determining a delay reduction action for the first network device by the at least one computing device.
[0060] In some embodiments, the method includes: receiving network packets of a packet stream via a first network interface of a network device; determining, by one or more processors of the network device, a packet arrival time of the network packets at the first network interface; providing, by one or more processors, the network packets to a second network interface of the network device for transmission to a destination; determining, by one or more processors, a packet departure time of the network packets from the second network interface; creating, by one or more processors, a flow data record specifying a packet arrival time and a packet departure time; and providing, by one or more processors, the flow data record to a traffic flow data collector device that is physically separated from the network device.
[0061] The techniques described herein may be implemented in hardware, software, firmware, or any combination thereof. Individual features described as modules, units, or components may be implemented together in an integrated logic device or separately as independent but interoperable logic devices or other hardware devices. In some cases, individual features of electronic circuits may be implemented as one or more integrated circuit devices such as an integrated circuit chip or chipset.
[0062] If implemented in hardware, the present disclosure may be directed to an apparatus such as a processor, processing circuit, or integrated circuit device such as an integrated circuit chip or chipset. Alternatively or in addition, if implemented in software or firmware, the technology may be implemented at least in part by a computer-readable data storage medium including instructions that, when executed, cause the processor to perform one or more of the methods described above. For example, a computer-readable data storage medium may store the instructions to be executed by a processor.
[0063] The computer readable medium may constitute part of a computer program product including packaging materials. The computer readable medium may include computer data storage media such as random access memory (RAM), read-only memory (ROM), non-volatile random access memory (NVRAM), electrically erasable programmable read-only memory (EEPROM), flash memory, magnetic or optical data storage media. In some embodiments, an article of manufacture may include one or more computer readable storage media.
[0064] In some embodiments, computer-readable storage media may include non-volatile media. The term "non-volatile" may indicate that the storage media is not contained in a carrier wave or propagating signal. In certain embodiments, non-volatile storage media may store data that changes over time (e.g., RAM or cache).
[0065] The code or instructions may be software and / or firmware executed by a processing circuit including one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application-specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other equivalent integrated or discrete logic devices, etc. Accordingly, the term "processor" as used herein may refer to any of the above structures or any other structure suitable for implementing the techniques described herein. In addition, in some aspects, the functions described in the present disclosure may be provided in software modules or hardware modules.
[0066] Various implementations have been described. These and other implementations are within the scope of the following examples.
Claims
1. A network device, comprising: a first network interface; Second network interface; Multiple monitoring instances, each monitoring instance having a corresponding monitoring instance name and a corresponding filtering criterion; a packet filter configured to select network packets based on said filtering criteria for each said monitoring instance; The forwarding unit is configured as follows: receiving, via the first network interface, network packets of a packet flow; determining a packet arrival time of the network packet at the first network interface based on a determination that the network packet is the selected network packet; providing the network packet to the second network interface for transmission to a destination; determining, based on a determination that the network packet is the selected network packet, a packet departure time of the selected network packet from the second network interface; as well as The stream data exporter is configured as: creating a flow data record specifying a monitoring instance name, a selection criteria corresponding to a selected network packet, an arrival time of the packet, and a departure time of the packet; and The flow data records are provided to a traffic flow data collector device that is physically separate from the network device.
2. The network device according to claim 1, wherein: The stream data exporter is further configured to: determining a packet residence time of the network device based on the packet arrival time and the packet departure time; and The packet residence time is added to the flow data record provided to a traffic flow data collector.
3. The network device according to claim 1, wherein: The filtering criteria are provided by monitoring instance data of the monitoring instance, the monitoring instance data including a packet source address, a packet destination address, and a protocol.
4. The network device according to claim 3, wherein: The monitoring instance data includes a sampling rate, wherein the packet filter selects network packets according to the sampling rate.
5. The network device according to any one of claims 1 to 2, wherein: The packet arrival time and the packet departure time include a first value in milliseconds, a second value in microseconds, and a third value in nanoseconds.
6. The network device according to any one of claims 1 to 2, wherein: The flow data record is formatted according to a version of the Internet Protocol Flow Information Output (IPFIX) protocol.
7. The network device according to any one of claims 1 to 2, wherein: The flow data record includes an observation domain identifier that identifies the network device.
8. A flow data collector, comprising: one or more processors; as well as A computer readable medium comprising instructions for causing the one or more processors to: receiving one or more flow data records from a plurality of network devices, each of the flow data records comprising a monitoring instance name, a packet arrival time, and a packet departure time of a network packet, wherein the flow data record is generated by a network device of the plurality of network devices based on the network packet matching a filtering criterion specified by the monitoring instance data corresponding to the monitoring instance name; determining, from one or more of the flow data records, one or more network paths from a source device to a destination device, the one or more network paths including two or more of the plurality of network devices; identifying a first network device having a highest packet residence time along the one or more network paths, the packet residence time being based on the packet arrival time and the packet departure time; and A delay reducing action for the first network device is determined.
9. The traffic flow data collector according to claim 8, wherein: The delay reducing action includes a change to at least one forwarding table on a second network device to cause the second network device to forward packets away from the first network device.
10. The flow data collector according to claim 8, wherein: The delay reducing action comprises a change in one or more services provided on the first network device.
11. The flow data collector according to claim 8, wherein: The instructions include instructions for determining a residence time of the packet.
12. The traffic flow data collector according to any one of claims 8 to 11, wherein: Each flow data record includes an observation domain identifier ID, which identifies a source network device among the multiple network devices of the flow data record, wherein the one or more network paths are determined based on the observation domain ID, a source identifier of the source device, and a destination identifier of the destination device.
13. The traffic flow data collector according to any one of claims 8 to 11, wherein: The monitoring instance data includes a packet source address and a packet destination address.
14. The flow data collector according to any one of claims 8 to 11, wherein: The packet arrival time and the packet departure time include a first value in milliseconds, a second value in microseconds, and a third value in nanoseconds.
15. The traffic flow data collector according to any one of claims 8 to 11, wherein: The flow data record is formatted according to the version of the IPFIX protocol.
16. The traffic flow data collector according to any one of claims 8 to 11, wherein: Each flow data record includes an observation domain identifier identifying the network device providing the flow data record.
17. The flow data collector according to any one of claims 8 to 11, wherein: The traffic flow data collector includes a software defined network controller.
18. A method for measuring packet dwell and propagation times, comprising: obtaining, by at least one computing device, a packet arrival time indicating a time when a network packet arrives at the network device from a flow data record received from the network device, wherein the flow data record includes a monitoring instance name indicating monitoring instance data of a selection criterion for the network packet; obtaining, by the at least one computing device, from the flow data record a packet departure time indicating a time when the network packet departed the network device; determining, by the at least one computing device, a packet residence time of the network device based on the packet arrival time and the packet departure time; and A delay reducing action is determined by the at least one computing device and based on a packet residence time of the network device and a packet residence time of a plurality of other network devices.
19. A computer-readable storage medium encoded with instructions for causing one or more programmable processors to perform the method of claim 18.
Citation Information
Patent Citations
System and method for continuous measurement of transit latency in individual data switches and multi-device topologies
US20160277272A1
