[
http://jira.jboss.com/jira/browse/JGRP-129?page=comments#action_12393932 ]
Bela Ban commented on JGRP-129:
-------------------------------
Optimization: we could shorts which are indicex into a hashmap of logical addresses (which
in turn map to physical addresses), and only send around the shorts. Need to make sure
those are unique across the cluster though, probably via a short voting/election phase on
startup in TP...
Logical addresses
-----------------
Key: JGRP-129
URL:
http://jira.jboss.com/jira/browse/JGRP-129
Project: JGroups
Issue Type: Feature Request
Affects Versions: 2.2.9
Reporter: Bela Ban
Assigned To: Bela Ban
Fix For: 2.x
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 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().
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira