Configuring the Transmit Connect Speed Calculation Method
You can configure the method that the router uses to calculate the transmit connect speed of the subscriber's access interface for a tunneled L2TP session. L2TP reports the transmit connect speed in L2TP Transmit (TX) Speed AVP 24. During the establishment of an L2TP tunnel session, the LAC sends AVP 24 to the LNS to convey the transmit speed of the subscriber's access interface.
You can configure the calculation method for the transmit connect speed reported in L2TP Transmit (TX) Speed AVP 24 in any of the following ways. The first three methods—AAA domain maps, AAA tunnel groups, and RADIUS—are mutually exclusive.
- AAA domain maps—Use the tx-connect-speed-method command from Domain Map Tunnel Configuration mode. For instructions, see Using AAA Domain Maps to Configure the Transmit Connect Speed Calculation Method.
- AAA tunnel groups—Use the tx-connect-speed-method command from Tunnel Group Tunnel Configuration mode. For instructions, see Using AAA Tunnel Groups to Configure the Transmit Connect Speed Calculation Method.
- RADIUS—Include the Tunnel-Tx-Speed-Method RADIUS attribute (Juniper Networks VSA 26-94) in RADIUS Access-Accept messages. For instructions, see Using RADIUS to Configure the Transmit Connect Speed Calculation Method.
- AAA default tunnel parameters—Use the aaa tunnel tx-connect-speed-method command from Global Configuration mode. The router uses the calculation method specified with this command if the tunnel attributes returned from an AAA domain map, an AAA tunnel group, or a RADIUS authentication server do not include the transmit connect speed calculation method.For instructions, see Using AAA Default Tunnel Parameters to Configure the Transmit Connect Speed Calculation Method.
Calculation Methods
In previous releases, the router calculated the transmit speed of the subscriber's access interface based only on statically configured settings for the underlying layer 2 access interface. With this feature, you can obtain a more accurate representation of the transmit connect speed by choosing a calculation method that reflects changes to the layer 2 interface due to statically configured settings, dynamically configured settings, or QoS settings.
You can choose one of the following methods for calculating the transmit connect speed that is reported in L2TP Transmit (TX) Speed AVP 24:
The following sections describe each of these calculation methods.
NOTE: Configuring the transmit connect speed calculation method has no effect on the operation of the L2TP Receive (RX) Speed AVP 38 or the Connect-Info RADIUS attribute [77] at the LAC.
Static Layer 2
The static layer 2 method calculates the transmit connect speed of the subscriber's access interface based on the statically configured settings for the underlying layer 2 ATM 1483 or Ethernet interface. The static layer 2 method does not reflect changes to the transmit speed of the layer 2 interface due to dynamically configured settings or to QoS.
For ATM 1483 circuits, the static layer 2 value is based on the bandwidth that the connection requires. The router uses certain traffic parameters for each service category to determine the required bandwidth for the connection. For more information about how the router computes bandwidth for ATM 1483 circuits, see Connection Admission Control in JUNOSe Link Layer Configuration Guide, Chapter 1, Configuring ATM.
For Ethernet VLANs, the static layer 2 value is the advisory transmit speed of the VLAN subinterface, if configured with the vlan advisory-tx-speed command, or the speed of the underlying physical port if the advisory transmit speed is not configured.
If there is no explicit static configuration for the layer 2 interface, L2TP reports the speed of the underlying physical port as the transmit connect speed.
Dynamic Layer 2
The dynamic layer 2 method calculates the transmit connect speed of the subscriber's access interface based on the dynamically configured settings for the underlying layer 2 interface.
If there is no dynamic configuration for the layer 2 interface, L2TP reports the transmit connect speed based on statically configured settings. If there is no static speed configuration for the layer 2 interface, L2TP reports the speed of the underlying physical port as the transmit connect speed.
QoS
The QoS method calculates the transmit connect speed of the subscriber's access interface based on settings determined by static or dynamic QoS configurations. This calculation is based on the interface columns that QoS uses to build scheduler profiles for L2TP sessions. For example, a typical interface column might consist of an L2TP session over an Ethernet VLAN over a Gigabit Ethernet interface.
You can configure QoS to control the rate of any logical interface in the interface column. For those logical interfaces with a rate controlled by QoS, QoS reports this configured rate as the transmit connect speed for that interface. For those logical interfaces that do not have a QoS-configured rate, QoS reports the speed of the underlying physical port as the transmit connect speed.
For more information, see QoS and L2TP TX Speed AVP 24 in JUNOSe Quality of Service Configuration Guide, Chapter 8, Configuring ATM, Ethernet, and L2TP for QoS.
Actual
The actual method calculates the transmit connect speed of the subscriber's access interface as the lesser of the following two values:
Calculation Examples
The examples in this section illustrate how the router uses the methods described in Calculation Methods to calculate the transmit connect speed.
Example 1: L2TP Session over ATM 1483 Interface
In this example, an L2TP session is established over an ATM 1483 subinterface on an OC3/STM1 ATM IOA. The configuration has the following characteristics:
- There is no explicit static configuration for the layer 2 (ATM 1483) interface.
- A transmit connect speed of 10 Mbps is provided dynamically from a RADIUS authentication server when the subscriber logs in.
- The transmit connect speed calculated by QoS is 5 Mbps.
Based on these characteristics, Table 24 lists the transmit connect speed value reported in L2TP Transmit (TX) Speed AVP 24 for each calculation method, and the reason why L2TP reports this value.
Example 2: L2TP Session over Ethernet VLAN Interface
In this example, an L2TP session is established over a PPPoE subinterface over an Ethernet VLAN subinterface. The configuration has the following characteristics:
- The Ethernet VLAN subinterface is configured with an advisory transmit speed of 100 Mbps.
- The dynamic layer 2 setting does not apply to the VLAN subinterface.
- The transmit connect speed calculated by QoS is 10 Mbps.
Based on these characteristics, Table 25 lists the transmit connect speed value reported in L2TP Transmit (TX) Speed AVP 24 for each calculation method, and the reason why L2TP reports this value.
Transmit Connect Speed Reporting Considerations
The following considerations affect the transmit connect speed value reported in L2TP Transmit (TX) Speed AVP 24 when you use this feature.
Session Termination for Dynamic Speed Timeout
Under certain heavy load conditions, the router might be unable to obtain the dynamic-layer2 value for the transmit connect speed of the subscriber's access interface. In this situation, the LAC sends the LNS an L2TP Call-Disconnect-Notify (CDN) message to terminate the L2TP session.
For more information about supported L2TP terminate reasons, see Appendix C, Application Terminate Reasons.
Advisory Speed Precedence for VLANs over Bridged Ethernet
For interface columns that consist of an L2TP session over an Ethernet VLAN subinterface over a bridged Ethernet interface, the advisory transmit speed of the VLAN subinterface, if configured with the vlan advisory-tx-speed command, takes precedence over the physical port speed of the underlying layer 2 ATM 1483 interface. As a result, if the advisory transmit speed is configured for the VLAN subinterface, L2TP reports this value as the transmit connect speed regardless of the port speed of the ATM 1483 interface.
Using AAA Domain Maps to Configure the Transmit Connect Speed Calculation Method
To configure the transmit connect speed calculation method for a tunneled L2TP session associated with an AAA domain map:
- Access Domain Map Tunnel Configuration mode.
host1(config)#aaa domain-map sunnyvale.comhost1(config-domain-map)#router-name lachost1(config-domain-map)#tunnel 5host1(config-domain-map-tunnel)#For more information about how to map a domain to an L2TP tunnel from Domain Map Tunnel Configuration mode, see Mapping a User Domain Name to an L2TP Tunnel.
- From Domain Map Tunnel Configuration mode, configure the calculation method for the transmit connect speed of the subscriber's access interface.
host1(config-domain-map-tunnel)#tx-connect-speed-method dynamic-layer2- (Optional) Use the show aaa domain-map command to verify configuration of the transmit connect speed calculation method.
host1(config-domain-map-tunnel)#run show aaa domain-mapDomain: sunnyvale.com; router-name: lac; ipv6-router-name: defaultTunnelTunnel Tunnel Tunnel Tunnel Tunnel Tunnel Tunnel ClientTag Peer Source Type Medium Password Id Name------ ------ ------ ------ ------ -------- ------ ------5 <null> <null> l2tp ipv4 <null> <null> <null>Tunnel Tunnel TunnelTunnel Server Tunnel Max VirtualTag Name Preference Sessions Tunnel RWS Router------ ------ ---------- -------- -------------- -------5 <null> 2000 0 system chooses <null>Tunnel Tunnel TunnelTunnel Failover Switch TxTag Resync Profile Speed Method------ -------- ------- --------------5 <null> <null> dynamic layer2tx-connect-speed-method
- Use from Domain Map Tunnel Configuration mode to configure the method that the router uses for calculating the transmit connect speed of the subscriber's access interface for a tunneled L2TP session associated with an AAA domain map.
- L2TP reports the transmit connect speed in L2TP Transmit (TX) Speed AVP 24.
- You must specify the calculation method for the transmit connect speed in one of the following ways:
- For calculation based on statically configured settings for the underlying layer 2 interface, use the static-layer2 keyword.
- For calculation based on dynamically configured settings for the underlying layer 2 interface, use the dynamic-layer2 keyword.
- For calculation based on settings determined by QoS, use the qos keyword.
- For calculation as the lesser of the dynamic-layer2 value or the qos value, use the actual keyword.
host1(config-domain-map-tunnel)#tx-connect-speed-method qosUse the no version to remove configuration of the transmit connect speed calculation method from the AAA domain map. Using AAA Tunnel Groups to Configure the Transmit Connect Speed Calculation Method
To configure the transmit connect speed calculation method for a tunneled L2TP session associated with an AAA tunnel group:
- Access Tunnel Group Tunnel Configuration mode.
host1(config)#aaa tunnel-group bostonhost1(config-tunnel-group)#tunnel 3host1(config-tunnel-group-tunnel)#For more information about how to map a domain to an L2TP tunnel from Tunnel Group Tunnel Configuration mode, see Mapping a User Domain Name to an L2TP Tunnel.
- From Tunnel Group Tunnel Configuration mode, configure the calculation method for the transmit connect speed of the subscriber's access interface.
host1(config-tunnel-group-tunnel)#tx-connect-speed-method qos- (Optional) Use the show aaa tunnel-group command to verify configuration of the transmit connect speed calculation method.
host1(config-tunnel-group-tunnel)#run show aaa tunnel-groupTunnel Group: bostonTunnelTunnel Tunnel Tunnel Tunnel Tunnel Tunnel Tunnel ClientTag Peer Source Type Medium Password Id Name------ ------ ------ ------ ------ -------- ------ ------3 <null> <null> l2tp ipv4 <null> <null> <null>Tunnel Tunnel TunnelTunnel Server Tunnel Max VirtualTag Name Preference Sessions Tunnel RWS Router------ ------ ---------- -------- -------------- -------3 <null> 2000 0 system chooses <null>TunnelTunnel Tunnel TxTunnel Failover Switch SpeedTag Resync Profile Method------ -------- ------- ------3 <null> <null> qostx-connect-speed-method
- Use from Tunnel Group Tunnel Configuration mode to configure the method that the router uses for calculating the transmit connect speed of the subscriber's access interface for a tunneled L2TP session associated with an AAA tunnel group.
- For detailed information about how to use this command, see tx-connect-speed-method.
- Example
host1(config-tunnel-group-tunnel)#tx-connect-speed-method actualUse the no version to remove configuration of the transmit connect speed calculation method from the AAA tunnel group. Using RADIUS to Configure the Transmit Connect Speed Calculation Method
On the LAC, the router can receive tunnel configuration attributes through a RADIUS authentication server. To use RADIUS to configure the transmit connect speed calculation method for a subscriber's access interface, you can configure RADIUS to include the Tunnel-Tx-Speed-Method RADIUS attribute (Juniper Networks VSA 26-94) in RADIUS Access-Accept messages.
Table 26 describes the Tunnel-Tx-Speed-Method RADIUS attribute. For more information about RADIUS Access-Accept messages, see Chapter 2, Configuring RADIUS Attributes. For a description of the RADIUS attributes supported by JUNOSe software, see Appendix A, RADIUS Attribute Descriptions.
The method that the router uses to calculate the transmit connect speed of the subscriber's access interface
Using AAA Default Tunnel Parameters to Configure the Transmit Connect Speed Calculation Method
You can configure the transmit connect speed calculation method as a default AAA tunnel parameter by using the aaa tunnel tx-connect-speed-method command from Global Configuration mode. This command applies the specified calculation method to all tunneled L2TP sessions associated with a particular virtual router, and thereby alleviates the need for you to configure the transmit connect speed calculation method for each individual subscriber.
Configuring the calculation method as a default AAA tunnel parameter for a virtual router has lower precedence than using AAA domain maps, AAA tunnel groups, or RADIUS to configure the transmit connect speed calculation method. The router uses the calculation method specified with the aaa tunnel tx-connect-speed-method command if the tunnel attributes returned from an AAA domain map, an AAA tunnel group, or a RADIUS authentication server do not include the transmit connect speed calculation method.
To configure the transmit connect speed calculation method for all tunneled L2TP sessions associated with a particular virtual router:
- Create the virtual router for which you want to configure the transmit connect speed calculation method.
host1(config)#virtual-router northFor more information about configuring and using virtual routers, see JUNOSe System Basics Configuration Guide, Chapter 12, Configuring Virtual Routers.
- Configure the transmit connect speed calculation method in the context of this virtual router.
host1:north(config)#aaa tunnel tx-connect-speed-method qos- (Optional) Use the show aaa tunnel-parameters command to verify configuration of the transmit connect speed calculation method.
host1:north(config)#run show aaa tunnel-parametersTunnel password is <NULL>Tunnel client-name is <NULL>Tunnel nas-port-method is noneTunnel switch-profile is bostonTunnel tx-connect-speed-method is qosTunnel nas-port ignore disabledTunnel nas-port-type ignore disabledTunnel assignmentId format is assignmentIdTunnel calling number format is fixedaaa tunnel tx-connect-speed-method
- Use to configure the method that the router uses for calculating the transmit connect speed of the subscriber's access interface as a default AAA tunnel parameter for tunneled L2TP sessions associated with a particular virtual router.
- L2TP reports the transmit connect speed in L2TP Transmit (TX) Speed AVP 24.
- The router uses the calculation method specified with the aaa tunnel tx-connect-speed-method command if the tunnel attributes returned from an AAA domain map, an AAA tunnel group, or a RADIUS authentication server do not include the transmit connect speed calculation method.
- To specify the calculation method for the transmit connect speed, use one of the following keywords, as described in tx-connect-speed-method:
host1:south(config)#aaa tunnel tx-connect-speed-method dynamic-layer2Use the no version to remove configuration of the transmit connect speed calculation method from the tunneled L2TP sessions associated with this virtual router.