KR20110046897A - Method to elect master nodes from nodes of a subnet - Google Patents

Method to elect master nodes from nodes of a subnet Download PDF

Info

Publication number
KR20110046897A
KR20110046897A KR1020090103602A KR20090103602A KR20110046897A KR 20110046897 A KR20110046897 A KR 20110046897A KR 1020090103602 A KR1020090103602 A KR 1020090103602A KR 20090103602 A KR20090103602 A KR 20090103602A KR 20110046897 A KR20110046897 A KR 20110046897A
Authority
KR
South Korea
Prior art keywords
node
master node
nodes
master
voting
Prior art date
Application number
KR1020090103602A
Other languages
Korean (ko)
Other versions
KR101075462B1 (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 KR1020090103602A priority Critical patent/KR101075462B1/en
Publication of KR20110046897A publication Critical patent/KR20110046897A/en
Application granted granted Critical
Publication of KR101075462B1 publication Critical patent/KR101075462B1/en

Links

Images

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/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • H04L67/1051Group master selection mechanisms
    • 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/30Decision processes by autonomous network management units using voting and bidding

Abstract

PURPOSE: A method for selecting a master node from the nodes of a subnet is provided to promptly select a master node through the volunteer vote within a unit time between network nodes. CONSTITUTION: A candidate node is selected. The candidate node is determined as a node having an IP(Internet Protocol) address which is the smallest node within a subnet. When having the least Internet protocol address, the node is transited to a candidate node status. The node becomes the candidate node, and the other nodes are transited to a vote node state. The other nodes start voting.

Description

서브넷에서 마스터 노드를 선출하는 방법{METHOD TO ELECT MASTER NODES FROM NODES OF A SUBNET}How to elect a master node on a subnet {METHOD TO ELECT MASTER NODES FROM NODES OF A SUBNET}

본 발명은 서브넷에서 마스터 노드를 선출하는 방법에 관한 것으로서, 보다 구체적으로는 하나의 서브넷에서 자신이 속한 서브넷의 정보(노드들의 상태, 링크의 상태 정보)를 수집하고 관리하는 마스터 노드를 선출하는 방법에 관한 것이다.The present invention relates to a method for selecting a master node in a subnet, and more particularly, a method for selecting a master node for collecting and managing information (subnode states, link state information) of a subnet to which one belongs to a subnet. It is about.

네트워크 인프라 구조는 많은 수의 노드에 대해 확장 가능하여야 한다. 또한, 네트워크는 여러 가지 형태의 노드 고장 또는 링크의 사용 불능한 상태에 대한 대처 방안을 가져야 한다. 이더넷은 개방형 네트워크를 위한 현실적인 방안인데 이러한 이더넷 기반 네트워크가 고장에 적응하는 방안은 크게 두 가지가 있다. 그 중 하나가 다중 포트 네트워크 인터페이스 카드를 갖는 것이다. 네트워크 인터페이스 카드의 펌웨어는 활성화된 포트의 고장을 감지하고 스탠바이 포트를 활성화한다. 다른 방안은 고장을 감지하고 리커버리 알고리듬을 수행하는 소프트웨어를 구비하는 것이다. 대부분의 소프트웨어적인 접근은 주기적인 심장박동(heartbeat) 메카니즘을 적용하는 것이다.The network infrastructure must be scalable to a large number of nodes. In addition, the network should have a countermeasure against various types of node failures or unusable links. Ethernet is a realistic solution for open networks. There are two ways in which Ethernet-based networks can adapt to failure. One of them is to have a multi-port network interface card. The firmware of the network interface card detects the failure of the active port and activates the standby port. Another approach is to have software that detects the failure and performs the recovery algorithm. Most software approaches apply a periodic heartbeat mechanism.

이러한 종래 심장박동 기반의 구성은 내재적으로 확장성의 문제점을 가지고 있었다. 따라서 본원 발명자는 이러한 확장성의 문제점을 해결하기 위해 다중 서브넷 아키텍쳐를 제안하였다. 다중 서브넷 아키텍쳐는 확장성과 빠른 고장 극복을 제공하기 위해서 네트워크를 복수 개의 서브넷으로 나누고 하나의 서브넷이 포용할 수 있는 노드 수를 제한한다. 따라서 네트워크는 서브넷을 추가함으로써 계속 확장할 수 있다. 하나의 서브넷에 있는 모든 노드는 서로 이터넷 기반의 심장박동을 주고 받는다. 노드는 다른 노드로부터 전송된 심장박동을 체킹함으로써 경로상의 고장을 감지하고 극복할 수 있다. 그런데 심장박동은 이더넷 프레임이고 서브넷 사이에서 전송될 수 없으므로 서브넷 사이의 고장을 복구하기 위해 각 서브넷에서 마스터 노드를 지정하고 관리하여야 한다. 마스터 노드는 서브넷 상태를 교환하기 위해 아이피 패킷을 이용하여 상호 통신한다. 하나의 서브넷에서 고장이 발생하면, 마스터 노드는 심장박동을 통해 고장을 감지하고 상호 연결된 서브넷 통신 경로 상의 고장을 복구하기 위해 이를 다른 마스터 노드에 통지하는 중요한 역할을 담당한다. 일반적으로 마스터 노드는 각 서브넷에서 관리자에 의해 직접 지정된다. 또한 일반적인 네트워크 시스템에서는 노드 고장이 자주 발생하지 않기 때문에 고장 발생을 고려하지 않는다. 또한 고장이 발생하는 경우에도 네트워크 관리자가 고장을 발견하고 회복하는 작업을 수행하는 것이 일반적이다. 그러나 함정의 네트워크 시스템과 같은 특수한 경우에는 전투 중에 상대방의 공격 등에 의해 고장이 발생할 수 있으며 고장을 자동적으로 신속하게 회복시켜야 하기 때문에 마스터 노드를 관리자가 임의로 지정하는 대신 노드들 사이에서 자동으로 신속하게 선정하고, 마스터 노드가 고장 날 경우 이를 대신할 마스터 노드를 지정할 필요성이 대두 되었다.This conventional heartbeat-based configuration inherently had a problem of scalability. Therefore, the present inventors proposed a multi-subnet architecture to solve this problem of scalability. Multi-subnet architectures divide the network into multiple subnets and limit the number of nodes a subnet can accept to provide scalability and fast failover. Thus, the network can continue to expand by adding subnets. All nodes on a subnet send and receive Ethernet-based heartbeats to each other. Nodes can detect and overcome failures in the path by checking heartbeats sent from other nodes. Since heartbeats are Ethernet frames and cannot be transmitted between subnets, a master node must be assigned and managed in each subnet to recover from failures between subnets. Master nodes communicate with each other using IP packets to exchange subnet states. When a failure occurs in one subnet, the master node plays an important role in detecting the failure through a heartbeat and informing the other master node to recover from the failure on the interconnected subnet communication path. In general, master nodes are assigned directly by an administrator in each subnet. Also, in a typical network system, node failures do not occur frequently, so failures are not considered. It is also common for network administrators to detect and recover from failures in the event of a failure. However, in special cases such as the network system of the ship, failure may occur due to the attack of the opponent during the battle, and the failure must be recovered quickly and automatically, so the master node is automatically selected quickly among the nodes instead of arbitrarily designated by the administrator. In addition, there is a need to designate a master node to replace a master node if it fails.

본 발명은 상기와 같은 문제점을 해결하기 위한 것으로 하나의 서브넷 상에서 정해진 시간 내에 가능한 신속하게 마스터 노드를 선정하고, 마스터 노드의 고장에 대비하여 제 2의 마스터 노드를 미리 지정하는 방법을 제공하는 것을 목적으로 한다.An object of the present invention is to solve the above problems and to provide a method for selecting a master node as quickly as possible on a subnet within a predetermined time and for designating a second master node in preparation for a failure of the master node. It is done.

본 발명의 상기 목적은 제한된 수의 노드를 갖는 복수 개 서브넷으로 구성되는 네트워크에서, 하나의 서브넷에 있는 복수 개 정상 노드들 중에서 마스터 노드를 선정하는 방법으로서, 복수 개 정상 노드를 후보 노드와 투표 노드로 분류하는 제 1단계와, 후보 노드는 일정한 단위 시간 내에 상기 투표 노드로부터 투표 메세지를 전송받는 제 2단계 및 후보 노드가 상기 투표 노드로부터 받은 투표 메세지의 수가 정상 노드 수의 일정 비율 이상이 될 경우 상기 후보 노드를 제 1차 마스터 노드로 선정하는 제 3단계를 포함하는 것을 특징으로 하는 서브넷에서 마스터 노드를 선정하는 방법에 의해서 달성 가능하다.The above object of the present invention is a method for selecting a master node among a plurality of normal nodes in one subnet in a network composed of a plurality of subnets having a limited number of nodes, wherein the plurality of normal nodes are selected as candidate nodes and voting nodes. The first step of classifying the candidate node and the candidate node in the second step of receiving a voting message from the voting node within a predetermined unit time, and when the number of voting messages received by the candidate node from the voting node becomes equal to or more than a predetermined ratio of the normal number of nodes. And a third step of selecting the candidate node as the primary master node.

본 발명의 또 다른 목적은 복수 개의 노드를 갖는 복수 개 서브넷으로 구성되는 네트워크에서, 하나의 서브넷에 있는 복수 개 정상 노드들 중에서 인터넷 프로토콜 주소가 가장 작은 노드를 후보 노드로 선정하고, 나머지 노드들을 투표 노드로 선정한 후 해당 서브넷에서 상기 후보 노드를 마스터 노드로 선정하는 방법으로서, 일정한 MASTER_TIMER라는 기간을 설정하는 제 1단계와, 투표 노드로부터 투 표 메세지를 수신하는 제 2단계와, MASTER_TIMER라는 기간 동안 상기 투표 노드로부터 수신된 투표 메세지 수가 복수 개 노드들의 일정 비율 이상이 되는지 카운팅하는 제 3단계 및 제 3단계에서 일정 비율을 넘을 경우 상기 MASTER_TIMER를 삭제하고 해당 후보 노드를 마스터 노드로 설정하는 제 4단계를 포함하는 것을 특징으로 하는 서브넷에서 마스터 노드를 선정하는 방법에 의해서도 달성 가능하다.Another object of the present invention is to select a node having the smallest internet protocol address as a candidate node among a plurality of normal nodes in one subnet in a network composed of a plurality of subnets having a plurality of nodes, and vote the remaining nodes. A method of selecting a candidate node as a master node in a corresponding subnet after selecting the node, comprising: a first step of setting a period of a certain MASTER_TIMER, a second step of receiving a voting message from a voting node, and a period of MASTER_TIMER A third step of counting whether the number of voting messages received from the voting node is equal to or greater than a predetermined ratio of the plurality of nodes, and when the ratio exceeds the predetermined ratio, a fourth step of deleting the MASTER_TIMER and setting the corresponding candidate node as a master node. Selecting a master node in the subnet, characterized in that including Achievement is also possible.

본 발명에서 제시하는 방식은 관리자에 의해 인위적으로 마스터 노드가 지정되는 종래 방식에 비해 네트워크 노드 사이에서 단위 시간 내에 자율적으로 투표에 의해 신속히 마스터 노드를 선출할 수 있으므로 마스터 노드에 고장이 발생하는 경우에도 즉시 새로운 마스터 노드를 선출하여 임무를 수행할 수 있는 이점이 있다.Compared to the conventional method in which the master node is artificially designated by the administrator, the method proposed in the present invention can select a master node quickly by autonomous vote within a unit time among network nodes, even when a failure occurs in the master node. The advantage is that you can immediately elect a new master node to carry out its mission.

특히 본 발명에 따른 마스터 노드를 선출하는 방법은 고장 발생이 치명적인 네트워크 시스템에 가장 유익하게 적용할 수 있으며 특히 제 1차 마스터 노드가 제 2차 마스터 노드 또는 제 3차 마스터 노드를 미리 지정함으로써 제 1차 마스터 노드가 고장날 경우에도 신속히 대응할 수 있도록 하였다.In particular, the method of selecting a master node according to the present invention can be most advantageously applied to a network system in which a failure is fatal. In particular, the primary master node can designate the first master node or the third master node in advance. Even if the car master node fails, it can respond quickly.

이하에서, 본 발명의 장점, 특징 및 바람직한 실시예를 첨부 도면을 참조하여 상세하게 설명하도록 한다.Hereinafter, the advantages, features and preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 1은 본 발명에 적용되는 시스템 구성도이다. 본 발명이 적용되는 시스템은 복수 개 서브넷으로 구성된다. 네트워크 확장을 원할 경우 서브넷을 추가함으로써 용이하게 달성할 수 있도록 하였다. 하나의 서브넷은 적정한 수의 노드와 랜 스위치로 구성하며, 노드들은 랜 스위치로 연결되어 서로 통신한다. 하나의 서브넷에 포함되는 적정한 노드 수는 마스터 노드를 설정하는데 소요되는 시간 및 네트워크 복잡도에 의해 정해지는데 이는 본 발명의 대상이 아니므로 상세한 설명은 생략하기로 한다. 각 서브넷은 자신이 속한 정상(normal) 노드 중에서 적어도 하나의 마스터 노드를 선정한다. 하나의 서브넷 내에 하나의 마스터 노드를 구비하여도 무방하나 바람직하게는 하나의 서브넷 내에 제 1마스터 노드, 제 2마스터 노드 및 제 3마스터 노드 등으로 복수 개 마스터 노드를 두는 것이 고장에 효율적으로 대처할 수 있다.1 is a system configuration diagram applied to the present invention. The system to which the present invention is applied is composed of a plurality of subnets. If you want to expand the network, you can easily achieve this by adding subnets. One subnet consists of an appropriate number of nodes and LAN switches, which are connected by LAN switches to communicate with each other. The proper number of nodes included in one subnet is determined by the time and network complexity of setting the master node, which is not the object of the present invention, and thus detailed description thereof will be omitted. Each subnet selects at least one master node from among the normal nodes to which it belongs. Although one master node may be provided in one subnet, it is preferable to have a plurality of master nodes as the first master node, the second master node, and the third master node in one subnet to effectively cope with failure. have.

마스터 노드는 하나의 서브넷 노드들 사이에서 정보 경로를 유지하는 역할을 하며, 다른 서브넷의 마스터 노드와 정보를 교환하는 역할을 한다. 마스터 노드는 FTE(Fault Tolerant Ethernet) 기능을 가지므로, 서브넷 내의 다른 노드로부터 심장박동 프레임 기반의 이더넷을 전송받는다. 다른 노드로부터 전송받은 심장박동을 사용함으로써 노드 사이의 사용가능한 경로 정보를 알 수 있다.The master node is responsible for maintaining the information path between one subnet node and exchanging information with the master node of another subnet. Since the master node has a Fault Tolerant Ethernet (FTE) function, the heartbeat frame-based Ethernet is transmitted from another node in the subnet. By using the heartbeat received from another node, the available path information between the nodes can be known.

시작 시 또는 모든 마스터 노드가 고장이 날 경우, 서브넷 내의 각 노드는 마스터 노드를 선정하기 위한 투표를 수행한다. 마스터 노드가 고장난 경우를 간단히 설명하기로 한다. 본 발명에 따른 마스터 노드는 WIN 메시지를 주기적으로 브로드캐스트 하도록 하였다. 마스터 노드를 제외한 다른 노드들은 이 메시지를 정해진 타임아웃 시간 내에 수신하지 못하면 마스터 노드의 고장으로 판단하게 되고, 마스터 노드 선정 절차를 수행하게 된다. 따라서, 각 노드들은 자체적으로 이러한 조건을 검사하며 조건이 성립하는 경우 마스터 노드 선정 절차를 수행하게 된다. 이때, 자신이 최소의 IP 어드레스를 갖는 노드가 아니라면 투표(VOTE) 노드가 되고, VOTE 메시지를 후보(candidate) 노드에게 송부한다. 자신이 최소 IP 주소를 갖는 노드라면 후보 노드가 되고 VOTE 메시지를 기다리게 된다.At startup or when all master nodes fail, each node in the subnet votes to select a master node. The case where the master node has failed will be briefly described. The master node according to the present invention periodically broadcasts a WIN message. If the nodes other than the master node do not receive this message within a predetermined timeout time, the node is determined to be a failure of the master node and the master node selection procedure is performed. Therefore, each node checks these conditions on its own and performs a master node selection procedure when the conditions are met. At this time, if it is not the node having the minimum IP address, it becomes a VOTE node, and sends a VOTE message to the candidate node. If it is a node with a minimum IP address, it becomes a candidate node and waits for a VOTE message.

도 2는 본 발명에 따른 하나의 서브넷 내의 노드들 사이에서 마스터 노드를 선정하기 위한 상태 천이도이다. 각 노드는 정상 노드 상태에서 시작한다. 먼저 마스터 노드로 선출할 후보 노드를 정한다. 후보 노드는 서브넷 내에서 제일 작은 인터넷 프로토콜(IP, Internet Protocol) 주소를 가진 노드로 정한다. 본 발명에서는 각 노드들은 부팅 후에 자기 IP 주소 등의 내용을 주기적으로 브로드캐스트하게 되어 있어 이를 통해서 다른 노드들의 IP 주소를 알고 있다는 가정하에 설명하기로 한다. 자신이 제일 작은 인터넷 프로토콜 주소를 가진 노드이면 후보 노드 상태로 전이하여 후보 노드가 된다. 다른 노드들은 투표 노드 상태로 전이하여 투표를 시작한다.2 is a state transition diagram for selecting a master node among nodes in one subnet according to the present invention. Each node starts in the normal node state. First, candidate nodes to be elected as master nodes are determined. The candidate node is defined as the node with the smallest Internet Protocol (IP) address in the subnet. In the present invention, since each node periodically broadcasts its own IP address after booting, it will be described on the assumption that it knows the IP addresses of other nodes. If it is the node with the smallest internet protocol address, it transitions to the candidate node state and becomes a candidate node. The other nodes transition to the voting node state and start voting.

도 3은 후보 노드 상태의 상태 변이를 설명하는 C-언어이며, 도 4는 투표 노드 상태의 상태 변이를 설명하는 C-언어이다. 우선, 도 3을 이용하여 후보 노드 상태에서 정상 노드 상태 또는 마스터 노드 상태로의 상태 천이 과정에 대해 설명하기로 한다.3 is a C-language describing a state transition of a candidate node state, and FIG. 4 is a C-language describing a state transition of a voting node state. First, a state transition process from a candidate node state to a normal node state or a master node state will be described with reference to FIG. 3.

MASTER_TIMER라는 임의의 시간을 설정한다(STEP 1). MASTER_TIMER라는 기간 동안 수신된 메세지가 VOTE이면, 전체 정상 노드 중에서 50%로부터 VOTE 메세지를 받는 경우에는 해당 후보 노드가 마스터 노드가 되는 것이므로 타이머를 삭제하고 WIN 메세지를 브로드캐스트(broadcast)한다(STEP 2). MASTER_TIMER라는 기간 동안 수신된 메세지가 WIN이면, 다른 후보 노드가 이미 마스터 노드로 선정되었음을 알리는 것이므로 타이머를 삭제하고 메세지를 송부한 노드를 마스터 노드로 결정한다(STEP 3).Set an arbitrary time called MASTER_TIMER (STEP 1). If the message received during the MASTER_TIMER period is VOTE, if the VOTE message is received from 50% of all normal nodes, the candidate node becomes the master node, so the timer is deleted and the WIN message is broadcasted (STEP 2). . If the message received during the period of MASTER_TIMER is WIN, it indicates that another candidate node has already been selected as the master node. Therefore, the timer is deleted and the node sending the message is determined as the master node (STEP 3).

해당 후보 노드가 마스터 노드가 된 후, VOTE 메세지를 수신할 경우에는 이를 무시한다. 해당 후보 노드가 마스터 노드가 된 후, WIN 메세지를 수신하고 해당 후보 노드의 IP 주소가 송신자의 IP 주소보다 클 경우에는 해당 후보 노드는 마스터 노드로서의 지위를 포기하고, WIN 메세지를 수신하였으나 해당 후보 노드의 IP 주소가 송신자의 IP 주소보다 크지 않은 경우에는 해당 후보 노드가 마스터 노드이므로 해당 메세지를 무시한다(STEP 4).If the candidate node receives the VOTE message after becoming the master node, it is ignored. After the candidate node becomes the master node and receives the WIN message and the candidate node's IP address is greater than the sender's IP address, the candidate node gives up its status as the master node and receives the WIN message but receives the corresponding candidate node. If the IP address is not greater than the sender's IP address, the corresponding node is ignored because the candidate node is the master node (STEP 4).

만약 MASTER_TIMER가 종료되면, STEP 1 내지 STEP 4 단계를 2 ~ 3 번 반복하고, 반복 후에도 해당 후보 노드가 마스트 노드로 선정되지 않을 경우에는 다음 후보 노드에 대해서 STEP 1 내지 STEP 4 단계를 반복 수행한다(STEP 5).If MASTER_TIMER is finished, repeat Step 1 to STEP 4 2 or 3 times, and if the candidate node is not selected as a master node after repeating, repeat Step 1 to STEP 4 for the next candidate node ( STEP 5).

다음으로, 도 4를 이용하여 투표 노드 상태에서 정상 노드 상태로의 상태 천 이 과정에 대해 설명하기로 한다. Next, a state transition process from the voting node state to the normal node state will be described with reference to FIG. 4.

가장 적은 IP 주소를 갖는 노드를 후보 노드로 결정하고, 해당 후보 노드에 VOTE 메세지를 전송하고, 임의의 VOTE_TIMER 기간을 설정한다(ST 1).The node having the smallest IP address is determined as a candidate node, a VOTE message is sent to the candidate node, and an arbitrary VOTE_TIMER period is set (ST 1).

VOTE_TIMER 기간 동안, VOTE 메세지를 받을 경우 이를 무시한다(ST 2). VOTE_TIMER 기간 동안, WIN 메세지를 받을 경우 WIN 메세지를 전송한 노드를 마스터 노드로 결정한다(ST 3). 마스터 노드를 가지고 있을 때, VOTE 메세지를 수신할 경우 이를 무시하고, WIN 메세지를 수신하면 가장 적은 IP 주소를 갖는 노드를 마스터 노드로 결정한다(ST 4).During the VOTE_TIMER period, if a VOTE message is received, it is ignored (ST 2). If a WIN message is received during the VOTE_TIMER period, the node that sent the WIN message is determined as the master node (ST 3). When you have a master node, if you receive a VOTE message, ignore it. If you receive a WIN message, determine the node with the smallest IP address as the master node (ST 4).

만약 VOTE_TIMER 기간이 종료되면 ST 1 내지 ST 4 단계를 2~3 번 더 수행한다. 현재 후보 노드를 마스터 노드로 선출하는 것이 실패하게 되면 다른 후보 노드를 지정하고 ST 1 내지 ST 4 단계를 반복 수행하게 된다(ST 5).If the VOTE_TIMER period ends, steps ST 1 to ST 4 are performed 2-3 times more. If the selection of the current candidate node as the master node fails, another candidate node is designated and steps ST 1 to ST 4 are repeated (ST 5).

상기에서 본 발명의 특정한 실시예가 설명 및 도시되었지만, 본 발명의 기술적 사상을 벗어나지 않는 범위 내에서 당업자에 의하여 다양하게 변형되어 실시될 가능성이 있는 것은 자명한 일이다.Although specific embodiments of the present invention have been described and illustrated above, it will be apparent that various modifications may be made by those skilled in the art without departing from the technical spirit of the present invention.

도 1은 본 발명에 적용되는 시스템 구성도.1 is a system configuration diagram applied to the present invention.

도 2는 본 발명에 따른 하나의 서브넷 내의 노드들 사이에서 마스터 노드를 선정하기 위한 상태 천이도.2 is a state transition diagram for selecting a master node among nodes in one subnet in accordance with the present invention.

도 3은 후보 노드 상태의 상태 변이를 설명하는 C-언어 코드의 일 실시예.3 is an embodiment of a C-language code illustrating a state transition of a candidate node state.

도 4는 투표 노드 상태의 상태 변이를 설명하는 C-언어 코드의 일 실시예.4 is an embodiment of a C-language code illustrating a state transition of a voting node state.

Claims (12)

제한된 수의 노드를 갖는 복수 개 서브넷으로 구성되는 네트워크에서, 하나의 서브넷에 있는 복수 개 정상 노드들 중에서 마스터 노드를 선정하는 방법으로서,In a network composed of a plurality of subnets having a limited number of nodes, a method of selecting a master node among a plurality of normal nodes in one subnet, 복수 개 정상 노드를 후보 노드와 투표 노드로 분류하는 제 1단계;Classifying a plurality of normal nodes into candidate nodes and voting nodes; 상기 후보 노드는 일정한 단위 시간 내에 상기 투표 노드로부터 투표 메세지를 전송받는 제 2단계; 및The candidate node receiving a voting message from the voting node within a predetermined unit time; And 상기 후보 노드가 상기 투표 노드로부터 받은 투표 메세지의 수가 정상 노드 수의 일정 비율 이상이 될 경우 상기 후보 노드를 제 1차 마스터 노드로 선정하는 제 3단계를 포함하는 것을 특징으로 하는 서브넷에서 마스터 노드를 선정하는 방법.And selecting a candidate node as a first master node when the number of vote messages received by the candidate node from the voting node is equal to or greater than a predetermined ratio of the number of normal nodes. How to select. 제 1항에 있어서,The method of claim 1, 상기 제 1단계에서 상기 후보 노드와 투표 노드의 분류는 인터넷 프로토콜 주소를 가지고 수행하는 것을 특징으로 하는 서브넷에서 마스터 노드를 선정하는 방법.And in the first step, classifying the candidate node and the voting node is performed with an internet protocol address. 제 2항에 있어서, 상기 후보 노드를 제일 작은 인터넷 프로토콜 주소를 갖는 노드로 선정하고, 상기 제 1단계 이전에 각 정상 노드는 부팅 후에 자신의 인터넷 프로토콜 주소를 포함한 정보를 주기적으로 브로드캐시팅하는 제 1-1단계를 더 구비하는 것을 특징으로 하는 서브넷에서 마스터 노드를 선정하는 방법.3. The method of claim 2, wherein the candidate node is selected as a node having the smallest Internet protocol address, and before the first step, each normal node periodically broadcasts information including its Internet protocol address after booting. The method for selecting a master node in the subnet, characterized in that further comprising step 1-1. 제 1항에 있어서,The method of claim 1, 상기 제 3 단계의 상기 일정 비율을 50%로 하는 것을 특징으로 하는 서브넷에서 마스터 노드를 선정하는 방법.And selecting a master node in the subnet, wherein the predetermined ratio of the third step is 50%. 제 1항에 있어서,The method of claim 1, 상기 제 3단계 이후에 선정된 상기 제 1차 마스터 노드가 자신의 고장에 대비하여 마스터 노드로 순차적으로 운영될 제 2차 마스터 노드를 임의로 선정하는 제 4단계를 더 구비하는 것을 특징으로 하는 서브넷에서 마스터 노드를 선정하는 방법.And further comprising a fourth step in which the first master node selected after the third step arbitrarily selects a second master node to be sequentially operated as a master node in preparation for its failure. How to select a master node. 제 4항에 있어서,The method of claim 4, wherein 상기 제 4단계에서 상기 제 1차 마스터 노드는 제 2차 마스터 노드가 고장 날 경우를 대비하여 제 3차 마스터 노드를 임의로 더 선정하는 것을 특징으로 하는 서브넷에서 마스터 노드를 선정하는 방법.And in the fourth step, the primary master node arbitrarily further selects the third master node in case the secondary master node fails. 제 1항에 있어서,The method of claim 1, 제 3단계 이후에 상기 제 1 마스터 노드는 주기적으로 WIN 메세지를 전송하는 제 5단계를 더 구비하는 것을 특징으로 하는 서브넷에서 마스터 노드를 선정하는 방법.And after the third step, the first master node further comprises a fifth step of periodically transmitting a WIN message. 복수 개의 노드를 갖는 복수 개 서브넷으로 구성되는 네트워크에서, 하나의 서브넷에 있는 복수 개 정상 노드들 중에서 인터넷 프로토콜 주소가 가장 작은 노드를 후보 노드로 선정하고, 나머지 노드들을 투표 노드로 선정한 후 해당 서브넷에서 상기 후보 노드를 마스터 노드로 선정하는 방법으로서,In a network composed of multiple subnets with multiple nodes, the node with the smallest internet protocol address is selected as a candidate node among the plurality of normal nodes in one subnet, the remaining nodes are selected as voting nodes, A method of selecting the candidate node as a master node, 일정한 MASTER_TIMER라는 기간을 설정하는 제 1단계;Setting a period of time called a constant MASTER_TIMER; 상기 투표 노드로부터 투표 메세지를 수신하는 제 2단계;A second step of receiving a voting message from the voting node; 상기 MASTER_TIMER라는 기간 동안 상기 투표 노드로부터 수신된 투표 메세지 수가 복수 개 노드들의 일정 비율 이상이 되는지 카운팅하는 제 3단계; 및Counting whether the number of voting messages received from the voting node is equal to or greater than a predetermined ratio of a plurality of nodes during the MASTER_TIMER period; And 상기 제 3단계에서 일정 비율을 넘을 경우 상기 MASTER_TIMER를 삭제하고 해당 후보 노드를 마스터 노드로 설정하는 제 4단계를 포함하는 것을 특징으로 하는 서브넷에서 마스터 노드를 선정하는 방법.And a fourth step of deleting the MASTER_TIMER and setting a corresponding candidate node as a master node when the ratio exceeds a predetermined ratio in the third step. 제 8항에 있어서,The method of claim 8, 상기 제 3 단계의 상기 일정 비율을 50%로 하는 것을 특징으로 하는 서브넷에서 마스터 노드를 선정하는 방법.And selecting a master node in the subnet, wherein the predetermined ratio of the third step is 50%. 제 8항에 있어서,The method of claim 8, 상기 제 4단계 이후에 선정된 상기 제 1차 마스터 노드가 자신의 고장에 대비하여 마스터 노드로 순차적으로 운영될 제 2차 마스터 노드를 임의로 선정하는 제 5단계를 더 구비하는 것을 특징으로 하는 서브넷에서 마스터 노드를 선정하는 방법.And further comprising a fifth step in which the first master node selected after the fourth step arbitrarily selects a second master node to be sequentially operated as a master node in preparation for its failure. How to select a master node. 제 10항에 있어서,The method of claim 10, 상기 제 5단계에서 상기 제 1차 마스터 노드는 제 2차 마스터 노드가 고장 날 경우를 대비하여 제 3차 마스터 노드를 임의로 더 선정하는 것을 특징으로 하는 서브넷에서 마스터 노드를 선정하는 방법.And in the fifth step, the first master node selects a third master node arbitrarily in case of failure of the second master node. 제 8항에 있어서,The method of claim 8, 제 4단계 이후에 상기 제 1 마스터 노드는 주기적으로 WIN 메세지를 전송하는 제 6단계를 더 구비하는 것을 특징으로 하는 서브넷에서 마스터 노드를 선정하는 방법.And after the fourth step, the first master node further includes a sixth step of periodically transmitting a WIN message.
KR1020090103602A 2009-10-29 2009-10-29 Method to elect master nodes from nodes of a subnet KR101075462B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020090103602A KR101075462B1 (en) 2009-10-29 2009-10-29 Method to elect master nodes from nodes of a subnet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020090103602A KR101075462B1 (en) 2009-10-29 2009-10-29 Method to elect master nodes from nodes of a subnet

Publications (2)

Publication Number Publication Date
KR20110046897A true KR20110046897A (en) 2011-05-06
KR101075462B1 KR101075462B1 (en) 2011-10-24

Family

ID=44238262

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020090103602A KR101075462B1 (en) 2009-10-29 2009-10-29 Method to elect master nodes from nodes of a subnet

Country Status (1)

Country Link
KR (1) KR101075462B1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150102378A (en) * 2014-02-28 2015-09-07 한국전자통신연구원 Apparatus for electing a master in redundancy system
CN111835534A (en) * 2019-04-15 2020-10-27 华为技术有限公司 Cluster control method and related equipment
CN113572820A (en) * 2021-07-01 2021-10-29 西安震有信通科技有限公司 Cluster construction method and device, terminal equipment and storage medium
CN114338275A (en) * 2021-12-31 2022-04-12 北京神经元网络技术有限公司 Management method, device, equipment and storage medium for AUTBUS bus network node
CN115412419A (en) * 2022-08-29 2022-11-29 福建乐摩物联科技有限公司 Ad hoc network master node election and data synchronization method
CN116346624A (en) * 2023-02-24 2023-06-27 安芯网盾(北京)科技有限公司 Subnet master node election method and device and host detection system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6993587B1 (en) * 2000-04-07 2006-01-31 Network Appliance Inc. Method and apparatus for election of group leaders in a distributed network
US7898937B2 (en) * 2006-12-06 2011-03-01 Cisco Technology, Inc. Voting to establish a new network master device after a network failover

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150102378A (en) * 2014-02-28 2015-09-07 한국전자통신연구원 Apparatus for electing a master in redundancy system
CN111835534A (en) * 2019-04-15 2020-10-27 华为技术有限公司 Cluster control method and related equipment
CN113572820A (en) * 2021-07-01 2021-10-29 西安震有信通科技有限公司 Cluster construction method and device, terminal equipment and storage medium
CN113572820B (en) * 2021-07-01 2024-02-02 西安震有信通科技有限公司 Cluster construction method and device, terminal equipment and storage medium
CN114338275A (en) * 2021-12-31 2022-04-12 北京神经元网络技术有限公司 Management method, device, equipment and storage medium for AUTBUS bus network node
CN114338275B (en) * 2021-12-31 2023-09-19 北京神经元网络技术有限公司 AUTBUS bus network node management method, device, equipment and storage medium
CN115412419A (en) * 2022-08-29 2022-11-29 福建乐摩物联科技有限公司 Ad hoc network master node election and data synchronization method
CN116346624A (en) * 2023-02-24 2023-06-27 安芯网盾(北京)科技有限公司 Subnet master node election method and device and host detection system
CN116346624B (en) * 2023-02-24 2024-01-30 安芯网盾(北京)科技有限公司 Subnet master node election method and device and host detection system

Also Published As

Publication number Publication date
KR101075462B1 (en) 2011-10-24

Similar Documents

Publication Publication Date Title
US7944815B2 (en) System and method for network recovery from multiple link failures
US9237092B2 (en) Method, apparatus, and system for updating ring network topology information
US7639605B2 (en) System and method for detecting and recovering from virtual switch link failures
US8325629B2 (en) System and method for assuring the operation of network devices in bridged networks
CN100512292C (en) Apparatus and method of real-time recovering service
EP1655906B1 (en) Stack switch manager protocol with temporary suspension of supervision
JP4790591B2 (en) Ring node device
EP2472795B1 (en) Method and system for re-building single ring network topology
EP1919138B1 (en) A method for implementing backup of the uplink
EP1655905A1 (en) Stack switch manager protocol with automatic assignment of stack switch identifiers
EP1655904A1 (en) Stack switch manager protocol with pass-through mode
KR101075462B1 (en) Method to elect master nodes from nodes of a subnet
US20080019265A1 (en) Systems and methods for configuring a network to include redundant upstream connections using an upstream control protocol
CN105164991A (en) Redundancy network protocol system
JP2007282153A (en) Network system and communications apparatus
CN101729426B (en) Method and system for quickly switching between master device and standby device of virtual router redundancy protocol (VRRP)
GB2386524A (en) Stackable Network Units with Resilience Function
KR20050065346A (en) System and method for managing protocol network failures in a cluster system
CN105119822A (en) Backup group management method and system based on VRRP (Virtual Router Redundancy Protocol)
CN1859423B (en) Synchronous switching method for host and repeat device
JP2007151041A (en) Interconnection switching hub
CN112995002B (en) Switch ring network design method, switch and storage medium
CN108833247B (en) Method and device for re-switching after link failure recovery
JP5518771B2 (en) Redundant network system, termination device and relay point adjacent device
US7554990B2 (en) Static address reservation protocol in a data network

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: 20151001

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20161005

Year of fee payment: 6

FPAY Annual fee payment

Payment date: 20170904

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20181002

Year of fee payment: 8

FPAY Annual fee payment

Payment date: 20191002

Year of fee payment: 9