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