KR20060064964A - Method of selecting user-desired dhcp server from multiple dhcp servers - Google Patents

Method of selecting user-desired dhcp server from multiple dhcp servers Download PDF

Info

Publication number
KR20060064964A
KR20060064964A KR1020040103658A KR20040103658A KR20060064964A KR 20060064964 A KR20060064964 A KR 20060064964A KR 1020040103658 A KR1020040103658 A KR 1020040103658A KR 20040103658 A KR20040103658 A KR 20040103658A KR 20060064964 A KR20060064964 A KR 20060064964A
Authority
KR
South Korea
Prior art keywords
dhcp
dhcp server
server
message
service
Prior art date
Application number
KR1020040103658A
Other languages
Korean (ko)
Other versions
KR100636205B1 (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 KR1020040103658A priority Critical patent/KR100636205B1/en
Publication of KR20060064964A publication Critical patent/KR20060064964A/en
Application granted granted Critical
Publication of KR100636205B1 publication Critical patent/KR100636205B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4541Directories for service discovery

Abstract

복수의 DHCP 서버 중에서 사용자가 원하는 DHCP 서버를 선택하는 방법이 개시된다. 본 발명에 의한 DHCP 서버 선택 방법은, DHCP 서버에 관련된 파라미터들을 포함하는 DHCP 서버 목록을 생성하는 단계, DHCP 서버 목록에 포함된 DHCP 서버 관련 파라미터와 사용자가 원하는 DHCP 파라미터를 서로 비교하여 DHCP 서비스를 요구할 DHCP 서버를 결정하는 단계, 결정된 DHCP 서버에 DHCP 서비스를 요청하는 메시지를 전송하는 단계, 일정 시간 동안 결정된 DHCP 서버가 DHCP 서비스를 승인하는 메시지를 전송하는 것을 기다리는 단계, 및 일정 시간 내에 결정된 DHCP 서버로부터 DHCP 서비스를 승인하는 메시지를 수신한 경우, DHCP 서비스 승인 메시지에 포함된 네트워크 주소를 네트워크 인터페이스에 부여하는 단계를 포함한다. 복수의 DHCP 서버 중에서 사용자가 원하는 파라미터를 만족하는 DHCP 서버를 선택하도록 함으로써, 다양한 파라미터를 가지는 복수의 DHCP 서버가 네트워크 상에 존재하는 경우에도 이들 중의 하나를 선택하게 하여 다양한 DHCP 서비스를 선택적으로 제공받을 수 있다.A method of selecting a desired DHCP server from a plurality of DHCP servers is disclosed. In the method of selecting a DHCP server according to the present invention, generating a DHCP server list including parameters related to a DHCP server, and comparing a DHCP server related parameter included in the DHCP server list with a DHCP parameter desired by the user may request a DHCP service. Determining a DHCP server, transmitting a message requesting DHCP service to the determined DHCP server, waiting for the determined DHCP server to transmit a message acknowledging the DHCP service for a predetermined time, and from the determined DHCP server within a predetermined time If a message for accepting the DHCP service is received, the step of assigning the network interface included in the DHCP service approval message to the network interface. By selecting a DHCP server that satisfies a desired parameter among a plurality of DHCP servers, even if a plurality of DHCP servers having various parameters exist on the network, one of them can be selected to receive various DHCP services selectively. Can be.

Description

복수의 DHCP 서버 중에서 사용자가 원하는 DHCP 서버를 선택하는 방법{Method of selecting user-desired DHCP server from multiple DHCP servers}Method of selecting user-desired DHCP server from multiple DHCP servers}

도 1은 네트워크 프린팅 시스템의 구성을 나타낸 블록도이다.1 is a block diagram showing the configuration of a network printing system.

도 2는 DHCP 서버로부터 IP 주소를 할당받는 방법의 일 실시예를 나타낸 흐름도이다. 2 is a flowchart illustrating an embodiment of a method for receiving an IP address from a DHCP server.

도 3은 본 발명에 의한 DHCP 서버의 선택 방법의 일 실시예를 나타낸 흐름도이다.3 is a flowchart illustrating an embodiment of a method of selecting a DHCP server according to the present invention.

도 4는 DHCP 서버 목록의 일 실시예를 나타낸 도면이다.4 is a diagram illustrating an embodiment of a DHCP server list.

도 5는 DHCP 서버 목록을 작성하는 방법의 일 실시예를 나타낸 흐름도이다.5 is a flowchart illustrating an embodiment of a method for creating a DHCP server list.

도 6은 사용자에게 DHCP 서버 목록을 보여주고 그 중에 하나를 선택하게 함으로써 원하는 DHCP 서버 파라미터를 설정하는 방법의 일 실시예를 나타낸 흐름도이다.Figure 6 is a flow diagram illustrating one embodiment of a method for setting desired DHCP server parameters by showing a user a list of DHCP servers and then selecting one of them.

