add ttcn3-bsc-test-vamos

The purpose is to run osmo-ttcn3-hacks/bsc/BSC_Tests_VAMOS.ttcn with
  osmo-bts-omldummy -f VAMOS
(send BTS_FEAT_VAMOS = true).

Change-Id: I2146388bf683cfba99cef5592b8b141c3a6eabb1
This commit is contained in:
Neels Hofmeyr 2021-04-08 20:31:42 +02:00 committed by neels
parent 19d334a238
commit 41745d5ca0
6 changed files with 659 additions and 0 deletions

View File

@ -0,0 +1,74 @@
[ORDERED_INCLUDE]
"/osmo-ttcn3-hacks/Common.cfg"
"/osmo-ttcn3-hacks/bsc/BSC_Tests.default"
[LOGGING]
*.JUnitLogger.testsuite_name := "BSC_Tests"
[TESTPORT_PARAMETERS]
*.BSCVTY.CTRL_HOSTNAME := "172.18.31.20"
*.STATSVTY.CTRL_HOSTNAME := "172.18.31.20"
[MODULE_PARAMETERS]
BSC_Tests.mp_bsc_ip := "172.18.31.20";
BSC_Tests.mp_test_ip := "172.18.31.203";
BSC_Tests.mp_enable_osmux_test := true;
BSC_Tests.mp_bssap_cfg := {
{
transport := BSSAP_TRANSPORT_AoIP,
sccp_service_type := "mtp3_itu",
sctp_addr := { 23905, "172.18.31.203", 2905, "172.18.31.200" },
own_pc := 185, /* 0.23.1 first MSC emulation */
own_ssn := 254,
peer_pc := 187, /* 0.23.3 osmo-bsc */
peer_ssn := 254,
sio := '83'O,
rctx := 1
},
{
transport := BSSAP_TRANSPORT_AoIP,
sccp_service_type := "mtp3_itu",
sctp_addr := { 23906, "172.18.31.203", 2905, "172.18.31.200" },
own_pc := 2, /* 0.0.2 second MSC emulation */
own_ssn := 254,
peer_pc := 187, /* 0.23.3 osmo-bsc */
peer_ssn := 254,
sio := '83'O,
rctx := 2
},
{
transport := BSSAP_TRANSPORT_AoIP,
sccp_service_type := "mtp3_itu",
sctp_addr := { 23907, "172.18.31.203", 2905, "172.18.31.200" },
own_pc := 3, /* 0.0.3 third MSC emulation */
own_ssn := 254,
peer_pc := 187, /* 0.23.3 osmo-bsc */
peer_ssn := 254,
sio := '83'O,
rctx := 3
}
};
BSC_Tests.mp_enable_lcs_tests := true;
BSC_Tests.mp_bssap_le_cfg := {
sccp_service_type := "mtp3_itu",
sctp_addr := { 23908, "172.18.31.203", 2905, "172.18.31.200" },
own_pc := 190, /* 0.23.6 SMLC emulation */
own_ssn := 252, /* SMLC side SSN */
peer_pc := 187, /* 0.23.3 osmo-bsc */
peer_ssn := 250, /* BSC side SSN */
sio := '83'O,
rctx := 6
};
BSC_Tests_CBSP.mp_cgi_bts0 := { '001'H, '01'H, 1, 0 };
BSC_Tests_CBSP.mp_cgi_bts1 := { '001'H, '01'H, 1, 1 };
BSC_Tests_CBSP.mp_cgi_bts2 := { '001'H, '01'H, 2, 1 };
BSC_Tests_CBSP.mp_cgi_bts3 := { '001'H, '01'H, 3, 3 };
BSC_Tests_CBSP.mp_cbc_ip := "172.18.31.203";
BSC_Tests_CBSP.mp_cbc_ip6 := "fd02:db8:31::203";
BSC_Tests_CBSP.mp_bsc_cbsp_ip := "172.18.31.20";
BSC_Tests_CBSP.mp_bsc_cbsp_ip6 := "fd02:db8:31::20";
[MAIN_CONTROLLER]
[EXECUTE]
BSC_Tests_VAMOS.control

View File

@ -0,0 +1,13 @@
ARG REGISTRY
ARG USER
FROM $REGISTRY/$USER/debian-stretch-titan
ARG OSMO_TTCN3_BRANCH="master"
ADD http://git.osmocom.org/osmo-ttcn3-hacks/patch?h=$OSMO_TTCN3_BRANCH /tmp/commit
RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" bsc
VOLUME /data
COPY BSC_Tests.cfg /data/BSC_Tests.cfg
CMD ttcn3-docker-run bsc BSC_Tests

