Difference between revisions of "MPLS Lab Setup"

From MikroTik Wiki
Jump to: navigation, search
Line 14: Line 14:
 
* use of loopback address as LDP transport address ensures proper penultimate hop popping behavior when multiple labels are attached to packet as in case of VPLS
 
* use of loopback address as LDP transport address ensures proper penultimate hop popping behavior when multiple labels are attached to packet as in case of VPLS
 
Here is a typical router setup (this is from P1)
 
Here is a typical router setup (this is from P1)
 +
'''P1'''
 
<pre>
 
<pre>
 
/interface bridge add name=lobridge
 
/interface bridge add name=lobridge
Line 19: Line 20:
 
</pre>
 
</pre>
 
The other routers are setup with 10.255.255.2-6 as per the diagram above
 
The other routers are setup with 10.255.255.2-6 as per the diagram above
P2
+
 
 +
'''P2'''
 
<pre>
 
<pre>
 
/interface bridge add name=lobridge
 
/interface bridge add name=lobridge
 
/ip address add address=10.255.255.2/32 interface=lobridge
 
/ip address add address=10.255.255.2/32 interface=lobridge
 
</pre>
 
</pre>
P3
+
'''P3'''
 
<pre>
 
<pre>
 
/interface bridge add name=lobridge
 
/interface bridge add name=lobridge
 
/ip address add address=10.255.255.3/32 interface=lobridge
 
/ip address add address=10.255.255.3/32 interface=lobridge
 
</pre>
 
</pre>
PE1
+
'''PE1'''
 
<pre>
 
<pre>
 
/interface bridge add name=lobridge
 
/interface bridge add name=lobridge
 
/ip address add address=10.255.255.4/32 interface=lobridge
 
/ip address add address=10.255.255.4/32 interface=lobridge
 
</pre>
 
</pre>
PE2
+
'''PE2'''
 
<pre>
 
<pre>
 
/interface bridge add name=lobridge
 
/interface bridge add name=lobridge
 
/ip address add address=10.255.255.5/32 interface=lobridge
 
/ip address add address=10.255.255.5/32 interface=lobridge
 
</pre>
 
</pre>
PE3
+
'''PE3'''
 
<pre>
 
<pre>
 
/interface bridge add name=lobridge
 
/interface bridge add name=lobridge
 
/ip address add address=10.255.255.6/32 interface=lobridge
 
/ip address add address=10.255.255.6/32 interface=lobridge
 
</pre>
 
</pre>

Revision as of 12:02, 21 April 2008

Introduction

This page is an attempt to put together a lab setup for the testing of MPLS / VPLS as well as Traffic Engineering. This is not an attempt to explain how MPLS works, rather it is to promote discussion around the operation of MPLS. Before working through this lab you should first familiarize yourself with the concepts in this WIKI article http://wiki.mikrotik.com/wiki/MPLSVPLS as most of the setup has been based around those concepts. As my understanding of MPLS is also rather limited please feel free to edit and correct where required. If you want the original network diagram (in Visio format) please email me on david [at] mikrotiksa dot com. I can also export to some other formats. There is also a discussion on the forum about this wiki. Please check for updates. --savagedavid 11:59, 21 April 2008 (EEST)

Lab Setup

Network Diagram

First lets look at a network diagram of the basic setup MPLS Lab Setup.png The setup was created using 6 RB532's, but anything with 3 network interfaces and 32MB memory should be able to do the job. P1 - P3 are the Provider (MPLS Backbone) routers. PE1 - PE3 are the Provider Edge routers which do the Label Popping

Router Setup

Each router is setup with a loopback adapter lobridge which holds the loopback address. From http://wiki.mikrotik.com/wiki/MPLSVPLS we can see this serves 2 purposes:

  • as there is only one LDP session between any 2 routers, no matter how many links connect them, loopback IP address ensures that the LDP session is not affected by interface state or address changes
  • use of loopback address as LDP transport address ensures proper penultimate hop popping behavior when multiple labels are attached to packet as in case of VPLS

Here is a typical router setup (this is from P1) P1

/interface bridge add name=lobridge
/ip address add address=10.255.255.1/32 interface=lobridge

The other routers are setup with 10.255.255.2-6 as per the diagram above

P2

/interface bridge add name=lobridge
/ip address add address=10.255.255.2/32 interface=lobridge

P3

/interface bridge add name=lobridge
/ip address add address=10.255.255.3/32 interface=lobridge

PE1

/interface bridge add name=lobridge
/ip address add address=10.255.255.4/32 interface=lobridge

PE2

/interface bridge add name=lobridge
/ip address add address=10.255.255.5/32 interface=lobridge

PE3

/interface bridge add name=lobridge
/ip address add address=10.255.255.6/32 interface=lobridge