Category 09 of 10Layer 75 Native ProtocolsFrameAssembly v3.3.0
Raw .mdllms-full.txt

Layer 7 Telecom 4G EPC & 5G Core Control Signaling

Testing 4G LTE Evolved Packet Core (EPC) and 5G Standalone (5GC) control-plane security policies, roaming firewalls, and packet-broker dissectors normally requires heavy 3GPP core simulators. FrameAssembly v3.3.0 synthesizes native 3GPP control-plane interfaces directly from .frasm text: GTPv2-C (gtpc, UDP 2123), 5G N4 PFCP (pfcp, UDP 8805), Diameter S6a/Gx/Gy (diameter, TCP/SCTP 3868), 5G N2 NGAP (ngap, SCTP 38412 PPID 60), and 4G S1-MME S1AP (s1ap, SCTP 36412 PPID 18).

SCTP-carried radio-core protocols (ngap, s1ap, and diameter transport sctp) automatically maintain per-association Verification Tags (vtag), stream sequence numbers, IANA Payload Protocol Identifiers (60, 18, 46), and hardware-table Castagnoli CRC-32c checksums.

Keywords in Category 09:gtpcpfcpdiameterngaps1ap
Wire & Endpoint Rules

Wire Framing & Endpoint Rules for 4G/5G Mobile Core Signaling

Rule 01

Native SCTP Associations for 5G N2 & 4G S1-MME

ngap (dstport 38412, ppid 60) and s1ap (dstport 36412, ppid 18) run natively over RFC 9260 SCTP DATA chunks with ASN.1 Aligned PER encoding and automatic CRC-32c.

Rule 02

CUPS 5G N4 PFCP & 4G S11 GTPv2-C Session Control

pfcp (UDP 8805) encodes 64-bit seid Session Establishment/Modification/Deletion messages, while gtpc (UDP 2123) encodes 32-bit teid, imsi, apn, and rat Information Elements.

Rule 03

Dual TCP / SCTP Diameter 3868 AAA

diameter defaults to stateful TCP 3868 and switches cleanly to SCTP 3868 (ppid 46) when transport sctp is appended.

Rule 04

Pair Control Plane with Layer 3 gtpu User Plane

Combine gtpc / pfcp session setup with Layer 3 gtpu (UDP 2152, teid, 5G qfi) to test complete CUPS S11/N4 + S1-U/N3 packet captures.

Multi-Protocol Capture Example

5G N2 NGAP + N4 PFCP + 4G S11 GTPv2-C & Diameter Roaming Audit

Captures a 5G gNB-to-AMF SCTP 38412 NGSetup exchange (ngap), an SMF-to-UPF UDP 8805 PFCP Session Establishment (pfcp), an MME-to-SGW UDP 2123 GTPv2-C Create Session (gtpc), and an SCTP 3868 Diameter CER/CEA handshake (diameter).

telecom_4g_5g_core_signaling.frasm13 lines
Open in Playground
host ran_cp { ip 172.22.10.10 }
host core_cp { ip 172.22.10.50 }
compile {
ran_cp -> core_cp ngap ngsetuprequest gnbid 0x000102 plmn "00101" tac 100 ranname "gnb-metro-01" wait 1ms
ran_cp <- core_cp ngap ngsetupresponse plmn "00101" wait 2ms
ran_cp -> core_cp pfcp sessionestablishmentrequest seid 0x0102030405060708 seqnum 1 nodeid 172.22.10.10 wait 1ms
ran_cp <- core_cp pfcp sessionestablishmentresponse seid 0x0102030405060708 seqnum 1 cause 16 wait 2ms
ran_cp -> core_cp gtpc createsessionrequest teid 0 seqnum 10 imsi "001010123456789" apn "internet" rat 6 wait 1ms
ran_cp <- core_cp gtpc createsessionresponse teid 0x00010001 seqnum 10 cause 16 addr 100.64.10.25 wait 2ms
ran_cp -> core_cp diameter cer originhost "mme01.epc.mnc001.mcc001.3gppnetwork.org" realm "epc.mnc001.mcc001.3gppnetwork.org" transport sctp wait 1ms
ran_cp <- core_cp diameter cea originhost "hss01.epc.mnc001.mcc001.3gppnetwork.org" realm "epc.mnc001.mcc001.3gppnetwork.org" resultcode 2001 transport sctp
}
Terminal Commands (FrameAssembly CLI v3.3.0)
# 1. Eyeball relative timestamps, ports & wire lengths in your terminal
frameassembly show telecom_4g_5g_core_signaling.frasm

# 2. Compile .frasm -> classic .pcap, nanosecond .pcapng, or pipe via '-'
frameassembly telecom_4g_5g_core_signaling.frasm telecom_4g_5g_core_signaling.pcap
frameassembly telecom_4g_5g_core_signaling.frasm telecom_4g_5g_core_signaling.pcapng

# 3. Round-trip .pcap <-> .frasm whenever you want to scrub or tweak an existing capture
frameassembly reverse telecom_4g_5g_core_signaling.pcap telecom_4g_5g_core_signaling_edited.frasm

# 4. Verify dissected protocol fields in tshark
tshark -r telecom_4g_5g_core_signaling.pcap -Y "ngap || pfcp || gtpv2 || diameter"
All 5 Protocols

All 5 Native Protocols in Layer 7 Telecom 4G EPC & 5G Core Control Signaling

Select any lowercase protocol keyword below for its full RFC wire layout, modifier table, cross-layer wrappers, and runnable lab capture.

#KeywordProtocol & Wire SummaryDefault Port / ProtoEndpoint RuleWireshark Filter
83gtpcGPRS Tunneling Protocol v2 Control Plane (4G S11 / S5-C)

gtpc — 3GPP S11/N26 GTPv2-C Session & Bearer Signaling

UDP 2123Dual-Stack IPv4/IPv6gtpv2
84pfcpPacket Forwarding Control Protocol (5G N4 / 4G Sxa-Sxb CUPS)

pfcp — 5G N4 SMF-to-UPF Session Establishment & SEID Rules

UDP 8805Dual-Stack IPv4/IPv6pfcp
85diameterDiameter Base, Credit-Control & 3GPP S6a/Gx/Gy AAA Signaling

diameter — 4G EPC S6a/Gx/Gy AVPs over TCP or SCTP 3868

TCP 3868 (or SCTP 3868 / PPID 46 via transport sctp)Dual-Stack IPv4/IPv6diameter
86ngap5G Next Generation Application Protocol (N2 gNB <-> AMF over SCTP)

ngap — 3GPP 5G N2 gNodeB-to-AMF ASN.1 APER over SCTP 38412

SCTP 38412 (PPID 60)Dual-Stack IPv4/IPv6ngap
87s1ap4G LTE S1 Application Protocol (S1-MME eNB <-> MME over SCTP)

s1ap — 3GPP 4G S1-MME eNodeB-to-MME ASN.1 APER over SCTP 36412

SCTP 36412 (PPID 18)Dual-Stack IPv4/IPv6s1ap