KR20030048503A - Communication system and method for data synchronization of duplexing server - Google Patents

Communication system and method for data synchronization of duplexing server Download PDF

Info

Publication number
KR20030048503A
KR20030048503A KR1020010078413A KR20010078413A KR20030048503A KR 20030048503 A KR20030048503 A KR 20030048503A KR 1020010078413 A KR1020010078413 A KR 1020010078413A KR 20010078413 A KR20010078413 A KR 20010078413A KR 20030048503 A KR20030048503 A KR 20030048503A
Authority
KR
South Korea
Prior art keywords
data
server
synchronization
agent
counterpart
Prior art date
Application number
KR1020010078413A
Other languages
Korean (ko)
Inventor
박기현
Original Assignee
주식회사 엘지이아이
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 주식회사 엘지이아이 filed Critical 주식회사 엘지이아이
Priority to KR1020010078413A priority Critical patent/KR20030048503A/en
Publication of KR20030048503A publication Critical patent/KR20030048503A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • H04L41/046Network management architectures or arrangements comprising network management agents or mobile agents therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0853Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information
    • H04L41/0856Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information by backing up or archiving configuration information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Hardware Redundancy (AREA)

Abstract

PURPOSE: A communication system and a method of data synchronization of a dual server structure are provided to operate two servers all in a normal state, store log data of a server generated faults to a normal server and supply the stored log data from the normal to the fault generating server by checking state of the fault generating server, thereby capable of transmitting/receiving data with each other and enhancing availability of resources of servers. CONSTITUTION: A server 1(100) and a server 2(200) are constructed in duplication. The server 1 and server 2(100,200) synchronizes data according to an opponent server through the respective agents(110,210). The two servers(100,200) are connected to a switch(300) and thereby operate simultaneously. The two servers(100,200) have memory units(120,220), thereby storing data generated for the operation of them. Also, the two servers(100,200) transmit and receive data obtained by the operation of the opponent server, thereby synchronizing the data.

Description

이중화 서버 구조의 데이터 동기화를 위한 통신 시스템 및 방법{Communication system and method for data synchronization of duplexing server}Communication system and method for data synchronization of redundant server architecture {Communication system and method for data synchronization of duplexing server}

본 발명은 이중화 서버를 구성하는데 있어서 두개의 서버간 파일 및 데이터 베이스 동기화에 관한 것으로, 특히 활성화 서버의 장애 발생시 간단히 대기중인 서버가 장애를 일으킨 서버의 동작을 이어받아 서비스 중지 없이 시스템을 유지하도록 하는 이중화 서버 구조의 데이터 동기화를 위한 통신 시스템 및 방법에 관한 것이다.The present invention relates to file and database synchronization between two servers in configuring a redundant server, and in particular, in case of an activation server failure, a server that is simply waiting can take over the operation of the failed server to maintain the system without stopping the service. A communication system and method for data synchronization in a redundant server structure.

이중화 서버는 시스템을 운영하는 서버를 두개로 구성하여 그중 하나는 활성화시켜 시스템 동작을 하도록 하고, 나머지 하나는 활성화 서버의 장애를 대비하여 대기하도록 하여 장애 발생시 대기 서버가 역할을 이어받아 시스템의 중지 없이 계속하여 동작하도록 하는 서버를 말한다.The redundant server consists of two servers that operate the system, one of which is activated to operate the system, and the other is to wait for the failure of the activation server so that in case of failure, the standby server takes over the role without stopping the system. A server that keeps running.

도 1은 종래의 이중화 서버 구조의 구성을 나타낸 블록도이다.1 is a block diagram showing the configuration of a conventional redundant server structure.

도 1을 참조하면, 종래의 이중화 서버 구조는 활성화된 서버(10)와 대기중인 서버(20)와, 상기 활성화 서버(10) 및 대기 서버(20)가 공유하는 메모리(30)을 포함하며 구성되며, 상기 활성화 서버(10)와 대기 서버(20)는 이중화 처리를 위한 에이전트(11, 21)를 포함하여 구성된다.Referring to FIG. 1, a conventional redundant server structure includes an active server 10 and a standby server 20, and a memory 30 shared by the activation server 10 and the standby server 20. The activation server 10 and the standby server 20 include agents 11 and 21 for redundancy processing.

상기 에이전트가 각 서버(10, 20)의 상태를 감시하여 활성화 또는 대기상태로 동작하도록 하는 것이다.The agent monitors the state of each server 10 or 20 to operate in an active or standby state.

상기 활성화 서버(10)가 동작 중인 동안 대기 서버(20)는 동작을 하지 않고, 대기 서버(20)의 에이전트(21)가 활성화 서버(10)의 에이전트(11)로부터 전송되는 신호를 수신하여 장애상황을 감시하다가 장애 상황이 감지되면, 시스템을 재부팅 하도록 하면서 상기 대기 서버(20)가 활성화로 바뀌게 된다.While the activation server 10 is in operation, the standby server 20 does not operate and the agent 21 of the standby server 20 receives a signal transmitted from the agent 11 of the activation server 10 and fails. If the failure condition is detected while monitoring the situation, the standby server 20 is changed to activation while rebooting the system.

이때, 상기 장애 상황을 감지하는 것은, 활성화 서버(10)의 에이전트(11)가 heartbeat프로토콜을 이용하여 계속하여 활성화 서버(10)의 상태정보를 대기 서버(20)의 에이전트(21)에게 전송하게 되는데, 상기 heartbeat 메시지가 일정시간없으면, 대기 서버(20)의 에이전트(21)는 활성화 서버(10)에 장애가 발생했다고 판단하고, 시스템을 부팅 시켜 활성화상태로 변경하여 작동하게 하는 것이다.At this time, detecting the failure situation, the agent 11 of the activation server 10 to continuously transmit the status information of the activation server 10 to the agent 21 of the standby server 20 using the heartbeat protocol. If the heartbeat message does not exist for a certain period of time, the agent 21 of the standby server 20 determines that a failure has occurred in the activation server 10, and reboots the system to change the activation state to operate.

그러나, 종래의 이중화 서버는 대기중인 서버는 활성화 서버의 장애가 발생할 때까지 아무런 동작을 하지 않고 대기상태에 있게 되므로, 시스템의 자원을 충분히 사용한다고 할 수 없다.However, in the conventional redundant server, the standby server is in the standby state without any operation until the failure of the activation server occurs, so it cannot be said that the resources of the system are fully used.

또한, 활성화 서버의 장애로 인하여 대기 서버가 동작하기 위해 재부팅을 하게 되므로, 장애 복구시간이 오래 걸릴 수 있고, 시스템이 잠시 중단될 수 있는 문제가 있다.In addition, since the standby server is rebooted to operate due to the failure of the activation server, the failure recovery time may take a long time, and the system may be temporarily stopped.

상기와 같은 문제를 해결하기 위해서, 본 발명은 정상적인 상태에서 두개의 서버가 모두 동작하도록 하며, 장애가 발생하는 서버의 로그 데이터를 정상적인 서버에서 백업하여 저장하여두고, 장애가 복구되면 저장해 둔 로그 데이터를 제공하여 동작할 수 있도록 상대방 서버의 상태를 체크하고, 상호간의 데이터 송수신이 가능하며, 로그 데이터 백업을 할 수 있는 에이전트를 추가하여 두개의 서버를 모두 활용하여 자원 활용도를 높이고, 장애발생시 재부팅 또는 시스템 중단 없이 시스템 운영이 가능하도록 하는 이중화 서버 구조의 데이터 동기화를 위한 통신 시스템 및 방법을 제공함에 그 목적이 있다.In order to solve the above problems, the present invention allows both servers to operate in a normal state, and backs up and stores the log data of a failed server on a normal server, and provides the stored log data when the failure is recovered. It checks the status of the other server so that it can be operated, and it is possible to send and receive data with each other, and add an agent that can back up log data, utilize both servers to increase resource utilization, reboot or stop the system in case of failure. It is an object of the present invention to provide a communication system and method for data synchronization in a redundant server structure that enables system operation without a system.

도 1은 종래의 이중화 서버 구조의 구성을 나타낸 블록도.1 is a block diagram showing the configuration of a conventional redundant server structure.

도 2는 본 발명의 실시 예에 따른 이중화 서버 구조의 데이터 동기화를 위한 통신 시스템의 구성을 나타낸 블록도.2 is a block diagram showing a configuration of a communication system for data synchronization in a redundant server structure according to an embodiment of the present invention.

도 3은 도 2의 이중화 서버의 에이전트 구성을 나타낸 블록도.3 is a block diagram showing an agent configuration of the redundant server of FIG.

도 4는 본 발명의 실시 예에 따른 이중화 서버 구조의 데이터 동기화를 위한 통신 방법의 동작순서를 나타낸 플로우 차트.4 is a flowchart illustrating an operation procedure of a communication method for data synchronization in a redundant server structure according to an embodiment of the present invention.

본 발명에 따른 이중화 서버 구조의 데이터 동기화를 위한 통신방법은,Communication method for data synchronization of the redundant server structure according to the present invention,

이중화된 서버에서 서버의 동작에 따른 상대방 서버와의 데이터 동기화를 위해 상대방 서버의 상태를 판단하는 단계;Determining a state of the counterpart server for data synchronization with the counterpart server according to the operation of the server in the redundant server;

상기 판단결과, 상대방 서버의 장애발생을 인지하여, 동기화 데이터를 백업하고, 상대방 서버의 상태를 계속하여 감시하는 단계;As a result of the determination, recognizing a failure of the counterpart server, backing up synchronization data, and continuously monitoring the state of the counterpart server;

상기 감시결과, 상대방 서버의 장애복구를 감지하여, 상기 백업된 동기화 데이터를 상대방 서버로 전송하여 데이터의 동기화를 수행하는 단계를 포함하여 구성되는 것을 특징으로 한다.And detecting the failure recovery of the counterpart server and transmitting the backed up synchronization data to the counterpart server to perform data synchronization.

바람직하게, 상기 상대방 서버의 상태를 판단하는 단계는,Preferably, the step of determining the state of the counterpart server,

사용자 어플리케이션 에이전트에서 새로 발생한 데이터의 동기화를 위해 메시지큐에 동기화 요청 메시지를 저장하는 단계;Storing a synchronization request message in a message queue for synchronization of newly generated data in the user application agent;

상기 동기화 요청 메시지에 따라 데이터 전송 에이전트에서 상대방 서버의 상태정보를 하트비트 에이전트에 요청하는 단계를 더 포함하여 구성되는 것을 특징으로 한다.And requesting the heartbeat agent for status information of the counterpart server from the data transmission agent according to the synchronization request message.

바람직하게, 상기 동기화 데이터를 백업하는 것은,Preferably, backing up the synchronization data,

상대방 서버의 장애발생을 감지하고, 데이터 전송 에이전트에서 백업 에이전트로 동기화 데이터의 백업을 요청하는 단계;Detecting a failure of the counterpart server and requesting backup of the synchronization data from the data transfer agent to the backup agent;

상기 백업 에이전트에서 데이터 전송 에이전트로부터 동기화 데이터를 수신하여 별도의 파일시스템 및 데이터 베이스에 저장하는 단계를 더 포함하여 구성되는 것을 특징으로 한다.And receiving the synchronization data from the data transfer agent at the backup agent and storing the synchronization data in a separate file system and a database.

바람직하게, 상기 상대방 서버의 장애복구에 따른 데이터 동기화는,Preferably, the data synchronization according to the failover of the counterpart server,

