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)

Reached from

Lower layerSelectorValue
tcpdst_port / src_port179 (0x00b3)

Fields

FieldTypeDefaultAutoDescription
markerbytes(16)ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff16-octet marker (all ones).
lengthuint(16)Length of the header and payload in octetsLength of the BGP message including the header, in octets (Auto).
typeenum(8)4 (keepalive)Protocol number of the next layer (see Next layer)BGP message type (OPEN / UPDATE / NOTIFICATION / KEEPALIVE / ROUTE-REFRESH; Auto from the next layer).

type

ValueName
1 (0x01)open
2 (0x02)update
3 (0x03)notification
4 (0x04)keepalive
5 (0x05)route_refresh

Next layer

The next layer is selected by type; when the field is Auto the builder writes the value of the protocol stacked above.

ValueProtocolNote
1 (0x01)bgp_open
2 (0x02)bgp_update
3 (0x03)bgp_notification
5 (0x05)bgp_route_refresh

Constraints

LevelRule
errorheader and payload at least 19 octets
warningheader and payload at most 4096 octets

Sample templates

  • 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