802.1ag cfm/802.3ah efm oam/y.1731 eth oam Study Notes

Source: Internet
Author: User

Related Protocols:
1) IEEE 802.1ag connectivity fault management (CFM: connectivity fault management)
2) IEEE 802.3ah First Mile Ethernet (EFM: Ethernet In the first mile), in which Chapter 1 Ethernet OAM
3) ITU-T y.1731 Ethernet OAM (operation, administration and maintenance)

 

The Ethernet OAM technology is classified into the following two levels:

1) Link-level Ethernet OAM technology: Ethernet physical links between PE devices-ce devices-user devices (also called the last kilometer) that are mostly used in networks, it is used to monitor the link status between the user network and the carrier network. The typical protocol is the efm oam protocol. By enabling the Ethernet OAM function on two point-to-point devices, you can monitor the link status between the two devices. --> 802.3ah
2) network-level Ethernet OAM technology: it is mostly used in the access aggregation layer of the network to monitor the connectivity of the entire network and locate the connectivity fault of the network. The typical protocol is the CFD protocol. (CFD: connectivity fault detection) --> 802.1ag, y.1731

 

802.3ah
Efm oam works at the data link layer. Its Protocol packet is called oampdu.

The frame transmission rate is limited to a maximum of 10 frames per second; therefore, the impact of OAM on normal operations is negligible.

 

 

A) Destination Address (DA ). the DA in oampdus is the slow_protocols_multicast address. 0x0180-c200-0002 slow protocol packets cannot be forwarded by bridges. Therefore, no matter whether OAM or OAM functions are activated, efm oam messages cannot be sent across multiple redirects.

B) Source Address (SA). The SA in oampdus carries the individual MAC address associated
The port through which the oampdu is transmitted.

C) length/type. 0x8809

D) subtype. The subtype field identifies the specific slow protocol being encapsulated. oampdus carry the subtype value 0x03.

E) flags. The flags field contains status bits.
Additional diagnostic information may be sent using the Event Notification oampdu.
Major flag:
-- 2 critical event
---- 1 = a critical event has occurred.
---- 0 = a critical event has not occurred.
-- 1 dying gasp
---- 1 = an unrecoverable local failure condition has occurred.
---- 0 = an unrecoverable local failure condition has not occurred.
-- 0 link fault
The PHY has detected a fault has occurred in the receive ction of the local DTE (e.g., Link, Physical Layer ).
---- 1 = local device's receive path has detected a fault.
---- 0 = local device's receive path has not detected a fault.

F) code.
The code field identifies the specific oampdu.
-- 0x00information oampdu
Information oampdu, also known as heartbeat packets
It is used to interact various state information (including local information TLV, remote information TLV, and organization custom information TLV) between local and remote OAM entities)


-- 0x01
Event Notification oampdu
Event Notification oampdu
Used to generate alerts for failures on links connecting local and remote OAM entities


-- 0x04
Loopback control oampdu
Loop Back Control oampdu
Used to detect link quality and locate link faults. The message contains enable/deenable information to enable/disable remote loopback.
Command description
0x01 enable OAM remote loopback
0x02 disable OAM remote loopback
0x00, 0x03-0xff reserved shall not be transmitted, shocould be ignored on partition tion by OAM Client

G) Data/pad.
This field contains the oampdu data and any necessary pad. implementations shall support oampdus at least minframesize in length.

 

H) FCS.
This field is the frame check Sequence

 

