Collect error packet information for network policy enforcement

The network device processes the packet at the network stack level, determines the metadata associated with the error and provides it to the network analyzer, which solves the problem of insufficient error packet context information in the existing technology and achieves more fine-grained network policy implementation and security. sexual enhancement.

CN112702383BActive Publication Date: 2024-10-29HEWLETT PACKARD ENTERPRISE DEV LP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202011132939.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-21
Publication Date
2024-10-29
Estimated Expiration
2040-10-21

AI Technical Summary

Technical Problem

Existing technologies cannot effectively provide contextual information associated with error packets when processing telemetry data, resulting in a lack of fine-grainedness when network analyzers implement policies, which may lead to false positives and inability to effectively prevent malicious attacks.

Method used

Process packets through network devices using the network stack, detect and determine metadata associated with errors, generate telemetry data including the metadata, and provide it to the network analyzer for implementation of more fine-grained policies based on context.

Benefits of technology

Allowing network analyzers to enforce policies based on the context of the packet rather than solely on the occurrence of errors reduces false positives, prevents malicious attacks, saves computing resources, and improves network security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112702383B_ABST
    Figure CN112702383B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure relate to collecting error packet information for network policy enforcement. A network device may detect an error associated with a packet based on error information generated by processing the packet at a layer of a network stack. The network device may determine metadata associated with the packet based on detecting the error. The network device may generate telemetry data to include the metadata. The network device may provide the telemetry data to a network analyzer for policy enforcement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the collection of error packet information. Background Art

[0002] Telemetry involves recording received telemetry data into a data structure. Typically, telemetry data is received from a remote or inaccessible source and is used for monitoring and analysis. Telemetry data can be relayed using radio, infrared, ultrasonic, GSM, satellite, or cable, depending on the application. Summary of the invention

[0003] According to some implementations, a method may include: receiving a packet by a network device; processing the packet by the network device using a network stack; determining, by the network device, that the packet is associated with an error based on processing the packet; determining, by the network device, metadata associated with the packet based on determining that the packet is associated with the error; generating, by the network device, telemetry data including the metadata; and providing, by the network device, the telemetry data to a network analyzer to allow the network analyzer to implement network policies based on the metadata.

[0004] According to some implementations, a device may include: one or more memories; and one or more processors, the one or more processors being communicatively coupled to the one or more memories, the one or more processors being configured to: monitor error information associated with a network device processing a plurality of packets received via a network; determine an error rate associated with the plurality of packets based on the error information; determine that the error rate satisfies a threshold; determine metadata associated with an error packet in the plurality of packets based on the error rate satisfying the threshold; generate telemetry data to include the metadata; and provide the telemetry data to cause a network analyzer to automatically implement a policy based on the network device receiving the error packet.

[0005] According to some implementations, a non-transitory computer-readable medium may store one or more instructions. The one or more instructions, when executed by one or more processors, may cause the one or more processors to: detect an error associated with a packet based on error information generated by processing the packet at a layer of a network stack; determine metadata associated with the packet based on detecting the error; generate telemetry data to include the metadata; and provide the telemetry data to a network analyzer for policy enforcement. BRIEF DESCRIPTION OF THE DRAWINGS

[0006] Figures 1A to 1C is a schematic diagram of one or more example implementations described herein.

[0007] Figure 2 is a schematic diagram of an example environment in which the systems and / or methods described herein may be implemented.

[0008] Figure 3and Figure 4 yes Figure 2 A schematic diagram of example components of one or more devices is shown.

[0009] Figures 5 to 7 is a flow diagram of one or more example processes for collecting error packet information for network policy enforcement. DETAILED DESCRIPTION

[0010] The following detailed description of example implementations refers to the accompanying drawings.The same reference numbers in different drawings may identify the same or similar elements.

[0011] In some instances, a network device (e.g., a switch, a router, a gateway, etc.) processes a packet to determine whether the packet is associated with an error. In this case, when processing a packet, the packet is traversed through a network stack (or protocol stack). When a layer of the network stack detects that a packet includes an error or is associated with an error (e.g., an error can be caused), the network device discards the packet. In some instances, the network stack is configured to track such events. For example, the network stack can increment a counter to indicate that a packet error has occurred. Such information can be provided as telemetry data to a network analyzer so that the network analyzer can implement a strategy based on the detection of an error. However, such telemetry data (or such information included in the telemetry data) does not provide any context associated with the packet, only that an error occurs and / or the packet is discarded when the packet is received. Therefore, the strategy implemented by the network analyzer based on such information is implemented without any context associated with the packet, and is mainly based on the fact that the network device experiences an error and / or discards the packet.

[0012] According to some implementations described herein, a network device is configured to determine and / or provide context associated with a packet that causes an error or is associated with an error. For example, a network device may process a packet through a network stack to detect an error associated with the packet, determine metadata associated with the packet, generate telemetry data including the metadata, and provide the metadata to a network analyzer for policy implementation. The packet that causes an error or is associated with an error (the packet may be referred to herein as an "error packet") may include a packet involved in a malicious attack, a packet that disrupts the operation of a device or network, a packet that includes an error (e.g., an incomplete, unreadable packet, etc.), etc.

[0013] Thus, relative to prior art, a network device may be able to obtain and / or provide context associated with a packet causing an error to allow a network analyzer to implement finer-grained policies and / or to allow detection of sources of errors and / or malicious attacks. In addition, such policies may prevent false positives regarding dropped packets (e.g., by enabling a network analyzer to address dropped packets (because packets were incorrectly assumed to be erroneous or malicious)), and / or help prevent such errors and / or malicious attacks by hindering further attacks. In this manner, a network device may save computing resources and / or network resources associated with processing packets and / or resolving malicious attacks associated with a network or device.

[0014] Figures 1A to 1C is a schematic diagram of an example implementation 100 described herein. Example implementation 100 includes a router having an error detector and a network analyzer. The network analyzer and the router may be associated with the same network. For example, the network analyzer may include one or more network devices configured to implement policies associated with routing services through the network via the router and / or any other network device associated with the network. As described herein, the error detector may detect errors associated with received packets, determine metadata associated with the packet corresponding to the context of the packet (the context may be referred to as "packet context" herein), and provide the metadata as telemetry data (and / or within the telemetry data) to the network analyzer to allow the network analyzer to create and / or implement policies based on the context of the packet. Although example implementation 100 is described in conjunction with a router, the examples described herein may be similarly applied to other types of network devices.

