There are several different types of virtual private networks that utilize distinct protocols. But they all primarily have the same function: to secure and encrypt information.