Shiva Logo

How a PPP Packet is Tunneled

The following chart shows the steps that occur when a remote user dials into a local Internet Service Provider (ISP) to connect to a host on a destination network or a remote ISP. After a Virtual Private Networking (VPN) tunnel is established between the (Network Access Server) NAS and the Home Gateway (HG), packets can travel through the bi-directional VPN tunnel to the destination network and back to the client.

VPN Connection Process

The following describes the sequence of events that occurs when a remote user makes a dial-in connection to a VPN NAS to communicate with a host located on a destination network:

  1. The client (or remote user) initiates a Point to Point Protocol (PPP) connection with an ISP using either an analog line (and a modem) or an Integrated Services Digital Network (ISDN) line.

  2. A NAS at the dialed ISP's site answers the call.

  3. The NAS sends a PPP authorization request to the client, if the PPP authentication protocol requires it. For the Challenge-Handshake Authentication Protocol (CHAP), this is the Challenge packet.

  4. The client sends a PPP authorization response to the NAS (Password Authentication Password (PAP) Authenticate-Request, CHAP Response). At this point, the NAS knows the user name.

    If the user name contains an @nickname, or the NAS is configured to force L2F, a VPN tunnel opens for this session. Otherwise, the NAS assumes the client wants to start a local PPP session.

  5. Assuming the VPN tunnel is already open, the NAS sends an L2F request to the HG.

  6. The HG validates the user authentication data in the client open tunnel request and a tunnel is created. The HG then allocates an unused tunnel ID, and sends a connect indication to notify the NAS that a new dial-up session exists.

  7. Optionally, if there is an authentication server on the destination network, the HG sends an authorize query that contains the user's user name and password to the authentication server to make sure the user is authorized to access the destination network. If the user is authorized, the authentication server sends the HG an authorize response.

    The HG sends a PAP or CHAP acknowledgment, which is then discarded.

    Network Control Protocol (NCP) negotiation between the client and the HG begins.

  8. When NCP negotiation ends, the HG creates a "virtual interface" for PPP. Link layer frames can pass through the tunnel in both directions. The NAS strips the PPP header from the data packet sent from the remote user, encapsulates it in an L2F packet, and forwards the encapsulated packet over the appropriate tunnel to an HG. The HG accepts these frames, strips the L2F information, and processes the data as a normal incoming frame for the appropriate interface and protocol.

    In the reverse direction, the HG adds an L2F header and the NAS removes it before sending the packet to the remote user.

Related Information

Virtual Private Networking (VPN)

Virtual Private Networking Overview

Virtual Private Networking Components

Tunneling Data Packets

[ Top of Page... ]

[ Back to Shiva Configurator Directory ]