Session Maintenance and Optimization
Overview
You can optimize how Junos OS manages and maintains your sessions through the following options:
-
Session Scaling Profiles
-
Session Scale Monitoring
-
Session Summaries and Viewing
-
Clear Sessions
-
Unused Route Removal
-
Peer Group Routing Instances
Session Scaling Profiles
SAEGW allocates memory based on the session scaling profile selected in the configuration.
If you do not select a session scale, then Junos OS will select the maximum available scale
for your configuration. See Table 1 for the available scaling options on your device. You can configure
session scaling with the mobile-edge session-scale
statement.
Device | Supported Session Scales |
---|---|
MX204 |
|
MX10003 |
|
MX240/480/960/10004/10008 |
|
Session Scale Monitoring
When your session scaling hits 80%, 90%, and 100% of the scale profile's capacity, Junos OS sends telemetry and ERRMSG notifications to you. When you hit 100% capacity, Junos OS rejects new sessions.
View Sessions and Session Summaries
You can view session entries from the internal table with the
transient-sessions
filter. This filter enables you to view all sessions
and session IDs that are in a transient state. If a session stays in a transient state for
several minutes, you can consider it a potentially stuck session.
You can view session summaries in both 5-minute and and hourly increments with the
show services mobile-edge sessions histogram
command.
Clear Sessions
You can clear any subsciber session from Junos OS with the session ID. This allows you to
remove any subscriber sessions that get stuck in any state. You use the clear services mobile-edge sessions
command to clear sessions.
Unused Route Removal
Junos OS deletes exact routes when the last session using that route is deleted. Junos OS
will not advertise the deleted routes, and the deleted routes aren't visible to Junos OS
users via the show route
command.
Peer Group Routing Instances
You must designate a routing instance in Junos OS for each peer group on the same user plane function (UPF). This isolates control traffic between subscriber management functions (SMFs) that terminate on the same UPF.