Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-8741

Linux multicast issue using IPv4 addresses and IPv6 stack

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 6.0.0.M4
    • Fix Version/s: No Release
    • Component/s: Integration
    • Labels:
      None
    • Estimated Difficulty:
      High

      Description

      When starting the AS, we have the following three possible combinations of addresses / stacks:
      IPv4 addresses with IPv4 stack (java.net.preferIPv4Stack=true)
      (ii) IPv6 addresses with IPv6 stack (java.net.preferIPv4Stack=false, java.net.preferIPv6Addresses=true)
      (iii) IPv4 addresses with IPv6 stack ( java.net.preferIPv4Stack=false, java.net.preferIPv6Addresses=false)

      The stack preference is specified by defining the above system properties; the addresses are specified as inputs to the -b and -u options of run.sh.
      Many versions of the AS force an IPv4 stack by setting java.net.preferIPv4Stack=true in run.sh when on Linux.

      There is an issue associated when using the combination IPv4 address / IPv6 stack. The issue is made up of two facts:

      Fact 1: When we initlaize a multicast socket for group communication, we can initialise it in one of two ways:
      binding the multicast socket to a multicast address and port (known as "binding to mulicast")
      (ii) binding a multicast socket to a port only

      When using an IPv4 address on an IPv6 socket, we cannot bind to multicast.

      Fact 2: On certain versions of Linux, HPUX and MacOSX there is a known problem, the promiscuous traffic problem, wherein
      two distinct clusters X and Y can see and be influenced by each other's messages, if the multicast address they use are different, but
      they use the same multicast ports.

      A general description of the promiscuous traffic can be found here: https://community.jboss.org/wiki/PromiscuousTraffic

      The promiscuous traffic problem can be solved on Linux by binding to multicast.

      Problem: when running with an IPv4 multicast address on an IPv6 stack on Linux, we cannot bind to multicast, and so
      we have the promiscuous traffic problem oif we use this address / stack combination.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shelly.mcgowan Shelly McGowan
              Reporter:
              rachmato Richard Achmatowicz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: