Segment Routing Work Book by Orhan Ergun LLC. Orhan Ergun LLC
Segment Routing Work Book by Orhan Ergun LLC. Orhan Ergun LLC
Segment Routing Work Book by Orhan Ergun LLC. Orhan Ergun LLC
Copyright
No part of this publication may be copied, reproduced in any format, by any means, electronic or
otherwise, without prior consent from the copyright owner and publisher of this book.
However, quoting for reviews, teaching, or for books, videos, or articles about writing is encouraged and
requires no compensation to, or request from, the author or publisher.
Orhan Ergun
Orhan Ergun, CCIE/CCDE Trainer, Author, Network Design Advisor and Cisco Champion 2019. Orhan
Ergun is award winning Computer Network Architect, CCDE Trainer and Author. Orhan has well known
industry certificates CCIE #26567 and CCDE #20140017.
Orhan has more than 17 years of networking experience and has been working on many medium and
large-scale network design and deployment projects for Enterprise and Service Provider networks. He
has been providing consultancy services to African, Middle East and some Turkish Service Providers and
Mobile Operators for many years. Orhan has been providing Cisco network design training such as CCDE,
Pre-CCDE, Service Provider Design and many advanced technologies for many years, and created best
CCDE Training Program to share his network design experience and knowledge with the networking
community. Orhan is sharing his articles and thoughts on his blog www.orhanergun.net. All the training
and consultancy services related information can be found from his website. Orhan has a Training and
Consultancy company located in Istanbul, Turkey
Rasoul Mesghali is a Cisco Certified Internetwork Expert (CCIE) #34938 (Routing & Switching) with over
12 years in the networking industry. Rasoul loves technology and never stop keeping up with the latest
trend in technology. His experience includes Training, Consulting and Planning and deployment of
MPLS/SR (Segment routing) and data center networks. He knows Python programming language very
well and he does code and programming on a regular basis.
Vahid Tavajjohi is a Network Engineer with more than seven years of experience. He designs and
operates network projects in large service providers and data centers. Knowledge of both data center
and service provider technologies, Virtualization, Cloud, NFV, SDN, ZTP, and Scripting are main focuses
of his career. Also, consultancy of large companies and service providers is key point for his sight in
networks. He is a researcher and he is looking for new and edge technologies. Vahid have teaching
experience of network courses, like service provider and data center for technical staff of companies.
Contents
Day-1 Segment Routing Fundamentals ........................................................................................................ 3
Day-2 Segment Routing Internetworking with LDP .................................................................................... 66
Day-3 Segment Routing Traffic Engineering ............................................................................................. 159
Day-4 Segment Routing Multi-Domain SRTE ........................................................................................... 219
Day1
Addressing Table
Device Name IPv4 Loopback address Prefix-Sid
R1(XR) 1.1.1.1/32 16001
R2(XE) 2.2.2.2/32 16002
R3(XR) 3.3.3.3/32 16003
R4(XR) 4.4.4.4/32 16004
R5(XE) 5.5.5.5/32 16005
R6(XR) 6.6.6.6/32 16006
CE1(IOS) 111.111.111.111/32 NA
CE2(IOS) 222.222.222.222/32 NA
For example:
The address between R1, R2 =10.10.12.z
R1= 10.10.12.1, R2=10.10.12.2
Topology
Configuration
LFA Configuration on R2 and R5 (XE):
router isis 1
fast-reroute per-prefix level-2 all
Tip:
For directly connected per-prefix LFA, no additional label is imposed, the top label is
swapped and packet is forwarded towards the LFA
Verification
On R2, verify protection coverage of per-prefix lfa using the comman Show isis fast-reroute summary
on R2
RP/0/RP0/CPU0:R3#show isis fast-reroute summary
Mon Feb 4 07:52:15.649 UTC
L2 6.6.6.6/32 [20/115]
via 10.10.35.5, GigabitEthernet0/0/0/1, R5, SRGB Base: 16000,
Weight: 0
FRR backup via 10.10.34.4, GigabitEthernet0/0/0/3, R4, SRGB Base:
16000, Weight: 0, Metric: 1020
Verify the destinations that are protected via the low bandwidth, high cost link between R3 and R4 by
using the command show isis fast-reroute | include "L2|FRR backup via.*R4"
Day2
The lab consist of combination of traditional IOS for CEs, IOS XE and IOS XR for
SP routers. The following addressing table is applied on all labs in this chapter.
Addressing Table
Device Name IPv4 Loopback address Prefix-Sid
R1(XR) 1.1.1.1/32 16001
R2(XE) 2.2.2.2/32 16002
R3(XR) 3.3.3.3/32 16003
R4(XR) 4.4.4.4/32 16004
R5(XE) 5.5.5.5/32 16005
R6(XR) 6.6.6.6/32 16006
CE1(IOS) 111.111.111.111/32 NA
CE2(IOS) 222.222.222.222/32 NA
For example:
The address between R1, R2 =10.10.12.z
R1= 10.10.12.1, R2=10.10.12.2
Base Topology
ICON Capability
SR Only Router
Day3
Note: It should be noted that both types explicit and dynamic policy can be applied
using PCE controller in which external controller gathers topology information of
multiple domains and select the best path over multiple domains and configures head
end router to use injected segment list.
Addressing Table
Device Name IPv4 Loopback address Prefix-Sid
R1(XR) 1.1.1.1/32 16001
R2(XE) 2.2.2.2/32 16002
R3(XR) 3.3.3.3/32 16003
R4(XR) 4.4.4.4/32 16004
R5(XE) 5.5.5.5/32 16005
R6(XR) 6.6.6.6/32 16006
CE1(IOS) 111.111.111.111/32 NA
CE2(IOS) 222.222.222.222/32 NA
For example:
The address between R1, R2 =10.10.12.z
R1= 10.10.12.1, R2=10.10.12.2
Tip:
Candidate path has a preference and is associated with a single
Binding-SID.
Tip:
SRTE Candidate Path can be received from different sources
such as: CLI, BGP, PCEP, Netconf. Source of path is not
considered for path selection. The valid path with Higher
preference is the selected path.
Day4
Multi-Domain SRTE
You can scale your network with segment routing traffic engineering.
In segment routing it is possible like traditional unified MPLS (seamless MPLS) to
use inter-AS options and BGP-LU for multi domain interconnection and in this
chapter some labs are provided which shows how to use traditional methods using
Segment Routing. In the meantime, an external controller (PCE Controller) using
BGP-LS can gather topology information of different domains and provide the best
end-to-end path using dynamic or explicit path policy. BGP-LS is an extension to
Border Gateway Protocol (BGP) for distributing the network’s link-state (LS)
topology model to external entities, such as the SDN controller. It has received a lot
of attention because many SDN apps need this model BGP-LS supports IS-IS and
OSPFv2 (until the time of writing this document).
Segment routing for traffic engineering (SR-TE) uses a “policy” to steer traffic
through the network. An SR-TE policy path is expressed as a list of segments that
specifies the path, called a segment ID (SID) list. Each segment is an end-to-end
path from the source to the destination, and instructs the routers in the network to
follow the specified path instead of the shortest path calculated by the IGP. If a
packet is steered into an SR-TE policy, the SID list is pushed on the packet by the
head-end. The rest of the network executes the instructions embedded in the SID list.
In this chapter a number of useful multi domain scenarios are provided which can
be usable for mobile operators and internet service providers.
Addressing Table
For example:
The address between R1, R2 =10.10.12.z
R1= 10.10.12.1, R2=10.10.12.2