KR100928024B1 - A computer-readable recording medium recording a method of automatically configuring a network address and a program for realizing the method. - Google Patents

A computer-readable recording medium recording a method of automatically configuring a network address and a program for realizing the method. Download PDF

Info

Publication number
KR100928024B1
KR100928024B1 KR1020070097972A KR20070097972A KR100928024B1 KR 100928024 B1 KR100928024 B1 KR 100928024B1 KR 1020070097972 A KR1020070097972 A KR 1020070097972A KR 20070097972 A KR20070097972 A KR 20070097972A KR 100928024 B1 KR100928024 B1 KR 100928024B1
Authority
KR
South Korea
Prior art keywords
node
network address
subnet
parent
request packet
Prior art date
Application number
KR1020070097972A
Other languages
Korean (ko)
Other versions
KR20090032605A (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 KR1020070097972A priority Critical patent/KR100928024B1/en
Publication of KR20090032605A publication Critical patent/KR20090032605A/en
Application granted granted Critical
Publication of KR100928024B1 publication Critical patent/KR100928024B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5092Address allocation by self-assignment, e.g. picking addresses at random and testing if they are already in use
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5038Address allocation for local use, e.g. in LAN or USB networks, or in a controller area network [CAN]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

본 발명은 전력선 통신 기반의 지능형 홈 네트워킹에 적합한 네트워크 주소 자동 구성 방법 및 그 방법을 컴퓨터에서 실현시키기 위한 프로그램을 기록한 컴퓨터로 판독 가능한 기록매체에 관한 것으로, 서브넷에 신규로 등록되는 노드가 부모 요청 패킷을 방송하는 단계와, 부모 요청 패킷에 대응하여 수신되는 응답 패킷에 포함된 정보를 기반으로 자신의 네트워크 주소를 생성하는 단계를 포함한다.

Figure R1020070097972

홈 네트워크, 노드, 자동 주소 할당

The present invention relates to a method for automatically configuring a network address suitable for intelligent home networking based on power line communication, and to a computer readable recording medium having recorded thereon a program for realizing the method in a computer, wherein a node newly registered in a subnet has a parent request packet. And generating a network address based on the information included in the response packet received in response to the parent request packet.

Figure R1020070097972

Home network, node, automatic address assignment

Description

네트워크 주소 자동 구성 방법 및 그 방법을 실현시키기 위한 프로그램을 기록한 컴퓨터로 판독 가능한 기록매체{METHOD OF NETWORK SELF CONFIGURATION AND COMPUTER READABLE RECORDING MEDIUM THEREFOR}METHOD OF NETWORK SELF CONFIGURATION AND COMPUTER READABLE RECORDING MEDIUM THEREFOR}

본 발명은 홈 네트워크에 관한 것으로, 특히 전력선 통신 기반의 지능형 홈 네트워킹에 적합한 네트워크 주소 자동 구성 방법 및 그 방법을 컴퓨터에서 실현시키기 위한 프로그램을 기록한 컴퓨터로 판독 가능한 기록매체에 관한 것이다.The present invention relates to a home network, and more particularly, to a method for automatically configuring a network address suitable for intelligent home networking based on power line communication, and to a computer readable recording medium having recorded thereon a program for realizing the method in a computer.

일반적으로 지능형 홈 네트워크 환경에서 자동 구성 기술이란 가전기기들과 같은 디지털 기기들을 위해 네트워크 주소를 자동으로 할당하는 기술을 말한다. 상기 네트워크 주소에는 디지털 기기들이 네트워크 층에서 서로 교환하는 제어 패킷의 주소 필드에 포함되는 네트워크 ID와, 다수의 서브넷으로 구성되는 홈 네트워크에서 서브넷들을 구분하기 위한 서브넷 ID가 포함된다. 종래의 자동 구성 기술들은 주소 할당 유형에 따라 크게 세 가지 방식으로 분류될 수 있다.In general, automatic configuration technology in an intelligent home network environment refers to a technology for automatically allocating a network address for digital devices such as home appliances. The network address includes a network ID included in an address field of a control packet that digital devices exchange with each other at a network layer, and a subnet ID for distinguishing subnets in a home network composed of a plurality of subnets. Conventional autoconfiguration techniques can be classified in three ways depending on the type of address allocation.

첫 번째 방식은 랜덤 플러그앤플레이(plug&play) 기술이나 IPv6 비상태형 자 동 주소 할당 메커니즘에 사용되는 주소 할당 유형으로서, 노드에서 자체적으로 주소를 생성하는 방식이다. 이러한 방식은 노드 자체적으로 주소를 생성한 후 중복 검사를 통해 주소를 결정하기 때문에 단순하며 별도의 서버가 필요치 않은 장점이 있다. 그러나 신규 노드가 추가되는 경우 주소를 생성한 후 주소 중복 검사를 위해 방송 패킷을 생성하고 이에 대한 응답을 수집해야하기 때문에 네트워크 트래픽이 가중되는 문제점이 있다.The first method is an address allocation type used in random plug & play technology or IPv6 stateless automatic address allocation mechanism, in which nodes generate their own addresses. This method is simple because the node itself creates an address and then determines the address through redundancy checking, which has the advantage of not requiring a separate server. However, when a new node is added, there is a problem in that network traffic is increased because a broadcast packet must be generated and a response must be collected for address duplication after generating an address.

