JP2017212617A - Network device, queue control method, and computer system - Google Patents

Network device, queue control method, and computer system Download PDF

Info

Publication number
JP2017212617A
JP2017212617A JP2016104842A JP2016104842A JP2017212617A JP 2017212617 A JP2017212617 A JP 2017212617A JP 2016104842 A JP2016104842 A JP 2016104842A JP 2016104842 A JP2016104842 A JP 2016104842A JP 2017212617 A JP2017212617 A JP 2017212617A
Authority
JP
Japan
Prior art keywords
packet
stored
queue
similarity
management module
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
JP2016104842A
Other languages
Japanese (ja)
Inventor
ドゥック ズイ グェン
Duc Duy Nguyen
ドゥック ズイ グェン
勇一 濱中
Yuichi Hamanaka
勇一 濱中
尚 江崎
Takashi Ezaki
尚 江崎
義高 吉岡
Yoshitaka Yoshioka
義高 吉岡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2016104842A priority Critical patent/JP2017212617A/en
Publication of JP2017212617A publication Critical patent/JP2017212617A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To previously discard an illegal packet related to a DoS attack and DDoS attack to make it possible to continue a service.SOLUTION: A network device for transferring a packet transmitted/received between devices includes a storage device including a queue for temporarily storing a received packet. The network device includes a queue management module that from storage packets, as packets stored in the queue, selects a storage packet to be discarded and discards the selected storage packet; and holds a comparison packet to be used for selecting the storage packet. The queue management module calculates the degree of similarity between the comparison packet and a storage packet; on the basis of the degree of similarity, selects a storage packet; and discards the selected packet from the queue.SELECTED DRAWING: Figure 2

Description

本発明は、ネットワーク装置のキュー制御に関する。   The present invention relates to queue control of a network device.

DoS(Denial of Service)攻撃及びDDoS(Distributed Denial of Service)攻撃の増加が問題になっている。DoS攻撃及びDDoS攻撃は、サービスを提供するサーバ装置等の標的に対して大量のパケットを送信することによって、サービスを停止させる攻撃である。   An increase in DoS (Denial of Service) attacks and DDoS (Distributed Denial of Service) attacks is a problem. The DoS attack and the DDoS attack are attacks that stop a service by transmitting a large number of packets to a target such as a server device that provides the service.

DoS攻撃及びDDoS攻撃に使用されるパケットは、正常なパケットに偽装しているため、個々のパケットだけでは攻撃を検知するのが困難である。そのため、DoS攻撃及びDDoS攻撃に使用されるパケットを検知し、破棄する技術が求められている。   Since packets used for DoS attacks and DDoS attacks are disguised as normal packets, it is difficult to detect attacks using only individual packets. Therefore, a technique for detecting and discarding packets used for DoS attacks and DDoS attacks is required.

従来技術として、非特許文献1及び非特許文献2に記載された技術が知られている。非特許文献2には、RED(Random Early Detection)技術が記載されている。非特許文献1には、REDを改良したRRED(Robust Random Early Detection)技術が記載されている。   As a conventional technique, techniques described in Non-Patent Document 1 and Non-Patent Document 2 are known. Non-Patent Document 2 describes a RED (Random Early Detection) technique. Non-Patent Document 1 describes an RRED (Robust Random Early Detection) technique in which RED is improved.

RREDは、低レートDoS攻撃(LDoS攻撃)に対処するためのキュー制御方法である。RREDは、パケットの到着間隔に基づいて正常なパケット及び不正パケットを識別し、不正パケットを破棄するフィルタリング手段と、キューの溜まり度合に応じてパケットを破棄するキュー管理手段とを有する。RREDでは、最後に破棄されたパケットと新たに受信したパケットとの間の受信間隔が所定の閾値以下である場合、受信したパケットが不正パケットとして破棄される。   RRED is a queue control method for dealing with a low rate DoS attack (LDoS attack). RRED includes filtering means for discriminating normal packets and illegal packets based on packet arrival intervals, discarding illegal packets, and queue management means for discarding packets according to the degree of queue accumulation. In RRED, when the reception interval between the last discarded packet and the newly received packet is equal to or smaller than a predetermined threshold, the received packet is discarded as an illegal packet.

Zhang, C.; Yin, J.; Cai, Z.; Chen, W. (May 2010). "RRED: Robust RED algorithm to counter low-rate denial-of-service attacks". IEEE Communications Letters 14 (5): 489-491.Zhang, C .; Yin, J .; Cai, Z .; Chen, W. (May 2010). "RRED: Robust RED algorithm to counter low-rate denial-of-service attacks". IEEE Communications Letters 14 (5) : 489-491. Floyd, Sally; Jacobson, Van (1993年8月). “Random Early Detection (RED) gateways for Congestion Avoidance”. IEEE/ACM Transactions on Networking 1 (4): 397-413.Floyd, Sally; Jacobson, Van (August 1993). “Random Early Detection (RED) gateways for Congestion Avoidance”. IEEE / ACM Transactions on Networking 1 (4): 397-413.

非特許文献1の方式は、TCPを用いたDoS攻撃、特にLDoS攻撃に対して効果を発揮する。しかし、UDPを用いたDoS攻撃及びDDoS攻撃等には対応できない。   The method of Non-Patent Document 1 is effective against a DoS attack using TCP, particularly an LDoS attack. However, it cannot cope with DoS attack and DDoS attack using UDP.

本発明は、様々な種類のDoS攻撃及びDDoS攻撃において、不正パケットを高い精度で、かつ、効率的に検知し、検知された不正パケットを破棄する装置、方法、及びシステムを提供することを目的とする。   An object of the present invention is to provide an apparatus, a method, and a system for detecting illegal packets with high accuracy and efficiency in various types of DoS attacks and DDoS attacks and discarding detected illegal packets. And

本願において開示される発明の代表的な一例を示せば以下の通りである。すなわち、装置間で送受信されるパケットを転送するネットワーク装置であって、前記ネットワーク装置は、プロセッサ、前記プロセッサに接続される記憶装置、及び前記プロセッサに接続され、他の装置に接続するためのネットワークインタフェースを有し、前記記憶装置は、受信したパケットを一時的に格納するキューを含み、前記ネットワーク装置は、前記キューに格納されるパケットである格納パケットの中から破棄する格納パケットを選択し、前記選択された格納パケットを破棄するキュー管理モジュールを有し、破棄する前記格納パケットを選択するために使用する比較用パケットを保持し、前記キュー管理モジュールは、前記比較用パケットと前記格納パケットとの間の類似度を算出し、前記類似度に基づいて前記格納パケットを選択し、前記選択された格納パケットを前記キューから破棄することを特徴とする。   A typical example of the invention disclosed in the present application is as follows. That is, a network device for transferring packets transmitted and received between devices, the network device being a processor, a storage device connected to the processor, and a network connected to the processor and connected to another device The storage device includes a queue for temporarily storing received packets, and the network device selects a stored packet to be discarded from among stored packets that are packets stored in the queue; A queue management module for discarding the selected stored packet; and holding a comparison packet used for selecting the stored packet to be discarded, wherein the queue management module includes the comparison packet, the stored packet, Between the stored packets based on the similarity. Select, characterized by discarding a packet storing said selected from the queue.

本発明の一態様によれば、ネットワーク装置は、類似度に基づいて、キューに格納されるパケットの中から、DoS攻撃及びDDoS攻撃に使用される不正パケットを高い精度で、かつ、効率的に破棄することができる。そのため、DoS攻撃及びDDoS攻撃を防ぐことができる。前述した以外の課題、構成及び効果は、以下の実施例の説明によって明らかにされる。   According to an aspect of the present invention, the network device can efficiently and efficiently perform illegal packets used for the DoS attack and the DDoS attack from the packets stored in the queue based on the similarity. Can be discarded. Therefore, DoS attack and DDoS attack can be prevented. Problems, configurations, and effects other than those described above will become apparent from the following description of embodiments.

実施例1の計算機システムの構成例を示す図である。1 is a diagram illustrating a configuration example of a computer system according to a first embodiment. 実施例1のネットワーク装置のハードウェア構成及びソフトウェア構成の一例を示す図である。2 is a diagram illustrating an example of a hardware configuration and a software configuration of a network device according to the first embodiment. FIG. 実施例1のキュー管理モジュールが実行する処理の概要を説明するフローチャートである。6 is a flowchart illustrating an outline of processing executed by the queue management module according to the first embodiment. 実施例1のキュー管理モジュールが実行する第1パケット処理の一例を説明するフローチャートである。10 is a flowchart illustrating an example of first packet processing executed by the queue management module according to the first embodiment. 実施例1のキュー管理モジュールが実行する第1特徴量算出処理の一例を説明するフローチャートである。10 is a flowchart illustrating an example of a first feature amount calculation process executed by the queue management module according to the first embodiment. 実施例1のキュー管理モジュールが実行する第1類似度算出処理の一例を説明するフローチャートである。10 is a flowchart illustrating an example of a first similarity calculation process executed by the queue management module according to the first embodiment. 実施例1のキュー管理モジュールが実行する第1パケット破棄処理の一例を説明するフローチャートである。6 is a flowchart illustrating an example of a first packet discarding process executed by the queue management module according to the first embodiment. 実施例1のキュー管理モジュールが実行する第2パケット処理の一例を説明するフローチャートである。10 is a flowchart illustrating an example of second packet processing executed by the queue management module according to the first embodiment. 実施例1のキュー管理モジュールが実行する第2特徴量算出処理の一例を説明するフローチャートである。10 is a flowchart illustrating an example of a second feature amount calculation process executed by the queue management module according to the first embodiment. 実施例1のキュー管理モジュールが実行する第2類似度算出処理の一例を説明するフローチャートである。10 is a flowchart illustrating an example of a second similarity calculation process executed by the queue management module according to the first embodiment. 実施例1のキュー管理モジュールが実行する第2パケット破棄処理の一例を説明するフローチャートである。6 is a flowchart illustrating an example of a second packet discarding process executed by the queue management module according to the first embodiment. 実施例1のキュー管理モジュールが実行するフィードバックパケット受信処理の一例を説明するフローチャートである。6 is a flowchart illustrating an example of feedback packet reception processing executed by the queue management module according to the first embodiment.

以下、添付図面を参照して本発明の実施形態を説明する。本実施形態は本発明を実現するための一例にすぎず、本発明の技術的範囲を限定するものではないことに注意すべきである。各図において共通の構成については、同一の参照符号が付されている。   Embodiments of the present invention will be described below with reference to the accompanying drawings. It should be noted that this embodiment is only an example for realizing the present invention, and does not limit the technical scope of the present invention. In each figure, the same reference numerals are given to common configurations.

まず、本発明の概要について説明する。   First, an outline of the present invention will be described.

DoS攻撃及びDDoS攻撃に使用される複数のパケットは類似することが多い。そこで、装置間で送受信されるパケットを転送するネットワーク装置は、パケット間の類似度に基づいて、転送前のパケットを格納するキューから不正パケットを破棄する。   The packets used for DoS attacks and DDoS attacks are often similar. Therefore, a network device that transfers packets transmitted and received between devices discards illegal packets from a queue that stores packets before transfer based on the similarity between the packets.

具体的には、ネットワーク装置は、比較用パケットを保持し、キューに格納されるパケットと比較用パケットとの間の類似度を算出する。ネットワーク装置は、算出された類似度に基づいて、キューに格納されるパケットの中から不正パケットと疑われるパケットを選択し、また、選択されたパケットを破棄する。本実施例では、ネットワーク装置が受信したパケット、ネットワーク装置が破棄したパケット、及び他のネットワーク装置が破棄したパケットが、比較用パケットとして用いられる。   Specifically, the network device holds the comparison packet and calculates the similarity between the packet stored in the queue and the comparison packet. Based on the calculated similarity, the network device selects a packet suspected of being an illegal packet from among the packets stored in the queue, and discards the selected packet. In this embodiment, a packet received by the network device, a packet discarded by the network device, and a packet discarded by another network device are used as comparison packets.

これによって、DoS攻撃及びDDoS攻撃を防ぐことができる。本発明のネットワーク装置は事前に学習処理を実行する必要はない。したがって、装置のコスト等を抑えることができる。   Thereby, it is possible to prevent DoS attacks and DDoS attacks. The network device of the present invention does not need to execute learning processing in advance. Therefore, the cost of the apparatus can be suppressed.

また、ネットワーク装置は、ネットワークを構成する複数のネットワーク装置に不正パケットの情報をフィードバックするために、主記憶装置にパケットを保存し、また、破棄されたパケットを他のネットワーク装置に送信する。これによって、システム全体の不正パケットの検知率を向上できる。   Further, the network device stores the packet in the main storage device and feeds the discarded packet to the other network device in order to feed back the illegal packet information to a plurality of network devices constituting the network. As a result, the detection rate of illegal packets in the entire system can be improved.

図1は、実施例1の計算機システムの構成例を示す図である。   FIG. 1 is a diagram illustrating a configuration example of a computer system according to the first embodiment.

計算機システムは、端末101、サーバ装置102、及びネットワーク105を構成する複数のネットワーク装置110から構成される。端末101及びサーバ装置102は、ネットワーク105を介して互いに通信する。   The computer system includes a terminal 101, a server device 102, and a plurality of network devices 110 that constitute a network 105. The terminal 101 and the server apparatus 102 communicate with each other via the network 105.

サーバ装置102は、所定のサービスを提供する計算機である。端末101は、サーバ装置102が提供するサービスを利用するユーザが使用する計算機である。端末101及びサーバ装置102は、図示しないプロセッサ、主記憶装置、及びネットワークインタフェースを有する。   The server apparatus 102 is a computer that provides a predetermined service. The terminal 101 is a computer used by a user who uses a service provided by the server apparatus 102. The terminal 101 and the server apparatus 102 have a processor, a main storage device, and a network interface (not shown).

ネットワーク装置110は、端末101及びサーバ装置102間で送受信されるデータ(パケット)を転送する。本実施例のネットワーク装置110は、パケットを受信した場合、比較用パケットと入出力キュー220(図2参照)に格納されるパケットとの間の類似度に基づいて、入出力キュー220に格納されるパケットを破棄する。   The network device 110 transfers data (packets) transmitted and received between the terminal 101 and the server device 102. When receiving a packet, the network device 110 according to the present embodiment stores the packet in the input / output queue 220 based on the similarity between the comparison packet and the packet stored in the input / output queue 220 (see FIG. 2). Discard the packet.

図2は、実施例1のネットワーク装置110のハードウェア構成及びソフトウェア構成の一例を示す図である。   FIG. 2 is a diagram illustrating an example of a hardware configuration and a software configuration of the network device 110 according to the first embodiment.

ネットワーク装置110は、ハードウェア構成として、プロセッサ200、主記憶装置201、及びネットワークインタフェース202を有する。各構成は、内部バス等を介して互いに接続される。なお、ネットワーク装置110は、HDD(Hard Disk Drive)及びSSD(Solid State Drive)等の副記憶装置、並びに入出力装置を有してもよい。入出力装置は、キーボード、マウス、ディスプレイ、及びタッチパネルを含む。   The network device 110 includes a processor 200, a main storage device 201, and a network interface 202 as hardware configurations. Each component is connected to each other via an internal bus or the like. The network device 110 may include a secondary storage device such as an HDD (Hard Disk Drive) and an SSD (Solid State Drive), and an input / output device. The input / output device includes a keyboard, a mouse, a display, and a touch panel.

プロセッサ200は、主記憶装置201に格納されるプログラムを実行する。プロセッサ200がプログラムを実行することによってネットワーク装置110の機能が実現される。以下の説明では、モジュールを主語に説明する場合、プロセッサ200が当該モジュールを実現するプログラムを実行していることを表す。   The processor 200 executes a program stored in the main storage device 201. The function of the network device 110 is realized by the processor 200 executing the program. In the following description, when a module is described as a subject, it indicates that the processor 200 is executing a program that realizes the module.

主記憶装置201は、プログラム及び情報を格納する。また、主記憶装置201は、プログラムが使用するワークエリアを含む。本実施例の主記憶装置201は、制御モジュール210を実現するプログラムを格納する。また、本実施例の主記憶装置201は、入出力キュー220、フィードバックパケット記憶部221、隣接フィードバックパケット記憶部222を含む。   The main storage device 201 stores programs and information. The main storage device 201 includes a work area used by the program. The main storage device 201 of this embodiment stores a program for realizing the control module 210. The main storage device 201 of this embodiment includes an input / output queue 220, a feedback packet storage unit 221, and an adjacent feedback packet storage unit 222.

制御モジュール210は、ネットワーク装置110全体を制御する。例えば、制御モジュール210は、パケットの送信処理及び受信処理を実行する。本実施例の制御モジュール210は、キュー管理モジュール211を含む。   The control module 210 controls the entire network device 110. For example, the control module 210 executes packet transmission processing and reception processing. The control module 210 of this embodiment includes a queue management module 211.

キュー管理モジュール211は、比較用パケットを用いて入出力キュー220に格納されるパケットを破棄する。キュー管理モジュール211が実行する処理の詳細は後述する。   The queue management module 211 discards the packet stored in the input / output queue 220 using the comparison packet. Details of processing executed by the queue management module 211 will be described later.

なお、実施例1では、制御モジュール210はキュー管理モジュール211に含まれているが、制御モジュール210と独立したモジュールであってもよい。   In the first embodiment, the control module 210 is included in the queue management module 211, but may be a module independent of the control module 210.

入出力キュー220は、転送するパケットを格納するバッファである。ネットワーク装置110は、パケットを受信した場合、入出力キュー220にパケットを格納し、入出力キュー220からパケットを読み出し、他の装置に当該パケットを転送する。   The input / output queue 220 is a buffer that stores packets to be transferred. When the network device 110 receives a packet, the network device 110 stores the packet in the input / output queue 220, reads the packet from the input / output queue 220, and transfers the packet to another device.

フィードバックパケット記憶部221は、キュー管理モジュール211によって破棄されたパケットであるフィードバックパケットを格納する記憶領域である。隣接フィードバックパケット記憶部222は、他のネットワーク装置110によって破棄されたパケットである隣接フィードバックパケットを格納する記憶領域である。フィードバックパケット記憶部221及び隣接フィードバックパケット記憶部222に格納されるパケットは比較用パケットして用いられる。   The feedback packet storage unit 221 is a storage area for storing a feedback packet that is a packet discarded by the queue management module 211. The adjacent feedback packet storage unit 222 is a storage area for storing an adjacent feedback packet that is a packet discarded by another network device 110. The packets stored in the feedback packet storage unit 221 and the adjacent feedback packet storage unit 222 are used as comparison packets.

本実施例のフィードバックパケット記憶部221には一つのパケットが格納され、隣接フィードバックパケット記憶部222には複数のパケットが格納されるものとする。また、入出力キュー220、フィードバックパケット記憶部221、隣接フィードバックパケット記憶部222のパケットの入出力の制御には、FIFO方式が適用される。   Assume that one packet is stored in the feedback packet storage unit 221 of this embodiment, and a plurality of packets are stored in the adjacent feedback packet storage unit 222. The FIFO method is applied to control the input / output of packets in the input / output queue 220, the feedback packet storage unit 221, and the adjacent feedback packet storage unit 222.

また、フィードバックパケット記憶部221及び隣接フィードバックパケット記憶部222は、周期的に初期化される。フィードバックパケット記憶部221及び隣接フィードバックパケット記憶部222にパケットが格納されていない場合、後述する第1パケット処理、及び後述する第2パケット処理の一部の処理が省略される。これによって、通常時の通信におけるネットワーク装置110の処理負荷を軽減することができる。   Also, the feedback packet storage unit 221 and the adjacent feedback packet storage unit 222 are periodically initialized. When no packet is stored in the feedback packet storage unit 221 and the adjacent feedback packet storage unit 222, the first packet processing described later and a part of the second packet processing described later are omitted. As a result, the processing load on the network device 110 during normal communication can be reduced.

図3は、実施例1のキュー管理モジュール211が実行する処理の概要を説明するフローチャートである。   FIG. 3 is a flowchart illustrating an outline of processing executed by the queue management module 211 according to the first embodiment.

キュー管理モジュール211は、外部装置からパケットを受信した場合(ステップS300)、処理を開始する。このとき、キュー管理モジュール211は、外部から受信したパケットを比較用パケットとして主記憶装置201に一時的に格納する。以下の説明では、外部から受信したパケットを受信パケットとも記載する。   When the queue management module 211 receives a packet from the external device (step S300), the queue management module 211 starts processing. At this time, the queue management module 211 temporarily stores a packet received from the outside in the main storage device 201 as a comparison packet. In the following description, a packet received from the outside is also referred to as a received packet.

キュー管理モジュール211は、第1パケット処理を実行する(ステップS301)。第1パケット処理では、隣接フィードバックパケットに基づいて、入出力キュー220に格納されるパケットが破棄される。第1パケット処理の詳細は図4を用いて説明する。なお、隣接フィードバックパケットが存在しない場合、キュー管理モジュール211は、第1パケット処理を実行することなくステップS302に進む。   The queue management module 211 executes the first packet process (step S301). In the first packet processing, a packet stored in the input / output queue 220 is discarded based on the adjacent feedback packet. Details of the first packet processing will be described with reference to FIG. If there is no adjacent feedback packet, the queue management module 211 proceeds to step S302 without executing the first packet processing.

