[AIX 네트워크 관리 24] TCP/IP (18) EtherChannel 구성, 장애 조치, 네트워크 인터페이스 백업, 부하 분산

핵심 정리

  • 만들기: smitty etherchannel → Add an EtherChannel / Link Aggregation → 주 어댑터 선택(백업용은 고르지 않음) → 필드 입력 → smitty chinet으로 새 인터페이스에 IP 구성. 쓰고 있는(인터페이스가 있는) 어댑터는 먼저 detach해야 합니다.
  • Mode: standard(해시 결과를 어댑터 수로 나눈 나머지로 어댑터 선택, 기본), round_robin(Hash Mode는 default만), netif_backup, 8023ad(LACP). Hash Mode: default(목적지 IP 마지막 바이트, 비IP는 목적지 MAC), src_port, dst_port, src_dst_port(두 포트를 더해 2로 나눔).
  • 장애 조치: 무손실 복구(실제로 트래픽을 받아야 주 채널로 복귀), noloss_failover=no면 ping 장애 시 바로 전환, auto_recovery=no면 백업에 머묾, smitty의 Force A Failover로 강제 전환. 802.3ad에서 LACP 실패로 백업에 간 경우는 자동 복구가 지원되지 않습니다.
  • 네트워크 인터페이스 백업: 주 어댑터 하나 + 백업 어댑터, 서로 다른(서로 이어진) 스위치에 연결, netaddr로 ping할 원격 호스트 지정(재시도 기본 3회, 간격 1초). ping 실패로 백업에 갔으면 백업이 동작하는 한 머뭅니다.
  • 부하 분산: 클라이언트가 많은 서버는 default, 같은 IP 쌍 사이 연결이 여럿이면 src_dst_port, 스위치 없이 마주 연결한 두 호스트(점보 프레임)는 round_robin. 순서 어긋난 패킷은 netstat -s의 tcp 항목으로 봅니다. 대체 MAC은 0x로 시작하는 12자리 16진수이며 실행 중 바꾸면 잠깐 연결이 끊길 수 있습니다.
항목 내용
버전 AIX 5.3, AIX 6.1 (6.1에서 802.3ad Interval과 LACP 자동 복구 예외가 더해짐)
원문 Networks and communication management — 5.3판 262270쪽, 6.1판 364372쪽
관련 명령어 smitty etherchannel, smitty chinet, netstat -an, netstat -s, entstat
관련 속성 mode, hash_mode, adapter_names, backup_adapter, netaddr, noloss_failover, auto_recovery

EtherChannel을 구성하는 절차입니다.

  1. 명령행에 smitty etherchannel을 입력합니다.

  2. 목록에서 Add an EtherChannel / Link Aggregation을 고르고 Enter를 누릅니다.

  3. EtherChannel에 넣을 주 이더넷 어댑터를 고르고 Enter를 누릅니다. EtherChannel 백업을 쓸 계획이면 이 단계에서 백업으로 쓸 어댑터는 고르지 않습니다.

    참고: Available Network Adapters에는 모든 이더넷 어댑터가 표시됩니다. 이미 쓰고 있는(인터페이스가 정의된) 이더넷 어댑터를 고르면 오류 메시지가 나옵니다. 그 어댑터를 쓰려면 먼저 인터페이스를 분리(detach)해야 합니다.

  4. 다음 지침에 따라 필드에 정보를 입력합니다.

필드 설명

  • Parent Adapter: EtherChannel의 부모 장치 정보(예: EtherChannel이 Shared Ethernet Adapter에 속할 때)를 보여 줍니다. EtherChannel이 다른 어댑터 안에 들어 있지 않으면(기본) NONE이 표시됩니다. 다른 어댑터 안에 들어 있으면 부모 어댑터 이름(예: ent6)이 표시됩니다. 이 필드는 정보용이며 고칠 수 없습니다. 부모 어댑터 옵션은 AIX 5.3 이후에 있습니다.

  • EtherChannel / Link Aggregation Adapters: EtherChannel에서 쓰는 주 어댑터가 모두 보여야 합니다. 앞 단계에서 고른 어댑터입니다.

  • Enable Alternate Address: 선택 필드입니다. yes로 하면 EtherChannel이 쓸 MAC 주소를 지정할 수 있습니다. no로 하면 EtherChannel은 첫 어댑터의 MAC 주소를 씁니다.

  • Alternate Address: Enable Alternate Address를 yes로 했다면 여기에 쓸 MAC 주소를 지정합니다. 지정하는 주소는 0x로 시작하는 12자리 16진수 주소(예: 0x001122334455)여야 합니다.

  • Enable Gigabit Ethernet Jumbo Frames: 선택 필드입니다. 쓰려면 스위치가 점보 프레임을 지원해야 합니다. IEEE 802.3(et) 인터페이스가 아니라 Standard Ethernet(en) 인터페이스에서만 동작합니다. 켜려면 yes로 설정합니다.

  • Mode: 다음 모드 가운데 고릅니다.

    • standard: EtherChannel이 알고리즘으로 패킷을 내보낼 어댑터를 고릅니다. 알고리즘은 데이터 값 하나를 EtherChannel의 어댑터 수로 나누고, 그 나머지(나머지 연산자)로 나가는 링크를 정합니다. 어떤 데이터 값을 알고리즘에 넣을지는 Hash Mode 값이 정합니다(해시 모드별 설명은 Hash Mode 속성 참고). 예를 들어 Hash Mode가 standard면 패킷의 목적지 IP 주소를 씁니다. 목적지가 10.10.10.11이고 EtherChannel에 어댑터가 2개면 (11 / 2) = 5, 나머지 1이므로 두 번째 어댑터를 씁니다(어댑터 번호는 0부터 시작). 어댑터 번호는 SMIT 메뉴에 나열된 순서입니다. 이것이 기본 동작 모드입니다.
    • round_robin: EtherChannel이 어댑터를 돌아가며 각 어댑터에 패킷을 하나씩 준 뒤 되풀이합니다. 패킷이 EtherChannel에 주어진 순서와 조금 다르게 나갈 수 있지만 대역폭을 가장 잘 씁니다. 이 모드를 default가 아닌 Hash Mode와 함께 고르는 것은 잘못된 조합입니다. 라운드 로빈 모드를 고르면 Hash Mode 값을 default로 둡니다.
    • netif_backup: 네트워크 인터페이스 백업 모드를 켜려면 주 EtherChannel에 어댑터 여럿과 백업 어댑터 하나를 구성할 수 있습니다. 자세한 정보는 네트워크 인터페이스 백업 구성을 봅니다.
    • 8023ad: 자동 링크 집계에 IEEE 802.3ad LACP(Link Aggregation Control Protocol)를 쓰게 합니다. 자세한 내용은 IEEE 802.3ad Link Aggregation configuration을 봅니다.
  • IEEE 802.3ad Interval (6.1): 다음 값 가운데 고릅니다.

    • long: 기본값입니다. 고르면 EtherChannel이 프로토콜이 정한 긴 간격 값으로 상대에게 LACP 패킷을 요청합니다.
    • short: 고르면 EtherChannel이 프로토콜이 정한 짧은 간격 값으로 상대에게 LACP 패킷을 요청합니다.

    참고: 간격 값은 EtherChannel이 IEEE 802.3ad 모드로 동작할 때만 씁니다. 그 밖에는 무시됩니다.

    참고: AIX는 상대의 long과 short 간격 요청을 모두 따릅니다.

  • Hash Mode: 나가는 어댑터를 정하는 알고리즘에 쓸 데이터 값을 정하는 해시 모드를 고릅니다.

    • default: 패킷의 목적지 IP 주소로 나가는 어댑터를 정합니다. IP가 아닌 트래픽(ARP 등)은 목적지 MAC 주소의 마지막 바이트로 계산합니다. 이 모드는 패킷을 받은 순서대로 EtherChannel로 내보내는 것을 보장하지만 대역폭을 다 쓰지 못할 수 있습니다.
    • src_port: 패킷의 출발지 UDP나 TCP 포트 값으로 나가는 어댑터를 정합니다. UDP나 TCP 트래픽이 아니면 목적지 IP 주소의 마지막 바이트를 씁니다. IP 트래픽이 아니면 목적지 MAC 주소의 마지막 바이트를 씁니다.
    • dst_port: 패킷의 목적지 UDP나 TCP 포트 값으로 나가는 어댑터를 정합니다. UDP나 TCP 트래픽이 아니면 목적지 IP의 마지막 바이트를 씁니다. IP 트래픽이 아니면 목적지 MAC 주소의 마지막 바이트를 씁니다.
    • src_dst_port: 패킷의 출발지와 목적지 UDP나 TCP 포트 값으로 나가는 어댑터를 정합니다(정확히는 출발지와 목적지 포트를 더한 뒤 2로 나눠 알고리즘에 넣습니다). UDP나 TCP 트래픽이 아니면 목적지 IP의 마지막 바이트를 씁니다. IP 트래픽이 아니면 목적지 MAC 주소의 마지막 바이트를 씁니다. 이 모드는 클라이언트와 서버 모두에서 대부분의 상황에 패킷 분배가 좋습니다.

    참고: Mode가 round_robin일 때 default가 아닌 Hash Mode를 고르는 것은 잘못된 조합입니다.

    패킷 분배와 부하 분산은 EtherChannel 부하 분산 옵션을 봅니다.

  • Backup Adapter: 선택 필드입니다. EtherChannel 백업으로 쓸 어댑터를 입력합니다.

  • Internet Address to Ping: 선택 필드이며, 네트워크 인터페이스 백업 모드로 동작하거나 EtherChannel에 어댑터 하나 이상과 백업 어댑터가 있을 때만 효과가 있습니다. EtherChannel은 여기 지정한 IP 주소나 호스트 이름에 ping합니다. Number of Retries 필드에 지정한 횟수만큼, Retry Timeout 필드에 지정한 간격으로 이 주소에 ping하지 못하면 EtherChannel이 어댑터를 바꿉니다.

  • Number of Retries: EtherChannel이 어댑터를 바꾸기 전에 허용하는 ping 응답 실패 횟수를 입력합니다. 기본값은 3입니다. 선택 필드이며 Internet Address to Ping을 설정했을 때만 유효합니다.

  • Retry Timeout: EtherChannel이 Internet Address to Ping에 ping하는 간격(초)을 입력합니다. 기본값은 1초입니다. 선택 필드이며 Internet Address to Ping을 설정했을 때만 유효합니다.

  1. 원하는 필드를 바꾼 뒤 Enter를 눌러 EtherChannel을 만듭니다.
  2. 명령행에 smitty chinet을 입력해 새로 만든 EtherChannel 장치 위에 IP를 구성합니다.
  3. 목록에서 새 EtherChannel 인터페이스를 고릅니다.
  4. 필수 필드를 모두 채우고 Enter를 누릅니다.

