O-RAN E2AP in a Real Capture: E2 Setup, a KPM Subscription, and Its Indications

This walkthrough uses du_e2ap-correct.pcap, attached to srsRAN_Project issue #1421, where its author compared a working and a broken KPM setup. The framing comparison uses the capture attached to srsRAN_Project issue #521. Download them there. We decoded them with VisualEther, which turns a Wireshark PCAP into a sequence diagram with a plain-English caption on every message.

O-RAN lets software from outside the base station vendor watch and steer the radio network. The link that makes this possible is the E2 interface: a base station node reports measurements over it to a controller, the near-real-time RAN Intelligent Controller (near-RT RIC), where small applications called xApps decide what to do with them.

This capture is one complete E2 conversation, recorded by an srsRAN gNB-DU: 138 messages over 309 s. The DU introduces itself to the RIC, an xApp subscribes to two throughput measurements for its UEs, the DU sends 132 reports, about one a second, and the xApp ends the subscription. The last report goes out after the delete request, which raises a question every xApp developer meets: what should a RIC do with it?

It is written for two readers. RAN engineers who know the gNB but not the RIC will find the RIC side explained from the ground up. xApp developers who know the RIC APIs will see what their calls become on the wire.

The diagram has two lanes, the E2 node and the near-RT RIC, and each message is an arrow numbered as in Wireshark. Under each arrow are the fields that matter: the RIC Request ID, the RAN function and its OID, the F1AP messages nested in E2 Setup, the event trigger's reporting period, the action and its definition format, the measurement names, and each report's UE and values.

To keep the diagram readable, 58 of the 62 reports that read 0 kbit/s both ways are collapsed into one grey arrow at frame 8. Every report with traffic stays, as do four idle ones that mark a turn in the story: frames 7, 126, 135, and 137. The table under "What do the 132 reports show?" covers the whole run.

💡 Read the walkthrough and the diagram side by side: open the interactive diagram in a split-screen window, or open it in a new tab and snap the two windows side by side.

What is the O-RAN E2 interface?

The E2 interface connects the near-RT RIC to the RAN nodes it supervises, and E2AP, the E2 Application Protocol, is the signaling protocol that runs over it. The O-RAN Alliance, an industry group that specifies open interfaces between the parts of a radio access network, defines both: the architecture in O-RAN.WG3.E2GAP and the protocol in O-RAN.WG3.E2AP. This article cites E2AP v03.00 and E2GAP v03.00.

A RAN node that speaks E2 is called an E2 node. In O-RAN's architecture that can be a central unit's control or user plane (O-CU-CP, O-CU-UP), a distributed unit (O-DU), or an LTE eNB (O-eNB) (E2GAP §3.1); a standalone O-DU counts as an E2 node on its own (E2GAP Annex A.1). In 3GPP terms, a 5G base station (gNB) can be split into a central unit (gNB-CU), which runs the upper protocol layers, and one or more distributed units (gNB-DU), which run the radio-facing layers. The two halves talk over the F1 interface with F1AP, the F1 Application Protocol. Here the E2 node is an srsRAN gNB-DU, so this capture is the DU's own view of its E2 link.

flowchart LR accTitle: O-RAN architecture around the E2 interface accDescr: The Service Management and Orchestration platform hosts the non-real-time RIC, which connects to the near-real-time RIC over the A1 interface. The near-RT RIC hosts xApps and connects over E2 to three E2 nodes of a split gNB: the CU-CP, the CU-UP, and the DU. The DU's E2 link is the one in this capture. Inside the gNB, the CU-CP and CU-UP connect over E1, and the CU connects to the DU over F1-C and F1-U. SMO["SMO<br/>non-RT RIC"] RIC["near-RT RIC<br/>xApps"] subgraph gNB["gNB (E2 nodes)"] CUCP["CU-CP"] CUUP["CU-UP"] DU["DU"] end SMO ---|"A1"| RIC RIC ---|"E2"| CUCP RIC ---|"E2"| CUUP RIC ===|"E2 · E2AP — this capture"| DU CUCP ---|"E1"| CUUP CUCP ---|"F1-C"| DU CUUP ---|"F1-U"| DU
Where E2 sits (E2GAP §4.2). One near-RT RIC can serve many E2 nodes, each over its own E2 connection; the non-RT RIC in the SMO guides it over A1. This capture holds only the gNB-DU's E2 link.

E2AP itself knows almost nothing about radio. It sets up the link, lets the RIC subscribe to events in the E2 node, carries the resulting reports and control requests, and tears subscriptions down. What is measured, how often, and what a report looks like belongs to a separate layer, the service model, described below.

What does the near-RT RIC do?

The near-RT RIC hosts xApps that observe the RAN through E2 and act on what they see, on control loops "from 10 milliseconds up to 1 second" (E2GAP §4.3). An xApp might balance load between cells, steer a UE's traffic, or, as here, simply collect per-UE throughput.

"Near-real-time" sets it apart from two neighbors. Faster decisions, such as scheduling each slot, stay inside the gNB. Slower, policy-level work belongs to the non-real-time RIC, which the operator's Service Management and Orchestration (SMO) platform hosts (E2GAP §4.2). The near-RT RIC sits in between, close enough to the RAN to react within a second.

An xApp never sends E2AP itself. It asks the RIC platform for a subscription, and the platform turns that into the messages in this capture. The platform assigns each subscription a RIC Request ID and uses it to route the resulting reports back to the function that asked for them (E2AP §4.4, §8.2.3.2).

What is a RAN function and a service model?

A RAN function is a capability an E2 node exposes over E2, such as reporting measurements or accepting control commands. Each RAN function implements an E2 Service Model (E2SM), a separate O-RAN specification that defines what the function does and how its messages are encoded. E2AP carries the E2SM content as opaque octet strings; only the two ends decode them.

