本页内容
在 MX 系列路由器上配置内联视频监控
配置媒体交付索引标准
要配置媒体投放索引条件,请执行以下作:
- 在编辑模式下,创建用于视频监控的命名模板。
user@host# edit services video-monitoring templates template-name
例如,
user@host# edit services video-monitoring templates t1
- 设置采样持续时间(以秒为单位)。流媒体交付索引统计信息在此间隔结束时更新。
[edit services video-monitoring templates template-name] user@host# set interval-duration interval-duration
例如,
[edit services video-monitoring templates t1] user@host# set interval-duration 1
最佳实践:如果在使用模板时更改间隔持续时间,则会导致在模板的测量间隔内计算出的预期数据包数发生变化。建议不要更改正在使用的模板的间隔持续时间。
- 设置不活动超时。
[edit services video-monitoring templates template-name] user@host# set inactive-timeout inactive-timeout
例如,
[edit services video-monitoring templates t1] user@host# set inactive-timeout 30
- 配置介质速率或第 3 层数据包速率,以建立预期流量,以便与监控的流量进行比较。
- 设置系统日志消息级别的延迟系数阈值。
[edit services video-monitoring templates template-name] user@host# set delay-factor threshold info delay-factor-threshold user@host# set delay-factor threshold warning delay-factor-threshold user@host# set delay-factor threshold critical delay-factor-threshold
例如,
[edit services video-monitoring templates t1] user@host# set delay-factor threshold info 100 user@host# set delay-factor threshold warning 200 user@host# set delay-factor threshold critical 300
- 设置系统日志消息级别的介质丢失率阈值。您可以根据丢失的数据包数或丢失的数据包百分比设置阈值。
[edit services video-monitoring templates template-name] user@host# set media-loss-rate threshold info percentage mlr-percentage user@host# set media-loss-rate threshold warning percentage mlr-percentage user@host# set media-loss-rate threshold critical percentage mlr-percentage
例如,
[edit services video-monitoring templates t1] user@host# set media-loss-rate threshold info percentage 5 user@host# set media-loss-rate threshold warning percentage 10 user@host# set media-loss-rate threshold critical percentage 20
- 设置系统日志消息级别的介质速率变化阈值。阈值基于配置的介质速率和受监控的介质速率与配置的介质速率之间的 差 值之比,以百分比表示。
[edit services video-monitoring templates template-name] user@host# set media-rate-variation threshold info mrv-variation user@host# set media-rate-variation threshold warning mrv-variation user@host# set media-rate-variation threshold critical mrv-variation
例如,
[edit services video-monitoring templates t1] user@host# set media-rate-variation threshold info 10 user@host# set media-rate-variation threshold warning 15 user@host# set media-rate-variation threshold critical 20
配置接口流标准
您可以识别要监控的输入流和输出流。如果未指定任何标识符,则会监控接口上的所有流量。您可以识别 IPv4-over-MPLS 流。您还可以识别 IPv6 流和 IPv6-over MPLS 流。无法监控具有三个以上标签的 MPLS 流。
一个接口最多可以配置 256 个流定义。如果流定义包含地址和端口列表,则可以超过匹配条件的数量。当您超过流量或匹配条件的限制时,您将在提交时收到以下约束消息:
'interfaces xe-0/2/2.0'
Number of flows or Number of match condition under flows exceeded limit
error: configuration check-out failed
要配置接口流监控:
- 在编辑模式下,确定用于监控的接口。
user@host# edit services video-monitoring interfaces interface-name
- 确定要监控的 IPv4 输入流。
- 为输入流指定名称。
[edit services video-monitoring interfaces interface-name family inet] user@host# set input-flows input-flow-name
- 确定流的源 IP 地址或前缀值。您最多可以使用 32 个地址。
[edit services video-monitoring interfaces interface-name family inet] user@host# set input-flows input-flow-name source-address [ address ]
- 确定流的目标 IP 地址或前缀值。您最多可以使用 32 个地址。
[edit services video-monitoring interfaces interface-name family inet] user@host# set input-flows input-flow-name destination-address [ address ]
- 确定流的源端口。您可以使用多个端口号和端口范围。
[edit services video-monitoring interfaces interface-name family inet] user@host# set input-flows input-flow-name source-port [ port ]
- 确定流的目的端口。您可以使用多个端口号和端口范围。
[edit services video-monitoring interfaces interface-name family inet] user@host# set input-flows input-flow-name destination-port [ port ]
- 标识用于监控接口上输入流的模板。
[edit services video-monitoring interfaces interface-name family inet] user@host# set input-flows input-flow-name template template-name
- 为输入流指定名称。
- 确定要监控的 IPv4 输出流。
- 为输出流指定名称。
[edit services video-monitoring interfaces interface-name family inet] user@host# set output-flows output-flow-name
- 确定流的源 IP 地址或前缀值。您最多可以使用 32 个地址。
[edit services video-monitoring interfaces interface-name family inet] user@host# set output-flows output-flow-name source-address [ address ]
- 确定流的目标 IP 地址或前缀值。您最多可以使用 32 个地址。
[edit services video-monitoring interfaces interface-name family inet] user@host# set output-flows output-flow-name destination-address [ address ]
- 确定流的源端口。您可以使用多个端口号和端口范围。
[edit services video-monitoring interfaces interface-name family inet] user@host# set output-flows output-flow-name source-port [ port ]
- 确定流的目的端口。您可以使用多个端口号和端口范围。
[edit services video-monitoring interfaces interface-name family inet] user@host# set output-flows output-flow-name destination-port [ port ]
- 识别用于监控接口上输出流的模板。
[edit services video-monitoring interfaces interface-name family inet] user@host# set output-flows output-flow-name template template-name
- 为输出流指定名称。
- 识别用于监控的 IPv4-over-MPLS 输入流:
- 为输入流指定名称。
[edit services video-monitoring interfaces interface-name family mpls] user@host# set input-flows input-flow-name
- 将有效负载类型标识为 IPv4 over MPLS。
[edit services video-monitoring interfaces interface-name family mpls] user@host# set input-flows input-flow-name payload-type ipv4
- 确定流的目标 IP 地址或前缀值、源 IP 地址或前缀值,或两者兼而有之。您最多可以使用 32 个目标地址和最多 32 个源地址。
确定流的目标 IP 地址或前缀值、源 IP 地址或前缀值,或两者兼而有之。您最多可以使用 32 个目标地址和最多 32 个源地址。
[edit services video-monitoring interfaces interface-name family mpls] user@host# set input-flows input-flow-name destination-address [address] user@host# set input-flows input-flow-name source-address [address]
如果为目标和源配置多个地址,则所有目标或所有源值都必须具有相同的前缀长度。例如,允许以下作,因为所有目标地址的前缀长度都相同。
[edit services video-monitoring interfaces ge-0/2/2.0 family mpls] user@host# set input-flows input-flow-name destination-address [203.0.13.0/24 198.51.100.0/24] user@host# set input-flows input-flow-name source-address [172.16.0.0/12 192.0.2.11/32]
- 确定流的目的端口。您可以使用多个端口号和端口范围。
[edit services video-monitoring interfaces interface-name family mpls] user@host# set input-flows input-flow-name destination-port [ port ]
- 确定流的源端口。您可以使用多个端口号和端口范围。
[edit services video-monitoring interfaces interface-name family mpls] user@host# set input-flows input-flow-name source-port [ port ]
- 标识用于监控接口上输入流的模板。
[edit services video-monitoring interfaces interface-name family mpls] user@host# set input-flows input-flow-name template template-name
- 为输入流指定名称。
- 识别用于监控的 IPv4-over-MPLS 输出流:
- 为输出流指定名称。
[edit services video-monitoring interfaces interface-name family mpls] user@host# set output-flows output-flow-name
- 将有效负载类型标识为 IPv4 over MPLS。
[edit services video-monitoring interfaces interface-name family mpls] user@host# set output-flows output-flow-name payload-type ipv4
- 确定流的目标 IP 地址或前缀值、源 IP 地址或前缀值,或两者兼而有之。您最多可以使用 32 个目标地址和最多 32 个源地址。
确定流的目标 IP 地址或前缀值、源 IP 地址或前缀值,或两者兼而有之。您最多可以使用 32 个目标地址和最多 32 个源地址。
[edit services video-monitoring interfaces interface-name family mpls] user@host# set output-flows output-flow-name destination-address [address] user@host# set output-flows output-flow-name source-address [address]
如果为目标和源配置多个地址,则所有目标或所有源值都必须具有相同的前缀长度。例如,允许以下作,因为所有目标地址的前缀长度都相同。
[edit services video-monitoring interfaces ge-0/2/2.0 family mpls] user@host# set output-flows output-flow-name destination-address [203.0.13.0/24 198.51.100.0/24] user@host# set output-flows output-flow-name source-address [172.16.0.0/12 192.0.2.11/32]
- 确定流的源端口。您可以使用多个端口号和端口范围。
[edit services video-monitoring interfaces interface-name family mpls] user@host# set output-flows output-flow-name source-port [port]
- 确定流的目的端口。您可以使用多个端口号和端口范围。
[edit services video-monitoring interfaces interface-name family mpls] user@host# set output-flows output-flow-name destination-port [ port ]
- 识别用于监控接口上输出流的模板。
[edit services video-monitoring interfaces interface-name family mpls] user@host# set output-flows output-flow-name template template-name
- 为输出流指定名称。
- 确定要进行监控的 IPv6 输入流。
- 为输入流指定名称。
[edit services video-monitoring interfaces interface-name family inet6] user@host# set input-flows input-flow-name
- 确定流的源 IP 地址或前缀值。您最多可以使用 32 个地址。
[edit services video-monitoring interfaces interface-name family inet6] user@host# set input-flows input-flow-name source-address [ address ]
- 确定流的目标 IP 地址或前缀值。您最多可以使用 32 个地址。
[edit services video-monitoring interfaces interface-name family inet6] user@host# set input-flows input-flow-name destination-address [ address ]
- 确定流的源端口。您可以使用多个端口号和端口范围。
[edit services video-monitoring interfaces interface-name family inet6] user@host# set input-flows input-flow-name source-port [ port ]
- 确定流的目的端口。您可以使用多个端口号和端口范围。
[edit services video-monitoring interfaces interface-name family inet6] user@host# set input-flows input-flow-name destination-port [ port ]
- 标识用于监控接口上输入流的模板。
[edit services video-monitoring interfaces interface-name family inet6] user@host# set input-flows input-flow-name template template-name
- 为输入流指定名称。
- 确定要监控的 IPv6 输出流。
- 为输出流指定名称。
[edit services video-monitoring interfaces interface-name family inet6] user@host# set output-flows output-flow-name
- 确定流的源 IP 地址或前缀值。您最多可以使用 32 个地址。
[edit services video-monitoring interfaces interface-name family inet6] user@host# set output-flows output-flow-name source-address [ address ]
- 确定流的目标 IP 地址或前缀值。您最多可以使用 32 个地址。
[edit services video-monitoring interfaces interface-name family inet6] user@host# set output-flows output-flow-name destination-address [ address ]
- 确定流的源端口。您可以使用多个端口号和端口范围。
[edit services video-monitoring interfaces interface-name family inet6] user@host# set output-flows output-flow-name source-port [ port ]
- 确定流的目的端口。您可以使用多个端口号和端口范围。
[edit services video-monitoring interfaces interface-name family inet6] user@host# set output-flows output-flow-name destination-port [ port ]
- 识别用于监控接口上输出流的模板。
[edit services video-monitoring interfaces interface-name family inet6] user@host# set output-flows output-flow-name template template-name
- 为输出流指定名称。
- 确定用于监控的 IPv6-over-MPLS 输入流:
- 为输入流指定名称。
[edit services video-monitoring interfaces interface-name family mpls] user@host# set input-flows input-flow-name
- 将有效负载类型标识为通过 MPLS 的 IPv6。
[edit services video-monitoring interfaces interface-name family mpls] user@host# set input-flows input-flow-name payload-type ipv6
- 确定流的目标 IP 地址或前缀值、源 IP 地址或前缀值,或两者兼而有之。您可以将多个地址(最多 32 个)用于目标或源 IP 地址,但不能同时使用两者。
确定流的目标 IP 地址或前缀值、源 IP 地址或前缀值,或两者兼而有之。您可以将多个地址(最多 32 个)用于目标或源 IP 地址,但不能同时使用两者。
[edit services video-monitoring interfaces interface-name family mpls] user@host# set input-flows input-flow-name destination-address [address] user@host# set input-flows input-flow-name source-address [address]
- 确定流的目的端口。您可以使用多个端口号和端口范围。
[edit services video-monitoring interfaces interface-name family mpls] user@host# set input-flows input-flow-name destination-port [ port ]
- 确定流的源端口。您可以使用多个端口号和端口范围。
[edit services video-monitoring interfaces interface-name family mpls] user@host# set input-flows input-flow-name source-port [ port ]
- 标识用于监控接口上输入流的模板。
[edit services video-monitoring interfaces interface-name family mpls] user@host# set input-flows input-flow-name template template-name
- 为输入流指定名称。
- 识别用于监控的 IPv6-over-MPLS 输出流:
- 为输出流指定名称。
[edit services video-monitoring interfaces interface-name family mpls] user@host# set output-flows output-flow-name
- 将有效负载类型标识为通过 MPLS 的 IPv6。
[edit services video-monitoring interfaces interface-name family mpls] user@host# set output-flows output-flow-name payload-type ipv6
- 确定流的目标 IP 地址或前缀值、源 IP 地址或前缀值,或两者兼而有之。您可以将多个地址(最多 32 个)用于目标或源 IP 地址,但不能同时使用两者。
确定流的目标 IP 地址或前缀值、源 IP 地址或前缀值,或两者兼而有之。您可以将多个地址(最多 32 个)用于目标或源 IP 地址,但不能同时使用两者。
[edit services video-monitoring interfaces interface-name family mpls] user@host# set output-flows output-flow-name destination-address [address] user@host# set output-flows output-flow-name source-address [address]
- 确定流的源端口。您可以使用多个端口号和端口范围。
[edit services video-monitoring interfaces interface-name family mpls] user@host# set output-flows output-flow-name source-port [port]
- 确定流的目的端口。您可以使用多个端口号和端口范围。
[edit services video-monitoring interfaces interface-name family mpls] user@host# set output-flows output-flow-name destination-port [ port ]
- 识别用于监控接口上输出流的模板。
[edit services video-monitoring interfaces interface-name family mpls] user@host# set output-flows output-flow-name template template-name
- 为输出流指定名称。
配置可测量的流量数量
您可以配置 MPC 在给定时间内每个数据包转发引擎可测量的流量数。此值将在下次重新启动 MPC 时生效。如果未配置此值,则了解 MX 系列路由器上的内联视频监控中给出了 MPC 的默认最大值。
要配置 MPC 在给定时间内每个数据包转发引擎可测量的流量数:
[edit chassis fpc slot inline-video-monitoring] user@host# set flow-table-size size