The Ethernet OAM function is based on the Ethernet OAM connection.
The establishment process of the Ethernet OAM connection is also called the discovery stage, that is, the local OAM entity discovers the remote OAM entity and establishes a stable conversation with it.
In this process, the connected OAM entities report their respective Ethernet OAM configuration information and the Ethernet OAM capability information supported by the local end through interactive information oampdu. After receiving the peer configuration parameters, the OAM object determines whether to establish an OAM connection.
Interacts with the following configuration information:
• OAM Mode
The mode can be either active or passive and can be used to determine device functionality.
There are two connection modes for Ethernet OAM: Active Mode and passive mode;
Ethernet OAM connections can only be initiated by OAM entities in active mode, while OAM entities in passive mode can only wait for connection requests from the peer OAM entities;
Two OAM entities in passive mode cannot establish Ethernet OAM connections.
• OAM configuration (capabilities)
Advertises the capabilities of the local OAM entity. With this information a peer can determine, what functions are supported and accessible; for example, loopback capability.
• Oampdu Configuration
Provided des the maximum oampdu size for receept and delivery. This information along with the rate limiting of 10 frames per second can be used to limit the bandwidth allocated to OAM traffic.
• Platform identity
A combination of an organization unique identifier (Oui) and 32-bits of vendor-specific information. Oui allocation, controlled by the IEEE, is typically the first three bytes of a MAC address.

 

Ethernet OAM can effectively improve Ethernet management and maintenance capabilities and ensure stable network operation. Its main functions include:
1) link performance monitoring: monitors various link performance, including measurement of packet loss, latency, jitter, and various traffic statistics;

 

2) fault detection and warning: Send detection reports to detect link connectivity. When a link fails, the network administrator is notified in a timely manner;
Link monitoring is used to detect and detect link layer faults in various environments. Event Notification oampdu is used to monitor links.
When an OAM object monitors general link events, it sends Event Notification oampdu to its peer for reporting.
• Link event TLVs
There are four types of event types.
-0x01 error signal event (errored symbol period event): The number of error signals per unit time exceeds the defined threshold.
Counts the number of symbol errors that occurred during the specified period. The period is specified by the number of symbols that can be stored ed in a time interval on the underlying physical layer.
========================================================== ======
Default/lower bound/Upper Bound
Window Size Number of symbols that can be converted ed in 1 second/in 1 second/in 1 minute
Threshold 1 Symbol Error/0 symbol error/unspecified
========================================================== ======

-- 0x02 error frame event (errored frame event): The number of error frames per unit time exceeds the defined threshold.
Counts the number of errored frames detected during the specified period. The period is specified by a time interval.
========================================================== ======
Default/lower bound/Upper Bound
Window Size: 1 second/1 second/1 minute
Threshold: 1 frame error/0 frame error/unspecified
========================================================== ======

-- 0x03 error frame period event (errored frame period event): specify the number of frames N as the cycle. The number of error frames exceeds the defined threshold during the period when N frames are received.
Counts the number of errored frames detected during the specified period. The period is specified by a number of specified ed frames.
========================================================== ======
Default/lower bound/Upper Bound
Window Size: Number of minframesize frames that can be attached ed in 1 second/100 ms/1 minute
Threshold: 1 frame error/0 frame error/unspecified
========================================================== ======

-- 0x04 error frame seconds event (errored frame seconds event): the number of seconds in which an error frame exists exceeds the defined threshold.
Counts the number of errored frame seconds that occurred during the specified period. The period is specified by a time interval.
========================================================== ======
Default/lower bound/Upper Bound
Window Size: 60 seconds/10 seconds/900 seconds
Threshold: 1 errored second/0 errored seconds/unspecified
========================================================== ======

 

3) loop test: the link fault is detected through the loop back of non-Ethernet OAM protocol packets.
When the OAM object in the active mode sends all messages except oampdu to the peer end (remote end), the peer end does not forward the packets according to their destination address after receiving the packets, instead, return it to the local end based on the original path. Remote loop recovery can only be implemented after an Ethernet OAM connection is established.

 