두 번째는 계층적 주소 할당 방식으로서, 예컨대, 지그비(ZigBee)나 6LoWPAN(IPv6 over Low power WPAN(Wireless Personal Area Network))에서 수식에 의해 계층적으로 주소를 할당하는 방식과 같이, 신규 노드 추가 시 논리적인 트리 구조를 형성하면서 부모 노드로부터 수식에 의해 자식 노드의 주소를 생성하는 방식이다. 비트 기반의 계층적 주소 할당 방식이나 IEEE1394에서 신규 노드 추가 시 논리적인 트리를 형성해 순차적으로 노드 주소를 생성해가는 메커니즘도 상기 계층적 주소 할당 방식에 속한다. 이러한 계층적 주소 할당 방식은 노드 자체적으로 랜덤한 주소나 인터페이스 ID를 이용한 주소를 생성하는 것이 아니라, 단일 수식에 의해 주소가 결정되므로 주소 할당에 일관성이 유지될 수 있으며, 사용된 수식을 이용하여 수신 노드까지 경로를 찾아갈 수 있는 자동 라우팅 기능에 활용될 수 있다. 그러나 각각의 노드에서 복잡한 수식을 관리해야하며, 노드 제거 시에서는 수식에 의한 자동 라우팅 기능을 제공하지 못하게 되므로 논리적인 트리 구조를 항상 유지해야만 하는 문제점이 있다. 또한 상기 계층적 주소 할당 방식은 센서 네트워크나 IEEE1394와 같은 물리적으로 트리 모양의 구조를 형성할 수 있는 환경에는 적 합하지만, 전력선 통신과 같은 버스 토폴로지나 방송형 기반의 네트워크에서는 부모 노드와 자식 노드 간의 관계가 트리 형성에 전혀 반영되지 못하기 때문에 유무선 기기들이 혼재된 홈 네트워킹에 부적합하다. 예컨대, 트리 구조를 갖는 네트워크 토폴로지에서 임의의 위치에 노드들이 하나씩 추가되는 경우 기존의 노드들과 신규 노드 간에 부모와 자식 간의 관계를 형성하기 어렵다. 이는 신규 노드의 부모 요청 패킷의 방송에 대해 임의의 노드가 응답할 수 있어 물리적으로 근거리에 있거나 트리의 동일 가지에 존재하는 노드가 부모 요청 패킷에 응답한다는 보장을 할 수 없기 때문이다.The second is a hierarchical address allocation method, for example when ZigBee or 6LoWPAN (IPv6 over Low power Wireless Personal Area Network (WPAN) assigns addresses hierarchically by equations. It forms a logical tree structure and generates address of child node by formula from parent node. The bit-based hierarchical address allocation scheme or the mechanism of generating node addresses sequentially by forming a logical tree when adding a new node in IEEE1394 also belongs to the hierarchical address allocation scheme. This hierarchical address allocation method does not generate an address using a random address or an interface ID by itself, but the address is determined by a single formula so that the address allocation can be maintained consistently. It can be used for the automatic routing function to get the route to the node. However, complex formulas must be managed at each node, and there is a problem that the logical tree structure must be maintained at all times because the automatic routing function cannot be provided when the node is removed. In addition, the hierarchical address allocation method is suitable for an environment that can form a physical tree-like structure such as a sensor network or IEEE1394, but in a bus topology such as power line communication or a broadcast-based network, between a parent node and a child node The relationship is not reflected in the tree formation at all, making wired and wireless devices unsuitable for mixed home networking. For example, when nodes are added one by one in a network topology having a tree structure, it is difficult to form a relationship between a parent and a child between existing nodes and a new node. This is because any node can respond to the broadcast of a parent request packet of a new node, and there is no guarantee that a node that is physically near or in the same branch of the tree responds to the parent request packet.

마지막으로 서버에서 주소를 자동으로 할당하는 방식이 있는데, 이 방식은 IPv6 상태형 주소 할당 방식처럼 DHCP(Dynamic Host Configuration Protocol) 서버에 의해 신규로 추가되는 노드에 유일한 주소를 하나씩 할당한다. 이 경우 서버에 의해 주소가 할당될 뿐만 아니라 서버에 의해 서브넷 상의 모든 노드들에 대한 관리가 이루어지기 때문에 각 노드의 부담을 줄일 수 있다. 그러나 이러한 방식에서는 서버에 장애가 발생할 경우 전체 네트워크가 마비될 수 있으며, 수많은 새로운 주소 할당을 위해 주소가 길어지게 되는 문제점이 있다.Finally, the server automatically assigns an address, which assigns one unique address to each node newly added by a Dynamic Host Configuration Protocol (DHCP) server, such as IPv6 stateful address allocation. In this case, not only is the address assigned by the server, but the management of all nodes on the subnet is performed by the server, thereby reducing the burden on each node. However, in this method, if the server fails, the entire network may be paralyzed and the address may be long for a large number of new address assignments.

따라서, 본 발명은 상기와 같은 문제점을 해결하기 위해 고안된 것으로, 본 발명의 목적은 전력선 통신 기반의 지능형 홈 네트워킹에 적합한 네트워크 주소 자동 구성 방법 및 그 방법을 컴퓨터에서 실현시키기 위한 프로그램을 기록한 컴퓨터로 판독 가능한 기록매체를 제공함에 있다.Accordingly, the present invention has been devised to solve the above problems, and an object of the present invention is to read a computer address autoconfiguration method suitable for intelligent home networking based on power line communication and a program for realizing the method in a computer. To provide a possible recording medium.

본 발명의 다른 목적은 짧은 주소를 할당하면서도 주소 중복검사를 생략할 수 있는 네트워크 주소 자동 구성 방법 및 그 방법을 컴퓨터에서 실현시키기 위한 프로그램을 기록한 컴퓨터로 판독 가능한 기록매체를 제공함에 있다.Another object of the present invention is to provide a method of automatically configuring a network address that can omit address duplication while allocating a short address, and a computer-readable recording medium having recorded thereon a program for realizing the method in a computer.

본 발명의 또 다른 목적은 노드들의 부하를 줄일 수 있는 간단한 수식을 사용하는 네트워크 주소 자동 구성 방법 및 그 방법을 컴퓨터에서 실현시키기 위한 프로그램을 기록한 컴퓨터로 판독 가능한 기록매체를 제공함에 있다.It is still another object of the present invention to provide a method of automatically configuring a network address using a simple equation that can reduce the load of nodes and a computer-readable recording medium having recorded thereon a program for realizing the method in a computer.

본 발명의 또 다른 목적은 노드들의 이동, 추가, 제거에 유연하게 대응할 수 있는 네트워크 주소 자동 구성 방법 및 그 방법을 컴퓨터에서 실현시키기 위한 프로그램을 기록한 컴퓨터로 판독 가능한 기록매체를 제공함에 있다.Another object of the present invention is to provide a method of automatically configuring a network address that can flexibly respond to movement, addition, and removal of nodes, and a computer-readable recording medium having recorded thereon a program for realizing the method in a computer.

상기와 같은 목적을 달성하기 위하여 본 발명의 실시 예에 따른 네트워크 주소 자동 구성 방법은, 신규노드가 부모 요청 패킷을 방송하는 단계와, 신규노드가 서브넷에 존재하는 부모노드로부터 응답 패킷을 수신하는 단계와, 신규노드가 응답 패킷에 포함된 정보를 기반으로 네트워크 주소를 생성하는 단계를 포함한다. In order to achieve the above object, the method of automatically configuring a network address according to an embodiment of the present invention includes the steps of: a new node broadcasting a parent request packet; and a new node receiving a response packet from a parent node existing in a subnet. And generating, by the new node, a network address based on the information included in the response packet.

바람직하게, 신규노드가 네트워크 주소를 생성하는 단계는 응답 패킷에 포함된 부모노드의 ID(PID), 부모노드의 노드 깊이(d), 부모노드가 다른 노드들에게 응답한 횟수(n)를 하기 수학식에 적용시켜 노드 ID(CID)를 생성하는 단계를 포함한다.Preferably, the step of generating a network address by the new node includes the ID (P ID ) of the parent node, the node depth (d) of the parent node, and the number of times the parent node responds to other nodes (n). It applies to the following equation to generate a node ID (C ID ).

Figure 112007070051048-pat00001
Figure 112007070051048-pat00001

본 발명에 따른 네트워크 주소 자동 구성 방법 및 그 방법을 컴퓨터에서 실현시키기 위한 프로그램을 기록한 컴퓨터로 판독 가능한 기록매체는, 전력선 통신에 기반하므로 물리적 환경에 우수한 메커니즘을 갖는 효과가 있다. 이에 따라 본 발명은 저속의 홈 네트워크 기술을 활용한 홈 네트워크 응용에서 높은 활용도를 갖는 효과가 있다.The method of automatically configuring a network address according to the present invention and a computer-readable recording medium having recorded thereon a program for realizing the method in a computer have an effect of having an excellent mechanism in the physical environment since it is based on power line communication. Accordingly, the present invention has the effect of having high utilization in home network applications using low speed home network technology.

또한 본 발명은 짧은 주소를 할당하면서도 주소 중복검사를 생략할 수 있음과 동시에 간단한 수식을 사용함으로써 노드 및 전체 네트워크 시스템의 부하를 줄일 수 있는 효과가 있다.In addition, the present invention can omit the address duplication while allocating a short address, and at the same time, it is possible to reduce the load of the node and the entire network system by using a simple equation.

이하, 본 발명의 바람직한 실시 예들을 첨부한 도면을 참조하여 상세히 설명한다. 도면들 중 동일한 구성요소들은 가능한 한 어느 곳에서든지 동일한 부호들로 나타내고 있음에 유의해야 한다. 또한 본 발명의 요지를 불필요하게 흐릴 수 있는 공지 기능 및 구성에 대한 상세한 설명은 생략한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the same elements in the figures are represented by the same numerals wherever possible. In addition, detailed descriptions of well-known functions and configurations that may unnecessarily obscure the subject matter of the present invention will be omitted.

도 1은 본 발명의 실시 예에 따른 네트워크 주소 자동 구성 방법에 의해 구성된 네트워크 구조를 나타낸 도면이다.1 is a diagram illustrating a network structure configured by a method for automatically configuring a network address according to an exemplary embodiment of the present invention.

도 1을 참조하면, 깊이(depth)가 0인 노드(100)는 하나의 신규 서브넷에 최초로 등록되는 노드로서, 자신만이 이 서브넷에서 유일한 노드이므로 서브넷에서 사용할 서브넷 ID를 랜덤하게 생성한다. 이때 이웃한 다른 서브넷(들)이 존재하는 경우, 상기 노드(100)는 중복검사를 수행하는데 즉, 이웃한 서브넷(들)이 동일한 서브넷 ID를 사용 중인지의 여부를 검사한다.Referring to FIG. 1, a node 100 having a depth of 0 is a node that is initially registered in a new subnet, and since it is the only node in this subnet, randomly generates a subnet ID to be used in the subnet. At this time, if there are other neighboring subnet (s), the node 100 performs redundancy check, i.e., whether the neighboring subnet (s) are using the same subnet ID.

만약 중복 검사 과정에서 동일한 서브넷 ID를 다른 서브넷에서 사용하는 경우에는 새로운 서브넷 ID를 역시 랜덤하게 생성하고 다시 중복 검사 과정을 반복하게 되며, 유일한 서브넷 ID를 생성한 경우에는 생성된 서브넷 ID를 사용한다. 이러한 중복검사는 최초로 서브넷에 등록되는 노드에 한해서만 수행된다.If the same subnet ID is used in another subnet during the duplicate check process, a new subnet ID is also randomly generated and the duplicate check process is repeated again. If the unique subnet ID is generated, the generated subnet ID is used. This redundancy check is only performed for the first node registered in the subnet.

서브넷 ID 생성을 완료한 노드(100)는 노드 ID를 생성한다. 서브넷에 최초로 등록한 노드(100)는 자신의 노드 ID를 0으로 생성한다.After the generation of the subnet ID, the node 100 generates a node ID. The first node 100 registered in the subnet generates its own node ID as zero.

추가로 서브넷에 등록되는 노드는 부모 요청 패킷을 방송하는데, 이에 대해 서브넷 내의 임의의 노드가 응답하면 자신이 사용할 서브넷 ID를 알 수 있다. 또한 상기 부모 요청 패킷에 대한 응답을 보내오는 노드는 주소 할당에 있어서 신규 노드의 부모 노드가 된다. 응답을 보내오는 노드가 두 개 이상인 경우, 노드 ID가 가장 적은 노드가 신규 노드의 부모가 된다.In addition, a node registered to a subnet broadcasts a parent request packet, and if any node in the subnet responds, it knows its own subnet ID. In addition, the node sending a response to the parent request packet becomes the parent node of the new node in address assignment. If more than one node sends a response, the node with the lowest node ID is the parent of the new node.

상기 부모 요청에 대한 응답 패킷에는 서브넷 ID, 응답 노드 자신의 ID(PID), 응답 노드 자신의 깊이(d) 및 응답 노드가 응답한 횟수(n)가 포함된다. 이러한 응답 패킷을 수신한 신규 노드는 수신된 응답 패킷에 포함된 정보를 기반으로 자신의 노드 ID(CID)를 다음 [수학식 1]에 의해 생성하게 된다.The response packet to the parent request includes a subnet ID, an ID (P ID ) of the response node itself, a depth (d) of the response node itself, and a number (n) of responses by the response node. The new node receiving the response packet generates its node ID (C ID ) based on Equation 1 based on the information included in the received response packet.

Figure 112007070051048-pat00002
Figure 112007070051048-pat00002

이때, 부모 노드와 자식 노드 간의 트리의 깊이에 따라 16비트의 짧은 주소 중 하위 비트 일부가 동일하도록 주소가 할당되는데, 상기 [수학식 1]에 의해 자식 노드는 부모 노드보다 주소가 2비트 더 늘어나며, 부모 노드와 자식 노드간의 동일비트 상속이 일어나게 된다. 또한 자식 노드는 상기 응답 패킷에 포함된 부모 노드의 깊이에 1을 더한 값을 자신의 깊이로 사용한다.At this time, an address is allocated such that a part of the lower bits of the 16-bit short address is the same according to the depth of the tree between the parent node and the child node. According to [Equation 1], the child node has two more addresses than the parent node. The same bit inheritance occurs between the parent and child nodes. In addition, the child node uses a value obtained by adding 1 to the depth of the parent node included in the response packet as its depth.

예컨대 도 1에서 노드 ID가 41인 부모 노드(110)로부터 응답을 받은 두 개의 노드(120, 130)는 부모의 깊이가 3(d=3)이고, 각각 첫 번째 응답(n=1)과 두 번째 응답(n=2)에 해당하므로, 상기 [수학식 1]에 의해 두 노드의 노드 ID는 각각 105와 169가 된다.For example, in FIG. 1, the two nodes 120 and 130 that have received a response from the parent node 110 having the node ID of 41 have a parent depth of 3 (d = 3), and the first response (n = 1) and two respectively. Since the second response (n = 2), the node IDs of the two nodes are 105 and 169, respectively, by Equation 1 above.

또한 이미 노드 ID가 각각 25, 41인 자식 노드를 갖는 노드 ID가 9인 부모 노드(140)로부터 응답을 받은 노드(150)는 부모 노드의 깊이가 2이고, 세 번째 응답에 해당하므로 상기 [수학식 1]에 의해 노드 ID로 57을 생성한다.In addition, the node 150 that has received a response from the parent node 140 having a node ID of 9 and a node ID of 9 having a node ID of 25 and 41, respectively, has a depth of 2 and corresponds to a third response. Equation 1] generates 57 as the node ID.

