neels has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33408 )
Change subject: hnbgw: give RAN startup some time ......................................................................
hnbgw: give RAN startup some time
We have sporadic test failure, because the test starts to send RUA messages before the CN link was able to perform a RANAP RESET + ACK procedure.
Since recently, osmo-hnbgw is stricter on RANAP RESET: it will only start passing RUA connections to the CN when the CN link has seen a RANAP RESET ACK (from either side). So now, when the test is too quick, its first RUA message is dropped on the floor, and the test fails, since the RANAP never turns up on SCCP.
This is a quick hack, better would be to wait for some signal from the RAN_Emulation when we are ready.
This jenkins trace shows that the RUA InitialUE happens about 200 ms before RESET ACK is complete:
https://jenkins.osmocom.org/jenkins/job/ttcn3-hnbgw-test/512/artifact/logs/h...
No. Time src dst Protocol Info 118 04:02:17.088852 172.18.124.200,2905,189 172.18.124.203,23905,188 RANAP Reset 167 04:02:17.105820 172.18.124.200,2905,189 172.18.124.203,23906,185 RANAP Reset 193 04:02:17.899887 172.18.124.203,9999 172.18.124.20,29169 RANAP (RUA) InitialUE-Message (DTAP) (Unknown) 210 04:02:17.905122 172.18.124.203,23906,185 172.18.124.200,2905,189 RANAP Reset 258 04:02:17.906043 172.18.124.200,2905,189 172.18.124.203,23906,185 RANAP SACK (Ack=2, Arwnd=106496) ResetAcknowledge 259 04:02:17.906056 172.18.124.203,23906,185 172.18.124.200,2905,189 RANAP SACK (Ack=5, Arwnd=106436) ResetAcknowledge 288 04:02:18.081522 172.18.124.203,23905,188,188 172.18.124.200,2905,189,189 RANAP Reset ResetAcknowledge 363 04:02:18.082829 172.18.124.200,2905,189 172.18.124.203,23905,188 RANAP SACK (Ack=4, Arwnd=106496) ResetAcknowledge
Change-Id: Icbe7220112fbfe4ff5a5e1b9b65eeec428e51530 --- M hnbgw/HNBGW_Tests.ttcn 1 file changed, 39 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/08/33408/1
diff --git a/hnbgw/HNBGW_Tests.ttcn b/hnbgw/HNBGW_Tests.ttcn index c3dbecd..e5f227e 100644 --- a/hnbgw/HNBGW_Tests.ttcn +++ b/hnbgw/HNBGW_Tests.ttcn @@ -465,6 +465,8 @@ f_vty_transceive(HNBGWVTY, "enable");
/* TODO: CTRL? */ + + f_sleep(1.0); }
/* global altstep for global guard timer; */