5. 用例
按照 [RFC7015] 中定义的 Flow Aggregation (流聚合), 可以在以下设备和控制平面维度 [IANA-IPFIX] 上聚合测得的 On-Path delay (路径上延迟), 以确定:
-
结合 node id 和 egressInterface(14), 哪个节点上的哪些逻辑出接口产生了多少延迟.
-
结合 node id 和 egressPhysicalInterface(253), 哪个节点上的哪些物理出接口产生了多少延迟.
-
结合 ipNextHopIPv4Address(15) 或 ipNextHopIPv6Address(62), 转发路径中哪个下一跳 IP 产生了多少延迟.
-
结合 mplsTopLabelIPv4Address(47), 或者 destinationIPv6Address 与 srhActiveSegmentIPv6(495), 转发路径中哪个 MPLS top-label IPv4 address, 或 IPv6 destination address 与 Segment Routing over IPv6 (SRv6) active segment 产生了多少延迟.
-
BGP communities [RFC1997] 常用于设置路径优先级或服务选择. 结合 bgpDestinationExtendedCommunityList(488), bgpDestinationCommunityList(485) 或 bgpDestinationLargeCommunityList(491), 可以确定哪一组前缀在哪个节点累积了多少延迟.
-
结合 destinationIPv4Address(13), destinationTransportPort(11), protocolIdentifier(4) 和 sourceIPv4Address(8), 或 IPv6 的等效 IPFIX IEs, 可以确定网络中从每个 IPv4 源地址到某个特定应用程序在每个节点上的转发路径延迟.
以图 1 作为拓扑示例. 表 2 显示按延迟升序排列的聚合延迟, 该延迟是在入口处按每个节点, ingressInterface(10), egressInterface(14), destinationIPv6Address(28) 和 srhActiveSegmentIPv6(495) 测得的.
| ingress Interface | egress Interface | Node | destination IPv6Address | srhActive SegmentIPv6 | Path Delay |
|---|---|---|---|---|---|
| 271 | 276 | R0 | 0 µs | ||
| 301 | 312 | R1 | 2001:db8::1 | 2001:db8::3 | 22 µs |
| 22 | 27 | R2 | 2001:db8::2 | 2001:db8::3 | 42 µs |
| 852 | 854 | R3 | 2001:db8::3 | 2001:db8::3 | 122 µs |
表 2: 在入口处测得并按延迟升序排列的延迟示例表