Pedro Alvarez
6ca8bc12ec
Fix wrong SN in RLC status PDU when packet is dropped.
4 years ago
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
4 years ago
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.
4 years ago
Francisco Paisana
f8b7351e1b
implementation of object memory pool via class-specific operator new/delete
4 years ago
Francisco Paisana
e96b8c263a
add mem pool test. fix mem pool leak bug
4 years ago
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
4 years ago
Xavier Arteaga
b3200d9ef5
Renaming common UL/DL DMRS related types and initial NR PUSCH implementation
4 years ago
Xavier Arteaga
13443c3f8c
Added number of DMRS CDM groups without data to NR grant
4 years ago
Francisco Paisana
74ffe393c6
asn1 update: s1ap asn1 is now v16.1 (2020-03)
4 years ago
Francisco Paisana
66aa34d173
update RRC NR ASN1 to 2020-09 v15.11
4 years ago
Andre Puschmann
d5daf60773
pdu_test: add unpacking test for DL-SCH PDU containing TA command
4 years ago
Francisco Paisana
e27c0869e5
update RRC ASN1 to 2020-09 v15.11
4 years ago
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
4 years ago
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
4 years ago
faluco
f23fdf0639
Include missing files.
4 years ago
faluco
98a2c868b5
Update srslog to latest version.
4 years ago
Francisco
b86d2ab7d0
move choice_type to adt folder
4 years ago
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.
4 years ago
Francisco
b41fc96d6d
fix asn1 integer packing for integer values whose length is equal or above 32 bits
4 years ago
Pedro Alvarez
38206bea69
Fixed RLC AM fixed header size in get_buffer_state function. Fixed RLC AM tests accordingly.
4 years ago
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
4 years ago
Francisco
fc451f17f0
implementation of bounded_vector and respective unit test
4 years ago
Xavier Arteaga
788ed5ce70
Corrected PDCCH SEGFAULT
4 years ago
Xavier Arteaga
e07cf513d0
Improved NR blind search and DL test
4 years ago
Xavier Arteaga
c635b1e467
Initial NR DCI blind-search
4 years ago
Andre Puschmann
47c5f9e85b
remove AGPL header from remaining cpp files
...
* also add commercial header to come CMake helpers
4 years ago
Xavier Arteaga
f9643843a0
SRSENB/UE Fixed NR workers
4 years ago
Xavier Arteaga
ac930003be
SRSUE: Integrated NR workers
4 years ago
Xavier Arteaga
eed9405e40
Moved NR MAX MIMO layers to carrier
4 years ago
Andre Puschmann
07d2bc4fe8
change license header to agnostic version with hint to root LICENSE file
4 years ago
Francisco
66712023bb
remove unneeded includes of full rrc asn1 lib
4 years ago
Xavier Arteaga
0396ebae17
Fix UE/ENB DL NR
4 years ago
Xavier Arteaga
8de2870788
Added NR ue_dl, enb_dl and test
4 years ago
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)
4 years ago
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
4 years ago
Francisco Paisana
510959b50f
update nr asn1 files, and asn1 tests
4 years ago
David Rupprecht
387a84ff84
Updated missing byte
4 years ago
David Rupprecht
b85cb614aa
Added test cases for asn1 decoding lib from pcap
4 years ago
Francisco Paisana
c7697b62a6
fix asn1_utils_test. arrays used for equal comparison where not being initialized.
4 years ago
Francisco Paisana
698af97ec4
updated asn1 utils to account for conversion from 0 to bitstring. Added asn1 utils test to repository.
4 years ago
Andre Puschmann
48e7734188
phy_dl_test: fix uninit var
4 years ago
Pedro Alvarez
b43e724b4c
Remove packing/unpacking code for M2AP.
4 years ago
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.
4 years ago
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
4 years ago
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.
4 years ago
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
4 years ago
Ismael Gomez
54eed11e1d
Refactor decision for extended CSI/SRS
4 years ago
Ismael Gomez
e2154d2213
Renamed constants to SRSLTE and use SRSLTE_CFI macros
4 years ago
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
4 years ago
Francisco Paisana
834c0b3929
integrated new observer pattern into phy controller fsm
4 years ago
Francisco Paisana
b2313e3631
observer pattern classes. Allows auto and explicit dispatch, and specifying which trigger method to use of an observer.
4 years ago
Francisco Paisana
7cd4f45d62
fsm refactor.
...
- avoid triggering directly a subfsm
- improved metafunctions
- other cleanups
4 years ago
Francisco Paisana
9146e6ddf1
change method name to resize intervals
4 years ago
Francisco Paisana
4457bbda7e
added new asserts to interval interface
4 years ago
Francisco Paisana
8b174ce2f4
changed interval interface to disallow interval::stop < interval::start via an assertion
4 years ago
Francisco Paisana
c1755727d7
changed interval method names, and added comments and assertions
4 years ago
Francisco Paisana
20b69fb22e
substitution of ul_alloc_t for prb_interval
4 years ago
Francisco Paisana
857cc141c7
fix macro checking for exceptions, added missing includes, fixed bounded bitset methods' noexcept specifiers
4 years ago
Francisco Paisana
cceeff10de
moved expected, bounded_bitset, move_callback to adt folder. created a test for bitset
4 years ago
Francisco Paisana
caf862c99f
moved expected, bounded_bitset, move_callback to adt folder. created a test for bitset
4 years ago
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.
4 years ago
faluco
158edd4fe7
Removed init list constructor test.
4 years ago
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.
4 years ago
Francisco Paisana
76a62909c1
use of span type for universal array views
4 years ago
Francisco Paisana
a9d882c1f1
fix task_scheduler_test. Fix potential reference invalidation in task_scheduler internal tasks data structure
4 years ago
Francisco Paisana
9d877e55b3
add test for when scope exit lambda is an lvalue
4 years ago
Francisco Paisana
0f67bee556
creation of a scope exit standalone file. Created a new folder ADT. Added test for scope exit.
4 years ago
faluco
cfd3f51931
Import of srslog into srsepc and srsenb. ( #1574 )
...
* - Import of srslog into srsepc and srsenb.
* - Removed logger_file and logger_stdout files.
4 years ago
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.
4 years ago
Andre Puschmann
c8b4ba885b
rename rlc_tx_queue to byte_buffer_queue
...
this data structure will be used by the PDCP layer as well.
4 years ago
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
4 years ago
Francisco Paisana
7c364070ee
creation of task scheduler interface for classes/functions running outside the main control thread
4 years ago
Francisco Paisana
1a9c04bf2f
use of task scheduler handle in pdcp
4 years ago
Francisco Paisana
4f5e65781f
created task scheduler class to deal with timers, thread pool, multiqueue, internal tasks
4 years ago
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
4 years ago
Andre Puschmann
58e255cb63
pdu_test: add unit test to verify correct packing of 3B PDU with Short BSR
4 years ago
Andre Puschmann
5589816690
pdu_test: fix PCAP output
...
API now requires to pass CC index
4 years ago
Francisco Paisana
e550bf726d
updated fsm to allow enter methods to receive event that caused them
4 years ago
Francisco Paisana
84f34bc736
changed to a label filtering approach for ctest
4 years ago
Francisco Paisana
ebb8f18000
set some extra tests with the prefix "long_"
4 years ago
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.
4 years ago
Andre Puschmann
df50dd7d3c
rlc: extend RLC metrics
...
extend RLC metrics to count Rx/Tx PDUs/SDUs bytes/#
4 years ago
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
4 years ago
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
4 years ago
Andre Puschmann
96726a03e0
rlc_stress_test: fix PCAP support
...
expose actual RLC configuration to PCAP object
4 years ago
Andre Puschmann
1c7bfde404
rlc_stress_test: fix compilation with PCAP enabled
4 years ago
Francisco Paisana
e3e9bbcd62
fix PNF PDU size cutting
4 years ago
Francisco Paisana
a0606669e2
fix ue nr gw initialization
4 years ago
Francisco Paisana
e6418b4b39
fix variable naming
4 years ago
Francisco Paisana
1d07258458
created pnf bridge executable
4 years ago
Francisco Paisana
f0874b780b
add radio_base/null classes
4 years ago
Francisco Paisana
64e8f5e3ed
update license year
4 years ago
Pedro Alvarez
9c1a7d2cf1
Removed get_bearer_status in PDCP. Renamed get_state/set_state to
...
get_bearer_state/set_bearer_state.
4 years ago
Pedro Alvarez
208a539499
Split PDCP tx_count state variable into tx_hfn and next_pdcp_tx_sn
...
variables.
4 years ago
Pedro Alvarez
08578a7331
Switched to use a struct to hold the PDCP entity state variables. Deleted some unecessary setters.
4 years ago
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
4 years ago
Francisco Paisana
27e5d98ef9
added vnf phy nr
4 years ago
Francisco Paisana
b05ce2fe57
added pnf_dummy test
4 years ago
Francisco Paisana
8a022fb35b
fix noexcept declaration issue in gcc4.8
4 years ago
Francisco Paisana
6509399ed3
fix for move-only events
4 years ago
Francisco Paisana
12dda03bb8
add ability for fsms to self-trigger
4 years ago
Xavier Arteaga
039f2164a6
Initial Sounding Reference Signals implementation
4 years ago
Francisco Paisana
edba7f57e4
corrected mac_nr_pdu includes
5 years ago
Francisco Paisana
b4b5cd7cd6
added nr gnb and ue interfaces
5 years ago
Francisco Paisana
a2b76a4a5f
use references rather than pointers
5 years ago
Francisco Paisana
a88bffa5d5
created expected type and respective test
5 years ago
Francisco Paisana
cf9d31ea64
fix coverity warning for useless call
5 years ago
Francisco Paisana
2204cab4c8
old gcc version cannot support the detected pattern. Removing it
5 years ago
Francisco Paisana
e3d0b1c89e
format missing fsm table
5 years ago
Francisco Paisana
f4d19a6d44
added fsm table formmatting comments
5 years ago
Francisco Paisana
3ef8c67d67
enter/exit are now inside the state class. No need for friend classes anymore
5 years ago
Francisco Paisana
9b48130ae1
use of transition table to support guards in fsms
5 years ago
Francisco Paisana
04e192eb0f
redesign fsm to use transition table
5 years ago
Francisco Paisana
e79fc9bf08
fixed generation of ie containers of one single ie object
5 years ago
Xavier Arteaga
d94078d543
Minor changes
...
Fix UE sequence generation
minor change
5 years ago
Xavier Arteaga
9d0a3268e8
Added DL channel estimator algorithm options
5 years ago
Andre Puschmann
39680ffd26
rrc_asn1_decoder: fix uninit var
5 years ago
Francisco Paisana
1c74c5675e
remove ambiguous enter/exit template method
5 years ago
Francisco Paisana
e1ac6d7cfe
use macro to disable throw
5 years ago
David Rupprecht
4e283ec942
Standalone decoders for nas and rrc in asn1 test. Thanks Dirk
5 years ago
Andre Puschmann
5d92111586
pcap: adding SL-SCH support
5 years ago
Francisco Paisana
b506e29b72
removed common ce_typeenum
5 years ago
Francisco Paisana
6ddedd5972
moved pdu to common mac folder
5 years ago
Francisco Paisana
df0da116ce
removed enter state visitor, and srslte::same_state return special case in fsms
5 years ago
Francisco Paisana
63142899d1
simplified some of the fsm sfinae conditions
5 years ago
Francisco Paisana
6322e447e9
fixed issue with subfsm revisits not starting in initial substate
5 years ago
Francisco Paisana
d40dcd28f3
removed uneeded swap method
5 years ago
Francisco Paisana
b5abba41a3
use normal polymorphism to create vtable
5 years ago
Francisco Paisana
e2b10307ea
changed inplace_task name to move_callback
5 years ago
Francisco Paisana
ee50ed08c2
allow inplace task to be called in const contexts
5 years ago
Francisco Paisana
ef834b3c60
changed inplace_task file name
5 years ago
Francisco Paisana
a6b7c5d1d2
inplace task now uses small buffer optimization for bigger captures
5 years ago
Francisco Paisana
4b2b76cf01
created inplace task to avoid mallocs in task enqueuing
5 years ago
Andre Puschmann
ba4d0aa860
remove blacklisted ARM PHY tests
...
issue causing decoding failure for QAM256 are fixed now so blacklist can go away
5 years ago
Xavier Arteaga
71476d1079
Minor phy_dl_test modification
5 years ago
Francisco Paisana
4ac07e5abb
simplified power off state transition
5 years ago
Francisco Paisana
ff988127fe
wrote nas fsm test
5 years ago
Francisco Paisana
977a1acc5e
eliminated unhandled_event special function. Use react instead.
5 years ago
Francisco Paisana
6e34dadce2
reverted back to tuples to store fsm state_list
5 years ago
Francisco Paisana
4036a6887a
clean up enter/exit state methods
5 years ago
Francisco Paisana
8d3427e88a
removed namespacing from state printing
5 years ago
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
5 years ago
Francisco Paisana
4a4827a603
created a method to detect unhandled events
5 years ago
Francisco Paisana
ec3ef4474e
created a simple procedure fsm
5 years ago
Francisco Paisana
1aae510e9d
enter/exit are now being called in order
5 years ago
Francisco Paisana
2e15514d00
fix enter/exit calls
5 years ago
Francisco Paisana
dc0427804f
clean up comments and add some util functions
5 years ago
Francisco Paisana
7dc1489ea7
reintroduced optional enter/exit methods for each state
5 years ago
Francisco Paisana
6675e92806
implement fsm based on choice type
5 years ago
Francisco Paisana
018f9e7db2
implement visit pattern
5 years ago