<div dir="ltr"><br><br><div class="gmail_quote">Hi,<br><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div><br></div><div>I don't see any print connected to the Uplink TBF request for "Attach accept" (by MS). At this moment the TLLI has been already updated but UL TBF still does not exist</div>


<div>(what <span style="font-family:arial,sans-serif;font-size:13px">bts->tbf_by_tlli(m_tlli, GPRS_RLCMAC_UL_TBF) returns?)</span>. Corresponding to TS 04.60, 11.2.29 Packet Uplink Assignment possibly may use DL TFI to address the MS in place of TLLI (we still don't know if it's accepted or not by MS). Also the uplink FN may be used to find corresponding UL TBF context (according to Packet Uplink Assignment RRBP field) for UL Packet Control Ack which contains relevant TLLI.  So is it really necessary to link UL and DL TBFs in the case? ...</div>


<div><br></div><div>Regards,</div><div>Vladimir Rolbin</div><div>  </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 30, 2013 at 1:17 PM, Holger Hans Peter Freyther <span dir="ltr"><<a href="mailto:hfreyther@sysmocom.de" target="_blank">hfreyther@sysmocom.de</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sun, Oct 27, 2013 at 01:33:13PM +0100, Holger Hans Peter Freyther wrote:<br>
<br>
Hi,<br>
<br>
<br>
> <0007> gprs_rlcmac_meas.cpp:103 UL RSSI of TLLI=0x88661bc6: -67 dBm<br>
> <0002> bts.cpp:945 Got ACK, but UL TBF is gone TLLI=0xe512eba3<br>
> <0007> gprs_rlcmac_meas.cpp:158 DL packet loss of IMSI=274080000004765 / TLLI=0xe512eba3: 0%<br>
> <0002> tbf.cpp:668 TBF TFI=0 TLLI=0x88661bc6 T3169 timeout during transsmission<br>
> <0002> tbf.cpp:690 - Assignment was on PACCH<br>
> <0002> tbf.cpp:694 - No uplink data received yet<br>
<br>
this is from a routing area update (with some printf debugging):<br>
<br>
<br>
TBF(TFI=0 TLLI=0xb68154e6 DIR=DL) TLLLI changed...... 0xb68154e6->0xc782d1de<br>
<0002> tbf.cpp:1626 TBF(TFI=0 TLLI=0xb68154e6 DIR=DL) changing tlli to TLLI=0xc782d1de<br>
<0002> bts.cpp:941 Got ACK, but UL TBF is gone TLLI=0xc782d1de<br>
<0007> gprs_rlcmac_meas.cpp:158 DL packet loss of IMSI=274080000004765 / TLLI=0xc782d1de: 0%<br>
<0002> tbf.cpp:664 TBF(TFI=0 TLLI=0xb68154e6 DIR=UL) T3169 timeout during transsmission<br>
<0002> tbf.cpp:686 - Assignment was on PACCH<br>
<0002> tbf.cpp:690 - No uplink data received yet<br>
<br>
So the DL TLLI has been changed and then we get an ACK for a UL tbf<br>
with the new TLLI and can't find it. And run into a timeout.<br>
<br>
<br>
I have applied this change:<br>
<br>
diff --git a/src/tbf.cpp b/src/tbf.cpp<br>
index fac5aaf..19bb83c 100644<br>
--- a/src/tbf.cpp<br>
+++ b/src/tbf.cpp<br>
@@ -1618,6 +1618,17 @@ void gprs_rlcmac_tbf::update_tlli(uint32_t tlli)<br>
        if (tlli == m_tlli)<br>
                return;<br>
<br>
+       printf("%s TLLLI changed...... 0x%08x->0x%08x\n",<br>
+               tbf_name(this), m_tlli, tlli);<br>
+<br>
+       if (direction == GPRS_RLCMAC_DL_TBF) {<br>
+               gprs_rlcmac_tbf *ul_tbf;<br>
+               ul_tbf = bts->tbf_by_tlli(m_tlli, GPRS_RLCMAC_UL_TBF);<br>
+<br>
+               if (ul_tbf)<br>
+                       ul_tbf->m_tlli = tlli;<br>
+       }<br>
+<br>
 #warning "TODO.. find the DL/UL opposite and update the TLLI too"<br>
        LOGP(DRLCMAC, LOGL_NOTICE, "%s changing tlli to TLLI=0x%08x\n",<br>
                tbf_name(this), tlli);<br>
<br>
<br>
and now the "Attach Complete" comes immediately after the Attach Accept.<br>
I will push something like this but we really need a better way to link<br>
the DL/UL TBFs together.<br>
<span><font color="#888888"><br>
<br>
holger<br>
<br><span class="HOEnZb"><font color="#888888"><span><font color="#888888">
<br>
--<br>
- Holger Freyther <<a href="mailto:hfreyther@sysmocom.de" target="_blank">hfreyther@sysmocom.de</a>>       <a href="http://www.sysmocom.de/" target="_blank">http://www.sysmocom.de/</a><br>
=======================================================================<br>
* sysmocom - systems for mobile communications GmbH<br>
* Schivelbeiner Str. 5<br>
* 10439 Berlin, Germany<br>
* Sitz / Registered office: Berlin, HRB 134158 B<br>
* Geschaeftsfuehrer / Managing Directors: Holger Freyther, Harald Welte<br>
<br>
<br>
</font></span></font></span></font></span></blockquote></div><br></div>
</div><br></div>
</div><br></div>