mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-upf.git
synced 2025-11-02 04:53:24 +00:00
osmo_pfcp_tool: make usable again
Some things in osmo-upf and libosmo-pfcp have changed without accounting
for that in osmo-pfcp-tool. (This tool is not that important, forgive me
for submitting various changes in one patch.)
Properly represent all of {access,core} x {local,remote} GTP F-TEIDs in
the internal osmo-pfcp-tool state.
Adjust and clarify osmo-pfcp-tool script commands.
Adjust the osmo-pfcp-tool scripts in contrib so that they work again.
Change-Id: I22cfaa4aedd465c81de85e673b9960eaf99c426b
This commit is contained in:
@@ -23,5 +23,3 @@ pfcp
|
||||
local-addr 127.0.0.11
|
||||
tunend
|
||||
dev create apn11 127.0.0.11
|
||||
tunmap
|
||||
table-name osmo-upf-11
|
||||
|
||||
@@ -21,7 +21,5 @@ ctrl
|
||||
timer pfcp x24 5000
|
||||
pfcp
|
||||
local-addr 127.0.0.12
|
||||
tunend
|
||||
dev create apn12 127.0.0.12
|
||||
tunmap
|
||||
table-name osmo-upf-12
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
timer pfcp x23 0
|
||||
pfcp-peer 127.0.0.1
|
||||
session tunend
|
||||
ue ip 127.127.127.127
|
||||
gtp access remote f-teid 127.0.0.127 127
|
||||
tx session-est-req
|
||||
|
||||
@@ -3,12 +3,14 @@ pfcp-peer 127.0.0.1
|
||||
tx assoc-setup-req
|
||||
sleep 1
|
||||
session
|
||||
ue ip 127.127.127.127
|
||||
gtp access remote f-teid 127.0.0.127 127
|
||||
tx session-est-req drop
|
||||
sleep 3
|
||||
tx session-mod-req forw
|
||||
tx session-mod-req far forw
|
||||
sleep 5
|
||||
tx session-mod-req drop
|
||||
tx session-mod-req far drop
|
||||
sleep 3
|
||||
tx session-mod-req forw
|
||||
tx session-mod-req far forw
|
||||
sleep 3
|
||||
tx session-del-req
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# ACCESS HOP CORE
|
||||
# ACCESS UPF tunmap UPF tunend (CORE)
|
||||
# session 23 = tunmap session 42 = encaps/decaps
|
||||
# GTP 127.0.0.13 127.0.0.12 127.0.0.11
|
||||
# TEID l:23 r:123 <---> r:23 l:123 | l:142 r:42 <---> r:142 l:42 | 192.168.100.42
|
||||
@@ -13,8 +13,8 @@ pfcp-peer 127.0.0.11
|
||||
sleep 1
|
||||
session tunend 42
|
||||
ue ip 192.168.100.42
|
||||
gtp access ip 127.0.0.12
|
||||
gtp access teid local 42 remote 142
|
||||
gtp access local f-teid 127.0.0.11 42
|
||||
gtp access remote f-teid 127.0.0.12 142
|
||||
tx session-est-req
|
||||
sleep 1
|
||||
|
||||
@@ -22,9 +22,9 @@ pfcp-peer 127.0.0.12
|
||||
tx assoc-setup-req
|
||||
sleep 1
|
||||
session tunmap 23
|
||||
gtp core ip 127.0.0.11
|
||||
gtp core teid local 142 remote 42
|
||||
gtp access ip 127.0.0.13
|
||||
gtp access teid local 123 remote 23
|
||||
gtp core remote f-teid 127.0.0.11 42
|
||||
gtp core local f-teid 127.0.0.12 142
|
||||
gtp access local f-teid 127.0.0.12 123
|
||||
gtp access remote f-teid 127.0.0.13 23
|
||||
tx session-est-req
|
||||
sleep 1
|
||||
|
||||
@@ -3,6 +3,9 @@ pfcp-peer 127.0.0.1
|
||||
tx assoc-setup-req
|
||||
sleep 1
|
||||
session tunend
|
||||
ue ip 127.127.127.127
|
||||
gtp access local f-teid choose
|
||||
gtp access remote f-teid 127.0.0.12 142
|
||||
tx session-est-req forw
|
||||
sleep 5
|
||||
tx session-del-req
|
||||
|
||||
@@ -3,6 +3,10 @@ pfcp-peer 127.0.0.1
|
||||
tx assoc-setup-req
|
||||
sleep 1
|
||||
session tunmap
|
||||
gtp core remote f-teid 127.0.0.11 42
|
||||
gtp core local f-teid choose
|
||||
gtp access local f-teid choose
|
||||
gtp access remote f-teid 127.0.0.13 23
|
||||
tx session-est-req
|
||||
sleep 5
|
||||
tx session-del-req
|
||||
|
||||
Reference in New Issue
Block a user