BGP (bgp)
- Layer: Application and control
- Header: 19 octets (fixed)
- Notes: Routing protocols
Reached from
| Lower layer | Selector | Value |
|---|---|---|
tcp | dst_port / src_port | 179 (0x00b3) |
Fields
| Field | Type | Default | Auto | Description |
|---|---|---|---|---|
marker | bytes(16) | ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff | 16-octet marker (all ones). | |
length | uint(16) | Length of the header and payload in octets | Length of the BGP message including the header, in octets (Auto). | |
type | enum(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
| Value | Name |
|---|---|
| 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.
| Value | Protocol | Note |
|---|---|---|
| 1 (0x01) | bgp_open | |
| 2 (0x02) | bgp_update | |
| 3 (0x03) | bgp_notification | |
| 5 (0x05) | bgp_route_refresh |
Constraints
| Level | Rule |
|---|---|
| error | header and payload at least 19 octets |
| warning | header 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