This capture uses one service model, E2SM-KPM (Key Performance Measurement), which reports performance counters. Its counters are the ones 3GPP defines for network management in TS 28.552, so an xApp asks for DRB.UEThpDl by the same name an operator's management system uses (KPM v03.00 clause 1 and §7.4.2.2).

A service model is identified by an OID (object identifier), a dotted number registered under the O-RAN Alliance's enterprise arc 1.3.6.1.4.1.53148. The OID follows the version in the service model's ASN.1 module: KPM v2 is 1.3.6.1.4.1.53148.1.2.2.2 and KPM v3 is 1.3.6.1.4.1.53148.1.3.2.2. The OID tells the RIC which version of the service model to decode with. Keep that in mind; this capture's OID and its bytes disagree.

The layers stack like this: the KPM content rides inside E2AP messages, and E2AP rides on SCTP over IP.

sequenceDiagram accTitle: E2 protocol stack between the near-RT RIC and the E2 node, E2AP highlighted accDescr: E2SM-KPM spans the near-RT RIC and the E2 node at the top, carried inside E2AP. Below E2AP are SCTP and IP. E2AP, the subject of this article, is highlighted. participant RIC as near-RT RIC participant DU as E2 node (gNB-DU) Note over RIC,DU: E2SM-KPM Note over RIC,DU: E2AP Note over RIC,DU: SCTP Note over RIC,DU: IP
The E2 protocol stack, with E2AP highlighted. The service model's content (here E2SM-KPM) travels as octet strings inside E2AP, which runs over SCTP and IP between the near-RT RIC and the E2 node. The main capture holds the E2AP layer and the KPM inside it; the SCTP section below shows the transport.

What does the whole capture look like?

The capture falls into four phases, with a long gap between the first two.

sequenceDiagram accTitle: E2AP flow in the srsRAN capture accDescr: The gNB-DU sends E2 Setup Request and the near-RT RIC answers with E2 Setup Response 10.8 ms later. After 165 seconds the RIC sends RIC Subscription Request and the DU answers within half a millisecond. The DU sends 131 RIC Indications about every 1.09 seconds. The RIC sends RIC Subscription Delete Request, the DU sends one more RIC Indication, and then the RIC Subscription Delete Response. participant DU as E2 node (gNB-DU) participant RIC as near-RT RIC DU->>RIC: [1] E2 Setup Request (KPM and RC, F1 Setup inside) RIC-->>DU: [2] E2 Setup Response (both accepted) Note over DU,RIC: 165 s of silence RIC->>DU: [3] RIC Subscription Request (UE throughput, every 1000 ms) DU-->>RIC: [4] RIC Subscription Response (action 1 admitted) loop 131 times, about every 1.09 s DU->>RIC: [5 to 135] RIC Indication (DL and UL throughput) end RIC->>DU: [136] RIC Subscription Delete Request DU->>RIC: [137] RIC Indication (the last report) DU-->>RIC: [138] RIC Subscription Delete Response
The E2 conversation at a glance. Frame numbers are in brackets; times are from the capture.
PhaseFramesTimeWhat happens
E2 Setup1 to 20 to 10.8 msThe DU introduces itself and its RAN functions; the RIC accepts.
Subscription3 to 4165.39 sAn xApp subscribes to two KPM throughput measurements; the DU admits it in 0.47 ms.
Reports5 to 135166.46 to 308.53 s131 RIC Indications, one per reporting period.
Delete136 to 138309.34 sThe RIC deletes the subscription; one last indication goes out before the response.

Seen from the link's side, the same flow moves through four states:

stateDiagram-v2 accTitle: E2 link and subscription lifecycle in the capture accDescr: The E2 node starts with no E2 link. E2 Setup brings the link up. A RIC Subscription makes the subscription active, and each RIC Indication leaves it active. The RIC Subscription Delete Request makes the deletion pending, and one more RIC Indication is sent while it is pending. The RIC Subscription Delete Response returns the link to set up with no subscription. state "No E2 link" as NoLink state "E2 link set up" as Up state "Subscription active" as Active state "Delete pending" as Pending [*] --> NoLink NoLink --> Up: E2 Setup Up --> Active: RIC Subscription Active --> Active: RIC Indication Active --> Pending: Delete Request Pending --> Pending: RIC Indication Pending --> Up: Delete Response
The E2 link and its one subscription, traced from the procedures in this capture. E2 Setup (frames 1 and 2) brings the link up; RIC Subscription (frames 3 and 4) starts the reports; the delete request (frame 136) leaves the subscription pending deletion, and the last indication (frame 137) is sent in that state; the delete response (frame 138) ends it. E2AP defines procedures, not a state machine, so this is a lifecycle read from the flow.

The capture has no IP or SCTP headers. srsRAN writes each E2AP message into the pcap on its own, under a user-defined link type (DLT_USER 8, link type 155), so there are no addresses or ports. VisualEther draws the two lanes from the message types instead: a request from the E2 node goes left to right, a request from the RIC right to left. The last section shows what the same exchange looks like with its SCTP transport.

What happens in E2 Setup?

E2 Setup is the first E2AP exchange: the E2 node says who it is and what it can do, and the RIC says who it is and what it accepts (E2AP §8.3.1, §9.1.2.2 and §9.1.2.3). Nothing is measured yet.

sequenceDiagram accTitle: E2 Setup accDescr: The E2 node sends E2 Setup Request with its Global E2 Node ID, two RAN functions, and its F1 component configuration holding the F1 Setup Request and Response. The near-RT RIC answers with E2 Setup Response carrying its Global RIC ID, both RAN functions accepted, and an acknowledgment of the F1 component. participant DU as E2 node (gNB-DU) participant RIC as near-RT RIC DU->>RIC: E2 Setup Request (gNB ID 411, DU ID 0, RAN functions 2 and 3, F1 Setup Request and Response) RIC-->>DU: E2 Setup Response (RIC ID aacce0, functions 2 and 3 accepted, F1 component success)
Frames 1 and 2: E2 Setup, 10.8 ms apart.

The E2 Setup Request (frame 1) carries three things.

Each RAN function's definition is the function's self-description: the triggers it supports, the report styles it offers, and the measurements each style can return. Wireshark decodes it in full. Here is the start of the KPM definition and its fifth report style, trimmed:

E2SM-KPM-RANfunction-Description
    ranFunction-Name
        ranFunction-ShortName: ORAN-E2SM-KPM
        ranFunction-E2SM-OID: 1.3.6.1.4.1.53148.1.2.2.2
        ranFunction-Description: KPM Monitor
    ric-EventTriggerStyle-List: 1 item
        ric-EventTriggerStyle-Type: 1
        ric-EventTriggerStyle-Name: Periodic Report
        ric-EventTriggerFormat-Type: 1
    ric-ReportStyle-List: 5 items
        ...
        ric-ReportStyle-Type: 5
        ric-ReportStyle-Name: E2 Node Measurement for multiple UEs
        ric-ActionFormat-Type: 5
        measInfo-Action-List: 15 items
            measName: DRB.AirIfDelayUl
            ...
            measName: DRB.UEThpDl
            measName: DRB.UEThpUl
            ...
        ric-IndicationHeaderFormat-Type: 1
        ric-IndicationMessageFormat-Type: 3

The DU offers one trigger, a periodic report, and five report styles: node-level measurements (style 1), one UE (2), UEs matching a condition (3 and 4), and a list of named UEs (5). Each style names its action definition format and its indication header and message formats, so an xApp can read off exactly what to send and what it will get back. Style 1 lists 16 measurements and the others 15, among them packet delays, RLC volumes, PRB (physical resource block) usage, and the two UE throughputs.

The E2 Setup Response (frame 2) arrives 10.8 ms later. It carries the Global RIC ID, aacce0 (699598 in 20 bits) in the same PLMN, accepts both RAN functions, and acknowledges the F1 component with outcome success. The Transaction ID, 0 in both messages, pairs the response with the request.

Then nothing happens for 165.4 s. E2 Setup subscribes to nothing; the link idles until an xApp asks for data.

Why does E2 Setup carry F1AP?

E2 Setup carries the F1 messages so that the RIC learns how the E2 node is configured on its other interfaces without being on those interfaces. The RIC is not part of F1: the DU and the CU set that interface up between themselves. E2GAP lists "E2 Node configuration information" among the data an E2 node exposes to the RIC, such as cell configuration, supported slices, and PLMNs (§4.1, §5.5.2).

E2AP packs that information as a request part and a response part. For an F1 component they are an F1 SETUP REQUEST and an F1 SETUP RESPONSE, each an octet string in the format TS 38.473 defines (E2AP §9.2.27), and the component is identified by the gNB-DU ID (§9.2.32). The RIC can decode them with an ordinary F1AP decoder, as Wireshark does here.

Here the F1 messages are small. The F1 Setup Request names the DU (dummy-du, gNB-DU ID 0) and its RRC version, and the response names the CU (dummy-cu) and its RRC version. Those are the mandatory IEs, plus the optional names. Neither carries the optional served-cell list that describes the DU's cells (TS 38.473 §9.2.1.4 and §9.2.1.5). Compare the F1 Setup in our F1AP walkthrough, whose request hands over a cell's PLMN, NR cell identity, PCI, and tracking area code. Later E2AP versions note that a node may build these parts from information derived from earlier messages rather than replay them (E2AP v09.00 §9.2.27). The dummy names suggest srsRAN's E2 agent builds a minimal pair rather than copying its live F1 exchange.

How does a RIC subscription work?

A RIC subscription tells one RAN function when to report and what to report: an event trigger says when, and one or more actions say what (E2AP §8.2.1, §9.1.1.1). A subscription may hold up to 16 actions, each of type report, insert, or policy. The xApp's request becomes a RIC Subscription Request (frame 3), and the E2 node answers with the actions it admits.

sequenceDiagram accTitle: RIC Subscription accDescr: The near-RT RIC sends RIC Subscription Request with RIC Request ID 123 and 4 for RAN function 2, a periodic trigger every 1000 ms, and one report action using format 5 for two UEs. The E2 node answers with RIC Subscription Response admitting action 1. participant DU as E2 node (gNB-DU) participant RIC as near-RT RIC RIC->>DU: RIC Subscription Request (request 123 and 4, function 2, every 1000 ms, action 1, format 5) DU-->>RIC: RIC Subscription Response (action 1 admitted)
Frames 3 and 4: the subscription, admitted in 0.47 ms.

The request has three parts.

Decoded with KPM, the details read:

TS 28.552 defines the two measurements as average downlink and uplink UE throughput in the gNB (clauses 5.1.1.3.1 and 5.1.1.3.3), each a real value in kbit/s, measured per NRCellDU. The UE is identified by its F1AP ID because KPM's UE identity for a DU is the gNB-DU UE ID, which is the CU's F1AP ID for that UE.

The decoded request, with the E2AP layer opened:

📝 [00003] Frame 3 RIC Subscription Request 2025-11-13T14:07:23.094653Z 🧠 near-RT RIC → 📡 E2 node
frame : Frame 3: Packet, 94 bytes on wire (752 bits), 94 bytes captured (752 bits)
Encapsulation type : USER 8 (53)
Arrival Time : Nov 13, 2025 19:37:23.094653000 India Standard Time
UTC Arrival Time : Nov 13, 2025 14:07:23.094653000 UTC
Epoch Arrival Time : 1763042843.094653000
Time shift for this packet : 0.000000000 seconds
Time delta from previous captured frame : 2 minutes, 45.381052000 seconds
Time delta from previous displayed frame : 2 minutes, 45.381052000 seconds
Time since reference or first frame : 2 minutes, 45.391837000 seconds
Frame Number : 3
Frame Length : 94 bytes (752 bits)
Capture Length : 94 bytes (752 bits)
Frame is marked : False
Frame is ignored : False
Protocols in frame : user_dlt:e2ap:e2ap
Character encoding : ASCII (0)
user_dlt : DLT: 155, Payload: e2ap (E2 Application Protocol)
e2ap : E2 Application Protocol
0... .... Extension Bit : False
E2AP-PDU : initiatingMessage (0)
initiatingMessage
procedureCode : id-RICsubscription (8)
criticality : ignore (1)
value
RICsubscriptionRequest
0... .... Extension Bit : False
protocolIEs : 3 items
Item 0 : id-RICrequestID
ProtocolIE-Field
id : id-RICrequestID (29)
criticality : reject (0)
value
RICrequestID
0... .... Extension Bit : False
ricRequestorID : 123
ricInstanceID : 4
Item 1 : id-RANfunctionID
ProtocolIE-Field
id : id-RANfunctionID (5)
criticality : reject (0)
value
RANfunctionID : 2
Item 2 : id-RICsubscriptionDetails
ProtocolIE-Field
id : id-RICsubscriptionDetails (30)
criticality : reject (0)
value
RICsubscriptionDetails
0... .... Extension Bit : False
ricEventTriggerDefinition : 0803e7
RANfunction setup frame : 1 (2 -> KPM)
Version (frame) : KPM v2
Version (dissector) : KPM v3
Expert Info (Warning/Protocol) : Dissector version mismatch - frame is KPM v2 but dissector is KPM v3
Dissector version mismatch - frame is KPM v2 but dissector is KPM v3
Message : Dissector version mismatch - frame is KPM v2 but dissector is KPM v3
Severity level : Warning
Group : Protocol
E2SM-KPM-EventTriggerDefinition
0... .... Extension Bit : False
.0.. .... Extension Bit : False
eventDefinition-formats : eventDefinition-Format1 (0)
eventDefinition-Format1
..0. .... Extension Bit : False
reportingPeriod : 1000
ricAction-ToBeSetup-List : 1 item
Item 0 : id-RICaction-ToBeSetup-Item
ProtocolIE-SingleContainer
id : id-RICaction-ToBeSetup-Item (19)
criticality : ignore (1)
value
RICaction-ToBeSetup-Item
0... .... Extension Bit : False
.1.. .... Optional Field Bit : True (ricActionDefinition is present)
..0. .... Optional Field Bit : False (ricSubsequentAction is NOT present)
ricActionID : 1
0... .... Extension Present Bit : False
ricActionType : report (0)
ricActionDefinition : 000105813100000008000008000100000100a04452422e5545546870446c0120000000a04452422e5545546870556c012000004003e7
RANfunction setup frame : 1 (2 -> KPM)
Version (frame) : KPM v2
Version (dissector) : KPM v3
Expert Info (Warning/Protocol) : Dissector version mismatch - frame is KPM v2 but dissector is KPM v3
Dissector version mismatch - frame is KPM v2 but dissector is KPM v3
Message : Dissector version mismatch - frame is KPM v2 but dissector is KPM v3
Severity level : Warning
Group : Protocol
E2SM-KPM-ActionDefinition
0... .... Extension Bit : False
integer length : 1
ric-Style-Type : 5
1... .... Extension Bit : True
.0.. .... Small Number Bit : False
Choice Extension Index : 1
actionDefinition-formats : actionDefinition-Format5 (4)
actionDefinition-Format5
0... .... Extension Bit : False
matchingUEidList : 2 items
Item 0
MatchingUEidPerSubItem
0... .... Extension Bit : False
.0.. .... Extension Bit : False
ueID : gNB-DU-UEID (1)
gNB-DU-UEID
.... .0.. Extension Bit : False
.... ..0. Optional Field Bit : False (ran-UEID is NOT present)
gNB-CU-UE-F1AP-ID : 0
Item 1
MatchingUEidPerSubItem
0... .... Extension Bit : False
.0.. .... Extension Bit : False
ueID : gNB-DU-UEID (1)
gNB-DU-UEID
.... .0.. Extension Bit : False
.... ..0. Optional Field Bit : False (ran-UEID is NOT present)
gNB-CU-UE-F1AP-ID : 1
subscriptionInfo
0... .... Extension Bit : False
.0.. .... Optional Field Bit : False (cellGlobalID is NOT present)
measInfoList : 2 items
Item 0
MeasurementInfoItem
0... .... Extension Bit : False
.0.. .... Extension Bit : False
measType : measName (0)
...0 .... Extension Present Bit : False
measName : DRB.UEThpDl
labelInfoList : 1 item
Item 0
LabelInfoItem
0... .... Extension Bit : False
measLabel
.0.. .... Extension Bit : False
..1. .... Optional Field Bit : True (noLabel is present)
...0 .... Optional Field Bit : False (plmnID is NOT present)
.... 0... Optional Field Bit : False (sliceID is NOT present)
.... .0.. Optional Field Bit : False (fiveQI is NOT present)
.... ..0. Optional Field Bit : False (qFI is NOT present)
.... ...0 Optional Field Bit : False (qCI is NOT present)
0... .... Optional Field Bit : False (qCImax is NOT present)
.0.. .... Optional Field Bit : False (qCImin is NOT present)
..0. .... Optional Field Bit : False (aRPmax is NOT present)
...0 .... Optional Field Bit : False (aRPmin is NOT present)
.... 0... Optional Field Bit : False (bitrateRange is NOT present)
.... .0.. Optional Field Bit : False (layerMU-MIMO is NOT present)
.... ..0. Optional Field Bit : False (sUM is NOT present)
.... ...0 Optional Field Bit : False (distBinX is NOT present)
0... .... Optional Field Bit : False (distBinY is NOT present)
.0.. .... Optional Field Bit : False (distBinZ is NOT present)
..0. .... Optional Field Bit : False (preLabelOverride is NOT present)
...0 .... Optional Field Bit : False (startEndInd is NOT present)
.... 0... Optional Field Bit : False (min is NOT present)
.... .0.. Optional Field Bit : False (max is NOT present)
.... ..0. Optional Field Bit : False (avg is NOT present)
.... ...0 Extension Present Bit : False
noLabel : true (0)
Item 1
MeasurementInfoItem
0... .... Extension Bit : False
.0.. .... Extension Bit : False
measType : measName (0)
...0 .... Extension Present Bit : False
measName : DRB.UEThpUl
labelInfoList : 1 item
Item 0
LabelInfoItem
0... .... Extension Bit : False
measLabel
.0.. .... Extension Bit : False
..1. .... Optional Field Bit : True (noLabel is present)
...0 .... Optional Field Bit : False (plmnID is NOT present)
.... 0... Optional Field Bit : False (sliceID is NOT present)
.... .0.. Optional Field Bit : False (fiveQI is NOT present)
.... ..0. Optional Field Bit : False (qFI is NOT present)
.... ...0 Optional Field Bit : False (qCI is NOT present)
0... .... Optional Field Bit : False (qCImax is NOT present)
.0.. .... Optional Field Bit : False (qCImin is NOT present)
..0. .... Optional Field Bit : False (aRPmax is NOT present)
...0 .... Optional Field Bit : False (aRPmin is NOT present)
.... 0... Optional Field Bit : False (bitrateRange is NOT present)
.... .0.. Optional Field Bit : False (layerMU-MIMO is NOT present)
.... ..0. Optional Field Bit : False (sUM is NOT present)
.... ...0 Optional Field Bit : False (distBinX is NOT present)
0... .... Optional Field Bit : False (distBinY is NOT present)
.0.. .... Optional Field Bit : False (distBinZ is NOT present)
..0. .... Optional Field Bit : False (preLabelOverride is NOT present)
...0 .... Optional Field Bit : False (startEndInd is NOT present)
.... 0... Optional Field Bit : False (min is NOT present)
.... .0.. Optional Field Bit : False (max is NOT present)
.... ..0. Optional Field Bit : False (avg is NOT present)
.... ...0 Extension Present Bit : False
noLabel : true (0)
granulPeriod : 1000
Rendered from a Wireshark PCAP by VisualEther.

Frame 3, RIC Subscription Request. Open RICsubscriptionDetails to see the KPM event trigger (format 1, reportingPeriod 1000) and the action: ricActionID 1, type report, then E2SM-KPM-ActionDefinition with ric-Style-Type 5 and actionDefinition-Format5. Its matchingUEidList holds gNB-CU-UE-F1AP-ID 0 and 1; subscriptionInfo lists DRB.UEThpDl and DRB.UEThpUl with granulPeriod 1000. Wireshark's KPM version warning sits on each KPM field.

The RIC Subscription Response (frame 4) follows 0.47 ms later. It repeats the RIC Request ID and RAN function ID and lists action 1 as admitted. There is no not-admitted list, so the whole request was accepted.

What is in a KPM indication?

A RIC Indication is the E2 node's report: an E2AP envelope that names the subscription and action, wrapped around a KPM header and a KPM message (E2AP §9.1.1.7). The first one (frame 5) arrives 1.06 s after the subscription response.

In frame 5 the list holds one UE, gNB-CU UE F1AP ID 0, with two records: 1 and 0. KPM puts the records in "the same order as in the Measurements Information List" (§8.2.1.4.1), so 1 kbit/s is DRB.UEThpDl and 0 is DRB.UEThpUl. UE 1, the second UE in the subscription, never appears in any of the 132 reports.

