Print

Access to jfed

Log into jfed. If you don't have an account, create an account

https://dev.portal.fed4fire.eu/login

Start OAI NR PHY Test UE

For reference, use this site: https://gitlab.eurecom.fr/oai/openairinterface5g/blob/develop/doc/RUNMODEM.md#phy-test-setup-with-oai-ue

Rspec for UE and gNB

Load the following rspec, with connected B210 USRPs and low-latency ubuntu 18.04 kernel. The CPU speed on each VM instance is dedicated 3.6GHz.

<?xml version='1.0'?>
<rspec xmlns="http://www.geni.net/resources/rspec/3" type="request" generated_by="jFed RSpec Editor" generated="2020-12-16T15:31:05.557Z" xmlns:emulab="http://www.protogeni.net/resources/rspec/ext/emulab/1" xmlns:delay="http://www.protogeni.net/resources/rspec/ext/delay/1" xmlns:jfed-command="http://jfed.iminds.be/rspec/ext/jfed-command/1" xmlns:client="http://www.protogeni.net/resources/rspec/ext/client/1" xmlns:jfed-ssh-keys="http://jfed.iminds.be/rspec/ext/jfed-ssh-keys/1" xmlns:jfed="http://jfed.iminds.be/rspec/ext/jfed/1" xmlns:sharedvlan="http://www.protogeni.net/resources/rspec/ext/shared-vlan/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.geni.net/resources/rspec/3 http://www.geni.net/resources/rspec/3/request.xsd ">
  <node client_id="eNB" exclusive="false" component_manager_id="urn:publicid:IDN+iris-open-testbed.connectcentre.ie+authority+am">
    <sliver_type name="vm">
      <disk_image name="urn:publicid:IDN+iris-open-testbed.connectcentre.ie+image+oai5g_ubuntu-18.04-5.3.0-62-lowlatency-oai-latest-07-07-2020"/>
      <flavor_type xmlns="http://iris-testbed.connectcentre.ie/rspec/ext/openstack/1" name="m1.b210_2.6GHz_25gb_7cpu_performance"/>
    </sliver_type>
    <location xmlns="http://jfed.iminds.be/rspec/ext/jfed/1" x="194.0" y="103.5"/>
  </node>
  <node client_id="ue" exclusive="false" component_manager_id="urn:publicid:IDN+iris-open-testbed.connectcentre.ie+authority+am">
    <sliver_type name="vm">
      <disk_image name="urn:publicid:IDN+iris-open-testbed.connectcentre.ie+image+oai5g_ubuntu-18.04-5.3.0-62-lowlatency-oai-latest-07-07-2020"/>
      <flavor_type xmlns="http://iris-testbed.connectcentre.ie/rspec/ext/openstack/1" name="m1.oai.performance.7cpu.25gb-ram-b210"/>
    </sliver_type>
    <location xmlns="http://jfed.iminds.be/rspec/ext/jfed/1" x="283.0" y="213.5"/>
  </node>
  <node client_id="gNB" exclusive="false" component_manager_id="urn:publicid:IDN+iris-open-testbed.connectcentre.ie+authority+am">
    <sliver_type name="vm">
      <disk_image name="urn:publicid:IDN+iris-open-testbed.connectcentre.ie+image+oai5g_ubuntu-18.04-5.3.0-62-lowlatency-oai-latest-07-07-2020"/>
      <flavor_type xmlns="http://iris-testbed.connectcentre.ie/rspec/ext/openstack/1" name="m1.oai.performance.7cpu.25gb-ram-b210"/>
    </sliver_type>
    <location xmlns="http://jfed.iminds.be/rspec/ext/jfed/1" x="350.0" y="101.5"/>
  </node>
  <node client_id="oai-5g-core" exclusive="false" component_manager_id="urn:publicid:IDN+iris-open-testbed.connectcentre.ie+authority+am">
    <sliver_type name="vm">
      <disk_image name="urn:publicid:IDN+iris-open-testbed.connectcentre.ie+image+oai5g_ubuntu-18.04-5.3.0-62-lowlatency-oai-latest-07-07-2020"/>
      <flavor_type xmlns="http://iris-testbed.connectcentre.ie/rspec/ext/openstack/1" name="m1.oai.performance.7cpu.25gb-ram-2.4ghz"/>
    </sliver_type>
    <location xmlns="http://jfed.iminds.be/rspec/ext/jfed/1" x="281.0" y="28.5"/>
  </node>
