|
libe3 0.6.1
C++ library for E3AP RAN vendor integration
|
The procedures of E3AP, in the order a dApp uses them: Setup, Subscription, Indication, Control, Report and Release. Each procedure has a purpose, the steps of each side, the successful operation, the unsuccessful operation and the abnormal conditions.
This is clause 7 of the specification. The index is README.md. The messages are in 02-ie-mapping.md. The rules for ranges, clocks and errors are in 05-semantics-and-constraints.md.
Table: Roles in the procedures
| Role | Who | What it does |
|---|---|---|
| dApp | an application next to the RAN | starts Setup, Subscription, dApp Control, dApp Report and Release. Receives Indication, xApp Control, Release and the answer to a dApp Control. Answers an xApp Control that asks for it. |
| E3 Agent | the E3 entity in the RAN node | answers Setup and Subscription. Sends Indication, xApp Control and the answer to a dApp Control. Hosts the RAN functions. |
| Service model | the definition of one RAN function | gives meaning to the payloads. Starts and stops with the first and the last subscriber. |
| RIC side | an xApp and the E2 interface | sends xApp Control through the E3 Agent. Receives dApp Report through the E3 Agent. See E2SM-DAPP. |
Table: Which message starts which procedure
| Procedure | Request | Response or result | Channel of the request |
|---|---|---|---|
| Setup | SETUP REQUEST | SETUP RESPONSE | setup |
| Subscription | SUBSCRIPTION REQUEST | SUBSCRIPTION RESPONSE | inbound to the E3 Agent |
| Subscription delete | SUBSCRIPTION DELETE | SUBSCRIPTION RESPONSE | inbound to the E3 Agent |
| Indication | INDICATION | none | outbound from the E3 Agent |
| dApp Control | dApp CONTROL ACTION | CONTROL RESPONSE, when the dApp asks for it, and always for a refusal by the E3 Agent | inbound to the E3 Agent |
| dApp Report | dApp REPORT | none | inbound to the E3 Agent |
| xApp Control | xApp CONTROL ACTION | CONTROL RESPONSE from the dApp, when the E3 Agent asks for it | outbound from the E3 Agent |
| Release | RELEASE | none | either direction |
The Setup procedure registers a dApp with an E3 Agent. It gives the dApp an identifier and tells it which RAN functions exist.
The SETUP RESPONSE message has responseCode "positive". It holds dAppIdentifier, ranIdentifier, e3apProtocolVersion and ranFunctionList. The dApp keeps the dApp identifier and the RAN function list. The dApp may subscribe from now.
The E3 Agent shall answer with responseCode "negative" when it cannot register the dApp, for example when it has no free dApp identifier. A negative response has no dAppIdentifier. The E3 Agent shall also answer with a negative response when the message does not decode or is not a SETUP REQUEST message. The response then has no ranFunctionList. The E3 Agent should give the reason in cause and detail: resourceExhausted when it has no free dApp identifier, protocolError when the message is not a SETUP REQUEST message, and unsupportedProtocolVersion when it refuses the version string.
A dApp that receives a negative response has no session. It shall not send other messages.
The Subscription procedure tells the E3 Agent that a dApp uses a RAN function. It starts the service model of the RAN function if the dApp is its first subscriber.
The SUBSCRIPTION RESPONSE message has responseCode "positive" and holds subscriptionId. It also lists the telemetry identifiers and control identifiers that the E3 Agent grants, the RAN function identifier and the interval that it keeps. The dApp keeps the subscription identifier. A grant list that is missing means that the E3 Agent does not report the grant. A grant list that is empty means that it grants nothing.
A second SUBSCRIPTION REQUEST message for the same RAN function from the same dApp returns the existing subscription identifier and "positive". It does not create a second subscription and it does not change the existing one: the grant lists and the interval in the response are those that the E3 Agent holds, not those of the second request. A dApp that wants other lists or another interval sends a SUBSCRIPTION DELETE message and then a new SUBSCRIPTION REQUEST message. That is the only way that all known E3 Agents handle alike. A second request that the E3 Agent refuses leaves the existing subscription as it was.
The interval in the response is in microseconds. It is the least time that the E3 Agent keeps between two indications of the subscription. Indications can be further apart, because the E3 Agent sends them when it has data. It is not a copy of the interval in the request: a service model that keeps a larger interval reports that one. A missing interval means that the E3 Agent does not report one, which does not mean that it keeps none. The value 0 means that it keeps none and is sent as a missing interval. The RAN function identifier in the response is for information, and a dApp shall not depend on it.
The E3 Agent shall answer "negative" and shall not create a subscription when one of these holds. It gives the cause in cause and a text in detail.
Table: Reasons to refuse a SUBSCRIPTION REQUEST message
| The E3 Agent finds that | cause |
|---|---|
| the dApp has not completed the Setup procedure | setupRequired |
| the RAN function identifier is not in its RAN function list | unsupportedRanFunction |
| the telemetry list and the control list are both empty | invalidRequest |
| a telemetry identifier or a control identifier is not offered by the RAN function | unsupportedIdentifier |
| it has no free subscription identifier | resourceExhausted |
The check of an identifier is against the lists that the RAN function advertises in the SETUP RESPONSE message. A RAN function that has controls accepts a request that names one of them. The E3 Agent shall not start the service model for a request that it refuses.
The Subscription delete procedure ends one subscription.
The response has responseCode "positive" and subscriptionId. The subscription identifier is free again.
The response has responseCode "negative" when the subscription identifier is unknown, belongs to another dApp, or has already ended. The cause is notFound, or setupRequired when the dApp has not completed the Setup procedure.
The Indication procedure delivers telemetry from a RAN function to a dApp.
The dApp handler receives the payload. There is no response.
There is no response. If the outbound queue of the E3 Agent is full, the E3 Agent drops the message.
The dApp Control procedure lets a dApp ask a RAN function to do something.
The service model applies the action. If requestAck was "true", the E3 Agent sends one CONTROL RESPONSE message: requestId holds the message identifier of the dApp CONTROL ACTION message, dAppIdentifier, ranFunctionIdentifier and controlIdentifier repeat those of the control, responseCode holds the result and controlOutcome holds what the service model reports about the control, if it reports anything. When the service model answers is the choice of the service model: a service model that applies the action later answers later. A service model that has more to report than the outcome puts it in its own payloads.
If requestAck is missing or "false", the E3 Agent sends no CONTROL RESPONSE message for a control that reaches the service model, whatever the service model answers.
A service model that never answers sends nothing. The E3 Agent does not make up an answer for a control that the service model may still apply, so a dApp that asked needs its own time limit.
The service model may answer with responseCode "negative", with a cause and a detail. The E3 Agent sends it if the dApp asked. If the service model fails to take the control and has not answered, the E3 Agent sends a CONTROL RESPONSE message with responseCode "negative" and the cause unspecified, if the dApp asked.
The E3 Agent shall answer with a CONTROL RESPONSE message with responseCode "negative" when it cannot hand the control to a service model, whether the dApp asked for an answer or not. requestId holds the message identifier of the dApp CONTROL ACTION message.
Table: Reasons to refuse a dApp CONTROL ACTION message
| The E3 Agent finds that | cause |
|---|---|
| the dApp has not completed the Setup procedure | setupRequired |
| the RAN function identifier is not in its RAN function list | unsupportedRanFunction |
| the control identifier is not offered by the RAN function | unsupportedIdentifier |
| the service model does not run, because no dApp has a subscription to the RAN function | notFound |
| too many controls wait for an answer | resourceExhausted |
A message that the E3 Agent refuses does not reach the service model.
The dApp Report procedure sends a result from a dApp to a RIC. It is the start of an E2-E3 loop.
There is no response. The report is delivered when the RIC side receives it.
A dApp shall not send a dApp REPORT message with sequenceId 0. The value is not valid on any encoding.
The xApp Control procedure hands a decision of an xApp to a dApp.
The dApp handler receives the payload. If requestAck was "true", the dApp sends one CONTROL RESPONSE message: requestId holds the message identifier of the xApp CONTROL ACTION message, dAppIdentifier is its own, ranFunctionIdentifier repeats that of the control, controlIdentifier is the control that the dApp applied, from the list that the RAN function advertises, and responseCode holds the result. The RIC side learns the result from the control outcome of E2SM-DAPP.
An E3 Agent shall not send an xApp CONTROL ACTION message with sequenceId 0.
A dApp that does not act on xApp controls answers a message that asks with responseCode "negative" and the cause unsupportedRanFunction.
The Release procedure ends the session of a dApp.
There is no response. The dApp does not get an event when the E3 Agent later closes the link.
One sequence identifier joins all the messages of one procedure from the detection by a dApp to the application of the decision.
Table: How the sequence identifier travels
| Step | Message | Who sets the identifier | Presence |
|---|---|---|---|
| 1 | dApp REPORT | the dApp | mandatory |
| 2 | E2SM-DAPP indication header | the RIC side copies it from step 1 | mandatory |
| 3 | E2SM-DAPP control header | the xApp copies it from step 2 | mandatory |
| 4 | xApp CONTROL ACTION | the RIC side copies it from step 3 | mandatory |
| 5 | dApp CONTROL ACTION | the dApp copies it from step 4 | optional |
A dApp control that the dApp decided on its own has no sequence identifier. It has no procedure behind it. The message is normal.
An implementation may keep timing records for these messages. The records are not keyed on the sequence identifier. See the latency recorder. The loop boxes are in path A and path B.
The E3 Agent does not process the messages on the thread of the sender. This description is informative. It explains where a message waits.