Home > Store

L2TP: Implementation and Operation

Register your product to gain access to bonus material or receive a coupon.

L2TP: Implementation and Operation

Book

  • Sorry, this book is no longer in print.
Not for Sale

Description

  • Copyright 2000
  • Dimensions: 5-3/8" x 8-1/4"
  • Pages: 304
  • Edition: 1st
  • Book
  • ISBN-10: 0-201-60448-5
  • ISBN-13: 978-0-201-60448-1

Layer 2 Tunneling Protocol (L2TP) has emerged as a key technology in the construction of Virtual Private Networks. L2TP provides remote access capabilities to organizations using public networks for internal, private activities. It allows a corporation to retain the advantages of a private network--privacy of communication, access control, and company addressing--while reducing the need to invest heavily in networking infrastructure.

L2TP: Implementation and Operation is an essential resource for anyone who works with L2TP and Virtual Private Networks. Written for developers and network managers, the book provides an overview of the protocol, a detailed explanation of L2TP architecture, a step-by-step guide to its implementation, and information on L2TP security and management.

You will find useful background on the OSI model, the underlying PPP technology, how L2TP tunnels PPP, and the L2TP LAC and LNS Layer 2 roles. In addition, the book contains detailed information on such topics as:

  • L2TP deployment models
  • L2TP tunnel structure, terminology, and function
  • Protocol state machines
  • Tunnel authentication and initiation
  • Header and control message format, including AVP
  • Control channel dynamics
  • Session setup
  • Proxy authentication
  • Data handling, including Multilink PPP
  • L2TP security
  • SNMP management of L2TP networks
  • Comparisons with L2F, PPTP, and other VPN technologies

Throughout, the book highlights implementation tips, drawn from the author's extensive practical experience, that will help you avoid potential problems and maximize the benefits of L2TP.



0201604485B04062001

Sample Content

Table of Contents



Preface.


1. Background.

Remote Access.

Telecommuters—Small Office/Home Office.

Remote Office/Branch Office.

Partner.

Virtual Private Networks.

Open System Interconnect Model.

Point-to-Point Protocol.

Sublayers.

The Layer 2 Role of PPP.

The Layer 3 Role of PPP.

Physical Layer Assumptions.

Control Protocol Operation.

Chronological Operation of PPP.

Summary.



2. L2TP Basics.

Layer 2 Role of LAC.

Layer 2 Role of LNS.

Virtual Layer 1.

History.

L2TP Patent Issues.



3. L2TP Deployment Models.

VPN Deployment Models.

LAC Deployment, Distribution, and Support.

LNS Deployment, Distribution, and Support.

LNS “in the Cloud.”

Compulsory versus Voluntary Tunneling.

VPN Performance Considerations.

Multibox Multilink PPP.

Compulsory Tunneling Solution.

NAS Pool Solution.

Combined VPN Service and LNS Pool Solution.

Performance Implications.

Comparing L2TP to L2F and PPTP.

Asymmetric Digital Subscriber Line Forum Model.

Other VPN Technologies.

IP Security Protocol.

Generic Routing Encapsulation.

Mobile IP Protocol.

Multiprotocol Label Switching Protocol.

Secure Shell Protocol.



4. L2TP Protocol Overview.

Tunnel Structure and Terminology.

Protocol State Machines.

The Typical Life of a Tunnel.

Protocol Assumptions.

Non-IP Operation.

Separate LAC and Remote System.

Passive LAC Participation.

Protocol Difficulties.

Multilink PPP.

Link Awareness in LNS.

A Look Ahead.



5. Control Connection State Machine.

State Machine.

IDLE State.

Send SCCRQ Actions.

WAIT-CTL-REPLY State.

Send SCCN Actions.

Notify Sessions Actions.

ESTABLISHEDState.

Send SCCRP Actions.

WAIT-CTL-CONN State.

Send HELLO Actions.

Send StopCNN Actions.

CLEANUP-WAIT State.

Cleanup Actions.

Tunnel Authentication.

Initiating a Tunnel.

Tunnel Initiation Tie Breaker.

Comparing L2TP to L2F and PPTP.

Implementation Tips.

Handling Duplicate Received SCCRQ Messages.

Considering Timeout Conditions.



6. Data and Control Messages.

Headers.

T Bit.

L Bit.

F Bit.

S Bit.

Control Bit Handling and Reserved Bits.

Version.

Length.

Tunnel ID.

Call ID.

Ns.

Nr.

Offset Size.

Offset Pad.

Control Message Format.

Attribute Value Pairs.

M Bit.

H Bit.

Control Bit Handling and Reserved Bits.

Overall Length.

Vendor ID.

Attribute.

Value.