EtherChannel을 구성한 뒤 할 수 있는 추가 작업은 EtherChannel·링크 집계 나열을 봅니다.

영어 원문

Configuring an EtherChannel

Use this procedure to configure an EtherChannel.

  1. Type smitty etherchannel at the command line.

  2. Select Add an EtherChannel / Link Aggregation from the list and press Enter.

  3. Select the primary Ethernet adapters that you want on your EtherChannel and press Enter. If you are planning to use EtherChannel backup, do not select the adapter that you plan to use for the backup at this point.

Note: The Available Network Adapters displays all Ethernet adapters. If you select an Ethernet adapter that is already being used (has an interface defined), you will get an error message. You first need to detach this interface if you want to use it.

  1. Enter the information in the fields according to the following guidelines:
  • Parent Adapter: Provides information of an EtherChannel's parent device (for example, when an EtherChannel belongs to a Shared Ethernet Adapter). This field displays a value of NONE if the EtherChannel is not contained within another adapter (the default). If the EtherChannel is contained within another adapter, this field displays the parent adapter's name (for example, ent6). This field is informational only and cannot be modified. The parent adapter option is available in AIX 5.3 and later.

  • EtherChannel / Link Aggregation Adapters: You should see all primary adapters that you are using in your EtherChannel. You selected these adapters in the previous step.

  • Enable Alternate Address: This field is optional. Setting this to yes will enable you to specify a MAC address that you want the EtherChannel to use. If you set this option to no, the EtherChannel will use the MAC address of the first adapter.

  • Alternate Address: If you set Enable Alternate Address to yes, specify the MAC address that you want to use here. The address you specify must start with 0x and be a 12-digit hexadecimal address (for example, 0x001122334455).

  • Enable Gigabit Ethernet Jumbo Frames: This field is optional. In order to use this, your switch must support jumbo frames. This will only work with a Standard Ethernet (en) interface, not an IEEE 802.3 (et) interface. Set this to yes if you want to enable it.

  • Mode: You can choose from the following modes:

– standard: In this mode the EtherChannel uses an algorithm to choose which adapter it will send the packets out on. The algorithm consists of taking a data value, dividing it by the number of adapters in the EtherChannel, and using the remainder (using the modulus operator) to identify the outgoing link. The Hash Mode value determines which data value is fed into this algorithm (see the Hash Mode attribute for an explanation of the different hash modes). For example, if the Hash Mode is standard, it will use the packet's destination IP address. If this is 10.10.10.11 and there are 2 adapters in the EtherChannel, (1 / 2) = 0 with remainder 1, so the second adapter is used (the adapters are numbered starting from 0). The adapters are numbered in the order they are listed in the SMIT menu. This is the default operation mode. – round_robin: In this mode the EtherChannel will rotate through the adapters, giving each adapter one packet before repeating. The packets may be sent out in a slightly different order than they were given to the EtherChannel, but it will make the best use of its bandwidth. It is an invalid combination to select this mode with a Hash Mode other than default. If you choose the round-robin mode, leave the Hash Mode value as default. – netif_backup: To enable Network Interface Backup Mode, you can configure multiple adapters in the primary EtherChannel and a backup adapter. For more information, see Configuring Network Interface Backup. – 8023ad: This options enables the use of the IEEE 802.3ad Link Aggregation Control Protocol (LACP) for automatic link aggregation. For more details about this feature, see IEEE 802.3ad Link Aggregation configuration.

  • IEEE 802.3ad Interval: You can choose from the following values: – long: This is the default value of the interval. When selected, the EtherChannel will request LACP packets from its partner at long interval value as specified by the protocol – short: When selected, the EtherChannel will request LACP packets from its partner at short interval value as specified by the protocol.

Note: The interval value is only used when EtherChannel is operating in IEEE 802.3ad mode. Otherwise, the value is ignored.

