laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-uecups/+/31219 )
Change subject: README.md: Add some basic information in absence of documentation ......................................................................
README.md: Add some basic information in absence of documentation
Change-Id: I4a2955c148f3bf011b96924b7d036e7f118e1e02 --- M README.md A contrib/osmo-uecups-example.pcap 2 files changed, 37 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-uecups refs/changes/19/31219/1
diff --git a/README.md b/README.md index fc41569..fd1cecb 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,43 @@ Documentation -------------
-FIXME +Please check the PGW test suite we have at +https://gitea.osmocom.org/ttcn3/osmo-ttcn3-hacks/src/branch/master/pgw +for a full example. This test suite implements the signaling plane of +simulating UE/MME/SGW towards a PGW (device under test). It uses +osmo-uecups to simulate the user plane and start commands like "ping" +within the netns of the simulated UE. + +The interface between test suite and osmo-uecups is using +JSON-serialized commands via a SCTP socket on SCTP port 4268. + +JSON Examples from the above PGW tests suite execution look like this: + +Initial reset of state: + +``` +{"reset_all_state":{}} +{"reset_all_state_res": {"result": "OK"}} +``` + +Creating a GTP tunnel / UE with its own tun-device in its own netns: + +``` +{"create_tun":{"tx_teid":6,"rx_teid":2029948341,"user_addr_type":"IPV4","user_addr":"0A2D0003","local_gtp_ep":{"addr_type":"IPV4","ip":"AC121B14","Port":2152},"remote_gtp_ep":{"addr_type":"IPV4","ip":"AC121B07","Port":2152},"tun_dev_name":"tun23","tun_netns_name":"tun23"}} +{"create_tun_res": {"result": "OK"}} +``` + +Running a test program (here "ping") inside that netns, just as if the +command was executed on the UE: + +``` +{"start_program":{"command":"ping -c 10 -i 1 -I 10.45.0.3 10.45.0.1 1>>/data/TC_createSession_ping4.prog.stdout 2>>/data/TC_createSession_ping4.prog.stderr","environment":[],"run_as_user":"osmocom","tun_netns_name":"tun23"}} +{"start_program_res": {"pid": 12, "result": "OK"}} +{"program_term_ind": {"exit_code": 0, "pid": 12}} +``` + +You can find a pcap file containing this example communication in contrib/osmo-uecups-example.pcap +
Mailing List ------------ diff --git a/contrib/osmo-uecups-example.pcap b/contrib/osmo-uecups-example.pcap new file mode 100644 index 0000000..f61ee51 --- /dev/null +++ b/contrib/osmo-uecups-example.pcap Binary files differ