Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Monitoring Fibre Channel Interface Load Balancing

    You can use operational mode commands to monitor load balancing when the switch is in FCoE-FC gateway mode:

    1. Monitoring the Interface Load-Balancing State
    2. Monitoring the Fabric Load-Balancing Algorithm

    Monitoring the Interface Load-Balancing State

    Purpose

    Monitor the number of sessions, whether load balancing is enabled or disabled, and the load-balancing weight for each native Fibre Channel (FC) interface.

    Note: A session is a FLOGI or FDISC login to the FC SAN fabric. Session does not refer to end-to-end storage sessions.

    Action

    To monitor the load-balancing state of the native FC interfaces in the CLI, enter the following CLI command:

    user@switch> show fibre-channel proxy np-port

    For example:

    user@switch> show fibre-channel proxy np-port
    Fabric: sanfab1, Fabric-id: 10
    NP-Port     State              Sessions       LB state   LB weight
    fc-0/0/0.0  online             5              ON         4
    fc-0/0/1.0  online             5              ON         4
    fc-0/0/2.0  online             10             ON         8
    
    Fabric: fc_fab2, Fabric-id: 200
    NP-Port     State              Sessions       LB state   LB weight
    fc-0/0/44.0 isolated           0              OFF        0         
    
    Fabric: fc_fab3, Fabric-id: 300
    NP-Port     State              Sessions       LB state   LB weight
    fc-0/0/46.0 online             1              ON         8         
    

    Meaning

    Table 1 summarizes key output fields for the FC interface load-balancing state.

    Table 1: Summary of Key FC Interface Load-Balancing Output Fields

    Field

    Values

    Fabric

    Name of the fabric.

    Fabric-id

    Fabric ID number.

    NP-Port

    NP_Port interface connected to the FCoE forwarder (FCF) or the FC switch.

    State

    FCID state of the NP_Port interface:

    • online—The port is online and connected to the FC switch. FCoE devices can log in to the FC switch using this port.
    • isolated—The port is isolated and is not part of the load-balancing function. FCoE devices cannot log in to the FC switch using this port.
    • offline—The port is offline.

    Sessions

    Number of active sessions on the NP_Port interface.

    LB State

    Load-balancing state:

    • On—Load balancing is on
    • Off—Load balancing is off.

    LB Weight

    Load-balancing weight, which reflects the port speed:

    • 2—Port speed is 2 Gbps.
    • 4—Port speed is 4 Gbps.
    • 8—Port speed is 8 Gbps.

    The gateway determines the least-loaded interface using the following weighted round-robin (WRR) algorithm: (number-of-sessions * max-weight) / weight, where max-weight is an internal constant. If the load on the FC interfaces is equal, the session is assigned to the interface with the highest link speed (the greatest weight).

    Monitoring the Fabric Load-Balancing Algorithm

    Purpose

    Monitor the type of load-balancing algorithm (simple or ENode-based) used on the native FC interfaces.

    Action

    To monitor the load-balancing algorithm used on the native FC interfaces in the CLI, enter the following CLI command:

    user@switch> show fibre-channel proxy fabric-state

    For example:

    user@switch> show fibre-channel proxy fabric-state
    Fabric: sanfab1, Fabric-id: 10
    Proxy load balance algorithm: Simple, Fabric WWN verification: Yes
    
    Fabric: fc_fab2, Fabric-id: 200
    Proxy load balance algorithm: ENode based, Fabric WWN verification: Yes
    
    Fabric: fc_fab3, Fabric-id: 300
    Proxy load balance algorithm: Simple, Fabric WWN verification: Yes
    

    Meaning

    You can configure each local FC fabric on an FCoE-FC gateway to use either of two types of load-balancing algorithms, simple or ENode-based. All of the native FC interfaces (NP_Ports) in a particular gateway FC fabric use the same load-balancing algorithm (the load-balancing algorithm is applied on a per-fabric basis):

    • Simple—Load balancing is based on the weighted utilization (load) of the NP_Ports connected to an FC fabric. Each new FLOGI or FDISC is assigned to the least-loaded link.
    • ENode based—Load balancing is based on the ENode FLOGI. When an ENode logs in to the fabric, all subsequent FDISC sessions (VN_Port sessions) associated with that ENode are placed on the same link as the ENode FLOGI session, regardless of the link load. New ENode FLOGIs are placed on the least-loaded link.

    The Proxy load balance algorithm field shows the type of load-balancing method the fabric uses.

    Published: 2012-07-31