启用传输 SPRING 统计数据的导出
了解如何启用传输 SPRING 统计数据的导出
网络中的源数据包路由 (SPRING) 也称为分段路由,是一种控制平面架构,使入口路由器能够通过网络中一组特定的节点和链路引导数据包。从 Junos OS 19.1R1 版开始,Junos 遥测接口 (JTI) 支持导出PTX3000路由器和带有 FPC2 的PTX5000路由器的传输 SPRING 统计信息。使用这些统计信息来监控流量、建模工程和规划容量。
关于过境弹簧统计
导出的统计信息适用于 SPRING 流量,不包括 RSVP 和 LDP 信号流量。每个接口的家族 MPLS 统计信息单独核算。分段路由统计信息还包括每个链路聚合组 (LAG) 成员和每个分段标识符 (SID) 的 SPRING 流量统计信息。
使用有效的 SPRING 配置
如果没有适当的 SPRING 配置,则不会收集统计信息。在启用 SPRING 统计信息之前,请在要从中导出统计信息的设备上验证您的 SPRING 配置。下面是 Junos OS SPRING 配置示例。
入口设备
user@host# set groups isis protocols isis traffic-engineering family inet shortcuts user@host# set groups isis protocols isis source-packet-routing sensor-based-stats per-sid ingress user@host# set groups isis protocols isis source-packet-routing srgb start-label 400 user@host# set groups isis protocols isis source-packet-routing srgb index-range 20000 user@host# set groups isis protocols isis source-packet-routing node-segment ipv4-index 1 user@host# set groups isis protocols mpls traffic-engineering bgp-igp-both-ribs user@host# set groups isis protocols isis traffic-engineering family inet shortcuts user@host# set groups isis protocols isis traffic-engineering family inet-mpls shortcuts
中转装置
user@host# set groups isis protocols isis traffic-engineering family inet shortcuts user@host# set groups isis protocols isis source-packet-routing sensor-based-stats per-sid ingress user@host# set groups isis protocols isis source-packet-routing srgb start-label 400 user@host# set groups isis protocols isis source-packet-routing srgb index-range 20000 user@host# set groups isis protocols isis source-packet-routing node-segment ipv4-index 2 user@host# set groups isis system services extension-service request-response grpc clear-text port 32767 user@host# set groups isis system services extension-service request-response grpc max-connections 8 user@host# set groups isis system services extension-service request-response grpc skip-authentication
出口设备
user@host# set groups isis protocols isis traffic-engineering family inet shortcuts user@host# set groups isis protocols isis source-packet-routing sensor-based-stats per-sid ingress user@host# set groups isis protocols isis source-packet-routing srgb start-label 400 user@host# set groups isis protocols isis source-packet-routing srgb index-range 20000 user@host# set groups isis protocols isis source-packet-routing node-segment ipv4-index 3
有关配置 SPRING 的更多信息,请参阅了解网络中的源数据包路由 (SPRING)。
启用统计数据导出
要接收统计数据,您可以通过 Junos OS 在瞻博网络设备上启用导出统计数据。要启用导出,请在 [edit protocols isis source-packet-routing] 层次结构级别进行配置per-sid-ingress。有关如何配置的示例,请参阅启用 SPRING 统计信息的收集并导出它们。
导出统计信息
为传输 SPRING 统计信息启用遥测导出后,可以使用远程过程调用 (gRPC) 服务或以 UDP 格式导出统计信息并需要在设备上配置 Junos OS 的本机传感器将统计信息流式传输到外部收集器。
参见
启用 SPRING 统计信息的收集并导出它们
您可以通过 Junos 遥测接口 (JTI) 导出网络中传输源数据包路由 (SPRING) 统计信息,也称为分段路由统计信息。
在导出统计信息之前,需要启用统计信息以进行收集。为收集启用统计信息后,可以选择如何将统计信息导出到外部收集器:gRPC 服务或使用本机传感器的 UDP 格式。
要启用中转 SPRING 统计信息的导出,请执行以下操作:
[edit protocols isis source-packet-routing] user@host# set sensor-based-stats per-sid ingress
要使用 gRPC 服务导出传输 SPRING 统计信息,请执行以下操作:
通过包含以下配置来启动设备的 gRPC 服务:
system { services { extension-service { request-response { grpc { clear-text { port 32767; } skip-authentication; } } } } }
使用遥测订阅远程过程调用创建订阅。订阅必须包含遥测参数,包括资源路径 /junos/services/segment-routing/sid/usage/。有关配置 gRPC 流和为要传递到外部收集器的统计信息创建订阅的详细信息,请参阅 了解 Junos 遥测接口上的 OpenConfig 和 gRPC、 适用于 Junos 遥测接口的 gRPC 服务和在 Junos 中配置 NETCONF 代理遥测传感器。
要使用本机传感器以 UDP 格式导出传输 SPRING 统计信息,请执行以下操作:
在设备上的 [
edit services analytics
] 层次结构级别配置传感器语句。包括传感器路径 (/junos/services/segment-routing/sid/usage/)、导出配置文件名称、允许监视和流式传输指定系统资源的资源标识符字符串,以及用于收集数据的服务器名称。
有关配置本机传感器的详细信息,请参阅配置 Junos 遥测接口传感器(CLI 过程)。
参见
更改历史记录表
功能支持由您使用的平台和版本决定。使用 功能资源管理器 确定您的平台是否支持某个功能。