상기 하트비트 에이전트에서 상대방 서버의 장애 복구를 알려서, 데이터 전송 에이전트에서 백업 에이전트로 백업 저장된 동기화 데이터를 요청하는 단계;Informing the failure recovery of the counterpart server by the heartbeat agent, requesting synchronization data backed up from the data transfer agent to the backup agent;

상기 백업 에이전트에서 별도로 저장한 백업데이터를 데이터 전송 에이전트로 전송하고, 상기 데이터 전송 에이전트에서 상대방 서버의 데이터 전송 에이전트로 전달하여 데이터의 동기화를 하도록 하는 단계를 더 포함하여 구성되는 것을 특징으로 한다.And transmitting the backup data separately stored by the backup agent to the data transfer agent, and forwarding the data to the data transfer agent of the counterpart server to synchronize the data.

바람직하게, 상기 상대방 서버로 전달된 동기화 데이터 또는 백업 데이터는 상대방 서버의 동기화 에이전트로 전송되어, 상대방 서버의 파일시스템 및 데이터베이스에 저장되어 데이터의 동기화를 수행하는 단계를 더 포함하여 구성되는 것을 특징으로 한다.Preferably, the synchronization data or backup data transferred to the counterpart server is transmitted to a synchronization agent of the counterpart server, and is stored in a file system and a database of the counterpart server to further perform data synchronization. do.

바람직하게, 상기 데이터 전송 에이전트에서 상대방 서버의 데이터 전송 에이전트로 동기화 데이터를 전송하는데 있어서, 전송 오류가 발생하면 백업 에이전트로 동기화 데이터를 백업저장하도록 요청하여 백업 저장하고, 상기 하트비트 에이전트에서 상대방 서버의 상태가 정상임을 알리면 상기 백업저장된 동기화 데이터를 재전송하도록 한다.Preferably, in transmitting the synchronization data from the data transfer agent to the data transfer agent of the counterpart server, if a transmission error occurs, request to backup and store the synchronization data to the backup agent and store the backup data, and the heartbeat agent of the counterpart server When the status is normal, the backup stored synchronization data is retransmitted.

한편, 본 발명에 따른 이중화 서버 구조의 데이터 동기화를 위한 통신 시스템은,On the other hand, the communication system for data synchronization of the redundant server structure according to the present invention,

이중화 서버구조에서 해당 서버의 프로세서의 상태를 감시하고, 장애 발생 메시지를 전송하는 상태 감시 에이전트와;A status monitoring agent for monitoring a status of a processor of a corresponding server in a redundant server structure and transmitting a failure occurrence message;

상기 상태감시 에이전트에서 전송하는 상태정보에 따라 상대방 서버로 하트비트를 전송하고, 상대방 서버의 상태를 감시하는 하트비트 에이전트와;A heartbeat agent for transmitting a heartbeat to the counterpart server according to the state information transmitted from the status monitoring agent, and monitoring the state of the counterpart server;

상기 서버에 사용자가 접속하여 필요한 동작을 수행하도록 하는 프로그램 및 기능을 제공하는 사용자 어플리케이션 에이전트와;A user application agent providing a program and a function for allowing a user to access the server to perform a necessary operation;

상기 사용자 어플리케이션 에이전트를 통해 사용자가 작업함에 따라 생성되는 동기화 데이터의 위치정보를 임시 저장하는 메시지 큐와;A message queue for temporarily storing location information of synchronization data generated as a user works through the user application agent;

상기 메시지 큐에서 상대방 서버와 동기화할 데이터의 위치정보를 수신하여 해당 동기화 데이터를 상대방 서버로 전송하기 위한 데이터 전송 에이전트와;A data transmission agent for receiving location information of data to be synchronized with the counterpart server in the message queue and transmitting the corresponding synchronization data to the counterpart server;

상기 데이터 전송 에이전트에서 상대방 서버부터 수신한 동기화 데이터를 저장하도록 하는 동기화 에이전트와;A synchronization agent for storing the synchronization data received from the counterpart server in the data transfer agent;

상기 하트비트 에이전트에서 전송하는 상대방 서버의 장애 메시지에 따라 상기 데이터 전송 에이전트에서 상대방 서버로 전송할 동기화 데이터를 별도로 백업 저장하도록하는 백업 에이전트를 포함하여 구성되는 에이전트를 포함하여 이중으로 구성되는 것을 특징으로 한다.And an agent configured to include a backup agent for separately storing and storing synchronization data to be transmitted from the data transfer agent to the counterpart server according to a failure message of the counterpart server transmitted by the heartbeat agent. .

바람직하게, 상기 서버의 동작으로 발생하는 동기화 데이터 및 상대방 서버의 동기화 데이터를 저장하는 파일시스템 및 데이터 베이스를 더 포함하여 구성되는 것을 특징으로 한다.Preferably, the method further comprises a file system and a database storing the synchronization data generated by the operation of the server and the synchronization data of the counterpart server.

상기와 같이 구성되는 본 발명에 따른 이중화 서버 구조의 데이터 동기화를 위한 통신 시스템 및 방법에 대하여 첨부된 도면을 참조하여 설명하면 다음과 같다.A communication system and method for data synchronization in a redundant server structure according to the present invention configured as described above will be described with reference to the accompanying drawings.

도 2는 본 발명의 실시 예에 따른 이중화 서버 구조의 데이터 동기화를 위한 통신 시스템의 구성을 나타낸 블록도이다.2 is a block diagram illustrating a configuration of a communication system for data synchronization in a redundant server structure according to an embodiment of the present invention.

도 2를 참조하면, 이중으로 구성된 서버1(100)과 서버2(200)는 각각의 에이전트(110, 210)를 통하여 상대방 서버의 상태에 따른 데이터 동기화를 하게 되고, , 두개의 서버1, 서버2는 스위치(300)를 통해 연결되어 동시에 동작하며, 각각 메모리부(120, 220)를 가지고 동작시에 발생되는 데이터를 저장하고, 상대방 서버에서 동작하여 얻어지는 데이터를 송수신하여 동기화하도록 구성된다.Referring to FIG. 2, the server 1 (100) and the server 2 (200), which are dually configured, perform data synchronization according to the state of the counterpart server through the respective agents (110, 210). 2 is connected via the switch 300 and operates simultaneously, and stores the data generated during operation with the memory unit 120, 220, respectively, and is configured to transmit and receive the data obtained by operating in the counterpart server to synchronize.

