摘要
数据采集模块广泛应用于网络管理系统中,首先讲述了数据采集服务和上层服务器间以及光保护设备间的通信方式,分别采用TCP通信方式和UDP通信方式;其次介绍了如何通过数据轮询来获得设备的各种性能数据。考虑到大量数据的吞吐量以及软件运行的速度,采用多线程的方式,并且利用同步队列实现线程间的同步。另外,为了方便系统的移植,采用stlport库函数,封装了所有普通类,使得系统能够运行在多平台上。
Data acquisition module is widely used in the network management system. The protocol between data acquisition sever and top sever is introduced in this article, and the protocol between the data collection sever and the OLP device is illustrated, too. The protocols are based on TCP and UDP separately. Then, considering the large capacity of performance data are acquired by polling, the multi- thread and synchronizing queue are used to meet the requirement of quick software speed. In addition, all the common classes are encapsulated by using stlport function,which can make the system run on different platform.
出处
《现代电子技术》
2009年第7期95-97,共3页
Modern Electronics Technique
关键词
数据采集
多线程
同步队列
跨平台
data acquisition
multi - threading
synchronizing queue
cross platform