Commit Graph

207 Commits

Author SHA1 Message Date
Andre Puschmann db3ce8ade9 remove clang-tidy execution for srslte_upper 2018-12-18 11:53:12 +01:00
Andre Puschmann 59d9a78869
add eia1 tests and fix sib2 bug (#311)
* Starting to add EIA1 tests.

* Initial tests for EIA1

* Bit shifted bearer by 27. Test case 1 and 4 are passing now.

* Adding EIA test case 7.

* Making sure the test is called.

* Fixed double initialization of msg_len_bits.
2018-12-17 16:33:11 +01:00
Pedro Alvarez 3205121015 M2 interface packing/unpacking (#305)
* Starting to add M2AP serialization structures.

* Added M2AP procedure ids.

* Added some M2AP max values.

* Removing m2ap.cc for now.

* Adding cause IE.

* Adding dummy m2ap.cc to check correct compilation of m2ap.h

* Fixed compilation issues in m2ap.h

* Adding Cell Information IE.

* Added Criticality diagnostics IE.

* Adding eNB-MBMS-ConfigurationDataItem.

* Adding MBMS-Service-Area-Id-List

* Added MBMS Service Area Id.

* Added Global eNB Id IE.

* Added Global MCE id IE.

* Added MBMS-Service-associatedLogicalM2-ConnectionItem IE.

* Added MBSFN_SUBFRAME_CONFIGURATION IE

* Added MCCHrelatedBCCH-ConfigPerMBSFNArea IE.

* Added MCH scheduling period IE.

* Added PMCH-Configuration IE.

* Added Time-to-Wait IE.

* Added TNL-Information IE.

* Starting to add M2SetupRequest msg.

* Adding M2 Setup Request message.

* Fixed up enums related to initiating messages, successful outcome and unscesseful outcome.

* Starting to add m2ap apck/unpack PDU functions.

* Started to add a test for M2 Setup Request Pack/Unpack.

* Filling in M2SetupRequest structure.

* Adding packing of more IEs in the M2SetupRequest.

* Starting to add unpacking functions to M2SetupRequest.

* Continuing to unpack M2SetupRequest. Unpacking PLMN Identity correctly now.

* Fixed up enb_id unpacking. eNB Id and eNB name unpacking correctly now.

* Starting to add unpacking for dataconfiguration item.

* Adding support for eCGI unpacking.

* Adding MBSFN Synchronization Area id Unpacking.

* Adding service area unpacking.

* Added unpacking functionality to the rest of the IEs in the M2 Setup Request. Unpacking the M2 Setup Request is passing unit test.

* Fized mistake in packing eNB Id. Starting to add packing to eCGI.

* Starting to pack value in ENB MBMS Configuration item.

* Fixed packing of ENB MBMS configuration item header.

* Packing of M2 Setup request is now passing the unit test.

* Starting to add M2setup response.

* Starting to add packing/unpacking succeful outcome.

* Starting to add M2SetupResponse to test.

* Continue to add testing to setup response. Choice type seems OK.

* Starting to add unpacking to MCE Id.

* Adding MCEname packing/unpacking.

* Continue to unpack m2setupresponse.

* Adding MBMS Area Id unpacking

* Added pddch length unpacking.

* Adding more IE unpacking.

* Adding more code to unpack M2 Setup response.

* Added M2 Setup response unpacking.

* Added M2 response packing. Fixed mistake on eCGI packing/unpacking, which broke M2 Setup request.

* M2 setup request and response pack and unpacking seems to work.

* Starting to add MBMS Session Start Request.

* Continue to unpack MBMS session start request.

* Added TMGI unpacking.

* Continue to add unpacking to MBMS session start request

* Starting to add TNL Information unpacking

* Added unpack for MBMS session start request.

* Strating to add MBMS session start request packing.

* Adding MCE MBMS M2AP Id packing.

* Added MBMS Session Start Reqeust pack and unpack.

* Added MBMS Session start response packing/unpacking.

* Starting to add unpacking of MBMS Scheduling information.

* Adding MCCH Update time Unpacking.

* Adding MBSFN Area Configuration List Unpacking.

* Starting to add unpack PMCH configuration Item.

* Adding AllocatedSubframesEnd unpack

* Fixed multiple mistakes in unpacking PMCH configuration.

* Unpacking MCH Scheduling Period

* Continue to unpack MBMS Session List Per PMCH Item.

* Added unpacking of PMCH Configuration List. Starting to add unpacking of MBSFN Subframe Configuration List.

* Adding radioframe allocation period and offset unpacking.

* Added unpacking of MBMS Scheduling Information (needs testing.)

* Added more testing to MBMS Scheduling Info.

* Small commit.

* Added more testing to the unpacking of MBMS Scheduling Information. Unpacking correctly now.

* Continue to pack MBMS Scheduling information. Packing PMCH Configuration.

* Fixed mistach in packing PMCH configuration list.

* Adding more packing to MBMS scheduling info message.

* Fixed more mistakes in MBMS Scheduling information packing. Passing tests now.

* Added MBMS Scheduling Information Response.

* Remove debug prints.
2018-12-12 15:22:35 +01:00
Andre Puschmann 398e271eee add out-of-order test for RLC AM PDUs 2018-11-22 13:18:53 +01:00
Andre Puschmann cecc28540b add crash handler to rlc_stress_test 2018-10-09 21:18:05 +02:00
Andre Puschmann f7d907f1b2 remove pedantic flag from RLC stress test 2018-10-09 21:17:17 +02:00
Andre Puschmann a1eca433b0 fix RLC AM tests accordingly 2018-10-03 14:58:24 +02:00
Andre Puschmann 57b472983e fix RLC TM stress test params 2018-10-03 14:58:24 +02:00
Andre Puschmann f20535657f add option to randomize MAC opportunities in RLC tester 2018-10-03 14:58:24 +02:00
Andre Puschmann 58d5208bfc fix RLC AM test 2018-09-26 16:55:46 +02:00
Andre Puschmann 601b2a357b fix fail logic in RLC stress test 2018-09-25 16:23:00 +02:00
Andre Puschmann f5c3bd5328 cleaup RLC stress test 2018-09-25 11:00:35 +02:00
Andre Puschmann 7572299615 enable clang-tidy for srslte_upper library 2018-09-25 10:46:36 +02:00
Andre Puschmann 34535c7efb fix RLC AM issues reported by clang-tidy 2018-09-25 10:46:36 +02:00
Andre Puschmann 6c4aaa6e10 adapt AM test to new MAC timer 2018-09-25 10:45:15 +02:00
Andre Puschmann 9a4ce125fb fix RLC stress test with respect to timer handling 2018-09-21 10:29:41 +02:00
Andre Puschmann 4b0171ccea fix MAC timer handling in rlc_stress_test 2018-09-21 10:29:41 +02:00
Andre Puschmann d981f129e0 Merge branch 'master' into next 2018-09-20 12:54:05 +02:00
Andre Puschmann 6c896c4962 fix RLC AM test in release 2018-09-07 10:49:52 +02:00
Andre Puschmann f14ee09ed3 adapt AM test to new MAC timer 2018-09-07 10:49:52 +02:00
Andre Puschmann d19eb28a16 fix various variable initializations that gcc-4.8 complained about 2018-09-05 12:34:40 +02:00
Andre Puschmann 55edb92ac5 fix RLC AM test and account for additional header room for retx segments 2018-07-30 16:35:57 +02:00
Andre Puschmann a20a8b18ad fix rlc_stress_test, stop RLC instances and remove hard thread canceling 2018-07-30 14:57:17 +02:00
Andre Puschmann 1160dac54f add new RLC AM test for checking correct stopping 2018-07-30 14:56:22 +02:00
Andre Puschmann 3950629a75 remove obsolete RLC_MODE struct and move existing one to rlc_interface.h 2018-07-25 16:06:42 +02:00
Andre Puschmann 27d3d697df refactor RLC part#2
- move metrics into entities
- make configure interface return true/false on success/failure
- add own srslte mode type
2018-07-23 17:30:32 +02:00
Xavier Arteaga c1a0b17c40 Improved phy_dl_test 2018-07-17 15:37:57 +02:00
Ismael Gomez 589e569ce9
Changes on srsENB mutexing logic to fix general race condition and deadlock issues (#229)
* fixed some issues with the UL scheduling

* Hack to fix UL scheduler

* minor fix

* Cleaned up code and fixed issue with the update_allocation function

* fixed the console printing in the enb

* log/console fix

* fixed the log print

* added a normalization factor

* RLC: entity uses dynamic instances. Simplified stop/reset/reestablish procedure. Added non-blocking interface

* Limit decimals in metrics stdout

* Changed mutexes to rwlock in RLC/RRC/MAC/PDCP to fix race conditions when removing users

* Fix deadlock bug for MIMO

* Remove headers

* Fix missing unlock causing overflows

* Do not decrease CQI when PUCCH (this is a temporal fix, requires to reduce the maximum MCS)

* Fix mutex unlock in worker

* Configurable RLC tx buffer. Default to 512 for enodeb

* Check NULL SDU in write_sdu()

* Protect RLC objects and tx_queue from being destroyed while using it

* Remove superfluous code

* Disable SIB logging

* Fix block_queue for enb
2018-07-05 11:00:19 +02:00
Xavier Arteaga e837788ad4 Added initial Generic DL Phy test 2018-07-02 10:20:40 +02:00
Pedro Alvarez bd39d8bac2 Fixed bug in getting OPc. Removed debug print. Fixed test12345. UE is still having re-synch issues. 2018-06-18 19:32:50 +01:00
Pedro Alvarez e3d1cff4a3 Revert "Adding OPc option to security functions."
This reverts commit 0eeb70bede.
2018-06-18 11:29:40 +01:00
Pedro Alvarez 0eeb70bede Adding OPc option to security functions. 2018-06-18 11:24:35 +01:00
Paul Sutton 2f73b52419 Fixing and disabling faulty tests - asserts only failing in debug 2018-06-12 18:31:37 +01:00
Ismael Gomez be1c6aa078 Fix compilation warnings 2018-05-31 14:39:14 +02:00
Ismael Gomez 7b58ceb6e2 Measure execution time in EEA tests 2018-05-31 14:34:32 +02:00
Andre Puschmann cb15dee3d4 Merge branch 'embms_merge_final' into next 2018-05-23 21:25:37 +02:00
Andre Puschmann ad5c06f64b limit SDU generation rate in AM stress test 2018-05-22 14:52:47 +02:00
Andre Puschmann 61d525ea80 Merge branch 'next' into embms_merge_final 2018-05-22 10:39:05 +02:00
Andre Puschmann 438892118c extend msg queue test 2018-05-22 10:28:14 +02:00
Andre Puschmann 9ce3be974a Merge branch 'next' into embms_merge_final 2018-05-15 22:32:56 +02:00
Andre Puschmann 2fb0dc62a0 refactor config for multicast RLC bearers 2018-05-15 22:23:21 +02:00
yagoda 3fee81446a adding asn1 test files 2018-05-15 17:48:20 +02:00
yagoda e4c3f0bc30 adding mbms-gw and mch generation tables 2018-05-15 17:27:10 +02:00
yagoda d80d49a9da adding tests for embms rlc functionality 2018-05-15 16:59:06 +02:00
Andre Puschmann fd9f847d2d dont let RLC stress test fail if buffer gets empty 2018-05-15 16:29:49 +02:00
Andre Puschmann e0e219fdce reduce default loglevel in RLC stress tests 2018-05-15 12:59:22 +02:00
Andre Puschmann 51e093e611 Merge branch 'next' into rlc_updates 2018-05-11 15:55:03 +02:00
Ismael Gomez 040c33497d merged PR#189 and added check for non-empty queue in get size tail 2018-05-10 21:32:32 -05:00
Andre Puschmann 05696a5ca7 Merge branch 'next' into rlc_updates 2018-05-04 14:13:50 +02:00
Andre Puschmann 4a29f1f0f0 reduce default execution for RLC stress tests 2018-05-04 12:40:20 +02:00
Andre Puschmann d2d30ca90d fix typo in testcase command 2018-05-04 12:11:41 +02:00
Andre Puschmann 60a9e5d756 in rlc_stress_test only call usleep if not null 2018-05-04 10:46:37 +02:00
Andre Puschmann 3da5133591 adding two more RLC UM tests for checking reassembly 2018-05-04 10:27:46 +02:00
Andre Puschmann 371e2f90fd print RLC throughput after finishing stress test
- also exit with failure when malformed PDU is received in release mode
2018-05-04 09:39:15 +02:00
Ismael Gomez 4ffee4326b Fix memory leaks in unit tests 2018-05-03 17:36:39 +02:00
Andre Puschmann f913db6d82 add TM testcase 2018-04-27 16:26:24 +02:00
Andre Puschmann d63b3e0376 add TM support to rlc_stress_test 2018-04-27 16:25:37 +02:00
Andre Puschmann a5d31f5c02 rename rlc_stress_test 2018-04-27 15:42:13 +02:00
Andre Puschmann 8fde56c582 unify rlc_am_stress test to allow also UM tests 2018-04-27 15:40:05 +02:00
Andre Puschmann 2935def9fc remove mutex in rlc stress tester 2018-04-04 17:07:40 +02:00
Andre Puschmann 38a3172224 fix RLC AM test 2018-04-04 17:02:45 +02:00
Andre Puschmann f3482445b5 add RLC AM data header parsing test 2018-03-28 17:10:56 +02:00
Andre Puschmann 619a653d4e add another RLC AM resegment test 2018-03-28 16:06:28 +02:00
Andre Puschmann 5fe09666d7 add new RLC AM test for retransmitted PDU segments 2018-03-28 10:45:59 +02:00
Andre Puschmann 20fa7b947d expos various params of stress tester and add pcap functionality 2018-03-28 10:45:59 +02:00
Andre Puschmann ac194ae7b1 fix warning in timeout test 2018-03-06 22:24:07 +01:00
Andre Puschmann d84f6d3d41 add parameter to change loglevel in rlc am stresser 2018-03-06 14:04:17 +01:00
Andre Puschmann 853f774607 add threaded timeout test 2018-03-06 14:04:17 +01:00
Andre Puschmann 07c704b0dd extend RLC AM stress tester to mimic reestablishment 2018-03-04 21:53:06 +01:00
Andre Puschmann 507ce037bf parameterize RLC AM stress tester and add to ctest suite 2018-03-04 21:53:06 +01:00
Andre Puschmann 94fe9d4a47 rlc: add basic RLC AM reset test 2018-02-20 12:27:02 +01:00
Andre Puschmann a6ccb05bb1 fix mem leak in RLC UM test and RLC AM stress tester 2018-02-16 21:32:53 +01:00
Andre Puschmann b5b1c0bf4b fix memory leaks RLC AM test 2018-02-16 12:41:13 +01:00
Paul Sutton a1f9b35db3 Minor rlc_am_stress_test fix 2018-02-12 17:24:48 +00:00
Paul Sutton e18cb5ba5b Fixing RLC AM tests, adding extra check for segment handling 2018-02-12 13:42:59 +00:00
Paul Sutton 4cf79c1ead Initial fix for segment handling in RLC AM 2018-02-12 13:09:31 +00:00
Andre Puschmann ccfb9314bc fix various coverity bugs 2018-02-11 10:59:56 +01:00
Ismael Gomez 86818ad65f Fix compilations warnings and remove printf debugs 2018-02-09 17:36:44 +01:00
Andre Puschmann 22117156b3 rlc_am: disable stress tester as test 2018-02-09 11:48:26 +01:00
Paul Sutton d1d6cea737 Adding debug helpers 2018-02-07 23:13:59 +00:00
Paul Sutton 60b059f3cc Adding RLC AM stress test 2018-02-07 21:59:50 +00:00
Paul Sutton c40f5e6ef8 Fixes for RLC AM tests 2018-02-05 09:30:58 +00:00
Andre Puschmann e5a04844ec more coverity fixes 2018-02-02 09:43:10 +01:00
Xavier Arteaga 99ef760b6f More Coverity fixes 2018-01-31 16:49:14 +01:00
Andre Puschmann aa6699e25f Merge branch 'master' into next 2018-01-30 14:22:50 +01:00
Paul Sutton 13b53c4518 Fix for rlc_um_test 2018-01-26 09:17:14 +00:00
David Rupprecht 6fbe26d653 Add test cases for f funtions 2018-01-22 12:20:16 +01:00
Paul Sutton 7848621d8a Fix for RLC AM tests 2018-01-16 09:17:13 +00:00
Paul Sutton 516fdc27f1 Fix for NAS security bearer id, added encryption test sets, fix for compile warning 2017-12-01 12:38:18 +00:00
Paul Sutton ac8cbcaaea 1-byte PDU fix for RLC AM 2017-10-25 11:18:49 +01:00
Paul Sutton bd206e94fc Merge pull request #77 from softwareradiosystems/measurementreports
Adding ASN support for RRC measurement report messages
2017-10-24 13:14:29 +01:00
Paul Sutton 7e3fbbc639 Adding ASN support for RRC measurement report messages 2017-10-20 16:18:26 +01:00
Paul Sutton 49a105baed Fix for tests, minor fix for RLC UM 2017-10-19 22:21:18 +01:00
Ismael Gomez 6556941e6d simplified MAC timers. Unified mac and upper timers in same background task 2017-09-19 17:51:35 +02:00
Ismael Gomez 5359c42b46 RLC UM release timer at stop() 2017-09-19 15:15:25 +02:00
Andre Puschmann 7ca0988ea3 refactor RLC to use RAT-agnostic config 2017-07-04 18:29:49 +02:00
Andre Puschmann 8dbabb2834 rework bearer/LCID handling
This is a larger patch that reworks the LCID handling throughout the
code.

- It first moves the RB/LCID mapping out of common.h into the RRC object
  because different RATs may have different mappings.
- It adds a interface to RRC that other objects like RLC/PDCP/etc. may
  use to get the bearer name of a specific LCID.
- The patch also introduces a PDCP config class.
2017-07-04 17:48:39 +02:00
Ismael Gomez 6037a2f2bd changed logger classes 2017-06-23 16:29:46 +02:00
Andre Puschmann eb5460174d fixing namespace issue in debug build 2017-06-05 13:12:02 +02:00
Paul Sutton 0b64e8a9ee Minor cleanup of security library handling in cmake 2017-06-02 15:59:03 +01:00
Ismael Gomez 8a367bf825 changed srsue namespace to srslte for all common objects 2017-06-01 12:25:42 +02:00
Ismael Gomez e75daee148 renamed include paths for common objects 2017-05-31 23:39:17 +02:00
Andre Puschmann 1d1916d6e0 Merge branch 'restruct_update' into restruct_update_paul 2017-05-31 16:21:18 +02:00
Andre Puschmann c51c4d2a38 fix compile warnings 2017-05-31 13:45:01 +02:00
Paul Sutton 80140c7c38 minor cmake edits 2017-05-30 18:14:41 +01:00
Andre Puschmann 5d66e9701f fixing CMake scripts and include paths 2017-05-30 15:10:19 +02:00
Andre Puschmann d079d25b2c rename srslte folder and src subfolder 2017-05-30 13:05:04 +02:00