<Course Title>
CoS-Based Forwarding
LY
N
O
SE
U
AL
N
R
TE
IN
CoS-Based Forwarding
LY
N
O
SE
U
AL
CoS Processing—CBF
N
Forwarding policy is a tool that allows you to control and affect the path traffic takes through the network. CoS can be
integrated with policy by allowing you to select forwarding paths based on a packet’s forwarding class.
R
TE
IN
2 [Link]
CoS-Based Forwarding
LY
N
O
SE
U
AL
Role of CBF
N
CBF provides the ability to select a packet’s routing path based on its forwarding class. For example, you might want to
specify a particular path to carry high priority traffic, while best-effort traffic takes a less preferred path.
R
CBF is available for IP version 4 (IPv4), IP version 6 (IPv6), and MPLS packets.
TE
IN
[Link] 3
CoS-Based Forwarding
LY
N
O
SE
U
AL
CBF Configuration Overview
N
The slide lists the steps to configure CBF. These steps are expanded on the following slides.
R
TE
IN
4 [Link]
CoS-Based Forwarding
LY
N
O
SE
U
AL
CBF Configuration—Configure Routing Policy
N
The first configuration step involves identifying the traffic that should use CBF. Using routing policy, define the desired routes
within route filters. The resulting action for the policy must include the cos-next-hop-map statement along with the
R
name of the next-hop map.
TE
IN
[Link] 5
CoS-Based Forwarding
LY
N
O
SE
U
AL
CBF Configuration—Configure CoS Forwarding Policy
N
The next configuration step involves specifying the next hops for each forwarding class. Create a next-hop map that specifies
one or more next hops for each forwarding class. You can optionally specify more than one next hop for a forwarding class,
R
creating load balancing across the multiple paths. You can also mix IP next hops with MPLS next hops under a single
forwarding class.
TE
IN
6 [Link]
CoS-Based Forwarding
LY
N
O
SE
U
AL
CBF Configuration—Apply Routing Policy
N
Much like firewall filters, routing policy on its own does nothing, until you apply it. The final configuration step involves
applying the routing policy to routes exported to the forwarding table.
R
TE
IN
[Link] 7
CoS-Based Forwarding
LY
N
O
SE
U
AL
CBF with OSPF
N
When you configure CBF within a network that uses OSPF as the interior gateway protocol (IGP), you must specify the next
hop as an interface name (or next-hop alias), not as an IP address. The reason for this specification is OSPF adds routes with
R
the interface as the next hop for point-to-point interfaces; the next hop does not contain the IP address.
IP and LSP Next Hops
TE
When a forwarding class is identified within a next-hop map and configured with both LSP next hops and IP next hops, the
LSP next hops are preferred.
IN
Incomplete Next-Hop Map
If a next-hop map does not specify all possible forwarding classes, the Junos OS assigns traffic for the unspecified
forwarding classes to a default forwarding class. The default forwarding class is the class associated with Queue 0. If the
default forwarding class is not specified in the next-hop map, the Junos OS randomly designates the default class.
8 [Link]