VPN is known as virtual private network....it's encrypt the traffic based on layer 2 or layer 3 depends on the used protocol......it will create an encrypted tunnel........in layer 3 case it will encrypt the packets including the IP addresses of that packets.....the most famous VPN protocol is IPSec.