도 3은 도 2의 이중화 서버의 에이전트 구성을 나타낸 블록도이다.3 is a block diagram illustrating an agent configuration of the redundant server of FIG. 2.

도 3을 참조하면, 상기 에이전트(110, 210)는 해당 서버의 각 프로세서의 상태를 감시하고, 장애발생시 장애발생 메시지를 발생시키는 상태감시 에이전트(111, 211)와, 상기 상태감시 에이전트(111,211)로부터 장애발생 메시지를 수신하여 상대방 서버로 알리고 상대방 서버의 장애발생을 감시하는 하트비트 에이전트(112, 212)와, 상기 서버에 접속하여 사용자가 작업하도록 사용자 프로그램 및 기능을 제공하는 사용자 어플리케이션 에이전트(113, 213)와, 상기 사용자 어플리케이션 에이전트(113, 213)의 동작에 따라 발생하는 데이터의 동기화를 위한 동기화 요청 메시지 및 동기화데이터의 위치정보를 임시 저장하는 메시지 큐(114, 214)와, 상기 메시지 큐(114, 214)의 동기화 요청 메시지를 수신하고 동기화 데이터의 위치정보에 저장된 데이터를 상대방 서버로 전송 및 상대방 서버에서 전송되는 동기화데이터를 수신하는 데이터 전송 에이전트(115, 215)와, 상기 하트비트 에이전트(112, 212)에서 상대방 서버의 장애발생을 알릴 때 데이터 전송 에이전트(115, 215)에서상대방으로 전송할 동기화 데이터를 해당 서버에 백업 저장하도록 하는 백업 에이전트(117, 217)와, 상기 데이터 전송 에이전트(115, 215)에서 상대방 서버로부터 수신한 동기화 데이터를 전달받아 저장하는 동기화 에이전트(116, 216)를 포함하여 구성된다.Referring to FIG. 3, the agents 110 and 210 monitor state of each processor of a corresponding server, and state monitoring agents 111 and 211 generating a failure message when a failure occurs, and the state monitoring agents 111 and 211. Heartbeat agents 112 and 212 for receiving a failure message from the server and informing the counterpart server of the counterpart server, and monitoring the failure of the counterpart server; 213 and a message queue 114 and 214 for temporarily storing a synchronization request message for synchronizing data generated by the operations of the user application agents 113 and 213 and location information of the synchronization data, and the message queue. Receive the synchronization request message of (114, 214) and transmit the data stored in the location information of the synchronization data to the other server and Data transmission agent (115, 215) receiving the synchronization data transmitted from the other server, and when the heartbeat agent (112, 212) notifies the failure of the other server transmitted from the data transmission agent (115, 215) Backup agents 117 and 217 for backing up and storing the synchronization data on the corresponding server, and synchronization agents 116 and 216 for receiving and storing the synchronization data received from the counterpart server at the data transfer agent 115 and 215. It is configured by.

또한, 상기 각 서버1, 2(100, 200)는 동기화 데이터 및 백업데이터를 저장하는 데이터베이스(121, 221) 및 파일시스템(122, 222)을 포함하는 메모리부(120, 220)와 연결되어 구성된다.In addition, each of the servers 1, 2 (100, 200) is connected to the memory unit (120, 220) including the database (121, 221) and the file system (122, 222) for storing the synchronization data and backup data is configured do.

상기와 같이 구성되는 이중화 구조의 서버는 동시에 동작하며, 각 서버에서 생성되는 데이터는 데이터 전송에이전트를 통해 상대방 서버로 전송하여 저장하도록 함으로써, 각 메모리부(120, 220)가 데이터가 같도록 동기화하여 한쪽이 서버가 장애를 일으켜도, 나머지 서버가 충분히 모든 동작을 수행할 수 있도록 하는 것이다.The redundant server structured as described above operates simultaneously, and data generated in each server is transmitted to the counterpart server through the data transfer agent and stored, so that each memory unit 120 and 220 synchronizes the data. If one server fails, the other server will be able to perform all operations.

도 4는 본 발명의 실시 예에 따른 이중화 서버 구조의 데이터 동기화를 위한 통신 방법의 동작순서를 나타낸 플로우 차트이다.4 is a flowchart illustrating an operation procedure of a communication method for data synchronization in a redundant server structure according to an embodiment of the present invention.

도 4를 참조하면, 서버 1(100)과 서버 2(200)의 상태감시 에이전트(111, 211)는 각 프로세서로 상태정보 요청 메시지를 전송하고, 이에 대한 응답 메시지를 수신하여 장애발생 유무를 검사하고, 이를 하트비트 에이전트(112, 212)로 전달하면, 하트비트 에이전트는 동작이 정상적일 때 상대방 하트비트 에이전트로 하트비트를 발생시켜 서버의 상태가 정상임을 알린다.4, the state monitoring agents 111 and 211 of the server 1 100 and the server 2 200 transmit a status information request message to each processor, and receive a response message to check whether there is a failure. And, if it is delivered to the heartbeat agent (112, 212), the heartbeat agent generates a heartbeat to the other heartbeat agent when the operation is normal to inform that the state of the server is normal.

따라서, 상대방 서버로부터 수신되는 하트비트가 일정시간 없으면, 상대방서버가 장애를 일으켰음을 알게 되는 것이다.Therefore, if there is no heartbeat received from the counterpart server for a predetermined time, the counterpart server knows that a failure occurs.

