KR100456095B1 - Method and Apparatus for setting IP address automatically, Computer program for embodying said apparatus and readable record medium having said computer program - Google Patents

Method and Apparatus for setting IP address automatically, Computer program for embodying said apparatus and readable record medium having said computer program Download PDF

Info

Publication number
KR100456095B1
KR100456095B1 KR10-2001-0078984A KR20010078984A KR100456095B1 KR 100456095 B1 KR100456095 B1 KR 100456095B1 KR 20010078984 A KR20010078984 A KR 20010078984A KR 100456095 B1 KR100456095 B1 KR 100456095B1
Authority
KR
South Korea
Prior art keywords
address
subnet
packet
arp
network
Prior art date
Application number
KR10-2001-0078984A
Other languages
Korean (ko)
Other versions
KR20030048931A (en
Inventor
김무창
Original Assignee
(주)엔슬래시닷컴
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by (주)엔슬래시닷컴 filed Critical (주)엔슬래시닷컴
Priority to KR10-2001-0078984A priority Critical patent/KR100456095B1/en
Publication of KR20030048931A publication Critical patent/KR20030048931A/en
Application granted granted Critical
Publication of KR100456095B1 publication Critical patent/KR100456095B1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • 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
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

다수의 컴퓨터 시스템들이 각각의 IP 어드레스를 할당받아 운영되는 서브넷에 연결되어 자동으로 IP 어드레스를 설정하는 장치에 있어서, 네트워크 스니핑을 통해 각각의 컴퓨터 시스템 간에 전달되는 ARP 패킷에 근거하여 통계적으로 가장 많이 일치하는 ARP 패킷을 기준으로 서브넷을 판별하는 서브넷 판별모듈, ARP 패킷들로부터 하나의 ARP 패킷에 대해 다수의 ARP 패킷으로 정해지는 연결로부터 하나의 ARP 패킷에 포함되는 IP 어드레스를 게이트웨이 IP 어드레스로 결정하는 게이트웨이 IP 감지모듈, 서브넷에 연결된 모든 컴퓨터 시스템으로 핑 패킷(ping packet)을 만들어 브로드캐스트하여 응답여부를 체크하여 빈 IP 어드레스를 감지하는 빈 IP 감지모듈; 및 서브넷에 연결되는 것을 최초 감지하여 각 모듈들이 순차적으로 동작하도록 제어하며, 빈 IP 어드레스 감지모듈에 의해 설정된 IP 어드레스를 특정 식별자에 대응하여 네트워크 환경정보 데이터베이스에 저장하는 제어모듈을 포함하는 자동 IP 어드레스 설정장치가 개시된다.In a device in which a plurality of computer systems are assigned to respective subnets assigned to respective IP addresses and automatically set IP addresses, statistically most consistent based on ARP packets transmitted between the respective computer systems through network sniffing. A subnet determination module for determining a subnet based on an ARP packet, and a gateway for determining an IP address included in one ARP packet as a gateway IP address from a connection defined as a plurality of ARP packets for one ARP packet from the ARP packets. IP detection module, an empty IP detection module for generating a ping packet (broadcast packet) to all computer systems connected to the subnet to broadcast a response to check whether the response is a blank IP address; And controlling the modules to sequentially operate by first detecting the connection to the subnet, and storing a IP address set by the empty IP address detection module in a network environment information database corresponding to a specific identifier. The setting device is started.

Description

자동 아이피 어드레스 설정방법, 설정장치 및 이 장치를 실현하기 위한 컴퓨터 프로그램 및 이들 프로그램을 기록하고 있는 컴퓨터에서의 판독가능한 기록매체{Method and Apparatus for setting IP address automatically, Computer program for embodying said apparatus and readable record medium having said computer program}Method and Apparatus for setting IP address automatically, Computer program for embodying said apparatus and readable record medium having said computer program}

본 발명은 자동 IP 어드레스 설정방법, 설정장치 및 이 장치를 실현하기 위한 컴퓨터 프로그램 및 이들 프로그램을 기록하고 있는 컴퓨터에서의 판독가능한 기록매체에 관한 것으로, 보다 상세하게는 인터넷에 접속 가능한 휴대형 단말장치의 네트워크 환경이 변경되는 경우 사용 가능한 아이피 어드레스를 자동으로 할당하여 설정하는 자동 IP 어드레스 설정방법, 설정장치 및 이 장치를 실현하기 위한 컴퓨터 프로그램 및 이들 프로그램을 기록하고 있는 컴퓨터에서의 판독가능한 기록매체에 관한 것이다.The present invention relates to an automatic IP address setting method, a setting device and a computer program for realizing the device, and a readable recording medium in a computer that records these programs. More particularly, the present invention relates to a portable terminal device that can be connected to the Internet. An automatic IP address setting method for automatically allocating and setting available IP addresses when the network environment changes, a setting apparatus, a computer program for realizing the apparatus, and a readable recording medium in a computer recording these programs. will be.

일반적으로, 컴퓨터 사용자가 인터넷 등의 TCP/IP 네트워크에 접속하기 위해서는 수동으로 네트워크 환경을 설정해 주어야 하며, 네트워크 환경설정을 위한 항목으로는 IP 어드레스(IP address), 게이트웨이(gateway), 서브넷 어드레스(subnet address) 등이 있으며, 네트워크 관리자에게 이 값을 할당받는 것이 보통이다.In general, in order for a computer user to access a TCP / IP network such as the Internet, the network environment must be set manually. The items for the network environment setting include an IP address, a gateway, and a subnet address. address), and this value is usually assigned to the network administrator.

데스크 탑(desktop)과 같은 고정된 컴퓨터 시스템에서는 상기한 바와 같이 네트워크 환경을 설정하면 그 이후로 재설정할 필요가 거의 없게 된다. 그러나, 노트북이나 PDA 등과 같이 이동 가능한 단말장치에서는 이동되는 장소에 따라 TCP/IP 네트워크에의 접속을 위해 네트워크 환경을 설정해야 하며, 특히 IP 어드레스를 일일이 관리자에게 할당받지 않고 자동으로 설정할 필요가 있다.In a fixed computer system, such as a desktop, setting up a network environment as described above will rarely require a subsequent reset. However, in a mobile terminal device such as a laptop or a PDA, a network environment must be set for access to a TCP / IP network according to a moving place, and in particular, an IP address needs to be set automatically without being assigned to an administrator.

이를 위해 (주)플러스기술의 "IP changer 2.0"과 같은 소프트웨어가 개발되어 있다. 즉, 예를 들어, 집과 회사에서 노트북을 이용하는 경우, 회사의 IP 어드레스와 집의 IP 어드레스를 각각 등록해두고 장소를 변경할 때마다 등록된 Ip 어드레스를 선택하여 사용하는 것이다.To this end, software such as "IP changer 2.0" of Plus Technology has been developed. That is, for example, when using a laptop at home and at work, the IP address of the company and the home IP address are registered respectively, and the registered IP address is selected and used whenever the place is changed.

또한, DHCP(Dynamic Host Configuration Protocol)를 적용하여 IP 어드레스를 자동적으로 설정하기도 한다. DHCP는 네트웍 관리자들이 조직 내의 네트웍 상에서 IP 주소를 중앙에서 관리하고 할당해줄 수 있도록 해주는 프로토콜로서, 네트워크 관리자가 중앙에서 IP 어드레스를 관리하고 할당하며, 컴퓨터가 네트워크의 다른 장소에 접속되었을 때 자동으로 새로운 IP 어드레스를 보내줄 수 있게 해준다.In addition, the IP address is automatically set by applying the Dynamic Host Configuration Protocol (DHCP). DHCP is a protocol that allows network administrators to centrally manage and assign IP addresses on a network in an organization. Network managers centrally manage and assign IP addresses, and are automatically updated when computers connect to other locations on the network. Allows you to send an IP address.

