# US 2017/0366619 A1 · Connection reestablishment protocol for peer communication in distributed systems

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0366619 A1
- Document ID: US20170366619A1
- Status: Published application
- Kind: A1
- Application number: 15/184,168
- Filed: 2016-06-16
- Published: 2017-12-21
- Earliest claimed: 2016-06-16
- Assignees: Sap SE
- Applicants: Sap SE
- Inventors: Ivan Schreter
- Web page: https://patentgrep.com/patent/US20170366619A1

## CPC

- H04L 67/145: avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
- G06F 11/00: Error detection; Error correction; Monitoring (error detection, correction or monitoring in information storage based on relative movement between record carrier and transducer G11B20/18; monitoring, i.e. supervising the progress of recording or reproducing G11B27/36; in static stores G11C29/00)
- G06F 11/0757: {by exceeding a time limit, i.e. time-out, e.g. watchdogs}
- G06F 11/3006: {where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems (multiprogramming arrangements G06F9/46; allocation of resources G06F9/50)}
- H04L 41/0654: using network fault recovery (ring fault isolation or reconfiguration in loop networks without recovery actions by a network management system H04L12/437)
- H04L 43/0817: by checking functioning
- H04L 67/10: in which an application is distributed across nodes in the network (software deployment G06F8/60; multiprogramming arrangements G06F9/46)
- H04L 67/1095: Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
- H04L 69/40: for recovering from a failure of a protocol instance or entity, e.g. service redundancy protocols, protocol state redundancy or protocol service redirection (management of faults, events, alarms or notifications in data switching networks H04L41/06)
- G06F 11/2023: {Failover techniques}
- G06F 2201/88: Monitoring involving counting
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Communication resumption information can be retained nodes of a cluster of nodes that form a distributed computing system. The communication resumption information can be exchanged between a node of the cluster and a peer node of the cluster after resumption of communication following a loss of communication between the node and the peer node. A determination of whether communication between the node and the peer node can be reestablished without losing messages can include comparing the communication resumption information received by the node from the peer node with the communication resumption information retained at the node. Communication between the node and the peer node can be resumed based when the determining indicates that communication between the node and the peer node can be reestablished without losing messages.

## Claims

### Claim 1

A computer-implemented method comprising:
retaining communication resumption information at each of a plurality of nodes of a cluster of nodes that comprises a distributed computing system;
exchanging the communication resumption information between a node of the cluster and a peer node of the cluster after resumption of communication following a loss of communication between the node and the peer node;
determining whether communication between the node and the peer node can be reestablished without losing messages, the determining comprising comparing the communication resumption information received by the node from the peer node with the communication resumption information retained at the node; and
resuming communication between the node and the peer node based when the determining indicates that communication between the node and the peer node can be reestablished without losing messages.

### Claim 2 (depends on 1)

A computer-implemented method as in claim 1, wherein the communication resumption information comprises an invocation count of a process being run on the cluster, a last message received index for each peer node in the cluster, and an invocation count of the peer process for each peer node in the cluster.

### Claim 3 (depends on 2)

A computer-implemented method as in claim 2, wherein the invocation count of the process is incremented with each restart/crash recovery and is persisted.

### Claim 4 (depends on 2)

A computer-implemented method as in claim 2, wherein the determining comprises determining that the peer node was restarted when the process invocation count retained at the node differs from the process invocation count received by the node from the peer node, and wherein the action for resuming communication between the node and the peer node comprises discarding any messages queued by the node for the peer node and initiating an error recovery process for the discarded messages.

### Claim 5 (depends on 2)

A computer-implemented method as in claim 2, wherein the determining comprises determining that the process invocation counts retained by the node and the process invocation counts received from the peer node, the method further comprises checking the last received message index received from the peer node at the node and discarding any messages sent by the node to the peer node and having an index lower or equal to the last received message index from the peer node but that are not yet confirmed by the peer node.

### Claim 6 (depends on 5)

A computer-implemented method as in claim 5, wherein the action for resuming communication between the node and the peer node comprises resending from the node to the peer node any messages still in a pending message queue at the node over the reestablished connection.