도 7은 현재 서비스를 받고 있는 DHCP 서버를 변경하여 다른 DHCP 서버를 선택하는 방법의 일 실시예를 나타낸 흐름도이다.7 is a flowchart illustrating an embodiment of a method of selecting another DHCP server by changing a DHCP server currently being serviced.

<부호의 설명><Description of the code>

10: 중앙연산장치(CPU) 20: 데이터 처리부10: central processing unit (CPU) 20: data processing unit

30: 저장장치 40: 입출력장치처리부30: storage device 40: input and output device processing unit

50: 데이터 수신부 60: 네트워크 제어부50: data receiving unit 60: network control unit

70: 프린팅 장치 80: 디스플레이장치70: printing device 80: display device

90: 사용자 입력장치 100: 프린팅 클라이언트90: user input device 100: printing client

110: 네트워크 700: DHCP 서버 목록 110: Network 700: DHCP Server List

710: DHCP 서버의 IP 주소 711 내지 713: DHCP 파라미터들710: IP address of the DHCP server 711 to 713: DHCP parameters

720: 제공할 IP 주소 730: 제공할 서브넷720: IP address to provide 730: Subnet to provide

740: 제공할 게이트웨이 750: 임대 기간740: gateway to provide 750: lease period

본 발명은 디지털 정보의 전송에 관한 것으로서, 특히 복수의 동적 호스트 설정 프로토콜 서버 중에서 사용자가 원하는 파라미터를 가지는 서버를 선택하는 방법에 관한 것이다.The present invention relates to the transmission of digital information, and more particularly, to a method of selecting a server having a parameter desired by a user among a plurality of dynamic host configuration protocol servers.

동적 호스트 설정 프로토콜(Dynamic Host Configuration protocol: DHCP)이란 TCP/IP 통신을 실행하기 위해 필요한 설정 정보를 자동적으로 할당, 관리하기 위한 통신 규약을 말한다. DHCP에 대한 사항은 RFC 1541에 규정되어 있다.Dynamic Host Configuration Protocol (DHCP) refers to a communication protocol for automatically allocating and managing configuration information necessary for executing TCP / IP communication. Details of DHCP are specified in RFC 1541.

DHCP 서버(server)는 스코우프(scope)이라 불리우는 DHCP 서버 데이터베이스를 관리하며 DHCP 클라이언트(client)에게 IP 주소를 할당하는 역할을 한다. DHCP 서버 데이터베이스에는 할당할 IP 주소, 서브넷 마스크(subnet mask), 게이트웨이(gateway), 클라이언트 MAC 주소, 주소 임대 기간(lease length) 등의 파라미터들 이 저장된다.The DHCP server manages a database of DHCP servers called scopes and assigns IP addresses to DHCP clients. The DHCP server database stores parameters such as IP address, subnet mask, gateway, client MAC address, and lease length.

종래 DHCP의 이용에 있어서는 DHCP 클라이언트가 이용할 수 있는 네트워크 상의 DHCP 서버가 한 대만 존재하였다. 따라서 DHCP 클라이언트 상의 네트워크 설정에 있어서는 DHCP 서버로부터 부여되는 서버 파라미터들을 수신하여 동적으로 설정만 하면 되었다.In the conventional use of DHCP, only one DHCP server exists on a network that can be used by DHCP clients. Therefore, the network configuration on the DHCP client only needs to receive server parameters from the DHCP server and dynamically configure them.

그런데, 최근에 와서는 하나의 네트워크 상에 복수의 DHCP 서버가 존재하여 다양한 서버 파라미터를 가지는 DHCP 서버들 중에서 DHCP 클라이언트가 하나를 선택해야만 하게 되었다. 그런데, RFC 규약 등에는 이러한 복수의 DHCP 서버 중의 하나의 선택에 대한 명확한 설정이 없었다. 따라서, 복수의 DHCP 서버 중에서 사용자의 선호에 따른 하나의 DHCP 서버를 선택하는 방법이 요구되었다.In recent years, however, a plurality of DHCP servers exist in a network, and a DHCP client has to select one among DHCP servers having various server parameters. However, the RFC protocol and the like did not have a clear setting for the selection of one of the plurality of DHCP servers. Therefore, a method of selecting one DHCP server according to a user's preference from a plurality of DHCP servers has been required.

본 발명이 이루고자 하는 기술적 과제는, 복수의 DHCP 서버 중에서 사용자가 원하는 하나의 DHCP 서버를 선택하는 방법을 제공하는 것이다.An object of the present invention is to provide a method for selecting one DHCP server desired by a user among a plurality of DHCP servers.

