<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-mgw/+/23967">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">manual: Include QoS chapter and add osmo-mgw specific example<br><br>Change-Id: I46f632f52a86a50242689a0132a7a7cb2a8feb12<br>Depends: osmo-gsm-manuals.git Id344c29eda2a9b3e36376302b425e9db1f6c0f28<br>---<br>A doc/manuals/chapters/qos-example.adoc<br>M doc/manuals/osmomgw-usermanual.adoc<br>2 files changed, 44 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/67/23967/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/doc/manuals/chapters/qos-example.adoc b/doc/manuals/chapters/qos-example.adoc</span><br><span>new file mode 100644</span><br><span>index 0000000..7220bf7</span><br><span>--- /dev/null</span><br><span>+++ b/doc/manuals/chapters/qos-example.adoc</span><br><span>@@ -0,0 +1,42 @@</span><br><span style="color: hsl(120, 100%, 40%);">+==== Full example of QoS for osmo-mgw</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+In the below example we will show the full set of configuration required</span><br><span style="color: hsl(120, 100%, 40%);">+for both DSCP and PCP differentiation of RTP traffic by osmo-mgw.</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+What we want to achieve in this example is the following configuration:</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+.DSCP and PCP assignments for osmo-mgw Abis downlink traffic in this example</span><br><span style="color: hsl(120, 100%, 40%);">+[options="header",width="30%",cols="2,1,1"]</span><br><span style="color: hsl(120, 100%, 40%);">+|===</span><br><span style="color: hsl(120, 100%, 40%);">+|Traffic      |DSCP|PCP</span><br><span style="color: hsl(120, 100%, 40%);">+|RTP    |  46|  6</span><br><span style="color: hsl(120, 100%, 40%);">+|===</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+. configure the osmo-mgw program to set the DSCP value</span><br><span style="color: hsl(120, 100%, 40%);">+. configure an egrees QoS map to map from priority to PCP</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+.Example Step 1: add related VTY configuration to `osmo-mgw.cfg`</span><br><span style="color: hsl(120, 100%, 40%);">+----</span><br><span style="color: hsl(120, 100%, 40%);">+...</span><br><span style="color: hsl(120, 100%, 40%);">+mgcp</span><br><span style="color: hsl(120, 100%, 40%);">+ rtp ip-dscp 46</span><br><span style="color: hsl(120, 100%, 40%);">+ rtp priority 6</span><br><span style="color: hsl(120, 100%, 40%);">+...</span><br><span style="color: hsl(120, 100%, 40%);">+----</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+.Example Step 2: egress QoS map to map from DSCP values to priority values</span><br><span style="color: hsl(120, 100%, 40%);">+----</span><br><span style="color: hsl(120, 100%, 40%);">+$ sudo ip link set dev eth0.9<1> type vlan egress-qos-map 0:0 5:5 6:6 7:7 <2></span><br><span style="color: hsl(120, 100%, 40%);">+----</span><br><span style="color: hsl(120, 100%, 40%);">+<1> make sure to specify your specific VLAN interface name here instead of `eth0.9`.</span><br><span style="color: hsl(120, 100%, 40%);">+<2> create a egress QoS map that maps the priority value 1:1 to the PCP. We also include the</span><br><span style="color: hsl(120, 100%, 40%);">+    mapping 5:5 and 7:7 from the osmo-bsc example (see <<userman-osmobsc>>) here.</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+NOTE:: The settings of the `ip` command are volatile and only active until</span><br><span style="color: hsl(120, 100%, 40%);">+the next reboot (or the network device or VLAN is removed).  Please refer to</span><br><span style="color: hsl(120, 100%, 40%);">+the documentation of your specific Linux distribution in order to find out how</span><br><span style="color: hsl(120, 100%, 40%);">+to make such settings persistent by means of an `ifup` hook whenever the interface</span><br><span style="color: hsl(120, 100%, 40%);">+comes up.  For CentOS/RHEL 8 this can e.g. be achieved by means of an `/sbin/ifup-local</span><br><span style="color: hsl(120, 100%, 40%);">+script` (when using `network-scripts` and not NetworkManager).  For Debian or Ubuntu,</span><br><span style="color: hsl(120, 100%, 40%);">+this typically involves adding `up` lines to `/etc/network/interfaces` or a `/etc/network/if-up.d`</span><br><span style="color: hsl(120, 100%, 40%);">+script.</span><br><span>diff --git a/doc/manuals/osmomgw-usermanual.adoc b/doc/manuals/osmomgw-usermanual.adoc</span><br><span>index c4660f5..7ebc2db 100644</span><br><span>--- a/doc/manuals/osmomgw-usermanual.adoc</span><br><span>+++ b/doc/manuals/osmomgw-usermanual.adoc</span><br><span>@@ -24,6 +24,8 @@</span><br><span> </span><br><span> include::./common/chapters/osmux/osmux.adoc[]</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+include::./common/chapters/qos-dscp-pcp.adoc[]</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> //include::{srcdir}/chapters/counters.adoc[]</span><br><span> </span><br><span> include::./common/chapters/vty_cpu_sched.adoc[]</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-mgw/+/23967">change 23967</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-mgw/+/23967"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-mgw </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I46f632f52a86a50242689a0132a7a7cb2a8feb12 </div>
<div style="display:none"> Gerrit-Change-Number: 23967 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>