Y.1731 CSF (cfm_csf)
- レイヤ: L2 (データリンク)
- ヘッダ: 可変長
- 補足: PTP / ESMC / CFM / R-APS / 802.3ah OAM (P2)
下位レイヤからの到達
| 下位レイヤ | 判別フィールド | 値 |
|---|---|---|
ethernet2 | ethertype | 35074 (0x8902) |
dot1q | ethertype | 35074 (0x8902) |
dot1ad | ethertype | 35074 (0x8902) |
cfm | opcode | 52 (0x34) (このレイヤを読み直す) |
フィールド
| フィールド | 型 | 既定値 | Auto | 説明 |
|---|---|---|---|---|
md_level | uint(3) | 0 | メンテナンスドメイン / MEG レベル(0〜7)。 | |
version | uint(5) | 0 | CFM バージョン(0。G.8032v2 の R-APS は 1)。 | |
opcode | enum(8) | 52 (csf) | OpCode: 1 CCM、2 LBR、3 LBM、4 LTR、5 LTM、33 AIS、35 LCK、37 TST、39 Linear APS、40 R-APS、41 MCC、42 LMR、43 LMM、45 1DM、46 DMR、47 DMM、52 CSF、53 1SL、54 SLR、55 SLM など。 | |
flags_reserved | uint(2) | 0 | ||
type | enum(3) | 0 (los) | クライアント信号障害の種類: 0 LOS、1 FDI / AIS、2 RDI、3 DCI。 | |
period | enum(3) | 4 (s_1) | 送信周期: 1 = 3.33 ms、2 = 10 ms、3 = 100 ms、4 = 1 秒、5 = 10 秒、6 = 1 分、7 = 10 分。 | |
first_tlv_offset | uint(8) | 0 | このフィールドの直後から最初の TLV までのオフセット(OpCode ごとに一定)。 | |
tlvs | tlv — タイプ 0 の最初の項目まで (なければ PDU の終わりまで) | 1 要素 | TLV(8 ビット型、値の 16 ビット長、自動): Sender ID、Port Status、Data、Interface Status、Reply Ingress / Egress、LTM / LTR Egress Identifier、Organization-Specific、Test。End TLV(タイプ 0)で終わる。 |
opcode
| 値 | 名前 |
|---|---|
| 1 (0x01) | ccm |
| 2 (0x02) | lbr |
| 3 (0x03) | lbm |
| 4 (0x04) | ltr |
| 5 (0x05) | ltm |
| 33 (0x21) | ais |
| 35 (0x23) | lck |
| 37 (0x25) | tst |
| 39 (0x27) | linear_aps |
| 40 (0x28) | ring_aps |
| 41 (0x29) | mcc |
| 42 (0x2a) | lmr |
| 43 (0x2b) | lmm |
| 45 (0x2d) | one_dm |
| 46 (0x2e) | dmr |
| 47 (0x2f) | dmm |
| 48 (0x30) | exr |
| 49 (0x31) | exm |
| 50 (0x32) | vsr |
| 51 (0x33) | vsm |
| 52 (0x34) | csf |
| 53 (0x35) | one_sl |
| 54 (0x36) | slr |
| 55 (0x37) | slm |
type
| 値 | 名前 |
|---|---|
| 0 | los |
| 1 | fdi_ais |
| 2 | rdi |
| 3 | dci |
period
| 値 | 名前 |
|---|---|
| 0 | invalid |
| 1 | ms_3_33 |
| 2 | ms_10 |
| 3 | ms_100 |
| 4 | s_1 |
| 5 | s_10 |
| 6 | min_1 |
| 7 | min_10 |
tlvs
- タイプ 8 ビット、長さ 16 ビット。
- 長さは値の部分だけを数えます。
- 未知のタイプは値をオクテット列のまま保持します。
| タイプ値 | 名前 | 値のフィールド | 説明 |
|---|---|---|---|
| 0 (0x00) | end | (タイプのみ。長さと値なし) | |
| 1 (0x01) | sender_id | chassis_id_length, chassis_id_subtype, chassis_id, management_address | |
| 2 (0x02) | port_status | port_status | |
| 3 (0x03) | data_tlv | value | |
| 4 (0x04) | interface_status | interface_status | |
| 5 (0x05) | reply_ingress | ingress_action, ingress_mac, ingress_port_id | |
| 6 (0x06) | reply_egress | egress_action, egress_mac, egress_port_id | |
| 7 (0x07) | ltm_egress_identifier | egress_identifier | |
| 8 (0x08) | ltr_egress_identifier | last_egress_identifier, next_egress_identifier | |
| 31 (0x1f) | organization_specific | oui, subtype, value | |
| 32 (0x20) | test | pattern_type, test_pattern |
tlvs › sender_id
| フィールド | 型 | 既定値 | Auto | 説明 |
|---|---|---|---|---|
chassis_id_length | uint(8) | chassis_id のオクテット長 | ||
chassis_id_subtype | enum(8) | 4 (mac_address) | ||
chassis_id | bytes — chassis_id_length オクテット | 02 00 00 00 00 01 | ||
management_address | bytes — PDU の残りすべて |
tlvs › sender_id › chassis_id_subtype
| 値 | 名前 |
|---|---|
| 1 (0x01) | chassis_component |
| 2 (0x02) | interface_alias |
| 3 (0x03) | port_component |
| 4 (0x04) | mac_address |
| 5 (0x05) | network_address |
| 6 (0x06) | interface_name |
| 7 (0x07) | local |
tlvs › port_status
| フィールド | 型 | 既定値 | Auto | 説明 |
|---|---|---|---|---|
port_status | enum(8) | 2 (up) |
tlvs › port_status › port_status
| 値 | 名前 |
|---|---|
| 1 (0x01) | blocked |
| 2 (0x02) | up |
tlvs › data_tlv
| フィールド | 型 | 既定値 | Auto | 説明 |
|---|---|---|---|---|
value | bytes — PDU の残りすべて |
tlvs › interface_status
| フィールド | 型 | 既定値 | Auto | 説明 |
|---|---|---|---|---|
interface_status | enum(8) | 1 (up) |
tlvs › interface_status › interface_status
| 値 | 名前 |
|---|---|
| 1 (0x01) | up |
| 2 (0x02) | down |
| 3 (0x03) | testing |
| 4 (0x04) | unknown |
| 5 (0x05) | dormant |
| 6 (0x06) | not_present |
| 7 (0x07) | lower_layer_down |
tlvs › reply_ingress
| フィールド | 型 | 既定値 | Auto | 説明 |
|---|---|---|---|---|
ingress_action | enum(8) | 1 (ok) | ||
ingress_mac | mac | 02:00:00:00:00:02 | ||
ingress_port_id | bytes — PDU の残りすべて |
tlvs › reply_ingress › ingress_action
| 値 | 名前 |
|---|---|
| 1 (0x01) | ok |
| 2 (0x02) | down |
| 3 (0x03) | blocked |
| 4 (0x04) | vid |
tlvs › reply_egress
| フィールド | 型 | 既定値 | Auto | 説明 |
|---|---|---|---|---|
egress_action | enum(8) | 1 (ok) | ||
egress_mac | mac | 02:00:00:00:00:02 | ||
egress_port_id | bytes — PDU の残りすべて |
tlvs › reply_egress › egress_action
| 値 | 名前 |
|---|---|
| 1 (0x01) | ok |
| 2 (0x02) | down |
| 3 (0x03) | blocked |
| 4 (0x04) | vid |
tlvs › ltm_egress_identifier
| フィールド | 型 | 既定値 | Auto | 説明 |
|---|---|---|---|---|
egress_identifier | uint(64) | 2199023255553 |
tlvs › ltr_egress_identifier
| フィールド | 型 | 既定値 | Auto | 説明 |
|---|---|---|---|---|
last_egress_identifier | uint(64) | 2199023255553 | ||
next_egress_identifier | uint(64) | 2199023255554 |
tlvs › organization_specific
| フィールド | 型 | 既定値 | Auto | 説明 |
|---|---|---|---|---|
oui | uint(24) | |||
subtype | uint(8) | |||
value | bytes — PDU の残りすべて |
tlvs › test
| フィールド | 型 | 既定値 | Auto | 説明 |
|---|---|---|---|---|
pattern_type | enum(8) | |||
test_pattern | bytes — PDU の残りすべて |
tlvs › test › pattern_type
| 値 | 名前 |
|---|---|
| 0 (0x00) | null_without_crc |
| 1 (0x01) | null_with_crc |
| 2 (0x02) | prbs_without_crc |
| 3 (0x03) | prbs_with_crc |
制約
| レベル | 規則 |
|---|---|
| 警告 | first_tlv_offset が 0 |
サンプルテンプレート
- y1731-csf —
templates/protocols/oam/y1731-csf.wpg.yaml