상기 기술적 과제를 이루기 위한 DHCP 서버 선택 방법은, 네트워크 상의 동적 호스트 설정 프로토콜(DHCP) 서버에 관련된 파라미터들을 포함하는 DHCP 서버 목록을 생성하는 단계; 상기 DHCP 서버 목록에 포함된 DHCP 서버 관련 파라미터와 사용자가 원하는 DHCP 파라미터를 서로 비교하여 DHCP 서비스를 요구할 DHCP 서버를 결정하는 단계; 상기 결정된 DHCP 서버에 DHCP 서비스를 요청하는 메시지를 전송하는 단계; 일정 시간 동안 상기 결정된 DHCP 서버가 DHCP 서비스를 승인하는 메 시지를 전송하는 것을 기다리는 단계; 및 상기 일정 시간 내에 상기 결정된 DHCP 서버로부터 상기 DHCP 서비스를 승인하는 메시지를 수신한 경우, 상기 DHCP 서비스 승인 메시지에 포함된 네트워크 주소를 네트워크 인터페이스에 부여하는 단계를 포함하는 것이 바람직하다.In order to achieve the above technical problem, a DHCP server selection method includes: generating a DHCP server list including parameters related to a dynamic host configuration protocol (DHCP) server on a network; Determining a DHCP server to request a DHCP service by comparing a DHCP server related parameter included in the DHCP server list with a DHCP parameter desired by a user; Transmitting a message requesting a DHCP service to the determined DHCP server; Waiting for a predetermined time for the determined DHCP server to transmit a message for approving a DHCP service; And when receiving a message for approving the DHCP service from the determined DHCP server within the predetermined time, assigning a network address included in the DHCP service approval message to a network interface.

이하 첨부된 도면들을 참조하여 본 발명에 따른 DHCP 서버의 선택 방법에 대해 상세히 설명한다.Hereinafter, a method of selecting a DHCP server according to the present invention will be described in detail with reference to the accompanying drawings.

도 1은 DHCP를 이용하여 네트워크 주소를 설정하는 대표적인 예로 네트워크 프린팅 시스템의 구성을 나타낸 블록도이다. 도 1을 참조하면, 네트워크 프린팅 시스템은 프린팅 클라이언트(100), 프린팅 장치(70), 디스플레이장치(80), 사용자 입력장치(90), 및 네트워크(network, 110)로 구성된다.1 is a block diagram showing the configuration of a network printing system as a representative example of setting a network address using DHCP. Referring to FIG. 1, a network printing system includes a printing client 100, a printing device 70, a display device 80, a user input device 90, and a network 110.

프린팅 클라이언트(100)는 중앙연산장치(CPU, 10), 데이터 처리부(20), 저장장치(30), 입출력장치처리부(40), 데이터 수신부(50), 네트워크 제어부(network controller, 60)를 포함한다. 중앙연산장치(10)는 네트워크 프린팅 시스템을 운영하는 코드를 실행한다. 데이터 처리부(20)는 네트워크 프린팅 시스템 상의 데이터를 처리한다. 저장장치(30)는 프린팅 포맷 데이터를 처리하는 코드나 수신한 프린팅 포맷 데이터 등 네트워크 프린팅 시스템 상의 데이터를 저장한다. 입출력장치처리부(40)는 프린팅 장치(70), 모니터 등의 디스플레이장치(80), 키보드 등의 사용자 입력장치(90) 등의 입출력 장치와의 통신을 담당한다. 데이터 수신부(50)는 네트워크 제어부(60)에서 들어오는 데이터를 수신한다. 네트워크 제어부(60)는 유선 또는 무선 네트워크와 연결되어 네트워크 프린팅 시스템의 프로그램에서 네트워크 (110)로, 또는 네트워크(110)에서 네트워크 프린팅 시스템의 프로그램으로 데이터를 송수신하는 역할을 수행한다.The printing client 100 includes a central processing unit (CPU) 10, a data processing unit 20, a storage device 30, an input / output device processing unit 40, a data receiving unit 50, and a network controller 60. do. The central computing unit 10 executes code for operating a network printing system. The data processor 20 processes data on a network printing system. The storage device 30 stores data on a network printing system such as a code for processing printing format data or received printing format data. The input / output device processing unit 40 is in charge of communication with input / output devices such as a printing device 70, a display device 80 such as a monitor, and a user input device 90 such as a keyboard. The data receiver 50 receives data from the network controller 60. The network controller 60 is connected to a wired or wireless network to transmit and receive data from a program of the network printing system to the network 110 or from the network 110 to a program of the network printing system.

도 2는 일반적인 DHCP 서버로부터 IP 주소를 할당받는 방법의 일 실시예를 나타낸 흐름도이다. 2 is a flowchart illustrating an embodiment of a method of receiving an IP address from a general DHCP server.

도 2를 참조하면, 먼저 DHCP 클라이언트는 브로드캐스트(broadcast)로 네트워크에 DHCPDISCOVER 메시지를 전송한다(S100). DHCPDISCOVER 메시지는 네트워크 상의 DHCP 서버를 찾는 메시지이다.Referring to FIG. 2, first, a DHCP client transmits a DHCPDISCOVER message to a network by broadcast (S100). The DHCPDISCOVER message is for finding a DHCP server on the network.

