hi I'm Barbara Fox and today I'm going to talk about IP routing and how and why it evolved to MPLS and then how MPLS has evolved over time what issues were being addressed and how we're evolving to segment routing and with path computation engines or pcs so let's start with the way layer 0 1 & 2 networks set up their connections for the most part they use connection-oriented protocols so they set up connections between the two nodes and forward traffic between two nodes and forward traffic and these are considered hard connections meaning that the state
is stored in the network and it the connection stays up until it's brought down the elements themselves are usually pretty hardened because they have to keep the connections up until they brought down and then the devices usually have redundant elements in them they keep track of state like which resources are being used and what's available for use so layer 3 routing takes a different approach traffic is sent in a connectionless manner so each packet is forwarded hop-by-hop across the network so this means that the network does not have to hold the state of the connections
nor does it really have to track its resources it receives a packet it figures out where it needs to go next and it forwards it on and if in any dies the network just round routes around it so with IP routing each node has a loopback address that identifies that node and OSPF and is is are the interior gateway protocols the iGPS that share routing information between nodes so in this diagram node 6 would advertise that it had connectivity to 10:00 10:30 / 24 and node 7 would advertise that it had connectivity to 10:00 10:30
1 0 / 24 and 10 10 3200 with a / 29 was which is actually a subset of this node up here so PF and is is our link state protocols so that that information is advertised to all of the nodes in the network and because their link state protocols every node in the network has the same complete picture of the network so that nodes compute the same least cost cost path from any node to any other node in the network and that's important right because you don't want to have you don't want to create
loops in the network so every node knows the shortest path from every other node to the destination so in this diagram say we were going to inject a packet from 10 10 31 100 and we want to note 5 and we want to send it across the network what happens is that every node will do a longest match so the routes that were learned are stored in the routing database and they're in there or in the forwarding database and they're they're stored with a with a mask and the longest match and we'll do longest match
first so in this case we have a 10 10 31 100 as a destination we will end it with a slash 29 and if the result is 10 10 3,200 then we would forward it but in this case it's not and then so the next thing we'll do is we'll mask 10 10 31 100 with a slash 24 but we don't get this so we don't forward it so we check it against the next entry so we mask this with a slash 24 and we do get 10 10 31 0 so we forward it out
this port to 10 10 0 18 our next stop so now the packet has arrived at node 3 so node 3 does the same thing it checks it against its first entry its second entry its third entry it matches so it sends it to it forwards it to 10 10 0 22 so it forwards it out this link now this node does the same thing it checks it against its routing table its forwarding tables sees a slash 24 sends it to 1010 0 26 and then at this node he forwards it based on his routing
table to the correct now to the correct node so as more and more so this is a lot of you know every everybody's checking their out their outs so as more and more traffic is pushed on the internet it seemed like a bad idea to be doing hop-by-hop routing for every packet at every router in the core of the network so it was putting a lot of pressure on the core routers so there was this company called epsilon in the 90s that started doing IP and IP so what they would do is they would know
that the destination node was node 7 so they would encapsulate the IP packet in an IP packet that was destined to 1010 127 7 and then it would that outer IP packet would be stripped and the packet would be forwarded so this was you know a brilliant idea and if everyone did this the core nodes would only have to route to the other nodes in the network they wouldn't have to route to every IP dist destination so that would significantly cut down on the number of destination IP addresses account core routers needed to route so
LDP was invented the label distribution protocol so now the iGPS would advertise a label a local label with the routes that it was advertising so in this case 1010 127 six node six would advertise the route ten ten thirty with a slash 24 and say use label 33 33 on this link to get to that network and node seven down here would advertise both of these networks and say use label 6 33 to get to me four to get to those destinations addresses and then no.2 would say okay if you want to get to 10:00
10:30 1/24 or 1010 3200 / 29 use label 482 to get to me and then I'll forward it on and then Note 3 would say if you want to get to any of those networks use label 137 to get to them and so every node was advertising a local label to it to get to those particular routes so the traffic is unidirectional right because basically it's telling you if you want to get to this destination say we still wanted to get to 10 10 31 100 we would these labels would tell us how to get
there the cool thing about this is only the le R is the label edge routers actually had to look into their routing table and when they looked into their routing table they would find a label that they should use to forward the traffic so this is pretty cool right so in this case we you know we're going to 10 10 31 100 again he looks it up and he says oh that goes out this court with label 137 he gets to label 137 and now this node looks and says oh my in label 137 that
has an out label on this court of 42 so it sends it out for 82 for 82 receives it says Oh in label for 82 goes out out label 633 every node is is using the label except for the egress knows every core node every transit node is using the label to figure out where it goes next and the labels are a fixed size so it's a much easier lookup so this is cool right but connections weren't end-to-end so if node 3 also had a packet for 10 10 31 131 100 it would also send
it out for 82 and if node 2 had another packet that was going to 10 10 31 you know 99 it would also send it out label on 633 so as the traffic get closer to the nodes the pipes got the pipes were using more bandwidth right there was more there was more packets in the label as I get closer to the node but this is exactly the way that routing works so that wasn't really a big deal so connections aren't end-to-end and the pipes are getting fuller the closer you get to the node to
the nodes so as it turns out the service providers wanted to be able to engineer their IP networks in a way in the same way that circuit networks are engineered they wanted to be able to make use make use of little used lines and they wanted to be upsell connectivity with particular constraints like bandwidth jitter affinities or srl geez so at that point rsvp-te was invented so with rsvp-te the iGPS assigned characteristics to the links like bandwidth colors affinities as our lg's and those characteristics were distributed with the IGP flooding so that information is kept
in a traffic engineering database so the head end or the source determines the route to cern determines the entire path right and what it does is it looks at all the links that are in its te database and it discards any links that don't meet the criteria of the connection that it's going to set up and then it runs the Dijkstra on the remaining links so at that point it knows the path and that's called a constraint constraint based open shortest path first so the Hedden knows how knows what the path to the egress should
be and it creates an ero an explicit route object in the arrow that defines the path and that that path can be strict or it can be loose and strict every link along the path is determined or loose you can say I just want to traverse these particular links so the ingress node sends a path message along the path describing the connection that needs to be made so the path message goes to the destination and then the labels are allocated on the way back with the res B message and now you have an end-to-end connection
from the source to the destination and it meets the criteria that was requested it's still a unidirectional tunnel you're still sending the traffic from node five to node seven but it is an end-to-end path with specific characteristics so now the transit nodes have a little more state that they need to keep so say we requested one gig of bandwidth for this connection every transit node needs to know that it's link now has one gig less of bandwidth available for other paths that are going to be made in the network and so now it starts flooding
that it has one less band one less gig of bandwidth and when it does as IGP flooding information so this means that these transit nodes or label switching routers ALS ours they're going to perform a CAC function rate if they know how much band what they have available and they're flooding that information there basically they basically know that they're allocating this much bandwidth for a particular connection and so there's soft state that they have to keep they have to know that a certain amount of bandwidth is allocated for this particular connection and then they're going
to get periodic refresh --is on that tunnel that says I'm still using the bandwidth I'm still using the bandwidth I'm still using the bandwidth and if they don't get the if they don't get those refreshes for a certain amount of time they'll release the bandwidth so that it's available for other connections so people really complained about these soft state messages maybe there are a bigger deal when the transit links were smaller but more bandwidth the covers a lot of hills so the other issue with soft state is that the Hedden doesn't necessarily know that if
there's a problem in the network and the connections gone down so BFD was invented and BFD acts a lot like CCMS at layer two so basically what happens is that you send out can you send end-to-end information saying that you're alive and it's returned back in if three of them are missed then the endpoints know that there's a problem with the connection and the network so when there's a problem how do you fix it do you fail all the way back to the hand Andry signal the entire route for RSVP or do you wait for
the network to converge for LDP so next FRR was invented the network operators wanted something faster right they didn't want to wait for the connection to be recycled I mean it's a scaling nightmare and they wanted to be able to they were used to circuits failing over in 50 milliseconds so they wanted to be able to have something that was really fast so they invented fast reroute so for fast reroute there's two modes there's link and Link node so in the case of a link what happens is that the fast reroute determines that if this
link goes down I'm going to create I'm going to tunnel the traffic that would have gone over this link and I'm going to put it on another path but I'm going to so if the traffic would have gone on this link with a with a label of 480 to a new path is created to bypass that link and the packet still has the 40 82 in it but there's also a bypass label so that it can bypass this link arrived at the at the destination node with the same label and when the 115 in this
case is popped off now the node is able to look up 482 and know that it's going to forward the traffic out this link with 633 so that's called next hop there also is no link which is next next top so instead of going to instead of bypassing the link what you do is you bypass the node and so you want to go to that nodes next hop so you're going to the next next hop so in this case this is a little bit not quite perfect but in this case if we were if the
label was going to be 633 that got forwarded here so we would bypass the tunnel now the problem with 6 the problem with this is that actually this is the penultimate hop so it wouldn't actually put the 633 in on it so I don't I'm not carrying the extra label here I'm just forwarding the traffic around this node to arrive here to be forwarded out but if we just talked about it in the way if this wasn't a penultimate hop then this wasn't a penultimate hop then we would we would include 633 when we would
we would put a bypass tunnel of it that went 114 116 115 it would and when it got here it would pop the 150 and it would have the 633 and I would forward it to the next hop so this helps this helps everything recover much more quickly the nodes realize so the node like these nodes know there's an issue immediately so they know that to invoke the bypass that they're using at this place and if the failure continues RSVP tunnel can be reestablished with a make before break so if this tunnel doesn't come back
and it turns out that the network needs to be you know we balanced node five can create a new RSVP tunnel and then switch the traffic to it and then break the old one and LDP will reconverge also for a bit around okay so this brings us to MPLS TP so MPLS TP is like a circuit in that the connection is bi-directional and associated with rsvp-te it was unidirectional and if you were sending connections between two tunnels you had to create one at either side with MPLS TP it's bi-directional and associated so MPLS is signal
TP is signaled with gmpls which is a generic protocol that can be used on non IP network and can carry non IP traffic so like the optical guys like this LSPs are set up between the loopback addresses on the ingress and the egress nodes and MPLS TP is similar to rsvp-te and that the connections support te capabilities as with rsvp-te the SI SPF algorithm is used to determine the path so any any any links I don't need the criteria or thrown out and the best path this is algorithmically determined at the source row the other
difference is that the labels are included in the path packets as well as the residue packets to set up the connection in both directions so when the path connection goes he he will send the label along with the requirements for this connection to the destination node and then the res be reply will set up the labels in the in the return direction and the other difference with MPLS TP is that you can set up a primary tunnel and a backup tunnel then you run BFD over the LSP and if you fail there's a backup tunnel
that you fail over to it when you miss three BFD packets so MPLS TP solves many of the problems that rsvp-te selves it's just that it's dynamic and co ratted before we move on to segment routing and path computation engine let's talk about pseudo wires so tunnels connect routers together and then the pseudo wires can connect the customer ports together over the tunnels and they can be created dynamically using targeted LDP so if we wanted to make a connection from A to Z it would could run over an RSVP T tunnel or could go with
LD P could go with over an MPLS CP tunnel but it would have a label and it would ride over that tunnel and then that is a pseudo wire that would be connected so let's talk about segment routing so at first glance segment routing is a lot like topology LDP the routes are advertised with a prefix cid that identifies the node on which the route can be found instead of just a label so unlike LD p-- you labels the prefix id's are globally unique in the network so the same SID will be identified with the
same egress node by all the nodes in the network so I'm going to gloss over some of the details but basically to get to the egress node ten ten one twenty seven seven in this diagram every node in the network forwards baton node to that node with a set of seven so if we if any node is trying to get to ten ten one twenty seven seven it forwards with the SID of seven and so it works like LDP it's still shortest path towards every destination but every node uses the same sid to get there
so this Sid is globally unique okay so we still have the same traffic engineering problems that we had with LD P if we want to make better use of the network we need to be able to choose particular routes that maximize the networks resources so we need to be able to traffic engineer our tunnels so in addition to the prefix SIDS we have adjacency SIDS and adjacency SIDS are assigned to individual links on the nodes and they are locally significant they allow you to steer the packet to a new segment through a particular link so
in the way that the IGP is advertised labels with routes now they advertise a SID to the whole network that understands the globally unique identifiers so in this diagram we're folding the packet 210 1031 100 and if we want a forward using the shortest path we just put a sit of 7 on it and we forward it along the path and it just takes the shortest path to get to 2 nodes 7 to be forwarded on but say we don't want to we don't want to follow the shortest path for some reason we want the
traffic we want to forward the traffic through node 1 and node 6 so seven as the label we would follow a shortest path so we don't want to do that so what we're gonna do the first said that we'll put on it is one right because we want to get to node one that's the first hop that we want to get to so our outer CID will be CID one now say that the shortest path from one to seven actually Traverse to node two and everybody in the node in the network knows that because we're
all running the same algorithm with the same database but we want the the this path to traverse node six so we use an adjacency Sid of 1600 six to get to node six so that would be the second CID that we put on this packet and then now we want to go from node six to node seven we can follow the shortest path so we can just put the city of seven on it so we took our packet that was had a destination IP address of 10 10 31 100 we added a CID 7 for
the last hop CID 1606 for the link and then CID 1 for the first hop so we followed the packet so this is different from RSVP in another interesting way the network nodes themselves don't know anything about the tunnel they don't know it exists so they're not tracking it there's no soft state in the network so remember that in rsvp-te the routers would allocate an amount of bandwidth went up to a particular tunnel that was traversing it these nodes are completely unaware of the tunnel there's no soft state and this is really this information is
going on every single packet that's being forwarded the route is being put into every packet that's being forwarded so this has really suffered to find networking right the information the nodes themselves don't really know anything that was just forwarding they're just doing what they're told and now we have the potential for MPLS functionality without the complexity of all the protocols in the state and the network elements so this is like an IP it's just doing what has to get done but that's why the path computation engine is so important because the network itself isn't holding
and monitoring state the software controllers and the orchestrators need to have that information so this is why the path computation engine is so important because the nodes themselves aren't holding any state they're not monitoring the state of the network so the software controllers and the orchestrators need to have that information and the path computation engine needs to understand the topology of the network the state of the network and the throughput being used on each link and it uses this information to create a source route that each packet will embed to its destination so does that
work right so the PCE peers with the routers in the IGP so it doesn't advertise acts like any of these nodes except that it doesn't advertise any routes and it doesn't advertise any labels it's not a destination for anything but it has to have the same routing database that all the other nodes have so that I can make the right decisions and so when all these nodes advertise their links and their routes and stuff the PCE learns it as well and when there's a Fault in the network the controller learns that through the IGP as
well so the PCE runs computes based on the policies required by the service and the tunnel and it does that in real time based on the state of the network so what's important about a PCE so you know there's a lot of information in the network right there's a lot of things that you need to know there there may still be there it may still be rsvp-te tunnels and and LDP and all that going on in the network and maybe not all of the nodes in the network are going to run segments routing and so
the path computation engine needs to understand what's going on in the network and it needs to learn it it needs to be able to talk to all of the nodes and and learn what their what they're doing what their state is and what they're doing at the time so it'll be interesting I am it'll be interesting to see how the network evolves from here what's what's the next problem that we're gonna have to solve in and who's actually going to be able to take advantage of segment routing and who isn't so that's the overview I
hope you got something out of it thank you