SR Policy包括什么?
- ID of SR Policy = <headend, color, endpoint>
- 1个Policy可以有多个Candidate Path, 一个CP可以有多个SID-lists, 可以有weight for LB
- Protocol origin of CP
- 10: PCEP;
- 20: BGP SR;
- 30: Local, CLI/Yang...
- Originator of CP, 160b = 20B
- = 4B AS# + 16B Addr (128b)
- 如果Addr是v4,就放在最后4B
- Discriminator of CP, default 0, 这个是啥?一个就是seq#,作为tie-breaker
- ID of CP = <protoOrig, originator, discrimator>
- pref of CP = 100
- Valid of CP, 就是SID是valid
- Active CP
- higher origin id
- lower originator ip
- higher discriminator
- SR policy还可以有priority,就是有topology change, 先算那个
- 1个policy, <headend, color, endpoint>
- 2个CP,CP1 is active 因为preference 200
- CP1有两个SID-List, 都installed in HW, 而且ECMP
- An explicit CP with SID-list = 应该是指静态CP
- 为空
- Weight = 0
- 1st SID不能resolve
- non-1st SID of type 3~11 into MPLS Label or SRv6 SID? 什么意思
- 挺多的,还有最后一个不是prefix SID
- Dynamic CP
- 非常关键的一个概念
- = CP,SR的无缝衔接?
- 可以代表任何的interface, tunnel.
- 这个是很关键的概念
- Headend可以steer traffic,以下方式:
- local BSID
- Per-dest, 需要BGP
- Per-flow?
- PBR
- 如果SR Policy失效,就fall back to 普通的routing
- SR Policy可以是Drop
- <B, L2, L3> 变成 <S1, S2, S3, L2, L3> 如果S1不是PHP
- 这个一个是最常见的
- BGP routes <prefix, N, ext-color-C, VPN-Label-V>
- Valid SR Policy - <endPt = N, color = C> of SID-list <S1, S2, S3> and BSID B
- 如果都met,NH != N, 而是=SR policy P of BSID B.
- 收到prefix pkt, push <S1, S2, S3, V> label
- 一个BGP update里面可以有多个color, 如果有对应的policy with colors, 最终只有一个FIB,因为higher color prefered
No comments:
Post a Comment