{"id":547,"date":"2016-01-24T14:43:11","date_gmt":"2016-01-24T06:43:11","guid":{"rendered":"https:\/\/networkingnotesblog.wordpress.com\/?p=547"},"modified":"2016-01-24T14:43:11","modified_gmt":"2016-01-24T06:43:11","slug":"traffic-engineering-mpls","status":"publish","type":"post","link":"http:\/\/notes4it.com\/?p=547","title":{"rendered":"Traffic Engineering &#8211; MPLS"},"content":{"rendered":"<p>This time we will handle the basic traffic engineering within a MPLS network. This technique allows network admin to manipulate the traffic and fully utilize the subscribed bandwidth or circuits.<br \/>\nTraffic engineering within a MPLS network can be more accurate and convenience than in a typical TCP\/IP network, because TE are happened at the MPLS level only, which would not affect the base of the whole network topology. If manipulate traffic at the IP level, everything running on top of IP level will be affected.<br \/>\nThe network topology for this testing is listed below.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-562\" src=\"https:\/\/networkingnotesblog.files.wordpress.com\/2016\/01\/20160123-00-topo.png\" alt=\"20160123-00-topo\" width=\"956\" height=\"425\" srcset=\"http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-00-topo.png 956w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-00-topo-300x133.png 300w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-00-topo-768x341.png 768w\" sizes=\"auto, (max-width: 956px) 100vw, 956px\" \/><br \/>\n<!--more--><br \/>\nThere are 4 different VRFs running under this test lab.<br \/>\nVRF: 1010020010 at R01 and 1060020010 are at R06 &#8211; Route Target: 1800:0020010<br \/>\nVRF: 1010020010 at R01 and 1060030010 are at R06 &#8211; Route Target: 1800:0030010<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-576\" src=\"https:\/\/networkingnotesblog.files.wordpress.com\/2016\/01\/20160123-01-cacti-traffic.png\" alt=\"20160123-01-cacti-traffic.png\" width=\"858\" height=\"341\" srcset=\"http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-01-cacti-traffic.png 858w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-01-cacti-traffic-300x119.png 300w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-01-cacti-traffic-768x305.png 768w\" sizes=\"auto, (max-width: 858px) 100vw, 858px\" \/><br \/>\nBefore we apply any traffic engineering at into this network, the traffic flows from R06 to R01 is via the following path: R06 to R02 to R01. This path has the lowest OSPF metrics and becomes the best path for &#8220;Label Switching Path&#8221;.<br \/>\nOnce we apply the following, the whole traffic from all VRF at R06 designated to R01 (10.1.0.1) will take router R05 as the second hop. In this case, we are using the loopback IP address of R05 as the next hop.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-586\" src=\"https:\/\/networkingnotesblog.files.wordpress.com\/2016\/01\/20160123-02-r06-lsp_config.png\" alt=\"20160123-02-R06-LSP_config\" width=\"814\" height=\"246\" srcset=\"http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-02-r06-lsp_config.png 814w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-02-r06-lsp_config-300x91.png 300w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-02-r06-lsp_config-768x232.png 768w\" sizes=\"auto, (max-width: 814px) 100vw, 814px\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-591\" src=\"https:\/\/networkingnotesblog.files.wordpress.com\/2016\/01\/20160123-03-cacti-applied-te-via_r05.png\" alt=\"20160123-03-cacti-applied-TE-via_R05\" width=\"828\" height=\"327\" srcset=\"http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-03-cacti-applied-te-via_r05.png 828w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-03-cacti-applied-te-via_r05-300x118.png 300w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-03-cacti-applied-te-via_r05-768x303.png 768w\" sizes=\"auto, (max-width: 828px) 100vw, 828px\" \/><br \/>\nSince the traffic engineering is based on RSVP, and RSVP has lower preference than LDP, therefore it becomes a new active route at inet.3 table.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-595\" src=\"https:\/\/networkingnotesblog.files.wordpress.com\/2016\/01\/20160123-05-r06-show_route.png\" alt=\"20160123-05-R06-show_route\" width=\"816\" height=\"325\" srcset=\"http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-05-r06-show_route.png 816w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-05-r06-show_route-300x119.png 300w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-05-r06-show_route-768x306.png 768w\" sizes=\"auto, (max-width: 816px) 100vw, 816px\" \/><br \/>\nAt R05, we check the mpls lsp and see what do we got.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-607\" src=\"https:\/\/networkingnotesblog.files.wordpress.com\/2016\/01\/20160123-06-r05-showmplslsp.png\" alt=\"20160123-06-R05-showMPLSlsp\" width=\"1077\" height=\"193\" srcset=\"http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-06-r05-showmplslsp.png 1077w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-06-r05-showmplslsp-300x54.png 300w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-06-r05-showmplslsp-1024x184.png 1024w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-06-r05-showmplslsp-768x138.png 768w\" sizes=\"auto, (max-width: 1077px) 100vw, 1077px\" \/><br \/>\nSince R05 is the transit router, it has the LSP record of &#8220;R06-R01&#8221; at the transit table that is created at R06.<br \/>\nAlthough there is a new LSP record at R06, the traffic engineering at R06 would not affect the routes at R05. The route to 10.1.0.1 at R05 is still using LDP to drive the traffic.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-612\" src=\"https:\/\/networkingnotesblog.files.wordpress.com\/2016\/01\/20160123-07-r05-showroute.png\" alt=\"20160123-07-R05-showROUTE\" width=\"697\" height=\"259\" srcset=\"http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-07-r05-showroute.png 697w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-07-r05-showroute-300x111.png 300w\" sizes=\"auto, (max-width: 697px) 100vw, 697px\" \/><br \/>\nAt R01, the egress router of the path &#8220;R06-R01&#8221;, the command shows our TE path at the egress table. (Please ignore the MVPN records..)<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-622\" src=\"https:\/\/networkingnotesblog.files.wordpress.com\/2016\/01\/20160123-08-r01-showrsvpsession.png\" alt=\"20160123-08-R01-showRSVPsession.png\" width=\"1073\" height=\"214\" srcset=\"http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-08-r01-showrsvpsession.png 1073w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-08-r01-showrsvpsession-300x60.png 300w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-08-r01-showrsvpsession-1024x204.png 1024w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-08-r01-showrsvpsession-768x153.png 768w\" sizes=\"auto, (max-width: 1073px) 100vw, 1073px\" \/><br \/>\nThe command of &#8220;show rsvp session&#8221; and &#8220;show mpls lsp&#8221; has a pretty similar output.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-626\" src=\"https:\/\/networkingnotesblog.files.wordpress.com\/2016\/01\/20160123-09-r01-showmplslsp.png\" alt=\"20160123-09-R01-showMPLSlsp\" width=\"1070\" height=\"211\" srcset=\"http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-09-r01-showmplslsp.png 1070w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-09-r01-showmplslsp-300x59.png 300w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-09-r01-showmplslsp-1024x202.png 1024w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-09-r01-showmplslsp-768x151.png 768w\" sizes=\"auto, (max-width: 1070px) 100vw, 1070px\" \/><br \/>\nSo far, the TE seems working. Our next section is going to manipulate the traffic to take a very long path. Indeed, taking a long path would results with high latency, however, when there are problems with the shortest path, taking the longer path allows the availability for the network to be extended.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-644\" src=\"https:\/\/networkingnotesblog.files.wordpress.com\/2016\/01\/20160123-11-r06-showroute.png\" alt=\"20160123-11-R06-showROUTE\" width=\"658\" height=\"510\" srcset=\"http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-11-r06-showroute.png 658w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-11-r06-showroute-300x233.png 300w\" sizes=\"auto, (max-width: 658px) 100vw, 658px\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-647\" src=\"https:\/\/networkingnotesblog.files.wordpress.com\/2016\/01\/20160123-10-cacti-longpath.png\" alt=\"20160123-10-Cacti-longpath\" width=\"845\" height=\"330\" srcset=\"http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-10-cacti-longpath.png 845w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-10-cacti-longpath-300x117.png 300w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-10-cacti-longpath-768x300.png 768w\" sizes=\"auto, (max-width: 845px) 100vw, 845px\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-650\" src=\"https:\/\/networkingnotesblog.files.wordpress.com\/2016\/01\/20160123-12-r06-showrsvpsession.png\" alt=\"20160123-12-R06-showRSVPsession\" width=\"872\" height=\"73\" srcset=\"http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-12-r06-showrsvpsession.png 872w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-12-r06-showrsvpsession-300x25.png 300w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-12-r06-showrsvpsession-768x64.png 768w\" sizes=\"auto, (max-width: 872px) 100vw, 872px\" \/><br \/>\n&nbsp;<br \/>\nOur third example, we will divide traffics into two different circuits. In the real world scenario, we will be using TE to divide traffics into multiple circuits based on different types of customers or type of traffics.<br \/>\nIn this example we will be putting one VRFs traffic into one circuit and another VRF&#8217;s traffic into another circuit. This time, we will treat 1060020010 as our VIP client, and this customer will take a longer path that is more stable in our example.<br \/>\nWhen we are turning a particular VRF traffic to a particular circuit, we will be using the forwarding table this time. How we do is we will take the community of route target of our vip VRF and set its next hop lsp as the longer path. Our non vip VRF will take the unstable shorter path.<br \/>\nAs listed below, we will setup 2 terms in the forwarding policy in case. Our VIP VRF route target is 1800:00200010. Our first term is for our VIP customers, and we will set a forwarding-policy as: if the RT is 1800:00200010, direct its traffic using path_R05-R3-R02-R01. The second term is to direct other VRFs&#8217; traffic to another paths. Since there might be many VRF numbers in a PE router, and it is not that reasonable to put all the VRF RT number into a policy, the best way to handle it is to have a wildcard community to cover all VRF RT number. The wildcard can be set as 1800:*.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-656\" src=\"https:\/\/networkingnotesblog.files.wordpress.com\/2016\/01\/20160123-13-r06-te-per_vrf.png\" alt=\"20160123-13-R06-TE-Per_VRF\" width=\"1082\" height=\"492\" srcset=\"http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-13-r06-te-per_vrf.png 1082w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-13-r06-te-per_vrf-300x136.png 300w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-13-r06-te-per_vrf-1024x466.png 1024w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-13-r06-te-per_vrf-768x349.png 768w\" sizes=\"auto, (max-width: 1082px) 100vw, 1082px\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-690\" src=\"https:\/\/networkingnotesblog.files.wordpress.com\/2016\/01\/20160123-14-cacti-te-per-vrf.png\" alt=\"20160123-14-Cacti-TE-per-VRF\" width=\"930\" height=\"369\" srcset=\"http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-14-cacti-te-per-vrf.png 930w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-14-cacti-te-per-vrf-300x119.png 300w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-14-cacti-te-per-vrf-768x305.png 768w\" sizes=\"auto, (max-width: 930px) 100vw, 930px\" \/><br \/>\n&nbsp;<br \/>\nThe route for different VRFs are listed below. Our VIP is taking the long path (path_R05-R03-R02-R01), and the non-VIP is taking the path-R05_R04_R01.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-692\" src=\"https:\/\/networkingnotesblog.files.wordpress.com\/2016\/01\/20160123-15-r06-showroute.png\" alt=\"20160123-15-R06-showROUTE\" width=\"957\" height=\"538\" srcset=\"http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-15-r06-showroute.png 957w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-15-r06-showroute-300x169.png 300w, http:\/\/notes4it.com\/wp-content\/uploads\/2016\/01\/20160123-15-r06-showroute-768x432.png 768w\" sizes=\"auto, (max-width: 957px) 100vw, 957px\" \/><br \/>\n&nbsp;<br \/>\nSo far, these are the ways to perform TE for MPLS. We will keep yall update if there are any more ways for RSVP TE.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This time we will handle the basic traffic engineering within a MPLS network. This technique allows network admin to manipulate the traffic and fully utilize the subscribed bandwidth or circuits. Traffic engineering within a MPLS network can be more accurate and convenience than in a typical TCP\/IP network, because TE are happened at the MPLS [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,3],"tags":[94,110,111,148,182,205,207],"class_list":["post-547","post","type-post","status-publish","format-standard","hentry","category-networking","category-virtualization","tag-junos-en","tag-lsp-en","tag-mpls-en","tag-rsvp-en","tag-traffic-engineering-en","tag-vmx-en","tag-vpn-en"],"_links":{"self":[{"href":"http:\/\/notes4it.com\/index.php?rest_route=\/wp\/v2\/posts\/547","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/notes4it.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/notes4it.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/notes4it.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/notes4it.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=547"}],"version-history":[{"count":0,"href":"http:\/\/notes4it.com\/index.php?rest_route=\/wp\/v2\/posts\/547\/revisions"}],"wp:attachment":[{"href":"http:\/\/notes4it.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=547"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/notes4it.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=547"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/notes4it.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=547"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}