KR101428989B1 - Apparatus and method for analyzing traffic - Google Patents

Apparatus and method for analyzing traffic Download PDF

Info

Publication number
KR101428989B1
KR101428989B1 KR1020130052154A KR20130052154A KR101428989B1 KR 101428989 B1 KR101428989 B1 KR 101428989B1 KR 1020130052154 A KR1020130052154 A KR 1020130052154A KR 20130052154 A KR20130052154 A KR 20130052154A KR 101428989 B1 KR101428989 B1 KR 101428989B1
Authority
KR
South Korea
Prior art keywords
traffic
order
abnormal
packet
client
Prior art date
Application number
KR1020130052154A
Other languages
Korean (ko)
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 KR1020130052154A priority Critical patent/KR101428989B1/en
Application granted granted Critical
Publication of KR101428989B1 publication Critical patent/KR101428989B1/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/04Processing captured monitoring data, e.g. for logfile generation
    • 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/0823Errors, e.g. transmission errors
    • H04L43/0847Transmission error
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2441Traffic characterised by specific attributes, e.g. priority or QoS relying on flow classification, e.g. using integrated services [IntServ]

Abstract

The present invention comprises: a flow storage unit to store traffic flow collected from a network; an abnormal order detection unit to determine the order of the traffic flow stored in the flow storage unit; an abnormal order settlement unit to control the order of the traffic order determined as the abnormal state in the abnormal order detection unit; and a traffic analysis unit to analyze a network traffic using the traffic flow controlled by the order by the abnormal order solution unit. The abnormal order detection unit provides a network traffic analysis apparatus to enable the client to define the traffic transmission direction transmitted to the server as a forward direction, to enable the server to define the traffic transmission direction transmitted to the client as a backward direction, and to determine the abnormal state by considering the traffic transmission direction of the traffic flow as the forward direction or the backward direction for the traffic flow between the client and the server.

Description

트래픽 분석 장치 및 방법{APPARATUS AND METHOD FOR ANALYZING TRAFFIC}[0001] APPARATUS AND METHOD FOR ANALYZING TRAFFIC [0002]

본 발명은 트래픽 분석 장치 및 방법에 관한 것이다.The present invention relates to an apparatus and method for analyzing traffic.

최근 인터넷의 급격한 발전으로 인해 효율적인 네트워크 관리를 위한 네트워크 트래픽 데이터 분석의 중요성이 강조되고 있다. 인터넷 사용자의 증가와 고속 네트워크의 보급으로 인해 네트워크 트래픽이 급증하고 있으며, 트래픽의 종류 또한 다양해지고 있다. 따라서 급증하는 인터넷 트래픽을 효과적으로 관리하기 위해 다양한 트래픽 분석 방법이 개발되고 있다.Recently, the rapid development of the Internet has emphasized the importance of network traffic data analysis for efficient network management. Due to the increase of Internet users and the spread of high-speed networks, network traffic is rapidly increasing, and the kinds of traffic are also diversifying. Therefore, various traffic analysis methods are being developed to effectively manage rapidly increasing Internet traffic.

특히 응용 수준에서의 트래픽 분석은 네트워크의 효율적인 운영과 안정적인 서비스를 제공하기 위한 필수적인 요소이다. 응용 수준에서의 트래픽 분석을 위해서 플로우 통계 정보에 기반한 트래픽 분류 방법들이 제안되고 있다. 통계 정보로는 패킷 전송 순서, 패킷 전송 방향, 패킷 크기 등을 이용한다. In particular, traffic analysis at the application level is essential for efficient operation of the network and stable service. Traffic classification methods based on flow statistics information are proposed for traffic analysis at application level. The statistical information includes the packet transmission order, the packet transmission direction, and the packet size.

하지만 트래픽 수집 지점의 차이로 인해서 트래픽이 통계 정보의 일관성을 잃게 되어 분석 결과를 신뢰할 수 없게 될 수 있다. 특히 트래픽의 중간 지점에서 패킷이 송신지에서의 전송 순서대로 수집되지 않았을 때 이를 그대로 통계 분석에 사용할 경우 잘못된 결과가 산출될 수 있다. However, due to differences in traffic collection points, traffic can lose the consistency of statistical information and result in unreliable analysis. Especially, when the packets are not collected in the order of transmission at the transmission point in the middle of the traffic, it can be wrongly used when they are used for statistical analysis.

따라서 트래픽 분석 결과의 신뢰성을 보장하기 위해서는 트래픽 수집 지점의 차이로 인하여 트래픽이 일관성을 잃게되는 문제를 해결할 필요가 있다.Therefore, in order to guarantee the reliability of the traffic analysis result, it is necessary to solve the problem that the traffic becomes inconsistent due to the difference of the traffic collection points.

이와 관련하여 한국등록특허 10-1228640호("프래그먼트 필터링 방법")에는 라우터에서 수신한 프래그먼트를 재순서화하는 구성이 개시되어 있다.Korean Patent Registration No. 10-1228640 ("Fragment Filtering Method") discloses a configuration for re-ordering fragments received by a router.

또한, 한국공개특허 10-2012-0102722호("데이터 패킷들을 판독 및 순서화하는 복수의 분석 수단을 동작시키는 장치, 어셈블리, 및 방법")에는 수신한 패킷을 순서화하여 출력하는 구성이 개시되어 있다.Korean Patent Laid-Open No. 10-2012-0102722 ("Apparatus, assembly and method for operating a plurality of analyzing means for reading and ordering data packets") discloses an arrangement for outputting received packets in order.

본 발명은 전술한 문제를 해결하기 위한 것으로서, 그 목적은 올바른 패킷 순서를 보장하는 트래픽 분석 장치 및 방법을 제공하는 것이다.SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems, and an object of the present invention is to provide a traffic analysis apparatus and method that guarantee correct packet order.

상기와 같은 목적을 달성하기 위한 본 발명의 제 1 측면에 따른 네트워크 트래픽 분석 장치는 네트워크로부터 수집한 트래픽 플로우를 저장하는 플로우 저장소; 상기 플로우 저장소에 저장되어 있는 트래픽 플로우의 순서가 비정상인지 여부를 판단하는 비정상 순서 탐지부; 상기 비정상 순서 탐지부에 의해 비정상으로 판단된 트래픽 플로우의 순서를 조정하는 비정상 순서 해결부; 및 상기 비정상 순서 해결부에 의해 순서가 조정된 트래픽 플로우를 사용하여 네트워크 트래픽 분석을 수행하는 트래픽 분석부;를 포함하되, 상기 비정상 순서 탐지부는 클라이언트-서버 간 트래픽 플로우에 대해, 상기 클라이언트가 상기 서버로 전송하는 트래픽 전송 방향을 포워드(포워드)로, 상기 서버가 상기 클라이언트로 전송하는 트래픽 전송 방향을 백워드(백워드)로 정의하고, 상기 트래픽 플로우의 트래픽 전송 방향이 포워드인지 백워드인지를 고려하여 비정상 여부를 판단하는 것을 특징으로한다.According to a first aspect of the present invention, there is provided an apparatus for analyzing network traffic, comprising: a flow storage for storing a traffic flow collected from a network; An abnormal sequence detection unit for determining whether an order of traffic flows stored in the flow storage is abnormal; An abnormal sequence resolution unit for adjusting an order of traffic flows determined to be abnormal by the abnormal sequence detection unit; And a traffic analyzer for analyzing the network traffic using the traffic flow whose order has been adjusted by the abnormal sequence resolving unit, wherein the abnormal sequence detecting unit detects, for the client-server traffic flow, (Forward) the traffic transmission direction to be transmitted to the client, and the traffic transmission direction that the server transmits to the client is defined as backward (backward), and whether the traffic transmission direction of the traffic flow is forward or backward is considered And judges whether or not there is an abnormality.

