[srslte-users] srsLTE 18.03 [PDCP] [E] MAC mismatch

J Giovatto jgiovatto at adjacentlink.com
Mon Apr 2 18:35:58 UTC 2018


Hi Folks,

FYI

I happened to notice this error in the UE logs. It is not a show stopper
since the return value in

bool pdcp_entity::integrity_verify() is not examined by the caller, but
may be significant in other heterogeneous deployments.

Running stock config in emulated rf mode, I'm happy to try any adjustments.

Logs below ..

14:05:07.050601 [RLC ] [I] SRB1 Rx Status PDU: ACK_SN = 7, N_nack = 0
14:05:07.050611 [MAC ] [I] [01222] Delivering PDU for lcid=1, 93 bytes
14:05:07.050619 [RLC ] [I] SRB1 Rx data PDU SN: 4 (91 B), Start and end
aligned
             0000: 04 20 06 02 21 3f aa b4 76 60 08 3a 10 09 f0 30
             0010: 00 07 88 80 00 38 00 ba 90 0e 08 08 48 08 00 28
14:05:07.050639 [RLC ] [I] SRB1 Status packet requested through polling bit
14:05:07.050648 [RLC ] [I] SRB1 Rx SDU (91 B)
             0000: 04 20 06 02 21 3f aa b4 76 60 08 3a 10 09 f0 30
             0010: 00 07 88 80 00 38 00 ba 90 0e 08 08 48 08 00 28
14:05:07.050664 [PDCP] [I] RX SRB1 PDU, do_integrity = true,
do_encryption = true
             0000: 04 20 06 02 21 3f aa b4 76 60 08 3a 10 09 f0 30
             0010: 00 07 88 80 00 38 00 ba 90 0e 08 08 48 08 00 28
14:05:07.050677 [PDCP] [I] RX SRB1 PDU (decrypted)
             0000: 04 20 06 02 21 3f aa b4 76 60 08 3a 10 09 f0 30
             0010: 00 07 88 80 00 38 00 ba 90 0e 08 08 48 08 00 28
14:05:07.050866 [PDCP] [E] Integrity algo [128-EIA1]
14:05:07.050875 [PDCP] [E] MAC mismatch (expected)
             0000: ed 28 91 70
14:05:07.050883 [PDCP] [E] MAC mismatch (found)
             0000: 6a ee 14 ec
14:05:07.050892 [PDCP] [I] RX SRB1 PDU SN: 4
             0000: 20 06 02 21 3f aa b4 76 60 08 3a 10 09 f0 30 00
             0010: 07 88 80 00 38 00 ba 90 0e 08 08 48 08 00 28 0d
14:05:07.050905 [RRC ] [I] RX SRB1 PDU
             0000: 20 06 02 21 3f aa b4 76 60 08 3a 10 09 f0 30 00
             0010: 07 88 80 00 38 00 ba 90 0e 08 08 48 08 00 28 0d


log patch below

diff --git a/lib/src/upper/pdcp_entity.cc b/lib/src/upper/pdcp_entity.cc
index c7970ddd..d24c131f 100644
--- a/lib/src/upper/pdcp_entity.cc
+++ b/lib/src/upper/pdcp_entity.cc
@@ -290,6 +290,7 @@ bool pdcp_entity::integrity_verify(uint8_t  *msg,
   case INTEGRITY_ALGORITHM_ID_128_EIA2:
     for(i=0; i<4; i++){
       if(mac[i] != mac_exp[i]){
+        log->error("Integrity algo [%s]\n",
integrity_algorithm_id_text[integ_algo]);
         log->error_hex(mac_exp, 4, "MAC mismatch (expected)");
         log->error_hex(mac,     4, "MAC mismatch (found)");
         isValid = false;

Regards

Joe

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20180402/b9986a1c/attachment.htm>


More information about the srsran-users mailing list