📈 [00005] Frame 5 RIC Indication 2025-11-13T14:07:24.159412Z 📡 E2 node → 🧠 near-RT RIC
frame : Frame 5: Packet, 111 bytes on wire (888 bits), 111 bytes captured (888 bits)
Encapsulation type : USER 8 (53)
Arrival Time : Nov 13, 2025 19:37:24.159412000 India Standard Time
UTC Arrival Time : Nov 13, 2025 14:07:24.159412000 UTC
Epoch Arrival Time : 1763042844.159412000
Time shift for this packet : 0.000000000 seconds
Time delta from previous captured frame : 1.064287000 seconds
Time delta from previous displayed frame : 1.064287000 seconds
Time since reference or first frame : 2 minutes, 46.456596000 seconds
Frame Number : 5
Frame Length : 111 bytes (888 bits)
Capture Length : 111 bytes (888 bits)
Frame is marked : False
Frame is ignored : False
Protocols in frame : user_dlt:e2ap:e2ap
Character encoding : ASCII (0)
user_dlt : DLT: 155, Payload: e2ap (E2 Application Protocol)
e2ap : E2 Application Protocol
0... .... Extension Bit : False
E2AP-PDU : initiatingMessage (0)
initiatingMessage
procedureCode : id-RICindication (5)
criticality : ignore (1)
value
RICindication
0... .... Extension Bit : False
protocolIEs : 6 items
Item 0 : id-RICrequestID
ProtocolIE-Field
id : id-RICrequestID (29)
criticality : reject (0)
value
RICrequestID
0... .... Extension Bit : False
ricRequestorID : 123
ricInstanceID : 4
Item 1 : id-RANfunctionID
ProtocolIE-Field
id : id-RANfunctionID (5)
criticality : reject (0)
value
RANfunctionID : 2
Item 2 : id-RICactionID
ProtocolIE-Field
id : id-RICactionID (15)
criticality : reject (0)
value
RICactionID : 1
Item 3 : id-RICindicationType
ProtocolIE-Field
id : id-RICindicationType (28)
criticality : reject (0)
value
0... .... Extension Present Bit : False
RICindicationType : report (0)
Item 4 : id-RICindicationHeader
ProtocolIE-Field
id : id-RICindicationHeader (25)
criticality : reject (0)
value
RICindicationHeader : 00ecc0649c28c6a5be
RANfunction setup frame : 1 (2 -> KPM)
Version (frame) : KPM v2
Version (dissector) : KPM v3
Expert Info (Warning/Protocol) : Dissector version mismatch - frame is KPM v2 but dissector is KPM v3
Dissector version mismatch - frame is KPM v2 but dissector is KPM v3
Message : Dissector version mismatch - frame is KPM v2 but dissector is KPM v3
Severity level : Warning
Group : Protocol
E2SM-KPM-IndicationHeader
0... .... Extension Bit : False
.0.. .... Extension Bit : False
indicationHeader-formats : indicationHeader-Format1 (0)
indicationHeader-Format1
..0. .... Extension Bit : False
...0 .... Optional Field Bit : False (fileFormatversion is NOT present)
.... 0... Optional Field Bit : False (senderName is NOT present)
.... .0.. Optional Field Bit : False (senderType is NOT present)
.... ..0. Optional Field Bit : False (vendorName is NOT present)
colletStartTime : ecc0649c28c6a5be
Timestamp string : Nov 13, 2025 14:07:24 UTC
Item 5 : id-RICindicationMessage
ProtocolIE-Field
id : id-RICindicationMessage (26)
criticality : reject (0)
value
RICindicationMessage : 400039000000080000600000000220038000012000000100a04452422e5545546870446c0120000000a04452422e5545546870556c012000004003e7
RANfunction setup frame : 1 (2 -> KPM)
Version (frame) : KPM v2
Version (dissector) : KPM v3
Expert Info (Warning/Protocol) : Dissector version mismatch - frame is KPM v2 but dissector is KPM v3
Dissector version mismatch - frame is KPM v2 but dissector is KPM v3
Message : Dissector version mismatch - frame is KPM v2 but dissector is KPM v3
Severity level : Warning
Group : Protocol
E2SM-KPM-IndicationMessage
0... .... Extension Bit : False
.1.. .... Extension Bit : True
..0. .... Small Number Bit : False
Choice Extension Index : 0
indicationMessage-formats : indicationMessage-Format3 (2)
indicationMessage-Format3
0... .... Extension Bit : False
ueMeasReportList : 1 item
Item 0
UEMeasurementReportItem
0... .... Extension Bit : False
.0.. .... Extension Bit : False
ueID : gNB-DU-UEID (1)
gNB-DU-UEID
.... .0.. Extension Bit : False
.... ..0. Optional Field Bit : False (ran-UEID is NOT present)
gNB-CU-UE-F1AP-ID : 0
measReport
0... .... Extension Bit : False
.1.. .... Optional Field Bit : True (measInfoList is present)
..1. .... Optional Field Bit : True (granulPeriod is present)
measData : 1 item
Item 0
MeasurementDataItem
0... .... Extension Bit : False
.0.. .... Optional Field Bit : False (incompleteFlag is NOT present)
measRecord : 2 items
Item 0
0... .... Extension Bit : False
MeasurementRecordItem : real (1)
Real Length : 3
real : 1
Item 1
0... .... Extension Bit : False
MeasurementRecordItem : real (1)
Real Length : 0
real : 0
measInfoList : 2 items
Item 0
MeasurementInfoItem
0... .... Extension Bit : False
.0.. .... Extension Bit : False
measType : measName (0)
...0 .... Extension Present Bit : False
measName : DRB.UEThpDl
labelInfoList : 1 item
Item 0
LabelInfoItem
0... .... Extension Bit : False
measLabel
.0.. .... Extension Bit : False
..1. .... Optional Field Bit : True (noLabel is present)
...0 .... Optional Field Bit : False (plmnID is NOT present)
.... 0... Optional Field Bit : False (sliceID is NOT present)
.... .0.. Optional Field Bit : False (fiveQI is NOT present)
.... ..0. Optional Field Bit : False (qFI is NOT present)
.... ...0 Optional Field Bit : False (qCI is NOT present)
0... .... Optional Field Bit : False (qCImax is NOT present)
.0.. .... Optional Field Bit : False (qCImin is NOT present)
..0. .... Optional Field Bit : False (aRPmax is NOT present)
...0 .... Optional Field Bit : False (aRPmin is NOT present)
.... 0... Optional Field Bit : False (bitrateRange is NOT present)
.... .0.. Optional Field Bit : False (layerMU-MIMO is NOT present)
.... ..0. Optional Field Bit : False (sUM is NOT present)
.... ...0 Optional Field Bit : False (distBinX is NOT present)
0... .... Optional Field Bit : False (distBinY is NOT present)
.0.. .... Optional Field Bit : False (distBinZ is NOT present)
..0. .... Optional Field Bit : False (preLabelOverride is NOT present)
...0 .... Optional Field Bit : False (startEndInd is NOT present)
.... 0... Optional Field Bit : False (min is NOT present)
.... .0.. Optional Field Bit : False (max is NOT present)
.... ..0. Optional Field Bit : False (avg is NOT present)
.... ...0 Extension Present Bit : False
noLabel : true (0)
Item 1
MeasurementInfoItem
0... .... Extension Bit : False
.0.. .... Extension Bit : False
measType : measName (0)
...0 .... Extension Present Bit : False
measName : DRB.UEThpUl
labelInfoList : 1 item
Item 0
LabelInfoItem
0... .... Extension Bit : False
measLabel
.0.. .... Extension Bit : False
..1. .... Optional Field Bit : True (noLabel is present)
...0 .... Optional Field Bit : False (plmnID is NOT present)
.... 0... Optional Field Bit : False (sliceID is NOT present)
.... .0.. Optional Field Bit : False (fiveQI is NOT present)
.... ..0. Optional Field Bit : False (qFI is NOT present)
.... ...0 Optional Field Bit : False (qCI is NOT present)
0... .... Optional Field Bit : False (qCImax is NOT present)
.0.. .... Optional Field Bit : False (qCImin is NOT present)
..0. .... Optional Field Bit : False (aRPmax is NOT present)
...0 .... Optional Field Bit : False (aRPmin is NOT present)
.... 0... Optional Field Bit : False (bitrateRange is NOT present)
.... .0.. Optional Field Bit : False (layerMU-MIMO is NOT present)
.... ..0. Optional Field Bit : False (sUM is NOT present)
.... ...0 Optional Field Bit : False (distBinX is NOT present)
0... .... Optional Field Bit : False (distBinY is NOT present)
.0.. .... Optional Field Bit : False (distBinZ is NOT present)
..0. .... Optional Field Bit : False (preLabelOverride is NOT present)
...0 .... Optional Field Bit : False (startEndInd is NOT present)
.... 0... Optional Field Bit : False (min is NOT present)
.... .0.. Optional Field Bit : False (max is NOT present)
.... ..0. Optional Field Bit : False (avg is NOT present)
.... ...0 Extension Present Bit : False
noLabel : true (0)
granulPeriod : 1000
Rendered from a Wireshark PCAP by VisualEther.

