Skip to main content
  1. Network Articles/
  2. BGP Articles/

BGP Messages

Table of Contents

What Are BGP Messages?

BGP peers exchange four types of messages over a TCP session on port 179. Every message begins with a common 19-byte header, and the Type field in the header identifies the kind of message. This article explains the structure of each message and then looks at the actual contents using a packet capture taken in an IOS XR (XRd) lab. For the basics of how BGP works, see BGP (Border Gateway Protocol).

TypeMessageRole
1OPENSent first after the session is established; conveys the AS number, Hold Time, and supported capabilities.
2UPDATEAdvertises and withdraws routes.
3NOTIFICATIONReports an error and tears down the session.
4KEEPALIVESent periodically to maintain the session.

Common Header

FieldSizeDescription
Marker16 bytesA fixed value with all bits set to 1, used to detect message boundaries.
Length2 bytesThe total length of the message in bytes, including the header. Minimum 19 (KEEPALIVE), maximum 4096.
Type1 byteThe message type (1 to 4).

OPEN Message

Once the TCP session is established, both sides first send an OPEN message. If a peer can accept the other’s OPEN, it replies with a KEEPALIVE and the session becomes Established.

FieldSizeDescription
Version1 byteThe BGP version, currently 4.
My Autonomous System2 bytesThe sender’s AS number. When a 4-byte AS number is used, 23456 (AS_TRANS) is placed here and the real number is conveyed in a capability.
Hold Time2 bytesIf neither a KEEPALIVE nor an UPDATE is received within this time (seconds), the session is torn down. The smaller of the two proposed values is used. The Cisco default is 180.
BGP Identifier4 bytesThe sender’s BGP Router ID.
Opt Parm Len1 byteThe length of the Optional Parameters in bytes.
Optional ParametersvariableLists the supported capabilities.

The Optional Parameters list the router’s supported features as capabilities (RFC 5492). Common ones are shown below.

CapabilityCodeDescription
Multiprotocol Extensions1The address families (AFI / SAFI) the router can handle. IPv4 unicast is AFI 1 / SAFI 1.
Route Refresh2Allows requesting that a peer resend its routes without a reset.
Extended Next Hop Encoding5Allows an IPv6 address as the next hop of IPv4 routes.
4-octet AS Number65Indicates support for 4-byte AS numbers and conveys the router’s real AS number.

UPDATE Message

An UPDATE message carries routing information. A single UPDATE can carry both routes to withdraw (Withdrawn Routes) and new routes (NLRI) that share the same set of path attributes.

FieldSizeDescription
Withdrawn Routes Length2 bytesThe length of the Withdrawn Routes in bytes.
Withdrawn RoutesvariableThe list of prefixes being withdrawn.
Total Path Attribute Length2 bytesThe length of the Path Attributes in bytes.
Path AttributesvariableThe path attributes shared by the NLRI that follows (ORIGIN, AS_PATH, NEXT_HOP, and so on).
NLRIvariableThe list of prefixes being advertised (Network Layer Reachability Information).

The types and roles of path attributes are covered in BGP Path Attributes and Best Path Selection.

Advertising and Withdrawing Routes

An UPDATE message is used both to advertise routes and to withdraw them.

PurposeWithdrawn RoutesPath Attributes / NLRI
Advertising a routeemptycontains the prefixes being advertised and their path attributes
Withdrawing a routecontains the prefixes being withdrawnempty

When a route that was being advertised becomes unusable, for example because an interface goes down, the router sends an UPDATE with that route in the Withdrawn Routes to its peers. A withdrawal needs no path attributes, so the UPDATE has a Total Path Attribute Length of 0 and an empty NLRI. A router receiving it removes the route from its BGP table and passes the withdrawal on to its own peers, so a withdrawal propagates across ASes in a chain.

An UPDATE with neither Path Attributes nor NLRI (Length = 23) is called the End-of-RIB marker. It is sent to tell the peer that the initial advertisement after session establishment is complete (RFC 4724).

