The User Plane Function (UPF) is a key component of the 5G core network control plane according to Service Based Architecture. This function deals with routing and forwarding user data packets. It also provides a connection to other data networks (like the internet).