Skip to content

Commit 6de00d9

Browse files
committed
added ran_subnet explanation
Signed-off-by: Larry Peterson <[email protected]>
1 parent b675c19 commit 6de00d9

File tree

4 files changed

+54
-32
lines changed

4 files changed

+54
-32
lines changed

onramp/blueprints.rst

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -480,12 +480,12 @@ required extensions. It has been written to do nothing unless variable
480480
target.
481481

482482

483-
OAI gNB
484-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
483+
OAI 5G RAN
484+
~~~~~~~~~~~~~~~~~~~~
485485

486486
Aether can be configured to work with the open source gNB from OAI.
487487
The blueprint runs in either simulation mode or with physical UEs
488-
connecting to a software-defined radio. The following assumes
488+
connecting to a USRP software-defined radio. The following assumes
489489
familiarity with the OAI 5G RAN stack.
490490

491491
.. _reading_oai:
@@ -518,10 +518,10 @@ The blueprint includes the following:
518518
gNB.
519519

520520
* An Integration test running in simulation mode is still pending. The
521-
blueprint has been tested with USRP X310, but other models should
521+
blueprint has been validated with USRP X310, but other models should
522522
also work.
523523

524-
To use the OAI gNB first copy the vars file to ``main.yml``:
524+
To use an OAI gNB, first copy the vars file to ``main.yml``:
525525

526526
.. code-block::
527527
@@ -585,6 +585,15 @@ parameters`` section need to be modified to work with the Aether Core:
585585
586586
GNB_IPV4_ADDRESS_FOR_NG_AMF = "{{oai.gnb.ip}}/24";
587587
588+
One other variable of note is ``ran_subnet: "172.20.0.0/16"`` in the
589+
``core`` block of ``vars/main.yml``. As a general rule,
590+
``core.ran_subnet`` is set to the empty string (``""``) whenever a
591+
physical gNB is on the same L2 network as the Core, but in the case of
592+
an OAI-based gNB, the RAN stack runs in a Macvlan-connected Docker
593+
container, and so the variable is set to ``"172.20.0.0/16"``. (This
594+
is similar to how OnRamp configures the Core for an emulated gNB using
595+
gNBsim.)
596+
588597
To deploy the OAI blueprint in simulation mode, run the following:
589598

590599
.. code-block::

onramp/directory.rst

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,7 @@ up to speed on the rest of the system.
1212

1313
.. admonition:: Troubleshooting Hint
1414

15-
This guide includes *Troubleshooting Hints* like this one. Our first
16-
hint is to recommend that the guide be followed sequentially. This
17-
is because each section establishes a milestone that may prove
18-
useful when you find yourself trying to troubleshoot a problem in a
19-
later section. For example, isolating a problem with a physical gNB
20-
is easier if you know that connectivity to the AMF and UPF works
21-
correctly, which the :doc:`Emulated RAN </onramp/gnbsim>` section
22-
helps to establish.
23-
24-
Our second hint is to join the ``#aether-onramp`` channel of the
15+
Users are encouraged to join the ``#aether-onramp`` channel of the
2516
`ONF Workspace <https://onf-community.slack.com/>`__ on Slack, where
2617
questions about using OnRamp to bring up Aether are asked and
2718
answered. The ``Troubleshooting`` bookmark for that channel includes
@@ -59,7 +50,6 @@ Helm Charts
5950

6051
| https://charts.aetherproject.org
6152
| https://charts.onosproject.org
62-
| https://charts.opencord.org
6353
| https://charts.atomix.io
6454
| https://sdrancharts.onosproject.org
6555
| https://charts.rancher.io/

