KR100426841B1 - Method of Controlling Duplexed Processors - Google Patents

Method of Controlling Duplexed Processors Download PDF

Info

Publication number
KR100426841B1
KR100426841B1 KR10-2001-0082014A KR20010082014A KR100426841B1 KR 100426841 B1 KR100426841 B1 KR 100426841B1 KR 20010082014 A KR20010082014 A KR 20010082014A KR 100426841 B1 KR100426841 B1 KR 100426841B1
Authority
KR
South Korea
Prior art keywords
processor
standby
active
transfer
mode
Prior art date
Application number
KR10-2001-0082014A
Other languages
Korean (ko)
Other versions
KR20030052122A (en
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 KR10-2001-0082014A priority Critical patent/KR100426841B1/en
Publication of KR20030052122A publication Critical patent/KR20030052122A/en
Application granted granted Critical
Publication of KR100426841B1 publication Critical patent/KR100426841B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/202Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
    • G06F11/2038Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant with a single idle spare processing component
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/202Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
    • G06F11/2023Failover techniques
    • G06F11/2028Failover techniques eliminating a faulty processor or activating a spare
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/202Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
    • G06F11/2023Failover techniques
    • G06F11/2033Failover techniques switching over of hardware resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Hardware Redundancy (AREA)

Abstract

본 발명은 프로세서간의 이중화 절체에 있어서 액티브측 프로세서가 스탠바이 모드로 전환한 후에도 스탠바이측 프로세서가 액티브 모드로 전환되지 않는 경우에 스탠바이로 전환된 프로세서를 다시 절체 전의 상태인 액티브 모드로 자동 복귀하도록 한 프로세서간의 이중화 절체 방법에 관한 것이다.According to the present invention, in the redundant switching between processors, the processor is configured to automatically return the standby processor to the active mode before switching again when the standby processor does not switch to the active mode even after the active processor switches to the standby mode. The present invention relates to a liver redundancy transfer method.

본 발명은 프로세서간의 이중화 절체에 있어서 액티브측 프로세서가 스탠바이 모드로 전환한 후에도 스탠바이측 프로세서가 액티브 모드로 전환되지 않는 경우에 스탠바이로 전환된 프로세서를 다시 절체 전의 상태인 액티브 모드로 자동 복귀해 줌으로써, 종래와 같은 듀얼 다운이 발생되지 않아 절체 전에 수행된 서비스를 지속적으로 수행하도록 하여 이중화의 신뢰성을 향상시킬 수 있다.According to the present invention, when the standby processor does not switch to the active mode even after the active processor switches to the standby mode in the redundant switching between processors, the processor switched to the standby mode is automatically returned to the active mode before switching again. Since dual down does not occur as in the related art, the reliability of redundancy can be improved by continuously performing a service performed before the transfer.

Description

프로세서간의 이중화 절체 방법 {Method of Controlling Duplexed Processors}Method of Controlling Duplexed Processors

본 발명은 프로세서간의 이중화 절체 방법에 관한 것으로, 특히 프로세서간의 이중화 절체에 있어서 액티브측 프로세서가 스탠바이 모드로 전환한 후에도 스탠바이측 프로세서가 액티브 모드로 전환되지 않는 경우에 스탠바이로 전환된 프로세서를 다시 절체 전의 상태인 액티브 모드로 자동 복귀하도록 한 프로세서간의 이중화 절체 방법에 관한 것이다.The present invention relates to a duplex switching method between processors, and more particularly, in a duplex switching between processors, when the standby processor does not switch to the active mode even after the active processor switches to the standby mode, the processor switched to the standby mode is changed before switching back. The present invention relates to a redundancy switching method between processors to automatically return to the active mode in a state.

일반적으로, 프로세서간의 이중화 방식은 액티브/스탠바이 형태로 운영되는데, 도 1에 도시된 바와 같이, 액티브측 프로세서(10)가 자신의 메인 메모리(Main Memory)(12)에 새로이 업데이트(Update)되는 데이터를 자신의 메모리(12)뿐만 아니라 스탠바이측 프로세서(20)의 메모리(22)에도 동시에 기록되도록 기능을 구현함으로써, 이중화된 두 프로세서(10, 20)간의 메모리 일치(Memory Coherency)를 유지하고 있다. 이것을 두 프로세서(10, 20)간의 동시 기록(Concurrent Write) 방식에 의한 이중화 방식이라고 한다.In general, the duplication scheme between processors operates in an active / standby mode. As shown in FIG. 1, data in which an active processor 10 is newly updated in its main memory 12 is updated. By implementing a function to simultaneously record not only its own memory 12 but also the memory 22 of the standby side processor 20, memory coherency between the two redundant processors 10 and 20 is maintained. This is called a duplication method by a concurrent write method between the two processors 10 and 20.

그리고, 액티브/스탠바이 모드로 운영되고 있는 두 프로세서(10, 20)를 어떤 이유, 예를 들어 서비스 향상, 버전(Version) 교체, 기능 추가, 프로세서 기능 이외의 기능 상실에 의한 절체 수행 등에 의해서 절체할 필요가 있는 경우에는, 미리 약속된 절체 명령어, 매뉴얼 리셋(Manual-Reset) 또는 파워 리셋(Power-Reset)에 의해 이중화 절체를 수행하도록 한다. 또한, 액티브측 프로세서(10) 내의 특별한기능 상실에 의해 액티브 사용권을 상대방의 스탠바이측 프로세서(20)로 넘겨야 할 경우에 이중화 절체를 수행하도록 한다.Then, the two processors 10 and 20 operating in the active / standby mode are switched for some reason, such as service improvement, version replacement, addition of functions, and transfer by loss of functions other than the processor function. If necessary, the redundant transfer is performed by a pre-scheduled transfer instruction, manual reset or manual reset. In addition, when the active use right is to be transferred to the standby side processor 20 of the counterpart due to the loss of a special function in the active side processor 10, redundancy switching is performed.

첫 번째로, 미리 약속된 절체 명령어에 의한 이중화 절체의 경우는, 액티브로 동작을 수행하고 있는 프로세서(10)를 스탠바이 모드로 상태 전환시켜 줌과 동시에, 현재 스탠바이로 동작되고 있던 프로세서 보드(20)를 액티브 모드로 동작하고자 할 때에, 해당 프로세서(10, 20)에 미리 약속된 절체 명령어를 입력해 줌으로써, 두 프로세서(10, 20)간의 약속된 프로토콜(Protocol)에 의해 절체를 수행하게 된다. 예를 들어, 현재 액티브 보드의 기능 추가 등으로 보드의 기능을 잠시 정지하고자 할 때에 해당된다.First, in the case of duplication transfer by a pre-scheduled transfer instruction, the processor board 20 that is operating in the standby mode is switched to the standby mode and the processor board 20 that is currently operating in the standby mode. When operating in the active mode, by inputting a transfer command promised in advance to the processor (10, 20), the transfer is performed by the promised protocol (protocol) between the two processors (10, 20). For example, this is the case when you want to temporarily stop the board function by adding the function of the active board.

두 번째로, 매뉴얼 리셋에 의한 이중화 절체의 경우는, 어떠한 목적에 의해 현재 액티브로 동작되고 있는 프로세서(10)를 스탠바이 모드로 상태 전환시켜 주고 현재 스탠바이로 동작되고 있던 프로세서 보드(20)를 액티브 모드로 동작하고자 할 때에, 해당 프로세서(10, 20)에 내장된 리턴 버튼을 눌러 주면 두 프로세서(10, 20)간의 약속된 프로토콜에 의해 절체를 수행하게 된다. 예를 들어, 현재 액티브 보드의 기능 추가 등으로 보드의 기능을 잠시 정지하고자 할 때에 해당된다.Secondly, in the case of redundancy switching by manual reset, the processor board 20 currently in active mode is switched to the standby mode for some purpose and the processor board 20 currently operating in the standby mode is active mode. When operating as, if the return button embedded in the processor (10, 20) is pressed, the transfer is performed by the promised protocol between the two processors (10, 20). For example, this is the case when you want to temporarily stop the board function by adding the function of the active board.

세 번째로, 파워 리셋에 의한 이중화 절체의 경우는, 어떠한 목적에 의해 현재 액티브로 동작되고 있는 프로세서(10)를 스탠바이 모드로 상태 전환시켜 주고 현재 스탠바이로 동작되고 있던 프로세서 보드(20)를 액티브 모드로 동작하고자 할 때에, 해당 프로세서(10, 20)의 파워 오프(Power-off) 버튼을 눌러 주면 두 프로세서(10, 20)간의 약속된 프로토콜에 의해 절체를 수행하게 된다. 예를 들어, 현재액티브 보드의 기능 추가 등으로 보드를 탈장할 필요가 있을 때에 해당된다.Thirdly, in the case of redundant switching by power reset, the processor board 20 currently in active mode is switched to the standby mode for some purpose, and the processor board 20 currently operating in the standby mode is active mode. In order to operate, the power-off button of the processor 10 or 20 is pressed to perform the transfer by a promised protocol between the two processors 10 and 20. For example, when the board needs to be dismounted by adding a function of the current active board.

상술한 바와 같은 절체 방식의 분류는 단지 절체를 일으키는 수단이 다르다는 것뿐이지 그 절체를 수행하는 프로토콜 자체가 다르다는 것은 아님을 잘 이해해야 한다.It should be understood that the classification of the switching scheme as described above is merely that the means for causing the switching are different, not the protocol itself for performing the switching.

종래 프로세서간의 이중화 절체 방법을 도 2를 참고하여 설명하면 다음과 같다.The duplex transfer method between the conventional processors will be described with reference to FIG.

우선, 운영자가 명령어, 매뉴얼 리셋, 파워 리셋 등의 수단을 가지고 이중화 절체를 요구하게 되면, 현재 액티브 모드로 동작을 수행 중인 프로세서(10)에서는 운영자에 의해 발생된 이중화 절체 요구를 인지하여 현재 수행하고 있는 모든 응용 프로그램(Application Program)의 동작을 종료시킨 후에, 이중화 절체 요구 신호(Dup_chg_req)를 스탠바이측 프로세서(20)로 송신해 준다.First, when the operator requests redundancy switching by means of a command, manual reset, power reset, or the like, the processor 10 currently operating in the active mode recognizes the redundancy transfer request generated by the operator and performs the current change. After the operation of all the existing application programs (Application Program) is terminated, the redundant switching request signal Dup_chg_req is transmitted to the standby processor 20.

이에, 상기 스탠바이측 프로세서(20)는 상기 액티브측 프로세서(10)로부터 이중화 절체 요구 신호(Dup_chg_req)를 수신받아 상대방 측의 이중화 절체 요구를 인지한 후에, 이에 대응하는 응답 메시지(Dup_chg_ack)를 상기 액티브측 프로세서(10)로 송신하여 액티브 모드로 동작할 준비가 되었음을 응답해 준다.Accordingly, the standby processor 20 receives the duplication transfer request signal Dup_chg_req from the active side processor 10 and recognizes the duplication transfer request of the other party, and then receives a corresponding response message Dup_chg_ack from the active side processor 10. It transmits to the side processor 10 and responds that it is ready to operate in the active mode.

이에 따라, 상기 액티브측 프로세서(10)는 상기 스탠바이측 프로세서(20)로부터 응답 메시지(Dup_chg_ack)를 수신받아 현재 메모리(12)의 내용이 모두 상기 스탠바이측 프로세서(20)로 전달되었는지, 즉 상기 스탠바이측 프로세서(20) 내의 메모리(22)의 내용과 동일한지를 확인한 후에, CPU(11) 내에 있는 모든 프로세서 데이터, 예를 들어 PC(Program Counter), 스택(Stack) 값, 각종 CPU 레지스터 값 등을 상기 스탠바이측 프로세서(20)로 전송해 주며, 마지막 플래그(Dup_end)를 상기 스탠바이측 프로세서(20)로 송신해 준다.Accordingly, the active processor 10 receives the response message Dup_chg_ack from the standby processor 20 and whether all contents of the current memory 12 are transferred to the standby processor 20, that is, the standby processor. After confirming that the contents of the memory 22 in the side processor 20 are the same, all the processor data in the CPU 11, for example, a PC (Program Counter), a stack value, various CPU register values, and the like are described. A standby flag 20 is transmitted to the standby processor 20, and a last flag Dup_end is transmitted to the standby processor 20.

그러면, 상기 액티브측 프로세서(10)는 마지막 플래그(Dup_end)를 전송한 후에 자신의 상태를 스탠바이 상태로 전환시켜 주며, 반면에 상기 스탠바이측 프로세서(20)는 상기 액티브측 프로세서(10)로부터 모든 프로세서 데이터를 수신받고 마지막 플래그(Dup_end)를 수신하기를 기다렸다가, 해당 마지막 플래그(Dup_end)를 수신받는 순간에 자신의 상태를 액티브 상태로 전환시켜 준다.Then, the active side processor 10 transfers its state to the standby state after transmitting the last flag Dup_end, while the standby side processor 20 transfers all the processors from the active side processor 10 to the standby state. After receiving the data and waiting to receive the last flag (Dup_end), it changes its state to the active state at the moment of receiving the last flag (Dup_end).

이에, 상기 스탠바이측 프로세서(20)는 액티브 상태로 전환되어 상대방 측으로부터 수신받은 프로세서 데이터를 바탕으로 응용 프로그램을 구동시켜 절체 이전에 수행되고 있던 작업을 그대로 이어 수행하도록 해 준다.Accordingly, the standby processor 20 is switched to the active state to run the application program on the basis of the processor data received from the counterpart side to perform the work previously performed before the transfer.

이 때, 만약 상기 스탠바이측 프로세서(20)가 상기 액티브측 프로세서(10)로부터 모든 프로세서 데이터를 수신받고 마지막 플래그(Dup_end)를 수신한 후에도 자신의 상태가 액티브 상태로 전환되지 않는 경우, 즉 스탠바이 모드에서 액티브 모드로 제대로 천이가 되지 않아 이중화 절체가 실패하는 경우, 상기 스탠바이측 프로세서(20)는 CPU 다운(Down)이 발생하게 되고 이에 스탠바이 모드로 있던 프로세서(10)도 상기 스탠바이측 프로세서(20)의 CPU 다운 발생 신호(CPU_fail)를 감지하여 CPU 다운하게 되므로, 결국 두 프로세서(10, 20)의 듀얼다운(Dual-down)이 발생하여 더 이상의 서비스를 수행할 수 없게 된다.At this time, if the standby side processor 20 does not change its state to the active state even after receiving all the processor data from the active side processor 10 and receiving the last flag Dup_end, that is, the standby mode. In the case where the redundancy fails because the transition to the active mode is not performed properly, the standby processor 20 causes a CPU down, and the processor 10 in the standby mode is also in the standby processor 20. Since the CPU down generation signal (CPU_fail) is sensed to the CPU down, the dual-down of the two processors (10, 20) occurs eventually can not perform any more services.

이와 같이, 종래 프로세서간의 이중화 절체 방법에서는 액티브측 프로세서가 스탠바이 모드로 전환한 후에도 스탠바이측 프로세서가 액티브 모드로 전환되지 않는 경우에 프로세서의 듀얼 다운이 발생하여 서비스의 기능을 상실하게 되는 문제점이 있었다.As described above, in the redundant switching between processors, there is a problem in that the dual down of the processor occurs when the standby processor does not switch to the active mode even after the active processor switches to the standby mode, thereby losing the function of the service.

전술한 바와 같은 문제점을 해결하기 위한 것으로, 본 발명은 프로세서간의 이중화 절체에서 액티브측 프로세서가 스탠바이 모드로 전환한 후에도 스탠바이측 프로세서가 액티브 모드로 전환되지 않는 경우에 스탠바이로 전환된 프로세서를 다시 절체 전의 상태인 액티브 모드로 자동 복귀해 줌으로써, 종래와 같은 듀얼 다운이 발생되지 않게 하여 이중화 절체 시의 신뢰성을 향상시켜 주도록 하는데, 그 목적이 있다.In order to solve the above-described problems, the present invention is to provide a standby before the processor is switched to standby if the standby processor is not switched to the active mode even after the active processor switches to the standby mode. By automatically returning to the active mode in the state, it is possible to improve the reliability at the time of redundant switching by avoiding the dual down as in the prior art.

또한, 본 발명은 동시 기록 방식에 의한 두 프로세서 보드간의 이중화 구현 시에 액티브측 프로세서 보드와 스탠바이측 프로세서 보드간의 이중화 절체를 수행함에 있어서, 어떤 이유에 의해 성공적으로 이루어지지 않은 경우를 대비해서 액티브측 프로세서 보드를 절체 전의 모드로 자동 복귀하도록 함으로써, 종래의 듀얼-다운에 의한 서비스의 상실이 아니라, 절체 전에 수행된 서비스를 지속적으로 수행하도록 하여 이중화의 신뢰성을 향상시키는데, 그 목적이 있다.In addition, the present invention is to perform the redundancy transfer between the active side processor board and the standby side processor board in the duplex implementation between the two processor board by the simultaneous recording method, in case the case is not successful for some reason, the active side By automatically returning the processor board to the mode before switching, the object of the present invention is to improve the reliability of redundancy by continuously performing the service performed before switching, rather than the loss of the service due to the conventional dual-down.

도 1은 일반적인 프로세서(Processor)간의 이중화 구조를 간략하게 나타낸 블록도.1 is a block diagram schematically illustrating a redundancy structure between a general processor.

도 2는 종래 프로세서간의 이중화 절체 방법을 나타낸 흐름도.2 is a flowchart illustrating a method for switching between redundant processors in a related art.

도 3은 본 발명의 실시 예에 따른 프로세서간의 이중화 절체를 설명하기 위한 흐름도.3 is a flowchart illustrating a redundancy transfer between processors according to an embodiment of the present invention.

도 4는 본 발명의 실시 예에 따른 프로세서간의 이중화 절체 방법을 나타낸 순서도.4 is a flowchart illustrating a method for transferring redundancy between processors according to an exemplary embodiment of the present invention.

* 도면의 주요 부분에 대한 부호의 설명 *Explanation of symbols on the main parts of the drawings

10 : 액티브(Active)측 프로세서10: Active side processor

20 : 스탠바이(Standby)측 프로세서20 Standby processor

상술한 바와 같은 목적을 달성하기 위한 본 발명의 특징은, 프로세서간의 이중화 절체 방법에 있어서, 프로세서간 이중화 절체 시에 스탠바이 모드에서 액티브 모드로 전환되는 프로세서가 성공적으로 이중화 절체된 경우에 절체 성공 메시지를 생성하여 액티브 모드에서 스탠바이 모드로 전환되는 프로세서에게 송신하는 과정과; 상기 액티브 모드에서 스탠바이 모드로 전환되는 프로세서가 상기 절체 성공 메시지의 수신 여부를 체크하여 이중화 절체의 성공 여부를 확인하는 과정과; 상기 액티브 모드에서 스탠바이 모드로 전환되는 프로세서가 소정의 시간 동안에 상기 절체 성공 메시지를 수신받지 못하는 경우에 상기 이중화 절체 이전의 액티브 모드로 복귀하는 과정을 포함하는데 있다.According to an aspect of the present invention for achieving the above object, in the duplex switching method between processors, a transfer success message is transmitted when a processor that is switched from the standby mode to the active mode in the duplex switching process between processors is successfully duplexed. Generating and transmitting to the processor which is switched from the active mode to the standby mode; Checking, by the processor that is switched from the active mode to the standby mode, whether the transfer success message is received or not, to determine whether the redundant transfer is successful; And returning to the active mode before the redundant transfer when the processor that is switched from the active mode to the standby mode does not receive the transfer success message for a predetermined time.

바람직하게는, 상기 이중화 절체 이전의 액티브 모드로 복귀하는 프로세서가 이중화 절체 실패한 스탠바이측 프로세서의 상태를 점검하여 원인 분석을 수행하는 과정을 더 포함하는 것을 특징으로 한다. 이하, 본 발명의 실시 예를 첨부한 도면을 참조하여 상세하게 설명하면 다음과 같다.The method may further include performing cause analysis by checking a state of a standby side processor in which a redundancy change failed, by a processor returning to an active mode before the redundancy changeover. Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

본 발명의 실시 예에 따른 프로세서간의 이중화 절체를 위한 구성은 종래의 구성과 동일하므로, 그 자세한 설명을 생략한다. 즉. 액티브측 프로세서와 스탠바이측 프로세서간 이중화 형태로 구성되며, 해당 두 프로세서간 이중화된 상태로 서비스 중이었다가 해당 액티브측 프로세서의 기능을 잠시 중지하거나, 또는 탈장 등으로 잠시 중지할 필요가 있는 경우에 이중화 절체를 수행하고 있는데, 본 발명에서는 이중화 절체 시에 절체 성공 확인 기능과 자동 복귀 기능을 종래의 기술에 추가시켜 구현하도록 함으로써, 이중화 절체 실패 시에도 절체 이전의 상태로 되돌아가도록 하여 수행 중이었던 서비스를 지속적으로 수행하도록 함과 동시에, 절체 실패된 스탠바이측 프로세서를 점검하여 다시 절체를 시도할 수 있도록 구현되어진다.Since the configuration for the redundant switching between processors according to an embodiment of the present invention is the same as the conventional configuration, a detailed description thereof will be omitted. In other words. It is configured in the form of redundancy between the active processor and the standby processor, and it is redundant when the two processors are in service while being in a redundant state, and the function of the active processor needs to be temporarily stopped or interrupted by hernia. In the present invention, the transfer success check function and the automatic return function are added to the conventional technology in the case of a redundant transfer, so that the service that was being performed is returned to the state before the transfer even when the redundant transfer fails. In addition to being continuously executed, it is implemented to check the standby processor that failed to transfer and try to switch again.

상기 절체 성공 확인 기능과 자동 복귀 기능을 구현하기 위해서, 도 3에 도시된 바와 같이, 스탠바이측 프로세서가 액티브 모드로 정상적으로 절체가 완료된 경우에 해당 액티브 모드로 절체된 프로세서 측에서 절체 성공 메시지(Dup_chg_success_ack)를 스탠바이 모드로 전환된 프로세서 측으로 송신하도록 하는 절체 성공 메시지 송신 기능과, 해당 스탠바이 모드로 전환된 프로세서 측에서 해당 절체 성공 메시지(Dup_chg_success_ack)를 수신받아 절체 성공 여부를 판단하도록 하는 절체 성공 체크 기능이 이루어지도록 한다.In order to implement the transfer success confirmation function and the automatic return function, as shown in FIG. 3, when the standby processor normally completes the transfer in the active mode, the transfer success message (Dup_chg_success_ack) is performed on the processor side transferred to the active mode. A transfer success message transmission function for transmitting a message to the processor side in standby mode and a transfer success check function for determining whether the transfer success is successful by receiving the transfer success message Dup_chg_success_ack from the processor side in the standby mode. To lose.

다시 말해서, 운영자의 필요에 의해 명령어, 매뉴얼 리셋, 파워 리셋 등의 수단으로 이중화 절체가 요구되는 경우에 이중화 절체가 시도되는데, 정상적인 경우에는 액티브측 프로세서가 스탠바이 모드로 상태 천이되고 스탠바이측 프로세서가 액티브 모드로 상태 천이가 이루어져 지속적인 서비스가 수행되나, 해당 스탠바이측 프로세서가 액티브 모드로 상태 천이되지 못하거나 스탠바이측 프로세서가 액티브 모드로 상태 천이된 후에 정상적인 동작을 수행하지 못하는 경우에는, 프로세서의 듀얼 다운이 발생하여 더 이상의 서비스를 수행할 수 없게 된다.In other words, redundancy switching is attempted when redundancy switching is required by an operator, a command reset, a power reset, or the like as required by an operator. In a normal case, an active processor transitions to a standby mode and a standby processor is active. If a state transition is made to the mode and continuous service is performed, but the corresponding standby side processor does not transition to the active mode or if the standby side fails to perform normal operation after the state transition to the active mode, the dual down of the processor Occurs, and no more services can be performed.

그러나, 본 발명에서는 이중화 절체 시도 시에 발생될 수 있는 상황, 즉 스탠바이측 프로세서가 액티브 모드로 상태 천이되지 못하거나 스탠바이측 프로세서가 액티브 모드로 상태 천이된 후에 정상적인 동작을 수행하지 못하는 경우를 대비하여, 해당 스탠바이측 프로세서는 절체 성공 메시지 송신 기능을 수행하여 정상적으로 액티브 모드로 상태 천이가 이루어진 경우에 그 결과를 통보하기 위해서 절체 성공 메시지(Dup_chg_success_ack)를 송신하도록 하며, 스탠바이 모드로 전환된 프로세서는 절체 성공 체크 기능을 수행하여 상대방 측으로부터 수신되는 절체 성공 메시지(Dup_chg_success_ack)를 체크해서 상대방 측이 성공적으로 액티브 모드로 동작을 수행하고 있음을 감시하는데, 소정의 시간 동안에 해당 절체 성공 메시지(Dup_chg_success_ack)를 수신받지 못하거나 에러 메시지를 수신받는 경우에 절체 이전의 상태인 액티브 모드로 자동 복귀해서 절체 이전에 수행했던 서비스를 계속적으로 수행하도록 한다.However, in the present invention, in case of a situation that may occur during the redundancy transfer attempt, that is, when the standby side processor does not transition to the active mode or the standby side does not perform normal operation after the state transition to the active mode, In this case, the standby processor transmits a transfer success message (Dup_chg_success_ack) to notify the result when the state transition is normally performed in the active mode by performing a transfer success message transmission function. It performs the check function and checks the transfer success message (Dup_chg_success_ack) received from the other party to monitor that the other party is successfully operating in the active mode. nail Or if it receives an error message received automatically returns to the active mode prior to the state of the switching to continuously perform the service was performed before the transfer.

본 발명의 실시 예에 따른 프로세서간의 이중화 절체 방법을 도4의 순서도를 참고하여 설명하면 다음과 같다.Referring to the flowchart of FIG. 4, a duplication transfer method between processors according to an exemplary embodiment of the present invention is as follows.

먼저, 운영자가 필요에 의해 이중화 절체를 수행하도록 하기 위해서 명령어, 매뉴얼 리셋, 파워 리셋 등의 수단을 가지고 이중화 절체를 요구하게 되면, 현재 액티브 모드로 동작을 수행 중인 프로세서에서는 운영자에 의해 발생된 이중화 절체 요구를 인지한 후에(단계 S1), 현재 수행하고 있는 모든 응용 프로그램의 동작을 종료시키고 이중화 절체 요구 신호(Dup_chg_req)를 스탠바이측 프로세서로 송신해 준다(단계 S2).First, if the operator requests redundancy switching by means of a command, a manual reset, a power reset, etc. in order to allow the operator to perform a redundancy change as necessary, the redundancy changeover generated by the operator in the processor currently operating in the active mode is required. After acknowledging the request (step S1), the operation of all the currently executing application programs is terminated and the redundant transfer request signal Dup_chg_req is transmitted to the standby side processor (step S2).

이에, 상기 스탠바이측 프로세서는 상기 액티브측 프로세서로부터 이중화 절체 요구 신호(Dup_chg_req)를 수신받아(단계 S3) 상대방 측의 이중화 절체 요구를 인지하여 이에 대응하는 응답 메시지(Dup_chg_ack)를 상기 액티브측 프로세서로 송신하여 액티브 모드로 동작할 준비가 되었음을 응답해 준다(단계 S4).Accordingly, the standby processor receives the duplication transfer request signal Dup_chg_req from the active side processor (step S3), recognizes the duplication transfer request of the other party, and transmits a corresponding response message Dup_chg_ack to the active side processor. To respond that it is ready to operate in the active mode (step S4).

이에 따라, 상기 액티브측 프로세서는 상기 스탠바이측 프로세서로부터 응답 메시지(Dup_chg_ack)를 수신받아(단계 S5) 현재 메모리의 내용이 모두 상기 스탠바이측 프로세서로 전달되었는지, 즉 현재 메모리의 내용이 상기 스탠바이측 프로세서 내의 메모리의 내용과 동일한지를 확인한 후에 CPU 내에 있는 모든 프로세서 데이터, 예를 들어 PC, 스택 값, 각종 CPU 레지스터 값 등을 상기 스탠바이측 프로세서로 전송해 주며, 마지막 플래그(Dup_end)를 상기 스탠바이측 프로세서로 송신해 준다(단계 S6).Accordingly, the active processor receives the response message Dup_chg_ack from the standby processor (step S5) to determine whether all of the contents of the current memory are transferred to the standby processor, that is, the contents of the current memory are stored in the standby processor. After checking whether it is identical with the contents of memory, all processor data in the CPU, for example, PC, stack value, and various CPU register values are transmitted to the standby processor, and the last flag (Dup_end) is transmitted to the standby processor. (Step S6).

그러면, 상기 스탠바이측 프로세서는 상기 액티브측 프로세서로부터 모든 프로세서 데이터를 수신받고 마지막 플래그(Dup_end)를 수신하기를 기다렸다가(단계 S7), 해당 마지막 플래그(Dup_end)를 수신받는 순간에 자신의 상태를 액티브 상태로 전환시켜 주게 되는데, 이때 상기 스탠바이측 프로세서에 에러가 없이 정상적으로 절체가 이루어진 경우에는 이를 확인하여(단계 S8) 액티브 상태로 전환되어 상대방 측으로부터 수신받은 프로세서 데이터를 바탕으로 응용 프로그램을 구동시켜 절체 이전에 수행되고 있던 작업을 그대로 이어 수행하도록 해 준 후에(단계 S9), 절체 성공 메시지(Dup_chg_success_ack)를 상대방 측으로 송신해 준다(단계 S10).Then, the standby processor waits to receive all the processor data from the active processor and receive the last flag Dup_end (step S7), and then activates its state at the moment of receiving the last flag Dup_end. In this case, if the standby processor is normally switched without any error, the controller checks this (step S8), switches to the active state, and transfers the application program based on the processor data received from the counterpart. After the operation is performed as it is (step S9), the transfer success message (Dup_chg_success_ack) is transmitted to the other party (step S10).

반면에, 상기 액티브측 프로세서는 마지막 플래그(Dup_end)를 전송한 후에자신의 상태를 스탠바이 상태로 전환시켜 주는데(단계 S11), 이때 상기 스탠바이측 프로세서에서 에러가 발생하는 경우, 즉 마지막 플래그(Dup_end)를 수신한 후에도 자신의 상태가 액티브 상태로 전환되지 않는 경우나 액티브 상태로 전환하였으나 정상적으로 동작을 수행하지 않는 경우가 발생되었는지를 확인하게 된다.On the other hand, after transmitting the last flag Dup_end, the active side processor transfers its state to the standby state (step S11). In this case, if an error occurs in the standby side processor, that is, the last flag Dup_end. It is checked whether the case where the state does not change to the active state after the reception or the change to the active state but does not perform the normal operation occurs.

즉, 상기 스탠바이 모드로 전환된 프로세서에서는 절체 성공 체크 기능을 수행하여 상대방 측으로부터 수신되는 절체 성공 메시지(Dup_chg_success_ack)를 체크하게 된다(단계 S12).That is, the processor which has switched to the standby mode performs a transfer success check function to check a transfer success message Dup_chg_success_ack received from the counterpart (step S12).

이 때, 상대방 측이 성공적으로 액티브 모드로 동작을 수행하고 있음을 감지한 경우에는 스탠바이 모드로서 동작을 계속적으로 수행하며(단계 S13), 반면에 소정의 시간 동안에 해당 절체 성공 메시지(Dup_chg_success_ack)를 수신받지 못하거나 에러 메시지를 수신받는 경우에 절체 이전의 상태인 액티브 모드로 자동 복귀해서 절체 이전에 수행했던 서비스를 계속적으로 수행하도록 한다(단계 S14).At this time, if it detects that the other party successfully performs the operation in the active mode, the operation is continuously performed in the standby mode (step S13), while receiving the corresponding transfer success message (Dup_chg_success_ack) for a predetermined time. If not received or an error message is received, the system automatically returns to the active mode before the transfer to continue the service performed before the transfer (step S14).

또한, 상기 액티브측 프로세서는 절체 실패된 스탠바이측 프로세서의 상태를 점검하여 이중화 절체가 성공하지 못한 원인 분석을 수행하여 운영자에게 통보하도록 함으로써, 서비스의 중단이 일어나지 않도록 해 준다.In addition, the active side processor checks the state of the standby side processor that has failed the transfer, performs an analysis of the cause of the unsuccessful redundancy, and informs the operator so that service interruption does not occur.

이상과 같이, 본 발명에 의해 프로세서간의 이중화 절체에 있어서 액티브측 프로세서가 스탠바이 모드로 전환한 후에도 스탠바이측 프로세서가 액티브 모드로 전환되지 않는 경우에 스탠바이로 전환된 프로세서를 다시 절체 전의 상태인 액티브 모드로 자동 복귀해 줌으로써, 종래와 같은 듀얼 다운이 발생되지 않아 절체 전에 수행된 서비스를 지속적으로 수행하도록 하여 이중화의 신뢰성을 향상시킬 수 있다.As described above, in the redundant switching between processors according to the present invention, when the standby processor does not switch to the active mode even after the active processor switches to the standby mode, the processor switched to the standby mode returns to the active mode before the transfer. By automatically returning, the dual down does not occur as in the prior art, so that the service performed before the transfer can be continuously performed to improve the reliability of the redundancy.

Claims (3)

프로세서간의 이중화 절체 방법에 있어서,In the redundant switching method between processors, 프로세서간 이중화 절체 시에 스탠바이 모드에서 액티브 모드로 전환되는 프로세서가 성공적으로 이중화 절체된 경우에 절체 성공 메시지를 생성하여 액티브 모드에서 스탠바이 모드로 전환되는 프로세서에게 송신하는 과정과;Generating a transfer success message and transmitting the generated transfer success message to the processor that is switched from the active mode to the standby mode when the processor that is switched from the standby mode to the active mode during the duplex transfer between processors is successfully duplexed; 상기 액티브 모드에서 스탠바이 모드로 전환되는 프로세서가 상기 절체 성공 메시지의 수신 여부를 체크하여 이중화 절체의 성공 여부를 확인하는 과정과;Checking, by the processor that is switched from the active mode to the standby mode, whether the transfer success message is received or not, to determine whether the redundant transfer is successful; 상기 액티브 모드에서 스탠바이 모드로 전환되는 프로세서가 소정의 시간 동안에 상기 절체 성공 메시지를 수신받지 못하는 경우에 상기 이중화 절체 이전의 액티브 모드로 복귀하는 과정을 포함하는 것을 특징으로 하는 프로세서간의 이중화 절체 방법.And returning to the active mode prior to the redundant transfer when the processor which is switched from the active mode to the standby mode does not receive the transfer success message for a predetermined time. 삭제delete 제1항에 있어서,The method of claim 1, 상기 이중화 절체 이전의 액티브 모드로 복귀하는 프로세서가 이중화 절체 실패한 스탠바이측 프로세서의 상태를 점검하여 원인 분석을 수행하는 과정을 더 포함하는 것을 특징으로 하는 프로세서간의 이중화 절체 방법.And performing a cause analysis by checking, by the processor returning to the active mode prior to the redundant switching, of the standby processor that failed to perform the redundant switching.
KR10-2001-0082014A 2001-12-20 2001-12-20 Method of Controlling Duplexed Processors KR100426841B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR10-2001-0082014A KR100426841B1 (en) 2001-12-20 2001-12-20 Method of Controlling Duplexed Processors

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR10-2001-0082014A KR100426841B1 (en) 2001-12-20 2001-12-20 Method of Controlling Duplexed Processors

Publications (2)

Publication Number Publication Date
KR20030052122A KR20030052122A (en) 2003-06-26
KR100426841B1 true KR100426841B1 (en) 2004-04-14

Family

ID=29576974

Family Applications (1)

Application Number Title Priority Date Filing Date
KR10-2001-0082014A KR100426841B1 (en) 2001-12-20 2001-12-20 Method of Controlling Duplexed Processors

Country Status (1)

Country Link
KR (1) KR100426841B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101638437B1 (en) * 2012-09-25 2016-07-12 한국전자통신연구원 Operating method of fault-tolerant handling system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR930014016A (en) * 1991-12-30 1993-07-22 경상현 How to recover from fault by partial restart
KR950022612A (en) * 1993-12-02 1995-07-28 양승택 Error detection device and processing method on redundancy board of redundancy device
JPH11312001A (en) * 1998-04-28 1999-11-09 Nec Corp System for switching duplex device and method therefor
KR20010059470A (en) * 1999-12-30 2001-07-06 윤종용 Method for contolling main processor having duplication structure in a branch exchange system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR930014016A (en) * 1991-12-30 1993-07-22 경상현 How to recover from fault by partial restart
KR950022612A (en) * 1993-12-02 1995-07-28 양승택 Error detection device and processing method on redundancy board of redundancy device
JPH11312001A (en) * 1998-04-28 1999-11-09 Nec Corp System for switching duplex device and method therefor
KR20010059470A (en) * 1999-12-30 2001-07-06 윤종용 Method for contolling main processor having duplication structure in a branch exchange system

Also Published As

Publication number Publication date
KR20030052122A (en) 2003-06-26

Similar Documents

Publication Publication Date Title
CN108009239B (en) Database access method and system
KR100426841B1 (en) Method of Controlling Duplexed Processors
JPH0916427A (en) Dual control method, and master controller and slave controller for same
KR19990078536A (en) Database duplication method for intelligent service system
JPH09305558A (en) Data base server for duplex system
KR970006012B1 (en) Method for switching dual processor
JP4128667B2 (en) Information backup system
KR100798997B1 (en) Restarting Method of Dual Processor
JPH05244225A (en) Uninterruptible system changeover method
JP5061739B2 (en) Data processing device, redundant device, failure time system switching method and failure time system switching program
WO2024148934A1 (en) Disaster recovery control method and system
JP4193754B2 (en) Data duplication method and program
KR100258756B1 (en) Method for booting of duplicated exchange system
JP2513128B2 (en) Information processing system
JPH05341803A (en) Duplex switching device for programmable controller
US7627871B2 (en) Instructing management support software of a first software component to set up a communication channel between the first software component and a second software component
JP2926867B2 (en) Fault monitoring method for local area network
JPH06222944A (en) Switching control method for duplexed electronic computer system
KR20050070171A (en) Processor duplexed board
JP2002229810A (en) Processor replacing system
JPH0659923A (en) Duplex system using cpu
JPH1049451A (en) Automatic switching system for transfer destination in file transfer
JPH10289122A (en) High-speed changeover system for inter-system shared disk in hot standby system
JP2000222295A (en) Data transfer control system
JPH1139103A (en) Magnetic tape processor and processing method therefor

Legal Events

Date Code Title Description
A201 Request for examination
N231 Notification of change of applicant
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20090302

Year of fee payment: 6

LAPS Lapse due to unpaid annual fee