https://projects.osmocom.org/https://projects.osmocom.org/favicon.ico?16647414092018-02-27T12:55:18ZOpen Source Mobile CommunicationsCellular Network Infrastructure - Feature #3010: Implement 3-digit MNC with leading zeroshttps://projects.osmocom.org/issues/3010?journal_id=79022018-02-27T12:55:18Zneelsnhofmeyr@sysmocom.de
<ul><li><strong>Blocked by</strong> <i><a class="issue tracker-1 status-3 priority-3 priority-high3 closed" href="/issues/3009">Bug #3009</a>: pcuif_proto.h has mismatching versions across osmo-bsc.git, osmo-bts.git and osmo-pcu.git</i> added</li></ul> Cellular Network Infrastructure - Feature #3010: Implement 3-digit MNC with leading zeroshttps://projects.osmocom.org/issues/3010?journal_id=81412018-03-11T00:38:34Zneelsnhofmeyr@sysmocom.de
<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>70</i></li></ul><p>Various patches have already been merged for libosmocore, osmo-bsc, osmo-msc, osmo-iuh.<br />Still pending are osmo-bts, osmo-pcu, osmo-sgsn (manually testing now) -- the osmo-sgsn patches also require some testing for gb-proxy.<br />All of the above should also see some ttcn3 tests for leading-zero three-digit MNC.</p> Cellular Network Infrastructure - Feature #3010: Implement 3-digit MNC with leading zeroshttps://projects.osmocom.org/issues/3010?journal_id=81432018-03-11T01:18:30Zneelsnhofmeyr@sysmocom.de
<ul><li><strong>File</strong> <a href="/attachments/2998">mnc3_works.pcapng</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/2998/mnc3_works.pcapng">mnc3_works.pcapng</a> added</li></ul><p>manual test with CS and PS (on 2G) verifies successful subscription on a 901-070 network complete LU, CM-Service, Paging, GMM Attach, data access, ...<br />The phones explicitly list the network as 901070 (as opposed to the SIM-cards' "native" 90170 net).</p>
<p>The only instances of PLMN other than 901-070 I can find are:</p>
<ul>
<li>the SIM indicating its "home PLMN" in the LU Request as 901-70 == 0x09f107, which is correct; the network "overrules" that with its 0x090170 returned subsequently.</li>
<li>a curious instance of a samsung app calling home and including mnc=70:<br /> "GET /product/appCheck.as?appInfo=<a class="email" href="mailto:com.sec.android.app.sbrowser@1.5.28x">com.sec.android.app.sbrowser@1.5.28x</a>%x%deviceId=GT-I9195&mcc=901&mnc=70&csc=DTM&openApi=19&pd= HTTP/1.1\r\n" </li>
<li>the IMSI digits "90170000..." interpreted by wireshark as "901-700".</li>
</ul>
<p>All proper protocols, GPRS-NS, MM, GMM, RSL, what-have-you, consistently pass around 901-070 (i.e. 0x090170) where they should.</p> Cellular Network Infrastructure - Feature #3010: Implement 3-digit MNC with leading zeroshttps://projects.osmocom.org/issues/3010?journal_id=81442018-03-11T01:22:59Zneelsnhofmeyr@sysmocom.de
<ul></ul><p>I should note that for testing I have applied the PCU reverts<br /><a class="external" href="https://gerrit.osmocom.org/6976">https://gerrit.osmocom.org/6976</a> thru 6979 (see <a class="issue tracker-1 status-3 priority-2 priority-default closed" title="Bug: regression: GPRS fatally unresponsive since commit 'Rewrite Packet Downlink Assignment' (Resolved)" href="https://projects.osmocom.org/issues/3013">#3013</a>)<br />and an osmo-bsc patch disabling the conn_loss_counter in a_iface.c by a brute #if 0 (see <a class="issue tracker-1 status-6 priority-3 priority-high3 closed" title="Bug: osmo-bsc initiates BSSMAP Reset after every fourth BSSMAP Clear (Rejected)" href="https://projects.osmocom.org/issues/3041">#3041</a>)</p> Cellular Network Infrastructure - Feature #3010: Implement 3-digit MNC with leading zeroshttps://projects.osmocom.org/issues/3010?journal_id=81802018-03-12T16:03:25Zneelsnhofmeyr@sysmocom.de
<ul></ul><p>the sgsn patch is the only one not merged yet, pending testing of the gb-proxy part. The sgsn part of the patch has been tested manually along with the pcu patch; a formal ttcn3 test for it is planned, and there should probably also be mnc3 tests for the bts and bsc in ttcn3... So to be able to merge the sgsn patch I at least need to manually test mnc3 in the gb-proxy (and promise to follow up with ttcn3 tests).</p> Cellular Network Infrastructure - Feature #3010: Implement 3-digit MNC with leading zeroshttps://projects.osmocom.org/issues/3010?journal_id=81822018-03-12T18:00:38Zlaforge
<ul></ul><p>you could probably also simply split the patch and apply the SGSN part now and postpone the gbproxy one?</p> Cellular Network Infrastructure - Feature #3010: Implement 3-digit MNC with leading zeroshttps://projects.osmocom.org/issues/3010?journal_id=82432018-03-15T11:14:12Zneelsnhofmeyr@sysmocom.de
<ul></ul><p>I was going to do that, but actually at least one function that needs changes for the sgsn is also used by gb-proxy. I'll rather test gb-proxy and commit together.</p> Cellular Network Infrastructure - Feature #3010: Implement 3-digit MNC with leading zeroshttps://projects.osmocom.org/issues/3010?journal_id=82552018-03-15T18:16:40Zneelsnhofmeyr@sysmocom.de
<ul><li><strong>% Done</strong> changed from <i>70</i> to <i>80</i></li></ul><p>just verified with manual testing that the gbproxy MNC3 patch works.<br />I configured my SGSN to move in behind a gbproxy, and verified in wireshark that all GPRS-NS packets are duplicated by the hop via the gb-proxy.<br />Furthermore again could find no failures to communicate the leading zero in the MNC. Attach works, browsing works.</p>
<p>So I think we can merge the osmo-sgsn.git patch now, and leave this issue open until we have some 3-digit MNC tests in ttcn3.</p> Cellular Network Infrastructure - Feature #3010: Implement 3-digit MNC with leading zeroshttps://projects.osmocom.org/issues/3010?journal_id=82622018-03-16T00:22:44Zneelsnhofmeyr@sysmocom.de
<ul></ul><p>Writing ttcn3-tests with three-digit MNC is made hard by the fact that the SGSN doesn't re-authenticate the second time a subscriber shows up.<br />Once we tested TC_attach(), the osmo-sgsn needs to be restarted for the test to succeed again.<br />So I can't run TC_attach() and then add a TC_attach_mnc3() after that; I need to change the IMSI that is attaching. Trying that...</p> Cellular Network Infrastructure - Feature #3010: Implement 3-digit MNC with leading zeroshttps://projects.osmocom.org/issues/3010?journal_id=82632018-03-16T00:24:26Zneelsnhofmeyr@sysmocom.de
<ul></ul><p>ah the imsi suffix, of course...</p> Cellular Network Infrastructure - Feature #3010: Implement 3-digit MNC with leading zeroshttps://projects.osmocom.org/issues/3010?journal_id=82642018-03-16T01:46:54Zneelsnhofmeyr@sysmocom.de
<ul></ul><p>the mnc3 attach test works, only it wasn't so easy to reverse-verify that it fails before the 3-digit MNC patch to osmo-sgsn.git: actually most of the GPRS related MNC3 changes already took place in libosmocore! The remaining bits are only the SGSN matching the PLMN to the IMSI "prefix", and the gb-proxy (if so configured) patching over the PLMN. I had to actually go back to an earlier libosmocore as well to verify that the old behavior of truncating 023-042 to 023-42f triggers failure in the ttcn3 test.</p>
<p>So here is the first ttcn3 test for mnc3 in the sgsn: <a class="external" href="https://gerrit.osmocom.org/7316">https://gerrit.osmocom.org/7316</a></p> Cellular Network Infrastructure - Feature #3010: Implement 3-digit MNC with leading zeroshttps://projects.osmocom.org/issues/3010?journal_id=83932018-03-21T15:35:44Zneelsnhofmeyr@sysmocom.de
<ul><li><strong>% Done</strong> changed from <i>80</i> to <i>90</i></li></ul><p>a backport to openbsc.git is <a class="external" href="https://gerrit.osmocom.org/7417">https://gerrit.osmocom.org/7417</a></p>
<p>The remaining bit of this issue is more tests in the ttcn3 suite that use a leading zero 3-digit MNC, not only in the SGSN, but also in the MSC, BSC.<br />Testing the gb-proxy like this is pending an actual ttcn3 gb-proxy test suite.</p> Cellular Network Infrastructure - Feature #3010: Implement 3-digit MNC with leading zeroshttps://projects.osmocom.org/issues/3010?journal_id=85162018-03-26T14:39:39Zneelsnhofmeyr@sysmocom.de
<ul><li><strong>File</strong> <a href="/attachments/3035">osmo-nitb-mnc3-works.pcapng</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3035/osmo-nitb-mnc3-works.pcapng">osmo-nitb-mnc3-works.pcapng</a> added</li></ul><p>Today tested the openbsc.git backport manually: set up a local network with osmo-nitb and a sysmoBTS and verified that the leading zero is preserved in all CS communication. For completeness' sake I also ran data services alongside -- even though that was already tested, the osmo-nitb config is communicated to the PCU and technically could configure a wrong PLMN.</p> Cellular Network Infrastructure - Feature #3010: Implement 3-digit MNC with leading zeroshttps://projects.osmocom.org/issues/3010?journal_id=88242018-04-11T12:34:04Zneelsnhofmeyr@sysmocom.de
<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>all merged and done</p>