802.3ah OAM Information (efm_oam_information)
- レイヤ: L2 (データリンク)
- ヘッダ: 可変長
- 補足: PTP / ESMC / CFM / R-APS / 802.3ah OAM (P2)
下位レイヤからの到達
| 下位レイヤ | 判別フィールド | 値 |
|---|---|---|
ethernet2 | ethertype = 34825 (0x8809) のときのペイロード先頭 8 ビット | 3 (0x03) |
efm_oam | code | 0 (0x00) (このレイヤを読み直す) |
フィールド
| フィールド | 型 | 既定値 | Auto | 説明 |
|---|---|---|---|---|
subtype | uint(8) | 3 | Slow Protocols サブタイプ(3 = OAM)。 | |
flags | flags(16) | 0x50 | フラグ: リンク障害、Dying Gasp、重大イベント、ローカル / リモートの評価中・安定。 | |
code | enum(8) | 0 (information) | OAMPDU コード: 0x00 Information、0x01 Event Notification、0x02 Variable Request、0x03 Variable Response、0x04 Loopback Control、0xfe Organization Specific。 | |
tlvs | tlv — タイプ 0 の最初の項目まで (なければ PDU の終わりまで) | 2 要素 | Information TLV(8 ビット型、ヘッダを含む 8 ビット長、自動): Local / Remote Information、Organization Specific。End TLV(タイプ 0)で終わる。 |
flags
| ビット | マスク | 名前 |
|---|---|---|
| 0 | 1 (0x0001) | link_fault |
| 1 | 2 (0x0002) | dying_gasp |
| 2 | 4 (0x0004) | critical_event |
| 3 | 8 (0x0008) | local_evaluating |
| 4 | 16 (0x0010) | local_stable |
| 5 | 32 (0x0020) | remote_evaluating |
| 6 | 64 (0x0040) | remote_stable |
code
| 値 | 名前 |
|---|---|
| 0 (0x00) | information |
| 1 (0x01) | event_notification |
| 2 (0x02) | variable_request |
| 3 (0x03) | variable_response |
| 4 (0x04) | loopback_control |
| 254 (0xfe) | organization_specific |
tlvs
- タイプ 8 ビット、長さ 8 ビット。
- 長さはタイプと長さのフィールドも含みます。
- 未知のタイプは値をオクテット列のまま保持します。
| タイプ値 | 名前 | 値のフィールド | 説明 |
|---|---|---|---|
| 0 (0x00) | end | (タイプのみ。長さと値なし) | |
| 1 (0x01) | local_information | oam_version, revision, state_reserved, multiplexer_action, parser_action, oam_configuration, oampdu_configuration_reserved, max_oampdu_size, oui, vendor_specific_information | |
| 2 (0x02) | remote_information | oam_version, revision, state_reserved, multiplexer_action, parser_action, oam_configuration, oampdu_configuration_reserved, max_oampdu_size, oui, vendor_specific_information | |
| 254 (0xfe) | organization_specific | oui, value |
tlvs › local_information
| フィールド | 型 | 既定値 | Auto | 説明 |
|---|---|---|---|---|
oam_version | uint(8) | 1 | ||
revision | uint(16) | 0 | ||
state_reserved | uint(5) | 0 | ||
multiplexer_action | enum(1) | 0 (forward) | ||
parser_action | enum(2) | 0 (forward) | ||
oam_configuration | flags(8) | 0x9 | ||
oampdu_configuration_reserved | uint(5) | 0 | ||
max_oampdu_size | uint(11) | 1518 | ||
oui | uint(24) | 0 | ||
vendor_specific_information | uint(32) | 0 |
tlvs › local_information › multiplexer_action
| 値 | 名前 |
|---|---|
| 0 | forward |
| 1 | discard |
tlvs › local_information › parser_action
| 値 | 名前 |
|---|---|
| 0 | forward |
| 1 | loopback |
| 2 | discard |
tlvs › local_information › oam_configuration
| ビット | マスク | 名前 |
|---|---|---|
| 0 | 1 (0x01) | active_mode |
| 1 | 2 (0x02) | unidirectional |
| 2 | 4 (0x04) | remote_loopback |
| 3 | 8 (0x08) | link_events |
| 4 | 16 (0x10) | variable_retrieval |
tlvs › remote_information
| フィールド | 型 | 既定値 | Auto | 説明 |
|---|---|---|---|---|
oam_version | uint(8) | 1 | ||
revision | uint(16) | 0 | ||
state_reserved | uint(5) | 0 | ||
multiplexer_action | enum(1) | 0 (forward) | ||
parser_action | enum(2) | 0 (forward) | ||
oam_configuration | flags(8) | 0x9 | ||
oampdu_configuration_reserved | uint(5) | 0 | ||
max_oampdu_size | uint(11) | 1518 | ||
oui | uint(24) | 0 | ||
vendor_specific_information | uint(32) | 0 |
tlvs › remote_information › multiplexer_action
| 値 | 名前 |
|---|---|
| 0 | forward |
| 1 | discard |
tlvs › remote_information › parser_action
| 値 | 名前 |
|---|---|
| 0 | forward |
| 1 | loopback |
| 2 | discard |
tlvs › remote_information › oam_configuration
| ビット | マスク | 名前 |
|---|---|---|
| 0 | 1 (0x01) | active_mode |
| 1 | 2 (0x02) | unidirectional |
| 2 | 4 (0x04) | remote_loopback |
| 3 | 8 (0x08) | link_events |
| 4 | 16 (0x10) | variable_retrieval |
tlvs › organization_specific
| フィールド | 型 | 既定値 | Auto | 説明 |
|---|---|---|---|---|
oui | uint(24) | |||
value | bytes — PDU の残りすべて |
サンプルテンプレート
- efm-oam-information —
templates/protocols/oam/efm-oam-information.wpg.yaml