Hiding and Unhiding Algorithms.

AVP Hiding Algorithm.

AVP Unhiding Algorithm.

AVP Unhiding Algorithm with No Separate Storage Area.

Restrictions on Hiding AVPs.

Comparing L2TP to L2F and PPTP.

Implementation Tips.

Meaning of AVP Mandatory Bit.

The Order of AVPs.

SCCRQ, SCCRP, and SCCCN AVPs Can Be Hidden.

Odd AVP Conditions.



7. Control Channel Dynamics.

An Overview of the Control Channel.

Sequence Number Handling.

The Reliable Delivery Sender.

The Sender Window.

Sender Actions.

The IDLE State.

Send Msg, Set Timer Actions.

The Operating State.

Send Msg Actions.

The MaxReTx? Predicate.

Retransmit, Set New Timeout Actions.

Notify State Machine Actions.

The Done State.

Stop Timer, Free Msg Actions.

The Window Empty? Predicate.

The New Lead Ack’d Predicate.

Free Msg Actions.

Restart Timer Actions.

The Reliable Delivery Receiver.

The RecvMsg Event.

The ZLB? Predicate.

The In Window? Predicate.

ACK Event for Sender Actions.

The Duplicate? Predicate.

The Ns == Sr? Predicate.

Insert in RecvQueue Actions.

Send Msg up to SM, Sr++ Actions.

The Q Empty? Predicate.

The Q Head Ns == Sr? Predicate.

Dequeue Head Msg Actions.

The Before Window? Predicate.

Drop Msg Actions.

Note Ack Needed Actions.

The Message Delivery Process: An Example.

T = 0, LocalMsg for Peer A.

T = 1.0, Peer A Retransmits.

T = 1.1, Peer B Receives Message with Ns = 58, Nr = 37.

T = 1.5, LocalMsg for Peer B.

T = 1.6, Peer A Receives Message, Ns = 37, Nr = 59.

T = 2.1, Peer A Sends ZLB, Ns = 59, Nr = 38.

T = 2.2, Peer B Receives ZLB, Ns = 59, Nr = 38.

Packet Trace Summary.

Comparing L2TP to TCP.

Three-way Handshake Initiation.

Initial Sequence Numbers.

The Meaning of Sequence Numbers.

Sliding Window.

Comparing L2TP to L2F and PPTP.

Implementation Tip: Checking Sequence Number Ordering.



8. Session Setup.

Incoming Calls.

Incoming Call LAC State Machine.

Incoming Call LNS State Machine.

Outgoing Calls.

Outgoing Call LNS State Machine.

Outgoing Call LAC State Machine.

LCP Considerations.

LAC Frame Inspection and Negotiation/Translation.

Proxy LCP.

Proxy Authentication.

Comparing L2TP to L2F and PPTP.

ImplementationTips.

Including Last-Sent LCP CONFREQ AVPs.

Proxy CHAP Not Secure to LNS.

Tunnel Teardown.

LCP Issues.



9. Data Handling.

PPP Frame Handling.

Synchronous versus Asynchronous Framing.

LNS Frame Handling.

LAC Frame Handling for HDLC.

LAC Frame Handling for non-HDLC.

Tunnel Substrate Considerations.

Packet Delay.

Fragmentation.

Silent Packet Loss.

Reordering and Duplication.

Multilink PPP.

Coincidental MP Tunneling.

Multibox Multilink.

Performance.

Round-Trip Time.

Packet Loss and PPP Protocols with History.

Packet Loss and Packet Reordering Trade-off.

The Trade-Offs in Performance.

Comparing L2TP to L2F and PPTP.

Implementation Tips.

VJ Compression and Silent Packet Loss Is Bad.

Endpoint Discriminator with Coincidentally Tunneled MP.

Backward Compatibility with Draft 12 Data Flow Control.



10. Security.

Control Channel Security.

PPP Security.

Authentication.

Encryption.

L2TP Security Summary.

Weak Connection Authentication.

Limited Encryption Scope.

Poor Encryption Key Management.

No Message Authentication.

No Message Integrity.

No Replay Protection.

Transport Mode IPSEC.

Security Associations.

Connection Authentication.

Encryption.

Authentication/Integrity.

Replay Protection.

L2TP-Specific IPSEC Issues.

L2TP Components and Security Overview.

The LAC/LNS Trust Relationship.

Comparing L2TP to L2F and PPTP.

Implementation Tips.

Avoid or Adjust for PAP.

Trusting Proxy CHAP Challenges.

Randomness.

Keep “Backdoor” Holes in Mind.

Further Reading on IPSEC.



11. SNMP Management.

Interface Layering.

Management Information Base.

l2tpTunnelConfigTable.