상기와 같은 목적을 달성하기 위한 본 발명의 제 2 측면에 따른 네트워크 트래픽 분석 장치를 사용하는 네트워크 트래픽 분석 방법은 (a) 네트워크로부터 수집한 트래픽 플로우의 순서가 비정상인지 여부를 판단하는 단계; (b) 상기 (a) 단계에 의해 비정상으로 판단된 트래픽 플로우의 순서를 조정하는 단계; 및 (c) 상기 (b) 단계에 의해 순서가 조정된 트래픽 플로우를 사용하여 네트워크 트래픽 분석을 수행하는 단계;를 포함하되, 상기 (a) 단계는 클라이언트-서버 간 트래픽 플로우에 대해, 상기 클라이언트가 상기 서버로 전송하는 트래픽 전송 방향을 포워드(포워드)로, 상기 서버가 상기 클라이언트로 전송하는 트래픽 전송 방향을 백워드(백워드)로 정의하고, 상기 트래픽 플로우의 트래픽 전송 방향이 포워드인지 백워드인지를 고려하여 비정상 여부를 판단하는 것을 특징으로한다.According to a second aspect of the present invention, there is provided a method for analyzing network traffic using an apparatus for analyzing network traffic, comprising the steps of: (a) determining whether an order of a traffic flow collected from a network is abnormal; (b) adjusting an order of traffic flows determined to be abnormal by the step (a); And (c) performing a network traffic analysis using the traffic flow adjusted by the step (b), wherein the step (a) includes the steps of: (Forward) a traffic transmission direction to be transmitted to the server, and a traffic transfer direction in which the server transmits to the client is defined as a backward word (backward), and the traffic transmission direction of the traffic flow is forward or backward And determines whether the abnormality is occurred.

본 발명은 트래픽 분석 장치 및 방법의 신뢰성을 보장하는 효과를 얻는다. The present invention obtains the effect of ensuring the reliability of the traffic analysis apparatus and method.

트래픽 분석을 위해 수집한 패킷의 순서 일관성을 유지함으로써, 통계 정보 기반 트래픽 분류 결과의 신뢰성을 보장 할 수 있다. 특히 본 발명은 트래픽 수집 지점에 따라 트래픽 특징값(feature)이 달라지는 TCP 세션의 이상 동작 중 하나인 비정상 순서(cross-order) 문제를 해결한다. 본 발명은 수집한 트래픽을 송신지에서 전송한 순서, 예를 들어, 클라이언트에서 송수신하는 순서에 따라 재정렬하여 이러한 효과를 얻는다.It is possible to guarantee the reliability of the statistical information based traffic classification result by maintaining the order consistency of the collected packets for traffic analysis. In particular, the present invention solves the cross-order problem, which is one of the abnormal operations of the TCP session in which the traffic feature value is changed according to the traffic collection point. The present invention obtains this effect by rearranging the collected traffic according to the transmission order in the transmission destination, for example, the transmission and reception order from the client.

도 1은 본 발명의 일실시예에 따른 트래픽 분석 장치의 구조를 도시함.
도 2는 종래의 트래픽 분석 방법의 실시예를 도시함.
도 3은 본 발명의 일실시예에 따른 트래픽 분석 방법의 흐름을 도시함.
도 4는 본 발명의 일실시예에 따른 비정상 순서 탐지 방법의 실시예를 도시함.
도 5는 본 발명의 일실시예에 따른 비정상 순서 해결 방법의 실시예를 도시함.
도 6은 본 발명의 일실시예에 따른 비정상 순서 탐지 방법에 의해 정상적으로 판단되는 예를 도시함.
도 7 내지 도 9는 본 발명의 일실시예에 따른 비정상 순서 탐지 방법에 의해 비정상적으로 판단되는 예를 도시함.
FIG. 1 shows a structure of a traffic analysis apparatus according to an embodiment of the present invention.
2 shows an embodiment of a conventional traffic analysis method.
FIG. 3 shows a flow of a traffic analysis method according to an embodiment of the present invention.
FIG. 4 illustrates an embodiment of an abnormal sequence detection method according to an embodiment of the present invention.
Figure 5 illustrates an embodiment of an unordered order solution in accordance with an embodiment of the present invention.
FIG. 6 illustrates an example of normal determination by the abnormal sequence detection method according to an embodiment of the present invention.
FIGS. 7 to 9 show an example in which an abnormal sequence is determined by the abnormal sequence detection method according to an embodiment of the present invention.

아래에서는 첨부한 도면을 참조하여 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자가 용이하게 실시할 수 있도록 본 발명의 실시예를 상세히 설명한다. 그러나 본 발명은 여러 가지 상이한 형태로 구현될 수 있으며 여기에서 설명하는 실시예에 한정되지 않는다. 그리고 도면에서 본 발명을 명확하게 설명하기 위해서 설명과 관계없는 부분은 생략하였으며, 명세서 전체를 통하여 유사한 부분에 대해서는 유사한 도면 부호를 붙였다.Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings, which will be readily apparent to those skilled in the art. The present invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. In order to clearly illustrate the present invention, parts not related to the description are omitted, and similar parts are denoted by like reference characters throughout the specification.

명세서 전체에서, 어떤 부분이 다른 부분과 "연결"되어 있다고 할 때, 이는 "직접적으로 연결"되어 있는 경우뿐 아니라, 그 중간에 다른 소자를 사이에 두고 "전기적으로 연결"되어 있는 경우도 포함한다. 또한 어떤 부분이 어떤 구성요소를 "포함"한다고 할 때, 이는 특별히 반대되는 기재가 없는 한 다른 구성요소를 제외하는 것이 아니라 다른 구성요소를 더 포함할 수 있는 것을 의미한다.Throughout the specification, when a part is referred to as being "connected" to another part, it includes not only "directly connected" but also "electrically connected" with another part in between . Also, when an element is referred to as "comprising ", it means that it can include other elements as well, without departing from the other elements unless specifically stated otherwise.

도 1은 본 발명의 일실시예에 따른 트래픽 분석 장치의 구조를 도시하고 있다.1 illustrates a structure of a traffic analysis apparatus according to an embodiment of the present invention.

본 발명의 일실시예에 따른 트래픽 분석 장치(10)은 트래픽 분석부(100), 비정상 순서 탐지부(200), 비정상 순서 해결부(300), 주메모리(400), 및 플로우 저장소(500)를 포함한다.The traffic analysis apparatus 10 according to an embodiment of the present invention includes a traffic analysis unit 100, an abnormal sequence detection unit 200, an abnormal sequence resolution unit 300, a main memory 400, and a flow storage 500, .