이와 마찬가지로 노드 ID가 31인 노드(160)와 112인 노드(170)는 각각 노드 ID가 15, 48인 부모 노드(180, 190)로부터 응답을 받아 상기 [수학식 1]에 의해 노드 ID를 자체 생성한 경우이다.Similarly, node 160 having node ID 31 and node 170 having 112 receive responses from parent nodes 180 and 190 having node IDs 15 and 48, respectively. This is the case.

한편, 모든 노드는 부모 요청 패킷에 대한 응답을 할 수 있으나 최대 4개까지의 자식 노드에게만 응답할 수 있다. 이에 따라 4개의 자식 노드를 보유한 부모 노드는 응답 패킷 전달에 참여하지 못하게 된다. 한 노드가 최대 4개의 자식 노드만을 둘 수 있도록 하는 것은 네트워크 ID의 하위 비트가 트리 깊이에 따라 2비트씩 늘어나면서 부모 노드와 자식 노드 간에 하위 비트가 동일하도록 만들기 위함이다.On the other hand, all nodes can respond to the parent request packet, but can respond only to up to four child nodes. As a result, a parent node having four child nodes cannot participate in response packet delivery. One node can only have a maximum of four child nodes, so that the lower bits of the network ID are increased by 2 bits according to the tree depth, so that the lower bits are the same between the parent node and the child nodes.