View File

@ -0,0 +1,3 @@
RUN_ARGS?=--sysctl net.ipv6.conf.all.disable_ipv6=0 --rm --network sigtran --ip 172.18.31.202 -v ggsn-test-vol:/data
include ../make/Makefile

67
ttcn3-bsc-test-vamos/jenkins.sh Executable file
View File

@ -0,0 +1,67 @@
#!/bin/sh
. ../jenkins-common.sh
IMAGE_SUFFIX="${IMAGE_SUFFIX:-master}"
docker_images_require \
"osmo-stp-$IMAGE_SUFFIX" \
"osmo-bsc-$IMAGE_SUFFIX" \
"osmo-bts-$IMAGE_SUFFIX" \
"ttcn3-bsc-test"
set_clean_up_trap
set -e
mkdir $VOL_BASE_DIR/bsc-tester
cp BSC_Tests.cfg $VOL_BASE_DIR/bsc-tester/
mkdir $VOL_BASE_DIR/stp
cp osmo-stp.cfg $VOL_BASE_DIR/stp/
mkdir $VOL_BASE_DIR/bsc
cp osmo-bsc.cfg $VOL_BASE_DIR/bsc/
mkdir $VOL_BASE_DIR/bts-omldummy
SUBNET=31
network_create $SUBNET
echo Starting container with STP
docker run --rm \
$(docker_network_params $SUBNET 200) \
--ulimit core=-1 \
-v $VOL_BASE_DIR/stp:/data \
--name ${BUILD_TAG}-stp -d \
--ulimit core=-1 \
$DOCKER_ARGS \
$REPO_USER/osmo-stp-$IMAGE_SUFFIX
echo Starting container with BSC
docker run --rm \
$(docker_network_params $SUBNET 20) \
--ulimit core=-1 \
-v $VOL_BASE_DIR/bsc:/data \
--name ${BUILD_TAG}-bsc -d \
$DOCKER_ARGS \
$REPO_USER/osmo-bsc-$IMAGE_SUFFIX
for i in `seq 0 2`; do
echo Starting container with OML for BTS$i
docker run --rm \
$(docker_network_params $SUBNET 10$i) \
--ulimit core=-1 \
-v $VOL_BASE_DIR/bts-omldummy:/data \
--name ${BUILD_TAG}-bts$i -d \
$DOCKER_ARGS \
$REPO_USER/osmo-bts-$IMAGE_SUFFIX \
/bin/sh -c "/usr/local/bin/respawn.sh osmo-bts-omldummy -f VAMOS 172.18.31.20 $((i + 1234)) 1 >>/data/osmo-bts-omldummy-${i}.log 2>&1"
done
echo Starting container with BSC testsuite
docker run --rm \
$(docker_network_params $SUBNET 203) \
--ulimit core=-1 \
-e "TTCN3_PCAP_PATH=/data" \
-v $VOL_BASE_DIR/bsc-tester:/data \
--name ${BUILD_TAG}-ttcn3-bsc-test \
$DOCKER_ARGS \
$REPO_USER/ttcn3-bsc-test

View File

