aboutsummaryrefslogtreecommitdiffstats
path: root/tests/handover/test_balance_congestion_tchf_tchh.ho_vty
blob: 62f07bff27c0dc35c84ebb177e4eac58d2ba1ba7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Balance congestion across cells and across TCH/F and TCH/H.

network
 handover2 min-free-slots tch/f 3
 handover2 min-free-slots tch/h 3

create-bts trx-count 1 timeslots	c+s4	TCH/F	TCH/F	TCH/F	TCH/F	TCH/H	TCH/H	TCH/H

# both TCH/H and TCH/F have one lchan = 33% above congestion, nothing happens
set-ts-use trx 0 0 states		*	TCH/F	TCH/F	-	-	TCH/HH  TCH/HH  -
meas-rep lchan * * * * rxlev 10 rxqual 0 ta 0
congestion-check
expect-no-chan

# TCH/F = +1 = 33%, TCH/H = +2 = 66% above congestion.
# Moving a TCH/H to TCH/F would just reverse the situation to F=+2=66%. Nothing happens.
set-ts-use trx 0 0 states		*	TCH/F	TCH/F	-	-	TCH/HH  TCH/HH  TCH/H-
meas-rep lchan * * * * rxlev 10 rxqual 0 ta 0
congestion-check
expect-no-chan

# F=+1=33% H=+3=100%. Balance to F=+2=66% (which is < 100%) and H=+2=66%
set-ts-use trx 0 0 states		*	TCH/F	TCH/F	-	-	TCH/HH  TCH/HH  TCH/HH
meas-rep lchan * * * * rxlev 10 rxqual 0 ta 0
congestion-check
expect-ho from lchan 0 0 5 0 to lchan 0 0 3 0

# Now similar load percentages, just with different min-free-slots settings for tch/f vs tch/h.

network
 handover2 min-free-slots tch/f 3
 handover2 min-free-slots tch/h 5

# TCH/F has 1/3 = 33%, TCH/H has 1/5 = 20% overload.
# Moving one to TCH/H would mean 40% overload on TCH/H, which is above the current TCH/F of 33%.
# Nothing happens.
set-ts-use trx 0 0 states		*	TCH/F	TCH/F	-	-	TCH/HH  -	-
meas-rep lchan * * * * rxlev 20 rxqual 0 ta 0
congestion-check
expect-no-chan

# TCH/F = +1 = 33%, TCH/H = +2 = 40% above congestion. Moving a TCH/H to TCH/F would result
# in F=+2=66%>40%. Nothing happens.
set-ts-use trx 0 0 states		*	TCH/F	TCH/F	-	-	TCH/HH  TCH/H-  -
meas-rep lchan * * * * rxlev 20 rxqual 0 ta 0
congestion-check
expect-no-chan

# F=+1=33% H=+4=80%. Balance to F=+2=66%<80% and H=+3=60%
set-ts-use trx 0 0 states		*	TCH/F	TCH/F	-	-	TCH/HH  TCH/HH  TCH/H-
meas-rep lchan * * * * rxlev 20 rxqual 0 ta 0
congestion-check
expect-ho from lchan 0 0 5 0 to lchan 0 0 3 0