The CSS uses and automatic garbage-collector for removing inactive flows. This is not customizable
sofar. To avoid the garbage collection to be performed for specific TCP ports you should then use this
command:
(config) flow permanent
To define a set of TCP ports that will have permanent connections and not be reclaimed by the CSS
when they are inactive, use the flow permanent command. You can define up to four ports. Use the no
form of this command to disable a
permanent connection by setting its port number to 0.
flow permanent [port1|port2|port3|port4] port_number
no flow permanent [port1|port2|port3|port4]
Syntax Description
port_number is the number of the port. Enter an integer from 0 to 65535. The default is 0 which
disables the port.
On the CSS the user can configure up to 10 permanent ports which will never be garbage collected.
The problem of course is that the CSS can then run out of FCBs (Flow Control Blocks) if flows are
not properly terminated. I recommend running a cmd-sched script with the perm ports so that
periodically then can be removed and the older flows cleaned up. This script should consist of 2
scheduled commands, one for removing the flow permanent on the ports that you configured and another one one tha re-enables it after 10 minutes (to allow the CSS to delete all flows).