@ -0,0 +1,427 @@
!
! OsmoBSC (1.0.1.122-630df) configuration saved from vty
!!
password foo
!
log gsmtap 172.18.31.203
logging level set-all debug
logging filter all 1
!
log stderr
logging filter all 1
logging color 1
logging print category 1
logging print category-hex 0
logging timestamp 1
logging print extended-timestamp 1
logging print file basename last
logging print level 1
logging level set-all debug
logging level llapd notice
logging level linp notice
logging level lmux notice
logging level lmi notice
logging level lmib notice
logging level lsms notice
logging level lctrl notice
logging level lgtp notice
logging level lstats notice
logging level lgsup notice
logging level loap notice
logging level lss7 notice
logging level lsccp notice
logging level lsua notice
logging level lm3ua notice
logging level lmgcp notice
!
stats interval 0
stats reporter statsd
prefix TTCN3
level subscriber
remote-ip 172.18.31.203
remote-port 8125
flush-period 1
mtu 1024
enable
!
line vty
no login
bind 0.0.0.0
!
e1_input
e1_line 0 driver ipa
e1_line 0 port 0
no e1_line 0 keepalive
cs7 instance 0
asp asp-clnt-msc-0 2905 2905 m3ua
local-ip 172.18.31.20
local-ip fd02:db8:31::20
remote-ip 172.18.31.200
remote-ip fd02:db8:31::200
sccp-address msc2
point-code 0.0.2
sccp-address msc3
point-code 0.0.3
network
network country code 1
mobile network code 1
encryption a5 0 1 3
neci 1
paging any use tch 0
handover 1
handover window rxlev averaging 10
handover window rxqual averaging 1
handover window rxlev neighbor averaging 10
handover power budget interval 6
handover power budget hysteresis 3
handover maximum distance 9999
timer t3113 10
timer t3212 30
bts 0
type sysmobts
band DCS1800
cell_identity 0
location_area_code 1
dtx uplink force
dtx downlink
base_station_id_code 10
ms max power 15
cell reselection hysteresis 4
rxlev access min 0
radio-link-timeout 32
channel allocator ascending
rach tx integer 9
rach max transmission 7
channel-descrption attach 1
channel-descrption bs-pa-mfrms 5
channel-descrption bs-ag-blks-res 1
early-classmark-sending forbidden
ip.access unit_id 1234 0
oml ip.access stream_id 255 line 0
neighbor-list mode manual-si5
neighbor-list add arfcn 100
neighbor-list add arfcn 200
si5 neighbor-list add arfcn 10
si5 neighbor-list add arfcn 20
codec-support fr hr efr amr
gprs mode gprs
gprs routing area 0
gprs network-control-order nc0
gprs cell bvci 1234
gprs cell timer blocking-timer 3
gprs cell timer blocking-retries 3
gprs cell timer unblocking-retries 3
gprs cell timer reset-timer 3
gprs cell timer reset-retries 3
gprs cell timer suspend-timer 10
gprs cell timer suspend-retries 3
gprs cell timer resume-timer 10
gprs cell timer resume-retries 3
gprs cell timer capability-update-timer 10
gprs cell timer capability-update-retries 3
gprs nsei 1234
gprs ns timer tns-block 3
gprs ns timer tns-block-retries 3
gprs ns timer tns-reset 3
gprs ns timer tns-reset-retries 3
gprs ns timer tns-test 30
gprs ns timer tns-alive 3
gprs ns timer tns-alive-retries 10
gprs nsvc 0 nsvci 1234
gprs nsvc 0 local udp port 23000
gprs nsvc 0 remote udp port 23000
gprs nsvc 0 remote ip 192.168.100.239
gprs nsvc 1 nsvci 0
gprs nsvc 1 local udp port 0
gprs nsvc 1 remote udp port 0
gprs nsvc 1 remote ip 0.0.0.0
no force-combined-si
si2quater neighbor-list add earfcn 111 thresh-hi 20 thresh-lo 10 prio 3 qrxlv 22 meas 3
trx 0
rf_locked 0
arfcn 871
nominal power 23
max_power_red 20
rsl e1 tei 0
timeslot 0
phys_chan_config CCCH+SDCCH4+CBCH
hopping enabled 0
timeslot 1
phys_chan_config TCH/F
hopping enabled 0
timeslot 2
phys_chan_config TCH/F
hopping enabled 0
timeslot 3
phys_chan_config TCH/F
hopping enabled 0
timeslot 4
phys_chan_config TCH/F
hopping enabled 0
timeslot 5
phys_chan_config TCH/H
hopping enabled 0
timeslot 6
phys_chan_config TCH/H
hopping enabled 0
timeslot 7
phys_chan_config PDCH
hopping enabled 0
bts 1
type sysmobts
band DCS1800
cell_identity 1
location_area_code 1
dtx uplink force
dtx downlink
base_station_id_code 11
ms max power 15
cell reselection hysteresis 4
rxlev access min 0
radio-link-timeout 32
channel allocator ascending
rach tx integer 9
rach max transmission 7
channel-descrption attach 1
channel-descrption bs-pa-mfrms 5
channel-descrption bs-ag-blks-res 1
early-classmark-sending forbidden
ip.access unit_id 1235 0
oml ip.access stream_id 255 line 0
neighbor-list mode manual-si5
neighbor-list add arfcn 100
neighbor-list add arfcn 200
si5 neighbor-list add arfcn 10
si5 neighbor-list add arfcn 20
codec-support fr hr efr amr
gprs mode gprs
gprs routing area 0
gprs network-control-order nc0
gprs cell bvci 1235
gprs cell timer blocking-timer 3
gprs cell timer blocking-retries 3
gprs cell timer unblocking-retries 3
gprs cell timer reset-timer 3
gprs cell timer reset-retries 3
gprs cell timer suspend-timer 10
gprs cell timer suspend-retries 3
gprs cell timer resume-timer 10
gprs cell timer resume-retries 3
gprs cell timer capability-update-timer 10
gprs cell timer capability-update-retries 3
gprs nsei 1235
gprs ns timer tns-block 3
gprs ns timer tns-block-retries 3
gprs ns timer tns-reset 3
gprs ns timer tns-reset-retries 3
gprs ns timer tns-test 30
gprs ns timer tns-alive 3
gprs ns timer tns-alive-retries 10
gprs nsvc 0 nsvci 1235
gprs nsvc 0 local udp port 23000
gprs nsvc 0 remote udp port 23000
gprs nsvc 0 remote ip 192.168.100.239
gprs nsvc 1 nsvci 0
gprs nsvc 1 local udp port 0
gprs nsvc 1 remote udp port 0
gprs nsvc 1 remote ip 0.0.0.0
no force-combined-si
si2quater neighbor-list add earfcn 111 thresh-hi 20 thresh-lo 10 prio 3 qrxlv 22 meas 3
trx 0
rf_locked 0
arfcn 871
nominal power 23
max_power_red 20
rsl e1 tei 0
timeslot 0
phys_chan_config CCCH+SDCCH4+CBCH
hopping enabled 0
timeslot 1
phys_chan_config TCH/F
hopping enabled 0
timeslot 2
phys_chan_config TCH/F
hopping enabled 0
timeslot 3
phys_chan_config TCH/F
hopping enabled 0
timeslot 4
phys_chan_config TCH/F
hopping enabled 0
timeslot 5
phys_chan_config TCH/H
hopping enabled 0
timeslot 6
phys_chan_config PDCH
hopping enabled 0
timeslot 7
phys_chan_config PDCH
hopping enabled 0
bts 2
type sysmobts
band DCS1800
cell_identity 1
location_area_code 2
dtx uplink force
dtx downlink
base_station_id_code 12
ms max power 15
cell reselection hysteresis 4
rxlev access min 0
radio-link-timeout 32
channel allocator ascending
rach tx integer 9
rach max transmission 7
channel-descrption attach 1
channel-descrption bs-pa-mfrms 5
channel-descrption bs-ag-blks-res 1
early-classmark-sending forbidden
ip.access unit_id 1236 0
oml ip.access stream_id 255 line 0
neighbor-list mode manual-si5
neighbor-list add arfcn 100
neighbor-list add arfcn 200
si5 neighbor-list add arfcn 10
si5 neighbor-list add arfcn 20
codec-support fr hr efr amr
gprs mode gprs
gprs routing area 0
gprs network-control-order nc0
gprs cell bvci 1236
gprs cell timer blocking-timer 3
gprs cell timer blocking-retries 3
gprs cell timer unblocking-retries 3
gprs cell timer reset-timer 3
gprs cell timer reset-retries 3
gprs cell timer suspend-timer 10
gprs cell timer suspend-retries 3
gprs cell timer resume-timer 10
gprs cell timer resume-retries 3
gprs cell timer capability-update-timer 10
gprs cell timer capability-update-retries 3
gprs nsei 1236
gprs ns timer tns-block 3
gprs ns timer tns-block-retries 3
gprs ns timer tns-reset 3
gprs ns timer tns-reset-retries 3
gprs ns timer tns-test 30
gprs ns timer tns-alive 3
gprs ns timer tns-alive-retries 10
gprs nsvc 0 nsvci 1236
gprs nsvc 0 local udp port 23000
gprs nsvc 0 remote udp port 23000
gprs nsvc 0 remote ip 192.168.100.239
gprs nsvc 1 nsvci 0
gprs nsvc 1 local udp port 0
gprs nsvc 1 remote udp port 0
gprs nsvc 1 remote ip 0.0.0.0
no force-combined-si
si2quater neighbor-list add earfcn 111 thresh-hi 20 thresh-lo 10 prio 3 qrxlv 22 meas 3
trx 0
rf_locked 0
arfcn 871
nominal power 23
max_power_red 20
rsl e1 tei 0
timeslot 0
phys_chan_config CCCH+SDCCH4+CBCH
hopping enabled 0
timeslot 1
phys_chan_config TCH/F
hopping enabled 0
timeslot 2
phys_chan_config TCH/F
hopping enabled 0
timeslot 3
phys_chan_config TCH/F
hopping enabled 0
timeslot 4
phys_chan_config TCH/F
hopping enabled 0
timeslot 5
phys_chan_config TCH/H
hopping enabled 0
timeslot 6
phys_chan_config PDCH
hopping enabled 0
timeslot 7
phys_chan_config PDCH
hopping enabled 0
bts 3
type sysmobts
band DCS1800
cell_identity 3
location_area_code 3
# re-use bts 2's ARFCN 871 and BSIC 12 (to test handover config)
base_station_id_code 12
trx 0
rf_locked 0
arfcn 871
nominal power 23
max_power_red 20
rsl e1 tei 0
timeslot 0
phys_chan_config CCCH+SDCCH4
timeslot 1
phys_chan_config TCH/F
timeslot 2
phys_chan_config TCH/F
timeslot 3
phys_chan_config TCH/F
timeslot 4
phys_chan_config TCH/F
timeslot 5
phys_chan_config TCH/H
timeslot 6
phys_chan_config PDCH
timeslot 7
phys_chan_config PDCH
msc 0
allow-emergency allow
amr-config 12_2k forbidden
amr-config 10_2k forbidden
amr-config 7_95k forbidden
amr-config 7_40k forbidden
amr-config 6_70k forbidden
amr-config 5_90k allowed
amr-config 5_15k forbidden
amr-config 4_75k forbidden
codec-list fr1 fr2 fr3 hr1 hr3
mgw remote-ip 172.18.31.203
lcls-mode mgw-loop
msc 1
msc-addr msc2
mgw remote-ip 172.18.31.203
msc 2
msc-addr msc3
mgw remote-ip 172.18.31.203
network
nri bitlen 10
# a NULL NRI that is outside the NRI ranges used by the MSCs:
nri null add 0
# a NULL NRI that is also used by an MSC:
nri null add 1
msc 0
nri add 1 255
msc 1
nri add 256 511
msc 2
nri add 512 767
# range 768-1024 is not assigned to any MSC on purpose
bsc
mid-call-timeout 0
no missing-msc-text
ctrl
bind 0.0.0.0
cbc
mode disabled
client
remote-ip 172.18.31.203
remote-port 48049
server
local-ip 172.18.31.20
local-port 48050
smlc
enable

