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 OPEN (bgp_open)

  • Layer: Application and control
  • Header: variable length

Reached from

Lower layerSelectorValue
bgptype1 (0x01)

Fields

FieldTypeDefaultAutoDescription
versionuint(8)4BGP version (4).
my_asuint(16)65001Autonomous system number of the sender (23456 = AS_TRANS for 4-octet AS).
hold_timeuint(16)180Proposed hold time, in seconds (0 or at least 3).
bgp_identifieripv4192.0.2.1BGP identifier (router ID) of the sender.
opt_params_lengthuint(8)Length of the header in octets (-10)Length of the optional parameters, in octets (Auto).
opt_paramstlv — opt_params_length octets1 itemsOptional parameters (type 2 = capabilities).

opt_params

  • Type 8 bits, length 8 bits.
  • The length counts the value only.
  • Unknown types are kept as raw value octets.
TypeNameValue fieldsDescription
2 (0x02)capabilitiescapabilities

opt_params › capabilities

FieldTypeDefaultAutoDescription
capabilitiestlv — rest of the PDU
opt_params › capabilities › capabilities
  • Type 8 bits, length 8 bits.
  • The length counts the value only.
  • Unknown types are kept as raw value octets.
TypeNameValue fieldsDescription
1 (0x01)multiprotocolafi, reserved, safi
2 (0x02)route_refresh
64 (0x40)graceful_restartrestart_flags, restart_time, address_families
65 (0x41)four_octet_asasn
69 (0x45)add_pathaddress_families
70 (0x46)enhanced_route_refresh
128 (0x80)route_refresh_cisco
opt_params › capabilities › capabilities › multiprotocol
FieldTypeDefaultAutoDescription
afiuint(16)
reserveduint(8)
safiuint(8)
opt_params › capabilities › capabilities › graceful_restart
FieldTypeDefaultAutoDescription
restart_flagsuint(4)
restart_timeuint(12)
address_familiesbytes — rest of the PDU
opt_params › capabilities › capabilities › four_octet_as
FieldTypeDefaultAutoDescription
asnuint(32)
opt_params › capabilities › capabilities › add_path
FieldTypeDefaultAutoDescription
address_familiesbytes — rest of the PDU

Constraints

LevelRule
warningversion = 4

Sample templates

  • bgp-open — templates/protocols/routing/bgp-open.wpg.yaml