Note: AIX honors both long and short interval request from its partner.

  • Hash Mode: Choose from the following hash modes, which will determine the data value that will be used by the algorithm to determine the outgoing adapter: – default: The destination IP address of the packet is used to determine the outgoing adapter. For non-IP traffic (such as ARP), the last byte of the destination MAC address is used to do the calculation. This mode guarantees packets are sent out over the EtherChannel in the order they were received, but it may not make full use of the bandwidth. – src_port: The source UDP or TCP port value of the packet is used to determine the outgoing adapter. If the packet is not UDP or TCP traffic, the last byte of the destination IP address will be used. If the packet is not IP traffic, the last byte of the destination MAC address will be used. – dst_port: The destination UDP or TCP port value of the packet is used to determine the outgoing adapter. If the packet is not UDP or TCP traffic, the last byte of the destination IP will be used. If the packet is not IP traffic, the last byte of the destination MAC address is used. – src_dst_port: The source and destination UDP or TCP port values of the packet is used to determine the outgoing adapter (specifically, the source and destination ports are added and then divided by two before being fed into the algorithm). If the packet is not UDP or TCP traffic, the last byte of the destination IP is used. If the packet is not IP traffic, the last byte of the destination MAC address will be used. This mode can give good packet distribution in most situations, both for clients and servers.

Note: It is an invalid combination to select a Hash Mode other than default with a Mode of round_robin.

To learn more about packet distribution and load balancing, see EtherChannel load-balancing options.

  • Backup Adapter: This field is optional. Enter the adapter that you want to use as your EtherChannel backup.

  • Internet Address to Ping: This field is optional and only takes effect if you are running Network Interface Backup mode or if you have one or more adapters in the EtherChannel and a backup adapter. The EtherChannel will ping the IP address or host name that you specify here. If the EtherChannel is unable to ping this address for the number of times specified in the Number of Retries field and in the intervals specified in the Retry Timeout field, the EtherChannel will switch adapters.

  • Number of Retries: Enter the number of ping response failures that are allowed before the EtherChannel switches adapters. The default is three. This field is optional and valid only if you have set an Internet Address to Ping.

  • Retry Timeout: Enter the number of seconds between the times when the EtherChannel will ping the Internet Address to Ping. The default is one second. This field is optional and valid only if you have set an Internet Address to Ping.

  1. Press Enter after changing the desired fields to create the EtherChannel.

  2. Configure IP over the newly-created EtherChannel device by typing smitty chinet at the command line.

  3. Select your new EtherChannel interface from the list.

  4. Fill in all of the required fields and press Enter.

For additional tasks that can be performed after the EtherChannel is configured, see Listing EtherChannels or Link Aggregations.

복구와 장애 조치 옵션

EtherChannel이나 IEEE 802.3ad 링크 집계에는 복구와 장애 조치 기능이 있습니다.

이 기능으로 다음이 나아집니다.

  • 복구 중 패킷 손실을 막을 수 있습니다.
  • 장애 조치가 즉시 일어나도록 설정할 수 있습니다.
  • 자동 복구를 꺼서 백업 어댑터가 계속 동작하게 할 수 있습니다.
  • 링크 집계가 주 채널에서 백업으로, 또는 그 반대로 장애 조치하도록 강제할 수 있습니다.

무손실 복구

무손실 복구 기능은 백업 어댑터에서 주 채널로 복구할 때 패킷을 되도록 적게 잃도록 합니다.

무손실 복구 전에는 EtherChannel이나 IEEE 802.3ad가 주 어댑터 하나의 복구를 감지한 바로 그 순간 주 채널로 복구했습니다. 어떤 경우에는 어댑터의 스위치가 데이터를 주고받을 수 있는 상태가 아니어서 복구 직후 일부 패킷을 잃었습니다.

무손실 복구에서는 EtherChannel이나 IEEE 802.3ad 어댑터가 주 채널에서 실제로 트래픽을 받을 수 있게 된 뒤에만 주 채널로 복구합니다. 그래서 스위치 포트가 완전히 초기화되었고 패킷을 잃지 않음을 보장합니다.

무손실 장애 조치

무손실 장애 조치 기능은 무손실 복구 기능의 동작을 바꿉니다.

ping 실패로 장애 조치가 일어나면 기본으로 무손실 복구를 따릅니다. 곧 장애 조치를 마치기 전에 비활성 어댑터의 스위치가 트래픽을 받을 때까지 기다리는 시간이 있습니다. 그러나 noloss_failover 속성을 no로 설정하면 ping 장애 조치가 즉시 일어납니다.

자동 복구

주 채널에서 백업 어댑터로 장애 조치한 뒤, EtherChannel과 IEEE 802.3ad 링크 집계는 고장 난 주 채널의 어댑터가 적어도 하나 복구되면 주 채널로의 복구를 자동으로 시작합니다.

(6.1) 이 복구 옵션은 IEEE 802.3ad 모드이고 백업 어댑터로의 장애 조치가 LACP(Link Aggregation Control Protocol) 실패 때문일 때는 지원되지 않습니다. LACP 실패는 주 채널의 모든 어댑터가 제한 시간 안에 LACPDU(LACP data unit)를 받지 못할 때 일어납니다. 제한 시간은 IEEE 표준이 정하며 IEEE 802.3ad 모드에 구성한 간격을 바탕으로 합니다.

이 기본 동작은 auto_recovery 속성을 no로 설정해 바꿀 수 있습니다. 이렇게 하면 EtherChannel이나 IEEE 802.3ad 링크 집계는 장애 조치 뒤 백업 어댑터로 계속 동작합니다. 백업 어댑터의 동작은 다음 가운데 하나가 일어날 때까지 계속됩니다.

  • 장애 조치를 강제합니다.
  • 백업 어댑터가 고장 납니다.
  • 백업 어댑터에서 ping 실패가 감지됩니다.

강제 장애 조치

EtherChannel이나 IEEE 802.3ad 링크 집계가 주 채널에서 백업 어댑터로, 또는 백업 어댑터에서 주 채널로 장애 조치하도록 강제할 수 있습니다.

강제 장애 조치는 백업 어댑터가 정의되어 있고 비활성 채널이 올라와 동작 중일 때만 됩니다. 예를 들어 주 채널에서 백업 어댑터로 강제 장애 조치하려면 백업 어댑터가 동작 중이어야 합니다.

이 기능을 쓰려면 smitty etherchannel을 입력하고 화면에서 Force A Failover In An EtherChannel / Link Aggregation 옵션을 고릅니다. 그런 다음 장애 조치를 강제할 EtherChannel이나 IEEE 802.3ad 링크 집계를 고릅니다.

영어 원문

Recovery and failover options

Recovery and failover features are available for EtherChannel or IEEE 802.3ad Link Aggregation.

With these features, the following improvements are available:

  • packet loss can be prevented during recovery

  • failovers can be set to occur instantaneously

  • automatic recovery can be turned off so that the backup adapter continues operations

  • Link Aggregations can be forced to failover from the primary channel to the backup, or the other way around

Lossless recovery

The lossless recovery feature ensures that recovery from the backup adapter to the primary channel loses as few packets as possible.

Before lossless recovery, EtherChannel or IEEE 802.3ad would recover to the primary channel at the same instant it detected the recovery of one of the primary adapters. In some cases, the adapter's switch would not be in a state in which it could send or receive data, and some packets would get lost immediately after a recovery.

With lossless recovery, the EtherChannel or IEEE 802.3ad adapter recovers to the primary channel only when it has been able to actually receive traffic on it. This ensures that the switch port is fully initialized and no packets get lost.

Lossless failover

The lossless failover feature modifies the behavior of the lossless recovery feature.

When ping failures cause a failover, lossless recovery is observed by default. This involves a period of waiting until the inactive adapter's switch receives traffic before finalizing the failover. If the noloss_failover attribute is set to no, however, ping failovers occur immediately.