네트워크 상의 DHCP 서버는 DHCPDISCOVER 메시지를 수신하면, DHCPOFFER 메시지를 전송한다(S110). DHCPOFFER 메시지는 DHCP 서비스를 제공하겠다는 메시지로서, 할당할 수 있는 IP 주소 등 DHCP 서버 파라미터들을 포함한다. Upon receiving the DHCPDISCOVER message, the DHCP server on the network transmits a DHCPOFFER message (S110). The DHCPOFFER message is to provide DHCP service and includes DHCP server parameters such as an assignable IP address.

DHCP 클라이언트는 DHCPOFFER 메시지를 받으면 DHCPREQUEST 메시지를 전송한다(S120). DHCPREQUEST 메시지는 DHCP 서비스를 요청하는 메시지이다.When the DHCP client receives the DHCPOFFER message, the DHCP client transmits a DHCPREQUEST message (S120). The DHCPREQUEST message is a request for DHCP service.

DHCPREQUEST 메시지를 받은 DHCP 서버는 DHCP 클라이언트로 DHCPACK메시지를 보낸다(S130). DHCPACK 메시지는 DHCP 서비스를 승인하는 메시지이다. DHCPACK 메시지에는 DHCP 클라이언트에서 사용할 수 있는 네트워크 주소 등 제공할 서비스에 관련된 파라미터들이 포함된다.The DHCP server receiving the DHCPREQUEST message sends a DHCPACK message to the DHCP client (S130). The DHCPACK message is a message for approving the DHCP service. The DHCPACK message includes parameters related to the service to be provided, such as a network address available to the DHCP client.

DHCPACK 메시지를 받은 DHCP 클라이언트는 DHCPACK 메시지에 포함된 네트워크 주소를 자신의 네트워크 인터페이스에 설정한다(S140).The DHCP client receiving the DHCPACK message sets the network address included in the DHCPACK message to its network interface (S140).

도 3은 본 발명에 의한 DHCP 서버의 선택 방법의 일 실시예를 나타낸 흐름도이다.3 is a flowchart illustrating an embodiment of a method of selecting a DHCP server according to the present invention.

먼저, DHCP 클라이언트에서는 DHCP 서버 목록을 생성한다(S200). DHCP 서버 목록에는 DHCP 서버에서 동적 호스트 설정을 위해 필요한 다양한 파라미터들이 포함된다. 이를 도 4에 도시하였다.First, the DHCP client generates a list of DHCP servers (S200). The DHCP server list contains various parameters required for dynamic host configuration on the DHCP server. This is illustrated in FIG. 4.

도 4는 DHCP 서버 목록의 일 실시예를 나타낸 도면이다.4 is a diagram illustrating an embodiment of a DHCP server list.

