L2F: How a Local Dial-Up Call Reached a Remote Network
With dial-up networking, a computer could reach a nearby provider by making a telephone call. L2F let the provider take that call while a company handled the user's network session somewhere else.
Layer 2 Forwarding Protocol, or L2F, is a legacy tunneling protocol developed for that arrangement. It separated the equipment accepting a dial-in connection from the equipment handling the far end of the user's data-link session.
This was known as virtual dial-up. The provider supplied the access infrastructure. The company could keep responsibility for its user accounts and network settings at its own gateway.
L2F's 1998 specification carried Historic status when published, rather than becoming an Internet standard.
What Was That Dial-Up Noise Actually Saying?
A local call with a farther destination
Suppose an employee dialed a local internet provider to reach a company network. The provider's network access server, or NAS, accepted the connection. The employee's link could use Point-to-Point Protocol, or PPP, a set of rules for carrying data between two ends of a link.
The access server then identified the company's destination gateway, the server that would handle the user's session. It opened an L2F tunnel or reused one already in place, assigning an identifier to the employee's session.
The server wrapped the user's frames, units of data from the link, for delivery through the tunnel. At the other end, the company gateway removed that wrapper and handled the session. Multiple sessions could share the same tunnel, with their identifiers keeping them distinct.
This wrapping is called encapsulation: carrying one communication inside another. It allowed the physical dial-up connection to end at the provider while the user's session continued to a different piece of equipment.
The user's computer didn't need to run an L2F client for this arrangement. The provider and company operated the tunnel endpoints.
A tunnel carried the frames; it didn't hide them
The wrapper gave L2F a way to forward traffic. L2F itself did not encrypt the data.
- Put your whole home behind a VPN at speeds up to 1,100 Mbps.
- Stay online when one provider fails, with multi-WAN failover.
- Reach your home network securely while you travel.
Encryption changes readable information into a form that requires the appropriate key to recover. A frame placed inside a tunnel is still a frame whose contents need their own protection if secrecy is required.
PPP endpoints could negotiate extra features, including encryption, and L2F could carry those frames. L2F also had authentication arrangements for tunnels and users. Authentication checks identity; it doesn't automatically conceal what the authenticated participants send.
The National Institute of Standards and Technology's historical Guide to SSL VPNs explains these L2F limits. The tunnel ran from the provider's access server to the company's gateway, so L2F also didn't protect the employee-to-provider leg by itself.
From L2F to L2TP
The later Layer 2 Tunneling Protocol, or L2TP, incorporated ideas from L2F and the Point-to-Point Tunneling Protocol, as its 1999 specification records.
Point-to-Point Protocol: How PPP Sets Up a Connection

L2TP: Carrying One Network Link Inside Another

Network Tunnels: How One Packet Rides Inside Another

QUOTE:
"Amateurs hack systems, professionals hack people."
