Table Of Contents
MPLS VPN—Explicit Null Label Support with BGP IPv4 Label Session
Prerequisites for MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
Restrictions for MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
Information About MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
Feature Design of MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
Benefits of MPLS—VPN Explicit Null Label Support BGP IPv4 Label Session
How to Configure MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
Verifying Explicit Null Configuration
Configuration Examples for MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
Configuring CSC-CE with BGP: Example
Verifying Explicit Null Configuration: Example
neighbor send-label explicit-null
MPLS VPN—Explicit Null Label Support with BGP IPv4 Label Session
The MPLS VPN—Explicit Null Label Support with Border Gateway Protocol (BGP) IPv4 Label Session feature provides a method to advertise explicit null in a BGP label session for a carrier-supporting-carrier (CSC) customer edge (CE) router.
History for MPLS VPN—Explicit Null Label Support with BGP IPv4 Label Session Feature
Release Modification12.0(27)S
This feature was introduced.
12.2(27)SBA
This feature was integrated into Cisco IOS Release 12.2(27)SBA.
![]()
Note
Software images for Cisco 12000 series Internet routers have been deferred to Cisco IOS Release 12.0(27)S1.
Finding Support Information for Platforms and Cisco IOS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image support. Access Cisco Feature Navigator at http://www.cisco.com/go/fn. You must have an account on Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at the login dialog box and follow the instructions that appear.
Contents
•
Prerequisites for MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
•
Information About MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
•
How to Configure MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
•
Configuration Examples for MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
Prerequisites for MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
•
You must configure your network for MPLS VPN.
•
You must configure BGP to distribute labels between the CSC-CE and CSC-provider edge (PE) routers.
Restrictions for MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
•
Configure an explicit null label only in a CSC-CE topology.
•
Configure an explicit null label only on a per-neighbor basis.
Information About MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
To configure MPLS—VPN Explicit Null Label Support BGP IPv4 Label Session, you need to understand the following concepts:
•
Feature Design of MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
•
Benefits of MPLS—VPN Explicit Null Label Support BGP IPv4 Label Session
Feature Design of MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
On a CSC-CE with BGP IPv4 label distribution, BGP advertises an implicit null label for directly connected routes. This causes the previous hop (penultimate) router to do penultimate hop popping (PHP).
The MPLS—VPN Explicit Null Label Support BGP IPv4 Label Session feature makes the penultimate router swap the incoming label for (or impose) the explicit null label. This action forces the egress router to process the explicit null label by popping it and inspecting the packet that remains.
Benefits of MPLS—VPN Explicit Null Label Support BGP IPv4 Label Session
Improved Quality of Service (QoS)
The explicit null label helps to preserve quality of service (QoS) bits from one service level agreement (SLA) to another until the packets reach their CSC-CE destination.
How to Configure MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
This section contains the following procedures:
•
Configuring CSC with BGP (required)
•
Verifying Explicit Null Configuration (optional)
Configuring CSC with BGP
Perform this task to configure CSC with BGP.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
router bgp autonomous-system-number
4.
address-family ipv4
5.
neighbor ip-address send-label explicit-null
6.
neighbor {ip-address | peer-group-name} activate
7.
exit
DETAILED STEPS
Verifying Explicit Null Configuration
Perform this task to verify that the explicit null option is configured.
SUMMARY STEPS
1.
enable
2.
show ip bgp neighbors [neighbor-address] [received-routes | routes | advertised-routes | {paths regexp} | dampened-routes | received prefix-filter]]
DETAILED STEPS
Configuration Examples for MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
This section provides the following configuration examples:
•
Configuring CSC-CE with BGP: Example
•
Verifying Explicit Null Configuration: Example
Configuring CSC-CE with BGP: Example
In the following CSC-CE example, CSC is configured with BGP to distribute labels and to advertise explicit null for all its connected routes:
Router(config-router-af)# neighbor 3.0.0.2 send-label explicit-nullrouter bgp 100bgp log-neighbor-changesneighbor 3.0.0.2 remote-as 200!address-family ipv4neighbor 3.0.0.2 activateneighbor 3.0.0.2 send-label explicit-nullno auto-summaryno synchronizationexit-address-familyVerifying Explicit Null Configuration: Example
This section provides sample output for the show ip bgp neighbors command.
•
Sample Output for the show ip bgp neighbors Command
Sample Output for the show ip bgp neighbors Command
In this example, the show ip bgp neighbors command displays information about connected BGP neighbors, including IP addresses, automous number, version numbers, neighbor capabilities, message statistics, and address family statistics that show if explicit null is configured.
Router# show ip bgp neighborsBGP neighbor is 1.0.0.2, remote AS 300, external linkBGP version 4, remote router ID 72.72.72.72BGP state = Established, up for 00:45:16Last read 00:00:16, hold time is 180, keepalive interval is 60 secondsNeighbor capabilities:Route refresh: advertised and received(new)Address family IPv4 Unicast: advertised and receivedipv4 MPLS Label capability: advertised and receivedMessage statistics:InQ depth is 0OutQ depth is 0Sent RcvdOpens: 1 1Notifications: 0 0Updates: 1 2Keepalives: 47 47Route Refresh: 0 0Total: 49 50Default minimum time between advertisement runs is 30 secondsFor address family: IPv4 UnicastBGP table version 9, neighbor version 9/0Output queue sizes : 0 self, 0 replicatedIndex 1, Offset 0, Mask 0x2Member of update-group 1My AS number is allowed for 3 number of timesAF-dependant capabilities:Outbound Route Filter (ORF) type (128) Prefix-list:Sending Prefix & Label(advertise explicit-null set) !Explicit null is configuredSent RcvdPrefix activity: ---- ----Prefixes Current: 3 3 (Consumes 144 bytes)Prefixes Total: 3 6Implicit Withdraw: 0 3Explicit Withdraw: 0 0..................Additional References
The following sections provide references related to MPLS—VPN Explicit Null Label with BGP IPv4 Label Session.
Related Documents
Standards
Standards TitleNo new or modified standards are supported by this feature, and support for existing standards has not been modified by this feature.
—
MIBs
RFCs
Technical Assistance
Command Reference
This section documents new or modified commands only.
New Commands
•
neighbor send-label explicit-null
Modified Commands
•
show ip bgp neighborsdebug ip bgp
debug ip bgp
To display information related to processing of the Border Gateway Protocol (BGP), use the debug ip bgp command in privileged EXEC mode. To disable debugging output, use the no form of this command.
debug ip bgp [A.B.C.D. | dampening | events | in | keepalives | out | updates | vpnv4 | mpls]
no debug ip bgp [A.B.C.D. | dampening | events | in | keepalives | out | updates | vpnv4 | mpls]
Syntax Description
Defaults
No default behavior or values
Command Modes
Privileged EXEC
Command History
Usage Guidelines
Use this command with the updates and mpls keywords to display explicit-null label information.
Examples
The following example shows sample output, including the explicit-null label, from the debug ip bgp updates and the debug ip bgp mpls commands:
Router# debug ip bgp updatesBGP updates debugging is onRouter# debug ip bgp mplsBGP MPLS labels debugging is onRouter#01:33:53: BGP(0): route 36.36.36.36/32 up01:33:53: BGP(0): nettable_walker 36.36.36.36/32 route sourced locally01:33:53: BGP: adding MPLS label to 36.36.36.36/3201:33:53: BGP: check on 36.36.36.36/32 in LDP - ok01:33:53: BGP: label imp-null allocated via LDP01:33:53: BGP-IPv4: send exp-null label for 36.36.36.36/3201:33:53: BGP-IPv4: Send prefix 36.36.36.36/32, label exp-null !explicit-null label being sent
01:33:53: BGP(0): 1.0.0.2 send UPDATE (format) 36.36.36.36/32, next 1.0.0.1, metric 0, path , mpls label 0 !label value is 0
01:33:53: BGP(0): updgrp 1 - 1.0.0.2 enqueued 1 updates, average/maximum size (bytes) 61/61Related Commands
neighbor send-label explicit-null
To enable a Border Gateway Protocol (BGP) router to send Multiprotocol Label Switching (MPLS) labels with explicit-null information for a CSC-CE router and BGP routes to a neighboring CSC-PE router, use the neighbor send-label explicit-null command in address family configuration mode or router configuration mode. To disable a BGP router from sending MPLS labels with explicit-null information, use the no form of this command.
neighbor ip-address send-label explicit-null
no neighbor ip-address send-label explicit-null
Syntax Description
Defaults
This command is not enabled by default.
Command Modes
Address family configuration
Router configuration
Command History
Release Modification12.0(27)S
This command was introduced.
12.2(27)SBA
This command was integrated into Cisco IOS Release 12.2(27)SBA.
Usage Guidelines
This command enables a CSC-CE router to use BGP to distribute MPLS labels with a value of zero for explicit-null instead of implicit-null along with IPv4 routes to a CSC-PE peer router.
You must issue this command only on the local CSC-CE router.
You can use this command only with IPv4 addresses.
Examples
In the following CSC-CE example, CSC is configured with BGP to distribute labels and to advertise explicit null for all its connected routes:
Router# configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)# router bgp 100Router(config-router)# neighbor 1.0.0.2 remote-as 300Router(config-router)# address-family ipv4Router(config-router-af)# neighbor 1.0.0.2 send-label explicit-nullIn the following CSC-PE example, CSC is configured with BGP to distribute labels:
Router# configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)# router bgp 300Router(config-router)# neighbor 1.0.0.1 remote-as 100Router(config-router)# address-family ipv4 vrf v1Router(config-router-af)# neighbor 1.0.0.1 send-label![]()
Note
Explicit null is not applicable on a CSC-PE router.
Related Commands
show ip bgp neighbors
To display information about the Transmission Control Protocol (TCP) and Border Gateway Protocol (BGP) connections to neighbors, use the show ip bgp neighbors command in EXEC mode.
show ip bgp neighbors [neighbor-address] [received-routes | routes | advertised-routes | {paths regexp} | dampened-routes | received prefix-filter]]
Syntax Description
Defaults
No default behavior or values
Command Modes
EXEC
Command History
Usage Guidelines
Use this command to display explicit-null label information.
Examples
The following example shows output, including the explicit-null label, from the show ip bgp neighbors command on a CSC-CE router:
Router# show ip bgp neighborsBGP neighbor is 1.0.0.2, remote AS 300, external linkBGP version 4, remote router ID 72.72.72.72BGP state = Established, up for 01:38:38Last read 00:00:37, hold time is 180, keepalive interval is 60 secondsNeighbor capabilities:Route refresh: advertised and received(new)Address family IPv4 Unicast: advertised and receivedipv4 MPLS Label capability: advertised and receivedMessage statistics:InQ depth is 0OutQ depth is 0Sent RcvdOpens: 1 1Notifications: 0 0Updates: 3 2Keepalives: 100 100Route Refresh: 0 0Total: 104 103Default minimum time between advertisement runs is 30 secondsFor address family: IPv4 UnicastBGP table version 11, neighbor version 11/0Output queue sizes : 0 self, 0 replicatedIndex 1, Offset 0, Mask 0x2Member of update-group 1My AS number is allowed for 3 number of timesAF-dependant capabilities:Outbound Route Filter (ORF) type (128) Prefix-list:Sending Prefix & Label(advertise explicit-null set) !explicit-null configuration set
Sent RcvdPrefix activity: ---- ----Prefixes Current: 3 3 (Consumes 144 bytes)Prefixes Total: 4 6Implicit Withdraw: 0 3Explicit Withdraw: 1 0Used as bestpath: n/a 3Used as multipath: n/a 0Outbound InboundLocal Policy Denied Prefixes: -------- -------Suppressed duplicate: 0 3Bestpath from this peer: 3 n/aTotal: 3 3Number of NLRIs in the update sent: max 0, min 0Connections established 1; dropped 0Last reset neverConnection state is ESTAB, I/O status: 1, unread input bytes: 0Local host: 1.0.0.1, Local port: 11000Foreign host: 1.0.0.2, Foreign port: 179Enqueued packets for retransmit: 0, input: 0 mis-ordered: 0 (0 bytes)Event Timers (current time is 0x5C52FC):Timer Starts Wakeups NextRetrans 106 0 0x0TimeWait 0 0 0x0AckHold 103 79 0x0SendWnd 0 0 0x0KeepAlive 0 0 0x0GiveUp 0 0 0x0PmtuAger 0 0 0x0DeadWait 0 0 0x0iss: 1758035101 snduna: 1758037249 sndnxt: 1758037249 sndwnd: 15697irs: 904214079 rcvnxt: 904216204 rcvwnd: 15738 delrcvwnd: 646SRTT: 300 ms, RTTO: 607 ms, RTV: 3 ms, KRTT: 0 msminRTT: 0 ms, maxRTT: 300 ms, ACK hold: 200 msFlags: higher precedence, nagleDatagrams (max data segment is 1460 bytes):Rcvd: 136 (out of order: 0), with data: 103, total data bytes: 2124Sent: 187 (retransmit: 0, fastretransmit: 0), with data: 105, total data bytes: 2147Table 1 describes the significant fields shown in the display.
Related Commands
show ip bgp vpnv4
To display Virtual Private Network (VPN) address information from the Border Gateway Protocol (BGP) table, use the show ip bgp vpnv4 command in EXEC mode.
show ip bgp vpnv4 {all | rd route-distinguisher | vrf vrf-name} [ip-prefix/length [longer-prefixes] [output-modifiers]] [network-address [mask] [longer-prefixes] [output-modifiers]] [cidr-only] [community] [community-list] [dampened-paths] [filter-list] [flap-statistics] [inconsistent-as] [neighbors] [paths [line]] [peer-group] [quote-regexp] [regexp] [summary] [labels]
Syntax Description
Defaults
No default behavior or values
Command Modes
EXEC
Command History
Usage Guidelines
Use this command with the keywords all and labels to display explicit-null label information.
Examples
The following example shows output, including the explicit-null label, from the show ip bgp neighbors command on a CSC-PE router:
Router# show ip bgp vpnv4 all labelsNetwork Next Hop In label/Out labelRoute Distinguisher: 100:1 (v1)1.0.0.0/24 0.0.0.0 19/aggregate(v1)1.0.0.1/32 0.0.0.0 20/nolabel1.1.1.1/32 0.0.0.0 21/aggregate(v1)36.36.36.36/32 1.0.0.1 25/exp-null !Label value exp-null
100.100.100.100/321.0.0.1 23/exp-null101.101.101.101/321.0.0.1 22/exp-nullTable 2 describes the significant fields shown in the display.
Related Commands
show mpls forwarding-table
To display the contents of the Multiprotocol Label Switching (MPLS) label forwarding information base (LFIB), use the show mpls forwarding-table command in EXEC mode.
show mpls forwarding-table [network {mask | length} | labels label [- label] | interface interface | next-hop address | lsp-tunnel [tunnel-id]] [vrf vrf-name] [detail]
Syntax Description
Defaults
No default behavior or values
Command Modes
EXEC
Command History
Usage Guidelines
Use this command to display explicit-null label information.
Examples
The following example shows output, including the explicit-null label = 0, from the show mpls forwarding-table command on a CSC-PE router:
Router# show mpls forwarding-tableLocal Outgoing Prefix Bytes tag Outgoing Next Hoptag tag or VC or Tunnel Id switched interface17 Pop tag 34.34.34.34/32 0 Et2/0 3.0.0.218 Pop tag 4.0.0.0/24 0 Et2/0 3.0.0.219 Aggregate 1.0.0.0/24[V] 020 Pop tag 1.0.0.1/32[V] 0 Et2/1 1.0.0.121 Aggregate 1.1.1.1/32[V] 022 0 101.101.101.101/32[V] \0 Et2/1 1.0.0.123 0 100.100.100.100/32[V] \0 Et2/1 1.0.0.125 0 36.36.36.36/32[V] 0 Et2/1 1.0.0.1 !outlabel value 0
Table 3 describes the significant fields shown in the display.
Related Commands
Glossary
BGP—Border Gateway Protocol. The exterior Border Gateway Protocol used to exchange routing information between routers in separate autonomous systems. BGP uses Transmission Control Protocol (TCP). Because TCP is a reliable protocol, BGP does not experience problems with dropped or fragmented data packets.
CE router—customer edge router. A router on the border between a VPN provider and a VPN customer that belongs to the customer.
EBGP—External Border Gateway Protocol. A BGP session between routers in different autonomous systems (ASs). When a pair of routers in different ASs are more than one IP hop away from each other, an external BGP session between those two routers is called multihop external BGP.
label—A short, fixed-length data identifier that tells switching nodes how to forward data (packets or cells).
label distribution—The techniques and processes used to cause routed traffic to travel through the network on a path other than the one that would have been chosen if standard routing methods had been used.
LDP—Label Distribution Protocol. The protocol that supports MPLS hop-by-hop forwarding by distributing bindings between labels and network prefixes. The Cisco proprietary version of this protocol is the Tag Distribution Protocol (TDP).
LSP—label-switched path. A configured connection between two routers, in which MPLS is used to carry packets. A path created by the concatenation of one or more label switched hops, allowing a packet to be forwarded by swapping labels from an MPLS node to another MPLS node.
MPLS—Multiprotocol Label Switching. A method for directing packets primarily through Layer 2 switching rather than Layer 3 routing. In MPLS, packets are assigned short, fixed-length labels at the ingress to an MPLS cloud by using the concept of forwarding equivalence classes. Within the MPLS domain, the labels are used to make forwarding decisions mostly without recourse to the original packet headers; formerly known as tag switching.
NLRI—Network Layer Reachability Information. BGP sends routing update messages containing NLRI, which describes the route. In this context, an NLRI is a prefix. A BGP update message carries one or more NLRI prefixes and the attributes of a route for the NLRI prefixes. The route attributes include a BGP next hop gateway address, community values, and other information.
PE router—provider edge router. A router on the border between a VPN provider and a VPN customer that belongs to the provider.
QoS—quality of service. A measure of performance for a transmission system that reflects its transmission quality and service availability.
router—A network layer device that uses one or more metrics to determine the optimal path along which network traffic should be forwarded. Routers forward packets from one network to another based on network layer information.
VPN—virtual private network. A secure IP-based network that shares resources on one or more physical networks. A VPN contains geographically dispersed sites that can communicate securely over a shared backbone.
![]()
Note
Refer to the Internetworking Terms and Acronyms for terms not included in this glossary.
![]()
Copyright © 2005 Cisco Systems, Inc. All rights reserved.