You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/private-5g-core/data-plane-packet-capture.md
+15-5Lines changed: 15 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,13 @@ author: robswain
6
6
ms.author: robswain
7
7
ms.service: private-5g-core
8
8
ms.topic: how-to
9
-
ms.date: 10/26/2023
9
+
ms.date: 04/24/2024
10
10
ms.custom: template-how-to, devx-track-azurecli
11
11
---
12
12
13
13
# Perform packet capture on a packet core instance
14
14
15
-
Packet capture for control or data plane packets is performed using the **MEC-Dataplane Trace** tool. MEC-Dataplane (MEC-DP) Trace is similar to **tcpdump**, a data-network packet analyzer computer program that runs on a command line interface (CLI). You can use MEC-DP Trace to monitor and record packets on any user plane interface on the access network (N3 interface) or data network (N6 interface) on your device, as well as the control plane (N2 interface). You can access MEC-DP Trace using the Azure portal or the Azure CLI.
15
+
Packet capture for control or data plane packets is performed using the **MEC-Dataplane Trace** tool. MEC-Dataplane (MEC-DP) Trace is similar to **tcpdump**, a data-network packet analyzer computer program that runs on a command line interface (CLI). You can use MEC-DP Trace to monitor and record packets on any user plane interface on the access network (N3 interface) or data network (N6 interface) on your device, and the control plane (N2 interface). You can access MEC-DP Trace using the Azure portal or the Azure CLI.
16
16
17
17
Packet capture works by mirroring packets to a Linux kernel interface, which can then be monitored using tcpdump. In this how-to guide, you'll learn how to perform packet capture on a packet core instance.
18
18
@@ -42,7 +42,7 @@ To perform packet capture using the command line, you must:
42
42
1. Sign in to the [Azure portal](https://portal.azure.com/).
43
43
1. Navigate to the **Packet Core Control Pane** overview page of the site you want to run a packet capture in.
44
44
1. Select **Packet Capture** under the **Help** section on the left side. This will open a **Packet Capture** view.
45
-
1. If this is the first time you've taken a packet capture using the portal, you will see an error message prompting you to configure a storage account. If so:
45
+
1. If this is the first time you've taken a packet capture using the portal, you'll see an error message prompting you to configure a storage account. If so:
46
46
1. Follow the link in the error message.
47
47
1. Enter the **Storage account container URL** that was configured for diagnostics storage and select **Modify**.
48
48
> [!TIP]
@@ -55,8 +55,15 @@ To perform packet capture using the command line, you must:
55
55
1. Return to the **Packet Capture** view.
56
56
1. Select **Start packet capture**.
57
57
1. Fill in the details on the **Start packet capture** pane and select **Create**.
58
+
59
+
The **Maximum bytes per session** limit is applied per node. In highly available (HA) deployments, it's likely that the packet capture will reach this limit and complete on one node before the other, so a packet capture will still be running when the first has completed. You should stop any running packet captures before starting a new one.
60
+
58
61
1. The page will refresh every few seconds until the packet capture has completed. You can also use the **Refresh** button to refresh the page. If you want to stop the packet capture early, select **Stop packet capture**.
62
+
59
63
1. Once the packet capture has completed, the AP5GC online service will save the output at the provided storage account URL.
64
+
65
+
In HA deployments, two packet capture files will be uploaded, one for each node. The files will be labelled with a `0` or a `1`, corresponding to the `core-mec-dp-0` or `core-mec-dp-1` pod. If one packet capture fails, the status page will show an error, but the successful capture results will upload as normal.
66
+
60
67
1. To download the packet capture output, you can use the **Copy to clipboard** button in the **Storage** or **File name** columns to copy those details and then paste them into the **Search** box in the portal. To download the output, right-click the file and select **Download**.
61
68
62
69
## Performing packet capture using the Azure CLI
@@ -67,6 +74,9 @@ To perform packet capture using the command line, you must:
> In an HA deployment, `core-mec-dp-0` may not exist because the node is down. In that case, enter `core-mec-dp-1` instead.
79
+
70
80
1. View the list of configured user plane interfaces:
71
81
72
82
```azurecli
@@ -102,7 +112,7 @@ To perform packet capture using the command line, you must:
102
112
kubectl cp -n core core-mec-dp-0:<path to output file> <location to copy to> -c troubleshooter
103
113
```
104
114
105
-
The `tcpdump` might have been stopped in the middle of writing a packet, which can cause this step to produce an error stating `unexpected EOF`. However, your file should have copied successfully, but you can check your target output file to confirm.
115
+
The tcpdump might have been stopped in the middle of writing a packet, which can cause this step to produce an error stating `unexpected EOF`. However, your file should have copied successfully, and you can check your target output file to confirm.
106
116
107
117
1. Remove the output files:
108
118
@@ -115,4 +125,4 @@ To perform packet capture using the command line, you must:
115
125
For more options to monitor your deployment and view analytics:
116
126
117
127
- [Learn more about monitoring Azure Private 5G Core using Azure Monitor platform metrics](monitor-private-5g-core-with-platform-metrics.md)
118
-
- If you have found identified a problem and don't know how to resolve it, you can [Get support for your Azure Private 5G Core service](open-support-request.md)
128
+
- If you have found a problem and don't know how to resolve it, you can [Get support for your Azure Private 5G Core service](open-support-request.md)
0 commit comments