次に、キュー管理モジュール211は、入出力キュー220のキュー長が閾値より大きいか否かを判定する(ステップS302)。閾値は予め設定されているものとする。なお、閾値は更新することができる。ここで、キュー長は、入出力キュー220に格納されるパケットの量を示す値であり、入出力キュー220に格納されるパケットの数又は入出力キュー220に格納されるパケットのサイズの合計値等が考えられる。   Next, the queue management module 211 determines whether or not the queue length of the input / output queue 220 is larger than the threshold (step S302). The threshold value is set in advance. Note that the threshold can be updated. Here, the queue length is a value indicating the amount of packets stored in the input / output queue 220, and is the total number of packets stored in the input / output queue 220 or the size of packets stored in the input / output queue 220. Etc. are considered.

入出力キュー220のキュー長が閾値以下であると判定された場合(ステップS302の判定結果がNO)、キュー管理モジュール211は、入出力キュー220に受信パケットを格納する(ステップS303)。その後、キュー管理モジュール211は、処理を終了する。なお、キュー管理モジュール211は、比較用パケットとして主記憶装置201に格納される受信パケットを削除する。   When it is determined that the queue length of the input / output queue 220 is equal to or less than the threshold (NO in step S302), the queue management module 211 stores the received packet in the input / output queue 220 (step S303). Thereafter, the queue management module 211 ends the process. The queue management module 211 deletes the received packet stored in the main storage device 201 as a comparison packet.

入出力キュー220のキュー長が閾値より大きいと判定された場合(ステップS302の判定結果がYES)、キュー管理モジュール211は、第2パケット処理を実行する(ステップS304)。その後、キュー管理モジュール211は、ステップS303に進む。第2パケット処理では、受信パケット及びフィードバックパケットに基づいて、入出力キュー220に格納されるパケットが破棄される。第2パケット処理の詳細は図8を用いて説明する。   If it is determined that the queue length of the input / output queue 220 is greater than the threshold (the determination result in step S302 is YES), the queue management module 211 executes second packet processing (step S304). Thereafter, the queue management module 211 proceeds to step S303. In the second packet processing, a packet stored in the input / output queue 220 is discarded based on the received packet and the feedback packet. Details of the second packet processing will be described with reference to FIG.

以下の説明では、入出力キュー220に格納されるパケットを格納パケットとも記載する。   In the following description, a packet stored in the input / output queue 220 is also referred to as a stored packet.

図3に示すように、キュー管理モジュール211は、隣接フィードバックパケットを用いて格納パケットを破棄し、その後、必要に応じて第2パケット処理を実行する。隣接フィードバックパケットは、他のネットワーク装置110が不正パケットとして破棄したパケットであるため、隣接フィードバックパケットに類似するパケットは、他の比較用パケットに類似するパケットよりも不正パケットである可能性が高い。   As illustrated in FIG. 3, the queue management module 211 discards the stored packet using the adjacent feedback packet, and then executes the second packet processing as necessary. Since the adjacent feedback packet is a packet discarded by another network device 110 as an illegal packet, a packet similar to the adjacent feedback packet is more likely to be an illegal packet than a packet similar to another comparison packet.

不正パケットである可能性が高い順に格納パケットを破棄するために、キュー管理モジュール211は、最初に第1パケット処理を実行し、その後、第2パケット処理をする。これによって、不正パケットを効率的に破棄できる。   In order to discard the stored packets in the descending order of possibility of being an illegal packet, the queue management module 211 first executes the first packet processing and then performs the second packet processing. As a result, illegal packets can be discarded efficiently.

図4は、実施例1のキュー管理モジュール211が実行する第1パケット処理の一例を説明するフローチャートである。   FIG. 4 is a flowchart illustrating an example of first packet processing executed by the queue management module 211 according to the first embodiment.

キュー管理モジュール211は、隣接フィードバックパケット及び格納パケットの特徴量を算出するための第1特徴量算出処理を実行する(ステップS400)。第1特徴量算出処理の詳細は図5を用いて説明する。   The queue management module 211 executes a first feature value calculation process for calculating the feature values of the adjacent feedback packet and the stored packet (step S400). Details of the first feature amount calculation processing will be described with reference to FIG.

次に、キュー管理モジュール211は、隣接フィードバックパケットと格納パケットとの間の類似度を算出するための第1類似度算出処理を実行する(ステップS401)。第1類似度算出処理の詳細は図6を用いて説明する。   Next, the queue management module 211 executes a first similarity calculation process for calculating the similarity between the adjacent feedback packet and the stored packet (step S401). Details of the first similarity calculation processing will be described with reference to FIG.

次に、キュー管理モジュール211は、算出された類似度に基づいて格納パケットを破棄するための第1パケット破棄処理を実行する(ステップS402)。その後、キュー管理モジュール211は、第1パケット処理を終了する。第1パケット破棄処理の詳細は図7を用いて説明する。   Next, the queue management module 211 executes a first packet discarding process for discarding the stored packet based on the calculated similarity (step S402). Thereafter, the queue management module 211 ends the first packet processing. Details of the first packet discarding process will be described with reference to FIG.

図5は、実施例1のキュー管理モジュール211が実行する第1特徴量算出処理の一例を説明するフローチャートである。   FIG. 5 is a flowchart illustrating an example of a first feature amount calculation process executed by the queue management module 211 according to the first embodiment.

キュー管理モジュール211は、変数i及び変数jに「1」を設定することによって、各変数を初期化する(ステップS500)。変数iは入出力キュー220に格納される格納パケットの識別番号を表し、変数jは隣接フィードバックパケット記憶部222に格納される隣接フィードバックパケットの識別番号を表す。   The queue management module 211 initializes each variable by setting “1” to the variable i and the variable j (step S500). The variable i represents the identification number of the stored packet stored in the input / output queue 220, and the variable j represents the identification number of the adjacent feedback packet stored in the adjacent feedback packet storage unit 222.

なお、入出力キュー220に格納される格納パケットの数はN個であり、また、隣接フィードバックパケット記憶部222に格納される隣接フィードバックパケットの数はM個であるものとする。N及びMは1以上の整数である。   It is assumed that the number of stored packets stored in the input / output queue 220 is N, and the number of adjacent feedback packets stored in the adjacent feedback packet storage unit 222 is M. N and M are integers of 1 or more.

次に、キュー管理モジュール211は、格納パケットQ_iの特徴量A_iを算出する(ステップS501)。パケットの特徴量の算出方法は様々考えられる。本実施例では、以下のような算出方法を採用する。なお、本発明は、パケットの特徴量の算出方法に限定されない。   Next, the queue management module 211 calculates the feature amount A_i of the stored packet Q_i (step S501). There are various methods for calculating the feature amount of the packet. In the present embodiment, the following calculation method is adopted. Note that the present invention is not limited to the method for calculating the packet feature value.

キュー管理モジュール211は、パケットをバイナリデータに変更し、バイナリデータに含まれる「1」の出現位置を特定する。キュー管理モジュール211は、特定された出現位置を示す値から構成される集合をパケットの特徴量として算出する。   The queue management module 211 changes the packet to binary data and identifies the appearance position of “1” included in the binary data. The queue management module 211 calculates a set composed of values indicating the specified appearance positions as the feature amount of the packet.

パケットのデータ長は長いため、パケットそのものを用いてパケット間の類似度を算出する場合、計算コストが増大する。そこで、前述のような方法を用いることによって、データ量が小さいパケットの特徴量を用いることによって、類似度を算出するための計算コストを削減する。   Since the data length of the packet is long, the calculation cost increases when the similarity between the packets is calculated using the packet itself. Therefore, by using the method as described above, the calculation cost for calculating the similarity is reduced by using the feature amount of the packet having a small data amount.

例えば、バイナリデータ「00011100010010010000」の場合、「1」の出現位置は、「4」、「5」、「6」、「10」、「13」、及び「16」である。したがって、集合(4,5,6,10,13,16)が当該バイナリデータの特徴量となる。   For example, in the case of binary data “00011100010010010000”, the appearance positions of “1” are “4”, “5”, “6”, “10”, “13”, and “16”. Therefore, the set (4, 5, 6, 10, 13, 16) is the feature value of the binary data.

キュー管理モジュール211は、主記憶装置201に、格納パケットQ_iに対応付けた特徴量A_iを一時的に格納する。   The queue management module 211 temporarily stores the feature amount A_i associated with the stored packet Q_i in the main storage device 201.

次に、キュー管理モジュール211は、変数iに「1」を加算することによって変数iを更新し(ステップS502)、更新された変数iがM以下であるか否かを判定する(ステップS503)。   Next, the queue management module 211 updates the variable i by adding “1” to the variable i (step S502), and determines whether or not the updated variable i is equal to or less than M (step S503). .

更新された変数iがM以下であると判定された場合(ステップS503の判定結果がYES)、キュー管理モジュール211は、ステップS501に戻り、同様の処理を実行する。   When it is determined that the updated variable i is equal to or less than M (the determination result in step S503 is YES), the queue management module 211 returns to step S501 and executes the same processing.

更新された変数iがMより大きいと判定された場合(ステップS503の判定結果がNO)、キュー管理モジュール211は、隣接フィードバックパケットF_jの特徴量B_jを算出する(ステップS504)。パケットの特徴量の算出方法は、ステップS501と同一の方法を用いる。なお、キュー管理モジュール211は、主記憶装置201に、隣接フィードバックパケットF_jに対応付けた特徴量B_jを一時的に格納する。   When it is determined that the updated variable i is larger than M (the determination result in step S503 is NO), the queue management module 211 calculates the feature quantity B_j of the adjacent feedback packet F_j (step S504). The method for calculating the packet feature amount uses the same method as in step S501. The queue management module 211 temporarily stores the feature quantity B_j associated with the adjacent feedback packet F_j in the main storage device 201.

次に、キュー管理モジュール211は、変数jに「1」を加算することによって変数jを更新し(ステップS505)、更新された変数jがN以下であるか否かを判定する(ステップS506)。   Next, the queue management module 211 updates the variable j by adding “1” to the variable j (step S505), and determines whether or not the updated variable j is N or less (step S506). .

更新された変数jがN以下であると判定された場合(ステップS506の判定結果がYES)、キュー管理モジュール211は、ステップS504に戻り、同様の処理を実行する。   If it is determined that the updated variable j is N or less (the determination result in step S506 is YES), the queue management module 211 returns to step S504 and executes the same processing.

更新された変数jがNより大きいと判定された場合(ステップS506の判定結果がNO)、キュー管理モジュール211は、第1特徴量算出処理を終了する。   If it is determined that the updated variable j is greater than N (the determination result in step S506 is NO), the queue management module 211 ends the first feature amount calculation process.

図6は、実施例1のキュー管理モジュール211が実行する第1類似度算出処理の一例を説明するフローチャートである。   FIG. 6 is a flowchart illustrating an example of a first similarity calculation process executed by the queue management module 211 according to the first embodiment.

キュー管理モジュール211は、変数jに「1」を設定することによって、変数jを初期化する(ステップS600)。   The queue management module 211 initializes the variable j by setting “1” to the variable j (step S600).

次に、キュー管理モジュール211は、変数iに「1」を設定することによって、変数iを初期化する(ステップS601)。   Next, the queue management module 211 initializes the variable i by setting “1” to the variable i (step S601).

次に、キュー管理モジュール211は、格納パケットQ_iと隣接フィードバックパケットF_jとの間の類似度X_ijを算出する(ステップS602)。   Next, the queue management module 211 calculates the similarity X_ij between the stored packet Q_i and the adjacent feedback packet F_j (step S602).

特徴量A_i及び特徴量B_jは集合であるため、本実施例では、二つの集合の類似度を示す値であるJaccard係数、Dice係数、又はSimpson係数のいずれかをパケット間の類似度として用いる。   Since the feature amount A_i and the feature amount B_j are a set, in this embodiment, any one of the Jaccard coefficient, the Dice coefficient, and the Simpson coefficient that is a value indicating the similarity between the two sets is used as the similarity between packets.

集合A及び集合BのJaccard係数は式(1)に基づいて算出できる。集合A及び集合BのDice係数は式(2)に基づいて算出できる。集合A及び集合BのSimpson係数は、式(3)に基づいて算出できる。なお、|A|及び|B|等は、集合に含まれる要素の数を示す。前述した各係数は、0から1までの値となる。各係数の値が1に近いほど二つの集合が類似していることを示す。   The Jaccard coefficients of the set A and the set B can be calculated based on the formula (1). The Dice coefficient of the set A and the set B can be calculated based on the formula (2). The Simpson coefficients of the set A and the set B can be calculated based on the formula (3). Note that | A |, | B |, and the like indicate the number of elements included in the set. Each coefficient described above takes a value from 0 to 1. The closer the value of each coefficient is to 1, the more similar the two sets are.

Figure 2017212617
Figure 2017212617

Figure 2017212617
Figure 2017212617

Figure 2017212617
Figure 2017212617

本実施例では、キュー管理モジュール211は、格納パケットQ_iの特徴量A_i及び隣接フィードバックパケットF_jの特徴量B_jを主記憶装置201から読み出し、式(1)、式(2)、及び式(3)のいずれかを用いて類似度を算出する。キュー管理モジュール211は、主記憶装置201に、格納パケットQ_iに対応付けた類似度X_ijを一時的に格納する。   In this embodiment, the queue management module 211 reads the feature value A_i of the stored packet Q_i and the feature value B_j of the adjacent feedback packet F_j from the main storage device 201, and formulas (1), (2), and (3) The similarity is calculated using any one of the above. The queue management module 211 temporarily stores the similarity X_ij associated with the stored packet Q_i in the main storage device 201.

次に、キュー管理モジュール211は、変数iに「1」を加算することによって変数iを更新し(ステップS603)、更新された変数iがM以下であるか否かを判定する(ステップS604)。   Next, the queue management module 211 updates the variable i by adding “1” to the variable i (step S603), and determines whether or not the updated variable i is equal to or less than M (step S604). .

更新された変数iがM以下であると判定された場合(ステップS604の判定結果がYES)、キュー管理モジュール211は、ステップS602に戻り、同様の処理を実行する。ステップS601からステップS604までの処理によって、一つの隣接フィードバックパケットF_jと各格納パケットQ_iとの間の類似度X_ijが算出される。   If it is determined that the updated variable i is equal to or less than M (the determination result in step S604 is YES), the queue management module 211 returns to step S602 and executes the same processing. By the processing from step S601 to step S604, the similarity X_ij between one adjacent feedback packet F_j and each stored packet Q_i is calculated.

更新された変数iがMより大きいと判定された場合(ステップS604の判定結果がNO)、キュー管理モジュール211は、変数jに「1」を加算することによって変数jを更新し(ステップS605)、更新された変数jがN以下であるか否かを判定する(ステップS606)。   When it is determined that the updated variable i is larger than M (the determination result in step S604 is NO), the queue management module 211 updates the variable j by adding “1” to the variable j (step S605). Then, it is determined whether or not the updated variable j is N or less (step S606).

更新された変数jがN以下であると判定された場合(ステップS606の判定結果がYES)、キュー管理モジュール211は、ステップS601に戻り、同様の処理を実行する。   If it is determined that the updated variable j is N or less (the determination result in step S606 is YES), the queue management module 211 returns to step S601 and executes the same processing.

更新された変数jがNより大きいと判定された場合(ステップS606の判定結果がNO)、キュー管理モジュール211は、第1類似度算出処理を終了する。   When it is determined that the updated variable j is greater than N (the determination result in step S606 is NO), the queue management module 211 ends the first similarity calculation process.

図7は、実施例1のキュー管理モジュール211が実行する第1パケット破棄処理の一例を説明するフローチャートである。   FIG. 7 is a flowchart illustrating an example of the first packet discarding process executed by the queue management module 211 according to the first embodiment.

キュー管理モジュール211は、変数iに「1」を設定することによって、変数iを初期化する(ステップS700)。   The queue management module 211 initializes the variable i by setting “1” to the variable i (step S700).

次に、キュー管理モジュール211は、格納パケットQ_iに対応付けられた類似度X_ijの最大値d_iを算出する(ステップS701)。   Next, the queue management module 211 calculates the maximum value d_i of the similarity X_ij associated with the stored packet Q_i (step S701).

具体的には、キュー管理モジュール211は、主記憶装置201から格納パケットQ_iに対応付けられる類似度X_ijを全て読み出し、読み出された類似度X_ijの最大値を算出する。本実施例では、格納パケットQ_iに対して、類似度X_i1から類似度X_iNまでのN個の類似度が対応付けられている。そのため、キュー管理モジュール211は、N個の類似度の中から最大値d_iを算出する。キュー管理モジュール211は、最大値d_iを格納パケットQ_iの代表類似度として用いる。   Specifically, the queue management module 211 reads all the similarities X_ij associated with the stored packet Q_i from the main storage device 201, and calculates the maximum value of the read similarities X_ij. In the present embodiment, N similarities from the similarity X_i1 to the similarity X_iN are associated with the stored packet Q_i. Therefore, the queue management module 211 calculates the maximum value d_i from the N similarities. The queue management module 211 uses the maximum value d_i as the representative similarity of the stored packet Q_i.

次に、キュー管理モジュール211は、最大値d_iが閾値より大きいか否かを判定する(ステップS702)。閾値は予め設定されているものとする。なお、閾値は更新することができる。   Next, the queue management module 211 determines whether or not the maximum value d_i is greater than a threshold value (step S702). The threshold value is set in advance. Note that the threshold can be updated.

最大値d_iが閾値以下であると判定された場合(ステップS702の判定結果がNO)、キュー管理モジュール211は、ステップS704に進む。   When it is determined that the maximum value d_i is equal to or less than the threshold value (NO in step S702), the queue management module 211 proceeds to step S704.

最大値d_iが閾値より大きいと判定された場合(ステップS702の判定結果がYES)、キュー管理モジュール211は、入出力キュー220から格納パケットQ_iを破棄する(ステップS703)。その後、キュー管理モジュール211は、ステップS704に進む。   If it is determined that the maximum value d_i is greater than the threshold (YES in step S702), the queue management module 211 discards the stored packet Q_i from the input / output queue 220 (step S703). Thereafter, the queue management module 211 proceeds to step S704.

実施例1では、格納パケットQ_iが複数の隣接フィードバックパケットF_jのいずれかに類似する場合、キュー管理モジュール211は、当該格納パケットQ_iを破棄する。   In the first embodiment, when the stored packet Q_i is similar to any of the plurality of adjacent feedback packets F_j, the queue management module 211 discards the stored packet Q_i.

ステップS702の判定結果がNOである場合、又は、ステップS703の処理が実行された後、キュー管理モジュール211は、変数iに「1」を加算することによって変数iを更新し(ステップS704)、更新された変数iがM以下であるか否かを判定する(ステップS705)。   If the determination result in step S702 is NO, or after the processing in step S703 is executed, the queue management module 211 updates the variable i by adding “1” to the variable i (step S704). It is determined whether or not the updated variable i is equal to or less than M (step S705).

更新された変数iがM以下であると判定された場合、キュー管理モジュール211は、ステップS701に戻り、同様の処理を実行する。   If it is determined that the updated variable i is equal to or less than M, the queue management module 211 returns to step S701 and executes the same processing.

更新された変数iがMより大きいと判定された場合、キュー管理モジュール211は、一時的に主記憶装置201に格納された各種データを削除した後、第1パケット破棄処理を終了する。   If it is determined that the updated variable i is greater than M, the queue management module 211 temporarily deletes various data stored in the main storage device 201 and then ends the first packet discarding process.

図8は、実施例1のキュー管理モジュール211が実行する第2パケット処理の一例を説明するフローチャートである。   FIG. 8 is a flowchart illustrating an example of second packet processing executed by the queue management module 211 according to the first embodiment.

キュー管理モジュール211は、受信パケット、フィードバックパケット、及び格納パケットの特徴量を算出するための第2特徴量算出処理を実行する(ステップS800)。第2特徴量算出処理の詳細は図9を用いて説明する。   The queue management module 211 executes a second feature value calculation process for calculating the feature values of the received packet, the feedback packet, and the stored packet (step S800). Details of the second feature amount calculation processing will be described with reference to FIG.

次に、キュー管理モジュール211は、受信パケットと格納パケットとの間の類似度、及びフィードバックパケットと格納パケットとの間の類似度を算出するための第2類似度算出処理を実行する(ステップS801)。第2類似度算出処理の詳細は図10を用いて説明する。   Next, the queue management module 211 executes a second similarity calculation process for calculating the similarity between the received packet and the stored packet and the similarity between the feedback packet and the stored packet (step S801). ). Details of the second similarity calculation processing will be described with reference to FIG.

次に、キュー管理モジュール211は、第2パケット破棄処理を実行する(ステップS802)。その後、キュー管理モジュール211は、第2パケット処理を終了する。第2パケット破棄処理の詳細は図11を用いて説明する。   Next, the queue management module 211 executes a second packet discarding process (step S802). Thereafter, the queue management module 211 ends the second packet processing. Details of the second packet discarding process will be described with reference to FIG.

図9は、実施例1のキュー管理モジュール211が実行する第2特徴量算出処理の一例を説明するフローチャートである。   FIG. 9 is a flowchart illustrating an example of the second feature amount calculation process executed by the queue management module 211 according to the first embodiment.

キュー管理モジュール211は、変数iに「1」を設定することによって、変数iを初期化する(ステップS900)。   The queue management module 211 initializes the variable i by setting “1” to the variable i (step S900).

次に、キュー管理モジュール211は、格納パケットQ_iの特徴量A_iを算出する(ステップS901)。ステップS901の処理はステップS501の処理と同一である。   Next, the queue management module 211 calculates the feature amount A_i of the stored packet Q_i (step S901). The process in step S901 is the same as the process in step S501.

