RIC-244 - Eliminate Setup request from dashboard & connectionAttempts
[ric-plt/nodeb-rnib.git] / entities / gnb.proto
1 /*
2  * Copyright 2019 AT&T Intellectual Property
3  * Copyright 2019 Nokia
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17
18 /*
19  * This source code is part of the near-RT RIC (RAN Intelligent Controller)
20  * platform project (RICP).
21  */
22
23
24 syntax = "proto3";
25 package entities;
26
27 message Gnb{
28         repeated ServedNRCell served_nr_cells = 1;
29         repeated RanFunction ran_functions = 2;
30 }
31
32 message RanFunction{
33         uint32 ran_function_id = 1;
34         string ran_function_definition = 2;
35         uint32 ran_function_revision = 3;
36 }
37
38 message ServedNRCell{
39         ServedNRCellInformation served_nr_cell_information = 1;
40         repeated NrNeighbourInformation nr_neighbour_infos = 2;
41 }
42
43 message ServedNRCellInformation{
44         uint32 nr_pci = 1;
45         string cell_id = 2;
46         string stac5g = 3;
47         string configured_stac = 4;
48         repeated string served_plmns= 5;
49         Nr.Mode nr_mode = 6;
50         message ChoiceNRMode{
51                 message FddInfo{
52                         NrFrequencyInfo ul_freq_info = 1;
53                         NrFrequencyInfo dl_freq_info = 2;
54                         NrTransmissionBandwidth ul_transmission_bandwidth = 3;
55                         NrTransmissionBandwidth dl_transmission_bandwidth = 4;
56                 }
57                 message TddInfo{
58                         NrFrequencyInfo nr_freq_info = 1;
59                         NrTransmissionBandwidth transmission_bandwidth = 2;
60                 }
61                 FddInfo fdd  = 1;
62                 TddInfo tdd  = 2;
63         }
64         ChoiceNRMode choice_nr_mode = 7;
65 }
66
67 message Nr{
68         enum Mode{
69                 UNKNOWN = 0;
70                 FDD = 1;
71                 TDD = 2;
72         }
73 }
74
75 message NrFrequencyInfo{
76         uint64 nr_ar_fcn = 1;
77         message SulInformation{
78             uint64 sul_ar_fcn = 1;
79                 NrTransmissionBandwidth sul_transmission_bandwidth = 2;
80         }
81         SulInformation sulInformation = 3;
82         repeated FrequencyBandItem frequency_bands = 4;
83 }
84
85 message FrequencyBandItem{
86         uint32 nr_frequency_band = 1;
87         repeated uint32 supported_sul_bands = 2;
88 }
89
90 message NrTransmissionBandwidth{
91         Nrscs nrscs = 1;
92         Ncnrb ncnrb= 2;
93 }
94
95 enum Nrscs {
96         UNKNOWN_NRSCS = 0;
97         SCS15 = 1;
98         SCS30 = 2;
99         SCS60 = 3;
100         SCS120 = 4;
101 }
102
103 enum Ncnrb{
104         UNKNOWN_NCNRB = 0;
105     NRB11 =1;
106         NRB18 =2;
107         NRB24 =3;
108         NRB25 =4;
109         NRB31 =5;
110         NRB32 =6;
111         NRB38 =7;
112         NRB51 =8;
113         NRB52 =9;
114         NRB65 =10;
115         NRB66 =11;
116         NRB78 =12;
117         NRB79 =13;
118         NRB93 =14;
119         NRB106 =15;
120         NRB107 =16;
121         NRB121 =17;
122         NRB132 =18;
123         NRB133 =19;
124         NRB135 =20;
125         NRB160 =21;
126         NRB162 =22;
127         NRB189 =23;
128         NRB216 =24;
129         NRB217 =25;
130         NRB245 =26;
131         NRB264 =27;
132         NRB270 =28;
133         NRB273 =29;
134 }
135
136 message NrNeighbourInformation{
137         uint32 nr_pci = 1;
138         string nr_cgi = 2;
139         Nr.Mode nr_mode = 3;
140         message ChoiceNRMode{
141                 message FddInfo{
142                         NrFrequencyInfo ular_fcn_freq_info = 1;
143                         NrFrequencyInfo dlar_fcn_freq_info = 2;
144                 }
145                 message TddInfo{
146                         NrFrequencyInfo ar_fcn_nr_freq_info = 1;
147                 }
148                 FddInfo fdd  = 1;
149                 TddInfo tdd  = 2;
150         }
151         ChoiceNRMode choice_nr_mode = 4;
152         string stac5g = 5;
153         string configured_stac = 6;
154 }