Config DB is used to store the configuration and operation parameters of xNFs. It also persists the RAN slice details and acts as a RAN inventory.
For G-release, it stores the details of NearRTRIC, CU, DU, RRM Policy and RAN Slice details. Static mapping between tracking area and cells are also persisted.
Database Schema
NearRTRIC
Columns | Type | Description |
nearRTRICId | integer | Unique Id |
gNBId | Integer | gNBId |
trackingArea | String | Tracking Area for which the service is requested |
NRCellDUList | List<GNBDUFunction> | List of gNBDUFunction -Bidirectiona one-to-many relationship with NGRANInfo & gNBCUCPFunction |
NRCellCUCPList | List<GNBCUCPFunction> | List of gNBCUCPFunction - Bidirectiona one-to-many relationship with NGRANInfo & gNBDUFunction |
NRCellCUUPList | List<GNBCUUPFunction> | List of gNBCUUPFunction - Bidirectiona one-to-many relationship with NGRANInfo |
ranNFNSSIList | List<String> | RANNFNSSI list |
pLMNInfoList | List<PLMNInfo> | NSSAI List |
GNBCUCPFunction
Columns | Type | Description |
gNBId | Integer | |
gNBIdLength | Integer | |
gNBCUName | String | |
pLMNId | String | |
nFType | String | |
cellCUList | List<NRCellCU> | Bidirectional one-to-many relationship with GNBCUCPFunction |
nearRTRICId | Integer | Foreign key to relate with NearRTRIC |
GNBCUUPFunction
Columns | Type | Description |
gNBId | Integer | |
gNBIdLength | Integer | |
gNBCUUPId | Integer | Unique id |
pLMNInfoList | List<PLMNInfo> | List of NSSAIs |
resourceType | String | DRB |
nearRTRICId | Integer | Foreign key to relate with NearRTRIC |
GNBDUFunction
Columns | Type | Description |
gNBId | Integer | |
gNBIdLength | Integer | |
gNBDUId | Integer | Primary key |
gNBDUName | String | |
nFType | String | |
cellDUList | List<NRCellDU> | Bidirectional one-to-many relationship with GNBDUFunction |
nearRTRICId | Integer | Foreign key to relate with NearRTRIC |
NRCellCU
Columns | Type | Description |
cellLocalId | Integer | |
resourceType | String | RRC Connected Users |
pLMNInfoList | List<PLMNInfo> | |
gNBCUName | String | Foreign key |
NRCellDU
Columns | Type | Description |
cellLocalId | Integer | identifies a NR cell within a PLMN |
operationalState | enum | allowedValues: ENABLED, DISABLED |
administrativeState | enum | allowedValues: LOCKED, SHUTTING DOWN, UNLOCKED. |
cellState | enum | allowedValues: IDLE", INACTIVE", ACTIVE. |
pLMNInfoList | List<PLMNInfo> | |
nRPCI | Integer | Physical Cell Identity (PCI) of the NR cell |
nRTAC | Integer | Tracking Area code |
gNBDUId | Integer | foreign key |
PLMNInfo
Attribute name | Type |
pLMNId | String |
NSSAI | NSSAI |
NSSAI
Attribute name | Type |
sNSSAI | String |
status | String |
configData | NSSAIConfig |
globalSubscriberId | String |
subscriptionServiceType | String |
NSSAIConfig
Attribute name | Type |
maxNumberOfConns | Integer |
dLThptPerSlice | Integer |
uLThptPerSlice | Integer |
RANInventory
Columns | Type | Description |
ranNFNSSIID | String | Unique identifier of RAN NF NSSI |
RANNSSIList | List<String> | List of RAN NSSIs |
NSSAIList | List<String> | List of NSSAIs catered by this RAN slice |
sliceProfiles | List<SliceProfile> | |
trackingAreaList | String | List of tracking area stored as json string |
subnetStatus | String | Status of the RAN subnet |
nsstId | String | NSST ID |
sliceType | String | Type of slice eMBB/uRLLC/mMTC |
isShareable | String | Shareability of radio resources |
RRMPolicyRatio
Columns | Type | Description |
rrmPolicyID | integer | Unique Id of the RRMPolicy |
resourceID | String | Id of CU/DU/NearRTRIC |
resourceType | String | |
sliceType | String | Type of slice eMBB/uRLLC/mMTC |
rRMPolicyMemberList | List<RRMPolicyMember> | Embeddable entity |
quotaType | String | "STRICT", "FLOAT" |
rRMPolicyMaxRatio | integer | |
rRMPolicyMinRatio | Integer | |
rRMPolicyDedicatedRatio | integer |
RRMPolicyMember
Attribute name | Type |
pLMNId | String |
sNSSAI | String |
TACells
Attribute name | Type |
trackingArea | String |
cells | String |
API Documentation
Config DB exposes several APIs to read and write data from DB. Refer the Swagger document for API details.
Pre-Loaded Data
DB stores data of 2 NearRTRICs, 2 gNBCUCPFunctions, 2 gNBCUUPFunctions, 6 gNBDUFunctions and 30 Cell details. Refer the document for preloaded data.
Setup Details
Refer Config DB setup
Config DB is used to store the configuration and operation parameters of xNFs. It also persists the RAN slice details and acts as a RAN inventory.
For G-release, it stores the details of NearRTRIC, CU, DU, RRM Policy and RAN Slice details. Static mapping between tracking area and cells are also persisted.
Database Schema
NearRTRIC
Columns | Type | Description |
nearRTRICId | integer | Unique Id |
gNBId | Integer | |
trackingArea | String | Tracking Area for which the service is requested |
NRCellDUList | List<GNBDUFunction> | List of gNBDUFunction -Bidirectiona one-to-many relationship with NGRANInfo & gNBCUCPFunction |
NRCellCUCPList | List<GNBCUCPFunction> | List of gNBCUCPFunction - Bidirectiona one-to-many relationship with NGRANInfo & gNBDUFunction |
NRCellCUUPList | List<GNBCUUPFunction> | List of gNBCUUPFunction - Bidirectiona one-to-many relationship with NGRANInfo |
ranNFNSSIList | List<String> | RANNFNSSI list |
pLMNInfoList | List<PLMNInfo> | NSSAI List |
GNBCUCPFunction
Columns | Type | Description |
gNBId | Integer | |
gNBIdLength | Integer | |
gNBCUName | String | |
pLMNId | String | |
nFType | String | |
cellCUList | List<NRCellCU> | Bidirectional one-to-many relationship with GNBCUCPFunction |
nearRTRICId | Integer | Foreign key to relate with NearRTRIC |
GNBCUUPFunction
Columns | Type | Description |
gNBId | Integer | |
gNBIdLength | Integer | |
gNBCUUPId | Integer | Unique id |
pLMNInfoList | List<PLMNInfo> | List of NSSAIs |
resourceType | String | DRB |
nearRTRICId | Integer | Foreign key to relate with NearRTRIC |
GNBDUFunction
Columns | Type | Description |
gNBId | Integer | |
gNBIdLength | Integer | |
gNBDUId | Integer | Primary key |
gNBDUName | String | |
nFType | String | |
cellDUList | List<NRCellDU> | Bidirectional one-to-many relationship with GNBDUFunction |
nearRTRICId | Integer | Foreign key to relate with NearRTRIC |
NRCellCU
Columns | Type | Description |
cellLocalId | Integer | |
resourceType | String | RRC Connected Users |
pLMNInfoList | List<PLMNInfo> | |
gNBCUName | String | Foreign key |
NRCellDU
Columns | Type | Description |
cellLocalId | Integer | identifies a NR cell within a PLMN |
operationalState | enum | allowedValues: ENABLED, DISABLED |
administrativeState | enum | allowedValues: LOCKED, SHUTTING DOWN, UNLOCKED. |
cellState | enum | allowedValues: IDLE", INACTIVE", ACTIVE. |
pLMNInfoList | List<PLMNInfo> | |
nRPCI | Integer | Physical Cell Identity (PCI) of the NR cell |
nRTAC | Integer | Tracking Area code |
gNBDUId | Integer | foreign key |
PLMNInfo
Attribute name | Type |
pLMNId | String |
NSSAI | NSSAI |
NSSAI
Attribute name | Type |
sNSSAI | String |
status | String |
configData | NSSAIConfig |
globalSubscriberId | String |
subscriptionServiceType | String |
NSSAIConfig
Attribute name | Type |
maxNumberOfConns | Integer |
dLThptPerSlice | Integer |
uLThptPerSlice | Integer |
RANInventory
Columns | Type | Description |
ranNFNSSIID | String | Unique identifier of RAN NF NSSI |
RANNSSIList | List<String> | List of RAN NSSIs |
NSSAIList | List<String> | List of NSSAIs catered by this RAN slice |
sliceProfiles | List<SliceProfile> | |
trackingAreaList | String | List of tracking area stored as json string |
subnetStatus | String | Status of the RAN subnet |
nsstId | String | NSST ID |
sliceType | String | Type of slice eMBB/uRLLC/mMTC |
isShareable | String | Shareability of radio resources |
RRMPolicyRatio
Columns | Type | Description |
rrmPolicyID | integer | Unique Id of the RRMPolicy |
resourceID | String | Id of CU/DU/NearRTRIC |
resourceType | String | |
sliceType | String | Type of slice eMBB/uRLLC/mMTC |
rRMPolicyMemberList | List<RRMPolicyMember> | Embeddable entity |
quotaType | String | "STRICT", "FLOAT" |
rRMPolicyMaxRatio | integer | |
rRMPolicyMinRatio | Integer | |
rRMPolicyDedicatedRatio | integer |
RRMPolicyMember
Attribute name | Type |
pLMNId | String |
sNSSAI | String |
TACells
Attribute name | Type |
trackingArea | String |
cells | String |
API Documentation
Config DB exposes several APIs to read and write data from DB. Refer the Swagger document for API details.
Pre-Loaded Data
DB stores data of 2 NearRTRICs, 2 gNBCUCPFunctions, 2 gNBCUUPFunctions, 6 gNBDUFunctions and 30 Cell details. Refer the document for preloaded data.
Setup Details
Refer Config DB setup
1 Comment
Ramesh Narayana Iyer
Hi Ahila,
I am working on ConfigDB for test some RAN use cases. For that, I checked-out ConfigDB source code from https://github.com/onap-oof-pci-poc/sdnc.git (master) and able to execute Config-DB-API-APP V4.0.0 which is implemented in RanDBConfigController.java.
To create/populate ConfigDBSchema and sample Data, I used (SDNC_ConfigDB_SchemaV4.sql) resource from https://wiki.onap.org/display/DW/Config+DB
But to execute other API's below and which is mentioned in https://wiki.onap.org/display/DW/CPS+APIs
I couldn't find any such API implementations in RanDBConfigController.java
Example:
1. Get the list of cells for a specific region (identified by regionId)
GET: /api/sdnc-config-db/v4/getCellList/{regionId}/{ts}
2. Get PnfId of a managed element in O-RAN.
PnfId represents the node name for Netconf Mount for various O-RAN managed elements as below:
For NonRTRIC: - idNearRTRIC
For GNBDUFunction: - gNBDUId
For GNBCUUPFunction: gNBCUUPId
For GNBCUCPFunction: gNBCUName
GET: /api/sdnc-config-db/v4/getPnfId/{maanagedElementId}/{ts}
Is there any other Git branch code I have to use for those implementations? Or should I write new implementations in Config-DB-API-APP?
And also how to get interface details associated with GNBFunctions? Is there any API for that?
Example:-
Device | Interfaces
------------------------------------------
GNBDUFunction | F1C, F1U
GNBCUCPFunction | F1C,E1,XnC,X2C,NgC
GNBCUUPFunction | E1,F1U,XnU,NgU,X2U,S1U
I would appreciate for any information