KR20040107585A - The method for generating IPv6 address using interface ID and device thereof - Google Patents

The method for generating IPv6 address using interface ID and device thereof Download PDF

Info

Publication number
KR20040107585A
KR20040107585A KR1020030036325A KR20030036325A KR20040107585A KR 20040107585 A KR20040107585 A KR 20040107585A KR 1020030036325 A KR1020030036325 A KR 1020030036325A KR 20030036325 A KR20030036325 A KR 20030036325A KR 20040107585 A KR20040107585 A KR 20040107585A
Authority
KR
South Korea
Prior art keywords
unique
address
bits
value
bit
Prior art date
Application number
KR1020030036325A
Other languages
Korean (ko)
Other versions
KR100547119B1 (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 KR1020030036325A priority Critical patent/KR100547119B1/en
Publication of KR20040107585A publication Critical patent/KR20040107585A/en
Application granted granted Critical
Publication of KR100547119B1 publication Critical patent/KR100547119B1/en

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B27/00Planetaria; Globes
    • G09B27/04Star maps
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B5/00Electrically-operated educational appliances
    • G09B5/06Electrically-operated educational appliances with both visual and audible presentation of the material to be studied

Abstract

PURPOSE: A method and apparatus for creating an IPv6 address using an interface ID is provided to minimize the possibility of duplication by creating a unique IPv6 address by using an interface ID. CONSTITUTION: In the case of a link local address(430), an IPv6 address is created as a unique ID bit stream, extracted as much as 54 bits from the uppermost bit of a unique ID value, is combined with a 54-bit zero field(432) from the 11th bit to the 64th bit. In the case of a site local address(440), an IPv6 address is created as a unique ID bit stream, extracted as much as 38 bits from the uppermost bit of a unique ID value, is combined with a 38-bit zero field(442) from the 11th bit to the 48th bit. In the case of a global address(450), an IPv6 address is created as a unique ID bit stream, extracted as much as (64-n) bits from the uppermost bit of a unique ID value, is combined with a (64-n)-bit zero field(452) from the n+1th bit to the 64th bit.

Description

인터페이스 ID를 이용하여 IPv6 주소를 생성하는 방법 및 그 장치{The method for generating IPv6 address using interface ID and device thereof}The method for generating IPv6 address using interface ID and device approximately}

본 발명은 IPv6 에 관한 것으로, 보다 상세하게는 인터페이스 ID를 이용하여 IPv6 주소를 생성하는 방법 및 그 장치에 관한 것이다.The present invention relates to IPv6, and more particularly, to a method and apparatus for generating an IPv6 address using an interface ID.

IPv6는 Internet Protocol for version 6의 약어로 1996년 IETF에서 제안된 네트워크계층의 국제 표준 프로토콜이다. IPv6는 32비트 주소 길이를 가지는 IPv4 프로토콜을 4배 확장한 차세대 주소 체계로서, 128비트의 주소 길이를 사용하여 약 3.4 x 1038(2128)개의 주소를 생성할 수 있다. 이러한 IPv6의 주소체계는 IP 주소의 고갈 문제를 근본적으로 해결할 수 있을 뿐만 아니라, 보안 문제, 라우팅의 효율성 문제, QoS(Quality of Service)의 보장, 무선 인터넷의 지원 등 다양한 기능을 제공할 수 있어, 차세대 인터넷 구현의 핵심적인 요소로 인식되고 있다.IPv6 stands for Internet Protocol for version 6, and is an international standard protocol for the network layer proposed by the IETF in 1996. IPv6 is a next-generation address system that quadruples the IPv4 protocol with 32-bit address length, and can generate approximately 3.4 x 10 38 (2 128 ) addresses using a 128-bit address length. The IPv6 addressing system not only solves the problem of IP address depletion, but also provides various functions such as security problem, routing efficiency problem, guarantee of quality of service (QoS), and support of wireless Internet. It is recognized as a key element of the next generation Internet implementation.

나아가, 현재의 IPv4에서는 시스템을 설정할 때 IP 주소, 네트워크 마스크, 게이트웨이 주소를 설정해야 하지만, IPv6에서는 로컬 IPv6 주소를 자동으로 생성할 수 있다. 즉, 호스트는 자신의 인터페이스 ID(interface ID: MAC 주소를 변환하여 생성함)와 라우터가 제공하는 네트워크 프리픽스(prefix: IPv6 주소 앞 부분에 위치하는 비트의 집합으로 주소의 유형에 따라 결정됨)을 결합하여 자체적으로 IPv6 주소를 생성할 수 있다. 이로써, 별도의 서버를 설치하지 않고도 호스트 스스로 자신의 주소를 생성할 수 있다.Furthermore, in current IPv4, the IP address, network mask, and gateway address must be set when configuring the system, but in IPv6, local IPv6 addresses can be generated automatically. That is, the host combines its interface ID (generated by translating the MAC address) and the network prefix provided by the router (depending on the type of address, which is a set of bits located before the IPv6 address). Can generate IPv6 addresses on its own. This allows the host to generate its own address without installing a separate server.

하지만, 이러한 IPv6 주소 자동 생성은, 주소의 고유성(Uniqueness)를 확인하기 위해 주소의 중복여부를 체크하는 과정(이하, 'DAD 과정'이라 한다: Duplication Address Detection)을 필수적으로 거쳐야 한다.However, such automatic generation of IPv6 addresses must go through a process of checking for duplicate addresses (hereinafter, referred to as a 'DAD process': Duplication Address Detection) to check the uniqueness of the address.

도 1은 종래의 IPv6 주소의 생성방법을 나타낸 플로우챠트이다.1 is a flowchart illustrating a conventional method of generating an IPv6 address.

