pk.org: Computer Security/Lecture Notes

Secure Communication

Terms we covered

Paul Krzyzanowski – 2026-11-14

Tunnels and VPNs

These terms describe tunnels and the ways VPNs are deployed:

Tunnel
A virtual link that carries one network’s packets inside another’s.
Encapsulation
Carrying an entire IP datagram as the payload of another packet.
Virtual private network (VPN)
A tunnel protected by encryption, integrity checks, and endpoint authentication.
Site-to-site VPN
A tunnel between two gateways that joins their networks together.
Remote access VPN
A tunnel from an individual device to an organization’s gateway.
Consumer VPN
A commercial service that forwards a subscriber’s traffic through its own network.
Full tunneling
Sending all of a device’s traffic through the VPN.
Split tunneling
Sending only selected traffic through the VPN and the rest directly.

IPsec

These terms belong to IPsec, the network layer security standard:

IPsec
A standard for protecting IP traffic at the network layer.
Authentication Header (AH)
An IPsec protocol providing integrity and authentication without encryption.
Encapsulating Security Payload (ESP)
An IPsec protocol that encrypts and authenticates packet contents.
Tunnel mode
An IPsec mode that encapsulates the entire original packet between gateways.
Transport mode
An IPsec mode protecting the payload while keeping the original header.
Internet Key Exchange (IKE)
The protocol that authenticates IPsec peers and establishes session keys.

VPNs Built on TLS

These terms come from OpenVPN and the enterprise products that share its design:

OpenVPN
An open-source VPN that runs in user space and builds on TLS.
TUN device
A virtual network interface that passes packets to a program.
Control channel
OpenVPN’s TLS connection for authentication and key exchange.
Data channel
OpenVPN’s channel carrying tunneled traffic under symmetric encryption.

WireGuard

These terms come from WireGuard and the services built on it:

WireGuard
A minimal kernel VPN protocol with fixed modern cryptography.
Mesh VPN
Tunnels connecting each of a user’s devices directly to the others.