[Contents]
[Prev]
[Next]
[Index]
[Report an Error]
Controlling
Session Termination
JUNOS software terminates sessions normally in
certain situations—for example, after receiving a TCP FINish
Close or receiving a RST (reset) message, when encountering Internet
Control Message Protocol (ICMP) errors for UDP, and when no matching
traffic is received before the service timeout. When sessions are
terminated, their resources are freed up for use for other sessions.
To control when sessions are terminated, you configure
the router to age out sessions after a certain period of time, when
the number of sessions in the session table reaches a specified percentage,
or both.
- To terminate sessions based on a timeout value or the
number of sessions in the session table:
- You can use the following set security
flow command to specify the number of seconds in tens of seconds
after which a session is invalidated. The following command ages out
sessions after 20 seconds:
- set security flow aging early-ageout 2
- You can use the following set security
flow command to specify a percentage of sessions. When the number
of sessions in the session table reaches this percentage, the router
begins to age sessions aggressively. When the number of sessions in
the session table reaches the low-water mark, the router stops aggressively
aging sessions.
- set security flow aging high-watermark 90 low-watermark
50
- To configure an explicit timeout value, use
the following command. This set security flow command removes
a TCP session from the session table after 280 seconds.
- set security flow tcp-session tcp-initial-timeout 280
- To cause any session that receives a TCP RST message to
be invalidated, use the following command:
- set security flow tcp-session rst-invalidate-session
[Contents]
[Prev]
[Next]
[Index]
[Report an Error]