|
libe3 0.6.1
C++ library for E3AP RAN vendor integration
|
The numbers and strings that identify E3AP, the roles of the two sides, the links that carry the messages, and how a dApp registers with an E3 Agent.
This is clause 5 of the specification. The index is README.md. The messages are in 02-ie-mapping.md. The procedures are in 03-procedure-flow.md. The bytes are in 04-encoding.md.
Table: Identity of E3AP
| Item | Value |
|---|---|
| Protocol name | E3AP, the E3 Application Protocol |
| Protocol version string | 1.0.0 |
| Grammar | module E3, ASN.1, APER (aligned). See 04-encoding.md |
| Messages | 11, each inside one E3-PDU |
| Roles | dApp, E3 Agent |
| Encodings | APER, JSON, Protobuf |
| Link layers | ZeroMQ, POSIX sockets |
| Transport layers | IPC, TCP, SCTP |
The version string is a free text of 1 to 32 octets. Both sides write it in the Setup procedure. This version of the specification uses 1.0.0. The string names the version of the protocol. It does not say which grammar revision a sender uses. A change of a constraint changes the encoded bytes of APER, so both sides shall use the same grammar revision.
E3AP is a client and server protocol.
One E3 Agent serves many dApps at the same time. A dApp uses one session with one E3 Agent. A message in the direction from the E3 Agent to the dApps reaches every connected dApp on some links. A dApp shall ignore a message that names another dApp in dAppIdentifier.
Table: Identifiers in E3AP
| Identifier | Range | Assigned by | Lifetime |
|---|---|---|---|
| dApp identifier | 1 to 65535 | the E3 Agent, in the Setup procedure | until the dApp releases or the session ends |
| Subscription identifier | 1 to 65535 | the E3 Agent, in the Subscription procedure | until the subscription is deleted, ends, or the dApp releases |
| RAN function identifier | 1 to 65535 | the RAN node | fixed for the life of the E3 Agent |
| Telemetry identifier, control identifier | 1 to 65535 | the service model of the RAN function | fixed for the life of the E3 Agent |
| Message identifier | 1 to 4294967295 | the sender of each message | one message |
| Sequence identifier | 1 to 4294967295 | the component that starts a procedure | one detection-to-mitigation procedure |
The E3 Agent assigns the lowest free number for a dApp identifier and for a subscription identifier. A number becomes free again as soon as its owner goes away.
The RAN function identifier of E3AP is not the RAN function identifier of the E2 interface. See E2SM-DAPP, identity.
E3AP does not define its own framing on a link that already keeps message boundaries. It runs over a choice of a link layer and a transport layer. Both sides shall use the same choice. There is no negotiation.
Table: Link layers and transport layers
| Link layer | Transport layer | Connections | Message boundary |
|---|---|---|---|
| ZeroMQ | IPC | 3 | one E3AP PDU is one ZeroMQ message |
| ZeroMQ | TCP | 3 | one E3AP PDU is one ZeroMQ message |
| POSIX | IPC | 1 | one E3AP PDU is one message, with no length prefix. See 04-encoding.md |
| POSIX | TCP | 1 | a length prefix on every E3AP PDU, in both directions |
| POSIX | SCTP | 1 | one E3AP PDU is one SCTP message, with no length prefix |
A dApp uses three channels to one E3 Agent. On a ZeroMQ link each channel has a connection of its own. On a POSIX link all three travel on one connection.
Table: Channels between a dApp and an E3 Agent
| Channel | Direction | Carries | ZeroMQ socket pair |
|---|---|---|---|
| Setup | dApp to E3 Agent, then back | the SETUP REQUEST and SETUP RESPONSE messages | REQ on the dApp, REP on the E3 Agent |
| Inbound to the E3 Agent | dApp to E3 Agent | SUBSCRIPTION REQUEST, SUBSCRIPTION DELETE, dApp CONTROL ACTION, dApp REPORT, CONTROL RESPONSE (the answer to an xApp CONTROL ACTION) and RELEASE messages | PUB on the dApp, SUB on the E3 Agent |
| Outbound from the E3 Agent | E3 Agent to dApp | SUBSCRIPTION RESPONSE, INDICATION, xApp CONTROL ACTION, CONTROL RESPONSE (the answer to a dApp CONTROL ACTION) and RELEASE messages. A deprecated MESSAGE ACK message is no longer sent | PUB on the E3 Agent, SUB on the dApp |
The E3 Agent opens its endpoints and waits. The dApp connects to them. On a ZeroMQ link the E3 Agent binds all three sockets. On a POSIX link it listens on one endpoint.
The default endpoints and ports of every link are in 04-encoding.md, with the framing of the link. An implementation may use other values. Both sides shall use the same values.
A dApp registers with the Setup procedure. The dApp sends a SETUP REQUEST message with its protocol version, its name, its version and its vendor. The E3 Agent answers with a SETUP RESPONSE message. On success the response holds the dApp identifier and the list of RAN functions. See 03-procedure-flow.md.
Until the dApp has a dApp identifier, it shall not send any message on the other two channels. On a POSIX link the SETUP REQUEST is the first message of the connection, and the dApp identifier belongs to that connection.
For each RAN function the E3 Agent lists:
The list holds at most 64 RAN functions. A RAN function with more than 256 telemetry identifiers or more than 256 control identifiers does not fit. An E3 Agent shall leave such a RAN function out of the list.
An implementation of the E3 Agent shall:
An implementation of the dApp shall: