cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1744
Views
5
Helpful
3
Replies

MPLS-BGP.

bhornilesh
Level 1
Level 1

Hi All,

anyone explain me where does BGP come into play? Why is BGP required with MPLS Implementation? if you have any other link or doc or pdf file.. where i can learn & clear my doubt pls. share with me.

3 Replies 3

milan.kulik
Level 10
Level 10

Hi,

you don't need BGP to run MPLS itself.

But you need it to build MPLS VPNs.

See

http://www.cisco.com/en/US/docs/ios/mpls/configuration/guide/mp_cfg_layer3_vpn_ps6350_TSD_Products_Configuration_Guide_Chapter.html

HTH,

Milan

Peter Paluch
Cisco Employee
Cisco Employee

Nilesh,

Basic MPLS does not need BGP. It uses standard internal routing protocols to find destinations and paths towards them, and it uses the Label Distribution Protocol to assign and disseminate label bindings to these destinations.

BGP is used in more advanced applications of MPLS, in particular:

  • Layer3 VPNs
  • Layer2 VPNs (here, also LDP may be used as well)
  • VPLS
  • 6PE
  • 6VPE
  • Multicast VPNs

BGP is used in these scenarios because it allows to communicate both networks and corresponding label bindings in a single update, and it allows the exchange of this information between a particular selected pairs of routers - usually the Provide Edge (PE) routers. Other routers do not usually need this information, and the use of BGP allows us to spare them the unnecessary details - a great asset for scalability.

For example, in Layer3 VPNs, the BGP carries the networks of individual customers that are connected to a PE, and conveys this information to another PE where another locations of the same customer may be connected. In addition, it adds an MPLS label to each of these communicated customer networks. However, the internal routers (called P routers) that lie on the path between these PE routers do not see this BGP communication - they do not need BGP, and they do not need to. When a PE routes a packet from a customer to its another location connected at the another PE, the following occurs:

  1. The local PE looks up the destination network, and finds the label remote PE assigned to this network. These networks and labels were advertised by BGP from the remote PE to the local PE. It adds the first MPLS label to the packet.
  2. Then, the local PE will try to look up the next-hop for this destination network. This next-hop will be set to the remote PE's address itself. The remote PE's address (usually a loopback) is advertised via the usual IGP, say, OSPF, and the label to it is known via LDP. So the local PE will add another label (a second one) to the packet and send it along the way towards the remote PE.
  3. All intermediate P routers will look only at the topmost label that is set in such a way to indicate that the packet should arrive at the remote PE. They do not inspect the inner labels, nor do they inspect the destination IP address in the packet. As a result, they do not need to know anything about the customers or their networks.
  4. The last P router before the PE router removes the topmost label (Penultimate Hop Popping) and the packet will now arrive with only the first label to the remote PE.
  5. The only label that remained in the packet is the very label that the remote PE assigned to the customer network and communicated to the local PE via BGP. As a result, the remote PE exactly knows which customer network is this particular packet destined for, so it removes the label and forwards the packet to its correct destination.

I believe that if you try to look for words like "mpls fundamentals", "mpls basics", "mpls and bgp" in google you will certainly find lots and lots of useful information. And of course, you are welcome to come here and ask!

Best regards,

Peter

Just to add to Peter's Post, 5+ Peter

MPLS uses a 32-bit label that is inserted between the Layer 2 and Layer 3 headers. In the MPLS VPN routing model, the PE router provides isolation between customers using VRFs. However, this information needs to be carried between PE routers to enable data transfer between customer sites via the MPLS VPN backbone. The PE router must be capable of implementing processes that enable overlapping address spaces in connected customer networks The PE router must also learn these routes from attached customer networks and propagate this information using the shared provider backbone. This is done by the association of a route distinguisher (RD) per virtual routing table on a PE router. VPNv4 addresses are exchanged between PE routers in the provider network in addition to IPv4 (32-bit) addresses.

The protocol used for exchanging these VPNv4 routes between PE routers is multiprotocol BGP (MP-BGP). BGP capable of carrying VPNv4 (96-bit) prefixes in addition to other address families is called MP-BGP.

Source : MPLS Configuration on Cisco IOS Software, Cisco Press

HTH

if helpful Rate

Review Cisco Networking products for a $25 gift card