通过在Adhoc多播路由协议(ADMR)中加入发布/订阅匹配算法,将发布/订阅中间件与移动Adhoc网络相结合,设计出适应发布/订阅分布式网络的多播路由协议(PSMR),中间件使用该协议将发布者的数据分发到相匹配的订阅者。使用NS2网络仿真平台实现了该协议,将其与ADMR进行性能比较,大大减少了网络中分组转发次数,提高了网络效率。
PSMR(publish/subscribe multihop routing) protocol is designed to adapt the publish/subscribe distributed system by adding the publish/subscribe match algorithm to Ad hoc multicast routing protocol ADMR( adaptive demand-driven multi- cast routing). PSMR was integrated publish/subscribe middleware and mobile Ad hoc network. The middleware was used PSMR to distribute the publisher' s data to relevant subscribers. This protocol PSMR was simulated by NS2 and compared with ADMR in some performances. Simulation conclusion shows that PSMR can greatly reduce the number of packet transmission and enhance the mobile Ad hoc network overall efficiency.