From 22051d9cba6cf70f09111beb0e3810d7519c475c Mon Sep 17 00:00:00 2001 From: Louis Royer Date: Fri, 10 Jan 2025 14:55:57 +0100 Subject: [PATCH] Handover with nextmn dataplane --- Makefile | 9 +++++++++ scripts/handover-uel1.sh | 14 ++++++++++++++ scripts/handover-uel5.sh | 14 ++++++++++++++ 3 files changed, 37 insertions(+) create mode 100755 scripts/handover-uel1.sh create mode 100755 scripts/handover-uel5.sh diff --git a/Makefile b/Makefile index d8be14a..09c1f9a 100644 --- a/Makefile +++ b/Makefile @@ -52,14 +52,17 @@ test/lint/yaml: .PHONY: test/nextmn-srv6 test/nextmn-srv6: + @$(MAKE) set/controlplane/free5gc @$(MAKE) set/dataplane/nextmn-srv6 @$(MAKE) test/lint/yaml .PHONY: test/nextmn-upf test/nextmn-upf: + @$(MAKE) set/controlplane/free5gc @$(MAKE) set/dataplane/nextmn-upf @$(MAKE) test/lint/yaml .PHONY: test/nextmn-free5gc test/free5gc: + @$(MAKE) set/controlplane/free5gc @$(MAKE) set/dataplane/free5gc @$(MAKE) test/lint/yaml @@ -109,6 +112,7 @@ set/ran/%: $(BCONFIG) set/handover-ueransim: $(BCONFIG) @echo Set handover to true @./scripts/config_edit.py $(BCONFIG) --handover=true + @$(MAKE) set/controlplane/free5gc @$(MAKE) set/dataplane/free5gc @$(MAKE) set/nb-ue/1 @$(MAKE) set/nb-edges/1 @@ -120,6 +124,9 @@ set/handover-ueransim: $(BCONFIG) set/handover-nextmn: $(BCONFIG) @echo Set handover to true @./scripts/config_edit.py $(BCONFIG) --handover=true + @$(MAKE) set/nb-ue/1 + @$(MAKE) set/nb-edges/2 + @$(MAKE) set/controlplane/nextmn-lite .PHONY: clean clean: @@ -245,6 +252,7 @@ ue/switch-edge/%: .PHONY: plot/policy-diff plot/policy-diff: @echo "[1/2] [1/6] Configuring testbed with NextMN-SRv6" + @$(MAKE) set/controlplane/free5gc @$(MAKE) set/dataplane/nextmn-srv6 @$(MAKE) set/nb-ue/2 @$(MAKE) set/nb-edges/2 @@ -272,6 +280,7 @@ plot/policy-diff: .PHONY: plot/latency-switch plot/latency-switch: @echo "[1/7] Configuring testbed with NextMN-SRv6 + Free5GC" + @$(MAKE) set/controlplane/free5gc @$(MAKE) set/dataplane/nextmn-srv6+free5gc @$(MAKE) set/nb-ue/1 @$(MAKE) set/nb-edges/2 diff --git a/scripts/handover-uel1.sh b/scripts/handover-uel1.sh new file mode 100755 index 0000000..51f4976 --- /dev/null +++ b/scripts/handover-uel1.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +# Copyright 2025 Louis Royer. All rights reserved. +# Use of this source code is governed by a MIT-style license that can be +# found in the LICENSE file. +# SPDX-License-Identifier: MIT +# +curl -X POST --json ' + { + "ue-ctrl": "http://[fd00:0:0:0:2:8000:0:9]:8080", + "gnb-target": "http://[fd00:0:0:0:2:8000:0:8]:8080", + "sessions": [{ + "ue-addr": "10.2.0.1", + "dnn": "srv6" + }]}' "http://[fd00::2:8000:0:7]:8080/cli/ps/handover" diff --git a/scripts/handover-uel5.sh b/scripts/handover-uel5.sh new file mode 100755 index 0000000..7993689 --- /dev/null +++ b/scripts/handover-uel5.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +# Copyright 2025 Louis Royer. All rights reserved. +# Use of this source code is governed by a MIT-style license that can be +# found in the LICENSE file. +# SPDX-License-Identifier: MIT +# +curl -X POST --json ' + { + "ue-ctrl": "http://[fd00:0:0:0:2:8000:0:e]:8080", + "gnb-target": "http://[fd00:0:0:0:2:8000:0:8]:8080", + "sessions": [{ + "ue-addr": "10.2.2.1", + "dnn": "nextmn-upf" + }]}' "http://[fd00::2:8000:0:7]:8080/cli/ps/handover"