- by x32x01 ||
5G Core networks rely heavily on IP-based protocols, which means they face many of the same security and troubleshooting challenges found in traditional IP networks. For telecom engineers, Wireshark is useful not only for troubleshooting but also for understanding protocol behavior and identifying unusual traffic patterns.
When 5G Core control-plane traffic is protected with TLS, analyzing the packets becomes more challenging. Instead of simply reading HTTP/2 messages in a trace, engineers need to understand how the Network Functions (NFs) communicate, how TLS is established, and how the relevant keys are made available in an authorized analysis environment.
This creates a different troubleshooting workflow compared with older signaling environments.
A typical analysis may require you to:
A simplified communication path can look like this:
NF A → TCP → TLS → HTTP/2 → Service Request → NF B
Wireshark can still show important information such as:
This is why engineers need to understand both the 5G protocol stack and the TLS session that protects the communication.
One common approach is to configure the application or test environment to export TLS session keys to a key-log file. Wireshark can then use that file to decrypt supported TLS sessions.
The general workflow is:
For TLS 1.3 in particular, having the appropriate session key material is important because the older practice of decrypting sessions with a server's private RSA key does not generally work with modern TLS 1.3 traffic.
Communication between NFs may involve multiple security mechanisms, depending on the deployment and applicable 3GPP requirements.
When investigating an encrypted connection, an engineer should understand:
Look for:
The correct approach is to correlate the packet capture with logs, configuration, network topology, and the expected 3GPP procedure.
A useful investigation can follow this sequence:
Network Functions, certificates, services, software versions, configurations, and traffic patterns can change over time. Engineers therefore need to understand both normal protocol behavior and the security mechanisms protecting that communication.
The ability to read a trace, understand an HTTP/2 service flow, interpret TLS behavior, and recognize deviations from the expected protocol sequence is an important part of modern 5G Core troubleshooting and security analysis.
For engineers working with 5G Core networks, learning how to connect 3GPP procedures, NF communication, TLS, HTTP/2, and packet analysis provides a much clearer view of what is happening inside the network.
When 5G Core control-plane traffic is protected with TLS, analyzing the packets becomes more challenging. Instead of simply reading HTTP/2 messages in a trace, engineers need to understand how the Network Functions (NFs) communicate, how TLS is established, and how the relevant keys are made available in an authorized analysis environment.
Why Wireshark Matters in 5G Core Networks
5G Core uses a Service-Based Architecture (SBA), where Network Functions communicate through IP-based interfaces and service-based APIs.This creates a different troubleshooting workflow compared with older signaling environments.
A typical analysis may require you to:
- Capture traffic between two Network Functions.
- Identify the relevant HTTP/2 connections.
- Inspect TCP behavior and connection establishment.
- Analyze TLS negotiation.
- Identify the communicating NFs.
- Examine HTTP/2 streams and requests when decryption is available.
- Compare the observed behavior with the expected 3GPP protocol flow.
- Look for unexpected connections, malformed messages, or unusual traffic patterns.
Why Encrypted 5G Traffic Is Harder to Analyze
In older telecom signaling environments, engineers could often inspect signaling messages directly in a trace. With TLS-protected 5G service-based communication, the application payload may not be readable from a normal packet capture.A simplified communication path can look like this:
NF A → TCP → TLS → HTTP/2 → Service Request → NF B
Wireshark can still show important information such as:
- Source and destination IP addresses.
- TCP connections and ports.
- TLS handshake information.
- TLS versions and cipher suites.
- Certificates and certificate-related information exposed during the handshake.
- HTTP/2 connection behavior.
- Packet timing and retransmissions.
- Connection failures and resets.
This is why engineers need to understand both the 5G protocol stack and the TLS session that protects the communication.
How TLS Decryption Works in an Authorized Test Environment
For legitimate engineering, troubleshooting, or security analysis, TLS traffic can be decrypted when the required session secrets are available through an authorized mechanism.One common approach is to configure the application or test environment to export TLS session keys to a key-log file. Wireshark can then use that file to decrypt supported TLS sessions.
The general workflow is:
- Capture the traffic between the relevant Network Functions.
- Configure the test environment to generate TLS session secrets.
- Save the secrets in a key-log file.
- Load the key-log file into Wireshark.
- Open the packet capture.
- Inspect the decrypted protocol traffic.
- Compare the observed messages with the expected 5G service flow.
For TLS 1.3 in particular, having the appropriate session key material is important because the older practice of decrypting sessions with a server's private RSA key does not generally work with modern TLS 1.3 traffic.
Understanding NF-to-NF Security
A 5G Core deployment can contain many Network Functions, including components such as the AMF, SMF, PCF, UDM, AUSF, and NRF.Communication between NFs may involve multiple security mechanisms, depending on the deployment and applicable 3GPP requirements.
When investigating an encrypted connection, an engineer should understand:
- Which NF initiated the connection.
- Which NF received it.
- Which service is being requested.
- How the TLS session was established.
- Which certificates are involved.
- Whether certificate validation is working correctly.
- Which HTTP/2 streams belong to the relevant request.
- Whether the observed behavior matches the expected architecture.
What to Look for in a 5G Wireshark Trace
Once the traffic is available in readable form, the analysis becomes much more useful.Look for:
- Unexpected communication between Network Functions.
- Repeated connection failures.
- Abnormal TLS handshake behavior.
- Invalid or unexpected certificates.
- Unusual HTTP/2 requests.
- Unexpected HTTP status codes.
- Repeated requests that do not match the expected procedure.
- TCP retransmissions or connection resets.
- Sudden changes in traffic volume or timing.
- Messages that do not fit the expected 5G service flow.
The correct approach is to correlate the packet capture with logs, configuration, network topology, and the expected 3GPP procedure.
From Packet Capture to Security Analysis
Wireshark is not a replacement for a complete 5G security monitoring system. Its value is in giving engineers detailed visibility into individual network conversations.A useful investigation can follow this sequence:
- Identify the traffic. Determine which NFs are communicating.
- Understand the protocol. Identify TCP, TLS, HTTP/2, and the relevant service.
- Establish the expected behavior. Determine what the normal procedure should look like.
- Analyze deviations. Investigate unexpected messages, connections, or timing.
- Correlate the evidence. Compare the trace with NF logs and other monitoring data.
- Validate the conclusion. Determine whether the behavior is a configuration issue, protocol problem, or genuine security event.
5G Core Security Requires Continuous Monitoring
Securing a 5G Core is not simply a matter of configuring TLS and certificates once.Network Functions, certificates, services, software versions, configurations, and traffic patterns can change over time. Engineers therefore need to understand both normal protocol behavior and the security mechanisms protecting that communication.
The ability to read a trace, understand an HTTP/2 service flow, interpret TLS behavior, and recognize deviations from the expected protocol sequence is an important part of modern 5G Core troubleshooting and security analysis.
For engineers working with 5G Core networks, learning how to connect 3GPP procedures, NF communication, TLS, HTTP/2, and packet analysis provides a much clearer view of what is happening inside the network.
