Flow monitoring version 9, which is based upon RFC 3954, provides a way to organize flow data into templates. Version 9 also provides a way to actively monitor MPLS traffic in addition to IPv4 and IPv6 traffic. Version 9 is not supported on the AS-I PIC.
To activate templates in flow monitoring, you must configure a template and include that template in the version 9 flow monitoring configuration. Version 9 does not work in conjunction with versions 5 and 8.
To configure a version 9 template, include the template template-name statement at the [edit services flow-monitoring version9] hierarchy level. The JUNOS software supports three different templates: ipv4-template, ipv6–template, mpls-template, and mpls-ipv4-template. To view the fields selected in each of these templates, see Version 9 Formats and Fields.
- [edit]
- services flow-monitoring {
-
-
version9 {
# Specifies flow monitoring version 9.
-
-
template mpls { # Specifies template you are configuring.
-
template-refresh-rate {
packets 6000; # The default is 4800 packets and the range is 1–480000
# packets.
-
-
seconds 90; # The default is 60 seconds and the range is 1–600 seconds.
option--refresh-rate {
-
packets 3000; # The default is 4800 packets and the range is 1–480000
# packets.
-
seconds 30; # The default is 60 seconds and the range is 1–600.
-
flow-active-timeout 60; # The default is 60 seconds and the range is
#
10–600.
-
flow-inactive-timeout
30; # The default is 60 seconds and the range 10–600.
-
template-refresh-rate
seconds 10; # The default is 60 seconds and the
# range is 10–600
-
option-refresh-rate seconds
10; # The default is 60 seconds and the range
# is 10–600 seconds.
-
-
mpls-template {
-
label-positions [1 | 2 | 3]; # Specifies label position for the MPLS template.
- }
- }
- }
- }
- }
You can export to multiple templates at a time to a maximum of eight flow servers for AS PICs and one flow server for all other PICs. To assign a template to a flow output, include the template template-name statement at the [edit forwarding options sampling output flow-server version9] hierarchy level:
- [edit]
- forwarding-options {
-
- sampling {
-
- input {
-
- family mpls {
- rate 1;
- run-length 1;
- }
- }
-
- output {
-
- flow-server 10.60.2.1 { # The IP address and port of the
flow server.
- port 2055;
- source-address 3.3.3.1;
-
-
version9 { # Records are sent
to the flow server using version 9 format.
-
-
template { # Indicates a template
will organize records.
-
mpls; # Records are sent to
the MPLS template.
- }
- }
- }
- }
- }
- }