Bug 2849

Summary: Received RLC and PDCP PDUs are missing in the stats files
Product: ns-3 Reporter: Manuel Requena <manuel.requena>
Component: lteAssignee: Manuel Requena <manuel.requena>
Status: RESOLVED FIXED    
Severity: normal CC: ns-bugs, tomh
Priority: P3    
Version: ns-3-dev   
Hardware: All   
OS: All   
Attachments: Use also the RX pdus to get the IMSI/LCID pairs

Description Manuel Requena 2018-01-11 11:08:30 UTC
Elena reports an issue with the RLC traces in the mailing list:
https://groups.google.com/forum/#!topic/ns-3-users/HHc_CmbgISo

To sum up, some transmitted RLC PDUs are lost in the stats file DlRlcStats.txt
Comment 1 Manuel Requena 2018-01-11 11:17:39 UTC
In WriteDlResults and WriteUlResults of RadioBearerStatsCalculator, we look for the unique IMSI/LCID pairs. But we only use the TX packets for this.

If the stats interval is very short, one PDU may be transmitted in one interval and received in the following so the received PDU is not taken into account in the stats file if the PDU is received in one interval where no PDU is sent.
Comment 2 Manuel Requena 2018-01-11 11:29:26 UTC
Created attachment 2996 [details]
Use also the RX pdus to get the IMSI/LCID pairs

This patch takes into account the RX pdus when computing the unique IMSI/LCID pairs. This is needed if there is no TX pdus in current interval.
Comment 3 Manuel Requena 2018-02-20 07:03:23 UTC
The problem can be reproduced with:
./waf --run "lena-simple-epc --ns3::RadioBearerStatsCalculator::EpochDuration=0.002 --numberOfNodes=1"
Comment 4 Manuel Requena 2018-02-20 09:54:28 UTC
push to changeset:   13299:44edef71b17e