KR101405472B1 - Method and apparatus for latency measurement based upon passive measurement - Google Patents

Method and apparatus for latency measurement based upon passive measurement Download PDF

Info

Publication number
KR101405472B1
KR101405472B1 KR1020120126983A KR20120126983A KR101405472B1 KR 101405472 B1 KR101405472 B1 KR 101405472B1 KR 1020120126983 A KR1020120126983 A KR 1020120126983A KR 20120126983 A KR20120126983 A KR 20120126983A KR 101405472 B1 KR101405472 B1 KR 101405472B1
Authority
KR
South Korea
Prior art keywords
request
client
server
time
delay
Prior art date
Application number
KR1020120126983A
Other languages
Korean (ko)
Other versions
KR20140060190A (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 KR1020120126983A priority Critical patent/KR101405472B1/en
Publication of KR20140060190A publication Critical patent/KR20140060190A/en
Application granted granted Critical
Publication of KR101405472B1 publication Critical patent/KR101405472B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation

Abstract

수동형 지연 측정 방법 및 장치가 개시된다. 본 발명의 바람직한 일 실시예에 따르면, 클라이언트의 제1 요청에 대한 로그 정보를 기록하고, 제1 요청에 대한 데이터 전송 시간을 계산하며, 클라이언트의 제2 요청에 대한 로그 정보를 기록하여, 클라이언트의 제2 요청에 대한 로그 시간과 클라이언트의 제1 요청에 대한 로그 시간 간격에서 제1 요청에 대한 서버의 처리 시간과 제1 요청에 대한 데이터 전송 시간을 제외한 시간을 지연으로 계산한다.
본 발명에 따르면, 클라이언트를 기준으로 하는 능동형 지연 측정과 비교하여서도 정확한 지연 측정이 가능하고, 서버의 부하를 증가시키지 않고, 서버의 본래 기능을 그대로 이용하면서도 보다 정확한 지연 측정이 가능한 장점이 있다.
A passive delay measurement method and apparatus are disclosed. According to a preferred embodiment of the present invention, the log information for the first request of the client is recorded, the data transfer time for the first request is calculated, the log information for the second request of the client is recorded, The processing time of the server for the first request and the time excluding the data transmission time for the first request are calculated as the delay in the log time for the second request and the log time interval for the first request of the client.
According to the present invention, it is possible to perform accurate delay measurement even in comparison with the active delay measurement based on a client, and more accurate delay measurement can be performed without using the original function of the server without increasing the load on the server.

Description

수동형 지연 측정 방법 및 장치{Method and apparatus for latency measurement based upon passive measurement}TECHNICAL FIELD The present invention relates to a passive delay measurement method and apparatus,

본 발명은 지연(latency) 시간 측정 방법 및 장치에 관한 것으로서, 보다 상세하게는 수동형 지연 측정 방법 및 장치에 관한 것이다.
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and apparatus for measuring a latency time, and more particularly, to a method and apparatus for measuring a passive delay.

네트워크를 구성하는 장치들인 노드와 노드 사이의 데이터 송수신시 소요되는 시간을 측정하는 방법에 여러 가지 방법이 있다.There are various methods for measuring the time required for data transmission / reception between a node and a node, which are devices constituting a network.

데이터 송수신시 소요되는 시간은 서비스의 품질을 판단하는 중요한 요소이므로 보다 정확하게 데이터 송수신 소요 시간을 측정하기 위한 다양한 방법이 제안되고 있다.Since the time required for data transmission and reception is an important factor for determining the quality of service, various methods for more accurately measuring the time required for data transmission and reception have been proposed.

실제로는 데이터 송수신에 소요된 시간을 보다 정확하게 산출하기 위해 다양한 방법이 적용되고 있어 단순히 측정이라기 보다는 계산이 이루어진다는 표현이 보다 정확할 수 있으나 측정이라는 용어가 널리 사용되고 있고, 계산이라는 용어도 사용되고 있어 이하에서는 이를 특별히 구분하여 사용하지 않기로 한다.In practice, various methods are applied to calculate the time required for data transmission and reception more accurately, so that the expression "calculation is performed rather than simply measurement" may be more accurate, but the term "measurement" is widely used and the term "calculation" It will not be used separately.

한편, 데이터 송수신에 소요되는 시간은 RTT(Round Trip Time)나 지연(latency) 또는 지연 시간 등으로 표현되기도 하는데 이는 모두 결국 데이터 즉 신호를 주고받는데 걸리는 시간을 의미한다.Meanwhile, the time required for data transmission and reception may be represented by RTT (Round Trip Time), latency, or delay time, which means time required for exchanging data or signals.

이러한 지연 측정 방법은 크게 시험 데이터를 생성하여 측정하고자 하는 망에서 생성된 시험 데이터를 송수신하여 측정하는 능동형(active)과 SNMP(Simple Network Monitoring Protocol)과 같은 프로토콜을 사용하여 특정 서버나 네트워크 장비에서 모니터링된 데이터를 수신하여 측정하는 수동형(passive)으로 나눌 수 있다.This delay measurement method is mainly used to generate test data and to transmit the test data generated from the network to be measured, and to monitor it in a specific server or network equipment using a protocol such as active and SNMP (Simple Network Monitoring Protocol) And passive to receive and measure data.

즉, 네트워크가 클라이언트와 서버만으로 구성되는 경우라면 지연 측정을 위해 별도의 데이터를 생성하여 측정이 수행되는 경우를 능동형이라고 하며, 측정을 위한 데이터의 생성 없이 서버와 클라이언트의 데이터 전송 상태, 전송량 등을 통해 지연 측정을 실시하는 경우 수동형이라 할 수 있다.In other words, if the network consists of only the client and the server, the case where the data is generated for delay measurement and the measurement is performed is called the active type. The data transmission state and the transmission amount of the server and the client, It can be said to be passive when carrying out the delay measurement through.

이하에서는 설명의 편의를 위해 데이터를 받는 것이 주를 이루는 쪽을 클라이언트라 하고 데이터를 주는 것이 주를 이루는 쪽을 서버라 칭하기로 하나, 이러한 명칭에 한정되는 것은 아니며, 네트워크를 구성하는 장치라면 모두 지연 측정이 가능함은 자명하다.Hereinafter, for the sake of convenience of explanation, the side of receiving data is referred to as a client and the side of giving data is referred to as a server. However, the present invention is not limited to such a name, It is obvious that measurement is possible.

한편, 종래의 능동형 지연 측정 방법은 시험 패킷을 생성하고 이를 서버에 전송하여 시험 패킷의 도착 시간을 통해 지연을 측정하는 방법이 사용된다.Meanwhile, in the conventional active delay measurement method, a method of generating a test packet and transmitting it to the server and measuring the delay through the arrival time of the test packet is used.

특히 TCP/IP 기반에서는 데이터의 수신 여부를 조사하기 의한 방법으로서 핑이라는 응용 프로그램을 이용하는 핑 테스트 등의 방법이 널리 사용되고 있다.Particularly, in the TCP / IP based method, a ping test method using an application program called ping is widely used as a method for checking whether data is received or not.

이러한 능동형 지연 측정 방법은 실제 서비스를 제공받는 클라이언트를 기준으로 지연이 측정되는 것이므로 보다 정확한 지연의 측정이 가능한 이점이 있다.This active delay measurement method is advantageous in that a delay can be measured more accurately since the delay is measured based on a client provided with an actual service.

그러나 클라이언트 측에 별도의 프로그램의 설치 등이 필요하고, 네트워크에 추가적인 트래픽을 발생시킬 수 있으며, 경우에 따라서는 지연 측정을 위한 시험 패킷의 전송이 DDoS 공격 등으로 오인되어 지연 측정 자체가 이루어지지 않을 수 있는 단점이 있다.However, it is necessary to install a separate program on the client side, to generate additional traffic to the network, and in some cases, transmission of a test packet for delay measurement may be mistaken for a DDoS attack or the like, There are drawbacks to this.

특히, 특정 네트워크의 경우 보안상의 이유 등으로 인하여 능동형 지연 측정 자체가 이루어지지 않게 하는 네트워크도 있어 공용망 이외의 다른 특정 네트워크에는 적용하지 못하는 단점이 있다.In particular, there is a disadvantage in that the active delay measurement itself is not performed due to security reasons in the case of a specific network, and thus it is not applicable to a specific network other than the public network.

이에 비해 수동형 지연 측정 방법은 클라이언트와 서버사이의 전송되는 데이터를 기준으로 지연을 측정하므로 클라이언트에 별도의 프로그램의 설치가 필요 없고, 네트워크에 추가적인 트래픽을 발생시키지 않는 것이 가능하며, 어떠한 네트워크에도 적용될 수 있는 이점이 있다.On the other hand, the passive delay measurement method measures the delay based on the data transmitted between the client and the server. Therefore, it is possible to eliminate the need to install a separate program on the client, generate no additional traffic to the network, There is an advantage.

그러나 클라이언트가 아닌 서버를 기준으로 지연을 측정하므로 측정되는 위치의 차이로 인해 일반적인 능동측정 결과와 다소 차이가 있을 수 있다.However, since the delay is measured based on the server rather than the client, there may be a slight difference from the general active measurement result due to the difference in the measured position.

그리고 수동형 지연 측정 방법은 TCP 연결 등의 네트워크 연결 분석 방법이 널리 사용되는데 보다 구체적으로는 Three-way handshaking이나 종료시 발생되는 FIN-ACK 쌍의 분석을 통해 지연을 측정하는 방법이 사용된다.In the passive delay measurement method, a network connection analysis method such as a TCP connection is widely used. More specifically, a method of measuring delay through analysis of a three-way handshaking or FIN-ACK pair occurring at the end is used.

그러나 이러한 네트워크 연결 분석 방법의 경우 데이터 패킷의 보다 상세한 부분까지 자세하게 조사하여 이를 통해 지연을 측정하는 방법이므로 서버에 많은 부하가 발생될 수 있는 단점이 있다.
However, this network connection analysis method has a drawback in that it may cause a heavy load on the server because it is a method of measuring the delay through a detailed examination of a more detailed part of the data packet.

상기한 바와 같은 종래의 문제점을 해결하기 위해, 본 발명은 클라이언트를 기준으로 하는 능동형 지연 측정과 비교하여 정확한 지연 측정이 가능하게 하는 수동형 지연 측정 방법 및 장치를 제안하는 것이다.In order to solve the above-mentioned problems, the present invention proposes a passive delay measurement method and apparatus that enable precise delay measurement compared with an active delay measurement based on a client.

또한, 서버의 부하를 증가시키지 않으면서도 보다 정확한 지연 측정이 가능하게 하는 수동형 지연 측정 방법 및 장치를 제안하는 것이다.It also proposes a passive delay measurement method and apparatus that enables more accurate delay measurements without increasing the load on the server.

본 발명의 또 다른 목적들은 이하의 실시예에 대한 설명을 통해 쉽게 이해될 수 있을 것이다.
Other objects of the present invention will become readily apparent from the following description of the embodiments.

상기한 바와 같은 목적을 달성하기 위해, 본 발명의 일 측면에 따르면 수동형 지연 측정 방법이 제공된다.According to an aspect of the present invention, a passive delay measurement method is provided.

본 발명의 바람직한 일 실시예에 따르면, 클라이언트 및 서버를 포함하는 네트워크에서 상기 서버에 의해 수행되는 수동형 지연(latency) 측정 방법에 있어서, 상기 클라이언트의 제1 요청에 대한 로그 정보를 기록하는 단계; 상기 제1 요청에 대한 데이터 전송 시간을 계산하는 단계; 상기 클라이언트의 제2 요청에 대한 로그 정보를 기록하는 단계; 및 상기 클라이언트의 제2 요청에 대한 로그 시간과 상기 클라이언트의 제1 요청에 대한 로그 시간 간격에서 상기 제1 요청에 대한 서버의 처리 시간과 상기 제1 요청에 대한 데이터 전송 시간을 제외한 시간을 지연으로 계산하는 단계를 포함하는 수동형 지연 측정 방법이 제공된다.According to a preferred embodiment of the present invention, there is provided a passive latency measurement method performed by the server in a network including a client and a server, the method comprising: recording log information on a first request of the client; Calculating a data transmission time for the first request; Recording log information for a second request of the client; And a delay time excluding a processing time of the server for the first request and a data transmission time for the first request in a log time interval for the second request of the client and a log time interval for the first request of the client, And a step of calculating a passive delay is provided.

상기 지연 계산은 상기 클라이언트 각각의 요청에 대하여 계산되는 지연들에 대하여 평균을 계산하여 수행될 수 있다.The delay calculation may be performed by calculating an average over the delays computed for each request of the client.

상기 제1 요청 및 상기 제2 요청은 상기 클라이언트와 상기 서버 사이의 연결이 지속되어 수신될 수 있다.The first request and the second request may be received by continuing the connection between the client and the server.

제1 요청에 대한 데이터 전송 시간을 계산하는 단계는, 상기 로그 정보에 포함되는 상기 제1 요청에 따라 전송한 데이터의 크기 및 상기 클라이언트와 상기 서버의 연결 사이의 대역폭을 이용하여 계산될 수 있다.The step of calculating the data transmission time for the first request may be calculated using the size of the data transmitted according to the first request included in the log information and the bandwidth between the connection of the client and the server.

상기 로그 정보는 클라이언트가 서버에 접속한 로깅 시간, 클라이언트의 요청에 대한 상기 서버의 처리 시간 및 상기 클라이언트의 요청에 대하여 전송한 데이터의 크기에 대한 정보를 포함하는 정보일 수 있다.
The log information may be information including information about a logging time of a client accessing a server, a processing time of the server for a request of the client, and a size of data transmitted in response to the request of the client.

본 발명의 다른 일 측면에 따르면 수동형 지연 측정 장치가 제공된다.According to another aspect of the present invention, a passive delay measurement apparatus is provided.

본 발명의 바람직한 일 실시예에 따르면, 클라이언트와 네트워크를 통해 연결되어 수동형 지연(latency)을 측정하는 장치에 있어서, 상기 클라이언트의 제1 요청 및 제2 요청에 대한 로그 정보를 기록하는 로그 정보 기록부; 상기 제1 요청에 대한 데이터 전송 시간을 계산하는 데이터 전송 시간 계산부; 및 상기 클라이언트의 제2 요청에 대한 로그 시간과 상기 클라이언트의 제1 요청에 대한 로그 시간 간격에서 상기 제1 요청에 대한 서버의 처리 시간과 상기 데이터 전송 시간 계산부에서 계산된 상기 제1 요청에 대한 데이터 전송 시간을 제외한 시간을 지연으로 계산하는 지연 계산부를 포함하는 수동형 지연 측정 장치가 제공된다.According to a preferred embodiment of the present invention, there is provided an apparatus for measuring passive latency by being connected to a client through a network, the apparatus comprising: a log information recording unit for recording log information on a first request and a second request of the client; A data transmission time calculation unit for calculating a data transmission time for the first request; And a processing time of the server for the first request in a log time interval for the second request of the client and a log time interval for the first request of the client and a processing time of the server for the first request calculated in the data transmission time calculation unit And a delay calculation section for calculating a time excluding the data transmission time as a delay.

상기 지연 계산부에서의 상기 지연 계산은 상기 클라이언트 각각의 요청에 대하여 계산되는 지연들에 대하여 평균을 계산하여 수행될 수 있다.The delay calculation in the delay calculator may be performed by calculating an average over the delays computed for each request of the client.

상기 제1 요청 및 상기 제2 요청은 상기 클라이언트와 상기 서버 사이의 연결이 지속되어 상기 서버에서 수신될 수 있다.The first request and the second request can be received at the server by continuing a connection between the client and the server.

상기 데이터 전송 시간 계산부에서 상기 제1 요청에 대한 데이터 전송 시간을 계산하는 것은, 상기 제1 요청에 대한 로그 정보에 포함되는 상기 제1 요청에 따라 전송한 데이터의 크기 및 상기 클라이언트와 상기 서버의 연결 사이의 대역폭을 이용하여 계산할 수 있다.Wherein the step of calculating the data transmission time for the first request in the data transmission time calculation unit includes calculating a size of data transmitted according to the first request included in the log information for the first request, It can be calculated using the bandwidth between connections.

상기 로그 정보 기록부에서 기록하는 상기 로그 정보는 상기 클라이언트가 서버에 접속한 로깅 시간, 상기 클라이언트의 요청에 대한 상기 서버의 처리 시간 및 상기 클라이언트의 요청에 대하여 전송한 데이터의 크기에 대한 정보를 포함하는 정보일 수 있다.
Wherein the log information recorded in the log information recording unit includes information on a logging time of the client connected to the server, a processing time of the server in response to the request of the client, and a size of data transmitted in response to the request of the client Information.

본 발명의 또 다른 일 측면에 따르면 수동형 지연 측정 방법이 구현된 프로그램이 기록된 기록매체가 제공된다.According to another aspect of the present invention, there is provided a recording medium on which a program in which a passive delay measurement method is implemented is recorded.

본 발명의 바람직한 일 실시예에 따르면, 클라이언트 및 서버를 포함하는 네트워크에서 상기 서버에 의해 수행되는 수동형 지연(latency) 측정 방법을 구현하기 위한 프로그램을 기록한 기록매체에 있어서, 상기 클라이언트의 제1 요청에 대한 로그 정보를 저장하는 단계; 상기 제1 요청에 대한 데이터 전송 시간을 계산하는 단계; 상기 클라이언트의 제2 요청에 대한 로그 정보를 저장하는 단계; 및 상기 클라이언트의 제2 요청에 대한 로그 시간과 상기 클라이언트의 제1 요청에 대한 로그 시간 간격에서 상기 제1 요청에 대한 서버의 처리 시간과 상기 제1 요청에 대한 데이터 전송 시간을 제외한 시간을 지연으로 계산하는 단계를 포함하는 수동형 지연 측정 방법을 구현하기 위한 프로그램을 기록한 기록매체가 제공된다.According to a preferred embodiment of the present invention, there is provided a recording medium on which a program for implementing a passive latency measurement method performed by the server in a network including a client and a server is recorded, Storing log information about the log; Calculating a data transmission time for the first request; Storing log information for a second request of the client; And a delay time excluding a processing time of the server for the first request and a data transmission time for the first request in a log time interval for the second request of the client and a log time interval for the first request of the client, There is provided a recording medium recording a program for implementing a passive delay measurement method including a step of calculating a delay time.

상기 지연 계산은 상기 클라이언트 각각의 요청에 대하여 계산되는 지연들에 대하여 평균을 계산하여 수행될 수 있다.The delay calculation may be performed by calculating an average over the delays computed for each request of the client.

상기 제1 요청 및 상기 제2 요청은 상기 클라이언트와 상기 서버 사이의 연결이 지속되어 수신될 수 있다.The first request and the second request may be received by continuing the connection between the client and the server.

제1 요청에 대한 데이터 전송 시간을 계산하는 단계는, 상기 로그 정보에 포함되는 상기 제1 요청에 따라 전송한 데이터의 크기 및 상기 클라이언트와 상기 서버의 연결 사이의 대역폭을 이용하여 계산될 수 있다.The step of calculating the data transmission time for the first request may be calculated using the size of the data transmitted according to the first request included in the log information and the bandwidth between the connection of the client and the server.

상기 로그 정보는 클라이언트가 서버에 접속한 로깅 시간, 클라이언트의 요청에 대한 상기 서버의 처리 시간 및 상기 클라이언트의 요청에 대하여 전송한 데이터의 크기에 대한 정보를 포함하는 정보일 수 있다.
The log information may be information including information about a logging time of a client accessing a server, a processing time of the server for a request of the client, and a size of data transmitted in response to the request of the client.

이상에서 설명한 바와 같이, 본 발명에 의한 수동형 지연 측정 방법 및 장치에 의하면, 클라이언트를 기준으로 하는 능동형 지연 측정과 비교하여서도 정확한 지연 측정이 가능한 장점이 있다.As described above, according to the method and apparatus for measuring passive delay according to the present invention, accurate delay measurement can be performed in comparison with active delay measurement based on a client.

또한, 서버의 부하를 증가시키지 않고, 서버의 본래 기능을 그대로 이용하면서도 보다 정확한 지연 측정이 가능한 장점이 있다.
In addition, there is an advantage that more accurate delay measurement can be performed while using the original function of the server without increasing the load on the server.

도 1은 본 발명의 바람직한 일 실시예에 따른 지연 측정 방법이 이루어지는 순서를 도시한 순서도.
도 2는 본 발명의 바람직한 일 실시예에 따른 지연 측정 방법이 적용되기 위한 각각의 시간이 측정되는 것을 도시한 도면.
도 3은 본 발명의 바람직한 일 실시예에 따른 지연 측정 장치의 구성을 도시한 도면.
도 4는 본 발명의 바람직한 일 실시예에 따른 지연 측정 방법에 의한 지연과 핑 테스트에 의한 지연을 비교하여 도시한 그래프.
도 5는 본 발명의 바람직한 일 실시예에 따른 지연 측정 방법에 의한 각 지역별 지연과 TCP 연결 분석에 의한 각 지역별 지연의 최소값을 비교하여 도시한 그래프.
FIG. 1 is a flowchart showing a procedure of a delay measurement method according to a preferred embodiment of the present invention. FIG.
Fig. 2 is a view showing that each time for applying a delay measurement method according to a preferred embodiment of the present invention is measured. Fig.
3 is a diagram showing a configuration of a delay measurement apparatus according to a preferred embodiment of the present invention.
FIG. 4 is a graph showing a comparison between a delay by a delay measurement method and a delay by a ping test according to a preferred embodiment of the present invention.
FIG. 5 is a graph illustrating a comparison between the delay of each region according to the delay measurement method according to the preferred embodiment of the present invention and the minimum value of each region by the TCP connection analysis.

본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세한 설명에 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다.While the invention is susceptible to various modifications and alternative forms, specific embodiments thereof are shown by way of example in the drawings and will herein be described in detail. It should be understood, however, that the invention is not intended to be limited to the particular embodiments, but includes all modifications, equivalents, and alternatives falling within the spirit and scope of the invention.

각 도면을 설명하면서 유사한 참조부호를 유사한 구성요소에 대해 사용하였다. 본 발명을 설명함에 있어서 관련된 공지 기술에 대한 구체적인 설명이 본 발명의 요지를 흐릴 수 있다고 판단되는 경우 그 상세한 설명을 생략한다.Like reference numerals are used for like elements in describing each drawing. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, the present invention will be described in detail with reference to the accompanying drawings.

제1, 제2 등의 용어는 다양한 구성 요소들을 설명하는데 사용될 수 있지만, 상기 구성 요소들은 상기 용어들에 의해 한정되어서는 안 된다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다.The terms first, second, etc. may be used to describe various components, but the components should not be limited by the terms. The terms are used only for the purpose of distinguishing one component from another.

예를 들어, 본 발명의 권리 범위를 벗어나지 않으면서 제1 구성요소는 제2 구성요소로 명명될 수 있고, 유사하게 제2 구성요소도 제1 구성요소로 명명될 수 있다.For example, without departing from the scope of the present invention, the first component may be referred to as a second component, and similarly, the second component may also be referred to as a first component.

및/또는 이라는 용어는 복수의 관련된 기재된 항목들의 조합 또는 복수의 관련된 기재된 항목들 중의 어느 항목을 포함한다.And / or < / RTI > includes any combination of a plurality of related listed items or any of a plurality of related listed items.

어떤 구성요소가 다른 구성요소에 "연결되어" 있다거나 "접속되어" 있다고 언급된 때에는, 그 다른 구성요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있지만, 중간에 다른 구성요소가 존재할 수도 있다고 이해되어야 할 것이다.It is to be understood that when an element is referred to as being "connected" or "connected" to another element, it may be directly connected or connected to the other element, .

반면에, 어떤 구성요소가 다른 구성요소에 "직접 연결되어" 있다거나 "직접 접속되어" 있다고 언급된 때에는, 중간에 다른 구성요소가 존재하지 않는 것으로 이해되어야 할 것이다.On the other hand, when an element is referred to as being "directly connected" or "directly connected" to another element, it should be understood that there are no other elements in between.

본 출원에서 사용한 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명을 한정하려는 의도가 아니다.The terminology used in this application is used only to describe a specific embodiment and is not intended to limit the invention.

단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 출원에서, "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.The singular expressions include plural expressions unless the context clearly dictates otherwise. In the present application, the terms "comprises" or "having" and the like are used to specify that there is a feature, a number, a step, an operation, an element, a component or a combination thereof described in the specification, But do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, or combinations thereof.

다르게 정의되지 않는 한, 기술적이거나 과학적인 용어를 포함해서 여기서 사용되는 모든 용어들은 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자에 의해 일반적으로 이해되는 것과 동일한 의미를 가지고 있다.Unless defined otherwise, all terms used herein, including technical or scientific terms, have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

일반적으로 사용되는 사전에 정의되어 있는 것과 같은 용어들은 관련 기술의 문맥상 가지는 의미와 일치하는 의미를 가지는 것으로 해석되어야 하며, 본 출원에서 명백하게 정의하지 않는 한, 이상적이거나 과도하게 형식적인 의미로 해석되지 않는다.
Terms such as those defined in commonly used dictionaries are to be interpreted as having a meaning consistent with the contextual meaning of the related art and are to be interpreted as either ideal or overly formal in the sense of the present application Do not.

이하, 첨부된 도면을 참조하여 본 발명에 따른 바람직한 실시예를 상세히 설명하되, 도면 부호에 관계없이 동일하거나 대응하는 구성 요소는 동일한 참조 번호를 부여하고 이에 대한 중복되는 설명은 생략하기로 한다.Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings, wherein like or corresponding elements are denoted by the same reference numerals, and a duplicate description thereof will be omitted.

먼저 도 1을 참조하여 본 발명의 바람직한 일 실시예에 따른 지연 측정 방법이 수행되는 순서를 살펴보기로 한다.First, a sequence of performing a delay measurement method according to a preferred embodiment of the present invention will be described with reference to FIG.

도 1은 본 발명의 바람직한 일 실시예에 따른 지연 측정 방법이 이루어지는 순서를 도시한 순서도이다.FIG. 1 is a flowchart illustrating a procedure for performing a delay measurement method according to a preferred embodiment of the present invention.

전술한 바와 같이 설명의 편의를 위해 데이터를 받는 것이 주를 이루는 쪽을 클라이언트(100)라 하고 데이터를 주는 것이 주를 이루는 쪽을 서버(110)라 칭하기로 하나, 이러한 명칭에 한정되는 것은 아니며, 네트워크를 구성하는 장치라면 모두 본 발명에 의한 지연 측정 방법이 가능함은 자명하다.As described above, for convenience of explanation, the client 110 is referred to as a client 100 and the server 110 is referred to as a client 110. However, the name is not limited to this name, It is apparent that the delay measurement method according to the present invention is applicable to any apparatus constituting the network.

한편 도 1에 도시된 바와 같이 본 발명의 바람직한 일 실시예에 따른 지연 측정 방법은 먼저 클라이언트(100)로부터의 데이터 또는 신호의 요청(이하 설명의 편의와 구분을 위해 제1 요청이라 함)에 대하여 로그 정보를 저장한다(S200).As shown in FIG. 1, a delay measurement method according to an exemplary embodiment of the present invention firstly transmits a request for data or a signal from the client 100 (hereinafter, referred to as a first request for convenience and description) The log information is stored (S200).

클라이언트(100)가 서버(110)에 접속하게 되면 접속에 대한 기록을 남기게 되는 이를 로그(log) 정보라 하며, 이는 클라이언트(100)가 서버(110)에 접속하면 그때마다 기록되는 정보이다.When the client 100 accesses the server 110, it is called log information which is recorded every time when the client 100 accesses the server 110. In this case,

이러한 로그 정보의 기록은 서버(110)에 포함되는 일반적 기능이며, 로그 정보는 일반적으로 클라이언트(100)가 서버(110)에 접속한 시간인 로깅 시간(logging time), 서버(110)가 클라이언트(100)의 요청에 대하여 데이터를 전송해준 시간으로서 서버 처리 시간(sever process time), 클라이언트(100)로 전송해준 데이터 크기와 데이터의 식별정보(ID) 등의 정보가 기록된다.The log information is generally a logging time which is a time when the client 100 is connected to the server 110. The logging time is a time when the server 110 is connected to the client 110 100, the server process time, the data size transmitted to the client 100, and the identification information (ID) of the data are recorded.

한편, 클라이언트(100)로 전송해준 데이터의 크기는 로그 정보를 통해 알 수 있고, 클라이언트(100)와 서버(110) 사이의 연결이 되었으므로 클라이언트(100)와 서버(110) 사이의 연결에서의 대역폭(bandwidth)에 대한 정보도 알 수 있다.Since the size of the data transmitted to the client 100 is known through the log information and the connection between the client 100 and the server 110 is established, the bandwidth of the connection between the client 100 and the server 110 and information on the bandwidth.

따라서 산술적인 데이터의 전송 시간은 데이터 크기를 대역폭을 크기로 나눈 값으로서 계산될 수 있다(S102).Therefore, the transmission time of the arithmetic data can be calculated as a data size divided by the bandwidth size (S102).

한편, 다음으로 서버(110)는 클라이언트(100)로부터 다음에 이어지는 데이터 또는 신호의 요청(이하 설명의 편의와 구분을 위해 제2 요청이라 함)에 대한 로그 정보를 기록하게 된다(S104).Next, the server 110 records log information about the next data or signal request (hereinafter referred to as a second request for convenience and description) from the client 100 (S104).

한편, 제2 요청에 대한 로그 정보에도 역시 클라이언트(100)가 서버(110)에 접속한 시간인 로깅 시간(logging time), 서버(110)가 클라이언트(100)의 요청에 대하여 데이터를 전송해준 시간으로서 서버 처리 시간(sever process time), 클라이언트(100)로 전송해준 데이터 크기와 식별정보(ID) 등의 정보가 기록된다.The log information for the second request also includes a logging time which is a time when the client 100 is connected to the server 110 and a logging time when the server 110 transmits data to the client 100 A sever process time, a data size transmitted to the client 100, and identification information (ID).

다음으로 제1 요청에 대한 로그 정보와 데이터 전송 시간 그리고 제2 요청에 대한 로그 정보를 이용하여 지연(latency)을 계산한다(S106).Next, a latency is calculated using the log information for the first request, the data transmission time, and the log information for the second request (S106).

지연 계산은 먼저 제2 요청에 대한 로깅 시간과 제1 요청에 대한 로깅 시간 간격에서 서버 처리 기간 및 데이터 전송 시간을 감산하여 이루어진다.The delay calculation is first performed by subtracting the server processing period and the data transmission time from the logging time for the second request and the logging time interval for the first request.

이러한 제2 요청에 대한 로깅 시간과 제1 요청에 대한 로깅 시간 간격에서 서버 처리 기간 및 데이터 전송 시간을 감산하여 시간을 지연으로서 계산하게 되는 것을 도 2를 통해 보다 상세하게 살펴본다.A detailed description will now be made with reference to FIG. 2, in which a time is calculated as a delay by subtracting a server processing period and a data transmission time from a logging time for the second request and a logging time interval for the first request.

도 2는 본 발명의 바람직한 일 실시예에 따른 지연 측정 방법이 적용되기 위한 각각의 시간이 측정되는 것을 도시한 도면이다.FIG. 2 is a view showing that each time for applying the delay measurement method according to the preferred embodiment of the present invention is measured.

도 2에 도시된 바와 같이 제1 요청에 대하여 클라이언트(100)가 서버(110)에 접속한 로깅 시간을 Tlog1이라 한다.As shown in FIG. 2, the logging time when the client 100 accesses the server 110 for the first request is referred to as Tlog1.

그리고 클라이언트(100)의 요청에 대해 클라이언트(100)로 데이터나 신호를 전송해주기 시작하여 완료되는 시간이 서버 처리 시간이 되며 이를 T1라 한다.The time required for the client 100 to transmit data or signals to the client 100 and completed is the server processing time, which is referred to as T1.

다음으로 데이터의 크기와 대역폭에 따라 계산되는 데이터 전송 시간을 T2라 한다.Next, the data transmission time calculated according to the data size and bandwidth is referred to as T2.

즉 T2는 산술적으로 계산되는 서버(100)에서의 데이터 전송 시작 시간 및 데이터 전송 완료 시간이라 할 수 있다.That is, T2 may be a data transmission start time and a data transmission completion time in the server 100 that are calculated arithmetically.

한편, 이러한 데이터 전송 시작 시간과 데이터 전송 완료 시간의 경우에도 서버(110)에서 별도로 기록하고 저장하는 경우도 있을 것이나, 일반적인 서버(110)의 기능으로서 기록하는 로그 정보에는 포함되지 않는 것이 일반적이다.Meanwhile, in the case of the data transfer start time and the data transfer completion time, the server 110 may record and store data separately, but it is generally not included in the log information to be recorded as a function of the general server 110.

즉, 일반적인 서버(110)의 기능으로서 기록되는 로그 정보를 통해 Tlog1, Tlog2, T1, 및 데이터의 크기만을 알 수 있게 되므로, 데이터 전송 시간은 데이터의 크기와 대역폭 정보를 이용하여 별도로 계산하는 것이다.That is, since it is possible to know only Tlog1, Tlog2, T1 and the size of data through the log information recorded as a function of the general server 110, the data transmission time is calculated separately using data size and bandwidth information.

이렇게 함으로써 종래의 서버(110) 본래의 기능 외에 추가적인 기능이나 데이터의 송수신 등을 포함시킬 필요가 없게 되며, 본래 서버(10)가 지닌 기능만을 이용하면 되는 이점이 있다.By doing this, there is no need to include additional functions and data transmission / reception in addition to the functions inherent to the conventional server 110, and there is an advantage that only functions inherent to the server 10 can be used.

한편, 만약 서버(110)에 데이터 전송 시작 시간과 데이터 전송 완료 시간을 별도로 기록하고 저장하는 기능이 포함되어 있다면 T2의 경우 별도로 계산하는 과정이 필요하지 않을 수 있다.On the other hand, if the server 110 includes a function of separately recording and storing the data transmission start time and the data transmission completion time, it may not be necessary to separately calculate the time T2.

다음으로 클라이언트(100)에서 데이터를 수신하여 처리하는 시간을 t3라 하면, 클라이언트(100)는 수신한 데이터의 처리가 완료되면 다시 다음 데이터의 요청을 하게 되며 제2 요청에 대해서도 역시 로그 정보가 기록되며, 제2 요청에 대한 로깅 시간을 Tlog2라 한다.Next, when the time for receiving and processing the data in the client 100 is t3, the client 100 requests the next data again after the processing of the received data is completed, and the log information is also recorded for the second request And the logging time for the second request is Tlog2.

한편, 지연은 Tlog2에서 Tlog1 사이의 시간 간격에서 T1과 T2를 제외한 시간을 지연으로 계산한다.On the other hand, the delay computes the time, excluding T1 and T2, as the delay in the time interval between Tlog2 and Tlog1.

즉, 제1 요청에 대한 로깅 시간과 제2 요청에 대한 로깅 시간 간격에서 서버의 처리 시간인 T1와 데이터 전송시간인 T2를 제외한 시간을 지연으로서 계산하는 것이다.That is, the time excluding the processing time of the server T1 and the data transmission time T2 is calculated as a delay in the logging time for the first request and the logging time interval for the second request.

이러한 본 발명에 의한 수동형 지연 측정 방법을 종래의 능동형 지연 측정 방법과 도 2를 참조하여 비교해 살펴본다.The passive delay measurement method according to the present invention will be described with reference to FIG. 2 and a conventional active delay measurement method.

종래의 능동형 지연 측정 방법은 클라이언트(100)를 기준으로 하므로 클라이언트(100)가 서버(110)로의 제1 요청을 수행한 시간에서 데이터의 수신이 시작된 시간까지인 t1이 지연으로 계산된다.Since the conventional active delay measurement method is based on the client 100, t1, which is the time from when the client 100 performs the first request to the server 110 until the start of receiving the data, is calculated as the delay.

이에 비해 본 발명에 의한 지연 측정 방법에 의한 지연은 제1 요청에 대한 로깅 시간과 제2 요청에 대한 로깅 시간 간격에서 서버의 처리 시간인 T1와 데이터 전송시간인 T2를 제외한 시간인 T3가 지연으로 계산된다.On the other hand, according to the delay measurement method of the present invention, the delay time of the first request and the logging time interval of the second request are delayed by T3, which is a time excluding the processing time of the server and T1, .

한편, t1과 T3가 같거나 근사값을 가지는지 판단하기 위해서 먼저 클라이언트(100)에서의 요청 시간과 서버(110)에서의 접속 시간은 결국 클라이언트(100)에서 서버(110)까지 요청이 이동되는 시간이 더 소요되므로 이를 제외한다면 결국 같은 시간이라고 가정할 수 있다.In order to determine whether t1 and T3 are equal or approximate to each other, the request time in the client 100 and the connection time in the server 110 are determined so that the time required for the request to move from the client 100 to the server 110 It can be assumed that it is the same time.

또한 클라이언트(100)에서의 데이터 도착 시간과 서버(110)에서의 데이터 전송 시작 시간도 결국 서버에서 클라이언트(100로 데이터나 신호가 이동되는 시간이므로 이를 제외한다면 역시 같은 시간이라고 가정할 수 있다.Also, since the data arrival time in the client 100 and the data transmission start time in the server 110 are eventually transferred from the server to the client 100, it can be assumed that they are the same time, except for the data arrival time.

이러한 가정에 따르면 결국, t1+t2+t3=T1+T2+T3와 같다고 할 수 있다.According to this assumption, it can be said that t1 + t2 + t3 = T1 + T2 + T3.

한편, t2와 T2는 데이터 전송 시간으로서 실질적으로 동일하거나 적어도 거의 동일한 시간으로서 동일 또는 근사값이라 할 수 있으므로 결국 수동형 지연 측정 방법에 의한 지연인 T3과 능동형 지연 측정 방법에 의한 지연인 t1이 같거나 근사값을 가지는 위해서는 t3와 T1이 같거나 근사값을 가지면 된다.On the other hand, since t2 and T2 can be substantially the same or at least substantially the same time as the data transmission time, they can be the same or approximate values. Consequently, the delay T3 by the passive delay measurement method and the delay t1 by the active delay measurement method are equal , T3 and T1 may be the same or have approximate values.

그런데 t3의 경우 클라이언트(100)에서의 데이터 처리를 위한 시간이고 T2의 경우 서버(110)에서의 데이터 처리를 위한 시간이며, 처리하는 데이터는 동일한 데이터이다.In the case of t3, the time for data processing in the client 100 is T2, and the time for data processing in the server 110 is T2, and the data to be processed is the same data.

따라서 결국 t3와 T2의 시간적 차이가 크지 않다는 것을 알 수 있으며, 데이터의 크기가 작으면 작을수록 더욱 그러함을 알 수 있다.Therefore, it can be seen that the time difference between t3 and T2 is not large, and the smaller the data size is, the more the difference is.

이러한 점은 지연 측정의 하나의 형태라 할 수 있는 RTT를 기준으로 판단하여서도 검증할 수 있다.This can be verified by judging based on the RTT, which is one type of delay measurement.

클라이언트(100)를 기준으로 하여 측정되는 RTT의 경우 클라이언트(100)에서 서버(110)로 접속하여 다시 클라이언트(100)로 응답이 돌아오는 시간에 서버(110)의 처리 시간을 더한 값이 된다.The RTT measured based on the client 100 becomes a value obtained by adding the processing time of the server 110 to the time when the client 100 accesses the server 110 and the response is returned to the client 100 again.

반면, 서버(110)를 기준으로 하여 측정되는 RTT의 경우 서버(110)에서 클라이언트(100)로 접속하여 다시 서버(110)로 응답이 돌아오는 시간에 클라이언트(100)의 처리 시간을 더한 값이 된다.On the other hand, in the case of the RTT measured based on the server 110, a value obtained by adding the processing time of the client 100 to the time when the server 110 accesses the client 100 and the response is returned to the server 110 do.

결국 클라이언트(100)와 서버(110) 사이에서 데이터나 신호가 오고 가는 시간을 제외하고 생각하면 클라이언트(100)에서의 처리 시간과 서버(110)에서의 처리 시간 차이가 능동형이나 수동형 RTT나 지연 측정에서 시간의 차이가 되는 것이다.As a result, considering the time period between the client 100 and the server 110, the difference between the processing time in the client 100 and the processing time in the server 110 is not limited to the active type, the passive type RTT, Is the time difference.

따라서 클라이언트(100)와 서버(110) 사이에서 데이터나 신호가 오고 가는 시간이 클라이언트(100)를 기준으로 하던지, 서버(110)를 기준으로 하던지 큰 차이가 없고, 클라이언트(100)에서의 처리 시간과 서버(110)에서의 처리 시간 차이가 크지 않다면 능동형이나 수동형 RTT 측정 모두 유사한 값을 가질 수 있음을 의미하며, 특히 데이터의 크기가 작으면 작을수록 더욱 차이가 크지 않음을 알 수 있다.Therefore, there is no significant difference in whether the time of data and signal coming and going between the client 100 and the server 110 is based on the client 100, on the basis of the server 110, If the difference in processing time in the server 110 and the server 110 is not large, it means that both the active type and the passive RTT measurement can have similar values. Particularly, the smaller the data size is, the larger the difference is.

본 발명에서는 이러한 점을 이용하여 서버(110)에서 지연을 측정하는 수동형 지연 측정 방법에서 서버(100)의 기능에 따라 본래 기록되는 정보인 로그 정보에 서버의 처리 시간 정보와 데이터의 크기 정보가 포함되는 점을 이용하여 별도의 다른 정보의 송수신이나 데이터의 분석이 필요 없이도 지연 측정이 가능하게 하는 것이다.According to the present invention, in the passive delay measurement method of measuring the delay in the server 110, the processing time information of the server and the size information of the data are included in the log information, which is information originally recorded according to the function of the server 100 The delay measurement can be performed without the need to transmit / receive other information or analyze data.

한편, 서버(110)에 기록되는 로그 정보는 클라이언트(100)와 서버 사이(110)의 연결이 계속되면 연속적으로 계속하여 기록되게 된다.On the other hand, the log information recorded in the server 110 is continuously recorded continuously when the connection between the client 100 and the server 110 is continued.

따라서 지연을 계산함에 있어서 복수개의 로그 정보로부터 각각의 지연을 계산하고 이들의 평균을 통해 지연을 계산하는 것도 가능하다.Therefore, in calculating the delay, it is also possible to calculate the delays from a plurality of pieces of log information, and to calculate the delays by averaging these delays.

예를 들어, 10개의 로그 정보가 있고, 10개의 로그 정보가 기록되는 동안 클라이언트(100)와 서버(110) 사이의 연결이 계속되고 있었다면 결국 9개의 시간 간격 정보를 획득할 수 있고 이를 통해 9개의 지연 정보를 획득할 수 있다.For example, if there are 10 log information, and the connection between the client 100 and the server 110 is continued while 10 log information is being recorded, eventually, 9 time interval information can be acquired, Delay information can be obtained.

이러한 9개의 지연 정보의 평균을 하나의 지연 정보로 계산함으로써 보다 확률적으로 정확성이 높은 지연의 측정이 가능하도록 할 수 있다.By calculating the average of the nine pieces of delay information as one piece of delay information, it is possible to make the measurement of the delay with higher probability more accurate.

특히 네트워크의 특성상 특정 시간에서의 오동작이나 네트워크 상태의 변화 등으로 인하여 지연의 값이 크게 달라지는 경우도 있을 수 있으므로 샘플링을 통한 평균값을 통한 지연의 측정은 지연의 정확성을 높일 수 있다.In particular, due to the characteristics of the network, there may be a case where the delay value greatly changes due to a malfunction at a specific time or a change of a network state. Therefore, the measurement of the delay through the average value can improve the accuracy of the delay.

또한, 예를 들어 샘플링을 통한 평균값의 계산시 최대값이나 최소값을 가지는 지연은 제외하는 방법이나, 최대값뿐만 아니라 지연의 최소값의 2배가 되는 지연이 있는 경우 이를 제외하고 지연을 계산하는 방법 등을 통해 측정되는 지연의 정확성을 보다 높이는 것도 가능하다.In addition, for example, a method of excluding a delay having a maximum value or a minimum value in the calculation of the average value through sampling, or a method of calculating a delay except for a maximum value and a delay that is twice the minimum value of the delay It is also possible to further increase the accuracy of the delay measured through.

한편, 서버(110)에는 불특정 다수의 클라이언트(100)가 접속하므로, 본 발명에서는 서버(110)에서는 지연 측정을 위한 특정 클라이언트(100)와의 연결이 지속되도록 하고, 클라이언트(100)에서 제1 요청에 대한 처리가 끝난 다음 즉시 제2 요청을 수신하도록 하는 것이 필요할 수 있다.Since the server 110 is connected to an unspecified number of the clients 100, the server 110 allows the server 110 to continue the connection with the specific client 100 for delay measurement, It may be necessary to have the second request be received immediately after the processing for the second request is completed.

이를 위해 TCP/IP(Transfer Control Protocol/Internet Protocol) 기반에서의 'keep alive'와 같은 설정을 통한 접속 유지 설정이 필요할 수 있으나 이에 한정되는 것은 아니다.For this purpose, it is necessary to establish a connection maintenance through setting such as 'keep alive' based on TCP / IP (Transfer Control Protocol / Internet Protocol), but the present invention is not limited thereto.

본 발명에 의한 지연 측정 방법은 프로그램으로 구현되어 기록매체 등에 저장될 수 있고, 또한, 디지털 처리 장치에 프로그램이 설치되어 본 발명에 의한 지연 측정 방법이 구현될 수 있음은 자명하다.
It is obvious that the delay measurement method according to the present invention can be implemented by a program and stored in a recording medium or the like, and a program is installed in the digital processing apparatus to implement the delay measurement method according to the present invention.

이하에서는 본 발명에 의한 지연 측정이 이루어지도록 하는 지연 측정 장치의 구성에 대해 도 3을 참조하여 살펴보기로 한다.Hereinafter, a configuration of a delay measurement apparatus for performing delay measurement according to the present invention will be described with reference to FIG.

도 3은 본 발명의 바람직한 일 실시예에 따른 지연 측정 장치의 구성을 도시한 도면이다.3 is a diagram illustrating a configuration of a delay measurement apparatus according to an embodiment of the present invention.

도 3에 도시된 바와 같이 본 발명의 바람직한 일 실시예에 따른 지연 측정 장치는 로그 정보 기록부(300), 데이터 전송 시간 계산부(310) 및 지연 계산부(320)를 포함할 수 있다.3, the delay measurement apparatus according to an exemplary embodiment of the present invention may include a log information recording unit 300, a data transmission time calculation unit 310, and a delay calculation unit 320.

로그 정보 기록부(300)는 클라이언트(100)가 서버(110)에 접속한 시간인 로깅 타임, 서버의 처리 시간, 데이터의 크기 등을 기록한다.The log information recording unit 300 records the logging time, the processing time of the server, the size of the data, and the like, which are the times when the client 100 accesses the server 110.

또한, 데이터의 식별 정보와 클라이언트(100)에 대하여 응답한 정보인 코드 정보를 포함할 수 있다.In addition, it may include identification information of data and code information which is information responded to the client 100.

이러한 로그 정보 기록부(300)는 바람직하게는 서버(100)에 본래 포함되는 기능에 의해 구현될 수 있음은 자명하다.It is obvious that the log information recording unit 300 can be implemented by a function originally included in the server 100. [

데이터 전송 시간 계산부(310)는 로그 정보 기록부(300)에 의해 기록된 데이터의 크기에 대한 정보와 클라이언트(100)와 서버(110) 사이의 대역폭을 이용하여 데이터 전송 시간을 계산한다.The data transmission time calculation unit 310 calculates the data transmission time using the information about the size of the data recorded by the log information recording unit 300 and the bandwidth between the client 100 and the server 110. [

전술한 바와 같이 데이터 전송 시작 시간과 데이터 전송 완료 시간의 경우에도 서버(110)에서 별도로 기록하고 저장하는 경우가 있다면, 데이터 전송 시간 계산부(310)도 서버(110)에 포함되는 기능에 의해 구현될 수 있다.As described above, if there is a case where the server 110 separately records and stores the data transmission start time and the data transmission completion time, the data transmission time calculation unit 310 may be implemented by a function included in the server 110 .

그러나 데이터 전송 시작 시간과 데이터 전송 완료 시간이 로그 정보에 포함되지 않는 것이 일반적이므로, 데이터 전송 시간은 데이터의 크기와 대역폭 정보를 이용하여 별도로 계산하는 것이다.However, since data transmission start time and data transmission completion time are not included in log information, data transmission time is calculated separately using data size and bandwidth information.

특히 본 발명에서는 종래의 서버(110) 본래의 기능 외에 추가적인 기능을 포함시키지 않아 서버(110)의 부하를 줄이는 것이 바람직하므로, 본래 서버(110)의 기능에 따라 저장되는 로그 정보만을 이용하도록 하는 것이 바람직할 것이다.Particularly, in the present invention, it is desirable to reduce the load of the server 110 without including additional functions other than the original functions of the conventional server 110, so that only the log information stored in accordance with the function of the server 110 is used Lt; / RTI >

지연 계산부(320)는 제2 요청에 대한 로깅 시간과 제1 요청에 대한 로깅 시간 간격에서 서버의 처리 시간과 데이터 전송 시간을 감산하여 지연으로 계산한다.The delay calculator 320 calculates the delay by subtracting the processing time and the data transmission time of the server from the logging time for the second request and the logging time interval for the first request.

제2 요청에 대한 로깅 시간과 제1 요청에 대한 로깅 시간 간격에서 서버의 처리 시간과 데이터 전송 시간을 제외한 시간을 지연으로 계산할 수 있는 이유는 전술한 바와 같다.The reason why the processing time of the server and the time excluding the data transmission time in the logging time interval for the second request and the logging time interval for the first request can be calculated as a delay is as described above.

한편, 본 발명의 바람직한 일 실시예에 따른 지연 측정 장치는 서버에 포함되어 구현되거나, 또는 서버와 연결되는 별개의 장치를 통해 구현될 수 있음은 자명하다.Meanwhile, it is apparent that the delay measurement apparatus according to the preferred embodiment of the present invention can be implemented by being included in a server or through a separate device connected to a server.

또한, 본 발명에 의한 지연 측정 방법을 프로그램의 형태로 구현하고 프로그램이 설치된 서버와 같은 디지털 처리 장치의 형태로 구현될 수도 있음은 전술한 바와 같다.
In addition, the delay measurement method according to the present invention may be implemented in the form of a program and may be implemented in the form of a digital processing apparatus such as a server in which a program is installed.

이하에서는 본 발명의 바람직한 일 실시예에 따른 지연 측정 방법을 실제로 적용하여 측정한 지연을 표시하여 비교한 도 4 및 도 5를 참조하여 본 발명의 바람직한 일 실시예에 따른 지연 측정에 대해 살펴본다.Hereinafter, a delay measurement according to a preferred embodiment of the present invention will be described with reference to FIGS. 4 and 5, in which a delay measured by actually applying a delay measurement method according to a preferred embodiment of the present invention is displayed and compared.

한편, 종래의 RTT 측정 방법은 핑 테스트와 TCP 연결 분석을 통한 지연 측정이 널리 사용되고 있다.Meanwhile, the conventional RTT measurement method is widely used for delay measurement by ping test and TCP connection analysis.

도 4는 본 발명의 바람직한 일 실시예에 따른 지연 측정 방법과 핑 테스트에 의한 지연 측정 방법의 결과를 비교한 것이고, 도 5는 본 발명의 바람직한 일 실시예에 따른 지연 측정 방법에 의한 각 지역별 지연과 TCP 연결 분석에 의한 각 지역별 지연의 최소값을 비교하여 도시한 그래프이다.FIG. 4 is a graph comparing the results of the delay measurement method according to the preferred embodiment of the present invention with the results of the delay measurement method using the ping test. FIG. 5 is a diagram illustrating a delay measurement method according to a preferred embodiment of the present invention. And the minimum value of delay for each region by TCP connection analysis.

그리고 본 발명의 바람직한 일 실시예에 따른 지연 측정 방법은 보다 상세하게는 최대값을 제외한 평균값을 산정하는 샘플링 방식에 의한 지연 측정 방법을 사용한 것이다.The delay measurement method according to a preferred embodiment of the present invention uses a delay measurement method using a sampling method for calculating an average value excluding a maximum value.

먼저 도 4는 본 발명의 바람직한 일 실시예에 따른 지연 측정 방법에 의한 지연과 핑 테스트에 의한 지연의 측정을 비교한 것으로서 지연(latency)를 알기 위한 방법의 하나로서 RTT를 기준으로 비교하여 도시한 그래프이다.First, FIG. 4 is a comparison of delay measurement by the delay measurement method and delay measurement by the ping test according to a preferred embodiment of the present invention. As a method of knowing the latency, Graph.

도 4에 도시된 바와 같이 본 발명의 바람직한 일 실시예에 따른 지연 측정 방법에 의한 지연과 핑 테스트에 의한 지연을 비교한 값을 살펴보면 평균값의 경우 큰 차이가 발생하지 않는 것을 알 수 있다.As shown in FIG. 4, when comparing the delay by the delay measurement method and the delay by the ping test according to the preferred embodiment of the present invention, it can be seen that no significant difference occurs in the average value.

그리고 최대값의 경우 핑 테스트의 경우보다 오히려 작은 값이 나타나고, 최소값의 경우 핑 테스트에 비해 큰 값이 나타나지만 그 차이가 크지 않음을 확인할 수 있다.In the case of the maximum value, a smaller value appears rather than the case of the ping test, and a minimum value shows a larger value than the ping test, but the difference is not large.

다음으로 도 5는 본 발명의 바람직한 일 실시예에 따른 지연 측정 방법에 의해 서울에서 세계 각 지역별로의 지연 측정과 TCP 연결 분석에 의한 지연으로서 RTT를 기준으로 비교하여 도시한 그래프이다.Next, FIG. 5 is a graph illustrating a comparison of RTT as a delay based on the delay measurement by TCP and the delay measurement by the world region in Seoul by the delay measurement method according to a preferred embodiment of the present invention.

도 5에 도시된 바와 같이 평균적으로 TCP 연결 분석에 의한 지연보다 본 발명에 의한 지연이 값이 더 큰 것을 알 수 있으나, 차이가 크지 않음을 알 수 있다.As shown in FIG. 5, it can be seen that the delay according to the present invention is larger than the delay caused by TCP connection analysis on average, but the difference is not large.

즉, 종래의 핑 테스트에 의한 RTT 측정을 통한 지연 측정이나, TCP 연결 분석을 통한 RTT 측정을 통한 지연 측정과 비교하여 본 발명에 의한 지연 측정이 큰 차이의 오차가 발생하지 않음을 확인할 수 있다.That is, it can be seen that the delay measurement according to the present invention does not cause a large difference in comparison with the delay measurement through the RTT measurement by the conventional ping test or the RTT measurement through the TCP connection analysis.

따라서 본 발명에 의한 수동형 지연 측정 방법에 의하면 능동형 지연 측정 방법과 같이 클라이언트 측에 별도의 프로그램의 설치할 필요가 없으며, 네트워크에 추가적인 트래픽을 발생시키지도 않으면서도 능동형 지연 측정 방법과 비교하여 큰 오차가 발생하지 않게 지연을 측정할 수 있게 된다.Therefore, according to the passive delay measurement method of the present invention, there is no need to install a separate program on the client side as in the active delay measurement method, and even when no additional traffic is generated in the network, a large error is generated compared with the active delay measurement method So that the delay can be measured.

그리고 서버의 경우에도 서버의 본래 기능으로서 구현되어 있는 로그 정보를 기록하는 기능을 이용하는 것이므로 수동형 지연 측정 방법임에도 서버의 부하를 크게 증가시키지 않는다.
Even in the case of the server, since the function of recording the log information implemented as the original function of the server is used, the load of the server is not greatly increased even though it is a passive delay measurement method.

상기한 본 발명의 바람직한 실시예는 예시의 목적을 위해 개시된 것이고, 본 발명에 대해 통상의 지식을 가진 당업자라면 본 발명의 사상과 범위 안에서 다양한 수정, 변경, 부가가 가능할 것이며, 이러한 수정, 변경 및 부가는 하기의 특허청구범위에 속하는 것으로 보아야 할 것이다.
It will be apparent to those skilled in the relevant art that various modifications, additions and substitutions are possible, without departing from the spirit and scope of the invention as defined by the appended claims. The appended claims are to be considered as falling within the scope of the following claims.

100: 클라이언트 110: 서버
300: 로그 정보 기록부 310: 데이터 전송시간 계산부
320: 지연 계산부
100: client 110: server
300: log information recording unit 310: data transmission time calculation unit
320: delay calculation unit

Claims (11)

클라이언트 및 서버를 포함하는 네트워크에서 상기 서버에 의해 수행되는 수동형 지연(latency) 측정 방법에 있어서,
상기 클라이언트의 제1 요청에 대한 로그 정보를 기록하는 단계;
상기 제1 요청에 대한 데이터 전송 시간을 계산하는 단계;
상기 클라이언트의 제2 요청에 대한 로그 정보를 기록하는 단계-상기 제1 요청 및 상기 제2 요청은 상기 클라이언트와 상기 서버 사이의 연결이 지속되어 수신되는 것임-; 및
상기 클라이언트의 제2 요청에 대한 로그 시간과 상기 클라이언트의 제1 요청에 대한 로그 시간 간격에서 상기 제1 요청에 대한 로그 정보에 포함된 상기 서버의 제1 요청에 대한 처리 시간과 상기 제1 요청에 대한 데이터 전송 시간을 제외한 시간을 지연으로 계산하는 단계를 포함하는 수동형 지연 측정 방법.
1. A passive latency measurement method performed by the server in a network including a client and a server,
Recording log information for a first request of the client;
Calculating a data transmission time for the first request;
Recording log information for a second request of the client, wherein the first request and the second request are received while the connection between the client and the server continues; And
The processing time for the first request of the server included in the log information for the first request in the log time for the second request of the client and the log time interval for the first request of the client, And calculating a time, excluding a data transmission time, for the delay time as a delay.
제1항에 있어서,
상기 지연 계산은 상기 클라이언트 각각의 요청에 대하여 계산되는 지연들에 대하여 평균을 계산하여 수행되는 것을 특징으로 하는 수동형 지연 측정 방법.
The method according to claim 1,
Wherein the delay calculation is performed by calculating an average over the delays computed for each request of the client.
삭제delete 제1항에 있어서,
제1 요청에 대한 데이터 전송 시간을 계산하는 단계는,
상기 로그 정보에 포함되는 상기 제1 요청에 따라 전송한 데이터의 크기 및 상기 클라이언트와 상기 서버의 연결 사이의 대역폭을 이용하여 계산되는 것을 특징으로 하는 수동형 지연 측정 방법.
The method according to claim 1,
The step of calculating the data transmission time for the first request comprises:
Wherein the bandwidth is calculated using a size of data transmitted according to the first request included in the log information and a bandwidth between the connection of the client and the server.
제1항에 있어서,
상기 로그 정보는 클라이언트가 서버에 접속한 로깅 시간, 클라이언트의 요청에 대한 상기 서버의 처리 시간 및 상기 클라이언트의 요청에 대하여 전송한 데이터의 크기에 대한 정보를 포함하는 정보인 것을 특징으로 하는 수동형 지연 측정 방법.
The method according to claim 1,
Wherein the log information is information including information on a logging time of a client connected to a server, a processing time of the server in response to a client request, and a size of data transmitted in response to a request of the client. Way.
클라이언트와 네트워크를 통해 연결되어 수동형 지연(latency)을 측정하는 장치에 있어서,
상기 클라이언트의 제1 요청 및 제2 요청에 대한 로그 정보를 기록하는 로그 정보 기록부-서버 사이의 연결이 지속되어 수신되는 것임-;
상기 제1 요청에 대한 데이터 전송 시간을 계산하는 데이터 전송 시간 계산부; 및
상기 클라이언트의 제2 요청에 대한 로그 시간과 상기 클라이언트의 제1 요청에 대한 로그 시간 간격에서 상기 제1 요청에 대한 로그 정보에 포함된 상기 서버의 제1 요청에 대한 서버의 처리 시간과 상기 데이터 전송 시간 계산부에서 계산된 상기 제1 요청에 대한 데이터 전송 시간을 제외한 시간을 지연으로 계산하는 지연 계산부를 포함하는 수동형 지연 측정 장치.
1. An apparatus for measuring passive latency by being connected to a client through a network,
A connection between the log information recording unit and the server for recording log information for the first request and the second request of the client is continuously received;
A data transmission time calculation unit for calculating a data transmission time for the first request; And
Wherein the processing time of the server for the first request of the server included in the log information for the first request in the log time of the second request of the client and the log time interval of the first request of the client, And a delay calculation unit for calculating, as a delay, a time calculated by the time calculation unit, excluding a data transmission time for the first request.
제6항에 있어서,
상기 지연 계산부에서의 상기 지연 계산은 상기 클라이언트 각각의 요청에 대하여 계산되는 지연들에 대하여 평균을 계산하여 수행되는 것을 특징으로 하는 수동형 지연 측정 장치.
The method according to claim 6,
Wherein the delay calculation in the delay calculator is performed by calculating an average over the delays calculated for each request of the client.
삭제delete 제6항에 있어서,
상기 데이터 전송 시간 계산부에서 상기 제1 요청에 대한 데이터 전송 시간을 계산하는 것은, 상기 제1 요청에 대한 로그 정보에 포함되는 상기 제1 요청에 따라 전송한 데이터의 크기 및 상기 클라이언트와 상기 서버의 연결 사이의 대역폭을 이용하여 계산하는 것을 특징으로 하는 수동형 지연 측정 장치.
The method according to claim 6,
Wherein the step of calculating the data transmission time for the first request in the data transmission time calculation unit includes calculating a size of data transmitted according to the first request included in the log information for the first request, Wherein the bandwidth is calculated using a bandwidth between connections.
제6항에 있어서,
상기 로그 정보 기록부에서 기록하는 상기 로그 정보는 상기 클라이언트가 서버에 접속한 로깅 시간, 상기 클라이언트의 요청에 대한 상기 서버의 처리 시간 및 상기 클라이언트의 요청에 대하여 전송한 데이터의 크기에 대한 정보를 포함하는 정보인 것을 특징으로 하는 수동형 지연 측정 장치.
The method according to claim 6,
Wherein the log information recorded in the log information recording unit includes information on a logging time of the client connected to the server, a processing time of the server in response to the request of the client, and a size of data transmitted in response to the request of the client Wherein the information is information.
클라이언트 및 서버를 포함하는 네트워크에서 상기 서버에 의해 수행되는 수동형 지연(latency) 측정 방법을 구현하기 위한 프로그램을 기록한 기록매체에 있어서,
상기 클라이언트의 제1 요청에 대한 로그 정보를 저장하는 단계;
상기 제1 요청에 대한 데이터 전송 시간을 계산하는 단계;
상기 클라이언트의 제2 요청에 대한 로그 정보를 저장하는 단계-상기 제1 요청 및 상기 제2 요청은 상기 클라이언트와 상기 서버 사이의 연결이 지속되어 수신되는 것임-; 및
상기 클라이언트의 제2 요청에 대한 로그 시간과 상기 클라이언트의 제1 요청에 대한 로그 시간 간격에서 상기 제1 요청에 대한 로그 정보에 포함된 상기 서버의 제1 요청에 대한 처리 시간과 상기 제1 요청에 대한 데이터 전송 시간을 제외한 시간을 지연으로 계산하는 단계를 포함하는 수동형 지연 측정 방법을 구현하기 위한 프로그램을 기록한 기록매체.
A recording medium on which a program for implementing a passive latency measurement method performed by the server in a network including a client and a server is recorded,
Storing log information for a first request of the client;
Calculating a data transmission time for the first request;
Storing log information for a second request of the client, wherein the first request and the second request are received while the connection between the client and the server continues; And
The processing time for the first request of the server included in the log information for the first request in the log time for the second request of the client and the log time interval for the first request of the client, And calculating a time, excluding a data transmission time, for each of the plurality of channels, as a delay.
KR1020120126983A 2012-11-09 2012-11-09 Method and apparatus for latency measurement based upon passive measurement KR101405472B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020120126983A KR101405472B1 (en) 2012-11-09 2012-11-09 Method and apparatus for latency measurement based upon passive measurement

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020120126983A KR101405472B1 (en) 2012-11-09 2012-11-09 Method and apparatus for latency measurement based upon passive measurement

Publications (2)

Publication Number Publication Date
KR20140060190A KR20140060190A (en) 2014-05-19
KR101405472B1 true KR101405472B1 (en) 2014-06-27

Family

ID=50889731

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020120126983A KR101405472B1 (en) 2012-11-09 2012-11-09 Method and apparatus for latency measurement based upon passive measurement

Country Status (1)

Country Link
KR (1) KR101405472B1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10107725A (en) * 1996-10-02 1998-04-24 Oki Electric Ind Co Ltd Communication system and communication equipment
US20030233445A1 (en) * 2002-06-14 2003-12-18 Ramot University Authority Applied Determining client latencies over a network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10107725A (en) * 1996-10-02 1998-04-24 Oki Electric Ind Co Ltd Communication system and communication equipment
US20030233445A1 (en) * 2002-06-14 2003-12-18 Ramot University Authority Applied Determining client latencies over a network

Also Published As

Publication number Publication date
KR20140060190A (en) 2014-05-19

Similar Documents

Publication Publication Date Title
RU2439823C2 (en) Using filtration and active probing to assess data transfer channel
US9344347B2 (en) Delay time measuring apparatus, computer readable record medium on which delay time measuring program is recorded, and delay time measuring method
CN1832415B (en) System and method for analysis of communications networks
US7792083B2 (en) Method and apparatus for measuring network data packet delay, jitter and loss
US10021006B2 (en) Triangle loopback
US9961000B2 (en) Estimation of network path segment delays
JP6039797B2 (en) Method and node for improved estimation of available path capacity of a data transfer path
US20160330097A1 (en) Method for detecting detoured connection via anonymous network using changes in round trip times
CN110650067A (en) Broadband network performance test evaluation method and system
CN111327478A (en) Network measurement method and device, equipment and storage medium
US20120072544A1 (en) Estimating application performance in a networked environment
US9509581B2 (en) Methods for monitoring data traffic in a gateway device
KR20200116504A (en) Data processing methods, servers and data collection devices
JP2011130000A (en) Monitoring measurement device, method, and program for communication quality data
CN104618922B (en) Measurement result matching process and device in a kind of RTT measurement and positionings system
US9588544B2 (en) Time synchronization across computers in a distributed system
JP2017142238A (en) Test and measurement device and method of selecting specific link training information
KR101405472B1 (en) Method and apparatus for latency measurement based upon passive measurement
US10680756B2 (en) Packet classification apparatus, packet classification method and storage medium
US20180270142A1 (en) Analysis of network performance
US20160143082A1 (en) Method for detecting a message from a group of packets transmitted in a connection
US9030931B2 (en) Latency analysis of traffic passing through an ethernet switch
JP2011124750A (en) Flow communication quality estimating method, device, and program
JP4331702B2 (en) One-way transfer delay time estimation apparatus, method, and program
JP5537692B1 (en) Quality degradation cause estimation device, quality degradation cause estimation method, quality degradation cause estimation program

Legal Events

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

Payment date: 20180521

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20190522

Year of fee payment: 6