Larry Peterson | 782fec3 | 2023-10-09 12:30:57 -0700 | [diff] [blame] | 1 | Other Blueprints |
| 2 | ----------------------- |
| 3 | |
| 4 | The previous sections describe how to deploy four Aether blueprints, |
| 5 | corresponding to four variants of ``var/main.yml``. This section |
| 6 | documents additional blueprints, each defined by a combination of |
| 7 | Ansible components: |
| 8 | |
| 9 | * A ``vars/main-blueprint.yml`` file, checked into the |
| 10 | ``aether-onramp`` repo, is the "root" of the blueprint |
| 11 | specification. |
| 12 | |
| 13 | * A ``hosts.ini`` file, documented by example, specifies the target |
| 14 | servers required by the blueprint. |
| 15 | |
| 16 | * A set of Make targets, defined in a submodule and imported into |
Larry Peterson | 87cd577 | 2023-10-18 13:02:36 -0700 | [diff] [blame^] | 17 | OnRamp's global Makefile, provides commands to install and uninstall |
Larry Peterson | 782fec3 | 2023-10-09 12:30:57 -0700 | [diff] [blame] | 18 | the blueprint. |
| 19 | |
| 20 | * (Optional) A new ``aether-blueprint`` repo defines the Ansible Roles |
| 21 | and Playbooks required to deploy a new component. |
| 22 | |
| 23 | * (Optional) New Roles, Playbooks, and Templates, checked to existing |
Larry Peterson | ea30875 | 2023-10-10 09:54:27 -0700 | [diff] [blame] | 24 | repos/submodules, customize existing components for integration with |
Larry Peterson | 782fec3 | 2023-10-09 12:30:57 -0700 | [diff] [blame] | 25 | the new blueprint. To support blueprint independence, these elements |
| 26 | are intentionally kept "narrow", rather than glommed onto an |
| 27 | existing element. |
| 28 | |
Larry Peterson | ea30875 | 2023-10-10 09:54:27 -0700 | [diff] [blame] | 29 | * A Jenkins job, added to the set of OnRamp integration tests, |
Larry Peterson | 87cd577 | 2023-10-18 13:02:36 -0700 | [diff] [blame^] | 30 | verifies that the blueprint successfully deploys Aether. |
Larry Peterson | 782fec3 | 2023-10-09 12:30:57 -0700 | [diff] [blame] | 31 | |
Larry Peterson | 87cd577 | 2023-10-18 13:02:36 -0700 | [diff] [blame^] | 32 | The goal of establishing a well-defined procedure for adding new |
| 33 | blueprints to OnRamp is to encourage the community to contribute (and |
| 34 | maintain) new Aether configurations and deployment scenarios.\ [#]_ |
| 35 | The rest of this section documents community-contributed blueprints |
| 36 | to-date. |
Larry Peterson | 782fec3 | 2023-10-09 12:30:57 -0700 | [diff] [blame] | 37 | |
Larry Peterson | ad3c7f8 | 2023-10-10 11:37:16 -0700 | [diff] [blame] | 38 | .. [#] Not all possible configurations of Aether require a |
| 39 | blueprint. There are other ways to add variability, for |
| 40 | example, by documenting simple ways to modify an existing |
| 41 | blueprint. Disabling ``core.standalone`` and selecting an |
| 42 | alternative ``core.values_file`` are two common examples. |
| 43 | |
Larry Peterson | 782fec3 | 2023-10-09 12:30:57 -0700 | [diff] [blame] | 44 | Multiple UPFs |
| 45 | ~~~~~~~~~~~~~~~~~~~~~~ |
| 46 | |
| 47 | The base version of SD-Core includes a single UPF, running in the same |
| 48 | Kubernetes namespace as the Core's control plane. This blueprint adds |
| 49 | the ability to bring up multiple UPFs (each in a different namespace), |
Larry Peterson | 87cd577 | 2023-10-18 13:02:36 -0700 | [diff] [blame^] | 50 | and uses ROC to establish the *UPF-to-Slice-to-Device* bindings |
| 51 | required to activate end-to-end user traffic. The resulting deployment |
| 52 | is then verified using gNBsim. |
Larry Peterson | 782fec3 | 2023-10-09 12:30:57 -0700 | [diff] [blame] | 53 | |
| 54 | The Multi-UPF blueprint includes the following: |
| 55 | |
| 56 | * Global vars file ``vars/main-upf.yml`` gives the overall |
| 57 | blueprint specification. |
| 58 | |
| 59 | * Inventory file ``hosts.ini`` is identical to that used in the |
| 60 | Emulated RAN section. Minimally, SD-Core runs on one server and |
Larry Peterson | 87cd577 | 2023-10-18 13:02:36 -0700 | [diff] [blame^] | 61 | gNBsim runs on a second server. (The Quick Start deployment, with |
| 62 | both SD-Core and gNBsim running in the same server, also works.) |
Larry Peterson | 782fec3 | 2023-10-09 12:30:57 -0700 | [diff] [blame] | 63 | |
| 64 | * New make targets, ``5gc-upf-install`` and ``5gc-upf-uninstall``, to |
| 65 | be executed after the standard SD-Core installation. The blueprint |
| 66 | also reuses the ``roc-load`` target to activate new slices in ROC. |
| 67 | |
| 68 | * New Ansible role (``upf``) added to the ``5gc`` submodule, including |
| 69 | a new UPF-specific template (``upf-5g-values.yaml``). |
| 70 | |
| 71 | * New models file (``roc-5g-models-upf2.json``) added to the |
| 72 | ``roc-load`` role in the ``amp`` submodule. This models file is |
| 73 | applied as a patch *on top of* the base set of ROC models. (Since |
| 74 | this blueprint is demonstrated using gNBsim, the assumed base models |
| 75 | are given by ``roc-5g-models.json``.) |
| 76 | |
| 77 | To use Multi-UPF, first copy the vars file to ``main.yml``: |
| 78 | |
| 79 | .. code-block:: |
| 80 | |
| 81 | $ cd vars |
| 82 | $ cp main-upf.yml main.yml |
| 83 | |
| 84 | Then edit ``hosts.ini`` and ``vars/main.yml`` to match your local |
| 85 | target servers, and deploy the base system (as in previous sections): |
| 86 | |
| 87 | .. code-block:: |
| 88 | |
| 89 | $ make k8s-install |
Larry Peterson | 782fec3 | 2023-10-09 12:30:57 -0700 | [diff] [blame] | 90 | $ make roc-install |
| 91 | $ make roc-load |
Larry Peterson | ea30875 | 2023-10-10 09:54:27 -0700 | [diff] [blame] | 92 | $ make 5gc-core-install |
Larry Peterson | 782fec3 | 2023-10-09 12:30:57 -0700 | [diff] [blame] | 93 | $ make gnbsim-install |
| 94 | |
| 95 | You can also optionally install the monitoring subsystem. Note that |
Larry Peterson | ad3c7f8 | 2023-10-10 11:37:16 -0700 | [diff] [blame] | 96 | because ``main.yml`` sets ``core.standalone: "false"``, any models |
Larry Peterson | ea30875 | 2023-10-10 09:54:27 -0700 | [diff] [blame] | 97 | loaded into ROC are automatically applied to SD-Core. |
Larry Peterson | 782fec3 | 2023-10-09 12:30:57 -0700 | [diff] [blame] | 98 | |
| 99 | At this point you are ready to bring up additional UPFs and bind them |
| 100 | to specific slices and devices. This involves first editing the |
| 101 | ``upf`` block in the ``core`` section of ``vars/main.yml``: |
| 102 | |
| 103 | .. code-block:: |
| 104 | |
| 105 | upf: |
| 106 | ip_prefix: "192.168.252.0/24" |
| 107 | iface: "access" |
| 108 | helm: |
| 109 | chart_ref: aether/bess-upf |
| 110 | values_file: "deps/5gc/roles/upf/templates/upf-5g-values.yaml" |
| 111 | additional_upfs: |
| 112 | "1": |
| 113 | ip: |
| 114 | access: "192.168.252.6/24" |
| 115 | core: "192.168.250.6/24" |
| 116 | ue_ip_pool: "172.248.0.0/16" |
| 117 | # "2": |
| 118 | # ip: |
| 119 | # access: "192.168.252.7/24" |
| 120 | # core: "192.168.250.7/24" |
| 121 | # ue_ip_pool: "172.247.0.0/16" |
| 122 | |
Larry Peterson | 87cd577 | 2023-10-18 13:02:36 -0700 | [diff] [blame^] | 123 | As shown above, one additional UPF is enabled (beyond ``upf-0`` that |
| 124 | already came up as part of SD-Core), with the spec for yet another UPF |
| 125 | commented out. In this example configuration, each UPF is assigned a |
| 126 | subnet on the ``access`` and ``core`` bridges, along with the IP |
| 127 | address pool for UEs that the UPF serves. Once done with the edits, |
| 128 | launch the new UPF(s) by typing: |
Larry Peterson | 782fec3 | 2023-10-09 12:30:57 -0700 | [diff] [blame] | 129 | |
| 130 | .. code-block:: |
| 131 | |
| 132 | $ make 5gc-upf-install |
| 133 | |
| 134 | At this point the new UPF(s) will be running (you can verify this |
| 135 | using ``kubectl``), but no traffic will be directed to them until UEs |
| 136 | are assigned to their IP address pool. Doing so requires loading the |
| 137 | appropriate bindings into ROC, which you can do by editing the |
| 138 | ``roc_models`` line in ``amp`` section of ``vars/main.yml``. Comment |
| 139 | out the original models file already loaded into ROC, and uncomment |
| 140 | the new patch that is to be applied: |
| 141 | |
| 142 | .. code-block:: |
| 143 | |
| 144 | amp: |
| 145 | # roc_models: "deps/amp/roles/roc-load/templates/roc-5g-models.json" |
| 146 | roc_models: "deps/amp/roles/roc-load/templates/roc-5g-models-upf2.json" |
| 147 | |
| 148 | Then run the following to load the patch: |
| 149 | |
| 150 | .. code-block:: |
| 151 | |
| 152 | $ make roc-load |
| 153 | |
| 154 | At this point you can bring up the Aether GUI and see that a second |
| 155 | slice and a second device group have been mapped onto the second UPF. |
| 156 | |
| 157 | Now you are ready to run traffic through both UPFs, which because the |
| 158 | configuration files identified in the ``servers`` block of the |
| 159 | ``gnbsim`` section of ``vars/main.yml`` align with the IMSIs bound to |
| 160 | each Device Group (which are bound to each slice, which are in turn |
| 161 | bound to each UPF), the emulator sends data through both UPFs. To run |
| 162 | the emulation, type: |
| 163 | |
| 164 | .. code-block:: |
| 165 | |
| 166 | $ make gnbsim-simulator-run |
| 167 | |
| 168 | |