Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

show bgp replication

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
show bgp replication
rib-sharding (rib-shard-name)

Description

Displays the status of BGP state replication between the primary and backup Routing Engines on devices that have nonstop active routing configured on them.

CAUTION:

Before attempting nonstop active routing switchover, check the output of show bgp replication to confirm that BGP routing table synchronization has completed on the backup Routing Engine. The complete status in the output of show task replication only indicates that the socket replication has completed and the BGP synchronization is in progress.

To determine whether BGP synchronization is complete, you must check the Protocol state and Synchronization state fields in the output of show bgp replication on the primary Routing Engine. The Protocol state must be idle and the Synchronization state must be complete. If you perform NSR switchover before the BGP synchronization has completed, the BGP session might flap.

Options
rib-sharding (rib-shard-name)

(Optional) Display replicated information for specific shard only.

Required Privilege Level

view

Output Fields

Table 1 lists the output fields for the show bgp replication command. Output fields are listed in the approximate order in which they appear.

Table 1: show bgp replication Output Fields

Field Name

Field Description

Precision timer registration

State of BGP precision timer feature in the kernel.

  • Registered

    BGP registers with the precision-timer feature in the kernel for auto keepalive generation after switchover.

  • NotRegistered

    Keepalive format of BGP is not registered.

session state

State of the current internal BGP state replication session, Up or Down, and the duration for which the session has been in the indicated state.

flaps

Total number of flaps that occurred.

protocol state

Current state of the protocol operation, Active, Connect, Idle, and the duration for which the protocol has been in the indicated state.

synchronization state

Synchronization state at the time of executing the command. The states can be:

  • Idle

  • Neighbor—Indicates that the neighbor state synchronization is in progress.

  • AckWait—Indicates that the request processing is over.

  • ORF—Indicates that the outbound routing filter synchronization is in progress.

  • RIB—Indicates that the routing table synchronization is in progress.

  • Complete

number of peers waiting

Total number of peers waiting for various messages:

  • AckWait—Number of peers waiting for a connection establishment or completed acknowledgment messages.

  • SoWait—Number of peers waiting for TCP socket-related operations.

  • Scheduled—Number of peers being synchronized.

messages sent

Number of various types of messages that have been sent since internal replication session became active:

  • Open—Number of Open messages sent.

  • Establish—Number of connection establishment acknowledgment messages sent.

  • Update—Number of update messages sent.

  • Error—Number of error messages sent.

  • Complete—Number of connection complete acknowledgment messages sent.

messages received

Total number of messages received:

  • Open—Number of Open messages received.

  • Request—Number of request messages received:

    • Wildcard—Number of requests received that used wildcards in the target address.

    • Targeted—Number of requests received that used a specific address.

  • EstablishAck—Number of connection establishment acknowledgement messages received.

  • CompleteAck—Number of connection completed acknowledgement messages received.

Sample Output

show bgp replication (for Primary)

content_copy zoom_out_map
user@host> show bgp replication
Synchronization master:
  Precision timer registration: Registered
  Session state: Up, Since: 10:14
  Flaps: 1, Last flap reason: Backup closed connection
  Protocol state: Idle, Since: 10:14
  Synchronization state: Complete
  Number of peers waiting: AckWait: 0, SoWait: 0, Scheduled: 0
  Messages sent: Open 1, Establish 11, GrHelper 0, Update 0, GrStaleLabel 0 Error 0, Complete 1
  Messages received: Open 1, Request 1 wildcard 0 targeted, EstablishAck 11, GrHelperAck 0, CompleteAck 1

show bgp replication (for Primary with rib-sharding configured)

content_copy zoom_out_map
user@host> show bgp replication rib-sharding junos-bgpshard0  
Synchronization master:
  Precision timer registration: NotRegistered
  Session state: Up, Since: 15:12
  Flaps: 0
  Protocol state: Idle, Since: 15:12
  Synchronization state: Complete
  Number of peers waiting: AckWait: 0, SoWait: 0, Scheduled: 0
  Messages sent: Open 1, Establish 0, GrHelper 0, Update 0, GrStaleLabel 0 Error 0, Complete 1
  Messages received: Open 1, Request 0 wildcard 0 targeted, EstablishAck 0, GrHelperAck 0, CompleteAck 1

show bgp replication (for Backup)

content_copy zoom_out_map
user@host> show bgp replication
Synchronization backup:
  State: Established 13 ago
  , Unsync timer: 2

    Unsync entry queue:
        Instance: 0 Neighbor: 30.30.30.1 elapsed: 7
        Instance: 0 Neighbor: 40.40.40.3 elapsed: 7
        Instance: 0 Neighbor: 40.40.40.4 elapsed: 7
        Instance: 0 Neighbor: 40.40.40.5 elapsed: 7
        Instance: 0 Neighbor: 40.40.40.6 elapsed: 7
        Instance: 0 Neighbor: 40.40.40.1 elapsed: 7
        Instance: 0 Neighbor: 40.40.40.2 elapsed: 7

show bgp replication (for Backup with rib-sharding configured)

content_copy zoom_out_map
user@host> show bgp replication rib-sharding junos-bgpshard0    
Synchronization backup:
State: Established 17:48 ago

Release Information

Command introduced in Junos OS Release 8.5.

Support for logical-system option introduced in Junos OS Release 13.3.

Support for rib-sharding (rib-shard-name) option introduced in Junos OS and Junos Evolved Release 22.2.

footer-navigation