예컨대, 도 1에서 노드 ID가 각각 0인 노드와 1인 노드는 이미 4개의 자식 노드를 가지고 있으므로, 신규로 추가되는 노드에 대한 부모 요청 패킷에 대해 응답할 수 없다. 물론 상기와 같은 응답 횟수의 제한은 적용되는 서브넷의 특성이나 서브넷을 구성하는 노드의 개수에 따라 적절히 변경될 수 있다.For example, in FIG. 1, a node having a node ID of 0 and a node having 1 already have four child nodes, and thus cannot respond to a parent request packet for a newly added node. Of course, the above limit of the number of responses may be appropriately changed according to the characteristics of the subnet to be applied or the number of nodes constituting the subnet.

도 2는 본 발명의 실시 예에 따른 네트워크 주소 자동 구성 방법에서 신규 노드의 주소 생성 과정을 나타낸 흐름도이다.2 is a flowchart illustrating an address generation process of a new node in a method of automatically configuring a network address according to an embodiment of the present invention.

도 2를 참조하면, S210 단계에서 서브넷에 신규로 등록되는 노드(이하 '노드a'라 함)는 부모 요청 패킷을 방송한다.Referring to FIG. 2, in step S210, a node newly registered in a subnet (hereinafter referred to as 'node a') broadcasts a parent request packet.

