ovn ecmp_symmetric_reply 参数

154 阅读1分钟

name="options" key="ecmp_symmetric_reply"

该参数位于 静态路由 options 中,bool 类型

        If true, then new traffic that arrives over this route will have
        its reply traffic bypass ECMP route selection and will be sent out
        this route instead. Note that this option overrides any rules set
        in the <ref table="Logical_Router_policy" /> table. This option
        only works on gateway routers (routers that have
        <ref column="options" key="chassis" table="Logical_Router" /> set).


如果为true,则通过此路由到达的新流量将使其应答流量绕过ECMP路由选择,而是发送此路由。注意,这个选项会覆盖table="Logical_Router_policy"表中设置的所有规则。此选项仅适用于网关路由器(路由器具有column="options" key="chassis" table="Logical_Router" set)。

该参数位于静态路由,目前认为该参数的设置,会导致静态路由的 ecmp 直接决策出下一跳路由,从而跳过策略路由中的 ecmp 策略路由。

当流量通过ECMP路由到达时,不能保证应答流量将通过同一路由退出。有时,流量(或干预设备)的性质意味着应答流量必须从它进来的同一路线出去。此提交引入了可选的ECMP对称应答行为。如果配置了,那么往返ECMP路由的流量将被发送到conntrack。路由上的新传入流量将具有保存在ct_label中的源MACaddress和传入端口。然后,应答流量使用这个保存的信息将数据包发送回相同的地址

参考: juejin.cn/user/152657…