File: UNICAST.txt

package info (click to toggle)
libjgroups-java 2.12.2.Final-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, trixie
  • size: 8,724 kB
  • sloc: java: 109,098; xml: 9,423; sh: 174; makefile: 4
file content (32 lines) | stat: -rw-r--r-- 1,077 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

UNICAST and membership
======================

Author: Bela Ban
Date: Aug 10 2006


Sending a unicast message to P
------------------------------
- When sending the first unicast message to a member P, its seqno is 1 (meaning this is the first message)
- The message is added to the AckSenderWindow, which keeps resending the message until
  it is acked by P, or P leaves the group (or crashes)


View change
-----------
When a member P leaves, the connection for P is removed from the connection table and added to previous_members


Receiving a unicast message from P
----------------------------------
- When receiving a message from P:
  - If there is no entry for P in the connection table:
    - If the message has seqno=1:
      - Create a new entry for P in the connection table
      - Add the message to the entry for P (AckReceiverWindow) and ack it back to P
    - Else:
      - Discard the message and do *not* ack it ! This is necessary, so P keeps retransmitting it !
  - Else:
    - Add the message to the entry for P (AckReceiverWindow) and ack it back to P