[0015] As in Figure 1A In and shown by reference numeral 110, a router receives a packet to be routed via a network. The router may receive packets via one or more wired or wireless connections of the network. These packets may be received as streams. In some implementations, packets are associated with the same data set (e.g., data of a file, data of an image, data of a message, etc.), the same source, etc. Additionally, or alternatively, packets may be received from different sources and / or packets may be associated with different data sets. As shown, a packet "P" (referred to as "the packet" in the examples herein) may include a header and a payload. The header may include information identifying the source of the packet (e.g., an identifier of a source device) and the destination of the packet (e.g., an identifier of a destination device). The payload may correspond to data being delivered to the destination of the packet and / or to be processed at the destination of the packet. For example, the payload may correspond to data to be used in a session (e.g., a communication session, a data exchange, etc.) between a source device and a destination device.

[0016] like Figure 1A The router processes the packet according to the network stack and as further shown in FIG. 1 and by reference numeral 120. During processing, the network stack is configured to traverse the packet (and other received packets) through various layers according to various protocols.

[0017] The network stack may correspond to an open systems interconnection (OSI) model. For example, the network stack may include a first layer (L1) of the network stack that may be a physical layer for a session associated with a packet, a second layer (L2) of the network stack that may be a data link layer for the session, a third layer (L3) that may be a network layer for the session, a fourth layer (L4) that may be a transport layer for the session, a fifth layer (L5) that may be a session layer for the session, a sixth layer (L6) that may be a presentation layer for the session, and a seventh layer (L7) that may be an application layer for the session.

[0018] As shown in example implementation 100, a router may use a network stack configured to process packets through a physical layer, a data link layer, a network layer, and a transport layer. The network stack may be configured to process packets through the various layers according to any suitable configuration. For example, the network stack may be configured to process packets on a separate layer according to one or more protocols for each separate layer to verify the packet. If the packet cannot be verified on a particular layer, the packet may be discarded (e.g., removed from memory, overwritten in memory, etc.). If the packet is verified on a particular layer, the packet continues to move forward to the next layer until the packet traverses the stack and is forwarded to (or forwarded to) the destination.

[0019] In this manner, a router may be configured to process one or more packets using a network stack to allow the router to determine whether a packet is associated with an error (or whether the packet is an error packet).

[0020] As in Figure 1B , and as shown by reference numeral 130, the network stack detects errors associated with a packet (referred to herein as "the packet") and / or drops the packet from the network stack. For example, as shown, at the transport layer, the network stack may be unable to validate the packet (e.g., due to security configuration, due to protocol issues, due to data formatting issues, etc.).

[0021] As shown, the network stack may send an error indicator to an error register of the router. The error register may be configured to track and / or monitor errors (e.g., using a counter). Additionally, or alternatively, the error register may be configured to determine and / or calculate statistical information associated with the error, such as an error rate (e.g., a packet error rate (PER)), an error percentage, and / or other types of error information. In some implementations, the error register may track and / or determine security vulnerabilities (e.g., malware attacks) and / or other security information based on the configuration of the network stack.

[0022] In this manner, the network stack may be configured to indicate receipt of an error packet and cause an error register to update error information associated with the router to allow the error detector to detect the error.

[0023] As in Figure 1B As further shown in the figure and by reference numeral 140, the error detector detects an update to the error information. For example, based on the network stack indicating that the packet is to be invalidated according to the transport layer, the error detector can determine that the packet is associated with an error (or is an error packet). More specifically, the error detector can detect that an error counter of an error register is incremented (e.g., indicating that the packet is an error packet). Additionally, or alternatively, the error detector can determine that the packet is determined to be associated with an error based on the network stack indicating that the packet is to be discarded (e.g., based on the packet being marked or designated as being discarded).

[0024] In some implementations, the error detector may be configured to monitor error information in an error register. For example, the error detector may monitor error information to determine an error rate associated with a router and / or associated with receiving and processing multiple packets via a network stack. The error rate may correspond to the percentage of packets discarded in the number of packets recently received and / or in a recent time period. In some implementations, the error detector may compare the error rate with a threshold value (e.g., a threshold percentage of packets discarded in the number of packets recently received and / or in a recent time period). For example, a filter (e.g., a statistical filter associated with a network stack) may be used to determine that the error rate has met a threshold value. Therefore, the packet in the example implementation 100 may be a packet that causes the error rate to meet a threshold value. In some implementations, the error detector may detect errors using a filter associated with a network stack (e.g., an extended Berkeley packet filter (eBPF) and / or other types of filters).

[0025] In some implementations, the error detector can be configured to monitor error rates associated with packets of a particular type and / or packets having particular characteristics (e.g., from a particular source, intended for a particular destination, having the same or similar payload, being the same size, associated with the same protocol, etc.). For example, the error detector can classify error packets based on the characteristics of the error packets. In this manner, when the error rate associated with a particular type of characteristic meets a threshold, the error detector can determine that the characteristic can provide context for the error packet as a source of errors and / or characteristics to be further examined by the network analyzer for policy enforcement.

[0026] In this manner, via an error detector, a router may detect that the packet (or packets) are associated with an error, as described herein, to allow the error detector to capture the packet and / or determine the context of the packet.

[0027] As in Figure 1B , and shown by reference numeral 150, an error detector captures a packet. For example, based on determining that the packet is an error packet from error information in an error register, the error detector may copy (e.g., read and write) the packet to a temporary register of the error detector. Additionally, or alternatively, the error detector may block and / or prevent the packet from being removed or overwritten. For example, the error detector may remove an indication that the packet is to be discarded and / or an indication that a memory storing packet data (e.g., a memory used by a network stack to process packets) is to be erased or overwritten. According to some implementations, the error detector may capture and / or store a plurality of error packets (e.g., a particular number of most recently received packets).

[0028] In some implementations, the error detector may allow the error packet to be discarded from the network stack after the error detector captures the error packet and / or stores the error packet separately from the memory associated with the network stack.

[0029] In this manner, the error detector may capture an error packet, allowing the error detector to determine metadata associated with the error packet and provide the context of the packet as telemetry data to the network analyzer.