그러나, 이러한 종래의 IP 자동설정장치는 각각 나름대로의 문제점들을 가지고 있다.However, these conventional IP automatic setting devices have their own problems.

"IP changer 2.0"에서는 IP 어드레스를 네트워크 관리자에게 할당받아야 하며 수동 등록을 해야하는 번거로움이 있다. 또한, 네트워크 관리자의 실수에 의해 동일한 IP 어드레스가 복수의 사용자에게 할당되더라도 대안이 없다는 문제점이 있다.In "IP changer 2.0", the IP address must be assigned to the network administrator and manual registration is cumbersome. In addition, even if the same IP address is assigned to a plurality of users due to a mistake of the network administrator, there is a problem that there is no alternative.

DHCP 기술을 적용하는 경우에는 별도의 DHCP 서버를 운영해야 하므로 관리상의 어려움이 있고, DHCP 서버를 운영하는 곳이 많지 않기 때문에 사용자들이 불편을 감수해야 하는 문제가 있다.In case of applying the DHCP technology, it is difficult to manage because a separate DHCP server needs to be operated, and there is a problem that users have to take inconvenience because there are not many places that operate a DHCP server.

따라서, 본 발명의 목적은 특정 네트워크에 접속되는 경우 IP 어드레스를 자동으로 할당받아 설정하는 자동 IP 어드레스 설정방법, 설정장치 및 이 장치를 실현하기 위한 컴퓨터 프로그램 및 이들 프로그램을 기록하고 있는 컴퓨터에서의 판독가능한 기록매체를 제공하는 것이다.Accordingly, an object of the present invention is to provide an automatic IP address setting method for automatically assigning and setting an IP address when connected to a specific network, a setting device, and a computer program for realizing the device, and reading from a computer recording these programs. It is to provide a possible recording medium.

본 발명의 다른 목적은 IP 어드레스가 서로 다른 사용자에 의해 공유되어 충돌이 발생하는 경우, 간단하게 자동적으로 IP 어드레스를 변경할 수 있는 자동 IP 어드레스 설정방법, 설정장치 및 이 장치를 실현하기 위한 컴퓨터 프로그램 및 이들 프로그램을 기록하고 있는 컴퓨터에서의 판독가능한 기록매체를 제공하는 것이다.It is another object of the present invention to provide an automatic IP address setting method, a setting device, and a computer program for realizing the device, which can simply and automatically change the IP address when a conflict occurs due to the IP address being shared by different users. To provide a computer-readable recording medium for recording these programs.

본 발명의 다른 목적과 특징들은 이하에 서술되는 바람직한 실시예를 통하여 보다 명확하게 이해될 것이다.Other objects and features of the present invention will be more clearly understood through the preferred embodiments described below.

도 1은 본 발명에 따른 자동 IP 설정장치를 나타내는 시스템 블록도이다.1 is a system block diagram showing an automatic IP setting apparatus according to the present invention.

도 2는 본 발명에 따른 자동 IP 설정방법을 설명하기 위한 플로우챠트이다.2 is a flowchart illustrating an automatic IP setting method according to the present invention.

도 3은 본 발명이 적용되는 네트워크를 나타내는 구성도이다.3 is a block diagram showing a network to which the present invention is applied.

제 1 발명에 따르면, 다수의 컴퓨터 시스템들이 각각의 IP 어드레스를 할당받아 운영되는 서브넷에 연결되어 자동으로 IP 어드레스를 설정하는 장치에 있어서, 네트워크 스니핑을 통해 각각의 컴퓨터 시스템 간에 전달되는 ARP 패킷에 근거하여 통계적으로 가장 많이 일치하는 ARP 패킷을 기준으로 서브넷을 판별하는 서브넷 판별모듈, ARP 패킷들로부터 하나의 ARP 패킷에 대해 다수의 ARP 패킷으로 정해지는 연결로부터 하나의 ARP 패킷에 포함되는 IP 어드레스를 게이트웨이 IP 어드레스로 결정하는 게이트웨이 IP 감지모듈, 서브넷에 연결된 모든 컴퓨터 시스템으로 핑 패킷(ping packet)을 만들어 브로드캐스트하여 응답여부를 체크하여 빈 IP 어드레스를 감지하는 빈 IP 감지모듈; 설정된 빈 IP 어드레스를 사용하는 도중에 다른 IP 어드레스의 충돌이 발생하는지를 모니터링하며, 충돌에 해당되는 ARP 패킷을 검출한 경우, 설정된 빈 IP 어드레스를 자동으로 다른 빈 IP 어드레스로 변경하는 IP 어드레스 변경모듈; 및 서브넷에 연결되는 것을 최초 감지하여 각 모듈들이 순차적으로 동작하도록 제어하며, 빈 IP 어드레스 감지모듈에 의해 설정된 IP 어드레스를 특정 식별자에 대응하여 네트워크 환경정보 데이터베이스에 저장하는 제어모듈을 포함하는 자동 IP 어드레스 설정장치가 개시된다.According to a first aspect of the present invention, an apparatus for automatically setting an IP address by connecting a plurality of computer systems to a subnet in which each IP address is assigned and operated is based on an ARP packet transmitted between each computer system through network sniffing. Subnet discrimination module for determining the subnet based on the statistically most matching ARP packet, the gateway to the IP address included in one ARP packet from the connection that is determined as a plurality of ARP packets for one ARP packet from the ARP packets A gateway IP detection module for determining an IP address, a blank IP detection module for detecting a response to a blank IP address by making a ping packet and broadcasting a ping packet to all computer systems connected to the subnet; An IP address changing module which monitors whether a collision of another IP address occurs while using the set empty IP address, and automatically changes the set empty IP address to another empty IP address when detecting an ARP packet corresponding to the collision; And controlling the modules to sequentially operate by first detecting the connection to the subnet, and storing a IP address set by the empty IP address detection module in a network environment information database corresponding to a specific identifier. The setting device is started.

본 발명의 다른 형태로는, 다수의 컴퓨터 시스템들이 각각의 IP 어드레스를 할당받아 운영되는 서브넷에 연결되어 자동으로 IP 어드레스를 설정하는 장치에 있어서, 네트워크 스니핑을 통해 각각의 컴퓨터 시스템 간에 전달되는 ARP 패킷에 근거하여 통계적으로 가장 많이 일치하는 ARP 패킷을 기준으로 서브넷을 판별하는 서브넷 판별모듈, ARP 패킷들로부터 하나의 ARP 패킷에 대해 다수의 ARP 패킷으로 정해지는 연결로부터 하나의 ARP 패킷에 포함되는 IP 어드레스를 게이트웨이 IP 어드레스로 결정하는 게이트웨이 IP 감지모듈, 서브넷에 연결된 모든 컴퓨터 시스템으로 핑 패킷(ping packet)을 만들어 브로드캐스트하여 응답여부를 체크하여 빈 IP 어드레스를 감지하는 빈 IP 감지모듈; 설정된 빈 IP 어드레스가 적절하게 동작하는지를 시험하며, 웹 브라우저를 구동하여 특정 사이트에 접속하도록 하여 그 결과를 바탕으로 설정된 빈 IP 어드레스가 올바른지를 판단하는 시험모듈; 및 서브넷에 연결되는 것을 최초 감지하여 각 모듈들이 순차적으로 동작하도록 제어하며, 빈 IP 어드레스 감지모듈에 의해 설정된 IP 어드레스를 특정 식별자에 대응하여 네트워크 환경정보 데이터베이스에 저장하는 제어모듈을 포함하는 자동 IP 어드레스 설정장치가 개시된다.According to another aspect of the present invention, an apparatus for automatically setting an IP address by connecting a plurality of computer systems to a subnet in which each IP address is assigned and operated, wherein the ARP packet is transmitted between the computer systems through network sniffing. Subnet discrimination module for discriminating subnets based on statistically most matching ARP packets based on the IP address included in one ARP packet from a connection defined as a plurality of ARP packets for one ARP packet from ARP packets A gateway IP detection module for determining a gateway IP address, and a blank IP detection module configured to detect a response by checking whether or not a response is made by broadcasting a ping packet to all computer systems connected to the subnet to broadcast a response; A test module configured to test whether the set empty IP address operates properly, to drive a web browser to access a specific site, and to determine whether the set empty IP address is correct based on the result; And controlling the modules to sequentially operate by first detecting the connection to the subnet, and storing a IP address set by the empty IP address detection module in a network environment information database corresponding to a specific identifier. The setting device is started.