Frame 5, the first RIC Indication. The E2AP layer names the subscription (ricRequestorID 123, ricInstanceID 4), RAN function 2, action 1, and type report. E2SM-KPM-IndicationHeader holds colletStartTime with its decoded timestamp; E2SM-KPM-IndicationMessage, format 3, holds one UEMeasurementReportItem for gNB-CU-UE-F1AP-ID 0 whose measRecord reads real 1, real 0, in the order of its measInfoList: DRB.UEThpDl, DRB.UEThpUl.

Why does Wireshark report a KPM version mismatch?

Wireshark reports a mismatch because the RAN function's OID says KPM v2 while Wireshark decodes KPM with its v3 dissector, the only KPM version it builds. For srsRAN the v3 decode is the right one, because srsRAN encodes KPM with v3 rules under the v2 OID.

The difference shows in one field. KPM v02.02 and v02.03 define the header's TimeStamp as 4 octets, the seconds half of an NTP timestamp (RFC 5905). KPM v03.00 makes it 8 octets, the full 64-bit NTP timestamp (§8.3.12). srsRAN sends 8, and they decode as a 64-bit NTP time that matches the capture's own clock. We checked every KPM payload in the capture by decoding it under both versions' ASN.1. The event trigger, the action definition, and all 132 indication messages give the same values under both and re-encode to the same bytes. Only the indication header differs: a strict v2 decoder would read 4 octets and leave 4 over.

srsRAN's source shows the same thing: releases 24.10 and 25.04 advertise the v2 OID and encode colletStartTime as 8 octets. Action definition format 5 and indication message format 3, the formats this subscription uses, are not v3 additions; they first appear in KPM v02.01 (March 2022). An xApp built against strict KPM v2 ASN.1 would fail on the header, while one built against v3 decodes everything.

srsRAN stamps colletStartTime about 0.2 ms before it sends each report, so in this capture it marks when the report was built rather than the start of the one-second window it measures.

What do the 132 reports show?

The reports show a UE that sits nearly idle, carries a steady low-rate flow for about a minute, and goes idle again.

FramesDownlink (kbit/s)Uplink (kbit/s)Pattern
5 to 650, with 1s0, with 1sIdle, with a 1 kbit/s blip every 10 to 18 s
66 to 12424, peaks of 4924, peaks of 49A steady, symmetric flow for about 65 s
125024The downlink stops one report before the uplink
126 to 13700Idle to the end

The blips come in pairs: a downlink 1 in one report and an uplink 1 in the next (frames 5 and 6, 22 and 23, 32 and 33, 50 and 51), or both in one report (frames 41 and 59). The busy minute reads 24 kbit/s in each direction, with occasional one-report peaks of 49. The capture holds only E2AP, so it cannot show what that traffic was. The KPM reports are all the RIC sees.

The reports are not exactly one second apart. Consecutive indications are 1.050 to 1.215 s apart, with a mean of 1.091 s, against a reporting period of 1000 ms. srsRAN's indication loop restarts its 1000 ms timer only after a report goes out, so the time to collect and send it is added to every period. An xApp that assumes one report per second of wall-clock time would drift by about 9%; colletStartTime is the field to align reports by.

What happens to an indication sent after a subscription delete?

E2AP doesn't say. It defines what the E2 node does with a delete request, and nothing about reports already on their way. In this capture the E2 node sends one more report after the delete request, and the RIC has to decide what to do with it.

The RIC Subscription Delete Request (frame 136) arrives 0.81 s after the last scheduled report, before the next one was due. It names the subscription by RIC Request ID 123/4 and RAN function 2. Then come two messages from the DU in quick succession:

This capture is the DU's own log, so the order is the DU's: it wrote the indication after it logged the delete request. These two did not pass each other on the wire. The DU sent a report in response to the delete.

srsRAN's source explains why. Its indication loop waits for whichever comes first, the end of the reporting period or a delete request for this subscription. When the delete arrives, the wait ends early and the loop marks itself finished. It still collects the measurements and sends one last report for each action, and only then does the delete procedure send its response. The final report is deliberate: it flushes the partial window rather than dropping it.