KEEPALIVE Message

A KEEPALIVE message consists of the common header only and is 19 bytes long. It is sent at one third of the Hold Time (every 60 seconds with the Cisco defaults), and if neither a KEEPALIVE nor an UPDATE arrives within the Hold Time, the peer tears down the session. It is also used to signal acceptance of the peer’s OPEN.

NOTIFICATION Message

A NOTIFICATION message is sent when an error is detected, and the TCP session is closed after it is sent.

Error codeMeaningTypical subcodes
1Message Header ErrorConnection not synchronized, bad message length, bad message type
2OPEN Message ErrorUnsupported version, bad peer AS, bad BGP Identifier, unacceptable Hold Time
3UPDATE Message ErrorMalformed attribute list, missing well-known attribute, invalid NEXT_HOP, malformed AS_PATH, and so on
4Hold Timer ExpiredNothing was received within the Hold Time
5Finite State Machine ErrorA message was received that is not allowed in the current state
6CeaseTeardown for any other reason, such as an administrative shutdown or reset, or exceeding the maximum prefix count (RFC 4486)

Verification on Real Devices

I use the same lab as in BGP (Border Gateway Protocol): four IOS XR (XRd) routers spread across three ASes. R1 - R2 is an iBGP peering, R2 - R3 and R3 - R4 are eBGP peerings, and each router advertises its Loopback1 network (192.168.N.0/24) into BGP.

While capturing packets on TCP port 179 on the R2 - R3 (eBGP) link, I performed the following operations.

OperationPurpose
clear bgp 10.2.3.3 on R2Tear down and re-establish the session (NOTIFICATION / OPEN / KEEPALIVE / UPDATE)
shutdown on interface Loopback1 of R4Withdraw 192.168.4.0/24
no shutdown on interface Loopback1 of R4Re-advertise 192.168.4.0/24

Below is the packet list as displayed by tshark, which ships with Wireshark; it contains all four message types as well as a route withdrawal.