상기와 같은 에이전트로 구성되는 서버 1(100)의 사용자 어플리케이션 에이전트(113)에서 사용자의 명령에 다른 수행결과 데이터가 발생하면, 상기 데이터를 상대방 서버2(200)로 전달하여 동기화를 수행해야 한다.When the user application agent 113 of the server 1 (100) configured as the agent generates different performance result data in the user's command, the data should be transferred to the other server 2 (200) to perform synchronization.

따라서, 사용자 어플리케이션 에이전트(113)는 데이터 동기화를 위한 요청메시지와 동기화 데이터의 위치정보를 포함한 메시지를 메시지 큐(114)에 저장하고(S101), 데이터 전송 에이전트(115)는 상기 메시지 큐(114)의 동기화 요청 메시지에 따라 동기화 데이터를 서버 2(200)로 전송하기 전에 우선 서버 2(200)의 상태정보를 점검하여 정상인가를 확인하게 된다(S102).Accordingly, the user application agent 113 stores a message including a request message for data synchronization and location information of the synchronization data in the message queue 114 (S101), and the data transmission agent 115 stores the message queue 114. Before transmitting the synchronization data to the server 2 (200) according to the synchronization request message of the first check the status information of the server 2 (200) to confirm whether or not normal.

즉, 하트비트 에이전트(112)에서 서버2(200)로부터의 하트비트를 수신하여 상대방 서버가 정상인가를 판단하고 (S103), 상대방 서버가 정상이라면 데이터 전송 에이전트(115)는 상기 메시지 큐(114)에 저장된 동기화 데이터의 위치정보를 이용하여 메모리부(120)의 데이터베이스(121) 또는 파일시스템(122)에서 동기화를 위해 필요한 자료를 수집하고(S104), 이를 상대방 서버2(200)로 전송하게 된다(S105).That is, the heartbeat agent 112 receives the heartbeat from the server 2 (200) to determine whether the other server is normal (S103), and if the other server is normal, the data transfer agent 115 is the message queue 114 Collect data necessary for synchronization in the database 121 or the file system 122 of the memory unit 120 by using the location information of the synchronization data stored in the (S104), and transmits it to the other server 2 (200) (S105).

상기 동기화 데이터를 전송한 데이터 전송 에이전트(115)는 단순히 데이터 전송만 하는 것이 아니라, 정상적으로 동기화 데이터가 전송되었는가를 체크하고(S106), 정상적으로 데이터가 전송되었다면, 전송 성공 메시지를 사용자 프로세스로 알려(S107), 계속하여 서버가 동작하도록 한다(S108).The data transmission agent 115 which has transmitted the synchronization data does not merely transmit data, but checks whether the synchronization data has been normally transmitted (S106). If the data has been successfully transmitted, the data transmission agent 115 notifies the user of the successful transmission message (S107). ), The server continues to operate (S108).

그러나, 상기 데이터 전송시 오류가 발생하였다면, 서버 2(200)에 오류가 발생했음으로 판단하고 동기화 데이터를 백업하도록 백업 에이전트(117)로 전달한다(S109).However, if an error occurs in the data transmission, it is determined that an error has occurred in the server 2 (200) and transfers to the backup agent 117 to back up the synchronization data (S109).

상기 백업 에이전트(117)는 전달받은 동기화 데이터를 메모리부(120)에 별도로 저장하여두고(S110), 상대방 서버 2(200)의 장애가 복구될 때까지 계속하여 동기화 데이터를 저장하게 된다.The backup agent 117 stores the received synchronization data separately in the memory unit 120 (S110), and continuously stores the synchronization data until the failure of the counterpart server 2 200 is recovered.

또한, 상기 단계 S103에서 데이터 전송 에이전트(115)가 하트비트 에이전트(112)로부터 상대방 서버 2(200)의 장애발생을 보고 받았다면, 이를 백업 에이전트로 전달하여(S109), 별도의 메모리부(120)에 저장하도록 한다(S110).In addition, in step S103, if the data transmission agent 115 receives a report of the failure of the counterpart server 2 200 from the heartbeat agent 112, the data transmission agent 115 transfers it to the backup agent (S109), and separate memory unit 120. To be stored in (S110).

상기와 같이 서버 2(200)가 장애 발생 중에 서버 1(100)에서 발생하는 동기화 데이터는 계속하여 백업 에이전트(117)에 의하여 저장되게되며, 하트비트 에이전트(112)에서 서버 2(200)의 장애 복구를 알리면, 백업 에이전트(117)는 별도로 저장해 놓은 백업 데이터를 데이터 전송 에이전트(115)로 전달하여 상대방 서버로 전송하도록 한다.As described above, the synchronization data generated in the server 1 (100) while the server 2 (200) failure occurs is continuously stored by the backup agent 117, the failure of the server 2 (200) in the heartbeat agent 112 Informing the recovery, the backup agent 117 transfers the backup data stored separately to the data transfer agent 115 to transmit to the counterpart server.

따라서, 한쪽 서버가 장애를 일으켜도 나머지 활성화된 서버에서 동기화를 위한 데이터를 별도로 저장하였다가 장애복구시 전송함으로써 빠른 시간 안에 두 서버의 데이터 동기화가 이루어져 정상적으로 두개의 서버가 동작할 수 있게 된다.Therefore, even if one server fails, data for synchronization is stored in the other active server separately and then transmitted during failover, thereby enabling two servers to operate normally.

또한, 상기 데이터 전송 에이전트(115)가 상대방 서버로부터 수신한 동기화 데이터는 동기화 에이전트(116)에서 메모리부(120)에 저장하게 된다.In addition, the synchronization data received by the data transfer agent 115 from the counterpart server is stored in the memory unit 120 in the synchronization agent 116.

