Francisco Paisana
018f9e7db2
implement visit pattern
5 years ago
Francisco Paisana
278a1686fb
creation of choice/variant type
5 years ago
Francisco Paisana
a2ade9edd1
break down rrc_interface_types.h into multiple files. moved pdcp_config.h to same folder
5 years ago
Francisco Paisana
2950d26daa
remove asn1 namespace from srsue files
5 years ago
Xavier Arteaga
9a2b0b7cc7
Standard vector allocation uses vector library
5 years ago
Francisco Paisana
30ae2226c1
common interface for stack multiqueue tasks, background tasks and timers
5 years ago
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.
5 years ago
Francisco Paisana
67f6eebf61
fix rlc stress test to reflect threading in stack
5 years ago
Andre Puschmann
5e9aa38551
pdcp: add test for reception of dublicate PDU
5 years ago
Francisco Paisana
8aa44928e9
fix 5g compilation errors
5 years ago
Francisco Paisana
344eaf49ec
use logmap in the whole enb and ue
5 years ago
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 ")
5 years ago
Francisco Paisana
82cb6baef0
now the whole ue and enb mac uses the logmap
5 years ago
Xavier Arteaga
e832769ae6
Updated copyright
5 years ago
Francisco Paisana
5330249625
created tti_point type and unit test. Added also the tti_point to the scheduler harqs, and rrc procedure
5 years ago
Francisco Paisana
7548402632
change scell activation interface to use arrays. Added a method to the scheduler to get the current set of activated carriers
5 years ago
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.
5 years ago
Francisco Paisana
aaa333c1ff
removed some clang warnings
5 years ago
Francisco Paisana
62609fdc11
fixed some logs. Also now use one single log obj for all the asn1
5 years ago
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.
5 years ago
Francisco Paisana
6b96d21732
extension of the timer test to check safe running timer erasure
5 years ago
Francisco Paisana
5b2da779b7
new method in timer_handler to dispatch calls without an associated unique_timer
5 years ago
Francisco Paisana
af76778fc8
remove fixmes
5 years ago
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
5 years ago
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
5 years ago
Xavier Arteaga
f261365c91
Initial EVM calculation commit and other easthetic changes
5 years ago
Pedro Alvarez
830dffb05b
Small change in pkt compare function.
5 years ago
Pedro Alvarez
5dd081846b
Removed unnecessary macro and some newlines.
5 years ago
Pedro Alvarez
aecfb151ce
Apply clang-format to the lib in preperation for PR.
5 years ago
Pedro Alvarez
940626108b
Fix PDCP DRB test. Enabled encryption on PDCP LTE tests. Tests passing now.
5 years ago
Pedro Alvarez
d98b888ca4
Separating PDCP read_header function from discard_header_function. Starting to add DRB unit test.
5 years ago
Pedro Alvarez
dbb5c6c06c
Adding PDCP LTE SRB1 test. Test failing for now.
5 years ago
Pedro Alvarez
284a0f7b4e
Starting to add PDCP LTE unit tests. Test failing for now.
5 years ago
Pedro Alvarez
b841859220
Moved pdcp test functionality to a common header. Fixed linking issue in 5GNR PDCP
5 years ago
Francisco Paisana
64c9302b43
added wireshark generation to SCell Activation CE pdu_test
5 years ago
Francisco Paisana
e51e2ac062
added scell activation to pdu_test
5 years ago
Xavier Arteaga
d66fdefbb3
Added more docs to PUCCH 1b CS resource selection
5 years ago
Xavier Arteaga
1f762844ee
Initial PUCCH format 3 decoder
5 years ago
Xavier Arteaga
35f4e5d69a
Initial PUCCH 1B with channel selection
5 years ago
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
5 years ago
Xavier Arteaga
0edd8f74d8
fix memory leak in timer test
5 years ago
Xavier Arteaga
b88a8635f1
Reduce stress timer test number of timers
5 years ago
Xavier Arteaga
e0cc1fd697
Reduce time of timer_test; use unique_lock instead of guard
5 years ago
Xavier Arteaga
22da8dfbb1
srsLTE: protected priority queue in timers
5 years ago
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
5 years ago
Francisco Paisana
c8cd12ac53
updated the test logging utils
5 years ago
Francisco Paisana
c537d38650
separated sched tests based on output into a separate file. Added scheduler random tester to unit tests
5 years ago
Francisco Paisana
3e2de6dd3e
new logmap class to store globally accessible logs
5 years ago
Francisco Paisana
07a9e889a4
added a singleton map to facilitate access to each layer logger
5 years ago
Francisco Paisana
91d83fc20d
different way to retrieve a proc future
5 years ago
Xavier Arteaga
d3537fc340
srsLTE: expanded RLC stress test with the addition of multiple PDU per TTI in reverse order
5 years ago
Francisco Paisana
5ae3afd2b8
created cbit_ref for unpacking const buffers
5 years ago
Francisco Paisana
58e555e86c
update all asn1 files
5 years ago
Francisco Paisana
5468189cd9
fix some variables' naming (e.g. x2_ap -> x2ap, e_rab -> erab)
5 years ago
Francisco Paisana
2a83eee0ee
fix security key setup
5 years ago
Francisco Paisana
25bb36cdc3
converted ho preparation to new s1ap asn1 lib. Extended s1ap test
5 years ago
Francisco Paisana
3066b404ac
fix integer ext asn1 generation
5 years ago
Francisco Paisana
c87de9d889
added s1ap_asn1_test
5 years ago
Francisco Paisana
b6c53d786b
updated s1ap rrc interface with new asn1 lib types
5 years ago
Andre Puschmann
c54fa568be
fixing typo in CMake for PHY DL test
5 years ago
Xavier Arteaga
11eafa8ab4
srsLTE: FFTW wisdom gets loaded and saved by default
5 years ago
Andre Puschmann
9e1b8bc95e
disabling certain PHY DL tests that aren't working on ARM due to Turbo issues
5 years ago
Andre Puschmann
476f970ee1
replace FIXME with TODO
5 years ago
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
5 years ago
Francisco Paisana
a0d53b0d84
included ngap and rrc nr asn1 in asn1/ folder and added a ngap_test
5 years ago
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
5 years ago
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
5 years ago
Francisco Paisana
d270518d69
updated rrc to new srsasn1 version
5 years ago
Andre Puschmann
7885b5b9ee
add CMake flag to enable 5G-NR components
5 years ago
Andre Puschmann
e53910010e
fix missing byte_buffer cleanup
5 years ago
Pedro Alvarez
41e911fd76
Replaced PRIu32 for %u in pdcp_nr_entity
5 years ago
Pedro Alvarez
e1cdd51eba
Clang-formated before pull request
5 years ago
Pedro Alvarez
61958af70b
Timer removes itself from the map upon expiration
5 years ago
Pedro Alvarez
47a918d680
Split PDCP NR tests into multiple files
5 years ago
Pedro Alvarez
c30eb2c166
Starting to add test for when the RLC notifies the PDCP of tx and disarms the discardTimer.
5 years ago
Pedro Alvarez
972d44be23
Remove printfs in test. PDCP seems to be notifing correctly the RLC when discard happens.
5 years ago
Pedro Alvarez
8810f35498
Adding test of SDU discard timout to PDCP NR tests.
5 years ago
Pedro Alvarez
ea0fb00b22
Added test for PDCP SDU discard.
5 years ago
Pedro Alvarez
e68956bcf6
Adding discard timer timeout to PDCP config.
5 years ago
Pedro Alvarez
2e7ddef038
Continue to add discard_sdu to RLC interfaces.
5 years ago
Francisco Paisana
c9f092e8e9
created a nullsink and a TESTASSERT for C
5 years ago
Andre Puschmann
9493e7492c
add initial RLC AM NR status PDU packing code including tests
5 years ago
Andre Puschmann
cea212b9f9
add RLC AM NR PDU packing/unpacking test
5 years ago
Pedro Alvarez
15613465cf
Moving some initialization from init function to constructor in the PDCP entities.
5 years ago
Andre Puschmann
b20f7ba541
refactor RLC UM and add NR receiver
5 years ago
Francisco Paisana
b0e0b3232f
fix linking issue
5 years ago
Francisco Paisana
2de0eee9c7
clean up some comments
5 years ago
Francisco Paisana
76673d2d40
cleaned up socket util methods, and made the S1AP non-blocking.
5 years ago
Francisco Paisana
2c3e4a3daf
creation of util class net_addr_t that provides methods for conversion of IP addr const char* to sockaddr_in
5 years ago
Francisco Paisana
31dffde6c3
simplified interface and made it more generic to different types of sockets
5 years ago
Francisco Paisana
e37a718f21
created a sctp socket class
5 years ago
Francisco Paisana
131b1a7e41
added a class to handle multiple sockets via a select
5 years ago
Andre Puschmann
03bd63d9ab
rename RLC AM class to RLC AM LTE
5 years ago
Andre Puschmann
2d126371f6
adopt PDCP NR to use new timer class
5 years ago
Pedro Alvarez
9998b3e857
Small white space fix and clang-format on pdcp_nr_test.h
5 years ago
Pedro Alvarez
900d535baa
Added test for reception of duplicated packets
5 years ago
Pedro Alvarez
347e10d967
Adding test for reception of duplicate packets.
5 years ago
Pedro Alvarez
3614c1004e
Fixed issue in test with out-of-order packets.
5 years ago
Pedro Alvarez
7542e5a936
Continue to change PDCP test to support timeouts.
5 years ago
Pedro Alvarez
6265325e20
Starting to change test to also run the clock.
5 years ago
Pedro Alvarez
8511fca940
Clang-formated to prepare for PR
5 years ago
Pedro Alvarez
d3a07fdd38
Added check for overflow at RX. Adding more tests.
5 years ago
Pedro Alvarez
eb1470621a
Added function to generate vector of PDUs
5 years ago
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
5 years ago
Pedro Alvarez
a191eb6606
Fixed up some PDCP tx tests.
5 years ago
Pedro Alvarez
2752e3cff5
Starting to stop tx'ing packets if TX_NEXT overflows.
5 years ago
Pedro Alvarez
62230c6ab9
Starting to have overflow protection in PDCP NR tx
5 years ago
Pedro Alvarez
f872c1b55a
Added test for PDCP COUNT wraparound. (Needs to be changed, COUNT wraparound is not allowed.)
5 years ago
Pedro Alvarez
f29dd3c5de
Added test for reordering at COUNT wraparound. Failing at the moment (as expected).
5 years ago
Pedro Alvarez
1d56fa6308
Improved speed of tests for COUNT wraparound, by setting the PDCP initial state.
5 years ago
Pedro Alvarez
ffc26a702d
Changed the name of more PDUs
5 years ago
Pedro Alvarez
cb0466bce7
Starting to change the expected pdus name.
5 years ago
Pedro Alvarez
49e0e3a24a
Added helper function to generate expected PDUs
5 years ago
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.
5 years ago
Pedro Alvarez
517ce8a220
Added test to test out of order COUNT wraparoung. Added setters to help with the testers.
5 years ago
Pedro Alvarez
727436ec0b
Added helper function to compare two packets. Making generic function to test out of order packets.
5 years ago
Pedro Alvarez
43c68fe78b
Sarting to add test for out of order wrap-around.
5 years ago
Pedro Alvarez
ceea761ca4
Added append_bytes method to byte_buffer_t class. Continue to reduce boilerplate.
5 years ago
Pedro Alvarez
59bc2baf3f
Continue to reduce boiler plate
5 years ago
Pedro Alvarez
df7a020e5f
removing some boiler plate
5 years ago
Pedro Alvarez
977238a79c
Added pdcp_nr_test.h to reduce boiler code in the pdcp_nr_test.cc
5 years ago
Pedro Alvarez
837ca9e07e
Changed name of helper class
5 years ago
Pedro Alvarez
be090768c9
Making helper class to reduce boilerplate in PDCP NR tests.
5 years ago
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.
5 years ago
Pedro Alvarez
45d298507b
Starting to move pdcp configs to rrc_interface_types. Starting to add test for reorder timeout.
5 years ago
Pedro Alvarez
f06e1af4e0
Added test for receiving out of order NR PDCP packets
5 years ago
Pedro Alvarez
ff15ed5018
Starting to add timers to the NR PDCP.
5 years ago
Andre Puschmann
f4a0bebe1f
fix handling of invalid MAC LCIDs
5 years ago
Andre Puschmann
aa9733eb59
add packing for CCCH over UL-SCH for MAC NR
5 years ago
Francisco Paisana
9ae5563331
fixed timer issue with setting the duration. Setting the duration cannot reset the on-going timer run
5 years ago
Francisco Paisana
d2c56caf7e
applied new timer class to the whole code base
5 years ago
Francisco Paisana
5953d5ef96
fixed some potential bug related to timer getting stopped, but signaling that it expired
5 years ago
Francisco Paisana
551192705e
allow for pre-reservation of timers vector and priority queue
5 years ago
Francisco Paisana
50a1c9d557
addressed potential overflow, and extended timer test to check if ordering is working correctly
5 years ago
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
5 years ago
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.
5 years ago
Francisco Paisana
8864787f59
added the continuation functionality to procedures via the "then()" method.
5 years ago
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()
5 years ago
Andre Puschmann
89889d6df5
add packing and unpacking test for MAC PDU only containing padding bytes
5 years ago
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
5 years ago
Francisco Paisana
a2f1998350
fix issue with thread pool shut down
5 years ago
Francisco Paisana
3f1fad3f4e
bug fix: avoid renaming thread in worker ctor
5 years ago
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.
5 years ago
Andre Puschmann
2f47010eb6
fix various uninitialized vars
5 years ago
Andre Puschmann
c99d5077c8
add RLC UM NR transmitter
5 years ago
Francisco Paisana
7e67aee839
resolved the uninit variable issue in the queue_test
5 years ago
Francisco Paisana
b2bc05c50a
make queue_test less dependent on thread timings
5 years ago
Francisco Paisana
ceba00f00e
extended multiqueue to support blocking push
5 years ago
Francisco Paisana
63457f195c
extented queue test
5 years ago
Francisco Paisana
647c624423
created a multiqueue handler, and started using it for the ue stack
5 years ago