S220 단계에서 상기 노드a는 상기 요청에 대한 응답 패킷이 수신되는지를 판단한다.In step S220, the node a determines whether a response packet to the request is received.

판단 결과, 응답 패킷이 수신되지 않으면 S230 단계에서 상기 노드a는 자신이 해당 서브넷에 최초로 등록되는 노드인 것으로 인식하여 서브넷 ID를 랜덤하게 생성한다.As a result of the determination, if a response packet is not received, in step S230, the node a recognizes that the node is the first node registered in the corresponding subnet and randomly generates a subnet ID.

이어서 S240 단계에서 상기 노드a는 상기 생성된 서브넷 ID가 이웃 서브넷에서 사용 중인지의 여부를 판단한다.In operation S240, the node a determines whether the generated subnet ID is in use in a neighboring subnet.

판단 결과, 상기 생성된 서브넷 ID와 동일한 서브넷 ID를 다른 서브넷에서 사용하는 경우, 상기 노드a는 상기 S230 단계로 돌아가 서브넷 ID를 랜덤하게 생성하고 생성된 서브넷 ID가 이웃 서브넷에서 사용 중인지의 여부를 판단하는 일련의 과정을 유일한 서브넷 ID를 생성할 때까지 반복한다.As a result of the determination, when the same subnet ID as the generated subnet ID is used in another subnet, the node a returns to step S230 to randomly generate the subnet ID and determines whether the generated subnet ID is used in the neighboring subnet. Repeat this process until you create a unique subnet ID.

한편 상기 판단 결과, 상기 생성된 서브넷 ID를 사용하는 다른 서브넷이 없는 경우, S250 단계에서 상기 노드a는 상기 생성된 서브넷 ID를 자신의 서브넷 ID로 사용한다.On the other hand, if there is no other subnet using the generated subnet ID as a result of the determination, the node a uses the generated subnet ID as its subnet ID in step S250.

이어서 S260 단계에서 상기 노드a는 자신의 노드 ID값과 자신의 노드 깊이를 '0'으로 설정한다.Subsequently, in step S260, the node a sets its node ID value and its node depth to '0'.

한편 상기 S220 단계에서의 판단 결과, 상기 요청에 대한 응답 패킷이 수신되면 S270 단계에서 상기 노드a는 응답 패킷을 보내온 노드를 부모 노드로 설정한다. 이때 상기 노드a는 부모 노드로 설정된 노드에게 자식 노드가 추가되었음을 알리는 네트워크 주소 생성 완료신호(예컨대, ack 승인 신호)를 전송할 수 있다.On the other hand, if a response packet for the request is received as a result of the determination in step S220, the node a sets the node that sent the response packet as a parent node in step S270. In this case, the node a may transmit a network address generation completion signal (for example, an ack acknowledgment signal) indicating that the child node has been added to the node configured as the parent node.

전술한 바와 같이, 응답 패킷을 보내온 노드가 복수 개인 경우, 상기 노드a는 응답을 보내온 노드 중 가장 적은 노드 ID를 갖는 노드를 자신의 부모 노드로 설정한다.As described above, when there are a plurality of nodes that have sent a response packet, the node a sets the node having the smallest node ID among the nodes which have sent the response as its parent node.

이어서 S280 단계에서 상기 노드a는 부모 노드에서 보내온 응답 패킷에 포함된 부모 노드의 정보를 기반으로 자신의 네트워크 주소를 생성한다. 전술한 바와 같이, 상기 응답 패킷에는 서브넷 ID, 응답 노드의 ID, 응답 노드의 노드 깊이, 응답 노드가 자식들에 응답한 횟수가 포함된다.Subsequently, in step S280, the node a generates its own network address based on the information of the parent node included in the response packet sent from the parent node. As described above, the response packet includes the subnet ID, the ID of the response node, the node depth of the response node, and the number of times the response node responded to the children.

상기 노드a는 응답 패킷에 포함된 서브넷 ID를 동일하게 자신의 서브넷 ID로 설정하며, 응답 노드, 즉, 부모 노드의 ID와 깊이, 응답 횟수를 상기 [수학식 1]에 적용하여 자신의 노드 ID를 생성한다.The node a equally sets the subnet ID included in the response packet to its own subnet ID, and applies the ID, depth, and number of responses of the response node, that is, the parent node, to the above [Equation 1]. Create

이상에서는 본 발명의 실시 예에 따른 네트워크 자동 구성 방법에서, 서브넷에 신규로 추가되는 노드의 네트워크 주소 생성 과정에 대해 설명하였다.In the above, in the automatic network configuration method according to an embodiment of the present invention, a process of generating a network address of a node newly added to a subnet has been described.