플로우 저장소(500)는 네트워크로부터 수집한 트래픽 플로우를 저장하며, 수집된 트래픽 플로우는 주메모리(400)에 적재되어 분석된다. 이러한 트래픽 분석을 수행하는 것은 트래픽 분석부(100)이다. 그러나 수집된 트래픽 플로우는 송신지에서 전송한 순서에 따라 수집되지 않을 수 있으므로, 트래픽 분석부(100)가 트래픽 분석을 수행하기 전에 먼저 이상 순서 탐지부(200)가 수집된 트래픽 플로우의 순서가 비정상인지 여부를 판단하고, 이상 순서 해결부(300)가 비정상으로 판단된 트래픽 플로우의 순서를 조정한다.The flow store 500 stores traffic flows collected from the network, and the collected traffic flows are loaded into the main memory 400 and analyzed. The traffic analysis unit 100 performs the traffic analysis. However, since the collected traffic flows may not be collected according to the order transmitted from the transmission destination, before the traffic analysis unit 100 performs the traffic analysis, the abnormal flow order detection unit 200 first determines whether the order of the collected traffic flows is abnormal And the abnormal sequence resolving unit 300 adjusts the order of the traffic flows determined to be abnormal.

자세한 내용을 이하 도 2 내지 도 9를 통해 살펴본다.Details will be described below with reference to FIGS. 2 to 9. FIG.

도 2는 종래의 트래픽 분석 방법의 실시예를 도시하고 있다.FIG. 2 shows an embodiment of a conventional traffic analysis method.

트래픽 분석 방법은 네트워크 트래픽을 응용 프로그램별 분류하는 것으로, 이를 위해 다양한 방법들이 제시되어왔다. 이러한 종래 기술들은 크게 3가지로 구분할 수 있는데, 시그니쳐 기반 분석 기법, 트래픽 상관 관계 기반 분석, 및 머신 러닝 기반 분석이다. 시그니쳐 기반 분석 방법에는 통계 시그니쳐 기반 분석 방법이 있으며, 이는 머신 러닝 기반 분석 방법과 결합되어 사용될 수 있다.Traffic analysis methods classify network traffic by application program, and various methods have been suggested for this purpose. These conventional technologies can be broadly divided into three categories: signature-based analysis, traffic correlation-based analysis, and machine learning-based analysis. Signature based analysis methods include statistical signature based analysis methods, which can be used in combination with machine learning based analysis methods.

통계 시그니쳐 기반 트래픽 분석 방법은 TCP 또는 UDP를 전송 프로토콜로 사용하는 네트워크 트래픽 플로우(network traffic flow)를 입력으로 받으며, 플로우 내의 제어 패킷을 제외한 페이로드(payload)가 있는 패킷(packet)만을 분석 대상으로 삼아, 이들의 특징값(feature)을 트래픽 분석에 사용한다.The statistical signature-based traffic analysis method receives input of network traffic flow using TCP or UDP as a transmission protocol, and only packets having a payload excluding control packets in the flow are analyzed. We use these feature values for traffic analysis.

예를 들어, 먼저 플로우의 첫 N개 패킷의 페이로드 크기와 전송 방향, 순서를 이용하여 N차원의 플로우 벡터로 표현한다. 플로우 벡터에서 패킷의 페이로드 크기는 정수로 표현되고, 전송방향은 TCP의 경우 "양"은 클라이언트에서 서버로 향하는 패킷, "음"은 서버에서 클라이언트로 향하는 패킷을 의미할 수 있다. UDP는 클라이언트와 서버의 구분이 명확하지 않기 때문에 발생되는 첫 패킷을 "양"으로 표현하고 뒤에 이어지는 패킷은 첫 패킷을 기준으로 방향이 같으면 "양", 다르면 "음"으로 표현할 수 있다.For example, it is expressed as an N-dimensional flow vector using the payload size, transmission direction, and order of the first N packets of the flow. In the flow vector, the payload size of a packet is represented by an integer. In the case of TCP, "positive" refers to a packet from a client to a server, and "negative" refers to a packet from a server to a client. Since UDP can not distinguish between client and server, the first packet to be generated is represented as "positive", and the succeeding packet can be expressed as "positive" if the direction is the same as the first packet, and "negative" if the direction is different.

플로우 벡터는 V(f)={d1xs1, d2xs2, ..., dnxsn}으로 표현할 수 있다. 이때 f는 플로우, V(f)는 플로우 f의 벡터, di는 플로우 f 내 i 번째 패킷의 전송 방향(양 또는 음), si는 i 번째 패킷의 페이로드 크기를 의미하며, 각 요소의 순서는 플로우 내 패킷의 전송 순서이다.The flow vector can be expressed as V (f) = {d1xs1, d2xs2, ..., dnxsn}. In this case, f is the flow, V (f) is the vector of the flow f, di is the transmission direction (positive or negative) of the i th packet in the flow f, si is the payload size of the i th packet, It is the transmission order of the packets in the flow.

예를 들어 두 종단 호스트 A와 B가 통신을 하는데 A가 먼저 B에게 데이터 크기가 30인 패킷을 두 개 연속으로 보내고 B에서 A로 데이터 크기 40인 패킷을 하나 전송한다면 두 종단호스트를 연결하는 플로우 f 의 벡터 V(f) 는 V(f)= {+30, +30, -40}으로 표현할 수 있다.For example, two end hosts A and B communicate with each other. When A sends two consecutive packets with a data size of 30 to B and one packet with a data size of 40 from B to A, The vector V (f) of f can be expressed as V (f) = {+30, +30, -40}.

통계 시그니쳐 기반 분석 방법은 이렇게 표현된 N차원의 플로우 벡터를 사용하여 추출된 시그니쳐와 비교, 분석한다.The statistical signature based analysis method compares and analyzes the signature extracted using the N-dimensional flow vector expressed in this way.

이렇게 패킷 전송 순서, 패킷 전송 방향, 패킷 크기 등을 특징값으로 이용하는 통계 시그니쳐 기반 분석은 트래픽 수집 지점에 따라 특징값 중 하나인 패킷 순서의 값이 달라지게되는 문제에 의해 결과의 신뢰성을 손상받을 수 있다.The statistical signature based analysis using the packet transmission order, the packet transmission direction, the packet size, and the like as the feature value may suffer the reliability of the result due to the problem that the value of the packet sequence, which is one of the feature values, have.

예를 들어, TCP에서 두 호스트에서 통신 중일 때 한 종점 호스트에서 전송되는 패킷을 기다리지 않고 상대 호스트에서 동시에 패킷을 발생시키는 경우가 있는데 이때 트래픽 수집 지점에 따라 플로우의 통계 정보가 변하게된다. 즉, 통계 정보를 특징값로 사용하는 트래픽 분석 방법론은 수집 지점의 차이로 인해 일정한 특징값를 보장받지 못하며 분석 결과를 신뢰할 수 없다. 이러한 특징값 중 하나인 패킷 순서는 트래픽 수집 지점에 따라 달라지게된다. 이를 본 명세서에서는 비정상 순서(cross-order)라고 정의한다.For example, when two hosts are communicating with each other, TCP does not wait for a packet to be transmitted from one endpoint host but simultaneously generates a packet from the other host. At this time, the statistical information of the flow changes depending on the traffic collection point. That is, a traffic analysis methodology using statistical information as a feature value does not guarantee a certain feature value due to a difference in collection points and can not trust the analysis result. The packet order, one of these feature values, depends on the traffic collection point. This is defined herein as a cross-order.

