例:MX、M、T、およびPTXシリーズルーターでのリアルタイムパフォーマンス監視の設定
プローブ名とテストtest1
名probe1
で識別されるRPMインスタンスを設定します。
[edit services rpm] probe probe1{ test test1 { dscp-code-points 001111; probe-interval 1; probe-type icmp-ping; target address 172.17.20.182; test-interval 20; thresholds rtt 10; traps rtt-exceeded; } } probe-server { tcp { destination-interface lt-0/0/0.0 port 50000; } udp { destination-interface lt-0/0/0.0 port 50001; } } probe-limit 200;
インターフェイスを使用してlt-
、プローブパケットを論理トンネル入力インターフェイスに送信して、パケット分類を設定します。パケットを論理トンネルインターフェイスに送信することで、プローブパケットに対して、通常のマルチフィールドの分類子、ファイアウォールフィルター、ヘッダーの書き換えを設定できます。既存のトンネル フレームワークを使用するには、 および encapsulation
ステートメントをdlci
設定する必要があります。
[edit services rpm] probe p1 { test t1 { probe-type icmp-ping; target address 10.8.4.1; probe-count 10; probe-interval 10; test-interval 10; source-address 10.8.4.2; dscp-code-points ef; data-size 100; destination-interface lt-0/0/0.0; } } [edit interfaces] lt-0/0/0 { unit 0 { encapsulation frame-relay; dlci 10; peer-unit 1; family inet; } unit 1 { encapsulation frame-relay; dlci 10; peer-unit 0; family inet; } } [edit class-of-service] interfaces { lt-0/0/0 { unit 1 { classifiers { dscp default; } } } }
RPM プローブを受信するインターフェイスで入力フィルターを設定します。このフィルターは、同じインターフェイスで受信した通常のデータパケットから分離して、受信したRPMパケットの優先度を設定できます。
[edit firewall] filter recos { term recos { from { source-address { 10.8.4.1/32; } destination-address { 10.8.4.2/32; } } then { loss-priority high; forwarding-class network-control; } } } [edit interfaces] fe-5/0/0 { unit 0 { family inet { filter { input recos; } address 10.8.4.2/24; } } }
RPMインスタンスを設定し、適応サービスインターフェイス上の拡張プロバイダーパッケージのRPMを有効にします。
[edit services rpm] probe probe1{ test test1 { data-size 1024; data-fill 0; destination-interface ms-1/2/0.10; dscp-code-points 001111; probe-count 10; probe-interval 1; probe-type icmp-ping; target address 172.17.20.182; test-interval 20; thresholds rtt 10; traps rtt-exceeded; } } [edit interfaces] ms-1/2/0 { unit 0 { family inet; } unit 10 { rpm client; family inet { address 192.0.2.1/32; } } [edit chassis] fpc 1 { pic 2 { adaptive-services { service-package { extension-provider { control-cores 1; data-cores 1; object-cache-size 512; policy-db-size 64; package jservices-rpm; syslog { daemon any; } } } } } }
TWAMP を有効にするために必要な最小ステートメントを設定します。
[edit services] rpm { twamp { server { authentication-mode none; port 10000; # Twamp server's listening port client-list LIST-1 { # LIST-1 is the name of the client-list. Multiple lists can be configured. address { 198.51.100.2/30; # IP address of the control client. } } } } [edit interfaces sp-5/0/0] unit 0 { family inet; } unit 10 { rpm { twamp-server; # You must configure a separate logical interface on the service PIC interface for the TWAMP server. } family inet { address 203.0.113.50/32; # This address must be a host address with a 32-bit mask. } } [edit chassis] fpc 5 { pic 0 { adaptive-services { service-package layer-2; # Configure the service PIC to run in Layer 2 mode. } } }
追加の TWAMP 設定を構成します。
[edit services] rpm { twamp { server { maximum-sessions 5; maximum-sessions-per-connection 2; maximum-connections 3; maximum-connections-per-client 1; port 10000; server-inactivity-timeout ; client-list LIST-1 { address { 198.51.100.2/30; } } } } }