[0030] As in Figure 1C, and shown by reference numeral 160, the error detector generates telemetry data based on metadata of the packet. For example, the error detector can generate telemetry data including metadata associated with the packet. The error detector can generate and / or determine the metadata based on detecting that the received packet is an error packet. As described herein, the metadata can include the source of the packet, the destination of the packet, data from the payload of the packet, etc. Therefore, the metadata can include information from the header of the packet and / or information from a portion of the payload of the packet to allow some context of the packet to be provided within the telemetry data.

[0031] In some implementations, the error detector may determine metadata to be included within the telemetry data based on one or more characteristics of the error packet. For example, the error detector may determine whether to include header information and payload information based on the source of the packet and / or based on the destination of the packet. Additionally, or alternatively, the error detector may determine which metadata to include based on information included in the payload of the packet (e.g., whether the information may be associated with a security vulnerability, incomplete data, etc.). In some implementations, the error detector may determine which metadata to include based on which layer of the network stack invalidated the packet and / or caused the network stack to indicate an error.

[0032] According to some implementations, metadata may be determined from a sample of packets associated with errors (e.g., a sample of multiple packets having the same characteristics as the error packet). For example, if the error detector determines that an error rate associated with multiple received packets meets a threshold (e.g., indicating that the router is experiencing an abnormally high number of errors), the error detector may sample multiple captured (e.g., stored) error packets to determine metadata associated with the multiple error packets. For example, metadata may be generated from a sample of error packets (e.g., a threshold number or a threshold percentage of error packets) to determine a context associated with the error packet. In some implementations, metadata may be determined from a sample of error packets having one or more of the same characteristics (e.g., error packets received from the same source, error packets intended for the same destination, error packets including the same or similar payload, etc.).

[0033] According to some implementations, telemetry data is generated according to a specific protocol. For example, the telemetry data may be generated using a communication protocol for communications and / or messages between a router and a network analyzer (e.g., a remote procedure call (gRPC) protocol). Thus, the generated telemetry data including metadata may enable the recipient to determine that the data will be processed as telemetry data rather than as standard communications.

[0034] In this manner, the error detector may determine metadata associated with the error packet and generate telemetry data including the metadata to allow the error detector to provide the telemetry data to the network analyzer for policy enforcement.

[0035] As in Figure 1C 170, the router provides telemetry data to the network analyzer for network policy enforcement. The router may provide telemetry data based on the error detector generating the telemetry data. Additionally, or alternatively, the telemetry data may be sent according to a schedule and / or in response to a request for telemetry data from the network analyzer. In this case, the error detector and / or the router may be configured to store the telemetry data so that metadata associated with multiple error packets may be sent in batches.

[0036] The router may provide telemetry data via a gRPC channel configured between the router and the network analyzer. Thus, providing telemetry data may enable and / or allow the network analyzer to automatically determine and / or implement network policies for the router's network based on metadata (and / or the context of error packets). Using any suitable technique, the network analyzer may collect and / or store telemetry data including error packet context, monitor the context of error packets for patterns or trends, determine policies based on detected patterns or trends, and deploy and / or implement policies on network devices of the network.

[0037] In this manner, a router (e.g., via an error detector) can obtain context (e.g., from or including metadata) of one or more error packets processed by a network stack, generate telemetry data associated with the context, and provide the telemetry data to a network analyzer to allow the network analyzer to implement network policy based on the context of the one or more error packets.

[0038] Thus, as described herein, a network device enables a network analyzer to implement policies (e.g., automatically) based on the context of a packet rather than solely on the occurrence of an error-causing packet. Such policies may allow a network analyzer to prevent the network device from erroneously dropping packets (e.g., if a presumed error packet is determined by the network analyzer to be benign). Additionally, or alternatively, a network device may allow a network analyzer to implement policies that automatically block packets received from a particular source, packets that include a particular type of data, packets being transmitted to a particular destination, packets of a particular format, etc.

[0039] As indicated above, the examples are provided only as one or more examples. Figures 1A to 1C Other examples can be found with Figures 1A to 1C The content described is different.

[0040] Figure 2 2 is a schematic diagram of an example environment 200 in which the systems and / or methods described herein may be implemented. Figure 2 As shown in FIG. 2 , environment 200 may include source device 210, destination device 220, network 230, one or more network devices 240 (referred to herein individually as “network device 240” or collectively as “network devices 240”), and network analyzer 250. Devices in environment 200 may be connected to each other via wired connections, wireless connections, or a combination of wired and wireless connections.

[0041] The source device 210 and / or the destination device 220 may include one or more user devices. For example, as described herein, the source device 210 and / or the destination device 220 may include one or more devices capable of receiving, generating, storing, processing, and / or providing network traffic associated with an application and / or a session. The source device 210 and / or the destination device 220 may include a communication device and / or a computing device, such as a mobile phone (e.g., a smart phone, a wireless phone, etc.), a laptop computer, a tablet computer, a handheld computer, a desktop computer, a gaming device, a wearable communication device (e.g., a smart watch, a pair of smart glasses, etc.), or a similar type of device. In some implementations, the source device 210 and / or the destination device 220 may be a cloud-based platform, a web-based platform, an online platform, etc. in a cloud computing environment.

[0042] The network device 240 includes one or more devices (e.g., one or more traffic delivery devices) capable of processing and / or delivering traffic between endpoint devices (e.g., between the source device 210 and the destination device 220) and / or other networks. For example, the network device 240 may include a router, a gateway, a switch, a hub, a bridge, a reverse proxy, a server (e.g., a proxy server), a firewall, a security device, an intrusion detection device, a load balancer, or a similar device.

[0043] The network analyzer 250 may include one or more devices for implementing policies (e.g., business policies, routing policies, security policies, etc.) of the network 230. For example, the network analyzer 250 may include or be associated with a server (e.g., a proxy server), a firewall, a security device, an intrusion detection device, a load balancer, or other security device of the network that can be used to allow or block network traffic associated with the network. For example, the network device may use a set of policies to block or allow network traffic sent to the network, network traffic sent from the network, and / or network traffic sent within the network. In some implementations, the network analyzer 250 may be a physical device implemented within a housing (such as a rack). In some implementations, the network analyzer 250 may be a virtual device implemented by one or more computer devices in a cloud computing environment or a data center.

[0044] Provided in Figure 2 The number and arrangement of devices and networks shown in the FIG. are provided as one or more examples. Figure 2 There may be additional devices and / or networks, fewer devices and / or networks, different devices and / or networks, or differently arranged devices and / or networks compared to those devices and / or networks shown in FIG. Figure 2 or more devices shown in Figure 2 The single device shown in the environment 200 is implemented as multiple distributed devices. Additionally, or alternatively, a group of devices (eg, one or more devices) in the environment 200 can perform one or more functions described as being performed by another group of devices in the environment 200.

[0045] Figure 3 300. Device 300 may correspond to network device 240. In some implementations, network device 240 may include one or more devices 300 and / or one or more components of device 300. Figure 3 As shown in the figure, the device 300 may include one or more input components 305-1 to 305-B (B≥1) (hereinafter collectively referred to as input component 305, and individually referred to as input component 305), a switching component 310, one or more output components 315-1 to 315-C (C≥1) (hereinafter collectively referred to as output component 315, and individually referred to as output component 315) and a controller 320.

[0046] The input component 305 can be an attachment point for a physical link and can be an entry point for incoming traffic (such as packets). The input component 305 can process incoming traffic, such as by performing data link layer encapsulation or decapsulation. In some implementations, the input component 305 can send and / or receive packets. In some implementations, the input component 305 may include an input line card, which includes one or more packet processing components (e.g., in the form of an integrated circuit), such as one or more interface cards (IFCs), a packet forwarding component, a line card controller component, an input port, a processor, a memory, and / or an input queue. In some implementations, the device 300 may include one or more input components 305.

[0047] The switch component 310 can interconnect the input component 305 and the output component 315. In some implementations, the switch component 310 can be implemented via one or more crossbar switches, via a bus, and / or using a shared memory. The shared memory can act as a temporary buffer to store packets from the input component 305 before the packets are finally scheduled for delivery to the output component 315. In some implementations, the switch component 310 can enable the input component 305, the output component 315, and / or the controller 320 to communicate.

[0048] The output component 315 can store packets and can schedule packets for transmission on an output physical link. The output component 315 can support data link layer encapsulation or decapsulation and / or various higher-level protocols. In some implementations, the output component 315 can send packets and / or receive packets. In some implementations, the output component 315 may include an output line card, which includes one or more packet processing components (e.g., in the form of an integrated circuit), such as, one or more IFCs, packet forwarding components, line card controller components, output ports, processors, memories, and / or output queues. In some implementations, the device 300 may include one or more output components 315. In some implementations, the input component 305 and the output component 315 can be implemented by the same set of components (e.g., and the input / output component can be a combination of the input component 305 and the output component 315).

[0049] The controller 320 is implemented in hardware, firmware, or a combination of hardware and software. The controller 320 includes, for example, a processor in the form of a central processing unit (CPU), a graphics processing unit (GPU), an accelerated processing unit (APU), a microprocessor, a microcontroller, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), and / or another type of processor. In some implementations, the controller 320 may include one or more processors that can be programmed to perform functions. The controller 320 may correspond to and / or implement the error detector in the example implementation 100.

[0050] In some implementations, the controller 320 may include random access memory (RAM), read-only memory (ROM), and / or another type of dynamic or static storage device (e.g., flash memory, magnetic storage, optical storage, etc.) that stores information and / or instructions for use by the controller 320.

[0051] In some implementations, the controller 320 can communicate with other devices, networks, and / or systems connected to the device 300 to exchange information about the network topology. The controller 320 can create a routing table based on the network topology information, create a forwarding table based on the routing table, and forward the forwarding table to the input component 305 and / or the output component 315. The input component 305 and / or the output component 315 can use the forwarding table to perform a routing lookup for incoming and / or outgoing packets.

[0052] The controller 320 can perform one or more processes described herein. The controller 320 can perform these processes in response to executing software instructions stored by a non-transient computer readable medium. A computer readable medium is defined herein as a non-transient memory device. A memory device includes a memory space within a single physical storage device or a memory space extended between multiple physical storage devices.

[0053] The software instructions may be read from another computer-readable medium or from another device into a memory and / or storage component associated with the controller 320 via a communication interface. The software instructions stored in the memory and / or storage component associated with the controller 320, when executed, may cause the controller 320 to perform one or more processes described herein. Additionally, or alternatively, hardwired circuitry may be used instead of or in conjunction with software instructions for performing one or more processes described herein. Thus, the implementations described herein are not limited to any specific combination of hardware circuitry and software.

[0054] Provided in Figure 3 The number and arrangement of components shown in FIG. are examples. In practice, Figure 3 Device 300 may include additional components, fewer components, different components, or differently arranged components than those components shown in . Additionally, or alternatively, a set of components (e.g., one or more components) of device 300 may perform one or more functions described as being performed by another set of components of device 300.

[0055] Figure 44 is a diagram of example components of device 400. Device 400 may correspond to source device 210, destination device 220, network device 240, network analyzer 250, and / or device 300. In some implementations, source device 210, destination device 220, network device 240, and / or network analyzer 250 may include one or more devices 400 and / or one or more components of device 400. Figure 4 As shown in , device 400 may include a bus 410 , a processor 420 , a memory 430 , a storage component 440 , an input component 450 , an output component 460 , and a communication interface 470 .

[0056] The bus 410 includes components that allow communication between multiple components of the device 400. The processor 420 is implemented in hardware, firmware, or a combination of hardware and software. The processor 420 takes the form of a central processing unit (CPU), a graphics processing unit (GPU), an accelerated processing unit (APU), a microprocessor, a microcontroller, a digital signal processor (DSP), a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or another type of processing component. In some implementations, the processor 420 includes one or more processors that can be programmed to perform functions. The memory 430 includes a random access memory (RAM), a read-only memory (ROM), and / or another type of dynamic or static storage device (e.g., flash memory, magnetic memory, and / or optical memory) that stores information and / or instructions for use by the processor 420.

[0057] Storage component 440 stores information and / or software related to the operation and use of device 400. For example, storage component 440 may include: a hard disk (e.g., a magnetic disk, an optical disk, and / or a magneto-optical disk), a solid-state drive (SSD), a compact disk (CD), a digital versatile disk (DVD), a floppy disk, a cassette, a magnetic tape, and / or another type of non-transitory computer-readable medium and a corresponding drive. Storage component 440 may be used to store and / or implement a security policy database in example implementation 100.

[0058] Input components 450 include components that allow device 400 to receive information, such as via user input (e.g., a touch screen display, a keyboard, a keypad, a mouse, buttons, switches, and / or a microphone). Additionally, or alternatively, input components 425 may include components for determining location (e.g., a global positioning system (GPS) component) and / or sensors (e.g., an accelerometer, a gyroscope, an actuator, another type of position sensor or an environmental sensor, etc.). Output components 460 include components that provide output information from device 400 (e.g., via a display, a speaker, a tactile feedback component, an audio or visual indicator, etc.).

[0059] The communication interface 470 includes a transceiver-like component (e.g., a transceiver, a separate receiver, a separate transmitter, etc.) that enables the device 400 to communicate with other devices (e.g., via a wired connection, a wireless connection, or a combination of a wired connection and a wireless connection). The communication interface 470 can allow the device 400 to receive information from another device and / or provide information to another device. For example, the communication interface 470 may include an Ethernet interface, an optical interface, a coaxial interface, an infrared interface, a radio frequency (RF) interface, a universal serial bus (USB) interface, a Wi-Fi interface, a cellular network interface, etc.

[0060] Device 400 can perform one or more processes described herein. Device 400 can perform these processes based on processor 420 executing software instructions stored by non-transient computer-readable media (such as, memory 430 and / or storage component 440). As used herein, the term "computer-readable medium" refers to a non-transient memory device. The memory device includes memory space within a single physical storage device or memory space extended between multiple physical storage devices.

[0061] The software instructions may be read from another computer-readable medium or from another device into the memory 430 and / or storage component 440 via the communication interface 470. The software instructions stored in the memory 430 and / or storage component 440, when executed, may cause the processor 420 to perform one or more processes described herein. Additionally, or alternatively, hardware circuitry may be used instead of or in conjunction with software instructions for performing one or more processes described herein. Thus, the implementations described herein are not limited to any specific combination of hardware circuitry and software.

[0062] Provided in Figure 4 The number and arrangement of components shown in FIG. are examples. In practice, Figure 4 Device 400 may include additional components, fewer components, different components, or differently arranged components than those components shown in . Additionally, or alternatively, a set of components (e.g., one or more components) of device 400 may perform one or more functions described as being performed by another set of components of device 400.

[0063] Figure 5 is a flow chart of an example process 500 for collecting error packet information for network policy enforcement. In some implementations, Figure 5 One or more process blocks in may be performed by a network device (e.g., network device 240). In some implementations, Figure 5 One or more process blocks in may be performed by another device or group of devices separate from or including the network device, such as network analyzer 250 or the like.

[0064] As in Figure 5 As shown in FIG. 5 , process 500 may include receiving a packet (block 510). For example, as described above, a network device (e.g., using input component 305, switching component 310, output component 315, controller 320, processor 420, memory 430, storage component 440, input component 450, output component 460, communication interface 470, etc.) may receive a packet.

[0065] As in Figure 5 As further shown in FIG. 5 , process 500 may include: processing the packet using a network stack (block 520). For example, as described above, a network device (e.g., using input component 305, switching component 310, output component 315, controller 320, processor 420, memory 430, storage component 440, input component 450, output component 460, communication interface 470, etc.) may process the packet using a network stack.

[0066] As in Figure 5 As further shown in FIG. 5 , process 500 may include determining that the packet is associated with an error based on processing the packet (block 530). For example, as described above, the network device (e.g., using input component 305, switch component 310, output component 315, controller 320, processor 420, memory 430, storage component 440, input component 450, output component 460, communication interface 470, etc.) may determine that the packet is associated with an error based on processing the packet.

[0067] As in Figure 5 As further shown in FIG. 5 , process 500 may include determining metadata associated with the packet based on determining that the packet is associated with an error (block 540). For example, as described above, the network device (e.g., using input component 305, switch component 310, output component 315, controller 320, processor 420, memory 430, storage component 440, input component 450, output component 460, communication interface 470, etc.) may determine metadata associated with the packet based on determining that the packet is associated with an error.

[0068] As in Figure 5 As further shown in FIG. 5 , process 500 may include generating telemetry data including metadata (block 550). For example, as described above, a network device (e.g., using input component 305, switch component 310, output component 315, controller 320, processor 420, memory 430, storage component 440, input component 450, output component 460, communication interface 470, etc.) may generate telemetry data including metadata.

[0069] As in Figure 5As further shown, process 500 may include providing telemetry data to a network analyzer to allow the network analyzer to implement network policies based on the metadata (block 560). For example, as described above, a network device (e.g., using input component 305, switch component 310, output component 315, controller 320, processor 420, memory 430, storage component 440, input component 450, output component 460, communication interface 470, etc.) may provide telemetry data to a network analyzer to allow the network analyzer to implement network policies based on the metadata.

[0070] Process 500 may include additional implementations, such as any single implementation or any combination of implementations described below and / or in conjunction with one or more other processes described elsewhere herein.

[0071] In a first implementation, the packet is determined to be associated with an error based on the network stack indicating that the packet is to be dropped, and the method further includes: capturing the packet, extracting metadata from the packet, and enabling the packet to be dropped. In a second implementation, either alone or in combination with the first implementation, the packet is determined to be associated with an error based on an error counter being incremented as the packet is processed through layers of the network stack. In a third implementation, either alone or in combination with one or more of the first and second implementations, the metadata is determined based on the packet being processed through a particular layer of the network stack.

[0072] In a fourth implementation, either alone or in combination with one or more of the first to third implementations, metadata is determined using a filter of a network stack that is triggered based on a packet being dropped by the network stack. In a fifth implementation, either alone or in combination with one or more of the first to fourth implementations, an error causes an error rate associated with the network stack processing a plurality of packets to satisfy a threshold, and metadata is determined based on the error causing the error rate to satisfy the threshold. In a sixth implementation, either alone or in combination with one or more of the first to fifth implementations, telemetry data is provided to a network analyzer via a remote procedure call channel.

[0073] Although Figure 5 Example blocks of process 500 are shown, but in some implementations, Figure 5 Process 500 may include additional blocks, fewer blocks, different blocks, or differently arranged blocks compared to those blocks depicted in . Additionally, or alternatively, two or more of the blocks in process 500 may be performed in parallel.

