BGP (bgp)
- レイヤ: アプリケーション・制御
- ヘッダ: 19 オクテット (固定長)
- 補足: ルーティングプロトコル
下位レイヤからの到達
| 下位レイヤ | 判別フィールド | 値 |
|---|---|---|
tcp | dst_port / src_port | 179 (0x00b3) |
フィールド
| フィールド | 型 | 既定値 | Auto | 説明 |
|---|---|---|---|---|
marker | bytes(16) | ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff | 16 オクテットのマーカ (すべて 1)。 | |
length | uint(16) | ヘッダとペイロードの長さ (オクテット単位) | ヘッダを含む BGP メッセージ長 (オクテット、自動)。 | |
type | enum(8) | 4 (keepalive) | 次レイヤのプロトコル番号 (「次レイヤ」参照) | BGP メッセージタイプ (OPEN / UPDATE / NOTIFICATION / KEEPALIVE / ROUTE-REFRESH。次レイヤから自動)。 |
type
| 値 | 名前 |
|---|---|
| 1 (0x01) | open |
| 2 (0x02) | update |
| 3 (0x03) | notification |
| 4 (0x04) | keepalive |
| 5 (0x05) | route_refresh |
次レイヤ
次レイヤは type で判別します。このフィールドが Auto のときは、上に積んだプロトコルの値を書き込みます。
| 値 | プロトコル | 備考 |
|---|---|---|
| 1 (0x01) | bgp_open | |
| 2 (0x02) | bgp_update | |
| 3 (0x03) | bgp_notification | |
| 5 (0x05) | bgp_route_refresh |
制約
| レベル | 規則 |
|---|---|
| エラー | ヘッダとペイロードが 19 オクテット以上 |
| 警告 | ヘッダとペイロードが 4096 オクテット以下 |
サンプルテンプレート
- bgp-keepalive —
templates/protocols/routing/bgp-keepalive.wpg.yaml - bgp-notification —
templates/protocols/routing/bgp-notification.wpg.yaml - bgp-open —
templates/protocols/routing/bgp-open.wpg.yaml - bgp-route-refresh —
templates/protocols/routing/bgp-route-refresh.wpg.yaml - bgp-update-evpn —
templates/protocols/routing/bgp-update-evpn.wpg.yaml - bgp-update-mp-ipv6 —
templates/protocols/routing/bgp-update-mp-ipv6.wpg.yaml - bgp-update-vpnv4 —
templates/protocols/routing/bgp-update-vpnv4.wpg.yaml - bgp-update —
templates/protocols/routing/bgp-update.wpg.yaml