UDP connections

2013-06-24
2013-06-25
  • Roman Schaller
    Roman Schaller
    2013-06-24

    To figure out the correct firewall configuration, I started org.jgroups.demos.Draw with my udp.xml on my localhost. I expected to see only one UDP socket on port 45590. But SysInternals Process Explorer showed me following list:
    UDP | 0.0.0.0:45590
    UDP | 127.0.0.1:62296
    UDP | 10.224.161.120:62297

    What does this mean? The port of the second and third entry changes every time I run Draw. Are this only the local ports of outgoing connections? Or did I miss something?

    My configuration:
    <config>
    <UDP
    mcast_addr="228.10.10.10"
    mcast_port="45590"
    discard_incompatible_packets="true"
    ip_ttl="2"
    enable_bundling="false"
    enable_diagnostics="false"
    stats="true"
    thread_pool.enabled="true"
    thread_pool.min_threads="1"
    thread_pool.max_threads="25"
    thread_pool.keep_alive_time="5000"
    thread_pool.queue_enabled="false"
    thread_pool.queue_max_size="500"
    thread_pool.rejection_policy="Run"
    oob_thread_pool.enabled="true"
    oob_thread_pool.min_threads="1"
    oob_thread_pool.max_threads="50"
    oob_thread_pool.keep_alive_time="5000"
    oob_thread_pool.queue_enabled="false"
    oob_thread_pool.queue_max_size="500"
    oob_thread_pool.rejection_policy="Run"/>
    <PING
    timeout="2000"
    num_initial_members="2"
    stats="true"/>
    <MERGE2
    max_interval="30000"
    min_interval="10000"
    stats="true"/>
    <FD
    timeout="5000"
    max_tries="5"
    stats="true"/>
    <VERIFY_SUSPECT
    timeout="1500"
    stats="true"/>
    <BARRIER />
    <pbcast.NAKACK
    use_mcast_xmit="false" gc_lag="0"
    retransmit_timeout="300,600,1200,2400,4800"
    discard_delivered_msgs="true"
    stats="true"/>
    <UNICAST
    timeout="300,600,1200,2400,3600"
    stats="true"/>
    <pbcast.STABLE
    stability_delay="1000"
    desired_avg_gossip="50000"
    max_bytes="400000"/>
    <VIEW_SYNC
    avg_send_interval="60000"/>
    <pbcast.GMS
    print_local_addr="true"
    join_timeout="3000"
    view_bundling="true"
    stats="true"/>
    <FC
    max_credits="500000"
    min_threshold="0.10"/>
    <FRAG2
    frag_size="32768"
    stats="true"/>
    <pbcast.STATE_TRANSFER />
    </config>
    Thanks

    Roman

     
    Last edit: Roman Schaller 2013-06-24
    • Bela Ban
      Bela Ban
      2013-06-25

      There is a multicast and unicast socket opened by UDP: 62297 is probably the unicast socket; check the output where the addr:port is printed to stdout.
      I don't know what the 127.0.0.1 port is used for. I verified that JGroups creates a multicast and unicast socket with this config on my Linux box.