The spec permits this without describing it. On a delete request, the E2 node deletes the subscription, releases its resources, and sends RIC SUBSCRIPTION DELETE RESPONSE (E2AP §8.2.2.2). The RIC Indication procedure lists no abnormal conditions (§8.2.3.4), so E2AP is silent about an indication sent during the delete or arriving after it.

For a RIC, the safe reading is to treat the subscription as live until the delete response arrives:

sequenceDiagram accTitle: Subscription delete and the last indication accDescr: 0.81 seconds after the last scheduled report, the near-RT RIC sends RIC Subscription Delete Request. 166 microseconds later the E2 node sends one more RIC Indication, and 26 microseconds after that the RIC Subscription Delete Response. participant DU as E2 node (gNB-DU) participant RIC as near-RT RIC DU->>RIC: [135] RIC Indication (last scheduled report) RIC->>DU: [136] RIC Subscription Delete Request (request 123 and 4) DU->>RIC: [137] RIC Indication (0.17 ms later, off schedule) DU-->>RIC: [138] RIC Subscription Delete Response (0.03 ms later)
Frames 135 to 138: the delete, the last report, and the response.

How does E2AP ride on SCTP?

E2AP runs over SCTP, the Stream Control Transmission Protocol, which carries messages reliably over IP between the E2 node and the RIC. E2GAP sets the SCTP payload protocol identifier (PPID) for E2AP to 70 "for all deployment configurations" and reserves 71 and 72. IANA assigned no port, so the E2 node and the RIC are configured with one (E2GAP §6.1).

The main capture can't show any of that: srsRAN's E2AP log keeps only the E2AP messages. The capture from issue #521, recorded on one host in March 2024, keeps the transport.

sequenceDiagram accTitle: E2AP over SCTP accDescr: The E2 node opens an SCTP association to the near-RT RIC with INIT, INIT ACK, COOKIE ECHO, and COOKIE ACK. E2 Setup Request and Response follow as DATA chunks on stream 0, then a subscription and four indications. The RIC shuts the association down with SHUTDOWN, SHUTDOWN ACK, and SHUTDOWN COMPLETE. The E2 node's next INIT is answered with ABORT. participant DU as E2 node (port 44973) participant RIC as near-RT RIC (port 36421) DU->>RIC: INIT RIC-->>DU: INIT ACK DU->>RIC: COOKIE ECHO RIC-->>DU: COOKIE ACK DU->>RIC: DATA, stream 0: E2 Setup Request RIC-->>DU: DATA, stream 0: E2 Setup Response Note over DU,RIC: subscription and four indications, all on stream 0 RIC->>DU: SHUTDOWN DU-->>RIC: SHUTDOWN ACK RIC->>DU: SHUTDOWN COMPLETE DU->>RIC: INIT (5.2 s later) RIC-->>DU: ABORT
The SCTP framing in the issue #521 capture: association, E2AP on stream 0, shutdown, and a refused reconnect.

The E2 node opens the association: its INIT goes from port 44973 to the RIC's port 36421, and the four-way handshake completes in 44 µs. E2 Setup follows 14 ms later, and every E2AP message, in both directions, rides stream 0. Each DATA chunk is marked PPID 72, not the 70 E2GAP requires; Wireshark registers all three E2 values, so it dissects them anyway. At 48.5 s the RIC shuts the association down cleanly, and when the E2 node tries to reconnect 5.2 s later, the RIC answers its INIT with ABORT.

Its E2 Setup Request and all four indications show up as Malformed in Wireshark 4.6.9, so this walkthrough reads E2AP itself from the DLT_USER capture.

How to analyze E2AP in Wireshark

FAQ

What is the difference between E2AP and E2SM? E2AP is the transport-independent signaling protocol of the E2 interface: setup, subscriptions, indications, control, and deletion. An E2SM, such as KPM or RC, defines the content those messages carry for one kind of RAN function. E2AP carries E2SM content as octet strings.

Is the near-RT RIC part of the gNB? No. It is a separate platform that reaches one or more E2 nodes over E2. Each gNB-CU-CP, gNB-CU-UP, or gNB-DU can be its own E2 node with its own E2 link.

Where do KPM measurement names come from? From 3GPP TS 28.552, the 5G performance measurement specification. DRB.UEThpDl is clause 5.1.1.3.1, average downlink UE throughput in the gNB, in kbit/s.

Why does the subscription name two UEs when only one reports? Action definition format 5 requires a list of at least two UE IDs. The DU reports the UEs it has; here only UE 0 existed.

Can an xApp change the reporting period without deleting the subscription? Yes, where both ends support RIC Subscription Modification. In E2AP v03.00 its request can replace the event trigger definition and add, modify, or remove actions, all under the same RIC Request ID. This capture doesn't use it.

Takeaways

  1. E2AP is the envelope; the E2SM is the letter. E2AP sets up the link and moves subscriptions and reports; KPM defines what the reports contain.
  2. E2 Setup is a self-description. Each RAN function's definition lists its triggers, report styles, formats, and measurements, so an xApp can build a valid subscription from it.
  3. E2 Setup carries the node's interface setup. The DU includes an F1 Setup Request and Response in E2 Setup, so the RIC learns its F1 configuration.
  4. The RIC Request ID names the subscription. The pair 123 and 4 tag the request, the response, all 132 reports, and the delete.
  5. Read records in measurement-list order. In a format 3 report the first value is the first measurement asked for: here DRB.UEThpDl, then DRB.UEThpUl.
  6. The OID and the encoding can disagree. srsRAN advertises KPM v2 and encodes the v3 timestamp; decode with v3, and treat the OID as a hint.
  7. Expect reports until the delete response. This DU sends one last report after it receives the delete request.