<p>neels has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/22084">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">handover_test: add test_balance_congestion_by_percentage.ho_vty<br><br>Considering feedback by a customer, we prefer congestion balancing by<br>using percentage of overload instead of number of lchans of overload.<br>This test is intended to illustrate the change in behavior.<br><br>Change-Id: I314915718f66aec50e8dcf94569b0a52ca34b96f<br>---<br>A tests/handover/test_balance_congestion_by_percentage.ho_vty<br>1 file changed, 34 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/84/22084/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/tests/handover/test_balance_congestion_by_percentage.ho_vty b/tests/handover/test_balance_congestion_by_percentage.ho_vty</span><br><span>new file mode 100644</span><br><span>index 0000000..e00636e</span><br><span>--- /dev/null</span><br><span>+++ b/tests/handover/test_balance_congestion_by_percentage.ho_vty</span><br><span>@@ -0,0 +1,34 @@</span><br><span style="color: hsl(120, 100%, 40%);">+# To balance congestion, use the remaining free percentage instead of free lchan counts.</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# Cell A has min-free-slots 2, and has all slots occupied.</span><br><span style="color: hsl(120, 100%, 40%);">+# Cell B has min-free-slots 4, and has 2 slots remaining free.</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# If we count congested lchans: cell A has a congestion count of 2: two more lchans in use than "allowed".</span><br><span style="color: hsl(120, 100%, 40%);">+# If we move one lchan over to cell B, it ends up with a congestion count of 3, which is worse than 2.</span><br><span style="color: hsl(120, 100%, 40%);">+# So when counting lchans, we decide that cell A should remain full.</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# Instead, when comparing percentage of remaining lchans, we would see that cell A is loaded 100% above congestion (2 of</span><br><span style="color: hsl(120, 100%, 40%);">+# 2 remaining lchans in use), but when moving one lchan to cell B, it would only be 75% loaded above its treshold (3 of</span><br><span style="color: hsl(120, 100%, 40%);">+# 4 remaining lchans in use). So a percentage comparison would cause a handover to cell B.</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# This test currently expects the behavior of counting lchans; a patch will change to use percentage, which should</span><br><span style="color: hsl(120, 100%, 40%);">+# reflect in this test.</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+create-bts trx-count 1 timeslots c+s4 TCH/F TCH/F TCH/F TCH/F TCH/F TCH/F PDCH</span><br><span style="color: hsl(120, 100%, 40%);">+create-bts trx-count 1 timeslots c+s4 TCH/F TCH/F TCH/F TCH/F TCH/F TCH/F 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%);">+  handover2 min-free-slots tch/f 2</span><br><span style="color: hsl(120, 100%, 40%);">+ bts 1</span><br><span style="color: hsl(120, 100%, 40%);">+  handover2 min-free-slots tch/f 4</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/F TCH/F TCH/F TCH/F TCH/F TCH/F *</span><br><span style="color: hsl(120, 100%, 40%);">+set-ts-use trx 1 0 states        *    TCH/F TCH/F TCH/F TCH/F -     -     *</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+meas-rep lchan * * * * rxlev 40 rxqual 0 ta 0 neighbors 30</span><br><span style="color: hsl(120, 100%, 40%);">+expect-no-chan</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+# bts 0 is full, but by counting lchans above congestion, it should remain full.</span><br><span style="color: hsl(120, 100%, 40%);">+congestion-check</span><br><span style="color: hsl(120, 100%, 40%);">+expect-no-chan</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/22084">change 22084</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/+/22084"/><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: I314915718f66aec50e8dcf94569b0a52ca34b96f </div>
<div style="display:none"> Gerrit-Change-Number: 22084 </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>