Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Communication channel processing method and system

A communication channel and processing method technology, applied in the field of communication channel processing method and a communication channel processing system, can solve problems such as task shelving, command failure to be executed, and normal operation of the system, so as to reduce occupation and ensure state consistency Effect

Active Publication Date: 2017-09-19
ALIBABA GRP HLDG LTD
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the system is in this state, the command issued by the main control process (such as the Master process) to the work process (such as the Worker process) cannot be executed, or the work process cannot tell the execution result of the task to the main control process; because the main control process It is believed that the working process is still running normally, which leads to the execution task of the master process end being unable to end for a long time, and the task is put on hold, seriously affecting the normal operation of the system

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Communication channel processing method and system
  • Communication channel processing method and system
  • Communication channel processing method and system

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the application provides a communication channel processing method and system. The communication channel includes a heartbeat channel and a data channel between a master process and a work process. The method comprises: at least one data channel associated with the heartbeat channel is determined; the determined at least one data channel is detected; when any one data channel is detected to be in a disconnection state, the heartbeat channel is disconnected and thus the heartbeat exceeds time; and after the heartbeat timeout, a current is ended. Therefore, consistency of the states of the heartbeat channel and the data channel can be guaranteed; and thus problems that the tasks are laid aside and thus can not be executed and the system resources are occupied can be solved.

Description

technical field [0001] The present application relates to the technical field of communications, and in particular to a communication channel processing method and a communication channel processing system. Background technique [0002] In a distributed system, programs usually run on different nodes. The communication between programs is generally divided into two categories, first, heartbeat communication, which synchronizes the state of the other party through periodic heartbeat signals; second, data communication, which sends content related to user logic, such as the executed task instructions and the results of instruction execution . The network link for heartbeat communication is called a heartbeat channel; the network link for data communication is called a data channel. [0003] In the actual operation and maintenance process of the product, especially when the pressure on the cluster network is high, some or all data channels may be disconnected but the heartbea...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08H04L12/26
CPCH04L43/10H04L67/143H04L43/0811H04L67/145G06F9/547H04W76/38H04W76/20G06F9/4887
Inventor 吴永军汤志鹏陶阳宇李超冯亦挥
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products