LIVE
Lab Guide
gNB nrUE AMF SMF UPF
-- -- --
nrUE
rfsim TCP
gNB
N2 / NGAP
AMF
SBI
SMF
N4 / PFCP
UPF
N6
Internet
NRF
AUSF
UDM
Terminal 1 ×

Command Reference

System
htopInteractive process viewer
free -hMemory usage
df -hDisk usage
uptimeSystem uptime and load
ip addrNetwork interfaces
OAI gNB
cd /opt/oai && sudo ./nr-softmodem -O gnb.conf --rfsimStart gNB in SA mode with rfsim
sudo pkill -9 nr-softmodemStop gNB process
cat /opt/oai/gnb.confView gNB configuration
ps aux | grep nr-softmodemCheck gNB process
journalctl -u oai-gnb -fFollow gNB systemd logs
tail -f /tmp/oai-gnb.logTail gNB log file
OAI nrUE
cd /opt/oai && sudo ./nr-uesoftmodem --rfsim -r 106 --numerology 1 --band 78 -C 3319680000 --ssb 516 --uicc0.imsi 999700000000001 --uicc0.nssai_sst 1 --uicc0.opc E8ED289DEBA952E4283B54E88E6183CA --uicc0.key 465B5CE8B199B49FAA5F0A2EE238A6BC --uicc0.dnn internet --rfsimulator.serveraddr 127.0.0.1Start nrUE with rfsim connecting to local gNB
sudo pkill -9 nr-uesoftmodemStop nrUE process
cat /opt/oai/ue.confView UE configuration
ps aux | grep nr-uesoftmodemCheck nrUE process
Open5GS Services
systemctl status open5gs-amfdAMF service status
systemctl status open5gs-smfdSMF service status
systemctl status open5gs-upfdUPF service status
for svc in amfd smfd upfd nrfd ausfd udmd udrd pcfd nssfd bsfd; do sudo systemctl restart open5gs-$svc; doneRestart all Open5GS NFs
journalctl -u open5gs-amfd -fFollow AMF logs
journalctl -u open5gs-smfd -fFollow SMF logs
journalctl -u open5gs-upfd -fFollow UPF logs
Configuration Files
cat /opt/oai/gnb.confgNB configuration
cat /opt/oai/ue.confUE configuration
cat /etc/open5gs/amf.yamlAMF configuration
cat /etc/open5gs/smf.yamlSMF configuration
cat /etc/open5gs/upf.yamlUPF configuration
Network Testing
ping -I oaitun_ue1 8.8.8.8 -c 4Ping Google DNS via 5G tunnel
curl --interface oaitun_ue1 https://ifconfig.meCheck public IP via 5G
ip addr show oaitun_ue1Show UE tunnel interface
iperf3 -c 10.45.0.1 -t 10 --bind 10.45.0.2Throughput test via UPF
Logs & Monitoring
tail -f /tmp/oai-gnb.logFollow gNB log file
grep -i "MCS\|HARQ\|BLER" /tmp/gnb.logPHY/MAC stats from gNB log
journalctl -u oai-gnb -fgNB systemd journal
journalctl -u open5gs-amfd -fAMF logs
Packet Capture
sudo tcpdump -i any sctp -w /tmp/sctp.pcapCapture SCTP/NGAP traffic
sudo tcpdump -i any port 2152 -w /tmp/gtpu.pcapCapture GTP-U traffic
tshark -i any -f sctp -Y ngapLive NGAP protocol decode
sudo tcpdump -i oaitun_ue1 -w /tmp/oaitun.pcapCapture UE tunnel traffic
Troubleshooting
dmesg | tail -30Kernel messages (check OOM, errors)
ss -tlnp | grep -E '38412|2152|36421'Check NGAP/GTP-U/F1 ports
ip route show table all | grep oaitunUE tunnel routing
iptables -t nat -L -n -vNAT rules
lscpu | head -20CPU info for scheduling

PCAP Manager

Capture Presets
NGAP
sctp
GTP-U
port 2152
MAC Trace
port 9999 or sctp
All Traffic
no filter
-- 00:00
Saved Captures
No captures yet