配置实时性能监控探测器
对于使用路由故障转移进行的 IP 监视和具有接口故障转移的 IP 监视,用于测试目标设备的探测器是实时性能监视 (RPM) 探测器,它们不仅可以测试 IP 地址的可访问性,还可以对抖动和延迟等参数执行服务级别监视。
通过实时性能监控,您可以执行服务级别监控。在设备上配置 RPM 时,设备会根据数据包响应时间、抖动和数据包丢失来计算网络性能。这些值由 HTTP GET 请求、互联网控制消息协议 (ICMP) 请求、TCP 请求和 UDP 请求收集,具体取决于配置。
您可以通过向指定的探测目标(由 IP 地址或 URL 标识)发送探测来收集 RPM 统计信息。当目标接收到探测时,它会生成响应,SRX 系列设备将接收这些响应。通过分析往返远程服务器的传输时间,设备可以确定网络性能。
SRX 系列网关发出以下探测类型:
对目标 URL 的 HTTP GET 请求
来自目标 URL 的元数据的 HTTP GET 请求
对目标 IP 地址的 ICMP 回显请求(默认)
对目标地址的 ICMP 时间戳请求
向目标设备 UDP ping 数据包发送
对目标 IP 地址的 UDP 时间戳请求
向目标设备发送 TCP ping 数据包
除非另有配置,否则默认探测是 ICMP 回显请求。
在测试过程中监视每个探测目标。测试表示探测器的集合,按照配置中的定义定期发送。然后返回每个测试的统计信息。由于测试是在一段时间内监视的探针的集合,因此可以计算标准偏差和抖动等测试统计信息,并将其包含在平均探针统计信息中。
在测试中,RPM 探头会定期发送,并在几秒钟内完成配置。发送探测器总数并收到相应响应后,测试完成。您可以手动设置每个测试的探测间隔,以控制 RPM 测试的执行方式。
发送特定测试的所有探测后,测试将再次开始。测试之间的时间是测试间隔。您可以手动设置测试间隔来调整 RPM 性能。
若要监视多个 IP 地址,可以为每个探测器定义多个测试,并且仅当所有测试都失败时,探测器才会失败。系统可以对所有测试结果执行 逻辑 AND 操作,以确定探测的结果。
图 1 显示了以下配置示例中使用的拓扑。
以下是监控三个 IP 地址的 RPM 探测配置示例:
set services rpm probe Probe-Payment-Server test paysvr target address 5.1.1.3 set services rpm probe Probe-Payment-Server test paysvr probe-count 5 set services rpm probe Probe-Payment-Server test paysvr probe-interval 5 set services rpm probe Probe-Payment-Server test paysvr test-interval 3 set services rpm probe Probe-Payment-Server test paysvr thresholds successive-loss 5 set services rpm probe Probe-Payment-Server test paysvr1 target address 5.1.1.2 set services rpm probe Probe-Payment-Server test paysvr1 probe-count 5 set services rpm probe Probe-Payment-Server test paysvr1 probe-interval 5 set services rpm probe Probe-Payment-Server test paysvr1 test-interval 3 set services rpm probe Probe-Payment-Server test paysvr1 thresholds successive-loss 5 set services rpm probe Probe-Payment-Server test paysvr2 target address 5.1.1.5 set services rpm probe Probe-Payment-Server test paysvr2 probe-count 5 set services rpm probe Probe-Payment-Server test paysvr2 probe-interval 5 set services rpm probe Probe-Payment-Server test paysvr2 test-interval 3 set services rpm probe Probe-Payment-Server test paysvr2 thresholds successive-loss 5
提交 RPM 探测配置后,可使用以下命令显示探测结果:
root# run show services rpm probe-results Owner: Probe-Payment-Server, Test: paysvr Target address: 5.1.1.3, Probe type: icmp-ping Destination interface name: fe-0/0/1.0 Test size: 5 probes Probe results: Request timed out, Tue Sep 20 02:22:28 2011 Results over current test: Probes sent: 1, Probes received: 0, Loss percentage: 100 Results over last test: Probes sent: 5, Probes received: 0, Loss percentage: 100 Results over all tests: Probes sent: 56, Probes received: 0, Loss percentage: 100 Owner: Probe-Payment-Server, Test: paysvr1 Target address: 5.1.1.2, Probe type: icmp-ping Destination interface name: fe-0/0/1.0 Test size: 5 probes Probe results: Response received, Tue Sep 20 02:22:27 2011, No hardware timestamps Rtt: 1742 usec Results over current test: Probes sent: 2, Probes received: 2, Loss percentage: 0 Measurement: Round trip time Samples: 2, Minimum: 1582 usec, Maximum: 1742 usec, Average: 1662 usec, Peak to peak: 160 usec, Stddev: 80 usec, Sum: 3324 usec Results over last test: Probes sent: 5, Probes received: 5, Loss percentage: 0 Test completed on Tue Sep 20 02:22:19 2011 Measurement: Round trip time Samples: 2, Minimum: 1582 usec, Maximum: 1742 usec, Average: 1662 usec, Peak to peak: 160 usec, Stddev: 80 usec, Sum: 3324 usec Results over last test: Probes sent: 5, Probes received: 5, Loss percentage: 0 Test completed on Tue Sep 20 02:22:19 2011 Measurement: Round trip time Samples: 5, Minimum: 1454 usec, Maximum: 1701 usec, Average: 1587 usec, Peak to peak: 247 usec, Stddev: 92 usec, Sum: 7935 usec Results over all tests: Probes sent: 67, Probes received: 67, Loss percentage: 0 Measurement: Round trip time Samples: 67, Minimum: 1427 usec, Maximum: 712721 usec, Average: 13074 usec, Peak to peak: 711294 usec, Stddev: 86142 usec, Sum: 875977 usec Owner: Probe-Payment-Server, Test: paysvr2 Target address: 5.1.1.5, Probe type: icmp-ping Destination interface name: fe-0/0/1.0 Test size: 5 probes Probe results: Request timed out, Tue Sep 20 02:22:28 2011 Results over current test: Probes sent: 1, Probes received: 0, Loss percentage: 100 Results over last test: Probes sent: 5, Probes received: 0, Loss percentage: 100 Results over all tests: Probes sent: 56, Probes received: 0, Loss percentage: 100
使用 RPM 探测,您可以检测受监控 IP 地址的可访问性,还可以测量网络参数并在往返时间 (RTT) 或抖动大于配置值时采取措施。以下命令显示可以测量的参数:
root# set services rpm probe probetoremote test paysrvr thresholds ? Possible completions: <[Enter]> Execute this command + apply-groups Groups from which to inherit configuration data + apply-groups-except Don't inherit configuration data from these groups egress-time Maximum source to destination time per probe ingress-time Maximum destination to source time per probe jitter-egress Maximum source to destination jitter per test jitter-ingress Maximum destination to source jitter per test jitter-rtt Maximum jitter per test (0..60000000 microseconds) rtt Maximum round trip time per probe (microseconds) std-dev-egress Maximum source to destination standard deviation per test std-dev-ingress Maximum destination to source standard deviation per test std-dev-rtt Maximum standard deviation per test (microseconds) successive-loss Successive probe loss count indicating probe failure total-loss Total probe loss count indicating test failure (0..15) | Pipe through a command