### Claim 7

A computer program product comprising a non-transitory machine-readable medium storing instructions that, when executed by at least one programmable processor, cause the at least one programmable processor to perform operations comprising:
retaining communication resumption information at each of a plurality of nodes of a cluster of nodes that comprises a distributed computing system;
exchanging the communication resumption information between a node of the cluster and a peer node of the cluster after resumption of communication following a loss of communication between the node and the peer node;
determining whether communication between the node and the peer node can be reestablished without losing messages, the determining comprising comparing the communication resumption information received by the node from the peer node with the communication resumption information retained at the node; and
resuming communication between the node and the peer node based when the determining indicates that communication between the node and the peer node can be reestablished without losing messages.

### Claim 8 (depends on 7)

A computer program product as in claim 7, wherein the communication resumption information comprises an invocation count of a process being run on the cluster, a last message received index for each peer node in the cluster, and an invocation count of the peer process for each peer node in the cluster.

### Claim 9 (depends on 8)

A computer program product as in claim 8, wherein the invocation count of the process is incremented with each restart/crash recovery and is persisted.

### Claim 10 (depends on 8)

A computer program product as in claim 8, wherein the determining comprises determining that the peer node was restarted when the process invocation count retained at the node differs from the process invocation count received by the node from the peer node, and wherein the action for resuming communication between the node and the peer node comprises discarding any messages queued by the node for the peer node and initiating an error recovery process for the discarded messages.

### Claim 11 (depends on 8)

A computer program product as in claim 8, wherein the determining comprises determining that the process invocation counts retained by the node and the process invocation counts received from the peer node, the method further comprises checking the last received message index received from the peer node at the node and discarding any messages sent by the node to the peer node and having an index lower or equal to the last received message index from the peer node but that are not yet confirmed by the peer node.

### Claim 12 (depends on 11)

A computer program product as in claim 11, wherein the action for resuming communication between the node and the peer node comprises resending from the node to the peer node any messages still in a pending message queue at the node over the reestablished connection.

### Claim 13

A system comprising:
computer hardware configured to perform operations comprising:
retaining communication resumption information at each of a plurality of nodes of a cluster of nodes that comprises a distributed computing system;
exchanging the communication resumption information between a node of the cluster and a peer node of the cluster after resumption of communication following a loss of communication between the node and the peer node;
determining whether communication between the node and the peer node can be reestablished without losing messages, the determining comprising comparing the communication resumption information received by the node from the peer node with the communication resumption information retained at the node; and
resuming communication between the node and the peer node based when the determining indicates that communication between the node and the peer node can be reestablished without losing messages.

### Claim 14 (depends on 13)

A system as in claim 13, wherein the communication resumption information comprises an invocation count of a process being run on the cluster, a last message received index for each peer node in the cluster, and an invocation count of the peer process for each peer node in the cluster.

### Claim 15 (depends on 14)

A system as in claim 14, wherein the invocation count of the process is incremented with each restart/crash recovery and is persisted.

### Claim 16 (depends on 14)

A system as in claim 14, wherein the determining comprises determining that the peer node was restarted when the process invocation count retained at the node differs from the process invocation count received by the node from the peer node, and wherein the action for resuming communication between the node and the peer node comprises discarding any messages queued by the node for the peer node and initiating an error recovery process for the discarded messages.

### Claim 17 (depends on 14)

A system as in claim 14, wherein the determining comprises determining that the process invocation counts retained by the node and the process invocation counts received from the peer node, the method further comprises checking the last received message index received from the peer node at the node and discarding any messages sent by the node to the peer node and having an index lower or equal to the last received message index from the peer node but that are not yet confirmed by the peer node.

### Claim 18 (depends on 17)

A system as in claim 17, wherein the action for resuming communication between the node and the peer node comprises resending from the node to the peer node any messages still in a pending message queue at the node over the reestablished connection.

### Claim 19 (depends on 13)

A system as in claim 13, wherein the computer hardware comprises
a programmable processor; and
a machine-readable medium storing instructions that, when executed by the processor, cause the at least one programmable processor to perform at least some of the operations.
