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

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">PCU: Timing Advance: introduce TC_ta_idle_dl_tbf_ass<br><br>This test case initiates the packet Downlink assignment procedure<br>by sending a DL-UNITDATA PDU containing a random TLLI and checks<br>Timing Advance value indicated in the Immediate Assignment.<br><br>Currently fails due to a bug in the IUT (TA=220).<br><br>Change-Id: I410abedcc549495f30b5355d399a85648408a946<br>---<br>M pcu/PCU_Tests_RAW.ttcn<br>1 file changed, 33 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/pcu/PCU_Tests_RAW.ttcn b/pcu/PCU_Tests_RAW.ttcn</span><br><span>index 0e3597b..1d13b8e 100644</span><br><span>--- a/pcu/PCU_Tests_RAW.ttcn</span><br><span>+++ b/pcu/PCU_Tests_RAW.ttcn</span><br><span>@@ -603,6 +603,38 @@</span><br><span>  }</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+/* Verify Timing Advance value(s) indicated during the packet Downlink assignment</span><br><span style="color: hsl(120, 100%, 40%);">+ * procedure as per 3GPP TS 44.018, section 3.5.3. There seems to be a bug in the</span><br><span style="color: hsl(120, 100%, 40%);">+ * IUT that causes it to send an unreasonable Timing Advance value > 0 despite</span><br><span style="color: hsl(120, 100%, 40%);">+ * no active TBF exists at the moment of establishment (idle mode). */</span><br><span style="color: hsl(120, 100%, 40%);">+testcase TC_ta_idle_dl_tbf_ass() runs on RAW_PCU_Test_CT {</span><br><span style="color: hsl(120, 100%, 40%);">+       var OCT4 tlli := f_rnd_octstring(4);</span><br><span style="color: hsl(120, 100%, 40%);">+  var GsmRrMessage rr_imm_ass;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+        /* Initialize NS/BSSGP side */</span><br><span style="color: hsl(120, 100%, 40%);">+        f_init_bssgp();</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+     /* Initialize the PCU interface abstraction */</span><br><span style="color: hsl(120, 100%, 40%);">+        f_init_raw(testcasename());</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ /* Establish BSSGP connection to the PCU */</span><br><span style="color: hsl(120, 100%, 40%);">+   f_bssgp_establish();</span><br><span style="color: hsl(120, 100%, 40%);">+  f_bssgp_client_llgmm_assign('FFFFFFFF'O, tlli);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+     /* SGSN sends some DL data, PCU will initiate Packet Downlink</span><br><span style="color: hsl(120, 100%, 40%);">+  * Assignment on CCCH (PCH). We don't care about the payload. */</span><br><span style="color: hsl(120, 100%, 40%);">+  BSSGP[0].send(ts_BSSGP_DL_UD(tlli, f_rnd_octstring(10)));</span><br><span style="color: hsl(120, 100%, 40%);">+     f_pcuif_rx_pch_imm_tbf_ass(rr_imm_ass); // TODO: match by TLLI!</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+     /* Make sure that Timing Advance is 0 (the actual value is not known yet).</span><br><span style="color: hsl(120, 100%, 40%);">+     * As per 3GPP S 44.018, section 3.5.3.1.2, the network *shall* initiate</span><br><span style="color: hsl(120, 100%, 40%);">+       * the procedures defined in 3GPP TS 44.060 or use the polling mechanism. */</span><br><span style="color: hsl(120, 100%, 40%);">+  if (not match(rr_imm_ass, tr_IMM_TBF_ASS(ta := 0))) {</span><br><span style="color: hsl(120, 100%, 40%);">+         setverdict(fail, "Timing Advance value doesn't match");</span><br><span style="color: hsl(120, 100%, 40%);">+         mtc.stop;</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> /* Verify that the PCU generates valid PTCCH/D messages</span><br><span>  * while neither Uplink nor Downlink TBF is established. */</span><br><span> testcase TC_ta_ptcch_idle() runs on RAW_PCU_Test_CT {</span><br><span>@@ -1684,6 +1716,7 @@</span><br><span>    execute( TC_pcuif_suspend() );</span><br><span>       execute( TC_ta_ptcch_idle() );</span><br><span>       execute( TC_ta_rach_imm_ass() );</span><br><span style="color: hsl(120, 100%, 40%);">+      execute( TC_ta_idle_dl_tbf_ass() );</span><br><span>  execute( TC_ta_ptcch_ul_multi_tbf() );</span><br><span>       execute( TC_cs_lqual_ul_tbf() );</span><br><span>     execute( TC_cs_initial_ul() );</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/17966">change 17966</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/+/17966"/><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: I410abedcc549495f30b5355d399a85648408a946 </div>
<div style="display:none"> Gerrit-Change-Number: 17966 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: keith <keith@rhizomatica.org> </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>