- Introduction
- Release notes
- Prerequisites
- Project folders structure
- Installation guide
- Upcoming changes
- License
Subscription Manager is a basic platform service of RIC. It is responsible to serve, coordinate and manage xApps' subscriptions.
Submgr acts as an anchor point for subscription related internal messaging, i.e. every xApp sends its subscription related messages to Submgr. Submgr invokes Routing Manager (Rtmgr) to create or tear down the subscription related routes, and the appropriate E2 Termination to signal the subscription related event also towards the RAN.
The solution base on the xapp-frame project which provides the common HttpREST, RMR and SDL interfaces.
Current implementation provides the following functionalities:
- Handles RIC_SUB_REQ and RIC_SUB_RESP type RMR messages
- Utilizes E2AP encoder/decoder generated by ASN1-C
- Generates New subscription ID and forwards subscription request to E2 termination
- Keeps maintaining the status of subscriptions
- Receives Subscription response and sends it back to the subscriber
- Uses SUBMGR_SEED_SN environment variable to initialize subscription ID counter
Check the separated RELNOTES
file.
- Healthy kubernetes cluster
- Access to the common docker registry
- /manifest: contains deployment files (Kubernetes manifests)
- /cmd: contains go project's main file
- /pkg: contains go project's packages
- /config: contains default configuration file for the service
- /test: contains CI/CD testing files (scripts, stubs, mocks, manifests)
Enter the project root and execute docker build -t submgr:tag .
.
The Dockerfile has two main phases. First is the code compilation, where it creates an intermediate container for downloading all dependencies then compiles the code. In the second phase it builds the production ready container.
NOTE: If you are behind proxy, see this guide: https://docs.docker.com/network/proxy/#configure-the-docker-client
Tag the submgr
container according to the project release and push it to a registry accessible from all minions of the Kubernetes cluster.
Edit the container image section of submgr-dep.yaml
file and set the submgr
image tag accordingly.
Issue the kubectl create -f {manifest.yaml}
command in the following order
manifests/namespace.yaml
: creates theexample
namespace for routing-manager resourcesmanifests/submgr/submgr-dep.yaml
: instantiates thesubmgr
deployment in theexample
namespacemanifests/submgr/submgr-svc.yaml
: creates thesubmgr
service inexample
namespace
Subscription Manager's behaviour can be tested using the provided stub xApp (called RCO) and the stub E2 Termination (called E2T) on the following way.
- Compile and Installing subscription manager
2 Enter
./test/dbaas
folder and issuekubectl apply -f ./manifests
- Enter
./test/e2t/
folder and runbuild.sh
. After docker image successfully built, issuekubectl apply -f ./manifests
- Enter
./test/rco/
folder and runbuild.sh
. After docker image successfully built, issuekubectl apply -f ./manifests
- Configure RMR routes accordingly
Sunny Day testing scenario:
- RCO (stub) sends valid Subscription Requests (12010) to SUBMGR.
- SUBMGR receives RCO's subscription request and generates and puts a new ID in the given request and forwards it to E2T (stub)
- E2T (stub) receives the Subscription Request message and sends a valid Subscription Response (12011) to SUBMGR
- SUBMGR accepts the Subscirption Response and forwards it to RCO (stub)
Rainy Day testing scenarios:
-
Wrong/Malformed Request
- RCO (stub) sends non-subsciption type (10000) message to SUBMGR.
- SUBMGR discards the non-subscription related tye message and emmits an error log entry on it's standard output
- RCO (stub) sends Subscription Request type (12010) messages to SUBMGR but with malformed payload
- SUBMGR accepts the Suubscription Requets but fails to decode so emmits an error log entry on it's standard output
-
Wrong/Malformed Response
- E2T (stub) sends Subsciption Response type (12011) message to SUBMGR but with wrong Subscription Sequence Number
- SUBMGR accepts the Suubscription Response but it emmits an error log entry on it's standard output since the given Sequence Number is invalid
- E2T (stub) sends Subscription Response type (12011) messages but with malformed payload to SUBMGR
- SUBMGR accepts the Subscription Response but fails to decode so emmits an error log entry on it's standard output
NOTES:
- Both stub component use pre coded E2 message as a skeleton to set or get the
ricRequestSequenceNumber
in it and pass it between the components. The message presented as a hex dump which is inprinted in the code. Use theRCO_RAWDATA
andE2T_RAWDATA
environment variables in the pod manifest to override the default skeleton messages. - RCO (stub) sends Subscription Requests with ID=12345 by default. Use the
RCO_SEED_SN
environment variable in the pod manifest to override this number.
Basic configuration file provided in ./config/
folder. Consult xapp-frame project documentation for custom configuration settings.
SUBMGR_SEED_SN
environment variable is defined in the pod manifest and used to control the initial value of the Subscription Sequence Number. If this environment variable is undefied, SUBMGR choses a random number from the range of 0-65535
[] Unit tests
[] Full RTMGR integration
[] Jaeger tracing support
[] Generate ASN1-C code in build time
[] Full RTMGR integration
[] Jaeger tracing support
[] Rainy Day scenarios
This project is licensed under the Apache License, Version 2.0 - see the LICENSE