[0074] Figure 6 is a flow chart of an example process 600 for collecting error packet information for network policy enforcement. In some implementations, Figure 6One or more process blocks in may be performed by a network device (e.g., network device 240). In some implementations, Figure 6 One or more process blocks in may be performed by another device or group of devices separate from or including the network device, such as network analyzer 250 or the like.

[0075] As in Figure 6 , process 600 may include monitoring error information associated with processing of a plurality of packets received via a network by a network device (block 610). For example, as described above, a network device (e.g., using input component 305, switching component 310, output component 315, controller 320, processor 420, memory 430, storage component 440, input component 450, output component 460, communication interface 470, etc.) may monitor error information associated with processing of a plurality of packets received via a network by a network device.

[0076] As in Figure 6 As further shown in FIG. 6 , process 600 may include determining an error rate associated with the plurality of packets based on the error information (block 620). For example, as described above, the network device (e.g., using input component 305, switch component 310, output component 315, controller 320, processor 420, memory 430, storage component 440, input component 450, output component 460, communication interface 470, etc.) may determine an error rate associated with the plurality of packets based on the error information.

[0077] As in Figure 6 As further shown in FIG. 6 , process 600 may include determining that the error rate satisfies a threshold (block 630). For example, as described above, the network device (e.g., using input component 305, switch component 310, output component 315, controller 320, processor 420, memory 430, storage component 440, input component 450, output component 460, communication interface 470, etc.) may determine that the error rate satisfies a threshold.

[0078] As in Figure 6 As further shown in FIG. 6 , process 600 may include determining metadata associated with an error packet in the plurality of packets based on the error rate satisfying a threshold (block 640). For example, as described above, the network device (e.g., using input component 305, switch component 310, output component 315, controller 320, processor 420, memory 430, storage component 440, input component 450, output component 460, communication interface 470, etc.) may determine metadata associated with an error packet in the plurality of packets based on the error rate satisfying a threshold.

[0079] As in Figure 6As further shown in FIG. 6 , process 600 may include generating telemetry data to include metadata (block 650). For example, as described above, a network device (e.g., using input component 305, switch component 310, output component 315, controller 320, processor 420, memory 430, storage component 440, input component 450, output component 460, communication interface 470, etc.) may generate telemetry data to include metadata.

[0080] As in Figure 6 As further shown in FIG. 6 , process 600 may include providing telemetry data to cause the network analyzer to automatically implement a policy based on the network device receiving an error packet (block 660). For example, as described above, the network device (e.g., using input component 305, switching component 310, output component 315, controller 320, processor 420, memory 430, storage component 440, input component 450, output component 460, communication interface 470, etc.) may provide telemetry data to cause the network analyzer to automatically implement a policy based on the network device receiving an error packet.

[0081] Process 600 may include additional implementations, such as any single implementation or any combination of implementations described below and / or in conjunction with one or more other processes described elsewhere herein.

[0082] In a first implementation, metadata associated with the error packets is determined based on sampling a plurality of error packets to identify an error packet within the plurality of error packets, and the plurality of error packets cause an error rate to satisfy a threshold.

[0083] In a second implementation, either alone or in combination with the first implementation, the error packet is captured based on the error information indicating that the error packet is associated with an error. In a third implementation, either alone or in combination with one or more of the first and second implementations, the error information is generated based on a network stack that is processing the plurality of packets. In a fourth implementation, either alone or in combination with one or more of the first to third implementations, the error rate is determined using a statistical filter associated with the network stack that is processing the plurality of packets.

[0084] In a fifth implementation, either alone or in combination with one or more of the first to fourth implementations, the error rate is associated with a plurality of packets including a plurality of error packets having the same characteristic, the error packet being one of the plurality of packets and having the same characteristic, and the metadata including information identifying the same characteristic. In a sixth implementation, either alone or in combination with one or more of the first to fifth implementations, the telemetry data causes the network analyzer to automatically implement a policy based on the telemetry data received via a remote procedure call channel between the network analyzer and the network device.

[0085] Although Figure 6 Example blocks of process 600 are shown, but in some implementations, Figure 6 The process 600 may include additional blocks, fewer blocks, different blocks, or differently arranged blocks compared to those blocks depicted in the process 600. Additionally or alternatively, two or more of the blocks in the process 600 may be performed in parallel.

[0086] Figure 7 is a flow chart of an example process 700 for collecting error packet information for network policy enforcement. In some implementations, Figure 7 One or more process blocks in may be performed by a network device (e.g., network device 240). In some implementations, Figure 7 One or more process blocks in may be performed by another device or group of devices separate from or including the network device, such as network analyzer 250 or the like.

[0087] As in Figure 7 As shown in , process 700 may include: detecting errors associated with packets based on error information generated by processing packets at layers of a network stack. For example, as described above, a network device (e.g., using input component 305, switching component 310, output component 315, controller 320, processor 420, memory 430, storage component 440, input component 450, output component 460, communication interface 470, etc.) may detect errors associated with packets based on error information generated by processing packets at layers of a network stack.

[0088] As in Figure 7 As shown in FIG. 7 , process 700 may include determining metadata associated with the packet based on detecting an error (block 720). For example, as described above, a network device (e.g., using input component 305, switching component 310, output component 315, controller 320, processor 420, memory 430, storage component 440, input component 450, output component 460, communication interface 470, etc.) may determine metadata associated with the packet based on detecting an error.

[0089] As in Figure 7 As further shown in FIG. 7 , process 700 may include generating telemetry data to include metadata (block 730). For example, as described above, a network device (e.g., using input component 305, switch component 310, output component 315, controller 320, processor 420, memory 430, storage component 440, input component 450, output component 460, communication interface 470, etc.) may generate telemetry data to include metadata.

[0090] As in Figure 7As further shown in FIG. 7 , process 700 may include providing telemetry data to a network analyzer for policy enforcement (block 740). For example, as described above, a network device (e.g., using input component 305, switch component 310, output component 315, controller 320, processor 420, memory 430, storage component 440, input component 450, output component 460, communication interface 470, etc.) may provide telemetry data to a network analyzer for policy enforcement.

[0091] Process 700 may include additional implementations, such as any single implementation or any combination of implementations described below and / or in conjunction with one or more other processes described elsewhere herein.

