HAProxy ALOHA Documentation 11.5

Network Interfaces

You can configure the HAProxy ALOHA network interfaces so that they are compatible with the switches, routers and servers on your network.

Network interface speed

You can configure the maximum speed at which the HAProxy ALOHA should transmit data on your network. These days, most network equipment that you will connect to, such as switches, routers, and servers, all support autonegotiation of the network speed. So, in most cases, you will leave auto mode enabled.

However, if your network equipment does not support autonegotiation and you want to be sure that you are using the fastest transmission speed that is compatible, you can force the speed at which data is transmitted.

  1. In the Services tab, click network instance setup setup_icon next to a network interface.

    https://cdn.haproxy.com/documentation/aloha/11-5/assets/interface_setup-4c57f2c87bd88fa7300e8d440c2109bcef43b7087bfb2903fb6298f6b0f2235a.png
  2. Disable autonegotiation.

    Autonegotiation is an Ethernet procedure by which two connected devices choose common transmission parameters, such as speed, duplex mode, and flow control.

    service network eth0
      auto off
  3. Set the speed of the link.

    You can specify a speed of 10 Mbps, 100 Mbps, or 1000 Mbps (1Gbit).

    service network eth0
      auto off
      speed 1000
  4. Reload the network interface service.

Duplex mode

You can configure the duplex mode of the network interfaces to control whether data is transmitted in one direction at a time between the load balancer and its peer, or in both directions simultaneously, which is more efficient. These days, most network equipment can negotiate the duplex mode automatically.

By default, the duplex mode is autonegotiated by the client and HAProxy ALOHA.

You can force the duplex mode:

  • In half-duplex mode, the network interface is either sending or receiving data, but not at the same time.

  • In full-duplex mode, the network interface will both send and receive data at the same time.

  1. In the Services tab, click network instance setup setup_icon next to a network interface.

    https://cdn.haproxy.com/documentation/aloha/11-5/assets/interface_setup-4c57f2c87bd88fa7300e8d440c2109bcef43b7087bfb2903fb6298f6b0f2235a.png
  2. Disable autonegotiation.

    Autonegotiation is an Ethernet procedure by which two connected devices choose common transmission parameters, such as speed, duplex mode, and flow control.

    service network eth0
      auto off
  3. Do one of the following.

    • Configure the network interface in half-duplex mode.

      service network eth0
        auto off
        duplex half
    • Configure the network interface in full duplex mode.

      service network eth0
        auto off
        duplex full
  4. Reload the network interface service.

Maximum Transmission Unit

The Maximum Transmission Unit (MTU) is the largest data packet that the network interface can accept.

The default MTU value is 1500, which is a common value used for backwards compatibility with 10 Mbps and 100 Mbps networks. However, on faster networks, such as Gigabit Ethernet, increasing this value can deliver superior performance. For example, a value of 9000 is common to support jumbo frames.

  1. In the Services tab, click network instance setup setup_icon next to a network interface.

    https://cdn.haproxy.com/documentation/aloha/11-5/assets/interface_setup-4c57f2c87bd88fa7300e8d440c2109bcef43b7087bfb2903fb6298f6b0f2235a.png
  2. Disable autonegotiation.

    Autonegotiation is an Ethernet procedure by which two connected devices choose common transmission parameters, such as speed, duplex mode, and flow control.

    service network eth0
      auto off
  3. Configure the MTU.

    service network eth0
      auto off
      mtu 9000
  4. Reload the network interface service.


Next up

NTP
HAProxyConf 2022 - Call for papers