Configuring the Receive Window Size
You can configure the L2TP receive window size (RWS) for an L2TP tunnel. L2TP uses the RWS to implement a sliding window mechanism for the transmission of control messages.
When you configure the RWS, you specify the number of packets that the L2TP peer can transmit without receiving an acknowledgment from the router. If the RWS is not configured, the router determines the RWS and uses this value for all new tunnels on both the LAC and the LNS.
You can configure the L2TP RWS in the following ways:
- Configure the systemwide default RWS setting for a tunnel on both the LAC and the LNS by using the l2tp tunnel default-receive-window command (in Global Configuration mode).
- Configure the RWS for a tunnel on the LAC by using either the receive-window command (in Domain Map Tunnel Configuration mode) or by including the L2tp-Recv-Window-Size RADIUS attribute (VSA 26-54) in RADIUS Access-Accept messages.
- Configure the RWS for all tunnels that use a particular host profile on the LNS by using the receive-window command (in L2TP Destination Profile Host Configuration mode).
Configuring the Default Receive Window Size
Use the l2tp tunnel default-receive-window command to configure the default L2TP RWS for a tunnel on both the LAC and the LNS. The default L2TP RWS is the number of packets that the L2TP peer can transmit without receiving an acknowledgment from the router. The only supported value is 4.
To configure the default RWS setting:
- From Global Configuration mode, set the L2TP default RWS. The only value supported for the default RWS is 4.
host1(config)#l2tp tunnel default-receive-window 4The router uses this RWS value for all new tunnels on both the LAC and the LNS. The new command has no effect on previously configured tunnels.
- (Optional) Use the show l2tp command to verify the default RWS configuration.
host1#show l2tpConfigurationL2TP administrative state is enabledDynamic interface destruct timeout is 600 secondsData packet checksums are disabledReceive data sequencing is not ignoredTunnel switching is disabledRetransmission retries for established tunnels is 5Retransmission retries for not-established tunnels is 5Tunnel idle timeout is 60 secondsFailover within a preference level is disabledWeighted load balancing is disabledTunnel authentication challenge is enabledCalling number avp is enabledIgnore remote transmit address change is disabledDisconnect cause avp is disabledDefault receive window size is 4Sub-interfaces total active failed auth-errorsDestinations 0 0 0 n/aTunnels 0 0 0 0Sessions 0 0 0 n/aSwitched-sessions 0 0 0 n/aConfiguring the Receive Window Size on the LAC
Use the receive-window command to configure the L2TP RWS for a tunnel on the LAC. Use the no version of the command to revert to the systemwide RWS setting configured with the l2tp tunnel default-receive-window command.
To configure the RWS for a tunnel on the LAC:
- Access Domain Map Tunnel Configuration mode as described in Mapping a User Domain Name to an L2TP Tunnel Overview in Chapter 12, Configuring an L2TP LAC. For example:
host1(config)#aaa domain-map fms.comhost1(config-domain-map)#router-name westfordhost1(config-domain-map)#tunnel 3host1(config-domain-map-tunnel)#- From Domain Map Tunnel Configuration mode, set the tunnel RWS. The only value supported for the tunnel RWS is 4, and it must be the same for all users of the same tunnel.
host1(config-domain-map-tunnel)#receive-window 4- (Optional) Use the show aaa domain-map command to verify the RWS configuration.
host1#show aaa domain-mapDomain: fms.com; router-name: westford; ipv6-router-name: defaultTunnelTunnel Tunnel Tunnel Tunnel Tunnel Tunnel Tunnel ClientTag Peer Source Type Medium Password Id Name------ ------ ------ ------ ------ -------- ------ ------3 <null> <null> l2tp ipv4 <null> <null> <null>Tunnel TunnelTunnel Server Tunnel Max TunnelTag Name Preference Sessions RWS------ ------ ---------- -------- ------3 <null> 2000 0 4You can also configure the RWS for a tunnel on the LAC by including the L2tp-Recv-Window-Size RADIUS attribute (VSA 26-54) in RADIUS Access-Accept messages. For more information about RADIUS Access-Accept messages, see Chapter 3, Configuring RADIUS Attributes. For more information about the L2tp-Recv-Window-Size attribute, see Chapter 6, RADIUS Attribute Descriptions.
Configuring the Receive Window Size on the LNS
Use the receive-window command to configure the L2TP RWS for a tunnel on the LNS. Use the no version of the command to revert to the systemwide RWS setting configured with the l2tp tunnel default-receive-window command.
To configure the RWS for a tunnel on the LNS:
- Access L2TP Destination Profile Host Configuration mode. For example:
host1(config)#virtual-router fms02host1:fms02(config)#l2tp destination profile fms02 ip address 192.168.5.61host1:fms02(config-l2tp-dest-profile)#remote host fms03host1:fms02(config-l2tp-dest-profile-host)#- From Destination Profile Host Configuration mode, set the tunnel RWS. The only value supported for the tunnel RWS is 4.
host1:fms02(config-l2tp-dest-profile-host)#receive-window 4
TIP: If you modify the RWS setting of a host profile for an existing tunnel, the router drops the tunnel. This action is consistent with router behavior when you modify an L2TP host profile.
- (Optional) Use the show l2tp destination profile command to verify the RWS configuration.
host1:fms02#show l2tp destination profile fms02L2TP destination profile fms02Destination addressTransport ipUdpVirtual router fms02Peer address 192.168.5.61Host profile attributesRemote host is fms03Receive window size is 41 L2TP host profile found