faluco
821925a273
- Upgrade to srslog the loggers in lib/mac.
...
- Adapted users of these classes and tests.
2021-02-04 18:37:00 +01:00
Andre Puschmann
8e13f04684
mac_pcap: refactor MAC PCAP and include NR RAT into same object
...
after adding the thread-safe PCAP writer functionality to the EUTRA
MAC object it became clear that we don't wont to replicate the
same for the NR object.
This patch therefore refactors the class that now supports both EUTRA and
NR rats. The old mac_nr_pcap.[h/cc] has been deleted. All test-cases
and usages now use the new object that needs to pass the RAT type in
the ctor.
this patch addresses the last open point of #2160
2021-02-03 17:21:57 +01:00
faluco
b014233662
- Port time related classes to srslog.
...
- Adapt tti_point_test to srslog.
2021-02-03 14:15:27 +01:00
faluco
1a5799a6ca
- Replace loggers is network utils.
...
- Adapt tests that use network utils and callers.
2021-02-03 14:15:27 +01:00
faluco
79eca0980d
- Ported fsm.h to srslog.
...
- Adapted and removed old loggers in tests and code that used fsm.h
2021-02-03 14:15:27 +01:00
Xavier Arteaga
2421f2cd99
Multiple PHY fixes and NR-PHY configuration refactor
2021-02-02 15:23:14 +01:00
Xavier Arteaga
b652cd68a5
Refactored NR PHY configuration to accept multiple CORESETs/SearchSpaces
2021-02-02 15:23:14 +01:00
faluco
806268f6cf
Por asn1 code in lib directory to srslog ( #2253 )
...
* Match hex dump indentation with srslog.
* Port asn1 utils to use srslog. Converted logging functions from taking varargs to variadic template functions.
* Remove trailing new lines in log lines from asn1 utils.
* First round of upgrades to srslog to asn1 tests.
* Second round of porting asn1 tests to srslog.
2021-02-01 11:58:28 +01:00
Andre Puschmann
f88943653b
mac: implement MAC RAR PDU unpacking for NR
...
* add class for mac_rar_pdu_nr
* extend test case
2021-01-30 11:58:25 +01:00
Andre Puschmann
da9e3363f1
mac_pdu_nr: rename MAC PDU class for NR to adhere naming conventions
...
* mainly to have _nr as trailing name for filename and class
* also add "sch" to class and filename (RAR PDU will have extra class)
2021-01-30 11:58:25 +01:00
faluco
711438f756
Port enb specific classes to use srslog ( #2155 )
...
* - Started porting the enb PHY layer to use srslog loggers.
- Updated srslog to manage the none level.
* Finished porting enb phy layer including the NR part.
* Ported MAC, GTPU, PDCP, RLC and S1AP enb classes to use srslog.
* Use new stack logger.
* Ported the enb RRC clases to use srslog.
* Remove unused log macros.
* Replace loggers in sched, sched_carrier, sched_helpers.
* Replaced loggers in sched grid.
* Replaced loggers in sched harq.
* Replaced loggers in sched ue.
* Replaced loggers in sched ue ctrl.
* Replace loggers in sched ue ctrl TPC.
* Replaced loggers in sched subclasses.
* Replaced loggers in rrc_meascfg_test
* Configure loggers in rrc_mobility_test.
* Fix compilation errors left out after the rebase.
* - Implement a custom log sink that will serve as a test spy to intercept and count the number of error and warning log entries.
- Adapt the erab_test_setup and rrc_mobility tests to use this new class and make them pass again.
* - Remove trailing new lines introduced in the rebase.
- Ported the sched_ue_cell class to srslog.
* Remove unused log member.
* Ported mac tests to srslog.
* - Removed remaining trailing newlines from log entries.
* Fix compiler errors detected in CI.
* Fix another static variable without definition passed to log lines.
* Fixed a bug in srslog::flush that would never end when the backend queue is full.
* Fetch the RRC logger instead of injecting it in the constructor.
2021-01-28 12:17:18 +01:00
David Rupprecht
306bb6b38b
Added function for derive keys
2021-01-27 10:37:09 +01:00
David Rupprecht
a6046ca875
Added funcs for asn flat config RLC and PDCP
2021-01-27 10:37:09 +01:00
David Rupprecht
145528ad32
Added unpacking test for RRC reconfig
2021-01-27 10:37:09 +01:00
David Rupprecht
99c3aa9ba2
Refactor assert to TESTASSERT in unit test
2021-01-26 21:19:37 +01:00
Pedro Alvarez
350e90a030
Make RLC retransmissions deterministic. It was creating unpredictablity
...
in the RLC AM tests. See issue #2228
2021-01-25 14:29:17 +00:00
Pedro Alvarez
6ca8bc12ec
Fix wrong SN in RLC status PDU when packet is dropped.
2021-01-21 21:12:30 +01:00
Ismael Gomez
a6423442c2
Refactor NR RA files and fix header includes all over library ( #2162 )
...
* Refactor NR resource allocation classes. Use DCI instead of grant for dummy PDSCH UE/eNB test
* Minor refactors in NR workers and ue_dl
* Fix include issues
* fix compilation issues
2021-01-20 15:46:46 +01:00
Andre Puschmann
10da7df194
pdu_test: add TC with malformed RAR PDU
...
a malformed RAR PDU should not be decoded further if the payload
indicates a length beyond the actual PDU size.
2021-01-12 20:24:20 +01:00
Francisco Paisana
f8b7351e1b
implementation of object memory pool via class-specific operator new/delete
2021-01-12 16:22:10 +01:00
Francisco Paisana
e96b8c263a
add mem pool test. fix mem pool leak bug
2021-01-12 16:22:10 +01:00
Andre Puschmann
4fa89b7039
pcap: make PCAP write thread-safe
...
* offload PCAP writing to background thread
* use blocking_queue between writer and clients to make it thread-safe
* add basic test case
this fixes point 1-3 of #2161
2021-01-04 11:05:02 +01:00
Xavier Arteaga
b3200d9ef5
Renaming common UL/DL DMRS related types and initial NR PUSCH implementation
2020-12-30 13:39:08 +01:00
Xavier Arteaga
13443c3f8c
Added number of DMRS CDM groups without data to NR grant
2020-12-28 10:11:08 +01:00
Francisco Paisana
74ffe393c6
asn1 update: s1ap asn1 is now v16.1 (2020-03)
2020-12-22 16:28:24 +01:00
Francisco Paisana
66aa34d173
update RRC NR ASN1 to 2020-09 v15.11
2020-12-18 12:50:37 +01:00
Andre Puschmann
d5daf60773
pdu_test: add unpacking test for DL-SCH PDU containing TA command
2020-12-18 12:28:52 +01:00
Francisco Paisana
e27c0869e5
update RRC ASN1 to 2020-09 v15.11
2020-12-17 17:55:58 +01:00
Andre Puschmann
bc4c9606ce
rlc_am: add extended bearer metrics
...
this patch adds support for measuring the:
* SDU rx latency (Average time in ms from first RLC segment to full SDU)
* amount of buffered bytes (sum of payload of PDUs buffered in rx_window)
the implementation is using std::chrono
2020-12-17 17:46:55 +01:00
David Rupprecht
826dd32c89
Rename meas_cell to meas_cell_eutra
...
Added meas_cell_nr class
Make meas_cell list as template class
Inheritance rrc_cell to meas_cell_nr
Added process_new_cell_meas_nr function
2020-12-16 14:12:38 +01:00
faluco
f23fdf0639
Include missing files.
2020-12-14 13:46:45 +01:00
faluco
98a2c868b5
Update srslog to latest version.
2020-12-14 13:46:45 +01:00
Francisco
b86d2ab7d0
move choice_type to adt folder
2020-12-12 15:59:27 +01:00
Andre Puschmann
c0883291f6
rlc: pass TTI to get_metrics to calculate "real" LTE rx/tx rate
...
when retrieving the RLC metrics, the number of TTIs since the last
call are passed. This allows to calculate the actual rate
based on the LTE timing rather than only the system timing.
2020-12-12 15:59:27 +01:00
Francisco
b41fc96d6d
fix asn1 integer packing for integer values whose length is equal or above 32 bits
2020-12-12 15:59:27 +01:00
Pedro Alvarez
38206bea69
Fixed RLC AM fixed header size in get_buffer_state function. Fixed RLC AM tests accordingly.
2020-12-12 15:59:27 +01:00
Francisco
5cce2e4dc7
extension of bounded_vector unit test and fix of compilation issues
...
- now bounded_vector::resize(N) works for move-only types
- bounded_vector assertions now print error messages
- fixed move ctor/assignment of bounded_vector
- created a unit test for bounded_vectors of move-only types
2020-12-12 15:59:27 +01:00
Francisco
fc451f17f0
implementation of bounded_vector and respective unit test
2020-12-12 15:59:27 +01:00
Xavier Arteaga
788ed5ce70
Corrected PDCCH SEGFAULT
2020-12-12 15:59:27 +01:00
Xavier Arteaga
e07cf513d0
Improved NR blind search and DL test
2020-12-12 15:59:27 +01:00
Xavier Arteaga
c635b1e467
Initial NR DCI blind-search
2020-12-12 15:59:27 +01:00
Andre Puschmann
47c5f9e85b
remove AGPL header from remaining cpp files
...
* also add commercial header to come CMake helpers
2020-12-12 15:59:26 +01:00
Xavier Arteaga
f9643843a0
SRSENB/UE Fixed NR workers
2020-12-12 15:59:26 +01:00
Xavier Arteaga
ac930003be
SRSUE: Integrated NR workers
2020-12-12 15:59:26 +01:00
Xavier Arteaga
eed9405e40
Moved NR MAX MIMO layers to carrier
2020-12-12 15:59:26 +01:00
Andre Puschmann
07d2bc4fe8
change license header to agnostic version with hint to root LICENSE file
2020-12-12 15:59:25 +01:00
Francisco
66712023bb
remove unneeded includes of full rrc asn1 lib
2020-12-12 15:59:25 +01:00
Xavier Arteaga
0396ebae17
Fix UE/ENB DL NR
2020-12-12 15:58:34 +01:00
Xavier Arteaga
8de2870788
Added NR ue_dl, enb_dl and test
2020-12-12 15:58:34 +01:00
Andre Puschmann
e227fec3d8
pdu_test: add rigerous test for LBSR content
...
* make sure upper and lower edges of Table 6.1.3.1-1 in 36.321 are correct
* fix existing BSR test vectors (verified with Wireshark)
2020-12-12 15:58:33 +01:00
Andre Puschmann
f155b7a5d5
rlc: fix stopping of poll retx timer ( #2006 )
...
* rlc_am: add TC for pollRetx timer handling
* rlc_am: fix stopping of pollRetx timer
stopping the pollRetx timer when receiving a status PDU
without checking the acknowledged PDUs is wrong.
if an ACK for another PDU, for which the polling bit has been set,
is still pending, it won't be rescheduled until another
PDU is transmitted that again starts the pollRetx timer.
this fixes the issue with missing RLC AM segment retx in #1992 ,
and #2003
2020-12-12 15:58:32 +01:00
Francisco Paisana
510959b50f
update nr asn1 files, and asn1 tests
2020-12-12 15:58:32 +01:00
David Rupprecht
387a84ff84
Updated missing byte
2020-11-03 10:03:09 +01:00
David Rupprecht
b85cb614aa
Added test cases for asn1 decoding lib from pcap
2020-11-03 10:03:09 +01:00
Francisco Paisana
c7697b62a6
fix asn1_utils_test. arrays used for equal comparison where not being initialized.
2020-10-22 12:33:11 +01:00
Francisco Paisana
698af97ec4
updated asn1 utils to account for conversion from 0 to bitstring. Added asn1 utils test to repository.
2020-10-20 16:29:44 +01:00
Andre Puschmann
48e7734188
phy_dl_test: fix uninit var
2020-10-18 15:56:16 +02:00
Pedro Alvarez
b43e724b4c
Remove packing/unpacking code for M2AP.
2020-10-08 11:02:50 +01:00
faluco
51b27fc255
Import latest srslog version ( #1796 )
...
* - Import latest srslog version.
- Adjusted the nas_test to create logs correctly.
- Remove timestamp formatting now that is provided by srslog.
2020-09-30 15:52:42 +02:00
Andre Puschmann
58ce9d3959
pdcp: adding basic test to check if control PDUs are handled correctly
...
use a 3 B long status PDU to check if its dropped from the rx'ing entity
2020-09-29 15:29:04 +02:00
faluco
f0d651ae8e
- Fixed a leak in the MME class not releasing the static byte buffer pool.
...
- Now the pool gets destroyed on program exit using a unique_ptr.
- Removed manual cleanup() calls in all the code base to free the pool instance.
2020-09-22 18:00:50 +02:00
Andre Puschmann
d48bc8837e
pdu: refactor MAC PDU class
...
this patch refactors the MAC PDU class, the main changes are:
* add to_string() method to pretty print PDU and subheaders
This allows to have a single log entry per MAC PDU with all its
contents.
It removes the C-style fprint() method
* Simplity payload vs. w_payload_ce
Before we've used payload when reading the PDU and w_payload_ce
as a buffer when writing. In all getters we needed to differentiate
between both. Now payload points to w_payload_ce initially and is
only updated when parsing a new PDU.
* add various helpers, e.g. to get subheader index, update a BSR, ..
* fix PDU test to use new to_string() method
2020-09-03 15:00:36 +02:00
Ismael Gomez
54eed11e1d
Refactor decision for extended CSI/SRS
2020-09-03 10:45:06 +02:00
Ismael Gomez
e2154d2213
Renamed constants to SRSLTE and use SRSLTE_CFI macros
2020-09-03 10:45:06 +02:00
Andre Puschmann
96c911752c
pdu: add test case for issue #1649
...
testcase checks the correct handling of the remaining PDU space
when a long BSR is added but no space is left in PDU to fit it
2020-08-27 23:46:28 +02:00
Francisco Paisana
834c0b3929
integrated new observer pattern into phy controller fsm
2020-08-24 22:10:32 +01:00
Francisco Paisana
b2313e3631
observer pattern classes. Allows auto and explicit dispatch, and specifying which trigger method to use of an observer.
2020-08-24 22:10:32 +01:00
Francisco Paisana
7cd4f45d62
fsm refactor.
...
- avoid triggering directly a subfsm
- improved metafunctions
- other cleanups
2020-08-18 16:07:21 +01:00
Francisco Paisana
9146e6ddf1
change method name to resize intervals
2020-08-14 15:06:06 +01:00
Francisco Paisana
4457bbda7e
added new asserts to interval interface
2020-08-14 15:06:06 +01:00
Francisco Paisana
8b174ce2f4
changed interval interface to disallow interval::stop < interval::start via an assertion
2020-08-14 15:06:06 +01:00
Francisco Paisana
c1755727d7
changed interval method names, and added comments and assertions
2020-08-14 15:06:06 +01:00
Francisco Paisana
20b69fb22e
substitution of ul_alloc_t for prb_interval
2020-08-14 15:06:06 +01:00
Francisco Paisana
857cc141c7
fix macro checking for exceptions, added missing includes, fixed bounded bitset methods' noexcept specifiers
2020-08-13 13:13:34 +01:00
Francisco Paisana
cceeff10de
moved expected, bounded_bitset, move_callback to adt folder. created a test for bitset
2020-08-13 13:13:34 +01:00
Francisco Paisana
caf862c99f
moved expected, bounded_bitset, move_callback to adt folder. created a test for bitset
2020-08-13 13:13:34 +01:00
faluco
072e84cec8
- Simplified the usage of span now with implicit constructors as it should be.
...
- Added overload for generic containers that have size and data members like vector.
- Removed unnecessary uses of make_span.
2020-08-11 19:47:26 +01:00
faluco
158edd4fe7
Removed init list constructor test.
2020-08-11 19:47:26 +01:00
faluco
af8dfcf19c
Extended a bit the span implementation with the following changes:
...
- Documented methods and class.
- Adapted interface to the latest standard: no init list and generic container constructors, new iterator pair ctor.
- Implemented some SFINAE for managing conversions in constructors.
- Re-organised some methods to be grouped by category (modifiers, observers, iterators, ...).
- Added convenience make_span functions.
- Added some more asserts.
- Adapted test to use some syntax that was modified.
2020-08-11 19:47:26 +01:00
Francisco Paisana
76a62909c1
use of span type for universal array views
2020-08-11 19:47:26 +01:00
Francisco Paisana
a9d882c1f1
fix task_scheduler_test. Fix potential reference invalidation in task_scheduler internal tasks data structure
2020-08-11 17:16:06 +01:00
Francisco Paisana
9d877e55b3
add test for when scope exit lambda is an lvalue
2020-08-10 17:23:43 +01:00
Francisco Paisana
0f67bee556
creation of a scope exit standalone file. Created a new folder ADT. Added test for scope exit.
2020-08-10 17:23:43 +01:00
faluco
cfd3f51931
Import of srslog into srsepc and srsenb. ( #1574 )
...
* - Import of srslog into srsepc and srsenb.
* - Removed logger_file and logger_stdout files.
2020-07-30 19:17:23 +02:00
faluco
efdff8ba4c
Import srslog into srsue ( #1556 )
...
- Import the srslog project into srslte.
- Ported srsue app to use the new logging framework.
- Implemented a wrapper that dispatches log entries to srslog.
- Renamed an existing log test to be more specific to avoid name clashes.
2020-07-22 16:04:18 +02:00
Andre Puschmann
c8b4ba885b
rename rlc_tx_queue to byte_buffer_queue
...
this data structure will be used by the PDCP layer as well.
2020-07-14 18:18:32 +02:00
Andre Puschmann
a7911f0dab
pdcp,rlc: refactor SDU queueing policy
...
this patch refactors the SDU queuing and dropping policy of the RLC and PDCP layer.
the previous design had issues when packets have been generated at a higher
rate above the PDCP than they could be consumed below the RLC.
When the RLC SDU queues were full, we allowed two policies, one to block on the write
and the other to drop the SDU. Both options are not ideal because they either
lead to a blocking stack thread or to lost PDCP PDUs.
To avoid this, this patch makes the following changes:
* PDCP monitors RLC's SDU queue and drops packets on its north-bound SAP if queues are full
* a new method sdu_queue_is_full() has been added to the RLC interface for PDCP
* remove blocking write from pdcp and rlc write_sdu() interface
* all writes into queues need to be non-blocking
* if Tx queues are overflowing, SDUs are dropped above PDCP, not RLC
* log warning if RLC still needs to drop SDUs
* this case should be avoided with the monitoring mechanism
2020-07-13 17:05:28 +02:00
Francisco Paisana
7c364070ee
creation of task scheduler interface for classes/functions running outside the main control thread
2020-07-13 11:19:25 +01:00
Francisco Paisana
1a9c04bf2f
use of task scheduler handle in pdcp
2020-07-13 11:19:25 +01:00
Francisco Paisana
4f5e65781f
created task scheduler class to deal with timers, thread pool, multiqueue, internal tasks
2020-07-13 11:19:25 +01:00
Andre Puschmann
2749c870e3
rlc_am: refactor control test
...
* move both tests into own functions and call those in main()
* use common test header and macros
2020-07-08 10:09:06 +02:00
Andre Puschmann
58e255cb63
pdu_test: add unit test to verify correct packing of 3B PDU with Short BSR
2020-07-08 10:08:26 +02:00
Andre Puschmann
5589816690
pdu_test: fix PCAP output
...
API now requires to pass CC index
2020-07-08 10:08:26 +02:00
Francisco Paisana
e550bf726d
updated fsm to allow enter methods to receive event that caused them
2020-07-06 14:25:03 +01:00
Francisco Paisana
84f34bc736
changed to a label filtering approach for ctest
2020-07-02 15:56:59 +01:00
Francisco Paisana
ebb8f18000
set some extra tests with the prefix "long_"
2020-07-02 15:56:59 +01:00
Andre Puschmann
a3d7d4517c
rlc_um: add dedicated unit test for the PDU packing bug
...
Here is the test output with the fix disabled:
13:47:42.679774 [RLC_UM_1] [D] MAC opportunity - 14 bytes
13:47:42.679784 [RLC_UM_1] [D] pdu_space=14, head_len=2
13:47:42.679790 [RLC_UM_1] [D] adding new SDU segment - 10 bytes of 10 remaining
13:47:42.679834 [RLC_UM_1] [D] Complete SDU scheduled for tx. Stack latency: 0 us
13:47:42.679909 [RLC_UM_1] [D] pdu_space=4, head_len=2
13:47:42.679922 [RLC_UM_1] [D] adding new SDU segment - 0 bytes of 10 remaining
13:47:42.679928 [RLC_UM_1] [I] Tx PDU SN=0 (14 B)
13:47:42.679974 [RLC_UM_1] [D] vt_us = 1
The test checks the correct packing and of the two PDUs at the end.
2020-06-26 17:58:36 +02:00
Andre Puschmann
df50dd7d3c
rlc: extend RLC metrics
...
extend RLC metrics to count Rx/Tx PDUs/SDUs bytes/#
2020-06-26 17:58:36 +02:00
Andre Puschmann
48db31c5cf
rlc_stress_test: fix random PDU dropping
...
the rand() was sometimes giving NaN so this case needs to be handled
and the PDU not dropped to have real zero drop-rate
2020-06-26 17:58:36 +02:00
Andre Puschmann
fc3cd24177
rlc_um: fix counting of lost PDUs
...
* change try_push() return value to indicate whether the addition
of the SDU to the tx queue was successful or not
* count lost PDUs
2020-06-26 17:58:36 +02:00
Andre Puschmann
96726a03e0
rlc_stress_test: fix PCAP support
...
expose actual RLC configuration to PCAP object
2020-06-26 17:58:36 +02:00
Andre Puschmann
1c7bfde404
rlc_stress_test: fix compilation with PCAP enabled
2020-06-26 17:58:36 +02:00
Francisco Paisana
e3e9bbcd62
fix PNF PDU size cutting
2020-06-24 23:28:53 +01:00
Francisco Paisana
a0606669e2
fix ue nr gw initialization
2020-06-24 23:28:53 +01:00
Francisco Paisana
e6418b4b39
fix variable naming
2020-06-24 23:28:53 +01:00
Francisco Paisana
1d07258458
created pnf bridge executable
2020-06-24 23:28:53 +01:00
Francisco Paisana
f0874b780b
add radio_base/null classes
2020-06-18 23:37:26 +01:00
Francisco Paisana
64e8f5e3ed
update license year
2020-06-18 12:41:54 +01:00
Pedro Alvarez
9c1a7d2cf1
Removed get_bearer_status in PDCP. Renamed get_state/set_state to
...
get_bearer_state/set_bearer_state.
2020-06-18 12:13:57 +01:00
Pedro Alvarez
208a539499
Split PDCP tx_count state variable into tx_hfn and next_pdcp_tx_sn
...
variables.
2020-06-18 12:13:57 +01:00
Pedro Alvarez
08578a7331
Switched to use a struct to hold the PDCP entity state variables. Deleted some unecessary setters.
2020-06-18 12:13:57 +01:00
Andre Puschmann
1f73e6ae69
multiqueue: add option to create queue with non-default capacity
...
this allows to create a queue that has a non-default capacity
currently this is 8192, but the value might now be suitable in some
cases like for TTI sync events
2020-06-12 21:37:10 +02:00
Francisco Paisana
27e5d98ef9
added vnf phy nr
2020-06-11 15:50:36 +01:00
Francisco Paisana
b05ce2fe57
added pnf_dummy test
2020-06-11 15:50:36 +01:00
Francisco Paisana
8a022fb35b
fix noexcept declaration issue in gcc4.8
2020-06-11 14:25:21 +02:00
Francisco Paisana
6509399ed3
fix for move-only events
2020-06-11 10:37:35 +01:00
Francisco Paisana
12dda03bb8
add ability for fsms to self-trigger
2020-06-11 10:37:35 +01:00
Xavier Arteaga
039f2164a6
Initial Sounding Reference Signals implementation
2020-06-08 09:33:51 +02:00
Francisco Paisana
edba7f57e4
corrected mac_nr_pdu includes
2020-05-26 10:02:08 +01:00
Francisco Paisana
b4b5cd7cd6
added nr gnb and ue interfaces
2020-05-25 11:48:16 +01:00
Francisco Paisana
a2b76a4a5f
use references rather than pointers
2020-05-11 16:08:20 +01:00
Francisco Paisana
a88bffa5d5
created expected type and respective test
2020-05-11 16:08:20 +01:00
Francisco Paisana
cf9d31ea64
fix coverity warning for useless call
2020-05-08 14:14:25 +02:00
Francisco Paisana
2204cab4c8
old gcc version cannot support the detected pattern. Removing it
2020-05-05 19:42:34 +01:00
Francisco Paisana
e3d0b1c89e
format missing fsm table
2020-05-05 19:42:34 +01:00
Francisco Paisana
f4d19a6d44
added fsm table formmatting comments
2020-05-05 19:42:34 +01:00
Francisco Paisana
3ef8c67d67
enter/exit are now inside the state class. No need for friend classes anymore
2020-05-05 19:42:34 +01:00
Francisco Paisana
9b48130ae1
use of transition table to support guards in fsms
2020-05-05 19:42:34 +01:00
Francisco Paisana
04e192eb0f
redesign fsm to use transition table
2020-05-05 19:42:34 +01:00
Francisco Paisana
e79fc9bf08
fixed generation of ie containers of one single ie object
2020-05-05 13:10:41 +01:00
Xavier Arteaga
d94078d543
Minor changes
...
Fix UE sequence generation
minor change
2020-05-01 21:07:33 +02:00
Xavier Arteaga
9d0a3268e8
Added DL channel estimator algorithm options
2020-04-28 17:26:01 +02:00
Andre Puschmann
39680ffd26
rrc_asn1_decoder: fix uninit var
2020-04-28 12:05:15 +02:00
Francisco Paisana
1c74c5675e
remove ambiguous enter/exit template method
2020-04-27 22:19:08 +01:00
Francisco Paisana
e1ac6d7cfe
use macro to disable throw
2020-04-27 22:19:08 +01:00
David Rupprecht
4e283ec942
Standalone decoders for nas and rrc in asn1 test. Thanks Dirk
2020-04-27 21:01:03 +02:00
Andre Puschmann
5d92111586
pcap: adding SL-SCH support
2020-04-27 15:54:54 +02:00
Francisco Paisana
b506e29b72
removed common ce_typeenum
2020-04-24 11:55:53 +01:00
Francisco Paisana
6ddedd5972
moved pdu to common mac folder
2020-04-22 10:06:08 +01:00
Francisco Paisana
df0da116ce
removed enter state visitor, and srslte::same_state return special case in fsms
2020-04-17 17:09:48 +01:00
Francisco Paisana
63142899d1
simplified some of the fsm sfinae conditions
2020-04-17 17:09:48 +01:00
Francisco Paisana
6322e447e9
fixed issue with subfsm revisits not starting in initial substate
2020-04-17 17:09:48 +01:00
Francisco Paisana
d40dcd28f3
removed uneeded swap method
2020-04-17 11:38:24 +01:00
Francisco Paisana
b5abba41a3
use normal polymorphism to create vtable
2020-04-17 11:38:24 +01:00
Francisco Paisana
e2b10307ea
changed inplace_task name to move_callback
2020-04-17 11:38:24 +01:00
Francisco Paisana
ee50ed08c2
allow inplace task to be called in const contexts
2020-04-17 11:38:24 +01:00
Francisco Paisana
ef834b3c60
changed inplace_task file name
2020-04-17 11:38:24 +01:00
Francisco Paisana
a6b7c5d1d2
inplace task now uses small buffer optimization for bigger captures
2020-04-17 11:38:24 +01:00
Francisco Paisana
4b2b76cf01
created inplace task to avoid mallocs in task enqueuing
2020-04-17 11:38:24 +01:00
Andre Puschmann
ba4d0aa860
remove blacklisted ARM PHY tests
...
issue causing decoding failure for QAM256 are fixed now so blacklist can go away
2020-04-15 21:58:55 +02:00
Xavier Arteaga
71476d1079
Minor phy_dl_test modification
2020-04-15 11:39:57 +02:00
Francisco Paisana
4ac07e5abb
simplified power off state transition
2020-04-09 18:57:18 +01:00
Francisco Paisana
ff988127fe
wrote nas fsm test
2020-04-09 18:57:18 +01:00
Francisco Paisana
977a1acc5e
eliminated unhandled_event special function. Use react instead.
2020-04-09 18:57:18 +01:00
Francisco Paisana
6e34dadce2
reverted back to tuples to store fsm state_list
2020-04-09 18:57:18 +01:00
Francisco Paisana
4036a6887a
clean up enter/exit state methods
2020-04-09 18:57:18 +01:00
Francisco Paisana
8d3427e88a
removed namespacing from state printing
2020-04-09 18:57:18 +01:00
Francisco Paisana
b699e0e490
enter/exit moved outside of the states, into the fsm. Now i just use the type_name function to get a state name
2020-04-09 18:57:18 +01:00
Francisco Paisana
4a4827a603
created a method to detect unhandled events
2020-04-09 18:57:18 +01:00
Francisco Paisana
ec3ef4474e
created a simple procedure fsm
2020-04-09 18:57:18 +01:00
Francisco Paisana
1aae510e9d
enter/exit are now being called in order
2020-04-09 18:57:18 +01:00
Francisco Paisana
2e15514d00
fix enter/exit calls
2020-04-09 18:57:18 +01:00
Francisco Paisana
dc0427804f
clean up comments and add some util functions
2020-04-09 18:57:18 +01:00
Francisco Paisana
7dc1489ea7
reintroduced optional enter/exit methods for each state
2020-04-09 18:57:18 +01:00
Francisco Paisana
6675e92806
implement fsm based on choice type
2020-04-09 18:57:18 +01:00
Francisco Paisana
018f9e7db2
implement visit pattern
2020-04-09 18:57:18 +01:00
Francisco Paisana
278a1686fb
creation of choice/variant type
2020-04-09 18:57:18 +01:00
Francisco Paisana
a2ade9edd1
break down rrc_interface_types.h into multiple files. moved pdcp_config.h to same folder
2020-04-09 10:10:04 +01:00
Francisco Paisana
2950d26daa
remove asn1 namespace from srsue files
2020-04-09 10:10:04 +01:00
Xavier Arteaga
9a2b0b7cc7
Standard vector allocation uses vector library
2020-04-02 20:49:58 +02:00
Francisco Paisana
30ae2226c1
common interface for stack multiqueue tasks, background tasks and timers
2020-03-31 13:42:06 +01:00
Andre Puschmann
890f346808
pdcp: fixing LTE rx test
...
the test was introducing two lost SN and the number of expected SDUs
wasn't changed. Changed now counters, etc to only drop one SN.
2020-03-27 10:54:19 +01:00
Francisco Paisana
67f6eebf61
fix rlc stress test to reflect threading in stack
2020-03-26 20:11:35 +00:00
Andre Puschmann
5e9aa38551
pdcp: add test for reception of dublicate PDU
2020-03-26 14:21:14 +00:00
Francisco Paisana
8aa44928e9
fix 5g compilation errors
2020-03-25 15:50:30 +00:00
Francisco Paisana
344eaf49ec
use logmap in the whole enb and ue
2020-03-25 15:50:30 +00:00
Francisco Paisana
8e837e173d
printf has already a way to pad spaces. If we use it, we can avoid accidentally adding extra logs because we did srslte::logmap::get("MAC") instead of srslte::logmap::get("MAC ")
2020-03-24 22:36:27 +00:00
Francisco Paisana
82cb6baef0
now the whole ue and enb mac uses the logmap
2020-03-20 11:32:03 +00:00
Xavier Arteaga
e832769ae6
Updated copyright
2020-03-16 11:26:06 +01:00
Francisco Paisana
5330249625
created tti_point type and unit test. Added also the tti_point to the scheduler harqs, and rrc procedure
2020-03-13 19:20:40 +00:00
Francisco Paisana
7548402632
change scell activation interface to use arrays. Added a method to the scheduler to get the current set of activated carriers
2020-03-11 21:56:33 +01:00
Pedro Alvarez
96c82b3fc6
Moved PDCP configs to pdcp_config.h. Added `as_security_cfg_t` structure to hold access stratum keys.
...
Refactored PDCP, RRC and USIM accordingly.
2020-03-11 09:00:38 +00:00
Francisco Paisana
aaa333c1ff
removed some clang warnings
2020-03-03 21:26:50 +00:00
Francisco Paisana
62609fdc11
fixed some logs. Also now use one single log obj for all the asn1
2020-03-03 21:26:50 +00:00
Andre Puschmann
9e113f8b27
pdcp: allow to configure security for rx/tx seperately
...
previously PDCP security (integrity and ciphering) could only
be enabled for both Rx and Tx at the same time.
this, however, caused an issue during the conformance testing in which,
in TC_8_2_1_1() for example, the eNB sends a SecModeCommand and a
RRC Reconfiguration in the same MAC TB. In this case, the eNB
needs to be able to enable DL security right after sending the SecModeCmd
in order to send the RRCReconfig encrypted. However, enabling UL security needs
to be postponed until after the SecModeComplete is received.
This patch allows to enable PDCP security for rx/tx independently if
that is needed. The default way is like before, enabling it for tx/rx at
the same time.
2020-03-01 18:26:45 +01:00
Francisco Paisana
6b96d21732
extension of the timer test to check safe running timer erasure
2020-02-29 18:00:11 +00:00
Francisco Paisana
5b2da779b7
new method in timer_handler to dispatch calls without an associated unique_timer
2020-02-29 18:00:11 +00:00
Francisco Paisana
af76778fc8
remove fixmes
2020-02-28 18:03:29 +00:00
Francisco Paisana
ac52208409
removed most of clang-tidy warnings, introduced logmap in asn1, fixed info object naming in s1ap and ngap for successful and unsuccessful outcomes
2020-02-28 18:03:29 +00:00
Francisco Paisana
e859d622c7
added logref class to forbid logmap pointer invalidation. Created a test for the logref, and introduced it in the scheduler, rrc and nas
2020-02-28 11:33:26 +00:00
Xavier Arteaga
f261365c91
Initial EVM calculation commit and other easthetic changes
2020-02-28 12:10:32 +01:00
Pedro Alvarez
830dffb05b
Small change in pkt compare function.
2020-02-20 20:53:27 +01:00
Pedro Alvarez
5dd081846b
Removed unnecessary macro and some newlines.
2020-02-20 20:53:27 +01:00
Pedro Alvarez
aecfb151ce
Apply clang-format to the lib in preperation for PR.
2020-02-20 20:53:27 +01:00
Pedro Alvarez
940626108b
Fix PDCP DRB test. Enabled encryption on PDCP LTE tests. Tests passing now.
2020-02-20 20:53:27 +01:00
Pedro Alvarez
d98b888ca4
Separating PDCP read_header function from discard_header_function. Starting to add DRB unit test.
2020-02-20 20:53:27 +01:00
Pedro Alvarez
dbb5c6c06c
Adding PDCP LTE SRB1 test. Test failing for now.
2020-02-20 20:53:27 +01:00
Pedro Alvarez
284a0f7b4e
Starting to add PDCP LTE unit tests. Test failing for now.
2020-02-20 20:53:27 +01:00
Pedro Alvarez
b841859220
Moved pdcp test functionality to a common header. Fixed linking issue in 5GNR PDCP
2020-02-20 20:53:27 +01:00
Francisco Paisana
64c9302b43
added wireshark generation to SCell Activation CE pdu_test
2020-02-14 21:49:01 +00:00
Francisco Paisana
e51e2ac062
added scell activation to pdu_test
2020-02-14 21:49:01 +00:00
Xavier Arteaga
d66fdefbb3
Added more docs to PUCCH 1b CS resource selection
2020-02-13 10:29:00 +01:00
Xavier Arteaga
1f762844ee
Initial PUCCH format 3 decoder
2020-02-13 10:29:00 +01:00
Xavier Arteaga
35f4e5d69a
Initial PUCCH 1B with channel selection
2020-02-13 10:29:00 +01:00
Andre Puschmann
ed179fd311
timers: rename value() to time_elapsed()
...
this seems to be better readable than value() since
we've sometimes confused it with the timeout value
2020-02-06 14:40:47 +01:00
Xavier Arteaga
0edd8f74d8
fix memory leak in timer test
2020-02-04 16:33:46 +01:00
Xavier Arteaga
b88a8635f1
Reduce stress timer test number of timers
2020-02-04 16:33:46 +01:00
Xavier Arteaga
e0cc1fd697
Reduce time of timer_test; use unique_lock instead of guard
2020-02-04 16:33:46 +01:00
Xavier Arteaga
22da8dfbb1
srsLTE: protected priority queue in timers
2020-02-04 16:33:46 +01:00
Ismael Gomez
52716f8716
Process HO complete in the background to avoid heap-after-use bug when PHY measurements are reported during a HO
...
rrc_meas refactor. Need to split commit
Fix typo
Temporal commit
Apply rx_gain_offset to neighbour cell measurements
srsLTE: modify TESTASSERT Macro to follow codeline
SRSUE: prevent RRC from having serving cell in neighbour list
SRSUE: DL HARQ does not need Time Aligment Timer. UL is disabled using PUCCH resources release
SRSUE: extend intra-frequency to CA SCell
SRSUE: fix confusing/ambiguous code in the RRC measurements and fix concurrency issue
SRSUE: remove RRC measurement report triggers when measurements are modified or HO succesful
SRSUE: fix compilation issues and Reest SIB indexes
Fixes sync using incorrect cell configuration when search cell does not find a correct cell
Small refactor to remove measurement report triggers always after removing measurement
SRSUE: Removed SIC PSS from UE
SRSUE: fix inter-frequency reestablishment and added more traces
SRSUE: Fix compilation issue
2020-02-03 12:51:46 +01:00
Francisco Paisana
c8cd12ac53
updated the test logging utils
2020-01-29 17:15:35 +00:00
Francisco Paisana
c537d38650
separated sched tests based on output into a separate file. Added scheduler random tester to unit tests
2020-01-29 17:15:35 +00:00
Francisco Paisana
3e2de6dd3e
new logmap class to store globally accessible logs
2020-01-29 14:20:43 +00:00
Francisco Paisana
07a9e889a4
added a singleton map to facilitate access to each layer logger
2020-01-29 14:20:43 +00:00
Francisco Paisana
91d83fc20d
different way to retrieve a proc future
2020-01-24 10:10:27 +00:00
Xavier Arteaga
d3537fc340
srsLTE: expanded RLC stress test with the addition of multiple PDU per TTI in reverse order
2020-01-24 10:36:41 +01:00
Francisco Paisana
5ae3afd2b8
created cbit_ref for unpacking const buffers
2020-01-23 12:22:19 +00:00
Francisco Paisana
58e555e86c
update all asn1 files
2020-01-23 12:22:19 +00:00
Francisco Paisana
5468189cd9
fix some variables' naming (e.g. x2_ap -> x2ap, e_rab -> erab)
2020-01-21 00:58:19 +00:00
Francisco Paisana
2a83eee0ee
fix security key setup
2020-01-21 00:58:19 +00:00
Francisco Paisana
25bb36cdc3
converted ho preparation to new s1ap asn1 lib. Extended s1ap test
2020-01-21 00:58:19 +00:00
Francisco Paisana
3066b404ac
fix integer ext asn1 generation
2020-01-21 00:58:19 +00:00
Francisco Paisana
c87de9d889
added s1ap_asn1_test
2020-01-21 00:58:19 +00:00
Francisco Paisana
b6c53d786b
updated s1ap rrc interface with new asn1 lib types
2020-01-21 00:58:19 +00:00
Andre Puschmann
c54fa568be
fixing typo in CMake for PHY DL test
2019-12-24 10:51:48 +01:00
Xavier Arteaga
11eafa8ab4
srsLTE: FFTW wisdom gets loaded and saved by default
2019-12-23 22:57:37 +01:00
Andre Puschmann
9e1b8bc95e
disabling certain PHY DL tests that aren't working on ARM due to Turbo issues
2019-12-20 18:54:41 +01:00
Andre Puschmann
476f970ee1
replace FIXME with TODO
2019-12-18 11:25:56 +01:00
Pedro Alvarez
c5979f59eb
Clang format UE, eNB and lib ( #850 )
...
* Clang-formated UE, eNB and lib.
* Fixed compiling errors from clang-format.
* Fix linking issues introduced by clang-format
* Fix poor formating in initializing arrays of arrays.
* Fix mistake in conflict resolution on rm_turbo.c
* Re-apply clang format to gtpc_ies.h
2019-12-16 16:04:22 +01:00
Francisco Paisana
a0d53b0d84
included ngap and rrc nr asn1 in asn1/ folder and added a ngap_test
2019-12-16 12:12:08 +01:00
Andre Puschmann
cf1e742120
add a simple log_filter test to print a long hex message
...
the purpose of this is to show that the hex message is cut if the
lenght exceeds the size of the preallocated buffer
2019-12-14 22:37:08 +01:00
Francisco Paisana
d59016ae68
use of srslte::log* type for ASN1 logging. Initialization of the asn1 and rrc_asn1 loggers done now in both the ue and enb
2019-12-12 15:45:24 +00:00
Francisco Paisana
d270518d69
updated rrc to new srsasn1 version
2019-12-11 19:58:20 +00:00
Andre Puschmann
7885b5b9ee
add CMake flag to enable 5G-NR components
2019-12-11 17:50:11 +01:00
Andre Puschmann
e53910010e
fix missing byte_buffer cleanup
2019-12-10 16:53:44 +01:00
Pedro Alvarez
41e911fd76
Replaced PRIu32 for %u in pdcp_nr_entity
2019-12-04 18:21:14 +01:00
Pedro Alvarez
e1cdd51eba
Clang-formated before pull request
2019-12-04 18:21:14 +01:00
Pedro Alvarez
61958af70b
Timer removes itself from the map upon expiration
2019-12-04 18:21:14 +01:00
Pedro Alvarez
47a918d680
Split PDCP NR tests into multiple files
2019-12-04 18:21:14 +01:00
Pedro Alvarez
c30eb2c166
Starting to add test for when the RLC notifies the PDCP of tx and disarms the discardTimer.
2019-12-04 18:21:14 +01:00
Pedro Alvarez
972d44be23
Remove printfs in test. PDCP seems to be notifing correctly the RLC when discard happens.
2019-12-04 18:21:14 +01:00
Pedro Alvarez
8810f35498
Adding test of SDU discard timout to PDCP NR tests.
2019-12-04 18:21:14 +01:00
Pedro Alvarez
ea0fb00b22
Added test for PDCP SDU discard.
2019-12-04 18:21:14 +01:00
Pedro Alvarez
e68956bcf6
Adding discard timer timeout to PDCP config.
2019-12-04 18:21:14 +01:00
Pedro Alvarez
2e7ddef038
Continue to add discard_sdu to RLC interfaces.
2019-12-04 18:21:14 +01:00
Francisco Paisana
c9f092e8e9
created a nullsink and a TESTASSERT for C
2019-11-28 11:44:54 +00:00
Andre Puschmann
9493e7492c
add initial RLC AM NR status PDU packing code including tests
2019-11-26 16:52:14 +01:00
Andre Puschmann
cea212b9f9
add RLC AM NR PDU packing/unpacking test
2019-11-26 16:52:14 +01:00
Pedro Alvarez
15613465cf
Moving some initialization from init function to constructor in the PDCP entities.
2019-11-21 13:18:30 +01:00
Andre Puschmann
b20f7ba541
refactor RLC UM and add NR receiver
2019-11-16 14:35:16 +01:00
Francisco Paisana
b0e0b3232f
fix linking issue
2019-11-15 17:57:36 +00:00
Francisco Paisana
2de0eee9c7
clean up some comments
2019-11-15 17:57:36 +00:00
Francisco Paisana
76673d2d40
cleaned up socket util methods, and made the S1AP non-blocking.
2019-11-15 17:57:36 +00:00
Francisco Paisana
2c3e4a3daf
creation of util class net_addr_t that provides methods for conversion of IP addr const char* to sockaddr_in
2019-11-15 17:57:36 +00:00
Francisco Paisana
31dffde6c3
simplified interface and made it more generic to different types of sockets
2019-11-15 17:57:36 +00:00
Francisco Paisana
e37a718f21
created a sctp socket class
2019-11-15 17:57:36 +00:00
Francisco Paisana
131b1a7e41
added a class to handle multiple sockets via a select
2019-11-15 17:57:36 +00:00
Andre Puschmann
03bd63d9ab
rename RLC AM class to RLC AM LTE
2019-11-15 16:02:37 +01:00
Andre Puschmann
2d126371f6
adopt PDCP NR to use new timer class
2019-11-07 14:12:08 +01:00
Pedro Alvarez
9998b3e857
Small white space fix and clang-format on pdcp_nr_test.h
2019-11-07 14:12:08 +01:00
Pedro Alvarez
900d535baa
Added test for reception of duplicated packets
2019-11-07 14:12:08 +01:00
Pedro Alvarez
347e10d967
Adding test for reception of duplicate packets.
2019-11-07 14:12:08 +01:00
Pedro Alvarez
3614c1004e
Fixed issue in test with out-of-order packets.
2019-11-07 14:12:08 +01:00
Pedro Alvarez
7542e5a936
Continue to change PDCP test to support timeouts.
2019-11-07 14:12:08 +01:00
Pedro Alvarez
6265325e20
Starting to change test to also run the clock.
2019-11-07 14:12:08 +01:00
Pedro Alvarez
8511fca940
Clang-formated to prepare for PR
2019-11-07 14:12:08 +01:00
Pedro Alvarez
d3a07fdd38
Added check for overflow at RX. Adding more tests.
2019-11-07 14:12:08 +01:00
Pedro Alvarez
eb1470621a
Added function to generate vector of PDUs
2019-11-07 14:12:08 +01:00
Pedro Alvarez
ed24544a63
Added debug print for out of order, wraparound and duplicate RX PDUs. Adding a helper function to help generate a vector of test PDUs
2019-11-07 14:12:08 +01:00
Pedro Alvarez
a191eb6606
Fixed up some PDCP tx tests.
2019-11-07 14:12:08 +01:00
Pedro Alvarez
2752e3cff5
Starting to stop tx'ing packets if TX_NEXT overflows.
2019-11-07 14:12:08 +01:00
Pedro Alvarez
62230c6ab9
Starting to have overflow protection in PDCP NR tx
2019-11-07 14:12:08 +01:00
Pedro Alvarez
f872c1b55a
Added test for PDCP COUNT wraparound. (Needs to be changed, COUNT wraparound is not allowed.)
2019-11-07 14:12:08 +01:00
Pedro Alvarez
f29dd3c5de
Added test for reordering at COUNT wraparound. Failing at the moment (as expected).
2019-11-07 14:12:08 +01:00
Pedro Alvarez
1d56fa6308
Improved speed of tests for COUNT wraparound, by setting the PDCP initial state.
2019-11-07 14:12:08 +01:00
Pedro Alvarez
ffc26a702d
Changed the name of more PDUs
2019-11-07 14:12:08 +01:00
Pedro Alvarez
cb0466bce7
Starting to change the expected pdus name.
2019-11-07 14:12:08 +01:00
Pedro Alvarez
49e0e3a24a
Added helper function to generate expected PDUs
2019-11-07 14:12:08 +01:00
Pedro Alvarez
39943367ab
Starting to add the ability to tweak the initial state of the PDCP NR state, so that the tests of counter wraparound don't take hours.
2019-11-07 14:12:08 +01:00
Pedro Alvarez
517ce8a220
Added test to test out of order COUNT wraparoung. Added setters to help with the testers.
2019-11-07 14:12:08 +01:00
Pedro Alvarez
727436ec0b
Added helper function to compare two packets. Making generic function to test out of order packets.
2019-11-07 14:12:08 +01:00
Pedro Alvarez
43c68fe78b
Sarting to add test for out of order wrap-around.
2019-11-07 14:12:08 +01:00
Pedro Alvarez
ceea761ca4
Added append_bytes method to byte_buffer_t class. Continue to reduce boilerplate.
2019-11-07 14:12:08 +01:00
Pedro Alvarez
59bc2baf3f
Continue to reduce boiler plate
2019-11-07 14:12:08 +01:00
Pedro Alvarez
df7a020e5f
removing some boiler plate
2019-11-07 14:12:08 +01:00
Pedro Alvarez
977238a79c
Added pdcp_nr_test.h to reduce boiler code in the pdcp_nr_test.cc
2019-11-07 14:12:08 +01:00
Pedro Alvarez
837ca9e07e
Changed name of helper class
2019-11-07 14:12:08 +01:00
Pedro Alvarez
be090768c9
Making helper class to reduce boilerplate in PDCP NR tests.
2019-11-07 14:12:08 +01:00
Pedro Alvarez
b7fdcaabc5
Starting to add reordering timers at PDCP NR entity. Timeout seems to be triggered correctly and pass the SDUs to the upper layers when it expires. First tests passing.
2019-11-07 14:12:08 +01:00
Pedro Alvarez
45d298507b
Starting to move pdcp configs to rrc_interface_types. Starting to add test for reorder timeout.
2019-11-07 14:12:08 +01:00
Pedro Alvarez
f06e1af4e0
Added test for receiving out of order NR PDCP packets
2019-11-07 14:12:08 +01:00
Pedro Alvarez
ff15ed5018
Starting to add timers to the NR PDCP.
2019-11-07 14:12:08 +01:00
Andre Puschmann
f4a0bebe1f
fix handling of invalid MAC LCIDs
2019-10-31 21:43:27 +01:00
Andre Puschmann
aa9733eb59
add packing for CCCH over UL-SCH for MAC NR
2019-10-31 21:43:27 +01:00
Francisco Paisana
9ae5563331
fixed timer issue with setting the duration. Setting the duration cannot reset the on-going timer run
2019-10-23 19:33:25 +01:00
Francisco Paisana
d2c56caf7e
applied new timer class to the whole code base
2019-10-23 19:33:25 +01:00
Francisco Paisana
5953d5ef96
fixed some potential bug related to timer getting stopped, but signaling that it expired
2019-10-23 19:25:48 +01:00
Francisco Paisana
551192705e
allow for pre-reservation of timers vector and priority queue
2019-10-23 19:25:48 +01:00
Francisco Paisana
50a1c9d557
addressed potential overflow, and extended timer test to check if ordering is working correctly
2019-10-23 19:25:48 +01:00
Francisco Paisana
349646a9da
created a new class for timers. It uses a priority queue to avoid incrementing all timers every tti (step_all() went from O(N) to O(1)), and that is not bounded in number of timers. Not being bounded will be useful for layers that require one or more timers per UE
2019-10-23 19:25:48 +01:00
Francisco Paisana
f2d88e5a5b
simplified NAS rrc connection request procedure
...
move non-type-specific methods of proc_t to its base class.
procedure state machine was simplified via a future-type. Now procedures dont get stuck until the user reads the procedure outcome.
made the NAS procedures more event trigger/reaction-based.
2019-10-23 18:19:25 +02:00
Francisco Paisana
8864787f59
added the continuation functionality to procedures via the "then()" method.
2019-10-23 18:19:25 +02:00
Francisco Paisana
c1be118d1d
new wrapper-based design for stack procedures. Removes extra base class, gets rid of spurious copies/moves during the pop(), and allows the use of a non-default ctor()
2019-10-23 18:19:25 +02:00
Andre Puschmann
89889d6df5
add packing and unpacking test for MAC PDU only containing padding bytes
2019-10-11 17:35:52 +02:00
Andre Puschmann
f07a9277a0
fix RLC AM issue where an invalid status PDU was generated
...
happens when very small grant is provided and the status
PDU generation fails because of a too small grant
add extra check to prevent that ACK_SN is also in NACKS list
2019-10-04 16:29:03 +02:00
Francisco Paisana
a2f1998350
fix issue with thread pool shut down
2019-10-04 10:24:21 +02:00
Francisco Paisana
3f1fad3f4e
bug fix: avoid renaming thread in worker ctor
2019-10-04 10:24:21 +02:00
Francisco Paisana
c413fadea9
created a queue-based thread pool. Tasks are inserted into a queue and then popped by the thread pool workers to be processed.
2019-10-02 11:04:47 +02:00
Andre Puschmann
2f47010eb6
fix various uninitialized vars
2019-09-24 13:23:30 +02:00
Andre Puschmann
c99d5077c8
add RLC UM NR transmitter
2019-09-20 16:33:25 +02:00
Francisco Paisana
7e67aee839
resolved the uninit variable issue in the queue_test
2019-09-18 12:18:33 +02:00
Francisco Paisana
b2bc05c50a
make queue_test less dependent on thread timings
2019-09-18 12:18:33 +02:00
Francisco Paisana
ceba00f00e
extended multiqueue to support blocking push
2019-09-18 12:18:33 +02:00
Francisco Paisana
63457f195c
extented queue test
2019-09-18 12:18:33 +02:00
Francisco Paisana
647c624423
created a multiqueue handler, and started using it for the ue stack
2019-09-18 12:18:33 +02:00
Andre Puschmann
6baa89cd2c
add MAC NR PDU packing and associated unit tests
2019-09-17 17:19:13 +02:00
Ismael Gomez
6bb0790cf1
Fix coverty issues ( #652 )
2019-09-13 15:06:20 +02:00
Pedro Alvarez
004db4a067
Applied clang-format to zuc_support PR.
2019-09-10 13:46:21 +02:00
David Rupprecht
f05bb12c78
Process with EIA3 test cases and fix EIA3
2019-09-10 13:46:21 +02:00
David Rupprecht
d580a94dab
Add EIA3 and test case
2019-09-10 13:46:21 +02:00
David Rupprecht
7e13860dd5
Add decryption function and all tests for enc
2019-09-10 13:46:21 +02:00
David Rupprecht
ef4cf7aa52
First ZUC working test case
2019-09-10 13:46:21 +02:00
Ismael Gomez
bfddc55148
RRC-PHY interface ( #639 )
...
RRC-PHY interface refactor. Moved RRC-MAC interface to rrc_asn1_utils and created RRC-PHY interface also in rrc_asn1_utils. All ASN1 includes should be made from rrc_asn1_utils only keeping ue_interfaces clean of ASN1
Tested with different common and dedicated configurations (64QAM UL, 256QAM, CA, SRS enabled/disabled, etc)
2019-09-04 16:59:10 +02:00
Ismael Gomez
c92c61d560
Optimized front-end logging processing ( #641 )
...
Avoid memory allocation and stringstream in log frontend calls (executed from worker threads). Uses a buffer pool of fixed buffer and vsnprintf
2019-09-04 15:32:29 +02:00
Francisco Paisana
67d6a25194
Moving mac timers to stack timers ( #638 )
...
* first step towards moving MAC timers to stack. Mac is still using its own timers. srslte::timers class can be restructured.
* moved timers out of the UE MAC
2019-09-04 15:28:09 +02:00
Ismael Gomez
69edee4e6c
Fix issues in uplink QoS ( #636 )
...
Fix bugs in Long BSR and Truncated BSR and added unit tests
2019-09-02 22:48:41 +02:00
Francisco Paisana
ad64207a32
added test for unknown group extensions, and the asn1 lib version in its generated files
2019-09-02 20:21:54 +02:00
Francisco Paisana
c9d3b61038
added resumable procedures to make RRC and NAS non-blocking
2019-08-08 10:56:54 +02:00
Andre Puschmann
e42449532b
fix wrong namespace definition in various places
2019-08-07 15:32:49 +02:00
Pedro Alvarez
6efa944b5e
Removed srslte prefix from pdcp_config_t
2019-07-30 15:01:50 +02:00
Pedro Alvarez
8c10eabf23
Changed PDCP LTE to use unique_lock.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
494be243c0
Changed security direction to use an enum.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
491695ab77
Clang-formated PDCP NR PR.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
38bbc55631
Added tests for PDCP NR Rx with SN Len = 18. In-sequence reception seems to work.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
d4aeb12db8
Adding more TX tests to PDCP NR entity.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
39e3800781
Fixed header packing for SN length 18 for PDCP NR. First TX test is passing.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
d399c65082
Starting to add PDCP SN len 18 unit tests.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
7a69e8ba64
Removed comment.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
adfe9f950e
Fixed issue in computing the SN. Added test for packets received in sequence for PDCP NR. Test is passing now.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
2104e6bbcf
Added test for more TX packets in PDCP NR. Tests passing for TX_NEXT = 0, 2048 and 4096
2019-07-30 15:01:50 +02:00
Pedro Alvarez
ecd164ed65
Starting to add more tx tests to PDCP NR tests.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
af2b593b8c
Added check for integrity in test. First Rx PDCP NR test passing.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
d3b6828082
Changed PDCP configuration to explicitly have tx and rx direction. Decrypt on PDCP NR seems fine.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
7e6725f0a2
Fixing up PDCP NR tx test. Starting to add rx test.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
378c8d247e
Starting to add the mechanisms to store the last PDU in the PDCP tests.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
73e30743d1
Added enum to PDCP config to replace two bools.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
457f35699d
Reverted back to a single config structure between PDCP NR and PDCP LTE.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
810cacdc02
Adding write_data_header and append_mac helper functions to PDCP NR entity.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
d1ac121100
Writting PDU into PDCP in tx test.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
c9e99443d8
Adding PDCP NR Tx test.
2019-07-30 15:01:50 +02:00