update
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
[mysqld]
|
||||
wait_timeout = 15
|
||||
interactive_timeout = 15
|
||||
wait_timeout = 2
|
||||
interactive_timeout = 2
|
||||
@@ -100,13 +100,14 @@ services:
|
||||
- ALL
|
||||
depends_on:
|
||||
- oai-ext-dn
|
||||
command: ["-c", "/oai-ran/cmake_targets/ran_build/build/nr-softmodem -O /opt/oai-gnb/etc/gnb.yaml -E --rfsim --log_config.global_log_options level,nocolor,time"]
|
||||
command: ["-c", "/oai-ran/cmake_targets/ran_build/build/nr-softmodem -O /opt/oai-gnb/etc/gnb.conf --rfsim --log_config.global_log_options level,nocolor,time"]
|
||||
networks:
|
||||
public_net:
|
||||
ipv4_address: 192.168.71.140
|
||||
volumes:
|
||||
# - ../../conf_files/gnb.sa.band78.273prb.rfsim.2x2.conf:/opt/oai-gnb/etc/gnb.conf
|
||||
- ../../conf_files/gnb.sa.band78.106prb.rfsim.yaml:/opt/oai-gnb/etc/gnb.yaml
|
||||
# - ../../conf_files/gnb.sa.band78.106prb.rfsim.yaml:/opt/oai-gnb/etc/gnb.yaml
|
||||
- ../../conf_files/gnb.sa.band78.106prb.rfsim.2x2.conf:/opt/oai-gnb/etc/gnb.conf
|
||||
healthcheck:
|
||||
test: /bin/bash -c "pgrep nr-softmodem"
|
||||
start_period: 10s
|
||||
@@ -155,7 +156,7 @@ services:
|
||||
|
||||
oai-nr-ue1:
|
||||
image: nakaolab:oct29
|
||||
command: ["-c", "stdbuf -oL /oai-ran/cmake_targets/ran_build/build/nr-uesoftmodem -E --rfsim -r 106 --numerology 1 --uicc0.imsi 208990100001100 -C 3319680000 --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time"]
|
||||
command: ["-c", "stdbuf -oL /oai-ran/cmake_targets/ran_build/build/nr-uesoftmodem --rfsim -r 106 --numerology 1 --uicc0.imsi 208990100001100 -C 3319680000 --ssb 516 --ue-nb-ant-tx 2 --ue-nb-ant-rx 2 --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time"]
|
||||
container_name: oai-nr-ue1
|
||||
cap_drop:
|
||||
- ALL
|
||||
@@ -181,7 +182,7 @@ services:
|
||||
|
||||
oai-nr-ue2:
|
||||
image: nakaolab:oct29
|
||||
command: ["-c", "stdbuf -oL /oai-ran/cmake_targets/ran_build/build/nr-uesoftmodem -E --rfsim -r 106 --numerology 1 --uicc0.imsi 208990100001101 -C 3319680000 --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time"]
|
||||
command: ["-c", "stdbuf -oL /oai-ran/cmake_targets/ran_build/build/nr-uesoftmodem --rfsim -r 106 --numerology 1 --uicc0.imsi 208990100001101 -C 3319680000 --ssb 516 --ue-nb-ant-tx 2 --ue-nb-ant-rx 2 --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time"]
|
||||
container_name: oai-nr-ue2
|
||||
cap_drop:
|
||||
- ALL
|
||||
@@ -207,7 +208,7 @@ services:
|
||||
|
||||
oai-nr-ue3:
|
||||
image: nakaolab:oct29
|
||||
command: ["-c", "stdbuf -oL /oai-ran/cmake_targets/ran_build/build/nr-uesoftmodem -E --rfsim -r 106 --numerology 1 --uicc0.imsi 208990100001102 -C 3319680000 --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time"]
|
||||
command: ["-c", "stdbuf -oL /oai-ran/cmake_targets/ran_build/build/nr-uesoftmodem --rfsim -r 106 --numerology 1 --uicc0.imsi 208990100001102 -C 3319680000 --ssb 516 --ue-nb-ant-tx 2 --ue-nb-ant-rx 2 --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time"]
|
||||
container_name: oai-nr-ue3
|
||||
cap_drop:
|
||||
- ALL
|
||||
@@ -233,7 +234,7 @@ services:
|
||||
|
||||
oai-nr-ue4:
|
||||
image: nakaolab:oct29
|
||||
command: ["-c", "stdbuf -oL /oai-ran/cmake_targets/ran_build/build/nr-uesoftmodem -E --rfsim -r 106 --numerology 1 --uicc0.imsi 208990100001103 -C 3319680000 --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time"]
|
||||
command: ["-c", "stdbuf -oL /oai-ran/cmake_targets/ran_build/build/nr-uesoftmodem --rfsim -r 106 --numerology 1 --uicc0.imsi 208990100001103 -C 3319680000 --ssb 516 --ue-nb-ant-tx 2 --ue-nb-ant-rx 2 --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time"]
|
||||
container_name: oai-nr-ue4
|
||||
cap_drop:
|
||||
- ALL
|
||||
@@ -259,7 +260,7 @@ services:
|
||||
|
||||
oai-nr-ue5:
|
||||
image: nakaolab:oct29
|
||||
command: ["-c", "stdbuf -oL /oai-ran/cmake_targets/ran_build/build/nr-uesoftmodem -E --rfsim -r 106 --numerology 1 --uicc0.imsi 208990100001104 -C 3319680000 --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time"]
|
||||
command: ["-c", "stdbuf -oL /oai-ran/cmake_targets/ran_build/build/nr-uesoftmodem --rfsim -r 106 --numerology 1 --uicc0.imsi 208990100001104 -C 3319680000 --ssb 516 --ue-nb-ant-tx 2 --ue-nb-ant-rx 2 --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time"]
|
||||
container_name: oai-nr-ue5
|
||||
cap_drop:
|
||||
- ALL
|
||||
@@ -285,7 +286,7 @@ services:
|
||||
|
||||
oai-nr-ue6:
|
||||
image: nakaolab:oct29
|
||||
command: ["-c", "stdbuf -oL /oai-ran/cmake_targets/ran_build/build/nr-uesoftmodem -E --rfsim -r 106 --numerology 1 --uicc0.imsi 208990100001105 -C 3319680000 --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time"]
|
||||
command: ["-c", "stdbuf -oL /oai-ran/cmake_targets/ran_build/build/nr-uesoftmodem --rfsim -r 106 --numerology 1 --uicc0.imsi 208990100001105 -C 3319680000 --ssb 516 --ue-nb-ant-tx 2 --ue-nb-ant-rx 2 --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time"]
|
||||
container_name: oai-nr-ue6
|
||||
cap_drop:
|
||||
- ALL
|
||||
@@ -311,7 +312,7 @@ services:
|
||||
|
||||
oai-nr-ue7:
|
||||
image: nakaolab:oct29
|
||||
command: ["-c", "stdbuf -oL /oai-ran/cmake_targets/ran_build/build/nr-uesoftmodem -E --rfsim -r 106 --numerology 1 --uicc0.imsi 208990100001106 -C 3319680000 --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time"]
|
||||
command: ["-c", "stdbuf -oL /oai-ran/cmake_targets/ran_build/build/nr-uesoftmodem --rfsim -r 106 --numerology 1 --uicc0.imsi 208990100001100 -C 3319680000 --ssb 516 --ue-nb-ant-tx 2 --ue-nb-ant-rx 2 --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time"]
|
||||
container_name: oai-nr-ue7
|
||||
cap_drop:
|
||||
- ALL
|
||||
@@ -337,7 +338,7 @@ services:
|
||||
|
||||
oai-nr-ue8:
|
||||
image: nakaolab:oct29
|
||||
command: ["-c", "stdbuf -oL /oai-ran/cmake_targets/ran_build/build/nr-uesoftmodem -E --rfsim -r 106 --numerology 1 --uicc0.imsi 208990100001107 -C 3319680000 --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time"]
|
||||
command: ["-c", "stdbuf -oL /oai-ran/cmake_targets/ran_build/build/nr-uesoftmodem --rfsim -r 106 --numerology 1 --uicc0.imsi 208990100001107 -C 3319680000 --ssb 516 --ue-nb-ant-tx 2 --ue-nb-ant-rx 2 --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time"]
|
||||
container_name: oai-nr-ue8
|
||||
cap_drop:
|
||||
- ALL
|
||||
@@ -363,7 +364,7 @@ services:
|
||||
|
||||
oai-nr-ue9:
|
||||
image: nakaolab:oct29
|
||||
command: ["-c", "stdbuf -oL /oai-ran/cmake_targets/ran_build/build/nr-uesoftmodem -E --rfsim -r 106 --numerology 1 --uicc0.imsi 208990100001108 -C 3319680000 --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time"]
|
||||
command: ["-c", "stdbuf -oL /oai-ran/cmake_targets/ran_build/build/nr-uesoftmodem --rfsim -r 106 --numerology 1 --uicc0.imsi 208990100001108 -C 3319680000 --ssb 516 --ue-nb-ant-tx 2 --ue-nb-ant-rx 2 --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time"]
|
||||
container_name: oai-nr-ue9
|
||||
cap_drop:
|
||||
- ALL
|
||||
@@ -389,7 +390,7 @@ services:
|
||||
|
||||
oai-nr-ue10:
|
||||
image: nakaolab:oct29
|
||||
command: ["-c", "stdbuf -oL /oai-ran/cmake_targets/ran_build/build/nr-uesoftmodem -E --rfsim -r 106 --numerology 1 --uicc0.imsi 208990100001109 -C 3319680000 --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time"]
|
||||
command: ["-c", "stdbuf -oL /oai-ran/cmake_targets/ran_build/build/nr-uesoftmodem --rfsim -r 106 --numerology 1 --uicc0.imsi 208990100001109 -C 3319680000 --ssb 516 --ue-nb-ant-tx 2 --ue-nb-ant-rx 2 --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time"]
|
||||
container_name: oai-nr-ue10
|
||||
cap_drop:
|
||||
- ALL
|
||||
|
||||
@@ -185,29 +185,29 @@ start_in_stages() {
|
||||
# Ensure AMF is ready
|
||||
wait_healthy "${AMF_SERVICE}" 15
|
||||
wait_healthy "${UPF_SERVICE}" 15
|
||||
exec_safe "${UPF_SERVICE}" 'bash -lc "
|
||||
set -e
|
||||
sysctl -w net.ipv4.ip_forward=1
|
||||
sysctl -w net.ipv4.conf.all.rp_filter=2
|
||||
sysctl -w net.ipv4.conf.eth0.rp_filter=2
|
||||
sysctl -w net.ipv4.conf.eth1.rp_filter=2
|
||||
sysctl -w net.ipv4.conf.tun0.rp_filter=2
|
||||
# exec_safe "${UPF_SERVICE}" 'bash -lc "
|
||||
# set -e
|
||||
# sysctl -w net.ipv4.ip_forward=1
|
||||
# sysctl -w net.ipv4.conf.all.rp_filter=2
|
||||
# sysctl -w net.ipv4.conf.eth0.rp_filter=2
|
||||
# sysctl -w net.ipv4.conf.eth1.rp_filter=2
|
||||
# sysctl -w net.ipv4.conf.tun0.rp_filter=2
|
||||
|
||||
ip rule add pref 100 iif tun0 to 192.168.71.0/24 lookup 201 || true
|
||||
ip route replace 192.168.71.0/24 dev eth0 table 201
|
||||
# ip rule add pref 100 iif tun0 to 192.168.71.0/24 lookup 201 || true
|
||||
# ip route replace 192.168.71.0/24 dev eth0 table 201
|
||||
|
||||
ip rule add pref 200 iif tun0 lookup 200 || true
|
||||
ip route replace 12.1.1.0/24 dev tun0 table 200
|
||||
ip route replace default via 192.168.72.129 dev eth1 table 200
|
||||
# ip rule add pref 200 iif tun0 lookup 200 || true
|
||||
# ip route replace 12.1.1.0/24 dev tun0 table 200
|
||||
# ip route replace default via 192.168.72.129 dev eth1 table 200
|
||||
|
||||
# UE -> DN (192.168.72.128/26) via eth1
|
||||
iptables -t nat -C POSTROUTING -s 12.1.1.0/24 -d 192.168.72.128/26 -o eth1 -j MASQUERADE 2>/dev/null || \
|
||||
iptables -t nat -A POSTROUTING -s 12.1.1.0/24 -d 192.168.72.128/26 -o eth1 -j MASQUERADE
|
||||
# # UE -> DN (192.168.72.128/26) via eth1
|
||||
# iptables -t nat -C POSTROUTING -s 12.1.1.0/24 -d 192.168.72.128/26 -o eth1 -j MASQUERADE 2>/dev/null || \
|
||||
# iptables -t nat -A POSTROUTING -s 12.1.1.0/24 -d 192.168.72.128/26 -o eth1 -j MASQUERADE
|
||||
|
||||
# UE -> 192.168.71.0/24 via eth0
|
||||
iptables -t nat -C POSTROUTING -s 12.1.1.0/24 -d 192.168.71.0/24 -o eth0 -j MASQUERADE 2>/dev/null || \
|
||||
iptables -t nat -A POSTROUTING -s 12.1.1.0/24 -d 192.168.71.0/24 -o eth0 -j MASQUERADE
|
||||
"'
|
||||
# # UE -> 192.168.71.0/24 via eth0
|
||||
# iptables -t nat -C POSTROUTING -s 12.1.1.0/24 -d 192.168.71.0/24 -o eth0 -j MASQUERADE 2>/dev/null || \
|
||||
# iptables -t nat -A POSTROUTING -s 12.1.1.0/24 -d 192.168.71.0/24 -o eth0 -j MASQUERADE
|
||||
# "'
|
||||
wait_healthy oai-flexric 15
|
||||
|
||||
# 2) gNB
|
||||
@@ -319,12 +319,13 @@ ensure_ue_count() {
|
||||
if (( ${#to_start[@]} > 0 )); then
|
||||
start_ue_list "${to_start[@]}"
|
||||
for ue in "${to_start[@]}"; do
|
||||
if wait_log "$ue" "oaitun_ue1 successfully configured"; then
|
||||
if wait_log "$ue" "oaitun_ue1 successfully configured" 5 &&
|
||||
exec_safe "$ue" 'ip link show oaitun_ue1 >/dev/null 2>&1'; then
|
||||
exec_safe "$ue" 'ip route replace default dev oaitun_ue1'
|
||||
# run_traffic_profile "$ue" "$(choose_random_profile)" "0"
|
||||
run_traffic_profile "$ue" "boring"
|
||||
else
|
||||
dc rm -fv "$ue" >/dev/null 2>&1
|
||||
dc down -v "$ue" >/dev/null 2>&1 &
|
||||
fi
|
||||
done
|
||||
fi
|
||||
@@ -341,12 +342,7 @@ ensure_ue_count() {
|
||||
to_stop=("${running[@]:0:$drop}")
|
||||
fi
|
||||
for ue in "${to_stop[@]}"; do
|
||||
log "Stopping UE ${ue}"
|
||||
dc stop "$ue" >/dev/null 2>&1 &
|
||||
done
|
||||
wait
|
||||
for ue in "${to_stop[@]}"; do
|
||||
dc rm -fv "$ue" >/dev/null 2>&1 &
|
||||
dc down -v "$ue" >/dev/null 2>&1 &
|
||||
done
|
||||
wait
|
||||
}
|
||||
@@ -538,8 +534,7 @@ cleanup() {
|
||||
log "Cleanup: stopping UE containers only"
|
||||
while IFS= read -r ue; do
|
||||
[[ -z "$ue" ]] && continue
|
||||
dc stop "$ue" || true
|
||||
dc rm -fv "$ue" >/dev/null 2>&1 &
|
||||
dc down -v "$ue" >/dev/null 2>&1 &
|
||||
done < <(dc ps --services | grep -E "${UE_NAME_REGEX}" || true)
|
||||
}
|
||||
|
||||
@@ -592,7 +587,8 @@ main() {
|
||||
ue="${_ue_list[$i]}"
|
||||
prof="${_ue_profiles[$i]}"
|
||||
[[ -z "$ue" ]] && continue
|
||||
if wait_log "$ue" "oaitun_ue1 successfully configured"; then
|
||||
if wait_log "$ue" "oaitun_ue1 successfully configured" 5 &&
|
||||
exec_safe "$ue" 'ip link show oaitun_ue1 >/dev/null 2>&1'; then
|
||||
exec_safe "$ue" "ip route replace default dev oaitun_ue1"
|
||||
run_traffic_profile "$ue" "$prof"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user