次に、キュー管理モジュール211は、変数iに「1」を加算することによって変数iを更新し(ステップS902)、更新された変数iがM以下であるか否かを判定する(ステップS903)。ステップS902及びステップS903の処理は、ステップS502及びステップS503の処理と同一である。   Next, the queue management module 211 updates the variable i by adding “1” to the variable i (step S902), and determines whether or not the updated variable i is equal to or less than M (step S903). . Steps S902 and S903 are the same as steps S502 and S503.

更新された変数iがM以下であると判定された場合(ステップS903の判定結果がYES)、キュー管理モジュール211は、ステップS901に戻り、同様の処理を実行する。   If it is determined that the updated variable i is equal to or less than M (the determination result in step S903 is YES), the queue management module 211 returns to step S901 and executes the same processing.

更新された変数iがMより大きい場合(ステップS903の判定結果がNO)、キュー管理モジュール211は、受信パケットGの特徴量Cを算出し(ステップS904)、また、フィードバックパケットHの特徴量Dを算出する(ステップS905)。その後、キュー管理モジュール211は、第2特徴量算出処理を終了する。   When the updated variable i is larger than M (the determination result of step S903 is NO), the queue management module 211 calculates the feature amount C of the received packet G (step S904), and the feature amount D of the feedback packet H Is calculated (step S905). Thereafter, the queue management module 211 ends the second feature amount calculation process.

各パケットの特徴量の算出方法は、ステップS501で用いた特徴量の算出方法と同一である。なお、フィードバックパケット記憶部221に複数のフィードバックパケットが格納される場合、ステップS900において、キュー管理モジュール211は、フィードバックパケットの数を表す変数を初期化し、各フィードバックパケットについて、ステップS901からステップS903までの処理と同様の処理を実行する。   The feature value calculation method for each packet is the same as the feature value calculation method used in step S501. When a plurality of feedback packets are stored in the feedback packet storage unit 221, in step S900, the queue management module 211 initializes a variable indicating the number of feedback packets, and for each feedback packet, from step S901 to step S903. The same processing as the above processing is executed.

なお、ステップS501の処理結果が主記憶装置201に格納される場合、ステップS900からステップS903までの処理を省略できる。また、フィードバックパケット記憶部221にフィードバックパケットが格納されていない場合、ステップS905の処理を省略できる。   When the processing result of step S501 is stored in the main storage device 201, the processing from step S900 to step S903 can be omitted. Further, when the feedback packet is not stored in the feedback packet storage unit 221, the process of step S905 can be omitted.

図10は、実施例1のキュー管理モジュール211が実行する第2類似度算出処理の一例を説明するフローチャートである。   FIG. 10 is a flowchart illustrating an example of the second similarity calculation process executed by the queue management module 211 according to the first embodiment.

キュー管理モジュール211は、変数iに「1」を設定することによって、変数iを初期化する(ステップS1000)。   The queue management module 211 initializes the variable i by setting “1” to the variable i (step S1000).

次に、キュー管理モジュール211は、格納パケットQ_iと受信パケットGとの間の類似度Y_iを算出し(ステップS1001)、また、格納パケットQ_iとフィードバックパケットHとの間の類似度Z_iを算出する(ステップS1002)。類似度の算出方法は、ステップS602で用いた算出方法と同一である。   Next, the queue management module 211 calculates the similarity Y_i between the stored packet Q_i and the received packet G (step S1001), and calculates the similarity Z_i between the stored packet Q_i and the feedback packet H. (Step S1002). The similarity calculation method is the same as the calculation method used in step S602.

次に、キュー管理モジュール211は、変数iに「1」を加算することによって変数iを更新し(ステップS1003)、更新された変数iがM以下であるか否かを判定する(ステップS1004)。ステップS1003及びステップS1004の処理は、ステップS603及びステップS604の処理と同一である。   Next, the queue management module 211 updates the variable i by adding “1” to the variable i (step S1003), and determines whether or not the updated variable i is equal to or less than M (step S1004). . Steps S1003 and S1004 are the same as steps S603 and S604.

更新された変数iがM以下であると判定された場合(ステップS1004の判定結果がYES)、キュー管理モジュール211は、ステップS1001に戻り、同様の処理を実行する。   If it is determined that the updated variable i is equal to or less than M (YES in step S1004), the queue management module 211 returns to step S1001 and executes the same processing.

更新された変数iがMより大きいと判定された場合(ステップS1004の判定結果がNO)、キュー管理モジュール211は、第2類似度算出処理を終了する。   When it is determined that the updated variable i is greater than M (the determination result in step S1004 is NO), the queue management module 211 ends the second similarity calculation process.

なお、フィードバックパケット記憶部221にフィードバックパケットが格納されていない場合、ステップS1002の処理を省略できる。   If no feedback packet is stored in the feedback packet storage unit 221, the process in step S1002 can be omitted.

図11は、実施例1のキュー管理モジュールが実行する第2パケット破棄処理の一例を説明するフローチャートである。   FIG. 11 is a flowchart illustrating an example of second packet discarding processing executed by the queue management module according to the first embodiment.

キュー管理モジュール211は、類似度Y_iの合計値Sum_Yを算出し(ステップS1100)、また、類似度Z_iの合計値Sum_Zを算出する(ステップS1101)。   The queue management module 211 calculates the total value Sum_Y of the similarity Y_i (Step S1100), and calculates the total value Sum_Z of the similarity Z_i (Step S1101).

次に、キュー管理モジュール211は、合計値Sum_Yが合計値Sum_Z以上であるか否かを判定する(ステップS1102)。   Next, the queue management module 211 determines whether or not the total value Sum_Y is greater than or equal to the total value Sum_Z (step S1102).

類似度の合計値が大きい場合、比較用パケットに類似する格納パケットの数が多いことを示す。そこで、本実施例のキュー管理モジュール211は、合計値が大きい類似度に基づいて、不正パケットを破棄する。これによって、不正パケットである可能性が高い格納パケットを多く破棄できる。   When the total value of the similarities is large, it indicates that the number of stored packets similar to the comparison packet is large. Therefore, the queue management module 211 of the present embodiment discards illegal packets based on the similarity having a large total value. As a result, many stored packets that are likely to be illegal packets can be discarded.

合計値Sum_Yが合計値Sum_Z以上であると判定された場合(ステップS1102の判定結果がYES)、キュー管理モジュール211は、類似度Y_iに基づいて破棄する格納パケットを選択する(ステップS1103)。その後、キュー管理モジュール211は、ステップS1105に進む。   When it is determined that the total value Sum_Y is equal to or greater than the total value Sum_Z (YES in Step S1102), the queue management module 211 selects a stored packet to be discarded based on the similarity Y_i (Step S1103). Thereafter, the queue management module 211 proceeds to step S1105.

具体的には、キュー管理モジュール211は、類似度Y_iが大きい順に所定の数の格納パケットを選択する。   Specifically, the queue management module 211 selects a predetermined number of stored packets in descending order of similarity Y_i.

合計値Sum_Yが合計値Sum_Zより小さいと判定された場合(ステップS1102の判定結果がNO)、キュー管理モジュール211は、類似度Z_iに基づいて破棄する格納パケットを選択する(ステップS1104)。その後、キュー管理モジュール211は、ステップS1105に進む。   When it is determined that the total value Sum_Y is smaller than the total value Sum_Z (NO in Step S1102), the queue management module 211 selects a stored packet to be discarded based on the similarity Z_i (Step S1104). Thereafter, the queue management module 211 proceeds to step S1105.

具体的には、キュー管理モジュール211は、類似度Z_iが大きい順に所定の数の格納パケットを選択する。   Specifically, the queue management module 211 selects a predetermined number of stored packets in descending order of similarity Z_i.

ステップS1103及びステップS1104の処理が実行された後、キュー管理モジュール211は、選択された格納パケットの中から一つの格納パケットを選択し、当該格納パケットをフィードバックパケットとしてフィードバックパケット記憶部221に格納する(ステップS1105)。具体的には、以下のような処理が実行される。   After the processes of step S1103 and step S1104 are executed, the queue management module 211 selects one stored packet from the selected stored packets, and stores the stored packet in the feedback packet storage unit 221 as a feedback packet. (Step S1105). Specifically, the following processing is executed.

キュー管理モジュール211は、破棄する格納パケットを選択する時に用いた類似度の値が最も大きい格納パケットをフィードバックパケットして選択する。   The queue management module 211 selects the stored packet having the highest similarity value used when selecting the stored packet to be discarded as a feedback packet.

類似度Y_iに基づいて破棄する格納パケットが選択された場合、キュー管理モジュール211は、ステップS1103において選択された格納パケットの中で類似度Y_iが最も大きい格納パケットを選択する。類似度Z_iに基づいて破棄する格納パケットが選択された場合、キュー管理モジュール211は、ステップS1104において選択された格納パケットの中で類似度Z_iが最も大きい格納パケットを選択する。   When the stored packet to be discarded is selected based on the similarity Y_i, the queue management module 211 selects the stored packet having the highest similarity Y_i among the storage packets selected in step S1103. When the stored packet to be discarded is selected based on the similarity Z_i, the queue management module 211 selects the stored packet having the highest similarity Z_i among the storage packets selected in step S1104.

フィードバックパケット記憶部221にフィードバックパケットが格納される場合、キュー管理モジュール211は、当該フィードバックパケットを破棄した後に、選択された格納パケットをフィードバックパケット記憶部221に格納する。   When a feedback packet is stored in the feedback packet storage unit 221, the queue management module 211 stores the selected storage packet in the feedback packet storage unit 221 after discarding the feedback packet.

なお、フィードバックパケット記憶部221に複数のフィードバックパケットを格納できる場合、キュー管理モジュール211は、ステップS1004において選択された格納パケットの中から、類似度の大きい順に所定の数の格納パケットを選択する。   When a plurality of feedback packets can be stored in the feedback packet storage unit 221, the queue management module 211 selects a predetermined number of stored packets in descending order of similarity from the stored packets selected in step S1004.

不正パケットである可能性が最も高い格納パケットをフィードバックパケットとして保持することによって、不正パケットの検知率を向上させるとともに、フィードバックパケットを用いた処理負荷を低減できる。以上がステップS1105の処理の説明である。   By holding the stored packet having the highest possibility of being an illegal packet as a feedback packet, the detection rate of the illegal packet can be improved and the processing load using the feedback packet can be reduced. The above is the description of the processing in step S1105.

次に、キュー管理モジュール211は、ステップS1103又はステップS1104において選択された格納パケットを破棄する(ステップS1106)。   Next, the queue management module 211 discards the stored packet selected in step S1103 or step S1104 (step S1106).

次に、キュー管理モジュール211は、ステップS1105において選択された格納パケットを含むパケットの登録要求を、他のネットワーク装置110に送信する(ステップS1107)。その後、キュー管理モジュール211は、一時的に主記憶装置201に格納された各種データを削除した後、第2パケット破棄処理を終了する。   Next, the queue management module 211 transmits a packet registration request including the stored packet selected in step S1105 to the other network device 110 (step S1107). Thereafter, the queue management module 211 temporarily deletes various data stored in the main storage device 201, and then ends the second packet discarding process.

