KR100450417B1 - Network device operation state management method and sytsem using multi-thread - Google Patents

Network device operation state management method and sytsem using multi-thread Download PDF

Info

Publication number
KR100450417B1
KR100450417B1 KR10-2002-0073076A KR20020073076A KR100450417B1 KR 100450417 B1 KR100450417 B1 KR 100450417B1 KR 20020073076 A KR20020073076 A KR 20020073076A KR 100450417 B1 KR100450417 B1 KR 100450417B1
Authority
KR
South Korea
Prior art keywords
ping
message
network
host
investigation
Prior art date
Application number
KR10-2002-0073076A
Other languages
Korean (ko)
Other versions
KR20040045073A (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-2002-0073076A priority Critical patent/KR100450417B1/en
Publication of KR20040045073A publication Critical patent/KR20040045073A/en
Application granted granted Critical
Publication of KR100450417B1 publication Critical patent/KR100450417B1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

본 발명은 짧은 단위 시간에 대량의 네트워크 장비 또는 호스트 컴퓨터에 대한 동작 상태를 조사할 수 있는 다중 쓰레드를 이용한 네트워크 호스트 상태 관리 방법 및 시스템을 제공하는 것이다.The present invention provides a network host state management method and system using multiple threads that can examine the operating state of a large amount of network equipment or host computer in a short unit time.

상기 네트워크 호스트 상태 관리 방법 및 시스템은 쓰레드 구조를 이용하여 핑 요구 메시지의 송신부와 반환메시지의 수신부를 분리 생성하고, 상기 송신부는 각 네트워크 장비 또는 호스트 컴퓨터의 상태 정보를 조회하여 무응답 네트워크 장비 또는 호스트 컴퓨터에 대해 반복하여 핑 요구 메시지를 송신하고, 상기 수신부는 수신되는 ICMP 메시지에 따라 네트워크 장비 또는 호스트 컴퓨터의 상태와 응답 시간을 기록하도록 구성된다.The network host state management method and system separately generates a sender of a ping request message and a receiver of a return message by using a thread structure, and the sender inquires state information of each network device or a host computer, thereby responding to an unresponsive network device or host computer. Repetitively transmits a ping request message, and the receiving unit is configured to record the status and response time of the network equipment or the host computer according to the received ICMP message.

이에 의하여, 본 발명은 다수의 네트워크 장비 또는 호스트 컴퓨터에 대한 동작 상태 조사 시간을 최소화 시키고, 기존 네트워크 장비에 부가적인 변경없이 활용 가능한 호환성을 제공하는 효과가 있다.As a result, the present invention has the effect of minimizing the operation state investigation time for a plurality of network equipment or a host computer, and providing compatibility that can be utilized without additional changes to existing network equipment.

Description

다중 쓰레드 구조의 네트워크 호스트 상태 관리 방법 및 시스템{NETWORK DEVICE OPERATION STATE MANAGEMENT METHOD AND SYTSEM USING MULTI-THREAD}Network host state management method and system of multi-threaded structure {NETWORK DEVICE OPERATION STATE MANAGEMENT METHOD AND SYTSEM USING MULTI-THREAD}

본 발명은 대량의 네트워크 장비와 호스트 컴퓨터로 운영되는 네트워크 환경에서 짧은 시간 주기로 다수의 네트워크 장비에 대한 동작상태를 조사할 수 있는 다중 쓰레드를 이용한 네트워크 호스트 상태 관리 방법 및 시스템에 관한 것이다.The present invention relates to a network host state management method and system using multiple threads that can investigate the operation state of a plurality of network equipment in a short time period in a network environment operated by a large amount of network equipment and a host computer.

네트워크 환경에서 사용자가 접속하려고 시도하고 있는 호스트가 실제로 운영되고 있는 지를 확인할 필요가 있으며, 이를 위해서 네트워크 상에서 접속하고자 하는 상대방 호스트의 상태를 체크하는 인터넷 프로그램이 제공되어 있다. 이를 핑(PING : Packet Internet Groper)이라고 하는데, 특정한 인터넷 주소에 대해 그 주소가 응답하는 여부를 확인해준다.In a network environment, it is necessary to check whether a host that a user attempts to connect to is actually operating. For this purpose, an Internet program for checking a status of a counterpart host to be accessed on a network is provided. This is called a PING (Packet Internet Groper), which checks whether the address responds to a particular Internet address.

이러한 핑 프로그램은 하나의 조사 대상 네트워크 장비에 대해 동작 상태를 조사하는 구조로 이루어진다. 따라서, 다수의 네트워크 장비에 대해 동작 상태를 조사하기 위해서는 순차적으로 각각의 네트워크 장비에 대해 핑 조사를 수행해야 한다.Such a ping program consists of a structure for inspecting the operation state of one network object to be investigated. Therefore, in order to investigate the operation state of a plurality of network equipment, it is necessary to ping the network equipment sequentially.

또한, 상기 핑 프로그램은 대상 네트워크 장비로 부터의 응답 유무를 확인하기 위해 대상 네트워크 장비로 핑 메세지 송신후 최소시간동안 대기하여 수신되는 ICMP 메시지를 조사한다. 따라서, 다수의 네트워크 장비에 대해 동작상태를 조사하기 위해서는, 최대 조사 대상 네트워크 장비수 만큼의 응답 대기 시간이 소요된다. 이와 같은 긴 처리 시간은 조사 시간을 지연시키는 원인으로 작용하며, 짧은 주기로 다수의 네트워크 장비의 동작 상태를 조사해야 하는 환경에서는 적합하지 못하다.In addition, the ping program examines the received ICMP message by waiting for a minimum time after transmitting the ping message to the target network device to confirm the response from the target network device. Therefore, in order to investigate the operation state with respect to a large number of network equipment, it takes a response waiting time as much as the maximum number of network equipment to be investigated. Such long processing time causes delays in the irradiation time and is not suitable in an environment in which the operation state of a plurality of network equipments needs to be investigated in a short period of time.

즉, 종래의 핑 프로그램은 단순히 하나의 대상 네트워크 장비의 동작 여부를 조사하는 목적으로 만들어졌기 때문에, 다수의 네트워크 장비에 대한 주기적인 동작 상태 검증용으로 사용하기가 어렵다는 문제점이 있다.That is, the conventional ping program is made for the purpose of simply investigating the operation of one target network device, and thus, there is a problem that it is difficult to use for periodic operation state verification of a plurality of network devices.

따라서, 네트워크를 관리하는 방안으로서 간이 망 관리 프로토콜 (SNMP : Single Network Management Protocol) 등과 같은 망관리 프로그램이 이용되고 있다. 이러한 기존의 망관리 프로그램은 대상 네트워크 장비 또는 호스트 컴퓨터에 대하여 자세한 정보를 제공할 수 있지만, 다수의 네트워크 장비를 대상으로 하는 경우, 대량의 네트워크 트래픽이 유발되고, 대량 데이터를 처리해야 하기 때문에, 이를 가능하게 하기 위해서는 높은 성능이 요구된다.Therefore, a network management program such as a simple network management protocol (SNMP) has been used as a method for managing a network. Such a conventional network management program can provide detailed information about a target network device or a host computer, but when a large number of network devices are targeted, a large amount of network traffic is generated and a large amount of data must be processed. High performance is required to enable this.

그런데, 대규모 네트워크에 대한 관리에서 기본적으로 요구되는 것은 조사 대상의 적절한 동작 여부의 조사이며, 이러한 네트워크의 적절한 운용 여부는 관리 대상에 대한 주기적인 동작 상태 조사를 통해서 파악할 수 있다.By the way, the management of a large network is basically required to investigate the proper operation of the investigation target, and whether or not the proper operation of the network can be determined through the periodic operation state investigation of the management target.

따라서, 대규모 네트워크에 대한 관리 시스템은 짧은 주기에 대량의 네트워크 장비에 대한 조사 기능을 수행할 수 있어야 하며, 네트워크 관리 비용을 감소시키기 위해서는 간단한 구조로 조사 기능을 수행할 수 있어야 한다.Therefore, a management system for a large network should be able to perform a survey function for a large amount of network equipment in a short period of time, and to be able to perform a survey function with a simple structure in order to reduce network management costs.

그러나, 상술한 바와 같이, 종래의 핑 처리 프로그램이나 망 관리 프로그램은 이러한 요구를 만족하지 못하고 있어, 대규모 네트워크 장비의 관리에는 적절치 못하다는 문제점이 있다.However, as described above, the conventional ping processing program and the network management program do not satisfy this requirement, and thus there is a problem that it is not suitable for the management of large-scale network equipment.

본 발명은 이러한 종래의 문제점을 해결하여 대규모 네트워크 장비 관리에 적절한 방안을 제시하기 위한 것으로서, 그 목적은 다수의 대상 네트워크 장비로부터의 핑 응답 대기 시간을 제거하고 동시에 다수의 네트워크 장비에 대해 핑 요구를 수행할 수 있도록 함으로서 짧은 시간주기로 대규모 네트워크 장비의 상태조사가 가능한 다중 쓰레드를 이용한 네트워크 호스트 상태 관리 방법 및 시스템을 제공하는 것이다.SUMMARY OF THE INVENTION The present invention has been made to solve such a conventional problem and propose an appropriate method for managing large-scale network equipment. The purpose of the present invention is to eliminate ping response waiting time from a plurality of target network equipment and simultaneously to ping a plurality of network equipment. The present invention provides a method and system for managing network host status using multiple threads that can perform a large amount of network device status inspection in a short time period.

더하여, 본 발명의 다른 목적은 대상 네트워크 장비 및 호스트 컴퓨터에 부가적인 변형을 가하지 않은 상태에서 대규모 네트워크 장비의 주기적인 상태조사가 가능한 다중 쓰레드를 이용한 네트워크 호스트 상태 관리 방법 및 시스템을 제공하는 것이다.In addition, another object of the present invention is to provide a method and system for managing network host state using multiple threads, which enables periodic state inspection of large-scale network equipment without additional modifications to the target network equipment and the host computer.

도 1은 본 발명이 적용되는 네트워크의 기본 개념도이다.1 is a basic conceptual diagram of a network to which the present invention is applied.

도 2는 본 발명에 의한 다중 쓰레드 구조의 네트워크 호스트 상태 관리 시스템에 대한 전체 구성도이다.2 is an overall configuration diagram of a network host state management system of a multi-threaded structure according to the present invention.

도 3은 본 발명에 의한 다중 쓰레드 구조의 네트워크 호스트 상태 관리 시스템에 있어서, 메시지의 교환 상태를 보인 도면이다.3 is a diagram illustrating an exchange state of messages in a network host state management system having a multi-threaded structure according to the present invention.

도 4는 본 발명에 의한 다중 쓰레드 구조의 네트워크 호스트 상태 관리 방법의 처리 절차를 보인 플로우챠트이다.4 is a flowchart illustrating a processing procedure of a network host state management method of a multi-threaded structure according to the present invention.

도 5는 본 발명에 의한 다중 쓰레드 구조의 네트워크 호스트 상태 관리를 위해 사용되는 메시지의 구조도이다.5 is a structural diagram of a message used for network host state management of a multi-threaded structure according to the present invention.

* 도면의 주요 부분에 대한 부호의 설명 *Explanation of symbols on the main parts of the drawings

101 : 네트워크 호스트 상태 관리 시스템101: network host state management system

110 : 분석수단110: analysis means

120 : 제어수단120 control means

130-1 ~ 130-n : 송신수단130-1 to 130-n: Transmission means

140 : 수신수단140: receiving means

상술한 본 발명의 목적을 달성하기 위한 구성수단으로서, 본 발명의 다중 쓰레드를 이용한 네트워크 호스트 상태 관리 시스템은, 핑 처리 요구에 따라 핑 동작 설정 요소를 분석하여 조사대상의 수만큼 쓰레드등 핑 동작 조건을 설정하는 분석수단과, 상기 분석수단에 의해 설정된 동작 조건에 따라, 생성해야 할 쓰레드 수만큼의 송신수단과 조사 대상 시스템들로부터의 응답메시지를 수신하는 수신수단을 생성하고 조사 대상 시스템의 응답결과를 조사하여 송신수단의 반복검사를 제어하는 주제어수단과, 상기 주제어수단에 의해 생성되어 각각의 조사대상 시스템으로 핑 요구 메시지를 송신하는 다수의 송신수단과, 상기 송신수단으로부터 송출된 핑요구메시지를 받은 다수의 조사 대상 시스템 또는 라우터로부터의 ICMP 메시지를 수신하여 수신메시지의 내용에 따라 각 조사 대상 시스템의 동작 상태를 알리는 수신 수단을 포함하는 것을 특징으로 한다.As a constituent means for achieving the above object of the present invention, the network host state management system using the multi-thread of the present invention, by analyzing the ping operation setting factors according to the ping processing request, the number of threads and the like ping operation conditions And an analysis means for setting a function and a receiving means for receiving response messages from the systems to be investigated and the response means for the number of threads to be generated, according to the operating conditions set by the analysis means. Main control means for controlling the repetition check of the transmission means by inspecting a plurality of transmission means, a plurality of transmission means generated by the main control means for transmitting a ping request message to each system to be investigated, and a ping request message sent from the transmission means. Receive and receive ICMP messages from multiple investigation target systems or routers In accordance with the information it characterized in that it comprises a receiving means indicating the operating state of each of the subject system.

더하여, 본 발명에 의한 네트워크 호스트 상태 관리 시스템에 있어서, 상기 분석수단에서 설정하는 핑 동작 조건은 동작 상태를 조사해야 하는 조사 대상 시스템들의 갯수와, 생성해야 하는 쓰레드의 갯수와, 반복 조사간의 대기 시간와, 최소 반복 횟수와, 최대 반복 횟수가 포함된다.In addition, in the network host state management system according to the present invention, the ping operation condition set by the analysis means includes the number of systems to be investigated to be examined for the operation state, the number of threads to be generated, the waiting time between the repeated surveys, , The minimum number of repetitions and the maximum number of repetitions.

또한, 본 발명에 의한 네트워크 호스트 상태 관리 시스템에 있어서, 상기 수신수단이 수신하는 ICMP 메시지는 상기 핑 요구 메시지를 수신한 조사 대상 시스템으로부터 전달되는 핑 응답 ICMP 메시지와, 조사 대상 시스템으로부터의 핑 요구 메시지의 전달이 불가능한 경우에 라우터로부터 전달되는 도달 불가 ICMP 메시지와, 조사 대상 시스템까지의 도달시간이 IP 헤더의 TTL(Time-to-Live) 시간을 초과한 경우 라우터로부터 전달되는 TTL 초과 ICMP 메시지일 수 있다.In addition, in the network host state management system according to the present invention, the ICMP message received by the receiving means includes a ping response ICMP message transmitted from an investigation target system receiving the ping request message and a ping request message from the investigation target system. The number of unreachable ICMP messages from the router if forwarding is not possible, and the TTL over ICMP messages from the router if the arrival time to the system under investigation exceeds the time-to-live (TTL) time in the IP header. have.

더하여, 본 발명에 의한 네트워크 호스트 상태 관리 시스템은 송수신지의 IP주소가 기재된 IP 헤더와, 핑 요구에 대한 응답 상태에 나타내는 타입 필드 및 코드 필드와, 전송도중 발생된 에러를 체크하기 위한 체크섬 필드와, 대상 호스트를 식별하기 위한 식별 필드와, 일련 번호 필드로 이루어지는 ICMP 메시지와, 패킷 왕복 시간을 계산하기 위한 타임 데이타와, 조사 대상 시스템 각각을 식별하기 위한일련 번호와, 반복 조사 번호를 식별하기 위한 필드와, ICMP 메시지 규격을 만족시키기 위한 임의의 더미 데이터로 이루어진 핑 메시지를 사용하는 것을 특징으로 한다.In addition, the network host state management system according to the present invention includes an IP header including an IP address of a destination, a type field and a code field indicating a response state to a ping request, a checksum field for checking an error generated during transmission, ICMP message consisting of an identification field for identifying a target host, a serial number field, time data for calculating a packet round trip time, a serial number for identifying each system to be investigated, and a field for identifying a repetition survey number. And a ping message composed of arbitrary dummy data for satisfying the ICMP message standard.

그리고, 상술한 목적을 달성하기 위한 본 발명의 다중 쓰레드를 이용한 네트워크 호스트 상태 관리 방법은 핑을 호출하는 단계와, 조사 대상 호스트의 목록을 참조하여, 조사 대상 시스템의 수, 생성한 쓰레드 갯수 및 반복 조사 조건을 설정하는 단계와, 상기 설정된 조건에 따라, 쓰레드수만큼의 송신수단, 하나의 수신수단, 조사 대상 호스트의 상태값 저장소를 생성하는 단계와, 상기 생성된 다수의 송신수단으로 대상 호스트로 핑 요구 메시지를 송신하는 단계와, 상기 생성된 수신수단으로 핑요구에 대한 반환메시지를 수신하여 수신메시지에 따라 조사 대상 호스트의 상태값을 변경하는 단계와, 조사 대상 호스트의 상태값과 반복 조사 조건에 따라, 다수 조사 대상 호스트 각각에 대해 반복조사여부를 판단하는 단계와, 대상 호스트들별로 반복조사의 판단결과에 따라 반복조사가 필요하면 상기 제4단계부터 반복시키는 단계로 이루어지는 것을 특징으로 한다.In addition, the network host state management method using the multi-thread of the present invention for achieving the above object, the step of calling the ping, the number of the system to be investigated, the number of threads created and the repetition with reference to the list of the host to be investigated Setting a survey condition, generating a number of transmission means, one reception means, and a state value store of the investigation target host according to the set condition; and a plurality of transmission means generated to the target host. Transmitting a ping request message, receiving a return message for the ping request to the generated receiving means, changing a status value of the investigation target host according to the reception message, a status value of the investigation target host, and a repeated survey condition According to, determining whether or not to repeat the repeated survey for each of the plurality of target hosts, the repeated survey for each target host If it is necessary to repeat the investigation according to the determination result of the characterized in that the step consisting of repeating from the fourth step.

또한, 본 발명은 상술한 각 단계를 실행시키는 프로그램을 기록한 컴퓨터 판독가능한 기록 매체를 제공한다.The present invention also provides a computer readable recording medium having recorded thereon a program for executing each of the above-described steps.

이에 의하여, 본 발명은 핑 메시지 송신과 ICMP 메시지 수신에 대한 다중 쓰레드 구조를 통해 기존의 요구-응답 구조에 따른 대기 시간을 제거함으로서, 다수의 네트워크 장비를 짧은 시간안에 조사할 수 있으며, 기존의 핑과 동일한 메시지 구조를 이용할 수 있으므로 망관리를 위해 부가적인 변형이 요구되지 않는 호환성을 제공할 수 있다.Accordingly, the present invention eliminates the waiting time according to the existing request-response structure through a multi-threaded structure for ping message transmission and ICMP message reception, thereby examining a large number of network equipment in a short time. The same message structure can be used to provide compatibility without requiring additional modifications for network management.

이하, 첨부된 도면을 참조하여 본 발명의 다중 쓰레드를 이용한 네트워크 호스트 상태 관리 방법 및 시스템의 구성 및 작용에 대하여 설명한다.Hereinafter, the configuration and operation of a network host state management method and system using multiple threads of the present invention will be described with reference to the accompanying drawings.

도 1은 본 발명이 적용되는 네트워크 환경을 개략적으로 나타낸 도면이다.1 is a diagram schematically showing a network environment to which the present invention is applied.

본 발명에 의한 다중 쓰레드 구조의 네트워크 호스트 상태 관리 시스템(101)은 동작 상태 조사 대상인 대상 호스트(103)들에게 핑 요구 메시지를 송신한다. 상기 송신된 핑 요구 메시지는 대상 호스트(103)들 각각의 네트워크 상의 위치에 따라 경로 101a 와 같이 1개의 라우터(102)를 거쳐 전달될 수 도 있으며, 경로 101b 와 같이 둘 이상의 라우터(102)를 거쳐 전달될 수 도 있고, 경로 101c와 같이 라우터를 경유하지 않고 대상 호스트(103)로 직접 전달될 수 도 있다.The network host state management system 101 of the multi-threaded structure according to the present invention transmits a ping request message to the target hosts 103 subject to the operation state investigation. The transmitted ping request message may be transmitted through one router 102 such as path 101a according to the location on the network of each of the target hosts 103 and through two or more routers 102 such as path 101b. It may be delivered or may be delivered directly to the target host 103 without passing through a router such as route 101c.

라우터를 경유하지 않고 직접 전달되는 경우는, 대상 호스트(103)가 핑 처리 시스템(101)과 동일한 네트워크 상에 존재하는 경우이다.In the case where direct transmission is not performed via a router, the target host 103 exists on the same network as the ping processing system 101.

그리고, 상기와 같이 전달된 핑 요구 메시지를 수신한 대상 호스트(103)들은 자동으로 핑 처리 시스템(101)으로 핑 응답 메시지를 반환한다.The target hosts 103 receiving the ping request message delivered as described above automatically return the ping response message to the ping processing system 101.

라우터(102)는 대상 호스트(103)로 핑 요구 메시지를 전달할 수 없는 경우에 핑 처리 시스템(101)으로 도달 불가능 ICMP 메시지를 반환하며, IP 헤더에 설정된 TTL(Time-To-Live)값을 초과하는 경로에 대해서는 핑 처리 시스템(101)으로 TTL 초과 ICMP 메시지를 반환한다.The router 102 returns an unreachable ICMP message to the ping processing system 101 if it cannot deliver the ping request message to the destination host 103 and exceeds the time-to-live (TTL) value set in the IP header. The TTL excess ICMP message is returned to the ping processing system 101 for the path.

도 2는 상기와 같은 핑 요구 및 응답 메시지의 송수신이 처리되는 다중 쓰레드 구조의 핑 처리 시스템의 처리 구조도이다.2 is a processing structure diagram of a multi-threaded ping processing system in which transmission and reception of the ping request and response messages as described above are processed.

도시된 바와 같이, 핑 처리 시스템(101)은 핑 호출시 조사 대상 목록과 설정인자를 제공받아 이를 분석하여 검사 조건을 설정하는 분석수단(110)과, 상기 분석수단(110)에 의해 설정된 검사조건에 따라 쓰레드수만큼의 핑 요구 메시지 송신수단과 반환메시지 수신수단을 생성하며 조사 대상 호스트들의 조사결과를 제공하는 제어수단(120)과, 상기 제어수단(120)에 의해 핑호출시 쓰레드수만큼 생성되어 각각 대응되는 대상 호스트에게 핑 요구 메시지를 반복 송신하는 다수의 송신수단(130-1 ~ 130-n)과, 다수의 조사 대상 호스트 또는 라우터로부터 반환메시지를 수신하여 조사 대상 호스트별 핑 처리 결과를 상기 제어수단(120)에 전달하는 수신수단(140)을 포함한다.As shown, the ping processing system 101 is provided with an analysis target list and setting factors when a ping call is analyzed, and analyzes the setting means 110 to set the test conditions, and the test conditions set by the analysis means 110. The control means 120 generates a ping request message transmitting means and a return message receiving means corresponding to the number of threads according to the number of threads, and generates the number of threads when pinging the call by the control means 120. And a plurality of transmission means (130-1 to 130-n) for repeatedly sending a ping request message to a corresponding target host, and receiving a return message from a plurality of investigation target hosts or routers to receive ping processing results for each investigation target host. It includes a receiving means 140 for transmitting to the control means 120.

상기와 같이 구성된 다중 쓰레드 구조의 네트워크 호스트 상태 관리 시스템의 동작은 다음과 같다.The operation of the multi-threaded network host state management system configured as described above is as follows.

대규모 네트워크의 장비에 대한 운용상태 조사는 조사 대상 호스트들(103-1 ~ 103-n)의 목록을 가진 파일과 설정 인자를 포함한 호출 메시지가 시스템(101)으로 전달되는 것으로 시작된다.The operational status survey of the equipment of the large network begins with the transmission of a call message including a file and a configuration parameter with a list of the hosts 103-1 to 103-n to be investigated to the system 101.

상기 시스템(100)의 호출시 함께 전달된 파일 및 설정인자는 분석수단(110)으로 전달되고, 상기 분석수단(110)은 전달된 인자값과 조사 대상 목록을 가진 파일을 분석하여 핑 메시지 교환을 위한 반복 조사 조건과, 조사 대상의 숫자에 따라 생성해야할 쓰레드 수를 설정한다. 이렇게 분석수단(110)에 의해 설정된 동작조건들은 'conditions'라는 위치에 저장되어 공유된다.The file and the setting factor delivered together with the call of the system 100 are transferred to the analyzing means 110, and the analyzing means 110 analyzes the file having the passed factor value and the investigation target list to exchange the ping message. The number of threads to be created is set according to the recursive search condition and the number of objects to be examined. The operating conditions set by the analyzing means 110 are stored and shared in the position 'conditions'.

그 다음, 제어수단(120)은 핑 메시지를 송신하는 다수의 송신수단(130-1 ~ 130-n)과, ICMP 메시지를 수신하는 수신수단(140) 쓰레드를 생성하고, 또한, 각 호드트들의 운영상태를 저장하는 저장위치를 지정한다. 이때, 지정된 저장위치를 shared target hosts(121)라고 한다.Then, the control means 120 generates a plurality of transmission means 130-1 to 130-n for transmitting a ping message, and a receiving means 140 thread for receiving an ICMP message, and also, Specify the save location to save the operation status. In this case, the designated storage location is referred to as shared target hosts 121.

상기 제어수단(120)은 최초 1회 핑 메시지 송신부인 송신수단(130)을 설정된 쓰레드 갯수(n) 만큼 생성한다. 그리고, 상기 생성된 송신수단(130-1 ~ 130-n) 쓰레드는 할당된 조사 대상 호스트(103-1 ~ 103-n)에 대해 핑 요구 메시지를 송신한다.The control means 120 generates the transmission means 130, which is the first one-time ping message transmitter, by the set number of threads n. The generated transmission means 130-1 to 130-n transmits a ping request message to the allocated investigation target hosts 103-1 to 103-n.

그리고, 조사 대상 호스트들(103-1 ~ 103-n)로부터 응답된 ICMP 메시지는 수신수단(140)에서 수신하고, ICMP 메시지에 따라 대상 호스트들의 핑 메시지 수신 내역을 상기 shared target hosts(121)의 상태값에 반영한다.In addition, the ICMP message responded from the investigation target hosts 103-1 to 103-n is received by the receiving unit 140, and the ping message reception details of the target hosts are recorded in response to the ICMP message of the shared target hosts 121. Reflect to status value.

상기 제어수단(120)은 상기 shared target hosts(121)의 상태값과 반복조사 조건에 따라서 반복조사 여부를 결정하여, 상기 다수 송신수단(130-1 ~ 130-n)들을 제어한다. 즉, 적절한 반환메시지가 수신되지 않았거나, 반복검사주기에 도달된 대상 호스트에 대하여 핑 요구 메시지가 반복 송신된다.The control means 120 determines whether or not to repeat the irradiation according to the state value of the shared target hosts 121 and the repeated irradiation condition, and controls the plurality of transmission means (130-1 ~ 130-n). That is, a ping request message is repeatedly sent to the target host for which an appropriate return message has not been received or has reached an iteration period.

도 3은 본 발명에 의한 다중 쓰레드 구조의 네트워크 호스트 상태 관리 시스템이 적용된 네트워크에서의 핑 메시지가 전달되는 구조와 ICMP 메시지의 종류를 설명하는 망구조도이다.3 is a network structure diagram illustrating a structure in which a ping message is transmitted and types of ICMP messages in a network to which a multi-threaded network host state management system according to the present invention is applied.

상기에서, 메시지 301a는 망 관리 시스템(101)이 조사 대상 시스템인 대상 호스트(103)들에 대해 송신하는 핑 요구 메시지이다. 이러한 핑 요구 메시지에 대해 시스템(101)이 수신하는 ICMP 메시지는 여러가지 요인에 따라 달라질 수 있다.In the above, the message 301a is a ping request message sent by the network management system 101 to the target hosts 103 which are the investigation target systems. The ICMP message that the system 101 receives for such a ping request message may vary depending on various factors.

첫번째로, 시스템(101)과 동일한 네트워크 상에 존재하는 대상 호스트(103a)인 경우, 대상 호스트(103a)로부터의 ICMP 응답 메시지(303a)는 핑 응답 메시지로 구성되어 반환된다.First, in the case of the target host 103a existing on the same network as the system 101, the ICMP response message 303a from the target host 103a is composed of a ping response message and returned.

두번째로, 대상 호스트(103b, 103d)가 시스템(101)과 다른 네트워크에 존재하는 경우, 상기 시스템(101)으로부터의 핑 요구 메시지(301a)는 라우터(102)들을 경유한다. 상기 라우터(102)에 의해 적절히 전달되어 대상 호스트(103b, 103d)로 핑 요구 메시지(301a)가 전달되면, 해당 대상 호스트(103b, 103d)들은 핑 처리 시스템(301)으로 핑 응답 메시지인 ICMP 메시지(303a)를 반환한다.Secondly, if the destination hosts 103b, 103d are in a different network than the system 101, the ping request message 301a from the system 101 is via the routers 102. When the ping request message 301a is properly delivered by the router 102 to the target hosts 103b and 103d, the target hosts 103b and 103d may send an ICMP message which is a ping response message to the ping processing system 301. (303a) is returned.

세번째로, 핑 응답 메시지(303a)는 또한 라우터(102)를 통해 핑 처리 시스템(101)으로 전달될 수 있다. 즉, 대상 호스트(103c)가 존재하지 않는 IP 주소를 갖는 경우, 핑 요구 메시지(301a)에 대해 라우터(102)로부터 도달 불가능을 알리는 ICMP 메시지(302a)가 핑 처리 시스템(101)으로 반환된다. 또한, 도달할 수는 있으나 경유하는 라우터(102)의 숫자가 IP 헤더의 TTL 값보다 큰 경우 라우터(102)로부터 핑 처리 시스템(101)으로 TTL 초과 ICMP 메시지(302b)가 반환된다.Third, the ping response message 303a may also be forwarded to the ping processing system 101 via the router 102. That is, when the target host 103c has an IP address that does not exist, an ICMP message 302a informing the ping request message 301a of the unreachable from the router 102 is returned to the ping processing system 101. In addition, if the number of routers 102 that can reach but pass is greater than the TTL value of the IP header, a TTL over ICMP message 302b is returned from the router 102 to the ping processing system 101.

도 4는 본 발명에 의한 다중 쓰레드 구조의 네트워크 호스트 상태 관리 방법의 처리 절차를 나타낸 플로우챠트이다.4 is a flowchart illustrating a processing procedure of a network host state management method of a multi-threaded structure according to the present invention.

핑 호출이 발생되는 것으로 본 발명에 의한 처리가 실행된다(401).The processing according to the present invention is executed as a ping call is generated (401).

이때, 핑 호출과 함께 핑 처리를 위한 데이타들, 조사 대상 목록과, 핑처리 설정인자들이 전달된다.At this time, the data for the ping processing, the list of objects to be examined, and the ping processing setting factors are transmitted along with the ping call.

따라서, 핑이 호출되면, 먼저 상기 데이타를 분석하여, 동작 상태를 조사해야 하는 조사 대상 시스템(103)들의 갯수와, 생성해야 하는 쓰레드의 갯수, 반복 조사간의 대기 시간, 최소 반복 횟수, 최대 반복 횟수 등의 핑 처리 동작 조건 정보를 설정한다(402).Therefore, when the ping is called, the data is first analyzed to determine the number of systems 103 to be examined for operation status, the number of threads to be created, the waiting time between repeated surveys, the minimum number of repetitions, and the maximum number of repetitions. Ping processing operation condition information such as the above is set (402).

그 다음, 조사 대상 시스템(103)들에 대한 조사 결과, 즉 상태 정보를 공유하기 위한 소정 저장위치를 지정하고(403), 상기 동작 조건에 따라 ICMP 메시지를 수신하기 위한 수신수단과, 핑 요구 메시지를 송신하기 위한 쓰레드 수만큼의 송신수단을 생성한다(404).Next, a predetermined storage location for sharing the survey result, that is, the state information for the survey target system 103 is designated (403), receiving means for receiving an ICMP message according to the operating condition, and a ping request message. Generate as many transmission means as the number of threads for transmitting (404).

상기 생성된 송신수단들은 대상 호스트들의 공유 상태 정보를 참조하여 각각의 쓰레드마다 할당된 조사 대상 호스트로 핑 요구 메시지를 송신한다(405).The generated transmitting means transmits the ping request message to the investigation target host allocated to each thread by referring to the shared state information of the target hosts (405).

이렇게 송신된 핑 요구 메시지는 각각의 경로에 따라 라우터등을 경유하여 목적하는 대상 호스트로 전달되고, 전달 상태에 따라 대상 호스트 또는 경유 라우터로부터 적절한 ICMP 메시지가 반환된다. 이때, 반환되는 ICMP 메시지는 핑 요구에 대한 응답메시지, 또는 도달불가능 알림 메시지, 또는 TTL 초과 메시지이다.The ping request message transmitted in this way is delivered to the target destination host via a router or the like along each path, and an appropriate ICMP message is returned from the destination host or the passthru router according to the delivery status. At this time, the returned ICMP message is a response message to the ping request, an unreachable notification message, or a TTL exceeded message.

이러한 ICMP 메시지는 상기 생성된 수신수단에 의해 수신되고(406), 수신된 ICMP 메시지의 내용에 따라 공유 상태 정보가 변경된다(407).The ICMP message is received by the generated receiving means (406), and the sharing state information is changed (407) according to the contents of the received ICMP message.

그리고, 반복 주기별로 상기 공유 상태 정보의 변동 내역과 상기 설정된 반복 조사 조건을 참조하여, 반복 조사 여부를 판단하고(408, 409), 판단결과, 반복 조사가 필요한 경우, 상기 단계 405를 반복하여, 핑 요구 메시지를 반복 송신시킨다.In addition, with reference to the change history of the shared state information and the set repetition irradiation condition for each repetition period, it is determined whether the repetition irradiation is performed (408, 409). When the determination result, the repetition irradiation is necessary, the step 405 is repeated, Repeat the ping request message.

도 5는 본 발명에 의한 다중 쓰레드 구조의 네트워크 호스트 상태 관리 시스템에서 사용되는 ICMP 메시지의 구조도이다.5 is a structural diagram of an ICMP message used in a multi-threaded network host state management system according to the present invention.

도시된 바와 같이, 망 관리를 위해 라우터(102) 또는 대상 호스트(103)들 간에 전달되는 ICMP 메시지는 기존의 핑과 동일한 ICMP 메시지 구조를 사용할 수 있다.As shown, ICMP messages delivered between routers 102 or target hosts 103 for network management may use the same ICMP message structure as existing pings.

즉, 조사 대상 호스트(103)로 송신되고, 반환되는 핑 메시지는 ICMP 메시지 형식으로 20바이트의 IP 헤더(501)와, 8 바이트의 핑에 대한 ICMP 메시지 (502)와, 8 바이트의 패킷 왕복 시간을 계산하기 위한 타임 데이타(503)와, 2바이트의 조사 대상 시스템 각각을 식별하기 위한 일련 번호(504)와, 반복 조사 번호를 식별하기 위한 1바이트의 필드(505)와, ICMP 메시지 규격을 만족시키기 위한 9바이트의 임의의 더미 데이터(506)로 구성된다.That is, the ping message sent to the investigation target host 103 and returned is an IPMP message format 501 of 20 bytes, an ICMP message 502 for 8 bytes of ping, and an 8 byte packet round trip time in ICMP message format. Satisfies the time data 503 for calculating the data, the serial number 504 for identifying each of the two-byte investigation target systems, the one-byte field 505 for identifying the repeated investigation number, and the ICMP message standard. 9 bytes of random dummy data 506 to be used.

그리고, 상기 ICMP 메시지(502)는 8 비트의 핑 요구에 대한 타입 필드(502a)와, 8 비트의 코드 필드(502b)와, 16비트의 체크섬 필드(502c)와, 16비트의 식별 필드(502d)와, 16비트의 일련 번호 필드(502e)로 구성된다.The ICMP message 502 includes a type field 502a for an 8-bit ping request, an 8-bit code field 502b, a 16-bit checksum field 502c, and a 16-bit identification field 502d. ) And a 16-bit serial number field 502e.

상술한 바와 같이, 본 발명에 의한 다중 쓰레드 구조의 네트워크 호스트 상태 관리 방법 및 시스템은 기존의 핑 처리과정에서 소모되는 대기 시간이 제거함으로서, 단위 시간에 대량 네트워크 장비 또는 호스트 컴퓨터의 동작 상태를 조사할 수 있으며, 짧은 주기로 동작 상태를 점검할 수 있는 효과가 있으며, 그 결과, 대규모의 네트워크에서 짧은 주기로 대량의 네트워크 장비 또는 호스트 컴퓨터의 동작 여부 조사가 가능해지고, 기존의 핑 처리와 동일한 프로토콜을 이용하여 조사 대상 네트워크 장비 또는 호스트 컴퓨터에 부가적인 변형을 가하지 않고 적용가능하다는 효과가 있다.As described above, the method and system for managing a network host state of a multi-threaded structure according to the present invention eliminates the waiting time consumed in the existing ping process, thereby examining the operating state of a large amount of network equipment or a host computer at a unit time. As a result, it is possible to check the operation status in a short period. As a result, it is possible to investigate the operation of a large amount of network equipment or a host computer in a short period in a large network, and by using the same protocol as the existing ping processing. There is an effect that it is applicable without making additional modifications to the network equipment or host computer to be investigated.

