blob: fd04e8a0f36754772685df6bdd5a032d5793d466 [file] [log] [blame]
Ajay Lotan Thakur0b012662022-10-07 20:18:10 -07001..
2 SPDX-FileCopyrightText: © 2022 Open Networking Foundation <support@opennetworking.org>
3 SPDX-License-Identifier: Apache-2.0
4
5.. _deployment_gnbsim_guide:
6
7gNBSim Deployment Guide
8========================
9
10gNBSim in AIAB mode with 2 interfaces
11```````````````````````````````````````
12
13- This is default mode of deployment for gNB Simulator
14- Multus cni needs to be enabled on cluster. Required for bess-upf & gNBSim
15- `make 5gc` will by default deploy gNB Simulator in this mode
16- One interface is used for user plane traffic towards UPF
17- Second interface is used to send traffic towards control plane (i.e. AMF).
18- UPF network & default gateway is provided in the override values.
19- Route to UPF network is added when POD comes up
20- defaultAs is configured per profile. This address is used to send data traffic during test
21
22.. note::
23 Multiple gNB's in one simulator instance need more changes in helm chart. This is pending work.
24
25To add UPF routes. Following is example of override values ::
26
27 config:
28 gnbsim:
29 gnb:
30 ip: 192.168.251.5/24 #user plane IP at gnb if 2 separate interface provided
31 singleInterface: false
32 networkTopo:
33 - upfAddr: "192.168.252.3/32"
34 upfGw: "192.168.251.1"
35
36
37.. image:: ../_static/images/Single-cluster_2_interface.jpg
38 :width: 700px
39
40gNB simulator running standalone with single interface
41```````````````````````````````````````````````````````
42
43- Install gNB Simulator on any K8s cluster
44- Multus cni needs to be enabled for the K8s cluster where bess-upf runs
45- Make sure gNB Simulator can communicate with AMF & UPF
46- *TODO* - New Makefile target will deploy just 5G control plane
47- *TODO* - New Makefile target will deploy only gNB Simulator
48- Single interface is used for user plane traffic towards UPF & as well traffic towards AMF
49- defaultAs is configured per profile. This address is used to send data traffic during test
50- configure AMF address or FQDN appropriately
51
52.. note::
53 Multiple gNB's can not be simulated since only 1 gNB will be able to use 2152 port
54
55
56Following is example of override values ::
57
58 config:
59 gnbsim:
60 singleInterface: true
61 yamlCfgFiles:
62 gnb.conf:
63 configuration:
64 gnbs: # pool of gNodeBs
65 gnb1:
66 n3IpAddr: "POD_IP" # set if singleInterface is true
67
68.. image:: ../_static/images/Separate-cluster_Single_interface.jpg
69 :width: 700px
70
71gNBSim running standalone with 2 or more interfaces
72```````````````````````````````````````````````````
73
74- Install gNB Simulator on any K8s cluster
75- Multus cni needs to be enabled on cluster. Required for bess-upf & gNB
76- Make sure gNB Simulator can communicate with AMF & UPF
77- *TODO* - New Makefile target will deploy just 5G control plane
78- *TODO* - New Makefile target will deploy only gNB Simulator
79- One interface is used for user plane traffic towards UPF
80- Second interface is used to send traffic towards control plane (i.e. AMF).
81- UPF network & default gateway is provided in the override values.
82- Route to UPF network is added when POD comes up
83- defaultAs is configured per profile. This address is used to send data traffic during test
84- configure AMF address or FQDN appropriately
85
86.. note::
87 Multiple gNB's in one simulator instance need more changes in helm chart. This is pending work.
88
89
90To add UPF routes. Following is example of override values ::
91
92 config:
93 gnbsim:
94 gnb:
95 ip: 192.168.251.5/24 #user plane IP at gnb if 2 separate interface provided
96 singleInterface: false
97 networkTopo:
98 - upfAddr: "192.168.252.3/32"
99 upfGw: "192.168.251.1"
100
101.. image:: ../_static/images/Separate-cluster_2_interface.jpg
102 :width: 700px