https://projects.osmocom.org/https://projects.osmocom.org/favicon.ico?16647414092018-11-22T18:09:11ZOpen Source Mobile CommunicationsOsmoMSC - Bug #3704: When Paging request for SMS is unanswered, osmo-msc sends infinit number of paging requests https://projects.osmocom.org/issues/3704?journal_id=126652018-11-22T18:09:11Zdexter
<ul><li><strong>% Done</strong> changed from <i>0</i> to <i>40</i></li></ul><p>The problem can be reproduced using the following TTCN3 test: (MSC_Tests.TC_lu_and_mt_sms_paging_and_nothing)<br /><a class="external" href="https://gerrit.osmocom.org/#/c/osmo-ttcn3-hacks/+/11897/">https://gerrit.osmocom.org/#/c/osmo-ttcn3-hacks/+/11897/</a></p>
<p>(The normal intended count for re-delivery attempts seems to be set to 10)</p> OsmoMSC - Bug #3704: When Paging request for SMS is unanswered, osmo-msc sends infinit number of paging requests https://projects.osmocom.org/issues/3704?journal_id=126672018-11-22T18:22:19Zdexter
<ul><li><strong>% Done</strong> changed from <i>40</i> to <i>70</i></li></ul><p>A fix can be found here. I have marked the patch as WIP since I did not test with the full set of testcases yet. Once I have done that I will remove the WIP flag.<br /><a class="external" href="https://gerrit.osmocom.org/#/c/osmo-msc/+/11899">https://gerrit.osmocom.org/#/c/osmo-msc/+/11899</a></p> OsmoMSC - Bug #3704: When Paging request for SMS is unanswered, osmo-msc sends infinit number of paging requests https://projects.osmocom.org/issues/3704?journal_id=126682018-11-22T18:34:55Zfixeria
<ul></ul><blockquote>
<p>(The normal intended count for re-delivery attempts seems to be set to 10)</p>
</blockquote>
<p>I don't think this is a good idea to initiate paging 10 times in row,<br />without any pause in between. Where does this '10 times' comes from?<br />Any spec. references? Why not e.g. 5?</p>
<p>Also, instead of giving up after X attempts, we can just wait for a periodic<br />Location Update, which should trigger some signal that is observed by SMSqueue.</p> OsmoMSC - Bug #3704: When Paging request for SMS is unanswered, osmo-msc sends infinit number of paging requests https://projects.osmocom.org/issues/3704?journal_id=126692018-11-22T18:39:13Zdexter
<ul><li><strong>File</strong> <a href="/attachments/3449">infinite_paging.pcapng</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3449/infinite_paging.pcapng">infinite_paging.pcapng</a> added</li></ul><p>I have checked the problem back on the lab setup and it seems to be indeed a real world problem. When I send an SMS to a subscriber that has done an LU, but has silently vanished (battery out), the infinite paging happens as well (see attached trace)</p>
<pre>
Thu Nov 22 19:32:48 2018 DREF <000a> gsm_04_11.c:75 VLR subscr MSISDN:23001 usage decreases to: 2
Thu Nov 22 19:32:48 2018 DREF <000a> gsm_subscriber.c:109 VLR subscr MSISDN:23001 usage decreases to: 1
Thu Nov 22 19:32:49 2018 DREF <000a> db.c:772 VLR subscr MSISDN:23001 usage increases to: 2
Thu Nov 22 19:32:49 2018 DREF <000a> sms_queue.c:121 VLR subscr MSISDN:23001 usage increases to: 3
Thu Nov 22 19:32:49 2018 DMM <0002> gsm_subscriber.c:158 Subscriber MSISDN:23001 not paged yet, start paging.
Thu Nov 22 19:32:49 2018 DBSSAP <0010> a_iface.c:216 Tx BSSMAP paging message from MSC RI=SSN_PC,PC=0.23.1,SSN=BSSAP to BSC RI=SSN_PC,PC=0.23.1,SSN=BSSAP (imsi=001010000000001, tmsi=0x79dbda07, lac=9070)
Thu Nov 22 19:32:49 2018 DREF <000a> gsm_subscriber.c:166 VLR subscr MSISDN:23001 usage increases to: 4
Thu Nov 22 19:32:49 2018 DREF <000a> db.c:772 VLR subscr MSISDN:23001 usage increases to: 5
Thu Nov 22 19:32:49 2018 DREF <000a> gsm_04_11.c:75 VLR subscr MSISDN:23001 usage decreases to: 4
Thu Nov 22 19:32:59 2018 DPAG <0005> gsm_subscriber.c:73 Paging failure for MSISDN:23001 (event=1)
Thu Nov 22 19:32:59 2018 DPAG <0005> osmo_msc.c:352 Paging can stop for MSISDN:23001
Thu Nov 22 19:32:59 2018 DPAG <0005> gsm_subscriber.c:100 Calling paging cbfn.
Thu Nov 22 19:32:59 2018 DLSMS <0017> sms_queue.c:155 Sending SMS 1 failed 0 times.
Thu Nov 22 19:32:59 2018 DREF <000a> sms_queue.c:128 VLR subscr MSISDN:23001 usage decreases to: 3
Thu Nov 22 19:32:59 2018 DREF <000a> gsm_04_11.c:75 VLR subscr MSISDN:23001 usage decreases to: 2
Thu Nov 22 19:32:59 2018 DREF <000a> gsm_subscriber.c:109 VLR subscr MSISDN:23001 usage decreases to: 1
Thu Nov 22 19:33:00 2018 DREF <000a> db.c:772 VLR subscr MSISDN:23001 usage increases to: 2
Thu Nov 22 19:33:00 2018 DREF <000a> sms_queue.c:121 VLR subscr MSISDN:23001 usage increases to: 3
Thu Nov 22 19:33:00 2018 DMM <0002> gsm_subscriber.c:158 Subscriber MSISDN:23001 not paged yet, start paging.
Thu Nov 22 19:33:00 2018 DBSSAP <0010> a_iface.c:216 Tx BSSMAP paging message from MSC RI=SSN_PC,PC=0.23.1,SSN=BSSAP to BSC RI=SSN_PC,PC=0.23.1,SSN=BSSAP (imsi=001010000000001, tmsi=0x79dbda07, lac=9070)
Thu Nov 22 19:33:00 2018 DREF <000a> gsm_subscriber.c:166 VLR subscr MSISDN:23001 usage increases to: 4
Thu Nov 22 19:33:00 2018 DREF <000a> db.c:772 VLR subscr MSISDN:23001 usage increases to: 5
Thu Nov 22 19:33:00 2018 DREF <000a> gsm_04_11.c:75 VLR subscr MSISDN:23001 usage decreases to: 4
Thu Nov 22 19:33:10 2018 DPAG <0005> gsm_subscriber.c:73 Paging failure for MSISDN:23001 (event=1)
Thu Nov 22 19:33:10 2018 DPAG <0005> osmo_msc.c:352 Paging can stop for MSISDN:23001
Thu Nov 22 19:33:10 2018 DPAG <0005> gsm_subscriber.c:100 Calling paging cbfn.
Thu Nov 22 19:33:10 2018 DLSMS <0017> sms_queue.c:155 Sending SMS 1 failed 0 times.
Thu Nov 22 19:33:10 2018 DREF <000a> sms_queue.c:128 VLR subscr MSISDN:23001 usage decreases to: 3
Thu Nov 22 19:33:10 2018 DREF <000a> gsm_04_11.c:75 VLR subscr MSISDN:23001 usage decreases to: 2
Thu Nov 22 19:33:10 2018 DREF <000a> gsm_subscriber.c:109 VLR subscr MSISDN:23001 usage decreases to: 1
Thu Nov 22 19:33:11 2018 DREF <000a> db.c:772 VLR subscr MSISDN:23001 usage increases to: 2
Thu Nov 22 19:33:11 2018 DREF <000a> sms_queue.c:121 VLR subscr MSISDN:23001 usage increases to: 3
Thu Nov 22 19:33:11 2018 DMM <0002> gsm_subscriber.c:158 Subscriber MSISDN:23001 not paged yet, start paging.
Thu Nov 22 19:33:11 2018 DBSSAP <0010> a_iface.c:216 Tx BSSMAP paging message from MSC RI=SSN_PC,PC=0.23.1,SSN=BSSAP to BSC RI=SSN_PC,PC=0.23.1,SSN=BSSAP (imsi=001010000000001, tmsi=0x79dbda07, lac=9070)
Thu Nov 22 19:33:11 2018 DREF <000a> gsm_subscriber.c:166 VLR subscr MSISDN:23001 usage increases to: 4
Thu Nov 22 19:33:11 2018 DREF <000a> db.c:772 VLR subscr MSISDN:23001 usage increases to: 5
Thu Nov 22 19:33:11 2018 DREF <000a> gsm_04_11.c:75 VLR subscr MSISDN:23001 usage decreases to: 4
Thu Nov 22 19:33:21 2018 DPAG <0005> gsm_subscriber.c:73 Paging failure for MSISDN:23001 (event=1)
Thu Nov 22 19:33:21 2018 DPAG <0005> osmo_msc.c:352 Paging can stop for MSISDN:23001
Thu Nov 22 19:33:21 2018 DPAG <0005> gsm_subscriber.c:100 Calling paging cbfn.
Thu Nov 22 19:33:21 2018 DLSMS <0017> sms_queue.c:155 Sending SMS 1 failed 0 times.
Thu Nov 22 19:33:21 2018 DREF <000a> sms_queue.c:128 VLR subscr MSISDN:23001 usage decreases to: 3
Thu Nov 22 19:33:21 2018 DREF <000a> gsm_04_11.c:75 VLR subscr MSISDN:23001 usage decreases to: 2
Thu Nov 22 19:33:21 2018 DREF <000a> gsm_subscriber.c:109 VLR subscr MSISDN:23001 usage decreases to: 1
Thu Nov 22 19:33:22 2018 DREF <000a> db.c:772 VLR subscr MSISDN:23001 usage increases to: 2
Thu Nov 22 19:33:22 2018 DREF <000a> sms_queue.c:121 VLR subscr MSISDN:23001 usage increases to: 3
Thu Nov 22 19:33:22 2018 DMM <0002> gsm_subscriber.c:158 Subscriber MSISDN:23001 not paged yet, start paging.
Thu Nov 22 19:33:22 2018 DBSSAP <0010> a_iface.c:216 Tx BSSMAP paging message from MSC RI=SSN_PC,PC=0.23.1,SSN=BSSAP to BSC RI=SSN_PC,PC=0.23.1,SSN=BSSAP (imsi=001010000000001, tmsi=0x79dbda07, lac=9070)
Thu Nov 22 19:33:22 2018 DREF <000a> gsm_subscriber.c:166 VLR subscr MSISDN:23001 usage increases to: 4
Thu Nov 22 19:33:22 2018 DREF <000a> db.c:772 VLR subscr MSISDN:23001 usage increases to: 5
Thu Nov 22 19:33:22 2018 DREF <000a> gsm_04_11.c:75 VLR subscr MSISDN:23001 usage decreases to: 4
</pre> OsmoMSC - Bug #3704: When Paging request for SMS is unanswered, osmo-msc sends infinit number of paging requests https://projects.osmocom.org/issues/3704?journal_id=126882018-11-26T09:22:12Zdexter
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>In Progress</i></li><li><strong>Assignee</strong> set to <i>dexter</i></li></ul><p>I am currently investigating where the 10sec exactly are coming from. The sms_queue seems to be a bit complex. However, it is important that we get grip on this problem since on the SGs interface there exists a PAGING REJECT message and the MSC should not try paging again and again once the paging was rejected. We also may consider to add logic that kills paging immediately just to satisfy the SGs interface but in the end it feels not right that there is infinite paging when the subscriber does not respond to paging.</p>
<p>(Maybe the paging behavior we see is not even infinite, maybe it will stop after the 1000 th. attempt. I still couldn't get my head around this completely and maybe a discussion is required here.)</p> OsmoMSC - Bug #3704: When Paging request for SMS is unanswered, osmo-msc sends infinit number of paging requests https://projects.osmocom.org/issues/3704?journal_id=126902018-11-26T09:24:41Zdexter
<ul><li><strong>Related to</strong> <i><a class="issue tracker-2 status-3 priority-3 priority-high3 closed child" href="/issues/3615">Feature #3615</a>: SGs subscriber state machine</i> added</li></ul> OsmoMSC - Bug #3704: When Paging request for SMS is unanswered, osmo-msc sends infinit number of paging requests https://projects.osmocom.org/issues/3704?journal_id=128132018-12-03T17:05:21Zdexter
<ul><li><strong>% Done</strong> changed from <i>70</i> to <i>90</i></li></ul><p>The current master of osmo-msc now passes the TTCN3 test. Presumably this has to do with Vadims Patch Change ID:I4a07ece80d8dd40b23da6bb1ffc9d3d745b54092. Things look much better now.</p> OsmoMSC - Bug #3704: When Paging request for SMS is unanswered, osmo-msc sends infinit number of paging requests https://projects.osmocom.org/issues/3704?journal_id=130282019-01-07T11:17:13Zdexter
<ul></ul><p>While the problem is solved in osmo-msc, the related test is not through the review yet. I have rebased the ttcn3 patch and checked if it still works. To me it looks fine.<br /><a class="external" href="https://gerrit.osmocom.org/#/c/osmo-ttcn3-hacks/+/11897/">https://gerrit.osmocom.org/#/c/osmo-ttcn3-hacks/+/11897/</a></p> OsmoMSC - Bug #3704: When Paging request for SMS is unanswered, osmo-msc sends infinit number of paging requests https://projects.osmocom.org/issues/3704?journal_id=131042019-01-21T16:25:58Zdexter
<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 related TTCN3 test has been merged and the related test is passing.</p>