802.1ag
CFM imports the following concepts:
• Maintenance domain (Maintenance domain: Md)
Indicates the network covered by connection error detection. Its boundary is defined by a series of maintenance endpoints configured on the port. The maintenance domain is identified by "maintenance domain name.
Maintenance domain is divided into eight levels, with an integer of 0 ~ The greater the number, the larger the scope of the maintenance domain.
Different maintenance domains can be adjacent or nested, but cannot cross. During nesting, only high-level maintenance domains can be nested to lower-level maintenance domains.
The cfd pdus in the low-level maintenance domain are discarded when they enter the High-level maintenance domain. The cfd pdus in the high-level maintenance domain can pass through the low-level maintenance domain; cfd pdus of the same level of maintenance domain cannot cross each other.

• Maintenance Association: Ma)
You can configure multiple maintenance sets (MA) in the maintenance domain as needed. Each maintenance set is a set of maintenance points in the maintenance domain.
The maintenance set is identified by "maintenance domain name + maintenance set name. The maintenance point in the maintenance set can receive messages sent from other maintenance points in the maintenance set.
One maintenance set (MA) can serve multiple VLANs, but different Ma In the same MD cannot share the same VLAN.

• Maintenance point (Maintenance point: MP)
The maintenance point (MP) is configured on the port and belongs to a maintenance set. It can be divided into maintenance endpoint (MEP) and maintenance intermediate point (MIP.
1) MEP: Maintenance Association end point
The maintenance endpoint is identified by an integer (range 1-8191) called the mep id, which is unique in the same ma.
It determines the scope and boundary of the maintenance domain. The maintenance set and maintenance domain of the maintenance endpoint determine the VLAN attribute and level of the packets sent by the maintenance endpoint.
The level of the maintenance endpoint determines the level of the packets it can process. The level of the packet sent by the maintenance endpoint is the level of the maintenance endpoint.
When the maintenance endpoint receives a packet higher than its own level, it will continue to forward it according to the original path. When the maintenance endpoint receives a packet smaller than or equal to its own level, it will not forward it again, to ensure that packets in the low-level maintenance domain do not spread to the high-level maintenance domain.
The maintenance endpoint has a directionality. It can be divided into two types: the outward (down) Maintenance endpoint and the inward (up) Maintenance endpoint.
The direction of the maintenance endpoint indicates the position of the maintenance domain relative to the port. The external maintenance endpoint sends messages to the external port, but the external maintenance endpoint sends messages to the external port instead of the port on which the maintenance endpoint is located.

2) MIP: Maintenance Association Intermediate Point
The Maintenance Center is located inside the maintenance domain and cannot actively send CFM packets, but can respond to lBM and ltm packets.
The maintenance set and maintenance domain of the maintenance intermediate point determine the VLAN attributes and levels of packets received by the maintenance intermediate point.
The maintenance center can work with the maintenance endpoint to complete functions similar to ping and tracert. Similar to the maintenance endpoint, when the maintenance intermediate point receives a message higher than its own level, it does not process it, but forwards it to the original path; when the maintenance center receives a packet smaller than or equal to its own level, it will process the packet.
Maintenance Center points are calculated by the system on each port according to certain rules. Users should select appropriate generation rules based on network planning.
By default, maintenance center is not configured on the device.
If maintenance center points are planned for all ports in the maintenance domain, select the default rule.
If you plan to maintain the intermediate point only when the low-level maintenance domain has a maintenance endpoint, select the explicit it rule.

 

 

The maintenance endpoints list is a set of local maintenance endpoints that can be configured in the same maintenance set and remote maintenance endpoints that need to be monitored. It limits the selection range of maintenance endpoints in the maintenance set: all maintenance endpoints in the same maintenance set on different devices should be included in this list, and the MEP IDs are not repeated. If the maintenance endpoint received by the remote device is not in the maintenance endpoint list of the same maintenance set, the packet is discarded.
MEPs may monitor either all frames or a set of VLANs. you may configure a virtual switch as either VLAN-aware or VLAN-unaware to recognize or not recognize VLAN tagged frames or packets when they are delivered from another virtual switch in the network.
• VLAN-aware
Maintenance entities, such as MAS and MEPs, monitor a VLAN or set of VLANs that are associated with a primary vlan id. These maintenance entities protect only the VLAN or set of VLANs to which
They are associated.
• VLAN-unaware
Maintenance entities, such as MAS and MEPs, monitor all data frames passing through a port, regardless of using VLANs. if the maintenance entity is VLAN-unaware, do not specify the VLAN parameter in the configuration commands.

 

