Skip to Content
Versatile Routing and Services with BGP: Understanding and Implementing BGP in SR-OS
book

Versatile Routing and Services with BGP: Understanding and Implementing BGP in SR-OS

by Alcatel-Lucent, Colin Bookham
February 2014
Intermediate to advanced
360 pages
7h 45m
English
Wiley
Content preview from Versatile Routing and Services with BGP: Understanding and Implementing BGP in SR-OS

Chapter 5

Labeled Unicast IPv4

When an UPDATE message carries information about a particular prefix, it is also possible to “piggy-back” MPLS label mapping information for that prefix. The ability to carry label information in BGP (RFC 3107 ) builds on the Multi-Protocol BGP extension MP_REACH_NLRI attribute using AFI 1 (IPv4) with SAFI 4 (NLRI with MPLS labels) to indicate the presence of a label. The NLRI of the MP_REACH_NLRI attribute is encoded as one or more triples in the form <length, label, prefix>.

The output shown in Debug 5-1 gives an example of a MP_REACH_NLRI for a labeled BGP Address Family with prefix 192.0.2.22/32 and label 262138 using the encoding shown in Figure 5-1. A BGP speaker can withdraw a previously advertised prefix and label simply by listing the NLRI of a previously advertised route in the withdrawn routes field of an MP_UNREACH_NLRI attribute. In this case, the label information carried as part of the NLRI should be set to 0.

Figure 5-1 MP_REACH_NLRI Labeled BGP Encoding

image

Debug 5-1: Labeled BGP Prefix

2 2013/05/16 10:03:57.33 UTC MINOR: DEBUG #2001 vprn100 Peer 2: 192.168.0.2 "Peer 2: 192.168.0.2: UPDATE Peer 2: 192.168.0.2 - Received BGP UPDATE: Withdrawn Length = 0 Total Path Attr Length = 41 Flag: 0x90 Type: 14 Len: 17 Multiprotocol Reachable NLRI: Address Family IPV4-Labeled NextHop len 4 NextHop 192.168.0.2 192.0.2.22/32 Label 262138 Flag: 0x40 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Deploying IPv6 in Broadband Access Networks

Deploying IPv6 in Broadband Access Networks

Adeel Ahmed, Salman Asadullah

Publisher Resources

ISBN: 9781118875629Purchase book