예: MX, M, T 및 PTX 시리즈 라우터에서 실시간 성능 모니터링 구성
프로브 이름과 probe1 테스트 이름으로 test1식별되는 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- 프로브 패킷을 논리 터널 입력 인터페이스로 보냅니다. 패킷을 논리 터널 인터페이스로 전송하여, 프로브 패킷에 대한 일반 및 멀티필드 분류자, 방화벽 필터 및 헤더 재작성을 구성할 수 있습니다. 기존 터널 프레임워크 dlci 를 사용하기 위해서는 및 encapsulation 문을 구성해야 합니다.
[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;
}
}
}
}
}