Andre Puschmann
e227916819
mac_sch_pdu_nr: add SBSR, PHR and CRNTI packing
2021-02-05 15:55:21 +01:00
Andre Puschmann
6a0f3d0bc5
common_helper: remove newline
2021-02-05 15:55:21 +01:00
Andre Puschmann
4ca43c6804
mac_sch_pdu_nr: add unpacking helpers for CRNTI, SBSR and PHR CEs
...
* unpackers for CEs
* testcase with TV
2021-02-05 15:55:21 +01:00
Xavier Arteaga
a154bef23f
Added incremental phase in NR-PUSCH modulator
2021-02-05 15:55:03 +01:00
Xavier Arteaga
8f57437e6f
Add NR-PUSCH-DMRS amplitude option and procedure
2021-02-05 15:55:03 +01:00
Xavier Arteaga
a19671802e
Added SRSUE NR-PUSCH initial procedures
2021-02-05 15:55:03 +01:00
Xavier Arteaga
19e9c25d1d
Added ZMQ Tx sample offset
2021-02-05 15:55:03 +01:00
Pedro Alvarez
7b25eac47c
Fix race condition in rlc_am_stress test and other fixes related to this
...
test. The race condition was being cause by write_sdu being called
simultanously to read_pdu, which could cause the read_pdu to try to get
the SDU info before it had been written by the write_sdu.
Changes in this commit include:
- Make sure PDCP sn in included in RLC AM stress test.
- Stop handling control PDU when TX is not enabled in RLC AM.
- Fixed issue with length of the PDCP SN in rlc_stress_test.
- Moved the place were sdu info erase was called to avoid double calls to erase
- Tentative fix for race condition in rlc_am_stress test.
- Added function to print information about undelivered_sdu_info_queue
for debugging.
2021-02-05 12:24:50 +00:00
Pedro Alvarez
2b092ddc85
Initialize byte_buffer metadata to avoid unintialized variable warnings.
2021-02-05 12:24:50 +00:00
Pedro Alvarez
261c2b2e03
Removed limit to the undelivered SDUs info queue in RLC AM. Printing a warning if the queue is getting large instead.
2021-02-05 12:24:50 +00:00
Pedro Alvarez
d0ef6ce00b
Fix typos and bad comments in rlc_am_lte.cc and rlc_am_test.cc
...
Added checks for the nack_sn in the status reports of the rlc_am_test.
2021-02-05 12:24:50 +00:00
Pedro Alvarez
24db20bcca
Removed some unused variables after changing method of tracking notifications. Removed rlc_am_notify_pdcp test file. Testing is now in rlc_am_test.cc
2021-02-05 12:24:50 +00:00
Pedro Alvarez
6c071a784c
Changed notification mechanisms to use map of acked SNs instead of acked bytes.
...
This was required due to an issue where bytes were counted twice when a
packet had been lost.
2021-02-05 12:24:50 +00:00
Pedro Alvarez
649d642776
Moved notification tests from rlc_am_notify_pdcp_test.cc to rlc_am_test.cc.
...
This added some tests to resegmentation.
2021-02-05 12:24:50 +00:00
Pedro Alvarez
389cf4d943
Moved updating the notify info to it's own function.
2021-02-05 12:24:50 +00:00
Pedro Alvarez
de669d214a
Fix test header and queue_capacity check in RLC notifications.
...
Also, remove unecessary nullptr initializaion and fixup some newlines.
2021-02-05 12:24:50 +00:00
Pedro Alvarez
de90b4753f
Added the ability of the RLC AM to notify the PDCP of the acknowledged
...
PDCP PDUs. This includes:
- Modifying the byte_buffer_t to include PDCP SN meta-data. This way,
the RLC can keep track of the ack'ed bytes for a specific PDCP PDU.
- Added in the RLC an `undelivered_sdu_info queue`, to keep track of the
amount of ack'ed bytes and the total size of the PDCP PDU,
so the RLC can know when delivery is finished.
- Added an interface between the PDCP and the RLC so that the RLC can
notify the PDCP when it receives an ack from the status PDUs. The RLC
passes to the PDCP a vector of all the ack'ed pdus in a rx'ed status PDU.
- Added some tests to the notify functionality. This includes some tests
where the PDUs are acked imediatly, and one test where the PDU is
retx'ed.
2021-02-05 12:24:50 +00:00
David Rupprecht
3dab82c42f
Added interface that allows to update the lcid in case of a nr reconfiguration
...
nr rrc updates gw lcid if reconf was received
2021-02-05 11:08:08 +01:00
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
AlaiaL
9c764c299d
- Removed the try/catch. Checking the allocation with std::nothrow
...
- Adjusting the code with the coding style.
2021-02-04 15:18:27 +00:00
Xavier Arteaga
a2d9b436d9
SRSUE: add NR stack to PHY and initial decoded PDU push
2021-02-04 10:51:47 +01:00
Xavier Arteaga
4f43935dd3
NR-SCH: CRC is KO if data is all zeros
2021-02-04 10:51:47 +01:00
Xavier Arteaga
77f0a53abd
Added DCI Format 0_0 unpacking and more NR-PUSCH procedures
2021-02-04 10:51:47 +01:00
Francisco
9e25e95545
fix S1AP UE Capability Indication message. Created helper to log received S1AP messages
2021-02-03 17:20:07 +00:00
Francisco
78d1b8083a
fix GTPU tunneling. Avoid forwarding packets to PDCP while the PDCP bearer is not yet created
2021-02-03 17:20:07 +00: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
199f1c953e
Remove unneeded logmap headers.
2021-02-03 14:15:27 +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
e9ed6f31ba
Port mac_pcap to srslog.
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
faluco
c8a4bf2613
- Fix unused variable in buffer_pool.h
...
- Replaced logger to srslog in log_args utility function.
2021-02-03 14:15:27 +01:00
faluco
d37a07a47f
Replaced loggers in buffer_pool.h
2021-02-03 14:15:27 +01:00
faluco
f8485fb799
Replaced loggers to srslog in PNF and VNF classes.
2021-02-03 14:15:27 +01:00
faluco
96c07a69c0
Report the RLF event to the JSON event file in the enb.
2021-02-03 13:13:36 +01:00
Xavier Arteaga
c60d207826
Add fix phase shift in gNb PHY
2021-02-02 15:23:14 +01:00
Xavier Arteaga
194670a2a3
NRPHY: hard-coded symbol phase correction
2021-02-02 15:23:14 +01:00
Xavier Arteaga
820c9066db
Fix OFDM modulator for NR
2021-02-02 15:23:14 +01:00
Xavier Arteaga
2421f2cd99
Multiple PHY fixes and NR-PHY configuration refactor
2021-02-02 15:23:14 +01:00
Xavier Arteaga
7e6a35a9f7
Fix Synch error calculation
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
Xavier Arteaga
a85d79c6b7
Added ZMQ option to delay/advance Rx samples
2021-02-02 15:23:14 +01:00
Xavier Arteaga
73001c9541
Implement NR-DCI conversion to string
2021-02-02 15:23:14 +01:00
Xavier Arteaga
83a5ce96ed
Initial NR OFDM symbol size compatibility
2021-02-02 15:23:14 +01:00
Andre Puschmann
f5c945dc2f
mac_nr: add interface to set C-RNTI and contention ID from RRC
...
used during contention-based/free RA
2021-02-02 14:13:25 +01:00
Francisco
2bde28252c
send UE capability indication through S1AP
2021-02-01 22:27:49 +00:00
Francisco
d64ce7df77
implementation of S1 E-RAB Release Indication and Error Indication messages
2021-02-01 22:27:49 +00: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