Automatic recovery

After a failover from the primary channel to the backup adapter, EtherChannel and IEEE 802.3ad Link Aggregation automatically starts a recovery to the primary channel that failed when at least one of its adapters recovers.

This recovery option is not supported in IEEE 802.3ad mode and failover to the backup adapter is because of the Link Aggregation Control Protocol (LACP) failure. The LACP failure occurs when all adapters in the primary channel do not receive the LACP data units (LACPDU) within the timeout period. The timeout period is determined by the IEEE standard, which is based on the interval that is configured for IEEE 802.3ad mode.

This default behavior can be modified by setting the auto_recovery attribute to no. With this setting, the EtherChannel or IEEE 802.3ad Link Aggregation continues operating on the backup adapter after the failover. Operations on the backup adapter continue until one of the following events occur:

  • A failover is forced.

  • The backup adapter fails.

  • A ping failure is detected on the backup adapter.

Forced failovers

EtherChannel or IEEE 802.3ad Link Aggregation can be forced to fail over from the primary channel to the backup adapter, or from the backup adapter to the primary channel.

Forced failovers work only if there is a backup adapter defined, and if the inactive channel is up and running. For example, to force a failover from the primary channel to the backup adapter, the backup adapter must be running.

To use this feature, enter smitty etherchannel and select the Force A Failover In An EtherChannel / Link Aggregation option from the screen. Then select the EtherChannel or IEEE 802.3ad Link Aggregation where the failover needs to be forced.

네트워크 인터페이스 백업 구성

네트워크 인터페이스 백업은 사용자 연결을 끊지 않는 고장 감지와 장애 조치로 네트워크의 단일 장애 지점을 막아 줍니다. 이 모드로 동작할 때는 언제나 어댑터 하나만 활성입니다.

활성 어댑터가 고장 나면 EtherChannel의 다른 어댑터를 모든 트래픽에 씁니다. 네트워크 인터페이스 백업 모드로 동작할 때는 EtherChannel 지원 스위치에 연결할 필요가 없습니다.

네트워크 인터페이스 백업 구성은 어댑터를 서로 다른 네트워크 스위치에 연결할 때 가장 효과적입니다. 모든 어댑터를 스위치 하나에 연결하는 것보다 중복성이 크기 때문입니다. 서로 다른 스위치에 연결할 때는 스위치 사이가 이어져 있는지 확인합니다. 그래야 지금 활성인 어댑터로 가는 경로가 언제나 있어 한 어댑터에서 다른 어댑터로 장애 조치할 수 있습니다.

주 EtherChannel에 구성한 어댑터가 백업 어댑터보다 우선합니다. 주 어댑터가 동작하는 한 그것을 씁니다. 이전 릴리스의 네트워크 인터페이스 백업 모드는 주 어댑터가 이미 복구되었든 아니든 백업 어댑터도 고장 날 때까지 백업 어댑터를 썼던 것과 다릅니다.

예를 들어 ent0를 주 어댑터로, ent2를 백업 어댑터로 구성해 ent3라는 EtherChannel을 만들 수 있습니다. 이상적으로는 ent0와 ent2를 서로 다른 두 스위치에 연결합니다. 이 예에서 ent3(EtherChannel의 인터페이스)로 보내는 모든 트래픽은 기본으로 ent0로 보내지고 ent2는 쉬고 있습니다. 어느 때든 ent0가 고장 나면 모든 트래픽이 백업 어댑터 ent2로 보내집니다. ent0가 복구되면 다시 모든 트래픽에 쓰입니다.

이제 백업 어댑터가 있는 여러 EtherChannel에 대해 링크 고장과 네트워크 도달 불가를 감지하도록 EtherChannel을 구성할 수 있습니다. 그러려면 netaddr 속성으로, 연결이 언제나 있어야 할 원격 호스트의 IP 주소나 호스트 이름을 지정합니다. EtherChannel은 이 호스트에 주기적으로 ping해 아직 네트워크 경로가 있는지 판단합니다. 지정한 횟수만큼 ping에 응답이 없으면 EtherChannel은 다른 어댑터로는 원격 호스트까지 네트워크 경로가 있기를 기대하며 다른 어댑터로 장애 조치합니다. 이 구성에서는 모든 어댑터를 서로 다른 스위치에 연결할 뿐 아니라, 각 스위치에서 ping하는 호스트까지의 경로도 서로 달라야 합니다.

이 ping 기능은 백업 어댑터가 있는 EtherChannel 하나 이상에서 쓸 수 있습니다. 그러나 주 어댑터에서 ping 응답이 없어 장애 조치가 일어났다면, 백업 어댑터가 동작하는 한 백업 어댑터가 활성 채널로 남습니다. 백업 어댑터로 동작하는 동안에는 주 어댑터에서 ping 대상 호스트에 닿을 수 있는지 알 방법이 없습니다. 주와 백업 사이를 오가며 장애 조치하지 않도록 백업으로 계속 동작합니다(백업 어댑터에서도 ping 응답이 없거나 백업 어댑터 자체가 고장 나면 주 어댑터로 장애 조치합니다). 그러나 장애 조치가 (ping 무응답이 아니라) 주 어댑터 고장 때문이었다면, EtherChannel은 평소대로 주 어댑터가 다시 올라오자마자 주 어댑터로 돌아옵니다.

새 버전에서 네트워크 인터페이스 백업을 구성하려면 아래 네트워크 인터페이스 백업 구성 절차를 봅니다.

네트워크 인터페이스 백업 구성 절차