The cfm pdu format is as follows:

 

 

 

A) MD level
Maintenance domain level. value range: 0 ~ 7. A greater value indicates a higher level.

B) version
Protocol version, 0

C) opcode
Message encoding. Different values indicate different types of cfm pdus. Common cfm pdus are as follows.
========================================================== ====================
MAC address of the opcode value packet type
--------------------------------------------------------
0x01 ccm pdu 01-80-c2-00-00-3x (multicast address) for continuity detection, each maintenance endpoint can be issued
0x02 the MAC (unicast address) of the lbr pdu ring back initiator is used for loop back, which is responded by the loop back peer.
0x03 MAC (unicast address) of the lbm pdu back-to-destination is used for back-to-loop.
0x04 MAC (unicast address) of the initiator of the LTr PDU link tracing is used for Link tracing, and the peer response of the link Tracing
0x05 ltm PDU 01-80-c2-00-00-3y (multicast address) is used for Link tracing, which is issued by the link tracing initiator.
0, 6-31 reserved for IEEE 802.1.
32-63 defined by ITU-T y.1731
33 AIS
35 LCK
37 TST
39 APS
41 MCC
43 lmm
42 LMR
45 1dm
47 DMM
46 DMR
64-255 reserved for IEEE 802.1
========================================================== ======================
Values of x and y in the target MAC address
The value of MD Level X is Y.
7 7 F
6 6 E
5 d
4 4 C
3 3 B
2 2
1 1 9
0 0 8
CCM: continuity check message continuity detection Packet
LBM: loopback message
LBR: loopback reply Loop Response
LT: linktrace link Tracing
Ltm: linktrace message link trace message
LTr: linktrace reply link TRACE response

D) flags
Flag field, which indicates different meanings in different cfm pdus.

E) varies with value of opcode
-- Sequence number: serial number. The initial value is a random value. After the maintenance endpoint sends a ccm pdu, the value of this field is added with 1
-- Loopback transaction ID/LTR/ltm transaction ID: processing id. The initial value is 0. After maintenance, each LBR/LBM/LTR/ltm PDU sent by the endpoint will be sent, the value of this field is 1

F) TLV (type, length, value)
TLV stands for type, length, value and denotes a method of encoding variable-length and/or optional information in a PDU. TLVs are not aligned to any particle word or octet boundary. TLVs follow each other with no padding between TLVs. TLV or organization/type field
End TLV/0 in the end TLV, type = 0, length and value fields are not required.
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-30, 64-255
Defined by ITU-T y.1731/32 test TLV 33-63 Reserved
Organization-specific TLV/31

 

Effective CFM applications are built on reasonable network deployment and configuration. Its functions are implemented between the configured maintenance points, including:
Continuity check (cc)
Loopback (LB)
Link trace (LT)

 

1. Continuity Detection Function
The continuity detection function is used to detect the connection status between maintenance endpoints. A connection failure may be caused by a device failure or configuration error. This function is implemented by periodically sending CCM packets from the maintenance endpoints. the packets are multicast packets, and other maintenance endpoints of the same maintenance set receive the packets and obtain the remote status. When the maintenance endpoint fails to receive the report within 3.5 cycles, it is deemed that there is a link problem and a log report will be output. When multiple maintenance endpoints in the maintenance domain send CCM packets, the link detection between multiple points and multiple points is realized. When different devices are in the same maintenance domain and the maintenance endpoint in the maintenance set, the interval between sending CCM packets must be the same.
The flag field of the ccm pdu defines two information units.
MSB LSB
8 7 6 5 4 3 2 1
RDI retention period (0)
• RDI: Remote fault indication. RDI is indicated when bits 8 is set to 1, otherwise it is set to 0.
• Period: bits 3 to 1 indicate the transmission period, which is encoded as follows.
Description of the period value marked []
000 invalid value is invalid for CCM PDU
001 3.33 ms 300 frames per second
010 10 MS 100 frames per second
100, Ms, 10 frames per second
1 frame per second in 100 s
101 10 s 6 frames per minute
1 frame per minute in 110 minutes
6 frames per hour in 111 10 minutes

 