도 1을 참조하면, 임시 IPv6 주소를 생성한 후(101 단계), 중복된 주소가 존재하는지를 검색하기 위한 NS(Neighbor Solicitation) 메시지를 전송한다(102 단계). 일정 기간 내에 동일한 주소를 가진 호스트로부터 중복된 주소가 있음을 알리는 NA(Neighbor Advertisement) 메시지를 받지 못하면(103 단계), 중복된 주소가 존재하지 않으므로, 링크로컬 주소를 생성한다(104 단계). 만약, 일정 기간 내에 NA 메시지를 받으면, 중복된 주소가 존재하므로, 자동 주소 생성을 중지한다(105 단계).Referring to FIG. 1, after generating a temporary IPv6 address (step 101), a neighbor solicitation (NS) message for searching for a duplicate address is transmitted (step 102). If a NA (Neighbor Advertisement) message indicating that there is a duplicate address is received from a host having the same address within a predetermined period (step 103), since the duplicate address does not exist, a link local address is generated (step 104). If the NA message is received within a certain period, since duplicate addresses exist, automatic address generation is stopped (step 105).

이와 같이, IPv6 주소 자동 생성 과정은, 생성되는 주소가 중복되는지 파악하기 위해 반드시 전술한 DAD 과정(중복 주소 검색)을 거쳐야 한다. 이 과정은 NA 메시지를 수신하기까지 상당한 시간이 소요되므로, 주소를 얻기까지 상당한 지연(delay)이 필연적으로 발생된다. 더구나, 모바일 환경에서는 통화 중인 상태의 이동 단말(호스트)이 해당 기지국 서비스 지역을 벗어나 인접 기지국 서비스 지역으로 이동할 때, 새로운 통화 채널에 동조기 위해 주소를 생성하는 과정(핸드오버)에서 발생되는 지연(delay)이 통화 끊김 등의 현상으로 나타날 수 있다.As such, the automatic IPv6 address generation process must go through the above-described DAD process (duplicate address search) to determine whether the generated addresses are duplicated. This process takes a considerable amount of time to receive the NA message, so a significant delay inevitably occurs before obtaining the address. In addition, in a mobile environment, when a mobile terminal (host) in a call state moves out of a corresponding base station coverage area to a neighboring base station coverage area, a delay incurred in generating an address (handover) to tune to a new call channel ) May appear as a disconnected call.

또한, 악의의 사용자가 새로운 인터페이스 카드에 대해 기존의 인터페이스 카드와 동일한 MAC(Medium Access Control) 주소를 설정한 경우, 해당 디바이스는 항상 주소가 중복되므로, 계속해서 NA 메시지를 받게 되어, IPv6의 자동 주소 생성기능을 사용할 수 없게 되는 문제점이 있다.In addition, if the malicious user sets the same medium access control (MAC) address for the new interface card as the existing interface card, the device will always receive a NA message, since the address will always be a duplicate, resulting in an automatic IPv6 address. There is a problem that the generation function can not be used.

따라서, 본 발명의 목적은 전술한 문제점을 해결하기 위해, 인터페이스 ID를 이용하여 IPv6 주소를 생성하는 방법 및 그 장치를 제공하는 것이다.Accordingly, an object of the present invention is to provide a method and apparatus for generating an IPv6 address using an interface ID in order to solve the above problem.

도 1은 종래의 IPv6 주소의 생성 방법을 나타낸 플로우챠트,1 is a flowchart illustrating a conventional method of generating an IPv6 address,

도 2는 본 발명에 따른 IPv6 주소 생성 장치(1)가 포함된 시스템의 적용도,2 is an application diagram of a system including an IPv6 address generation device 1 according to the present invention;

도 3a는 본 발명에 따른 IPv6 주소 생성 장치(1)의 개요도,3A is a schematic diagram of an IPv6 address generation apparatus 1 according to the present invention;

도 3b는 도3a의 고유 ID 생성부(31)의 구성도,FIG. 3B is a configuration diagram of the unique ID generator 31 of FIG. 3A;

도 3c는 도3a의 고유 ID 처리부(32)의 구성도,3C is a configuration diagram of the unique ID processing unit 32 in FIG. 3A,

도 4a는 유형별 IPv6 주소의 상세구조도,4A is a detailed structural diagram of an IPv6 address for each type;

도 4b는 본 발명에 따라 생성된 고유 ID 값 및 고유 ID 비트열의 구조도,4b is a structural diagram of a unique ID value and a unique ID bit string generated according to the present invention;

도 4c는 본 발명에 따라 생성된 고유한 IPv6 주소의 구현 예,4c illustrates an example implementation of a unique IPv6 address generated in accordance with the present invention;

도 5는 본 발명에 따라 고유한 IPv6 주소를 생성하는 방법을 설명하기 위한 플로우챠트이다.5 is a flowchart for explaining a method for generating a unique IPv6 address according to the present invention.

상기 목적은, 본 발명에 따라, 인터페이스 ID를 이용하여 IPv6 주소를 생성하는 방법에 있어서, (a) 소정의 함수를 이용하여 임시 IPv6 주소의 인터페이스 ID로부터 고유 ID 값을 발생시키는 단계; 및 (b) 발생된 고유 ID 값을 처리하여 임시 IPv6 주소와 결합하는 단계를 포함하는 것을 특징으로 하는 방법에 의해 달성된다.According to the present invention, a method for generating an IPv6 address using an interface ID, the method comprising: (a) generating a unique ID value from an interface ID of a temporary IPv6 address using a predetermined function; And (b) processing the generated unique ID value and associating with the temporary IPv6 address.

상기 (a)단계는 암호화 함수 또는 해쉬 함수 중 적어도 하나를 이용하여 고유 ID 값을 생성하는 단계를 포함하는 것이 바람직하다.Preferably, the step (a) includes generating a unique ID value using at least one of an encryption function and a hash function.

상기 (b)단계는 (b1) 주소의 유형에 따라 임시 IPv6 주소에서 고유 ID 값이 들어갈 위치 및 비트수를 결정하는 단계; (b2) 발생된 고유 ID값의 상위 비트로부터, 결정된 비트수만큼의 고유 ID 비트열을 추출하는 단계; 및 (b3) 추출된 고유 ID 비트열을, 결정된 위치에 결합하여 주소를 완성하는 단계를 포함하는 것이 바람직하다.Step (b) includes (b1) determining a location and number of bits to include a unique ID value in the temporary IPv6 address according to the type of the address; (b2) extracting as many unique ID bit strings as the determined number of bits from upper bits of the generated unique ID value; And (b3) combining the extracted unique ID bit strings to the determined position to complete the address.

상기 (b1)단계는 링크 로컬 주소 유형의 경우, 위치는 상위 비트로부터 11번째, 비트수는 54 비트이며, 사이트 로컬 주소 유형의 경우, 위치는 상위 비트로부터 11번째, 비트수는 38 비트이며, 글로벌 주소 유형의 경우, 위치는 상위 비트로부터 n+1번째, 비트수는 64-n 비트인 것을 특징으로 하는 단계를 포함하는 것이 바람직하다.In the step (b1), for the link local address type, the position is eleventh from the upper bit and the number of bits is 54 bits. For the site local address type, the position is the eleventh from the upper bit and the number of bits is 38 bits. In the case of the global address type, the location is preferably n + 1 th from the upper bits and the number of bits is 64-n bits.

한편, 본 발명의 다른 분야에 따르면, 상기 목적은 전술한 IPv6 주소를 생성하는 방법을 수행하는 프로그램을 기록한 기록매체에 의해서도 달성된다.On the other hand, according to another field of the present invention, the above object is also achieved by a recording medium recording a program for performing the above-described method for generating an IPv6 address.

한편, 본 발명의 다른 분야에 따르면, 상기 목적은 인터페이스 ID를 이용하여 IPv6 주소를 생성하는 장치에 있어서, 소정의 함수를 이용하여 임시 IPv6 주소의 인터페이스 ID로부터 고유 ID 값을 발생시키는 고유 ID 생성부; 및 발생된 고유 ID 값을 처리하여 임시 IPv6 주소와 결합하는 고유 ID 처리부를 포함하는 것을 특징으로 하는 장치에 의해서도 달성된다.On the other hand, according to another field of the present invention, the above object is a device for generating an IPv6 address using the interface ID, the unique ID generation unit for generating a unique ID value from the interface ID of the temporary IPv6 address using a predetermined function ; And a unique ID processing unit for processing the generated unique ID value to associate with the temporary IPv6 address.

상기 고유 ID 생성부는 인터페이스 ID를 암호화(encryption)하여 고유 ID 값을 생성하는 암호화 처리부, 및 인터페이스 ID를 해슁(hashing)하여 고유 ID 값을 생성하는 해슁 처리부를 포함하는 것이 바람직하며,Preferably, the unique ID generating unit includes an encryption processing unit for generating a unique ID value by encrypting an interface ID, and a hash processing unit for generating a unique ID value by hashing the interface ID.

상기 고유 ID 처리부는 주소의 유형에 따라 임시 IPv6 주소에서 고유 ID 값이 들어갈 위치 및 비트수를 결정하는 입력 위치 결정부; 발생된 고유 ID값의 상위 비트로부터, 결정된 비트수만큼의 고유 ID 비트열을 추출하는 고유 ID 비트열 추출부; 및 추출된 고유 ID 비트열을, 결정된 위치에 결합하여 주소를 완성하는 주소 결합부를 포함하는 것이 바람직하다.The unique ID processor may include an input location determiner configured to determine a location and a number of bits of a unique ID value in a temporary IPv6 address according to an address type; A unique ID bit string extracting unit for extracting a unique ID bit string corresponding to the determined number of bits from upper bits of the generated unique ID value; And an address combiner for combining the extracted unique ID bit strings to the determined position to complete the address.

이하에서는 첨부 도면을 참조하여 본 발명의 바람직한 실시예에 대해 상세히 설명한다.Hereinafter, with reference to the accompanying drawings will be described in detail a preferred embodiment of the present invention.

도 2는 본 발명에 따른 IPv6 주소 생성 장치(1)가 포함된 시스템의 적용도이다.2 is an application diagram of a system including an IPv6 address generation device 1 according to the present invention.

도 2를 참조하면, 호스트 A(201)는 IPv6 주소 생성 장치(1)가 포함된 네트워크상의 노드를 가리킨다. 호스트 A(201)는 IPv6 네트워크나 인터넷(206)을 통해 다른 호스트들(202 내지 204) 및 라우터(205)와 연결되어 있다.Referring to FIG. 2, host A 201 indicates a node on a network including an IPv6 address generation device 1. Host A 201 is connected to other hosts 202-204 and router 205 via an IPv6 network or the Internet 206.

호스트 A(201)가 네트워크 통신을 하기 위해서는 고유한 IPv6 주소가 필요하다. 이 주소는 호스트에서 자동으로 생성할 수 있다. 즉, 호스트의 네트워크 인터페이스 카드에 고유한 48비트 MAC 주소를 변환한 64비트 인터페이스 ID에, 라우터(205)가 제공하는 네트워크 프리픽스를 결합하여 임시 IPv6 주소가 생성된다. 여기에 종전의 DAD 과정(도 1을 참조)을 생략하고, 본 발명에 따른 고유 ID를 결합하여, 새로운 IPv6 주소가 생성된다. 이제 호스트 A(201)는 네트워크 상에서 고유한 IPv6 주소를 갖게 되어 다른 호스트들(202 내지 204)과 통신할 수 있다. 고유 ID 및 인터페이스 ID를 이용하여 IPv6 주소 생성 과정은 후술한다.Host A 201 needs a unique IPv6 address for network communication. This address can be generated automatically by the host. That is, a temporary IPv6 address is generated by combining the network prefix provided by the router 205 with a 64-bit interface ID obtained by converting a 48-bit MAC address unique to the host network interface card. The previous DAD process (see FIG. 1) is omitted here, and a new IPv6 address is generated by combining the unique ID according to the present invention. Host A 201 now has a unique IPv6 address on the network and can communicate with other hosts 202-204. An IPv6 address generation process using the unique ID and the interface ID will be described later.

