14.12.2012 Views

BGP Configuration Guide - Juniper Networks

BGP Configuration Guide - Juniper Networks

BGP Configuration Guide - Juniper Networks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>BGP</strong> <strong>Configuration</strong> <strong>Guide</strong><br />

Related<br />

Documentation<br />

<strong>BGP</strong> Messages Overview<br />

6<br />

The following information describes the path:<br />

• AS path, which is a list of numbers of the ASs that a route passes through to reach the<br />

local router. The first number in the path is that of the last AS in the path—the AS<br />

closest to the local router. The last number in the path is the AS farthest from the local<br />

router, which is generally the origin of the path.<br />

• Path attributes, which contain additional information about the AS path that is used<br />

in routing policy.<br />

<strong>BGP</strong> peers advertise routes to each other in update messages.<br />

<strong>BGP</strong> stores its routes in the Junos OS routing table (inet.0). The routing table stores the<br />

following information about <strong>BGP</strong> routes:<br />

• Routing information learned from update messages received from peers<br />

• Local routing information that <strong>BGP</strong> applies to routes because of local policies<br />

• Information that <strong>BGP</strong> advertises to <strong>BGP</strong> peers in update messages<br />

For each prefix in the routing table, the routing protocol process selects a single best<br />

path, called the active path. Unless you configure <strong>BGP</strong> to advertise multiple paths to the<br />

same destination, <strong>BGP</strong> advertises only the active path.<br />

The <strong>BGP</strong> router that first advertises a route assigns it one of the following values to<br />

identify its origin. During route selection, the lowest origin value is preferred.<br />

• 0—The router originally learned the route through an IGP (OSPF, IS-IS, or a static route).<br />

• 1—The router originally learned the route through an EGP (most likely <strong>BGP</strong>).<br />

• 2—The route's origin is unknown.<br />

•<br />

Understanding <strong>BGP</strong> Path Selection on page 8<br />

• Example: Advertising Multiple Paths in <strong>BGP</strong> on page 254<br />

All <strong>BGP</strong> messages have the same fixed-size header, which contains a marker field that<br />

is used for both synchronization and authentication, a length field that indicates the<br />

length of the packet, and a type field that indicates the message type (for example, open,<br />

update, notification, keepalive, and so on).<br />

This section discusses the following topics:<br />

• Open Messages on page 7<br />

• Update Messages on page 7<br />

• Keepalive Messages on page 8<br />

• Notification Messages on page 8<br />

Copyright © 2012, <strong>Juniper</strong> <strong>Networks</strong>, Inc.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!