# VPN Anatomy

How a VPN hides your traffic from café Wi\-Fi and your provider by locking, wrapping and forwarding each packet through an encrypted tunnel\.

By DUSK

Topic: Computing, AI &amp; Electronics

[Open the interactive Jig](https://ask.jig.com/j/GKPsoMZLdNtk)

## Transcript

### 1. Meet the VPN

A VPN, or virtual private network, gives your data a private path across the public internet\. Your laptop sits on the left and a website waits on the right\. In between are café Wi‑Fi, your internet provider and a VPN server\.

Drag empty space to turn the bench\. Pinch or scroll to zoom\.

### 2. Data travels in packets

Everything you send online is cut into small packets, like letters in the post\. Each packet carries a label saying where it came from and where it is going\. Without a VPN, the café Wi‑Fi and your internet provider can read every label as it passes\.

A single web page often arrives as hundreds of packets\.

### 3. A secret handshake

First, your laptop and the VPN server agree on secret keys\. In WireGuard, a popular VPN design, this handshake takes just two messages: one out and one back\. Once both sides share the keys, the tunnel is ready\.

Each WireGuard key is 32 bytes, or 256 bits, long\.

### 4. Lock it: encryption

Encryption scrambles your packet with the secret key, so it looks like random noise to anyone without that key\. A small seal, called an authentication tag, is added too\. If anyone changes even one bit on the way, the seal will not match and the packet is thrown away\.

In WireGuard the seal adds 16 bytes to every packet\.

### 5. A new envelope

The locked packet is then placed inside a brand\-new packet, like a letter sealed inside a second envelope\. The outer label only says: from this laptop, to the VPN server\. This wrapping is called encapsulation\.

### 6. Through the tunnel

Now the wrapped packet crosses the ordinary internet\. The tunnel is not a real pipe: it is the locking and wrapping\. The café Wi‑Fi and your provider can see that you are talking to a VPN server, and how much, but not what you send or where it is really going\.

### 7. Unwrap and forward

At the VPN server the outer envelope comes off, and the packet is unlocked with the shared key\. The server sends your request on to the website\. The website sees the VPN server’s address instead of yours\.

Replies travel back the same way: locked, wrapped and sent through the tunnel\.

### 8. What a VPN can and can’t do

A VPN hides your traffic from the network you are on, which helps on public Wi‑Fi\. It moves trust rather than removing it: the VPN company can see where your traffic goes\. It cannot stop scams or harmful downloads, so good habits still matter\.

VPNs began as a safe way for people to reach their office network from far away\.