なお、フィードバックパケット記憶部221にフィードバックパケットが格納されていない場合、ステップS1101、ステップS1102、及びステップS1104の処理を省略できる。   Note that if the feedback packet is not stored in the feedback packet storage unit 221, the processes in steps S1101, S1102, and S1104 can be omitted.

なお、図11に示す格納パケットの破棄方法は一例であってこれに限定されない。例えば、キュー管理モジュール211は、類似度Y_i及び類似度Z_iを大きい順にソートし、類似度の値が大きい順に所定の数の格納パケットを選択する。   Note that the storage packet discarding method shown in FIG. 11 is an example, and the present invention is not limited to this. For example, the queue management module 211 sorts the similarity Y_i and the similarity Z_i in descending order, and selects a predetermined number of stored packets in descending order of the similarity value.

このとき、同じ格納パケットが重複して選択される可能性がある。そこで、キュー管理モジュール211は、一つの格納パケットQ_iに対応付けられる類似度Y_i及び類似度Z_iを比較し、大きい方の類似度を当該格納パケットQ_iの類似度として使用する。   At this time, the same stored packet may be selected redundantly. Therefore, the queue management module 211 compares the similarity Y_i and the similarity Z_i associated with one stored packet Q_i, and uses the larger similarity as the similarity of the stored packet Q_i.

図12は、実施例1のキュー管理モジュール211が実行するフィードバックパケット受信処理の一例を説明するフローチャートである。   FIG. 12 is a flowchart illustrating an example of feedback packet reception processing executed by the queue management module 211 according to the first embodiment.

キュー管理モジュール211は、他のネットワーク装置110からパケットの登録要求を受信した場合(ステップS1200)、当該パケットの登録要求に含まれる格納パケットを隣接フィードバックパケットとして隣接フィードバックパケット記憶部222に格納する(ステップS1201)。   When the queue management module 211 receives a packet registration request from another network device 110 (step S1200), the queue management module 211 stores the stored packet included in the packet registration request in the adjacent feedback packet storage unit 222 as an adjacent feedback packet ( Step S1201).

隣接フィードバックパケット記憶部222に空きがない場合、キュー管理モジュール211は、FIFO方式にしたがって、隣接フィードバックパケット記憶部222に格納される隣接フィードバックパケットを一つ破棄し、その後、パケットの登録要求に含まれる格納パケットをフィードバックパケット記憶部221に格納する。   When there is no free space in the adjacent feedback packet storage unit 222, the queue management module 211 discards one adjacent feedback packet stored in the adjacent feedback packet storage unit 222 in accordance with the FIFO method, and then includes it in the packet registration request. The stored packet is stored in the feedback packet storage unit 221.

ここで、ネットワーク装置110の一連の運用について説明する。   Here, a series of operations of the network device 110 will be described.

初期状態のネットワーク装置110は、フィードバックパケット及び隣接フィードバックパケットを保持していない。したがって、ネットワーク装置110は、パケットを受信した場合、受信パケットと格納パケットとの間の類似度を算出する。受信パケットに類似する格納パケットは不正パケットである可能性が高いため、ネットワーク装置110は、類似度に基づいて、入出力キュー220から格納パケットを破棄する。   The network device 110 in the initial state does not hold the feedback packet and the adjacent feedback packet. Therefore, when the network device 110 receives a packet, the network device 110 calculates the similarity between the received packet and the stored packet. Since the stored packet similar to the received packet is likely to be an illegal packet, the network device 110 discards the stored packet from the input / output queue 220 based on the similarity.

ネットワーク装置110は、事前に学習処理を実行していない場合でも、高い精度で不正パケットを検知できる。   The network device 110 can detect an illegal packet with high accuracy even when the learning process is not executed in advance.

ネットワーク装置110は、破棄したパケットをフィードバックパケットとしてフィードバックパケット記憶部221に格納する。ネットワーク装置110は、パケットを受信した場合、受信パケットと格納パケットとの間の類似度、及び、フィードバックパケットと格納パケットとの間の類似度に基づいて、入出力キュー220から格納パケットを破棄する。   The network device 110 stores the discarded packet in the feedback packet storage unit 221 as a feedback packet. When the network device 110 receives the packet, the network device 110 discards the stored packet from the input / output queue 220 based on the similarity between the received packet and the stored packet and the similarity between the feedback packet and the stored packet. .

ネットワーク装置110は、他のネットワーク装置110から隣接フィードバックパケットを含むパケットの登録要求を受信した場合、隣接フィードバックパケット記憶部222に当該隣接フィードバックパケットを格納する。受信パケットに類似する格納パケット、フィードバックパケットに類似する格納パケット、及び隣接フィードバックパケットに類似する格納パケットのうち、隣接フィードバックパケットに類似する格納パケットが最も不正パケットである可能性が高い。   When the network device 110 receives a registration request for a packet including an adjacent feedback packet from another network device 110, the network device 110 stores the adjacent feedback packet in the adjacent feedback packet storage unit 222. Of the stored packet similar to the received packet, the stored packet similar to the feedback packet, and the stored packet similar to the adjacent feedback packet, the stored packet similar to the adjacent feedback packet is most likely the fraudulent packet.

そこで、ネットワーク装置110は、パケットを受信した場合、隣接フィードバックパケットと格納パケットとの間の類似度に基づいて、入出力キュー220から格納パケットを破棄する。その後、ネットワーク装置110は、受信パケットと格納パケットとの間の類似度、及び、フィードバックパケットと格納パケットとの間の類似度に基づいて、入出力キュー220から格納パケットを破棄する。   Therefore, when receiving the packet, the network device 110 discards the stored packet from the input / output queue 220 based on the similarity between the adjacent feedback packet and the stored packet. Thereafter, the network device 110 discards the stored packet from the input / output queue 220 based on the similarity between the received packet and the stored packet and the similarity between the feedback packet and the stored packet.

フィードバックパケット及び隣接フィードバックパケットを用いることによって、システムにおける不正パケットの検知率を向上できる。   By using the feedback packet and the adjacent feedback packet, the detection rate of illegal packets in the system can be improved.

従来技術ではパケットはランダムに破棄されていたが、本実施例のネットワーク装置110はパケットの類似度に基づいてパケットを破棄する。したがって、従来技術より高い精度で、かつ、効率的に不正パケットを破棄できる。   In the prior art, packets are discarded randomly, but the network device 110 of this embodiment discards packets based on the similarity of packets. Therefore, it is possible to discard illegal packets more efficiently and with higher accuracy than in the prior art.

なお、本実施例では、ネットワーク装置110がキュー管理モジュール211を含んでいたがこれに限定されない。例えば、ネットワーク装置110を監視する装置がキュー管理モジュール211を含んでもよい。   In this embodiment, the network device 110 includes the queue management module 211, but the present invention is not limited to this. For example, a device that monitors the network device 110 may include the queue management module 211.

なお、本発明は上記した実施例に限定されるものではなく、様々な変形例が含まれる。また、例えば、上記した実施例は本発明を分かりやすく説明するために構成を詳細に説明したものであり、必ずしも説明した全ての構成を備えるものに限定されるものではない。また、各実施例の構成の一部について、他の構成に追加、削除、置換することが可能である。   In addition, this invention is not limited to an above-described Example, Various modifications are included. Further, for example, the above-described embodiments are described in detail for easy understanding of the present invention, and are not necessarily limited to those provided with all the described configurations. Further, a part of the configuration of each embodiment can be added to, deleted from, or replaced with another configuration.

また、上記の各構成、機能、処理部、処理手段等は、それらの一部又は全部を、例えば集積回路で設計する等によりハードウェアで実現してもよい。また、本発明は、実施例の機能を実現するソフトウェアのプログラムコードによっても実現できる。この場合、プログラムコードを記録した記憶媒体をコンピュータに提供し、そのコンピュータが備えるプロセッサが記憶媒体に格納されたプログラムコードを読み出す。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施例の機能を実現することになり、そのプログラムコード自体、及びそれを記憶した記憶媒体は本発明を構成することになる。このようなプログラムコードを供給するための記憶媒体としては、例えば、フレキシブルディスク、CD−ROM、DVD−ROM、ハードディスク、SSD(Solid State Drive)、光ディスク、光磁気ディスク、CD−R、磁気テープ、不揮発性のメモリカード、ROMなどが用いられる。   Each of the above-described configurations, functions, processing units, processing means, and the like may be realized by hardware by designing a part or all of them with, for example, an integrated circuit. The present invention can also be realized by software program codes that implement the functions of the embodiments. In this case, a storage medium in which the program code is recorded is provided to the computer, and a processor included in the computer reads the program code stored in the storage medium. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the program code itself and the storage medium storing it constitute the present invention. As a storage medium for supplying such a program code, for example, a flexible disk, a CD-ROM, a DVD-ROM, a hard disk, an SSD (Solid State Drive), an optical disk, a magneto-optical disk, a CD-R, a magnetic tape, A non-volatile memory card, ROM, or the like is used.

また、本実施例に記載の機能を実現するプログラムコードは、例えば、アセンブラ、C/C++、perl、Shell、PHP、Java(登録商標)等の広範囲のプログラム又はスクリプト言語で実装できる。   The program code for realizing the functions described in the present embodiment can be implemented by a wide range of programs or script languages such as assembler, C / C ++, perl, Shell, PHP, Java (registered trademark).

さらに、実施例の機能を実現するソフトウェアのプログラムコードを、ネットワークを介して配信することによって、それをコンピュータのハードディスクやメモリ等の記憶手段又はCD−RW、CD−R等の記憶媒体に格納し、コンピュータが備えるプロセッサが当該記憶手段や当該記憶媒体に格納されたプログラムコードを読み出して実行するようにしてもよい。   Furthermore, by distributing the program code of the software that implements the functions of the embodiments via a network, the program code is stored in a storage means such as a hard disk or memory of a computer or a storage medium such as a CD-RW or CD-R. A processor included in the computer may read and execute the program code stored in the storage unit or the storage medium.

上記の実施例において、制御線や情報線は、説明上必要と考えられるものを示しており、製品上必ずしも全ての制御線や情報線を示しているとは限らない。全ての構成が相互に接続されていてもよい。   In the above embodiment, the control lines and information lines indicate what is considered necessary for the explanation, and not all the control lines and information lines on the product are necessarily shown. All the components may be connected to each other.

101 端末
102 サーバ装置
105 ネットワーク
110 ネットワーク装置
200 プロセッサ
201 主記憶装置
202 ネットワークインタフェース
210 制御モジュール
211 キュー管理モジュール
220 入出力キュー
221 フィードバックパケット記憶部
222 隣接フィードバックパケット記憶部
101 Terminal 102 Server Device 105 Network 110 Network Device 200 Processor 201 Main Storage Device 202 Network Interface 210 Control Module 211 Queue Management Module 220 Input / Output Queue 221 Feedback Packet Storage Unit 222 Adjacent Feedback Packet Storage Unit

Claims (15)

装置間で送受信されるパケットを転送するネットワーク装置であって、
前記ネットワーク装置は、
プロセッサ、前記プロセッサに接続される記憶装置、及び前記プロセッサに接続され、他の装置に接続するためのネットワークインタフェースを有し、
前記記憶装置は、受信したパケットを一時的に格納するキューを含み、
前記ネットワーク装置は、
前記キューに格納されるパケットである格納パケットの中から破棄する格納パケットを選択し、前記選択された格納パケットを破棄するキュー管理モジュールを有し、
破棄する前記格納パケットを選択するために使用する比較用パケットを保持し、
前記キュー管理モジュールは、
前記比較用パケットと前記格納パケットとの間の類似度を算出し、
前記類似度に基づいて前記格納パケットを選択し、
前記選択された格納パケットを前記キューから破棄することを特徴とするネットワーク装置。
A network device for transferring packets transmitted and received between devices,
The network device is:
A processor, a storage device connected to the processor, and a network interface connected to the processor and connected to another device;
The storage device includes a queue for temporarily storing received packets;
The network device is:
A queue management module that selects a storage packet to be discarded from among the storage packets that are packets stored in the queue, and discards the selected storage packet;
Holding a comparison packet used to select the stored packet to be discarded;
The queue management module
Calculating the similarity between the comparison packet and the stored packet;
Selecting the stored packet based on the similarity,
A network device, wherein the selected stored packet is discarded from the queue.
請求項1に記載のネットワーク装置であって、
前記キュー管理モジュールは、
前記ネットワーク装置が受信したパケットである受信パケットを、前記比較用パケットとして前記記憶装置に格納する処理と、
前記受信パケットと前記格納パケットとの間の類似度である第1類似度を算出する処理と、
前記第1類似度に基づいて、前記受信パケットに類似する所定の数の前記格納パケットを選択する処理と、
前記選択された前記キューから格納パケットを破棄する処理と、を含む第1パケット処理を実行することを特徴とするネットワーク装置。
The network device according to claim 1,
The queue management module
A process of storing a received packet, which is a packet received by the network device, in the storage device as the comparison packet;
A process of calculating a first similarity that is a similarity between the received packet and the stored packet;
A process of selecting a predetermined number of the stored packets similar to the received packet based on the first similarity;
And a first packet process including a process of discarding a stored packet from the selected queue.
請求項2に記載のネットワーク装置であって、
前記記憶装置は、前記比較用パケットである第1フィードバックパケットを格納する第1記憶部を含み、
前記キュー管理モジュールは、
前記第1記憶部に前記第1フィードバックパケットが格納されていない場合、前記第1パケット処理を実行し、
前記第1記憶部に前記第1フィードバックパケットが格納されている場合、当該第1フィードバックパケットと前記格納パケットとの間の類似度である第2類似度を算出する処理と、
前記第1類似度及び第2類似度に基づいて、前記受信パケット又は前記第1フィードバックパケットに類似する所定の数の前記格納パケットを選択する処理と、
前記選択された所定の数の格納パケットの中から少なくとも一つの前記格納パケットを前記第1フィードバックパケットとして選択する処理と、
前記第1フィードバックパケットを前記第1記憶部に格納する処理と、
前記選択された格納パケットを前記キューから破棄する処理と、を含む第2パケット処理を実行することを特徴とするネットワーク装置。
The network device according to claim 2, wherein
The storage device includes a first storage unit that stores a first feedback packet that is the comparison packet;
The queue management module
If the first feedback packet is not stored in the first storage unit, the first packet processing is executed,
When the first feedback packet is stored in the first storage unit, a process of calculating a second similarity that is a similarity between the first feedback packet and the stored packet;
A process of selecting a predetermined number of stored packets similar to the received packet or the first feedback packet based on the first similarity and the second similarity;
Selecting at least one of the stored packets from the selected predetermined number of stored packets as the first feedback packet;
A process of storing the first feedback packet in the first storage unit;
And a second packet process including a process of discarding the selected stored packet from the queue.
請求項3に記載のネットワーク装置であって、
前記記憶装置は、前記比較用パケットである第2フィードバックパケットを格納する第2記憶部を含み、
前記キュー管理モジュールは、
他のネットワーク装置によって破棄された格納パケットを含むパケットの登録要求を受信した場合、前記第2記憶部に、前記第2フィードバックパケットとして前記パケットの登録要求に含まれる格納パケットを格納し、
前記第2記憶部に前記第2フィードバックパケットが格納されている場合、当該第2フィードバックパケットと前記格納パケットとの間の類似度である第3類似度を算出する処理と、
所定の閾値より大きい前記第3類似度に対応する前記格納パケットを選択する処理と、
前記選択された格納パケットを前記キューから破棄する処理と、を含む第3パケット処理を実行することを特徴とするネットワーク装置。
The network device according to claim 3, wherein
The storage device includes a second storage unit that stores a second feedback packet that is the comparison packet;
The queue management module
When a registration request for a packet including a storage packet discarded by another network device is received, the storage packet included in the registration request for the packet is stored as the second feedback packet in the second storage unit;
When the second feedback packet is stored in the second storage unit, a process of calculating a third similarity that is a similarity between the second feedback packet and the stored packet;
Processing for selecting the stored packet corresponding to the third similarity greater than a predetermined threshold;
And a third packet process including a process of discarding the selected stored packet from the queue.
請求項4に記載のネットワーク装置であって、
前記第2パケット処理において、前記キュー管理モジュールが、前記第1記憶部に格納された前記第1フィードバックパケットを含む前記パケットの登録要求を前記他のネットワーク装置に送信することを特徴とするネットワーク装置。
The network device according to claim 4, wherein
In the second packet processing, the queue management module transmits a registration request for the packet including the first feedback packet stored in the first storage unit to the other network device. .
請求項4に記載のネットワーク装置であって、
前記キュー管理モジュールは、
前記ネットワーク装置が前記受信パケットを受信した場合、前記第3パケット処理を実行し、
前記第3パケット処理が実行された後の前記キューに格納されるパケットの量を示すキュー長が所定の閾値より大きい場合、前記第1パケット処理及び前記第2パケット処理を実行することを特徴とするネットワーク装置。
The network device according to claim 4, wherein
The queue management module
When the network device receives the received packet, the third packet processing is executed,
When the queue length indicating the amount of packets stored in the queue after the third packet processing is executed is larger than a predetermined threshold, the first packet processing and the second packet processing are executed. Network device to perform.
請求項4に記載のネットワーク装置であって、
前記第1記憶部及び前記第2記憶部は、FIFO方式で格納するデータを管理することを特徴とするネットワーク装置。
The network device according to claim 4, wherein
The network device, wherein the first storage unit and the second storage unit manage data stored by a FIFO method.
装置間で送受信されるパケットを転送するネットワーク装置のキュー制御方法であって、
前記ネットワーク装置は、
プロセッサ、前記プロセッサに接続される記憶装置、及び前記プロセッサに接続され、他の装置に接続するためのネットワークインタフェースを有し、
前記記憶装置は、受信したパケットを一時的に格納するキューを含み、
前記ネットワーク装置は、
前記キューに格納されるパケットである格納パケットの中から破棄する格納パケットを選択し、前記選択された格納パケットを破棄するキュー管理モジュールを有し、
破棄する前記格納パケットを選択するために使用する比較用パケットを保持し、
前記キュー制御方法は、
前記キュー管理モジュールが、前記比較用パケットと前記格納パケットとの間の類似度を算出するステップと、
前記類似度に基づいて前記格納パケットを選択するステップと、
前記選択された格納パケットを前記キューから破棄するステップと、を含むことを特徴とするキュー制御方法。
A queue control method for a network device for transferring packets transmitted and received between devices,
The network device is:
A processor, a storage device connected to the processor, and a network interface connected to the processor and connected to another device;
The storage device includes a queue for temporarily storing received packets;
The network device is:
A queue management module that selects a storage packet to be discarded from among the storage packets that are packets stored in the queue, and discards the selected storage packet;
Holding a comparison packet used to select the stored packet to be discarded;
The queue control method includes:
The queue management module calculating a similarity between the comparison packet and the stored packet;
Selecting the stored packet based on the similarity;
Discarding the selected stored packet from the queue.
請求項8に記載のキュー制御方法であって、
前記キュー管理モジュールが、前記キューに格納されるパケットの量を示すキュー長が所定の閾値より大きい場合、前記ネットワーク装置が受信したパケットである受信パケットを、前記比較用パケットとして前記記憶装置に格納するステップと、
前記キュー管理モジュールが、前記受信パケットと前記格納パケットとの間の類似度である第1類似度を算出するステップと、
前記キュー管理モジュールが、前記第1類似度に基づいて、前記受信パケットに類似する所定の数の前記格納パケットを選択するステップと、
前記キュー管理モジュールが、前記選択された格納パケットを前記キューから破棄するステップと、を含むことを特徴とするキュー制御方法。
The queue control method according to claim 8, wherein
When the queue length indicating the amount of packets stored in the queue is greater than a predetermined threshold, the queue management module stores a received packet, which is a packet received by the network device, as the comparison packet in the storage device. And steps to
The queue management module calculating a first similarity that is a similarity between the received packet and the stored packet;
The queue management module selecting a predetermined number of stored packets similar to the received packet based on the first similarity;
The queue management module includes the step of discarding the selected stored packet from the queue.
請求項9に記載のキュー制御方法であって、
前記記憶装置は、前記比較用パケットである第1フィードバックパケットを格納する第1記憶部を含み、
前記キュー制御方法は、
前記キュー長が所定の閾値より大きく、かつ、前記第1記憶部に前記第1フィードバックパケットが格納されている場合、前記キュー管理モジュールが、当該第1フィードバックパケットと前記格納パケットとの間の類似度である第2類似度を算出するステップと、
前記キュー管理モジュールが、前記第1類似度及び第2類似度に基づいて、前記受信パケット又は前記第1フィードバックパケットに類似する所定の数の前記格納パケットを選択するステップと、
前記キュー管理モジュールが、前記選択された所定の数の格納パケットの中から少なくとも一つの前記格納パケットを前記第1フィードバックパケットとして選択するステップと、
前記キュー管理モジュールが、前記第1フィードバックパケットを前記第1記憶部に格納するステップと、
前記キュー管理モジュールが、前記選択された格納パケットを前記キューから破棄するステップと、
前記キュー管理モジュールが、前記第1記憶部に格納された前記第1フィードバックパケットを含むパケットの登録要求を他のネットワーク装置に送信するステップと、を含むことを特徴とするキュー制御方法。
The queue control method according to claim 9, wherein
The storage device includes a first storage unit that stores a first feedback packet that is the comparison packet;
The queue control method includes:
When the queue length is larger than a predetermined threshold value and the first feedback packet is stored in the first storage unit, the queue management module is configured to make similarity between the first feedback packet and the stored packet. Calculating a second similarity that is a degree;
The queue management module selecting a predetermined number of the stored packets similar to the received packet or the first feedback packet based on the first similarity and the second similarity;
The queue management module selecting at least one of the stored packets from the selected predetermined number of stored packets as the first feedback packet;
The queue management module storing the first feedback packet in the first storage unit;
The queue management module discarding the selected stored packet from the queue;
The queue management module includes a step of transmitting a registration request for a packet including the first feedback packet stored in the first storage unit to another network device.
請求項10に記載のキュー制御方法であって、
前記記憶装置は、前記比較用パケットである第2フィードバックパケットを格納する第2記憶部を含み、
前記キュー制御方法は、
前記キュー管理モジュールが、前記パケットの登録要求を受信した場合、前記第2記憶部に、前記第2フィードバックパケットとして前記パケットの登録要求に含まれる格納パケットを格納するステップと、
前記ネットワーク装置が前記受信パケットを受信し、かつ、前記第2記憶部に前記第2フィードバックパケットが格納されている場合、前記キュー管理モジュールが、当該第2フィードバックパケットと前記格納パケットとの間の類似度である第3類似度を算出するステップと、
前記キュー管理モジュールが、所定の閾値より大きい前記第3類似度に対応する前記格納パケットを選択するステップと、
前記キュー管理モジュールが、前記選択された格納パケットを前記キューから破棄するステップと、を含むことを特徴とするキュー制御方法。
The queue control method according to claim 10, wherein
The storage device includes a second storage unit that stores a second feedback packet that is the comparison packet;
The queue control method includes:
When the queue management module receives the packet registration request, the storage module includes a storage packet included in the packet registration request as the second feedback packet in the second storage unit;
When the network device receives the received packet and the second feedback packet is stored in the second storage unit, the queue management module performs an operation between the second feedback packet and the stored packet. Calculating a third similarity which is a similarity;
The queue management module selecting the stored packet corresponding to the third similarity greater than a predetermined threshold;
The queue management module includes the step of discarding the selected stored packet from the queue.
装置間で送受信されるパケットを転送する複数のネットワーク装置を含む計算機システムであって、
前記複数のネットワーク装置の各々は、
プロセッサ、前記プロセッサに接続される記憶装置、及び前記プロセッサに接続され、他の装置に接続するためのネットワークインタフェースを有し、
前記記憶装置は、受信したパケットを一時的に格納するキューを含み、
前記複数のネットワーク装置の各々は、
前記キューに格納されるパケットである格納パケットの中から破棄する格納パケットを選択し、前記選択された格納パケットを破棄するキュー管理モジュールを有し、
破棄する前記格納パケットを選択するために使用する比較用パケットを保持し、
前記キュー管理モジュールは、
前記比較用パケットと前記格納パケットとの間の類似度を算出し、
前記類似度に基づいて前記格納パケットを選択し、
前記選択された格納パケットを前記キューから破棄することを特徴とする計算機システム。
A computer system including a plurality of network devices for transferring packets transmitted and received between devices,
Each of the plurality of network devices is
A processor, a storage device connected to the processor, and a network interface connected to the processor and connected to another device;
The storage device includes a queue for temporarily storing received packets;
Each of the plurality of network devices is
A queue management module that selects a storage packet to be discarded from among the storage packets that are packets stored in the queue, and discards the selected storage packet;
Holding a comparison packet used to select the stored packet to be discarded;
The queue management module
Calculating the similarity between the comparison packet and the stored packet;
Selecting the stored packet based on the similarity,
A computer system, wherein the selected stored packet is discarded from the queue.
請求項12に記載の計算機システムであって、
前記キュー管理モジュールは、
前記キューに格納されるパケットの量を示すキュー長が所定の閾値より大きい場合、前記ネットワーク装置が受信したパケットである受信パケットを、前記比較用パケットとして前記記憶装置に格納し、
前記受信パケットと前記格納パケットとの間の類似度である第1類似度を算出し、
前記第1類似度に基づいて、前記受信パケットに類似する所定の数の前記格納パケットを選択し、
前記キュー管理モジュールが、前記選択された格納パケットを前記キューから破棄することを特徴とする計算機システム。
A computer system according to claim 12, wherein
The queue management module
When the queue length indicating the amount of packets stored in the queue is larger than a predetermined threshold, the received packet that is a packet received by the network device is stored in the storage device as the comparison packet,
Calculating a first similarity that is a similarity between the received packet and the stored packet;
Selecting a predetermined number of stored packets similar to the received packet based on the first similarity;
The computer system, wherein the queue management module discards the selected stored packet from the queue.
請求項13に記載の計算機システムであって、
前記記憶装置は、前記比較用パケットである第1フィードバックパケットを格納する第1記憶部を含み、
前記キュー管理モジュールは、
前記キュー長が所定の閾値より大きく、かつ、前記第1記憶部に前記第1フィードバックパケットが格納されている場合、前記キュー管理モジュールが、当該第1フィードバックパケットと前記格納パケットとの間の類似度である第2類似度を算出し、
前記第1類似度及び第2類似度に基づいて、前記受信パケット又は前記第1フィードバックパケットに類似する所定の数の前記格納パケットを選択し、
前記選択された所定の数の格納パケットの中から少なくとも一つの前記格納パケットを前記第1フィードバックパケットとして選択し、
前記第1フィードバックパケットを前記第1記憶部に格納し、
前記選択された格納パケットを前記キューから破棄し、
前記第1記憶部に格納された前記第1フィードバックパケットを含むパケットの登録要求を他のネットワーク装置に送信することを特徴とする計算機システム。
The computer system according to claim 13,
The storage device includes a first storage unit that stores a first feedback packet that is the comparison packet;
The queue management module
When the queue length is larger than a predetermined threshold value and the first feedback packet is stored in the first storage unit, the queue management module is configured to make similarity between the first feedback packet and the stored packet. Second similarity, which is a degree,
Selecting a predetermined number of the stored packets similar to the received packet or the first feedback packet based on the first similarity and the second similarity;
Selecting at least one of the stored packets from the selected predetermined number of stored packets as the first feedback packet;
Storing the first feedback packet in the first storage unit;
Discard the selected stored packet from the queue;
A computer system, wherein a registration request for a packet including the first feedback packet stored in the first storage unit is transmitted to another network device.
請求項14に記載の計算機システムであって、
前記記憶装置は、前記比較用パケットである第2フィードバックパケットを格納する第2記憶部を含み、
前記キュー管理モジュールは、
前記パケットの登録要求を受信した場合、前記第2記憶部に、前記第2フィードバックパケットとして前記パケットの登録要求に含まれる格納パケットを格納し、
前記ネットワーク装置が前記受信パケットを受信し、かつ、前記第2記憶部に前記第2フィードバックパケットが格納されている場合、当該第2フィードバックパケットと前記格納パケットとの間の類似度である第3類似度を算出し、
所定の閾値より大きい前記第3類似度に対応する前記格納パケットを選択し、
前記選択された格納パケットを前記キューから破棄することを特徴とすることを特徴とする計算機システム。
The computer system according to claim 14, wherein
The storage device includes a second storage unit that stores a second feedback packet that is the comparison packet;
The queue management module
When the registration request for the packet is received, the storage packet included in the registration request for the packet is stored as the second feedback packet in the second storage unit;
When the network apparatus receives the received packet and the second feedback packet is stored in the second storage unit, the third degree is a similarity between the second feedback packet and the stored packet. Calculate the similarity,
Selecting the stored packet corresponding to the third similarity greater than a predetermined threshold;
A computer system, wherein the selected stored packet is discarded from the queue.
JP2016104842A 2016-05-26 2016-05-26 Network device, queue control method, and computer system Pending JP2017212617A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016104842A JP2017212617A (en) 2016-05-26 2016-05-26 Network device, queue control method, and computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016104842A JP2017212617A (en) 2016-05-26 2016-05-26 Network device, queue control method, and computer system