제 2 발명에 따르면, 다수의 컴퓨터 시스템들이 각각의 IP 어드레스를 할당받아 운영되는 서브넷에 연결되어 자동으로 IP 어드레스를 설정하는 방법에 있어서, 네트워크 스니핑을 통하여 검출되는 ARP 패킷들을 대상으로 네트워크 번호와 서브넷 주소까지를 순차적으로 비교하고 이를 통계적으로 분석하여 가장 많이 일치하는 번호를 서브넷 주소로 판별하는 단계, ARP 패킷을 검출하여 하나의 패킷에 대하여 다수의 패킷으로 정해지는 연결로부터 하나의 패킷에 포함되는 IP 어드레스를 게이트웨이 IP 어드레스로 결정하는 단계; 상기 결정된 IP 어드레스를 통하여 외부의 네트워크에 접속을 하여 정상적으로 동작을 하는지를 체크하는 단계; 및 서브넷에 연결된 모든 컴퓨터 시스템으로 핑 패킷(ping packet)을 만들어 브로드캐스트(broadcast)하여 응답여부를 체크하여 응답이 없는 경우 빈 IP 어드레스로 설정하는 단계를 포함하는 자동 IP 어드레스 설정방법이 개시된다.According to a second aspect of the present invention, a method of automatically setting an IP address by connecting a plurality of computer systems to a subnet in which each IP address is allocated and operating, the network number and the subnet for ARP packets detected through network sniffing Sequentially comparing up to an address and statistically analyzing it to determine the most matching number as a subnet address, detecting an ARP packet, and including an IP included in one packet from a connection defined as a plurality of packets for one packet. Determining an address as a gateway IP address; Checking whether an operation is normally performed by accessing an external network through the determined IP address; And generating a ping packet to all computer systems connected to the subnet, broadcasting a broadcast message, checking whether there is a response, and setting an empty IP address if there is no response.

더욱 바람직하게, 설정된 네트워크 환경을 저장할 것이지를 체크하여, 저장하고자 하는 경우에는 네트워크 환경정보 데이터베이스에 적절한 식별자에 대응하여 저장하는 단계를 더 포함할 수 있다.More preferably, the method may further include checking whether to store the set network environment, and storing the network environment corresponding to an appropriate identifier in the network environment information database.

또한, 네트워크 모니터링을 통하여 설정된 IP 어드레스가 충돌되는지를 판단하여 충돌이 감지되는 경우에 빈 IP 어드레스를 감지하는 단계로 복귀하여 상기의 절차들을 반복할 수 있다.In addition, if the collision is detected by determining whether the IP address is collided through network monitoring, the process returns to the step of detecting an empty IP address and repeating the above procedures.

제 3 발명에 따르면, 다수의 컴퓨터 시스템들이 각각의 IP 어드레스를 할당받아 운영되는 서브넷에 연결되어 자동으로 IP 어드레스를 설정하는 컴퓨터 프로그램에 있어서, 네트워크 스니핑을 통하여 검출되는 ARP 패킷들을 대상으로 네트워크 번호와 서브넷 주소까지를 순차적으로 비교하고 이를 통계적으로 분석하여 가장 많이 일치하는 번호를 서브넷 주소로 판별하는 수순, ARP 패킷을 검출하여 하나의 패킷에 대하여 다수의 패킷으로 정해지는 연결로부터 하나의 패킷에 포함되는 IP 어드레스를 게이트웨이 IP 어드레스로 결정하는 수순; 상기 결정된 IP 어드레스를 통하여 외부의 네트워크에 접속을 하여 정상적으로 동작을 하는지를 체크하는 수순; 및 서브넷에 연결된 모든 컴퓨터 시스템으로 핑 패킷(ping packet)을 만들어 브로드캐스트(broadcast)하여 응답여부를 체크하여 응답이 없는 경우 빈 IP 어드레스로 설정하는 수순을 포함하는 컴퓨터 프로그램이 개시된다.According to a third aspect of the present invention, a computer program in which a plurality of computer systems are assigned to respective IP addresses and connected to a subnet in which the plurality of computer systems operate is configured to automatically set an IP address. Compares the subnet addresses sequentially and statistically analyzes them to determine the most matching number as the subnet address, and detects ARP packets to be included in one packet from a connection determined by multiple packets for one packet. Determining the IP address as a gateway IP address; A procedure for checking whether an operation is normally performed by accessing an external network through the determined IP address; And a computer program including a procedure of making a ping packet to all computer systems connected to the subnet, broadcasting it, checking whether there is a response, and setting the empty IP address if there is no response.

제 4 발명에 따르면, 다수의 컴퓨터 시스템들이 각각의 IP 어드레스를 할당받아 운영되는 서브넷에 연결되어 자동으로 IP 어드레스를 설정하는 컴퓨터 프로그램을 기록하고 있는 컴퓨터에서의 판독가능한 기록매체에 있어서, 네트워크 스니핑을 통하여 검출되는 ARP 패킷들을 대상으로 네트워크 번호와 서브넷 주소까지를 순차적으로 비교하고 이를 통계적으로 분석하여 가장 많이 일치하는 번호를 서브넷 주소로 판별하는 수순, ARP 패킷을 검출하여 하나의 패킷에 대하여 다수의 패킷으로 정해지는 연결로부터 하나의 패킷에 포함되는 IP 어드레스를 게이트웨이 IP 어드레스로 결정하는 수순; 상기 결정된 IP 어드레스를 통하여 외부의 네트워크에 접속을 하여 정상적으로 동작을 하는지를 체크하는 수순; 및 서브넷에 연결된 모든 컴퓨터 시스템으로 핑 패킷(ping packet)을 만들어 브로드캐스트(broadcast)하여 응답여부를 체크하여 응답이 없는 경우 빈 IP 어드레스로 설정하는 수순을 포함하는 컴퓨터 프로그램을 기록하고 있는 컴퓨터에서의 판독가능한 기록매체가 개시된다.According to a fourth aspect of the present invention, a network sniffer in a readable recording medium on a computer program in which a plurality of computer systems are assigned a respective IP address and is connected to a subnet in which it operates and automatically sets an IP address. ARP packets detected through the network number and subnet address are compared sequentially and statistically analyzed to determine the most matching number as the subnet address, the ARP packet to detect a plurality of packets for one packet Determining an IP address included in one packet as a gateway IP address from a connection determined as follows; A procedure for checking whether an operation is normally performed by accessing an external network through the determined IP address; And a step of making a ping packet to all computer systems connected to the subnet, broadcasting it, checking whether there is a response, and setting the empty IP address if there is no response. A readable recording medium is disclosed.

이하, 첨부된 도면을 참조하여 본 발명의 특징을 보다 구체적으로 설명한다.Hereinafter, with reference to the accompanying drawings will be described in more detail the features of the present invention.

본 발명에서는 기본적으로 네트워크 스니핑(sniffing) 기술을 이용하여 통계에 근거하여 서브넷(subnet)을 감지하고, 게이트웨이(gateway)를 감지한 후, 임시로 만들어진 핑 패킷(ping packet)을 이용하여 빈 IP 어드레스를 자동으로 감지한다.In the present invention, basically, a network sniffing technique is used to detect a subnet based on statistics, a gateway is detected, and an empty IP address using a temporarily created ping packet. Automatically detected.

