OSPFv2 DBD (ospfv2_dbd)
- レイヤ: L3 (ネットワーク)
- ヘッダ: 可変長
下位レイヤからの到達
| 下位レイヤ | 判別フィールド | 値 |
|---|---|---|
ospfv2 | type | 2 (0x02) |
フィールド
| フィールド | 型 | 既定値 | Auto | 説明 |
|---|---|---|---|---|
interface_mtu | uint(16) | 1500 | フラグメントなしで送信できる最大 IP データグラム長。 | |
options | flags(8) | 0x2 | オプション機能 (E、MC、N/P、L、DC、O、DN ビット)。 | |
flags | flags(8) | 0x7 | Database Description フラグ (I = 初期、M = 続きあり、MS = マスタ)。 | |
dd_sequence | uint(32) | 1 | Database Description シーケンス番号。 | |
lsa_headers | list<struct> — PDU の残りすべて | LSA ヘッダ (各 20 オクテット。チェックサムと長さは手動)。 |
options
| ビット | マスク | 名前 |
|---|---|---|
| 0 | 1 (0x01) | mt |
| 1 | 2 (0x02) | e |
| 2 | 4 (0x04) | mc |
| 3 | 8 (0x08) | np |
| 4 | 16 (0x10) | l |
| 5 | 32 (0x20) | dc |
| 6 | 64 (0x40) | o |
| 7 | 128 (0x80) | dn |
flags
| ビット | マスク | 名前 |
|---|---|---|
| 2 | 4 (0x04) | init |
| 1 | 2 (0x02) | more |
| 0 | 1 (0x01) | master |
lsa_headers
各要素は以下のフィールドの組です。
| フィールド | 型 | 既定値 | Auto | 説明 |
|---|---|---|---|---|
ls_age | uint(16) | |||
options | uint(8) | |||
ls_type | uint(8) | |||
link_state_id | ipv4 | |||
advertising_router | ipv4 | |||
ls_sequence | uint(32) | |||
ls_checksum | uint(16) | |||
length | uint(16) |
サンプルテンプレート
- ospfv2-dbd —
templates/protocols/routing/ospfv2-dbd.wpg.yaml