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