[RIC-384] Update proto version and add ran_function proto
[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 import "ran_function.proto";
27
28
29 message Gnb{
30         repeated ServedNRCell served_nr_cells = 1;
31         repeated RanFunction ran_functions = 2;
32 }
33
34 message ServedNRCell{
35         ServedNRCellInformation served_nr_cell_information = 1;
36         repeated NrNeighbourInformation nr_neighbour_infos = 2;
37 }
38
39 message ServedNRCellInformation{
40         uint32 nr_pci = 1;
41         string cell_id = 2;
42         string stac5g = 3;
43         string configured_stac = 4;
44         repeated string served_plmns= 5;
45         Nr.Mode nr_mode = 6;
46         message ChoiceNRMode{
47                 message FddInfo{
48                         NrFrequencyInfo ul_freq_info = 1;
49                         NrFrequencyInfo dl_freq_info = 2;
50                         NrTransmissionBandwidth ul_transmission_bandwidth = 3;
51                         NrTransmissionBandwidth dl_transmission_bandwidth = 4;
52                 }
53                 message TddInfo{
54                         NrFrequencyInfo nr_freq_info = 1;
55                         NrTransmissionBandwidth transmission_bandwidth = 2;
56                 }
57                 FddInfo fdd  = 1;
58                 TddInfo tdd  = 2;
59         }
60         ChoiceNRMode choice_nr_mode = 7;
61 }
62
63 message Nr{
64         enum Mode{
65                 UNKNOWN = 0;
66                 FDD = 1;
67                 TDD = 2;
68         }
69 }
70
71 message NrFrequencyInfo{
72         uint64 nr_ar_fcn = 1;
73         message SulInformation{
74             uint64 sul_ar_fcn = 1;
75                 NrTransmissionBandwidth sul_transmission_bandwidth = 2;
76         }
77         SulInformation sulInformation = 3;
78         repeated FrequencyBandItem frequency_bands = 4;
79 }
80
81 message FrequencyBandItem{
82         uint32 nr_frequency_band = 1;
83         repeated uint32 supported_sul_bands = 2;
84 }
85
86 message NrTransmissionBandwidth{
87         Nrscs nrscs = 1;
88         Ncnrb ncnrb= 2;
89 }
90
91 enum Nrscs {
92         UNKNOWN_NRSCS = 0;
93         SCS15 = 1;
94         SCS30 = 2;
95         SCS60 = 3;
96         SCS120 = 4;
97 }
98
99 enum Ncnrb{
100         UNKNOWN_NCNRB = 0;
101     NRB11 =1;
102         NRB18 =2;
103         NRB24 =3;
104         NRB25 =4;
105         NRB31 =5;
106         NRB32 =6;
107         NRB38 =7;
108         NRB51 =8;
109         NRB52 =9;
110         NRB65 =10;
111         NRB66 =11;
112         NRB78 =12;
113         NRB79 =13;
114         NRB93 =14;
115         NRB106 =15;
116         NRB107 =16;
117         NRB121 =17;
118         NRB132 =18;
119         NRB133 =19;
120         NRB135 =20;
121         NRB160 =21;
122         NRB162 =22;
123         NRB189 =23;
124         NRB216 =24;
125         NRB217 =25;
126         NRB245 =26;
127         NRB264 =27;
128         NRB270 =28;
129         NRB273 =29;
130 }
131
132 message NrNeighbourInformation{
133         uint32 nr_pci = 1;
134         string nr_cgi = 2;
135         Nr.Mode nr_mode = 3;
136         message ChoiceNRMode{
137                 message FddInfo{
138                         NrFrequencyInfo ular_fcn_freq_info = 1;
139                         NrFrequencyInfo dlar_fcn_freq_info = 2;
140                 }
141                 message TddInfo{
142                         NrFrequencyInfo ar_fcn_nr_freq_info = 1;
143                 }
144                 FddInfo fdd  = 1;
145                 TddInfo tdd  = 2;
146         }
147         ChoiceNRMode choice_nr_mode = 4;
148         string stac5g = 5;
149         string configured_stac = 6;
150 }
151