90 likes | 120 Views
Cos-Based Forwarding. Fabric. Rewrite Marker. CoS Processing—CBF. Ingress. Forwarding Policy. BA Classifier. Policing (Ingress). Multifield Classifier. Scheduler. Shaper. RED. Egress. Scheduler. Shaper. RED. Scheduler. Shaper. RED. Multifield Classifier. Policing (Egress).
E N D
Fabric RewriteMarker CoS Processing—CBF Ingress Forwarding Policy BA Classifier Policing (Ingress) Multifield Classifier Scheduler Shaper RED Egress Scheduler Shaper RED Scheduler Shaper RED Multifield Classifier Policing (Egress) Scheduler Shaper RED
CBF Overview • Role of CBF • Enables routing path selection based on forwarding class • Supports IPv4, IPv6, MPLS BE packet Packet Packet EF packet
CBF Configuration • Configuration steps: • Configure routing policy • Identify routes to use CBF • Configure CoS forwarding policy • Specify next hops per forwarding class • Apply the routing policy • Apply to forwarding table 192.168.1.1 BE BE EF EF 172.16.1.1 10.0.0.1 CBF-enabled router
CBF Configuration Example (1 of 3) • Configure routing policy • Identify routes to use CBF • Send to CoS forwarding policy [edit] user@R1# show policy-options policy-statement sample-cbf-policy { from { route-filter 172.16.1.0/24 exact; } then cos-next-hop-map sample-cbf-map; } 192.168.1.1 BE BE EF EF 172.16.1.1 10.0.0.1 CBF-enabled router
CBF Configuration Example (2 of 3) • Configure CoS forwarding policy • Specify next hops per forwarding class • Use a next-hop map Define multiple next-hops to enable load-sharing [edit class-of-service] user@R1# show forwarding-policy next-hop-map sample-cbf-map { forwarding-class BestEffort { next-hop 192.168.1.1; } forwarding-class ExForwarding { next-hop 10.0.0.1; lsp-next-hop 101; } } Use (or mix) IPv4 and MPLS next-hops 192.168.1.1 BE BE EF EF 172.16.1.1 10.0.0.1 CBF-enabled router
CBF Configuration Example (3 of 3) • Apply the routing policy • Apply to forwarding table [edit routing-options] user@R1# show forwarding-table { export sample-cbf-policy; } 192.168.1.1 BE BE EF EF 172.16.1.1 10.0.0.1 CBF-enabled router
CBF Usage Notes • CBF with OSPF • Must configure next hop as interface name • Accommodates point-to-point interfaces • IP and LSP next-hops • Can configure both for a forwarding class • LSP next-hops are preferred • Incomplete next-hop map • Default class next-hop used for forwarding classes not specified in next-hop map • Default class = forwarding class mapped to queue 0 • Default class = randomly selected if Q0-based class not present