KR100377628B1 - Implementation method of simultaneously working DHCP server and BOOTP relay agent - Google Patents

Implementation method of simultaneously working DHCP server and BOOTP relay agent Download PDF

Info

Publication number
KR100377628B1
KR100377628B1 KR10-2001-0030668A KR20010030668A KR100377628B1 KR 100377628 B1 KR100377628 B1 KR 100377628B1 KR 20010030668 A KR20010030668 A KR 20010030668A KR 100377628 B1 KR100377628 B1 KR 100377628B1
Authority
KR
South Korea
Prior art keywords
bootp
dhcp server
server
module
client
Prior art date
Application number
KR10-2001-0030668A
Other languages
Korean (ko)
Other versions
KR20020091873A (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-0030668A priority Critical patent/KR100377628B1/en
Publication of KR20020091873A publication Critical patent/KR20020091873A/en
Application granted granted Critical
Publication of KR100377628B1 publication Critical patent/KR100377628B1/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/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/50Address allocation
    • H04L61/5053Lease time; Renewal aspects

Landscapes

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

Abstract

본 발명은 라우터에서 DHCP 서버와 BOOTP 전달 에이전트를 동시에 사용할 수 있도록 하는 방법에 관한 것으로, 본 발명에 따른 DHCP 서버와 BOOTP 전달 에이전트의 동시 구동 방법은, 라우터가 클라이언트로부터 브로드 캐스트 패킷을 수신하여, 상기 패킷의 목적 포트가 DHCP 서버모듈과 BOOTP 전달 에이전트가 동일하게 연결된 포트인가를 확인하는 단계; 상기 확인결과, 동일한 포트일때, DHCP 서버 모듈과 BOOTP 전달 에이전트 모듈이 동시에 동작 중인가를 확인하는 단계; 상기 DHCP 서버 모듈과 BOOTP 전달 에이전트가 동시에 동작 중일 경우, 상기 브로드 캐스트 패킷을 복제하여 상기 DHCP 서버와 BOOTP 전달 에이전트로 각각 전송하여, 각각 패킷을 처리하도록 하는 단계를 포함하여 구성되는 것을 특징으로 한다.The present invention relates to a method for enabling a router to simultaneously use a DHCP server and a BOOTP forwarding agent. According to the present invention, a method for simultaneously operating a DHCP server and a BOOTP forwarding agent includes: receiving a broadcast packet from a client; Checking whether a destination port of the packet is a port to which the DHCP server module and the BOOTP forwarding agent are identically connected; Confirming whether the DHCP server module and the BOOTP delivery agent module are operating at the same time when they are the same port; When the DHCP server module and the BOOTP delivery agent is operating at the same time, the broadcast packet is replicated to the DHCP server and the BOOTP delivery agent, characterized in that it comprises a step of processing each packet.

이 같은 본 발명에 의하면, DHCP 서버 모듈과 BOOTP 전달 에이전트 모듈에 브로드 캐스트 패킷을 동시에 전달할 수 있는 알고리즘을 도입하여 DHCP 서버모듈과 BOOTP 전달 에이전트 모듈 모두 사용할 수 있도록 하는 효과가 기대된다.According to the present invention, it is expected that the DHCP server module and the BOOTP delivery agent module can be used to both the DHCP server module and the BOOTP delivery agent module by introducing an algorithm capable of simultaneously delivering broadcast packets.

Description

DHCP 서버와 BOOTP 전달 에이전트의 동시 구동 방법 {Implementation method of simultaneously working DHCP server and BOOTP relay agent}{Implementation method of simultaneously working DHCP server and BOOTP relay agent}

본 발명은 라우터에서 같은 UDP(User Datagram Protocol) 포트 67번을 사용하는 DHCP(동적 호스트 구성 프로토콜; Dynamic Host Configuration Protocol) 서버와 BOOTP(부트 트랩 프로토콜; Boot Trap Protocol) 전달 에이전트를 동시에 사용할 수 있는 방법에 관한 것으로, 특히 DHCP 서버 와 BOOTP 전달 에이전트를 동시에 동작시킬 수 있도록 하는 DHCP 서버와 BOOTP 전달 에이전트의 동시 구동 방법에 관한 것이다.The present invention provides a method for simultaneously using a DHCP (Dynamic Host Configuration Protocol) server and a Boot Trap Protocol (BOOTP) forwarding agent using the same User Datagram Protocol (UDP) port 67 in a router. In particular, the present invention relates to a method of simultaneously operating a DHCP server and a BOOTP forwarding agent that enables a DHCP server and a BOOTP forwarding agent to operate simultaneously.

BOOTP는 네트웍 사용자가 자동으로 구성되고(IP 주소를 받게), 사용자의 간여 없이도 부트 되는 운영체계를 가지고 있게 해주는 프로토콜이다. X 터미널 등과 같이 하드디스크를 갖지 않은 장치의 설정 정보를 자동적으로 할당, 관리하기 위해서 개발되었다. 네트웍 관리자에 의해 관리되는 BOOTP 서버는, 일정 시간동안 IP 주소를 자동으로 할당한다.BOOTP is a protocol that allows network users to have an operating system configured automatically (get an IP address) and booted without user intervention. It was developed to automatically assign and manage configuration information of devices that do not have a hard disk, such as the X terminal. The BOOTP server, managed by the network administrator, automatically assigns IP addresses for a period of time.

BOOTP는 좀더 진보된 네트웍 관리 프로토콜인 DHCP의 기반이 된다.BOOTP is the foundation of DHCP, a more advanced network management protocol.

일반적으로, DHCP는 IP 주소를 비롯한 각종 TCP/IP 프로토콜 기본 설정을 개별 클라이언트들에 자동적으로 할당하는 방식의 프로토콜로써, 특히 DHCP 서버는 DHCP 클라이언트로부터의 IP주소 대여 요청에 응답하여, 이를 위해서 할당 가능한 IP주소들의 영역인 스코프(Scope; 범위)를 유지 관리하고, BOOTP의 메시지 포맷을바탕으로 한 메시지 포맷을 가지고 있다.In general, DHCP is a protocol that automatically assigns various TCP / IP protocol preferences, including IP addresses, to individual clients. In particular, the DHCP server responds to requests for IP address lease from DHCP clients. It maintains a scope, a range of IP addresses, and has a message format based on the message format of BOOTP.

즉, DHCP 는 클라이언트가 부팅될 때, 서버로부터 동적으로 IP 구성정보를 받음으로써, 네트워크 관리자가 호스트마다 일일이 네트워크 설정을 하는 번거로움을 덜 수 있고, 동시에 모든 클라이언트들이 동작하지는 않는다는 가정 하에, 실제 존재하는 클라이언트의 수보다 적은 IP 주소를 할당 설정함으로써 한정된 IP 주소를 효율적으로 사용할 수 있도록 한다.In other words, DHCP dynamically receives IP configuration information from the server when the client is booted, thereby saving network administrators from having to configure the network individually for each host, and at the same time assuming that not all clients are running. By allocating fewer IP addresses than the number of clients, you can efficiently use a limited number of IP addresses.

상기 IP 주소 할당 방법에는 동적 할당 방법과 정적 할당 방법이 있는데, 동적 할당의 경우, 클라이언트의 구성정보 요청이 있으면 네트워크 관리자가 미리 지정한 IP 주소의 범위에서 현재 사용하지 않는 IP 주소를 선택하여 할당하고, 이때 DHCP 서버는 클라이언트가 상기 할당한 IP 주소를 무한정 사용할 수 없도록 네트워크 관리자가 미리 설정한 일정기간동안만 사용권한을 준다.The IP address allocation method includes a dynamic allocation method and a static allocation method. In the case of dynamic allocation, when a client requests configuration information, a network administrator selects and assigns an unused IP address from a range of IP addresses previously designated by the network administrator. At this time, the DHCP server gives the user permission only for a predetermined period set by the network administrator so that the client cannot use the assigned IP address indefinitely.

또한, 정적 할당의 경우 클라이언트의 구성정보 요청이 있으면 네트워크 관리자가 미리 지정한 IP 주소와 하드웨어 주소의 쌍으로 이루어진 테이블에 클라이언트의 하드웨어 주소가 있는지 확인하고, 있을 경우에 한하여 무한정으로 IP 구성정보를 사용하도록 하는 것이다.In addition, in the case of static allocation, if the client requests configuration information, the network administrator checks whether the client's hardware address is present in a table of predefined IP address and hardware address pairs, and uses the IP configuration information indefinitely. It is.

도 1a은 DHCP 및 BOOTP 메시지의 포맷을 나타낸 도표이고, 도 1-a는 DHCP 및 BOOTP 메시지에 있는 필드들의 설명을 나타낸 표이다.FIG. 1A is a diagram illustrating the format of DHCP and BOOTP messages, and FIG. 1-A is a table illustrating the fields in the DHCP and BOOTP messages.

도 1a 및 도 1b에서 도시한 바와 같이, DHCP 및 BOOTP 메시지의 포맷은 가장 먼저 명령어 코드 메시지를 나타내는 'op'필드와, 하드웨어 주소의 타입을 나타내는 'htype' 필드와, 하드웨어 주소의 길이정보를 나타내는 'hlen' 필드와, 클라이언트를 제로로 셋팅하기 위한 정보를 포함하는 'hops'필드를 가지고 있다. 클라이언트가 부트를 요구하며, 하드웨어 타입이 10mb 이더넷이며, 전달 에이전를 통해 부팅할 때, 'op = 1', 'htype = 1', 'hlen = 6', 'hops = 1'의 정보를 가지게 된다.As shown in FIG. 1A and FIG. 1B, the format of the DHCP and BOOTP message is the first 'op' field indicating the command code message, the 'htype' field indicating the type of hardware address, and the length information of the hardware address It has a 'hlen' field and a 'hops' field containing information for setting the client to zero. The client requires a boot, the hardware type is 10mb Ethernet, and when booting through the forwarding agency, it will have information 'op = 1', 'htype = 1', 'hlen = 6', and 'hops = 1'. .

상기 DHCP 및 BOOTP 메시지는 집행아이디 정보인 'xid' 필드를 가지고, 'secs' 필드와, 'flags' 필드도 가진다.The DHCP and BOOTP messages have a 'xid' field which is execution ID information, and also have a 'secs' field and a 'flags' field.

또한, 클라이언트의 IP 주소, 상대방 IP 주소, 부트스트랩에서 사용할 다음 서버의 IP 주소, 전달 에이전트 IP 주소, 클라이언트 하드웨어 주소 정보를 각각 나타내는 'ciaddr', 'yiaddr', 'siaddr', 'giaddr', 'chaddr' 필드를 포함한다.Also, 'ciaddr', 'yiaddr', 'siaddr', 'giaddr', 'which indicate the client's IP address, partner IP address, IP address of the next server to be used in bootstrap, forwarding agent IP address, and client hardware address information. Contains the chaddr 'field.

상기 DHCP 및 BOOTP 메시지는 선택된 호스트 이름을 나타내는 'sname' 필드와, 부트 파일의 이름을 나타내는 'file'필드 및 선택된 파라미터 필드정보를 가지느 'options'필드도 포함하여 구성된다.The DHCP and BOOTP messages include a 'sname' field indicating a selected host name, a 'file' field indicating a name of a boot file, and a 'options' field having selected parameter field information.

상기와 같은 포맷의 메시지를 상기 DHCP서버 및 BOOTP 전달 에이전트는 각각 분석하여 목적지 등을 판단하여 동작하는 것이다.The DHCP server and the BOOTP delivery agent analyze the message of the above format to determine the destination and operate.

또한, 도 2는 새로운 네트워크 주소를 할당할 때에 DHCP 서버와 클라이언트간에 교환되는 메시지의 시간에 따른 흐름도를 나타낸 도표이고, 도 3은 새로운 IP 주소를 할당할 때에 BOOTP 서버, 클라이언트와 BOOTP 전달 에이전트간에 교환되는 메시지의 시간에 따른 흐름도를 나타낸 도표이다.FIG. 2 is a diagram showing a time-dependent flow of messages exchanged between a DHCP server and a client when allocating a new network address, and FIG. 3 is a exchange between a BOOTP server, a client and a BOOTP forwarding agent when allocating a new IP address. This is a chart showing the flow of the message to be over time.

도 2을 참조하면 사용자가 사용하게 되는 DHCP 클라이언트(200)와, 상기 클라이언트(200)에 IP 주소를 할당하고, 작업을 위한 서버 1(100) 및 서버 2(300)로구성된다. 또한, 상기 서버 1(100)은 상기 클라이언트(200)와 서로 다른 네트워크에 위치하고, 상기 서버 2(300)는 상기 클라이언트(200)와 같은 네트워크내에 존재한다.Referring to FIG. 2, a DHCP client 200 used by a user, an IP address assigned to the client 200, and a server 1 (100) and a server 2 (300) for work are configured. In addition, the server 1 (100) is located in a different network from the client (200), and the server 2 (300) is in the same network as the client (200).

상기 클라이언트(200)가 초기화를 시작하고(S101), 네트워크 작업을 위하여 상기 서버 1(100) 및 서버 2(300)로 DHCPDISCOVER(동적 호스트 구성프로토콜 호출)메시지를 전송하면(S102), 상기 서버 1(100) 및 서버 2(300)는 DHCP 에 의해 IP 주소를 할당을 위하여 정적 할당 테이블 및 동적 할당 테이블을 순서대로 검색한다.When the client 200 starts to initialize (S101) and transmits a DHCPDISCOVER (Dynamic Host Configuration Protocol Call) message to the server 1 (100) and the server 2 (300) for network operation (S102), the server 1 The server 100 and the server 2 300 search the static allocation table and the dynamic allocation table in order to allocate an IP address by DHCP.

이때, 정적 할당 테이블은 IP 주소와 하드웨어 주소의 조합으로 이루어진 테이블이고, 동적 할당 테이블은 네트워크 관리자가 설정한 할당 가능한 IP 주소들이 있다.At this time, the static allocation table is a table consisting of a combination of IP address and hardware address, the dynamic allocation table is the assignable IP address set by the network administrator.

상기 서버 1(100) 및 서버 2(300)가 각각 호스트 구성을 결정하여(S103), DHCPOFFER(동적 호스트 구성 프로토콜 제안) 메시지에 포함시켜 상기 클라이언트 (200)로 전송한다(S104).The server 1 (100) and the server 2 (300) respectively determine the host configuration (S103), and include it in the DHCPOFFER (Dynamic Host Configuration Protocol Proposal) message and transmit it to the client 200 (S104).

이때, 상기 서버 1(100)은 DHCPOFFER 메시지를 전송하고, 상기 클라이언트(200)는 다수의 서버로부터 전송되는 IP 주소 할당요청에 대한 응답을 수집한다(S105). 상기 클라이언트(200)로부터의 IP 주소 할당 요청에 대한 DHCPOFFER 메시지는 불특정 다수의 서버들로부터 각각 전송되며, 본 건에서의 설명은 도면과 같은 서버 1(100) 및 서버 2(300)만을 예를 들어 설명하는 것이다.At this time, the server 1 (100) transmits a DHCPOFFER message, the client 200 collects a response to the IP address allocation request transmitted from a plurality of servers (S105). The DHCPOFFER message for the IP address allocation request from the client 200 is transmitted from an unspecified plurality of servers, respectively, and the description in this case only uses the server 1 100 and the server 2 300 as shown in the drawing. To explain.

상기 클라이언트(200)는 상기 DHCPOFFER 메시지를 전송 받으면, 상기 서버 1(100) 및 서버 2(300)로부터 전송된 호스트 구성 중에서 같은 네트워크 내에 존재하는 서버 2(300)의 구성을 선택하고(S106), 상기 서버 1(100)및 서버 2(300)로 DHCPREQUEST(동적 호스트 구성 프로토콜 요구)메시지를 전송하는데 (S107), 서버 1(100)에는 같은 네트워크에 존재하지 않으므로 구성 선택이 되지 않았다는 메시지를 상기 DHCPOFFER 메시지에 포함시켜 전송하고, 서버 2(300)에는 구성 선택으로 인한 IP 주소 사용을 요청하는 메시지를 상기 DHCPOFFER 메시지에 포함시켜 전송한다.When the client 200 receives the DHCPOFFER message, the client 200 selects the configuration of the server 2 300 existing in the same network among the host configurations transmitted from the server 1 100 and the server 2 300 (S106). DHCPREQUEST (Dynamic Host Configuration Protocol Request) message is sent to the server 1 (100) and the server 2 (300) (S107), the server 1 (100) does not exist in the same network, the message that the configuration selection was not selected DHCPOFFER Included in the message and transmitted, the server 2 (300) includes a message requesting the use of the IP address due to the configuration selection in the DHCPOFFER message and transmits.

상기 서버 2(300)는 클라이언트의 요구에 의하여 구성을 수용하여, 상기 클라이언트(200)에 IP 주소를 할당하고, 상기 DHCPOFFER 메시지를 정상적으로 전달받았다는 DHCPACK(동적 호스트 구성 프로토콜 응답) 메시지를 상기 클라이언트(200)로 전송한다(S109).The server 2 300 accepts the configuration at the request of the client, allocates an IP address to the client 200, and receives a DHCPACK (dynamic host configuration protocol response) message indicating that the DHCPOFFER message has been normally received. (S109).

상기와 같이 초기화가 완료되면(S110), 상기 서버 2(300)와 클라이언트(200)가 네트워크 작업을 수행하고, 클라이언트(200)의 작업이 정상적으로 종료되면 (S111), 상기 클라이언트(200)는 서버 2(300)로 DHCPRELEASE(동적 호스트 구성 프로토콜 해제) 메시지를 보내어, 상기 서버 2(300)가 수용하였던 구성을 해제시킨다(S113).When the initialization is completed as described above (S110), the server 2 (300) and the client 200 performs a network operation, when the work of the client 200 is normally terminated (S111), the client 200 is a server By sending a DHCPRELEASE (Dynamic Host Configuration Protocol Release) message to 2 (300), the server 2 (300) releases the configuration accepted (S113).

상기 DHCP 서버와 클라이언트(200)의 동작은 브로드 캐스트 패킷을 기반으로 하기 때문에, 서버와 클라이언트는 반드시 같은 브로드 캐스트 영역을 공유하는 동일한 네트워크에 공유하여야 한다. 즉, 같은 네트워크 내에 존재하지 않는 서버 1(100)로 부터는 IP 주소를 할당받을 수 없는 것이다.Since the operation of the DHCP server and the client 200 is based on the broadcast packet, the server and the client must be shared in the same network sharing the same broadcast area. That is, an IP address cannot be allocated from the server 1 (100) that does not exist in the same network.

따라서 상기 클라이언트(200)가 브로드 캐스트 영역을 공유하지 않는 서버1(100)로부터 IP 주소 할당을 받기 위해서는 도 3과 같은 BOOTP 전달 에이전트가 필요하게된다.Therefore, in order for the client 200 to receive an IP address assignment from the server 1 100 that does not share the broadcast area, a BOOTP delivery agent as shown in FIG. 3 is required.

도 3을 참조하여 설명하면, 같은 브로드 캐스트 영역을 공유하지 않는 서버와 클라이언트인 BOOTP 서버(400)와, BOOTP 클라이언트(600)와, 상기 서버와 클라이언트의 연결을 위한 BOOTP 전달 에이전트(500)로 구성된다.Referring to FIG. 3, a BOOTP server 400 that is a server and a client that does not share the same broadcast area, a BOOTP client 600, and a BOOTP delivery agent 500 for connecting the server and the client are configured. do.

상기 BOOTP 서버(400)와 BOOTP 클라이언트(600)의 IP 할당 및 작업과정을 상기 도 2에서 설명한 바와 거의 유사하다.The IP assignment and operation of the BOOTP server 400 and the BOOTP client 600 are almost similar to those described with reference to FIG. 2.

즉, BOOTP 전달 에이전트가 초기화를 시작하여(S201), BOOTP 클라이언트 (600)가 BOOTP 서버(400)로 IP 할당을 요청하기 위하여 DISCOVER(요청) 메시지를 전송하면(S202), 상기 BOOTP 서버(400)가 같은 네트워크에 존재하지 않기 때문에, BOOTP 전달 에이전트(500)가 상기 DISCOVER 메시지를 상기 BOOTP 서버로 전달해서(S203), 상기 BOOTP 서버(400)로 전송해 준다(S204).That is, when the BOOTP delivery agent starts initialization (S201), and the BOOTP client 600 transmits a DISCOVER message to request an IP allocation to the BOOTP server 400 (S202), the BOOTP server 400 Does not exist in the same network, the BOOTP delivery agent 500 transmits the DISCOVER message to the BOOTP server (S203) and transmits the message to the BOOTP server 400 (S204).

상기와 같이 BOOTP 전달 에이전트(500)는 상기 도 2와 같은 순서로 IP 할당을 하는 BOOTP 클라이언트(600)와 BOOTP 서버(400)간의 명령어를 전달해 주는 역할을 하는 것이다.As described above, the BOOTP delivery agent 500 plays a role of transferring a command between the BOOTP client 600 and the BOOTP server 400 which assign IP in the order as shown in FIG. 2.

또한, 상기 BOOTP 서버(400)로부터 IP 할당 구성정보를 포함한 OFFER정보를 전송받으면(S206), 상기 메시지의 IP 할당 구성정보가 다른 클라이언트와 오버랩되지는 않는가를 핑 플레이를 이용하여 체크하고, 오버랩이 되지 않을경우, 상기 BOOTP 클라이언트(600)로 전달해주는 역할도 한다.In addition, when receiving OFFER information including IP allocation configuration information from the BOOTP server 400 (S206), it is checked whether the IP allocation configuration information of the message is overlapped with another client using ping play, and the overlap is If not, it also serves to deliver to the BOOTP client 600.

이때, 핑 플레이란, 상기 BOOTP 전달 에이전트(500)가 상기 BOOTP 서버(400)로부터 전송받은 OFFER 메시지에 포함된 IP 주소로 핑 패킷을 발신하여, 응답이 있다면 다른 호스트에서 이미 상기 IP 주소를 사용하고 있다는 뜻이 므로, 오버랩이 되어있다는 걸 알수 있는 것이다. 물론 상기 핑 패킷에 대한 응답이 없다면 오버랩이 되지 않았다는 뜻이므로 상기 OFFER 메시지를 BOOTP 클라이언트(600)로 전달한다.In this case, ping play means that the BOOTP delivery agent 500 sends a ping packet to an IP address included in an OFFER message received from the BOOTP server 400, and if there is a response, the other host already uses the IP address. This means that it is overlapping. Of course, if there is no response to the ping packet, it means that there is no overlap. Therefore, the OFFER message is transmitted to the BOOTP client 600.

상기에서 보인 바와 같이, 일반적으로 BOOTP 전달 에이전트는 두개 이상의 네트워크를 연결하는 라우터에서 동작하게 된다.As shown above, a BOOTP forwarding agent generally operates in a router connecting two or more networks.

그러나, 상기와 같은 DHCP 와 BOOTP 전달 에이전트가 동일한 UDP 포트 67번을 사용할 때, DHCP 서버 모듈과 BOOTP 전달 에이전트 모듈이 함께 동작하는 라우터는 UDP 레이어 까지 올라온 브로드 캐스트 패킷의 목적 포트 넘버가 67이므로 상기 두개의 모듈 중 어느 한 모듈로만 패킷을 전달하게 되어, 종래에는 DHCP 서버 모듈과 BOOTP 전달 에이전트 모듈을 동시에 동작 시켜도, 결과적으로 어느 한쪽의 모듈만이 작동하게 되는 문제점이 있었다.However, when the DHCP and the BOOTP forwarding agent use the same UDP port 67, the router in which the DHCP server module and the BOOTP forwarding agent module operate together has the destination port number 67 of the broadcast packet up to the UDP layer. Since only one module of the module forwards the packet, conventionally, even if the DHCP server module and the BOOTP delivery agent module are operated at the same time, there is a problem that only one module operates as a result.

또한, 클라이언트의 입장에서는 다수의 요구신호를 받아서 그 중 적절한 IP 구성정보를 선택하는 것이 유리하기 때문에, 라우터에서 DHCP 서버의 기능을 제공하더라도, 다른 네트워크의 서버에도 클라이언트가 접속하여 작업할 수 있도록 전달 기능이 있는 것이 DHCP 네트워크 구현에 유리하다.In addition, it is advantageous for the client to receive a large number of request signals and select appropriate IP configuration information among them, so that even if the router provides a DHCP server function, the client can access and work with servers in other networks. The ability to do so is advantageous for DHCP network implementations.

상기와 같은 문제점을 해결하기 위해서, 본 발명은 라우터에서 DHCP 서버 모듈과 BOOTP 전달 에이전트 모듈이 동시에 동작할 수 있도록 UDP 레이어로 올라오는 브로드 캐스트 패킷을 복사하여, 두 개의 모듈에 동시에 전달할 수 있는 알고리즘을 도입하여 DHCP 서버모듈과 BOOTP 전달 에이전트 모듈 모두 사용할 수 있도록 하는 DHCP 서버와 BOOTP 전달 에이전트의 동시 구동 방법을 제공함에 그 목적이 있다.In order to solve the above problems, the present invention is to copy the broadcast packet to the UDP layer so that the DHCP server module and the BOOTP forwarding agent module can operate at the same time, the algorithm that can be delivered to the two modules at the same time The purpose of the present invention is to provide a method of simultaneously operating a DHCP server and a BOOTP forwarding agent so that both a DHCP server module and a BOOTP forwarding agent module can be used.

도 1a은 DHCP 및 BOOTP 메시지의 포맷을 나타낸 도표.1A is a diagram illustrating the format of DHCP and BOOTP messages.

도 1b는 DHCP 및 BOOTP 메시지에 있는 필드들의 설명을 나타낸 표1B is a table illustrating the description of fields in DHCP and BOOTP messages.

도 2는 새로운 네트워크 주소를 할당할 때에 DHCP 서버와 클라이언트간에 교환되는 메시지의 시간에 따른 흐름도를 나타낸 도표.Fig. 2 is a diagram showing a flow chart of the time of messages exchanged between a DHCP server and a client when allocating a new network address.

도 3은 새로운 IP 주소를 할당할 때에 BOOTP 서버, 클라이언트와 BOOTP 전달 에이전트간에 교환되는 메시지의 시간에 따른 흐름도를 나타낸 도표.3 is a flow chart illustrating the time-dependent flow of messages exchanged between a BOOTP server, a client and a BOOTP forwarding agent when allocating a new IP address.

도 4는 본 발명의 실시 예에 따라 라우터가 목적 포트 숫자로 UDP 포트 67을 갖는 전파 패킷을 받을 경우, 라우터에서 DHCP 서버 모듈과 BOOTP 전달 에이전트 모듈이 모두 동작하고 있는가를 확인하는 단계의 플로우 차트.4 is a flowchart illustrating a step of checking whether both a DHCP server module and a BOOTP forwarding agent module are operating in a router when a router receives a propagation packet having a UDP port 67 as a target port number according to an embodiment of the present invention.

도 5는 DHCP 서버 모듈과 BOOTP 전달 에이전트 모듈이 동작할 경우, 전파 패킷을 복제하여 두 모듈로 각각 보내는 단계의 플로우 차트.Figure 5 is a flow chart of the steps of duplicating and sending the propagation packet to each of the two modules when the DHCP server module and the BOOTP delivery agent module operating.

도 6은 DHCP 서버 모듈과 BOOTP 전달 에이전트 모듈이 전파 패킷의 처리를 완료를 확인하고, 복제된 패킷에 할당한 메모리를 해제하는 단계의 플로우 차트.6 is a flowchart of a step of confirming that the DHCP server module and the BOOTP delivery agent module have completed processing of the propagation packet, and releasing the memory allocated to the duplicated packet.

본 발명에 따른 DHCP 서버와 BOOTP 전달 에이전트의 동시 구동 방법은,Simultaneous running method of the DHCP server and the BOOTP delivery agent according to the present invention,

라우터가 클라이언트로부터 브로드 캐스트 패킷을 수신하여, 상기 패킷의 목적 포트가 DHCP 서버모듈과 BOOTP 전달 에이전트가 동일하게 연결된 포트인가를 확인하는 단계;Receiving, by the router, a broadcast packet from the client, and confirming whether the destination port of the packet is a port to which the DHCP server module and the BOOTP forwarding agent are identically connected;

상기 확인결과, 동일한 포트일때, DHCP 서버 모듈과 BOOTP 전달 에이전트 모듈이 동시에 동작 중인가를 확인하는 단계;Confirming whether the DHCP server module and the BOOTP delivery agent module are operating at the same time when they are the same port;

상기 DHCP 서버 모듈과 BOOTP 전달 에이전트가 동시에 동작 중일 경우, 상기 브로드 캐스트 패킷을 복제하여 상기 DHCP 서버와 BOOTP 전달 에이전트로 각각 전송하여, 각각 패킷을 처리하도록 하는 단계를 포함하는 것을 특징으로 한다.When the DHCP server module and the BOOTP delivery agent is operating at the same time, the broadcast packet is copied to the DHCP server and the BOOTP delivery agent, characterized in that it comprises the step of processing each packet.

바람직하게, 상기 라우터는 상기 DHCP 서버와, BOOTP 전달 에이전트에서 상기 브로드 캐스트 패킷을 정상적으로 처리했을 경우, 복제된 패킷에 할당되었던 메모리를 해제하는 것을 더 포함하여 구성되는 것을 특징으로 한다.Preferably, the router further comprises releasing memory allocated to the duplicated packet when the DHCP server and the BOOTP delivery agent normally process the broadcast packet.

상기와 같은 DHCP 서버와 BOOTP 전달 에이전트의 동시 구동 방법에 대하여첨부된 도면을 참조하여 설명하면 다음과 같다.The simultaneous operation of the DHCP server and the BOOTP delivery agent will be described with reference to the accompanying drawings.

도 4는 본 발명의 실시 예에 따라 라우터가 목적 포트 숫자로 UDP 포트 67을 갖는 전파 패킷을 받을 경우, 라우터에서 DHCP 서버 모듈과 BOOTP 전달 에이전트 모듈이 동작하고 있는가를 확인하는 단계의 플로우 차트이고, 도 5는 DHCP 서버 모듈과 BOOTP 전달 에이전트 모듈이 동작할 경우, 전파 패킷을 복제하여 두 모듈로 각각 보내는 단계의 플로우 차트이고, 도 6은 DHCP 서버 모듈과 BOOTP 전달 에이전트 모듈이 전파 패킷의 처리를 완료를 확인하고, 복제된 패킷에 할당한 메모리를 해제하는 단계의 플로우 차트이다.4 is a flowchart illustrating a step of checking whether a DHCP server module and a BOOTP forwarding agent module are operating in a router when the router receives a propagation packet having a UDP port 67 as a target port number according to an embodiment of the present invention. 5 is a flow chart of the steps of duplicating and sending the propagation packet to each of the two modules when the DHCP server module and the BOOTP forwarding agent module operate, and FIG. 6 shows that the DHCP server module and the BOOTP forwarding agent module complete processing the propagation packet. A flow chart of the steps of checking and releasing memory allocated to duplicated packets.

상기 도 4 내지 도 6을 참조하여 본 발명에 따른 DHCP 서버와 BOOTP 전달 에이전트의 동시 구동 방법을 설명하면 다음과 같다.Referring to FIG. 4 to FIG. 6, a method of simultaneously operating a DHCP server and a BOOTP delivery agent according to the present invention will be described.

우선, 도 4를 참조하면, 클라이언트가 네트워크 작업을 위하여, 브로드 캐스트 패킷을 서버로 전송하면, 라우터는 상기 클라이언트가 전송한 브로드 캐스트 패킷을 수신하여(S100), 상기 브로드 캐스트 패킷을 전송할 목적 포트의 넘버가 67번인가를 확인한다(S200). 이때, 포트 넘버가 67이라는 것은 일반적으로, DHCP 서버 모듈과 BOOTP 전달 에이전트 모듈이 67번에 연결되어 있기 때문에, 동일한 포트에 연결되어 있는가를 확인하는 절차이다.First, referring to FIG. 4, when a client transmits a broadcast packet to a server for network operation, the router receives a broadcast packet transmitted by the client (S100), and transmits the broadcast packet to a destination port. Check whether the number is 67 (S200). In this case, the port number of 67 is generally a procedure of checking whether the DHCP server module and the BOOTP delivery agent module are connected to the same port.

상기 확인결과, 목적 포트의 넘버가 67이면, 상기 라우터는 포트 67을 동시에 사용하는 DHCP 서버 모듈과 BOOTP 전달 에이전트 모듈이 동시에 동작하고 있는가를 확인하고(S300), 상기 두 개의 모듈이 동시에 동작하고 있으면 상기 브로드 캐스트 패킷을 복제하기 위한 준비를 한다(S400).As a result of the check, if the target port number is 67, the router checks whether the DHCP server module and the BOOTP forwarding agent module using the port 67 are operating at the same time (S300). It prepares to duplicate the broadcast packet (S400).

다음으로, 도 5를 참조하면, 상기 단계 S400에서 상기 라우터가 상기 브로드 캐스트 패킷 복제 준비를 완료하면, 복제를 수행하고(S410), 복제가 성공적으로 이루어 졌는가를 확인한다(S420).Next, referring to FIG. 5, when the router completes preparation for replicating the broadcast packet in step S400, replication is performed (S410), and it is checked whether replication is successfully performed (S420).

만일, 복제가 제대로 수행되지 않았다면, 상기 라우터는 사용자에게 복제 실패를 알리고, 수신한 브로드 캐스트 패킷을 삭제한다(S450).If the replication is not performed properly, the router notifies the user of the replication failure and deletes the received broadcast packet (S450).

또한, 성공적으로 복제가 수행되었다면, 상기 라우터는 DHCP 서버 모듈로 원래의 브로드 캐스트 패킷을 전송하고, BOOTP 전달 에이전트 모듈로는 복제된 브로드 캐스트 패킷을 전송한다(S430).In addition, if the replication is successfully performed, the router transmits the original broadcast packet to the DHCP server module and transmits the duplicated broadcast packet to the BOOTP delivery agent module (S430).

상기 DHCP 서버 모듈과 BOOTP 전달 에이전트 모듈은 각각 수신한 브로드 캐스트 패킷을 처리하게 된다(S440).The DHCP server module and the BOOTP delivery agent module process the received broadcast packets, respectively (S440).

마지막으로, 도 6에서와 같이, 상기 라우터는 상기 DHCP 서버 모듈 및 BOOTP 전달 에이전트 모듈에서 상기 전송한 브로드 캐스트 패킷의 처리가 정상적으로 완료되었는가를 확인하고(S441), 정상적으로 패킷이 처리되었다면, 복제된 패킷에 할당된 메모리를 해제한다(S442).Finally, as shown in FIG. 6, the router checks whether the processing of the broadcast packet transmitted from the DHCP server module and the BOOTP delivery agent module is normally completed (S441). The memory allocated to is released (S442).

만일 정상적인 처리되지 않았다면 이를 사용자에게 알리고 복제된 패킷에 할당된 메모리를 해제한다(S443).If it is not processed normally, it notifies the user and releases the memory allocated to the duplicated packet (S443).

자세히 설명하면, 클라이언트가 DHCP 에 의한 IP 할당 요청을 위한 DISCOVER(요청) 메시지를 라우터로 전송하면, 상기 라우터는 수신한 DISCOVER 메시지의 목적지가 어디인가를 확인한다. 이때, 상기 라우터는 우선 DISCOVER 메시지가 브로드 캐스트 패킷인가 확인하게 되는데, DHCP 를 위한 메시지는 브로드 캐스트패킷이므로, 목적지를 확인하게 된다.In detail, when the client sends a DISCOVER message to the router for an IP allocation request by DHCP, the router checks the destination of the received DISCOVER message. At this time, the router first checks whether the DISCOVER message is a broadcast packet. Since the message for DHCP is a broadcast packet, the router checks the destination.

상기 DISCOVER 메시지의 목적기 포트 넘버가 67번이라면, 라우터는 DHCP 서버와 BOOTP 전달 에이전트가 모두 동작하는가를 파악하여, 상기 DHCP 서버와 BOOTP 전달 에이전트가 동시에 동작하고 있다면, 상기 DISCOVER 메시지를 복제하여, 원본 메시지는 DHCP 서버로, 복제 메시지는 BOOTP 전달 에이전트로 전송한다.If the destination port number of the DISCOVER message is 67, the router determines whether both the DHCP server and the BOOTP forwarding agent are operating. If the DHCP server and the BOOTP forwarding agent are simultaneously running, the router duplicates the DISCOVER message. The message is sent to the DHCP server, and the duplicate message is sent to the BOOTP forwarding agent.

상기 DHCP 서버 및 BOOTP 전달 에이전트는 상기 DISCVER 메시지에 따라, IP 할당을 위한 구성을 결정하는 작업을 한다.The DHCP server and the BOOTP delivery agent determine a configuration for IP allocation according to the DISCVER message.

이때, 라우터는 상기 DHCP 서버 및 BOOTP 전달 에이전트가 DISCOVER 메시지에 따른 구성결정 동작을 완료하는 가를 감시하여, 모두 정상적으로 구성결정 동작을 완료하면, 보유하고있던 상기 DISCOVER 메시지의 복제본을 위하여 할당했던 메모리를 해제하여 다른 메시지를 위한 복제본 할당 메모리를 할당하는 것이다.At this time, the router monitors whether the DHCP server and the BOOTP forwarding agent complete the configuration decision operation according to the DISCOVER message, and when both of them complete the configuration decision operation normally, the router releases the memory allocated for the replica of the DISCOVER message. To allocate replica allocation memory for other messages.

이상에서 설명한 바와 같이 본 발명에 따른 DHCP 서버와 BOOTP 전달 에이전트의 동시 구동 방법은 종래에는 클라이언트로부터 전송되는 브로드 캐스트 패킷을 같은 UDP 포트 67번을 사용하는 DHCP 서버와 BOOTP 전달 에이전트로 라우터에서 동시에 전송하지 못해서, DHCP 서버와 BOOTP 전달 에이전트를 동시에 동작시키지 못했던 것을, 라우터에서 브로드 캐스트 패킷을 복제하여 DHCP 서버와 BOOTP 전달 에이전트로 동시에 전송할 수 있는 방법을 제시하여, DHCP 서버와 BOOTP 전달 에이전트를 동시에 사용할 수 있게 함으로써 라우터의 성능을 향상시킬 수 있는 효과가있다.As described above, in the method of simultaneously operating a DHCP server and a BOOTP forwarding agent according to the present invention, a broadcast packet transmitted from a client does not simultaneously transmit from a router to a DHCP server and a BOOTP forwarding agent using the same UDP port 67 at the same time. If the DHCP server and BOOTP forwarding agent were not operated at the same time, the router can replicate the broadcast packet and send it to the DHCP server and the BOOTP forwarding agent at the same time so that the DHCP server and the BOOTP forwarding agent can be used simultaneously. This has the effect of improving the performance of the router.

Claims (2)

라우터가 클라이언트로부터 브로드 캐스트 패킷을 수신하여, 상기 패킷의 목적 포트가 DHCP 서버모듈과 BOOTP 전달 에이전트가 동일하게 연결된 포트인가를 확인하는 단계;Receiving, by the router, a broadcast packet from the client, and confirming whether the destination port of the packet is a port to which the DHCP server module and the BOOTP forwarding agent are identically connected; 상기 확인결과, 동일한 포트일때, DHCP 서버 모듈과 BOOTP 전달 에이전트 모듈이 동시에 동작 중인가를 확인하는 단계;Confirming whether the DHCP server module and the BOOTP delivery agent module are operating at the same time when they are the same port; 상기 DHCP 서버 모듈과 BOOTP 전달 에이전트가 동시에 동작 중일 경우, 상기 브로드 캐스트 패킷을 복제하여 상기 DHCP 서버와 BOOTP 전달 에이전트로 각각 전송하여, 각각 패킷을 처리하도록 하는 단계를 포함하는 DHCP 서버와 BOOTP 전달 에이전트의 동시 구동 방법.When the DHCP server module and the BOOTP forwarding agent are operating at the same time, the broadcast packet of the DHCP server and the BOOTP forwarding agent comprising the step of replicating the broadcast packet to each of the DHCP server and the BOOTP forwarding agent to process each packet; Simultaneous driving method. 제 1항에 있어서, 상기 라우터는 상기 DHCP 서버와, BOOTP 전달 에이전트에서 상기 브로드 캐스트 패킷을 정상적으로 처리했을 경우, 복제된 패킷에 할당되었던 메모리를 해제하는 것을 더 포함하여 구성되는 DHCP 서버와 BOOTP 전달 에이전트의 동시 구동 방법.The DHCP server and the BOOTP forwarding agent of claim 1, further comprising releasing memory allocated to the duplicated packet when the DHCP server and the BOOTP forwarding agent normally process the broadcast packet. Simultaneous driving method.
KR10-2001-0030668A 2001-06-01 2001-06-01 Implementation method of simultaneously working DHCP server and BOOTP relay agent KR100377628B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR10-2001-0030668A KR100377628B1 (en) 2001-06-01 2001-06-01 Implementation method of simultaneously working DHCP server and BOOTP relay agent

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR10-2001-0030668A KR100377628B1 (en) 2001-06-01 2001-06-01 Implementation method of simultaneously working DHCP server and BOOTP relay agent

Publications (2)

Publication Number Publication Date
KR20020091873A KR20020091873A (en) 2002-12-11
KR100377628B1 true KR100377628B1 (en) 2003-03-26

Family

ID=27707452

Family Applications (1)

Application Number Title Priority Date Filing Date
KR10-2001-0030668A KR100377628B1 (en) 2001-06-01 2001-06-01 Implementation method of simultaneously working DHCP server and BOOTP relay agent

Country Status (1)

Country Link
KR (1) KR100377628B1 (en)

Also Published As

Publication number Publication date
KR20020091873A (en) 2002-12-11

Similar Documents

Publication Publication Date Title
US6587455B1 (en) Automatic discovery of nodes associated with a virtual subnet
US7263559B2 (en) Method for preventing IP address cheating in dynamic address allocation
Droms Automated configuration of TCP/IP with DHCP
US6678732B1 (en) Dynamic host configuration protocol server for allocating IP addresses to a plurality of clients
JP5663549B2 (en) Method, apparatus and system for assigning public IP addresses
US6195706B1 (en) Methods and apparatus for determining, verifying, and rediscovering network IP addresses
US6061739A (en) Network address assignment using physical address resolution protocols
JP3641128B2 (en) MOBILE COMPUTER DEVICE, MOBILE COMPUTER MANAGEMENT DEVICE, MOBILE COMPUTER MANAGEMENT METHOD, AND COMMUNICATION CONTROL METHOD
US7640287B1 (en) Method and apparatus for auto-configuring layer three intermediate computer network devices
US8125993B2 (en) Network element having a DHCP lease timer
JP2009239931A (en) Method and system for automatic allocation of resources in communication network
JP3872368B2 (en) Information processing apparatus, network configuration method including the information processing apparatus, and program for the network configuration method
EP2698957B1 (en) Method, device and system for realizing communication after virtual machine migration
TWI222293B (en) Method for assigning setting information for connection to external network
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
US20120023207A1 (en) Automatic assignment of hardware addresses within computer networks
US20050271049A1 (en) DHCP cache method and apparatus
TWI227614B (en) Method for dynamically allocating IP addresses for hosts on a network
JP3948278B2 (en) Setting information allocation method for external network connection
US8195775B2 (en) Enhanced method and apparatus for reducing congestion in DHCP network system
Perkins et al. Using DHCP with computers that move
Droms RFC1541: Dynamic Host Configuration Protocol
KR100377628B1 (en) Implementation method of simultaneously working DHCP server and BOOTP relay agent
KR100377627B1 (en) Method of avoiding BOOTP IP address overlap allocation with BOOTP relay agent
JP3775378B2 (en) Firewall system that supports dynamic IP address assignment

Legal Events

Date Code Title Description
A201 Request for examination
N231 Notification of change of applicant
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20130219

Year of fee payment: 11

FPAY Annual fee payment

Payment date: 20140218

Year of fee payment: 12

FPAY Annual fee payment

Payment date: 20150216

Year of fee payment: 13

LAPS Lapse due to unpaid annual fee