to the hashtable (peer address is the key). All
messages sent to that peer will be added to hashtable.peer_addr.sent_msgs. When we receive a
message from a peer for the first time, another entry will be created and added to the hashtable
(unless already existing). Msgs will then be added to hashtable.peer_addr.received_msgs. This
layer is used to reliably transmit point-to-point messages, that is, either messages sent to a
single receiver (vs. messages multicast to a group) or for example replies to a multicast message. The
sender uses an AckSenderWindow
which retransmits messages for which it hasn't received
an ACK, the receiver uses AckReceiverWindow
which keeps track of the lowest seqno
received so far, and keeps messages in order.
Messages in both AckSenderWindows and AckReceiverWindows will be removed. A message will be removed from
AckSenderWindow when an ACK has been received for it and messages will be removed from AckReceiverWindow
whenever a message is received: the new message is added and then we try to remove as many messages as
possible (until we stop at a gap, or there are no more messages).
author:
Bela Ban