Skip to content

Commit

Permalink
Merge branch 'master' into cn-open5gs
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoschulz committed Feb 5, 2024
2 parents 742fb82 + 07cdfac commit a0a39f2
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
12 changes: 11 additions & 1 deletion RANs/srsran/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
#
# SRSRAN
## Building

## Running
After building and installing SRSRAN we recommend running the srsran_performance script available in the official srsran_project repository. Since these changes do not persist remember to re-run them if the machine is restarted.

For each of the core networks there is an accompanying helper script, however, you still need to manually change the second line of each script so that they have the name of your network interface.

Finnaly, free5gc and OAI CN require a change in routing table of the gNB host. This change can be applied with the commands:
- Free5Gc: `sudo ip route add 10.100.200.0/24 via {external addr of the core host} dev {name of the network interface used to reach the core host}`.
- OAI CN: `sudo ip route add 10.100.200.0/26 via {external addr of the core host} dev {name of the network interface used to reach the core host}`.
2 changes: 1 addition & 1 deletion RANs/srsran/free5gc.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh
MY_IP=$(ip addr show bri0 | grep -o 'inet [0-9\\.]*' | grep -o '[0-9\\.]*')
sudo gnb -c gnb_speed.yml configs/qam256.yml amf --bind_addr $MY_IP --addr 10.100.200.250
sudo gnb -c gnb_speed.yml amf --bind_addr $MY_IP --addr 10.100.200.250
4 changes: 2 additions & 2 deletions RANs/srsran/gnb_speed.yml → RANs/srsran/gnb_b210.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ ru_sdr:
device_args: type=b200,ref_locked=internal,clock=internal,pps=internal
#clock: external # Specify the clock source used by the RF.
#sync: internal # Specify the sync source used by the RF.
srate: 61.44 # RF sample rate might need to be adjusted according to selected bandwidth.
srate: 46.08 # RF sample rate might need to be adjusted according to selected bandwidth.
tx_gain: 70 # Transmit gain of the RF might need to adjusted to the given situation.
#rx_gain: 70 # Receive gain of the RF might need to adjusted to the given situation.
otw_format: "sc12"

cell_cfg:
dl_arfcn: 622628 # ARFCN of the downlink carrier (center frequency).
band: 78 # The NR band.
channel_bandwidth_MHz: 60 # Bandwith in MHz. Number of PRBs will be automatically derived.
channel_bandwidth_MHz: 40 # Bandwith in MHz. Number of PRBs will be automatically derived.
common_scs: 30 # Subcarrier spacing in kHz used for data.
plmn: "00101" # PLMN broadcasted by the gNB.
tac: 1 # Tracking area code (needs to match the core configuration).
Expand Down
2 changes: 1 addition & 1 deletion RANs/srsran/oai.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh
MY_IP=$(ip addr show bri0 | grep -o 'inet [0-9\\.]*' | grep -o '[0-9\\.]*')
sudo gnb -c gnb_speed.yml configs/qam256.yml amf --bind_addr $MY_IP --addr 192.168.70.132
sudo gnb -c gnb_speed.yml amf --bind_addr $MY_IP --addr 192.168.70.132
2 changes: 1 addition & 1 deletion RANs/srsran/open5gs.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh
MY_IP=$(ip addr show bri0 | grep -o 'inet [0-9\\.]*' | grep -o '[0-9\\.]*')
sudo gnb -c gnb_speed.yml configs/qam256.yml amf --bind_addr $MY_IP --addr core
sudo gnb -c gnb_speed.yml amf --bind_addr $MY_IP --addr core

0 comments on commit a0a39f2

Please sign in to comment.