새 버전에서 네트워크 인터페이스 백업을 구성하는 절차입니다.

  1. root 권한으로 명령행에 smitty etherchannel을 입력합니다.

  2. 목록에서 Add an EtherChannel / Link Aggregation을 고르고 Enter를 누릅니다.

  3. 주 이더넷 어댑터를 고르고 Enter를 누릅니다. 고장 날 때까지 쓸 어댑터입니다.

    참고: Available Network Adapters 필드에는 모든 이더넷 어댑터가 표시됩니다. 이미 쓰고 있는 이더넷 어댑터를 고르면 오류 메시지가 나오며, 쓰기 전에 그 인터페이스를 분리해야 합니다. 인터페이스 분리 방법은 Making changes to an EtherChannel with 5200-01 and earlier를 봅니다.

  4. 다음 지침에 따라 필드에 정보를 입력합니다.

    • Parent Adapter: EtherChannel의 부모 장치 정보(예: EtherChannel이 Shared Ethernet Adapter에 속할 때)를 보여 줍니다. 다른 어댑터 안에 들어 있지 않으면(기본) NONE, 들어 있으면 부모 어댑터 이름(예: ent6)이 표시됩니다. 정보용이며 고칠 수 없습니다. 백업 어댑터 옵션은 AIX 운영 체제에 있습니다.
    • EtherChannel / Link Aggregation Adapters: 앞 단계에서 고른 주 어댑터가 보여야 합니다.
    • Enable Alternate Address: 선택 필드입니다. yes로 하면 EtherChannel이 쓸 MAC 주소를 지정할 수 있습니다. no로 하면 주 어댑터의 MAC 주소를 씁니다.
    • Alternate Address: Enable Alternate Address를 yes로 했다면 쓸 MAC 주소를 지정합니다. 0x로 시작하는 12자리 16진수 주소(예: 0x001122334455)여야 합니다.
    • Enable Gigabit Ethernet Jumbo Frames: 선택 필드입니다. 스위치가 점보 프레임을 지원해야 합니다. Standard Ethernet(en) 인터페이스에서만 동작하며 IEEE 802.3(et) 인터페이스에서는 동작하지 않습니다. 쓰려면 yes로 설정합니다.
    • Mode: 주 EtherChannel에 어댑터가 하나뿐이므로 어떤 동작 모드를 골라도 상관없습니다. 모든 패킷은 그 어댑터가 고장 날 때까지 그 어댑터로 보내집니다. 백업 어댑터로 같은 동작을 낼 수 있으므로 netif_backup 모드는 없습니다.
    • Hash Mode: 주 EtherChannel에 어댑터가 하나뿐이므로 어떤 해시 모드를 골라도 상관없습니다. 모든 패킷은 그 어댑터가 고장 날 때까지 그 어댑터로 보내집니다.
    • Backup Adapter: 백업 어댑터로 쓸 어댑터를 입력합니다. 장애 조치 뒤 주 어댑터가 복구될 때까지 이 어댑터를 씁니다. 선호하는 어댑터를 주 어댑터로 쓰기를 권합니다.
    • Internet Address to Ping: 선택 필드입니다. EtherChannel은 여기 지정한 IP 주소나 호스트 이름에 ping합니다. Number of Retries에 지정한 횟수만큼, Retry Timeout에 지정한 간격으로 이 주소에 ping하지 못하면 EtherChannel이 어댑터를 바꿉니다.
    • Number of Retries: EtherChannel이 어댑터를 바꾸기 전에 허용하는 ping 응답 실패 횟수입니다. 기본값은 3입니다. 선택 필드이며 Internet Address to Ping을 설정했을 때만 유효합니다.
    • Retry Timeout: EtherChannel이 Internet Address to Ping에 ping하는 간격(초)입니다. 기본값은 1초입니다. 선택 필드이며 Internet Address to Ping을 설정했을 때만 유효합니다.
  5. 원하는 필드를 바꾼 뒤 Enter를 눌러 EtherChannel을 만듭니다.

  6. 명령행에 smitty chinet을 입력해 새로 만든 인터페이스 위에 IP를 구성합니다.

  7. 목록에서 새 EtherChannel 인터페이스를 고릅니다.

  8. 필수 필드를 모두 채우고 Enter를 누릅니다.

이제 네트워크 인터페이스 백업이 구성되었습니다.

영어 원문

Network Interface Backup configuration

Network Interface Backup protects against a single point of network failure by providing failure detection and failover with no disruption to user connections. When operating in this mode, only one adapter is active at any given time.

If the active adapter fails, another adapter in the EtherChannel will be used for all traffic. When operating in Network Interface Backup mode, it is not necessary to connect to EtherChannel-enabled switches.

The Network Interface Backup setup is most effective when the adapters are connected to different network switches, as this provides greater redundancy than connecting all adapters to one switch. When connecting to different switches, make sure there is a connection between the switches. This provides failover capabilities from one adapter to another by ensuring that there is always a route to the currently-active adapter.

Priority is given to the adapter configured in the primary EtherChannel, over the backup adapter. As long as the primary adapter is functional, it is used. This contrasts from the behavior of Network Interface Backup mode in earlier releases, where the backup adapter was used until it also failed, regardless of whether the primary adapter had already recovered.