예를 들면 도면에 도시되어 있는 바와 같이, 두 종단 호스트, 즉, 클라이언트(client)와 서버(server)가 서로 통신할 때, 트래픽 수집 지점인 C1, C2, C3, C4에 따라 패킷의 순서가 달라지고 또한 통계 정보가 달라진다. 예를 들어, 클라이언트가 전송한 두 번째 패킷인 Seq 값이 20이고 Ack 값이 0인 패킷인 경우, 서버, C4, 및 C3에서는 서버가 전송한 첫 번째 패킷인 Seq 값이 0이고 Ack 값이 0인 패킷보다 먼저 수집되나, C2 및 C1에서는 나중에 수집된다.For example, as shown in the figure, when two end hosts, that is, a client and a server communicate with each other, the order of packets differs according to the traffic collection points C1, C2, C3, and C4. And statistical information is different. For example, if the Seq value of the second packet transmitted by the client is 20 and the Ack value is 0, in the server, C4, and C3, the Seq value of the first packet transmitted by the server is 0 and the Ack value is 0 Packets, but are collected later in C2 and C1.

이러한 비정상 순서 문제로 인해 같은 플로우에서 특징값의 값이 달라져 일관성을 잃은 잘못된 분석을 하게되는 문제가 발생한다. 따라서, 본 발명의 일실시예에 따른 트래픽 분석 장치(10) 및 방법은 트래픽 분석 전에 수집한 패킷의 순서를 송신지에서 전송한 순서(예: 클라이언트에서 송수신하는 순서)에 따라 재조정하는 과정을 거친다. This problem of abnormal ordering causes a problem in that the value of feature value is changed in the same flow, resulting in incorrect analysis which is inconsistent. Accordingly, the traffic analysis apparatus 10 and method according to the embodiment of the present invention perform a process of reordering the order of packets collected before the traffic analysis according to the order of transmission (e.g., transmission / reception order from the client) .

즉, 도시된 바와 같이, 트래픽 수집 지점 C1, C2, C3, C4는 동일한 플로우를 서로 다른 순서로 수집한다. 이를 일관성있는 순서로 재조정하여 트래픽 분석 결과의 일관성을 보장하는 것이 본 발명의 목적이다. That is, as shown, the traffic collection points C1, C2, C3, and C4 collect the same flows in different orders. It is an object of the present invention to rebalance the data in a consistent order to ensure consistency of the results of the traffic analysis.

명확한 기준이 없으면 어느 것이 옳은 순서인지 잘못된 순서인지 알 수가 없으므로, 본 명세서는 클라이언트를 기준으로 전송 방향을 정한다. 클라이언트 기준이라는 것은 클라이언트가 패킷을 보내고 받는 순서를 일컫는 것이다. 클라이언트 기준인 이유는 대부분의 트래픽이 클라이언트에서 서버로 요청함에 따라 시작되어 서버에서 이에 응답하는 형식으로 이어지기 때문이다. 즉, 클라이언트의 요청에 따라 트래픽이 변화하기 때문이다. If there is no clear criterion, it can not be determined which is the right order or the wrong order, so the present specification defines the transmission direction based on the client. Client criteria refers to the order in which clients send and receive packets. The reason for the client baseline is that most traffic starts as the client makes a request to the server, leading to a response from the server. That is, the traffic changes according to the client's request.

따라서 본 발명의 일실시예에 따른 트래픽 분석 장치(10)는 트래픽 수집 지점에 상관없이 클라이언트 기준으로 재정렬하며, 본 명세서는 포워드(forward) 패킷은 클라이언트에서 서버로 전송하는 패킷으로, 백워드(backward) 패킷은 서버에서 클라이언트로 전송하는 패킷으로 정의한다.Therefore, the traffic analysis apparatus 10 according to an embodiment of the present invention rearranges on the basis of a client regardless of a traffic collection point. In the present specification, a forward packet is a packet transmitted from a client to a server, ) A packet is defined as a packet transmitted from a server to a client.

또한 각 패킷 간의 교차(cross)를 클라이언트와 서버간의 포워드 패킷과 백워드 패킷의 전송 도중 수집 지점의 시점에 보았을 때 두 패킷이 만나는 것을 나타내는 용어로 사용한다. 즉, 포워드 패킷이든 백워드 패킷 중 어느 것이든 먼저 전송을 시작하였고 그 패킷이 상대 호스트에게 도착 전에 반대방향의 패킷이 전송을 하는 도중 겹치는 현상을 나타낸다. It is also used to refer to the intersection of two packets when the forward and backward packets between client and server are transmitted at the point of collection point. That is, either the forward packet or the backward packet starts to be transmitted first, and the packet in the opposite direction overlaps while transmitting the packet before the packet arrives at the other host.

예를 들어, 앞서 설명한 예에서 클라이언트가 전송한 두 번째 패킷은 포워드 패킷이고, 서버가 전송한 첫번재 패킷은 백워드 패킷으로, C1 및 C2에서 이들을 수집하기 전에 교차되었기 때문에, 이들 트래픽 수집 지점에서는 클라이언트 또는 서버가 전송한 순서와는 다른 순서로 수집된 것이다.For example, in the previous example, the second packet sent by the client is a forward packet, and because the first packet sent by the server was a backward packet and crossed before it was collected at C1 and C2, It is collected in a different order than the order that the client or server transmitted.

도 3은 본 발명의 일실시예에 따른 트래픽 분석 방법의 흐름을 도시하고 있다.FIG. 3 shows a flow of a traffic analysis method according to an embodiment of the present invention.

일련의 트래픽 플로우에 대하여, 마지막 패킷(S800)에 이르기까지, 각 패킷 데이터에 대하여(S100), 패킷 인덱스 n을 1로 추기화한 후(S200), 다음 단계들을 반복한다.For a series of traffic flows, the packet index n is added to 1 (S200) for each packet data (S100) until reaching the last packet (S800), and the following steps are repeated.

먼저, 이상 순서 탐지부(200)는 이상 순서 탐지 단계로 P(n)과 P(n+1)을 비교하여(S300) 이상 순서 여부를 판단한다(S400). 여기서 P(n)은 n 번째 패킷을 나타낸다. 즉, P(n)과 P(n+1)을 비교한다는 것은 일련의 트래픽 플로우의 각 패킷을 다음 패킷과 비교한다는 것이다.First, the anomaly detection unit 200 compares P (n) and P (n + 1) as an abnormal sequence detection step (S300) and determines whether the abnormal order is an order (S400). Where P (n) represents the nth packet. That is, comparing P (n) with P (n + 1) means comparing each packet in a series of traffic flows with the next packet.

