Virtual Local Area Network is a set of hosts that basically connected with each other for communication and data transfer. It is not necessary even if the hosts are connected to the same domain. Along with a general Virtual Local Area Network, there are two other types of VLANs as well including Static and Dynamic VLAN. These VLANs can be manually configured by providing a name called Static VLAN while those that create hardware addresses of host devices are called Dynamic VLAN. In a computer network, single layer-2 network communicates mutually via one or more routers. More sophisticated network devices support other devices to mark isolated packets.
Image Courtesy: packetcorner.wordpress.com
VPN is a secure method and set of hosts for connecting to a private network. VPN also connects through unsecure public networks. Virtual Private Network is largely used in different organisations to share their data. Use of VPN helps reduce the overall connecting costs.
Image Courtesy: cisco.com