针对目前操作管理平台所使用的消息传输机制做出了分析和评价。首先,搭建了测试平台,并分析了当前Web应用上普遍使用的消息传输机制。接着,根据目前ForCES路由器操作管理平台所传输的消息的需求和特点,分别采用HTTP流和Socket两种方式来实现,并进行性能测试比较。测试结果显示HTTP流和Socket两种方式在传输不同类型的消息时有着各自的优点和缺点。最后,给出了ForCES操作管理平台消息传输机制的一些建议。
This paper presents an analysis and evaluation of the message transmission mechanism in OMP. First, we construct an experimental environment and analyze some commonly-used message transmission mechanisms on web application. Furthermore, according to the main requirements and characteristics of messages in OMP of ForCES routers at present, we adopt http object stream and socket for the implementation and we have carried out an experiment to compare the performance of http object stream with socket. Results show that http object stream and socket have their own advantages and disadvantages in different operations of message transmission. At last some rational suggestions are given.