스니핑을 위한 스니퍼(sniffer)는 네트웍 트래픽을 감시하고 분석하는 프로그램으로서, 병목현상 등과 같은 문제점을 발견해낸다. 이러한 정보들을 이용하면, 네트웍 관리자는 트래픽의 동향을 효율적으로 유지할 수 있다.Sniffer for sniffing is a program that monitors and analyzes network traffic, and finds problems such as bottlenecks. With this information, network managers can effectively keep track of traffic trends.

스니퍼는 또한 네트웍을 통해 전송되는 데이터를 포착하는데 사용될 수 있다. 라우터(router)는 패킷이 자신의 네트웍으로 보내져야 하는 것인지 또는 인터넷을 통해 계속 전달되어야 할 것인지를 판단하기 위한 목적으로, 거기를 통과하는 모든 데이터 패킷을 읽는다. 그러므로, 스니퍼가 장착된 라우터는 발신지 및 수신지 주소 뿐 아니라 패킷 내의 데이터까지도 읽을 수 있다.Sniffers can also be used to capture data sent over a network. A router reads all data packets passing through it for the purpose of determining whether the packet should be sent to its network or to continue to be delivered over the Internet. Therefore, a router equipped with a sniffer can read not only the source and destination addresses but also the data in the packet.

도 1을 참조하면, 본 발명에 따른 자동 IP 어드레스 설정장치의 구성이 도시되어 있다.Referring to Fig. 1, a configuration of an automatic IP address setting apparatus according to the present invention is shown.

서브넷 판별모듈(110)은 설정된 시간동안 네트워크 스니핑을 통해 얻은 ARP 패킷에 근거하여 통계적으로 가장 많이 일치하는 ARP 패킷을 기준으로 서브넷을 판별한다.The subnet determination module 110 determines a subnet based on the ARP packet that matches the most statistically based on the ARP packet obtained through network sniffing for a predetermined time.

ARP(Address Resolution Protocol; 주소결정 프로토콜)는 IP 네트워크 상에서 IP 어드레스를 물리적 네트웍 어드레스로 대응시키기 위해 사용되는 프로토콜이다. 여기서 물리적 네트웍 어드레스라 함은 이더넷 또는 토큰링의 48 bits 네트워크 카드 주소를 의미한다. 예를 들어, IP 호스트 A가 IP 호스트 B에게 IP 패킷을 전송하고자 할 때, IP 호스트 B의 물리적 네트워크 어드레스를 모르는 경우, ARP 프로토콜을 사용하여 목적지 IP 어드레스 B와 브로드캐스팅 물리적 네트워크 어드레스 FFFFFFFFFFFF를 가지는 ARP 패킷을 네트워크 상에 전송한다. IP호스트 B는 자신의 IP 어드레스가 목적지에 있는 ARP 패킷을 수신하면 자신의 물리적 네트워크 어드레스를 A에게 응답한다.Address Resolution Protocol (ARP) is a protocol used to map IP addresses to physical network addresses on an IP network. In this case, the physical network address means a 48-bit network card address of Ethernet or Token Ring. For example, if IP host A wants to send an IP packet to IP host B, but does not know the physical network address of IP host B, ARP with destination IP address B and broadcasting physical network address FFFFFFFFFFFF using ARP protocol Send the packet on the network. IP host B responds to A with its physical network address when it receives an ARP packet whose IP address is at its destination.

또한, 서브넷(subnet)은 서브네트워크(subnetwork)를 줄인 말로서 어떤 기관에 소속된 네트워크이지만 따로 분리되어 있는 한 부분으로 인식될 수 있는 네트워크를 말한다.In addition, a subnet is an abbreviation for a subnetwork, and refers to a network belonging to an institution but that can be recognized as a separate part.

상기한 바와 같이, 인터넷은 네트웍 사용자들 간에 서로 커뮤니케이션을 하기 위한 네트워크의 집합이며, 커뮤니케이션을 위해서는 양측의 사용자 또는 호스트가 관련되어 있는 발신지와 도착지 네트워크, 그리고 네트워크 내의 특정한 컴퓨터의 주소가 있어야 하는데, 이 주소를 IP 주소(Internet Protocol address)라고 부른다. 32 비트의 IP 주소는 크게 두 부분으로 나뉘는데, 하나는 네트워크를 식별하는 네트워크 번호이고, 다른 하나는 네트워크 내의 특정한 컴퓨터나 호스트를 식별하는 호스트 번호이다. 한 기관에서 특정한 서브넷을 확인시키기 위해 컴퓨터나호스트를 식별하는 주소 내의 비트들을 일부 사용할 수 있다. 그러므로 실제로는 IP 주소에는 네트워크 번호, 서브넷 번호, 그리고 컴퓨터 번호 등 세 부분이 포함되어 있는 셈이다.As mentioned above, the Internet is a set of networks for communicating among network users, and communication requires the source and destination networks to which both users or hosts are associated, and the addresses of specific computers within the network. The address is called the Internet Protocol address. The 32-bit IP address is divided into two parts: one for the network number that identifies the network, and one for the host number that identifies a particular computer or host within the network. An organization may use some of the bits in an address that identifies a computer or host to identify a particular subnet. So in reality, the IP address contains three parts: the network number, the subnet number, and the computer number.

예를 들어, 32 비트의 IP 주소 "130.5.5.25"가 분할되는 것을 나타내 보면 다음과 같다.For example, the 32-bit IP address "130.5.5.25" is divided as follows.

<--네트워크 번호--><--호스트 번호--><-Network number-> <-host number->

130 . 5 . 5 . 25130. 5. 5. 25

만약 이 주소에다가 서브넷을 추가하기를 원한다면, 호스트 번호의 일부분(예를 들면, 총 16비트 중 8 비트)을 서브넷 주소로 사용할 수 있으며, 다음과 같이 된다.If you want to add a subnet to this address, you can use a portion of the host number (for example, 8 bits out of 16 bits total) as the subnet address.

<--네트워크 번호--><--서브넷 주소--><--호스트 번호--><-Network Number-> <-Subnet Address-> <-Host Number->

130 . 5 . 5 . 25130. 5. 5. 25

여기서는 설명을 간단히 하기 위하여 서브넷을 8 비트로 정했지만, 실제로는 세 번째 쿼드의 일부, 심지어 네 번째 쿼드의 일부만을 서브넷으로 사용하는 등, 다른 구성을 선택할 수 있다.For simplicity, we've set the subnet to 8 bits for simplicity, but you can actually choose a different configuration, such as using only a portion of the third quad, even a portion of the fourth quad.

따라서, 네트워크 스니핑을 통하여 검출되는 ARP 패킷들을 대상으로 네트워크 번호와 서브넷 주소까지를 순차적으로 비교하여 이를 통계적으로 분석하면, 가장 많이 일치하는 번호가 확률적으로 서브넷 주소가 될 것이다.Therefore, if the network number and the subnet address are sequentially compared to the ARP packets detected through network sniffing and analyzed statistically, the most matching number will be the subnet address.

서브넷이 아닌 다른 곳에서 ARP 패킷이 들어오는 경우가 존재하는 것을 생각한다면, 일정시간내에 확률적으로 가장 많이 검출되는 번호를 서브넷 주소로 판별하는 것이 통계적으로 가장 정확하다고 할 수 있다.Considering that there are cases where ARP packets come from other than subnets, it can be said that it is statistically most accurate to determine the number of probabilities that are most frequently detected within a certain time as the subnet address.

게이트웨이 IP 감지모듈(120)은 ARP 패킷을 검출하여 "1:다수"로 정해지는 연결로부터 "1"에 해당하는 주소를 게이트웨이 IP 어드레스로 결정한다.The gateway IP detection module 120 detects an ARP packet and determines an address corresponding to "1" as a gateway IP address from a connection determined as "1: many".

