700180e4ed835b85bb353fe6194b73cf4d74199d
[o-du/l2.git] / docs / installation-guide.rst
1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. http://creativecommons.org/licenses/by/4.0
3
4 .. contents::
5    :depth: 3
6    :local:
7
8 O-DU High Installation Guide
9 *****************************
10
11 Abstract
12 ========
13
14 This document describes how to install O-DU High, it's dependencies and required system resources.
15
16 .. contents::
17    :depth: 3
18    :local:
19
20 Version history
21
22
23 +--------------------+--------------------+--------------------+--------------------+
24 | **Date**           | **Ver.**           | **Author**         | **Comment**        |
25 |                    |                    |                    |                    |
26 +--------------------+--------------------+--------------------+--------------------+
27 | 2020-12-04         |  1.0.1             |  HCL Technologies  |  Cherry Release    |
28 |                    |                    |  Ltd.              |                    |
29 +--------------------+--------------------+--------------------+--------------------+
30 | 2020-12-04         |  1.0               |  Radisys           |  Cherry Release    |
31 |                    |                    |                    |                    |
32 +--------------------+--------------------+--------------------+--------------------+
33
34
35 Introduction
36 ============
37
38 This document describes the hardware and software requirements along with guidelines on how to install O-DU High.
39
40 The audience of this document is assumed to have good knowledge in RAN concepts and Linux system.
41
42
43 Preface
44 =======
45
46 O-DU High images can be built using the source code or corresponding docker images can be downloaded.
47
48
49 Hardware requirements
50 =====================
51
52 Following minimum hardware requirements must be met for installation of O-DU High
53
54 +--------------------+----------------------------------------------------+
55 | **HW Aspect**      | **Requirement**                                    |
56 |                    |                                                    |
57 +--------------------+----------------------------------------------------+
58 | **# of servers**   |  1                                                 |
59 +--------------------+----------------------------------------------------+
60 | **CPU**            |  4                                                 |
61 |                    |                                                    |
62 +--------------------+----------------------------------------------------+
63 | **RAM**            |  8G                                                |
64 |                    |                                                    |
65 +--------------------+----------------------------------------------------+
66 | **Disk**           |  500G                                              |
67 |                    |                                                    |
68 +--------------------+----------------------------------------------------+
69 | **NICs**           |  1                                                 |
70 |                    |                                                    |
71 +--------------------+----------------------------------------------------+
72
73
74 Software installation and deployment
75 ==========================================
76
77 This section describes the installation of the O-DU High on the reference hardware.
78
79 Libraries
80 ----------
81
82 Following libraries are required to compile and execute O-DU High:
83
84 - GCC 
85    - Ubuntu : sudo apt-get install -y build-essential
86    - CentOS : sudo yum groups mark install -y “Development Tools”
87
88    Ensure the version is 4.6.3 and above using
89
90    -    gcc --version
91
92 - LKSCTP
93    - Ubuntu : sudo apt-get install -y libsctp-dev
94    - CentOS : sudo yum install -y lksctp-tools-devel
95
96 - PCAP:
97    - Ubuntu : sudo apt-get install -y libpcap-dev
98    - CentOS : sudo yum install -y libpcap-devel
99
100
101
102 Cloning code
103 --------------
104
105 - Create a folder to clone the O-DU High code into. The folder is hereafter referred to as <O-DU High Directory>.
106
107 - Clone code into <O-DU High Directory> 
108
109   git clone "https://gerrit.o-ran-sc.org/r/o-du/l2"
110
111
112 Setting up Netconf server
113 -------------------------
114  
115   Following steps are required to compile ODU with O1 interface enabled:
116
117 - Install Netconf libraries:
118    
119    libssh, libyang, libnetconf2, sysrepo, netopeer2
120
121    Script is provided in the following folder to install these libraries
122
123    - Ubuntu :  
124    
125        | cd <O-DU High Directory>/l2/build/scripts
126        | sudo ./install_lib.sh -c
127
128 - Start Netopeer2-server:
129        
130    - Ubuntu :  
131        | cd <O-DU High Directory>/l2/build/scripts
132        | sudo ./netopeer-server.sh start
133
134 - Create a new netconf user
135       
136       Switch to root user and run following commands
137       
138    - Ubuntu :  
139    
140       | adduser --system netconf && \\
141       |    echo "netconf:netconf!" | chpasswd
142
143       | mkdir -p /home/netconf/.ssh && \\
144       | ssh-keygen -A && \\
145       | ssh-keygen -t dsa -P '' -f /home/netconf/.ssh/id_dsa && \\
146       |    cat /home/netconf/.ssh/id_dsa.pub > /home/netconf/.ssh/authorized_keys
147
148 - Install the YANG modules
149
150    - Ubuntu : 
151     
152       | cd <O-DU High Directory>/l2/build/yang
153       | sysrepoctl -i ./yang/o-ran-sc-odu-alarm-v1.yang
154       | sysrepoctl -i ./yang/o-ran-sc-odu-interface-v1.yang
155
156 - Configure the startup IP and Port configurations for DU, CU and RIC
157
158    - Ubuntu : 
159     
160       | cd <O-DU High Directory>/l2/build/config
161       |
162       | Open the startup_config.xml and edit the desired IP and Port for CU, DU and RIC.
163       | Then load the configuration in the sysrepo running datastore using the command below
164       |
165       | sysrepocfg --import=startup_config.xml --datastore running --module  o-ran-sc-odu-interface-v1 
166
167 Compilation
168 ------------
169
170 - Build O-DU High:
171
172    - Navigate to Build folder
173
174        cd <O-DU High Directory>/l2/build/odu
175
176    - Clean O-DU High binary
177
178        make clean_odu MACHINE=BIT64 MODE=FDD
179        
180
181    - Compile O-DU High binary
182    
183        make odu MACHINE=BIT64 MODE=FDD
184        
185
186 - Build CU Stub :
187
188    - Navigate to Build folder
189    
190        cd <O-DU High Directory>/l2/build/odu
191
192    - Clean CU Stub binary
193    
194        make clean_cu NODE=TEST_STUB MACHINE=BIT64 MODE=FDD
195
196    - Compile CU Stub binary
197    
198        make cu_stub NODE=TEST_STUB MACHINE=BIT64 MODE=FDD
199
200 - Build RIC Stub :
201
202    - Navigate to Build folder
203    
204        cd <O-DU High Directory>/l2/build/odu
205
206    - Clean RIC Stub binary
207    
208        make clean_ric NODE=TEST_STUB MACHINE=BIT64 MODE=FDD
209
210    - Compile RIC Stub binary
211    
212        make ric_stub NODE=TEST_STUB MACHINE=BIT64 MODE=FDD
213
214
215 Compilation with O1 interface enabled
216 --------------------------------------
217
218 - Build O-DU High:
219
220    - Navigate to Build folder
221
222        cd <O-DU High Directory>/l2/build/odu
223
224    - Clean O-DU High binary
225
226        make clean_odu MACHINE=BIT64 MODE=FDD O1_ENABLE=YES
227        
228
229    - Compile O-DU High binary
230    
231        make odu MACHINE=BIT64 MODE=FDD O1_ENABLE=YES
232        
233
234 - Build CU Stub :
235
236    - Navigate to Build folder
237    
238        cd <O-DU High Directory>/l2/build/odu
239
240    - Clean CU Stub binary
241    
242        make clean_cu NODE=TEST_STUB MACHINE=BIT64 MODE=FDD O1_ENABLE=YES
243
244    - Compile CU Stub binary
245    
246        make cu_stub NODE=TEST_STUB MACHINE=BIT64 MODE=FDD O1_ENABLE=YES
247
248 - Build RIC Stub :
249
250    - Navigate to Build folder
251    
252        cd <O-DU High Directory>/l2/build/odu
253
254    - Clean RIC Stub binary
255    
256        make clean_ric NODE=TEST_STUB MACHINE=BIT64 MODE=FDD O1_ENABLE=YES
257
258    - Compile RIC Stub binary
259    
260        make ric_stub NODE=TEST_STUB MACHINE=BIT64 MODE=FDD O1_ENABLE=YES
261
262
263
264 The above generated images can be found at:
265
266 - O-DU High - <O-DU High Directory>/l2/bin/odu
267
268 - CU Stub   - <O-DU High Directory>/l2/bin/cu_stub
269
270 - RIC Stub  - <O-DU High Directory>/l2/bin/ric_stub
271