207
Configuring NetStream flow aging
Flow aging approaches
The following types of NetStream flow aging are available:
• Periodical aging
• Forced aging
• TCP FIN- and RST-triggered aging (it is a
utomatically triggered when a TCP connection is terminated)
Periodical aging
Periodical aging uses the following approaches: inactive flow aging and active flow aging.
• Inactive flow aging
A flow is considered inactive if its statistics have not been changed, that is, no packet for this NetStream
entry arrives in the time specified by the ip netstream timeout inactive command. The inactive flow entry
remains in the cache until the inactive timer expires. Then the inactive flow is aged out and its statistics,
which can no longer be displayed by the display ip netstream cache command, are sent to the
NetStream server. The inactive flow aging makes sure the cache is big enough for new flow entries.
• Active flow aging
An active flow is aged out when the time specified by the ip netstream timeout active command is
reached, and its statistics are exported to the NetStream server. Because the flow is active, its entry still
remains in the cache, which can be displayed by the display ip netstream cache command. The active
flow aging is designed to export the statistics of active flows to the NetStream server.
Forced aging
The reset ip netstream statistics command ages out all NetStream entries in the cache and clears the
statistics.
TCP FIN- and RST-triggered aging
For a TCP connection, when a packet with a FIN or RST flag is sent out, it means that a session is finished.
When a packet with a FIN or RST flag is recorded for a flow with the NetStream entry already created,
the flow is aged out immediately. This type of aging is enabled by default, and cannot be disabled.
Configuring NetStream flow aging
To do… Use the command… Remarks
1. Enter system view.
system-view —
Set the aging timer for
active flows.
ip netstream timeout active
minutes
Optional.
5 minutes by default.
2. Configure periodical
aging:
Set the aging timer for
inactive flows.
ip netstream timeout
inactive seconds
Optional.
30 seconds by
default.