View File

@ -0,0 +1,75 @@
!
! OsmoSTP (0.8.1) configuration saved from vty
!!
!
log gsmtap 172.18.31.203
logging level set-all debug
logging filter all 1
!
log stderr
logging filter all 1
logging color 1
logging print category 1
logging print category-hex 0
logging timestamp 1
logging print extended-timestamp 1
logging print file basename last
logging print level 1
logging level set-all notice
!
line vty
no login
!
cs7 instance 0
xua rkm routing-key-allocation dynamic-permitted
asp virt-msc0-0 23905 2905 m3ua
local-ip 172.18.31.200
local-ip fd02:db8:31::200
remote-ip 172.18.31.203
remote-ip fd02:db8:31::203
as mahlzeit ipa
routing-key 0 0.23.4
point-code override dpc 0.23.1
as virt-msc0 m3ua
asp virt-msc0-0
routing-key 1 0.23.1
asp virt-msc1-0 23906 2905 m3ua
local-ip 172.18.31.200
local-ip fd02:db8:31::200
remote-ip 172.18.31.203
remote-ip fd02:db8:31::203
as virt-msc1 m3ua
asp virt-msc1-0
routing-key 2 0.0.2
asp virt-msc2-0 23907 2905 m3ua
local-ip 172.18.31.200
local-ip fd02:db8:31::200
remote-ip 172.18.31.203
remote-ip fd02:db8:31::203
as virt-msc2 m3ua
asp virt-msc2-0
routing-key 3 0.0.3
asp virt-smlc-0 23908 2905 m3ua
local-ip 172.18.31.200
local-ip fd02:db8:31::200
remote-ip 172.18.31.203
remote-ip fd02:db8:31::203
as virt-smlc m3ua
asp virt-smlc-0
routing-key 6 0.23.6
route-table system
update route 0.23.1 7.255.7 linkset virt-msc0
update route 0.0.2 7.255.7 linkset virt-msc1
update route 0.0.3 7.255.7 linkset virt-msc2
update route 0.23.6 7.255.7 linkset virt-smlc
listen m3ua 2905
accept-asp-connections dynamic-permitted
local-ip 172.18.31.200
local-ip fd02:db8:31::200
listen ipa 5000
accept-asp-connections dynamic-permitted
local-ip 172.18.31.200