テンプレートを使用した廃棄アカウンティングのためのM、MX、およびT シリーズルーターの設定
RFC 3954に基づくフロー監視バージョン9は、フローデータをテンプレートに編成する方法を提供します。バージョン9では、IPv4、IPv6、MPLS、ピアAS課金トラフィックをアクティブに監視する方法も提供されています。バージョン 9 は AS-I PIC ではサポートされていません。
フローモニタリングでテンプレートをアクティブ化するには、テンプレートを設定し、そのテンプレートをバージョン 9 フローモニタリング設定に含める必要があります。バージョン 9 は、バージョン 5 および 8 と連携して動作しません。
バージョン 9 のテンプレートを設定するには、[edit services flow-monitoring version9] 階層レベルで template template-name
ステートメントを含めます。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 台のフロー サーバーにエクスポートできます。フロー出力にテンプレートを割り当てるには、 階層レベルで ステートメントを含め template template-name
ます [edit forwarding options sampling output flow-server version9]
。
[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. } } } } } }