Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-UPF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-UPF
Commits
444bd85d
Commit
444bd85d
authored
Feb 03, 2021
by
吴洲洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update gtpu export ip and gtpu entry ip
parent
f89a03ef
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
789 additions
and
55 deletions
+789
-55
etc/config_system.sh
etc/config_system.sh
+5
-5
etc/n4_config.yaml
etc/n4_config.yaml
+1
-1
etc/startup_debug.conf
etc/startup_debug.conf
+3
-3
etc/supervisor-configure.yaml
etc/supervisor-configure.yaml
+0
-32
etc/template/config_system.template
etc/template/config_system.template
+2
-2
etc/upf.yaml
etc/upf.yaml
+11
-10
plugin/replace/replace
plugin/replace/replace
+0
-0
scripts/dpdk-devbind.py
scripts/dpdk-devbind.py
+741
-0
scripts/run_upf.sh
scripts/run_upf.sh
+26
-2
No files found.
etc/config_system.sh
View file @
444bd85d
set
interface state GigabitEthernet2/
2
/0 up
set
interface ip address GigabitEthernet2/
2/0 192.168.1
0.10/24
set
interface state GigabitEthernet2/
4
/0 up
set
interface ip address GigabitEthernet2/
4/0 192.168.3
0.10/24
set
interface state GigabitEthernet2/
3
/0 up
set
interface ip address GigabitEthernet2/
3/0 192.168.3
0.10/24
ip route add 0.0.0.0/0 via GigabitEthernet2/
3
/0
set
interface state GigabitEthernet2/
5
/0 up
set
interface ip address GigabitEthernet2/
5/0 192.168.5
0.10/24
ip route add 0.0.0.0/0 via GigabitEthernet2/
5
/0
...
...
etc/n4_config.yaml
View file @
444bd85d
gnb
:
192.168.10.10
smf
:
192.168.2.58
upf
:
192.168.2.
209
upf
:
192.168.2.
123
logSize
:
100
etc/startup_debug.conf
View file @
444bd85d
...
...
@@ -31,7 +31,7 @@ cpu {
## Set logical CPU core where main thread runs, if main core is not set
## VPP will use core 1 if available
main
-
core
3
main
-
core
14
## Set logical CPU core(s) where worker threads are running
#corelist-workers 2-3
...
...
@@ -97,8 +97,8 @@ dpdk {
#82576 1G
dev
0000
:
02
:
0
2
.
0
dev
0000
:
02
:
0
3
.
0
dev
0000
:
02
:
0
4
.
0
dev
0000
:
02
:
0
5
.
0
## Whitelist specific interface by specifying PCI address and in
## addition specify custom parameters for this interface
...
...
etc/supervisor-configure.yaml
deleted
100644 → 0
View file @
f89a03ef
gnb
:
username
:
root
password
:
123456
remoteHost
:
192.168.2.128
inter
:
eno1
smf
:
username
:
root
password
:
123456
remoteHost
:
192.168.2.63
inter
:
ens33
udm
:
username
:
root
password
:
123456
remoteHost
:
192.168.2.63
amf
:
username
:
root
password
:
123456
remoteHost
:
192.168.2.63
inter
:
ens33
upf
:
username
:
root
password
:
remoteHost
:
192.168.2.133
vppinter
:
enp5s0
n4inter
:
enp14s0
vppEntry
:
TenGigabitEthernet2/0/0
vppExport
:
TenGigabitEthernet2/0/1
gateway
:
ens4f1
vppWatch
:
/opt/5gc/support-system/watch/upf_watch
tcpdump
:
true
reboot
:
true
runScript
:
/opt/5gc/support-system/test_start_5g.sh
etc/template/config_system.template
View file @
444bd85d
set interface state @gtpu_entry@ up
set interface ip address @gtpu_entry@
192.168.10.10
/24
set interface ip address @gtpu_entry@
@gtpu_entry_ip@
/24
set interface state @gtpu_export@ up
set interface ip address @gtpu_export@
192.168.30.10
/24
set interface ip address @gtpu_export@
@gtpu_export_ip@
/24
ip route add 0.0.0.0/0 via @gtpu_export@
...
...
etc/upf.yaml
View file @
444bd85d
vpp
:
system
:
gtpu_entry
:
GigabitEthernet2/2/0
gtpu_export
:
GigabitEthernet2/3/0
gtpu_entry
:
GigabitEthernet2/4/0
gtpu_export
:
GigabitEthernet2/5/0
gtpu_entry_ip
:
192.168.30.10
gtpu_export_ip
:
192.168.50.10
ip_link
:
ueip
:
192.169.0.0
ueIPPrefix
:
24
snatInter
:
ens33
snatIP
:
192.168.2.209
vppHost
:
ens36
vppHostIP
:
192.168.30.10
gtpu_entry
:
ens34
gtpu_export
:
ens35
snatInter
:
ens32
snatIP
:
192.168.2.123
vppHost
:
ens38
gtpu_entry
:
ens36
gtpu_export
:
ens37
startup
:
pci_addr_id_entry
:
02:0
2
.0
pci_addr_id_export
:
02:0
3
.0
pci_addr_id_entry
:
02:0
4
.0
pci_addr_id_export
:
02:0
5
.0
vpp_plugins_path
:
/usr/lib/x86_64-linux-gnu/vpp_plugins
drive
:
e1000
n4
:
...
...
plugin/replace/replace
View file @
444bd85d
No preview for this file type
scripts/dpdk-devbind.py
0 → 100755
View file @
444bd85d
This diff is collapsed.
Click to expand it.
scripts/run_upf.sh
View file @
444bd85d
...
...
@@ -32,6 +32,9 @@ DPDK_ENTRY=""
TUNNELPATH
=
"/opt/5gc/upf/n4-beta"
DPDK_ENTRY_PCI
=
""
DPDK_EXPORT_PCI
=
""
DRIVE
=
""
function
init_configure
(){
yaml
=
"
$1
"
# vpp
...
...
@@ -46,7 +49,7 @@ function init_configure(){
UEIP
=
$(
$current
/yq r
$yaml
vpp.ip_link.ueip
)
PREFIX
=
$(
$current
/yq r
$yaml
vpp.ip_link.ueIPPrefix
)
INTER
=
$(
$current
/yq r
$yaml
vpp.ip_link.vppHost
)
VPPEXPORT
=
$(
$current
/yq r
$yaml
vpp.
ip_link.vppHostIP
)
VPPEXPORT
=
$(
$current
/yq r
$yaml
vpp.
system.gtpu_export_ip
)
MAC
=
$(
ifconfig
$INTER
|grep ether|awk
'{print $2}'
)
# nat
UE_IP
=
$(
$current
/yq r
$yaml
vpp.ip_link.ueip
)
...
...
@@ -56,7 +59,10 @@ function init_configure(){
VPPHOST
=
$(
$current
/yq r
$yaml
vpp.ip_link.vppHost
)
DPDK_EXPORT
=
$(
$current
/yq r
$yaml
vpp.ip_link.gtpu_export
)
DPDK_ENTRY
=
$(
$current
/yq r
$yaml
vpp.ip_link.gtpu_entry
)
DPDK_ENTRY_PCI
=
$(
$current
/yq r
$yaml
vpp.startup.pci_addr_id_entry
)
DPDK_EXPORT_PCI
=
$(
$current
/yq r
$yaml
vpp.startup.pci_addr_id_export
)
DRIVE
=
$(
$current
/yq r
$yaml
vpp.startup.drive
)
}
function
start_vpp
()
{
...
...
@@ -199,6 +205,23 @@ function install_depence(){
cp
$base
/plugin/replace/replace
$current
>
/dev/null 2>&1
}
function
unbind
(){
python3
$current
/dpdk-devbind.py
-u
0000:
$DPDK_EXPORT_PCI
;
python3
$current
/dpdk-devbind.py
-u
0000:
$DPDK_EXPORT_PCI
;
python3
$current
/dpdk-devbind.py
-b
$DRIVE
$DPDK_EXPORT_PCI
sleep
1
python3
$current
/dpdk-devbind.py
-b
$DRIVE
$DPDK_EXPORT_PCI
sleep
1
ifconfig
$DPDK_EXPORT
down
;
sleep
1
ifconfig
$DPDK_ENTRY
down
;
sleep
1
}
function
main
()
{
install_depence
...
...
@@ -221,6 +244,7 @@ function main() {
close_vpp
close_n4
close_arp
# unbind
shift
;;
esac
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment