《電子技術(shù)應(yīng)用》
您所在的位置:首頁(yè) > 通信與網(wǎng)絡(luò) > 設(shè)計(jì)應(yīng)用 > 基于發(fā)布-訂閱機(jī)制的異構(gòu)平臺(tái)消息中間件設(shè)計(jì)
基于發(fā)布-訂閱機(jī)制的異構(gòu)平臺(tái)消息中間件設(shè)計(jì)
電子技術(shù)應(yīng)用
周璞,柴小麗,俞則人,左顏
中國(guó)電子科技集團(tuán)公司第三十二研究所
摘要: 針對(duì)嵌入式異構(gòu)計(jì)算系統(tǒng)中計(jì)算單元間的互聯(lián)需求,面向CPU及FPGA平臺(tái)設(shè)計(jì)一種工作在發(fā)布-訂閱模式下的消息中間件。首先研究發(fā)布-訂閱模型及對(duì)應(yīng)的報(bào)文傳輸方式,為解決可靠組播的錯(cuò)誤控制、擁塞控制問(wèn)題選用RapidIO作為中間件傳輸協(xié)議。其次研究中間件的通信方案與發(fā)布-訂閱機(jī)制的實(shí)現(xiàn)方案并設(shè)計(jì)了熱插拔機(jī)制與異常監(jiān)測(cè)模塊以提升可靠性。系統(tǒng)驗(yàn)證與測(cè)試結(jié)果表明,中間件具有較好的通信性能,且熱插拔機(jī)制有效提升了系統(tǒng)的可靠性,與其他設(shè)計(jì)方案相比具有一定優(yōu)勢(shì)。
中圖分類號(hào):TN91;TP31 文獻(xiàn)標(biāo)志碼:A DOI: 10.16157/j.issn.0258-7998.246129
中文引用格式: 周璞,柴小麗,俞則人,等. 基于發(fā)布-訂閱機(jī)制的異構(gòu)平臺(tái)消息中間件設(shè)計(jì)[J]. 電子技術(shù)應(yīng)用,2025,51(5):50-54.
英文引用格式: Zhou Pu,Chai Xiaoli,Yu Zeren,et al. Design of MOM for heterogeneous platforms based on publish-subscribe mechanisms[J]. Application of Electronic Technique,2025,51(5):50-54.
Design of MOM for heterogeneous platforms based on publish-subscribe mechanisms
Zhou Pu,Chai Xiaoli,Yu Zeren,Zuo Yan
The 32nd Research Institute of China Electronics Technology Group Corporation
Abstract: Aiming at the interconnection demand between computing units in embedded heterogeneous computing systems, a message middleware working in publish-subscribe mode is designed for CPU and FPGA platforms. Firstly, we study the publish-subscribe model and the corresponding message transmission method and choose RapidIO as the middleware transmission protocol to solve reliable multicast error control and congestion control problems. Secondly, we study the middleware's communication scheme and the publish-subscribe mechanism's implementation scheme and design the hot-plugging mechanism and the anomaly monitoring module to improve reliability. System validation and testing results show that the middleware has better communication performance, and the hot-plugging mechanism effectively enhances the system's reliability, which has certain advantages compared with other design solutions.
Key words : middleware;publish-subscribe mechanisms;RapidIO protocol;hot-plugging;heterogeneous computing

引言

伴隨著數(shù)字化社會(huì)建設(shè)需要[1]與集成電路發(fā)展進(jìn)入瓶頸[2],不同架構(gòu)的協(xié)處理器被廣泛應(yīng)用于計(jì)算系統(tǒng)的設(shè)計(jì)中。中間件作為一種軟硬件抽象層,屏蔽了不同操作系統(tǒng)與處理器之間的軟硬件差異[3],為異構(gòu)計(jì)算系統(tǒng)提供了可靠、透明的通信環(huán)境。中間件的類型有面向消息中間件(MOM)、面向?qū)ο笾虚g件(OOM)等[4],消息中間件通過(guò)以消息的形式收發(fā)應(yīng)用程序數(shù)據(jù)以連接運(yùn)行于不同系統(tǒng)中的應(yīng)用程序[5],主要有消息隊(duì)列模式、點(diǎn)對(duì)點(diǎn)模式與發(fā)布-訂閱模式三種工作模式,其中發(fā)布-訂閱模式通過(guò)消息代理以及發(fā)送接收程序?qū)崿F(xiàn)在網(wǎng)絡(luò)中進(jìn)行特定主題數(shù)據(jù)的發(fā)布及接收,沒(méi)有傳統(tǒng)意義上的客戶端及服務(wù)器,具有空間非耦合、時(shí)間非耦合及數(shù)據(jù)流非耦合的特點(diǎn)。

本文針對(duì)CPU與FPGA兩種硬件平臺(tái)開(kāi)發(fā)了一套消息中間件,該中間件工作在發(fā)布-訂閱模式,支持的最高RapidIO規(guī)格為4X、5 Gbaud,并具備高帶寬與高可靠性的特點(diǎn)。


本文詳細(xì)內(nèi)容請(qǐng)下載:

http://ihrv.cn/resource/share/2000006525


作者信息:

周璞,柴小麗,俞則人,左顏

(中國(guó)電子科技集團(tuán)公司第三十二研究所,上海 201808)


Magazine.Subscription.jpg

此內(nèi)容為AET網(wǎng)站原創(chuàng),未經(jīng)授權(quán)禁止轉(zhuǎn)載。