Study guide

11.1 BGP Roles, AS Numbers and TCP Transport

JNCIS-ENT Enterprise Routing and Switching Study Guide 2026 Exam

Track your progress as you read

Finished sections get a check mark.

1 Chapter 1: Exam Overview & Junos Enterprise Fundamentals

1.1 JNCIS-ENT Exam Logistics & Blueprint Breakdown 1.2 Junos CLI, Enterprise Platforms & Interface Families 1.3 Layer 2 Bridging Mechanics & Packet Forwarding

2 Chapter 2: VLANs & Inter-VLAN Routing

2.1 VLAN Segmentation and 802.1Q Tags 2.2 Access, Trunk, Native and Voice VLANs 2.3 IRB Architecture and Interface Families 2.4 IRB Configuration and Packet Walk 2.5 VLAN Configuration, Verification & Troubleshooting

3 Chapter 3: Spanning Tree Protocols

3.1 Layer 2 Loops and Root Bridge Election 3.2 STP Costs, Port Roles, States and BPDUs 3.3 RSTP Rapid Convergence & Link Types 3.4 MSTP Architecture & Spanning Tree Operations

4 Chapter 4: Layer 2 Security & Feature Protection

4.1 Edge BPDU and Root Protection 4.2 Loop Protection and Diagnostic States 4.3 Port Security, MAC Limiting & Persistent MAC Learning 4.4 DHCP Snooping, Dynamic ARP Inspection (DAI) & IP Source Guard 4.5 Layer 2 Firewall Filters: Types, Order and Actions

5 Chapter 5: Advanced Layer 2 Features & Storm Control

5.1 Storm Control & Broadcast/Multicast Suppression 5.2 MACsec Link Security and Key Agreement 5.3 LLDP and LLDP-MED Operations & Verification

6 Chapter 6: Protocol-Independent Routing & Load Balancing

6.1 Static, Aggregate, and Generated Routes 6.2 Routing Instances and RIB Groups 6.3 Junos Load Balancing & Filter-Based Forwarding (FBF) 6.4 Martian Routes and Route Acceptance

7 Chapter 7: Junos Routing Policy & Firewall Filters

7.1 Routing Policy Framework & Term Evaluation 7.2 Prefix Lists & Route Filters 7.3 Firewall Filters & Policers

8 Chapter 8: Open Shortest Path First (OSPF) Operation

8.1 OSPF Architecture & Neighbor Adjacency Formation 8.2 OSPF Areas & LSA Types 8.3 OSPFv2 & OSPFv3 Configuration and Verification

9 Chapter 9: Advanced OSPF Features & Routing Policies

9.1 OSPF Special Area Types 9.2 Route Summarization & OSPF Authentication 9.3 OSPF Diagnostics & Common Failure Scenarios

10 Chapter 10: Intermediate System to Intermediate System (IS-IS)

10.1 IS-IS Encapsulation and NET Identity 10.2 IS-IS Levels, Areas and Default Routing 10.3 IS-IS PDU Families and Neighbor Exchange 10.4 IS-IS Database Synchronization and DIS 10.5 IS-IS Configuration, Metrics & Troubleshooting

11 Chapter 11: Border Gateway Protocol (BGP)

11.1 BGP Roles, AS Numbers and TCP Transport 11.2 EBGP/IBGP Sessions, State Machine and Messages 11.3 BGP Attributes & Junos Path Selection Algorithm 11.4 BGP Configuration & Policy Implementation 11.5 BGP Scaling with Route Reflection & Diagnostics

12 Chapter 12: IP Tunneling & High Availability

12.1 GRE & IP-IP Tunneling Architecture 12.2 Link Aggregation (LAG/LACP) & Redundant Trunk Groups (RTG) 12.3 Virtual Chassis Roles and Elections 12.4 Virtual Chassis Links, Splits and Provisioning 12.5 Routing Engine Redundancy: GRES, NSR, NSB and GR 12.6 BFD Detection and VRRP Gateway Redundancy 12.7 Unified ISSU: Requirements and Verification

11.1 BGP Roles, AS Numbers and TCP Transport

Key Takeaways Explain This Topic AI

BGP is a path-vector protocol carried over TCP destination port 179.

Private ASN ranges are 64512–65534 and 4200000000–4294967294.

AS_TRANS 23456 and AS4_PATH provide interoperability with legacy two-octet ASN speakers.

Last updated: October 2026

BGP Operations & Peering Mechanics

The Border Gateway Protocol (BGP-4), defined in RFC 4271, is the standard Exterior Gateway Protocol (EGP) of the global Internet and modern enterprise routing infrastructures. While Interior Gateway Protocols (IGPs) like OSPF and IS-IS calculate the shortest topological path within an administrative domain using link metrics, BGP is designed to exchange routing reachability information between independent routing domains—called Autonomous Systems (AS)—under strict administrative, business, and security policies.

In enterprise networks, BGP is deployed at the Internet edge to facilitate multi-homing to multiple Internet Service Providers (ISPs), across redundant WAN backbones connecting distributed campuses, and within modern data center Clos architectures utilizing EVPN-VXLAN overlays.

1. BGP Architecture & Enterprise Roles

