日本語フォーラム

 View Only

[CX-Switch]VSXのActive forwarding

This thread has been viewed 18 times
  • 1.  [CX-Switch]VSXのActive forwarding

    Posted Jun 17, 2025 02:15 PM
    Edited by shige Jun 18, 2025 01:26 AM

    VSXのActive forwardingは、コアからアクセス方向へのルーティング時にVSXのISL上でスイッチさせず、パケットを受信した側のVSX装置から出力させることで不要なISLの帯域消費抑制と遅延を最小限に抑えることができます。

    【L3 ECMPとLAGの分散の関係】

    下図の構成は、CX1CX2VSXが構成されており、Core-SWAccess-SWとは、MC-LAG(Multi-Chassis LAG)で接続されています。

    また、Core-SWCX1CX2では、OSPFによる経路交換が行われています。

    Core-SWは、Access-SW側のネットワーク10.1.10/24を同コストで学習しており、CX1またはCX2経由で到達可能な状態となっています。


    【構成】

    kousei1[Core-SWのルーティングテーブルの状態]
    Core-SWは、10.1.10/24をCX1(10.1.20.1)とCX2(10.1.20.2)の両方から到達できる状態となっている。
    Core-SW# show ip route
    Displaying ipv4 routes selected for forwarding
    Prefix              Nexthop                                  Interface     VRF(egress)       Origin/   Distance/    Age
                                                                                                 Type      Metric
    --------------------------------------------------------------------------------------------------------
    10.1.10.0/24        10.1.20.1                                vlan20        -                 O         [110/200]    02h:23m:26s
                        10.1.20.2                                vlan20        -                           [110/200]    02h:23m:26s
    10.1.20.0/24        -                                        vlan20        -                 C         [0/0]        -
    10.1.20.4/32        -                                        vlan20        -                 L         [0/0]        -
    
    Core-SW#
    Core-SW# show interface lag
    
    Aggregate lag4 is up
     Admin state is up
     Description :
     MAC Address                 : 08:00:09:a1:a1:a9
     Aggregated-interfaces       : 1/1/6 1/1/7
     Aggregation-key             : 4
     Aggregate mode              : active
     Speed                       : 2000 Mb/s
     qos trust none
     VLAN Mode: native-untagged
     Native VLAN: 1
     Allowed VLAN List: 20
     L3 Counters: Rx Disabled, Tx Disabled
    Core-SW#

    Core-SWに10.1.10/24宛のパケットが届くと、ルーティングによりネクストホップの決定と、LAGの出力ポートの決定が必要となります。
    ECMPのネクストホップの決定は、パケットの情報からハッシュ値が求められ、ネクストホップが決まります。同様に、LAGの出力ポートも、パケットの情報からハッシュ値が求められ、出力ポートが決まります。
    送信元アドレス、宛先アドレスなどパケットの状態によっては、ネクストホップがCX1、LAGの出力ポートがCX2側となり、Core-SWからCX1へのパケット転送時にVSXのISLを経由することで、不要な帯域の消費と遅延の増大など非効率な転送状態が生じることがあります。

    kousei2

    【Active forwardingによる最適なパケット転送】
    VSXのActive forwardingを有効化することで、上記の課題を解決できます。
    Core-SWからCX2へパケットが転送されたときにCX2は、ISLを利用してCX1へパケットをスイッチングせず、直接、自身のLAGポートからAccess-SW側へパケットを出力します。
    kousei3

    【Active forwardingの設定】
    ICMP redirectを無効化し、SVIでActive forwardingを有効化します。今回の構成では、Core-SW側のSVIでActive forwardingを有効化します。
    [CX1]
    !
    no ip icmp redirect
    !
    interface vlan 20
        vsx active-forwarding
    !

    [CX2]

    !
    no ip icmp redirect
    !
    interface vlan 20
        vsx active-forwarding
    !


    【状態確認】

    [CX1]

    CX1# show vsx active-forwarding
    List of VSX active-forwarding enabled interfaces:
    
    vlan20
    CX1# show vsx active-forwarding interface vlan20
    
    Interface vlan20 has VSX active-forwarding enabled.
    
    Interface vlan20 Peer Data:
    
    Peer MAC: 08:00:09:03:49:42
    Peer primary IPv4 Address: 10.1.20.2
    
    CX1#

    [CX2]

    CX2# show vsx active-forwarding
    List of VSX active-forwarding enabled interfaces:
    
    vlan20
    CX2# show vsx active-forwarding interface vlan20
    
    Interface vlan20 has VSX active-forwarding enabled.
    
    Interface vlan20 Peer Data:
    
    Peer MAC: 08:00:09:58:b8:c4
    Peer primary IPv4 Address: 10.1.20.1
    
    CX2#


    【その他参考情報】

    *Equal Cost Multipath (ECMP)

    https://arubanetworking.hpe.com/techdocs/AOS-CX/10.15/PDF/ip_route_6300-6400-8100-83xx-9300-10000.pdf

    https://arubanetworking.hpe.com/techdocs/AOS-CX/10.15/PDF/ip_route_8400.pdf

    *hash

    https://arubanetworking.hpe.com/techdocs/AOS-CX/10.15/PDF/link_aggregation.pdf

    ECMPとLAGのハッシュについては、それぞれ以下のコマンドで確認することができます。

    Core-SW# show ip ecmp
    
    ECMP Configuration
    ---------------------
     ECMP Status          : Enabled
    
    Dynamic Mode ECMP Configuration
    ------------------------------------
     Dynamic Mode         : Disabled
    
    ECMP Load Balancing by
    ------------------------
     Source IP            : Enabled
     Destination IP       : Enabled
     Source Port          : Enabled
     Destination Port     : Enabled
    
    Core-SW#
    Core-SW# show lag 4
    System-ID       : 08:00:09:a1:a1:a9
    System-priority : 65534
    
    Aggregate lag4 is up
     Admin state is up
     Description :
     Type                        : normal
     Lacp Fallback               : Disabled
     MAC Address                 : 08:00:09:a1:a1:a9
     Aggregated-interfaces       : 1/1/6 1/1/7
     Aggregation-key             : 4
     Aggregate mode              : active
     Hash                        : l3-src-dst
     LACP rate                   : slow
     Speed                       : 2000 Mb/s
     Mode                        : trunk
    Core-SW#


    #Blog #Wired