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 below. You can find a pcap file containing this example communication in contrib/osmo-uecups-example.pcap
### Initial reset of state:
Request to osmo-uecups:
```
{"reset_all_state":{}}
```
Response from osmo-uecups:
```
{"reset_all_state_res": {"result": "OK"}}
```
### Creating a GTP tunnel / UE with its own tun-device in its own netns
Request to osmo-uecups:
```
{
"create_tun" : {
"local_gtp_ep" : {
"Port" : 2152,
"addr_type" : "IPV4",
"ip" : "AC121B14"
},
"remote_gtp_ep" : {
"Port" : 2152,
"addr_type" : "IPV4",
"ip" : "AC121B07"
},
"rx_teid" : 2029948341,
"tun_dev_name" : "tun23",
"tun_netns_name" : "tun23",
"tx_teid" : 6,
"user_addr" : "0A2D0003",
"user_addr_type" : "IPV4"
}
}
```
Response from osmo-uecups:
```
{"create_tun_res": {"result": "OK"}}
```
### Running a test program (here "ping") inside that netns, just as if the command was executed on the UE