The targeted audience for this PPPoE slide pack are ALU-
engineers and distribution to customers is not allowed.
PPPoE
Bert.Todts@alcatel-lucent.be
PPPoE – workshop
Agenda
9. Scalability updated
10.Evolution. new
updated
Local-Access-Model
In the local access model, a single network device is responsible for both
virtual circuit termination and PPP session termination. Whoever owns the
Edge device is responsible for maintaining both the underlying network and the
database of end-user information.
Tunneled Access-Model
In the tunneled access model there is a separation between who is responsible
for the virtual circuit termination and who is responsible for the PPP session
termination.
Local-Access-Model
Tunneled Access-Model
Wholesale-Retail via L2TP (Layer 2 Tunnel Protocol). R7
RADIUS
Server
P2P
ISP2
IBGP PE
user1@ISP1 PPPoE
IES/VRF ISP1
user2@ISP1
ISP3
user3@ISP1
LUDB DHCP
VLAN/subscriber model.
PADI/PAP/CHAP via LUDB/RADIUS
IP via LUDB/RADIUS/DHCP
RADIUS
Server ISP2
P2P VRF
PPPoE IBGP PE
PADI Capture
user1@ISP2 ISP1
VPLS
PPPoE
user1@ISP3 VRF VRF
VRF
VRF ISP3
user2@ISP3
LUDB DHCP
Access Node
BNG
EBGP
EBGP
HOST BNG
PADI
PADO
PPPoE Discovery
PADR
PADS INTERNET Web-Server
LCP session stage LCP Config-req/Ack
PAP/CHAP
Authentication Phase
IPCP Config-req/Ack
Network-Layer Phase
IBGP PE
user1@ISP3 PPPoE
VRF ISP1
wholesale
VRF
user1@ISP1 VRF
VRF
VRF
user1@ISP2 ISP3
PPPoE packets for user1@ISP3 are tunneled in GRE-like tunnel to LNS1-ISP3 ( UDP port 1701)
L2TP tunnel1 ISP2
SRC-IP L2TP is (hardcoded) system interface. L2TP tunnel2 ISP2 L2TP Tunnel group
L2TP tunnel3 ISP2
Multiple bidirectional sessions (calls) may use a
single L2TP tunnel.
RADIUS
Server
P2P
LNS1 ISP2
LNS2
IBGP PE @IP/32 LNS3
PPPoE
user1@ISP1 IES/VRF ISP1
user1@ISP3 PPPoE
IES/VRF L2TP tunnel ISP3
NW-port
user2@ISP3 LNS1-ISP3 ISP3
7750 SR
Access Node
LAC P2P
EBGP
L2TP uplinks require network ports on IOM3/IMM EBGP
L2TP is HA.
IPv6 for L2TP peer setup not supported.
http://www.iana.org/assignments/radius-types
PADI may be used to select the PADO delay. This requires access to the local
user database. A second user lookup may be required for Radius.
We support L2TPv2 which is used for the tunnelling of PPP packets across an
intervening network is based and on RFC 2661. (Aug 1999).
L2TPv3 not supported ( RFC 3931: IP-Tunnels other L2 protocols. (PPP, Eth, FR..)
RFC 4951 (Fail Over Extensions for Layer 2 Tunnelling Protocol (L2TP) "failover“ )
Protects against control channel failures only.
On LAC side we don’t require mechanism because we sync the sequence nbrs via HA.
Ip1
LAC LNS active
HA
updated
updated
d) QoS
a) What
a) Whatdoes
doesthe
the7710/7750
7710/7750offers
offers inin7.0
7.0and
andLAB-setup
LAB-setup e) Resilience / Redundancy
d) QoS
Platforms
7710/7750 SR7/12 on IOM2/3
Connectivity
Supported only on Ethernet null, Dot1Q and QinQ SAPs.
– External loop or VSM required if L2 aggregation used.
VLAN per customer
VLAN per service
MTU>1492 support.
Session control capabilities
PPPoE sessions may be limited per SAP (host limit) and per SLA-profile.
Optional combined support of static DHCP host , DHCP and PPPoE hosts on a single SAP
Managed SAPs (aka. Auto-VLAN):
– default SAP with auto-discovery of VLAN; valid for VLAN/sub configs
Authentication
Security
Anti-spoofing during PPP phase: IP+MAC based
Routing in IES or VPRN context aka Routed CO.
PPPoE capable interface can be created within a subscriber interface in both IES and
VPRN services
QoS
Same as for DHCP subscriber hosts; I.e. as per ESM attributes
High Availability
HA for PPPoE subscriber host information is fully HA.
Miscellaneous
Support for Framed-IP 255.255.255.254 from Radius *** (since 6.0R3)
Support for Framed-route received via Radius (since 6.1.R1)
/177
DHCP-ESM 3 3 1
DHCP/RADIUS
138.203.18.79
Linux/Client
3 7 1
138.203.18.73 PE1/26
5 C1/RR1/23 PE3/182
1 5
4 21 2 2 11 8 2 1 1 2 13 1
A1/24 4
DHCP 5
6 9 3 4 6 4 3
2 A3/22
23 1 .
4
PPPoE 4 6 9 3 4 5 2 3
1 4 22 3 12 2 1
2 8 2 1 14 4
PPPoE-ESM
23 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
Addressing Antwerp -lab
P-cisco/177
10.2.79.2 DHCP/RADIUS
3 138.203.18.79
10.2.79.79
Link : 172.16.10. Z / 22
Linux/Client .78
138.203.18.73
PE1/26 .77 C1/RR1/23 PE3/182
A1/24 .9
DHCP .14
.18 .33 .42
.121
.21 .129
.49
.46 A3/22
23
.
.126
.50
PE2/176
C2/RR2/183
Linux/Client
138.203.18.73
1/1/3:0.* 1/1/7
PPPoE client on LINUX 138.203.18.73 10.2.79.79
1/1/3:21 10.2.79.2
SAP A1
mpcsim IES 103
IES 998
VLL 999
Gi A
SAP A2 IES/
VPRN
Gi B PE1-26 -177
SAP B1
-73
Eth2
SDP 11
1/1/2:0.*
Epipe
1/1/1:999.*
IES 998
138.203.18.176
VPLS 999 SDP 12 VLL 999
999 1/1/4:999.*
A2 PE2
1/1/3:0.* 1/1/7
CE-171 A2-181
PE2-176
a) What does the 7710/7750 offers in 7.0 and LAB-setup e) Resilience / Redundancy
b) different
b) different PPPoE
PPPoE scenarios.
scenarios. f) Security
d) QoS
Remark: DNS-info is seen as IP-info and should be retrieved from the same place as the IP-address. If this
is not true than we will send an ipcp-reject for this option. DNS-info can come from LUDB , Radius or
Local-DHCP server.
PAP/CHAP PAP/CHAP
Phase User-1 Phase
6.1
LUDB Radius
2 4
DHCP DHCPS
PPPoE client
IPCP
phase LUDB User-1
3
PAP/CHAP
Phase
Or external DHCPs
IP Static
IP Dynamic
ESM-strings In Radius
LUDB
ESM-strings LUDB
User-1
Sub-id ESM-strings
2 Subscriber-id LUDB
ESM-strings LUDB
DHCP DHCPS
PPPoE client Subscriber-id LUDB
LUDB
User-1
3 Sub-id ESM-strings DHCPs gives the ESM-string to the DHCP
client via a configured DHCP option.
suggest CHAP
LCP Config Request, Session ID: 0x0001,ID=64
Session stage :
sub-profile-string
value , Name : user1@domain1 Local subscriber-id
user
db
dns-server
CHAP Success , Session ID: 0x0001 net-bios-name-server
message : CHAP auth. success
debug
Type of debug ( packets / events ) service
id 998
pppoe
debug service id 998 pppoe packet packet
mode dropped-only
By default dropped-only detail-level medium
discovery
By default detail-level medium ppp
dhcp-client
exit
By default all ppp packets exit
– discovery [padi] [pado] [padr] [pads] [padt] exit
exit
– ppp [lcp] [pap] [chap] [ipcp] exit
By default also dhcp-client
Setup user1 and Use debug to see control plane ppp. ========================================================
Sap Id Mac Address Sid Up Time IP Address
--------------------------------------------------------
1/1/7 00:00:00:00:00:01 1 2d 01:41:52 192.168.42.1
See wire shark : control plane + ping included
LCP State : Opened
IPCP State : Opened
PPP MTU : 1000
PPP Auth-Protocol : CHAP
PPP User-Name : user1@domain1
Subscriber-interface : to_A2_via_hairpin
Group-interface : isam-1
Subscriber Origin : Local-User-Db
Subscriber Origin : Local-User-Db
Strings Origin
Strings Origin : Local-User-Db
: Local-User-Db
Keepalives in debug ? IPCP Info Origin
IPCP Info Origin : Local-User-Db
: Local-User-Db
Subscriber : "user1"
show service id 998 pppoe session session-id 1 statistics Sub-Profile-String
SLA-Profile-String
:
:
"sub1"
"sla1"
ANCP-String : ""
Int-Dest-Id : ""
App-Profile-String : ""
1 2008/02/29 14:06:01.42 UTC WARNING: SVCMGR #2500 Base Subscriber created
Primary DNS : 138.203.144.51
Secondary DNS : N/A
"Subscriber user1 has been created in the system" Primary NBNS : 138.203.144.51
Secondary NBNS : N/A
Circuit-Id :
Remote-Id :
Session-Timeout : N/A
Gives you a list of all subscribers with also the profiles used plus IP,MAC and type.
Show service active-subscribers hierarchy
tools
dump pppoe sap 1/1/7 session-id 1 : shows the complete pppoe stack
show subscriber-mgmt
local-user-db : returns name of ludb’s and number of configured hosts.
local-user-db ludb-1 pppoe-all-hosts : return the name of the hosts.
local-user-db ludb-1 pppoe-host host1
show subscriber-mgmt local-user-db ludb-1 pppoe-unmatched-hosts : shows the hosts that
are configured in the ludb but but not installed because of not “conform”. Example :
match-list username but host uses mac as key. Also duplicates are reported.
tools
perform subscriber-mgmt local-user-db ludb-1 pppoe host-lookup user-name user1@domain1 :
Check if user exists in ludb.
CPM Switch-over
"PPPoE session failure on SAP 1/1/7 in service 998 - Reached the per-SAP session limit (1)"
1 2008/02/29 17:50:17.33 UTC WARNING: PPPOE #2001 Base PPPoE session failure
"PPPoE session failure on SAP 1/1/7 in service 998 - Number of subscribers exceeds the configured multi-sub-sap limit (1)"
1 2008/02/29 18:02:44.53 UTC WARNING: PPPOE #2001 Base PPPoE session failure
"PPPoE session failure on SAP 1/1/7 in service 998 - Reached the maximum number (1) of PPPoE sessions for MAC 00:00:00:00:00:02"
1 2008/0x/x 21:34:14.64 CEST WARNING: PPPOE #2001 Base PPPoE session failure
"PPPoE sessio failure SAP 1/1/9:998 in service 998 - Reached the maximum number (63) of PPPoE sessions for MAC 00:00:c0:01:01:02"
Peer-id user14@domain1
Session stage
PAP in LUDB
PAP auth ack , Session ID: 0x0001,id 232 Local
Message : login ok user IP address 192.168.42.14
db sla-profile-string
sub-profile-string
subscriber-id
IPCP Configure-request, Session ID: 0x0001,ID-183 [3] IP dns-server
address: 192.168.42.254 net-bios-name-server
Subscriber-interface : to_A2_via_hairpin
Group-interface : isam-1
Subscriber Origin : Local-User-Db
Subscriber Origin : Local-User-Db
Strings Origin
Strings Origin : Local-User-Db
: Local-User-Db
IPCP Info Origin
IPCP Info Origin : Local-User-Db
: Local-User-Db
Subscriber : "user14"
Sub-Profile-String : "sub1"
SLA-Profile-String : "sla1"
ANCP-String : ""
Int-Dest-Id : ""
App-Profile-String : ""
Session-Timeout : N/A
11 2008/03/10 17:04:40.91 UTC WARNING: PPPOE #2001 Base PPPoE session failure
"PPPoE session failure on SAP 1/1/7 in service 998 - [00:00:00:00:00:0e,1] User "user14@domain1" requires CHAP password"
PAP authentication
Peer-id user14@domain1
Session stage
CHAP in LUDB
PAP auth Nack , Session ID: 0x0001,id 232 Local
Message : login incorrect user IP address 192.168.42.14
db sla-profile-string
sub-profile-string
subscriber-id
PADT dns-server
net-bios-name-server
MAC
Access accept User4
PADO, Session ID: 0x0000
ESM , Framed-IP ,.. Sla1
PPPoE tag: option: 0x101,0x102, 0x103, 0x104 Sub1
PADR, Session ID: 0x0000 Framed IP
PPPoE tag: option: 0x101,0x102, 0x103, 0x104
PADS, Session ID: 0x0001
PPPoE tag: option: 0x101,0x102, 0x103, 0x104
Don’t suggest
LCP Config Request, Session ID: 0x0001, ID=105
Options: 0x1 MRU, 0x5 Magic nbr PAP/CHAP anymore
LCP session negotiation
.../raddb/clients.conf
How are the different ESM objects communicated by RADIUS server ?
client 172.16.0.21 {
secret = WhoIsThere
Standard RADIUS attributes shortname = A1
nastype = other
}
framed-ip-address [8], framed-ip-netmask [9], NAS-identifier [32], NAS-port [87] client 172.16.0.22 {
secret = WhoIsThere
shortname = A2
Vendor specific attributes (VSAs) nastype = other
}
client 172.16.0.11 {
Alcatel IPD – using Timetra vendor-id [6527] – see IPD RADIUS dictionary secret = WhoIsThere
shortname = PE1
JUNIPER & REDBACK attributes – relevant VSAs to ease migration nastype = other
}
client 172.16.0.12 {
secret = WhoIsThere
/var/local/etc/raddb/dictionary shortname = PE2
nastype = other
$INCLUDE /usr/local/etc/raddb/Alcatel-Lucent_IPD_dictionary }
$INCLUDE /usr/local/etc/raddb/DSL-forum_dictionary
/var/local/etc/raddb/users
– MAC
– Circuit-id
– Tuple ( concatenation of MAC & Circuit-id )
– Ascii-converted-circuit-id
– Ascii-converted-tuple
User-Password, attribute 2
NAS IP address , attribute 4
– Will be system-id of node.
Service-Type, attribute 6
– Needs to be “Framed” if returned by Radius
Framed-Protocol, attribute 7
– Needs to be “PPP” if returned by Radius
RADIUS RFC defines attribute [88] - framed-pool which is a string carrying the
ip-pool name. This provides extra flexibility in mapping different subscribers
into pools.
This pool is then used by the DHCP server to select the IP address pool
Failure Case
framed-pool name returned from Radius is not existing on 77x0.
IPCP session will not be opened.
1931 2008/09/24 01:13:53.04 UTC WARNING: DHCPS #2003 vprn300 Unknown pool
"DHCP server DHCP-SERVER1 detects an unknown pool (ACH4-512).
Pool extracted from dhcp-message is unknown in the server."
Send PPP-PADT to client after timeout on which client starts again:: 138.203.68.208
Primary DNS
Secondary DNS
with PADI.
138.203.68.209
Primary NBNS : N/A
Radius returns the DNS together with the IP-address. This DNS info will be Secondary NBNS : N/A
Circuit-Id :
returned to the PPPoE client if he asks this in hisRemote-Id
ipcp request: option 129
address 0.0.0.0. If the client did not ask this than we don’t send
Session-Timeout
it.(notes)
: 0d 00:05:00
*A:pe2.lab#configure subscriber-mgmt
Use same config as before but change mac pppoe-policy "group-2" create
ppp-mtu 1100
to circuit-id in auth policy. max-sessions-per-mac 10
exit
PPPoE vendor-specific tags is required on
DSLAM / PPPoE intermediate Agent.
Framed-IP-Adress
LCP State= 192.168.42.5,
: Opened
IPCP State : Opened
Framed-IP_Netmask
PPP MTU = 255.255.255.0
: 1100
PPP Auth-Protocol : None
PADI, Session ID: 0x0000 pppoe under gr-itf enabled without ludb
PPPoE tag: option: 0x101, 0x103, 0x105 circuit-id No auth-policy . Dhcp server enabled
Discovery stage
PAP/ CHAP
LCP Config Request, Session ID: 0x0001,ID=64
Session stage :
IPCP Configure-request, Session ID: 0x0001,ID-159 [3] IP DHCP discover : MAC option 82 circuit-id remote-id
address: 192.168.42.254
DHCP Offer : mac,option 82 circuit-id remote-id
Option 254 contains user9,sla1 sub1
DHCP
Local
DHCP Request : option 82 circuit-id remote-id DHCP
client
Server
DHCP ACK : option 82 circuit-id remote-id
IPCP Configure-request, Session ID: 0x0001,ID-77 , [3] IP
Option 254 contains user9,sla1 sub1
address: 0.0.0.0
IPCP Configure-Nack, Session ID: 0x0001, ID-77 [3] IP
address: 192.168.42.23
Session stage :
Mac 00:00:00:00:00:09
IPCP Configure-request, Session ID: 0x0001,ID-78 , [3] IP circuit-id : TRE26 atm 1/1/01/25:8.35
address: 192.168.42.23 User9 Local
user
IPCP Configure-ack, Session ID: 0x0001, ID-78 [3] IP Sub1 db
address: 192.168.42.23 sla1
Address pool-1
Subscriber-interface : to_A2_via_hairpin
circuit-id & mac for auth Group-interface : isam-1
Subscriber Origin : DHCP
– Impossible to use pap/chap usernameStrings
for auth.
Subscriber Origin
Origin
Strings Origin
: DHCP
: DHCP
: DHCP
IPCP
IPCP Info Origin: DHCP
Info Origin : DHCP
Subscriber : "user9"
Sub-Profile-String : "sub1"
Use debug to see control plane ppp. SLA-Profile-String
ANCP-String
:
:
"sla1"
""
Int-Dest-Id : ""
App-Profile-String : ""
Session-Timeout : N/A
-----------------------------------------------
Number of sessions : 1
circuit-id ( inserted by Intermediate Agent ) ==============================================
*A:pe2.lab#
[00:00:00:00:00:09,1] Cannot start DHCP client: PPPoE is not configured as DHCP relay client-application on group-interface"
– In the PPPoE -> client DHCP-discover we set always the client type
– clntType 1 = pppoE
DHCP client: Tx packet :
DHCP discover to server 172.16.0.12
DHCP options:
[82] Relay agent information: len = 48
configure subscriber-mgmt local-user-db ludb-3 [1] Circuit-id: TRE26 atm 1/1/01/25:8.35
dhcp [2] Remote-id: 03-2404015
no match-list [9] Vendor-Specific info: len = 8
no circuit-id-mask Enterprise [6527] : len = 3
exit [6] clntType: 1
pppoe [51] Lease time: 3600
no match-list [53] Message type: Discover
no circuit-id-mask [60] Class id: ALU7XXXSBM
exit [255] End
2 2008/03/07 10:31:36.11 UTC WARNING: PPPOE #2001 Base PPPoE session failure
*A:pe2.lab>
2 2008/03/07 14:55:48.49 UTC WARNING: DHCPS #2001 Base subnet minimum reached
"The number of free addresses (9) has fallen below the desired minimum (10) in subnet 192.168.42.0/24"
PADI, Session ID: 0x0000 pppoe enabled under group-interface with ludb-1
PPPoE tag: option: 0x101, 0x103 No auth-policy . dhcp server enabled
Discovery stage
Value
Psw : user16 CHAP
:
Local User16
value , Name : user1@domain1 user Sub1
db sla1 Use gi-address
CHAP Success , Session ID: 0x0001
message : CHAP auth. success address pool-1
Subscriber-interface : to_A2_via_hairpin
Use debug to see client control plane ppp. Group-interface : isam-1
Circuit-Id :
Remote-Id :
Session-Timeout : N/A
----------------------------------------------------------
Number of sessions : 1
Circuit-id
Access accept User11
PADO, Session ID: 0x0000
ESM Sla1
PPPoE tag: option: 0x101,0x102, 0x103, 0x104 Sub1
PADR, Session ID: 0x0000 NO IP
PPPoE tag: option: 0x101,0x102, 0x103, 0x104
PADS, Session ID: 0x0001
PPPoE tag: option: 0x101,0x102, 0x103, 0x104
Don’t suggest
LCP Config Request, Session ID: 0x0001, ID=139
Options: 0x1 MRU, 0x5 Magic nbr PAP/CHAP anymore
LCP session negotiation
IPCP Configure-request, Session ID: 0x0001,ID-132 [3] IP DHCP discover : option 82 circuit-id
address: 192.168.42.254
DHCP Offer : ,option 82 circuit-id
Yiaddr 192.168.42.29
DHCP Local
client DHCP Request : option 82 circuit-id DHCP
Server
DHCP ACK : option 82 circuit-id Option 254
IPCP Configure-request, Session ID: 0x0001,ID-133 , [3] IP requested ip : 192.168.42.29
address: 0.0.0.0
IPCP Configure-Nack, Session ID: 0x0001, ID-133 [3] IP
address: 192.168.42.29
Session stage :
Session-Timeout : N/A
-----------------------------------------------
Number of sessions : 1
==============================================
*A:pe2.lab#
Value
:
*A:pe2.lab#configure subscriber-mgmt
User-name-format irrelevant when pppoe- pppoe-policy "group-2" create
ppp-mtu 1100
access-method pap-chap. max-sessions-per-mac 10
exit
Username send to Radius is pap/chap user
pppoE vendor-specific tags is optional on
DSLAM but can be send to radius as well.
Setup user7 with mac 00:00:00:00:00:07 *A:pe2.lab# show service id 998 pppoe session detail
====================================================
PPPoE sessions for svc-id 998
Subscriber-interface : to_A2_via_hairpin
Users file uses Group-interface
Subscriber Origin
: isam-1
: Radius
Subscriber
Strings Origin
Origin : Radius: Radius
pap/chap username/psw for auth Strings Origin
IPCP
IPCPInfo
:
Origin :
Info Origin
Radius
Radius: Radius
Subscriber-interface : to_A2_via_hairpin
Group-interface : isam-1
Agent-circuit-id for auth Subscriber Origin
Subscriber Origin : Radius
: Radius
Strings Origin :
Strings Origin :
Radius Radius
Ignores pap/chap username IPCP
IPCPInfo Origin :
Info Origin :
Radius Radius
Subscriber : "user8"
More heavy for radius as DB can not be indexed anymore on username
Sub-Profile-String : "sub1"
SLA-Profile-String : "sla1"
ANCP-String : ""
Use debug to see control plane ppp. Int-Dest-Id
App-Profile-String
:
:
""
""
Session-Timeout : N/A
------------------------------------------------------
Number of sessions : 1
Value
:
DHCP
IPCP Configure-request, Session ID: 0x0001,ID-204 , [3] IP Server
DHCP ACK : option 82 circuit-id Option 254
address: 192.168.42.22
yiaddr : 192.168.42.22
IPCP Configure-ack, Session ID: 0x0001, ID-204 [3] IP
address: 192.168.42.22
Session-Timeout : N/A
-------------------------------------------------------
Number of sessions : 1
100 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Different PPPoE scenarios based on :
Authentication, IP, ESM cf1:\pe2.ppp3.cfg pe1 N/A
101 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Authentication via Radius PAP/CHAP =======================================================
PPPoE sessions for svc-id 998
IP from Local DHCP-server / ESM from======================================================
Radius
Sap Id Mac Address Sid Up Time IP Address
-------------------------------------------------------
Setup user13 with mac 00:00:00:00:00:0D 1/1/7 00:00:00:00:00:0d 1 0d 00:00:39 192.168.42.21
Subscriber
Subscriber Origin: Radius
Origin : Radius
No framed-ip from radius Strings Origin
Strings Origin : Radius
: Radius
IPCP Info Origin : DHCP
IPCP Info Origin : DHCP
pap/chap username
Subscriber : "user13"
Sub-Profile-String : "sub1"
Use debug to see control plane ppp. SLA-Profile-String : "sla1"
ANCP-String : ""
Int-Dest-Id : ""
App-Profile-String : ""
Session-Timeout : N/A
------------------------------------------------------
Number of sessions : 1
102 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
Agenda
a) What does the 7710/7750 offers in 7.0 and LAB-setup e) Resilience / Redundancy
c) Accounting
c) Accounting g) Change of Authority
d) QoS
103 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
Accounting methods
Radius accounting
104 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
The interval at which accounting data of tha
Radius accounting policy configuration subscriber host will be updated
Accounting-start
Send at the creation of a subscriber-host
Describes the subscriber-host
Accounting-stop
Accounting-Request(4) 10.2.79.79:1813 id 167 len 173
Interim-update STATUS TYPE [40] 4 Start(1)
NAS IP ADDRESS [4] 4 172.16.0.12
FRAMED IP ADDRESS [8] 4 192.168.42.28
Accounting-on FRAMED IP NETMASK [9] 4 255.255.255.255
NAS IDENTIFIER [32] 7 pe2.lab
Accounting-off SESSION ID [44] 36 user9@1/1/7@sla1_2008/03/22 07:14:30
NAS PORT TYPE [61] 4 PPPoEoE(32)
NAS PORT ID [87] 5 1/1/7
VSA [26] 38 DSL(3561)
AGENT CIRCUIT ID [1] 24 TRE26 atm 1/1/01/25:8.35
AGENT REMOTE ID [2] 10 03-2404015
VSA [26] 19 Alcatel(6527)
SUBSC ID STR [11] 5 user9
SUBSC PROF STR [12] 4 sub1
SLA PROF STR [13] 4 sla1
106 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
Accounting messages
Accounting-start
Accounting-stop
Send at the termination of the subscriber-host session
Includes accounting statistics for the given subscriber-host
Includes the termination cause. (RADIUS RFC 2865 defines a number of values for this
RADIUS attribute [49] *** See Notes
Interim-update Accounting-Request(4) 172.30.1.43:1813 id 246 len 252
STATUS TYPE [40] 4 Stop(2)
Accounting-on NAS IP ADDRESS [4] 4 172.30.1.33
USER NAME [1] 14 user9@idm.lb
SERVICE TYPE [6] 4 Framed(2)
Accounting-off FRAMED PROTOCOL [7] 4 PPP(1)
FRAMED IP ADDRESS [8] 4 10.192.0.7
FRAMED IP NETMASK [9] 4 255.255.255.255
NAS IDENTIFIER [32] 4 pe2.lab
SESSION ID [44] 40 0000000602208000006F00C80000000348C55AE2
SESSION TIMEOUT [46] 4 458
TERMINATE CAUSE [49] 4 User Request(1)
EVENT TIMESTAMP [55] 4 1220893868
107 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
Accounting messages
Accounting-start
Accounting-Request(4) 172.30.1.43:1813 id 225
Accounting-stop STATUS TYPE [40] 4 Interim-Update(3)
NAS IP ADDRESS [4] 4 172.30.1.33
USER NAME [1] 14 user111@idm.lb
Interim-update SERVICE TYPE [6] 4 Framed(2)
FRAMED PROTOCOL [7] 4 PPP(1)
Send interim-accounting messages to FRAMED IP ADDRESS [8] 4 10.192.0.9
NAS IDENTIFIER [32] 4 PE33
provide an update for every SESSION ID [44] 46user111@1/1/1...
subscriber-host. (configurable SESSION TIME [46] 4 77245
update-interval). EVENT TIMESTAMP [55] 4 1226945667
NAS PORT TYPE [61] 4 PPPoEoQinQ(34)
Include acct-session-time [46] also in NAS PORT ID [87] 13 1/1/1:300.300
VSA [26] 15 Alcatel(6527)
interim-updates iso only in SUBSC ID STR [11] 7 user111
accounting stop messages. SLA PROF STR [13] 4 512K
INPUT PACKETS [47] 4 0
Accounting-on INPUT OCTETS [42] 4 0
OUTPUT PACKETS [48] 4 1286
OUTPUT OCTETS [43] 4 82304
Accounting-off
108 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
Accounting messages
Accounting-start
Accounting-stop
Interim-update
Accounting-on
When a given radius-accounting-policy is applied to a given interface/sap/subscriber-
profile, or the first server is defined in context of already applied policy.
Sent also after a re-boot of the node.
Accounting-off
Accounting-Request(4) 10.2.79.79:1813 id 160 len 59
STATUS TYPE [40] 4 Accounting-On(7)
NAS IP ADDRESS [4] 4 172.16.0.12
NAS IDENTIFIER [32] 7 pe2.lab
EVENT TIMESTAMP [55] 4 1206168839
VSA [26] 6 Alcatel(6527)
SUBSC PROF STR [12] 4 sub1
109 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
Accounting messages
Accounting-off
When accounting policy has been removed from sap/interface/sub-profile
Service which is transporting accounting information has been shutdown.
The last RADIUS accounting server has been removed from already applied accounting
policy
Termination cause included.
110 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
Accounting messages : Some Acct-Terminate-Cause examples
111 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
Accounting messages : Some Acct-Terminate-Cause examples
PPPoE keepalive T.0 1 2001/01/1 16:10:52.36 UTC MINOR: DEBUG #2001 Base RADIUS
"RADIUS: Transmit Accounting-Request(4) 10.2.79.79:1813 id 5
STATUS TYPE [40] 4 Stop(2)
NAS IP ADDRESS [4] 4 172.16.0.12
FRAMED IP ADDRESS [8] 4 192.168.42.5
FRAMED IP NETMASK [9] 4 255.255.255.255
NAS IDENTIFIER [32] 7 pe2.lab
SESSION ID [44] 40 000000010223800000000000000…
SESSION TIMEOUT [46] 4 135
TERMINATE CAUSE [49] 4 Lost Carrier(2)
NAS PORT TYPE [61] 4 PPPoEoE(32)
. . .
112 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
Attributes : Accounting information
The main difference when using standard based accounting attributes is that
there is no separation between in-profile and out-profile counters. Therefore,
when standards based attributes are used, these counters will be accumulated.
113 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
Attributes : Accounting information
No use-std-acct-attributes
1023 2008/09/08 18:29:36.38 UTC MINOR: DEBUG #2001 Base RADIUS
"RADIUS: Accounting Request
policy GiveMeTheMoney"
radius-accounting-policy "GiveMeTheMoney" create 1024 2008/09/08 18:29:36.38 UTC MINOR: DEBUG #2001 Base RADIUS
description "Radius is counting . . . "RADIUS: Transmit
update-interval 10 Accounting-Request(4) 172.30.1.43:1813 id 76 len 312
STATUS TYPE [40] 4 Interim-Update(3)
include-radius-attribute NAS IP ADDRESS [4] 4 172.30.1.33
framed-ip-addr USER NAME [1] 14 user666@idm.lb
framed-ip-netmask SERVICE TYPE [6] 4 Framed(2)
subscriber-id FRAMED PROTOCOL [7] 4 PPP(1)
FRAMED IP ADDRESS [8] 4 10.165.0.66
circuit-id FRAMED IP NETMASK [9] 4 255.255.255.255
remote-id NAS IDENTIFIER [32] 4 PE33
nas-port-id SESSION ID [44] 40 0000000602208000029A00C80000000248C56C85
nas-identifier EVENT TIMESTAMP [55] 4 1220898576
NAS PORT TYPE [61] 4 PPPoEoQinQ(34)
sub-profil NAS PORT ID [87] 13 1/1/1:200.666
sla-profile VSA [26] 27 DSL(3561)
exit AGENT CIRCUIT ID [1] 16 ATM 1/1/4/6:8:35
session-id-format number AGENT REMOTE ID [2] 7 user666
VSA [26] 126 Alcatel(6527)
no use-std-acct-attributes SUBSC ID STR [11] 13 1/1/1:200.666
radius-accounting-server SUBSC PROF STR [12] 7 initial
source-address 172.30.1.33 SLA PROF STR [13] 4 128K
server 1 address 172.30.1.43 secret WhoIsThere INPUT_INPROF_OCTETS_64 [19] 10 0x00010000000000000000
INPUT_OUTPROF_OCTETS_64 [20] 10 0x000100000000000002ec
exit INPUT_INPROF_PACKETS_64 [23] 10 0x00010000000000000000
exit INPUT_OUTPROF_PACKETS_64 [24] 10 0x0001000000000000000b
OUTPUT_INPROF_OCTETS_64 [21] 10 0x000100000000000003de
OUTPUT_OUTPROF_OCTETS_64 [22] 10 0x00010000000000000000
OUTPUT_INPROF_PACKETS_64 [25] 10 0x0001000000000000000b
OUTPUT_OUTPROF_PACKETS_64 [26] 10 0x00010000000000000000
"
114 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
Attributes : Accounting information
0 0 0 0 0 0 0 0 0 1
1 2 3 4 5 6 7 8 9 0
Format: 10 byte word +---+---+---+---+---+---+---+---+---+---+
| queue | counter level |
| -id | |
+---+---+---+---+---+---+---+---+---+---+
115 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
Attributes : Accounting information
use-std-acct-attributes
radius-accounting-policy "GiveMeTheMoney" create
description "Radius is counting . . .
update-interval 10 1072 2008/09/08 18:39:44.38 UTC MINOR: DEBUG #2001 Base RADIUS
include-radius-attribute "RADIUS: Accounting Request
policy GiveMeTheMoney"
framed-ip-addr
1073 2008/09/08 18:39:44.38 UTC MINOR: DEBUG #2001 Base RADIUS
framed-ip-netmask "RADIUS: Transmit
subscriber-id Accounting-Request(4) 172.30.1.43:1813 id 84 len 240
circuit-id STATUS TYPE [40] 4 Interim-Update(3)
NAS IP ADDRESS [4] 4 172.30.1.33
remote-id
USER NAME [1] 14 user666@idm.lb
nas-port-id SERVICE TYPE [6] 4 Framed(2)
nas-identifier FRAMED PROTOCOL [7] 4 PPP(1)
sub-profil FRAMED IP ADDRESS [8] 4 10.165.0.66
FRAMED IP NETMASK [9] 4 255.255.255.255
sla-profile
NAS IDENTIFIER [32] 4 PE33
exit SESSION ID [44] 40 0000000602208000029A00C80000000248C56C85
session-id-format number EVENT TIMESTAMP [55] 4 1220899184
use-std-acct-attributes NAS PORT TYPE [61] 4 PPPoEoQinQ(34)
NAS PORT ID [87] 13 1/1/1:200.666
radius-accounting-server
VSA [26] 27 DSL(3561)
source-address 172.30.1.33 AGENT CIRCUIT ID [1] 16 ATM 1/1/4/6:8:35
server 1 address 172.30.1.43 secret WhoIsThere AGENT REMOTE ID [2] 7 user666
exit VSA [26] 30 Alcatel(6527)
SUBSC ID STR [11] 13 1/1/1:200.666
exit
SUBSC PROF STR [12] 7 initial
SLA PROF STR [13] 4 128K
INPUT PACKETS [47] 4 21
INPUT OCTETS [42] 4 1428
OUTPUT PACKETS [48] 4 21
OUTPUT OCTETS [43] 4 1890
"
116 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
Attributes : CLASS attribute
117 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
useful CLI commands : Radius Accounting specific
118 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
Accounting methods
Radius accounting
119 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
Local file/XML accounting
120 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
Agenda
a) What does the 7710/7750 offers in 7.0 and LAB-setup e) Resilience / Redundancy
d) QoS
d) QoS
121 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
QoS
Generic
Well known QoS sap-ingress / sap-egress policies used.
PPP specific
Downstream dot1p can be set for PPPoE control traffic
Dynamic QoS adaptation
– Access-loop-options
122 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
Dot1P settings for PPPoE generated traffic
123 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
Agenda
d) QoS
124 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
PE resiliency
SRRP
subnet-2
pe2
configure system persistence subscriber-mgmt
Will create a file submgmt.004 on flash (67109888 bytes ) (used only for DHCP clients)
Not persistant for PPPoE because
– the client will break down the session anyway due to the short keepalive.
125 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
PE resiliency CON’T
session Pado-delay = 0
Pado-delay = 1
configure subscriber-mgmt
pe2 pppoe-policy group-1
pado-delay [1..30] deci-sec
Configurable delay on Radius server
Example : Based on NAS-IP address
pe1
pe2
126 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
PE resiliency : Conclusion
Single homed PE
Dual homed PE
Full dual homing for PPPoE clients ala DHCP-model would be nice for the future.
127 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
Agenda
a) What does the 7710/7750 offers in 7.0 and LAB-setup e) Resilience / Redundancy
d) QoS
128 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
Security
129 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
Agenda
a) What does the 7710/7750 offers in 7.0 and LAB-setup e) Resilience / Redundancy
c) Accounting g)Change
g) Changeof
ofAuthority
Authority
d) QoS
130 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
How to deal with Change of Authority ?
131 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
How to deal with Change of Authority ? Continued
132 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
How to deal with Change of Authority ? Continued
NAS-port-Id = "1/1/7"
Solutions with PPP session termination Framed-IP-Address = 192.168.42.5
2) Radius Disconnect-request
/usr/local/etc/raddb #
2 2008/03/11 09:47:47.12 UTC WARNING: SVCMGR #2509 Base Radius CoA Error "Problem encountered in Subscriber
Management, while processing a Disconnect request on SAP 1/1/7 in service 998 from a Radius server: authentication
policy "knock-knock" doesn't allow Disconnects"
accept-authorization-change
+----------+ Disconnect-Request +----------+
configure subscriber-mgmt | | <------------------- | |
authentication-policy knock-knock | RADIUS | | RADIUS |
accept-authorization-change | Client | Disconnect-Ack | Server |
| | ---------------------> | |
+----------+ +----------+
Disconnect Ack to server and PADT to client
Statistics under show subscriber-mgmt authentication coa-statistics
– Display command updated in >6.0
133 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
How to deal with Change of Authority ? Continued
Circuit-Id
RADIUS : TRE26 atm 1/1/01/22:8.35
Remote-Id : 03-2404011
BSAN BSA
BSR Session-Timeout : N/A
---------------------------------------------------
Number of sessions : 1
===================================================
134 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Retail PPPoE implementation
How to deal with Change of Authority ? Continued
135 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
4 7x50 Wholesale-Retail via MSAP
updated
136 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail via MSAP
137 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
5 7x50 Wholesale-Retail VRF selection
new
138 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail VRF selection
See TiMOS-7.0_PPPoE_VRF_selection_TPSDA_enh_<version>_<date>.ppt
139 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
6 General L2TP Technology overview
new
140 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
General L2TP Technology overview
Embedded presentation
141 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7 7x50 Wholesale-Retail L2TP implementation
new
142 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Agenda
143 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation.
General : L2TP and related RFC’s
L2TP used for the tunnelling of PPP packets across an intervening network is
based on RFC 2661. (Aug 1999)
L2TP uses the destination UDP port 1701.The entire L2TP packet, including
payload and L2TP header, is sent within a UDP datagram. The source UDP port
may or may not be 1701.
144 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation.
General : RFC 2661 supported message types.
Call Management
7 (OCRQ) Outgoing-Call-Request***
8 (OCRP) Outgoing-Call-Reply
9 (OCCN) Outgoing-Call-Connected
10 (ICRQ) Incoming-Call-Request
11 (ICRP) Incoming-Call-Reply
12 (ICCN) Incoming-Call-Connected
13 (reserved)
14 (CDN) Call-Disconnect-Notify
145 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
General : 7x50 L2TP Simplified State-Diagram
establishedIdle
ICRQ CLI Timer-ex Session-
Idle-timeout
ICRQ/ICRP/ICCN
established
wait-reply stopCC
ICRP/ICCN
closedByPeer
established stopCC
CDN
closed
closed
146 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
R&D CONFIDENTIAL – internal use only
PADI LUDB + PRE-Authentication in 7.0
Auth-method
= none
Pre-Auth
New 7.0 Retail
147 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Agenda
148 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
CLI Changes : LUDB for PPPoE
service-name is 255 chars max
Removed and added parameters in LUDB Optional Service-name in pppoE PADI
can be used for match condition.
local-user-db "my_ludb"
pppoe
no mask
mask type <type>
match-list pppoe-match-type Radius policy Knock-knock is added
circuit-id | remote-id in LUDB. Can be used after a pre-
no circuit-id-mask
service-name | username authentication is done on PADI .
host "host1" create
…followed by Example : pado-delay
host-identification
no circuit-id
<prefix-string>: ('*' is wildcard) no mac
<prefix-length>: [1..127] no remote-id PADO delay can now come
<suffix-string>: ('*' is wildcard) no service-name from Radius , pppoe-policy or
<suffix-length>: [1..127] LUDB.
no username
exit
no auth-policy
no address
Corresponds with the tunnel- no pado-delay
group-name ( max 63 chars ) no password
configured under “configure no identification-strings
router x l2tp group group- l2tp
name” no group
exit Service-id for wholesale/retail aka
options vrf-selection.
Fallback host “default” : exit
Strings taken from this host incase
no retail-service-id
host not found in Ludb.
exit
host “default" create
149 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
CLI Changes : pap-chap ludb
150 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
CLI Changes : pppoe-policy
pref-chap is default and has same behaviour as before ( Release < 7.0R1 )
The same challenge will be send to the LNS if we have proxy-authentication and
some LNS’s don’t support big challenges. Don’t CHANGE this values unless
required due to interoperable cases.
151 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Agenda
153 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Tunnel Configuration : Several possibilities
Remark :
• When Radius returns the tunnel-group it should always point to a CLI created group and
any other Radius returned L2TP parameters is ignored. All other required info to setup the
tunnel should come than from CLI.
154 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Tunnel Configuration : LUDB points to a CLI created L2TP group
155 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Tunnel Configuration : RADIUS points to a CLI created L2TP group
156 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Tunnel Configuration : RADIUS returns all required parameters without TG
Tunnel-Assignment-Id:1 = MyTunnel1
Tunnel-Server-Endpoint:1 = 192.168.4.2
Tunnel-Assignment-Id:2 = MyTunnel2
Tunnel-Server-Endpoint:2 = 192.168.5.2
157 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Tunnel Configuration : RADIUS returns all required parameters without TG
158 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
LAB
LAB1 : user1-5
LAB2 : user 6-10
LAB3 : user11-15
159 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Agenda
160 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Tunnel Configuration : LUDB points to a CLI created L2TP group
161 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Tunnel Configuration : LUDB points to a CLI created L2TP group
configure router l2tp : group parameters Send AVP’s encrypted iso clear text.
No | sensitive | always
group "MyProvider1" create Default no : never
L2TP hello-keepalive
[ 60 – 3600s] | no no avp-hiding Enable MD5 tunnel authentication
Default no : infinite no challenge No | always
no description Default no : never
no destruct-timeout
Idle-timeout Keep tunnel/session information
[ 0 – 3600s] | no no hello-interval
during this configured timeout on
Default no : infinite no idle-timeout the moment of failure : debugging
no local-name purposes. [15s – 86400s] | no
Used in host-name AVP no max-retries-estab* Default no : 15s
in SCCRQ . Default is no max-retries-not-estab*
system name On session setup timeout retry by
no password
default 5 times [2..7] | no
no session-assign-method Default no: 5
no session-limit
MD5 password used for tunnel "MyTunnel1" create
tunnel authentication On tunnel setup timeout retry by
and AVP-hiding secret
exit default 5 times [2..7] | no
tunnel "MyTunnel2" create Default no : 5
exit
Maximum created tunnel "MyTunnel31" create Tunnel selection mechanism
tunnels/group is 31 incase we have more than one
exit
exit tunnel in this group
No | weighted
Maximum created group "MyProvider2" create
Default no = existing-first
groups is unlimited ? exit
group "MyProviderx" create Session-limit per group [1..131071] | no
Default no : 131071
162 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Tunnel Configuration : CLI
163 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation Check every 1 minute if we have to
initiate tunnels ourselves and this
Tunnel Configuration : CLI without a trigger from the PPPoE
client side.
configure router l2tp : tunnel parameters Tunnel state = EstablishedIdle when
tunnel is setup without sessions.
L2TP hello-keepalive
No | [ 60 – 3600s] | infinite
Default : no : take from Send AVP’s encrypted iso clear text.
group -> infinite No | never| sensitive | always
tunnel "MyTunnel1" create Default no : Take from group-> never
no auto-establish
A tunnel with sessions=0 no avp-hiding
Enable MD5 tunnel authentication
will be stopped when this no challenge No | never | always
configured timer expires : no description Default no : Take from group-> never
no | [0..3600s] | infinite no destruct-timeout
Default no : Take from
no hello-interval Keep tunnel/session information
group -> default infinite
no idle-timeout during this configured timeout on
no local-name the moment of failure : debugging
timeout retry : no | [2..7] no max-retries-estab purposes. [15s – 86400s] | no
Default no: taken from Default no : Take from group -> 15s
no max-retries-not-estab
group equal to 5
no peer
no preference Tunnel preference between no
| [0..16777215] where the lowest
Peer-address of LNS no remote-name number is more preferred.
Max number of CLI no password Default no preference = 50
checked is 16K today no session-limit
no shutdown If remote-name configured than it
Session-limit per tunnel exit needs to correspond with the
[1..65535] | no returned host-name AVP in the
Default no : 32767 SCCRP on tunnel setup.
164 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Tunnel Configuration : CLI
165 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Tunnel Configuration : debugging L2TP
exit
166 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Tunnel Configuration :
LUDB
Description
Option 1B Full username in LUDB : LUDB requires all users !! (LNS does not used Proxy info)
Option 1D Full username in LUDB : LUDB requires all users !! (LNS uses Proxy info)
Option 1E Full username in LUDB variant where LNS renegotiates CHAP iso received PAP
Next
167 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Tunnel Configuration
1) LUDB points to a CLI created L2TP group
Option 1A : Tunnel selection via LUDB : match service-name
pe2_l2tp_2.cfg
168 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Lab setup
MyProvider1
General Lab setup with N2X as Client and LNS LNS 203/4 POOL
192.168.60.1
192.4.1.2
192.168.70.1
192.4.2.2
C2/RR2/ PE4
PE2 192.168.80.1
138.203.18.183 138.203.18.179
138.203.18.176 192.4.3.2
192.168.90.1
192.4.4.2
LAC
PPPoE client
IES
99999 1/1/2 1/1/1
1/1/1 1/1/8
203/1 MyProvider2
LUDB
LNS 203/4 POOL
192.168.160.1
OPTION-1A user2@skynet.be 192.5.1.2
192.168.170.1
192.5.2.2
192.168.180.1
192.5.3.2
192.168.190.1
192.5.4.2
169 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail OPION-1A *A:pe2.lab# configure subscriber-mgmt
local-user-db "MyLudb1" create
LUDB : match service-name description "Add text"
pppoe
match-list service-name
host "host1" create
LUDB : 1 Entry per LNS host-identification
service-name "MyProvider1"
exit
Service-name as match-condition identification-strings 254 create
subscriber-id "MySubMyProvider1"
*A:pe2.lab# sla-profile-string "DefSlaProfile"
configure service ies 99999 sub-profile-string "DefSubProfile"
subscriber-interface "MySubItf1" create exit
address 192.168.50.254/24 l2tp
group-interface "MyGrpItf1" create group "MyProvider1"
sap 1/1/1:1 create exit
sub-sla-mgmt options
def-sub-profile "DefSubProfile" dns-server 138.203.144.51
def-sla-profile "DefSlaProfile" exit
sub-ident-policy "sub_ident_all" no shutdown
multi-sub-sap 2000 exit
no shutdown host "host2" create
exit host-identification
exit service-name "MyProvider2"
pppoe exit
session-limit 10 identification-strings 254 create
sap-session-limit 10 subscriber-id "MySubMyProvider2"
user-db "MyLudb1" sla-profile-string "DefSlaProfile"
no shutdown sub-profile-string "DefSubProfile"
exit exit
exit l2tp
exit group "MyProvider2"
no shutdown Configure router l2tp exit
group "MyProvider1" create options
tunnel "MyTunnel1" create dns-server 138.203.144.51
auto-establish exit
peer 192.4.1.2 no shutdown
no shutdown exit
exit exit
exit no shutdown
exit exit
170 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-1A : Tunnel selection via LUDB : match service-name
Setup N2X OPTION-1A user2@skynet.be
171 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-1A : Tunnel selection via LUDB : match service-name
PAP PAP
LAC RADIUS
Aggregation LNS
network IP/MPLS Internet
(optional)
BSAN
ZLB
LCP Configuration Request
Session stage :
172 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-1A : Tunnel selection via LUDB : match service-name
PAP
LAC RADIUS
PADT
ZLB
173 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-1A : Tunnel selection via LUDB : match service-name
Subscriber : "MySubMyProvider1"
Sub-Profile-String : "DefSubProfile"
SLA-Profile-String : "DefSlaProfile"
ANCP-String : "" show service active-subscribers
Int-Dest-Id : "" ======================================================
App-Profile-String : "" Active Subscribers
Category-Map-Name : "" ======================================================
Subscriber MySubMyProvider1 (DefSubProfile)
L2TP Group Name : MyProvider1 ------------------------------------------------------
L2TP Assignment ID : MyTunnel1 (1) SLA Profile Instance sap:1/1/1:1 - sla:DefSlaProfile
------------------------------------------------------
Circuit-Id : IP Address MAC Address PPPoE-SID Origin
Remote-Id : ------------------------------------------------------
Service-Name : MyProvider1 0.0.0.0 00:00:64:06:01:02 1 PPPoE
0.0.0.0 00:00:64:06:02:02 1 PPPoE
Session-Timeout : N/A
hosts ------------------------------------------------------
Radius Class : Number of active subscribers : 1
Radius User-Name :
174 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-1A : setup 1000 on sims
*A:pe2.lab# show router l2tp peer *A:pe2.lab# show router l2tp statistics
==================================
=============================================
L2TP Peers L2TP Statistics
================================== ==============================================
Peer IP Role Tunnels Sessions Tunnels Sessions
----------------------------------- ---------------------------------------------
192.4.1.2 LAC 1 1000
192.5.1.2 LAC 1 0
Total : 290 Total : 16638
----------------------------------- Failed : 139 Failed : 4590
No. of peers: 2 Failed Aut : 0
Active : 2 Active : 1000
============================================
175 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Tunnel Configuration
1) LUDB points to a CLI created L2TP group
Option 1B : Tunnel selection via LUDB : match username
pe2_l2tp_2.cfg
176 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail: LNS does NOT uses LAC Proxy CONFREQ info
Option-1B : Tunnel selection via LUDB : match username
177 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail: LNS does NOT uses LAC Proxy CONFREQ info
Option-1B : Tunnel selection via LUDB : match username
Setup N2X OPTION-1A user2@skynet.be
178 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail: LNS does NOT uses LAC Proxy CONFREQ info
Option-1B : Tunnel selection via LUDB : match username
PAP PAP
LAC RADIUS
Aggregation LNS
network IP/MPLS Internet
(optional)
BSAN
179 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail: LNS does NOT uses LAC Proxy CONFREQ info
Option-1B : Tunnel selection via LUDB : match username
PAP
LAC RADIUS
accounting Response
Initial Received LCP Confreq
Last Received LCP Confreq ICRQ
Proxy Auth type ICRP
Proxy Auth name
ZLB
Proxy Auth ID
Proxy Auth Response ICCN
ZLB
LCP Configuration Request : Auth protocol PAP
START AGAIN LCP phase
180 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail: LNS does NOT uses LAC Proxy CONFREQ info
Option-1B : Tunnel selection via LUDB : match username
PAP
LAC RADIUS
PADT
ZLB
181 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail: LNS does NOT uses LAC Proxy CONFREQ info
Option-1B : Tunnel selection via LUDB : match username
182 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Tunnel Configuration
1) LUDB points to a CLI created L2TP group
Option 1C : Tunnel selection via LUDB : username domain only
pe2_l2tp_2.cfg
183 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail: LNS does NOT uses LAC Proxy CONFREQ info
Option-1C : Tunnel selection via LUDB : match username domain-only
184 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Lab setup
MyProvider1
General Lab setup with N2X as Client and LNS LNS 203/4 POOL
user1@skynet.be 192.168.60.1
4 users , 2 domains user2@skynet.be 192.4.1.2
192.168.70.1
192.4.2.2
C2/RR2/ PE4
PE2 192.168.80.1
138.203.18.183 138.203.18.179
138.203.18.176 192.4.3.2
192.168.90.1
192.4.4.2
LAC
PPPoE client
IES
99999 1/1/2 1/1/1
1/1/1 1/1/8
203/1 MyProvider2
LUDB
user1@skynet.be LNS 203/4 POOL
192.168.160.1
user2@skynet.be 192.5.1.2
192.168.170.1
user100@Belgacom.be 192.5.2.2
192.168.180.1
user101@Belgacom.be user100@Belgacom.be
192.5.3.2
user101@Belgacom.be
192.168.190.1
192.5.4.2
185 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail: LNS does NOT uses LAC Proxy CONFREQ info
Option-1C : Tunnel selection via LUDB : match username domain-only
show service id 99999 pppoe session detail Setup 2 users per domain
==========================================================
PPPoE sessions for svc-id 99999
========================================================== Radius users file : N/A
Sap Id Mac Address Sid Up Time IP/L2TP-Id Type
----------------------------------------------------------
1/1/1:1 00:00:64:07:01:02 1 0d 00:20:26 1039365142 L2TP 30s E2E PPP keep alive used.
186 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail: LNS does NOT uses LAC Proxy CONFREQ info
Option-1C : Tunnel selection via LUDB : match username domain-only
187 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Tunnel Configuration
1) LUDB points to a CLI created L2TP group
Option 1D : Tunnel selection via LUDB : username
pe2_l2tp_2.cfg
188 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail: LNS uses LAC Proxy CONFREQ info
Option-1D : Tunnel selection via LUDB : match username
189 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail: LNS uses LAC Proxy CONFREQ info
Option-1D : Tunnel selection via LUDB : match username
PAP
LAC RADIUS
190 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail: LNS uses LAC Proxy CONFREQ info
Option-1D : Tunnel selection via LUDB : match username
PAP
LAC RADIUS
accounting Response
Initial Received LCP Confreq
Last Received LCP Confreq ICRQ
Proxy Auth type ICRP
Proxy Auth name
ZLB
Proxy Auth ID
Proxy Auth Response ICCN
ZLB
LCP Configuration Request : Auth protocol PAP
191 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail: LNS uses LAC Proxy CONFREQ info
Option-1D : Tunnel selection via LUDB : match username
PAP
LAC RADIUS
PADT
ZLB
192 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Tunnel Configuration
1) LUDB points to a CLI created L2TP group
Option 1E : Tunnel selection via LUDB : username
pe2_l2tp_2.cfg
193 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail: LNS uses CHAP where LAC used PAP
Option-1E : Tunnel selection via LUDB : match username
194 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail: LNS uses CHAP where LAC used PAP
Option-1E : Tunnel selection via LUDB : match username
Setup N2X user1@skynet.be
195 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail: LNS uses CHAP where LAC used PAP
Option-1E : Tunnel selection via LUDB : match username
PAP or CHAP PAP CHAP
LAC RADIUS
Aggregation LNS
network IP/MPLS Internet
(optional)
BSAN
196 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail: LNS uses CHAP where LAC used PAP
Option-1E : Tunnel selection via LUDB : match username
PAP
LAC RADIUS
accounting Response
Initial Received LCP Confreq
Last Sent LCP Confreq ICRQ
Last Received LCP Confreq ICRP
Proxy Auth type
ZLB
Proxy Auth name
Proxy Auth ID ICCN
Proxy Auth Response ZLB
LCP Configuration Request : Auth protocol CHAP
LCP Configuration Ack
LCP Configuration Request
LCP Configuration Ack
197 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail: LNS uses CHAP where LAC used PAP
Option-1E : Tunnel selection via LUDB : match username
PAP
LAC RADIUS
PADT
ZLB
198 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail: LNS uses CHAP where LAC used PAP
Option-1E : Tunnel selection via LUDB : match username
Subscriber-interface : MySubItf1
Group-interface : MyGrpItf1
Subscriber : "user1@skynet.be"
Sub-Profile-String : "DefSubProfile"
SLA-Profile-String : "DefSlaProfile"
ANCP-String : ""
Int-Dest-Id : "" *A:pe2.lab# show service active-subscribers
App-Profile-String : "" ==================================================
Category-Map-Name : "" Active Subscribers
==================================================
L2TP Group Name : MyProvider1 Subscriber user1@skynet.be (DefSubProfile)
L2TP Assignment ID : MyTunnel1 --------------------------------------------------
(1) SLA Profile Instance sap:1/1/1:1 -
Circuit-Id : sla:DefSlaProfile
Remote-Id : -------------------------------------------------
Service-Name : MyProvider1 IP Address MAC Address PPPoE-SID Origin
--------------------------------------------------
Session-Timeout : N/A 0.0.0.0 00:00:64:06:01:02 1 PPPoE
Radius Class : --------------------------------------------------
Radius User-Name :
199 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Agenda
200 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
CLI : L2TP Clear commands are always related to statistics.
Example : Clear counters and initiate 1 tunnel. show router l2tp tunnel statistics detail
L2TP Tunnel Statistics
===========================================
Connection ID: 712704000
clear router l2tp tunnel 712704000 statistics -------------------------------------------
Attempts Failed Active Total
show router l2tp tunnel statistics detail -------------------------------------------
Sessions 0 0 0 0
SCCRQ -------------------------------------------
SCCRP Rx Tx
Does not show Tx-Rx ----------------------------
SCCCN Ctrl Packets 2 2
counters but number of
ZLB Ctrl Octets 76 125
tunnels / sessions Error Packets 0 0
clear router l2tp statistics clear router l2tp group MyProvider1 statistics
show router l2tp statistics show router l2tp group MyProvider1 statistics
201 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
CLI : Clear commands for sessions .
===============================================================================
PPPoE sessions for svc-id 99999
===============================================================================
Sap Id Mac Address Sid Up Time IP/L2TP-Id Type
-------------------------------------------------------------------------------
1/1/1:1 00:00:64:06:02:02 1 0d 00:10:44 396919486 L2TP**
-------------------------------------------------------------------------------
Number of sessions : 1
clear service id 99999 pppoe session mac 00:00:64:06:01:02 sap-id 1/1/1:1 session-id 1
202 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Tool commands: start/stop/drain
Trigger an attempt to start / stop the control connection for this L2TP tunnel.
Start: Useful test command for L2TP tunnel which are not auto-established.
tools perform router l2tp group my_group1 tunnel my_tunnel1 start
Stop : Tunnel and all related sessions will be removed ( send stopCCN + PADT/session)
203 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
PPPoE session creation failures example-1
204 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
PPPoE session creation failures example-2
086 2009/02/03 13:23:03.36 GMT WARNING: PPPOE #2001 Base PPPoE session failure
"PPPoE session failure on SAP 1/1/1:1 in service 99999 - Cannot connect L2TP: configuredTunnelGroupIsShutdown"
Remark
Tunnel in shutdown when new session is setup.
– Failure code returned is “L2TP invalid parameter”
– Will be changed in upcoming maintenance release to more intuitive error.
Tools tunnel Stop <> tunnel shutdown . Shutdown on a configured tunnel indicates that
the configured tunnel should not be taken to create new instances. It doesn’t have
influence on existing tunnel instances ( sessions).
205 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
L2TP : Hello-timer
RFC : A keep-alive mechanism is employed by L2TP in order to differentiate
tunnel outages from extended periods of no control or data activity on a
tunnel.
1s
Hello
Example ZLB
Overwrites group level
Configure router l2tp 60s
timer of 3333 and send Hello
group "MyProvider1" every 60 seconds a ZLB
hello-interval 3333 hello
tunnel "MyTunnel1"
Hello
hello-interval 60
ZLB
7x50 will use optimisation as in the RFC and will not initiate hello’s if
session control traffic is handled over this tunnel.***
206 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
L2TP : idle-timeout
Question :
Question :
What happens if the last session of a tunnel is removed?
Configure router l2tp
1. The tunnel stays up but goes to state established-idle group "MyProvider1"
=> Default configuration idle-timeout infinite
207 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
L2TP : idle-timeout
208 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
1) Drain peer
Purpose : Don’t create new sessions for a destination but the leave the current
sessions intact. 192.4.1.2
tunnel group MyProvider1
Example : Maintenance required on MyTunnel1 2 stable sessions
LAC
Tunnel group MyProvider1 has 2 peers. Provider1
209 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
1) Drain peer CON’T
210 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
1) Drain peer CON’T
2 2009/02/04 12:20:09.93 GMT WARNING: PPPOE #2001 Base PPPoE session failure
"PPPoE session failure on SAP 1/1/1:1 in service 99999 - [00:00:64:06:03:02,1,user3@skynet.be] L2TP session
closed: noTunnelAvailable"
211 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
2) Drain Tunnel group
Purpose : Don’t create new sessions for a complete tunnel group but the leave
the current sessions intact. 192.4.1.2
tunnel group MyProvider1
Example : 2 stable sessions
LAC
Tunnel group MyProvider1 has 2 peers. Provider1
212 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
2) Drain Tunnel group CON’T
Put group MyProvider1 in drain so no new sessions will be selected to this ISP.
tools perform router l2tp group MyProvider1 [no] drain
192.4.1.2
tunnel group MyProvider1
Impossible to create NEW sessions anymore
2 stable sessions
towards Provider1. LAC
Provider1
Question : When will this be used ? MyTunnel2
213 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Agenda
215 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation.
Tunnel selection aka tunnel loadbalancing
Find a Tunnel-group.
If more than one tunnel with same preference exists than 2 CLI options :
216 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation.
Tunnel selection aka tunnel loadbalancing
217 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Tunnel selection aka tunnel load balancing auto-establish
No auto-establish
1) session-assign-method existing-first
3)Conn
1)Conn
0)Conn
2)Conn ID
4)Conn
5)Conn
6)Conn ID Loc-Tu-ID Rem-Tu-ID
Loc-Tu-ID Rem-Tu-ID State
State Sessions
Sessions
Group
Group
Show router l2tp Assignment
Assignment
tunnel --------------------------------------------------------
--------------------------------------------------------
-------------------------------------------------------
402980864
402980864 6149
6149 65534
65534 established
established
establishedIdle 2
1
0
2
6149 65534 established
MyProvider1
MyProvider1
MyTunnel1
MyTunnel1
181796864
181796864 2774
2774 65534
65534 establishedIdle
established
established 0
1
MyProvider1
MyProvider1
MyTunnel2
MyTunnel2
350027776 5341
5341 65534
65534 established
established 1
2
MyProvider1
MyTunnel3
926744576 14141 65534 established 1
MyProvider1
MyTunnel4 Animated
slide
218 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Tunnel selection aka tunnel load balancing auto-establish
No auto-establish
2) session-assign-method weighted
4)Conn
1)Conn
5)Conn
Conn
6)Conn
2)Conn
3)ConnIDID Loc-Tu-ID Rem-Tu-ID
Rem-Tu-ID
Loc-Tu-ID State
State Sessions
Sessions
Sessions
Show router l2tp Group
Assignment
Assignment
tunnel -----------------------------------------------------
441712640 6740 65525 established
establishedIdle 12
0
MyProvider1
MyProvider1
MyTunnel1
542310400 8275 65525 establishedIdle 1
established 0
MyProvider1
MyProvider1
MyTunnel2
260636672 3977 65531 established 2
1
MyProvider1
MyProvider1
MyTunnel3
367198208 5603 65531 established 1
MyProvider1 Animated
MyTunnel4 slide
219 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Tunnel selection aka tunnel load balancing
Conclusion : existing-first versus weighted Animated slide
Preference 50
Preference 50
4 tunnels with same pref. MyTunnel1 session-limit
session-limit=4000
MyTunnel1 1000
Excisting-first : fill tunnel until the maximum. Weighted : loadbalance in a weighted fashion
1)Conn ID Loc-Tu-ID Rem-Tu-ID State Sessions 1)Conn ID Loc-Tu-ID Rem-Tu-ID State Sessions
Group Group
Assignment Assignment
--------------------------------------------------- -----------------------------------------------
441712640 6740 65525 established 1000 441712640 6740 65525 established 400
250
MyProvider1 MyProvider1
MyTunnel1 MyTunnel1
542310400 8275 65525 establishedIdle 0 542310400 8275 65525 established 300
250
MyProvider1 MyProvider1
MyTunnel2 MyTunnel2
260636672 3977 65531 establishedIdle 0 260636672 3977 65531 established 200
250
MyProvider1 MyProvider1
MyTunnel3 MyTunnel3
367198208 5603 65531 establishedIdle 0 367198208 5603 65531 established 100
250
MyProvider1 MyProvider1
MyTunnel4 MyTunnel4
220 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Agenda
221 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation.
Understanding Tunnel-id / Session-id
T L x x S x O P x x x x Ver Lenght
Ns Nr
L2TPv3
Transition from a 16-bit Session ID and Tunnel ID to a 32-bit Session ID and
Control Connection ID, respectively. ( 32-bit session-id not shown here).
0 8 16 31
222 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation.
Understanding Tunnel-id / Session-id CON’T
L2TP
223 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
LAC
7x50 Wholesale-Retail L2TP implementation. Assigned tunnel-id 2086
Assigned session-id 47516
Understanding Tunnel-id / Session-id CON’T
LNS
Assigned tunnel-id 65532
LAC tunnel display command Assigned session-id 65532
224 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation.
Understanding Tunnel-id / Session-id CON’T
225 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
LAC
7x50 Wholesale-Retail L2TP implementation. Assigned tunnel-id 2086
Assigned session-id 47516
Understanding Tunnel-id / Session-id CON’T
LNS
Assigned tunnel-id 65532
show router l2tp tunnel Assigned session-id 65532
226 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
LAC
7x50 Wholesale-Retail L2TP implementation. Assigned tunnel-id 2086
Assigned session-id 47516
Understanding Tunnel-id / Session-id CON’T
LNS
Assigned tunnel-id 65532
show router l2tp tunnel Assigned session-id 65532
227 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Agenda
228 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation.
Security : Tunnel Authentication : Shared Secret : Successful
There are 2 ways to be sure that we setup the tunnel to the desired LNS.
Shared Secret ( based on CHAP RFC 1994)
Hostname Check
Radius Attributes
Tunnel-Password MySecret
Alc-Tunnel-Challenge always
229 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation.
Security : Tunnel Authentication : Shared Secret : Successful
LAC LNS
Challenge-1
SCCRQ
MySecret
Challenge AVP
MySecret MD5
MD5
Hash= Challenge response
SCCRP
Hash = ? Challenge response AVP Challenge-2
Challenge AVP
MySecret MySecret
230 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation.
Security : Tunnel Authentication : Host-name : Successful
2) Hostname Check
If remote-name is configured and the hostname-AVP is received from the
LNS than it should be the same to authenticate tunnel.
SCCRP
AVP Hostname
Configure router l2tp MyRemoteLns1
group MyProvider1
local-name "MyLac1"
tunnel "MyTunnel1"
local-name "MyLac1" Show router l2tp tunnel … detail
remote-name MyRemoteLns1
Connection ID : 555679744
State : establishedIdle
Radius Attributes IP : 0.0.0.0
Peer IP : 192.4.1.2
Tunnel-Client-Auth-Id MyLAC1 Name : MyLac1
Remote Name : MyRemoteLns1
Tunnel-Server-Auth-Id MyRemoteLns1 Assignment ID : MyTunnel1
Group Name : MyProvider1
Error Message : N/A
231 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation.
Security : Tunnel Authentication : Unsuccessful
STOPCCN : requestorIsNotAuthorized
MyWrongSecret
MySecret
MyWrongRemoteLns2
MyLac1 SCCRQ
AVP Challenge
Configure router l2tp Value-a
group MyProvider1 AVP Hostname
tunnel "MyTunnel1" MyLac1
challenge always
secret password MySecret SCCRP
local-name "MyLac1" AVP ChallengeResponse
Value-b
remote-name MyRemoteLns2
AVP Hostname
MyWrongRemoteLns2
StopCCN
AVP ResultCode
requestorIsNotAuthorized
ZLB
232 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation.
Security : Tunnel Authentication : Unsuccessful …End
Debugging
Log 99
Log 99
2 2000/12/16 09:17:05.95 GMT WARNING: SYSTEM #2006 Base L2TP
"State of L2TP tunnel 1:305987584 changed to waitReply configuration modified"
Tunnel statistics
show router l2tp statistics
…
Failed Auth : 1
…
233 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation.
Security : AVP hiding
Hidden (H) bit: Identifies the hiding of data in the Attribute Value field of an AVP. This capability
can be used to avoid the passing of sensitive data, such as user passwords, as cleartext in an AVP.
The H bit MUST only be set if a shared secret exists between the LAC and LNS. The shared secret is
the same secret that is used for tunnel authentication.
If the H bit is set in any AVP(s) in a given control message, a Random Vector AVP must also be
present in the message and MUST precede the first AVP having an H bit of 1.
Any vendor wishing to implement their own L2TPextensions can use their own Vendor ID
along with private Attribute values. Vendor-ID=0 means that the standard AVP’s are used.
0 6 16 31
http://www.iana.org/assignments/l2tp-parameters
234 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation.
Security : AVP hiding Con’t
• challenge response
CLI related * • assigned session-id
• called number
• calling number
• None of the AVP’s gets hidden. • ALL LCP AVP’s
• All proxy authenticate related AVP’s
Radius
Radius Attribute ( 7.0R2 naming)
Alc-Tunnel-AVP-Hiding-Level nothing(0) , sensitive(1) , always(2)
235 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation.
Security : AVP hiding …End
MD5
- Random-vector
- Hidden AVP
Hash
Unhidden-AVP
Length + value XOR Hash
236 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Security : IP-FILTERS …End
entry 1 create
action drop
match protocol udp
dst-port 1701 65535
src-port 1701 65535
exit
exit
entry 1 create
action drop
match protocol l2tp
exit
exit
237 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Security : Anti-spoof table …End
Anti-spoof is based on MAC Address and PPPoE-SID ( iso IP) for L2TP
238 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Security : HW Requirements
239 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Security : HW Requirements
Configure router L2TP no shutdown will populate L2TP capable and non-capable
interfaces. This list will be consulted from the moment we enable protocol
protection.
configure system security cpu-protection protocol-protection
===========================================================
Interfaces where packets are dropped by protocol-protection
===========================================================
Interface-name Router-Name Drop-Count
-----------------------------------------------------------
Non-iom3-to-lns base 1001
240 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
QoS: Source-Generated-Traffic settings for PPPoE / L2TP … End
P-bit used in L2TP header is currently not used and always set to zero.
241 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Agenda
242 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
RADIUS Extensions for ESM - Authentication Extensions
.../raddb/clients.conf
How are the different ESM objects communicated by RADIUS client 172.16.0.21 {
server ? secret = WhoIsThere
shortname = A1
nastype = other
Standard RADIUS attributes }
client 172.16.0.22 {
secret = WhoIsThere
framed-ip-address [8], framed-ip-netmask [9], NAS-identifier shortname = A2
nastype = other
[32], NAS-port [87] }
client 172.16.0.11 {
Vendor specific attributes (VSAs) secret = WhoIsThere
shortname = PE1
nastype = other
Alcatel IPD – using Timetra vendor-id [6527] – see IPD RADIUS }
client 172.16.0.12 {
dictionary secret = WhoIsThere
shortname = PE2
JUNIPER & REDBACK attributes – relevant VSAs to ease migration nastype = other
}
/var/local/etc/raddb/dictionary
$INCLUDE /usr/local/etc/raddb/dictionary
$INCLUDE /usr/local/etc/raddb/DSL-forum_dictionary
/var/local/etc/raddb/users
243 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
RADIUS Extensions for ESM - Authentication Extensions
– MAC
– Circuit-id
– Tuple ( concatenation of MAC & Circuit-id )
– Ascii-converted-circuit-id
– Ascii-converted-tuple
User-Password, attribute 2
NAS IP address , attribute 4
– Will be system-id of node.
Service-Type, attribute 6
– Needs to be “Framed” if returned by Radius
Framed-Protocol, attribute 7
– Needs to be “PPP” if returned by Radius
244 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
RADIUS Extensions for ESM - Authentication Extensions
245 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
RADIUS Extensions for ESM - Authentication Extensions
user-name = "USER1@SKYNET",
Subscriber-interface : MySubItf1
Group-interface : MyGrpItf1
246 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Radius Tunnel Configuration : Several possibilities
Remark :
• When Radius returns the tunnel-group it should always point to a CLI created group and
any other Radius returned L2TP parameters is ignored. All other required info to setup the
tunnel should come than from CLI.
247 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Agenda
248 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Radius Tunnel Configuration : Several possibilities
Description
Next
249 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Option 2A : RADIUS PADI
Radius returns to a CLI created LT2P group
250 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
option 2A PADI + circuit-id
252 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
option 2A PADI + circuit-id
Setup N2X user3 temporary with cid “circuit0” to show failure case.
253 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Option 2B : RADIUS PADI
Radius returns to a CLI created LT2P group
254 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-2B : Authentication via Radius PADI with user-name-format MAC
PAP
LAC RADIUS
ZLB
LCP Configuration Request
Session stage :
255 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-2B : Authentication via Radius PADI with user-name-format MAC
PAP
LAC RADIUS
PADT
ZLB
256 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-2B : Authentication via Radius PADI with user-name-format MAC
no shutdown
exit
exit
exit
no shutdown
257 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-2B : Authentication via Radius PADI with user-name-format MAC
authentication-policy "knock-knock" create
LT2P group MyProvider1 description "RADIUS policy"
password "LetMeIn"
radius-authentication-server
Authentication policy router "Base"
server 1 address 10.2.79.79 secret WhoIsThere
exit
Accounting policy user-name-format mac
pppoe-access-method padi
include-radius-attribute
circuit-id
remote-id
nas-port-id
radius-accounting-policy "GiveMeTheMoney" create nas-identifier
update-interval 5 pppoe-service-name
include-radius-attribute dhcp-vendor-class-id
framed-ip-addr access-loop-options
framed-ip-netmask mac-address
subscriber-id exit
circuit-id exit
remote-id
nas-port-id
nas-identifier
sub-profile
Configure router l2tp
sla-profile
group "MyProvider1" create
calling-station-id
tunnel "MyTunnel1" create
user-name
auto-establish
exit
peer 192.4.1.2
session-id-format number
no shutdown
use-std-acct-attributes
exit
radius-accounting-server
exit
server 1 address 10.2.79.79 secret WhoIsThere
exit
exit
exit
258 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-2B : Authentication via Radius PADI with user-name-format MAC
259 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-2B : Authentication via Radius PADI with user-name-format MAC
Circuit-Id :
Remote-Id :
Service-Name : MyProvider1
Session-Timeout : N/A
Radius Class :
Radius User-Name : 00:00:64:06:01:02
------------------------------------------------------
Number of sessions : 1
260 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-2B : Authentication via Radius PADI with user-name-format MAC
Setup N2X user with mac 00:00:64:06:01:02
261 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Option 2C : RADIUS PAP-CHAP
Radius returns to a CLI created LT2P group
262 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-2C : Authentication via Radius PAP-CHAP
CHAP
LAC RADIUS
263 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-2C : Authentication via Radius PAP-CHAP
CHAP
LAC RADIUS
PAP/CHAP
Aggregation LNS
network IP/MPLS Internet
(optional)
BSAN
264 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-2C : Authentication via Radius PAP-CHAP
CHAP
LAC RADIUS
PAP/CHAP Aggregation LNS
network IP/MPLS Internet
(optional)
BSAN
IPCP Configure-request IP address: 192.168.60.1
PADT
ZLB
265 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-2C : Authentication via Radius PAP-CHAP
no shutdown
exit
exit
exit
no shutdown
266 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-2C : Authentication via Radius PAP-CHAP
authentication-policy "knock-knock" create
LT2P group MyProvider1 description "RADIUS policy"
no password
radius-authentication-server
Authentication policy router "Base"
server 1 address 10.2.79.79 secret WhoIsThere
exit
Accounting policy pppoe-access-method pap-chap
include-radius-attribute
circuit-id
User name format N/A remote-id
nas-port-id
nas-identifier
radius-accounting-policy "GiveMeTheMoney" create pppoe-service-name
update-interval 5 dhcp-vendor-class-id
include-radius-attribute access-loop-options
framed-ip-addr mac-address
framed-ip-netmask exit
subscriber-id exit
circuit-id
remote-id
nas-port-id
nas-identifier
sub-profile
Configure router l2tp
sla-profile
group "MyProvider1" create
calling-station-id
tunnel "MyTunnel1" create
user-name
auto-establish
exit
peer 192.4.1.2
session-id-format number
no shutdown
use-std-acct-attributes
exit
radius-accounting-server
exit
server 1 address 10.2.79.79 secret WhoIsThere
exit
exit
exit
267 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-2C : LUDB PRE-AUTH + Radius AUTH PAP-CHAP
268 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-2C : Authentication via Radius PAP-CHAP
Circuit-Id :
Remote-Id :
Service-Name : MyProvider1
Session-Timeout : N/A
Radius Class :
Radius User-Name : user10&skynet.be
------------------------------------------------------
Number of sessions : 1
269 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-2C : Authentication via Radius PAP-CHAP
Setup N2X option2C user10@skynet.be
270 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Option 2D : LUDB PRE-AUTH +RADIUS PAP-CHAP
Radius returns to a CLI created LT2P group
271 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-2D : LUDB PRE-AUTH + Radius AUTH PAP-CHAP
6.0
pe1
Pado-delay = 30
pe2
7.0
272 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-2D : LUDB PRE-AUTH + Radius AUTH PAP-CHAP
7.0
273 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-2D : LUDB PRE-AUTH + Radius AUTH PAP-CHAP
CHAP
LAC RADIUS
274 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-2D : LUDB PRE-AUTH + Radius AUTH PAP-CHAP
CHAP
LAC RADIUS
PAP/CHAP
Aggregation LNS
network IP/MPLS Internet
(optional)
BSAN
275 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-2D : LUDB PRE-AUTH + Radius AUTH PAP-CHAP
CHAP
LAC RADIUS
PAP/CHAP Aggregation LNS
network IP/MPLS Internet
(optional)
BSAN
IPCP Configure-request IP address: 192.168.60.1
PADT
ZLB
276 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-2D : LUDB PRE-AUTH + Radius AUTH PAP-CHAP
277 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-2D : LUDB PRE-AUTH + Radius AUTH PAP-CHAP
authentication-policy "knock-knock" create
LT2P group MyProvider1 description "RADIUS policy"
no password
radius-authentication-server
Authentication policy router "Base"
server 1 address 10.2.79.79 secret WhoIsThere
exit
Accounting policy pppoe-access-method pap-chap
include-radius-attribute
circuit-id
remote-id
nas-port-id
nas-identifier
radius-accounting-policy "GiveMeTheMoney" create pppoe-service-name
update-interval 5 dhcp-vendor-class-id
include-radius-attribute access-loop-options
framed-ip-addr mac-address
framed-ip-netmask exit
subscriber-id exit
circuit-id
remote-id
nas-port-id
nas-identifier
sub-profile
Configure router l2tp
sla-profile
group "MyProvider1" create
calling-station-id
tunnel "MyTunnel1" create
user-name
auto-establish
exit
peer 192.4.1.2
session-id-format number
no shutdown
use-std-acct-attributes
exit
radius-accounting-server
exit
server 1 address 10.2.79.79 secret WhoIsThere
exit
exit
exit
278 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-2D : LUDB PRE-AUTH + Radius AUTH PAP-CHAP
279 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-2D : LUDB PRE-AUTH + Radius AUTH PAP-CHAP
Circuit-Id :
Remote-Id :
Service-Name : MyProvider1
Session-Timeout : N/A
Radius Class :
Radius User-Name : user10&skynet.be
------------------------------------------------------
Number of sessions : 1
280 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-2D : LUDB PRE-AUTH + Radius AUTH PAP-CHAP
Setup N2X user10
281 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Agenda
282 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Radius Tunnel Configuration : Several possibilities
2. RADIUS
Description
3. RADIUS
Description
Next
283 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Option 4A : RADIUS PAP-CHAP
Radius returns all required parameters without tunnel-group
=> default_radius_group created
284 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-4A : Authentication via Radius PAP-CHAP : No CLI L2TP configuration
CHAP
LAC RADIUS
285 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-4A : Authentication via Radius PAP-CHAP : No CLI L2TP configuration
CHAP
LAC RADIUS
PAP/CHAP
Aggregation LNS
network IP/MPLS Internet
(optional)
BSAN
286 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-4A : Authentication via Radius PAP-CHAP : No CLI L2TP configuration
CHAP
LAC RADIUS
PAP/CHAP Aggregation LNS
network IP/MPLS Internet
(optional)
BSAN
IPCP Configure-request IP address: 192.168.60.1
PADT
ZLB
287 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-4A : Authentication via Radius PAP-CHAP : No CLI L2TP configuration
no shutdown
exit
exit
exit
no shutdown
288 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-4A : Authentication via Radius PAP-CHAP : No CLI L2TP configuration
authentication-policy "knock-knock" create
Authentication policy description "RADIUS policy"
no password
radius-authentication-server
Accounting policy router "Base"
server 1 address 10.2.79.79 secret WhoIsThere
exit
pppoe-access-method pap-chap
include-radius-attribute
circuit-id
remote-id
nas-port-id
nas-identifier
radius-accounting-policy "GiveMeTheMoney" create pppoe-service-name
update-interval 5 dhcp-vendor-class-id
include-radius-attribute access-loop-options
framed-ip-addr mac-address
framed-ip-netmask exit
subscriber-id exit
circuit-id
remote-id
nas-port-id
nas-identifier
sub-profile
Configure router l2tp
sla-profile
no shutdown
calling-station-id
exit
user-name
exit
session-id-format number
use-std-acct-attributes
radius-accounting-server
server 1 address 10.2.79.79 secret WhoIsThere
exit
exit
289 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-4A : Authentication via Radius PAP-CHAP : No CLI L2TP configuration
290 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-4A : Authentication via Radius PAP-CHAP : No CLI L2TP configuration
Setup N2X option4A user12@skynet.be show service id 99999 pppoe session detail
===================================================
user12@skynet.be PPPoE sessions for svc-id 99999
Auth-Type := Local, User-password == "password12"
===================================================
Alc-Subsc-ID-Str = "Radius-user12", Sap Id Mac Address Sid Up Time IP/L2TP-Id
no Alc-Tunnel-Group ---------------------------------------------------
Tunnel-Type:1 = L2TP, 1/1/1:1 00:00:64:09:01:03 1 0d 00:00:34 188312955
Tunnel-Medium-Type:1 = IP, PPP User-Name : user12@skynet.be
Tunnel-Server-Endpoint:1 = 192.4.1.2,
Tunnel-Assignment-Id:1 = MyTunnel1, Subscriber-interface : MySubItf1
Group-interface : MyGrpItf1
Subscriber : "Radius-user12"
Sub-Profile-String : ""
SLA-Profile-String : ""
ANCP-String : ""
Int-Dest-Id : ""
App-Profile-String : ""
291 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-4A : Authentication via Radius PAP-CHAP : No CLI L2TP configuration
Connection ID : 188284928
State : established
IP : 0.0.0.0
Peer IP : 192.4.1.2
Name : pe2.lab
Remote Name : MyRemoteLns1
Assignment ID : MyTunnel1
Group Name : default_radius_group
Error Message : N/A
292 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-4A : Authentication via Radius PAP-CHAP : No CLI L2TP configuration
Setup N2X option4A user12@skynet.be
LNS
Selected by LAC
293 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail
Option-4A : Authentication via Radius PAP-CHAP : No CLI L2TP configuration
Problem
What if tunnel names ( tunnel-Assignment-Id) for different users are not unique ?
294 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Radius Tunnel Configuration : Several possibilities
2. RADIUS
Description
3. RADIUS
Description
Next
295 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7.0R2
296 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail 7.0R2
CHAP
LAC RADIUS
297 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail 7.0R2
CHAP
LAC RADIUS
PAP/CHAP
Aggregation LNS
network IP/MPLS Internet
(optional)
BSAN
298 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail 7.0R2
PADT
ZLB
299 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail 7.0R2
no shutdown
exit
exit
exit
no shutdown
300 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail 7.0R2
301 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail 7.0R2
Tools RADIUS USER CHECK 499 2009/03/20 12:05:41.24 GMT MINOR: DEBUG #2001 Base RADIUS
"RADIUS: Transmit….
user13@skynet.be
500 2009/03/20 12:05:41.32 GMT MINOR: DEBUG #2001 Base RADIUS
"RADIUS: Receive
Radius user file Access-Accept(2) id 1 len 310 from 10.2.79.79:1812
USER NAME [1] 16 USER13@SKYNET.BE
VSA [26] 24 Alcatel(6527)
tools perform security authentication- SUBSC ID STR [11] 22 Radius-MySubMyProvider
TUNNEL ASSIGNMENT ID [82] 26 MyProvider1_based_on_tag_0
server-check server-address 10.2.79.79 VSA [26] 6 Alcatel(6527)
TUNNEL DESTRUCT TIMEOUT [51] 4 0 60
user-name user13@skynet.be secret TUNNEL CLIENT AUTH ID [90] 26 Radius-returned-local-name
VSA [26] 6 Alcatel(6527)
"WhoIsThere" password "password13“ TUNNEL HELLO INTERVAL [50] 4 0 60
VSA [26] 6 Alcatel(6527)
TUNNEL MAX RETRIES NOT ESTAB [53] 4 0 2
VSA [26] 6 Alcatel(6527)
TUNNEL MAX SESSIONS [48] 4 0 100
TUNNEL TYPE [64] 4 1 L2TP(3)
Radius users file contained several TUNNEL MEDIUM TYPE [65] 4 1 IPv4(1)
TUNNEL SERVER ENDPOINT [67] 10 1 192.4.1.2
other attributes. TUNNEL TYPE [64] 4 2 L2TP(3)
TUNNEL MEDIUM TYPE [65] 4 2 IPv4(1)
TUNNEL SERVER ENDPOINT [67] 10 2 192.4.2.2
TUNNEL ASSIGNMENT ID [82] 10 2 MyTunnel2
TUNNEL TYPE [64] 4 3 L2TP(3)
TUNNEL MEDIUM TYPE [65] 4 3 IPv4(1)
TUNNEL SERVER ENDPOINT [67] 10 3 192.4.3.2
TUNNEL ASSIGNMENT ID [82] 10 3 MyTunnel3
TUNNEL TYPE [64] 4 4 L2TP(3)
TUNNEL MEDIUM TYPE [65] 4 4 IPv4(1)
TUNNEL SERVER ENDPOINT [67] 10 4 192.4.4.2
TUNNEL PREFERENCE [83] 4 4 10
TUNNEL ASSIGNMENT ID [82] 10 4 MyTunnel4
302 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail 7.0R2
Connection ID : 555483136
State : established
IP : 172.16.0.12
Peer IP : 192.4.4.2
Name : Radius-returned-local-name
Remote Name : MyRemoteLns4
Assignment ID : MyTunnel4
Group Name : MyProvider1_based_on_tag_0
Error Message : N/A
304 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail 7.0R2
LNS
Selected by LAC
305 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
CLI –RADIUS Overview
306 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Redback-Juniper VSA’s End
Juniper VSA's:
307 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Agenda
308 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
Wire shark example
Install filter on Wireshark to see only packets related to the PPP protocol.
309 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
CONFIDENTIAL – internal use only
N2X : Nice to Know
6.11 N2X LNS does not support PPPoE circuit-id / remote-id in ICRQ
The circuit-id & remote-id are NOT Vendor specific AVP’s but ADSL forum AVP’s.
310 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
CONFIDENTIAL – internal use only
N2X : Nice to Know
6.11 N2X LNS sends a stop CCN when last PPPoE session is terminated on this tunnel.
311 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
CONFIDENTIAL – internal use only
N2X : Nice to Know
N2X can configure secret but does not include challenge in SCCRQ or SCCRP.
312 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
CONFIDENTIAL – internal use only
N2X : Nice to Know
The problem is that when PAP authentication is used, we do not recognize the
proxy values in the ICCN message. Instead of replying with a PAP authentication
message we initiate the LCP negotiation again.
For proxy authentication the only workaround at the moment is to use CHAP.
313 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
CONFIDENTIAL – internal use only
L2TP and LDP-shortcuts : Nice to Know
Design workaround :
Redistribute on PE-edge the /32 LNS in IGP (OSPF/ISIS).
Disable LDP-shortcuts on LAC ( if possible).
314 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
CONFIDENTIAL – internal use only
Receive OCRQ : Nice to Know
DTS 78621
On reception of an unsupported OCRQ we should send back a CDN
DTS 79617
L2TP: downstream data path breaks after applying an egress ip-filter log in the
SLA profile.
Workaround in 7.0R1 : don’t apply ip-filter in sla-profile for L2TP subscriber.
Solution in 7.0 maintenance release.
315 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation
CONFIDENTIAL – internal use only
Nice to Know
Does the NW-side for the Next-Hop towards the l2TP peer needs to be a
network port?
Yes and the LNS may not be directly connected.
Can the NW-side also be an IES service and incase yes do we support that this
IES uses spoke-SDP’s to connect the core?
No
Is it correct that we cannot setup a tunnel within a VPRN?
Yes , we can not.
If the above is correct why do we have in CLI “configure router 200 sgt-qos
application l2tp dscp”.
CLI is currently not making a distinction between the base router and a VPRN router
instance
316 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
8 Customer cases
updated
317 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Customer cases
CONFIDENTIAL – internal use only
Overview
318 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
9 scalability
updated
319 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation.
Scalability : Number of tunnels per domain aka l2tp group
group "MyProviderScale1”
tunnel group MyProviderScale1
tunnel "MyTunnel1"
local-address 172.16.0.12
local-name "MyLac1"
peer 192.6.1.2 Provider1
exit
....
tunnel "MyTunnel31"
local-address 172.16.0.12
LAC
local-name "MyLac1"
peer 192.6.31.2
exit
tunnel group MyProviderScale2
group "MyProviderScale2” Provider2
group "MyProviderScale3”
group "MyProviderScale4”
320 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation.
CONFIDENTIAL – internal use only
Scalability :
Internal info
Values are correct for local sessions in 7.0R1
Tunneled sessions in 7.0R1 is 32K
Tunneled sessions in 7.0R3 SR-7 is 64K target
Tunneled sessions in 7.0R3 SR-12 is 128K target
7.0R1 : N/A
7.0R2 : 1K target
7.0R1 : 1K tunnels
7.0R2 : 4K tunnels 7.0R1 : 32K
7.0R3 : 16K tunnels target No current Plans to increase
321 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
10 Evolution
new
322 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
CONFIDENTIAL – internal use only
PPPoE evolution in future releases
LNS
323 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation.
Conclusion
PPPoE Retail
PPPoE wholesale LAC functionality
PPPoE wholesale LNS ( Future Release)
L2TP uplinks require network ports on IOM3/IMM
L2TP IP-routed ( GRE like) in Base instance.
L2TP tunnel can be pre-signaled ( auto-establish / tools command)
L2TP tunnel selection mechanism ( existing-first <> weighted)
AVP-hiding level configurable.
Tag:0 for tunnel-assignment supported from Radius (group-name) (7.0R2)
Setup rates and scaling numbers can compete with the other BRAS vendors.
324 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Thank You
www.alcatel-lucent.com
325 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
PPPoE Related CLI commando’s
===============================================================================
PPPoE Summary info for IES svc-id 998
===============================================================================
Number of sessions : 1
===============================================================================
326 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
PPPoE Related CLI commando’s
===============================================================================
PPPoE sessions for svc-id 998
===============================================================================
Sap Id Mac Address Sid Up Time IP Address
-------------------------------------------------------------------------------
1/1/7 00:00:00:00:00:01 1 0d 00:02:21 192.168.42.1
-------------------------------------------------------------------------------
Number of sessions : 1
===============================================================================
327 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
PPPoE Related CLI commando’s
===============================================================================
PPPoE statistics for IES service 998
===============================================================================
Packet Type Received Transmitted
-------------------------------------------------------------------------------
PADI 1 -
PADO - 1
PADR 1 -
PADS - 1
PADT 0 0
session 9 10
-------------------------------------------------------------------------------
Drop Counters
-------------------------------------------------------------------------------
Rx Invalid Version : 0
Rx Invalid Type : 0
Rx Invalid Code : 0
Rx Invalid Session : 0
Rx Invalid Length : 0
Rx Invalid Tags : 0
Rx Invalid AC-Cookie : 0
Rx Dropped : 0
===============================================================================
328 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
PPPoE Related CLI commando’s
Subscriber : "user1"
Sub-Profile-String : "sub1"
SLA-Profile-String : "sla1"
ANCP-String : ""
Int-Dest-Id : ""
App-Profile-String : ""
Primary DNS : 138.203.144.51
Secondary DNS : N/A
Primary NBNS : 138.203.144.51
Secondary NBNS : N/A
Circuit-Id :
Remote-Id :
Session-Timeout : N/A
-------------------------------------------------------------------------------
Number of sessions : 1
329 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
PPPoE Related CLI commando’s
331 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
PPPoE Related CLI commando’s
------------------------------------------------------------------------------
IPCP
------------------------------------------------------------------------------
active : yes state : OPENED
332 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
PPPoE Related CLI commando’s
tools perform subscriber-mgmt local-user-db ludb-1 pppoe host-lookup user-name user1@domain1
A:pe2.lab# tools perform subscriber-mgmt local-user-db ludb-1 pppoe host-lookup
user-name user1@domain1
===============================================================================
PPPoE host Lookup results
===============================================================================
Result : Success
Matched Host Name : host1
===============================================================================
PPPoE host Lookup results
===============================================================================
Result : host not found
===============================================================================
333 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
PPPoE Related CLI commando’s
==============================================================================
Local User Database "ludb-1" PPPoE unmatched hosts
==============================================================================
Name Reason Duplicate Host
------------------------------------------------------------------------------
host200 No match N/A
------------------------------------------------------------------------------
Number of PPPoE Unmatched Hosts : 1
==============================================================================
Local User Database "ludb-1" PPPoE unmatched hosts
==============================================================================
Name Reason Duplicate Host
------------------------------------------------------------------------------
host200 Duplicate host1
------------------------------------------------------------------------------
Number of PPPoE Unmatched Hosts : 1
==============================================================================
334 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
PPPoE Related CLI commando’s
===============================================================================
Local User Databases
===============================================================================
Name Admin Host Description
State Count
-------------------------------------------------------------------------------
ludb-1 Up 5
ludb-2 Up 1
-------------------------------------------------------------------------------
Number of Local User Databases : 2 Number of Hosts : 6
===============================================================================
335 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
PPPoE Related CLI commando’s
• show subscriber-mgmt local-user-db ludb-1 pppoe-all-hosts
===============================================================================
Local User Database "ludb-1" PPPoE hosts
===============================================================================
Name Admin Matched objects
State
-------------------------------------------------------------------------------
host1 Up userName
host2 Up userName
host3 Up userName
host14 Up userName
host253 Up userName
-------------------------------------------------------------------------------
Number of PPPoE Hosts : 5
===============================================================================
336 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
PPPoE Related CLI commando’s
===============================================================================
PPPoE Host "host1"
===============================================================================
Admin State : Up
Last Mgmt Change : 03/16/2008 09:29:58
Host Indentification
Mac Address : N/A
Circuit Id : N/A
Remote Id : N/A
User Name : user1@domain1
Address : 192.168.42.1
Password Type : CHAP
337 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Radius Related CLI commando’s
• Returns all authentication policies.
===============================================================================
Authentication Policies
===============================================================================
Name Description
-------------------------------------------------------------------------------
knock-knock RADIUS policy
-------------------------------------------------------------------------------
Number of Authentication Policies : 1
===============================================================================
338 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Radius Related CLI commando’s
• Oper-state “unknown” until first access-request to server via this policy.
===============================================================================
Authentication Policy knock-knock
===============================================================================
Description : RADIUS policy
Re-authentication : No Username Format : Circuit-id
PPPoE Access Method : PADI
Last Mgmt Change : 03/18/2008 13:10:42
-------------------------------------------------------------------------------
Include Radius Attributes
-------------------------------------------------------------------------------
Remote Id : No Circuit Id : No
NAS Port Id : Yes NAS Identifier : No
PPPoE Service Name : Yes DHCP Vendor Class Id : No
Access Loop Options : No MAC Address : No
-------------------------------------------------------------------------------
Radius Servers
-------------------------------------------------------------------------------
Router : Base Source Address : N/A
Access Algorithm : Direct Retry : 3
Timeout : 5
-------------------------------------------------------------------------------
Index IP Address Port Oper State
Status is unknown until
-------------------------------------------------------------------------------
1 10.2.79.79 1812 Unknown first request is send for this policy
===============================================================================
339 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Radius Related CLI commando’s
• subscriber packets rejected increased after retries reached
===============================================================================
Authentication Policy Statistics
===============================================================================
-------------------------------------------------------------------------------
Policy name : knock-knock
subscriber packets authenticated : 1
subscriber packets rejected : 2
-------------------------------------------------------------------------------
radius server requests requests requests requests requests requests
idx IP-address accepted rejected no reply md5 failed pending send failed
-------------------------------------------------------------------------------
1 10.2.79.79 1 0 6 0 1 0
===============================================================================
340 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Radius Related CLI commando’s
===============================================================================
Radius Accounting Policies
===============================================================================
Name Description
-------------------------------------------------------------------------------
GiveMeTheMoney
-------------------------------------------------------------------------------
Number of Radius Accounting Policies : 1
===============================================================================
342 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Radius Accounting Related CLI commando’s
===============================================================================
Radius Accounting Policy GiveMeTheMoney Statistics
===============================================================================
Tx Requests : 3 Rx Responses : 2
Request Timeouts : 0 Send Retries : 0
Send Failed : 1
-------------------------------------------------------------------------------
Radius Servers
-------------------------------------------------------------------------------
Index IP Address Tx Reqs Rx Resps Req Timeouts Req Send Failed
-------------------------------------------------------------------------------
1 10.2.79.79 2 2 0 1
===============================================================================
343 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Radius Accounting Related CLI commando’s
344 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
DHCP and PPPoE clients on same interface
345 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Customer cases : INEXUS
Subscriber-interface : GPON-7342-1
Group-interface : interface_1
A:GLB1-01-01-7750-01#
==============================
Subscriber Origin : Local-User-Db
Leases for DHCP server
Strings Origin : Local-User-Db
===============================
IPCP Info Origin : DHCP
IP Address
PPPoE user name
Subscriber : "user1"
User-db-hostname State mac Type
Sub-Profile-String : "sub1"
------------------------------------------------
SLA-Profile-String : "sla1"
62.208.235.75 stable 00:1b:2f:48:55:29 pppoe
ANCP-String : ""
test@seethelight.co.uk
Int-Dest-Id : ""
business1
App-Profile-String : ""
347 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
show service active-subscribers hierarchy
-- Bagri.Erdinc (sub1)
|
|-- sap:1/1/7 - sla:sla1
| |
| |-- 192.168.42.100 - 00:00:00:00:01:01 (PPPoE)
| |
-- Barata.Helder (sub1)
|
|-- sap:1/1/7 - sla:sla1
| |
| |-- 192.168.42.122 - 00:00:00:00:02:07 (PPPoE)
| |
348 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
HW setup
N2X Traffic
104/2
CPM-swap 104/1
349 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
www.alcatel-lucent.com
www.alcatel-lucent.com
350 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Backup
351 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
PPP/DHCP solution comparison
PPP DHCP (MPSDA)
Authentication LCP extension provides user identification User authentication based on option82
Authorization Supplied to BBNG by RADIUS based on user identity Supplied by Alcatel 5750 Subscriber Services Controller
Accounting Supplied by BBNG, collected via RADIUS-based system Supplied by Alcatel 7x50, collected via the 5750 SSC
/RADIUS
State fullness State kept by PPP keep-alive State kept by ARP keep-alive (SHCV)
in nature
PC support Requires third-party SW, unless OS <4 years old Available on any device
Femto support Extra overhead, QoS differentiation difficult No additional overhead, QoS differentiation
Customer service
Provides feedback on connectivity; third-party SW Provides feedback on connectivity via ARP/ping
support
hard to troubleshoot mechanism
Redundancy No box redundancy, no full in-box redundancy Full box/in-box redundancy through High Availability
provided
When we compare DHCP versus PPP the following design guidelines can be
followed
Video: requires DHCP for efficient multicast distribution
Femto: requires DHCP/IPoE for optimal overhead and QoS differentiation
Voice/HSI: introduce them on DHCP when possible, mainly depending on legacy
environment
PPP required when:
Wholesale support and authentication is superior due to L2TP and
username/password/domain name support in PPPoE/L2TP
DHCP extensions with EAP are being worked on in DSL Forum/IETF
Video subscribers move typically to DHCP and legacy HSI is typically kept in legacy BRAS
platforms, although multiple providers are looking to migrate to full DHCP
353 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation.
Slow-start and congestion avoidance
Before the introduction of the L2TP Congestion Avoidance feature, the window size
used to send packets between the network access server (NAS) and the tunnel server
was set to the value advertised by the peer endpoint and was never changed.
Configuring the L2TP Congestion Avoidance feature allows the L2TP packet window to
be dynamically resized using a sliding window mechanism. The window size grows
larger when packets are delivered successfully, and is reduced when dropped packets
must be retransmitted
SCCRQ
SCCRP
SCCCN
Window size avp=4
ZLB
354 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
7x50 Wholesale-Retail L2TP implementation.
Session setup message flow
355 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail OPTION-1A
LUDB : fallback “default” host
Add host “default” without host-identification
14 2009/03/25 20:58:51.96 GMT MINOR: DEBUG #2001
User has wrong service name Base LUDB
"LUDB: User lookup success - host found
pppoe-service-name:
debug subscriber-mgmt local-user-db MyLudb1 original: MyProvider1-wrong
masked: MyProvider1-wrong
*A:pe2.lab# configure subscriber-mgmt
local-user-db "MyLudb1" create Host default found in user data base MyLudb1"
description "Add text"
pppoe
match-list service-name show service id 99999 pppoe session detail
host "host1" create ==========================================
host-identification PPPoE sessions for svc-id 99999
service-name "MyProvider1" ================================
exit
identification-strings 254 create PPP User-Name : (Not Specified)
--snip--
exit Subscriber-interface : MySubItf1
1 l2tp Group-interface : MyGrpItf1
group "MyProvider1"
exit Subscriber Origin : Local-User-Db
no shutdown Strings Origin : Local-User-Db
exit
host “default" create Subscriber : "default_from_ludb"
identification-strings 254 create Sub-Profile-String : "DefSubProfile"
subscriber-id “default_from-ludb" 2 SLA-Profile-String : "DefSlaProfile"
sla-profile-string "DefSlaProfile" --snip--
sub-profile-string "DefSubProfile"
exit Service-Name : MyProvider1-wrong
no shutdown Session-Timeout : N/A
exit Radius Class :
exit Radius User-Name :
…
356 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
LUDB default” host APPLICATION
Problem Description
Assume that you have a local-DHCP server with a pool-1 with 3 subnets.
gi-address is 10.2.0.254
local-dhcp-server "server-2" create
use-gi-address
pool "pool-1" create
subnet 10.2.0.0/24 create
address-range 10.2.0.1 10.2.0.253
exit
subnet 10.2.1.0/24 create
address-range 10.2.1.1 10.2.1.253
exit
subnet 10.2.2.0/24 create
address-range 10.2.2.1 10.2.2.253
exit
exit…
If the assigned gi-address is 10.2.0.254 for a PPPoE session than this PPPoE
client can never search in the two other subnets from pool-1 (if pool-1 was
not returned from Radius for example.
357 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
LUDB default” host APPLICATION-I ( With Radius after pre-auth)
358 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
LUDB default” host APPLICATION-II ( Without Radius )
359 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008
Wholesale-retail OPION-1A
LUDB : mask type examples
- - 7450-ESS-1|100|1/2/1 - - 10 - - 7450-ESS-1
360 | TiMOS-7.0 workshop | April 2009 All Rights Reserved © Alcatel-Lucent 2008