srsran / srsRAN_4G

Open source SDR 4G software suite from Software Radio Systems (SRS) https://docs.srsran.com/projects/4g
https://www.srsran.com
GNU Affero General Public License v3.0
3.38k stars 1.11k forks source link

Activity Monitor check gives negative time #111

Closed ismagom closed 6 years ago

ismagom commented 6 years ago

Issue identified in the list: http://www.softwareradiosystems.com/pipermail/srslte-users/2017-October/001192.html

While the UE is doing some activity, RRC in srsENB computes last activity in function srsenb::rrc::ue::is_timeout() in: https://github.com/srsLTE/srsLTE/blob/92f1ef19bc7cd50d3d4353e514274f043f482ab7/srsenb/src/upper/rrc.cc#L732

resulting in negative value and the release of the UE:

08:53:53.563810 [RRC ] Warning User rnti=0x46 expired Activity deadline: -1:-561047891>3600:0 us 08:53:53.563835 [RRC ] Info User rnti=0x46 timed out. Exists in s1ap=yes 08:53:53.563847 [S1AP] Info User inactivity - RNTI:0x46 08:53:53.563870 [S1AP] Info Sending UEContextReleaseRequest for RNTI:0x46

nicolabui commented 6 years ago

It only noticed it once. When it happened the c-RNTI got released

ismagom commented 6 years ago

Can you attach enb.log?

nicolabui commented 6 years ago

Attached the log with the negative activity deadline enb.log_negative.tar.gz

ismagom commented 6 years ago

Can you pull latest commit and test again?

On Mon, 30 Oct 2017 at 11:29 nicolabui notifications@github.com wrote:

Attached the log with the negative activity deadline enb.log_negative.tar.gz https://github.com/srsLTE/srsLTE/files/1428321/enb.log_negative.tar.gz

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/srsLTE/srsLTE/issues/111#issuecomment-340540540, or mute the thread https://github.com/notifications/unsubscribe-auth/ACo_qw_5BkaR0yJ-6gzNu9ndx8X9B1Rmks5sxhWBgaJpZM4QLlev .

nicolabui commented 6 years ago

Here is the log. enb.log_after_fix.tar.gz I still have a disconnection, but it is not caused anymore by the negative deadline

ismagom commented 6 years ago

This is then a different issue. What happens here is that there are Lates and Overflows in the USRP (maybe some process in background or some hardware interruption). You can see in the log in time stamps: 14:41:58.637823 to 14:41:58.639834.

This shouldn't happen but may happen in some hardware. The UE then should PRACH and attempt a reconnection. That succeeds always when we use the Amarisoft EPC. For some reason this is not happening with OAI EPC. I'll open a new issue.