Packet capture between R2 and R3 (tshark list)
    1   0.000000     10.2.3.2 → 10.2.3.3     BGP 75 NOTIFICATION Message
    2   0.000266     10.2.3.2 → 10.2.3.3     TCP 54 179 → 19652 [FIN, ACK] Seq=22 Ack=1 Win=32559 Len=0
    3   0.003450     10.2.3.3 → 10.2.3.2     TCP 54 19652 → 179 [ACK] Seq=1 Ack=23 Win=32595 Len=0
    4   0.005387     10.2.3.3 → 10.2.3.2     TCP 54 19652 → 179 [FIN, ACK] Seq=1 Ack=23 Win=32595 Len=0
    5   0.007794     10.2.3.2 → 10.2.3.3     TCP 54 179 → 19652 [ACK] Seq=23 Ack=2 Win=32559 Len=0
    6   0.798224     10.2.3.2 → 10.2.3.3     TCP 62 61661 → 179 [SYN] Seq=0 Win=32768 Len=0 MSS=1240 WS=1
    7   0.802226     10.2.3.3 → 10.2.3.2     TCP 62 179 → 61661 [SYN, ACK] Seq=0 Ack=1 Win=16384 Len=0 MSS=1240 WS=1
    8   0.805094     10.2.3.2 → 10.2.3.3     TCP 54 61661 → 179 [ACK] Seq=1 Ack=1 Win=32768 Len=0
    9   0.806853     10.2.3.2 → 10.2.3.3     BGP 129 OPEN Message
   10   0.875909     10.2.3.3 → 10.2.3.2     TCP 54 179 → 61661 [RST, ACK] Seq=1 Ack=1 Win=16384 Len=0
   11  30.000920     10.2.3.2 → 10.2.3.3     TCP 54 179 → 19652 [RST, ACK] Seq=23 Ack=2 Win=32559 Len=0
   12  38.840964     10.2.3.3 → 10.2.3.2     TCP 62 35164 → 179 [SYN] Seq=0 Win=32768 Len=0 MSS=1240 WS=1
   13  38.845366     10.2.3.2 → 10.2.3.3     TCP 62 179 → 35164 [SYN, ACK] Seq=0 Ack=1 Win=16384 Len=0 MSS=1240 WS=1
   14  38.848041     10.2.3.3 → 10.2.3.2     TCP 54 35164 → 179 [ACK] Seq=1 Ack=1 Win=32768 Len=0
   15  38.849087     10.2.3.3 → 10.2.3.2     BGP 129 OPEN Message
   16  40.850179     10.2.3.3 → 10.2.3.2     TCP 129 [TCP Retransmission] 35164 → 179 [PSH, ACK] Seq=1 Ack=1 Win=32768 Len=75
   17  40.855228     10.2.3.2 → 10.2.3.3     TCP 54 179 → 35164 [ACK] Seq=1 Ack=76 Win=32768 Len=0
   18  40.855434     10.2.3.2 → 10.2.3.3     BGP 148 OPEN Message, KEEPALIVE Message
   19  40.859768     10.2.3.3 → 10.2.3.2     BGP 73 KEEPALIVE Message
   20  40.895317     10.2.3.2 → 10.2.3.3     BGP 190 UPDATE Message, UPDATE Message, UPDATE Message
   21  40.898045     10.2.3.3 → 10.2.3.2     BGP 194 UPDATE Message, UPDATE Message, UPDATE Message
   22  41.101392     10.2.3.2 → 10.2.3.3     TCP 54 179 → 35164 [ACK] Seq=231 Ack=235 Win=32609 Len=0
   23  70.889654     10.2.3.3 → 10.2.3.2     BGP 187 UPDATE Message, UPDATE Message, KEEPALIVE Message
   24  71.093729     10.2.3.2 → 10.2.3.3     TCP 54 179 → 35164 [ACK] Seq=231 Ack=368 Win=32476 Len=0
   25  81.452121     10.2.3.3 → 10.2.3.2     BGP 81 UPDATE Message
   26  81.655926     10.2.3.2 → 10.2.3.3     TCP 54 179 → 35164 [ACK] Seq=231 Ack=395 Win=32449 Len=0
   27 100.896608     10.2.3.2 → 10.2.3.3     BGP 73 KEEPALIVE Message
   28 101.100919     10.2.3.3 → 10.2.3.2     TCP 54 35164 → 179 [ACK] Seq=395 Ack=250 Win=32519 Len=0
   29 129.985465     10.2.3.3 → 10.2.3.2     BGP 111 UPDATE Message
   30 130.188911     10.2.3.2 → 10.2.3.3     TCP 54 179 → 35164 [ACK] Seq=250 Ack=452 Win=32392 Len=0
   31 160.897052     10.2.3.2 → 10.2.3.3     BGP 73 KEEPALIVE Message
   32 161.101276     10.2.3.3 → 10.2.3.2     TCP 54 35164 → 179 [ACK] Seq=452 Ack=269 Win=32500 Len=0
   33 189.986189     10.2.3.3 → 10.2.3.2     BGP 73 KEEPALIVE Message
   34 190.189786     10.2.3.2 → 10.2.3.3     TCP 54 179 → 35164 [ACK] Seq=269 Ack=471 Win=32373 Len=0
No.Description
1 to 5clear bgp makes R2 send a NOTIFICATION and close the TCP session.
6 to 10R2 immediately tries to reconnect, but R3, just after the reset, refuses with an RST.
12 to 17About 38 seconds later, a TCP three-way handshake initiated by R3 completes and R3 sends an OPEN (No. 16 is a TCP retransmission because no ACK came back).
18 to 19R2 returns an OPEN and a KEEPALIVE, R3 returns a KEEPALIVE, and the session becomes Established.
20 to 21Both sides advertise their routes with UPDATEs. The last one is the End-of-RIB marker signaling that the initial advertisement is complete.
23R3 advertises the routes it received from R2 back to R2 with its own AS number prepended to the AS_PATH (R2 detects its own AS and discards them).
25Because Loopback1 on R4 was shut down, R3 sends an UPDATE withdrawing 192.168.4.0/24.
29Because Loopback1 on R4 was brought back up, R3 advertises 192.168.4.0/24 again.
27, 31, 33Each router sends a KEEPALIVE every 60 seconds to maintain the session.

