← Return to Report 📚 All Topic Sources ⬇ Download Source Text

Segment Routing - On-Demand Next-Hop (ODN) - Intro

hello everyone welcome back to our segment routing traffic engineering series hope you guys are staying safe with these challenging time and i kind of apologize not up to you know uploading new content i have been pretty busy as i kind of indicated in past with couple of my ongoing projects where i was working on a couple of the segment routing implementation and a few other technologies so my project just got over other day so i thought of you know creating or continuing our series uh so far in the series if i have to give you a quick recap we talked about segment routing we talked about how would you go ahead and configure different type of sr policies and on the same context today we're going to talk about a brand new concept or idea which is simply called as odn and if you take a look at odn really stands for on demand next hop so so far when we were creating any kind of sr policy either we had create an explicit policy that means where you will go ahead and configure either your ipv4 address or your mpls labels for your next stop we have also learned how would you go ahead and create dynamic policy either local policy that means computed locally by your pcc we also learned how would you go ahead and make use of pce which is your central component now all of those approaches stands pretty good there's nothing wrong yeah you can go ahead and create any kind of policy and certainly go ahead and make use of some of those things but now when you are working with like large implementation there are always challenge and one of the question that is simply being asked let's say you there are two sides and between those two side you are trying to create a vpn and you want your vpn to make use of an segment routing policy to forward your traffic now what you go ahead and do that you will say hey aaron you know if this is one vpn we can probably go ahead and create one sr policy yeah your answer is absolutely right how about if we have two such vpns we can certainly go ahead and create two but as the number of your endpoint starts to grow now the question comes in do i have to configure a policy for every such source and destination peer in a vpn think about it it could become a simply a nightmare because okay as long as you had limited number when i limited number 2 5 10 okay make sense you can probably go ahead and start configuring all those policies manually but as your number of vpn customers starts to grow you might find this approach to be pretty cumbersome because you don't want to be spending time creating these policies manually so how would we go ahead and deal with some of these things where you have literally so many endpoints to deal with and at the same time right now let's say you have a customer coming up let's imagine you are offering some kind of trial services where you are giving your services to try let's say for seven days or a week or 15 days now you do not want to be creating those policies every seven days or 15 days and then trying to take them down and again when the new customer comes and you are trying to provision again so you are looking for some way to automatically have these policies comes up and that's where we can go ahead and make use of this concept of on demand next top odm so like as it clearly says hey it's an on demand really that's the key here we need to look it is based on on demand that means you will go ahead and create so far what we have done we have created a policy in that policy sorry or in that srt policy we had configured a your head end which is your source simply and your tail end or the destination which is an end point and we had used some color value to signify that so in the case of odn generally audience are called odin templates we do not generally call them like srt policy these are simply like called odn templates or odn that means now you will go ahead and create something called a generic template and when there are certain conditions are being met against that odn template it can go ahead and instantiate a policy for you so now we are talking about meeting some certain conditions so that's where our bgp will come into the picture and if you guys have worked with the bgp you know in the bgp we have a extended community extended attribute basically which we call as simply as color so you can go ahead and make use of some of those things and you can go ahead and based on on demand you can go ahead and start creating sr policy so in this episode we're going to go ahead and quickly take a look at what is odn we'll run through some of the theoretical concept and in the next episode we'll go ahead and do some hands-on around the odm so let's go ahead and jump onto one of cisco's official documentation and if i go this is again standard cisco documentation you can find i'm referencing to one cisco asr 9000 you know based on 6.5 now just to quickly talk about the sr policy we had talked about nsr policy has simply ahead and a color endpoint now just to continue our conversation now as the name says here okay it is based on on demand so that is the whole keyword guys that segment routing on demand next top allow a service head and router means your head and router to automatically instantiate an sr policy to a bgp next hop when required so here the required means on demand so what are the benefits you get out of the odn i gave you one pretty big example that's if you're working with a vpn or service provider and where you are every day provisioning your vpn endpoints you do not want to be configuring that manually because you may find it soon pretty challenging so that means what we can go ahead and do you can go ahead and create sla aware bgp services with the help of odn it is simplicity so that what is the simplicity really indicates here hey no prior sr policy configuration needs to be configured or maintained see guys that's the key that means you are not configuring any policy beforehand instead operator simply configures a small set of common intent based optimization templates throughout the network keep in remember that's why odin is simply called a sometimes temple it's not an s policy and again it's a scalable i just gave an example of scalability with the vpn device resources at the head and router are used only when required that means you can always go ahead and provision many more services and you might not be using all of the services so it is pretty simple and scalable at the same time we will go ahead and see this diagram this flow when we do hands-on so now if i go ahead and simply scroll down so as i said guys an online sr policy is created dynamically for bgp global or vpn services route a lot of the time that's what where the odn is being utilized when you have a bgp and majority of the time when you are working with the vpn either it could be l2 vpn or l3 vpn depending on that and that's where it says okay the following services are supported with your odn what you can do with the audience you can have ipv4 bgp global route you can have similarly ipv6 bgp global route you can have vpn v4 route you can have vpn v6 route or you can have evpn vpws again that is primarily used with your layer 2. so now when we are going to work with the odn we will need to go ahead and define the srodn template again guys pay the attention it is srodn templates on the srt hidden router so you will go ahead and pick the same thing you have been doing or configuring the services now we will go ahead and configure an srodin template onto a heading router now again it's up to us we can have that path computation to be offloaded to an sr pce or we can go ahead and do that locally and now we'll go ahead and same way we will go ahead and specify a few other things here if you take example here how do we go ahead and configure an on-demand template so now we'll go ahead and pick a router which is your header you will do the same thing segment routing traffic engineering now here you will use a keyword which says on demand that means hey we are configuring an odn template now if you remember in a policy you need to have three things a head end a color and an end point so in this case we have an headend which is this particular router and the name of this router is router we do have a color but there is a third thing that we need which is our endpoint on destination now if you take a look at in this keyword we do not have an endpoint configured specifically that is the major difference if you pay attention here because when you configure a specific endpoint that means we just went ahead and created an sr policy between this head and router to that specific tail end but in this case we are not configuring any tail and ip address we are just leaving it generic we are saying okay hey you know i am configuring an on demand where the color needs to be 10 now for this on demand we are adding a keyword like dynamic in this case and for the dynamic i'm saying okay the path computation for this template needs to be done by the psap that is your sr pce and these are again different optimization objective that we have learned earlier we want to use the metric type you can pick either igp te latency for this example we are saying hey the metric type that we are selecting is te and there are a few other things that you can go ahead and use it like there's a metric margin these are the things that come handy when you have multiple paths and which are not equally of the same type now you can also go ahead and configure the constraint we talked about like in this case disjoint path we can configure a group id based on either link a node or an srlg we have learned all of these things same way affinity we can go ahead and make use of the affinity we can either include something or we can exclude something based on that we can also go ahead and configure a flux algorithm i don't think so we have talked about if not we'll go ahead and cover but i think we might have covered that already and in this case we are saying the sid algorithm and the maximum depth in this case and these are some of the other parameters that we can go ahead and configure so that's how we'll go ahead and configure an odn template now see the key major key difference that you need to remember guys that when you configure an odn template there is no specific end point here there is only a color so now we need to match this color somehow between this router and a destination that we want to reach that means when any specific type of traffic that comes into this router we can make use of the bgp's extended community attributes and we can try setting some specific thing to route to this particular color and when there is a match i'll go ahead and instantiate a policy for us again don't worry i will go ahead and see all these things when we do the hands-on i just want to make sure that you understand the concept of odn before we really do the hands-on and again the odn is used in many different places in this another there is another example that says configuring srodn layer 3 services example so here is an example in this case if you take a look segment routing traffic engineering an odin template is being configured where the color for this orient template is 10 there is no end point that means it's an on-demand it is dynamic where the metric is being used as a te metric we are configuring another odn template that odin template has a color value of 20 dynamic and the metric in this case is igp that's the third one we are configuring igp and here we are also using some affinity where we are excluding certain things in this odin template we are it's a dynamic and the path computation has been offloaded to the pce the metric in this case is t e we are also using making use of the affinity in this case there's another template for odn which is latency based now we have been talking that if you want to match something you would need to go ahead and make use of bgp extended community and in this case we are making the bgp color extended community set so what are we telling in this case we are saying okay i am making use of an extended community set opaque and is the name and we are just picking the color as 10. so if you see this was one of the color that we had specified in our odn template so that way we went ahead and created multiple extended community set with different color values 10 20 21 30 and these are their different names so we just simply went ahead and created the extended community sets now we are making use of the rpl now in the route policy we are saying we are assigning a name and we are saying okay hey for this particular route policy i want you to go ahead and set the extended community color to this number and this number indicates 10. that means if i'll go ahead and make use of this route policy somewhere for that particular route policy the color will be set as 10 and we are passing that similarly we are creating different route policy in this case we are studying color 20 here weighing 30 and we are making use of a perfect set so we created simply a perfect set and in this case we are saying okay hey a route policy this particular route policy if you see if the destination in sample if means if this is the destination that means we are getting something from the router and if we need to reach this particular destination for this particular destination i am setting the community color to be 10 that means if i'm importing any route which has the prefix as 88.1.0 24. for that i want you to go ahead and set an extended bgp community color to be 10 and if the destination let's say the prefix is different just simply pass that we are not doing anything so what happened let's say there is a router which is advertising this prefix to this particular hidden router there will be a match on this route policy and when there is a match bgp will go ahead and import this prefix and it will go ahead and append this color value when this color values appended segment routing sr policy odn is monitoring that size odn detects okay hey there is a prefix where for that prefix the color value is 10. now we do have a template which is on demand the only thing we were missing in that odin template was the or your end point or a destination once bgp import this particular prefix now we know okay hey this bgp prefix is coming from router b so in that case odn will kick in and it will go ahead and create a sr policy from this particular router to that router b using this particular color value because that's the color that was matching in that particular case and similarly we can go ahead and create few other things here and that's where the example kind of continues so that is the whole idea guys in this particular case of odn the policies will be instantiated on demand when we have something matching and that matching will really happens with the help of bgp extended community and in that case we will be making use of the bgb extended community color and we will be coloring our routes and based on the route the audience will go ahead and create an srte policy and that will be kind of pretty much all for this particular episode i just wanted to give you an idea of the odn again you can read it more uh detail about the odn in some of cisco's official documentation they have written it pretty nicely and in the next episode we will go ahead and do some hands-on around the odn we'll go ahead and configure all the community sets and we'll go ahead and import and export so that will be primarily all for this episode i will see you guys the next episode thank you