Transcription of Introduction to Segment Routing - Cisco
1 Introduction to Segment RoutingSegmentRouting(SR) is a flexible,scalableway of doingsourcerouting. Overviewof SegmentRouting,page1 How SegmentRoutingWorks,page2 Examplesfor SegmentRouting,page3 Benefitsof SegmentRouting,page4 SegmentRoutingGlobalBlock,page6 AdditionalReferencesfor SegmentRouting,page8 Overview of Segment RoutingSegmentRouting(SR) is a flexible,scalableway of sourcechoosesa path andencodesit in the packetheaderas an orderedlist of identifierfor any type of segmentis identifiedby the segmentID (SID)consistingof a flat unsigned32-bitinteger. Segmentinstructioncan be: Go to node N usingthe shortestpath Go to node N over the shortestpath to node M and then followlinks Layer1, Layer2, and Layer3 ApplyserviceSWith segmentrouting,the networkno longerneedsto maintaina per-applicationand ,it obeysthe forwardinginstructionsprovidedin the a smallnumberof extensionsto CiscoIntermediateSystem-to-IntermediateS ystem(IS-IS)and OpenShortestPath First (OSPF) can operatewith an MPLS(MultiprotocolLabelSwitching)or an IPv6 data plane,and it integrateswith the rich multiservicecapabilitiesof MPLS,includingLayer3 VPN (L3 VPN),VirtualPrivateWire Service(VPWS),VirtualPrivateLANS ervice(VPLS)
2 ,andEthernetVPN (EVPN).Segmentroutingcan be directlyappliedto the MultiprotocolLabelSwitching(MPLS)archite cturewith nochangein the networkbandwidthmoreeffectivelythantradi tionalMPLS networksand offers lowerlatency. A segmentis encodedas an orderedSegment Routing Configuration Guide, Cisco IOS XE Release 3S 1list of segmentsis encodedas a stackof segmentto processis on the top of the relatedlabel is poppedfrom the stack,after the completionof a be appliedto the IPv6 architecturewith a new type of routingextensionheader. Asegmentis encodedas an IPv6 orderedlist of segmentsis encodedas an orderedlist of IPv6addressesin the routingextensionheader.
3 The segmentto processis indicatedby a pointerin the routingextensionheader. The pointeris incremented,after the completionof a protectionwithoutany networkprotectstraffic againstlink and node failureswithoutrequiringadditionalsignal ingin the fast re-route(FRR)technology, in combinationwith the explicitroutingcapabilitiesin SegmentRoutingguaranteesfull protectioncoveragewith protectiondoes not Segment Routing WorksA routerin a SegmentRoutingnetworkis capableof selectingany path to forwardtraffic, whetherit is explicitor InteriorGatewayProtocol(IGP)shortestpath . Segmentsrepresentsubpathsthat a routercan combinetoform a completerouteto a segmenthas an identifier(SegmentIdentifier)that isdistributedthroughoutthe networkusingnew IGP extensionsare equallyapplicableto IPv4and IPv6 case for traditionalMPLS networks,routersin a SegmentRouternetworkdo not requireLabelDistributionProtocol(LDP)and ResourceReservationProtocol- Traffic Engineering(RSVP-TE)to allocateor signaltheir segmentidentifiersand programtheir router(node)and each link (adjacency)has an associatedsegmentidentifier(SID).
4 Nodesegmentidentifiersare globallyuniqueand representthe shortestpath to a routeras determinedby the IGP. The networkadministratorallocatesa node ID to each routerfrom a the otherhand,an adjacencysegmentID is locallysignificantand representsa specificadjacency, such as egressinterface,to a neighboringrouter. Routersautomaticallygenerateadjacencyide ntifiersoutsideof the reservedblockof node IDs. In anMPLS network,a segmentidentifieris encodedas an MPLS label stackentry. SegmentIDs directthe dataalonga specifiedpath. Thereare two kindsof segmentIDS: Prefix SID A segmentID that containsan IP addressprefixcalculatedby an IGP in the serviceprovidercore are node SID is a specialform of prefixSID thatcontainsthe loopbackaddressof the node as the is advertisedas an indexinto the node specificSR GlobalBlockor SRGB.
5 AdjacencySID A segmentID that containsan advertisingrouter s adjacencyto a neighbor. AnadjacencySID is a link betweentwo adjacencySID is relativeto a specificrouter, itis locallyunique. Segment Routing Configuration Guide, Cisco IOS XE Release 3S2 Introduction to Segment RoutingHow Segment Routing WorksExamples for Segment RoutingThe followingfigureillustratesan MPLS networkwith five routersusingSegmentRouting,IS-IS,a labelrangeof 100 to 199 for node IDs, and 200 and higherfor adjacencyIDs. IS-ISwoulddistributeIP prefixreachabilityalongsidesegmentID (the MPLS label)acrossthe 1: An MPLS Network with Five Routers Using Segment RoutingIn the previousexample,any routersendingtraffic to routerE wouldpush label 103 (routerE node segmentidentifier)to forwardtraffic usingthe IS-ISshortestpath.
6 The MPLS label-swappingoperationat each hoppreserveslabel 103 until the packetarrivesat E (Figure2). On the otherhand,adjacencysegmentsbehavediffere ntly. For example,if a packetarrivesat RouterD with a top-of-stackMPLS label of 203 (D-to-Eadjacencysegmentidentifier),Route rD wouldpop the label and forwardthe traffic to 2: MPLS Label-Swapping OperationSegmentidentifierscan be combinedas an orderedlist to performtraffic segmentlist cancontainseveraladjacencysegments,sever alnode segments,or a combinationof both dependingon the previousexample,RouterA couldalternativelypush label stack(104,203)to reachRouterE usingthe shortestpath and all applicableECMPsto RouterD and then throughan explicitinterfaceonto the destination(Figure3).
7 RouterA does not need to signalthe new path, and the state informationSegment Routing Configuration Guide, Cisco IOS XE Release 3S 3 Introduction to Segment RoutingExamples for Segment Routingremainsconstantin the ultimatelyenforcesa forwardingpolicythat determineswhichflowsdestinedto routerE are switchedthrougha 3: Router E Destination PathBenefits of Segment Routing ReadyforSDN SegmentRoutingis a compellingarchitectureconceivedto embraceSoftware-DefinedNetwork(SDN)and is the foundationfor ApplicationEngineeredRouting(AER).It strikesa balancebetweennetwork-baseddistributedin telligence,such as automaticlink and node protection,andcontroller-basedcentralize dintelligence,such as traffic can providestrict networkperformanceguarantees,efficientus e of networkresources,and very high scalabilityfor networkuses minimalstate informationto meet be easilyintegratedwith a controller-basedSDN sampleSDNscenariowherethe controllerperformscentralizedoptimizatio n, this scenario,the controllerhas a completepictureof the networktopologyand routercanrequesta path to a destinationwith certaincharacteristics,for example,delay, bandwidth.
8 Diversity. Thecontrollercomputesan optimalpath and returnsthe correspondingsegmentlist, such as an MPLS label Segment Routing Configuration Guide, Cisco IOS XE Release 3S4 Introduction to Segment RoutingBenefits of Segment Routingstack,to the requestingrouter. At that point,the routercan injecttraffic with the segmentlist withoutany additionalsignalingin the 4: SDN Controller In addition,segmentlists allowcompletenetworkvirtualizationwithou taddingany applicationstate tothe state is encodedin the packetas a list of networkonly maintainssegmentstate,it can supporta large number- and a higherfrequency- of transaction-basedapplicationrequestswith outcreatingany burdenon the network.
9 Simplified Whenappliedto the MPLS data plane,SegmentRoutingoffers the abilityto tunnelMPLS services(VPN,VPLS,and VPWS)from an ingressprovideredge to an egressprovideredge withoutanyotherprotocolthan an IGP (ISISor OSPF). Simpleroperationwithoutseparateprotocols for label distribution(for example,no LDP or RSVP). No complexLDP or IGP synchronizationto troubleshoot. Betterutilizationof installedinfrastructure,for lowercapitalexpenditures(CapEx),withECMP -awareshortestpath forwarding(usingnode segmentIDs). SupportsFast Reroute (FRR) DeliverautomatedFRR for any topology. In case of link or nodefailuresin a network,MPLS uses the FRR mechanismfor segmentrouting,theconvergencetime is sub-50-msec.
10 Large-scaleData Center- SegmentRoutingsimplifiesMPLS-enableddata centerdesignsusingBorderGatewayProtocol( BGP)RFC 3107 - IPv4 labeledunicastamongTop-of-the-Rack/Leaf/ Spineswitches. BGP distributesthe node segmentID, equivalentto IGP node SID. Any node withinthe topologyallocatesthe sameBGP segmentfor the sameswitch. The same benefitsare providedas for IGP node SID: ECMPand automatedFRR (BGPPIC(PrefixIndependentConvergence). This is a buildingblockfor traffic engineering- SR TE data centerfabricoptimization. Scalable Segment Routing Configuration Guide, Cisco IOS XE Release 3S 5 Introduction to Segment RoutingBenefits of Segment RoutingAvoid thousandsof labelsin LDP database.)