한편, 전술한 바와 같이, 모든 노드는 서브넷에 신규로 추가되는 노드로부터 방송되는 부모 요청 패킷에 대한 응답을 할 수 있는데, 이에 대한 일련의 과정들은 도 3을 참고하여 더 상세히 설명하기로 한다.Meanwhile, as described above, all nodes may respond to a parent request packet broadcast from a node newly added to a subnet, and a series of processes thereof will be described in more detail with reference to FIG. 3.

도 3은 본 발명의 실시 예에 따른 네트워크 주소 자동 구성 방법에서 노드의 부모 요청 패킷에 대한 응답 과정을 나타낸 흐름도이다.3 is a flowchart illustrating a response process for a parent request packet of a node in a method of automatically configuring a network address according to an exemplary embodiment of the present invention.

도 3을 참조하면, S310 단계에서 서브넷에 등록을 마친 노드(이하 '노드b'라 함)는 신규로 등록되는 노드로부터 방송된 부모 요청 패킷을 수신하면, S320 단계에서 상기 노드b는 자신의 자식노드가 네 개인지의 여부를 판단한다. 일례로, 기존에 응답한 횟수(n)가 설정값(예컨대, 4)보다 작은지를 판단한다. Referring to FIG. 3, when a node (hereinafter referred to as 'node b') that is registered in a subnet in step S310 receives a parent request packet broadcast from a newly registered node, in step S320, the node b has its own child. Determine if there are four nodes. In one example, it is determined whether the number n of previously answered is smaller than the set value (eg, 4).

상기 판단 결과, 자신의 자식노드가 네 개가 아닌 경우, 즉, 응답한 횟수(n)가 설정값(예컨대, 4)보다 작은 경우 S330 단계에서 상기 노드b는 상기 부모 요청 패킷을 방송한 노드에게 응답 패킷을 전송한다. 이때 상기 노드b는 응답 패킷에 서브넷 ID, 자신의 노드 ID, 노드 깊이, 자식 노드에게 응답한 횟수를 포함시켜 전송한다. As a result of the determination, when there are not four child nodes, that is, when the number of responses n is smaller than the set value (for example, 4), the node b responds to the node broadcasting the parent request packet in step S330. Send the packet. At this time, the node b transmits the response packet including the subnet ID, its node ID, node depth, and the number of times it has responded to the child node.

이어서 S340 단계에서 상기 노드b는 상기 응답 패킷에 대한 네트워크 주소 생성 완료신호(예컨대, ack 신호)가 수신되는지를 판단한다.Subsequently, in step S340, the node b determines whether a network address generation completion signal (eg, an ack signal) for the response packet is received.

판단 결과, 네트워크 주소 생성 완료신호(예컨대, ack 승인 신호)가 수신되면 S350 단계에서 상기 노드b는 기존 응답 횟수(n)에 1을 더해 응답한 횟수(n)를 갱신한다. 만일 네트워크 주소 생성 완료신호(예컨대, ack 승인 신호)가 수신되지 않으면 기존 응답 횟수(n)는 그대로 유지된다.As a result of the determination, when a network address generation completion signal (for example, an ack acknowledgment signal) is received, in step S350, the node b updates the number n of responses by adding 1 to the existing number n of responses. If the network address generation completion signal (eg, ack acknowledgment signal) is not received, the existing response number n is maintained.

한편 S320 단계에서의 판단 결과, 자식노드가 네 개인 경우, 즉, 설정값(예컨대, 4)인 경우 노드b는 부모 요청에 대한 응답을 하지 않고 프로세스를 종료한다.On the other hand, as a result of the determination in step S320, if there are four child nodes, that is, a set value (for example, 4), the node b terminates the process without responding to the parent request.

상술한 바와 같은 본 발명의 방법은 프로그램으로 구현되어 컴퓨터로 읽을 수 있는 형태로 기록매체(예컨대, 씨디롬, 램, 플로피 디스크, 하드 디스크, 광자기 디스크, 플래쉬 메모리 등)에 저장될 수 있다.As described above, the method of the present invention may be implemented as a program and stored in a recording medium (eg, CD-ROM, RAM, floppy disk, hard disk, magneto-optical disk, flash memory, etc.).

이상에서는 본 발명에서 특정의 바람직한 실시 예에 대하여 도시하고 또한 설명하였다. 그러나 본 발명은 상술한 실시 예에 한정되지 아니하며, 특허 청구의 범위에서 첨부하는 본 발명의 요지를 벗어남이 없이 당해 발명이 속하는 기술 분야에서 통상의 지식을 가진 자라면 누구든지 다양한 변형 실시가 가능할 것이다.In the above, specific preferred embodiments of the present invention have been illustrated and described. However, the present invention is not limited to the above-described embodiments, and various modifications can be made by any person having ordinary skill in the art without departing from the gist of the present invention attached to the claims. .

도 1은 본 발명의 실시 예에 따른 네트워크 자동 구성 방법에 의해 구성된 네트워크 구조를 나타낸 도면.1 is a diagram illustrating a network structure configured by a network automatic configuration method according to an embodiment of the present invention.

도 2는 본 발명의 실시 예에 따른 네트워크 자동 구성 방법에서 신규 노드의 주소 생성 과정을 나타낸 흐름도.2 is a flowchart illustrating an address generation process of a new node in a method for automatically configuring a network according to an exemplary embodiment of the present invention.

도 3은 본 발명의 실시 예에 따른 네트워크 자동 구성 방법에서 노드의 부모 요청 패킷에 대한 응답 과정을 나타낸 흐름도.3 is a flowchart illustrating a response process for a parent request packet of a node in a method for automatically configuring a network according to an exemplary embodiment of the present invention.

Claims (16)

지능형 홈 네트워크 환경에서 서브넷에 신규로 등록하는 신규노드가 네트워크 주소를 자동으로 생성하는 네트워크 주소 자동 구성 방법에 있어서, In the intelligent home network environment, a new node registering a subnet automatically generates a network address automatically in the network address configuration method, 상기 신규노드가 부모 요청 패킷을 방송하는 단계;The new node broadcasting a parent request packet; 상기 신규노드가 서브넷에 존재하는 부모노드로부터 응답 패킷을 수신하는 단계; 및Receiving, by the new node, a response packet from a parent node existing in a subnet; And 상기 신규노드가 상기 응답 패킷에 포함된 정보를 기반으로 네트워크 주소를 생성하는 단계; Generating, by the new node, a network address based on information included in the response packet; 를 포함하는 것을 특징으로 하는 네트워크 주소 자동 구성 방법.Network address automatic configuration method comprising the. 제 1 항에 있어서, 상기 신규노드가 네트워크 주소를 생성하는 단계가:The method of claim 1 wherein the new node generates a network address includes: 상기 응답 패킷에 포함된 부모노드의 ID(PID), 부모노드의 노드 깊이(d), 부모노드가 다른 노드들에게 응답한 횟수(n)를 하기 [수학식 2]에 적용시켜 노드 ID(CID)를 생성하는 단계;The ID (P ID ) of the parent node included in the response packet, the node depth (d) of the parent node, and the number of times the parent node responds to other nodes (n) are applied to Equation 2 below to represent the node ID ( Generating a C ID ); 를 포함하는 것을 특징으로 하는 네트워크 주소 자동 구성 방법.Network address automatic configuration method comprising the. [수학식 2][Equation 2]
Figure 112009035872884-pat00003
Figure 112009035872884-pat00003
제 2 항에 있어서, 상기 신규노드가 노드 ID(CID)를 생성하는 단계가:3. The method of claim 2 wherein the new node generates a node ID (C ID ): 상기 응답 패킷이 복수 개인 경우, 상기 복수 개의 응답 패킷에 포함된 부모노드가 다른 노드들에게 응답한 횟수(n)를 확인하여, 응답한 횟수(n)가 가장 적은 응답 패킷을 이용해 노드 ID(CID)를 생성하는 단계인 것을 특징으로 하는 네트워크 주소 자동 구성 방법.When there are a plurality of response packets, the number of responses of the parent node included in the plurality of response packets to the other nodes (n) is checked, and the node ID (C) is obtained using the response packet having the smallest number of responses (n). And ID ) is generated. 제 1 항에 있어서, The method of claim 1, 상기 신규노드가 네트워크 주소를 생성한 후, 상기 응답 패킷을 보낸 부모노드에게 네트워크 주소 생성 완료신호를 전송하는 단계;After the new node generates a network address, transmitting a network address generation completion signal to a parent node that has sent the response packet; 를 더 포함하는 것을 특징으로 하는 네트워크 주소 자동 구성 방법.Method for automatically configuring the network address, characterized in that it further comprises. 지능형 홈 네트워크 환경에서 서브넷에 신규로 등록하는 제1 노드가 네트워크 주소를 자동으로 생성하는 네트워크 주소 자동 구성 방법에 있어서, In the intelligent home network environment, a network address autoconfiguration method for automatically generating a network address by a first node newly registering to a subnet, 상기 제1 노드가 부모 요청 패킷을 방송하는 단계;The first node broadcasting a parent request packet; 상기 제1 노드가 상기 방송한 부모 요청 패킷에 대한 응답 패킷이 없는 경우, 서브넷 ID를 랜덤하게 생성하는 단계;Randomly generating a subnet ID when the first node does not have a response packet to the broadcasted parent request packet; 상기 제1 노드가 생성한 서브넷 ID가 이웃 서브넷에서 사용 중인지의 여부를 판단하여 유일한 서브넷 ID를 자신의 서브넷 ID로 설정하는 단계; 및Determining whether the subnet ID generated by the first node is in use in a neighboring subnet and setting a unique subnet ID to its own subnet ID; And 상기 제1 노드가 자신의 노드 ID 및 노드 깊이(d)를 '0'으로 생성하는 단계;Generating, by the first node, its node ID and node depth d to '0'; 를 포함하는 것을 특징으로 하는 네트워크 주소 자동 구성 방법.Network address automatic configuration method comprising the. 제 5 항에 있어서, 상기 네트워크 주소 자동 구성 방법이:6. The method of claim 5, wherein the network address autoconfiguration method comprises: 상기 제1 노드가 서브넷에 신규로 등록하는 제2 노드로부터 방송된 부모 요청 패킷을 수신하는 단계;Receiving a broadcasted parent request packet from a second node that the first node newly registers in a subnet; 상기 제1 노드가 상기 부모 요청 패킷을 수신하면, 기존에 응답한 횟수(n)가 설정값보다 작은지를 판단하여 설정값보다 작은 경우 상기 부모 요청 패킷을 방송한 제2 노드에게 응답 패킷을 전송하고, 기존에 응답한 횟수(n)가 설정값인 경우 상기 부모 요청 패킷을 무시하는 단계; 및When the first node receives the parent request packet, it is determined whether the number n of previous responses is smaller than a setting value, and when the first node receives the parent request packet, when the first node receives the parent request packet, the first node transmits a response packet to the second node broadcasting the parent request packet. Ignoring the parent request packet when the number of previously answered n is a set value; And 상기 제1 노드가 상기 제2 노드로부터 네트워크 주소 생성 완료신호를 수신하면 기존 응답 횟수(n)에 1을 더해 응답한 횟수(n)를 갱신하는 단계;When the first node receives a network address generation completion signal from the second node, updating the number n of responses by adding 1 to the number of existing responses n; 를 더 포함하는 것을 특징으로 하는 네트워크 주소 자동 구성 방법.Method for automatically configuring the network address, characterized in that it further comprises. 제 6 항에 있어서, 상기 제1 노드가 제2 노드에게 전송하는 응답 패킷에는,The response packet of claim 6, wherein the response packet that the first node sends to the second node includes: 서브넷 ID, 자신의 노드 ID(PID), 노드 깊이(d), 부모 요청 패킷에 응답한 횟수(n) 정보를 포함하는 것을 특징으로 하는 네트워크 주소 자동 구성 방법.And a subnet ID, its node ID (P ID ), a node depth (d), and the number of times of responding to the parent request packet (n). 제1항 내지 제4항 중 어느 한 항에 기재된 네트워크 주소 자동 구성 방법을 컴퓨터에서 실행시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체.A computer-readable recording medium having recorded thereon a program for executing the method of automatically configuring a network address according to any one of claims 1 to 4. 제5항 내지 제7항 중 어느 한 항에 기재된 네트워크 주소 자동 구성 방법을 컴퓨터에서 실행시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체.A computer-readable recording medium having recorded thereon a program for executing the method of automatically configuring a network address according to any one of claims 5 to 7. 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete
KR1020070097972A 2007-09-28 2007-09-28 A computer-readable recording medium recording a method of automatically configuring a network address and a program for realizing the method. KR100928024B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020070097972A KR100928024B1 (en) 2007-09-28 2007-09-28 A computer-readable recording medium recording a method of automatically configuring a network address and a program for realizing the method.

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020070097972A KR100928024B1 (en) 2007-09-28 2007-09-28 A computer-readable recording medium recording a method of automatically configuring a network address and a program for realizing the method.