특정 서브넷에 연결된 컴퓨터 시스템이 외부의 네트워크와 연결되기 위해서는 반드시 게이트웨이를 거쳐야 한다. 즉, ARP 패킷을 통해서 게이트웨이의 MAC(Media Access Control) 어드레스를 알아내고 게이트웨이를 통하여 패킷을 외부로 보내게 된다. 참고로, MAC 어드레스는 근거리통신망에서 데이터 링크 계층의 MAC 계층에 의해 사용되는 주소로서 네트워크 카드의 48 비트 하드웨어 주소를 말한다.Computer systems connected to a specific subnet must go through a gateway in order to connect to an external network. That is, the ARP packet finds the media access control (MAC) address of the gateway and sends the packet to the outside through the gateway. For reference, the MAC address is an address used by the MAC layer of the data link layer in a local area network and refers to a 48-bit hardware address of a network card.

따라서, 각각의 컴퓨터 시스템으로부터 게이트웨이로 보내는 ARP 패킷과 게이트웨이가 보내는 ARP 패킷을 검출하여 분석하면, ARP 패킷을 기준으로 "1:다수" 의 형태가 검출되므로, 이때 "1"에 해당하는 ARP 패킷이 게이트웨이 IP 어드레스가 되는 것이다.Therefore, if the ARP packet sent from the computer system to the gateway and the ARP packet sent by the gateway are detected and analyzed, "1: many" types are detected based on the ARP packet, so that an ARP packet corresponding to "1" is generated. This is the gateway IP address.

빈 IP 감지모듈(130)은 새로이 접속된 컴퓨터 시스템으로부터 서브넷에 연결된 모든 컴퓨터 시스템으로 핑 패킷(ping packet)을 만들어 브로드캐스트하여 응답여부를 체크하여 빈 IP 어드레스를 감지한다. 즉, 각각의 컴퓨터 시스템으로부터 응답이 있는 경우에는 스니핑에 검출되기 때문에 사용되는 IP 어드레스로 판단하고, 응답이 없는 경우에는 빈 IP 어드레스로 판단한다.The blank IP detection module 130 detects a blank IP address by checking whether or not a response is made by broadcasting a ping packet from a newly connected computer system to all computer systems connected to the subnet. That is, when there is a response from each computer system, it is determined to be an IP address used because it is detected by sniffing, and when there is no response, it is determined as an empty IP address.

IP 어드레스 변경모듈(140)은 검출된 빈 IP 어드레스를 사용하는 도중에 IP 어드레스의 충돌이 발생하는지를 모니터링하다가 충돌에 해당되는 ARP 패킷을 검출한 경우, 상기한 빈 IP 어드레스 감지방법을 이용하여 자동으로 다른 빈 IP 어드레스로 변경한다.When the IP address change module 140 detects an ARP packet corresponding to the collision while monitoring whether an IP address collision occurs while using the detected empty IP address, the IP address change module 140 automatically uses another empty IP address detection method. Change to an empty IP address.

한편, 시험모듈(150)은 자동으로 할당된 빈 IP 어드레스가 적절하게 동작하는지를 시험하며, 웹 브라우저를 구동하여 특정 사이트에 접속하도록 하여 그 결과를 바탕으로 설정된 IP 어드레스가 올바른지를 판단한다.On the other hand, the test module 150 tests whether the automatically assigned blank IP address operates properly, and runs a web browser to access a specific site to determine whether the set IP address is correct based on the result.

제어모듈(100)은 해당 시스템이 LAN 환경에 연결되는 것을 최초 감지하여 각 모듈들이 순차적으로 동작하도록 제어하며, 최초 접속에 의해 자동으로 설정된 IP 어드레스를 서브넷 명칭에 대응하여 네트워크 환경정보 데이터베이스(160)에 저장한다.The control module 100 detects that the system is connected to the LAN environment for the first time and controls each module to operate sequentially. The network environment information database 160 corresponds to the subnet name of the IP address set automatically by the initial connection. Store in

이하에서는 이와 같은 구성의 자동 IP 어드레스 설정장치에 적용되는 설정방법에 대해 도 2와 도 3을 참조하여 구체적으로 설명한다.Hereinafter, a setting method applied to the automatic IP address setting apparatus having such a configuration will be described in detail with reference to FIGS. 2 and 3.

도 3을 참조하면, 컴퓨터 시스템들 A, B, C는 LAN(10)을 통하여 상호 연결되며, 게이트웨이 G를 통하여 인터넷 등의 외부 네트워크(20)에 연결된다. 편의상 서브넷 주소는 "135.5.5"인 것으로 가정하고, 게이트웨이는 "135.5.5.1"이며, 도시된 각각의 컴퓨터 시스템에는 "135.5.5.10", "135.5.5.11" 및 "135.5.5.12"의 IP 어드레스가 할당되어 있으며, 이 상태에서 사용자의 노트북 P를 LAN에 연결하는 경우를 설명한다.Referring to FIG. 3, computer systems A, B, and C are interconnected via a LAN 10, and are connected to an external network 20, such as the Internet, via a gateway G. For convenience, assume that the subnet address is "135.5.5", the gateway is "135.5.5.1", and the IP addresses of "135.5.5.10", "135.5.5.11", and "135.5.5.12" are assigned to each computer system shown. Is assigned and describes the case where the user's laptop P is connected to the LAN in this state.

휴대형 노트북 P에는 본 발명에 따른 자동 IP 어드레스 설정장치가 설치되어 LAN(10)에 연결하고자 한다.The portable notebook PC is provided with an automatic IP address setting device according to the present invention and is intended to be connected to the LAN 10.

먼저, 노트북 P의 랜 포트를 통하여 LAN(10)에 연결하면, 제어모듈(100)은이를 감지하여 서브넷 판별모듈(110)이 서브넷을 자동으로 판별하도록 지시한다.First, when connected to the LAN 10 through the LAN port of the notebook P, the control module 100 detects this and instructs the subnet determination module 110 to automatically determine the subnet.

서브넷 판별모듈(110)은 네트워크 스니핑을 통하여 검출되는 ARP 패킷들을 대상으로 네트워크 번호와 서브넷 주소까지를 순차적으로 비교하고 이를 통계적으로 분석하여 가장 많이 일치하는 번호를 서브넷 주소로 판별한다(단계 S100).The subnet determination module 110 sequentially compares network numbers and subnet addresses to ARP packets detected through network sniffing, and statistically analyzes them to determine the most matching number as the subnet address (step S100).

게이트웨이 IP 감지모듈(120)은 ARP 패킷을 검출하여 "1:다수"로 정해지는 연결로부터 "1"에 해당하는 주소를 게이트웨이 IP 어드레스로 결정한다(단계 S200).The gateway IP detection module 120 detects an ARP packet and determines an address corresponding to "1" as the gateway IP address from the connection determined as "1: many" (step S200).

즉, 상기한 바와 같이, 특정 서브넷에 연결된 컴퓨터 시스템은 외부의 네트워크와 연결되기 위해서는 반드시 게이트웨이를 거쳐야 하기 때문에, 각각의 컴퓨터 시스템은 ARP 패킷을 게이트웨이로 보내고 게이트웨이는 자신의 IP 어드레스가 목적지에 있는 ARP 패킷을 수신하면 자신의 물리적 네트워크 어드레스를 응답하므로 이들 ARP 패킷을 분석하면, "135.5.5.1" : 다수의 IP 어드레스들의 관계가 성립하게 된다. 따라서, "135.5.5.1"을 게이트웨이의 IP 어드레스로 설정하면 된다.In other words, as described above, since a computer system connected to a specific subnet must go through a gateway to be connected to an external network, each computer system sends an ARP packet to the gateway, and the gateway sends an ARP whose IP address is located at the destination. Receiving the packet responds to its own physical network address, so analyzing these ARP packets yields a relationship of "135.5.5.1": multiple IP addresses. Therefore, "135.5.5.1" may be set to the IP address of the gateway.

