BGP messages formats (2024)

Header

BGP has the following types of messages:

  • Open

  • Update

  • Notification

  • Keepalive

  • Route-refresh

They have the same header.

Figure 71: BGP message header

BGP messages formats (1)

Open

After a TCP connection is established, the first message sent by each side is an open message for peer relationship establishment.

Figure 72: BGP open message format

BGP messages formats (2)

Major fields of the BGP open message are as follows:

  • Version—This one-byte unsigned integer indicates the protocol version number. The current BGP version is 4.

  • My autonomous system—This two-byte unsigned integer indicates the autonomous system number of the sender.

  • Hold time—When establishing a peer relationship, two parties negotiate an identical hold time. If no Keepalive or Update is received from a peer within the hold time, the BGP connection is considered down.

  • BGP identifier—An IP address that identifies the BGP router.

  • Opt Parm Len (Optional Parameters Length)—Length of optional parameters, which is set to 0 if no optional parameter is available.

  • Optional parameters—Used for multiprotocol extensions and other functions.

The update messages are used to exchange routing information between peers. It can advertise feasible routes or remove multiple unfeasible routes.

Figure 73: BGP update message format

BGP messages formats (3)

Each update message can advertise a group of feasible routes with identical attributes, and the routes are contained in the network layer reachability information (NLRI) field. The path attributes field carries the attributes of these routes. Each update message can also carry multiple withdrawn routes in the withdrawn routes field.

Major fields of the BGP update message are as follows:

  • Unfeasible routes length—The total length of the withdrawn routes field in bytes. A value of 0 indicates no route is withdrawn from service, nor is the withdrawn routes field present in this update message.

  • Withdrawn routes—This is a variable length field that contains a list of withdrawn IP prefixes.

  • Total path attribute length—Total length of the path attributes field in bytes. A value of 0 indicates that no NLRI field is present in this update message.

  • Path attributes—List of path attributes related to NLRI. Each path attribute is a triple <attribute type, attribute length, attribute value> of variable length. BGP uses these attributes to avoid routing loops, and perform routing and protocol extensions.

  • NLRI—Each feasible route is represented as <length, prefix>.

Notification

A notification message is sent when an error is detected. The BGP connection is closed immediately after sending it.

Figure 74: BGP notification message format

BGP messages formats (4)

Major fields of the BGP notification message are as follows:

  • Error code—Type of notification.

  • Error subcode—Specific information about the nature of the reported error.

  • Data—Used to diagnose the reason for the notification. The contents of the data field depend on the error code and error subcode. Erroneous data can be recorded in the data field. The data field length is variable.

Keepalive

Keepalive messages are sent between peers to maintain connectivity. Its format contains only the message header.

Route-refresh

A route-refresh message is sent to a peer to request the specified address family routing information.

Figure 75: BGP route-refresh message format

BGP messages formats (5)

  • AFI—Address family identifier.

  • Res—Reserved; set to 0.

  • SAFI—Subsequent address family identifier.

BGP messages formats (2024)
Top Articles
Hello world performance: Bun (express) vs Python (fast API)
Our Experience With NestJS
Ach Credit Ftb Mct
Craigslist Lake Of Ozarks Mo
Here’s how much Tim Ballard made during final months with Operation Underground Railroad
Doddridge County Cad Log
Moxfield Deck Builder
Brenda Song Wikifeet
Magic Seaweed Newport Ri
25X11X10 Atv Tires Tractor Supply
Walmart Careers Stocker
Academy Sports Plano Tollway
Puff Hall Road
Hours Of Chase Bank Near Me
Queens University of Charlotte
Bevmo Monterey
Section 109 Lincoln Financial Field
Otterbrook Goldens
Remote Icloud Quota Ui
Oodweynenews
Crow's Nest Venice Fl Webcam
Mawal Gameroom Download
Notre Dame vs. Purdue score, takeaways: Fighting Irish flatten Boilermakers for much-needed bounceback
Ezstub Cross Country
Papa Johns Mear Me
Milwaukee Zoo Ebt Discount
What Happened To Guy Yovan's Voice
Craiglist Eastbay
Craigslist Malone New York
Www.doculivery/United Family Payroll Login Page
School Cancellations Ct
Ellen Knight Casper Wyoming
Twyla Boogeyman (G1)
ما ملكت أيمانكم (مسلسل) - المعرفة
Us Open Tennis Sirius Radio
Kathy Vold From Heartland
Hidden Figures Movie Quiz Answers
Tomorrow Tithi In Usa
Wral Nighttime Lottery
Kourend & Kebos Diary | OSRS Toolkit
Www.mygoodtogo
9News Anchors Hate Each Other
Unverified | Crossword Clue Answers
South Bend Tribune Online
MERRY AND MARRIED MERRY & MARRIED MERRY + MARRIED MERRY E MARRIED MERRY ; MARRIED MERRY, MARRIED MERRY - MARRIED Trademark Application of Nexus Integrity Group - Serial Number 98485054 :: Justia Trademarks
Craigslist Fort Madison Iowa
Central Nj Body Rub
Jades Lafayette Parish
Home Alone Fuller Gif
Mission Impossible 7 Showtimes Near Regal Bridgeport Village
Nws Bhm
Latest Posts
Article information

Author: Golda Nolan II

Last Updated:

Views: 5329

Rating: 4.8 / 5 (78 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Golda Nolan II

Birthday: 1998-05-14

Address: Suite 369 9754 Roberts Pines, West Benitaburgh, NM 69180-7958

Phone: +522993866487

Job: Sales Executive

Hobby: Worldbuilding, Shopping, Quilting, Cooking, Homebrewing, Leather crafting, Pet

Introduction: My name is Golda Nolan II, I am a thoughtful, clever, cute, jolly, brave, powerful, splendid person who loves writing and wants to share my knowledge and understanding with you.