다음, 이상 순서인 것으로 판단되면 이상 순서 해결부(300)는 다음의 일련의 단계로 구성되는 이상 순서 해결 단계를 수행한다.Next, if it is determined to be an abnormal sequence, the abnormal sequence correcting unit 300 performs the abnormal sequence correcting step composed of the following series of steps.

n이 1이 될 때까지, 즉, 트래픽이 0부터 시작된다고 가정했을 때 n이 0이 되기 전까지(S700), n을 감소시키면서(S600), P(n)과 P(n+1)의 순서를 서로 바꾼다(S500). 이때 이 과정은 P(n)과 P(n+1)을 비교한 결과(S300) 이상 순서가 아니라고 판단되는 경우에는(S400) 중지된다. (n) is decremented (S600) until n becomes 0 (S700), assuming that the traffic starts from 0, (S500). At this time, if it is determined that the order of the comparison of P (n) and P (n + 1) is not the order (S300), the process is stopped (S400).

자세한 내용은 해당 단계를 좀더 상세히 도시한 도 4 내지 도 5를 통해 설명한다.The details will be described with reference to Figs. 4 to 5 showing the steps in more detail.

도 4는 본 발명의 일실시예에 따른 비정상 순서 탐지 방법의 실시예를 도시하고 있다.FIG. 4 illustrates an embodiment of an abnormal sequence detection method according to an embodiment of the present invention.

먼저, TCP 트래픽에 대해 전처리 과정을 거친다. 즉, 패킷 재전송(retransmission), 패킷 순서 엉킴(out-of-order) 문제가 제거된 TCP 트래픽을 추려낸 후, 그중에서 페이로드가 있는 패킷만을 입력으로 받는다. 즉, 제어 패킷은 트래픽 분석 대상으로 하지 않는다.First, TCP traffic is preprocessed. That is, after detecting the TCP traffic that has removed the packet retransmission and out-of-order problem, only the packet having the payload is received as input. That is, the control packet is not subjected to the traffic analysis.

도시된 알고리즘에서 P(n)은 n 번째 패킷을 가리키며 P(n)(Seq) 및 P(n)(Ack)는 각각 n 번째 패킷의 시퀀스 번호(sequence number) 즉, Seq 값 및 응답 번호(acknowledge number), 즉, Ack 값을 가리킨다. P (n) indicates the nth packet and P (n) (Seq) and P (n) (Ack) are the sequence numbers of the nth packet, number, that is, the Ack value.

P(n)의 Seq 값 및 Ack 값과 P(n+1)의 Seq값 및 Ack 값을 비교하여, 각각 4가지 경우에 따라 정상 순서과 비정상 순서 여부를 판단한다. 본 명세서는 이들을 정상 순서는 n.1 내지 n.4, 비정상 순서는 a.1 내지 a.4로 나타낸다. The Seq value and the Ack value of P (n) are compared with the Seq value and the Ack value of P (n + 1), and the normal sequence and the abnormal sequence are determined according to four cases, respectively. In the present specification, the normal order is n.1 to n.4, and the abnormal order is a.1 to a.4.

각 경우에 대한 자세한 내용은 이하 정상 순서인 경우 및 비정상 순서인 경우를 나타내는 도 6 내지 도 9를 통해 후술한다.The details of each case will be described later with reference to FIGS. 6 to 9, which shows a case of a normal sequence and a case of an abnormal sequence.

도 5는 본 발명의 일실시예에 따른 비정상 순서 해결 방법의 실시예를 도시하고 있다.Figure 5 illustrates an embodiment of an unordered order solution in accordance with an embodiment of the present invention.

도면은 비정상 순서 문제가 탐지되었을 경우 이를 해결하는 알고리즘을 도시하고 있다. 수집된 트래픽을 가지고 탐지 알고리즘에 의해 탐지가되면 해결 알고리즘에 의해 n 번째 패킷과 n+1 번째 패킷의 순서를 바꿔준다. The figure shows an algorithm for resolving an abnormal sequence problem when it is detected. When the collected traffic is detected by the detection algorithm, the order of the nth packet and the (n + 1) th packet is changed by the resolution algorithm.

패킷의 교차가 한번만 일어난 경우에는 n 번째 패킷과 n+1 번째의 두 패킷 간의 패킷 순서만 바꾸면되지만, 패킷의 교차가 연속적일 경우에는, 즉, n+1 번째 패킷이 n 번째, n-1 번째 등 n 번째보다 이전의 패킷들과의 교차가 있다면, n 번째 패킷뿐만 아니라 이전 패킷들과도 패킷 순서 교체를 해주어야 한다. In the case where the intersection of the packet occurs only once, only the order of packets between the nth packet and the (n + 1) th packet is changed. However, when the intersection of the packets is continuous, If there is an intersection with packets earlier than the nth packet, the packet sequence should be changed not only with the nth packet but also with the previous packets.

따라서 n 번째 패킷과 n+1 번째 패킷의 순서가 비정상이라고 탐지된 경우, n 번째와 n+1 번째 패킷의 순서를 교체하고, n 번째 시퀀스가 된 백워드 패킷은 n-1 번째 패킷과 비교하여 비정상이라고 탐지되면 교체하고, n-1 번째 시퀀스가 된 백워드 패킷은 n-2 번째 패킷과 비교하여 비정상이라고 탐지되면 교체하는 방식으로 비정상 순서가 더이상 탐지되지 않을 때까지 역순으로 계속 수행한다. Therefore, when the order of the nth packet and the (n + 1) th packet is detected to be abnormal, the order of the nth and n + 1th packets is replaced, and the backward packet of the nth sequence is compared with the If the abnormal sequence is detected, the backward packet having the n-1th sequence is compared with the (n-2) -th packet, and if the abnormal sequence is detected, the reverse sequence is performed until the abnormal sequence is no longer detected.

비정상 순서가 더이상 탐지되지 않는다면 n+1 번째 패킷으로 돌아가 다시 탐지를 수행하며 비정상 순서가 탐지되면 교체하는 반복적인 방법으로 전체 트래픽의 마지막 플로우까지 수행한다.If the abnormal sequence is no longer detected, it returns to the (n + 1) th packet and performs the detection again. If the abnormal sequence is detected, it is repeated until the last flow of the entire traffic is performed.

도 6은 본 발명의 일실시예에 따른 비정상 순서 탐지 방법에 의해 정상적으로 판단되는 예를 도시하고 있다.FIG. 6 illustrates an example of normal determination by the abnormal sequence detection method according to an embodiment of the present invention.

정상 순서 1인 n.1은 n 번째 패킷과 n+1 번째 패킷이 같은 방향일 때, 정상 순서 2인 n.2는 n 번째 패킷이 포워드 패킷이고 n+1 번째 패킷이 백워드 패킷일 때의 경우이다. When the nth packet and the (n + 1) th packet are in the same direction, the normal sequence 2, n.2, is the forward packet when the nth packet is a forward packet and the n + 1th packet is a backward packet .