</rspec>

Install dependencies

Before installing OAI, make sure to install SCTP protocol and associated dependencies. These are needed to support communication between the eNB and gNB

sudo apt-get install lksctp-tools libsctp-dev lksctp-tools -y
sudo modprobe sctp
#support octoclock
##https://files.ettus.com/manual/page_octoclock.html
sudo apt-get install avrdude -y

Note, the gNB does not attach to the eNB if the SCTP is not installed.

Build OAI eNB, and gNB on instantiated VMs

git clone -b develop https://gitlab.eurecom.fr/oai/openairinterface5g.git
cd openairinterface5g
source oaienv
cd cmake_targets/
./build_oai -I -w USRP --eNB --UE --nrUE --gNB

gNB

Start the PHY gNB. Note, change the IP address on the PHY Config file to the ethernet interface on the VM.

# ensure no LTE session already running
sudo kill -9 `ps aux | grep -ie softmodem | awk '{print $2}' `

#(to see help options)
sudo -E ./nr-uesoftmodem -h 

cd /home/${USER}/openairinterface5g/cmake_targets/ran_build/build

sudo ./nr-softmodem -E -O ../../../targets/PROJECTS/GENERIC-LTE-EPC/CONF/gnb.band78.tm1.106PRB.usrpb210.conf --phy-test | tee ~/nr-softmodem.log

 

From the  gNB node, scp across the files reconfig.raw and rbconfig.raw to the NR-UE node

cd /home/${USER}/openairinterface5g/cmake_targets/ran_build/build
scp *.raw ${USER}@<IP_ADDRESS>:/home/${USER}/openairinterface5g/cmake_targets/ran_build/build

5G NR UE

Then Start the PHY UE:

# ensure no LTE session already running
sudo kill -9 `ps aux | grep -ie softmodem | awk '{print $2}' `

#(to see help options)
sudo -E ./nr-uesoftmodem -h 

cd /home/${USER}/openairinterface5g/cmake_targets/ran_build/build


sudo ./nr-uesoftmodem -E --phy-test > ~/nr-uesoftmodem.log


###This did not work for me - further investigation required.
####sudo ./nr-uesoftmodem -E --rrc_config_path . --phy-test --numerology 1 -r 106 -c 3510000000 -d | tee ~/nr-uesoftmodem.log

 

Here is the result from the NR-UE:

[PHY]   Starting sync detection
[PHY]   [UE thread Synch] Running Initial Synch (mode 0)
[PHY]   [UE] nr_synchro_time: Sync source = 0, Peak found at pos 189176, val = 22924879337 (103 dB) avg 78 dB, ffo 0.000000
PSS execution duration 249184 microseconds 
[PHY]   [UE0] Initial sync : Estimated PSS position 189176, Nid2 0
[PHY]   sync_pos 189176 ssb_offset 189068 
[PHY]   Calling sss detection (normal CP)
[PHY]   [UE0] Initial sync: starting PBCH detection (rx_offset 0)
[PHY]   TDD Normal prefix: CellId 951 metric 988, phase 2, pbch -1
[PHY]   [UE] nr_synchro_time: Sync source = 0, Peak found at pos 54132, val = 513158855444 (117 dB) avg 80 dB, ffo 0.000000
PSS execution duration 247544 microseconds 
[PHY]   [UE0] Initial sync : Estimated PSS position 54132, Nid2 0
[PHY]   sync_pos 54132 ssb_offset 54024 
[PHY]   Calling sss detection (normal CP)
Nid2 0 Nid1 250 tot_metric 139580, phase_max 5 
[PHY]   [UE0] Initial sync: starting PBCH detection (rx_offset 0)
[PHY]   TDD Normal prefix: CellId 750 metric 139580, phase 5, pbch -1
[PHY]   [UE0] Initial sync : Estimated power: 0 dB
[PHY]   [SCHED][UE] Check absolute frequency DL 3619080000, UL 3619080000 (oai_exit 0, rx_num_channels 1)
[PHY]   Starting sync detection
......