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.
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.
What does the whole capture look like?
The capture falls into four phases, with a long gap between the first two.
| Phase | Frames | Time | What happens |
|---|---|---|---|
| E2 Setup | 1 to 2 | 0 to 10.8 ms | The DU introduces itself and its RAN functions; the RIC accepts. |
| Subscription | 3 to 4 | 165.39 s | An xApp subscribes to two KPM throughput measurements; the DU admits it in 0.47 ms. |
| Reports | 5 to 135 | 166.46 to 308.53 s | 131 RIC Indications, one per reporting period. |
| Delete | 136 to 138 | 309.34 s | The 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:
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.
The E2 Setup Request (frame 1) carries three things.
- Global E2 Node ID. A gNB in PLMN
00f110(MCC 001, MNC 01, the usual test network; a PLMN, or public land mobile network, is an operator's network code), gNB ID 411 encoded in 22 bits, and gNB-DU ID 0. The DU ID names this E2 node as one DU of gNB 411. - Two RAN functions. ID 2 is E2SM-KPM, "KPM Monitor", with the KPM v2 OID. ID 3 is E2SM-RC (RAN Control), OID
1.3.6.1.4.1.53148.1.1.2.3. The RIC accepts RC, but nothing in this capture uses it. - E2 node component configuration. One entry, for the F1 interface, keyed by gNB-DU ID 0. It holds an F1 Setup Request from the DU and the F1 Setup Response from the CU.
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.
The request has three parts.
- RIC Request ID: requestor 123, instance 4. Each half is a 16-bit integer (E2AP §9.2.7), and together they name the subscription from now on. The response, all 132 indications, and the delete repeat the pair.
- RAN function ID 2, the KPM function from E2 Setup.
- Subscription details: the event trigger definition and the list of actions. Both are KPM octet strings.
Decoded with KPM, the details read:
- Event trigger, format 1: report every 1000 ms (
reportingPeriod, in milliseconds; KPM v03.00 §8.2.1.1.1). - Action 1, type
report, with report style 5 and action definition format 5, "E2 Node Measurement for Multiple UEs" (KPM §7.4.6, §8.2.1.2.5). It lists two UEs by their gNB-CU UE F1AP ID, 0 and 1: format 5's UE list must hold at least two. For each it asks forDRB.UEThpDlandDRB.UEThpUlwith no labels, so no split per 5QI (5G QoS identifier), slice, or PLMN, and a granularity period of 1000 ms, one measurement window per report.
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:
frame : Frame 3: Packet, 94 bytes on wire (752 bits), 94 bytes captured (752 bits)
e2ap : E2 Application Protocol
E2AP-PDU : initiatingMessage (0)
initiatingMessage
value
RICsubscriptionRequest
protocolIEs : 3 items
Item 0 : id-RICrequestID
ProtocolIE-Field
value
RICrequestID
Item 1 : id-RANfunctionID
ProtocolIE-Field
value
Item 2 : id-RICsubscriptionDetails
ProtocolIE-Field
value
RICsubscriptionDetails
Version (dissector) : KPM v3
Expert Info (Warning/Protocol) : Dissector version mismatch - frame is KPM v2 but dissector is KPM v3
E2SM-KPM-EventTriggerDefinition
eventDefinition-formats : eventDefinition-Format1 (0)
eventDefinition-Format1
ricAction-ToBeSetup-List : 1 item
Item 0 : id-RICaction-ToBeSetup-Item
ProtocolIE-SingleContainer
value
RICaction-ToBeSetup-Item
Version (dissector) : KPM v3
Expert Info (Warning/Protocol) : Dissector version mismatch - frame is KPM v2 but dissector is KPM v3
E2SM-KPM-ActionDefinition
actionDefinition-formats : actionDefinition-Format5 (4)
actionDefinition-Format5
matchingUEidList : 2 items
Item 0
MatchingUEidPerSubItem
ueID : gNB-DU-UEID (1)
gNB-DU-UEID
Item 1
MatchingUEidPerSubItem
ueID : gNB-DU-UEID (1)
gNB-DU-UEID
subscriptionInfo
measInfoList : 2 items
Item 0
MeasurementInfoItem
measType : measName (0)
labelInfoList : 1 item
Item 0
LabelInfoItem
measLabel
Item 1
MeasurementInfoItem
measType : measName (0)
labelInfoList : 1 item
Item 0
LabelInfoItem
measLabel
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.
- E2AP envelope: RIC Request ID 123/4, RAN function 2, action 1, indication type
report. - KPM header, format 1:
colletStartTime, the measurement collection start time in UTC (KPM §8.3.12), here 14:07:24 UTC on 13 November 2025. (Wireshark spells the field as the ASN.1 does,collet.) - KPM message, format 3: a list of per-UE reports. Each holds the UE ID and a format 1 report: the measurement records, the measurement list they belong to, and the granularity period (KPM §8.2.1.4.3).
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.
frame : Frame 5: Packet, 111 bytes on wire (888 bits), 111 bytes captured (888 bits)
e2ap : E2 Application Protocol
E2AP-PDU : initiatingMessage (0)
initiatingMessage
value
RICindication
protocolIEs : 6 items
Item 0 : id-RICrequestID
ProtocolIE-Field
value
RICrequestID
Item 1 : id-RANfunctionID
ProtocolIE-Field
value
Item 2 : id-RICactionID
ProtocolIE-Field
value
Item 3 : id-RICindicationType
ProtocolIE-Field
value
Item 4 : id-RICindicationHeader
ProtocolIE-Field
value
Version (dissector) : KPM v3
Expert Info (Warning/Protocol) : Dissector version mismatch - frame is KPM v2 but dissector is KPM v3
E2SM-KPM-IndicationHeader
indicationHeader-formats : indicationHeader-Format1 (0)
indicationHeader-Format1
Item 5 : id-RICindicationMessage
ProtocolIE-Field
value
Version (dissector) : KPM v3
Expert Info (Warning/Protocol) : Dissector version mismatch - frame is KPM v2 but dissector is KPM v3
E2SM-KPM-IndicationMessage
indicationMessage-formats : indicationMessage-Format3 (2)
indicationMessage-Format3
ueMeasReportList : 1 item
Item 0
UEMeasurementReportItem
ueID : gNB-DU-UEID (1)
gNB-DU-UEID
measReport
measData : 1 item
Item 0
MeasurementDataItem
measRecord : 2 items
Item 0
MeasurementRecordItem : real (1)
Item 1
MeasurementRecordItem : real (1)
measInfoList : 2 items
Item 0
MeasurementInfoItem
measType : measName (0)
labelInfoList : 1 item
Item 0
LabelInfoItem
measLabel
Item 1
MeasurementInfoItem
measType : measName (0)
labelInfoList : 1 item
Item 0
LabelInfoItem
measLabel
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.
| Frames | Downlink (kbit/s) | Uplink (kbit/s) | Pattern |
|---|---|---|---|
| 5 to 65 | 0, with 1s | 0, with 1s | Idle, with a 1 kbit/s blip every 10 to 18 s |
| 66 to 124 | 24, peaks of 49 | 24, peaks of 49 | A steady, symmetric flow for about 65 s |
| 125 | 0 | 24 | The downlink stops one report before the uplink |
| 126 to 137 | 0 | 0 | Idle 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:
- Frame 137, a RIC Indication, 166 µs after the delete request and off the reporting schedule. It reads 0 kbit/s both ways.
- Frame 138, the RIC Subscription Delete Response, 26 µs later.
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:
- Before the response, an indication still belongs to the subscription; process it or discard it as the xApp prefers. When both messages travel on the same SCTP stream, as every message in the issue #521 capture does, SCTP delivers them in order, so the RIC sees frame 137 before frame 138.
- After the response, the RIC Request ID routes nowhere. E2AP's cause for an ID the receiver doesn't recognize is "RIC Request ID unknown" (
request-id-unknown,CauseRICrequestvalue 6, §9.2.1), the cause an E2 node returns in a RIC Subscription Delete Failure for a subscription it doesn't know (§8.2.2.3).
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.
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
- Map the link type. srsRAN writes E2AP captures with link type 155 (DLT_USER 8), which Wireshark does not dissect by default. Add a DLT_USER row for "User 8 (DLT=155)" with payload protocol
e2ap(Preferences, Protocols, DLT_USER), or on the command line:-o 'uat:user_dlts:"User 8 (DLT=155)","e2ap","0","","0",""'. The DLT_USER numbers are only a convention between srsRAN and its users, so set the mapping explicitly rather than trusting a tool to guess it. - Expect the version warning on srsRAN KPM. The "Dissector version mismatch" note is accurate about the OID, and the v3 decode is right for srsRAN's bytes. For another vendor, check the OID: Wireshark has no KPM version preference (its only E2SM version switch is for RC), so it would decode a genuine v2 sender's header wrongly.
- Useful display filters.
e2ap.RICindication_elementselects the RIC Indications by name;e2ap.procedureCode == 5does the same by procedure code (8 is RIC Subscription, 9 RIC Subscription Delete, 1 E2 Setup). Each message has its own_elementfield, such ase2ap.RICsubscriptionDeleteRequest_element. The shortere2ap.RICindicationis not a field, and Wireshark rejects it. Filter one2ap.ricRequestorID == 123 && e2ap.ricInstanceID == 4to follow one subscription. - Field names to know.
e2ap.measNameande2ap.realgive the measurement names and values;e2ap.colletStartTimethe raw header time ande2ap.timestamp-stringits decoded form;e2ap.RICindicationTypethe indication type (with a capital R). - The nested F1AP decodes too. Wireshark dissects the F1 Setup Request and Response inside the E2 Setup Request's component configuration, so
f1ap.GNB_DU_Namematches frame 1.
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
- 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.
- 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.
- 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.
- The RIC Request ID names the subscription. The pair 123 and 4 tag the request, the response, all 132 reports, and the delete.
- Read records in measurement-list order. In a format 3 report the first value is the first measurement asked for: here
DRB.UEThpDl, thenDRB.UEThpUl. - 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.
- Expect reports until the delete response. This DU sends one last report after it receives the delete request.