示例:为不同的流量类型配置基于 CoS 的转发
基于 CoS 的转发和下一跃点地图的常见用途是为不同的流量类型(如语音和视频)实施不同的处理。例如,基于 LSP 的下一跃点可用于语音和视频,非 LSP 下一跃点可用于尽力流量。
此示例中仅显示转发策略:
[edit class-of-service]
forwarding-policy {
next-hop-map ldp-map {
forwarding-class expedited-forwarding {
lsp-next-hop voice;
non-lsp-next-hop;
}
forwarding-class assured-forwarding {
lsp-next-hop video;
non-lsp-next-hop;
}
forwarding-class best-effort {
non-lsp-next-hop;
discard;
}
}
}