# US 2016/0261681 A1 · Adaptive communication method among components based on Linux

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

- Number: US 2016/0261681 A1
- Document ID: US20160261681A1
- Status: Published application
- Kind: A1
- Application number: 14/654,531
- Filed: 2014-12-19
- Published: 2016-09-08
- Earliest claimed: 2013-12-20
- Assignees: G-Cloud Technology Ltd
- Applicants: G-Cloud Technology Co., Ltd
- Inventors: Zhanpeng Mo; Song Yang; Tongkai Ji
- Web page: https://patentgrep.com/patent/US20160261681A1

## CPC

- H04L 67/10: in which an application is distributed across nodes in the network (software deployment G06F8/60; multiprogramming arrangements G06F9/46)
- G06F 9/546: {Message passing systems or structures, e.g. queues}
- H04L 41/32: {Specific management aspects for broadband networks}
- 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

An adaptive communication method among components based on Linux, related to a technical field of network communication in a distributed environment, includes steps of: creating a unidirection persistent connection between each two communication hosts with a service program; generating a component address list after a distributed component is launched; during communication, packaging a message into a JSON format, searching the address list to find an address, and sending the message to a target component via a Linux local socket or the created unidirection persistent connection according to a location relationship; and, when the component stops, deleting information about the component from the component address list.

## Claims

### Claim at position 1

1-7. (canceled)

### Claim 8

An adaptive communication method among components based on Linux, comprising steps of:
(1) developing a service program on each host, wherein distributed components on the host communicate by calling the service program;
(2) creating, by at least two hosts which need to communicate, a unidirection persistent connection between each two of the hosts with the service program;
(3) after a first distributed component on a first host is launched, sending a launching message into the service program of the first host; sending the launching message to the service program of a second host through each the unidirection persistent connection, by the service program of the first host, and receiving the launching message which is sent from the service program of the second host, by the service program of the first host, so as to form a component address list;
(4) when the first distributed component needs to send a message to a target component, packaging the message into a JSON format by the service program of the first host and providing the service program of the first host with a name of the target component;
(5) according the name of the target component, searching the component address list by the service program of the first host to find an address of the target component; if the target component is on the first host, directly sending the message to the target component through a Linux local socket; if the target component is on the second host, sending the message to the second host through the unidirection persistent connection which is created between the first host and the second host, and then sending the message to the target component by the service program of the second host; and
(6) when the first distributed component on the first host stops, sending a stopping message to the service program of the first host; sending the stopping message to the service program of the second host through each the unidirection persistent connection, and deleting information about the first distributed component from the component address list, by the service program of the first host; deleting the information about the first distributed component from the component address list by the service program of the second host.

### Claim 9 (depends on 8)

The adaptive communication method among components based on Linux, as recited in claim 8, wherein each of the distributed components is a process which runs independently; the distributed components respectively obtain input and send output by exchanging the messages with each other;
the service program is a Linux auto-start service process; and
the distributed components and the service program on the same host communicate in a manner of Linux pipe.

### Claim 10 (depends on 8)

The adaptive communication method among components based on Linux, as recited in claim 8, wherein the component address list comprises the name of each the component and an address of the host where the component is located.

### Claim 11 (depends on 9)

The adaptive communication method among components based on Linux, as recited in claim 9, wherein the component address list comprises the name of each the component and an address of the host where the component is located.

### Claim 12 (depends on 8)

The adaptive communication method among components based on Linux, as recited in claim 8, wherein the service program automatically selects a local socket or the unidirection persistent connection, according to the address of the target component, for sending the message.

### Claim 13 (depends on 9)

The adaptive communication method among components based on Linux, as recited in claim 9, wherein the service program automatically selects a local socket or the unidirection persistent connection, according to the address of the target component, for sending the message.

### Claim 14 (depends on 10)

The adaptive communication method among components based on Linux, as recited in claim 10, wherein the service program automatically selects a local socket or the unidirection persistent connection, according to the address of the target component, for sending the message.

### Claim 15 (depends on 11)

The adaptive communication method among components based on Linux, as recited in claim 11, wherein the service program automatically selects a local socket or the unidirection persistent connection, according to the address of the target component, for sending the message.

### Claim 16 (depends on 8)

The adaptive communication method among components based on Linux, as recited in claim 8, wherein the JSON format of the message is:
#ctrl: {,=============================> header
src:gtclient_desktop,-------- >>source
dst:gtclient_laptop,--------- >>destination
dataDesc:test,--------------- >>data description
}
#data: {,=============================> payload
key:whatthehell,------------- >>data
}.

### Claim 17 (depends on 9)

The adaptive communication method among components based on Linux, as recited in claim 9, wherein the JSON format of the message is:
#ctrl: {,=============================> header
src:gtclient_desktop,-------- >>source
dst:gtclient_laptop,--------- >>destination
dataDesc:test,--------------- >>data description
}
#data: {,=============================> payload
key:whatthehell,------------- >>data
}.

### Claim 18 (depends on 10)

The adaptive communication method among components based on Linux, as recited in claim 10, wherein the JSON format of the message is:
#ctrl: {,=============================> header
src:gtclient_desktop,-------- >>source
dst:gtclient_laptop,--------- >>destination
dataDesc:test,--------------- >>data description
}
#data: {,=============================> payload
key:whatthehell,------------- >>data
}.

### Claim 19 (depends on 11)

The adaptive communication method among components based on Linux, as recited in claim 11, wherein the JSON format of the message is:
#ctrl: {,=============================> header
src:gtclient_desktop,-------- >>source
dst:gtclient_laptop,--------- >>destination
dataDesc:test,--------------- >>data description
}
#data: {,=============================> payload
key:whatthehell,------------- >>data
}.

### Claim 20 (depends on 12)

The adaptive communication method among components based on Linux, as recited in claim 12, wherein the JSON format of the message is:
#ctrl: {,=============================> header
src:gtclient_desktop,------>>source
dst:gtclient_laptop,--------- >>destination
dataDesc:test,--------------- >>data description
}
#data: {,=============================> payload
key:whatthehell,------------- >>data
}
# <<PacketTail #.

### Claim 21 (depends on 13)

The adaptive communication method among components based on Linux, as recited in claim 13, wherein the JSON format of the message is:
#ctrl: {,=============================> header
src:gtclient_desktop,------>>source
dst:gtclient_laptop,--------- >>destination
dataDesc:test,--------------- >>data description
}
#data: {,=============================> payload
key:whatthehell,------------- >>data
}
# <<PacketTail #.

### Claim 22 (depends on 14)

The adaptive communication method among components based on Linux, as recited in claim 14, wherein the JSON format of the message is:
#ctrl: {,=============================> header
src:gtclient_desktop,------>>source
dst:gtclient_laptop,--------- >>destination
dataDesc:test,--------------- >>data description
}
#data: {,=============================> payload
key:whatthehell,------------- >>data
}
# <<PacketTail #.

### Claim 23 (depends on 15)

The adaptive communication method among components based on Linux, as recited in claim 15, wherein the JSON format of the message is:
#ctrl: {,=============================> header
src:gtclient_desktop,------>>source
dst:gtclient_laptop,--------- >>destination
dataDesc:test,--------------- >>data description
}
#data: {,=============================> payload
key:whatthehell,------------- >>data
}
# <<Packet Tail #.