n 번째 패킷과 n+1 번째 패킷이 같은 방향인 경우가 정상 순서로 판단되는 것은 당업자에게 쉽게 이해될 것이다. 재전송되거나 순서가 뒤엉킨 TCP 패킷을을 제거하는 전처리 과정을 거쳤기 때문에, 같은 방향으로 연이어 전송된 두 패킷은 수신지 뿐 아니라 중간 지점들에서도 송신지에서 전송한 순서, 즉, 클라이언트에서 송수신하는 순서 그대로 수신된다.It will be easily understood by those skilled in the art that the n-th packet and the (n + 1) -th packet are in the same order. Since the preprocessing process of removing retransmitted or sequenced TCP packets has been performed, the two packets sequentially transmitted in the same direction are transmitted in the order of transmission from the transmission destination in the intermediate points as well as the destination, that is, do.

n 번째 패킷이 포워드 패킷인 경우도 항상 정상 순서이다. 도면에 도시되어 있는 바와 같이, 트래픽 수집 지점이 달라도 클라이언트에서의 기준으로는 모두 동일한 순서로 수집된다. The case where the nth packet is a forward packet is always in the normal order. As shown in the figure, all of the traffic collection points are collected in the same order as the reference at the client, even though they are different.

이는 트래픽 수집 지점에 따라 패킷의 순서가 변화가되기 위해서는 포워드 패킷과 백워드 패킷이 두 패킷 중 하나 이상의 패킷이 반대 방향의 패킷이 도착하기 전보다 먼저 전송을 시작하여 서로 교차되는 것이 원인이며, 기준점으로 정한 클라이언트에서 보내고 받는 순서로 모든 트래픽 수집 지점에서의 패킷 순서를 맞춰주는 것이 본 발명의 목표이기 때문이다.In order to change the order of the packets according to the traffic collection point, the forward packet and the backward packet are caused by one or more of the two packets starting to transmit before the packets in the opposite direction arrive and cross each other. This is because it is the object of the present invention to match the order of packets at all traffic collection points in the order of sending and receiving from the set clients.

포워드 패킷이 n 번째 패킷으로 수집되는 경우, 교차가 일어나려면 백워드 패킷이 포워드 패킷이 도착하기 전에 전송되어 교차가 일어나야 하기 때문에, 포워드 패킷이 n 번째로 수집된다면 항상 정상 순서가 된다. When a forward packet is collected in the nth packet, crossing is always normal if the forward packet is collected nth, since a backward packet must be sent before the forward packet arrives and an intersection must occur.

따라서 정상 순서 1, 2를 제외한 나머지 모든 경우는 P(n) 번째 패킷이 백워드 패킷이고 P(n+1) 번째 패킷이 포워드 패킷일 경우이다.Therefore, in all other cases except the normal sequence 1 and 2, the P (n) -th packet is a backward packet and the P (n + 1) -th packet is a forward packet.

정상 순서 3인 n.3은 n 번째 패킷이 백워드 패킷이지만 포워드 패킷과 백워드 패킷간의 교차가 없어 어느 지점에서 트래픽을 수집하든 패킷 순서에 영향을 미치지 않는 경우이다. In normal sequence 3, n.3 is a case where the nth packet is a backward packet but there is no intersection between the forward packet and the backward packet, and therefore the packet order is not affected regardless of where the traffic is collected.

정상 순서 4인 n.4와 같은 경우에는 n.4가 탐지되기 전 패킷 비교에서 포워드 패킷과 백워드 패킷이 교차하여 비정상 순서가 발생한다. 즉, n.4가 일어나기 전에는 항상 비정상 순서의 하나인 a.1이 먼저 발생한다. 즉, 정상 순서 4는 비정상 순서 1이 일어난 후에 발생되는 정상 순서로서, n 번째 패킷이 백워드 패킷이고 n+1 번째 패킷이 포워드 패킷인 경우이다. 이때 정상 순서 4와 비정상 순서 1은 각 패킷의 seq 값, ack 값의 비교를 통해 정상 순서과 비정상 순서로 판단한다.In the case of n.4 as in normal sequence 4, the forward sequence and the backward sequence are crossed in packet comparison before n.4 is detected. That is, before n.4 occurs, a.1, which is one of the abnormal sequences, always occurs first. That is, the normal sequence 4 is a normal sequence that occurs after the abnormal sequence 1 occurs, where the nth packet is a backward packet and the (n + 1) th packet is a forward packet. In this case, normal sequence 4 and abnormal sequence 1 are determined as normal sequence and abnormal sequence by comparing seq value and ack value of each packet.

이처럼 정상 순서와 비정상 순서는 함께 발생할 수 있으며 트래픽 수집 지점에 따라 클라이언트 기준의 순서와 같을 수 있고 다를 수 있다.In this way, the normal order and the abnormal order can occur together and can be the same or different from the order of the client reference depending on the point of collection of the traffic.

도 7 내지 도 9는 본 발명의 일실시예에 따른 비정상 순서 탐지 방법에 의해 비정상적으로 판단되는 예를 도시하고 있다.FIGS. 7 to 9 illustrate an example in which an abnormal sequence is determined by the abnormal sequence detection method according to an embodiment of the present invention.

도 7은 비정상 순서 1 및 2인 a.1과 a.2를 나타낸다.Fig. 7 shows a.1 and a.2 in abnormal sequence 1 and 2.

비정상 순서 a.1는 전술한 바와 같이, n 번째 패킷이 백워드 패킷이고, n+1 번째 패킷이 포워드 패킷인 경우에서 백워드 패킷과 포워드 패킷이 각각 하나의 패킷이 교차가 일어났을 경우이다. 이 경우, C1과 C2에서 트래픽을 수집하였을 때는 문제가 되지 않지만, C3에서 트래픽 수집을 하였을 경우 클라이언트 기준의 순서와 동일하지 않게 되므로 비정상 순서가 된다. The abnormal sequence a.1 is a case in which one packet of a backward packet and a forward packet cross each other in the case where the nth packet is a backward packet and the (n + 1) th packet is a forward packet. In this case, it is not a problem when the traffic is collected in C1 and C2, but when the traffic is collected in C3, it is not the same as the order of the client reference.

비정상 순서 a.1을 제외한 나머지 비정상 순서의 경우들, 즉, a.2, a.3, a.4는 모두 포워드 패킷 또는 백워드 패킷이 여러 번 교차하였을 때 발생한다.The abnormal sequence cases except for the abnormal sequence a.1, that is, a.2, a.3 and a.4 all occur when the forward packet or the backward packet crosses several times.

비정상 순서 2인 a.2 는 하나의 포워드 패킷이 도착하기 전에 백워드 패킷이 2개 이상의 패킷을 전송하여 교차가 발생하였을 때 일어나는 경우이다. 포워드 패킷이 전송된 후 수신지에 도착하기 전에 첫번째 교차가 일어나는 백워드 패킷 이후에 전송되고 포워드 패킷과 교차가 있는 모든 백워드 패킷에서 a.2는 탐지된다. 즉, a.2은 a.1이 먼저 탐지되고 난 후에 항상 발생할 수 있다.Anomalous sequence 2, a.2, occurs when a backward packet transmits two or more packets before one forward packet arrives, resulting in an intersection. A.2 is detected in every back-word packet that is sent after the back-word packet in which the first crossover occurs and arrives at the intersection of the forward packet after the forward packet is sent. That is, a.2 may always occur after a.1 has been detected first.

