<p>neels has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/24911">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">add test_dyn_ts_favor_static_ts_as_target.ho_vty<br><br>In a discussion about the effect of interference levels, I noticed that<br>there is not sufficient clarity about how strongly the preference of<br>static timeslots is ranked. This test helps to show what we have.<br><br>Related: SYS#5313<br>Change-Id: I0911cd74613045d9fbe29d04eaef036d32049b92<br>---<br>M tests/handover/handover_tests.ok<br>A tests/handover/test_dyn_ts_favor_static_ts_as_target.ho_vty<br>2 files changed, 39 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/11/24911/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/tests/handover/handover_tests.ok b/tests/handover/handover_tests.ok</span><br><span>index a03454d..168ebd6 100644</span><br><span>--- a/tests/handover/handover_tests.ok</span><br><span>+++ b/tests/handover/handover_tests.ok</span><br><span>@@ -32,6 +32,7 @@</span><br><span> pass test_dyn_ts_congestion_tch_f_vs_tch_h_2.ho_vty</span><br><span> pass test_dyn_ts_favor_half_used_tch_h_as_target.ho_vty</span><br><span> pass test_dyn_ts_favor_moving_half_used_tch_h.ho_vty</span><br><span style="color: hsl(120, 100%, 40%);">+pass test_dyn_ts_favor_static_ts_as_target.ho_vty</span><br><span> pass test_ho_to_better_cell.ho_vty</span><br><span> pass test_ho_to_better_cell_2.ho_vty</span><br><span> pass test_hysteresis.ho_vty</span><br><span>diff --git a/tests/handover/test_dyn_ts_favor_static_ts_as_target.ho_vty b/tests/handover/test_dyn_ts_favor_static_ts_as_target.ho_vty</span><br><span>new file mode 100644</span><br><span>index 0000000..c50b007</span><br><span>--- /dev/null</span><br><span>+++ b/tests/handover/test_dyn_ts_favor_static_ts_as_target.ho_vty</span><br><span>@@ -0,0 +1,38 @@</span><br><span style="color: hsl(120, 100%, 40%);">+# If both a static and a dynamic TCH/H (even without pchan switch!) are available, we always prefer static TS.</span><br><span style="color: hsl(120, 100%, 40%);">+create-bts trx-count 1 timeslots c+s4  dyn    TCH/H  dyn    TCH/H  dyn    TCH/H  PDCH</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+network</span><br><span style="color: hsl(120, 100%, 40%);">+ bts 0</span><br><span style="color: hsl(120, 100%, 40%);">+  channel allocator ascending</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+set-ts-use    trx 0 0     states *     TCH/-H TCH/-H TCH/-H TCH/-H TCH/-H TCH/-H *</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+# the dynamic timeslot is already in TCH/H mode, and needs no pchan switch. It appears first in the list, hence it would</span><br><span style="color: hsl(120, 100%, 40%);">+# be used first -- but we prefer using static TS when still available:</span><br><span style="color: hsl(120, 100%, 40%);">+create-ms bts 0 TCH/H AMR</span><br><span style="color: hsl(120, 100%, 40%);">+expect-ts-use trx 0 0     states *     TCH/-H TCH/HH TCH/-H TCH/-H TCH/-H TCH/-H *</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%);">+# Interference ratings do NOT influence whether a static or dynamic lchan (even without pchan switch) is going to be</span><br><span style="color: hsl(120, 100%, 40%);">+# assigned.</span><br><span style="color: hsl(120, 100%, 40%);">+network</span><br><span style="color: hsl(120, 100%, 40%);">+ bts 0</span><br><span style="color: hsl(120, 100%, 40%);">+  channel allocator avoid-interference 1</span><br><span style="color: hsl(120, 100%, 40%);">+  interference-meas level-bounds -115 -109 -103 -97 -91 -85</span><br><span style="color: hsl(120, 100%, 40%);">+#                                  0    1    2   3   4   5</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+# Here the dyn TS lchan happens to have less interference. But still the choice to prefer static over dynamic weighs</span><br><span style="color: hsl(120, 100%, 40%);">+# stronger. The static TS with least interference is picked.</span><br><span style="color: hsl(120, 100%, 40%);">+#                                      dyn    TCH/H  dyn    TCH/H  dyn    TCH/H</span><br><span style="color: hsl(120, 100%, 40%);">+expect-ts-use trx 0 0     states *     TCH/-H TCH/HH TCH/-H TCH/-H TCH/-H TCH/-H *</span><br><span style="color: hsl(120, 100%, 40%);">+res-ind trx 0 0 levels           -         4-     --     1-     4-     3-     2- -</span><br><span style="color: hsl(120, 100%, 40%);">+create-ms bts 0 TCH/H AMR</span><br><span style="color: hsl(120, 100%, 40%);">+expect-ts-use trx 0 0     states *     TCH/-H TCH/HH TCH/-H TCH/-H TCH/-H TCH/HH *</span><br><span style="color: hsl(120, 100%, 40%);">+#                                                                             ^</span><br><span style="color: hsl(120, 100%, 40%);">+create-ms bts 0 TCH/H AMR</span><br><span style="color: hsl(120, 100%, 40%);">+expect-ts-use trx 0 0     states *     TCH/-H TCH/HH TCH/-H TCH/HH TCH/-H TCH/HH *</span><br><span style="color: hsl(120, 100%, 40%);">+#                                                               ^</span><br><span style="color: hsl(120, 100%, 40%);">+# now only dynamic TS are left. The one dyn lchan with least interference is picked</span><br><span style="color: hsl(120, 100%, 40%);">+create-ms bts 0 TCH/H AMR</span><br><span style="color: hsl(120, 100%, 40%);">+expect-ts-use trx 0 0     states *     TCH/-H TCH/HH TCH/HH TCH/HH TCH/-H TCH/HH *</span><br><span style="color: hsl(120, 100%, 40%);">+#                                                        ^</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/24911">change 24911</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-bsc/+/24911"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I0911cd74613045d9fbe29d04eaef036d32049b92 </div>
<div style="display:none"> Gerrit-Change-Number: 24911 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>