이어, 빈 IP 감지모듈(130)은 사용자 노트북 P으로부터 서브넷에 연결된 모든 컴퓨터 시스템으로 핑 패킷(ping packet)을 만들어 브로드캐스트(broadcast)하여 응답여부를 체크하여 빈 IP 어드레스를 감지한다(단계 S300).Subsequently, the empty IP detection module 130 creates a ping packet from the user notebook P to all the computer systems connected to the subnet, broadcasts it, checks for a response, and detects the empty IP address (step S300). .

즉, 각각의 컴퓨터 시스템 A, B 및 C로부터는 응답이 있기 때문에 스니핑에 검출되어 "135.5.5.10", "135.5.5.11" 및 "135.5.5.12"의 IP 어드레스는 사용되고 있음을 알 수 있다. 반면에, 예를 들어, "135.5.5.33", "135.5.5.34" 등이 응답이 없는 경우에는 이들은 사용되지 않는 빈 IP 어드레스로 판단하여 사용할 IP 어드레스로 설정한다.That is, since there is a response from each of the computer systems A, B, and C, it can be seen that sniffing is detected and IP addresses of "135.5.5.10", "135.5.5.11", and "135.5.5.12" are used. On the other hand, if, for example, "135.5.5.33", "135.5.5.34", etc., do not respond, they are determined to be unused free IP addresses and set to the IP address to be used.

이어 시험모듈(150)은 설정된 IP 어드레스를 통하여 외부의 네트워크에 접속을 하여 정상적으로 동작을 하는지를 체크한다(단계 S400).Subsequently, the test module 150 checks whether normal operation is performed by accessing an external network through the set IP address (step S400).

예를 들어, 인터넷 익스플로러 등과 같은 웹 브라우저를 기동하여 임의의 웹 사이트로 접속을 하도록 할 수 있다. 이 경우 임의의 특정 웹 사이트를 디폴트 웹 사이트로 설정함으로서 부가적인 광고효과를 얻을 수 있다. 이 때, 특정의 웹 사이트에 올바르게 접속되면 네트워크 환경의 설정이 적절하다는 것을 의미한다.For example, a web browser such as Internet Explorer can be started to connect to any web site. In this case, an additional advertising effect can be obtained by setting any specific web site as the default web site. At this time, if a particular web site is correctly connected, it means that the network environment is properly set.

선택적으로, 설정된 네트워크 환경을 저장할 것인지를 체크하여(단계 S500), 저장하고자 하는 경우에는 네트워크 환경정보 데이터베이스(160)에 적절한 식별자에 대응하여 저장한다(단계 S600).Optionally, it is checked whether or not to save the set network environment (step S500), and if it is desired to store it, it is stored in correspondence with an appropriate identifier in the network environment information database 160 (step S600).

예를 들어, 상기한 절차가 A 기업에서 이루어졌다면, "A 기업"이라는 식별자를 키워드로 하여 설정된 네트워크 환경을 저장할 수 있다. 이와 같이 네트워크 환경을 저장하게 되면, 후에 동일한 환경에 연결하는 경우 상기의 절차를 거치지 않고 저장된 네트워크 환경을 로드하여 적용할 수 있는 이점이 있다.For example, if the above procedure is performed at company A, the network environment set by using the identifier "company A" as a keyword may be stored. As such, when the network environment is stored, there is an advantage that the stored network environment can be loaded and applied without going through the above procedure when connecting to the same environment.

이와 같이 사용자에게 설정된 IP 어드레스는 실제 다른 컴퓨터 시스템에 할당되었지만, 해당 컴퓨터가 사용되지 않아 빈 IP 어드레스로 판단될 수도 있다. 따라서, 해당 컴퓨터 시스템을 부팅하게 되면, 브로드캐스트되는 ARP 패킷에 의해 IP 어드레스가 충돌이 발생한다. 따라서, 네트워크 모니터링을 통하여 IP 어드레스가 충돌되는지를 판단하여(단계 S700), IP 어드레스의 충돌이 감지되는 경우에는 빈 IP 어드레스를 감지하는 단계로 복귀하여 상기의 절차를 반복하여 다른 빈 IP 어드레스를 설정한다.Although the IP address set to the user is actually assigned to another computer system, the computer may not be used and may be determined as an empty IP address. Therefore, when the computer system is booted, the IP address collides due to the broadcasted ARP packet. Therefore, it is determined whether the IP address is collided through network monitoring (step S700), and if a collision of the IP address is detected, the process returns to the step of detecting an empty IP address and repeats the above procedure to set another empty IP address. do.

이상에서는 본 발명의 일실시예를 중심으로 설명하였지만, 당업자의 수준에서 여러 가지의 변경이 가능하다. 이러한 변경은 본 발명의 정신을 벗어나지 않는 범위내에서 본 발명에 속하는 것은 자명하다.Although the above has been described with reference to one embodiment of the present invention, various changes are possible at the level of those skilled in the art. It is obvious that such changes belong to the present invention without departing from the spirit of the present invention.

이상에서 설명한 바와 같이, 본 발명에 따르면, 임의의 네트워크에 접속되더라도 네트워크 관리자의 도움없이 자동으로 IP 어드레스를 설정할 수 있는 이점이 있으며, 네트워크 관리자는 IP 어드레스의 할당에 신경을 쓰지 않아도 되기 때문에 관리가 용이하다.As described above, according to the present invention, even when connected to any network, there is an advantage that the IP address can be automatically set without the help of the network administrator, and the network administrator does not have to worry about assigning the IP address. It is easy.

또한, IP 어드레스가 서로 다른 사용자에 의해 공유되어 충돌이 발생하는 경우에도 간단하게 자동적으로 IP 어드레스를 변경할 수 있다.In addition, even when a conflict occurs due to the IP address being shared by different users, the IP address can be automatically changed automatically.

또한, 일단 설정된 네트워크 환경을 저장하고 후에 동일한 네트워크 환경에 연결하는 경우에는 저장된 네트워크 환경을 로드하여 적용할 수 있으므로 간편하다는 이점이 있다.In addition, when the network environment is stored once and then connected to the same network environment, there is an advantage that the stored network environment can be loaded and applied.

더욱이, DHCP 서버와 같은 특별한 하드웨어가 필요하지 않기 때문에 간편하고 저렴하다.Moreover, it is simple and inexpensive because no special hardware is required, such as a DHCP server.

부가적으로, IP 어드레스를 설정한 후에, 특정 웹 사이트에 디폴트로 접속하게 함으로서 페이지 뷰를 증가시킴으로서 간접적으로 광고효과를 얻을 수 있다.In addition, after setting the IP address, the advertisement effect can be indirectly obtained by increasing the page view by allowing a default connection to a specific web site.

Claims (9)

