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