2. Loop Function
The loopback function is similar to the Ping function on the IP layer. It is used to verify the connection status between the local device and the remote device. This function is implemented by sending the LBM (loopback message, loopback message) to the remote maintenance point by the maintenance endpoint, based on whether the LBR (loopback replay, to check the link status. LBM and LBR are unicast files. Their receipt reflects whether the links between the two sites are connected.
All flags of the lbm pdu are set to zero. The value of a TLV field is 3 (Data TLV) or 32 (test TLV ).
The fields in the lbr pdu are all copied from the lbm pdu.

 

3. Link Tracking
The Link Tracking function is used to determine the path from the source end to the target maintenance endpoint. This function is implemented by sending ltm (link trace message) to the target maintenance endpoint from the source end. After the maintenance endpoint of the target maintenance endpoint and ltm receives the report, send the LTr (linktrace reply) to the source end. The source end determines the path to the target maintenance endpoint Based on the received response message. Ltm is a multicast packet, and LTR is a unicast packet.

• Ltm PDU
The flag field uses only 8th bits (usefdbonly), and all others are set to 0.
If usefdbonly is set, indicates that only MAC addresses learned in a bridge's filtering database, and not information saved in the mip ccm database, is to be used to determine the egress port.
The additional ltm TLVs of the ltm PDU must contain
-- Ltm egress identifier TLV (type = 7)
May contain
-- Sender id TLV (type = 2)
-- Organization-specific TLV (type = 31)

 

• LTR PDU
Reply TTL (1 octet) contains the value of the TTL field of the ltm sent by LTR and then decreases by 1. (One less than the value from the ltm TTL field in the ltm that triggered the transmission of this LTr. If the ltm TTL field contained a 0, no LTR is transmitted .)
The flag field is defined as follows:
========================================
Mnemonic meaning bit
Usefdbonly copied from ltm. 8 (MSB)
Fwdyes the ltm was (1) or was not (0) forwarded. 7
Terminalmep the MP reported in reply egress TLV (or reply ingress TLV, if it is not present) is a MEP. 6
Reserved copied from ltm. 5-1
========================================
The additional LTR TLVs of the LTr PDU must contain
-- LTR egress identifier TLV (8)
-- Reply ingress TLV (5) and reply egress TLV (6)
May contain
-- Sender id TLV (type = 2)
-- Organization-specific TLV (type = 31)

 

Y.1731
The CFM of y.1731 is basically the same as that of 802.1ag, but the terms used are different.
==================================
Y.1731 terminology 802.1ag terminology
Meg Ma
Megid maid
Meg grade Ma grade
==================================
In addition, the CFM part is added such as ETH-AIS, ETH-LCK, etc.

4. ETH-AIS Ethernet Alarm Indication Signal
The alarm suppression function is used to reduce the number of fault alarms reported. If the maintenance endpoint does not receive the CCM packet from the remote maintenance endpoint within the sending cycle of 3.5 CCM packets, it starts to periodically send the AIS (Alarm Indication Signal, Alarm Indication Signal) packet, the message is sent in the opposite direction to the CCM message. After receiving the AIS message, the maintenance endpoint will suppress the fault alarm of the local end and continue to send the AIS message. If each maintenance endpoint re-receives the CCM packet within the sending cycle of 3.5 CCM packets, it will stop sending the AIS packet. AIS packets are multicast packets.
The Alarm Indication Signal suppresses alarms at the client-layer MEPs after detecting a fault or an AIS condition at the server-layer MEP. the operator can enable or disable the AIS functionality for a MEP. if AIS is enabled and a fault or AIS condition is detected at a MEP, AIS frames are transmitted to the client-layer MEPs in the direction opposite to the peer MEP. on authentication ing the AIS frame, the client-layer MEP suppresses its fault alarms.

5. ETH-LCK Ethernet lock Signal
The Ethernet lock signal feature (ETH-LCK) is used to advertise the management locks of the server layer (child layer) MEP and subsequent data services
A stream is interrupted. The business flow is sent to the MEP that is expected to receive the business flow. It enables MEP receiving frames with ETH-LCK information to differentiate between failures and administrative lock actions on the server layer (child layer) MEP.

 

Performance monitoring is added to y.1731.
The OAM function for performance monitoring can measure different performance parameters. Performance Parameters are defined for point-to-point ETH connections.
1. Measurement of Frame loss rate of ETH-LM
Frame loss measurement for Frame loss ratio-is used to collect values applicable for ingress and egress service frames where the counters maintain a count of transmitted and inclued data frames between a pair of MEPs.
ETH-LM can be done in two ways:
• Single-end ETH-LM
The implementation method is to send the lmm (Loss Measurement message, packet loss measurement packet) packet from the source end to the target maintenance endpoint. After receiving the packet, the target maintenance endpoint will send the LMR (Loss Measurement reply, packet Loss Measurement response) the packet is sent to the source end. The source end calculates the number of packet loss between the source end and the target maintenance endpoint based on two consecutive LMR packets, that is, the source end starts to receive the second LMR packet and calculates the number of packet loss between the source end and the target maintenance endpoint based on the statistical count of the LMR packet and the previous LMR packet. Lmm messages and LMR messages are both single messages.
• Double-ended ETH-LM
Each MEP sends frames with ETH-LM information to its peer MEP periodically to facilitate measurement of Frame loss of the Peer MEP.
The PDU used for double-ended ETH-LM information is the ccm pdu.

 

2. Measurement of Frame delay of ETH-DM
The ETH-DM can be used to measure the changes of frame latency and frame latency.
ETH-DM can be used for on-demand OAM to measure Frame delay and Frame delay variation.
Frame delay and Frame delay variation measurements are supported med by sending periodic frames with ETH-DM information to the peer MEP and matching ing frames with ETH-DM information from the peer MEP during the diagnostic interval.
ETH-DM can be done in two ways:
• Unidirectional ETH-DM
MEP sends frame 1dm PDU (one-way delay measurement, unidirectional latency measurement) with ETH-DM information, which contains txtimestampf (timestamp during ETH-DM transfer) information units.
The received MEP can compare this value with the receipt time of the ETH-DM frame rxtimef, and calculate the one-way frame latency as follows:
Frame latency = rxtimef-txtimestampf
However, the measurement of one-way frame latency requires the clock synchronization between the sending end MEP and the receiving end MEP. For the measurement of frame latency changes, it is based on the difference between the frontend and backend frames. The requirements for clock synchronization can be relaxed, because in the difference between the frontend and backend frames, the Phase Difference interval can be offset.
• Bidirectional ETH-DM
Generally, clock synchronization is not practical. In this case, frame latency measurement can only be performed in bidirectional measurement.
MEP sends a frame DMM (delay measurement message, latency measurement packet) packet with ETH-DM request information, which carries txtimestampf, at the same time, the receiving end MEP responds with a DMR (delay measurement reply, latency measurement response) PDU with a ETH-DM reply message, and the reply frame has txtimestampf that is rewritten from the ETH-DM request information. MEP receives the frame with the ETH-DM reply information, compares txtimestampf with the receipt time rxtimeb of the ETH-DM reply message frame, and measures the bidirectional Frame delay and bidirectional Frame delay according to the following formula:
Frame latency = rxtimeb-txtimestampf

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.