<p>laforge <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19927">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, but someone else must approve
  laforge: Looks good to me, approved

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">BSC_Tests/hopping: add TC_fh_params_si4_cbch<br><br>This test case verifies presence and correctness of the hopping<br>parameters in (RR) System Information Type 4 (CBCH description).<br>Since the C0/TS0 (BCCH+SDCCH4+CBCH) shall not be hopping, let's<br>temporarily re-configure TS0 as BCCH, and TS1 as SDCCH8+CBCH.<br><br>According to 3GPP TS 44.018, section 9.1.36.1, if CBCH is active<br>in the cell, the CBCH Channel Description IE indicates where to<br>find it (physical channel description).<br><br>According to section 9.1.36.2, the CBCH Mobile Allocation IE shall<br>be included if CBCH Channel Description IE indicates that frequency<br>hopping is in use.<br><br>Change-Id: Ibc3b73697a1d2c8dbb27274e48f5e5ba21fdd540<br>Related: SYS#4868, OS#4545<br>---<br>M bsc/BSC_Tests.ttcn<br>1 file changed, 80 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn</span><br><span>index d0719a9..0099d5a 100644</span><br><span>--- a/bsc/BSC_Tests.ttcn</span><br><span>+++ b/bsc/BSC_Tests.ttcn</span><br><span>@@ -7151,6 +7151,85 @@</span><br><span>   setverdict(pass);</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+/* Verify the hopping parameters in System Information Type 4 */</span><br><span style="color: hsl(120, 100%, 40%);">+testcase TC_fh_params_si4_cbch() runs on test_CT {</span><br><span style="color: hsl(120, 100%, 40%);">+      var FHParamsTrx fhp := f_TC_fh_params_gen(tr_tn := 1);</span><br><span style="color: hsl(120, 100%, 40%);">+        var ASP_RSL_Unitdata rx_rsl_ud;</span><br><span style="color: hsl(120, 100%, 40%);">+       timer T := 5.0;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+     f_init_vty();</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+       /* (Re)configure TS0 as BCCH and TS1 as SDCCH8+CBCH */</span><br><span style="color: hsl(120, 100%, 40%);">+        f_vty_enter_cfg_trx(BSCVTY, trx := 0);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+      f_vty_transceive(BSCVTY, "timeslot 0");</span><br><span style="color: hsl(120, 100%, 40%);">+     f_vty_transceive(BSCVTY, "phys_chan_config ccch");</span><br><span style="color: hsl(120, 100%, 40%);">+  f_vty_transceive(BSCVTY, "exit"); /* go back */</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+   f_vty_transceive(BSCVTY, "timeslot 1");</span><br><span style="color: hsl(120, 100%, 40%);">+     f_vty_transceive(BSCVTY, "phys_chan_config sdcch8+cbch");</span><br><span style="color: hsl(120, 100%, 40%);">+   f_vty_transceive(BSCVTY, "end"); /* we're done */</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+     f_TC_fh_params_set(fhp); /* Enable frequency hopping */</span><br><span style="color: hsl(120, 100%, 40%);">+       f_vty_transceive(BSCVTY, "drop bts connection 0 oml");</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+    f_init(1);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+  T.start;</span><br><span style="color: hsl(120, 100%, 40%);">+      alt {</span><br><span style="color: hsl(120, 100%, 40%);">+ [] IPA_RSL[0].receive(tr_ASP_RSL_UD(tr_RSL_BCCH_INFO(RSL_SYSTEM_INFO_4))) -> value rx_rsl_ud {</span><br><span style="color: hsl(120, 100%, 40%);">+             var RSL_IE_Body ie := rx_rsl_ud.rsl.ies[2].body; /* FULL BCCH Information IE */</span><br><span style="color: hsl(120, 100%, 40%);">+               var SystemInformation si := dec_SystemInformation(ie.other.payload);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+                /* Make sure that what we decoded is System Information Type 4 */</span><br><span style="color: hsl(120, 100%, 40%);">+             if (si.header.message_type != SYSTEM_INFORMATION_TYPE_4) {</span><br><span style="color: hsl(120, 100%, 40%);">+                    setverdict(fail, "RSL FULL BCCH Information IE contains: ", si);</span><br><span style="color: hsl(120, 100%, 40%);">+                    repeat;</span><br><span style="color: hsl(120, 100%, 40%);">+               }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+           /* Make sure that CBCH Channel Description IE is present */</span><br><span style="color: hsl(120, 100%, 40%);">+           if (not ispresent(si.payload.si4.cbch_chan_desc)) {</span><br><span style="color: hsl(120, 100%, 40%);">+                   setverdict(fail, "CBCH Channel Description IE is absent");</span><br><span style="color: hsl(120, 100%, 40%);">+                  break;</span><br><span style="color: hsl(120, 100%, 40%);">+                }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+           /* Finally, check the hopping parameters (HSN, MAIO) */</span><br><span style="color: hsl(120, 100%, 40%);">+               var ChannelDescription chan_desc := si.payload.si4.cbch_chan_desc.v;</span><br><span style="color: hsl(120, 100%, 40%);">+          f_TC_fh_params_match_chan_desc(fhp, chan_desc);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+             /* 3GPP TS 44.018, section 9.1.36.2 "CBCH Mobile Allocation":</span><br><span style="color: hsl(120, 100%, 40%);">+                * The CBCH Mobile Allocation IE *shall* be present if FH is enabled. */</span><br><span style="color: hsl(120, 100%, 40%);">+              if (chan_desc.h and not ispresent(si.payload.si4.cbch_mobile_alloc)) {</span><br><span style="color: hsl(120, 100%, 40%);">+                        setverdict(fail, "FH enabled, but Mobile Allocation IE is absent");</span><br><span style="color: hsl(120, 100%, 40%);">+                 break;</span><br><span style="color: hsl(120, 100%, 40%);">+                } else if (chan_desc.h and ispresent(si.payload.si4.cbch_mobile_alloc)) {</span><br><span style="color: hsl(120, 100%, 40%);">+                     f_TC_fh_params_match_ma(fhp, chan_desc.chan_nr.tn,</span><br><span style="color: hsl(120, 100%, 40%);">+                                            si.payload.si4.cbch_mobile_alloc.v);</span><br><span style="color: hsl(120, 100%, 40%);">+          }</span><br><span style="color: hsl(120, 100%, 40%);">+             }</span><br><span style="color: hsl(120, 100%, 40%);">+     [] IPA_RSL[0].receive { repeat; }</span><br><span style="color: hsl(120, 100%, 40%);">+     [] T.timeout {</span><br><span style="color: hsl(120, 100%, 40%);">+                setverdict(fail, "Timeout waiting for RSL BCCH INFOrmation (SI4)");</span><br><span style="color: hsl(120, 100%, 40%);">+         }</span><br><span style="color: hsl(120, 100%, 40%);">+     }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+   /* Disable frequency hopping */</span><br><span style="color: hsl(120, 100%, 40%);">+       f_TC_fh_params_unset(fhp);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+  /* (Re)configure TS0 as CCCH+SDCCH4 and TS1 as TCH/F */</span><br><span style="color: hsl(120, 100%, 40%);">+       f_vty_enter_cfg_trx(BSCVTY, trx := 0);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+      f_vty_transceive(BSCVTY, "timeslot 0");</span><br><span style="color: hsl(120, 100%, 40%);">+     f_vty_transceive(BSCVTY, "phys_chan_config ccch+sdcch4");</span><br><span style="color: hsl(120, 100%, 40%);">+   f_vty_transceive(BSCVTY, "exit"); /* go back */</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+   f_vty_transceive(BSCVTY, "timeslot 1");</span><br><span style="color: hsl(120, 100%, 40%);">+     f_vty_transceive(BSCVTY, "phys_chan_config tch/f");</span><br><span style="color: hsl(120, 100%, 40%);">+ f_vty_transceive(BSCVTY, "end"); /* we're done */</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+     setverdict(pass);</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> /* Dyn PDCH todo:</span><br><span>    * activate OSMO as TCH/F</span><br><span>    * activate OSMO as TCH/H</span><br><span>@@ -7383,6 +7462,7 @@</span><br><span>    execute( TC_fh_params_chan_activ() );</span><br><span>        execute( TC_fh_params_imm_ass() );</span><br><span>   execute( TC_fh_params_assignment_cmd() );</span><br><span style="color: hsl(120, 100%, 40%);">+     execute( TC_fh_params_si4_cbch() );</span><br><span> }</span><br><span> </span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19927">change 19927</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19927"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ttcn3-hacks </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ibc3b73697a1d2c8dbb27274e48f5e5ba21fdd540 </div>
<div style="display:none"> Gerrit-Change-Number: 19927 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>