onramp/network.rst

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -253,35 +253,35 @@ example ``ens18`` interface for illustrative purposes:
253253
.. code-block::
254254
255255
$ sudo tcpdump -i any sctp -w sctp-test.pcap
256-
$ sudo tcpdump -i ens18 port 2152 -w gtp-outside.pcap
257-
$ sudo tcpdump -i access port 2152 -w gtp-inside.pcap
256+
$ sudo tcpdump -i ens18 port 2152 -w n3-outside.pcap
257+
$ sudo tcpdump -i access port 2152 -w n3-inside.pcap
258258
$ sudo tcpdump -i core net 172.250.0.0/16 -w n6-inside.pcap
259259
$ sudo tcpdump -i ens18 net 172.250.0.0/16 -w n6-outside.pcap
260260
261261
The first trace, saved in file ``sctp.pcap``, captures SCTP packets
262262
sent to establish the control path between the base station and the
263-
Mobile Core (i.e., N2 messages). Toggling "Mobile Data" on a physical
264-
UE, for example by turning Airplane Mode off and on, will generate the
265-
relevant control plane traffic; gNBsim automatically triggers this
266-
activity.
263+
Mobile Core (over the **N2** interface). Toggling "Mobile Data" on a
264+
physical UE, for example by turning Airplane Mode off and on, will
265+
generate the relevant control plane traffic; gNBsim automatically
266+
triggers this activity.
267267

268-
The second and third traces, saved in files ``gtp-outside.pcap`` and
269-
``gtp-inside.pcap``, respectively, capture GTP packets (tunneled
268+
The second and third traces, saved in files ``n3-outside.pcap`` and
269+
``n3-inside.pcap``, respectively, capture GTP packets (tunneled
270270
through port ``2152`` ) on the RAN side of the UPF. Setting the
271271
interface to ``ens18`` corresponds to "outside" the UPF and setting
272272
the interface to ``access`` corresponds to "inside" the UPF. Running
273-
``ping`` from a physical UE will generate the relevant user plane (N3)
274-
traffic; gNBsim automatically triggers this activity.
273+
``ping`` from a physical UE will generate the relevant user plane traffic
274+
(over the **N3** interface); gNBsim automatically triggers this activity.
275275

276276
Similarly, the fourth and fifth traces, saved in files
277277
``n6-inside.pcap`` and ``n6-outside.pcap``, respectively, capture IP
278-
packets on the Internet side of the UPF (which is known as the **N6**
279-
interface in 3GPP). In these two tests, ``net 172.250.0.0/16``
280-
corresponds to the IP addresses assigned to UEs by the SMF. Running
281-
``ping`` from a physical UE will generate the relevant user plane
282-
traffic; gNBsim automatically triggers this activity.
278+
packets on the Internet side of the UPF (over the **N6** interface).
279+
In these two tests, ``net 172.250.0.0/16`` corresponds to the IP
280+
addresses assigned to UEs by the SMF. Running ``ping`` from a physical
281+
UE will generate the relevant user plane traffic; gNBsim automatically
282+
triggers this activity.
283283

284-
If the ``gtp-outside.pcap`` has packets and the ``gtp-inside.pcap``
284+
If the ``n3-outside.pcap`` has packets and the ``n3-inside.pcap``
285285
is empty (no packets captured), you may run the following commands
286286
to make sure packets are forwarded from the ``ens18`` interface
287287
to the ``access`` interface and vice versa:

onramp/overview.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,26 @@ discussion on Slack in the `ONF Community Workspace
3535
needs to be done can be found in the `Aether OnRamp Wiki
3636
<https://wiki.aetherproject.org/display/HOME/Aether+OnRamp>`__.
3737

38+
How to Read This Guide
39+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40+
41+
This guide is written to be followed sequentially, with each section
42+
establishing a capability that later sections build upon. This is also
43+
helpful when troubleshooting a setup—for example, isolating a problem
44+
with a physical gNB is easier if you know that connectivity to the AMF
45+
and UPF works correctly, which the :doc:`Emulated RAN
46+
</onramp/gnbsim>` section helps to establish.
47+
48+
Once you reach the last section (:doc:`Other Blueprints
49+
</onramp/blueprints>`), you will have seen examples of all the
50+
degrees-of-freedom OnRamp supports, with the goal of preparing you to
51+
take ownership of your own deployment. You can do this by defining
52+
your own customized blueprint, and/or directly interacting with Helm
53+
and Kubernetes (rather than depending entirely on OnRamp's playbooks).
54+
55+
That final :doc:`Other Blueprints </onramp/blueprints>` section then
56+
gives a brief synopsis of several additional OnRamp blueprints. Each
57+
blueprint enables a particular combination of Ansible features,
58+
demonstrating how those features are enabled, configured, and
59+
deployed. This section presumes familiarity with all of OnRamp's
60+
capabilities introduced in the earlier sections.

0 commit comments

Comments
 (0)