Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

BGP (bgp)

下位レイヤからの到達

下位レイヤ判別フィールド値
tcpdst_port / src_port179 (0x00b3)

フィールド

フィールド型既定値Auto説明
markerbytes(16)ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff16 オクテットのマーカ (すべて 1)。
lengthuint(16)ヘッダとペイロードの長さ (オクテット単位)ヘッダを含む BGP メッセージ長 (オクテット、自動)。
typeenum(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