-
Feature Request
-
Resolution: Done
-
Major
-
2.2.9
-
None
[JGroups/doc/design/LogicalAddresses.txt]
The address chosen by each node is essentially the IP address and port of the receiver socket. However, for the following reasons, this is not good enough:
- The node is shunned (excluded) and re-joins after leaving. We'd like to have the same logical address, although the physical address changed. This is already done in JBoss code, should be available in JGroups proper
- NIC failover: a NIC goes down, we want to continue sending/receiving on a different NIC
- The sender sends on all available NICs (send_on_all_interfaces="true"). This means that -if we take the receiver's datagram packet's address to be the identity of the sender - we get N different identities; 1 for each interface the message is sent on
- Network Address Translation: the sender's address might get changed by the NAT
DESIGN:
- A logical address consists of
- a user-given (or generated) name, e.g. "X". This name stays with the address from channel creation
to channel close - a UUID. This is created on channel connect, deleted on channel disconnect and re-created on channel
connect. This is used for equals() and hashCode() of the logical address. Since it is re-created on
every connect(), it will prevent reincarnation issues. UUIDs are guaranteed to be unique over time for
a given host. This is better than using address:port, because port is not guaranteed to be unique over
time, especially when we use bind_port
- A logical address is picked, either by JGroups, or set by a user on channel creation. The lifetime of this address is the lifetime of the process in which the channel is created, or until channel.close() or disconnect() is called.
- Each member as a small cache, in which it associates the logical addresses for messages received with the sender's address. When a message is to be sent to a logical address (unicast message), the corresponding physical address is looked up from the cache. Note that there maybe multiple physical addresses if the same message was sent on different interfaces (send_on_all_interfaces="true").
- The logical addresses must be picked such that they cannot be reused after disconnect()/close().
- blocks
-
JGRP-451 Disabling a network interface and subsequent re-enabling it (on Windows) doesn't merge
- Resolved
-
JGRP-213 Transport bundling
- Closed
-
JGRP-729 Support for NAT
- Open
-
JGRP-217 unplugging of network cable makes jgroups behave weirdly
- Resolved
-
JGRP-659 Merge and UNICAST sequencing problem
- Resolved
-
JGRP-897 Anycasting: better use of logical addresses
- Resolved
-
JBAS-3425 Remove ClusterPartition's creation of a unique node name
- Closed
- is related to
-
JGRP-825 Message: add a flag to discard own multicast
- Resolved
- relates to
-
JBAS-3424 Create mechanism to inject additional_data into multiplexed JChannel
- Closed
-
JGRP-130 Problems with reincarnation
- Resolved
-
JGRP-189 Validate that IP Bonding is supported
- Resolved
-
JGRP-591 IpAddress.hashCode() not unique per ip/port
- Resolved