도 3a는 본 발명에 따른 IPv6 주소 생성 장치(1)의 개요도이다.3A is a schematic diagram of an IPv6 address generation apparatus 1 according to the present invention.

도 3a를 참조하면, IPv6 주소 생성 장치(1)는 고유 ID 생성부(31) 및 고유 ID 처리부(32)를 구비한다. IPv6 주소 생성 장치(1)에는 IPv6 주소 관리부(33)가 연결되어 있다.Referring to FIG. 3A, the IPv6 address generation apparatus 1 includes a unique ID generation unit 31 and a unique ID processing unit 32. An IPv6 address management unit 33 is connected to the IPv6 address generation device 1.

고유 ID 생성부(31)는 인터페이스 ID를 이용하여 고유 ID를 생성한다. 즉, 소정의 함수를 이용하여 임시 IPv6 주소의 인터페이스 ID로부터 고유 ID 값을 발생시킨다.The unique ID generation unit 31 generates a unique ID using the interface ID. That is, a unique ID value is generated from the interface ID of the temporary IPv6 address using a predetermined function.

보다 구체적으로, 도 3b는 도3a의 고유 ID 생성부(31)의 구성도이다.More specifically, FIG. 3B is a configuration diagram of the unique ID generation unit 31 of FIG. 3A.

도 3b를 참조하면, 고유 ID 생성부(31)는 암호화 처리부(311) 및 해슁 처리부(312)를 구비한다. 본 발명에 따른 중복 가능성이 적은 고유한 IPv6 주소를 생성하기 위해, 암호화 처리부(311)는 호스트에 고유한 인터페이스 ID를 암호화(encryption)하여 고유 ID 값을 생성한다. 암호화 함수로는 3DES, AES 등을 사용할 수 있으며, 이후에 개발되는 암호화 함수를 사용할 수도 있다. 또한, 해슁처리부(312)는 인터페이스 ID를 해슁(hashing)하여 고유 ID 값을 생성한다. 해쉬 함수로는 MD5, SHA (secure hash algorithm) 등을 사용할 수 있으며, 이후에 개발되는 해쉬 함수를 사용할 수도 있다. 이러한 함수화 과정을 통해, 인터페이스 ID는, IPv6 주소의 중복가능성을 줄여 고유성(Uniqueness)을 보장하는, 고유 ID 값으로 변환된다.Referring to FIG. 3B, the unique ID generation unit 31 includes an encryption processing unit 311 and a hash processing unit 312. In order to generate a unique IPv6 address with less possibility of duplication in accordance with the present invention, the encryption processing unit 311 generates a unique ID value by encrypting an interface ID unique to the host. As the encryption function, 3DES, AES, etc. may be used, and an encryption function developed later may be used. The hash processing unit 312 also hashes the interface ID to generate a unique ID value. As a hash function, MD5, a secure hash algorithm (SHA), etc. can be used, and a hash function developed later can be used. Through this functionalization process, the interface ID is converted into a unique ID value, which reduces uniqueness of the IPv6 address and ensures uniqueness.

한편, 고유 ID 처리부(32)는 발생된 고유 ID 값을 처리하여 임시 IPv6 주소와 결합하여 새로운 IPv6 주소를 완성시킨다. 따라서, 종래의 DAD 과정을 거치지 않고도 고유한 IPv6 주소를 생성할 수 있다. 생성된 IPv6 주소는 IPv6 주소 관리부(33)로 전달된다.Meanwhile, the unique ID processing unit 32 processes the generated unique ID value and combines it with the temporary IPv6 address to complete a new IPv6 address. Therefore, a unique IPv6 address can be generated without going through the conventional DAD process. The generated IPv6 address is transferred to the IPv6 address management unit 33.

보다 상세하게, 도 3c는 도3a의 고유 ID 처리부(32)의 구성도이다.More specifically, FIG. 3C is a configuration diagram of the unique ID processing unit 32 in FIG. 3A.

도 3c를 참조하면, 고유 ID 처리부(32)는 입력위치 결정부(321), 고유 ID 비트열 추출부(322), 및 주소 결합부(323)를 구비한다. 먼저, 입력위치 결정부(321)는 후술하는 주소의 유형에 따라 임시 IPv6 주소에서 고유 ID 값이 들어갈 위치 및 비트수를 결정한다. 고유 ID 비트열 추출부(322)는 고유 ID 생성부(31)에서 발생된 고유 ID값의 최상위 비트(MSB: Most Significant Bit)로부터, 입력위치 결정부(321)에서 결정된 비트수만큼의 고유 ID 비트열을 추출한다. 주소 결합부(323)는 고유 ID 비트열 추출부(322)에서 추출된 고유 ID 비트열을, 입력위치 결정부(31)에서 결정된 위치에 결합하여 새로운 IPv6 주소를 완성한다.Referring to FIG. 3C, the unique ID processor 32 includes an input position determiner 321, a unique ID bit string extractor 322, and an address combiner 323. First, the input position determiner 321 determines the position and the number of bits to enter the unique ID value in the temporary IPv6 address according to the type of address to be described later. The unique ID bit string extracting unit 322 is as many as unique IDs determined by the input positioning unit 321 from the most significant bit (MSB) of the unique ID value generated by the unique ID generating unit 31. Extract the bit string. The address combiner 323 combines the unique ID bit string extracted by the unique ID bit string extractor 322 with the position determined by the input position determiner 31 to complete a new IPv6 address.

따라서, 암호화 함수나 해쉬 함수를 통해 고유성(Uniqueness)이 보장되는 고유 ID 값을 주소에 결합하였으므로, 주소의 중복 가능성이 더욱 줄어든다.Therefore, since the unique ID value that guarantees uniqueness is combined with the address through an encryption function or a hash function, the possibility of duplicate addresses is further reduced.

또한, 주소의 중복 여부를 확인하는 DAD 과정을 거치지 않고도 고유한 IPv6 주소를 생성할 수 있으므로, 지연(delay)없이 빠르게 IPv6 주소를 생성할 수 있다.In addition, since a unique IPv6 address can be generated without going through a DAD process that checks for duplicate addresses, an IPv6 address can be generated quickly without delay.

도 4a는 유형별 IPv6 주소의 상세구조도이다.4A is a detailed structural diagram of an IPv6 address for each type.

도 4a를 참조하면, IPv6의 주소 유형에는 링크 로컬 주소(400), 사이트 로컬 주소(410), 및 글로벌 주소(420)가 포함된다.Referring to FIG. 4A, address types of IPv6 include a link local address 400, a site local address 410, and a global address 420.

링크 로컬 주소(Link Local Address)(400)는 64비트의 인터페이스 ID(403), 10비트의 프리픽스(401), 및 54비트의 제로 영역(402)으로 구성된다. 각 호스트에는 네트워크 인터페이스 카드에 고유한 MAC주소가 설정되어 있다. 인터페이스 ID(403)는 이 MAC 주소를 64비트로 확장한 인터페이스 카드 고유의 식별자이다. 인터페이스 ID(403)은 128비트의 IPv6 주소에서 65번째 비트부터 128번째 비트까지 64비트의 영역을 차지한다. 또한, 프리픽스(401)는 라우터로부터 제공받는 네트워크 프리픽스로서, 최상위(MSB) 비트부터 10비트의 영역을 차지한다. 링크 로컬 주소는 항상 FE80으로 시작된다. 나머지 11번째부터 64번째까지 54비트의 영역에는 전부 0 으로 채워진 제로 영역(402)이 위치한다.The link local address 400 is composed of a 64-bit interface ID 403, a 10-bit prefix 401, and a 54-bit zero region 402. Each host has a unique MAC address assigned to the network interface card. The interface ID 403 is an identifier unique to the interface card in which this MAC address is extended to 64 bits. The interface ID 403 occupies a 64-bit area from the 65th bit to the 128th bit in a 128-bit IPv6 address. Also, the prefix 401 is a network prefix provided from a router and occupies an area of 10 bits from the most significant (MSB) bit. Link-local addresses always begin with FE80. In the remaining 11 to 64th 54-bit regions, the zero region 402 filled with all zeros is located.

사이트 로컬 주소(Site Local Address)(410)는 64비트의 인터페이스 ID(413), 10비트의 프리픽스(411), 38비트의 제로영역(412), 및 16비트의 서브넷 ID(414)으로 구성된다. 인터넷으로 직접 라우팅되지 않는 개인용 인트라넷에서 사용하는 주소 유형으로, 서브넷 ID(414)가 각각의 소 그룹으로 나뉜 서브넷의 식별자가 된다. 사이트 로컬 주소는 항상 FECO로 시작되며, 나머지 영역은 전술한 링크 로컬 주소 유형(400)과 동일하다.The Site Local Address 410 is composed of a 64-bit interface ID 413, a 10-bit prefix 411, a 38-bit zero area 412, and a 16-bit subnet ID 414. . An address type used in a private intranet that is not directly routed to the Internet, where the subnet ID 414 is an identifier for each subgroup divided into subgroups. The site local address always starts with FECO and the rest of the area is the same as the link local address type 400 described above.

글로벌 주소(Global Address)(420)는 64비트의 인터페이스 ID(423), n비트의 프리픽스(421), 및 64-n비트의 제로영역(422)으로 구성된다. 전체 인터넷에서 공식적으로 사용할 수 있는 주소로서 라우팅되며, 항상 001로 시작된다. 나머지 영역은 전술한 링크 로컬 주소 유형(400)과 동일하다.The global address 420 is composed of a 64-bit interface ID 423, an n-bit prefix 421, and a 64-n bit zero area 422. Routed as an officially available address on the entire Internet, always starting with 001. The remaining area is the same as the link local address type 400 described above.

본 발명의 실시예에서 고유 ID 생성부(31)는, 전술한 인터페이스 ID(403, 413, 및 423)를 입력받아 암호화나 해슁 과정을 거쳐 고유 ID 값을 출력한다. 고유 ID 처리부(32)는 출력된 고유 ID 값에서, 주소 유형에 따라 결정된 위치나 비트수에 의해 고유 ID 비트열을 추출하여, 전술한 각 주소 유형의 제로 영역(402, 412, 및 422)에 결합하여 새로운 IPv6 주소를 생성한다.In the embodiment of the present invention, the unique ID generating unit 31 receives the above-described interface IDs 403, 413, and 423 and outputs a unique ID value through encryption or hashing. The unique ID processing unit 32 extracts a unique ID bit string from the outputted unique ID value according to the position or the number of bits determined according to the address type, and then extracts the unique ID bit string to the zero areas 402, 412, and 422 of each address type described above. Combine to create a new IPv6 address.

도 4b는 본 발명에 따라 생성된 고유 ID 값 및 고유 ID 비트열의 구조도이다.4B is a structural diagram of a unique ID value and a unique ID bit string generated according to the present invention.

도 4b를 참조하면, 고유 ID 값(460)은 전술한 고유 ID 생성부(31)에서 암호화 또는 해슁 과정을 거쳐 출력된 값으로 x비트의 값이다. 사용되는 함수에 따라 x값은 가변한다. 고유 ID 비트열(461)은 x비트의 고유 ID 값(460)의 최상위 비트(MSB)로부터, 주소 유형에 따라 제로 영역(402, 412, 및 422)에 알맞게 추출된 y비트의 고유한 값이다. 전술한 주소 유형에 따라 y값은 가변한다.Referring to FIG. 4B, the unique ID value 460 is a value output by the above-described unique ID generation unit 31 after being encrypted or hashed, and is a value of x bits. The x value varies depending on the function used. Unique ID bit string 461 is a unique value of y-bits extracted from the most significant bit (MSB) of x-bit unique ID value 460 according to the address type for zero areas 402, 412, and 422. . The y value varies depending on the address type described above.

도 4c는 본 발명에 따라 생성된 고유한 IPv6 주소의 구현 예이다.4C is an example implementation of a unique IPv6 address generated in accordance with the present invention.

도 4c를 참조하면, 링크 로컬 주소(430)의 경우, 11번째 비트부터 64번째 비트까지 54비트의 제로 영역(432)에, 고유 ID 값(460)의 최상위 비트로부터 54비트만큼 추출된 고유 ID 비트열(461)이 결합된, IPv6 주소가 생성된다.Referring to FIG. 4C, in the case of the link local address 430, a unique ID extracted by 54 bits from the most significant bit of the unique ID value 460 in the 54-bit zero area 432 from the 11th bit to the 64th bit. An IPv6 address, with the bit string 461 combined, is generated.

사이트 로컬 주소(440)의 경우, 11번째 비트부터 48번째 비트까지 38비트의 제로 영역(442)에, 고유 ID 값(460)의 최상위 비트로부터 38비트만큼 추출된 고유 ID 비트열(461)이 결합된, IPv6 주소가 생성된다.In the case of the site local address 440, a unique ID bit string 461 extracted from the most significant bit of the unique ID value 460 by 38 bits in the 38-bit zero area 442 from the 11th bit to the 48th bit. The combined, IPv6 address is generated.

글로벌 주소(450)의 경우, n+1번째 비트부터 64번째 비트까지 64-n비트의 제로 영역(452)에, 고유 ID 값(460)의 최상위 비트로부터 64-n비트만큼 추출된 고유 ID 비트열(461)이 결합된, IPv6 주소가 생성된다.In the case of the global address 450, a unique ID bit extracted from the most significant bit of the unique ID value 460 by 64-n bits in the zero area 452 of 64-n bits from the n + 1 th bit to the 64 th bit. An IPv6 address is generated, with the columns 461 combined.

따라서, 본 발명에 따른 실시예에 따르면, 주소의 고유성(Uniqueness)을 보장하는 고유 ID 값이 추가로 결합되어 있으므로, 주소의 중복가능성이 더욱 적어진다. 또한 IPv6 주소 자동 생성 과정에서 DAD 과정을 생략할 수 있으므로 지연없이 빠르게 IPv6 주소를 생성할 수 있다.Therefore, according to the embodiment according to the present invention, since the unique ID value which guarantees the uniqueness of the address is further combined, the possibility of the overlapping of the address is further reduced. In addition, since the DAD process can be omitted in the automatic IPv6 address generation process, IPv6 addresses can be generated quickly and without delay.

상기와 같은 구성을 기초로 본 발명의 바람직한 실시예에 따른, 인터페이스 ID를 이용하여 IPv6 주소를 생성하는 방법을 설명하면 다음과 같다.A method of generating an IPv6 address using an interface ID according to a preferred embodiment of the present invention based on the above configuration will be described below.

도 5는 본 발명의 일 실시예에 따라 고유한 IPv6 주소를 생성하는 방법을 설명하기 위한 플로우챠트이다.5 is a flowchart for explaining a method of generating a unique IPv6 address according to an embodiment of the present invention.

도 5를 참조하면, IPv6 주소 생성 장치(1)는 해당 호스트의 인터페이스 ID에, 주소의 유형에 따른 프리픽스를 결합한 임시 IPv6 주소를 생성한다(501 단계). 임시 IPv6 주소의 인터페이스 ID를 암호화 또는 해슁 처리를 하여 고유 ID 값을 발생킨다(502 단계). 주소 유형에 따라, 임시 IPv6 주소의 128비트중 어느 비트부터 고유 ID가 결합될지에 대한 입력 위치와, 발생된 고유 ID 값 중 몇 비트의 비트열이 결합될지에 대한 비트수를 결정한다(503 단계). 고유 ID 값의 최상위비트(MSB)로부터, 503 단계에서 결정된 비트수만큼의 고유 ID 비트열을 추출한다(504 단계). 임시 IPv6 주소의 128비트 중, 503 단계에서 결정된 입력 위치부터, 504 단계에서 추출한 고유 ID 비트열을 결합하여, IPv6 주소를 완성한다(505 단계).Referring to FIG. 5, the IPv6 address generation device 1 generates a temporary IPv6 address in which a prefix according to an address type is combined with an interface ID of a corresponding host (step 501). The unique ID value is generated by encrypting or hashing the interface ID of the temporary IPv6 address (step 502). According to the address type, the input position of which bits of the 128 bits of the temporary IPv6 address are to be combined and the number of bits of which bits of the generated unique ID values are to be combined (step 503) are determined. ). From the most significant bit MSB of the unique ID value, a unique ID bit string corresponding to the number of bits determined in step 503 is extracted (step 504). From the input position determined in step 503 of the 128 bits of the temporary IPv6 address, the unique ID bit string extracted in step 504 is combined to complete an IPv6 address (step 505).

이상의 설명은 본 발명의 일 실시예에 불과할 뿐, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자는 본 발명의 본질적 특성에서 벗어나지 않는 범위에서 변형된 형태로 구현할 수 있을 것이다. 따라서, 본 발명의 범위는 전술한 실시예에 한정되지 않고 특허 청구범위에 기재된 내용과 동등한 범위 내에 있는 다양한 실시 형태가 포함되도록 해석되어야 할 것이다.The above description is only one embodiment of the present invention, and those skilled in the art may implement the present invention in a modified form without departing from the essential characteristics of the present invention. Therefore, the scope of the present invention should not be limited to the above-described examples, but should be construed to include various embodiments within the scope equivalent to those described in the claims.

전술한 바와 같이 본 발명에 따르면, 인터페이스 ID를 이용하여 중복가능성이 적은 고유한 IPv6 주소를 생성할 수 있다. 즉, 중복가능성을 줄이는 고유 ID 값이 추가되므로 생성되는 IPv6 주소의 중복가능성은 더욱 적어진다.As described above, according to the present invention, a unique IPv6 address with less possibility of duplication can be generated using the interface ID. That is, a unique ID value is added to reduce the possibility of duplication, so the duplication of the generated IPv6 address becomes less.

또한, 자동 주소 생성 과정에서 DAD 과정을 생략할 수 있으므로 주소 생성을 빠르게 할 수 있다. 특히, 모바일 환경에서는 전술한 핸드오버 과정에서 발생하는 지연을 방지하게 되므로, 통화의 끊김이 없이 빠른 핸드오버(fast handover)가 가능하게 된다.In addition, since the DAD process can be omitted in the automatic address generation process, address generation can be speeded up. In particular, in the mobile environment, since the delay occurring in the above-described handover process is prevented, a fast handover is possible without disconnection of the call.

나아가, 악의의 사용자가 새로운 인터페이스 카드에 기존의 인터페이스 카드와 동일한 MAC 주소를 설정한 경우에도, 전술한 DAD 과정이 생략되므로, IPv6의 자동 주소 생성기능을 사용할 수 있게 된다.Furthermore, even when the malicious user sets the same MAC address as the existing interface card in the new interface card, the above-described DAD process is omitted, thereby enabling the automatic address generation function of IPv6.

Claims (9)

인터페이스 ID를 이용하여 IPv6 주소를 생성하는 방법에 있어서,In the method for generating an IPv6 address using the interface ID, (a) 소정의 함수를 이용하여 임시 IPv6 주소의 인터페이스 ID로부터 고유 ID 값을 발생시키는 단계; 및(a) generating a unique ID value from the interface ID of the temporary IPv6 address using a predetermined function; And (b) 발생된 고유 ID 값을 처리하여 상기 임시 IPv6 주소와 결합하는 단계를 포함하는 것을 특징으로 하는 방법.(b) processing the generated unique ID value and associating with the temporary IPv6 address. 제1항에 있어서,The method of claim 1, 상기 (a)단계는 암호화 함수 또는 해쉬 함수 중 적어도 하나를 이용하여 고유 ID 값을 생성하는 단계를 포함하는 것을 특징으로 하는 방법.The step (a) comprises the step of generating a unique ID value using at least one of an encryption function or a hash function. 제1항에 있어서,The method of claim 1, 상기 (b)단계는Step (b) is (b1) 주소의 유형에 따라 상기 임시 IPv6 주소에서 고유 ID 값이 들어갈 위치 및 비트수를 결정하는 단계;(b1) determining a position and a number of bits to include a unique ID value in the temporary IPv6 address according to the type of the address; (b2) 발생된 고유 ID값의 상위 비트로부터, 결정된 상기 비트수만큼의 고유 ID 비트열을 추출하는 단계; 및(b2) extracting as many unique ID bit strings as the determined number of bits from upper bits of the generated unique ID value; And (b3) 추출된 고유 ID 비트열을, 결정된 상기 위치에 결합하여 주소를 완성하는 단계를 포함하는 것을 특징으로 하는 방법.(b3) combining the extracted unique ID bit string with the determined position to complete an address. 제3항에 있어서,The method of claim 3, 상기 (b1)단계는Step (b1) 링크 로컬 주소 유형의 경우, 상기 위치는 상위 비트로부터 11번째, 상기 비트수는 54 비트이며,For link local address type, the position is eleventh from the upper bits, the number of bits is 54 bits, 사이트 로컬 주소 유형의 경우, 상기 위치는 상위 비트로부터 11번째, 상기 비트수는 38 비트이며,For a site local address type, the location is eleventh from the high order bit, the number of bits is 38 bits, 글로벌 주소 유형의 경우, 상기 위치는 상위 비트로부터 n+1번째, 상기 비트수는 64-n 비트인 단계를 포함하는 것을 특징으로 하는 방법.And for a global address type, the location is n + 1 th from the upper bits and the number of bits is 64-n bits. 제1항 내지 제4항 중 어느 한 항에 있어서,The method according to any one of claims 1 to 4, 상기 인터페이스 ID를 이용하여 IPv6 주소를 생성하는 방법을 수행하는 프로그램을 기록한 기록매체.The recording medium recording a program for performing a method for generating an IPv6 address using the interface ID. 인터페이스 ID를 이용하여 IPv6 주소를 생성하는 장치에 있어서,An apparatus for generating an IPv6 address using an interface ID, 소정의 함수를 이용하여 임시 IPv6 주소의 인터페이스 ID로부터 고유 ID 값을 발생시키는 고유 ID 생성부; 및Unique ID generation unit for generating a unique ID value from the interface ID of the temporary IPv6 address using a predetermined function; And 발생된 고유 ID 값을 처리하여 상기 임시 IPv6 주소와 결합하는 고유 ID 처리부를 포함하는 것을 특징으로 하는 장치.And a unique ID processing unit for processing the generated unique ID value and combining the generated unique ID value with the temporary IPv6 address. 제6항에 있어서,The method of claim 6, 상기 고유 ID 생성부는The unique ID generation unit 인터페이스 ID를 암호화(encryption)하여 고유 ID 값을 생성하는 암호화 처리부, 및An encryption processing unit for encrypting the interface ID to generate a unique ID value, and 인터페이스 ID를 해슁(hashing)하여 고유 ID 값을 생성하는 해슁 처리부를 포함하는 것을 특징으로 하는 장치.And a hash processing unit for hashing the interface ID to generate a unique ID value. 제6항에 있어서,The method of claim 6, 상기 고유 ID 처리부는The unique ID processing unit 주소의 유형에 따라 임시 IPv6 주소에서 고유 ID 값이 들어갈 위치 및 비트수를 결정하는 입력 위치 결정부;An input location determiner configured to determine a location and a number of bits to include a unique ID value in a temporary IPv6 address according to the type of the address; 발생된 고유 ID값의 상위 비트로부터, 결정된 상기 비트수만큼의 고유 ID 비트열을 추출하는 고유 ID 비트열 추출부; 및A unique ID bit string extracting unit for extracting a unique ID bit string corresponding to the determined number of bits from upper bits of the generated unique ID value; And 추출된 고유 ID 비트열을, 결정된 상기 위치에 결합하여 주소를 완성하는 주소 결합부를 포함하는 것을 특징으로 하는 장치.And an address combiner for combining the extracted unique ID bit string with the determined position to complete an address. 제6항에 있어서,The method of claim 6, 상기 입력 위치 결정부는The input position determiner 링크 로컬 주소 유형의 경우, 상기 위치는 상위 비트로부터 11번째, 상기 비트수는 54 비트이며,For link local address type, the position is eleventh from the upper bits, the number of bits is 54 bits, 사이트 로컬 주소 유형의 경우, 상기 위치는 상위 비트로부터 11번째, 상기 비트수는 38 비트이며,For a site local address type, the location is eleventh from the high order bit, the number of bits is 38 bits, 글로벌 주소 유형의 경우, 상기 위치는 상위 비트로부터 n+1번째, 상기 비트수는 64-n 비트인 것을 특징으로 하는 장치.And in case of a global address type, the position is n + 1 th from the upper bits, and the number of bits is 64-n bits.
KR1020030036325A 2003-06-05 2003-06-05 The method for generating IPv6 address using interface ID and device thereof KR100547119B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020030036325A KR100547119B1 (en) 2003-06-05 2003-06-05 The method for generating IPv6 address using interface ID and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020030036325A KR100547119B1 (en) 2003-06-05 2003-06-05 The method for generating IPv6 address using interface ID and device thereof