다수의 컴퓨터 시스템들이 각각의 IP 어드레스를 할당받아 운영되는 서브넷에 연결되어 자동으로 IP 어드레스를 설정하는 장치에 있어서,An apparatus for automatically setting an IP address by connecting to a subnet in which a plurality of computer systems are assigned with respective IP addresses, 네트워크 스니핑을 통해 상기 각각의 컴퓨터 시스템 간에 전달되는 ARP 패킷에 근거하여 통계적으로 가장 많이 일치하는 ARP 패킷을 기준으로 서브넷을 판별하는 서브넷 판별모듈;A subnet discrimination module for discriminating a subnet based on ARP packets most statistically matched based on ARP packets transmitted between the respective computer systems through network sniffing; 상기 ARP 패킷들로부터 하나의 ARP 패킷에 대해 다수의 ARP 패킷으로 정해지는 연결로부터 상기 하나의 ARP 패킷에 포함되는 IP 어드레스를 게이트웨이 IP 어드레스로 결정하는 게이트웨이 IP 감지모듈;A gateway IP detection module configured to determine, as a gateway IP address, an IP address included in the one ARP packet from a connection defined as a plurality of ARP packets for one ARP packet from the ARP packets; 상기 서브넷에 연결된 모든 컴퓨터 시스템으로 핑 패킷(ping packet)을 만들어 브로드캐스트하여 응답여부를 체크하여 빈 IP 어드레스를 감지하는 빈 IP 감지모듈;A blank IP detection module that detects a blank IP address by making a ping packet and broadcasting a ping packet to all computer systems connected to the subnet to check for a response; 상기 설정된 빈 IP 어드레스를 사용하는 도중에 다른 IP 어드레스의 충돌이 발생하는지를 모니터링하며, 충돌에 해당되는 ARP 패킷을 검출한 경우, 상기 설정된 빈 IP 어드레스를 자동으로 다른 빈 IP 어드레스로 변경하는 IP 어드레스 변경모듈; 및An IP address changing module which monitors whether a collision of another IP address occurs while using the set empty IP address, and automatically changes the set empty IP address to another empty IP address when an ARP packet corresponding to the collision is detected. ; And 상기 서브넷에 연결되는 것을 최초 감지하여 각 모듈들이 순차적으로 동작하도록 제어하며, 상기 빈 IP 어드레스 감지모듈에 의해 설정된 IP 어드레스를 특정 식별자에 대응하여 네트워크 환경정보 데이터베이스에 저장하는 제어모듈을 포함하는 자동 IP 어드레스 설정장치.Automatic IP that detects the first connection to the subnet and controls each module to operate sequentially, the control module for storing the IP address set by the empty IP address detection module in a network environment information database corresponding to a specific identifier Address setting device. 삭제delete 다수의 컴퓨터 시스템들이 각각의 IP 어드레스를 할당받아 운영되는 서브넷에 연결되어 자동으로 IP 어드레스를 설정하는 장치에 있어서,An apparatus for automatically setting an IP address by connecting to a subnet in which a plurality of computer systems are assigned with respective IP addresses, 네트워크 스니핑을 통해 상기 각각의 컴퓨터 시스템 간에 전달되는 ARP 패킷에 근거하여 통계적으로 가장 많이 일치하는 ARP 패킷을 기준으로 서브넷을 판별하는 서브넷 판별모듈;A subnet discrimination module for discriminating a subnet based on ARP packets most statistically matched based on ARP packets transmitted between the respective computer systems through network sniffing; 상기 ARP 패킷들로부터 하나의 ARP 패킷에 대해 다수의 ARP 패킷으로 정해지는 연결로부터 상기 하나의 ARP 패킷에 포함되는 IP 어드레스를 게이트웨이 IP 어드레스로 결정하는 게이트웨이 IP 감지모듈;A gateway IP detection module configured to determine, as a gateway IP address, an IP address included in the one ARP packet from a connection defined as a plurality of ARP packets for one ARP packet from the ARP packets; 상기 서브넷에 연결된 모든 컴퓨터 시스템으로 핑 패킷(ping packet)을 만들어 브로드캐스트하여 응답여부를 체크하여 빈 IP 어드레스를 감지하는 빈 IP 감지모듈;A blank IP detection module that detects a blank IP address by making a ping packet and broadcasting a ping packet to all computer systems connected to the subnet to check for a response; 상기 설정된 빈 IP 어드레스가 적절하게 동작하는지를 시험하며, 웹 브라우저를 구동하여 특정 사이트에 접속하도록 하여 그 결과를 바탕으로 상기 설정된 빈 IP 어드레스가 올바른지를 판단하는 시험모듈; 및A test module for testing whether the set blank IP address operates properly, for driving a web browser to access a specific site, and determining whether the set blank IP address is correct based on the result; And 상기 서브넷에 연결되는 것을 최초 감지하여 각 모듈들이 순차적으로 동작하도록 제어하며, 상기 빈 IP 어드레스 감지모듈에 의해 설정된 IP 어드레스를 특정 식별자에 대응하여 네트워크 환경정보 데이터베이스에 저장하는 제어모듈을 포함하는 자동 IP 어드레스 설정장치.Automatic IP that detects the first connection to the subnet and controls each module to operate sequentially, the control module for storing the IP address set by the empty IP address detection module in a network environment information database corresponding to a specific identifier Address setting device. 다수의 컴퓨터 시스템들이 각각의 IP 어드레스를 할당받아 운영되는 서브넷에 연결되어 자동으로 IP 어드레스를 설정하는 방법에 있어서,A method of automatically setting an IP address by connecting a plurality of computer systems to a subnet where each IP address is assigned and operated, 네트워크 스니핑을 통하여 검출되는 ARP 패킷들을 대상으로 네트워크 번호와 서브넷 주소까지를 순차적으로 비교하고 이를 통계적으로 분석하여 가장 많이 일치하는 번호를 서브넷 주소로 판별하는 단계;Sequentially comparing network numbers and subnet addresses to ARP packets detected through network sniffing and statistically analyzing them to determine the most matching number as a subnet address; 상기 ARP 패킷을 검출하여 하나의 패킷에 대하여 다수의 패킷으로 정해지는 연결로부터 상기 하나의 패킷에 포함되는 IP 어드레스를 게이트웨이 IP 어드레스로 결정하는 단계;Detecting the ARP packet and determining, as a gateway IP address, an IP address included in the one packet from a connection defined as a plurality of packets for one packet; 상기 결정된 IP 어드레스를 통하여 외부의 네트워크에 접속을 하여 정상적으로 동작을 하는지를 체크하는 단계; 및Checking whether an operation is normally performed by accessing an external network through the determined IP address; And 상기 서브넷에 연결된 모든 컴퓨터 시스템으로 핑 패킷(ping packet)을 만들어 브로드캐스트(broadcast)하여 응답여부를 체크하여 응답이 없는 경우 빈 IP 어드레스로 설정하는 단계를 포함하는 자동 IP 어드레스 설정방법.And generating a ping packet to all computer systems connected to the subnet to broadcast and check whether there is a response, and to set an empty IP address if there is no response. 삭제delete 제 4 항에 있어서, 상기 설정된 네트워크 환경을 저장할 것인지를 체크하여, 저장하고자 하는 경우에는 네트워크 환경정보 데이터베이스에 적절한 식별자에 대응하여 저장하는 단계를 더 포함하는 자동 IP 어드레스 설정방법.The automatic IP address setting method of claim 4, further comprising: checking whether to store the set network environment and storing the network environment in response to an appropriate identifier in a network environment information database. 제 4 항에 있어서, 네트워크 모니터링을 통하여 상기 설정된 IP 어드레스가 충돌되는지를 판단하여 충돌이 감지되는 경우에 상기 빈 IP 어드레스를 감지하는 단계로 복귀하여 상기의 절차들을 반복하는 자동 IP 어드레스 설정방법.The method of claim 4, wherein the network monitoring determines whether the set IP address collides, and if the collision is detected, returns to the step of detecting the free IP address and repeats the above steps. 다수의 컴퓨터 시스템들이 각각의 IP 어드레스를 할당받아 운영되는 서브넷에 연결되어 자동으로 IP 어드레스를 설정하는 컴퓨터 프로그램에 있어서,In a computer program in which a plurality of computer systems are assigned to respective IP addresses and connected to a running subnet, and automatically set an IP address. 네트워크 스니핑을 통하여 검출되는 ARP 패킷들을 대상으로 네트워크 번호와 서브넷 주소까지를 순차적으로 비교하고 이를 통계적으로 분석하여 가장 많이 일치하는 번호를 서브넷 주소로 판별하는 수순;Sequentially comparing network numbers and subnet addresses to ARP packets detected through network sniffing and statistically analyzing them to determine the most matching number as a subnet address; 상기 ARP 패킷을 검출하여 하나의 패킷에 대하여 다수의 패킷으로 정해지는 연결로부터 상기 하나의 패킷에 포함되는 IP 어드레스를 게이트웨이 IP 어드레스로 결정하는 수순;Detecting the ARP packet and determining, as a gateway IP address, an IP address included in the one packet from a connection determined as a plurality of packets for one packet; 상기 결정된 IP 어드레스를 통하여 외부의 네트워크에 접속을 하여 정상적으로 동작을 하는지를 체크하는 수순; 및A procedure for checking whether an operation is normally performed by accessing an external network through the determined IP address; And 상기 서브넷에 연결된 모든 컴퓨터 시스템으로 핑 패킷(ping packet)을 만들어 브로드캐스트(broadcast)하여 응답여부를 체크하여 응답이 없는 경우 빈 IP 어드레스로 설정하는 수순을 포함하는 컴퓨터 프로그램.And a step of making a ping packet to all computer systems connected to the subnet, broadcasting it, checking whether there is a response, and setting an empty IP address if there is no response. 다수의 컴퓨터 시스템들이 각각의 IP 어드레스를 할당받아 운영되는 서브넷에 연결되어 자동으로 IP 어드레스를 설정하는 컴퓨터 프로그램을 기록하고 있는 컴퓨터에서의 판독가능한 기록매체에 있어서,A readable recording medium in a computer that records a computer program in which a plurality of computer systems are assigned a respective IP address and are connected to an operating subnet and automatically set an IP address. 네트워크 스니핑을 통하여 검출되는 ARP 패킷들을 대상으로 네트워크 번호와 서브넷 주소까지를 순차적으로 비교하고 이를 통계적으로 분석하여 가장 많이 일치하는 번호를 서브넷 주소로 판별하는 수순;Sequentially comparing network numbers and subnet addresses to ARP packets detected through network sniffing and statistically analyzing them to determine the most matching number as a subnet address; 상기 ARP 패킷을 검출하여 하나의 패킷에 대하여 다수의 패킷으로 정해지는 연결로부터 상기 하나의 패킷에 포함되는 IP 어드레스를 게이트웨이 IP 어드레스로 결정하는 수순;Detecting the ARP packet and determining, as a gateway IP address, an IP address included in the one packet from a connection determined as a plurality of packets for one packet; 상기 결정된 IP 어드레스를 통하여 외부의 네트워크에 접속을 하여 정상적으로 동작을 하는지를 체크하는 수순; 및A procedure for checking whether an operation is normally performed by accessing an external network through the determined IP address; And 상기 서브넷에 연결된 모든 컴퓨터 시스템으로 핑 패킷(ping packet)을 만들어 브로드캐스트(broadcast)하여 응답여부를 체크하여 응답이 없는 경우 빈 IP 어드레스로 설정하는 수순을 포함하는 컴퓨터 프로그램을 기록하고 있는 컴퓨터에서의 판독가능한 기록매체.In a computer that records a computer program including a procedure of making a ping packet to all computer systems connected to the subnet, broadcasting it, checking whether there is a response, and setting the empty IP address if there is no response. Readable record carrier.
KR10-2001-0078984A 2001-12-13 2001-12-13 Method and Apparatus for setting IP address automatically, Computer program for embodying said apparatus and readable record medium having said computer program KR100456095B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR10-2001-0078984A KR100456095B1 (en) 2001-12-13 2001-12-13 Method and Apparatus for setting IP address automatically, Computer program for embodying said apparatus and readable record medium having said computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR10-2001-0078984A KR100456095B1 (en) 2001-12-13 2001-12-13 Method and Apparatus for setting IP address automatically, Computer program for embodying said apparatus and readable record medium having said computer program