이상에서 설명한 바와 같이, 본 발명에 따른 이중화 서버 구조의 데이터 동기화를 위한 통신 시스템 및 방법은, 이중화 된 서버가 동시에 동작하도록 하고, 각각의 서버에서 수행한 결과에 따른 동기화 데이터를 에이전트를 통해 공유하도록 하여 시스템의 성능을 높이고, 어느 한쪽 서버가 장애를 일으켰을 때 활성화된 서버에서 발생하는 동기화 데이터를 상대방 서버의 장애복구가 될 때까지 백업해 놓고 장애 복구시 전송하도록 함으로써 빠른 시간 안에 두개의 서버가 정상적인 동작을 할 수 있도록 하는 효과가 있다.As described above, the communication system and method for data synchronization of the redundant server structure according to the present invention, the redundant server to operate at the same time, to share the synchronization data according to the results performed in each server through the agent In order to improve the performance of the system, back up the synchronization data from the active server when one server fails and back it up until the other server fails. It has the effect of making it work.

Claims (8)

이중화된 서버에서 서버의 동작에 따른 상대방 서버와의 데이터 동기화를 위해 상대방 서버의 상태를 판단하는 단계;Determining a state of the counterpart server for data synchronization with the counterpart server according to the operation of the server in the redundant server; 상기 판단결과, 상대방 서버의 장애발생을 인지하여, 동기화 데이터를 백업하고, 상대방 서버의 상태를 계속하여 감시하는 단계;As a result of the determination, recognizing a failure of the counterpart server, backing up synchronization data, and continuously monitoring the state of the counterpart server; 상기 감시결과, 상대방 서버의 장애복구를 감지하여, 상기 백업된 동기화 데이터를 상대방 서버로 전송하여 데이터의 동기화를 수행하는 단계를 포함하여 구성되는 것을 특징으로 하는 이중화 서버 구조의 데이터 동기화를 위한 통신 방법.And detecting the failure recovery of the counterpart server, and transmitting the backed up synchronization data to the counterpart server to perform data synchronization. . 제 1항에 있어서, 상기 상대방 서버의 상태를 판단하는 단계는,The method of claim 1, wherein the determining of the state of the counterpart server comprises: 사용자 어플리케이션 에이전트에서 새로 발생한 데이터의 동기화를 위해 메시지큐에 동기화 요청 메시지를 저장하는 단계;Storing a synchronization request message in a message queue for synchronization of newly generated data in the user application agent; 상기 동기화 요청 메시지에 따라 데이터 전송 에이전트에서 상대방 서버의 상태정보를 하트비트 에이전트에 요청하는 단계를 더 포함하여 구성되는 것을 특징으로 하는 이중화 서버 구조의 데이터 동기화를 위한 통신방법.And requesting the heartbeat agent for status information of the counterpart server from the data transmission agent according to the synchronization request message. 제 1항에 있어서, 상기 동기화 데이터를 백업하는 것은,The method of claim 1, wherein backing up the synchronization data, 상대방 서버의 장애발생을 감지하고, 데이터 전송 에이전트에서 백업 에이전트로 동기화 데이터의 백업을 요청하는 단계;Detecting a failure of the counterpart server and requesting backup of the synchronization data from the data transfer agent to the backup agent; 상기 백업 에이전트에서 데이터 전송 에이전트로부터 동기화 데이터를 수신하여 별도의 파일시스템 및 데이터 베이스에 저장하는 단계를 더 포함하여 구성되는 것을 특징으로 하는 이중화 서버 구조의 데이터 동기화를 위한 통신방법.And receiving the synchronization data from the data transfer agent at the backup agent and storing the synchronization data in a separate file system and a database. 제 1항에 있어서, 상기 상대방 서버의 장애복구에 따른 데이터 동기화는,The method of claim 1, wherein data synchronization according to failover of the counterpart server is performed. 상기 하트비트 에이전트에서 상대방 서버의 장애 복구를 알려서, 데이터 전송 에이전트에서 백업 에이전트로 백업 저장된 동기화 데이터를 요청하는 단계;Informing the failure recovery of the counterpart server by the heartbeat agent, requesting synchronization data backed up from the data transfer agent to the backup agent; 상기 백업 에이전트에서 별도로 저장한 백업데이터를 데이터 전송 에이전트로 전송하고, 상기 데이터 전송 에이전트에서 상대방 서버의 데이터 전송 에이전트로 전달하여 데이터의 동기화를 하도록 하는 단계를 더 포함하여 구성되는 것을 특징으로 하는 이중화 서버 구조의 데이터 동기화를 위한 통신 방법.And transmitting the backup data separately stored by the backup agent to the data transfer agent, and forwarding the data to the data transfer agent of the counterpart server to synchronize the data. Communication method for data synchronization of structures. 제 1항에 있어서, 상기 상대방 서버로 전달된 동기화 데이터 또는 백업 데이터는 상대방 서버의 동기화 에이전트로 전송되어, 상대방 서버의 파일시스템 및 데이터베이스에 저장되어 데이터의 동기화를 수행하는 단계를 더 포함하여 구성되는 것을 특징으로 하는 이중화 서버 구조의 데이터 동기화를 위한 통신 방법.The method of claim 1, further comprising: synchronizing data or backup data transmitted to the counterpart server is transmitted to a synchronization agent of the counterpart server, and stored in a file system and a database of the counterpart server to perform data synchronization. A communication method for data synchronization in a redundant server structure, characterized in that. 제 1항에 있어서, 상기 데이터 전송 에이전트에서 상대방 서버의 데이터 전송 에이전트로 동기화 데이터를 전송하는데 있어서, 전송 오류가 발생하면 백업 에이전트로 동기화 데이터를 백업저장하도록 요청하여 백업 저장하고, 상기 하트비트에이전트에서 상대방 서버의 상태가 정상임을 알리면 상기 백업저장된 동기화 데이터를 재전송하도록 하는 것을 특징으로 하는 이중화 서버 구조의 데이터 동기화를 위한 통신 방법.The method of claim 1, wherein in the transmission of the synchronization data from the data transmission agent to the data transmission agent of the counterpart server, if a transmission error occurs, the backup agent requests backup storage of the synchronization data and stores the backup data. And re-transmitting the backup-stored synchronization data when notifying that the other party's server is in a normal state. 이중화 서버구조에서 해당 서버의 프로세서의 상태를 감시하고, 장애 발생 메시지를 전송하는 상태 감시 에이전트와;A status monitoring agent for monitoring a status of a processor of a corresponding server in a redundant server structure and transmitting a failure occurrence message; 상기 상태감시 에이전트에서 전송하는 상태정보에 따라 상대방 서버로 하트비트를 전송하고, 상대방 서버의 상태를 감시하는 하트비트 에이전트와;A heartbeat agent for transmitting a heartbeat to the counterpart server according to the state information transmitted from the status monitoring agent, and monitoring the state of the counterpart server; 상기 서버에 사용자가 접속하여 필요한 동작을 수행하도록 하는 프로그램 및 기능을 제공하는 사용자 어플리케이션 에이전트와;A user application agent providing a program and a function for allowing a user to access the server to perform a necessary operation; 상기 사용자 어플리케이션 에이전트를 통해 사용자가 작업함에 따라 생성되는 동기화 데이터의 위치정보를 임시 저장하는 메시지 큐와;A message queue for temporarily storing location information of synchronization data generated as a user works through the user application agent; 상기 메시지 큐에서 상대방 서버와 동기화할 데이터의 위치정보를 수신하여 해당 동기화 데이터를 상대방 서버로 전송하기 위한 데이터 전송 에이전트와;A data transmission agent for receiving location information of data to be synchronized with the counterpart server in the message queue and transmitting the corresponding synchronization data to the counterpart server; 상기 데이터 전송 에이전트에서 상대방 서버부터 수신한 동기화 데이터를 저장하도록 하는 동기화 에이전트와;A synchronization agent for storing the synchronization data received from the counterpart server in the data transfer agent; 상기 하트비트 에이전트에서 전송하는 상대방 서버의 장애 메시지에 따라 상기 데이터 전송 에이전트에서 상대방 서버로 전송할 동기화 데이터를 별도로 백업 저장하도록하는 백업 에이전트를 포함하여 구성되는 에이전트를 포함하여 이중으로 구성되는 것을 특징으로 하는 이중화 서버 구조의 데이터 동기화를 위한 통신 시스템.And an agent configured to include a backup agent configured to separately store and store synchronization data to be transmitted from the data transfer agent to the counterpart server according to a failure message of the counterpart server transmitted by the heartbeat agent. Communication system for data synchronization of redundant server architecture. 제 7항에 있어서, 상기 서버의 동작으로 발생하는 동기화 데이터 및 상대방 서버의 동기화 데이터를 저장하는 파일시스템 및 데이터 베이스를 더 포함하여 구성되는 것을 특징으로 하는 이중화 서버 구조의 데이터 동기화를 위한 통신 시스템.The communication system for data synchronization according to claim 7, further comprising a file system and a database storing the synchronization data generated by the operation of the server and the synchronization data of the counterpart server.
KR1020010078413A 2001-12-12 2001-12-12 Communication system and method for data synchronization of duplexing server KR20030048503A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020010078413A KR20030048503A (en) 2001-12-12 2001-12-12 Communication system and method for data synchronization of duplexing server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020010078413A KR20030048503A (en) 2001-12-12 2001-12-12 Communication system and method for data synchronization of duplexing server