Publications (2)

Publication Number Publication Date
KR20040107585A true KR20040107585A (en) 2004-12-23
KR100547119B1 KR100547119B1 (en) 2006-01-26

Family

ID=37381661

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020030036325A KR100547119B1 (en) 2003-06-05 2003-06-05 The method for generating IPv6 address using interface ID and device thereof

Country Status (1)

Country Link
KR (1) KR100547119B1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100684965B1 (en) * 2005-05-06 2007-02-20 모다정보통신 주식회사 Method for Generating Automatically IPv6 Address by Using IPv6 Identifier
KR100710530B1 (en) * 2005-10-21 2007-04-23 삼성전자주식회사 Method for configuration and registration of internet protocol address in a wireless mobile communication system with a connection oriented radio link
KR100728040B1 (en) * 2006-04-28 2007-06-13 삼성전자주식회사 Method and apparatus for generating ipv6 unique local address
KR100773822B1 (en) * 2006-03-20 2007-11-06 주식회사 케이티프리텔 Method for effective IPv6 address in dial-up networking
KR100943515B1 (en) * 2007-12-18 2010-02-22 한국전자통신연구원 Address Management Method for Vertical Handoff

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100369939B1 (en) * 2000-12-27 2003-01-29 한국전자통신연구원 Method of an Automatic IPv6 Address Generation and IP Address Lookup by using E.164 Telephone Numbers

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100684965B1 (en) * 2005-05-06 2007-02-20 모다정보통신 주식회사 Method for Generating Automatically IPv6 Address by Using IPv6 Identifier
KR100710530B1 (en) * 2005-10-21 2007-04-23 삼성전자주식회사 Method for configuration and registration of internet protocol address in a wireless mobile communication system with a connection oriented radio link
US7804795B2 (en) 2005-10-21 2010-09-28 Samsung Electronics, Co., Ltd. Method of configuring and registering internet protocol address in a wireless mobile communication system having connection-oriented radio link
KR100773822B1 (en) * 2006-03-20 2007-11-06 주식회사 케이티프리텔 Method for effective IPv6 address in dial-up networking
KR100728040B1 (en) * 2006-04-28 2007-06-13 삼성전자주식회사 Method and apparatus for generating ipv6 unique local address
KR100943515B1 (en) * 2007-12-18 2010-02-22 한국전자통신연구원 Address Management Method for Vertical Handoff

Also Published As

Publication number Publication date
KR100547119B1 (en) 2006-01-26

Similar Documents

Publication Publication Date Title
US8984112B2 (en) Internet address information processing method, apparatus, and internet system
RU2366100C2 (en) System and method to use ip-address as wireless module identifier
KR100750370B1 (en) Address acquisition
US7779158B2 (en) Network device
KR100636209B1 (en) Method and apparatus for securing MAC address
KR100728040B1 (en) Method and apparatus for generating ipv6 unique local address
TWI511512B (en) Method for creating multiple addresses for one network element in a communication network and method for transmitting message via a communication network
US20050271032A1 (en) Communication method and apparatus in mobile station having multiple interfaces
JP2003298618A (en) Name server, network system, backward look-up request processing method, forward look-up request processing method, and communication control method
JP2003283578A (en) Protocol converting method and apparatus
CN107580079B (en) Message transmission method and device
US20070097971A1 (en) Method of generating and managing connection identifiers for supporting multicast for each group in IPv6-based wireless network and network interface using the method
JP2005072685A (en) Router apparatus, route information distributing method therefor, and communication system
JP2011515049A (en) IP address delegation
CN108769290B (en) IPv6 multi-address generation and duplicate address detection method
US9503889B2 (en) System and method for mobile IP
US20120166798A1 (en) Method and system for using neighbor discovery unspecified solicitation to obtain link local address
KR100547119B1 (en) The method for generating IPv6 address using interface ID and device thereof
US20040243850A1 (en) Apparatus for limiting use of particular network address
JP2004364109A (en) Temporary address communication apparatus, program, recording medium and method
WO2021135492A1 (en) Routing table entry processing method and device
JP2005086256A (en) Tunnel gateway apparatus
CN107547687B (en) Message transmission method and device
Liang et al. A SDN-Based Hierarchical Authentication Mechanism for IPv6 Address
KR100745727B1 (en) Method for transmitting a packet in a portable terminal supporting a multiple of network interface

Legal Events

Date Code Title Description
A201 Request for examination
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: 20121228

Year of fee payment: 8

FPAY Annual fee payment

Payment date: 20131230

Year of fee payment: 9

FPAY Annual fee payment

Payment date: 20141223

Year of fee payment: 10

FPAY Annual fee payment

Payment date: 20151229

Year of fee payment: 11

FPAY Annual fee payment

Payment date: 20161228

Year of fee payment: 12

LAPS Lapse due to unpaid annual fee