BGP is fundamentally classified as a path-vector routing protocol . Unlike distance-vector protocols that evaluate hops blindly without topological context, BGP maintains the complete sequence of Autonomous System numbers that an advertisement has traversed in its AS_PATH attribute. This path-vector mechanism guarantees loop prevention across the global Internet: if a router observes its own local AS number within an incoming route advertisement, it immediately discards the route. +---------------------------------------------------------------------------------------------------+

  • | ENTERPRISE MULTI-HOMING WITH BGP |
  • | |
  • | +------------------+ +------------------+ |
  • | | Upstream ISP A | | Upstream ISP B | |
  • | | AS 64496 | | AS 64497 | |
  • | +------------------+ +------------------+ |
  • | ^ ^ |
  • | EBGP | (TTL=1) EBGP | (TTL=1) |
  • | v v |
  • | +------------------+ +------------------+ |
  • | | Edge Router R1 |=========| Edge Router R2 | |
  • | | (AS 65000) | IBGP | (AS 65000) | |
  • | +------------------+ (TTL=255+------------------+ |
  • | \ / |
  • | \ Core / IGP / |
  • | +-----------------------+ |
  • | | Enterprise Campus | |
  • | +-----------------------+ |
  • +---------------------------------------------------------------------------------------------------+
  • Primary Enterprise Use Cases

Internet Multi-Homing : Connecting to two or more ISPs to provide path redundancy, load distribution, and failover survivability. Enterprise edge routers exchange customer prefixes and receive either a full Internet routing table (over 950,000 IPv4 routes), a partial table (ISP direct routes + customer routes), or a simple default route ( 0.0.0.0/0 ) accompanied by provider summaries.

Data Center Fabrics : BGP (often eBGP per rack or tier) serves as the scalable underlay and overlay control plane in modern spine-and-leaf fabrics, replacing complex IGP configurations.

Inter-Data Center Interconnects (DCI) : Extending Layer 2 and Layer 3 virtualization across geographically disparate enterprise sites using BGP-signaled overlays (such as EVPN).

2. Autonomous System Numbers (ASN)

An Autonomous System (AS) is a collection of connected IP routing prefixes under the control of one or more network operators on behalf of a single administrative entity, presenting a clearly defined interior routing policy to the Internet.

2-Byte vs. 4-Byte ASNs

Originally, RFC 1771 allocated 16-bit (2-byte) integers for Autonomous System Numbers, providing a ceiling of 65,535 ASNs. As the Internet expanded exponentially, IETF introduced 32-bit (4-byte) AS numbers in RFC 4893 and RFC 6793, expanding the address space to 4,294,967,295 ASNs. +---------------------------------------------------------------------------------------------------+

  • | AUTONOMOUS SYSTEM NUMBER (ASN) RANGES & ALLOCATIONS |
  • +-----------------------+-----------------------------+---------------------------------------------+
  • | ASN Category | 2-Byte (16-bit) Range | 4-Byte (32-bit) Extended Range |
  • +-----------------------+-----------------------------+---------------------------------------------+

| Public ASNs | Allocated non-reserved values | 65,552 - 4,199,999,999 (subject to IANA allocation/reservations) |

  • | Documentation / RFC | 64,496 - 64,511 (RFC 5398) | 65,536 - 65,551 (RFC 5398) |
  • | Private ASNs | 64,512 - 65,534 | 4,200,000,000 - 4,294,967,294 |
  • | Reserved Special | 0 and 65,535 | 4,294,967,295 |
  • +-----------------------+-----------------------------+---------------------------------------------+
  • Representation Formats and Transition Mechanics

asplain : Displays 4-byte numbers as a single, flat decimal integer (e.g., 65536 or 4200000000 ). This is the native, default format used by Junos OS.

asdot : Displays 4-byte ASNs as two 16-bit values separated by a dot in high.low notation, where high is the upper 16 bits and low is the lower 16 bits. For example, ASN 65536 is represented as 1.0 ( 1 × 65536 + 0 1 \times 65536 + 0 1 × 65536 + 0 ).

To ensure backward compatibility between modern 4-byte BGP speakers and legacy 2-byte routers, RFC 4893 introduced AS_TRANS (reserved ASN 23456 ). When a modern BGP speaker advertises a 4-byte ASN to an older 2-byte peer, it substitutes 23456 in the traditional 2-byte AS_PATH attribute and encodes the true 32-bit path in a newly defined transitive attribute named AS4_PATH . This allows legacy peers to forward traffic without corrupting 4-byte path-vector integrity.

3. TCP Transport Mechanics (Port 179)

Unlike IGPs such as OSPF (which encapsulates directly into IP protocol 89) or IS-IS (which runs natively over Layer 2 frames), BGP relies entirely on the Transmission Control Protocol (TCP) for reliable, sequenced, and flow-controlled transport. BGP communicates over TCP destination port 179 .

Because TCP requires an underlying unicast IP path, BGP does not implement periodic Hello broadcasting or multicasting for neighbor discovery. The examples use explicitly configured neighbors. Junos also supports configured dynamic-neighbor/listen mechanisms; ordinary BGP does not discover arbitrary peers with Hello multicasts. Either router can initiate the three-way TCP handshake (SYN, SYN-ACK, ACK) toward port 179 using a random ephemeral source port.

Once the TCP connection is established, the BGP state machine begins exchanging protocol messages. If underlying IP routing fails or a firewall drops TCP port 179, BGP cannot advance past initial connection states.