张伟杰. 基于Socket通信KJF2000N双机切换的实现[J]. 煤矿安全, 2014, 45(4): 117-119.
    引用本文: 张伟杰. 基于Socket通信KJF2000N双机切换的实现[J]. 煤矿安全, 2014, 45(4): 117-119.
    ZHANG Weijie. Realization of KJF2000N Dual Switch Based on Socket Communication[J]. Safety in Coal Mines, 2014, 45(4): 117-119.
    Citation: ZHANG Weijie. Realization of KJF2000N Dual Switch Based on Socket Communication[J]. Safety in Coal Mines, 2014, 45(4): 117-119.

    基于Socket通信KJF2000N双机切换的实现

    Realization of KJF2000N Dual Switch Based on Socket Communication

    • 摘要: 为有效解决目前 KJF2000N煤矿安全生产综合监控系统双机主备切换带来的2台机器同时作为主机运行的问题,调整双机切换功能的实现方案,更好地实现KJF2000N系统的双机切换功能,基于Socket通信原理和建立连接协议(3次握手机制)、终止连接协议(4次握手机制),制定KJF2000N双机切换握手协议,运用Socket连接和侦听等函数随时进行主备机之间的数据通信,在主机退出或者发生故障时备机及时切换为主机进行工作,以保证系统能不间断的对井下设备及环境进行实时的监测监控。

       

      Abstract: In order to effectively solve the problem of active and standby computer switch as the host switching operation at the same time in KJF2000N coal mine safety production integrated monitoring system, it adjusted realization scheme of double switch function, to better achieve double switch function of KJF2000N system. Based on Socket communication principle, establishing connection protocol(three times handshake mechanism) and terminating connection protocol(four times handshake mechanism), It formulated KJF2000N double switch handshake protocol, achieved data communication between active and standby computer by Socket connection and listening function at any time, and timely prepared for switch work for the host on the host machine to quit or failure so as to ensure that the system could continuously monitor real-time monitoring on the underground equipment and environment.

       

    /

    返回文章
    返回