CN105681462A - Cluster system based on message router, and data communication transfer method - Google Patents
Cluster system based on message router, and data communication transfer method Download PDFInfo
- Publication number
- CN105681462A CN105681462A CN201610142886.2A CN201610142886A CN105681462A CN 105681462 A CN105681462 A CN 105681462A CN 201610142886 A CN201610142886 A CN 201610142886A CN 105681462 A CN105681462 A CN 105681462A
- Authority
- CN
- China
- Prior art keywords
- message
- queue
- node
- module
- routing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 230000006854 communication Effects 0.000 title claims abstract description 53
- 238000004891 communication Methods 0.000 title claims abstract description 52
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000012546 transfer Methods 0.000 title claims abstract description 22
- 238000012545 processing Methods 0.000 claims abstract description 24
- 238000007726 management method Methods 0.000 claims description 24
- 230000011664 signaling Effects 0.000 claims description 14
- 230000004044 response Effects 0.000 claims description 12
- 230000005540 biological transmission Effects 0.000 claims description 11
- 238000012790 confirmation Methods 0.000 claims description 10
- 239000000284 extract Substances 0.000 claims description 10
- 230000007246 mechanism Effects 0.000 claims description 8
- 238000000605 extraction Methods 0.000 claims description 6
- 238000012384 transportation and delivery Methods 0.000 claims description 6
- 238000012508 change request Methods 0.000 claims description 5
- 230000008569 process Effects 0.000 abstract description 14
- 230000008878 coupling Effects 0.000 abstract description 4
- 238000010168 coupling process Methods 0.000 abstract description 4
- 238000005859 coupling reaction Methods 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 239000000306 component Substances 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000000977 initiatory effect Effects 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 239000008358 core component Substances 0.000 description 1
- 238000013523 data management Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/2871—Implementation details of single intermediate entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/50—Queue scheduling
- H04L47/62—Queue scheduling characterised by scheduling criteria
- H04L47/622—Queue service order
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/50—Queue scheduling
- H04L47/62—Queue scheduling characterised by scheduling criteria
- H04L47/6245—Modifications to standard FIFO or LIFO
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开了一种基于消息路由的集群系统及数据通信中转方法,该集群系统包括至少一个发送节点、至少一个接收节点、消息路由,其中,消息路由包括接口处理模块、队列管理模块、消息通道代理模块、消息队列模块、安全管理模块。数据通信中转方法基于消息路由实现节点间消息转发。该方法解决了集群系统中数据通信产生巨大的网络开销等难题,提高整个系统的效率,保证服务器的健康稳定运行。同时,描述了数据通信的具体流程,消息路由作为计算节点间通信的中间件,避免了节点间直接通信,大大降低节点间的耦合度和节点访问风险,防止节点被非法入侵,保证了集群系统的安全。
The invention discloses a cluster system based on message routing and a data communication transfer method. The cluster system includes at least one sending node, at least one receiving node, and message routing, wherein the message routing includes an interface processing module, a queue management module, and a message channel Agent module, message queue module, security management module. The data communication transfer method implements message forwarding between nodes based on message routing. This method solves the problems of huge network overhead caused by data communication in the cluster system, improves the efficiency of the entire system, and ensures the healthy and stable operation of the server. At the same time, the specific process of data communication is described. As the middleware of computing node communication, message routing avoids direct communication between nodes, greatly reduces the coupling degree between nodes and the risk of node access, prevents nodes from being illegally invaded, and ensures the cluster system safety.
Description
技术领域 technical field
本发明涉及一种基于消息路由的集群系统及数据通信中转方法,属于信息技术类数据管理应用技术领域。 The invention relates to a cluster system based on message routing and a data communication transfer method, and belongs to the technical field of information technology data management applications.
背景技术 Background technique
集群系统是一种并行或分布式处理系统,将多台同构或异构的计算机作为独立的计算节点通过局域网或其他网络相互关联,协同完成一些任务,使得每个节点的资源得到有效的利用。各个计算节点各自带有CPU、内存及独立操作系统等,集群系统封装了底层的实现细节,将所有节点的资源统一成一个合集,从用户的角度来看,集群系统是一个单一的系统,而非计算机群组。 A cluster system is a parallel or distributed processing system, which uses multiple homogeneous or heterogeneous computers as independent computing nodes to associate with each other through a local area network or other networks, and cooperate to complete some tasks, so that the resources of each node can be effectively utilized. . Each computing node has its own CPU, memory, and independent operating system. The cluster system encapsulates the underlying implementation details and unifies the resources of all nodes into a collection. From the perspective of users, the cluster system is a single system, while non-computer groups.
早在上个世纪七八十年代,就有一些公司着手集群系统的研究与开发工作,集群系统具有高可扩展性、高可用性、高性能等特点,它可以提供强大的计算能力,处理复杂的计算问题。一般而言,集群系统主要分为高可用性集群和高性能集群。高可用性集群的主要功能保证服务不间断,当集群中某个节点失效时,在没有人为处理的情况下,自动、迅速对失效节点进行处理,转移节点任务,使得用户不会察觉故障发生。而高性能集群主要表现在处理能力上,它利用网络将多台普通的计算节点连接起来,并使它们协同工作,处理能力可以达到大型机的性能。 As early as the 1970s and 1980s, some companies began to research and develop cluster systems. Cluster systems have the characteristics of high scalability, high availability, and high performance. They can provide powerful computing capabilities and handle complex calculation problem. Generally speaking, cluster systems are mainly divided into high-availability clusters and high-performance clusters. The main function of the high-availability cluster ensures uninterrupted service. When a node in the cluster fails, it automatically and quickly handles the failed node without human intervention, and transfers node tasks so that users will not be aware of the failure. The high-performance cluster is mainly manifested in processing power. It uses the network to connect multiple common computing nodes and makes them work together. The processing power can reach the performance of a mainframe.
随着集群系统性能和可用性不断提高,高性能集群因为其性价比高、可扩展性强逐渐取代传统的超级计算机,成为计算领域研究的焦点。然而集群系统需要7×24小时不间断地提供服务,计算节点需要常年持续运行,这期间节点间持续不间断地交流信息。随着集群中节点数量增多,节点间通信越来越频繁,容易导致网络上传输大量的节点信息,造成网络拥塞。随着集群规模的扩大,集群系统逐渐开始显现出性能问题。传统的集群中节点间通信方式会在网络之间产生巨大的通信量,造成大量额外的网络通信负担,使整个系统的效率下降。另外,如果计算节点之间直接通信,这无疑加大了节点的访问风险,易影响节点的性能。节点可访问对象的增加,意味着节点安全指数降低。 With the continuous improvement of the performance and availability of cluster systems, high-performance clusters have gradually replaced traditional supercomputers due to their high cost performance and strong scalability, and have become the focus of research in the computing field. However, the cluster system needs to provide services 7×24 hours without interruption, and the computing nodes need to run continuously all year round. During this period, the nodes continuously exchange information. As the number of nodes in the cluster increases, the communication between nodes becomes more and more frequent, which will easily lead to the transmission of a large amount of node information on the network, resulting in network congestion. As the size of the cluster expands, the cluster system gradually begins to show performance problems. The traditional inter-node communication method in the cluster will generate a huge amount of communication between the networks, resulting in a large amount of additional network communication burden and reducing the efficiency of the entire system. In addition, if the computing nodes communicate directly, this will undoubtedly increase the access risk of the nodes and easily affect the performance of the nodes. The increase of node accessible objects means that the node security index decreases.
为了解决上述问题,目前采用的方法通常是提高计算节点的系统配置,增加网络带宽,保证服务器的高性能和高可用性,这使得系统成本上升,并没有从根本上解决问题。 In order to solve the above problems, the current method is usually to improve the system configuration of the computing nodes, increase the network bandwidth, and ensure the high performance and high availability of the server, which increases the system cost and does not fundamentally solve the problem.
发明内容 Contents of the invention
本发明所要解决的技术问题是:提供一种基于消息路由的集群系统及数据通信中转方法,采用消息路由作为计算节点之间通信的中间件,避免节点被非法入侵,大大降低节点的访问风险,保证服务器的健康稳定运行。 The technical problem to be solved by the present invention is: to provide a cluster system and data communication transfer method based on message routing, using message routing as the middleware for communication between computing nodes, avoiding illegal intrusion of nodes, and greatly reducing the access risk of nodes, Ensure the healthy and stable operation of the server.
本发明为解决上述技术问题采用以下技术方案: The present invention adopts the following technical solutions for solving the problems of the technologies described above:
一种基于消息路由的集群系统,包括至少一个发送节点、至少一个接收节点、消息路由,所述消息路由包括接口处理模块、队列管理模块、消息通道代理模块、消息队列模块; A cluster system based on message routing, including at least one sending node, at least one receiving node, and message routing, wherein the message routing includes an interface processing module, a queue management module, a message channel agent module, and a message queue module;
接口处理模块用于接受发送节点的服务请求,并分析该服务请求为队列变更请求或者消息传递请求,根据不同的请求类别,调用对应的队列管理模块或者消息通道代理模块; The interface processing module is used to accept the service request of the sending node, and analyze the service request as a queue change request or a message delivery request, and call the corresponding queue management module or message channel proxy module according to different request types;
消息队列模块用于保存每个节点相对应的独立的消息队列,消息队列中存储对应的节点发送的消息,每个节点只订阅与自身对应的消息队列; The message queue module is used to save the independent message queue corresponding to each node, and the message sent by the corresponding node is stored in the message queue, and each node only subscribes to the message queue corresponding to itself;
队列管理模块用于根据接口处理模块反馈的队列变更请求,对消息队列模块中相关的消息队列进行操作; The queue management module is used to operate the related message queues in the message queue module according to the queue change request fed back by the interface processing module;
消息通道代理模块用于根据接口处理模块反馈的消息传递请求,对消息队列模块完成消息压入或消息提取,若为消息压入,则从消息中提取队列标识,并根据队列标识将消息压入相应的消息队列;若为消息提取,则从对应的消息队列提取消息,并反馈给接口处理模块,由接口处理模块发送至接收节点。 The message channel proxy module is used to complete message push or message extraction to the message queue module according to the message delivery request fed back by the interface processing module. If it is a message push, it extracts the queue ID from the message, and pushes the message into The corresponding message queue; if it is a message extraction, the message is extracted from the corresponding message queue, and fed back to the interface processing module, and then sent to the receiving node by the interface processing module.
进一步的,所述消息路由还包括安全管理模块,所述安全管理模块用于在接口处理模块、消息通道代理模块、消息队列模块进行消息传输时对消息进行加解密。 Further, the message routing further includes a security management module, which is used to encrypt and decrypt messages when the interface processing module, the message channel agent module, and the message queue module transmit messages.
一种基于消息路由的数据通信中转方法,该方法利用消息路由实现发送节点与接收节点之间的通信,所述发送节点与接收节点之间的通信步骤如下: A data communication transfer method based on message routing, the method utilizes message routing to realize communication between a sending node and a receiving node, and the communication steps between the sending node and the receiving node are as follows:
步骤1,发送节点向消息路由发送包括消息队列标识的信令消息,并要求订阅该消息队列的接收节点作出响应; Step 1, the sending node sends a signaling message including the message queue identifier to the message router, and requests the receiving node subscribed to the message queue to respond;
步骤2,消息路由接收到信令消息后,分析并提取队列标识,根据此队列标识将信令消息压入对应的消息队列; Step 2: After receiving the signaling message, the message router analyzes and extracts the queue identifier, and pushes the signaling message into the corresponding message queue according to the queue identifier;
步骤3,接收节点订阅该消息队列,并持续监听该消息队列,一旦消息队列中压入消息,立刻提取消息,并在提取消息后向消息路由发送响应消息; Step 3. The receiving node subscribes to the message queue and continuously monitors the message queue. Once a message is pushed into the message queue, it immediately extracts the message, and sends a response message to the message router after extracting the message;
步骤4,消息路由接收到响应消息后,根据消息中包含的队列标识,将该消息压入发送节点对应的消息队列,发送节点订阅自身对应的消息队列,从消息队列中提取消息,从而获得接收节点的响应消息。 Step 4: After the message routing receives the response message, it pushes the message into the message queue corresponding to the sending node according to the queue identifier contained in the message, and the sending node subscribes to its own corresponding message queue, extracts the message from the message queue, and thus obtains the received Node's response message.
进一步的,在步骤1之前,判断消息路由的消息队列模块中是否存在发送节点和接收节点相对应的消息队列,如果不存在,则不存在相对应的消息队列的节点向消息路由发起请求,申请建立与之对应的一个独立的消息队列。 Further, before step 1, it is judged whether there is a message queue corresponding to the sending node and the receiving node in the message queue module of the message routing. Create an independent message queue corresponding to it.
优选的,当发送节点、接收节点分别与消息路由建立通信连接时,均附带会话方式以及消息确认机制。 Preferably, when the sending node and the receiving node respectively establish a communication connection with the message router, a session mode and a message confirmation mechanism are attached.
优选的,所述会话方式为非事务性会话,消息确认机制为自动确认。 Preferably, the session mode is a non-transactional session, and the message confirmation mechanism is automatic confirmation.
进一步的,在步骤4之后,发送节点设定获得响应消息的时间,若设定时间内没有获得响应消息,则发送节点调用判断函数,判断接收节点是否失效,并在接收节点失效时,向管理节点报告失效情况。 Further, after step 4, the sending node sets the time to obtain the response message. If the response message is not obtained within the set time, the sending node calls the judgment function to judge whether the receiving node is invalid, and when the receiving node fails, report to the management Nodes report failures.
优选的,所述设定时间为1秒。 Preferably, the set time is 1 second.
本发明采用以上技术方案与现有技术相比,具有以下技术效果: Compared with the prior art, the present invention adopts the above technical scheme and has the following technical effects:
1、本发明基于消息路由的集群系统及数据通信中转方法,使源节点不必了解目的节点的地址,也无须知道目的节点的状态,只与消息路由中间件通信,节点间互不干扰,大大降低节点间的耦合度。 1. The cluster system and data communication transfer method based on message routing in the present invention make it unnecessary for the source node to know the address of the destination node and the state of the destination node, and only communicate with the message routing middleware, without interfering with each other between nodes, greatly reducing Coupling between nodes.
2、本发明基于消息路由的集群系统及数据通信中转方法,在消息量剧增的情况下,消息路由能够发挥重要的作用,未处理的消息继续保存在消息队列中,保证节点依次处理队列中的消息,不会超过系统负荷而崩溃。 2. The cluster system and data communication transfer method based on message routing in the present invention can play an important role in the case of a sharp increase in the amount of messages, and unprocessed messages continue to be stored in the message queue to ensure that nodes process them sequentially in the queue message, will not overload the system and crash.
3、本发明基于消息路由的集群系统及数据通信中转方法,使节点间取消了直接访问,通过消息路由间接通信,降低了节点的访问风险。 3. The cluster system and data communication transfer method based on message routing in the present invention cancel direct access between nodes, and indirect communication through message routing reduces the risk of node access.
4、本发明基于消息路由的集群系统及数据通信中转方法,消息队列降低了节点间的耦合度,当某个节点失效时,被处理的消息被保存在消息队列中,不会因节点失效而丢失。当节点恢复后,可以继续从消息队列提取未被处理的消息。 4. The cluster system and data communication transfer method based on message routing in the present invention, the message queue reduces the coupling degree between nodes, when a node fails, the processed message is stored in the message queue, and will not be lost due to node failure lost. When the node recovers, it can continue to extract unprocessed messages from the message queue.
5、本发明基于消息路由的集群系统及数据通信中转方法,有时候节点间通信时消息的处理顺序很重要,先进先出是消息队列最基本的一种形式,保证了消息能够按照特定的顺序依次被处理。 5. In the cluster system and data communication transfer method based on message routing of the present invention, sometimes the processing order of messages during communication between nodes is very important. First-in-first-out is the most basic form of message queues, which ensures that messages can be processed in a specific order are processed sequentially.
附图说明 Description of drawings
图1是本发明中消息路由的结构图。 Fig. 1 is a structural diagram of message routing in the present invention.
图2是本发明中消息路由内部的通信建立过程图。 Fig. 2 is a diagram of the communication establishment process inside the message routing in the present invention.
图3是本发明中发送节点和接收节点之间通过消息路由进行通信的示意图。 Fig. 3 is a schematic diagram of communication between a sending node and a receiving node through message routing in the present invention.
图4是本发明中节点间通信失效的示意图。 Fig. 4 is a schematic diagram of communication failure between nodes in the present invention.
图5是本发明中节点失效判断流程图。 Fig. 5 is a flowchart of node failure judgment in the present invention.
具体实施方式 detailed description
下面详细描述本发明的实施方式,所述实施方式的示例在附图中示出。下面通过参考附图描述的实施方式是示例性的,仅用于解释本发明,而不能解释为对本发明的限制。 Embodiments of the invention are described in detail below, examples of which are illustrated in the accompanying drawings. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention.
本发明所解决的问题是在集群系统下,节点间信息的传递难题。本发明提出的数据通信中转方法将消息路由作为节点信息传递的中间件,消息路由作为集群系统中所有节点、模块之间进行通信的核心组件,维持着消息队列,实现通信消息中转。每个计算节点将消息向消息路由汇报,由消息路由将消息压入消息队列,以便被订阅该队列的其它节点获知。相比于传统集群系统中计算节点直接将消息传递给对方,设置消息路由能够避免节点间直接通信,有效降低它们之间的耦合度,保证了网络安全,而且能够减少计算节点的访问数量,减轻大量额外的网络通讯负担,从而提高整个系统的工作效率。 The problem solved by the invention is the problem of information transmission between nodes under the cluster system. The data communication transfer method proposed by the present invention uses the message routing as the middleware for node information transfer, and the message routing as the core component for communication between all nodes and modules in the cluster system, maintains the message queue, and realizes the transfer of communication messages. Each computing node reports the message to the message router, and the message router pushes the message into the message queue so that it can be known by other nodes subscribing to the queue. Compared with the computing nodes in the traditional cluster system that directly transmit messages to each other, setting up message routing can avoid direct communication between nodes, effectively reduce the coupling between them, ensure network security, and reduce the number of accesses of computing nodes, reducing the A large amount of additional network communication burden, thereby improving the work efficiency of the entire system.
1、消息路由模型 1. Message routing model
消息路由实质上是一种面向消息的中间件,是为分布式应用程序提供跨平台高效信息传输的中间件技术。进程通过中间件提供的接口与中间件连接,通过消息传送机制和消息队列服务进行数据交流,有同步传输和异步传输两种传输方式。 Message routing is essentially a message-oriented middleware, which is a middleware technology that provides cross-platform efficient information transmission for distributed applications. The process is connected to the middleware through the interface provided by the middleware, and the data exchange is carried out through the message transmission mechanism and the message queue service. There are two transmission modes: synchronous transmission and asynchronous transmission.
如图1所示,消息路由主要利用以下的五个组件实现节点间的通信: As shown in Figure 1, message routing mainly uses the following five components to achieve communication between nodes:
(1)接口处理模块 (1) Interface processing module
该模块接受应用进程发出的服务请求,并分析服务请求,辨别请求为队列变更请求还是消息传递请求,根据不同的请求类别,调用相应的模块。 This module accepts the service request sent by the application process, analyzes the service request, distinguishes whether the request is a queue change request or a message delivery request, and calls the corresponding module according to different request types.
(2)消息队列模块 (2) Message queue module
存在于消息路由上的消息队列模块在消息传输过程中充当保存消息的容器,扮演消息从源点传输到目标的中间角色。在消息路由上每个节点都对应着一个独立的消息队列,节点与特定的消息队列进行绑定,向消息路由发送消息,然后压入对应的消息队列。 The message queue module that exists on the message routing acts as a container for storing messages during message transmission, and plays an intermediate role in the transmission of messages from source to target. Each node on the message routing corresponds to an independent message queue, and the node is bound to a specific message queue, sends a message to the message routing, and then pushes it into the corresponding message queue.
(3)队列管理模块 (3) Queue management module
队列管理模块根据接口处理模块反馈的队列变更指令,对相关的消息队列进行操作,比如新增队列或者删除已有的消息队列等。 The queue management module operates on related message queues according to the queue change instructions fed back by the interface processing module, such as adding new queues or deleting existing message queues.
(4)消息通道代理模块 (4) Message channel agent module
消息通道代理模块主要完成消息压入和消息提取两项任务,负责从接口处理模块获取信息,分析任务类别。若是压入操作,从消息中提取队列标识,并根据队列标识将消息压入相应的消息队列。若是提取操作,从对应的消息队列提取消息,并回馈给接口处理模块。 The message channel agent module mainly completes the two tasks of message push and message extraction, and is responsible for obtaining information from the interface processing module and analyzing task categories. If it is a push operation, the queue ID is extracted from the message, and the message is pushed into the corresponding message queue according to the queue ID. If it is an extraction operation, the message is extracted from the corresponding message queue and fed back to the interface processing module.
(5)安全管理模块 (5) Security management module
安全管理模块则负责整个消息传输处理过程中的安全性,对消息进行加解密。 The security management module is responsible for the security of the entire message transmission process, and encrypts and decrypts the messages.
2、消息路由的工作流程 2. The workflow of message routing
消息路由在消息传递过程中采用订阅/发布模式工作模式,在订阅/发布模式下,发起进程向消息路由发起通信请求,消息路由接受请求后判断通信模式,在消息路由上建立相应的消息代理,发起进程将消息发送到消息代理之后结束通信,由消息代理将消息发送给订阅消息的进程。 The message routing adopts the subscription/publishing mode of operation in the message delivery process. In the subscription/publishing mode, the initiating process initiates a communication request to the message routing. After the message routing accepts the request, it judges the communication mode and establishes a corresponding message agent on the message routing. The initiating process ends the communication after sending the message to the message broker, and the message broker sends the message to the process of subscribing to the message.
如图2所示,描绘了节点A、B间消息中转时消息路由内部的通信建立过程,主要步骤如下: As shown in Figure 2, it depicts the communication establishment process inside the message routing when the message is transferred between nodes A and B. The main steps are as follows:
步骤1:节点A首先向消息路由发起连接请求,连接生产器接收到请求之后为此次请求分配连接。 Step 1: Node A first initiates a connection request to the message router, and the connection producer allocates a connection for this request after receiving the request.
步骤2:节点A向连接发起会话请求,同时附带会话的事务性以及确认机制的参数,连接收到请求后建立相应会话。 Step 2: Node A initiates a session request to the connection, along with transactional and confirmation mechanism parameters of the session, and establishes a corresponding session after the connection receives the request.
步骤3:节点A向会话层发送通信模式信息,并指定其对应的消息队列的名称,会话层收到请求后建立相应队列。 Step 3: Node A sends communication mode information to the session layer, and specifies the name of its corresponding message queue, and the session layer establishes a corresponding queue after receiving the request.
步骤4:节点A与队列协商其发送消息模式、消息性质以及存储方式。随后向消息路由汇报消息,并被压入消息队列。 Step 4: Node A negotiates with the queue on its message sending mode, message nature and storage method. The message is then reported to the message router and pushed into the message queue.
步骤5:节点B向消息路由发起连接请求,连接生产器接收到请求之后为此次请求分配连接。 Step 5: Node B initiates a connection request to the message router, and the connection producer allocates a connection for this request after receiving the request.
步骤6:节点B向连接发起会话请求,同时附带会话的事务性以及确认机制的参数,连接收到请求后建立相应会话。 Step 6: Node B initiates a session request to the connection, and attaches transactional and confirmation mechanism parameters of the session at the same time, and establishes a corresponding session after the connection receives the request.
步骤7:节点B向会话层发送通信模式信息,并指定其订阅的消息队列的名称,会话层收到请求后绑定相应队列。 Step 7: Node B sends communication mode information to the session layer, and specifies the name of the message queue it subscribes to, and the session layer binds the corresponding queue after receiving the request.
步骤8:节点B持续监听消息队列,一旦队列中有消息被压入,消息立刻被提取,并被节点B获得。 Step 8: Node B continuously monitors the message queue. Once a message is pushed into the queue, the message is immediately extracted and obtained by Node B.
3、在网络管理方面的应用 3. Application in network management
为了更加详细地说明本发明的内容,将本发明应用到网络管理方面。网络管理,简单地说就是为了网络系统能够健康、稳定、高效地运行,对网络实施的一系列方法和措施。对网络资源进行监视、配置和控制等操作能够保证系统性能和服务质量。另外,当网络出现故障时,及时发现和快速处理。下面分别针对节点间通信方式和失效节点的识别两方面,描述本发明在网络管理的具体应用场景。 In order to illustrate the content of the present invention in more detail, the present invention is applied to network management. Simply put, network management is a series of methods and measures implemented on the network for the healthy, stable and efficient operation of the network system. Operations such as monitoring, configuring and controlling network resources can guarantee system performance and service quality. In addition, when a fault occurs on the network, it can be found in time and dealt with quickly. The following describes the specific application scenarios of the present invention in network management for the two aspects of the inter-node communication mode and the identification of failed nodes.
(1)节点间通信方式 (1) Inter-node communication method
如图3所示,节点A、B分别通过上述方式与消息路由建立通信,同时规定其会话方式为非事务性会话,消息确认机制为自动确认(AUTO_ACKNOWLEDGE),消息格式为文本消息(TextMessage)。当节点A、B分别与消息路由建立连接之后,两节点间就可以相互通信,节点间的通信流程如下: As shown in Figure 3, nodes A and B respectively establish communication with the message router through the above methods, and at the same time stipulate that their conversation mode is non-transactional conversation, the message confirmation mechanism is automatic confirmation (AUTO_ACKNOWLEDGE), and the message format is text message (TextMessage). After nodes A and B respectively establish a connection with the message router, the two nodes can communicate with each other. The communication process between nodes is as follows:
步骤1:当两节点之间需要通信时,首先判断消息路由上是否存在这两节点相对应的消息队列。如果不存在相应消息队列,则节点上的守护进程向消息路由发起请求,申请建立与之对应的一个独立的消息队列,每个节点只订阅与自身对应的消息队列。 Step 1: When two nodes need to communicate, first determine whether there are message queues corresponding to the two nodes on the message route. If there is no corresponding message queue, the daemon process on the node initiates a request to the message routing to apply for the establishment of an independent message queue corresponding to it, and each node only subscribes to the message queue corresponding to itself.
步骤2:节点B向消息路由发送信令消息,此信令消息包含消息队列标识,要求订阅该队列的节点作出响应。 Step 2: Node B sends a signaling message to the message router, the signaling message contains the message queue identifier, and requests the nodes subscribing to the queue to respond.
步骤3:消息路由接收到信令消息后,分析并提取队列标识,根据此标识将信令消息压入对应的消息队列。 Step 3: After receiving the signaling message, the message router analyzes and extracts the queue identifier, and pushes the signaling message into the corresponding message queue according to the identifier.
步骤4:节点A订阅该消息队列,并持续监听该队列。一旦队列中压入消息,立刻提取消息。节点A分析此信令消息后,根据信令的要求,向消息路由发送响应消息。 Step 4: Node A subscribes to the message queue and continuously monitors the queue. As soon as a message is pushed into the queue, the message is fetched immediately. After analyzing the signaling message, node A sends a response message to the message router according to the requirements of the signaling.
步骤5:消息路由接收消息,根据消息中包含的队列标识,将消息压入节点B对应的消息队列。 Step 5: The message routing receives the message, and pushes the message into the corresponding message queue of Node B according to the queue identifier included in the message.
步骤6:节点B订阅自身对应的消息队列,从消息队列中提取消息,从而获得节点A的响应消息。 Step 6: Node B subscribes to its corresponding message queue, extracts messages from the message queue, and obtains a response message from node A.
(2)故障节点识别 (2) Fault node identification
故障管理是网络管理中最基本的功能之一,在网络管理过程中,管理员需要实时了解每个组成的状态,当某个组成失效时,必须快速找到故障并及时处理故障,保证一个可靠的计算机网络。将消息路由作为网络管理中的消息中转方法,能够快速地发现失效节点,提高网络系统的稳定性。如图4所示,当节点A发生故障而失效时,故障识别流程如下: Fault management is one of the most basic functions in network management. In the process of network management, the administrator needs to know the status of each component in real time. When a component fails, it must quickly find the fault and deal with it in time to ensure a reliable network. computer network. Using message routing as a message transfer method in network management can quickly discover failed nodes and improve the stability of the network system. As shown in Figure 4, when node A fails due to failure, the fault identification process is as follows:
步骤1:节点B向消息路由发送信令消息,由消息路由转发至节点A对应的消息队列。 Step 1: Node B sends a signaling message to the message router, and the message router forwards it to the corresponding message queue of node A.
步骤2:由于节点A已经失效,不再监听消息队列,更不能处理队列中的信令消息,无法按要求作出响应。 Step 2: Since node A has failed, it no longer listens to the message queue, let alone processes signaling messages in the queue, and cannot respond as required.
步骤3:节点B持续监听其消息队列,当一段时间内队列中都没有消息时,立即调用判断函数,判断节点A失效,向管理节点报告失效情况,如图5所示。 Step 3: Node B continues to monitor its message queue. When there is no message in the queue for a period of time, it immediately calls the judgment function to judge that node A is invalid, and reports the failure to the management node, as shown in Figure 5.
以上实施例仅为说明本发明的技术思想,不能以此限定本发明的保护范围,凡是按照本发明提出的技术思想,在技术方案基础上所做的任何改动,均落入本发明保护范围之内。 The above embodiments are only to illustrate the technical ideas of the present invention, and can not limit the protection scope of the present invention with this. All technical ideas proposed in accordance with the present invention, any changes made on the basis of technical solutions, all fall within the protection scope of the present invention. Inside.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610142886.2A CN105681462B (en) | 2016-03-14 | 2016-03-14 | It is a kind of based on message routing group system and data communication in shifting method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610142886.2A CN105681462B (en) | 2016-03-14 | 2016-03-14 | It is a kind of based on message routing group system and data communication in shifting method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105681462A true CN105681462A (en) | 2016-06-15 |
CN105681462B CN105681462B (en) | 2019-03-01 |
Family
ID=56307727
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610142886.2A Expired - Fee Related CN105681462B (en) | 2016-03-14 | 2016-03-14 | It is a kind of based on message routing group system and data communication in shifting method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105681462B (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106453136A (en) * | 2016-09-05 | 2017-02-22 | 深圳前海微众银行股份有限公司 | Method and device for establishing message queue |
CN106528307A (en) * | 2016-11-14 | 2017-03-22 | 济南浪潮高新科技投资发展有限公司 | Method for realizing extensible message routing |
CN107395765A (en) * | 2017-08-31 | 2017-11-24 | 郑州云海信息技术有限公司 | A kind of distributed file system, network communication method, platform and its creation method |
CN107450999A (en) * | 2017-08-07 | 2017-12-08 | 郑州云海信息技术有限公司 | A kind of method and system of cluster inter-component communication |
CN107479514A (en) * | 2017-07-10 | 2017-12-15 | 昆明理工大学 | A kind of industrial big data process control data collection and Transmission system and implementation method |
CN108712332A (en) * | 2018-05-17 | 2018-10-26 | 华为技术有限公司 | A kind of communication means, system and device |
CN109583832A (en) * | 2018-11-16 | 2019-04-05 | 上海浦东发展银行股份有限公司信用卡中心 | A kind of Workflow intelligent circulation management system for bank management |
CN112187655A (en) * | 2020-09-29 | 2021-01-05 | 苏州浪潮智能科技有限公司 | Controller cluster of storage system, message transmission method of controller cluster and readable storage medium |
CN112202614A (en) * | 2020-09-30 | 2021-01-08 | 中国银行股份有限公司 | Inter-system communication method and device |
CN114338063A (en) * | 2020-09-29 | 2022-04-12 | 中移物联网有限公司 | Message queue system, service processing method, and computer-readable storage medium |
CN114666226A (en) * | 2022-05-25 | 2022-06-24 | 杭州谐云科技有限公司 | Large-scale edge cluster management method and system |
CN114827145A (en) * | 2022-04-24 | 2022-07-29 | 阿里巴巴(中国)有限公司 | Server cluster system, and metadata access method and device |
CN115794442A (en) * | 2023-01-10 | 2023-03-14 | 深圳华北工控软件技术有限公司 | Embedded system, process communication method, device, computer equipment and medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012156851A1 (en) * | 2011-05-18 | 2012-11-22 | International Business Machines Corporation | Managing a message subscription in a publish/subscribe messaging system |
CN103179193A (en) * | 2013-02-21 | 2013-06-26 | 用友软件股份有限公司 | Data transmission system and data transmission method used for distributed application system |
CN103188140A (en) * | 2011-12-31 | 2013-07-03 | 国民技术股份有限公司 | Service request processing system |
CN103873523A (en) * | 2012-12-14 | 2014-06-18 | 北京东方通科技股份有限公司 | Client cluster access method and device |
CN104811459A (en) * | 2014-01-23 | 2015-07-29 | 阿里巴巴集团控股有限公司 | Processing method, processing device and system for message services and message service system |
-
2016
- 2016-03-14 CN CN201610142886.2A patent/CN105681462B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012156851A1 (en) * | 2011-05-18 | 2012-11-22 | International Business Machines Corporation | Managing a message subscription in a publish/subscribe messaging system |
CN103562890A (en) * | 2011-05-18 | 2014-02-05 | 国际商业机器公司 | Managing message subscription in publish/subscribe messaging system |
CN103188140A (en) * | 2011-12-31 | 2013-07-03 | 国民技术股份有限公司 | Service request processing system |
CN103873523A (en) * | 2012-12-14 | 2014-06-18 | 北京东方通科技股份有限公司 | Client cluster access method and device |
CN103179193A (en) * | 2013-02-21 | 2013-06-26 | 用友软件股份有限公司 | Data transmission system and data transmission method used for distributed application system |
CN104811459A (en) * | 2014-01-23 | 2015-07-29 | 阿里巴巴集团控股有限公司 | Processing method, processing device and system for message services and message service system |
Non-Patent Citations (3)
Title |
---|
吕海林: "基于消息中间件的订阅/发布系统的研究与设计", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
王重楠: "发布/订阅模式测控消息中间件系统设计", 《计算机应用》 * |
邢东旭 等: "基于消息中间件的订阅/发布系统的研究与设计", 《计算机与信息技术》 * |
Cited By (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106453136A (en) * | 2016-09-05 | 2017-02-22 | 深圳前海微众银行股份有限公司 | Method and device for establishing message queue |
CN106453136B (en) * | 2016-09-05 | 2019-06-25 | 深圳前海微众银行股份有限公司 | Method and device for establishing message queue |
CN106528307A (en) * | 2016-11-14 | 2017-03-22 | 济南浪潮高新科技投资发展有限公司 | Method for realizing extensible message routing |
CN106528307B (en) * | 2016-11-14 | 2019-08-02 | 浪潮通用软件有限公司 | A kind of expansible message route implementation method |
CN107479514B (en) * | 2017-07-10 | 2019-12-03 | 昆明理工大学 | A kind of industry big data process control data acquisition and Transmission system and implementation method |
CN107479514A (en) * | 2017-07-10 | 2017-12-15 | 昆明理工大学 | A kind of industrial big data process control data collection and Transmission system and implementation method |
CN107450999A (en) * | 2017-08-07 | 2017-12-08 | 郑州云海信息技术有限公司 | A kind of method and system of cluster inter-component communication |
CN107395765A (en) * | 2017-08-31 | 2017-11-24 | 郑州云海信息技术有限公司 | A kind of distributed file system, network communication method, platform and its creation method |
CN107395765B (en) * | 2017-08-31 | 2020-09-22 | 苏州浪潮智能科技有限公司 | Distributed file system, network communication method, platform and creation method thereof |
CN108712332A (en) * | 2018-05-17 | 2018-10-26 | 华为技术有限公司 | A kind of communication means, system and device |
US11689606B2 (en) | 2018-05-17 | 2023-06-27 | Huawei Technologies Co., Ltd. | Communication method, system and apparatus |
CN109583832A (en) * | 2018-11-16 | 2019-04-05 | 上海浦东发展银行股份有限公司信用卡中心 | A kind of Workflow intelligent circulation management system for bank management |
CN112187655A (en) * | 2020-09-29 | 2021-01-05 | 苏州浪潮智能科技有限公司 | Controller cluster of storage system, message transmission method of controller cluster and readable storage medium |
CN114338063A (en) * | 2020-09-29 | 2022-04-12 | 中移物联网有限公司 | Message queue system, service processing method, and computer-readable storage medium |
CN112187655B (en) * | 2020-09-29 | 2022-12-20 | 苏州浪潮智能科技有限公司 | Controller cluster of storage system, message transmission method of controller cluster and readable storage medium |
CN114338063B (en) * | 2020-09-29 | 2023-11-10 | 中移物联网有限公司 | Message queue system, business processing method and computer-readable storage medium |
CN112202614A (en) * | 2020-09-30 | 2021-01-08 | 中国银行股份有限公司 | Inter-system communication method and device |
CN112202614B (en) * | 2020-09-30 | 2023-01-24 | 中国银行股份有限公司 | Method and device for communication between systems |
CN114827145B (en) * | 2022-04-24 | 2024-01-05 | 阿里巴巴(中国)有限公司 | Server cluster system, metadata access method and device |
CN114827145A (en) * | 2022-04-24 | 2022-07-29 | 阿里巴巴(中国)有限公司 | Server cluster system, and metadata access method and device |
CN114666226B (en) * | 2022-05-25 | 2022-11-18 | 杭州谐云科技有限公司 | Large-scale edge cluster management method and system |
CN114666226A (en) * | 2022-05-25 | 2022-06-24 | 杭州谐云科技有限公司 | Large-scale edge cluster management method and system |
CN115794442A (en) * | 2023-01-10 | 2023-03-14 | 深圳华北工控软件技术有限公司 | Embedded system, process communication method, device, computer equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN105681462B (en) | 2019-03-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105681462A (en) | Cluster system based on message router, and data communication transfer method | |
CN110009201B (en) | A power data link system and method based on blockchain technology | |
JP6408602B2 (en) | Method and communication unit for service implementation in an NFV system | |
CN103516802B (en) | Method and device for achieving seamless transference of across heterogeneous virtual switch | |
CN107454186A (en) | A kind of data safe transmission method based on message queue | |
CN105072021B (en) | A kind of message forwarding method of dispatch automated system cross-network segment | |
CN103647820B (en) | Referee method and arbitration device for distributed cluster system | |
CN109088820B (en) | Cross-device link aggregation method and device, computing device and storage medium | |
CN103095819A (en) | Data information pushing method and data information pushing system | |
CN108063813B (en) | Method and system for parallelizing password service network in cluster environment | |
WO2023046088A1 (en) | End-to-end system solution method applied to audio and video data transmission | |
CN116633775B (en) | Container communication method and system of multi-container network interface | |
CN110062004A (en) | A kind of message handling system and method based on Internet of Things fidonetFido | |
CN105282128A (en) | Bidirectional calling method and system based on long connection | |
CN108200158A (en) | request transmission system, method, device and storage medium | |
CN108566390B (en) | Satellite message monitoring and distributing service system | |
CN106941522B (en) | Lightweight distributed computing platform and data processing method thereof | |
CN102036188A (en) | Mail proxy method, equipment and system under multi-node system | |
CN115022408A (en) | Service grid-based data transmission method and device, and electronic equipment | |
CN113259408A (en) | Data transmission method and system | |
CN116192863B (en) | Micro-service flow processing method, DPU service grid deployment method and system | |
CN102611752A (en) | Realization method of supervision server (iTracker) through participating in peer-to-peer computing technology by telecom operator | |
CN111240867B (en) | Information communication system and method | |
TWI679870B (en) | Information processing method and device | |
CN115408199A (en) | Disaster tolerance processing method and device for edge computing node |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20200110 Address after: 200540 Building 2, No. 6488, Tingwei Road, Jinshan District, Shanghai (Hangzhou Bay North Bank Industrial Park) Patentee after: Shanghai Tongzhuo Information Technology Service Center Address before: Yuen Road Qixia District of Nanjing City, Jiangsu Province, No. 9 210023 Patentee before: NANJING University OF POSTS AND TELECOMMUNICATIONS |
|
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20200331 Address after: Room 2452, building 4, No. 589, Xuefu Road, Jinshanwei Town, Jinshan District, Shanghai 201500 Patentee after: Shanghai Shumu Technology Co.,Ltd. Address before: 200540 Building 2, No. 6488, Tingwei Road, Jinshan District, Shanghai (Hangzhou Bay North Bank Industrial Park) Patentee before: Shanghai Tongzhuo Information Technology Service Center |
|
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210908 Address after: 400000 No. 16 and 20 Shixiao Road, Xiaolongkan street, Shapingba District, Chongqing Patentee after: Chongqing Dixin Enterprise Management Consulting Co.,Ltd. Address before: 201500 room 2452, building 4, no.589 Xuefu Road, Jinshanwei Town, Jinshan District, Shanghai Patentee before: Shanghai Shumu Technology Co.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190301 |