Tests - mariotlemes/non3GPP-WiFi GitHub Wiki
Check creation of the rules in UPF
PDR
sudo ip netns exec UPFns ~/libgtp5gnl/tools/gtp5g-tunnel list pdr
FAR
sudo ip netns exec UPFns ~/libgtp5gnl/tools/gtp5g-tunnel list far
Check associations between UE and N3IWF
XFRM policy
# To view XFRM policy
sudo ip netns exec UEns ip xfrm policy
XFRM state
# To view XFRM state
sudo ip netns exec UEns ip xfrm state
Check connectivity between UE and UPF
Ping to 60.60.0.101
# Starting monitoring tools for each interface at path between UE and UPF
sudo ip netns exec UEns wireshark -kni ipsec0 &
sudo ip netns exec UEns wireshark -kni gretun0 &
sudo ip netns exec UEns wireshark -kni wlan1 &
sudo ip netns exec APns wireshark -kni wlan0 &
sudo ip netns exec APns wireshark -kni veth3 &
sudo wireshark -kni veth2 &
sudo wireshark -kni veth0 &
sudo ip netns exec UPFns wireshark -kni any &
Then, to do a ping test:
sudo ip netns exec UEns ping -c 1 60.60.0.101
The output of ping test:
You can observe the ICMP packets at all interfaces between UE and UPF. We provided the pcapng files for in-depth analysis.
Traceroute analysis
To do a traceroute between UE and UPF:
sudo ip netns exec UEns traceroute 60.60.0.101
UE and UPF are one hop of distance due to the GRE (Generic Routing Encapsulation) tunnel.
Check conectivity between UE and Internet
Ping to 8.8.8.8
You also can ping the Internet (8.8.8.8):
sudo ip netns exec UEns ping -c 1 8.8.8.8
The output of ping test:
Traceroute analysis
To do a traceroute between UE and Internet:
sudo ip netns exec UEns traceroute 8.8.8.8
From now, you can see that the traffic from UE to Internet goes through the UPF.