What is Embedded Packet Capture?
Embedded Packet Capture (EPC) is a Cisco feature that enables packet capture directly on the network device without the need for external hardware or port mirroring. EPC leverages the device’s internal resources to capture traffic on specified interfaces, store the data temporarily in onboard buffers or files, and then export the captured packets for analysis.
Advantages of EPC include:
On-device capture: No additional hardware is needed.
Granular filtering: Capture specific traffic types or flows.
Low impact: Efficient resource use to minimize device performance degradation.
Flexibility: Capture on physical interfaces or other logical interfaces.
Benefits of Embedded Packet Capture
-
The device can capture IPv4 and IPv6 packets, as well as non-IP packets using a MAC filter or by matching any MAC address.
-
Extensible infrastructure for enabling packet capture points. A capture point is a traffic transit location used for capturing packets and associating them with a buffer.
-
The packet capture can be exported in a packet capture file (PCAP) format. This format is suitable for analysis using any external tool.
-
Methods to decode data packets captured with varying degrees of detail.
Prerequisites for Configuring Embedded Packet Capture
The Embedded Packet Capture (EPC) software subsystem consumes CPU and memory resources during its operation. You must have adequate system resources for different types of operations. The following table provides some guidelines for using the system resources.
| System resources | Requirements |
|---|---|
|
Hardware |
CPU utilization requirements are platform-dependent. |
|
Memory |
The DRAM stores the packet buffer. The size of the packet buffer is user specified. |
|
Disk space |
Packets can be exported to external devices. No intermediate storage on flash disk is required. |
Restrictions for Configuring Embedded Packet Capture
The following restrictions apply to Embedded Packet Capture (EPC):
-
You cannot use VRFs, management ports, or private VLANs as attachment points.
-
A VLAN interface that is in shutdown state does not support EPC.
-
If you change an interface from switch port to routed port (Layer 2 to Layer 3), or vice versa, you must delete the capture point and create a new one once the interface comes back up. Stopping and starting the capture point will not work.
-
Packets captured in the output direction of an interface might not reflect the changes made by the device rewrite including TTL, VLAN tag, CoS, checksum, MAC addresses, DSCP, precedent, and UP.
-
Even though the minimum configurable duration for packet capture is 1 second, packet capture works for a minimum of 2 seconds.
-
It is not possible to modify a capture point parameter when a capture is already active or has started.
-
EPC captures multicast packets only on ingress and does not capture the replicated packets on egress.
-
The rewrite information for both ingress and egress packets is not captured.
-
CPU-injected packets are considered control plane packets, and these types of packets will not be captured on an interface egress capture.
-
Control plane packets are not rate limited and impact performance. Use filters to limit control plane packet capture.
-
DNA Advantage supports decoding of protocols such as Control and Provisioning of Wireless Access Points (CAPWAP).
-
You can define up to eight capture points, but only one can be active at a time. Stop one before start the other.
-
MAC filter will not capture IP packets even if it matches the MAC address. This applies to all interfaces (Layer 2 switch port, Layer 3 routed port).
-
MAC ACL is only used for non-IP packets such as ARP. It won't be supported on a Layer 3 port or SVI.
-
MAC filter cannot capture Layer 2 packets (ARP) on Layer 3 interfaces.
-
VACL does not support IPv6-based ACLs.
-
EPC cannot capture based on the underlying routing protocols in MPLS packets.
-
EPC is not supported on Locator/ID Separation Protocol (LISP) interface and tunnel interface.
-
EPC is not supported with Ethernet-over-MPLS (EoMPLS).
-
Network Based Application Recognition (NBAR) and MAC-style class maps are not supported.

Feedback