l2tpDomainConfigTable.

l2tpDomainStatsTable.

l2tpTunnelStatsTable.

l2tpSessionStatsTable.

Mapping Tables.



12. Future Direction and Resources.

Protocol Summary.

Future Direction.

Resources.

Internet Engineering Task Force.

PPP.

IPSEC.

Bakeoffs.



Appendix: Draft 12 Data Flow Control.

Summary of Implementations.

Receive Window Size AVP in Call Establishment.

R Bit in Data Message Header.

Adaptive Timeouts and Piggybacking.

Draft 12 Specifications.



Glossary.


Bibliography.


Index. 0201604485T04062001

Preface

Remote access has become more and more popular as organizations rely increasingly on their data networks. The increasing popularity of telecommuting and the numbers of individuals who are mobile are two strong factors in this trend.

In order for organizations to provide traditional remote access, they must research and plan their use and make sizeable capital investments in infrastructure. To begin with, an organization needs to predetermine call capacity because the number of calls that can be simultaneously terminated is a factor in deciding what level of remote access device and how many T1 lines are purchased. The organization's call capacity must be increased to allow for the remote access connections to be made. Remote access connections are generally made via dedicated T1 lines (or T3 lines for very large organizations) connected to the remote access equipment. Next there is the purchase of the remote access equipment consisting of a device that terminates T1 or T3 lines on one side and has a connection to the organization's private network (typically Ethernet) on the other side.

Traditional remote access is inflexible, inefficient, and inadequate for accommodating evolving broadband technologies. These technologies provide dedicated access to an Internet Service Provider (ISP), forcing the remote user to tie up his or her traditional phone line to access the private network of an organization. When the legacy phone network is used for remote access, the costs incurred per connection are based on the same rules that are used for voice communications. For mobile users, establishing a remote access connection may mean incurring long distance costs. In addition, evolving broadband communication technologies such as cable modem and Asymmetric Digital Subscriber Line (ADSL) cannot be supported by traditional remote access. By supporting traditional remote access, organizations also incur the ongoing costs involved in supporting the remote access devices, including the upgrade of these devices as technology changes. One good example of why this is a problem is the recent increase in analog connection speeds to 56K access. When the 56K connection speed was first introduced, there were two methods of signaling. Private organizations and Internet Service Providers (ISPs) could not be sure they were choosing the right signaling versions, and only later did equipment become available that could support both 56K signaling methods.

The Layer 2 Tunneling Protocol, or L2TP, is aimed squarely at lifting the physical connection burden from the organization. The traditional remote access system is split into two halves. One half is responsible for terminating the physical connections, and the other half provides access to the private network. Conceptually, a line is drawn down the middle of a traditional remote access device; half of the device provides physical call connections, and the other half provides access to the private network communicating over L2TP. With L2TP, analog modem, Integrated Services Digital Network (ISDN), and ADSL connections can be physically terminated by an ISP, and the user data can be carried to a device at the edge of an organization's private network. L2TP client software can also be used to make virtual connections all the way from the remote user device (that is, a PC) to the organization's private network in such a way that the remote user's physical connection is completely independent.

Although the outsourced remote access model is the starting point for deploying L2TP, other applications are possible. Essentially any time that running Point-to-Point Protocol (PPP) between two entities over a non-point-to-point connection would be advantageous, L2TP should be used to provide that functionality.

This book provides details of L2TP for the individual who will be implementing L2TP in a data communications device. A history of L2TP is also provided, along with comparisons to the protocol's two predecessors, L2F and PPTP. Implementation tips are provided to cover those areas of use that are not readily understandable solely from reading the L2TP technical specification.

Audience

There are two audiences for this book. The primary audience is those who will be writing L2TP code. The book attempts to provide tips, give history, and logically explain and lay out the architecture for L2TP and the crucial and sometimes subtle interaction between L2TP and the PPP software running over it. The other audience for this book is those considering L2TP for their Virtual Private Network (VPN) deployment. The early chapters on the basics of L2TP and the discussion of security and management will be of particular interest to this reader.

Organization

The first three chapters are geared to a somewhat general audience. L2TP implementers may simply ignore these chapters if they wish to focus only on the details of L2TP implementation. Chapters 4-10 provide the details of L2TP implementation. These chapters may be skimmed by the reader with only a general interest in the details of the protocol itself. Special attention to Chapter 10 ("Security") should be paid even by the general reader. Chapter 11 ("SNMP Management") may also be of some interest to the general reader, and undoubtedly of interest to the L2TP implementer or the implementer of network management applications for L2TP. Chapter 12 provides resources for learning more about L2TP and gives information on what future work in L2TP is currently under consideration.



0201604485P04062001

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020