[0092] In a first implementation, the layer of the network stack corresponds to at least one of: a network layer, or a transport layer. In a second implementation, either alone or in combination with the first implementation, the packet is determined to be associated with an error based on an error counter being incremented as the packet is processed through the layers of the network stack.

[0093] In a third implementation, alone or in combination with one or more of the first and second implementations, the metadata includes information from a header of the packet. In a fourth implementation, alone or in combination with one or more of the first to third implementations, the metadata includes a header of the packet and at least a portion of a payload of the packet. In a fifth implementation, alone or in combination with one or more of the first to fourth implementations, the metadata is determined based on information in a header of the packet.

[0094] Although Figure 7 Example blocks of process 700 are shown, but in some implementations, Figure 7 The process 700 may include additional blocks, fewer blocks, different blocks, or differently arranged blocks compared to those blocks depicted in the process 700. Additionally or alternatively, two or more of the blocks in the process 700 may be performed in parallel.

[0095] According to some implementations, the following examples are provided.

[0096] Example 1. A method comprising: receiving a packet by a network device; processing the packet by the network device using a network stack; determining by the network device that the packet is associated with an error based on processing the packet; determining by the network device metadata associated with the packet based on determining that the packet is associated with the error; generating telemetry data including the metadata by the network device; and providing the telemetry data to a network analyzer by the network device to allow the network analyzer to implement network policies based on the metadata.

[0097] Example 2. A method according to Example 1, wherein the packet is determined to be associated with an error based on a network stack indicating that the packet is to be dropped, and wherein the method further comprises: capturing the packet; extracting metadata from the packet; and enabling the packet to be dropped.

[0098] Example 3. The method of Example 1, wherein the packet is determined to be associated with an error based on an error counter being incremented as the packet is processed through layers of a network stack.

[0099] Example 4. The method of Example 1, wherein the metadata is determined based on the packet being processed through a particular layer of a network stack.

[0100] Example 5. The method of Example 1, wherein the metadata is determined using a filter of a network stack, the filter being triggered based on the packet being dropped by the network stack.

[0101] Example 6. The method of Example 1, wherein the errors cause an error rate associated with the network stack processing the plurality of packets to satisfy a threshold, and wherein the metadata is determined based on the errors causing the error rate to satisfy the threshold.

[0102] Example 7. The method of example 1, wherein the telemetry data is provided to the network analyzer via a remote procedure call channel.

[0103] Example 8. A device comprising: one or more memories; and one or more processors, communicatively coupled to the one or more memories, the one or more processors configured to: monitor error information associated with a network device processing a plurality of packets received via a network; determine an error rate associated with the plurality of packets based on the error information; determine that the error rate satisfies a threshold; determine metadata associated with an error packet in the plurality of packets based on the error rate satisfying the threshold; generate telemetry data to include the metadata; and provide the telemetry data to cause a network analyzer to automatically implement a policy based on the network device receiving the error packet.

[0104] Example 9. The apparatus of Example 8, wherein metadata associated with the error packets is determined based on sampling a plurality of error packets to identify error packets within the plurality of error packets, wherein the plurality of error packets cause an error rate to satisfy a threshold.

[0105] Example 10. The apparatus of Example 8, wherein the error packet is captured based on the error information indicating that the error packet is associated with an error.

[0106] Example 11. The apparatus of Example 8, wherein the error information is generated based on a network stack that is processing the plurality of packets.

[0107] Example 12. The apparatus of Example 8, wherein the error rate is determined using a statistical filter associated with a network stack that is processing the plurality of packets.

[0108] Example 13. A device according to Example 8, wherein the error rate is associated with multiple groups including multiple error groups having the same characteristic, wherein the error group is one group in the multiple groups and has the same characteristic, and wherein the metadata includes information identifying the same characteristic.

[0109] Example 14. The device of example 8, wherein the telemetry data causes the network analyzer to automatically implement a policy based on the telemetry data received via a remote procedure call channel between the network analyzer and the network device.

[0110] Example 15. A non-transitory computer-readable medium storing instructions, the instructions comprising: one or more instructions that, when executed by one or more processors of a network device, cause the one or more processors to: detect errors associated with packets based on error information generated by processing the packets at a layer of a network stack; determine metadata associated with the packets based on detecting the errors; generate telemetry data to include the metadata; and provide the telemetry data to a network analyzer for policy enforcement.

[0111] Example 16. A non-transitory computer-readable medium according to Example 15, wherein the layer of the network stack corresponds to at least one of: a network layer, or a transport layer.

[0112] Example 17. The non-transitory computer readable medium of Example 15, wherein the packet is determined to be associated with an error based on an error counter being incremented as the packet is processed through layers of a network stack.

[0113] Example 18. The non-transitory computer-readable medium of Example 15, wherein the metadata comprises information from a header of the packet.

[0114] Example 19. The non-transitory computer-readable medium of Example 15, wherein the metadata comprises a header of the packet and at least a portion of a payload of the packet.

[0115] Example 20. The non-transitory computer-readable medium of Example 15, wherein the metadata is determined based on information in a header of the packet.

[0116] The foregoing disclosure provides illustration and description, but is not intended to be exhaustive or to limit the implementations to the precise forms disclosed. Modifications and variations may be made in light of the above disclosure or may be acquired from practice of the implementations.

[0117] As used herein, the term "service" or "content" may include a group of packets. A packet may refer to a communication structure for transmitting information, such as a protocol data unit (PDU), a network packet, a datagram, a segment, a message, a block, a cell, a frame, a subframe, a time slot, a symbol, a portion of any of the above, and / or another formatted or unformatted data unit capable of being transmitted via a network.

[0118] As used herein, the term "component" is intended to be broadly interpreted as hardware, firmware, and / or a combination of hardware and software.

[0119] Some implementations are described herein in conjunction with thresholds. As used herein, satisfying a threshold may refer to a value being greater than a threshold, more than a threshold, above a threshold, greater than or equal to a threshold, less than a threshold, less than a threshold, below a threshold, less than or equal to a threshold, equal to a threshold, etc., depending on the context.

[0120] It will be apparent that the systems and / or methods described herein may be implemented in various forms of hardware, firmware, or a combination of hardware and software. The actual dedicated control hardware or software code used to implement these systems and / or methods is not a limitation of the implementation. Therefore, the operation and behavior of the systems and / or methods are not described herein with reference to specific software code—it should be understood that software and hardware may be designed to implement the systems and / or methods based on the description herein.

[0121] Although particular combinations of features are recited in the claims and / or disclosed in this specification, these combinations are not intended to limit the disclosure of the various implementations. In fact, many of these features may be combined in ways not specifically recited in the claims and / or disclosed in this specification. Although each dependent claim listed below may only directly depend on one claim, the disclosure of the various implementations includes each dependent claim and every other claim in the claim set.

[0122] Elements, actions or instructions used herein should not be interpreted as being critical or necessary unless clearly described as such. Likewise, as used herein, the articles "one" and "an" are intended to include one or more items, and can be used interchangeably with "one or more". Further, as used herein, the article "the" is intended to include one or more items quoted in conjunction with the article "the", and can be used interchangeably with "one or more". In addition, as used herein, the term "set" is intended to include one or more items (e.g., related items, unrelated items, combinations of related items and unrelated items, etc.), and can be used interchangeably with "one or more". In the case of only one item expected, phrases "only one" or similar language are used. Likewise, as used herein, the terms "have", "have", "have (having)" etc. are intended to be open terms. Further, the phrase "based on" is intended to represent "based at least in part", unless otherwise explicitly stated. Likewise, as used herein, when the term "or" is used in a series, the term "or" is intended to be inclusive and can be used interchangeably with "and / or" unless expressly stated otherwise (e.g., if used in conjunction with "either of" or "only one of...").

Claims

1. A method for implementing a strategy, comprising: monitoring error information associated with processing by a network device of a plurality of packets received via a network; determining an error rate associated with the plurality of packets based on the error information; Determining that the error rate satisfies a threshold; determining metadata associated with an error packet in the plurality of packets based on the error rate satisfying the threshold, wherein the metadata associated with the error packet is determined based on sampling a plurality of error packets in the plurality of packets to identify the error packet within the plurality of error packets, and wherein the plurality of error packets cause the error rate to satisfy the threshold; generating telemetry data to include the metadata; as well as The telemetry data is provided to cause a network analyzer to automatically implement the policy based on receipt of the error packet by the network device.

2. The method of claim 1, wherein the error packet is captured based on the error information indicating that the error packet is associated with an error.

3. The method of claim 1 or 2, wherein the error information is generated based on a network stack that is processing the plurality of packets.

4. The method of claim 1 or 2, wherein the error rate is determined using a statistical filter associated with a network stack that is processing the plurality of packets.

5. The method according to claim 1 or 2, wherein the error rate is associated with the plurality of packets including a plurality of error packets having the same characteristics, wherein the error group is one of the plurality of groups and has the same characteristics, and The metadata includes information identifying the same characteristic.

6. The method of claim 1 or 2, wherein the telemetry data causes the network analyzer to automatically implement the policy based on the telemetry data received via a remote procedure call channel between the network analyzer and the network device.

7. A device for implementing a policy, comprising: one or more memories; as well as One or more processors, communicatively coupled to the one or more memories, the one or more processors configured to: monitoring error information associated with processing by a network device of a plurality of packets received via a network; determining an error rate associated with the plurality of packets based on the error information; Determining that the error rate satisfies a threshold; determining metadata associated with an error packet in the plurality of packets based on the error rate satisfying the threshold, wherein the metadata associated with the error packet is determined based on sampling a plurality of error packets in the plurality of packets to identify the error packet within the plurality of error packets, and wherein the plurality of error packets cause the error rate to satisfy the threshold; generating telemetry data to include the metadata; as well as The telemetry data is provided to cause a network analyzer to automatically implement the policy based on receipt of the error packet by the network device.

8. The apparatus of claim 7, wherein the error packet is captured based on the error information indicating that the error packet is associated with an error.

9. The apparatus of claim 7 or 8, wherein the error information is generated based on a network stack that is processing the plurality of packets.

10. The apparatus of claim 7 or 8, wherein the error rate is determined using a statistical filter associated with a network stack that is processing the plurality of packets.

11. The apparatus according to claim 7 or 8, wherein the error rate is associated with the plurality of packets including a plurality of error packets having the same characteristics, wherein the error group is one of the plurality of groups and has the same characteristics, and The metadata includes information identifying the same characteristic.

12. The device of claim 7 or 8, wherein the telemetry data causes the network analyzer to automatically implement the policy based on the telemetry data received via a remote procedure call channel between the network analyzer and the network device.

13. A non-transitory computer-readable medium storing instructions, the instructions comprising: One or more instructions that, when executed by one or more processors of a network device, cause the one or more processors to: monitoring error information associated with processing by a network device of a plurality of packets received via a network; determining an error rate associated with the plurality of packets based on the error information; Determining that the error rate satisfies a threshold; determining metadata associated with an error packet in the plurality of packets based on the error rate satisfying the threshold, wherein the metadata associated with the error packet is determined based on sampling a plurality of error packets in the plurality of packets to identify the error packet within the plurality of error packets, and wherein the plurality of error packets cause the error rate to satisfy the threshold; generating telemetry data to include the metadata; as well as The telemetry data is provided to cause a network analyzer to automatically implement a policy based on receipt of the error packet by the network device.

14. The non-transitory computer readable medium of claim 13, wherein the error packet is captured based on the error information indicating that the error packet is associated with an error.

15. The non-transitory computer readable medium of claim 13 or 14, wherein the error information is generated based on a network stack that is processing the plurality of packets.

16. The non-transitory computer readable medium of claim 13 or 14, wherein the error rate is determined using a statistical filter associated with a network stack that is processing the plurality of packets.

17. The non-transitory computer readable medium of claim 13 or 14, wherein the error rate is associated with the plurality of packets including a plurality of error packets having the same characteristic, wherein the error group is one of the plurality of groups and has the same characteristics, and The metadata includes information identifying the same characteristic.

18. The non-transitory computer-readable medium of claim 13 or 14, wherein the telemetry data causes the network analyzer to automatically implement the policy based on the telemetry data received via a remote procedure call channel between the network analyzer and the network device.

Citation Information

Patent Citations

  • Technologies for secure personalization of a security monitoring virtual network function

    US20160373474A1

  • Sub-second network telemetry using a publish-subscribe messaging system

    US20180262585A1

  • Centralized error telemetry using segment routing header tunneling

    US20190104048A1