aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2020-12-24 15:59:16 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2021-01-05 23:27:26 +0100
commit90175e698710bffc3db592fa9c31ebe96bfd0856 (patch)
treece7815f96af1b64f69feef6184ce86c96603a075
parentfe7b21bbe7c9ecdb3a008b4ef85c93b4ad061ab6 (diff)
handover_test: add test_congestion_intra_vs_inter_cell.ho_vty
-rw-r--r--tests/handover/handover_tests.ok1
-rw-r--r--tests/handover/test_congestion_intra_vs_inter_cell.ho_vty132
2 files changed, 133 insertions, 0 deletions
diff --git a/tests/handover/handover_tests.ok b/tests/handover/handover_tests.ok
index 8f5347193..eab405d20 100644
--- a/tests/handover/handover_tests.ok
+++ b/tests/handover/handover_tests.ok
@@ -10,6 +10,7 @@ pass test_balance_congestion.ho_vty
pass test_balance_congestion_2.ho_vty
pass test_congestion.ho_vty
pass test_congestion_favor_best_target_rxlev.ho_vty
+pass test_congestion_intra_vs_inter_cell.ho_vty
pass test_disabled_ho_and_as.ho_vty
pass test_dyn_ts_amr_tch_f_to_h_congestion_assignment.ho_vty
pass test_dyn_ts_favor_half_used_tch_h_as_target.ho_vty
diff --git a/tests/handover/test_congestion_intra_vs_inter_cell.ho_vty b/tests/handover/test_congestion_intra_vs_inter_cell.ho_vty
new file mode 100644
index 000000000..f0f8e2aaf
--- /dev/null
+++ b/tests/handover/test_congestion_intra_vs_inter_cell.ho_vty
@@ -0,0 +1,132 @@
+create-bts trx-count 1 timeslots c+s4 TCH/F TCH/F TCH/F TCH/F TCH/H TCH/H PDCH
+create-bts trx-count 1 timeslots c+s4 TCH/F TCH/F TCH/F TCH/F TCH/H TCH/H PDCH
+
+network
+ handover2 min-free-slots tch/h 4
+
+set-ts-use trx 0 0 states * - - - - TCH/H- TCH/H- *
+
+meas-rep lchan 0 0 5 0 rxlev 31 rxqual 0 ta 0 neighbors 20
+expect-no-chan
+meas-rep lchan 0 0 6 0 rxlev 30 rxqual 0 ta 0 neighbors 20
+expect-no-chan
+
+congestion-check
+# FAIL! moving to a weaker neighbor, should move to TCH/F in current cell instead.
+# FAIL! should favor upgrading the weaker TS 6.
+expect-ho from lchan 0 0 5 0 to lchan 1 0 1 0
+expect-ts-use trx 0 0 states * - - - - - TCH/H- *
+expect-ts-use trx 1 0 states * TCH/F - - - - - *
+
+# clear measurements for next run
+set-ts-use trx 0 0 states * - - - - - - *
+set-ts-use trx 1 0 states * - - - - - - *
+
+set-ts-use trx 0 0 states * - - - - TCH/H- TCH/H- *
+meas-rep lchan 0 0 5 0 rxlev 30 rxqual 0 ta 0 neighbors 20
+expect-no-chan
+meas-rep lchan 0 0 6 0 rxlev 31 rxqual 0 ta 0 neighbors 20
+expect-no-chan
+
+congestion-check
+# FAIL! moving to a weaker neighbor, should move to TCH/F in current cell instead.
+expect-ho from lchan 0 0 5 0 to lchan 1 0 1 0
+expect-ts-use trx 0 0 states * - - - - - TCH/H- *
+expect-ts-use trx 1 0 states * TCH/F - - - - - *
+
+# clear measurements for next run
+set-ts-use trx 0 0 states * - - - - - - *
+set-ts-use trx 1 0 states * - - - - - - *
+
+set-ts-use trx 0 0 states * - - - - TCH/H- TCH/H- *
+meas-rep lchan 0 0 5 0 rxlev 30 rxqual 0 ta 0 neighbors 20
+expect-no-chan
+meas-rep lchan 0 0 6 0 rxlev 31 rxqual 0 ta 0 neighbors 21
+expect-no-chan
+
+congestion-check
+# FAIL! moving to a weaker neighbor, should move to TCH/F in current cell instead.
+# FAIL! should favor upgrading the weaker TS 5.
+expect-ho from lchan 0 0 6 0 to lchan 1 0 1 0
+expect-ts-use trx 0 0 states * - - - - TCH/H- - *
+expect-ts-use trx 1 0 states * TCH/F - - - - - *
+
+# clear measurements for next run
+set-ts-use trx 0 0 states * - - - - - - *
+set-ts-use trx 1 0 states * - - - - - - *
+
+set-ts-use trx 0 0 states * - - - - TCH/H- TCH/H- *
+meas-rep lchan 0 0 5 0 rxlev 30 rxqual 0 ta 0 neighbors 21
+expect-no-chan
+meas-rep lchan 0 0 6 0 rxlev 31 rxqual 0 ta 0 neighbors 20
+expect-no-chan
+
+congestion-check
+# FAIL! moving to a weaker neighbor, should move to TCH/F in current cell instead.
+expect-ho from lchan 0 0 5 0 to lchan 1 0 1 0
+expect-ts-use trx 0 0 states * - - - - - TCH/H- *
+expect-ts-use trx 1 0 states * TCH/F - - - - - *
+
+# clear measurements for next run
+set-ts-use trx 0 0 states * - - - - - - *
+set-ts-use trx 1 0 states * - - - - - - *
+
+set-ts-use trx 0 0 states * - - - - TCH/H- TCH/H- *
+meas-rep lchan 0 0 5 0 rxlev 30 rxqual 0 ta 0 neighbors 30
+expect-no-chan
+meas-rep lchan 0 0 6 0 rxlev 31 rxqual 0 ta 0 neighbors 31
+expect-no-chan
+
+congestion-check
+# FAIL! moving to a weaker neighbor, should move to TCH/F in current cell instead.
+# FAIL! should favor upgrading the weaker TS 5.
+expect-ho from lchan 0 0 6 0 to lchan 1 0 1 0
+expect-ts-use trx 0 0 states * - - - - TCH/H- - *
+expect-ts-use trx 1 0 states * TCH/F - - - - - *
+
+# clear measurements for next run
+set-ts-use trx 0 0 states * - - - - - - *
+set-ts-use trx 1 0 states * - - - - - - *
+
+set-ts-use trx 0 0 states * - - - - TCH/H- TCH/H- *
+meas-rep lchan 0 0 5 0 rxlev 31 rxqual 0 ta 0 neighbors 31
+expect-no-chan
+meas-rep lchan 0 0 6 0 rxlev 30 rxqual 0 ta 0 neighbors 30
+expect-no-chan
+
+congestion-check
+# FAIL! moving to a weaker neighbor, should move to TCH/F in current cell instead.
+# FAIL! should favor upgrading the weaker TS 6.
+expect-ho from lchan 0 0 5 0 to lchan 1 0 1 0
+expect-ts-use trx 0 0 states * - - - - - TCH/H- *
+expect-ts-use trx 1 0 states * TCH/F - - - - - *
+
+# clear measurements for next run
+set-ts-use trx 0 0 states * - - - - - - *
+set-ts-use trx 1 0 states * - - - - - - *
+
+set-ts-use trx 0 0 states * - - - - TCH/H- TCH/H- *
+meas-rep lchan 0 0 5 0 rxlev 30 rxqual 0 ta 0 neighbors 31
+expect-no-chan
+meas-rep lchan 0 0 6 0 rxlev 31 rxqual 0 ta 0 neighbors 30
+expect-no-chan
+
+congestion-check
+expect-ho from lchan 0 0 5 0 to lchan 1 0 1 0
+expect-ts-use trx 0 0 states * - - - - - TCH/H- *
+expect-ts-use trx 1 0 states * TCH/F - - - - - *
+
+# clear measurements for next run
+set-ts-use trx 0 0 states * - - - - - - *
+set-ts-use trx 1 0 states * - - - - - - *
+
+set-ts-use trx 0 0 states * - - - - TCH/H- TCH/H- *
+meas-rep lchan 0 0 5 0 rxlev 31 rxqual 0 ta 0 neighbors 30
+expect-no-chan
+meas-rep lchan 0 0 6 0 rxlev 30 rxqual 0 ta 0 neighbors 31
+expect-no-chan
+
+congestion-check
+expect-ho from lchan 0 0 6 0 to lchan 1 0 1 0
+expect-ts-use trx 0 0 states * - - - - TCH/H- - *
+expect-ts-use trx 1 0 states * TCH/F - - - - - *