Publications (2)

Publication Number Publication Date
KR20090032605A KR20090032605A (en) 2009-04-01
KR100928024B1 true KR100928024B1 (en) 2009-11-24

Family

ID=40759391

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020070097972A KR100928024B1 (en) 2007-09-28 2007-09-28 A computer-readable recording medium recording a method of automatically configuring a network address and a program for realizing the method.

Country Status (1)

Country Link
KR (1) KR100928024B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102178325B1 (en) * 2014-09-05 2020-11-12 삼성에스디에스 주식회사 Method that register many IP on single port of network board

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060088254A (en) * 2005-02-01 2006-08-04 삼성전자주식회사 Method for assigning address of mobile node
KR20070064227A (en) * 2005-12-16 2007-06-20 삼성전자주식회사 Method for network id collision-detection and the network id anti-collision
JP2007228578A (en) 2006-02-17 2007-09-06 Matsushita Electric Ind Co Ltd System and method for self-configuring adaptive wireless router network
KR20070107486A (en) * 2006-05-03 2007-11-07 삼성전자주식회사 Address assignment method for wireless personal area network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060088254A (en) * 2005-02-01 2006-08-04 삼성전자주식회사 Method for assigning address of mobile node
KR20070064227A (en) * 2005-12-16 2007-06-20 삼성전자주식회사 Method for network id collision-detection and the network id anti-collision
JP2007228578A (en) 2006-02-17 2007-09-06 Matsushita Electric Ind Co Ltd System and method for self-configuring adaptive wireless router network
KR20070107486A (en) * 2006-05-03 2007-11-07 삼성전자주식회사 Address assignment method for wireless personal area network

Also Published As

Publication number Publication date
KR20090032605A (en) 2009-04-01

Similar Documents

Publication Publication Date Title
JP5047785B2 (en) Method for assigning addresses to nodes in a wireless network
KR100746471B1 (en) Sensor node id assignment method and method for hierarchical configuration of wireless sensor networks using it
Al-Mistarihi et al. Tree based dynamic address autoconfiguration in mobile ad hoc networks
KR20070094433A (en) Tree-guided distributed link state routing method
Hussain et al. SAAMAN: scalable address autoconfiguration in mobile ad hoc networks
JP2009505445A (en) Method for assigning addresses to nodes in a wireless network
US20130003596A1 (en) Method and device for relocating address space
CN108200628B (en) Wireless ad hoc networking method of linear topological structure
KR100825735B1 (en) Method for Address Space Management about nodes incapable of communication over ZigBee Network
Ozturk et al. A scalable distributed dynamic address allocation protocol for ad-hoc networks
Fang et al. A preemptive distributed address assignment mechanism for wireless sensor networks
JP5673840B2 (en) Node device and communication method
Shin et al. Spectrum: Lightweight hybrid address autoconfiguration protocol based on virtual coordinates for 6LoWPAN
Singh et al. Address allocation for MANET merge and partition using cluster based routing
KR100928024B1 (en) A computer-readable recording medium recording a method of automatically configuring a network address and a program for realizing the method.
Sheu et al. A distributed IP address assignment scheme in ad hoc networks
Ye et al. A survey of addressing algorithms for wireless sensor networks
Munjal et al. Review of stateful address auto configuration protocols in MANETs
Taghiloo et al. New approach for address auto-configuration in manet based on virtual address space mapping (vasm)
Hickman et al. A variable length address assignment scheme for 6LoWPAN
Li et al. Domain‐based autoconfiguration framework for large‐scale MANETs
CN112492057B (en) Address self-configuration method of fixed root node
CN114866111B (en) Address binding method, system, main control node and equipment node
KR100749822B1 (en) Method of managing the data-traffic of node in sensor network
Munjal Address Auto-Configuration Protocols and their message complexity in Mobile Adhoc Networks

Legal Events

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

Payment date: 20121113

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20131010

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20141118

Year of fee payment: 6

FPAY Annual fee payment

Payment date: 20151113

Year of fee payment: 7

LAPS Lapse due to unpaid annual fee