Publications (1)

Publication Number Publication Date
KR20030048503A true KR20030048503A (en) 2003-06-25

Family

ID=29574389

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020010078413A KR20030048503A (en) 2001-12-12 2001-12-12 Communication system and method for data synchronization of duplexing server

Country Status (1)

Country Link
KR (1) KR20030048503A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100589437B1 (en) * 2005-06-22 2006-06-14 엔에이치엔(주) Dynamic initialization method and system of location server
KR101159019B1 (en) * 2010-12-10 2012-06-21 주식회사 케이티 Apparatus and method for recovering loss data on redundancy switching of communication middleware
KR101430239B1 (en) * 2007-10-24 2014-08-19 주식회사 케이티 Method and Apparatus for Synchronizing Data in Active-Active Database Server System
KR20150124642A (en) * 2014-04-29 2015-11-06 주식회사 비티비솔루션 Communication failure recover method of parallel-connecte server system
KR20150137884A (en) * 2014-05-30 2015-12-09 주식회사 알티베이스 Database Management System providing partial synchronization and method for partial synchronization thereof
CN111813324A (en) * 2019-04-11 2020-10-23 北京鲸鲨软件科技有限公司 Storage method and device thereof
KR20210044281A (en) * 2018-10-09 2021-04-22 구글 엘엘씨 Method and apparatus for ensuring continuous device operation stability in cloud degraded mode
CN113067782A (en) * 2020-08-12 2021-07-02 浙江华云信息科技有限公司 High-reliability electric energy acquisition and transmission system based on redundancy system
CN113917834A (en) * 2021-10-13 2022-01-11 上海华建电力设备股份有限公司 Redundant switching and data sharing of dual-network dual-communication server
CN114640416A (en) * 2022-03-14 2022-06-17 中国电子科技集团公司第二十八研究所 High-reliability local area network training time synchronization control method and system
CN114640667A (en) * 2022-03-31 2022-06-17 西安热工研究院有限公司 Real-time data transmission method, system, device and medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0589072A (en) * 1991-08-05 1993-04-09 Nippon Telegr & Teleph Corp <Ntt> Synchronizing control system at time of duplex operation
JPH0736811A (en) * 1993-07-20 1995-02-07 Hitachi Ltd Method and system for information delivery
JPH09305558A (en) * 1996-05-16 1997-11-28 Nec Eng Ltd Data base server for duplex system
KR19980071963A (en) * 1998-07-07 1998-10-26 박구용 System redundancy
KR19990050460A (en) * 1997-12-17 1999-07-05 구자홍 Disaster Recovery Method and Device of High Availability System
KR20010092154A (en) * 2000-03-21 2001-10-24 김형순 Method and system for duplication of servers
KR20020036502A (en) * 2000-11-10 2002-05-16 오길록 Duplicated Database Management System for Main Memory Resident DBMS
KR20020040474A (en) * 2000-11-24 2002-05-30 구자홍 Operation and management system of duplexed server system and status management of it
KR20020062483A (en) * 2001-01-22 2002-07-26 주식회사 로커스 Fault tolerant system and duplication method thereof

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0589072A (en) * 1991-08-05 1993-04-09 Nippon Telegr & Teleph Corp <Ntt> Synchronizing control system at time of duplex operation
JPH0736811A (en) * 1993-07-20 1995-02-07 Hitachi Ltd Method and system for information delivery
JPH09305558A (en) * 1996-05-16 1997-11-28 Nec Eng Ltd Data base server for duplex system
KR19990050460A (en) * 1997-12-17 1999-07-05 구자홍 Disaster Recovery Method and Device of High Availability System
KR19980071963A (en) * 1998-07-07 1998-10-26 박구용 System redundancy
KR20010092154A (en) * 2000-03-21 2001-10-24 김형순 Method and system for duplication of servers
KR20020036502A (en) * 2000-11-10 2002-05-16 오길록 Duplicated Database Management System for Main Memory Resident DBMS
KR20020040474A (en) * 2000-11-24 2002-05-30 구자홍 Operation and management system of duplexed server system and status management of it
KR20020062483A (en) * 2001-01-22 2002-07-26 주식회사 로커스 Fault tolerant system and duplication method thereof

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100589437B1 (en) * 2005-06-22 2006-06-14 엔에이치엔(주) Dynamic initialization method and system of location server
WO2006137701A1 (en) * 2005-06-22 2006-12-28 Nhn Corporation Dynamic initialization method and system of location server
US7945644B2 (en) 2005-06-22 2011-05-17 Nhn Corporation Dynamic initialization method and system of location server
KR101430239B1 (en) * 2007-10-24 2014-08-19 주식회사 케이티 Method and Apparatus for Synchronizing Data in Active-Active Database Server System
KR101159019B1 (en) * 2010-12-10 2012-06-21 주식회사 케이티 Apparatus and method for recovering loss data on redundancy switching of communication middleware
KR20150124642A (en) * 2014-04-29 2015-11-06 주식회사 비티비솔루션 Communication failure recover method of parallel-connecte server system
KR20150137884A (en) * 2014-05-30 2015-12-09 주식회사 알티베이스 Database Management System providing partial synchronization and method for partial synchronization thereof
KR20210044281A (en) * 2018-10-09 2021-04-22 구글 엘엘씨 Method and apparatus for ensuring continuous device operation stability in cloud degraded mode
US11784905B2 (en) 2018-10-09 2023-10-10 Google Llc Method and apparatus for ensuring continued device operational reliability in cloud-degraded mode
CN111813324A (en) * 2019-04-11 2020-10-23 北京鲸鲨软件科技有限公司 Storage method and device thereof
CN111813324B (en) * 2019-04-11 2024-03-12 北京鲸鲨软件科技有限公司 Storage method and device thereof
CN113067782A (en) * 2020-08-12 2021-07-02 浙江华云信息科技有限公司 High-reliability electric energy acquisition and transmission system based on redundancy system
CN113917834A (en) * 2021-10-13 2022-01-11 上海华建电力设备股份有限公司 Redundant switching and data sharing of dual-network dual-communication server
CN114640416A (en) * 2022-03-14 2022-06-17 中国电子科技集团公司第二十八研究所 High-reliability local area network training time synchronization control method and system
CN114640416B (en) * 2022-03-14 2024-04-19 中国电子科技集团公司第二十八研究所 High-reliability local area network training time synchronous control method and system
CN114640667A (en) * 2022-03-31 2022-06-17 西安热工研究院有限公司 Real-time data transmission method, system, device and medium

