Supported Platforms
Related Documentation
- ACX, M, MX, T Series
- connectivity-fault-management
- Creating the Maintenance Domain
- Configuring Maintenance Intermediate Points
- Creating a Maintenance Association
- Continuity Check Protocol
- Configuring a Maintenance Endpoint
- Configuring a Connectivity Fault Management Action Profile
- Configuring Linktrace Protocol in CFM
- Configuring Ethernet Local Management Interface
- Configuring Rate Limiting of Ethernet OAM Messages
- Configuring 802.1ag Ethernet OAM for VPLS
- ACX, M, MX, PTX, T Series
- IEEE 802.1ag OAM Connectivity Fault Management Overview
- M, MX, T Series
- Configuring M120 and MX Series Routers for CCC Encapsulated Packets
- MX, T Series
- Configuring MAC Flush Message Processing in CET Mode
- Additional Information
- Junos® OS Ethernet Interfaces
Configuring Port Status TLV and Interface Status TLV
TLVs Overview
Type, Length, and Value (TLVs) are described in the IEEE 802.1ag standard for CFM as a method of encoding variable-length and/or optional information in a PDU. TLVs are not aligned to any particular word or octet boundary. TLVs follow each other with no padding between them.
Table 1 shows the TLV format and indicates if it is required or optional.
Table 1: Format of TLVs
Parameter | Octet (sequence) | Description |
---|---|---|
Type | 1 | Required. If 0, no Length or Value fields follow. If not 0, at least the Length field follows the Type field. |
Length | 2–3 | Required if the Type field is not 0. Not present if the Type field is 0. The 16 bits of the Length field indicate the size, in octets, of the Value field. 0 in the Length field indicates that there is no Value field. |
Value | 4 | Length specified by the Length field. Optional. Not present if the Type field is 0 or if the Length field is 0. |
Various TLVs for CFM PDUs
Table 2 shows a set of TLVs defined by IEEE 802.1ag for various CFM PDU types. Each TLV can be identified by the unique value assigned to its type field. Some type field values are reserved.
Table 2: Type Field Values for Various TLVs for CFM PDUs
TLV or Organization | Type Field |
---|---|
End TLV | 0 |
Sender ID TLV | 1 |
Port Status TLV | 2 |
Data TLV | 3 |
Interface Status TLV | 4 |
Reply Ingress TLV | 5 |
Reply Egress TLV | 6 |
LTM Egress Identifier TLV | 7 |
LTR Egress Identifier TLV | 8 |
Reserved for IEEE 802.1 | 9 to 30 |
Organization-Specific TLV | 31 |
Defined by ITU-T Y.1731 | 32 to 63 |
Reserved for IEEE 802.1 | 64 to 255 |
Not every TLV is applicable for all types of CFM PDUs.
- TLVs applicable for continuity check message (CCM):
- End TLV
- Sender ID TLV
- Port Status TLV
- Interface Status TLV
- Organization-Specific TLV
- TLVs applicable for loopback message (LBM):
- End TLV
- Sender ID TLV
- Data TLV
- Organization-Specific TLV
- TLVs applicable for loopback reply (LBR):
- End TLV
- Sender ID TLV
- Data TLV
- Organization-Specific TLV
- TLVs applicable for linktrace message (LTM):
- End TLV
- LTM Egress Identifier TLV
- Sender ID TLV
- Organization-Specific TLV
- TLVs applicable for linktrace reply (LTR):
- End TLV
- LTR Egress Identifier TLV
- Reply Ingress TLV
- Reply Egress TLV
- Sender ID TLV
- Organization-Specific TLV
The following TLVs are currently supported in the applicable CFM PDUs:
- End TLV
- Reply Ingress TLV
- Reply Egress TLV
- LTR Egress Identifier TLV
- LTM Egress Identifier TLV
- Data TLV
Support for Additional Optional TLVs
The following additional optional TLVs are supported:
- Port Status TLV
- Interface Status TLV
MX Series routers support configuration of port status TLV and interface status TLV. Configuring the Port Status TLV allows the operator to control the transmission of the Port Status TLV in CFM PDUs.
![]() | Note: Although Port Status TLV configuration statements are visible in the CLI on M120 and M320 routers, Port Status TLV cannot be configured on these systems. Port Status TLV can be enabled on a MEP interface only if it is a bridge logical interface, which is not possible on these systems. |
For configuration information, see the following sections:
Port Status TLV
The Port Status TLV indicates the ability of the bridge port on which the transmitting MEP resides to pass ordinary data, regardless of the status of the MAC. The value of this TLV is driven by the MEP variable enableRmepDefect, as shown in Table 4. The format of this TLV is shown in Table 3.
Any change in the Port Status TLVs value triggers one extra transmission of that bridge ports MEP CCMs.
Table 3: Port Status TLV Format
Parameter | Octet (Sequence) |
---|---|
Type = 2 | 1 |
Length | 2–3 |
Value (See Table 4) | 4 |
Table 4: Port Status TLV Values
Mnemonic | Ordinary Data Passing Freely Through the Port | Value |
---|---|---|
psBlocked | No: enableRmepDefect = false | 1 |
psUp | Yes: enableRmepDefect = true | 2 |
The MEP variable enableRmepDefect is a boolean variable indicating whether frames on the service instance monitored by the maintenance associations if this MEP are enabled to pass through this bridge port by the Spanning Tree Protocol and VLAN topology management. It is set to TRUE if:
- The bridge port is set in a state where the traffic can pass through it.
- The bridge port is running multiple instances of the spanning tree.
- The MEP interface is not associated with a bridging domain.
Configuring Port Status TLV
Junos OS provides configuration support for the Port Status TLV, allowing you to control the transmission of this TLV in CCM PDUs. The Junos OS provides this configuration at the continuity-check level. By default, the CCM does not include the Port Status TLV. To configure the Port Status TLV, use the port-status-tlv statement at the [edit protocols oam ethernet connectivity-fault-management maintenance-domain identifier maintenance-association identifier continuity-check] hierarchy level.
![]() | Note: Port Status TLV configuration is not mandated by IEEE 802.1ag. The Junos OS provides it in order to give more flexibility to the operator; however it receives and processes CCMs with a Port Status TLV, regardless of this configuration. |
An example of the configuration statements follows:
You cannot enable Port Status TLV transmission in the following two cases:
- If the MEP interface under the maintenance-association is not of type bridge.
- If the MEP is configured on a physical interface.
Displaying the Received Port Status TLV
The Junos OS saves the last received Port Status TLV from a remote MEP. If the received Port Status value does not correspond to one of the standard values listed in Table 4, then the show command displays it as "unknown." You can display the last saved received Port Status TLV using the show oam ethernet connectivity-fault-management mep-database maintenance-domain identifier maintenance-association identifier local-mep identifier remote-mep identifier command, as in the following example:
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
Displaying the Transmitted Port Status TLV
The Junos OS saves the last transmitted Port Status TLV from a local MEP. If the transmission of the Port Status TLV has not been enabled, then the show command displays "none." You can display the last saved transmitted Port Status TLV using the show oam ethernet connectivity-fault-management mep-database maintenance-domain identifier maintenance-association identifier local-mep identifier remote-mep identifier command, as in the following example:
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
Interface Status TLV
The Interface Status TLV indicates the status of the interface on which the MEP transmitting the CCM is configured, or the next-lower interface in the IETF RFC 2863 IF-MIB. The format of this TLV is shown in Table 5. The enumerated values are shown in Table 6.
Table 5: Interface Status TLV Format
Parameter | Octet (Sequence) |
---|---|
Type = 4 | 1 |
Length | 2–3 |
Value (See Table 6) | 4 |
Table 6: Interface Status TLV Values
Mnemonic | Interface Status | Value |
---|---|---|
isUp | up | 1 |
isDown | down | 2 |
isTesting | testing | 3 |
isUnknown | unknown | 4 |
isDormant | dormant | 5 |
isNotPresent | notPresent | 6 |
isLowerLayerDown | lowerLayerDown | 7 |
Configuring Interface Status TLV
The Junos OS provides configuration support for the Interface Status TLV, thereby allowing operators to control the transmission of this TLV in CCM PDUs through configuration at the continuity-check level.
![]() | Note: This configuration is not mandated by IEEE 802.1ag; rather it is provided to give more flexibility to the operator. The Junos OS receives and processes CCMs with the Interface Status TLV, regardless of this configuration. |
The interface status TLV configuration is shown below:
![]() | Note: The Junos OS supports transmission of only three out of seven possible values for the Interface Status TLV. The supported values are 1, 2, and 7. However, the Junos OS is capable of receiving any value for the Interface Status TLV. |
Displaying the Received Interface Status TLV
The Junos OS saves the last received Interface Status TLV from the remote MEP. If the received Interface Status value does not correspond to one of the standard values listed in Table 5, then the show command displays "unknown."
You can display this last saved Interface Status TLV using the show oam ethernet connectivity-fault-management mep-database maintenance-domain identifier maintenance-association identifier local-mep identifier remote-mep identifier command, as in the following example:
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
Displaying the Transmitted Interface Status TLV
The Junos OS saves the last transmitted Interface Status TLV from a local MEP. If the transmission of Interface Status TLV has not been enabled, then the show command displays "none."
You can display the last transmitted Interface Status TLV using the show oam ethernet connectivity-fault-management mep-database maintenance-domain identifier maintenance-association identifier local-mep identifier remote-mep identifier command, as in the following example:
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 Status Defects
The Junos OS provides MAC status defect information, indicating that one or more of the remote MEPs is reporting a failure in its Port Status TLV or Interface Status TLV. It indicates “yes” if either some remote MEP is reporting that its interface is not isUp (for example, at least one remote MEPs interface is unavailable), or if all remote MEPs are reporting a Port Status TLV that contains some value other than psUp (for example, all remote MEPs Bridge Ports are not forwarding data). There are two show commands you can use to view the MAC Status Defects indication.
Use the mep-database command to display MAC status defects:
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
Use the interfaces command to display MAC status defects:
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
Configuring Remote MEP Action Profile Support
Based on values of interface-status-tlv and port-status-tlv in the received CCM packets, a specific action, such as interface-down, can be taken using the action-profile options. Multiple action profiles can be configured on the router, but only one action profile can be assigned to a remote MEP.
The action profile can be configured with at least one event to trigger the action; but the action will be triggered if any one of these events occurs. It is not necessary for all of the configured events to occur to trigger action.
An action-profile can be applied only at the remote MEP level.
The following example shows an action profile configuration with explanatory comments added:
Monitoring a Remote MEP Action Profile
You can use the show oam ethernet connectivity-fault-management mep-database command to view the action profile status of a remote MEP, as in the following example:
show oam ethernet connectivity-fault-management mep-database remote-mep(Action Profile Event)
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
Related Documentation
- ACX, M, MX, T Series
- connectivity-fault-management
- Creating the Maintenance Domain
- Configuring Maintenance Intermediate Points
- Creating a Maintenance Association
- Continuity Check Protocol
- Configuring a Maintenance Endpoint
- Configuring a Connectivity Fault Management Action Profile
- Configuring Linktrace Protocol in CFM
- Configuring Ethernet Local Management Interface
- Configuring Rate Limiting of Ethernet OAM Messages
- Configuring 802.1ag Ethernet OAM for VPLS
- ACX, M, MX, PTX, T Series
- IEEE 802.1ag OAM Connectivity Fault Management Overview
- M, MX, T Series
- Configuring M120 and MX Series Routers for CCC Encapsulated Packets
- MX, T Series
- Configuring MAC Flush Message Processing in CET Mode
- Additional Information
- Junos® OS Ethernet Interfaces
Published: 2012-12-11
Supported Platforms
Related Documentation
- ACX, M, MX, T Series
- connectivity-fault-management
- Creating the Maintenance Domain
- Configuring Maintenance Intermediate Points
- Creating a Maintenance Association
- Continuity Check Protocol
- Configuring a Maintenance Endpoint
- Configuring a Connectivity Fault Management Action Profile
- Configuring Linktrace Protocol in CFM
- Configuring Ethernet Local Management Interface
- Configuring Rate Limiting of Ethernet OAM Messages
- Configuring 802.1ag Ethernet OAM for VPLS
- ACX, M, MX, PTX, T Series
- IEEE 802.1ag OAM Connectivity Fault Management Overview
- M, MX, T Series
- Configuring M120 and MX Series Routers for CCC Encapsulated Packets
- MX, T Series
- Configuring MAC Flush Message Processing in CET Mode
- Additional Information
- Junos® OS Ethernet Interfaces