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