Difference between VPC Peering and VPN
Difference between VPC Peering and VPN
23 April 2021
VPC(Virtual Private Cloud) Peering
A VPC peering connection is a networking connection between two VPCs that enables you to route traffic between them using private IPv4 addresses or IPv6 addresses. Instances in either VPC can communicate with each other as if they are within the same network. You can create a VPC peering connection between your own VPCs, or with a VPC in another GCP account. The VPCs can be in different regions (also known as an inter-region VPC peering connection).
In the above figure you can see that there are 2 Virtual Private Cloud’s (VPC) names as A and B. If they want to communicate with each other then they must and should be connected with VPC Peering. Otherwise they shouldn’t communicate with each other.
Even it is possible to communicate with the instance in one project and another instance of another project can be possible by using the VPC Peering Concept.
Note: If we want to communicate with instances within the organisation then VPC Peering will be best suited. If we want to communicate with other organisations it is not possible. So that’s why we get a new concept known as VPN.
VPN (Virtual Private network)
VPN stands for virtual private network. A virtual private network (VPN) is a technology that creates a safe and encrypted connection over a less secure network, such as the internet. Virtual Private network is a way to extend a private network using a public network such as the internet. The name only suggests that it is Virtual “private network” i.e. the user can be the part of the local network sitting at a remote location. It makes use of tunneling protocols to establish a secure connection.
If we want to hide the IP address of your system for accessing any website on the Internet then we can choose VPN Concept. We are hiding our IP address so Hackers are not able to attack/destroy our data. It can be very secure.
Advantages of VPN
- Secure Internet.
- Ultra-fast Connection.
- Strict no-logs policy.
- Uninterrupted Streaming.
Note: If we want to communicate with on-premises organisations then we can choose VPN because it can be very secure.