도 8은 비정상 순서 3인 a.3을 나타낸다.Figure 8 shows a.3, an abnormal sequence 3.

a.2와 반대로 비정상 순서 3인 a.3은 하나의 백워드 패킷이 도착하기 전에 여러 개의 포워드 패킷이 2개 이상의 패킷을 전송하여 교차가 일어날 경우 탐지된다. 백워드 패킷이 전송되고 도착하기 전에 첫 번째 교차가 일어나는 포워드 패킷 이후에 전송되고 백워드 패킷과 교차가 있는 모든 포워드 패킷에서 a.3은 탐지된다. 즉, a.3 또한 a.1이 먼저 탐지되고 난 후에 항상 발생할 수 있다고 할 수 있다.In contrast to a.2, anomalous sequence 3, a.3, is detected when multiple forward packets transmit two or more packets before one backward packet arrives and crossing occurs. A.3 is detected in all forward packets that are sent after the forward packet where the first crossover takes place before the backward packet is sent and before it arrives and that intersect with the backward packet. That is, a.3 and a.1 may always occur after being detected first.

도 9는 비정상 순서 4인 a.4를 나타낸다.Fig. 9 shows a.4 in the abnormal sequence 4.

비정상 순서 4인 a.4는 포워드 패킷과 백워드 패킷 모두 두 개 이상의 패킷이 교차될 때 탐지되는 경우이다. 즉, a.4는 a.1, a.2, a.3이 모두 발생한 후에 발생할 수 있고 교차된 마지막 포워드 패킷과 백워드 패킷에서 탐지된다.An abnormal sequence 4, a.4, is detected when two or more packets are crossed in both forward and backward packets. That is, a.4 may occur after all of a.1, a.2, and a.3 have occurred and is detected in the last forward and backward packets crossed.

본 발명의 일 실시예는 컴퓨터에 의해 실행되는 프로그램 모듈과 같은 컴퓨터에 의해 실행가능한 명령어를 포함하는 기록 매체의 형태로도 구현될 수 있다. 컴퓨터 판독 가능 매체는 컴퓨터에 의해 액세스될 수 있는 임의의 가용 매체일 수 있고, 휘발성 및 비휘발성 매체, 분리형 및 비분리형 매체를 모두 포함한다. 또한, 컴퓨터 판독가능 매체는 컴퓨터 저장 매체 및 통신 매체를 모두 포함할 수 있다. 컴퓨터 저장 매체는 컴퓨터 판독가능 명령어, 데이터 구조, 프로그램 모듈 또는 기타 데이터와 같은 정보의 저장을 위한 임의의 방법 또는 기술로 구현된 휘발성 및 비휘발성, 분리형 및 비분리형 매체를 모두 포함한다. 통신 매체는 전형적으로 컴퓨터 판독가능 명령어, 데이터 구조, 프로그램 모듈, 또는 반송파와 같은 변조된 데이터 신호의 기타 데이터, 또는 기타 전송 메커니즘을 포함하며, 임의의 정보 전달 매체를 포함한다. One embodiment of the present invention may also be embodied in the form of a recording medium including instructions executable by a computer, such as program modules, being executed by a computer. Computer readable media can be any available media that can be accessed by a computer and includes both volatile and nonvolatile media, removable and non-removable media. In addition, the computer-readable medium may include both computer storage media and communication media. Computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Communication media typically includes any information delivery media, including computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave, or other transport mechanism.

본 발명의 방법 및 시스템은 특정 실시예와 관련하여 설명되었지만, 그것들의 구성 요소 또는 동작의 일부 또는 전부는 범용 하드웨어 아키텍쳐를 갖는 컴퓨터 시스템을 사용하여 구현될 수 있다. 본 발명의 일 실시예의 하나 이상의 구성 요소 또는 동작을 실시하기 위하여 사용될 수 있는 컴퓨터 시스템 아키텍쳐의 일례를 설명하면, 하드웨어 시스템은 프로세서, 캐쉬, 메모리 및 상술한 기능에 관련된 하나 이상의 소프트웨어 어플리케이션 및 드라이버를 포함할 수 있다.While the methods and systems of the present invention have been described in connection with specific embodiments, some or all of those elements or operations may be implemented using a computer system having a general purpose hardware architecture. In describing an example of a computer system architecture that may be used to implement one or more components or operations of an embodiment of the invention, a hardware system includes a processor, a cache, a memory, and one or more software applications and drivers associated with the functions described above can do.

전술한 본 발명의 설명은 예시를 위한 것이며, 본 발명이 속하는 기술분야의 통상의 지식을 가진 자는 본 발명의 기술적 사상이나 필수적인 특징을 변경하지 않고서 다른 구체적인 형태로 쉽게 변형이 가능하다는 것을 이해할 수 있을 것이다. 그러므로 이상에서 기술한 실시예들은 모든 면에서 예시적인 것이며 한정적이 아닌 것으로 이해해야만 한다. 예를 들어, 단일형으로 설명되어 있는 각 구성 요소는 분산되어 실시될 수도 있으며, 마찬가지로 분산된 것으로 설명되어 있는 구성 요소들도 결합된 형태로 실시될 수 있다.It will be understood by those skilled in the art that the foregoing description of the present invention is for illustrative purposes only and that those of ordinary skill in the art can readily understand that various changes and modifications may be made without departing from the spirit or essential characteristics of the present invention. will be. It is therefore to be understood that the above-described embodiments are illustrative in all aspects and not restrictive. For example, each component described as a single entity may be distributed and implemented, and components described as being distributed may also be implemented in a combined form.

본 발명의 범위는 상기 상세한 설명보다는 후술하는 특허청구범위에 의하여 나타내어지며, 특허청구범위의 의미 및 범위 그리고 그 균등 개념으로부터 도출되는 모든 변경 또는 변형된 형태가 본 발명의 범위에 포함되는 것으로 해석되어야 한다.The scope of the present invention is defined by the appended claims rather than the detailed description and all changes or modifications derived from the meaning and scope of the claims and their equivalents are to be construed as being included within the scope of the present invention do.

10: 트래픽 분석 장치
100: 트래픽 분석부
200: 비정상 순서 탐지부
300: 비정상 순서 해결부
10: Traffic analysis device
100: traffic analysis unit
200: abnormal sequence detection unit
300: abnormal sequence resolution unit

Claims (6)

