What exactly determines how a device automatically acquires the necessary network settings to communicate on a local network without manual intervention from an administrator? Furthermore, this protocol manages a pool of IP addresses and assigns them to clients for a specific period known as a "lease." How do you distinguish between the four key stages of the communication process that occur when a new device joins the network?