For feedback, use the following: |
ipd_online_feedback@alcatel-lucent.com |
The 7750 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 7750 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 shutdownexit
Table 12: Template-Set 0 IPv4 Src Addr (8)0 IPv4 Dest Addr (12)0 IPv4 Nexthop (15)0 BGP Nexthop (18)0 Iingress Interface (10)0 Egress Interface (14)0 Packet Count (2)0 Byte Count (1)0 Start Time (22)0 End Time (21)0 Flow Start Milliseconds (152)0 Flow End Milliseconds (153)0 Src Port (7)0 Dest Port (11)0 TCP control Bits (Flags) (6)0 IPv4 Protocol (4)0 IPv4 TOS (5)0 IP version (60)0 ICMP Type & Code (32)0 BGP Source ASN (16)0 BGP Dest ASN (17)0 Source IPv4 Prefix Length (9)0 Dest IPv4 Prefix Length (13)0 IPv4 Src Addr (8)0 IPv4 Dest Addr (12)0 IPv4 Nexthop (15)0 BGP Nexthop (18)0 Ingress Interface (10)0 Egress Interface (14)0 Packet Count (2)0 Byte Count (1)0 Start Time (22)0 End Time (21)0 Flow Start Milliseconds (152)0 Flow End Milliseconds (153)0 Src Port (7)0 Dest Port (11)0 TCP control Bits (Flags) (6)0 IPv4 Protocol (4)0 IPv4 TOS (5)0 IP version (60)0 ICMP Type & Code (32)0 BGP Source ASN (16)0 BGP Dest ASN (17)0 Source IPv4 Prefix Length (9)0 Dest IPv4 Prefix Length (13)0 MPLS Label 1 (70)0 MPLS Label 2 (71)0 MPLS Label 3 (72)0 MPLS Label 4 (73)0 MPLS Label 5 (74)0 MPLS Label 6 (75)0 IPv6 Src Addr (27)0 IPv6 Dest Addr (28)0 IPv6 Nexthop (62)0 IPv6 BGP Nexthop (63)0 IPv4 Nexthop (15)0 IPv4 BGP Nexthop (18)0 Iingress Interface (10)0 Egress Interface (14)0 Packet Count (2)0 Byte Count (1)0 Start Time (22)0 End Time (21)0 Flow Start Milliseconds (152)0 Flow End Milliseconds (153)0 Src Port (7)0 Dest Port (11)0 TCP control Bits (Flags) (6)0 Protocol (4)0 IPv6 Options Hdr (64)0 IPv6 Next Header (193)0 IPv6 Flow Label (31)0 TOS (5)0 IP version (60)0 IPv6 ICMP Type & Code (139)0 BGP Source ASN (16)0 BGP Dest ASN (17)0 IPv6 Src Mask (29)0 IPv6 Dest Mask (30)0 IPv6 Src Addr (27)0 IPv6 Dest Addr (28)0 IPv6 Nexthop (62)0 IPv6 BGP Nexthop (63)0 IPv4 Nexthop (15)0 IPv4 BGP Nexthop (18)0 Ingress Interface (10)0 Egress Interface (14)0 Packet Count (2)0 Byte Count (1)0 Start Time (22)0 End Time (21)0 Flow Start Milliseconds (152)0 Flow End Milliseconds (153)0 Src Port (7)0 Dest Port (11)0 TCP control Bits (Flags) (6)0 Protocol (4)0 IPv6 Option Hdr (64)0 IPv6 Next Header (193)0 IPv6 Flow Label (31)0 TOS (5)0 IP version (60)0 IPv6 ICMP Type & Code (139)0 BGP Source ASN (16)0 BGP Dest ASN (17)0 IPv6 Src Mask (29)0 IPv6 Dest Mask (30)0 MPLS Label 1 (70)0 MPLS Label 2 (71)0 MPLS Label 3 (72)0 MPLS Label 4 (73)0 MPLS Label 5 (74)0 MPLS Label 6 (75)0 Start Time (22)0 End Time (21)0 Flow Start Milliseconds (152)0 Flow End Milliseconds (153)0 Ingress Interface (10)0 Egress Interface (14)0 Packet Count (2)0 Byte Count (1)0 MPLS Label 1 (70)0 MPLS Label 2 (71)0 MPLS Label 3 (72)0 MPLS Label 4 (73)0 MPLS Label 5 (74)0 MPLS Label 6 (75)0 IPv4 Src Addr (8)0 IPv4 Dest Addr (12)0 IPv4 Nexthop (15)0 IPv6 Src Addr (27)0 IPv6 Dest Addr (28)0 IPv6 Nexthop (62)0 Ingress Interface (10)0 Egress Interface (14)0 Packet Count (2)0 Byte Count (1)0 Start Time (22)0 End Time (21)0 Flow Start Milliseconds (152)0 Flow End Milliseconds (153)0 Src Port (7)0 Dest Port (11)0 TCP control Bits (Flags) (6)0 IPv4 Protocol (4)0 IPv4 TOS (5)0 IP version (60)0 ICMP Type & Code (32)0 MPLS Label 1 (70)0 MPLS Label 2 (71)0 MPLS Label 3 (72)0 MPLS Label 4 (73)0 MPLS Label 5 (74)0 MPLS Label 6 (75)Refer to Table 13, 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 OS 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 OS 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 13 displays the expected results when specific features are enabled and disabled.
Table 13: 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#