Similar Documents

Publication Publication Date Title
KR100557399B1 (en) A method of improving the availability of a computer clustering system through the use of a network medium link state function
EP1437658B1 (en) Coordinating persistent status information with multiple file servers
US7793060B2 (en) System method and circuit for differential mirroring of data
US7437598B2 (en) System, method and circuit for mirroring data
US7694177B2 (en) Method and system for resynchronizing data between a primary and mirror data storage system
EP3285168B1 (en) Disaster tolerance method and apparatus in active-active cluster system
US20070008890A1 (en) Method and apparatus for non-stop multi-node system synchronization
US20030005350A1 (en) Failover management system
US20010056554A1 (en) System for clustering software applications
US20080288812A1 (en) Cluster system and an error recovery method thereof
KR100411978B1 (en) Fault tolerant system and duplication method thereof
JP2004302512A (en) Cluster computing system and fail-over method for the same
US6629260B1 (en) Automatic reconnection of partner software processes in a fault-tolerant computer system
JPH03164837A (en) Spare switching system for communication control processor
KR20030048503A (en) Communication system and method for data synchronization of duplexing server
KR100324275B1 (en) Dual State Control Method Of Duplicated Processors
KR100336500B1 (en) I/O-based high availability through middleware in the COTS RTOS
KR100832543B1 (en) High availability cluster system having hierarchical multiple backup structure and method performing high availability using the same
JP2000066913A (en) Program/data non-interruption updating system for optional processor
CN117827544B (en) Hot backup system, method, electronic device and storage medium
KR100793446B1 (en) Method for processing fail-over and returning of duplication telecommunication system
KR20050097015A (en) Method of resilience for fault tolerant function
KR20010010293A (en) Fault management system and Method for recovering fault of the Configuration Management System in the fault tolerant switching control system
KR20060086508A (en) Method for state management of dual processor board in wireless communication system
KR19990050461A (en) Error Handling in High Availability Systems

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
N231 Notification of change of applicant
E601 Decision to refuse application