Claims (5)

핑 처리 요구에 따라 핑 동작 설정 요소를 분석하여 조사대상의 수만큼 쓰레드등 핑 동작 조건을 설정하는 분석수단;Analysis means for analyzing the ping operation setting elements according to the ping processing request and setting ping operation conditions such as the number of objects to be examined; 상기 분석수단에 의해 설정된 동작 조건에 따라, 생성해야 할 쓰레드 수만큼의 송신수단과, 조사 대상 시스템들로부터의 응답메시지를 수신하는 수신수단을 생성하고 조사 대상 시스템의 응답결과를 조사하여 송신수단의 반복검사를 제어하는 주제어수단;According to the operating conditions set by the analyzing means, generating as many transmission means as the number of threads to be generated, and receiving means for receiving response messages from the systems under investigation, and examining the response results of the systems under investigation, Main control means for controlling the repetition test; 상기 주제어수단에 의해 생성되어 각각의 조사대상 시스템으로 핑 요구 메시지를 송신하는 다수의 송신수단; 및A plurality of transmission means generated by the main control means for transmitting a ping request message to each system to be investigated; And 상기 송신수단으로부터 송출된 핑요구메시지를 받은 다수의 조사 대상 시스템 또는 라우터로부터의 ICMP 메시지를 수신하여 수신메시지의 내용에 따라 각 조사 대상 시스템의 동작 상태를 알리는 수신 수단을 포함하는 것을 특징으로 하는 다중 쓰레드를 이용한 네트워크 호스트 상태 관리 시스템.And receiving means for receiving ICMP messages from a plurality of investigation target systems or routers receiving ping request messages sent from the transmission means and notifying the operation status of each investigation target system according to the contents of the received message. Network host state management system using threads. 제 1 항에 있어서, 상기 분석수단은The method of claim 1, wherein the analysis means 동작 상태를 조사해야 하는 조사 대상 시스템들의 갯수와,The number of systems under investigation that need to be investigated, 생성해야 하는 쓰레드의 갯수와,How many threads to create, 반복 조사간의 대기 시간와,Wait time between repetitions, 최소 반복 횟수와,The minimum number of iterations, 최대 반복 횟수를 설정하는 것을 특징으로 하는 다중 쓰레드를 이용한 네트워크 호스트 상태 관리 시스템.A network host state management system using multiple threads, wherein the maximum number of iterations is set. 제 1 항에 있어서, 상기 시스템에서 송수신되는 핑 요구 메시지 및 ICMP 메시지는The method of claim 1, wherein the ping request message and the ICMP message transmitted and received in the system 송수신지의 IP주소가 기재된 IP 헤더와,An IP header containing the IP address of the destination, 핑 요구에 대한 응답 상태에 나타내는 타입 필드 및 코드 필드와, 전송도중 발생된 에러를 체크하기 위한 체크섬 필드와, 대상 호스트를 식별하기 위한 식별 필드와, 일련 번호 필드로 이루어지는 ICMP 메시지와,An ICMP message comprising a type field and a code field indicating a response state to a ping request, a checksum field for checking an error occurring during transmission, an identification field for identifying a target host, a serial number field, 패킷 왕복 시간을 계산하기 위한 타임 데이타와,Time data for calculating packet round trip time, 조사 대상 시스템 각각을 식별하기 위한 일련 번호와,A serial number to identify each system under investigation, 반복 조사 번호를 식별하기 위한 필드와,A field for identifying a repeat survey number, ICMP 메시지 규격을 만족시키기 위한 임의의 더미 데이터로 이루어지는 것을 특징으로 하는 다중 쓰레드를 이용한 네트워크 호스트 상태 관리 시스템.A network host state management system using multiple threads, characterized in that it consists of arbitrary dummy data to satisfy the ICMP message specification. 핑을 호출하는 호출 단계;A calling step of calling a ping; 조사 대상 호스트의 목록을 참조하여, 조사 대상 시스템의 수, 생성한 쓰레드 갯수 및 반복 조사 조건을 설정하는 조건 설정 단계;A condition setting step of setting the number of systems to be investigated, the number of threads created, and the recursive irradiation condition by referring to the list of the investigation target hosts; 상기 설정된 조건에 따라, 쓰레드수만큼의 송신수단, 하나의 수신수단, 조사 대상 호스트의 상태값 저장소를 생성하는 쓰레드 생성 단계;A thread generation step of generating a state value storage of the number of transmission means, one reception means, and the investigation target host according to the set condition; 상기 생성된 다수의 송신수단으로 대상 호스트로 핑 요구 메시지를 송신하는 송신 단계;A transmitting step of transmitting a ping request message to a target host by the generated plurality of transmitting means; 상기 생성된 수신수단으로 핑요구에 대한 반환메시지를 수신하여 수신메시지에 따라 조사 대상 호스트의 상태값을 변경하는 수신 단계;Receiving step of receiving a return message for the ping request to the generated receiving means to change the state value of the investigation target host in accordance with the received message; 조사 대상 호스트의 상태값과 반복 조사 조건에 따라, 다수 조사 대상 호스트 각각에 대해 반복조사여부를 판단하는 판단 단계; 및A determination step of determining whether or not to repeat the irradiation of each of the plurality of investigation target hosts according to the state value of the investigation target host and the repetition irradiation condition; And 대상 호스트들별로 반복조사의 판단결과에 따라 반복조사가 필요하면 상기 송신 단계부터 판단단계를 설정된 반복횟수로 반복시키는 단계로 이루어지는 것을 특징으로 하는 다중 쓰레드를 이용한 네트워크 호스트 상태 관리 방법.And repeating the determination step from the transmission step to a set number of repetitions if the repetition check is necessary according to the determination result of the repetition check for each target host. 제 4 항에 기재된 각 단계를 실행시키는 프로그램을 기록한 컴퓨터 판독가능한 기록 매체.A computer-readable recording medium having recorded thereon a program for executing each step according to claim 4.
KR10-2002-0073076A 2002-11-22 2002-11-22 Network device operation state management method and sytsem using multi-thread KR100450417B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR10-2002-0073076A KR100450417B1 (en) 2002-11-22 2002-11-22 Network device operation state management method and sytsem using multi-thread

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR10-2002-0073076A KR100450417B1 (en) 2002-11-22 2002-11-22 Network device operation state management method and sytsem using multi-thread

