1 Segment Routing
1 Segment Routing
SAOS 10
Segment Routing
Revision B
• Paths are encoded in the network • Paths are encoded in the packet
itself header as segments
• At ingress node, only the next hop • The nodes steer the packet based
and the destination is known on these instructions
Topological instruction
Segment
Service based instruction
E
G
A C 1 2
B D F
Go to G
Packet to G
Instructions
The node receiving the packet understands the identifier and routes the packet further.
Go to E
Use link 1 to F
Go to G
Packet to G
Use link 1 to F
Go to G
Packet to G
SR
Source routing: A node specifies a unicast forwarding path that a particular packet will
traverse objective
Segment
Segment Segment
Segment Segment
P1 P2
P3 P4
PE1 PE2
Segment Segment Segment
Segment Segment
SR tunnel
Single MPLS label or stack of MPLS labels
(single segment/ segment list)
tunnels
When Segment Routing is enabled for the IGP and a global SID is allocated
from SRGB, the IGP distributes the SID information to all nodes in the SR
domain. Nodes receiving the labels automatically install an ingress LSP
towards the downstream node, and a transit LSP, if there is router upstream of
the downstream node. Each LSP is uni-directional following the shortest
routing path and no TE attributes.
Advantages of Segment Routing
Less control plane protocols • Extending existing IGP (OSPF or ISIS), eliminating MPLS control
plane protocols (LDP or RSVP)
MPLS applications • Changes only in Transport layer; so L3VPN, VPLS, VPWS used as is
In the SR domain, IGP SIDs play a key role as they enable the expression of any path through
the domain. The path is expressed as a single IGP segment or a list of multiple IGP segments.
These segments can be global or local segments.
• Global segments are understood by all nodes in the network, for example, forwarding the packet
to Node B and then Z.
• Local segment are only understood by some specific node, for example, forwarding the packet
by means of a particular interface on Node B. Only Node B understands the instruction.
Segment types are IGP-prefix segment:
• An IGP-prefix segment is an IGP global segment that represents an IGP prefix, that is,
IP addresses on the node.
• The identifier is the Prefix-SID. The Prefix-SID is typically allocated by the network operator
on every node in the SR domain and must be globally unique.
• The Prefix-SID associated with the loopback address of the node is a node segment or node
SID. A node segment identifies the shortest path to the node.
• The network operator must ensure that Prefix-SID and node-SID are allocated correctly to
avoid incorrect routing in the network.
• The Segment Routing architecture defines the extensions for IGP protocols to distribute
SID information. By default SR is disabled globally from an IGP
IGP-adjacency segment:
• An IGP-adjacency segment is an IGP local segment that represents an IGP adjacency, that is, a
unidirectional data link or interface to an adjacent node or a set of data links to the adjacent
node.
• The identifier, also referred to as adjacency-SID, is locally significant and need not be
unique across nodes.
• Routers automatically generate and distribute adjacency identifiers outside of the reserved block
of node IDs, that is, the SRGB.
• It is mostly useful in scenarios in SR-TE cases where the SR tunnel needs to be routed by
means of a specific link.
Segment
Routing
Technologies
Control plane is responsible for allocating and distributing the segment information.
Data plane
operations NEXT: Inspection of the next segment
• SR can be directly applied to MPLS architecture with no change to the forwarding plane.
• At ingress node, IPv4 packets are encapsulated with list of labels.
• The active segment to process is on the top of the stack.
• Upon completion of a segment, the related label is popped from the stack.
• The process continues until the packet reaches the egress node.
SR MPLS
data plane NEXT: Pop topmost label
operations
SR simplifies TE by providing more granular controls to the user and reducing network state.
Out i/f – AC
User configures Tunnel T1
Node SID - 16001
Destination – Node G
Hops – E, EF – Link1, G
IGP node advertising mapping between SID and prefixes advertised by other IGP nodes
• SRMS can be used both for prefixes belonging to SR capable nodes or non-SR capable nodes.
• SR control plane can co-exist with LDP • SRMS assigns Prefix SID for SR nodes
• Required when SR is available in one part • No need to allocate Prefix SID on every node
and LDP is available in another
• Locally configured Prefix SID is preferred
80.80.80.80
Node SID - 16080 10.10.10.10
Node SID - 16010 20.20.20.20
Node SID - 16020 22.22.22.22
Node SID - 16022
PE1 P2 P3 PE4
A Service must be tunneled from PE1 to PE4
over a continuous MPLS tunnel encapsulation.
SRMS is an IGP node that advertises mapping between SID and prefixes
advertised by other IGP nodes. SID/Label Binding TLV is used to advertise
prefixes to SID/Label mappings. SRMS can be used both for advertising label
mapping for prefixes belonging to SR capable nodes or non-SR capable
nodes specifically the LDP capable nodes (for interworking).
• In Segment Routing interworking with LDP, the SR control plane can
co-exist with current label distribution protocols such as LDP. SR
interworking with LDP is required, where SR is available in one part of the
network and LDP is available in another part in the same routing domain.
This is a scenario where node PE1, P2, P3 are SR capable and P3, PE4
are running with LDP.
Note that on node P3, LDP needs to be enabled only on the link towards
PE4. A Service must be tunneled from PE1 to PE4 over a continuous
MPLS Tunnel Encapsulation and hence end to end tunnel is required to be
established.
• In SRMS in SR network, SRMS can also be used within an SR domain to
assign a Prefix SID for the SR nodes. In such a case, the user may not
need to allocated Prefix SID on every node. If the user does allocate
Prefix SID on the node then the locally configured Prefix SID is preferred
over the one received from the SRMS.
IS-IS Segment
Routing
Extensions
SR-algorithm Advertises the algorithm used for path calculation. The current
implementation supports the default Shortest path first algorithm.
SRMS preference Associate a preference with Segment Routing Mapping Server (SRMS)
sub-TLV advertisements from a particular source.
IS-IS extended IP Prefix-SID Carries the Prefix-SID/index/label for a prefix. The Prefix-SID is
reachability propagated from one level to another by setting some flags in the
Prefix-SID sub-TLV for the prefixes that are not local to the router, that
is, routes that are
• Advertised because of propagation (Level-1 into Level-2)
• Advertised because of leaking (Level-2 into Level-1)
• Advertised because of redistribution
IS-IS extended IS Adj-SID Carries the Adjacency-SID/ index/label for an adjacency in point-to- point
reachability networks.
1.1.1.1
Data Center A
1.1.1.1
Data Center B
1.1.1.1
Data Center C
The use of anycast IP addresses has been extended to the Segment Routing
network as Anycast SID or segment identifier. This means a group of SR-
capable devices can represent an anycast address, by having the same
Segment Routing Global Block (SRGB) provisioned on all the devices. Each
device in the group advertises the same anycast prefix segment (or Anycast
SID).
Anycast SID – Use case 1
PE1 PE2
The SR-TE policy is not anchored to reach a specific ABR whose failure
could impact the service. It is anchored to an anycast address/Anycast-SID
and hence the flow automatically reroutes on shortest-path to other ABR part
of the anycast set.
Anycast SID – Use case 2
BLUE Plane
Anycast-SID 100
PE1
PE2 PE3
Dual plane is used to enforce dis-jointness in the network, where the traffic
path towards destination node stays within a set of nodes called plane. There
can be multiple planes in the network, so that different planes in the network
can be used for different kind of traffic types. Anycast-SID allows creation of
such macro policies, such as, “flow of service 1 traffic from node PE1 to PE3
must go via Blue plane” and “flow of service 2 traffic from node PE2 to PE4
must go via Green Plane.” This is practically called a dual-plane disjoint path
architecture.
Check Your
Knowledge
Its time for a quick question to check what you have learnt.
Check Your Knowledge
Which of the following operations that are carried out on the packets by the data plane when the
packet enters an SR domain?
a. PUSH
b. SWAP
c. NEXT
d. CONTINUE
a. True
b. False
Correct answer is a
SR can be directly applied to MPLS architecture with no change to the
forwarding plane.
Check Your Knowledge
The traffic engineered tunnels in SR are instantiated as a stack of segments/labels which are
added at the node.
a. all
b. destination
c. ingress
d. egress
Correct answer is c
The traffic engineered tunnels in SR are instantiated as a stack of
segments/labels which are added at the ingress node.
Check Your Knowledge
a. True
b. False
Correct answer is b
Adj-SID is used to carries the Adjacency-SID/ index/label for an
adjacency in point-to-point networks.
Summary
In this lesson, you learned to:
You have completed this lesson. You have completed this lesson.