For feedback and comments: |
documentation.feedback@alcatel-lucent.com |
The SR OS implementation of cflowd supports the option to analyze traffic flow. The implementation also supports the use of traffic/access list (ACL) filters to limit the type of traffic that is analyzed.The SR OS implementation allows you to enable cflowd either at the interface level or as an action to a filter. By enabling cflowd at the interface level, all IP packets forwarded by the interface are subject to cflowd analysis. By setting cflowd as an action in a filter, only packets matching the specified filter are subject to cflowd analysis. This provides the network operator greater flexibility in the types of flows that are captured.A:ALA-1>config>cflowd# info detail----------------------------------------------active-timeout 30cache-size 65536inactive-timeout 15overflow 1rate 1000collector 10.10.10.103:2055 version 9no aggregationautonomous-system-type origindescription "V9 collector"no shutdownexittemplate-retransmit 330exitno shutdown----------------------------------------------A:ALA-1>config>cflowd#CLI Syntax: config>cflowd#active-timeout minutescache-size num-entriesinactive-timeout secondstemplate-retransmit secondsoverflow percentrate sample-ratedescription description-stringno shutdownno shutdownCLI Syntax: config# cflowdA:ALA-1>config# info detail...#------------------------------------------echo "Cflowd Configuration"#------------------------------------------cflowdactive-timeout 30cache-size 65536inactive-timeout 15overflow 1rate 1000template-retransmit 600no shutdownexit#------------------------------------------A:ALA-1>config#CLI Syntax: config>cflowd#active-timeout minutescache-size num-entriesinactive-timeout secondsoverflow percentrate sample-ratetemplate-retransmit secondsno shutdownA:ALA-1>config>cflowd# info
#------------------------------------------active-timeout 20
inactive-timeout 10
overflow 10
rate 100
#------------------------------------------A:ALA-1>config>cflowd#CLI Syntax: config>cflowd#description description-stringno shutdownA:ALA-1>config>cflowd# info-----------------------------------------active-timeout 20inactive-timeout 10overflow 10rate 100collector 10.10.10.1:2000 version 8
aggregation
as-matrix
raw
exitdescription "AS info collector"
exitcollector 10.10.10.2:5000 version 8
aggregation
protocol-port
source-destination-prefix
exitautonomous-system-type peer
description "Neighbor collector"
exit-----------------------------------------A:ALA-1>config>cflowd#collector 10.10.10.9:2000 version 9description "v9collector"template-set mpls-ipno shutdownexitIf the collector is configured to use either version 9 or 10 (IPFIX) formats, the flow data is sent to the designated collector using one of the pre-defined templates. The template used is based on the type of flow for which the data was collected (IPv4, IPv6, MPLS or Ethernet (Layer 2)), and the configuration of the template-set parameter. Table 11 indicates the relationship between these values and the corresponding template used to export the flow data.
Table 11: Template-Set
Table 12: Basic IPv4 Template Flow Start Milliseconds1
Table 13: MPLS-IPv4 Template Flow Start Milliseconds1
Table 14: Basic IPv6 Template Flow Start Milliseconds1
Table 15: MPLS-IPv6 Template Flow Start Milliseconds1
Table 16: Basic MPLS Template Flow Start Milliseconds1
Table 17: MPLS-IP Template Flow Start Milliseconds1
Table 18: Ethernet (L2-IP) Flow Template1
Refer to Table 19, Cflowd Configuration Dependencies for configuration combinations.When the cflowd interface option is configured in the config>router>interface context, the following requirements must be met to enable traffic sampling on the specific interface:
3. The interface>cflowd interface option must be selected. For configuration information, refer to the Filter Policy Overview section of the 7750 SR Router Configuration Guide.
4. To omit certain types of traffic from being sampled when the interface sampling is enabled, the config>filter>ip-filter>entry>interface-disable-sample option may be enabled via an ip-filter or ipv6-filter. The filter must be applied to the service or network interface on which the traffic to be omitted is to ingress the system.CLI Syntax: config>router>if#Depending on the option selected, either acl or interface, cflowd extracts traffic flow samples from an IP filter or an interface for analysis. All packets forwarded by the interface are analyzed according to the cflowd configuration.The acl option must be selected in order to enable traffic sampling on an IP filter. Cflowd (filter-sample) must be enabled in at least one IP filter entry.The interface option must be selected in order to enable traffic sampling on an interface. If cflowd is not enabled (no cflowd) then traffic sampling will not occur on the interface.Since a filter can be applied to more than one interface (when configured with a scope template), the interface-disable-sample option is intended to enable or disable traffic sampling on an interface-by-interface basis. The command can be enabled or disabled as needed instead creating numerous filter versions.
3. On the IP interface being used, the interface>cflowd acl option must be selected. (See Interfcace Configuration) For configuration information, refer to the IP Router Confguration Overview section of the 7750 SR Router Configuration Guide.
4. On the IP filter being used, the entry>filter-sample option must be explicitly enabled for the entries matching the traffic that should be sampled. The default is no filter-sample. (See Filter Configuration for more information).CLI Syntax: config>filter>ip-filter>entry#When a filter policy is applied to a service or a network interface, sampling can be configured so that traffic matching the associated IP filter entry is sampled when the IP interface is set to cflowd ACL mode and the filter-sample command is enabled. If cflowd is either not enabled (no filter-sample) or set to the cflowd interface mode, then sampling does not occur.When the interface-disable-sample command is enabled, then traffic matching the associated IP filter entry is not sampled if the IP interface is set to cflowd ACL mode.Depending on the combination of interface and filter entry configurations determine if and when flow sampling occurs. Table 19 displays the expected results when specific features are enabled and disabled.
Table 19: Cflowd Configuration Dependencies CLI Syntax: config>cflowd#active-timeout minutescache-size num-entriesinactive-timeout secondsoverflow percentrate sample-rate[no] shutdowntemplate-retransmit secondsExample: config>cflowd# active-timeout 60A:ALA-1>config>cflowd# info
#------------------------------------------active-timeout 60
overflow 2
rate 10
#------------------------------------------A:ALA-1>config>cflowd#CLI Syntax: config>cflowd#[no] description description-stringA:ALA-1>config>cflowd# info-----------------------------------------active-timeout 60overflow 2rate 10collector 10.10.10.1:2000 version 5description "AS info collector"exitcollector 10.10.10.2:5000 version 8aggregationsource-prefix
raw
exitdescription "Test collector"
exit-----------------------------------------A:ALA-1>config>cflowd#