Inside the OPEN Message

The OPEN message sent by R3 in No. 15. The header Type is 1, the Version is 4, the AS number is 65002, the Hold Time is 180 seconds, and the BGP Identifier is 10.0.0.3. The Optional Parameters carry the Multiprotocol Extensions, Route Refresh, 4-octet AS Number, and Extended Next Hop Encoding capabilities.

Download just this No.15 (OPEN) (bgp-no15.pcap)
No. 15 OPEN (R3 to R2) tshark -V
Border Gateway Protocol - OPEN Message
    Marker: ffffffffffffffffffffffffffffffff
    Length: 75
    Type: OPEN Message (1)
    Version: 4
    My AS: 65002
    Hold Time: 180
    BGP Identifier: 10.0.0.3
    Optional Parameters Length: 46
    Optional Parameters
        Optional Parameter: Capability
            Parameter Type: Capability (2)
            Parameter Length: 6
            Capability: Multiprotocol extensions capability
                Type: Multiprotocol extensions capability (1)
                Length: 4
                AFI: IPv4 (1)
                Reserved: 00
                SAFI: Unicast (1)
        Optional Parameter: Capability
            Parameter Type: Capability (2)
            Parameter Length: 2
            Capability: Route Refresh Capability (Cisco)
                Type: Route Refresh Capability (Cisco) (128)
                Length: 0
        Optional Parameter: Capability
            Parameter Type: Capability (2)
            Parameter Length: 2
            Capability: Route refresh capability
                Type: Route refresh capability (2)
                Length: 0
        Optional Parameter: Capability
            Parameter Type: Capability (2)
            Parameter Length: 6
            Capability: Support for 4-octet AS number capability
                Type: Support for 4-octet AS number capability (65)
                Length: 4
                AS Number: 65002
        Optional Parameter: Capability
            Parameter Type: Capability (2)
            Parameter Length: 20
            Capability: Extended Next Hop Encoding
                Type: Extended Next Hop Encoding (5)
                Length: 18
                AFI: IPv4 (1)
                SAFI: Unicast (1)
                Next hop AFI: IPv6 (2)
                AFI: IPv4 (1)
                SAFI: Multicast (2)
                Next hop AFI: IPv6 (2)
                AFI: IPv4 (1)
                SAFI: Labeled VPN Unicast (128)
                Next hop AFI: IPv6 (2)

Looking at the bytes of the same packet, after the 16 ff bytes of the Marker come the Length 00 4b (75 bytes), Type 01, Version 04, AS number fd ea (65002), Hold Time 00 b4 (180), BGP Identifier 0a 00 00 03 (10.0.0.3), and Opt Parm Len 2e (46), exactly as the structure describes.