For example, ent0 could be configured as the main adapter, and ent2 as the backup adapter, creating an EtherChannel called ent3. Ideally, ent0 and ent2 would be connected to two different switches. In this example, all traffic sent over ent3 (the EtherChannel's interface) is sent over ent0 by default, whereas ent2 is idle. If at any time ent0 fails, all traffic is sent over the backup adapter, ent2. When ent0 recovers, it is again used for all traffic.

It is now possible to configure the EtherChannel to detect link failure and network unreachability for multiple EtherChannels with a backup adapter. To do this, use the netaddr attribute to specify the IP address or host name of a remote host where connectivity should always be present. The EtherChannel will periodically ping this host to determine whether there is still a network path to it. If a specified number of ping attempts go unanswered, the EtherChannel will fail over to the other adapter in the hope that there is a network path to the remote host through the other adapter. In this setup, not only should every adapter be connected to a different switch, but each switch should also have a different route to the host that is pinged.

This ping feature is available for one or more EtherChannels with a backup adapter. However, if there is a failover due to unanswered pings on the primary adapter, the backup adapter remains the active channel as long as it is working. There is no way of knowing, while operating on the backup adapter, whether it is possible to reach the host being pinged from the primary adapter. To avoid failing over back and forth between the primary and the backup, it keeps operating on the backup (unless the pings go unanswered on the backup adapter as well, or if the backup adapter itself fails, in which case it would fail over to the primary adapter). However, if the failover occurred because the primary adapter failed (not because the pings went unanswered), the EtherChannel will then come back to the primary adapter as soon it has come back up, as usual.

To configure Network Interface Backup in the newer versions, see “Configuring Network Interface Backup.”

Configuring Network Interface Backup

Use this procedure to configure a network interface backup in the newer versions.

  1. With root authority, type smitty etherchannel on the command line.

  2. Select Add an EtherChannel / Link Aggregation from the list and press Enter.

  3. Select the primary Ethernet adapter and press Enter. This is the adapter that will be used until it fails.

Note: The Available Network Adapters field displays all of the Ethernet adapters. If you select an Ethernet adapter that is already being used, you will get an error message and will need to detach this interface before you can use it. Refer to Making changes to an EtherChannel with 5200-01 and earlier for information on how to detach an interface.

  1. Enter the information in the following fields according to the following guidelines:
  • Parent Adapter: This field provides information of an EtherChannel's parent device (for example, when an EtherChannel belongs to a Shared Ethernet Adapter). This field displays a value of NONE if the EtherChannel is not contained within another adapter (the default). If the EtherChannel is contained within another adapter, this field displays the parent adapter's name (for example, ent6). This field is informational only and cannot be modified. The backup adapter option is available in the AIX operating system.

  • EtherChannel / Link Aggregation Adapters: You should see the primary adapter you selected in the previous step.

  • Enable Alternate Address: This field is optional. Setting this to yes will enable you to specify a MAC address that you want the EtherChannel to use. If you set this option to no, the EtherChannel will use the MAC address of the primary adapter.

  • Alternate Address: If you set Enable Alternate Address to yes, specify the MAC address that you want to use here. The address you specify must start with 0x and be a 12-digit hexadecimal address (for example 0x001122334455).

  • Enable Gigabit Ethernet Jumbo Frames: This field is optional. In order to use this, your switch must support jumbo frames. This only works with a Standard Ethernet (en) interface, not an IEEE 802.3 (et) interface. Set this to yes if you want to use it.

  • Mode: It is irrelevant which mode of operation you select because there is only one adapter in the main EtherChannel. All packets are sent over that adapter until it fails. There is no netif_backup mode because that mode can be emulated using a backup adapter.

  • Hash Mode: It is irrelevant which hash mode you select because there is only one adapter in the main EtherChannel. All packets are sent over that adapter until it fails.

  • Backup Adapter: Enter the adapter that you want to be your backup adapter. After a failover, this adapter is used until the primary adapter recovers. It is recommended to use the preferred adapter as the primary adapter.

  • Internet Address to Ping: This field is optional. The EtherChannel pings the IP address or host name that you specify here. If the EtherChannel is unable to ping this address for the number of times specified in the Number of Retries field and in the intervals specified in the Retry Timeout field, the EtherChannel switches adapters.

  • Number of Retries: Enter the number of ping response failures that are allowed before the EtherChannel switches adapters. The default is three. This field is optional and valid only if you have set an Internet Address to Ping.

  • Retry Timeout: Enter the number of seconds between the times when the EtherChannel pings the Internet Address to Ping. The default is one second. This field is optional and valid only if you have set an Internet Address to Ping.

  1. Press Enter after changing the desired fields to create the EtherChannel.

  2. Configure IP over the newly-created interface by typing smitty chinet at the command line.

  3. Select your new EtherChannel interface from the list.

  4. Fill in all of the required fields and press Enter.

Your network interface backup is now configured.

EtherChannel 부하 분산 옵션

EtherChannel에는 나가는 트래픽의 부하 분산 방법이 두 가지 있습니다. 나가는 트래픽을 EtherChannel의 모든 어댑터에 고르게 펴는 round-robin과, 알고리즘으로 어댑터를 고르는 standard입니다.

Hash Mode 매개변수는 알고리즘에 넣을 숫자 값을 정합니다.

다음 표는 쓸 수 있는 부하 분산 옵션 조합을 요약합니다.

표 82. Mode와 Hash Mode 조합과 각 조합이 만드는 나가는 트래픽 분배

Mode Hash Mode 나가는 트래픽 분배
standard 또는 8023ad default 전통적인 AIX 동작. 어댑터 선택 알고리즘은 목적지 IP 주소(TCP/IP 트래픽)나 MAC 주소(ARP와 그 밖의 비IP 트래픽)의 마지막 바이트를 씁니다. 클라이언트가 많은 서버에서 보통 좋은 첫 선택입니다.
standard 또는 8023ad src_dst_port 출발지와 목적지 TCP나 UDP 포트 값을 합친 값으로 알고리즘이 나가는 어댑터 경로를 고릅니다. 연결마다 TCP나 UDP 포트가 고유하므로, 세 가지 포트 기반 해시 모드는 IP 주소 쌍 사이에 서로 다른 TCP나 UDP 연결이 여럿 있을 때 어댑터 분배에 유연성을 더해 줍니다. (5.3) 최고 성능을 위해 선호하는 해시 모드입니다.
standard 또는 8023ad src_port 어댑터 선택 알고리즘이 출발지 TCP나 UDP 포트 값을 씁니다. netstat -an 명령 출력에서 포트는 Local 열의 TCP/IP 주소 접미사 값입니다. (5.3) 호환성을 위해 남겨 둔 모드로 보통은 쓰지 않아야 하며, standard나 8023ad 모드의 src_dst_port 해시를 써야 합니다.
standard 또는 8023ad dst_port 목적지 시스템 포트 값으로 알고리즘이 나가는 어댑터 경로를 고릅니다. netstat -an 명령 출력에서 Foreign 열의 TCP/IP 주소 접미사가 TCP나 UDP 목적지 포트 값입니다. (5.3) 권하지 않는 모드이며 src_dst_port가 최고 성능을 위해 선호하는 해시 모드입니다.
round-robin default 나가는 트래픽을 EtherChannel의 모든 어댑터 포트에 고르게 폅니다. (중간에 스위치 없이) 마주 연결한 두 호스트에 보통 고르는 모드입니다.

라운드 로빈 분배

나가는 모든 트래픽을 EtherChannel의 모든 어댑터에 고르게 폅니다. AIX 서버 시스템에 가장 높은 대역폭 최적화를 줍니다. 라운드 로빈 분배는 모든 링크를 똑같이 쓰는 이상적인 방법이지만, 받는 시스템에서 패킷 순서가 어긋날 가능성도 생긴다는 점을 생각합니다.

대체로 라운드 로빈 모드는 점보 프레임을 쓰는 마주 연결(back-to-back)에 이상적입니다. 이 환경에는 중간 스위치가 없으므로 스위치에서의 처리가 패킷 전달 시간, 순서, 어댑터 경로를 바꿀 가능성이 없습니다. 이 직결 케이블 네트워크 경로에서는 패킷이 보낸 그대로 도착합니다. 점보 프레임(9000바이트 MTU)은 전통적인 1500바이트 MTU보다 언제나 파일 전송 성능이 좋습니다. 그러나 이 경우에는 이점이 하나 더 있습니다. 이 큰 패킷은 보내는 데 오래 걸리므로 받는 호스트가 순서가 어긋난 패킷 때문에 계속 인터럽트를 받을 가능성이 적습니다.

라운드 로빈 모드는 다른 환경에도 쓸 수 있지만 받는 시스템에서 패킷 순서가 어긋날 위험이 커집니다. 이 위험은 오래 이어지는 스트리밍 TCP 연결이 몇 개뿐일 때 특히 큽니다. 호스트 쌍 사이에 이런 연결이 많으면 서로 다른 연결의 패킷이 섞여, 같은 연결의 패킷이 순서가 어긋나 도착할 가능성이 줄어듭니다. 순서가 어긋난 패킷 통계는 netstat -s 명령 출력의 tcp 부분에서 확인합니다. 값이 꾸준히 늘면 EtherChannel에서 보낸 트래픽에 문제가 있을 수 있다는 뜻입니다.

전통적인 이더넷 MTU를 써야 하고 스위치를 거쳐 연결해야 하는 시스템에서 순서가 어긋난 패킷이 문제라면, standard 모드 동작에서 제공하는 여러 해시 모드를 시도해 봅니다. 모드마다 강점이 있지만, default와 src_dst_port 모드가 더 널리 쓸 수 있으므로 시작점으로 알맞습니다.

standard 또는 802.3ad 알고리즘

EtherChannel standard 알고리즘을 쓰는 데는 이점이 있습니다.

standard 알고리즘은 standard와 IEEE 802.3ad 방식 링크 집계 모두에 씁니다. AIX는 "숫자 값"의 마지막 바이트를 EtherChannel의 어댑터 수로 나누고 그 나머지로 나가는 링크를 정합니다. 나머지가 0이면 EtherChannel의 첫 어댑터를, 1이면 두 번째 어댑터를 고르는 식입니다(어댑터는 adapter_names 속성에 나열된 순서로 고릅니다).

Hash Mode 선택이 계산에 쓸 숫자 값을 정합니다. 기본으로 목적지 IP 주소나 MAC 주소의 마지막 바이트를 계산에 쓰지만, 출발지와 목적지 TCP나 UDP 포트 값도 쓸 수 있습니다. 이 대안으로 EtherChannel의 실제 어댑터에 나가는 트래픽을 나누는 방식을 세밀하게 조정할 수 있습니다.

default 해시 모드에서는 IP 트래픽의 경우 목적지 IP 주소의 마지막 바이트에 어댑터 선택 알고리즘을 적용합니다. ARP와 그 밖의 비IP 트래픽은 목적지 MAC 주소의 마지막 바이트에 같은 공식을 적용합니다. 장애 조치를 일으키는 어댑터 고장이 없으면, default standard 모드에서 호스트 쌍 사이의 모든 트래픽은 같은 어댑터로 나갑니다. default 해시 모드는 로컬 호스트가 서로 다른 많은 IP 주소와 연결을 맺을 때 이상적일 수 있습니다.

그러나 로컬 호스트가 몇 안 되는 IP 주소와 오래 이어지는 연결을 맺으면, 특정 목적지로 보내는 트래픽은 모두 같은 어댑터로 보내지므로 일부 어댑터가 다른 어댑터보다 부하를 많이 나르는 것을 보게 됩니다. 이렇게 하면 패킷 순서가 어긋나는 것은 막지만, 모든 경우에 대역폭을 가장 효과적으로 쓰지는 못할 수 있습니다. 포트 기반 해시 모드도 패킷을 순서대로 보내지만, 같은 목적지로 보내더라도 서로 다른 UDP나 TCP 연결에 속한 패킷을 다른 어댑터로 보낼 수 있게 하므로 모든 어댑터의 대역폭을 더 잘 씁니다.

src_dst_port 해시 모드에서는 나가는 패킷의 TCP나 UDP 출발지와 목적지 포트 값을 더한 뒤 2로 나눕니다. 그 결과인 정수(소수 없음)를 standard 알고리즘에 넣습니다. TCP나 UDP 트래픽은 standard 알고리즘과 고른 해시 모드 값으로 고른 어댑터로 보냅니다. TCP나 UDP가 아닌 트래픽은 default 해시 모드, 곧 목적지 IP 주소나 MAC 주소의 마지막 바이트로 돌아갑니다. src_dst_port 해시 모드 옵션은 출발지와 목적지 TCP나 UDP 포트 값을 모두 고려합니다. 이 모드에서 TCP나 UDP 연결 하나의 모든 패킷은 어댑터 하나로 보내지므로 순서대로 도착함이 보장되지만, (같은 호스트로의 연결이라도) 연결마다 다른 어댑터로 보낼 수 있으므로 트래픽이 여전히 퍼집니다. 이 해시 모드는 출발지와 목적지 TCP나 UDP 포트 값을 모두 쓰므로 연결을 맺는 방향 때문에 결과가 치우치지 않습니다.

src_port 해시 모드에서는 나가는 패킷의 출발지 TCP나 UDP 포트 값을 씁니다. dst_port 해시 모드에서는 나가는 패킷의 목적지 TCP나 UDP 포트 값을 씁니다. 포트 값이 연결마다 바뀌고 src_dst_port 옵션으로 바라는 분배가 나오지 않으면 src_port나 dst_port 해시 모드 옵션을 씁니다.

영어 원문

EtherChannel load-balancing options

There are two load balancing methods for outgoing traffic in EtherChannel, as follows: round-robin, which spreads the outgoing traffic evenly across all of the adapters in the EtherChannel; and standard, which selects the adapter using an algorithm.

The Hash Mode parameter determines the numerical value that is fed to the algorithm.

The following table summarizes the valid load-balancing option combinations offered.

Table 82. Mode and Hash Mode combinations and the outgoing traffic distributions each produces.

standard or 8023ad default The traditional AIX behavior. The adapter selection algorithm uses the last byte of the destination IP address (for TCP/IP traffic) or MAC address (for ARP and other non-IP traffic). This mode is typically a good initial choice for a server with a large number of clients.

standard or 8023ad src_dst_port The outgoing adapter path is selected by an algorithm using the combined source and destination TCP or UDP port values. Because each connection has a unique TCP or UDP port, the three port-based hash modes provide additional adapter distribution flexibility when there are several, separate TCP or UDP connections between an IP address pair.

Table 82. Mode and Hash Mode combinations and the outgoing traffic distributions each produces. (continued)

Mode Hash Mode Outgoing Traffic Distribution
standard or 8023ad src_port

The adapter selection algorithm uses the source TCP or UDP port value. In the netstat -an command output, the port is the TCP/IP address suffix value in the Local column.

standard or 8023ad dst_port The outgoing adapter path is selected by the algorithm using the destination system port value. In the netstat -an command output, the TCP/IP address suffix in the Foreign column is the TCP or UDP destination port value.

round-robin default Outgoing traffic is spread evenly across all of the adapter ports in the EtherChannel. This mode is the typical choice for two hosts connected back-to-back (without an intervening switch).

Round-Robin distribution

All outgoing traffic is spread evenly across all of the adapters in the EtherChannel. It provides the highest bandwidth optimization for the AIX server system. While round-robin distribution is the ideal way to use all of the links equally, consider that it also introduces the potential for out-of-order packets at the receiving system.

In general, round-robin mode is ideal for back-to-back connections running jumbo frames. In this environment, there is no intervening switch, so there is no chance that processing at the switch could alter the packet delivery time, order, or adapter path. On this direct cable network path, packets are received exactly as sent. Jumbo frames (9000 byte MTU) always yield better file transfer performance than traditional 1500 byte MTUs. In this case, however, they add another benefit. These larger packets take longer to send so it is less likely that the receiving host would be continuously interrupted with out-of-order packets.

Round-robin mode can be implemented in other environments but at increased risk of out-of-order packets at the receiving system. This risk is particularly high when there are few, long-lived, streaming TCP connections. When there are many such connections between a host pair, packets from different connections could be intermingled, thereby decreasing the chance of packets for the same connection arriving out-of-order. Check for out-of-order packet statistics in the tcp section of the netstat -s command output. A steadily-increasing value indicates a potential problem in traffic sent from an EtherChannel.

If out-of-order packets are a problem on a system that must use traditional Ethernet MTUs and must be connected through a switch, try the various hash modes offered in standard mode operation. Each mode has a particular strength, but the default and src_dst_port modes are the logical starting points as they are more widely applicable.

Standard or 802.3ad algorithm

There are advantages to using the EtherChannel standard algorithm.

The standard algorithm is used for both standard and IEEE 802.3ad-style link aggregations. AIX divides the last byte of the "numerical value" by the number of adapters in the EtherChannel and uses the remainder to identify the outgoing link. If the remainder is zero, the first adapter in the EtherChannel is selected; a remainder of one means the second adapter is selected, and so on (the adapters are selected in the order that they are listed in the adapter_names attribute).

The Hash Mode selection determines the numerical value used in the calculation. By default, the last byte of the destination IP address or MAC address is used in the calculation, but the source and destination TCP or UDP port values can also be used. These alternatives allow you to fine-tune the distribution of outgoing traffic across the real adapters in the EtherChannel.

In default hash mode, the adapter selection algorithm is applied to the last byte of the destination IP address for IP traffic. For ARP and other non-IP traffic, the same formula is applied on the last byte of the destination MAC address. Unless there is an adapter failure that causes a failover, all traffic between a host pair in default standard mode goes out over the same adapter. The default hash mode may be ideal when the local host establishes connections to many different IP addresses.

If the local host establishes lengthy connections to few IP addresses, however, you will notice that some adapters carry a greater load than others, because all of the traffic sent to a specific destination is sent over the same adapter. While this prevents packets from arriving out-of-order, it may not use bandwidth in the most effective fashion in all cases. The port-based hash modes still send packets in order, but they allow packets belonging to different UDP or TCP connections, even if they are sent to the same destination, to be sent over different adapters, thus better using the bandwidth of all of the adapters.

In src_dst_port hash mode, the TCP or UDP source and destination port values of the outgoing packet are added, then divided by two. The resultant whole number (no decimals) is plugged into the standard algorithm. TCP or UDP traffic is sent on the adapter selected by the standard algorithm and selected hash mode value. Non-TCP or UDP traffic will fall back to the default hash mode, meaning the last byte of either the destination IP address or MAC address. The src_dst_port hash mode option considers both the source and the destination TCP or UDP port values. In this mode, all of the packets in one TCP or UDP connection are sent over a single adapter so they are guaranteed to arrive in order, but the traffic is still spread out because connections (even to the same host) may be sent over different adapters. The results of this hash mode are not skewed by the connection establishment direction because it uses both the source and destination TCP or UDP port values.

In src_port hash mode, the source TCP or UDP port value of the outgoing packet is used. In dst_port hash mode, the destination TCP or UDP port value of the outgoing packet is used. Use the src_port or dst_port hash mode options if port values change from one connection to another and if the src_dst_port option is not yielding a desirable distribution.

EtherChannel·링크 집계 나열

EtherChannel이나 링크 집계를 나열하는 절차입니다.

  1. 명령행에 smitty etherchannel을 입력합니다.
  2. List All EtherChannels / Link Aggregations를 고르고 Enter를 누릅니다.
영어 원문

Listing EtherChannels or Link Aggregations

Use this procedure to list EtherChannels or Link Aggregations.

  1. On the command line, type smitty etherchannel.

  2. Select List All EtherChannels / Link Aggregations and press Enter.

대체 주소 바꾸기

EtherChannel이나 링크 집계의 MAC 주소를 지정하려면 다음 단계를 따릅니다.

  1. 실행 중인 AIX 버전에 따라 인터페이스를 분리해야 할 수 있습니다.
    • AIX 5.2 with 5200-01 이하에서는 smitty chinet을 입력하고 EtherChannel에 속한 인터페이스를 고릅니다. Current STATE 속성을 detach로 바꾸고 Enter를 누릅니다.
    • AIX 5L Version 5.2 with the 5200-03 Recommended Maintenance package 이후에서는 인터페이스를 분리하지 않고 EtherChannel의 대체 주소를 바꿀 수 있습니다.
  2. 명령행에 smitty etherchannel을 입력합니다.
  3. Change / Show Characteristics of an EtherChannel을 고르고 Enter를 누릅니다.
  4. EtherChannel이 여럿이면 대체 주소를 만들 EtherChannel을 고릅니다.
  5. Enable Alternate EtherChannel Address 값을 yes로 바꿉니다.
  6. Alternate EtherChannel Address 필드에 대체 주소를 입력합니다. 주소는 0x로 시작하는 12자리 16진수 주소(예: 0x001122334455)여야 합니다.
  7. Enter를 눌러 마칩니다.

참고: 실행 중에 EtherChannel의 MAC 주소를 바꾸면 잠깐 연결이 끊길 수 있습니다. 어댑터가 새 하드웨어 주소를 익히도록 재설정해야 하고, 일부 어댑터는 초기화에 몇 초가 걸리기 때문입니다.

영어 원문

Changing the alternate address

To specify a MAC address for your EtherChannel or Link Aggregation, follow these steps.

  1. Depending on which version of AIX you are running, you might have to detach the interface:
  • On AIX 5.2 with 5200-01 and earlier, type smitty chinet and select the interface belonging to your EtherChannel. Change the Current STATE attribute to detach, and press Enter.

  • On AIX 5L Version 5.2 with the 5200-03 Recommended Maintenance package and later, you can change the alternate address of the EtherChannel without detaching its interface.

  1. On the command line, type smitty etherchannel.

  2. Select Change / Show Characteristics of an EtherChannel and press Enter.

  3. If you have multiple EtherChannels, select the EtherChannel for which you want to create an alternate address.

  4. Change the value in Enable Alternate EtherChannel Address to yes.

  5. Enter the alternate address in the Alternate EtherChannel Address field. The address must start with 0x and be a 12-digit hexadecimal address (for example, 0x001122334455).

  6. Press Enter to complete the process.

Note: Changing the EtherChannel's MAC address at runtime can cause a temporary loss of connectivity. This is because the adapters need to be reset so they learn the new hardware address, and some adapters take a few seconds to be initialized.

동적 어댑터 구성원(DAM)

AIX 5L Version 5.2 with the 5200-03 Recommended Maintenance package 전에는 EtherChannel에 어댑터를 더하거나 빼려면 먼저 그 인터페이스를 분리해야 해서 모든 사용자 트래픽이 잠시 끊겼습니다. 이 제한을 없애려고 AIX 5L Version 5.2 with the 5200-03 Recommended Maintenance package에 동적 어댑터 구성원(DAM)이 더해졌습니다.

DAM으로 사용자 연결을 끊지 않고 EtherChannel에 어댑터를 더하거나 뺄 수 있습니다. 백업 어댑터도 더하거나 뺄 수 있습니다. 처음에는 백업 어댑터 없이 EtherChannel을 만들고, 나중에 필요하면 더할 수 있습니다.

사용자 연결을 끊지 않고 어댑터를 더하고 뺄 수 있을 뿐 아니라, 실행 중에 대부분의 EtherChannel 속성을 바꿀 수도 있습니다. 예를 들어 EtherChannel을 쓰는 동안 네트워크 인터페이스 백업의 "ping" 기능을 쓰기 시작하거나, 언제든 ping할 원격 호스트를 바꿀 수 있습니다.

보통의 EtherChannel을 IEEE 802.3ad 링크 집계로(또는 그 반대로) 바꿀 수도 있어, EtherChannel을 지우고 다시 만들지 않고 이 기능을 시험해 볼 수 있습니다.

또 DAM으로 어댑터 하나짜리 EtherChannel을 만들 수 있습니다. 어댑터 하나짜리 EtherChannel은 보통 어댑터와 똑같이 동작합니다. 그러나 이 어댑터가 고장 나면 연결을 전혀 잃지 않고 실행 중에 바꿀 수 있습니다. 그러려면 EtherChannel에 임시 어댑터를 더하고, 고장 난 어댑터를 EtherChannel에서 빼고, Hot Plug로 고장 난 어댑터를 동작하는 어댑터로 바꾸고, 새 어댑터를 EtherChannel에 더한 뒤 임시 어댑터를 뺍니다. 이 과정 동안 연결이 끊기는 것을 전혀 느끼지 못합니다. 그러나 그 어댑터가 독립 어댑터로 동작하고 있었다면 Hot Plug로 빼기 전에 분리해야 하며, 그 동안 그 어댑터로 가던 트래픽은 모두 잃습니다.

영어 원문

Dynamic Adapter Membership

Prior to AIX 5L Version 5.2 with the 5200-03 Recommended Maintenance package, in order to add or remove an adapter from an EtherChannel, its interface first had to be detached, temporarily interrupting all user traffic. To overcome this limitation, Dynamic Adapter Membership (DAM) was added in AIX 5L Version 5.2 with the 5200-03 Recommended Maintenance package.

It allows adapters to be added or removed from an EtherChannel without having to disrupt any user connections. A backup adapter can also be added or removed; an EtherChannel can be initially created without a backup adapter, and one can be added at a later date if the need arises.

Not only can adapters be added or removed without disrupting user connections, it is also possible to modify most of the EtherChannel attributes at runtime. For example, you may begin using the "ping" feature of Network Interface Backup while the EtherChannel is in use, or change the remote host being pinged at any point.

You can also turn a regular EtherChannel into an IEEE 802.3ad Link Aggregation (or the other way around), allowing users to experiment with this feature without having to remove and recreate the EtherChannel.

Furthermore, with DAM, you may choose to create a one-adapter EtherChannel. A one-adapter EtherChannel behaves exactly like a regular adapter; however, should this adapter ever fail, it is possible to replace it at runtime without ever losing connectivity. To accomplish this, you add a temporary adapter to the EtherChannel, remove the defective adapter from the EtherChannel, replace the defective adapter with a working one using Hot Plug, add the new adapter to the EtherChannel, and then remove the temporary adapter. During this process you never notice a loss in connectivity. If the adapter had been working as a standalone adapter, however, it must be detached before being removed using Hot Plug, and during that time any traffic going over it is lost.