도 4를 참조하면, DHCP 서버 목록(700)은 DHCP 서버의 여러 파라미터들을 포함한다. 도 4의 예에서는, DHCP 서버의 IP 주소(DHCP server IP, 710), DHCP 클라이언트에 제공할 IP 주소(offered IP, 720), 제공할 서브넷(offered subnet, 730), 제공할 게이트웨이(offered gateway, 740), 임대 기간(length of lease, 750) 등이 DHCP 서버 목록에 포함된다.Referring to FIG. 4, the DHCP server list 700 includes various parameters of a DHCP server. In the example of FIG. 4, the IP address of the DHCP server (DHCP server IP, 710), the IP address to be provided to the DHCP client (offered IP, 720), the subnet to be provided (offered subnet, 730), the gateway to be provided (offered gateway, 740, length of lease 750, and the like are included in the DHCP server list.

DHCP 서버 목록이 작성되면, 목록에 포함된 DHCP 서버 중에서 서비스를 제공받고자 하는 DHCP 서버를 결정한다(S210). DHCP 서버를 결정하기 위해서는, DHCP 서버 목록에 포함된 DHCP 서버 관련 파라미터와 사용자가 원하는 DHCP 파라미터(desired parameter)를 서로 비교하여, 목록에 포함된 DHCP 서버들 중에서 사용자가 원하는 DHCP 파라미터를 만족하는 것을 선택한다.When the DHCP server list is created, it determines the DHCP server to receive the service from the DHCP server included in the list (S210). To determine the DHCP server, compare the DHCP server-related parameters included in the DHCP server list with the desired DHCP parameters, and select one of the DHCP servers included in the list that satisfies the desired DHCP parameter. do.

서비스를 요구할 DHCP 서버가 결정되면, 결정된 DHCP 서버로 DHCPREQUEST 메시지를 전송하고(S220), 결정된 DHCP 서버가 DHCPACK 메시지를 전송할 때까지 수신 대기한다(S230).When the DHCP server to request the service is determined, it transmits a DHCPREQUEST message to the determined DHCP server (S220), and waits until the determined DHCP server transmits a DHCPACK message (S230).

이때 DHCP 서버가 서비스를 제공할 수 있는 것을 확인하기 위하여, 일정 시간을 정하여 이 시간 동안만 대기하는 방식을 취한다. 이것은 결정된 DHCP 서버가 DHCPOFFER 메시지를 전송한 후, 다른 DHCP 클라이언트에게 먼저 서비스를 제공하는 등 해당 클라이언트에게 서비스가 불가능한 경우가 있기 때문이다.At this time, in order to confirm that the DHCP server can provide a service, a predetermined time is determined and a method of waiting for this time is taken. This is because the determined DHCP server may not be able to service the client, such as after providing a DHCPOFFER message to other DHCP clients.

DHCPACK 메시지가 미리 정해진 일정 시간 내에 수신되었는지를 확인하고(S240), 만일 일정 시간 내에 수신된 경우라면, DHCPACK 메시지에 포함된 네트워크 주소를 네트워크 인터페이스에 설정한다(S250). 만일 일정 시간 내에 메시지가 수신되지 않은 경우, 사용자가 원하는 DHCP 파라미터의 일부 항목을 삭제하고(S260), 서비스를 받을 DHCP 서버를 결정하는 단계(S210)부터 다시 수행한다.It is checked whether the DHCPACK message is received within a predetermined time (S240), and if it is received within a predetermined time, the network address included in the DHCPACK message is set to the network interface (S250). If the message is not received within a certain time, the user deletes some items of the desired DHCP parameter (S260), and performs again from the step (S210) of determining a DHCP server to receive the service.

도 5는 DHCP 서버 목록을 작성하는 방법의 일 실시예를 나타낸 흐름도이다. 이는 도 3의 S200 단계를 더 자세히 설명하는 것이다.5 is a flowchart illustrating an embodiment of a method for creating a DHCP server list. This describes the step S200 of FIG. 3 in more detail.

먼저 DHCP 서버 목록을 초기화한다(S310). 이는 기존에 DHCP 서버 목록이 작성되어 있는 경우, 이를 삭제하는 것이다.First, the DHCP server list is initialized (S310). This deletes the DHCP server list if it is already created.

DHCP 서버 목록을 초기화한 후 DHCPDISCOVER 메시지를 브로드캐스트로 네트워크에 전송한다(S320).After the DHCP server list is initialized, the DHCPDISCOVER message is broadcasted to the network (S320).

DHCPDISCOVER 메시지를 전송한 후, 일정 시간 동안 DHCPOFFER 메시지를 수신하기 위해 대기한다(S330). 일정 시간 동안 대기한 후 DHCPOFFER 메시지의 수신 여부를 확인하여(S340), 만일 일정 시간 내에 DHCPOFFER 메시지가 수신되었다면 DHCPOFFER 메시지를 저장하고(S350), 다른 DHCP 서버로부터의 DHCPOFFER 메시지를 수신하기 위해 S330 단계로 돌아간다.After transmitting the DHCPDISCOVER message, and waits for a predetermined time to receive a DHCPOFFER message (S330). After waiting for a predetermined time to check whether the DHCPOFFER message has been received (S340), if a DHCPOFFER message is received within a certain time, save the DHCPOFFER message (S350), and in step S330 to receive a DHCPOFFER message from another DHCP server Go back.

만일 일정 시간 내에 DHCPOFFER 메시지가 수신되지 않았다면, 네트워크 상의 모든 서비스 제공 가능한 DHCP 서버로부터 DHCPOFFER 메시지를 수신한 것이므로, 하나 이상의 DHCPOFFER 메시지가 수신된 것인지를 확인한다(S360). 만일 하나 이상 의 DHCPOFFER 메시지를 수신하였다면, 저장된 DHCPOFFER 메시지를 이용하여 DHCP 서버 목록을 생성한다(S370). 만일 하나 이상의 DHCPOFFER 메시지가 수신되지 않았다면, S320 단계부터 다시 시작한다.If the DHCPOFFER message has not been received within a certain time, it is determined that one or more DHCPOFFER messages have been received since the DHCPOFFER message has been received from all the serviceable DHCP servers on the network (S360). If at least one DHCPOFFER message is received, a list of DHCP servers is generated using the stored DHCPOFFER message (S370). If one or more DHCPOFFER messages have not been received, start again from step S320.

도 6은 사용자에게 DHCP 서버 목록을 보여주고 그 중에 하나를 선택하게 함으로써 원하는 DHCP 서버 파라미터를 설정하는 방법의 일 실시예를 나타낸 흐름도이다. 이는 도 3의 S210 단계의 일 실시예이다.Figure 6 is a flow diagram illustrating one embodiment of a method for setting desired DHCP server parameters by showing a user a list of DHCP servers and then selecting one of them. This is an embodiment of step S210 of FIG.

사용자에게 DHCP 서버 목록을 표시하고(S410), 사용자로부터 DHCP 서버 목록에 표시된 서버 중의 하나를 선택하도록 하여 이를 입력받는다(S420). Display the list of DHCP servers to the user (S410), and receive the input by selecting one of the servers displayed in the list of DHCP servers from the user (S420).

사용자가 하나의 DHCP 서버를 선택하면, 선택된 서버에 관련된 DHCP 서버 파라미터를 사용자가 원하는 파라미터(desired DHCP parameter)에 저장한다(S430).When the user selects one DHCP server, the server stores the DHCP server parameter related to the selected server in a desired DHCP parameter (S430).

현재 선택된 서버는 사용자가 원하는 파라미터를 만족하는 서버이므로, 선택된 서버를 서비스를 받을 DHCP 서버로 결정한다(S440).Since the currently selected server is a server that satisfies a parameter desired by the user, the selected server is determined as a DHCP server to receive a service (S440).

도 7은 현재 서비스를 받고 있는 DHCP 서버를 변경하여 다른 DHCP 서버를 선택하는 방법의 일 실시예를 나타낸 흐름도이다. 이는 임대 기간(length of lease)이 종료하기 전에 현재 서비스를 받고 있는 DHCP 서버로부터의 서비스를 중단하고 다른 DHCP 서버로부터 서비스를 받기 위해 필요한 방법이다.7 is a flowchart illustrating an embodiment of a method of selecting another DHCP server by changing a DHCP server currently being serviced. This is necessary to stop the service from the currently receiving DHCP server and to receive the service from another DHCP server before the length of lease expires.

먼저, 사용자로부터 DHCP 서버 변경 명령을 입력받는다(S500). First, receiving a DHCP server change command from the user (S500).

현재 서비스를 제공받고 있는 DHCP 서버에 대한 파라미터를 사용자가 원하는 DHCP 파라미터(desired DHCP parameter)에 저장한다(S510). 현재 서비스를 제공받고 있는 DHCP 서버를 과거에 사용자가 선택하였던 것이므로, 이 서버에 대한 파라 미터가 사용자가 원하는 파라미터에 가장 가까운 값을 가질 것이라고 생각할 수 있기 때문이다.A parameter for a DHCP server currently receiving a service is stored in a desired DHCP parameter (S510). This is because, in the past, the user has selected the DHCP server that is currently receiving the service, it can be assumed that the parameter for this server will have the closest value to the desired parameter.

현재 서비스를 제공하고 있는 DHCP 서버가 해당 DHCP 클라이언트에 대한 서비스를 중단하고 다른 클라이언트에게 서비스를 제공할 수 있도록 DHCPRELEASE 메시지를 전송한다(S520). DHCPRELEASE 메시지는 DHCP 서버에게 DHCP 서비스를 해제하여 줄 것을 요청하는 메시지이다.The DHCP server currently providing the service stops the service for the corresponding DHCP client and transmits a DHCPRELEASE message to provide the service to the other client (S520). DHCPRELEASE message is a message requesting the DHCP server to release the DHCP service.

이후에는 다시 도 3에 도시된 바와 같은 DHCP 서버의 선택 방법을 수행하게 된다.After that, the method of selecting a DHCP server as shown in FIG. 3 is performed again.

본 발명은 컴퓨터로 읽을 수 있는 기록 매체에 컴퓨터(정보 처리 기능을 갖는 장치를 모두 포함한다)가 읽을 수 있는 코드로서 구현하는 것이 가능하다. 컴퓨터가 읽을 수 있는 기록 매체는 컴퓨터 시스템에 의하여 읽혀질 수 있는 데이터가 저장되는 모든 종류의 기록 장치를 포함한다. 컴퓨터가 읽을 수 있는 기록 장치의 예로는 ROM, RAM, CD-ROM, 자기 테이프, 플로피 디스크, 광데이터 저장 장치 등이 있다.The present invention can be embodied as code that can be read by a computer (including all devices having an information processing function) in a computer-readable recording medium. The computer-readable recording medium includes all kinds of recording devices in which data that can be read by a computer system is stored. Examples of computer-readable recording devices include ROM, RAM, CD-ROM, magnetic tape, floppy disks, optical data storage devices, and the like.

비록 상기 설명이 다양한 실시예들에 적용되는 본 발명의 신규한 특징들에 초점을 맞추어 설명되었지만, 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 사람이라면 본 발명의 범위를 벗어나지 않으면서도 상기 설명된 장치 및 방법의 형태 및 세부 사항에 다양한 삭제, 대체, 및 변경이 가능함을 이해할 것이다. 따라서, 본 발명의 범위는 첨부된 특허청구범위에 의해 정의된다. 특허청구범위의 균등 범위 안의 모든 변형은 본 발명의 범위에 포섭된다.Although the foregoing description has been described focusing on the novel features of the invention as applied to various embodiments, those skilled in the art to which the invention pertains have been described above without departing from the scope of the invention. It will be understood that various deletions, substitutions, and changes in form and details of the apparatus and methods are possible. Accordingly, the scope of the invention is defined by the appended claims. All modifications within the scope of equivalents of the claims are to be embraced within the scope of the present invention.

본 발명에 의한 DHCP 서버를 선택하는 방법에 의하면, 복수의 DHCP 서버 중에서 사용자가 원하는 파라미터를 만족하는 DHCP 서버를 선택하도록 함으로써, 다양한 파라미터를 가지는 복수의 DHCP 서버가 네트워크 상에 존재하는 경우에도 이들 중의 하나를 선택하게 할 수 있는 효과가 있다. 이에 의해 DHCP 클라이언트는 다양한 DHCP 서비스를 선택적으로 제공받을 수 있다.According to the method for selecting a DHCP server according to the present invention, by selecting a DHCP server that satisfies a desired parameter among a plurality of DHCP servers, even if a plurality of DHCP servers having various parameters exist on the network, It has the effect of letting you choose one. As a result, the DHCP client can selectively receive various DHCP services.

Claims (5)

(a) 네트워크 상의 동적 호스트 설정 프로토콜(Dynamic Host Configuration Protocol: DHCP) 서버에 관련된 파라미터들을 포함하는 DHCP 서버 목록을 생성하는 단계;(a) generating a DHCP server list including parameters related to a Dynamic Host Configuration Protocol (DHCP) server on the network; (b) 상기 DHCP 서버 목록에 포함된 DHCP 서버 관련 파라미터와 사용자가 원하는 DHCP 파라미터를 서로 비교하여 DHCP 서비스를 요구할 DHCP 서버를 결정하는 단계;(b) comparing a DHCP server related parameter included in the DHCP server list with a DHCP parameter desired by the user to determine a DHCP server to request DHCP service; (c) 상기 결정된 DHCP 서버에 DHCP 서비스를 요청하는 메시지를 전송하는 단계;(c) transmitting a message requesting a DHCP service to the determined DHCP server; (d) 일정 시간 동안 상기 결정된 DHCP 서버가 DHCP 서비스를 승인하는 메시지를 전송하는 것을 기다리는 단계; 및(d) waiting for the determined DHCP server to transmit a message approving a DHCP service for a predetermined time; And (e) 상기 일정 시간 내에 상기 결정된 DHCP 서버로부터 상기 DHCP 서비스를 승인하는 메시지를 수신한 경우, 상기 DHCP 서비스 승인 메시지에 포함된 네트워크 주소를 네트워크 인터페이스에 부여하는 단계를 포함하는 것을 특징으로 하는 DHCP 서버 선택 방법.(e) if the DHCP server receives the message of approving the DHCP service from the determined DHCP server within the predetermined time, providing a network address included in the DHCP service approval message to a network interface. How to choose. 제1항에 있어서, The method of claim 1, 상기 일정 시간 내에 상기 결정된 DHCP 서버로부터 DHCP 메시지를 수신하지 못한 경우, 상기 사용자가 원하는 DHCP 파라미터의 일부 항목을 삭제하고 상기 (b) 단계부터 다시 반복하는 것을 특징으로 하는 DHCP 서버 선택 방법.If the DHCP message is not received from the determined DHCP server within the predetermined time, the DHCP server selection method of deleting a part of the DHCP parameter desired by the user and repeating from the step (b) again. 제1항에 있어서, 상기 (a) 단계는,According to claim 1, wherein the step (a), (a1) 상기 DHCP 서버 목록을 초기화하는 단계;(a1) initializing the DHCP server list; (a2) 상기 DHCP 서버 목록에 추가할 DHCP 서버를 찾는 메시지를 네트워크에 전송하고 일정 시간 동안 네트워크 상의 DHCP 서버로부터 DHCP 서비스를 제공하겠다는 메시지를 기다리는 단계; (a2) transmitting a message to the network to find a DHCP server to be added to the DHCP server list, and waiting for a message for providing DHCP service from a DHCP server on the network for a predetermined time; (a3) 상기 일정 시간 내에 하나 이상의 DHCP 서버로부터 DHCP 서비스를 제공하겠다는 메시지를 수신한 경우 상기 DHCP 서비스 제공 메시지를 저장하는 단계; 및(a3) storing the DHCP service providing message when receiving a message to provide DHCP service from at least one DHCP server within the predetermined time; And (a4) 상기 일정 시간 내에 DHCP 서비스를 제공하겠다는 메시지를 수신하지 못한 경우 하나 이상의 DHCP 서비스를 제공하겠다는 메시지가 저장되었는지를 확인하여, 하나 이상의 DHCP 서비스를 제공하겠다는 메시지가 저장된 경우 상기 저장된 DHCP 서비스를 제공하겠다는 메시지를 이용하여 상기 DHCP 서버 목록을 작성하는 단계를 포함하는 것을 특징으로 하는 DHCP 서버 선택 방법.(a4) If the message for providing DHCP service is not received within the predetermined time, check whether the message for providing one or more DHCP services is stored, and if the message for providing one or more DHCP services is stored, provide the stored DHCP service. DHCP server selection method comprising the step of creating the DHCP server list by using a message. 제1항에 있어서, 상기 (b) 단계는,According to claim 1, wherein step (b), (b1) 사용자에게 상기 DHCP 서버 목록을 표시하는 단계;(b1) displaying the DHCP server list to a user; (b2) 사용자로부터 상기 DHCP 서버 목록에 표시된 서버 중의 하나에 대한 선택을 입력받는 단계;(b2) receiving a selection of one of the servers displayed in the DHCP server list from a user; (b3) 상기 선택된 서버에 대한 파라미터들을 상기 사용자가 원하는 DHCP 파라미터로 설정하는 단계; 및(b3) setting parameters for the selected server to a DHCP parameter desired by the user; And (b4) 상기 선택된 서버를 상기 DHCP 서비스를 요구할 DHCP 서버로 결정하는 단계를 포함하는 것을 특징으로 하는 DHCP 서버 선택 방법.(b4) determining the selected server as a DHCP server for requesting the DHCP service. 제1항에 있어서,The method of claim 1, 사용자로부터 DHCP 서버의 변경 명령을 입력받는 단계;Receiving a change command of a DHCP server from a user; 현재 DHCP 서비스를 제공하고 있는 DHCP 서버에 대한 파라미터를 상기 사용자가 원하는 DHCP 파라미터로 설정하는 단계; 및Setting a parameter for a DHCP server currently providing DHCP service to a DHCP parameter desired by the user; And 상기 DHCP 서비스를 제공하고 있는 DHCP 서버로 DHCP 서비스를 해제해 줄 것을 요청하는 메시지를 전송하는 단계를 포함하는 것을 특징으로 하는 DHCP 서버 선택 방법.And transmitting a message requesting that the DHCP service be released to the DHCP server providing the DHCP service.
KR1020040103658A 2004-12-09 2004-12-09 Method of selecting user-desired DHCP server from multiple DHCP servers KR100636205B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020040103658A KR100636205B1 (en) 2004-12-09 2004-12-09 Method of selecting user-desired DHCP server from multiple DHCP servers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020040103658A KR100636205B1 (en) 2004-12-09 2004-12-09 Method of selecting user-desired DHCP server from multiple DHCP servers

Publications (2)

Publication Number Publication Date
KR20060064964A true KR20060064964A (en) 2006-06-14
KR100636205B1 KR100636205B1 (en) 2006-10-19

Family

ID=37160316

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020040103658A KR100636205B1 (en) 2004-12-09 2004-12-09 Method of selecting user-desired DHCP server from multiple DHCP servers

Country Status (1)

Country Link
KR (1) KR100636205B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100942923B1 (en) * 2007-11-22 2010-02-22 전자부품연구원 Method and System for selecting optimal DHCP server in condition of WiMedia wireless communication environment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100942923B1 (en) * 2007-11-22 2010-02-22 전자부품연구원 Method and System for selecting optimal DHCP server in condition of WiMedia wireless communication environment

Also Published As

Publication number Publication date
KR100636205B1 (en) 2006-10-19

Similar Documents

Publication Publication Date Title
US7152099B1 (en) Friend configuration and method for network devices
KR100657316B1 (en) A fast handover method in DHCPv4, handover apparatus thereof and recording medium thereof
US7568048B2 (en) Method, apparatus, and system for assigning an IP address on a network
US7412515B2 (en) Method and apparatus for dynamic assignment of network protocol addresses
KR101352852B1 (en) Method for allocating IP address using DHCP in an image forming apparatus, Image forming apparatus thereof, and System for allocating IP address using DHCP
US6678732B1 (en) Dynamic host configuration protocol server for allocating IP addresses to a plurality of clients
US9344397B2 (en) Client aware DHCP lease management
JPH11154978A (en) Network system and method for selecting dhcp server
EP3358785B1 (en) Method and device for acquiring resource
US20070239860A1 (en) Information processing device, network connection method, and program recording medium
US8868723B2 (en) Management server and method of discovering network thereof
US9521109B2 (en) Systems, methods, and computer-readable media for allocation and renewal of IP addresses
JP2008141745A (en) Dhcp client/server device and method of providing dhcp server service on network
JP3919781B2 (en) Method and apparatus for managing IP addresses and name mapping for wireless clients
EP3048756A1 (en) Management method and apparatus for dynamic host configuration protocol server and relay
KR100636205B1 (en) Method of selecting user-desired DHCP server from multiple DHCP servers
JP2005252578A (en) Network device and method and program for setting network information
US20110179189A1 (en) Communication apparatus, method of controlling the same, program, and storage medium
KR100977399B1 (en) Method and apparatus of processing DHCP packet in dynamic IP address allocation for reducing network load
JP3775378B2 (en) Firewall system that supports dynamic IP address assignment
JPH10200526A (en) Method for managing state of ip node
JP2017163291A (en) Address setting method, address setting program, and information processing device
JP6230310B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, COMPUTER PROGRAM
JP2008177924A (en) System, method for setting address for terminal communication and terminal storage device
JP2005157639A (en) Proxy communication system and program for same

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
LAPS Lapse due to unpaid annual fee