https://osmocom.org/https://osmocom.org/favicon.ico?16647414092018-09-27T08:47:22ZOpen Source Mobile CommunicationsOsmoMSC - Bug #3599: TTCN3 test TC_mo_setup_and_nothing does not passhttps://osmocom.org/issues/3599?journal_id=116352018-09-27T08:47:22Zdexter
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>New</i></li></ul> OsmoMSC - Bug #3599: TTCN3 test TC_mo_setup_and_nothing does not passhttps://osmocom.org/issues/3599?journal_id=116412018-09-27T11:32:15Zdexter
<ul><li><strong>File</strong> <a href="/attachments/3377">release_after_abandonned_setup.pcapng</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3377/release_after_abandonned_setup.pcapng">release_after_abandonned_setup.pcapng</a> added</li></ul><p>I have now analyzed the problem. I think the main issue here is the MNCC, where the Call-Control actually happens. From my understanding the test stops at the setup. Normally one would expect the MNCC to detect that nothing else is happening and the MNCC then would release the call again. However, the test also seems to be silent on the MNCC socket. Since sccp and mncc are silent, nothing happens anymore.</p>
<p>gsm_04_08_cc.c is controlling the MNCC and there are already timeouts implemented. However, in some places timeouts seem to be missing. We should check the calls to mncc_recvmsg() and see if there is a timeout in place that releases the call in case the MNCC remains silent.</p>
<p>As an experiment I added a call to gsm48_start_cc_timer(trans, 0x303, GSM48_T303) in gsm48_cc_rx_setup(), right after mncc_recvmsg(). Attached one finds the trace of the result. The timeout T303 is 30sec. In the trace one can see that after 30sec. the call gets released. I think this looks much better now.</p> OsmoMSC - Bug #3599: TTCN3 test TC_mo_setup_and_nothing does not passhttps://osmocom.org/issues/3599?journal_id=120872018-10-08T12:09:03Zdexter
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>In Progress</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>50</i></li></ul><p>I have now added a timeout of 25 sec. When the remote part of the MNCC (osmo-sip-connector) does not respond to the setup. The timout will hard clear the connection, as TC_mo_setup_and_nothing expects it.</p>
<p>To my knowledge the response to a SETUP should be almost immediate, so I think a timeout of 25 sec is ok here. However, I am not quite sure if the response to the setup does not depend on responses of the remote SIP end. As far as I understood its generated or rejected immediately. However I might be wrong and we may have to reconsider the timeout length.</p>
<p>See also: <a class="external" href="https://gerrit.osmocom.org/#/c/osmo-msc/+/11265">https://gerrit.osmocom.org/#/c/osmo-msc/+/11265</a> mncc: protect against non responsive MNCC during setup</p> OsmoMSC - Bug #3599: TTCN3 test TC_mo_setup_and_nothing does not passhttps://osmocom.org/issues/3599?journal_id=120882018-10-08T13:31:27Zdexter
<ul></ul><p>I did some practical tests. When an MO-Call is placed and the other leg does not pick up, the timer I added indeed terminates the call early. This is not good, I thought there were more timer usage for MO-Calls that would stop/reschedule the timer but there is no timer activity at all when an MO-Call is placed.</p>
<p>I have now stop the timer when the MNCC_ALERT_REQ is received on MNCC. This means we are protected until the other end alerts. I kind of like the idea to have a global guard timer that only stops when the call is established. This would also prevent from subscribers who block the net by letting the phone ringing infinitely. The other way would be to work along the state machine. As I can see MNCC_ALERT_REQ is sent in regular intervals. We could reschedule a timer to check on that as well. However. Using a global guard timer would be way easier.</p> OsmoMSC - Bug #3599: TTCN3 test TC_mo_setup_and_nothing does not passhttps://osmocom.org/issues/3599?journal_id=123202018-10-22T20:09:00Zdexter
<ul><li><strong>% Done</strong> changed from <i>50</i> to <i>60</i></li></ul><p>I have added a global guard timer that is also configurable via VTY, the patch is still under review: <a class="external" href="https://gerrit.osmocom.org/#/c/osmo-msc/+/11307/">https://gerrit.osmocom.org/#/c/osmo-msc/+/11307/</a></p>
<p>Then I extended the guard timer in TTCN3, but as neels said its probably better to shorten the timeout in osmo-bsc artificially via VTY. I hope doing so will not mess up other testcases.<br />See also: <a class="external" href="https://gerrit.osmocom.org/#/c/osmo-ttcn3-hacks/+/11391/">https://gerrit.osmocom.org/#/c/osmo-ttcn3-hacks/+/11391/</a></p>
<p>We also have hardcoded timeouts in MGCP FSM. We probably might want to make those configurable as well, however, this is not in scope of this particular task.</p> OsmoMSC - Bug #3599: TTCN3 test TC_mo_setup_and_nothing does not passhttps://osmocom.org/issues/3599?journal_id=123412018-10-24T08:43:15Zdexter
<ul><li><strong>% Done</strong> changed from <i>60</i> to <i>90</i></li></ul><p>The patch <a class="external" href="https://gerrit.osmocom.org/#/c/osmo-msc/+/11307/">https://gerrit.osmocom.org/#/c/osmo-msc/+/11307/</a> is still in review, thats why TC_establish_and_nothing does not pass yet. I have tested everything now with current master of the ttcn3 test, it looks good to me. When 11307 is marged TC_establish_and_nothing should pass.</p> OsmoMSC - Bug #3599: TTCN3 test TC_mo_setup_and_nothing does not passhttps://osmocom.org/issues/3599?journal_id=124212018-10-29T13:33:52Zdexter
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Resolved</i></li><li><strong>% Done</strong> changed from <i>90</i> to <i>100</i></li></ul><p>The test TC_establish_and_nothing now passes, so we can close this now.</p>