Juniper MX Sub MGMT
Juniper MX Sub MGMT
Juniper MX Sub MGMT
Management
Internet
Provider
ATM
PSTN
Network RAS
Dial-up or Leased Office
Networking Lines Network
Client
Database
Network Server
PSTN = public switched telephone network
File Sharing
MSAN Broadband
DSL Services
Router
RG
Cable MSAN ISP
Core
RG
MSAN
Network
Satellite
RG
DHCP
AAA services
Server
DHCP relay/local server
Dynamic profiles
-Interfaces
-Firewall filters
-Protocols (IGMP) Diameter and
-Class of Service SRC Server
BSR
a
Dat BSR
ce
Voi
MSAN
Aggregation
Vid
Switch eo
VSR
MX960
• Separate edge router for video traffic
• Requires aggregation switch or MSAN with multiple uplinks
• Requires some QoS in the MSAN or aggregation switch
MX960
MSAN MSAN
a
Leased Eth Dat BSR
Lines ern Voi
ce
COT et
Aggregation MX960
Switch Vid
eo
M VSR
WD
OLT
Distributed intelligence
DHCP options CoS AAA
Services Video
Core Network
RG MSAN Aggregation
Switch MX960 Data
DHCP
PPPoE
MX960
MSAN Video
Core Network
RG
Data
Scenarios:
• DHCP for all services
• PPPoE for all services (No IPTV)
• DHCP for IP video, PPPoE for data traffic
MSAN MSAN
MSAN MSAN
MSAN MSAN
Service VLAN
• Dedicated VLAN for each service
• N:1 model; multiple subscribers share each VLAN
Subscriber #1 (C-VLAN)
Subscriber #2 (C-VLAN)
Subscriber #3 (C-VLAN)
MSAN
Customer VLAN
• Dedicated VLAN for each subscriber
• 1:1 model; each subscriber has a VLAN
C-VLAN
PPPoE for with M- Centralized
RG unicast VLAN model
Hybrid
DHCP on multicast
IGMP forking allows
VLAN for IPTV
MX960 Video
BSR to adjust QoS
VSR Core Network
MSAN M-VLAN
RG C-VLANs
Subscriber Dynamic
Management Profiles
MSAN
Forwarding
Plane
6. The router adds RADIUS authorization information to the router session database.
7. The router combines the dynamic profile with the RADIUS authorization information.
8. The router alerts all internal applications involved with the subscriber access (for example,
routing protocols, dynamic firewall, and dynamic CoS).
9. The router passes the message through to the DHCP server.
10. The router DHCP component sends an acknowledgement back to the client.
• CLI example:
user@mx> test aaa authd-lite user team1 password lab123 profile my-profile
Authentication Grant
************User Attributes***********
User Name - team1
User Password – lab123
Service Type- 0
Framed IP Address - 0.0.0.0
Framed IP Netmask - 0.0.0.0
<snip>
Logging out subscriber
Test complete. Exiting
group or globally
• CLI example:
user@mx> test aaa dhcp user team1 password lab123
Authentication Grant
************Attributes***********
User Name - esmeralda
Client IP Address - 10.1.1.2
Client IP Netmask - 255.255.255.0
Reply Message NULL
Primary DNS IP Address - 0.0.0.0
Secondary DNS IP Address - 0.0.0.0
Primary WINS IP Address - 0.0.0.0
Secondary WINS IP Address - 0.0.0.0
Framed Pool – dhcppool
<snip>
Messages received:
BOOTREQUEST 281642
DHCPDECLINE 0
DHCPDISCOVER 65
<snip>
MX Router
MX Router
overrides {
• Useful to disable a always-write-giaddr;
always-write-option-82;
specific group always-trust-option-82;
}
• Can be configured per group dhcp-relay-group {
dynamic-profile dhcp-relay-dyn-profile;
group or globally }
interface ge-1/0/3.0;
Messages received:
BOOTREQUEST 0
DHCPDECLINE 0
DHCPDISCOVER 0
DHCPINFORM 0
DHCPRELEASE 0
DHCPREQUEST 0
Messages sent:
BOOTREPLY 0
DHCPOFFER 0
DHCPACK 0
DHCPNAK 0
[edit]
user@mx# show access address-?
Possible completions:
> address-assignment Address assignment configuration
> address-pool Address pool
Subscriber M120
MX Router
LNS
LAC
RADIUS
ISP
Subscriber
LCP ConfReq M120
RADIUS LNS
LNS
r ef . 100
tP
LAC st Att
emp 00
1
t P r ef. 1
p
ttem
4th A p t P r ef. 200 LNS
em
2nd Att
dave@xyz.com
3 rd Att
empt P
MX Router ref. 30
0
LNS
• LNS hostname
• Maximum number of sessions allowed
• Juniper RADIUS VSA 26-69 Tunnel-Password
Internet
Provider
ATM
PSTN
Network RAS
Dial-up or Leased Office
Networking Lines Network
Client
Database
Network Server
File Sharing
RG
MSAN
RG Gigabit Ethernet
RG
Access Node
RG
RG
MX960
ONT
OLT
RG
ONT
diane@isp1.com RG
MX960 BSR
tim@isp1.com
MAC=A ISP1
DA IP=2.2.2.2
SA IP=1.1.1.2
MAC=X ISP2
PPPoE:
PPP Header
PPPoE Header
SessionID=0x123 • General frame format
EtherType=0x8864
DA MAC=X
• PC requirements
SA MAC=A
• Two stages of PPPoE:
Physical • Discovery stage
• PPP session stage
diane@isp1.com RG
MX960 BSR
tim@isp1.com
MAC=A ISP1
MAC=X ISP2
PPPoE Active PPPoE
PPPoE
Discovery Initiation Services
SessionID= PPPoE Active
PADI DA=FF 0000 Discovery Offer
SA=A
Type=Disc DA=A PADO
SA=X
Type=Disc
PPPoE
PPPoE Active SessionID=
PPPoE PPPoE Active
Discovery Request 0000
SessionID= Discovery Session
PADR DA=X 1234 Confirmation
SA=A
Type=Disc DA=A PADS
SA=X
Type=Disc
diane@isp1.com RG
MX960 BSR
tim@isp1.com
MAC=A ISP1
PPPoE
SessionID=
PPP LCP 1234 MAC=X ISP2
DA=X PPPoE
SA=A SessionID=
Type=PPP 1234 PPP LCP
DA=A
SA=X
Type=PPP
Layer 2
Dynamic ISP RADIUS Server
Aggregation
PPPoE
Client
MX RAC
Authentication request
RADIUS
Access-Accept packet Server
can contain IETF attributes
6. The client and router use LCP to negotiate the PPP connection.
7. The client sends an authentication packet to the router.
8. The RADIUS server authenticates the client’s credentials.
9. The router uses NCP to negotiate the IP routing protocol and network family.
10. The router provides address assignment and adds the client address to the route table.
11. The router instantiates the dynamic profile and applies attributes to the subscriber interface.
NCP completes and traffic flows between the client and the router.
© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 86
Sequence of Operations (3 of 3)
Dynamic PPPoE subscriber disconnect process
Acct-Stop
Layer 2 RADIUS
Dynamic Aggregation
PPPoE Server
Client MX Removes the PPPoE logical interface.
LCP Termination Request
Removes the client route.
PADT
1. The client terminates the PPP connection and sends an LCP termination request.
2. The router removes the client access route from the routing table.
3. The router sends a PADT packet to end the PPPoE connection.
4. The router deactivates the subscriber and sends the RADIUS server an Acct-Stop
accounting message.
5. The router de-instantiates the PPPoE dynamic profile and removes the PPPoE logical
interface.
© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 87
Dynamic PPPoE Benefits
Dynamic PPPoE benefits:
• On-demand dynamic interface creation
• Dynamic removal of PPPoE subscriber interfaces
• Dynamically manage multiple PPPoE subscribers
• DoS protection
• Service name table support
[edit]
user@mx# show interfaces
ge-1/0/0 {
vlan-tagging;
unit 1 {
Required encapsulation type for PPPoE
encapsulation ppp-over-ether;
vlan-id 1; subscriber connections.
pppoe-underlying-options {
dynamic-profile pppoe-profile;
}
}
}
Layer 2
Dynamic
Aggregation
PPPoE
Client
PADI
PADO
PADR MX RAC
PADS
Interface Card
Interface naming example: PIC
•
Other interface name designations
ge-0/2/3 = port 3 of a Gigabit Ethernet PIC in slot 2 on FPC 0
exist, such as lo0, vlan, and ae PIC
Note: Slot and port numbering begins with Line card
zero (0) rather than one (1). FPC
PIC
PIC
ge-0/0/14.51
flexible-vlan-tagging; flexible-vlan-tagging;
unit 0 { native-vlan-id 200
vlan-id 1234; unit 0 {
family inet { vlan-id 1234;
address 192.168.1.1/24; family inet {
} address 192.168.1.1/24;
} }
unit 1 { }
vlan-tags outer 1 inner 234; unit 1 {
family inet { vlan-tags outer 1 inner 234;
address 192.168.2.1/24; family inet {
} address 192.168.2.1/24;
} }
© 2011 Juniper Networks, Inc. All rights reserved. } www.juniper.net | 111
Dynamic VLANs
Dynamic VLAN creation for subscriber management
• The Junos OS can dynamically create VLANs based on new
subscriber connections
• Support for single tagging, dual tagging, and mixed tagging
General dynamic VLAN configuration
1.Configure a dynamic profile and associate it with an interface
2.Specify the Ethernet packet type for the dynamic profile
3.Configure VLAN ranges for the dynamic profile
• show interface
• Displays detailed user@mx> show interfaces ge-1/0/2
Physical interface: ge-1/0/2, Enabled, Physical link is Up
interface information, <snip>
including parameters Logical interface ge-1/0/2.1073741859 (Index 73) (SNMP ifIndex 230)
Flags: SNMP-Traps 0x104000 VLAN-Tag [ 0x8100.6 0x8100.104 ]
inherited from a Encapsulation: ENET2
Input packets : 1624
profile Output packets: 1624
Protocol inet, MTU: 1500
Flags: Mac-Validate-Strict, Unnumbered
Donor interface: lo0.0 (Index 64)
Preferred source address: 100.100.100.100
Protocol multiservice, MTU: Unlimited
Type: DHCP
User Name: radiususer@lab.com
IP Address: 100.100.100.22
IP Netmask: 255.255.255.0
Logical System: default
Routing Instance: default
Interface: ge-1/0/2.1073741859
Interface type: Static
Dynamic Profile Name: dhcp-profile
MAC Address: 00:00:36:00:00:01
State: Active
Radius Accounting ID: 84
Login
© 2011 Juniper Networks, Inc. All rights Time: 2009-10-06 04:03:52 UTC
reserved. www.juniper.net | 132
Monitoring and Troubleshooting Dynamic
Configuration
show dynamic-configuration
show commands is a hidden command.
• show dynamic-configuration
• Displays parameters generated from a profile
• Displays data fill for variables
user@mx> show dynamic-configuration session information session-id 72
Session info:
Accounting session ID: 72
IP address: 102.102.102.3 user@mx> show subscribers detail
IP netmask: 255.255.255.0
Type: DHCP
Logical system name: default
User Name: demuxuser
Profile name: demux-profile IP Address: 102.102.102.3
MAC address: 00:00:36:00:00:01 IP Netmask: 255.255.255.0
Routing instance: default Logical System: default
User name: demuxuser Routing Instance: default
Interface name: demux0.1073741858 Interface: demux0.1073741858
Dynamic-configuration state: 2 Interface type: Dynamic
Client session type: 1 Dynamic Profile Name: SVLAN
IFL type: 2 MAC Address: 00:00:36:00:00:01
Accounting type: 1 State: Active
Radius Accounting ID: 72
Accounting interval: 600
Login Time: 2009-10-05 21:25:26 UTC
Underlying logical-interface: ge-1/0/4.0
Dynamic configuration:
junos-interface-unit: 1073741858 Works for all interfaces, not just IP demux
junos-subs-login-time: 2009-10-05 21:25:26 UTC
junos-underlying-interface: ge-1/0/4.0
© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 133
Monitoring and Troubleshooting Dynamic VLANs
show commands
• show auto-configuration interfaces
• Displays dynamic VLAN interfaces
user@mx> show subscribers
Interface IP Address User Name
demux0.1073741858 102.102.102.3 demuxuser
ge-1/0/5.0 192.168.4.7 rad@lab.com
ge-1/0/3.0 101.101.101.8 radiususer@lab.com
ge-1/0/2.1073741859
ge-1/0/2.1073741859 100.100.100.22 radiususer@lab.com
user@mx> restart ?
Possible completions:
adaptive-services Adaptive services process
ancpd-service Access Node Control Protocol Process
application-identification Application-identification process
audit-process Audit process
auto-configuration Interface Auto-configuration
chassis-control Chassis control process
class-of-service Class-of-service process
database-replication Database Replication process
dhcp-service Dynamic Host Configuration Protocol process
…
DHCP
AAA services
Server
DHCP relay/local server
Dynamic profiles
-Interfaces
-Firewall filters Diameter
-Protocols (IGMP)
and SRC
-Class of Service
Server
Wholesaler Retailer
RADIUS RADIUS
Server Server
MSAN
MX960
Direct ISP-Facing ISP 1
VRF Connection
VRF
MSAN Retailer
NNI ISP-Facing RADIUS
Connections Server
VRF
MX960
ISP 2
MSAN
MX960
Retailer Network Space
Wholesaler-Controlled Network Space
Retailer ISP 1
VRF ISP1
Layer 2
DHCP Aggregation Layer 3 VPN
Client
MX Retailer
VRF ISP2 ISP 2
Retailer
RADIUS
Server
© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 144
Subscriber to Logical System and Routing
Instance Relationship
Subscriber to LS:RI relationship:
• Established by the AAA framework
• Dynamic profiles use dynamic variables to trigger a RADIUS
response to decide which virtual router will authenticate the
subscriber
• $junos-routing-instance
• RADIUS uses vendor specific attributes to select single- or
double-dip authentication
• Single authentication only authenticates against the wholesaler
RADIUS server
• Double-dip authentication performs authentication against both the
wholesaler and retailer RADIUS servers
Layer 2
DHCP Layer 3 VPN
Client
Aggregation ISP
VRF
DHCP
MX
Offer/Ac
• VSA: Redirect-LSRI-Name k
Layer 2
DHCP Layer 3 VPN
Client
Aggregation ISP
VRF
DHCP
MX
Offer/Ac
k
DHCP Offer
DHCP Request
DHCP Ack Instantiating Dynamic-
profile
DEMUX interface is
created on Retailer LSRI
Redirect-LSRI-Name
VSA
DEMUX interface is
created on Retailer LSRI
Layer 2
DHCP Layer 3 VPN
Client
Aggregation ISP
VRF DHCP Discover/Request DHCP
DHCP MX Server
Offer/A
ck
DHCP Request
DHCP Request
DHCP Ack
DHCP Ack
Instantiating Dynamic-
profile and DEMUX
interface
Retailer ISP 1
VRF ISP1
Layer 2
PPPoE Aggregation Layer 3 VPN
Client
MX Retailer
VRF ISP2 ISP 2
Retailer ISP 1
VRF ISP1
Layer 2
Dynamic Aggregation VPLS
VLAN
Subscriber
MX Retailer
VRF ISP2 ISP 2
Retailer
RADIUS
Server
MX
• Pop VLAN 20
• Removes an outer VLAN tag
VLAN 10 VLAN 10
MX
• Swap
VLAN 10 VLAN 30
• Rewrites the VLAN tag
MX
[edit]
user@mx# show interfaces
ge-1/3/0 {
flexible-vlan-tagging;
auto-configure {
stacked-vlan-ranges {
dynamic-profile L2_Subscriber_Profile {
accept any;
ranges {
any,any;
}
}
access-profile Access-Profile;
}
}
encapsulation flexible-ethernet-services;
}
Note: Ordering matters! If you must reorder terms within a filter, consider using the insert CLI command.
Input Output
Output Input
MX Router
Firewall policing:
• Also called rate-limiting
• Enables you to limit the amount of traffic that passes into or out
of an interface
• Works with firewall filters to thwart DoS attacks
• Common actions include discard and setting loss-priority level
• Uses average bandwidth and maximum burst size
Bit Bucket
= Route Table
R4
R1
Internet
Active Path =
172.30.17.0/24
R3 Feasible Path =
Filter: peer2peer
Counters:
Name Bytes Packets
no-12345 1694502 20256
Voice
Packet A
MX 960
Video
Packet A Packet B Packet C
Packet B
Data
Packet C
Voice Voice
VoIP VoIP
Data Data
Data Data
Voice
Queue 2
Packet A
MX 960
Video
Packet A Packet B Packet C Queue 1
Packet B
Data
Queue 0
Packet C
If congestion exists…
Drop Last
MX 960 Voice
VoIP
RG
Data MSAN
(No (No
Data BA Data BA
) )
• Across-the-network
• Uses a multifield classifier at the edge and behavior aggregate rewrite
and classifier in the core
Definition Application
ge-0/0/1.0
(No (No
Data BA Data BA
) )
R1 R2
ge-0/0/3.0 ge-0/0/3.0
Data
if-exceeding {
bandwidth-limit 1m;
burst-size-limit 3k;
}
Data
then forwarding-class best-effort;
}
family inet {
filter apply-cos-markings {
term admin {
from {
source-address { Policer
192.168.200.0/25; Best Effort
} Out-of-Profile Traffic
}
then {
policer admin-traffic-policer;
forwarding-class expedited-forwarding;
accept;
}
}
term all-other-traffic {
Expedited Forwarding
then accept; Conforming Traffic
}
}
}
}
Data
Forwarding classes map to queues
Data
• Default queue and forwarding class
mappings for devices running the Junos
OS:
• 0: best-effort Queue 0 Queue 1 Queue 2 Queue 3
(BE) (EF) (AF) (NC)
• 1: expedited-forwarding
Scheduler Map
• 2: assured-forwarding
• 3: network-control
Data
Displays current queue and forwarding class mappings
Data
Forwarding class ID Queue
best-effort 0 0
expedited-forwarding 1 1
assured-forwarding 2 2
network-control 3 3
[edit class-of-service]
user@mx# set forwarding-classes queue 1 important-traffic
[edit class-of-service]
user@mx# set forwarding-classes queue 2 critical-traffic
[edit class-of-service]
user@mx# commit
commit complete
[edit class-of-service]
user@mx# run show class-of-service forwarding-class
Forwarding class ID Queue
general-traffic 0 0
important-traffic 1 1
critical-traffic 2 2
network-control 3 3
Data
Schedulers
Data
Priority
Define the order in which
packets transmit
Transmission Rate
Queue 0 Queue 1 Queue 2 Queue 3
Buffer size
Scheduler Map
Define storage and
dropping of packets
RED
Configuration
Data
Data
© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 204
Queue Priority
Queues receive service according to their assigned
priority; common priorities include the following:
• High
• Medium high Queue 3
Serviced first
(H)
• Medium low 6 4
• Low Queue 2
Scheduler Map
(MH)
2
Data 5 1 3 2 6 4
Queue 1
(ML)
3
Queue 0
(L) Serviced last
5 1
Subscriber CoS
• The MX router can apply hierarchical scheduling or per-unit
scheduling for subscribers
• Subscriber CoS settings are dynamically applied through a
dynamic profile
Hardware requirement
• Dynamic CoS with hierarchical scheduling requires an MPC-Q
card on the MX router or an IQ2E PIC on the M120 or M320
routers
[edit interfaces]
user@mx# show ge-1/0/7
description Team7;
hierarchical-scheduler;
stacked-vlan-tagging;
unit 0 {
demux-source inet;
vlan-tags outer 7 inner 1234;
family inet {
unnumbered-address lo0.0 preferred-source-address 104.104.104.104;
}
}
forwarding-classes {
class data queue-num 0;
class voice queue-num 1;
class video queue-num 2;
}
[edit]
user@mx# show dynamic-profiles schedulers {
Multiplay-profile { mplay-video-sched {
interfaces { transmit-rate 35m rate-limit;
<snip> buffer-size percent 70;
class-of-service { priority medium-low;
traffic-control-profiles { }
multiplay-service { mplay-voice-sched {
scheduler-map multiplay-sched-map; transmit-rate 128k rate-limit;
shaping-rate 50m; buffer-size percent 10;
} priority strict-high;
} }
scheduler-maps { mplay-data-sched {
multiplay-sched-map { transmit-rate remainder;
forwarding-class video scheduler mplay-video-sched; buffer-size remainder;
forwarding-class voice scheduler mplay-voice-sched; priority low;
forwarding-class data scheduler mplay-data-sched; }
} }
} }
}
}
[edit]
user@mx# show firewall [edit]
family inet { user@mx# show interfaces ge-0/1/2
filter mark-video {
term A { description “Mcast feed";
from { unit 0 {
address { family inet {
10.10.10.100; filter {
} input mark-video;
} }
then { address 10.10.10.1/24;
count video-count; }
forwarding-class video; }
accept;
}
}
} For traffic with existing CoS values,
}
use BA classification.
[edit]
user@mx# show schedulers {
dynamic-profiles BE_SCHED {
profile-with-CoS-variables { transmit-rate "$junos-cos-scheduler-tx" rate-limit;
interfaces { buffer-size temporal "$junos-cos-scheduler-bs";
<snip> priority "$junos-cos-scheduler-pri";
class-of-service { }
traffic-control-profiles { P_SCHED {
residential { transmit-rate "$junos-cos-scheduler-tx";
scheduler-map "$junos-cos-scheduler-map"; buffer-size temporal "$junos-cos-scheduler-bs";
shaping-rate "$junos-cos-shaping-rate"; priority "$junos-cos-scheduler-pri";
delay-buffer-rate "$junos-cos-delay- }
buffer-rate"; HP_SCHED {
} transmit-rate "$junos-cos-scheduler-tx";
} buffer-size temporal "$junos-cos-scheduler-bs";
interfaces { priority "$junos-cos-scheduler-pri";
demux0 { }
unit "$junos-interface-unit" { RT_SCHED {
output-traffic-control-profile transmit-rate "$junos-cos-scheduler-tx";
residential; buffer-size temporal "$junos-cos-scheduler-bs";
} priority "$junos-cos-scheduler-pri";
} }
}
scheduler-maps {
res-subscribers {
forwarding-class BE scheduler BE_SCHED;
forwarding-class P scheduler P_SCHED;
forwarding-class HP scheduler HP_SCHED;
forwarding-class RT scheduler RT_SCHED;
}
}
Report:
D=224.10.1.1
Group=224.10.1.1
Host 1
General
1 Query
Router A Router B
Querier Nonquerier
2 Group-Specific Query
Group=224.1.1.1
Router A
(Querier)
Source=172.16.20.1 Source=192.168.30.1
Group=224.1.1.1 Group=224.1.1.1
X
(Pruned)
IGMPv3 group-source report:
Router C
D: 224.0.0.22 (All IGMPv3 routers)
Include 172.16.20.1, 224.1.1.1
Exclude 192.168.30.1, 224.1.1.1
Host 1 member of 224.1.1.1
DHCP on multicast
IGMP forking allows VLAN for IPTV
MX960 Video
BSR to adjust QoS
VSR Core Network
MSAN M-VLAN
RG C-VLANs
BS Core Network
R
RG
MX960 Data
C-VLAN
RG C-VLANs
RG BS
Subscriber B R
MX960
Subtracts bandwidth
amount used for
IPTV Channel 20 multicast flow
M-VLAN VSR
MSAN
Shared Multicast Data
Unicast, IGMP, MLD
Unicast, IGMP, MLD
RG
C-VLANs BS
R
MX960
M-VLAN VSR
MSAN Shared IGMP, MLD, Multicast Data
Unicast
Unicast
RG
C-VLANs BS
R
MX960
Configured Parameters:
IGMP Query Interval: 125.0
IGMP Query Response Interval: 10.0
IGMP Last Member Query Interval: 1.0
IGMP Robustness Count: 2
Derived Parameters:
IGMP Membership Timeout: 260.0
IGMP Other Querier Present Timeout: 255.0