네트워크 트래픽 분석 장치에 있어서,
네트워크로부터 수집한 트래픽 플로우를 저장하는 플로우 저장소;
상기 플로우 저장소에 저장되어 있는 트래픽 플로우의 순서가 비정상인지 여부를 판단하는 이상 순서 탐지부;
상기 이상 순서 탐지부에 의해 비정상으로 판단된 트래픽 플로우의 순서를 조정하는 이상 순서 해결부; 및
상기 이상 순서 해결부에 의해 순서가 조정된 트래픽 플로우를 사용하여 네트워크 트래픽 분석을 수행하는 트래픽 분석부;를 포함하되,
상기 이상 순서 탐지부는
클라이언트-서버 간 트래픽 플로우에 대해, 상기 클라이언트가 상기 서버로 전송하는 트래픽 전송 방향을 포워드(forward)로, 상기 서버가 상기 클라이언트로 전송하는 트래픽 전송 방향을 백워드(backward)로 정의하고,
상기 트래픽 플로우의 트래픽 전송 방향이 포워드인지 백워드인지 여부, 및 상기 수집한 트래픽 플로우의 순서가 상기 수집한 트래픽 플로우의 클라이언트에서 송수신하는 순서와 일치하는지 여부에 따라 비정상 여부를 판단하며,
상기 이상 순서 해결부는 상기 비정상으로 판단된 트래픽 플로우의 순서를 상기 수집한 트래픽 플로우의 클라이언트에서 송수신하는 순서와 일치시키는 것인 네트워크 트래픽 분석 장치.
A network traffic analyzing apparatus comprising:
A flow store for storing traffic flows collected from the network;
An abnormal sequence detection unit for determining whether an order of traffic flows stored in the flow storage is abnormal;
An abnormal sequence resolution unit for adjusting the sequence of traffic flows determined to be abnormal by the abnormal sequence detection unit; And
And a traffic analyzing unit for analyzing network traffic using the traffic flow whose order has been adjusted by the abnormal procedure resolving unit,
The abnormal sequence detection unit
The traffic forwarding direction transmitted by the client to the server is defined as forward and the traffic forwarding direction transmitted by the server to the client is defined as backward for the client-server traffic flow,
Whether or not the traffic flow direction of the traffic flow is forward or backward, and whether or not the order of the collected traffic flows coincides with the order of transmission and reception by the clients of the collected traffic flows,
Wherein the abnormal sequence resolving unit matches the order of the traffic flows determined to be abnormal with the order of transmission and reception of the collected traffic flows by the client.
제 1 항에 있어서,
상기 이상 순서 탐지부는
페이로드를 포함하고 있는 TCP 패킷에 대해, 상기 TCP 패킷이 포함하는 Seq 및 Ack 정보를 사용하여 비정상 여부를 판단하는 네트워크 트래픽 분석 장치.
The method according to claim 1,
The abnormal sequence detection unit
And determining whether the TCP packet including the payload is abnormal by using Seq and Ack information included in the TCP packet.
삭제delete 네트워크 트래픽 분석 장치를 사용하는 네트워크 트래픽 분석 방법에 있어서,
(a) 네트워크로부터 수집한 트래픽 플로우의 순서가 비정상인지 여부를 판단하는 단계;
(b) 상기 (a) 단계에 의해 비정상으로 판단된 트래픽 플로우의 순서를 조정하는 단계; 및
(c) 상기 (b) 단계에 의해 순서가 조정된 트래픽 플로우를 사용하여 네트워크 트래픽 분석을 수행하는 단계;를 포함하되,
상기 (a) 단계는
클라이언트-서버 간 트래픽 플로우에 대해, 상기 클라이언트가 상기 서버로 전송하는 트래픽 전송 방향을 포워드(forward)로, 상기 서버가 상기 클라이언트로 전송하는 트래픽 전송 방향을 백워드(backward)로 정의하는 단계; 및
상기 트래픽 플로우의 트래픽 전송 방향이 포워드인지 백워드인지 여부, 및 상기 수집한 트래픽 플로우의 순서가 상기 수집한 트래픽 플로우의 클라이언트에서 송수신하는 순서와 일치하는지 여부에 따라 비정상 여부를 판단하는 단계를 포함하며,
상기 (b) 단계는 상기 비정상으로 판단된 트래픽 플로우의 순서를 상기 수집한 트래픽 플로우의 클라이언트에서 송수신하는 순서와 일치시키는 단계를 포함하는 네트워크 트래픽 분석 방법.
A network traffic analyzing method using a network traffic analyzing apparatus,
(a) determining whether the order of the traffic flows collected from the network is abnormal;
(b) adjusting an order of traffic flows determined to be abnormal by the step (a); And
(c) performing a network traffic analysis using the traffic flow adjusted by the step (b)
The step (a)
Defining, as forward, a traffic transmission direction that the client transmits to the server, and a traffic transmission direction that the server transmits to the client, as backward for the client-server traffic flow; And
Determining whether the traffic flow direction of the traffic flow is forward or backward and whether or not the order of the collected traffic flows matches the order of transmission and reception by the client of the collected traffic flow; ,
Wherein the step (b) includes matching the order of the traffic flows determined to be abnormal with the order of transmission and reception of the collected traffic flows by the clients.
제 4 항에 있어서,
상기 (a) 단계는
페이로드를 포함하고 있는 TCP 패킷에 대해, 상기 TCP 패킷이 포함하는 Seq 및 Ack 정보를 사용하여 비정상 여부를 판단하는 네트워크 트래픽 분석 방법.
5. The method of claim 4,
The step (a)
And determining whether the TCP packet including the payload is abnormal by using Seq and Ack information included in the TCP packet.
삭제delete
KR1020130052154A 2013-05-08 2013-05-08 Apparatus and method for analyzing traffic KR101428989B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020130052154A KR101428989B1 (en) 2013-05-08 2013-05-08 Apparatus and method for analyzing traffic

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020130052154A KR101428989B1 (en) 2013-05-08 2013-05-08 Apparatus and method for analyzing traffic

Publications (1)

Publication Number Publication Date
KR101428989B1 true KR101428989B1 (en) 2014-08-14

Family

ID=51750134

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020130052154A KR101428989B1 (en) 2013-05-08 2013-05-08 Apparatus and method for analyzing traffic

Country Status (1)

Country Link
KR (1) KR101428989B1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020041002A (en) * 2000-11-25 2002-05-31 구자홍 Method of Checking Event Sequence Check and Synchronizing Data Base in Network Management System
JP2005073248A (en) * 2003-08-22 2005-03-17 Fujitsu Ltd Detection of incorrect network structure

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020041002A (en) * 2000-11-25 2002-05-31 구자홍 Method of Checking Event Sequence Check and Synchronizing Data Base in Network Management System
JP2005073248A (en) * 2003-08-22 2005-03-17 Fujitsu Ltd Detection of incorrect network structure

Similar Documents

Publication Publication Date Title
US9635051B2 (en) Detecting and preventing flooding attacks in a network environment
US9185033B2 (en) Communication path selection
US20110149793A1 (en) Traffic capture apparatus and traffic analysis apparatus, system and method
US7200105B1 (en) Systems and methods for point of ingress traceback of a network attack
US10673581B2 (en) Low latency packet recovery
US9647932B2 (en) Network routing modifications for distribution of data
US20200220952A1 (en) System and method for accelerating iscsi command processing
JP2009296036A (en) P2p communication control system and control method
KR101428989B1 (en) Apparatus and method for analyzing traffic
Zhai et al. Detection of TCP covert channel based on Markov model
JP7000808B2 (en) Information processing equipment, information processing methods and programs
US11528344B2 (en) Elimination of latency in a communication channel
JP4112590B2 (en) Method and system for estimating different number N key
JP2019144961A (en) Fiber channel communication system, switching apparatus, terminal apparatus, fiber channel communication method, and program
JP2004229092A (en) Server computer protecting device, and method and program for analyzing data request of the device

Legal Events

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

Payment date: 20170707

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20180801

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20190717

Year of fee payment: 6