Publications (1)

Publication Number Publication Date
JP2017212617A true JP2017212617A (en) 2017-11-30

Family

ID=60475699

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016104842A Pending JP2017212617A (en) 2016-05-26 2016-05-26 Network device, queue control method, and computer system

Country Status (1)

Country Link
JP (1) JP2017212617A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111198874A (en) * 2018-11-16 2020-05-26 中国电信股份有限公司 Data processing method, device, system and computer readable storage medium
WO2020105234A1 (en) * 2018-11-21 2020-05-28 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Abnormality detection method and abnormality detection device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111198874A (en) * 2018-11-16 2020-05-26 中国电信股份有限公司 Data processing method, device, system and computer readable storage medium
CN111198874B (en) * 2018-11-16 2023-07-04 中国电信股份有限公司 Data processing method, device, system and computer readable storage medium
WO2020105234A1 (en) * 2018-11-21 2020-05-28 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Abnormality detection method and abnormality detection device
CN112789831A (en) * 2018-11-21 2021-05-11 松下电器(美国)知识产权公司 Abnormality detection method and abnormality detection device
JP7297787B2 (en) 2018-11-21 2023-06-26 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Anomaly detection method and anomaly detection device

Similar Documents

Publication Publication Date Title
JP5624973B2 (en) Filtering device
CN108429718B (en) Account identification method and device
CN101009607A (en) Systems and methods for detecting and preventing flooding attacks in a network environment
JP6897434B2 (en) Information processing system, information processing device and information processing program
CN105550051A (en) Asynchronous processing method and device of business request
US9319449B2 (en) Method, apparatus, and computer program product for processing data requests
US20210089887A1 (en) Variance-Based Learning Rate Control For Training Machine-Learning Models
EP3252647A1 (en) System and method of detecting malicious files on a virtual machine in a distributed network
CN109583201B (en) System and method for identifying malicious intermediate language files
JP2017212617A (en) Network device, queue control method, and computer system
JP2018073140A (en) Network monitoring device, program and method
KR20230065226A (en) Web application server, method for handling user request and method for handling intergrated request
US10326677B2 (en) Communication device, available band calculation system, available band calculation method, and program
US20140136694A1 (en) Network abnormality detection system, measurement apparatus, and analysis apparatus
WO2022057131A1 (en) Data congestion processing method and apparatus, computer device, and storage medium
JP6591700B2 (en) System, data management method, and file server
Toor et al. Distributed transmission control in multichannel S-ALOHA for ad-hoc Networks
US8904533B2 (en) Determining heavy distinct hitters in a data stream
JP7099533B2 (en) Impact range estimation device, impact range estimation method, and program
CN106293996A (en) Method of data synchronization, main equipment, alternate device and system
US9332071B2 (en) Data stage-in for network nodes
CN114422277A (en) Method, device, electronic equipment and computer readable medium for defending network attack
KR102318947B1 (en) Method for protecting privacy data, computing device and system for executing the method
CN107592361B (en) Data transmission method, device and equipment based on dual IB network
CN111104229B (en) Method, apparatus and computer readable storage medium for data processing