Publications (2)

Publication Number Publication Date
KR20040045073A KR20040045073A (en) 2004-06-01
KR100450417B1 true KR100450417B1 (en) 2004-09-30

Family

ID=37341122

Family Applications (1)

Application Number Title Priority Date Filing Date
KR10-2002-0073076A KR100450417B1 (en) 2002-11-22 2002-11-22 Network device operation state management method and sytsem using multi-thread

Country Status (1)

Country Link
KR (1) KR100450417B1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001028586A (en) * 1999-07-12 2001-01-30 Fujitsu Ltd Testing method for network device and storage medium
KR20010079279A (en) * 2001-06-29 2001-08-22 정순규 Apparatus for testing running status of scada system and method therefor
KR20010084658A (en) * 2000-02-28 2001-09-06 윤종용 Method for monitoring operation state of communication network structure elements in nms
KR20020064435A (en) * 2001-02-01 2002-08-09 엘지전자 주식회사 Remote control system and method for repeater
JP2002281528A (en) * 2001-03-22 2002-09-27 Sony Corp Information processor, fault monitoring method, recording medium and program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001028586A (en) * 1999-07-12 2001-01-30 Fujitsu Ltd Testing method for network device and storage medium
KR20010084658A (en) * 2000-02-28 2001-09-06 윤종용 Method for monitoring operation state of communication network structure elements in nms
KR20020064435A (en) * 2001-02-01 2002-08-09 엘지전자 주식회사 Remote control system and method for repeater
JP2002281528A (en) * 2001-03-22 2002-09-27 Sony Corp Information processor, fault monitoring method, recording medium and program
KR20010079279A (en) * 2001-06-29 2001-08-22 정순규 Apparatus for testing running status of scada system and method therefor

Also Published As

Publication number Publication date
KR20040045073A (en) 2004-06-01

Similar Documents

Publication Publication Date Title
US6940821B1 (en) Method and apparatus for detecting a fault in a multicast routing infrastructure
US8149722B2 (en) Method and apparatus for detecting VPN communication
US11082308B2 (en) Multi-path aware tracing and probing functionality at service topology layer
JP3717836B2 (en) Dynamic load balancer
JP5883920B2 (en) System and method for packet deduplication
KR100453055B1 (en) Method for path MTU discovery on IP network and apparatus thereof
US8117301B2 (en) Determining connectivity status for unnumbered interfaces of a target network device
US8295277B2 (en) Analyzing a network with a cache advance proxy
CN113595897B (en) Path detection method and device
US7969900B2 (en) Determination of network performance characteristics
US20060171322A1 (en) Method and apparatus for receivability and reachability test of explicit multicast
US7346669B2 (en) Method, apparatus and system for processing message bundles on a network
EP3751824A1 (en) Using dns to communicate mp-tcp capability of server devices
US8054755B2 (en) Measurement managing apparatus and communication system
CN107547505B (en) Message processing method and device
US7636791B2 (en) Network information detection apparatus and method
CN102739462B (en) Test message sending method and device
CN112491647B (en) Switch message testing method, system and related device
US7626937B2 (en) System and method for network connection detection
CN112350844B (en) Method and device for data transmission
CN102469016B (en) Device and method for determining path maximum transmission unit (PMTU) reversely
KR100450417B1 (en) Network device operation state management method and sytsem using multi-thread
CN113890858B (en) PMTU detection method and device
JPH09270822A (en) Packet communication path test method
JP2010041543A (en) Network information collecting apparatus, network information providing device, and network measuring system

Legal Events

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

Payment date: 20120904

Year of fee payment: 9

FPAY Annual fee payment

Payment date: 20130904

Year of fee payment: 10

LAPS Lapse due to unpaid annual fee