Publications (2)

Publication Number Publication Date
KR20030048931A KR20030048931A (en) 2003-06-25
KR100456095B1 true KR100456095B1 (en) 2004-11-08

Family

ID=29574769

Family Applications (1)

Application Number Title Priority Date Filing Date
KR10-2001-0078984A KR100456095B1 (en) 2001-12-13 2001-12-13 Method and Apparatus for setting IP address automatically, Computer program for embodying said apparatus and readable record medium having said computer program

Country Status (1)

Country Link
KR (1) KR100456095B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101959733B1 (en) * 2018-11-23 2019-03-19 주식회사 파이오링크 Method and device for configuring a switch which is newly connected to a network by performing auto-ip provision to acqure information on a network by using arp packets passing by itself

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100746922B1 (en) * 2001-12-29 2007-08-08 엘지엔시스(주) Apparatus and method for detecting uncatalogued terminal in branch processor
KR100948383B1 (en) * 2003-03-04 2010-03-22 삼성전자주식회사 Method of allocatng ip address and detecting duplication of ip address in ad hoc netwok
CN114390030B (en) * 2021-11-30 2024-04-19 深圳市科陆电子科技股份有限公司 Power grid modular terminal testing method, system and medium for intelligently setting IP

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1174915A (en) * 1997-08-29 1999-03-16 Nec Corp Automatic setting method for ip address in tcp/ip network
KR20000075284A (en) * 1999-05-31 2000-12-15 김춘호 IP address management to protect IP address confliction
JP2001244945A (en) * 2000-02-29 2001-09-07 Nec Corp Ip address overlap detecting method using address solution protocol
KR20020041939A (en) * 2000-11-29 2002-06-05 구자홍 Method of avoiding IP address on DHCP server IP allocation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1174915A (en) * 1997-08-29 1999-03-16 Nec Corp Automatic setting method for ip address in tcp/ip network
KR20000075284A (en) * 1999-05-31 2000-12-15 김춘호 IP address management to protect IP address confliction
JP2001244945A (en) * 2000-02-29 2001-09-07 Nec Corp Ip address overlap detecting method using address solution protocol
KR20020041939A (en) * 2000-11-29 2002-06-05 구자홍 Method of avoiding IP address on DHCP server IP allocation

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101959733B1 (en) * 2018-11-23 2019-03-19 주식회사 파이오링크 Method and device for configuring a switch which is newly connected to a network by performing auto-ip provision to acqure information on a network by using arp packets passing by itself

Also Published As

Publication number Publication date
KR20030048931A (en) 2003-06-25

Similar Documents

Publication Publication Date Title
US5708654A (en) Method for detecting proxy ARP replies from devices in a local area network
US6195706B1 (en) Methods and apparatus for determining, verifying, and rediscovering network IP addresses
US5922049A (en) Method for using DHCP and marking to override learned IP addesseses in a network
JP3612528B2 (en) Parameter setting system
US7246272B2 (en) Duplicate network address detection
US7729292B2 (en) Method and apparatus for detecting a router that improperly responds to ARP requests
US7496685B2 (en) Method and system for managing a device within a private network using a management device external to the private network
WO2011065708A2 (en) System and method for managing ipv6 address and access policy
KR102052035B1 (en) Apparatus and method for obtaining information of device
JP2002368763A (en) Network system, server unit and client unit, and method and program for providing network ip address
CA2754324A1 (en) Method and apparatus for automatically resolving conflicting devices on a network
KR100484145B1 (en) Apparatus and method for automatically allocating virtual address to duplicate addressed nodes
KR100456095B1 (en) Method and Apparatus for setting IP address automatically, Computer program for embodying said apparatus and readable record medium having said computer program
US7530100B2 (en) Apparatus for limiting use of particular network address
KR20160058300A (en) Apparatus and method for identifying terminal information
US20080005345A1 (en) Gateway with automatic bridging
US8219694B2 (en) Portable communication terminal apparatus, communication system and network address setting method thereof
KR20210119162A (en) Vehicle and controlling method of vehicle
US20060126614A1 (en) Automatic network configuration
US6981033B2 (en) Selection of a candidate peripheral device
US20020159448A1 (en) Communication device and method of controlling the same
CN115396401A (en) Method, system and medium for constructing flexible extension network based on IPv6 characteristics
CN114629725A (en) User domain dumb terminal management method, device, system and storage medium
CN100527706C (en) Communication system, method and apparatus for providing mirroring service in the communication system
KR101989406B1 (en) Protocol offload apparatus and method for assigning address automatically

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

Year of fee payment: 7

LAPS Lapse due to unpaid annual fee