PPP Feature Config Guide Rev C
PPP Feature Config Guide Rev C
Introduction
This guide describes AlliedWare Plus™ Point-to-Point (PPP) and its configuration.
PPP specified in RFC 1661, is a protocol used to establish a direct connection between
two nodes via a WAN or LAN. It provides a standard method for transporting multi-
protocol datagrams over point-to-point links. PPP protocol encapsulation provides
multiplexing of different network-layer protocols simultaneously over the same link. PPP is
the most common protocol for linking a host to an ISP.
These documents are available from the above links on our website at alliedtelesis.com.
Feature support may change in later software versions. For the latest information, see the
above documents.
x
C613-22023-00 REV C alliedtelesis.com
Point-to-Point Protocol (PPP)
Contents
Introduction ........................................................................................................................ 1
Products and software version that apply to this guide .............................................. 1
Overview ............................................................................................................................ 3
Architecture.................................................................................................................. 4
Encapsulation .............................................................................................................. 4
Control protocols ......................................................................................................... 4
Link Control Protocol (LCP) layer................................................................................. 5
Network Control Protocol (NCP) layer ......................................................................... 5
PPP implementation on AlliedWare Plus ..................................................................... 6
PPP feature functionality ............................................................................................. 6
Overview
PPP was developed by the Internet Engineering Task Force (IETF) as a means of
transmitting data containing more than one network protocol over the same point-to-point
link in a standard, vendor-independent way.
PPP provides direct connections over synchronous and asynchronous circuits. PPP
works with several network layer protocols, such as IP and IPv6. PPP also has built-in
security mechanisms such as PAP (Password Authentication Protocol), CHAP (Challenge
Authentication Handshake Protocol), and EAP (Extensible Authentication Protocol).
A method for encapsulating datagrams over serial or other underlying links. HDLC
(High Level Data Link Control), L2TP (Layer 2 Tunneling Protocol), and PPPoE (Point-
to-Point Protocol over Ethernet) provide such protocols.
A Link Control Protocol (LCP) for establishing, configuring, and testing the data-link
connection.
A family of Network Control Protocols (NCPs) for establishing and configuring different
network-layer protocols. PPP enables the simultaneous use of multiple network layer
protocols. A common NCP is Internet Protocol Control Protocol (IPCP).
The method that PPP uses to carry network traffic is to open a link with a short exchange
of frames. Once the link is open, network traffic is carried with very little overhead. Traffic
is transmitted as a series of unnumbered information frames, meaning that no data link
acknowledgments are required and no retransmissions are sent. Once the link is
established, PPP acts as a straight data pipe for the upper layer protocols that it
encapsulates.
Architecture
The PPP and OSI protocols share the same physical layer, but PPP distributes the
functions of LCP and NCP differently. PPP operates across any DTE/DCE interface. The
only requirement imposed by PPP is a duplex circuit, either dedicated or switched, that
can operate in either an asynchronous or synchronous bit-serial mode and is transparent
to PPP link layer frames. PPP does not impose any restrictions regarding transmission
rate other than those imposed by the particular DTE/DCE lower layer interface in use.
Most of the work done by PPP is at the data link and network layers by the LCP and
NCPs. The LCP sets up the PPP connection and its parameters, the NCPs handle higher
layer protocol configurations, and the LCP terminates (closes) the PPP connection.
Encapsulation
PPP over Ethernet uses 8 bytes of the Ethernet frame as overhead, reducing the
maximum size of IP packets that can be transmitted without fragmenting from 1500 bytes
to 1492 bytes.
The first four bytes of a PPP frame comprise a 1 octet address field that is always set
to 0xFF, a 1-octet control field that is always set to 0x03 (“unnumbered information”),
and a 2-octet protocol field.
The receiving device interprets the data following the address and control fields
depending on the frame's encapsulation.
The Link Control Protocol (LCP) brings up the PPP link before any other protocols can
begin transmission. Each protocol carried over PPP has an associated Network Control
Protocol (NCP) that negotiates options for the protocol and brings up the link for that
protocol.
Control protocols
Control protocols are those run by PPP to enable a link connecting two stations to carry
specific upper layer protocol types. The Link Control Protocol (LCP) must run before any
other control protocol in order for the link to operate.
The local and remote stations negotiate the configuration options to be used on the link.
To initiate the negotiation process, the local station sends a configure request frame,
containing configuration options. The remote station responds with a frame confirming
that the options are okay, suggesting different options or rejecting the options. This
exchange takes place in both directions and when a station has sent and received an
acknowledge packet the link layer is declared open.
Once LCP has opened the link layer, an appropriate method of authentication can be
applied. When authentication has been completed successfully, or if no authentication is
required, a Network Control Protocol (NCP) then runs for each network layer protocol
Page 4 | Architecture
Point-to-Point Protocol (PPP)
using the link. The NCPs operate in a similar way to the LCP, negotiating configuration
options specific to the network layer protocol. No NCPs can use the PPP link until the
LCP has opened the link, and no data packets can be exchanged unless the appropriate
NCP is open.
Control protocols consist of states, events, and frame exchanges. Events cause link state
changes. Two important events are open and close. These can either be caused by a
management command or initiated internally, such as when the device powers up or an
underlying link state change occurs. An open event causes the control protocol to try to
establish a link; a close event terminates a link. Other events are the hardware becoming
available (up) or unavailable (down), timeouts, and the arrival of frames.
The LCP provides automatic configuration of the interfaces at each end, including:
PPP uses LCP to determine the encapsulation formats as soon as the link is established.
NCPs include functional fields containing standardized codes to indicate the network
layer protocol that PPP encapsulates. Each NCP manages the specific needs of its
respective network layer protocols. The various NCP components encapsulate and
negotiate options for multiple network layer protocols.
This simplified diagram above shows the Network layer protocol using PPP. Note that only
the yellow sections of this diagram are currently supported. See the items below related to
this diagram:
NCP—PPP allows multiple protocol datagrams encapsulation on the same link. For
every network protocol used, a separate Network Control Protocol (NCP) is provided
in order to negotiate options for the multiple datagram network layer protocols.
Supported NCPs are: IPCP, to configure IPv4 and IPv6CP, to configure IPv6.
IPv6 Link local address of a PPP interface can be statically configured using prefix FE80, or
can be dynamically constructed based on EUI64 identifiers derived from EUI48 MAC address
of the default VLAN on PPP interface
IPv6 RA commands to carry out associated actions on PPP interfaces can be configured
IPv6 RA messages received are processed and autoconf addresses are installed
Ability to check options configured and outcome of negotiation (show interface ppp)
MRU LCP option is sent with an appropriate value if the MRU is set to a non-default value
2. Network layer protocol configuration negotiation—after the LCP has finished the link
quality determination phase, the appropriate NCP can separately configure the
Network layer protocols, and bring them up. If the LCP closes the link, it informs the
network layer protocols so that they can take appropriate action.
The link remains configured for communications until explicit LCP frames close it, or until
some external event occurs, such as an inactivity timer expires or a user intervenes. The
LCP can terminate the link at any time. This is usually done when one of the routers
requests termination, but can happen because of a physical event, such as the loss of a
carrier or the expiration of an idle-period timer.
The first phase of LCP operation is link establishment. This phase must complete
successfully, before any Network layer packets can be exchanged. During link
establishment, the LCP opens the connection and negotiates the configuration
parameters.
The link establishment process starts with the initiating device sending a Configure-
Request frame to the responder. The Configure-Request frame includes a variable number
of configuration options needed to set up on the link. In other words, the initiator has sent
a “wish list” to the responder.
The initiator's wish list includes options for how it wants the link created, including
protocol or authentication parameters. The responder processes the wish list, and if it is
acceptable responds with a Configure-Ack message. After receiving the Configure-Ack
message, the process moves on to the authentication stage.
If the options are not acceptable or not recognized the responder sends a Configure-Nak
or Configure-Reject. If a Configure-Ack is received, the operation of the link is handed
over to the NCP. If either a Configure-Nak or Configure-Reject message is sent to the
requester, the link is not established. If the negotiation fails, the initiator needs to restart
the process with a new or a reduced set of options.
During link maintenance, LCP can use messages to provide feedback and test the link.
After the transfer of data at the Network layer completes, LCP terminates the link. NCP
only terminates the Network layer and NCP link. The link remains open until LCP
terminates it. If LCP terminates the link before NCP, then the NCP session is also
terminated.
PPP can terminate the link at any time. This might happen because of authentication
failure or the administrative closing of the link. The LCP closes the link by exchanging
Terminate packets. The device initiating the shutdown sends a Terminate-Request
message. The other device replies with a Terminate-Ack. A termination request indicates
that the device sending it needs to close the link. When the link is closing, PPP informs
the Network layer protocols so that they may take appropriate action.
NCP processing
After the link has been initiated, the LCP passes control to the appropriate NCP. Although
initially designed for IP datagrams, PPP can carry data from many types of Network layer
protocols by using a modular approach in its implementation. It can also carry two or
more Layer 3 protocols simultaneously. Its modular model allows the LCP to set up the
link and then hand the details of a network protocol to a specific NCP. Each network
protocol has a corresponding NCP. NCPs use the same packet format as the LCPs.
After the LCP has configured and authenticated the basic link, the appropriate NCP is
invoked to complete the specific configuration of the Network layer protocol being used.
When the NCP has successfully configured the Network layer protocol, the network
protocol is in the open state on the established LCP link. At this point, PPP can carry the
corresponding Network layer protocol packets.
IPCP example
The NCP for IPv4 is the Internet Protocol Control Protocol (IPCP). After LCP has
established the link, the routers exchange IPCP messages, negotiating options specific to
the protocol. IPCP is responsible for configuring, enabling, and disabling the IP modules
on both ends of the link.
IPCP negotiates IP addresses and DNS options. It allows the initiating device to specify
an IP address to use for routing IP over the PPP link, or to request an IP address for the
responder. See the ip address negotiated command, the peer default ip address
command, and the ppp ipcp dns command, for detailed PPP IPCP command descriptions
and command examples to specify an IP address for a PPP link.
When the NCP process is complete, the link goes into the open state and LCP takes over
again. Link traffic consists of any possible combination of LCP, NCP, and Network layer
protocol packets. LCP messages can then be used to monitor, manage, or debug the link.
Error detection—Identifies fault conditions. The LCP Keepalive and Magic Number
options help ensure a reliable, loop-free data link. The Magic Number field helps in
detecting links that are in a looped-back condition. Until the Magic-Number
Configuration Option has been successfully negotiated, the Magic-Number must be
transmitted as zero. Magic numbers are generated randomly at each end of the
connection.
LCP Keepalive messages can be sent periodically across the link. If several LCP
Keepalive responses fail to be received, then LCP can detect the connection to the
peer has failed and automatically initiate the PPP link closure.
awplus#configure terminal
awplus(config)#interface eth1
awplus(config-if)#encapsulation ppp 0
See the encapsulation ppp command for a detailed command description and command
examples.
awplus#configure terminal
awplus(config)#interface ppp0
awplus(config-if)#ip address negotiated
See the ip address negotiated command for a detailed command description and
command examples.
Use the show interface (PPP) command to show the PPP interface status and counters.
Displays status and counter statistics for all PPP interfaces configured on the router or
access server.
For more information about commands used in this guide, please refer the product’s
Command Reference.
The authentication phase of a PPP session is optional. If used, you can authenticate the
peer after the LCP establishes the link and choose the authentication protocol. If it is
used, authentication takes place before the Network layer protocol configuration phase
begins.
The authentication options require that the calling side of the link enter authentication
information. This helps to ensure that the user has the permission of the network
administrator to make the call. Peer routers exchange authentication messages.
One of the many features of PPP is that it performs Layer 2 authentication in addition to
other layers of authentication, encryption, access control, and general security
procedures.
Initiating PAP
PAP provides a simple method for a remote node to establish its identity using a two-way
handshake. PAP is not interactive. When the ppp authentication pap command is used,
the username and password are sent as one LCP data package, rather than the server
sending a login prompt and waiting for a response. After PPP completes the link
establishment phase, the remote node repeatedly sends a username-password pair
across the link until the sending node acknowledges it or terminates the connection.
PAP is not a strong authentication protocol. Using PAP, you send passwords across the
link in clear text and there is no protection from playback or repeated trial-and-error
attacks. The remote node is in control of the frequency and timing of the login attempts.
Nonetheless, there are times when using PAP can be justified. For example, despite its
shortcomings, PAP may be used in the following environments:
Situations where a plain text password must be available to simulate a login at the
remote host
After the PPP link establishment phase is complete, the local authenticating router sends
a challenge message to the remote peer.
The remote peer being authenticated responds with a value calculated using a one-way
hash function, which is typically Message Digest 5 (MD5) based on the secret password
and challenge message.
The local authenticating router checks the response against its own calculation of the
expected hash value. If the values match, the authenticating router acknowledges the
authentication. Otherwise, it immediately terminates the connection.
CHAP provides protection against playback attack by using a variable challenge value
that is unique and unpredictable. Because the challenge is unique and random, the
resulting hash value is also unique and random.
The use of periodically repeated challenges limits the time of exposure to any single
attack, and is used to mitigate a current connection from being hijacked by an
intermediate device. The local router or a third-party authentication server is in control of
the frequency and timing of the challenges.
For example, Router R1 wishes to establish a PPP connection authenticated using CHAP
to Router R2:
1. Router R1 (authenticatee) initially negotiates the link connection using LCP with Router
R2 and the two Routers agree to use CHAP authentication during the PPP LCP
negotiation.
2. Router R2 (authenticator) generates an ID and a random number and sends that plus
its username as a CHAP challenge packet to Router R1.
3. Router R1 will then generate a unique MD5 hash number using the Router R2's
username, ID, random number and the shared secret password configured on the PPP
interface. Router R1 then sends the challenge ID, the hashed value, and its username
(Router R1) to Router R2 as its challenge response.
4. Router R2 generates it own hash value using the ID, the shared secret password, and
the random number it originally sent to Router R1. Router R2 compares its hash value
with the hash value contained in the challenge response sent by Router R1. If the
values are the same, Router R2 sends a successful link established acknowledgment
response to Router R1.
Note: CHAP and EAP authentication requires a username and password configured
in plain text with privilege level 0. PAP authentication may use the default
AlliedWare Plus username (login: manager and password: friend).
EAP IDENTIFIED OPTIONS SUPPORTED IN ALLIEDWARE PLUS (AND THEIR IETF RFC
REFERENCES)
1 Identity (RFC 3748)
2 Notification (RFC 3748)
3 NAK (Response) (RFC 3748)
4 MD5-Challenge (RFC 3748)
19 SRP-SHA1 (Secure Remote Password protocol - Secure Hash Algorithm)
Note that if EAP is configured, then the SRP-SHA1 option is supported by default, but
EAP can also automatically fallback to support peers requesting an MD5-Challenge
instead.
.1.0.90 2
m 35.1.0.90 to 17
rat ion Request) fro
PPP LCP (Configu
0.90 4
35.1.0.90 to 17.1.
ration Ack) from
PPP LCP (Configu
to 17.1.0.90 5
from 35.1.0.90
ntity [RFC3748])
EAP (Request Ide
EAP (Response
6 Identity [RFC374
8]) from 17.1.0.9
0 to 35.1.0.90
to 17.1.0.90 7
] from 35.1.0.90
P-SHA1 [Carlson
EAP (Request SR
EAP (Response
8 SRP-SHA1 [Carls
on] from 17.1.0.9
0 to 35.1.0.90
to 17.1.0.90 9
] from 35.1.0.90
P-SHA1 [Carlson
EAP (Request SR
EAP (Response
10 SRP-SHA1 [Carls
on] from 17.1.0.9
0 to 35.1.0.90
] from 35.1.0.90
to 17.1.0.90 11
P-SHA1 [Carlson
EAP (Request SR
EAP (Response
12 SRP-SHA1 [Carls
on] from 17.1.0.9
0 to 35.1.0.90
.1.0.90 13
m 35.1.0.90 to 17
EAP (Success) fro
to 17.1.0.90
from 35.1.0.90 15
ration Request)
PPP IPCP (Configu
0.90
35.1.0.90 to 17.1. 17
ration Ack) from
PPP IPCP (Configu
After you have enabled CHAP, PAP, or EAP authentication the local router requires the
remote device to prove its identity before allowing data traffic to flow. This is done as
follows:
PAP authentication requires the remote device to send a name and password to be
checked against a matching entry in the local username database.
CHAP authentication sends a challenge to the remote device. The remote device must
encrypt the challenge value with a shared secret and return the encrypted value and its
name to the local router in a response message. It uses the looked-up secret to encrypt
the original challenge and verify that the encrypted values match.
You may enable PAP, CHAP, EAP or any combination of these PPP authentication
protocols. The order of priority is: EAP, CHAP, PAP. The highest priority authentication
protocol that has been configured is requested during link negotiation. If the peer
suggests using the second method or simply refuses the first method, the second method
is tried. Some remote devices support CHAP only and some PAP only. CHAP is used in
preference. If CHAP is rejected, then PAP is used. EAP has the highest priority.
Debugging allows you to confirm your configuration and correct any deficiencies. The
command for debugging PPP authentication is debug ppp.
Dunedin Auckland
Network
192.168.6.0/24
!
username Dunedin priv 0 password ditto
!
interface ppp1
ip address 192.168.6.1/30
ppp authentication pap
!
!
interface ppp1
ip address 192.168.6.2/30
ppp username Dunedin
ppp password ditto
!
See the ppp authentication command for a detailed command description and command
examples. See the username (PPP) command for a detailed command description and
command examples. Note that the PAP password does not need to be stored
unencrypted.
This occurs on initial link establishment and can be repeated any time after the link has
been established. Note that CHAP is more secure than PAP since the password is not
transmitted across the link in clear text.
Christchurch Wellington
Network
192.168.5.0/24
!
interface ppp0
ip address 192.168.5.2/30
ppp username Christchurch
ppp password same
!
See the ppp authentication command for a detailed command description and command
examples. See the username (PPP) command for a detailed command description and
command examples.
Hamilton Nelson
Network
192.168.4.0/24
!
interface ppp2
ip address 192.168.4.2/30
ppp username Hamilton
ppp password duplicate
!
See the ppp authentication command for a detailed command description and command
examples. See the username (PPP) command for a detailed command description and
command examples. You will find these in the product’s Command Reference.
PPP over Ethernet enables multiple PPPoE client hosts at a remote site to share the same
access device, while providing the access control and accounting functionality of dial-up
PPP connections.
PPPoE PPP over Ethernet has two distinct stages—a discovery stage and a session stage.
connectivity
stages In the discovery stage, the PPPoE client discovers all the available access concentrators
that offer the required service and then selects one. The client broadcasts a Discovery
Initiation packet (PADI), which specifies the name of the required service or indicates that
any service is acceptable. If a service name is specified, access concentrators that
support the requested service respond with a Discovery Offer packet (PADO) that
specifies the access concentrator’s unicast Ethernet address. If the client’s Initiation
packet indicated that any service was acceptable, all access concentrators that have
services available respond with a Discovery Offer packet that specifies each access
concentrator’s unicast Ethernet address.
When the host receives an Offer packet matching its request, it responds by sending a
discovery request (PADR) packet specifying the name of the required service to the
access concentrator. If it receives more than one valid offer, it responds to the first offer,
and ignores the subsequent offers. The access concentrator responds with a Session
Confirmation packet (PADS).
When the discovery stage is complete, the host and the selected access concentrator
have the information they need to establish the PPPoE connection.
In the session stage, the client host and the access concentrator exchange PPP
negotiation packets—such as LCP, authentication, and NCP packets—to establish and
maintain the PPP link.
Either the client or the access concentrator can terminate an established PPPoE session
any time by sending a Discovery Termination (PADT) packet or a PPP terminate-request.
PPPoE on the The device can be configured as an access concentrator. Remote devices can access
device services configured on the device. This device can also be configured as a PPPoE client
host, creating PPPoE links to services on access concentrators.
We recommend enabling LCP echo keepalive messages, so that PPP can detect a failure
of the access concentrator (or the link to it), and attempt to reestablish the connection.
PPPoE uses 8 bytes of the Ethernet frame as overhead. This reduces the maximum size of
IP (IPv4 or IPv6) packets that can be transmitted without fragmenting (MTU) from 1500
bytes to 1492 bytes. In order to prevent unnecessary fragmentation of IP packets, the
device automatically sets the maximum size of IP packets it transmits over a PPPoE
interface to 1492; we recommend also setting end hosts to limit IP packet size to 1492
bytes.
Configuring PPPoE
To configure the device as a PPPoE client, use the procedure below. This procedure can
be used to create multiple PPPoE connections via eth interfaces.
the PPPoE service-name for the connection, or whether to use the default service. This
is usually supplied by the service provider.
appropriate PPP negotiation settings. This includes any username, password, and IP
or IPv6 address settings.
Note: A PPPoE link cannot be combined with another PPPoE link via Multi-link PPP (ML-PPP).
Configuration Output 7 shows a script extract that configures three PPPoE interfaces over a single eth
example interface, and enables IPv6 routing on the device. Two of the connections are to specific
IPv6 services; the other connects to any default IPv4 service offered by an Access
Concentrator.
!
interface eth1
encapsulation ppp 5
encapsulation ppp 6
encapsulation ppp 7
!
interface ppp5
ppp service-name ipv6A
keepalive interval 5
ipv6 address autoconfig
!
interface ppp6
ppp service-name dualstack
keepalive interval 5
ip address negotiated
ipv6 address autoconfig
!
interface ppp7
keepalive interval 5
ip address negotiated
!
ipv6 forwarding
Troubleshooting PPPoE
To enable debugging for a specified PPP interface or for all PPP interfaces on the device,
use the debug ppp command.
To encapsulate IPv6 packets in PPP requires a specific IPv6 NCP. RFC 5072 specifies a
standard encapsulation method. This RFC defines the following aspects of PPP and IPv6
transmission, which are based on this standard:
The standard also specifies methods and procedures for managing IPv6 link-local
addresses over PPP links.
Once PPP has established the data link using LCP, negotiated any optional facilities, and
successfully completed the authentication phase, it enters the network negotiation phase.
During this phase it sends Network Control Protocol messages to select and negotiate the
required network protocols, such as IPv6. Once this process is complete, IPv6 packets
can be sent and received across the link.
In an IPv4/IPv6 dual-stack network, the Link Control Protocol (LCP) allows for the
transport of both IPv4 and IPv6 traffic at the same time over a single PPP session. PPP
negotiates and then runs the two NCP’s independently in parallel—IPCP for IPv4 and
IP6CP for IPv6. The protocol field in the PPP header distinguishes IPv4 traffic (0x0021)
from IPv6 traffic (0x0057).
In contrast to IPCP, which provides other configuration information for IPv4 (such as DNS
information), IP6CP negotiates only an IPv6 interface identifier (IPv6 link-local address). To
dynamically configure an IPv6 global unicast address, IPv6 uses either stateless address
autoconfiguration (SLAAC) or DHCPv6. Router solicitations and router advertisements are
still useful on PPP links for router discovery, as are other functions of IPv6 neighbor
discovery.
For IPv6, the Service Provider Access Concentrator (AC) can assign an IPv6 global
address to the remote peer via SLAAC or DHCPv6. The AC end of the PPP link typically
has only a link-local IPv6 address. Whichever method the AC uses to assign an IPv6
global address to the PPP client, it can and should be configured to generate router
advertisement messages. These messages can be used by the PPP client to populate its
default routers list (RFC 4861) and to optionally construct IPv6 SLAAC addresses on the
WAN interface.
Note: The IPv6 global unicast address delegated to the device via the PPP link does
not have to be configured on the PPP client interface. It is also valid for the PPP
link to only contain a link-local address, with the IPv6 global unicast addressing
information associated with another interface.
Currently the router only supports the use of link-local addressing on PPP
interfaces, as well as static addressing and SLAAC (stateless address
autoconfiguration).
PPP IP Borrow
PPP IP borrow is to process IP packets on an PPP interface without explicitly assigning an
IP address. This action can be performed by borrowing an IP address from another
interface. The PPP interface which borrows the IP address is called the unnumbered
interface. This feature is especially useful to save the scarce IPv4 addresses.
You can use the ip unnumbered command to borrow primary IPv4 address from specified
interfaces like VLAN, loopback, ethernet and bridge. The IP address will be borrowed from
the specified interface regardless of the operational state of the interface, for example, it
doesn't matter if a vlan or ethernet interface is up or down, the IP address will be used.
Packet originating from the AlliedWare Plus device's unnumbered PPP interface has
borrowed IP address as its source IP address. PPP interface advertises borrowed IP
address, while locally using 0.0.0.0 on its interface, cannot be used as IP interface.
Dynamic routing protocols such as OSPF and BGP are allowed to operate over
unnumbered PPP interface. You can use the no peer neighbor-route command to
suppress the connected host route (with subnet mask /32) that AlliedWare Plus normally
creates for the PPP interface.
On AlliedWare Plus devices, PPP links can be established over L2TP and PPPoE and can
transport both IPv4 and IPv6 protocols.
An idle timer will disconnect the connection after certain seconds determined by the
configured device. This would be reset upon either ingress or egress user traffic. Non-user
traffic such as Link Control Protocol (LCP) keepalives and Network Control Protocol (NCP)
negotiation packets do not reset the idle timer. You can use the ppp timeout idle
command to enable the PPP Dial on Demand feature by specifying an idle time when a
ppp connection is disconnected.
For a TCP packet, the packet size is the header size plus the MSS, where the header size
is the size of the packet header and the MSS is the largest amount of TCP data (in bytes)
that the device can transmit or receive in one single data packet. To avoid fragmentation,
the MSS must be less than the MTU by at least an amount equal to the packet header
size.
The MTU size for an interface is set manually with the mtu command. See the mtu
command for details about setting the MTU manually.
If MSS clamping is configured on an interface, then the MSS value in TCP SYN packets
egressing the interface will be examined. If the MSS value in a given TCP SYN is too large
for the interface, then the MSS is reduced to a suitable value. The definition of “too large”
depends on the way in which MSS clamping has been configured on the interface.
MSS clamping has been configured with a specific MSS value. TCP SYNs egressing
the interface have an MSS value greater than the configured MSS value, then their MSS
is reduced to the configured value.
MSS clamping has been configured to calculate the maximum MSS value from the
interface's MTU. If the MSS value in an egressing TCP SYN is larger than the value of
MTU-<header size>, then the packet's MSS is reduced to the value of MTU-<header
size>.
The MSS value in the TCP SYN is rewritten, and the header checksum is recalculated and
rewritten into the packet which is then sent on its way.
You can configure MSS clamping for IPv4 by using the ip tcp adjust-mss command. You
can also configure MSS clamping for IPv6 by using the ipv6 tcp adjust-mss command.
If a particular value is specified in the command, then the MSS will be set to that value. If
the keyword pmtu is specified, then the MSS will be calculated from the interface MTU,
using the following formula:
For example, if you are configuring the mtu command on the same PPP interface as the
ip tcp adjust-mss command, it is recommended that you use the following commands
and values, as part of the PPPoE interface configuration:
awplus#configure terminal
awplus(config)#interface ppp0
awplus(config-if)#ip tcp adjust-mss 1452
awplus(config-if)#mtu 1492
C613-22023-00 REV C
NETWORK SMARTER
North America Headquarters | 19800 North Creek Parkway | Suite 100 | Bothell | WA 98011 | USA | T: +1 800 424 4284 | F: +1 425 481 3895
Asia-Pacific Headquarters | 11 Tai Seng Link | Singapore | 534182 | T: +65 6383 3832 | F: +65 6383 3830
EMEA & CSA Operations | Incheonweg 7 | 1437 EK Rozenburg | The Netherlands | T: +31 20 7950020 | F: +31 20 7950021
alliedtelesis.com
© 2016 Allied Telesis, Inc. All rights reserved. Information in this document is subject to change without notice. All company names, logos, and product designs that are trademarks or registered trademarks are the property of their respective owners.