テンプレートを使用したディスカードアカウンティングのためのM、MX、T Seriesルーターの設定
RFC 3954 に基づくフロー監視バージョン 9 は、フローデータをテンプレートに整理する方法を提供します。バージョン9では、IPv4、IPv6、MPLS、およびピアAS課金トラフィックをアクティブに監視する方法も提供されています。バージョン9はAS-I PICではサポートされていません。
フロー監視でテンプレートを有効にするには、テンプレートを設定し、そのテンプレートをバージョン 9 のフロー監視設定に含める必要があります。バージョン 9 は、バージョン 5 および 8 と連携して動作しません。
バージョン 9 テンプレートを設定するには、階層レベルに ステートメントを template template-name [edit services flow-monitoring version9] 含めます。Junos OSは、 ipv4-template、 ipv6-template、 mpls-template、 mpls-ipv4-template、 peer-as-billing-templateの5種類のテンプレートをサポートしています。これらの各テンプレートで選択されているフィールドを表示するには、 フロー監視バージョン 9 形式の出力フィールドを参照してください。
[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 600 seconds and the # range is 10–600
mpls-template {
label-positions [1 | 2 | 3]; # Specifies label position for the MPLS template.
}
}
}
一度に複数のテンプレートに、AS PIC用に最大8台のフローサーバー、他のすべてのPIC用に1台のフローサーバーにエクスポートできます。フロー出力にテンプレートを割り当てるには、[edit forwarding options sampling output flow-server version9] 階層レベルで template template-name ステートメントを含めます。
[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 192.0.2.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.
}
}
}
}
}
}