Communication channel processing method and system
A communication channel and processing method technology, applied in the field of a communication channel processing method and a communication channel processing system, can solve problems such as task shelving, commands cannot be executed, and execution tasks at the main control process end cannot be terminated, etc. The effect of ensuring state consistency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0067] In a distributed system, programs usually run on different nodes, and the communication between processes or programs is generally divided into two categories: 1. Heartbeat communication, which synchronizes the status of the other party through periodic heartbeat messages; 2. Data communication, sending Data content related to user logic, such as executed task instructions, results of instruction execution, etc. The network link for heartbeat communication may be called a heartbeat channel, and the network link for data communication may be called a data channel. In this embodiment, the communication channel includes but not limited to: a heartbeat channel and a data channel between the master control process and the working process.
[0068] refer to figure 1 , shows a flowchart of steps of a method for processing a communication channel in Embodiment 1 of the present application. In this embodiment, the communication channel processing method includes:
[0069] Ste...
Embodiment 2
[0078] In a distributed system, the Master-Worker mode is one of the commonly used parallel modes. The core idea of the Master-Worker mode is: the Master process and the Worker process in the system work together. Among them, the Master process is responsible for receiving and assigning tasks; the Worker process is responsible for processing tasks. After the task processing is completed, the Worker process can return the task processing results to the Master process, and the Master process can summarize the processing results returned by the Worker process. In this embodiment, the master control process and the worker process may respectively correspond to a Master process and a Worker process. The communication channel between the master control process and the working process may include: a heartbeat channel and a data channel.
[0079] refer to figure 2 , shows a flowchart of steps of a communication channel processing method in Embodiment 2 of the present application....
Embodiment 3
[0101] In combination with the foregoing embodiments, this embodiment uses a specific example to describe the communication channel processing method in detail.
[0102] refer to image 3 , which shows a communication architecture diagram between a Master process and a Worker process in Embodiment 3 of the present application.
[0103] In this embodiment, the Worker process end and the Master process end in the distributed system respectively include a heartbeat channel module (HB module) and a data channel module (PM module).
[0104] Among them, the HB module is used to maintain the heartbeat channel, such as, image 3 The channel 1 in the channel 1 is used to transmit the heartbeat message (HB message). PM module for establishing and maintaining data channels such as, image 3 The channels 2 and 3 in the channel are used to send and receive data messages (PB messages).
[0105] In this embodiment, one heartbeat channel can be maintained by the HB module and multiple dat...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com