Cloud-native observability of Volcano Engine (full-stack observability) can capture network packets on the specified workload or pod, which facilitates troubleshooting of container networks. This topic describes how to configure the network packet capture feature.
Background information
Network packet capture is an important troubleshooting method for complex container environments. If you perform network packet analysis on specified workloads or pods, the following scenario issues can be effectively resolved:
- Network troubleshooting: When network issues occur, packet capture can help identify the issues. Packets on different nodes are analyzed to troubleshoot connections or configurations.
- Security analysis: Security teams can use packet capture to monitor network traffic and identify potential security threats, such as DDoS attacks and ARP spoofing.
- Performance optimization: Network traffic is analyzed to identify performance issues, such as requests with long response times or unnecessary repeated requests. This provides optimization solutions to specific performance issues.
Prerequisites
- TOS has been activated, and a TOS bucket has been created in the same region as the target VKE cluster. For details, see Creating buckets.
- The microscope agent in full-stack observability has been upgraded to version 1.10.0 or later.
Procedure
Step 1: Configure packet capture
- In the left navigation bar, click Cluster.
- On the cluster list page, click the target cluster.
- In the left navigation bar of the cluster management page, click Monitoring center > Packet capture. On the page that appears, click Packet capture configuration to configure the TOS that corresponds to the packet capture task.
-
- Click Enable to enable the TOS configuration and specify the parameters of the TOS bucket.
-
Step 2: Create a packet capture task
Directly creating a packet capture task
You can perform the following steps to directly configure a packet capture task on the Network packet capture page:
- In the left navigation bar of the cluster management page, click Monitoring center > Packet capture. On the page that appears, click Create packet capture task, and configure the details of the packet capture task.
-
-
- Click Confirm to start capturing packets.
Creating tasks by using cluster topologies
You can perform the following steps to create a packet capture task by using network topologies on the Topology page:
- In the left navigation bar of the cluster management page, click Monitoring center > Cluster topology. View the topology chart of workload resources.
- In the topology, find the target line between two workload nodes, move the pointer over the line, and then click Network packet capture in the pop-up overview window. Then, you are redirected to the Network packet capture page and configure the packet capture task. For a specific packet capture configuration, see Directly creating packet capture tasks.
-
After the packet capture task is configured, the system starts capturing packets based on the configurations.
When the task state changes to Finish, it indicates that the packet capture task is complete. Click View details in the Actions column to view the details of the packet capture task. Click Download in the Actions column that corresponds to the target packet capture task to download the packet capture file in pcap format to your on-premises computer.
tip
You can use the Wireshark tool on your on-premises computer to analyze the packet capture file in pcap format.