Use UERANSIM from tag v2.2.1 and its related changes

This commit is contained in:
herlesupreeth
2021-01-07 08:20:41 +01:00
parent 51a51b3603
commit badf17d3da
4 changed files with 53 additions and 45 deletions

View File

@@ -13,9 +13,12 @@ services:
env_file: env_file:
- .env - .env
expose: expose:
- "49972/udp"
- "38412/sctp" - "38412/sctp"
- "2152/udp" - "2152/udp"
cap_add:
- NET_ADMIN
devices:
- "/dev/net/tun"
networks: networks:
default: default:
ipv4_address: ${GNB_UE_IP} ipv4_address: ${GNB_UE_IP}

View File

@@ -28,7 +28,8 @@ FROM ubuntu:bionic
# Install updates and dependencies # Install updates and dependencies
RUN apt-get update && \ RUN apt-get update && \
apt-get -y install make g++ openjdk-11-jdk maven libsctp-dev lksctp-tools git vim apt-get -y install make g++ openjdk-11-jdk maven libsctp-dev lksctp-tools git vim \
iptables net-tools ifupdown iputils-ping
ENV JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64" ENV JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64"
ENV PATH="$PATH:$JAVA_HOME/bin" ENV PATH="$PATH:$JAVA_HOME/bin"
@@ -37,12 +38,12 @@ ENV LANG=C.UTF-8
# Clone and build UERANSIM # Clone and build UERANSIM
RUN git clone https://github.com/herlesupreeth/UERANSIM && \ RUN git clone https://github.com/herlesupreeth/UERANSIM && \
cd UERANSIM && \ cd UERANSIM && git checkout tags/v2.2.1 && \
chmod +x build.sh run.sh && \ ./nr-build --allow-root
./build.sh
# Set the working directory to UERANSIM # Set the working directory to UERANSIM
WORKDIR UERANSIM WORKDIR UERANSIM
CMD /mnt/ueransim/ueransim_init.sh && \ CMD /mnt/ueransim/ueransim_init.sh && \
/UERANSIM/run.sh ./nr-agent & \
bash

View File

@@ -1,40 +1,32 @@
# MCC and MNC values of the gNB
plmn:
mcc: MCC
mnc: MNC
# ID of the gNB inside of its PLMN
gnbId: 1 gnbId: 1
# Tracking Area Code (TAC)
tac: 1 tac: 1
nci: '000000000000000000000000000000010000'
host: GNB_UE_IP # NR Cell Identity (NCI)
gtpPort: 2152 nci: '0000000100'
tunPort: 49972
gnbPlmn: # gNB's local IP address for N2 interface.
mcc: MCC ngapIp: GNB_UE_IP
mnc: MNC
# gNB's local IP address for N3 interface.
gtpIp: GNB_UE_IP
# List of AMF address information
amfConfigs: amfConfigs:
- guami: - ngapIp: AMF_IP
mcc: MCC ngapPort: 38412
mnc: MNC
amfRegionId:
hex: '2a'
amfSetId:
hex: '5580'
amfPointer:
hex: 'a8'
host: AMF_IP
port: 38412
supportedTAs: # List of NSSAIs supported by this gNB
- tac: nssais:
hex: '000001' - sst: '0x01'
broadcastPlmns: sd: '0x010203'
- plmn:
mcc: MCC
mnc: MNC
taiSliceSupportNssais:
- sst:
value: 1
sd:
value:
hex: '010203'
# Indicates whether or not SCTP stream number errors should be ignored.
ignoreStreamIds: true ignoreStreamIds: true

View File

@@ -1,17 +1,29 @@
key: 'UE1_KI' # IMSI number of the UE. IMSI = [MCC|MNC|MSISDN] (In total 15 or 16 digits)
op: 'UE1_OP'
amf: 'UE1_AMF'
imei: 'UE1_IMEI'
supi: 'imsi-UE1_IMSI' supi: 'imsi-UE1_IMSI'
# MCC and MNC values of the UE.
plmn: plmn:
mcc: MCC mcc: MCC
mnc: MNC mnc: MNC
smsOverNasSupported: true # Permanent subscription key.
key: 'UE1_KI'
# Operator code (OP) of the UE. Please note that 'OP' is different from 'OPC'.
op: 'UE1_OP'
# Authentication Management Field (AMF) value
amf: 'UE1_AMF'
# IMEI number of the device. This value is generally not used.
imei: 'UE1_IMEI'
# Domain Network Name (DNN)
dnn: 'internet' dnn: 'internet'
# List of NSSAIs for the UE
requestedNssai: requestedNssai:
- sst: - sst:
value: 1 hex: '01'
sd: sd:
hex: '010203' hex: '010203'