https://osmocom.org/https://osmocom.org/favicon.ico?16647414092018-05-23T16:41:58ZOpen Source Mobile CommunicationsOsmoMSC - Bug #3286: TC_cr_before_reset fails since build #148 (May 16)https://osmocom.org/issues/3286?journal_id=94622018-05-23T16:41:58Zlaforge
<ul><li><strong>Related to</strong> <i><a class="issue tracker-2 status-3 priority-2 priority-default closed" href="/issues/3103">Feature #3103</a>: use a_reset.c in osmo-msc</i> added</li></ul> OsmoMSC - Bug #3286: TC_cr_before_reset fails since build #148 (May 16)https://osmocom.org/issues/3286?journal_id=94952018-05-25T13:35:53Zdexter
<ul><li><strong>File</strong> <a href="/attachments/3161">archive.zip</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3161/archive.zip">archive.zip</a> added</li><li><strong>File</strong> <a href="/attachments/3162">with_f_sleep.pcapng</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3162/with_f_sleep.pcapng">with_f_sleep.pcapng</a> added</li><li><strong>File</strong> <a href="/attachments/3163">without_f_sleep.pcapng</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3163/without_f_sleep.pcapng">without_f_sleep.pcapng</a> added</li></ul><p>I have tried to pinpoint the problem. Unfortunately I can not exactly say what it is. The problem is reproducible with docker, but not with my normal setup on my workstation. When I add an f_sleep(10) at the beginning of TC_cr_before_reset() the testcase passes.</p>
<p>In the build artifacts (MSC_Tests.TC_cr_before_reset.pcap) I see only the messages from TTCN3, but not from the MSC, but in osmo-msc.log I can see that the MSC receives the messages from TTCN3 correctly. I can see the connection attempt and the BSSMAP RESET. Also the log says that the BSSMAP RESET ACK is sent out.</p>
<pre>
Tue May 22 04:33:08 2018 DBSSAP <0010> a_iface.c:138 The calling BSC (RI=SSN_PC,PC=0.24.1,SSN=BSSAP) is unknown to this MSC ...
Tue May 22 04:33:08 2018 DBSSAP <0010> a_iface.c:457 Adding new BSC connection for BSC RI=SSN_PC,PC=0.24.1,SSN=BSSAP...
Tue May 22 04:33:08 2018 DBSSAP <0010> a_iface_bssap.c:110 Rx BSSMAP RESET from BSC RI=SSN_PC,PC=0.24.1,SSN=BSSAP, sending RESET ACK
</pre>
<p>To me this looks like a race condition that causes a communication problem between MSC and TTCN3. However, I am really confused to see messages arriving at the MSC because when I check the trace (without_f_sleep.pcapng) I see only the messages from TTCN3 to the STP, but do not see any egress messages going from the STP to the MSC. With the f_sleep(10) the trace looks normal (with_f_sleep.pcapng).</p>
<p>Note: We do not expect the MSC to respond to the CR with an BSSMAP RESET since the BSSMAP RESET from TTCN3 arrives so quickly at the RESET FSM inside the MSC does not get to the point where it sends its BSSMAP RESET. This is fine so far.</p> OsmoMSC - Bug #3286: TC_cr_before_reset fails since build #148 (May 16)https://osmocom.org/issues/3286?journal_id=94962018-05-25T13:37:59Zdexter
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Feedback</i></li><li><strong>Assignee</strong> changed from <i>dexter</i> to <i>laforge</i></li></ul> OsmoMSC - Bug #3286: TC_cr_before_reset fails since build #148 (May 16)https://osmocom.org/issues/3286?journal_id=96412018-05-30T14:21:10Zlaforge
<ul><li><strong>Tags</strong> set to <i>TTCN3</i></li></ul> OsmoMSC - Bug #3286: TC_cr_before_reset fails since build #148 (May 16)https://osmocom.org/issues/3286?journal_id=106142018-08-06T20:36:28Zlaforge
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Stalled</i></li><li><strong>Assignee</strong> changed from <i>laforge</i> to <i>dexter</i></li></ul><p>I'm not really able to produce any feedback here. I suggest you dig deeper and possibly ask <a class="user active" href="https://osmocom.org/users/30">daniel</a> for some help, he's been doing great work in finding TTCN3 related race conditions recently.</p> OsmoMSC - Bug #3286: TC_cr_before_reset fails since build #148 (May 16)https://osmocom.org/issues/3286?journal_id=106452018-08-07T16:18:07Zdaniel
<ul><li><strong>Status</strong> changed from <i>Stalled</i> to <i>In Progress</i></li><li><strong>Assignee</strong> changed from <i>dexter</i> to <i>daniel</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>60</i></li></ul><p>It seems the f_init_bssap_direct call needs an f_bssap_start in order for the BSSAP messages to reach the MSC.</p> OsmoMSC - Bug #3286: TC_cr_before_reset fails since build #148 (May 16)https://osmocom.org/issues/3286?journal_id=106462018-08-07T16:18:54Zdaniel
<ul></ul><p><a class="external" href="https://gerrit.osmocom.org/#/c/osmo-ttcn3-hacks/+/10369">https://gerrit.osmocom.org/#/c/osmo-ttcn3-hacks/+/10369</a></p> OsmoMSC - Bug #3286: TC_cr_before_reset fails since build #148 (May 16)https://osmocom.org/issues/3286?journal_id=106482018-08-07T17:03:19Zdaniel
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Resolved</i></li><li><strong>Resolution</strong> set to <i>fixed</i></li></ul><p>Merged now</p>