CE 和 PE 设备之间的 CFM 监控
使用本主题详细了解当客户边缘设备不是瞻博网络设备时提供商边缘设备和客户边缘设备之间的 CFM 监控。此外,您还可以详细了解接口状态 TLV、端口状态 TLV、机箱 ID TLV 和连接保护 TLV 如何帮助监控您的网络。
CFM 操作配置文件异步通知
CFM 驱动的异步通知可在两个 CE 设备之间实现链路状态同步,这两个设备通过源自各自 PE 设备的伪线相互连接。 它可以模拟 两个 CE 设备 直接连接的场景。CFM 提供端到端信令,即使 PE1 和 PE2 不是通过单个网络而是通过一组网络连接。
PE1 和 PE2 之间的第 2 层连接
图 1 是一个部署场景示例,其中基于 CFM 的异步通知可用于同步 CE1 和 CE2 之间的链路状态。异步通知的配置可以满足以下两个要求。
-
当 PE2 和 CE2 之间的链路断开时,PE1 和 CE1 之间的链路也会 断开 。 链路恢复后, 将恢复PE1 和 CE1之间的链路状态 。PE1 和 CE1 之间的链路状态更改应以类似的方式进行。
-
当 PE1 和 PE2 之间出现连接问题时, 它会触发 PE1 和 CE1 以及 PE2 和 CE2 之间的链路中断。如果连接状态已恢复,则应恢复两端的链路状态。
另请参阅
将 CFM作配置文件配置为异步通知
PE1 和 PE2 上的 CFM UP-MEP 监控 PE1 和 PE2 之间的连接。interface-status-tlv 这些 UP-MEP 端点上的图可传达 PE1、 CE1和 PE2 之间以及 PE2、 CE2和 PE1 之间的链路状态。您必须在 PE1 到 PE2 上配置作配置文件,以便将异步通知发送到相应的 CE 设备。当系统检测到邻接丢失或接收 interface-status-tlv到的链路中断情况时,作配置文件将触发这些通知。
了解 CE 和 PE 设备之间的 CFM 监控
当客户边缘设备不是瞻博网络设备时,您可以在提供商边缘设备和客户边缘设备之间启用连接故障管理 (CFM) 监控。当接口关闭时,CFM 会在 CC 消息中传播接口的状态。CC 消息通知客户边缘设备提供商边缘设备已关闭。
您可以使用以下两个选项之一配置 CFM 监控:
接口状态 TLV(类型、长度和值)— 当客户边缘设备不是瞻博网络设备时,您可以使用接口状态 TLV 在提供商边缘设备和客户边缘设备之间启用连接故障管理 (CFM) 监控。当接口关闭时,CFM 使用接口状态 TLV 传播接口的状态。接口状态 TLV 表示托管传输 CCM 的 MEP 的接口的状态,或者表示 IETF RFC 2863 IF-MIB 中下一个较低的接口。因此,客户边缘设备会了解到提供商边缘设备已关闭。要使用接口状态 TLV 配置 CFM 监控,请在层次结构级别使用该
interface-status-tlv[edit protocols oam ethernet connectivity-fault-management maintenance-domain maintenance-domainmaintenance-association maintenance-association continuity-check语句。此配置是标准选项。RDI(远程缺陷指示) — 当客户边缘设备不是瞻博网络设备时,您可以使用 RDI 位在提供商边缘设备和客户边缘设备之间启用连接故障管理 (CFM) 监控。启用 CFM 监控时,CFM 会通过 CC 消息中的 RDI 位传播提供商边缘设备的状态,从而通知客户边缘设备提供商边缘设备已关闭。备份服务时,将清除 RDI 位。要使用 RDI 位配置 CFM 监控,请在层次结构级别使用该
interface-status-send-rdi[edit protocols oam ethernet connectivity-fault-management maintenance-domain maintenance-domainmaintenance-association maintenance-association continuity-check语句。如果客户边缘设备不支持接口状态 TLV,则需要此选项。
当您将接口设置为 CCC 关闭并配置 RDI 时,设备将发送 RDI 位。CFM 不会监控接口状态。
如果在接口未处于待机状态时关闭 CCC 并配置 RDI,则设备会在 CC 消息中包含 RDI 位。
使用 RDI 位的单个活动多宿主用例
考虑以下拓扑,其中包括两个提供商边缘设备(PE1 和 PE2)和两个客户边缘设备(CE1 和 CE2)。PE1 在活动状态下工作,而 PE2 保持待机状态。在 PE 和 CE 之间配置 CFM 关闭 MEP 时,CFM 检测到 CCC 已关闭,并且系统在 CC 消息中包含 RDI 位。从 PE2 到 CE2 的 CC 消息已设置 RDI 位以指示阻止状态。当 PE2 变为活动状态时,系统将清除 CCM 关闭状态,并从后续 CC 消息中删除 RDI 位。
使用 RDI 位的主动/主动多宿主用例
考虑以下拓扑,其中包括两个提供商边缘设备(PE1 和 PE2)和两个客户边缘设备(CE1 和 CE2)。PE1 在活动状态下工作,而 PE2 保持待机状态。如果未在 PE 和 CE 之间配置 CFM 关闭 MEP 以监控链路连接,则系统不会在 CC 消息中包含 RDI 位。在 PE 和 CE 之间配置 CFM 关闭 MEP 时,CFM 检测到 CCC 已关闭,并且系统在 CC 消息中包含 RDI 位。从 PE2 到 CE2 的 CC 消息已设置 RDI 位以指示阻止状态。当 PE2 变为活动状态时,系统将清除 CCM 关闭状态,并从后续 CC 消息中删除 RDI 位。
另请参阅
配置 端口状态 TLV 和接口状态 TLV
TLV 概述
类型、长度和值 (TLV) 在 IEEE 802.1ag CFM 标准中描述为在 PDU 中编码可变长度和/或可选信息的方法。TLV 不与任何特定单词或八位字节边界对齐。TLV 相互跟随,它们之间没有填充。
表 1 显示 TLV 格式并指示它是必需的还是可选的。
参数 |
八进制(序列) |
Description |
|---|---|---|
类型 |
1 |
此字段为必填项。如果该值为 0,则后面没有其他字段(长度或值)。如果该值不是 0,则必须跟在“长度”字段后面。 |
长度 |
2–3 |
仅当“类型”字段不为 0 时,才需要此字段。如果“类型”字段为 0,则该字段不存在。“长度”字段的 16 位表示“值”字段的大小(以八位位组为单位)。“长度”字段值为 0 表示没有“值”字段。 |
value |
4 |
此字段的长度由 Length 字段指定。它是可选的,如果“类型”字段为 0 或“长度”字段为 0,则不会显示。 |
用于 CFM PDU 的各种 TLV
表 2 显示了 IEEE 802.1ag 为各种 CFM PDU 类型定义的一组 TLV。每个 TLV 都可以通过分配给其“类型”字段的唯一值来识别。某些 Type 字段值是保留的。
TLV 或组织 |
类型字段 |
|---|---|
结束 TLV |
0 |
发件人 ID TLV |
1 |
端口状态 TLV |
2 |
数据 TLV |
3 |
接口状态 TLV |
4 |
回复入口 TLV |
5 |
回复出口 TLV |
6 |
LTM 出口标识符 TLV |
7 |
LTR 出口标识符 TLV |
8 |
保留给 IEEE 802.1 |
9 到 30 |
组织特定的TLV |
31 |
ITU-T Y.1731定义 |
32 到 63 |
保留给 IEEE 802.1 |
64 到 255 |
并非每个TLV都适用于所有类型的CFM PDU。
适用于连续性检查消息 (CCM) 的 TLV:
结束 TLV
发件人 ID TLV
端口状态 TLV
接口状态 TLV
组织特定的TLV
适用于环回消息 (LBM) 的 TLV:
结束 TLV
发件人 ID TLV
数据 TLV
组织特定的TLV
适用于环回回复 (LBR) 的 TLV:
结束 TLV
发件人 ID TLV
数据 TLV
组织特定的TLV
适用于链路跟踪消息 (LTM) 的 TLV:
结束 TLV
LTM 出口标识符 TLV
发件人 ID TLV
组织特定的TLV
适用于链路跟踪回复 (LTR) 的 TLV:
结束 TLV
LTR 出口标识符 TLV
回复入口 TLV
回复出口 TLV
发件人 ID TLV
组织特定的TLV
适用的 CFM PDU 当前支持以下 TLV:
结束 TLV
回复入口 TLV
回复出口 TLV
LTR 出口标识符 TLV
LTM 出口标识符 TLV
数据 TLV
支持其他可选 TLV
支持以下附加可选 TLV:
端口状态 TLV
接口状态 TLV
MX 系列路由器支持配置端口状态 TLV 和接口状态 TLV。通过配置端口状态 TLV,操作员可以控制 CFM PDU 中端口状态 TLV 的传输。
有关配置信息,请参阅以下部分:
端口状态 TLV
端口状态 TLV 表示传输 MEP 所在的桥接端口传递普通数据的能力,无论 MAC 的状态如何。这个TLV的值由MEP变量 enableRmepDefect驱动,如中 表 4所示。此 TLV 的格式如 所示 表 3。
端口状态 TLV 值的任何更改都会触发该桥接端口 MEP CCM 的一次额外传输。
参数 |
八位组(序列) |
|---|---|
类型 = 2 |
1 |
长度 |
2–3 |
值(请参阅 表 4) |
4 |
记忆 |
普通数据通过端口自由传输 |
value |
|---|---|---|
ps已阻止 |
不: |
1 |
psUp |
是的: |
2 |
MEP 变量 enableRmepDefect 是布尔变量。它指示由 MEP 的维护关联监控的服务实例上的帧是否可以使用生成树协议和 VLAN 拓扑管理通过网桥端口。在以下情况下,它设置为 TRUE:
网桥端口设置为流量可以通过的状态。
网桥端口正在运行生成树的多个实例。
MEP 接口不与桥接域关联。
配置端口状态 TLV
Junos OS 为端口状态 TLV 提供配置支持,允许您控制 TLV 在 CCM PDU 中的传输。Junos OS 在连续性检查级别提供此配置。默认情况下,CCM 不包括端口状态 TLV。要配置端口状态 TLV,请在层次结构级别使用该port-status-tlv[edit protocols oam ethernet connectivity-fault-management maintenance-domain identifier maintenance-association identifier continuity-check]语句。
端口状态 IEEE 802.1ag 未强制要求 TLV 配置。Junos OS 提供此配置是为了给作员提供更大的灵活性;但是,无论配置如何,它都会接收并处理端口状态为 TLV 的 CCM。
配置语句的示例如下:
protocols {
oam {
ethernet {
connectivity-fault-management {
maintenance-domain identifier {
level number;
maintenance-association identifier {
continuity-check {
interval number,
loss-threshold number;
hold-interval number;
port-status-tlv; # Sets Port Status TLV
}
}
}
}
}
}
}
在以下两种情况下,您无法启用端口状态 TLV 传输:
如果维护关联下的 MEP 接口不是桥接类型。
如果 MEP 是在物理接口上配置的。
显示 接收端口状态 TLV
Junos OS 保存上次从远程 MEP 接收的端口状态 TLV。如果收到的端口状态值与 中 表 4列出的标准值之一不对应,则该命令将其 show 显示为“未知”。您可以使用命令 show oam ethernet connectivity-fault-management mep-database maintenance-domain identifier maintenance-association identifier local-mep identifier remote-mep identifier 显示上次保存的接收端口状态 TLV,如以下示例所示:
user@host> show oam ethernet connectivity-fault-management mep-database maintenance-domain md5 maintenance-association ma5 local-mep 2001 remote-mep 1001
Maintenance domain name: md5, Format: string, Level: 5
Maintenance association name: ma5, Format: string
Continuity-check status: enabled, Interval: 100ms, Loss-threshold: 3 frames
MEP identifier: 2001, Direction: down, MAC address: 00:19:e2:b2:81:4a
Auto-discovery: enabled, Priority: 0
Interface status TLV: up, Port status TLV: up
Interface name: ge-2/0/0.0, Interface status: Active, Link status: Up
Remote MEP identifier: 1001, State: ok
MAC address: 00:19:e2:b0:74:00, Type: Learned
Interface: ge-2/0/0.0
Last flapped: Never
Remote defect indication: false
Port status TLV: none # RX PORT STATUS
Interface status TLV: none
显示传输端口状态 TLV
Junos OS 保存上次从本地 MEP 传输的端口状态 TLV。如果尚未启用端口状态 TLV 的传输,则该 show 命令将显示“无”。您可以使用命令 show oam ethernet connectivity-fault-management mep-database maintenance-domain identifier maintenance-association identifier local-mep identifier remote-mep identifier 显示上次保存的传输端口状态 TLV,如以下示例所示:
user@host> show oam ethernet connectivity-fault-management mep-database maintenance-domain md5 maintenance-association ma5 local-mep 2001 remote-mep 1001
Maintenance domain name: md5, Format: string, Level: 5
Maintenance association name: ma5, Format: string
Continuity-check status: enabled, Interval: 100ms, Loss-threshold: 3 frames
MEP identifier: 2001, Direction: down, MAC address: 00:19:e2:b2:81:4a
Auto-discovery: enabled, Priority: 0
Interface status TLV: up, Port status TLV: up # TX PORT STATUS
Interface name: ge-2/0/0.0, Interface status: Active, Link status: Up
Remote MEP identifier: 1001, State: ok
MAC address: 00:19:e2:b0:74:00, Type: Learned
Interface: ge-2/0/0.0
Last flapped: Never
Remote defect indication: false
Port status TLV: none
Interface status TLV: none
接口状态 TLV
接口状态 TLV 指示配置传输 CCM 的 MEP 的接口的状态,或 IETF RFC 2863 IF-MIB 中下一个较低层接口的状态。此 TLV 的格式如 所示 表 5。枚举的值如 中 表 6所示。
参数 |
八位组(序列) |
|---|---|
类型 = 4 |
1 |
长度 |
2–3 |
值(请参阅 表 6) |
4 |
记忆 |
接口状态 |
value |
|---|---|---|
isUp |
向上 |
1 |
isdown |
下 |
2 |
正在测试 |
测试 |
3 |
是未知的 |
未知 |
4 |
处于休眠状态 |
睡眠状态的 |
5 |
isNotPresent |
不存在 |
6 |
isLowerLayerDown |
下层向下 |
7 |
当逻辑接口的操作状态从关闭状态(状态值 2)更改为下层关闭状态(状态值 7)时,不会生成 LinkDown SNMP 陷阱。例如,如果使用 VLAN 标记配置聚合以太网接口捆绑包,并将处于运行关闭状态的物理接口添加到捆绑包中,则聚合以太网逻辑接口捆绑包此时的运行状态为下层向下 (7)。如果使与接口关联的 MIC 脱机,则当逻辑接口从下层关闭状态变为关闭状态时,不会生成 LinkDown 陷阱。
同样,考虑另一个示例场景,其中物理接口被添加到具有 VLAN 标记的聚合以太网捆绑包中,并且聚合以太网逻辑接口被禁用。禁用逻辑接口后,逻辑接口的操作状态将更改为关闭。如果禁用作为聚合以太网捆绑包一部分的物理接口,则聚合以太网逻辑接口的操作状态将保持关闭状态。如果重新启用聚合以太网逻辑接口,其运行状态将从下层更改为下层。此时不会生成链路向下 SNMP 陷阱。
配置接口状态 TLV
Junos OS 为接口状态 TLV 提供配置支持,从而允许操作员通过连续性检查级别的配置来控制此 TLV 在 CCM PDU 中的传输。
IEEE 802.1ag 不强制要求此配置;相反,提供它是为了给操作员提供更大的灵活性。无论此配置如何,Junos OS 都会接收并处理接口状态为 TLV 的 CCM。
接口状态 TLV 配置如下所示:
protocols {
oam {
ethernet {
connectivity-fault-management {
maintenance-domain identifier {
level number;
maintenance-association identifier {
continuity-check {
interval number;
loss-threshold number;
hold-interval number;
interface-status-tlv; # Sets the interface status TLV
}
}
}
}
}
}
}
Junos OS 仅支持传输接口状态 TLV 的七个可能值中的三个。支持的值为 1、2 和 7。但是,Junos OS 能够接收接口状态 TLV 的任何值。
显示收到的接口状态 TLV
Junos OS 保存上次从远程 MEP 收到的接口状态 TLV。如果收到的接口状态值与 中 表 5列出的标准值之一不对应,则该命令将显示 show “未知”。
您可以使用命令显示 show oam ethernet connectivity-fault-management mep-database maintenance-domain identifier maintenance-association identifier local-mep identifier remote-mep identifier 上次保存的接口状态 TLV,如以下示例所示:
user@host> show oam ethernet connectivity-fault-management mep-database maintenance-domain md5 maintenance-association ma5 local-mep 2001 remote-mep 1001
Maintenance domain name: md5, Format: string, Level: 5
Maintenance association name: ma5, Format: string
Continuity-check status: enabled, Interval: 100ms, Loss-threshold: 3 frames
MEP identifier: 2001, Direction: down, MAC address: 00:19:e2:b2:81:4a
Auto-discovery: enabled, Priority: 0
Interface status TLV: up, Port status TLV: up
Interface name: ge-2/0/0.0, Interface status: Active, Link status: Up
Remote MEP identifier: 1001, State: ok
MAC address: 00:19:e2:b0:74:00, Type: Learned
Interface: ge-2/0/0.0
Last flapped: Never
Remote defect indication: false
Port status TLV: none
Interface status TLV: none # displays the Interface Status TLV state
显示传输接口状态 TLV
Junos OS 保存上次从本地 MEP 传输的接口状态 TLV。如果尚未启用接口状态 TLV 的传输,则该 show 命令将显示“无”。
您可以使用命令 show oam ethernet connectivity-fault-management mep-database maintenance-domain identifier maintenance-association identifier local-mep identifier remote-mep identifier 显示上次传输的接口状态 TLV,如以下示例所示:
user@host> show oam ethernet connectivity-fault-management mep-database maintenance-domain md5 maintenance-association ma5 local-mep 2001 remote-mep 1001
Maintenance domain name: md5, Format: string, Level: 5
Maintenance association name: ma5, Format: string
Continuity-check status: enabled, Interval: 100ms, Loss-threshold: 3 frames
MEP identifier: 2001, Direction: down, MAC address: 00:19:e2:b2:81:4a
Auto-discovery: enabled, Priority: 0
Interface status TLV: up, Port status TLV: up
Interface name: ge-2/0/0.0, Interface status: Active, Link status: Up
Remote MEP identifier: 1001, State: ok
MAC address: 00:19:e2:b0:74:00, Type: Learned
Interface: ge-2/0/0.0
Last flapped: Never
Remote defect indication: false
Port status TLV: none
Interface status TLV: none
MAC 状态缺陷
Junos OS 提供 MAC 状态缺陷信息,指示远程 MEP 何时在其端口状态 TLV 或接口状态 TLV 中报告故障。如果一个或多个远程 MEP 报告其接口未“Up”(例如,当远程 MEP 的接口不可用时),或者如果所有远程 MEP 报告的端口状态 TLV 值不是“Up”(例如,当所有远程 MEP 的桥接端口均未转发数据时),系统将指示“是”。您可以使用两个 show 命令查看 MAC 状态缺陷指示。
使用 mep-database 命令显示 MAC 状态缺陷:
user@host> show oam ethernet connectivity-fault-management mep-database maintenance-domain md6 maintenance-association ma6
Maintenance domain name: md6, Format: string, Level: 6
Maintenance association name: ma6, Format: string
Continuity-check status: enabled, Interval: 1s, Loss-threshold: 3 frames
MEP identifier: 500, Direction: down, MAC address: 00:05:85:73:7b:39
Auto-discovery: enabled, Priority: 0
Interface status TLV: up, Port status TLV: up
Interface name: xe-5/0/0.0, Interface status: Active, Link status: Up
Defects:
Remote MEP not receiving CCM : no
Erroneous CCM received : no
Cross-connect CCM received : no
RDI sent by some MEP : no
Some remote MEP's MAC in error state : yes # MAC Status Defects yes/no
Statistics:
CCMs sent : 1658
CCMs received out of sequence : 0
LBMs sent : 0
Valid in-order LBRs received : 0
Valid out-of-order LBRs received : 0
LBRs received with corrupted data : 0
LBRs sent : 0
LTMs sent : 0
LTMs received : 0
LTRs sent : 0
LTRs received : 0
Sequence number of next LTM request : 0
1DMs sent : 0
Valid 1DMs received : 0
Invalid 1DMs received : 0
DMMs sent : 0
DMRs sent : 0
Valid DMRs received : 0
Invalid DMRs received : 0
Remote MEP count: 1
Identifier MAC address State Interface
200 00:05:85:73:39:4a ok xe-5/0/0.0
使用 interfaces 命令显示 MAC 状态缺陷:
user@host> show oam ethernet connectivity-fault-management interfaces detail
Interface name: xe-5/0/0.0, Interface status: Active, Link status: Up
Maintenance domain name: md6, Format: string, Level: 6
Maintenance association name: ma6, Format: string
Continuity-check status: enabled, Interval: 1s, Loss-threshold: 3 frames
Interface status TLV: up, Port status TLV: up
MEP identifier: 500, Direction: down, MAC address: 00:05:85:73:7b:39
MEP status: running
Defects:
Remote MEP not receiving CCM : no
Erroneous CCM received : no
Cross-connect CCM received : no
RDI sent by some MEP : no
Some remote MEP's MAC in error state : yes # MAC Status Defects yes/no
Statistics:
CCMs sent : 1328
CCMs received out of sequence : 0
LBMs sent : 0
Valid in-order LBRs received : 0
Valid out-of-order LBRs received : 0
LBRs received with corrupted data : 0
LBRs sent : 0
LTMs sent : 0
LTMs received : 0
LTRs sent : 0
LTRs received : 0
Sequence number of next LTM request : 0
1DMs sent : 0
Valid 1DMs received : 0
Invalid 1DMs received : 0
DMMs sent : 0
DMRs sent : 0
Valid DMRs received : 0
Invalid DMRs received : 0
Remote MEP count: 1
Identifier MAC address State Interface
200 00:05:85:73:39:4a ok xe-5/0/0.0
配置远程 MEP作配置文件支持
根据收到的 CCM 数据包的值interface-status-tlvport-status-tlv,可以使用选项action-profile执行特定操作,例如 interface-down。可以在路由器上配置多个操作配置文件,但只能将一个操作配置文件分配给远程 MEP。
作配置文件可以配置一个或多个事件,当发生其中一个事件时,将触发作。没有必要让所有配置的事件都触发 action。
操作配置文件只能在远程 MEP 级别应用。
以下示例显示了添加了解释性注释的操作配置文件配置:
[edit protocols oam ethernet connectivity-fault-management]
action-profile tlv-action {
event {
# If interface status tlv with value specified in the config is received
interface-status-tlv down|lower-layer-down;
# If port status tlv with value specified in the config is received
port-status-tlv blocked;
# If connectivity is lost to the peer */
adjacency-loss;
}
action {
# Bring the interface down */
interface-down;
}
default-actions interface-down;
}
# domains
maintenance-domain identifier {
# maintenance domain level (0-7)
level number;
# association
maintenance-association identifier {
mep identifier {
interface ge-x/y/z.w;
remote-mep identifier {
# Apply the action-profile for the remote MEP
action-profile tlv-action;
}
}
}
}
监控远程 MEP作配置文件
您可以使用命令 show oam ethernet connectivity-fault-management mep-database 查看远程 MEP 的操作配置文件状态,如以下示例所示:
显示 OAM 以太网连接故障管理 MEP-数据库远程 MEP(操作配置文件事件)
user@host> show oam ethernet connectivity-fault-management mep-database maintenance-domain md5 maintenance-association ma5 remote-mep 200
Maintenance domain name: md5, Format: string, Level: 5
Maintenance association name: ma5, Format: string
Continuity-check status: enabled, Interval: 1s, Loss-threshold: 3 frames
MEP identifier: 100, Direction: down, MAC address: 00:05:85:73:e8:ad
Auto-discovery: enabled, Priority: 0
Interface status TLV: none, Port status TLV: none # last status TLVs transmitted by the router
Interface name: ge-1/0/8.0, Interface status: Active, Link status: Up
Remote MEP identifier: 200, State: ok # displays the remote MEP name and state
MAC address: 00:05:85:73:96:1f, Type: Configured
Interface: ge-1/0/8.0
Last flapped: Never
Remote defect indication: false
Port status TLV: none
Interface status TLV: lower-layer-down
Action profile: juniper # displays remote MEP’s action profile identifier
Last event: Interface-status-tlv lower-layer-down # last remote MEP event
# to trigger action
Action: Interface-down, Time: 2009-03-27 14:25:10 PDT (00:00:02 ago)
# action occurrence time
配置机箱 ID TLV
您可以将 Junos OS 配置为将发件方 ID TLV 与数据包一起发送。发件人 ID TLV 是可选的 TLV,按照 IEEE 802.1ag 标准的规定,在连续性检查消息 (CCM)、环路消息和链路追踪消息 (LTM) 中发送。发件人 ID TLV 包含机箱 ID(设备的唯一、基于 CFM 的 MAC 地址)和管理 IP 地址(IPv4 或 IPv6 地址)。
TLV 中字段的值 length 指示 TLV 是否包含机箱 ID 信息。该 length 字段的可能值为零 (0) 或任何有效数字,分别表示 TLV 中不存在或存在机箱 ID 信息。
您可以使用命令使 Junos OS 在全局级别 set protocols oam ethernet connectivity-fault-management sendid-tlv send-chassis-tlv 发送发件方 ID TLV。如果在全局级别配置了发件方 ID TLV,则默认维护域、维护关联和维护关联中间点 (MIP) 半函数将继承此配置。
您还可以在以下层级配置发件人 ID TLV:
[edit protocols oam ethernet connectivity-fault-management][edit protocols oam ethernet connectivity-fault-management maintenance-domain maintenance-domain-name maintenance-association maintenance-association-name continuity-check]
该 maintenance-association 级别的发件人 ID TLV 配置优先于全局级别配置。
发件方 ID TLV 仅支持 802.1ag PDU,不支持性能监控协议数据单元 (PDU)。
另请参阅
在 CET 模式下配置 MAC 刷新消息处理
在运营商以太网传输 (CET) 模式下,MX 系列路由器用作提供商边缘 (PE) 路由器,而运行基于标准的协议的诺基亚西门子通信 A2200 运营商以太网交换机(简称 E 域设备)则用于接入端。在 MX 系列路由器上,VPLS 伪线通过标签分发协议 (LDP) 动态配置。在 E 域设备上,可以通过在 E 域设备和 MX 系列 PE 路由器之间运行的连接故障管理 (CFM) 会话来检测拓扑更改。如果 CFM 连接断开,MX 系列 PE 路由器可能会关闭运营商以太网接口。这将触发本地 MAC 刷新以及目标标签分发协议 (T-LDP) MAC 刷新通知,该通知将发送到远程 MX 系列 PE,以触发其上的 MAC 刷新。
在 CET 互操作模式下,MX 系列路由器需要与运行传统协议的诺基亚西门子通信 Ax100 运营商以太网接入设备(称为 A 域设备)进行互操作。诺基亚西门子通信 A4100 和 A8100 设备充当 MX 系列 PE 路由器和 A 域设备之间的中间设备。这些中间设备执行互通功能 (IWF) 过程,以便可以在 MX 系列路由器和 A 域设备之间运行操作管理管理 (OAM) 会话。MX 系列 PE 路由器与诺基亚西门子通信 A4100 和 A8100 中间设备之间没有 VPLS 伪线,因此 PE 路由器之间没有运行用于发送拓扑更改通知的 LDP 协议。为了传达拓扑更改,MX 系列路由器可以触发 MAC 刷新并将其传播到核心中。MX 系列路由器可以使用基于连接保护类型长度值 (TLV) 事件的操作配置文件。操作配置文件会关闭 MX 系列 PE 路由器中的运营商边缘 逻辑接口 ,这将触发本地 MAC 刷新,并使用 LDP 通知将拓扑更改传播到核心。
对于 VPLS,没有监控端到端连接。通过在 E 域设备和 MX 系列 PE 路由器之间,以及 A 域设备和 MX 系列 PE 路由器(由诺基亚西门子通信 A-4100 设备托管的 IWF)的每个服务的工作和保护路径上沿多个端点 (MEP) 运行 CFM,可以独立监控接入环。当工作路径上出现连接故障时,诺基亚西门子通信 Ax200 设备会执行到保护路径的切换,从而触发要在活动路径上发送的拓扑更改通知(以 CCM 中携带的 TLV 的形式)。

图 1 介绍了连接到 A 域的 MX 系列 PE 路由器上的双宿主拓扑。当 A 域设备触发切换时,它会开始将服务流量切换到新的活动路径。此更改在工作和保护路径上由该 A 域设备发送的 HELLO 协议数据单元 (PDU) 中进行通信。当 A4100 中的 IWF 接收到这些 HELLO PDU 时,它会将它们转换为标准 CCM 消息,并插入连接保护 TLV。连接保护 TLV 的“使用中保护”字段使用当前活动路径进行编码,并包含在 CCM 消息中。MX 系列 PE 路由器通过 A4100 中的 VLAN 分支接收 CCM 消息。在上述双宿主场景中,一台 MX 系列 PE 路由器监控工作路径,另一台 MX 系列 PE 路由器监控保护路径。
当监控工作路径的 CFM 会话检测到服务流量已移至保护路径,或者监控保护路径的 CFM 会话检测到服务流量已移至工作路径时,将发生 MAC 刷新。

图 2 介绍了连接到 A 域的 MX 系列 PE 路由器上的双连接拓扑。本例中使用的 MAC 刷新机制也与双宿主方案中用于 A 域的机制相同(图 1)。但是,在这种情况下,两个 CFM 会话仅由一个 MX 系列 PE 路由器托管。当 A 域中的 Ax100 检测到拓扑更改时,MX 系列 PE 路由器会在工作和保护路径的 CCM 消息中接收连接保护 TLV,其值为“使用中的保护”,指示哪个路径是活动路径。根据为 CFM 会话生成的事件,MX 系列 PE 路由器将关闭相应的接口,从而触发本地 MAC 刷新。
配置连接保护 TLV作配置文件
可以将操作配置文件配置为根据收到的 CCM 数据包中的值connection-protection-tlv执行interface-down操作。
以下示例显示了添加了解释性注释的操作配置文件配置:
[edit protocols oam ethernet connectivity-fault-management]
action-profile <tlv-action> {
event {
# If a connection protection TLV with a “Protection-in-use” value of SET is received */
connection-protection-tlv <using-protection-path>;
# If a connection protection TLV with a “Protection-in-use” value of RESET is received */
connection-protection-tlv <using-working-path>;
}
action {
# Bring the interface down */
interface-down;
}
}
另请参阅
示例:基于连接保护 TLV 配置作配置文件
此示例说明如何基于连接保护 TLV 配置操作配置文件,以便根据 CET 网络中的拓扑更改触发 MAC 刷新。
要求
此示例使用以下硬件和软件组件:
Junos OS 11.2 或更高版本
MX 系列 PE 路由器
概述和拓扑
配置
程序
分步过程
要基于连接保护 TLV 配置操作配置文件,请执行以下任务:
配置操作配置文件
[edit protocols oam ethernet connectivity-fault-management] action-profile <tlv-action> { event { } }如果收到的连接保护 TLV 的“使用中保护”值为 SET,则连接保护 TLV 应使用保护路径
connection-protection-tlv <using-protection-path>;
如果收到的连接保护 TLV 的“使用中保护”值为 RESET,则连接保护 TLV 应使用工作路径
connection-protection-tlv <using-working-path>;
配置操作配置文件以关闭接口
action { /* Bring the interface down */ interface-down; }
结果
检查配置结果
[edit protocols oam ethernet connectivity-fault-management]
action-profile <tlv-action> {
event {
connection-protection-tlv <using-protection-path>;
connection-protection-tlv <using-working-path>;
}
action {
interface-down;
}
}
变更历史表
是否支持某项功能取决于您使用的平台和版本。 使用 Feature Explorer 查看您使用的平台是否支持某项功能。
