aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2021-01-15 10:20:05 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2021-01-19 11:49:07 +0100
commit499e02c546b37ab029fb6b6e83f8b9b744be1765 (patch)
treec9bef80445b687d0221e01cc7d73f74bcafd82f8
parent3025e69814eeb38e9e17450c58a801c02585b077 (diff)
add test_dyn_ts_congestion_tch_f_vs_tch_h_2.ho_vty
-rw-r--r--tests/handover/handover_tests.ok1
-rw-r--r--tests/handover/test_dyn_ts_congestion_tch_f_vs_tch_h_2.ho_vty34
2 files changed, 35 insertions, 0 deletions
diff --git a/tests/handover/handover_tests.ok b/tests/handover/handover_tests.ok
index f9adca906..e1e35a939 100644
--- a/tests/handover/handover_tests.ok
+++ b/tests/handover/handover_tests.ok
@@ -18,6 +18,7 @@ pass test_congestion_no_oscillation2.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_congestion_tch_f_vs_tch_h.ho_vty
+pass test_dyn_ts_congestion_tch_f_vs_tch_h_2.ho_vty
pass test_dyn_ts_favor_half_used_tch_h_as_target.ho_vty
pass test_dyn_ts_favor_moving_half_used_tch_h.ho_vty
pass test_ho_to_better_cell.ho_vty
diff --git a/tests/handover/test_dyn_ts_congestion_tch_f_vs_tch_h_2.ho_vty b/tests/handover/test_dyn_ts_congestion_tch_f_vs_tch_h_2.ho_vty
new file mode 100644
index 000000000..ef71d3e26
--- /dev/null
+++ b/tests/handover/test_dyn_ts_congestion_tch_f_vs_tch_h_2.ho_vty
@@ -0,0 +1,34 @@
+# If a handover from one TCH kind to the other occupies a dynamic timeslot,
+# also adhere to congestion constraints of the other TCH kind, since taking up
+# a dyn TS may reduce the available slot count for both kinds of TCH.
+
+create-bts trx-count 1 timeslots c+s4 TCH/F TCH/F TCH/F dyn dyn dyn PDCH
+create-bts trx-count 1 timeslots c+s4 TCH/F TCH/F TCH/F dyn dyn dyn PDCH
+
+# A TCH/H has better rxlev at a neighbor, and the neighbor's TCH/H slots would
+# not become congested. But taking up a neighbor's dynamic timeslot for TCH/H
+# would reduce the TCH/F availability to cause congestion on TCH/F. No HO.
+
+network
+ handover2 min-free-slots tch/f 2
+ handover2 min-free-slots tch/h 2
+
+set-ts-use trx 0 0 states * - - - TCH/H- pdch pdch *
+set-ts-use trx 1 0 states * TCH/F TCH/F TCH/F TCH/HH pdch pdch *
+
+meas-rep lchan * * * * rxlev 40 rxqual 0 ta 0 neighbors 30
+expect-no-chan
+
+meas-rep lchan 0 0 4 0 rxlev 20 rxqual 0 ta 0 neighbors 40
+# no handover because that results in congestion on TCH/F in bts 1
+expect-no-chan
+
+
+# Now the same situation, except there already is a half occupied TCH/H, hence an added TCH/H would not change the TCH/F
+# situation. The handover is performed.
+
+set-ts-use trx 0 0 states * - - - TCH/H- pdch pdch *
+set-ts-use trx 1 0 states * TCH/F TCH/F TCH/F TCH/HH TCH/H- pdch *
+
+meas-rep lchan 0 0 4 0 rxlev 20 rxqual 0 ta 0 neighbors 40
+expect-ho from lchan 0 0 4 0 to lchan 1 0 5 1