No. 15 OPEN (R3 to R2) tshark -x (BGP portion)
0020  03 02 89 5c 00 b3 c2 27 be e7 08 e5 d1 36 50 18   ...\...'.....6P.
0030  80 00 40 7b 00 00 ff ff ff ff ff ff ff ff ff ff   ..@{............
0040  ff ff ff ff ff ff 00 4b 01 04 fd ea 00 b4 0a 00   .......K........
0050  00 03 2e 02 06 01 04 00 01 00 01 02 02 80 00 02   ................
0060  02 02 00 02 06 41 04 00 00 fd ea 02 14 05 12 00   .....A..........
0070  01 00 01 00 02 00 01 00 02 00 02 00 01 00 80 00   ................
0080  02                                                .

Inside the KEEPALIVE Message

The KEEPALIVE with which R3 accepted the OPEN in No. 19. It is 19 bytes, the common header only.

Download just this No.19 (KEEPALIVE) (bgp-no19.pcap)
No. 19 KEEPALIVE (R3 to R2) tshark -V
Border Gateway Protocol - KEEPALIVE Message
    Marker: ffffffffffffffffffffffffffffffff
    Length: 19
    Type: KEEPALIVE Message (4)

Inside the UPDATE Message (Advertising a Route)

The TCP segment in No. 21 contains three UPDATEs. The first advertises 192.168.3.0/24 from R3, with the path attributes ORIGIN, AS_PATH, and MULTI_EXIT_DISC.

Download just this No.21 (UPDATE) (bgp-no21.pcap)
No. 21 UPDATE (R3 to R2, first) tshark -V
Border Gateway Protocol - UPDATE Message
    Marker: ffffffffffffffffffffffffffffffff
    Length: 60
    Type: UPDATE Message (2)
    Withdrawn Routes Length: 0
    Total Path Attribute Length: 37
    Path attributes
        Path Attribute - MP_REACH_NLRI
            Flags: 0x90, Optional, Extended-Length, Non-transitive, Complete
                1... .... = Optional: Set
                .0.. .... = Transitive: Not set
                ..0. .... = Partial: Not set
                ...1 .... = Extended-Length: Set
                .... 0000 = Unused: 0x0
            Type Code: MP_REACH_NLRI (14)
            Length: 13
            Address family identifier (AFI): IPv4 (1)
            Subsequent address family identifier (SAFI): Unicast (1)
            Next hop: 10.2.3.3
                IPv4 Address: 10.2.3.3
            Number of Subnetwork points of attachment (SNPA): 0
            Network Layer Reachability Information (NLRI)
                192.168.3.0/24
                    MP Reach NLRI prefix length: 24
                    MP Reach NLRI IPv4 prefix: 192.168.3.0
        Path Attribute - ORIGIN: IGP
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: ORIGIN (1)
            Length: 1
            Origin: IGP (0)
        Path Attribute - AS_PATH: 65002 
            Flags: 0x40, Transitive, Well-known, Complete
                0... .... = Optional: Not set
                .1.. .... = Transitive: Set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: AS_PATH (2)
            Length: 6
            AS Path segment: 65002
                Segment type: AS_SEQUENCE (2)
                Segment length (number of ASN): 1
                AS4: 65002
        Path Attribute - MULTI_EXIT_DISC: 0
            Flags: 0x80, Optional, Non-transitive, Complete
                1... .... = Optional: Set
                .0.. .... = Transitive: Not set
                ..0. .... = Partial: Not set
                ...0 .... = Extended-Length: Not set
                .... 0000 = Unused: 0x0
            Type Code: MULTI_EXIT_DISC (4)
            Length: 4
            Multiple exit discriminator: 0
Because XRd exchanges the Extended Next Hop Encoding capability in the OPEN, the prefix and next hop of even IPv4 unicast routes are carried inside the MP_REACH_NLRI attribute (RFC 4760) rather than in the NLRI field of the UPDATE body. In the basic form defined in RFC 4271, the next hop is carried in the NEXT_HOP attribute and the prefixes in the NLRI field.

The third UPDATE is the 23-byte End-of-RIB marker with no attributes and no NLRI, indicating that the initial advertisement is complete.

No. 21 UPDATE (R3 to R2, third = End-of-RIB) tshark -V
Border Gateway Protocol - UPDATE Message
    Marker: ffffffffffffffffffffffffffffffff
    Length: 23
    Type: UPDATE Message (2)
    Withdrawn Routes Length: 0
    Total Path Attribute Length: 0

Inside the UPDATE Message (Withdrawing a Route)

Shutting down Loopback1 on R4 makes 192.168.4.0/24 no longer advertisable.

Shutting down Loopback1 on R4
RP/0/RP0/CPU0:R4#show running-config interface Loopback1
Sat Sep  5 04:13:22.993 UTC
interface Loopback1
 description advertised network 192.168.4.0/24
 ipv4 address 192.168.4.1 255.255.255.0
 shutdown
!

The withdrawal propagates from R4 to R3 to R2 to R1. On the R2 - R3 link it appears as the UPDATE in No. 25. 192.168.4.0/24 is in the Withdrawn Routes, the Total Path Attribute Length is 0, and there are no path attributes and no NLRI.

Download just this No.25 (UPDATE) (bgp-no25.pcap)
No. 25 UPDATE (R3 to R2, withdrawing a route) tshark -V
Border Gateway Protocol - UPDATE Message
    Marker: ffffffffffffffffffffffffffffffff
    Length: 27
    Type: UPDATE Message (2)
    Withdrawn Routes Length: 4
    Withdrawn Routes
        192.168.4.0/24
            Withdrawn route prefix length: 24
            Withdrawn prefix: 192.168.4.0
    Total Path Attribute Length: 0

In the raw bytes, the Length 00 1b (27 bytes) and Type 02 (UPDATE) are followed by the Withdrawn Routes Length 00 04, the prefix length 18 (24), the prefix c0 a8 04 00 (192.168.4.0), and the Total Path Attribute Length 00 00.

No. 25 UPDATE (R3 to R2, withdrawing a route) tshark -x (BGP portion)
0020  03 02 89 5c 00 b3 c2 27 c0 56 08 e5 d2 1c 50 18   ...\...'.V....P.
0030  7f 1a 64 23 00 00 ff ff ff ff ff ff ff ff ff ff   ..d#............
0040  ff ff ff ff ff ff 00 1b 02 00 04 18 c0 a8 04 00   ................
0050  00                                                .

Before the withdrawal, R2’s BGP table held four routes.

R2 show bgp (before the withdrawal)
RP/0/RP0/CPU0:R2#show bgp
<snip>
Status codes: s suppressed, d damped, h history, * valid, > best
              i - internal, r RIB-failure, S stale, N Nexthop-discard
Origin codes: i - IGP, e - EGP, ? - incomplete
   Network            Next Hop            Metric LocPrf Weight Path
*>i192.168.1.0/24     10.0.0.1                 0    100      0 i
*> 192.168.2.0/24     0.0.0.0                  0         32768 i
*> 192.168.3.0/24     10.2.3.3                 0             0 65002 i
*> 192.168.4.0/24     10.2.3.3                               0 65002 65003 i

Processed 4 prefixes, 4 paths

After the withdrawal, 192.168.4.0/24 is gone and three routes remain.

R2 show bgp (after the withdrawal)
RP/0/RP0/CPU0:R2#show bgp
<snip>
Status codes: s suppressed, d damped, h history, * valid, > best
              i - internal, r RIB-failure, S stale, N Nexthop-discard
Origin codes: i - IGP, e - EGP, ? - incomplete
   Network            Next Hop            Metric LocPrf Weight Path
*>i192.168.1.0/24     10.0.0.1                 0    100      0 i
*> 192.168.2.0/24     0.0.0.0                  0         32768 i
*> 192.168.3.0/24     10.2.3.3                 0             0 65002 i

Processed 3 prefixes, 3 paths

The same route is also removed from the routing table of R1, deeper inside AS 65001.

R1 show route bgp (after the withdrawal)
RP/0/RP0/CPU0:R1#show route bgp
Sat Sep  5 04:13:44.000 UTC

B    192.168.2.0/24 [200/0] via 10.0.0.2, 01:02:47
B    192.168.3.0/24 [200/0] via 10.2.3.3, 00:01:14

Bringing Loopback1 on R4 back up with no shutdown re-advertises 192.168.4.0/24 in the UPDATE of No. 29, and it reappears in R1’s routing table.

R1 show route bgp (after re-advertisement)
RP/0/RP0/CPU0:R1#show route bgp
Sat Sep  5 04:15:06.708 UTC

B    192.168.2.0/24 [200/0] via 10.0.0.2, 01:04:09
B    192.168.3.0/24 [200/0] via 10.2.3.3, 00:02:37
B    192.168.4.0/24 [200/0] via 10.2.3.3, 00:01:08

show bgp neighbor on R3 counts how many prefixes it advertised to R2 and how many it withdrew.

R3 show bgp neighbor 10.2.3.2 (excerpt)
RP/0/RP0/CPU0:R3#show bgp neighbor 10.2.3.2 | include Prefix advertised
Sat Sep  5 04:14:46.469 UTC
  Prefix advertised 5, suppressed 0, withdrawn 1

Inside the NOTIFICATION Message

The NOTIFICATION sent by R2 in No. 1. Because the teardown was caused by clear bgp, the Error code is 6 (Cease) and the subcode is 4 (Administratively Reset).

Download just this No.1 (NOTIFICATION) (bgp-no1.pcap)
No. 1 NOTIFICATION (R2 to R3) tshark -V
Border Gateway Protocol - NOTIFICATION Message
    Marker: ffffffffffffffffffffffffffffffff
    Length: 21
    Type: NOTIFICATION Message (3)
    Major error Code: Cease (6)
    Minor error Code (Cease): Administratively Reset (4)

Checking the Message Counters

show bgp neighbor shows the number of messages exchanged with a peer, the capabilities exchanged in the OPEN, and the Hold Time and KEEPALIVE interval.

R2 show bgp neighbor 10.2.3.3 (excerpt)
RP/0/RP0/CPU0:R2#show bgp neighbor 10.2.3.3
Sat Sep  5 04:14:33.229 UTC

BGP neighbor is 10.2.3.3
 Remote AS 65002, local AS 65001, external link
 Description: eBGP to R3
 Remote router ID 10.0.0.3
  BGP state = Established, up for 00:02:04
  Previous State: Idle
  Last Received Message: Update
  NSR State: None
  Last read 00:00:35, Last read before reset 00:03:04
  Hold time is 180, keepalive interval is 60 seconds
  Configured hold time: 180, keepalive: 60, min acceptable hold time: 3
  Precedence: internet
  Non-stop routing is enabled
  Enforcing first AS is enabled
  Multi-protocol capability received
  Neighbor capabilities:
    Route refresh: advertised (old + new) and received (old + new)
    4-byte AS: advertised and received
    Address family IPv4 Unicast: advertised and received
  Received 79 messages, 0 notifications, 0 in queue
  Sent 77 messages, 1 notifications, 0 in queue
  Minimum time between advertisement runs is 30 secs
Download bgp.pcap

Configuration Files

Download R1 config (r1_bgp-message.cfg)

Download R2 config (r2_bgp-message.cfg)

Download R3 config (r3_bgp-message.cfg)

Download R4 config (r4_bgp-message.cfg)

Command Outputs

The output of show route, show bgp, show bgp <prefix> (for all four prefixes), show bgp summary, and show bgp neighbor, collected per router.

Download R1 output (r1_bgp-message_show.txt)

Download R2 output (r2_bgp-message_show.txt)

Download R3 output (r3_bgp-message_show.txt)

Download R4 output (r4_bgp-message_show.txt)

References

SourceTitleSummary
IANABorder Gateway Protocol (BGP) ParametersThe registry of numbers used by BGP: message types, path attributes, capability codes, NOTIFICATION error codes and subcodes, and more.
RFC 4271A Border Gateway Protocol 4 (BGP-4)The base specification of BGP-4, defining the format of each message.
RFC 5492Capabilities Advertisement with BGP-4Defines the capabilities carried in the OPEN message.
RFC 4486Subcodes for BGP Cease Notification MessageDefines the subcodes of the Cease NOTIFICATION.
RFC 4724Graceful Restart Mechanism for BGPDefines the End-of-RIB marker.
RFC 4760Multiprotocol Extensions for BGP-4Defines the MP_REACH_NLRI / MP_UNREACH_NLRI attributes.

Related Articles