Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6629645B2 - Packet relay device and packet relay method - Google Patents
[go: Go Back, main page]

JP6629645B2 - Packet relay device and packet relay method - Google Patents

Packet relay device and packet relay method Download PDF

Info

Publication number
JP6629645B2
JP6629645B2 JP2016046463A JP2016046463A JP6629645B2 JP 6629645 B2 JP6629645 B2 JP 6629645B2 JP 2016046463 A JP2016046463 A JP 2016046463A JP 2016046463 A JP2016046463 A JP 2016046463A JP 6629645 B2 JP6629645 B2 JP 6629645B2
Authority
JP
Japan
Prior art keywords
packet
tunnel
identifier
received
detection condition
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.)
Active
Application number
JP2016046463A
Other languages
Japanese (ja)
Other versions
JP2017163365A (en
Inventor
光 星野
光 星野
雅也 新井
雅也 新井
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.)
Alaxala Networks Corp
Original Assignee
Alaxala Networks Corp
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 Alaxala Networks Corp filed Critical Alaxala Networks Corp
Priority to JP2016046463A priority Critical patent/JP6629645B2/en
Publication of JP2017163365A publication Critical patent/JP2017163365A/en
Application granted granted Critical
Publication of JP6629645B2 publication Critical patent/JP6629645B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Description

本発明は、ネットワークを介して接続されるパケット中継装置に関する。   The present invention relates to a packet relay device connected via a network.

ユーザ端末のトラフィックを複製又は転送して、フィルタリング又は統計監視等を行う技術が知られている。例えば、特許文献1には、「アプリケーション識別システムは、フローを構成するパケットのデータ部分を識別するアプリケーション識別装置と、設定されたポリシに合致するフローをアプリケーション識別装置へ転送して、共用する複数のパケットヘッダ識別制御部を備える。アプリケーション識別装置は、フローの宛先に合致するポリシを当該フローに適用したならば宛先ポリシ適用済みタグを付与し、パケットヘッダ識別制御部は、フローを構成するパケットにタグが付与されていたならば、宛先ポリシ適用済みタグを削除して、フローをルーティングに基づき転送し、フローを構成するパケットにタグが付与されていなかったならば、フローが設定されたポリシに合致するか否かを判断し、設定されたポリシに合致するならばアプリケーション識別装置へ転送する。」と記載されている。   2. Description of the Related Art There is known a technique for duplicating or transferring traffic of a user terminal to perform filtering or statistical monitoring. For example, Patent Literature 1 states that “an application identification system includes an application identification device that identifies a data portion of a packet that constitutes a flow, and a flow that transfers a flow that matches a set policy to the application identification device to be shared. The application identification device assigns a destination policy applied tag to the flow if a policy matching the flow destination is applied to the flow, and the packet header identification control unit If the tag is attached to the packet, the destination policy applied tag is removed, the flow is forwarded based on the routing, and if the packet constituting the flow is not tagged, the policy to which the flow is set is assigned. Judge whether it matches with the policy, and if it matches the set policy, the application Transferred to Shon identification device. Is described as ".

特開2015−162692号公報JP-A-2015-162692

ユーザ端末のトラフィックのフィルタリング又は統計監視等を行うために、コアネットワークとユーザネットワークの境界に位置し、ユーザ端末を収容するパケット中継装置(いわゆるエッジルータ)が、ユーザ端末から受信した又はユーザ端末に送信するパケット又はパケットの複製をDPI(Deep Packet Inspection)装置に転送する方法が用いられる。この方法を実現するために、コアネットワークにエッジルータと同数のDPI装置を配置し、それぞれのエッジルータに一つずつDPI装置を接続してもよい。しかし、DPI装置は高価であるため、コストの削減を目的として、DPI装置をコアネットワーク内のデータセンタ拠点に配置し、そのDPI装置を収容するゲートウェイルータが複数のエッジルータとトンネル接続してコアネットワーク全体でDPI装置を共有する運用方法が提案されている。   A packet relay device (so-called edge router) which is located at the boundary between the core network and the user network and accommodates the user terminal is used for filtering or statistical monitoring of the traffic of the user terminal. A method of transferring a packet to be transmitted or a copy of the packet to a DPI (Deep Packet Inspection) device is used. To realize this method, the same number of DPI devices as the edge routers may be arranged in the core network, and one DPI device may be connected to each edge router. However, since the DPI device is expensive, for the purpose of cost reduction, the DPI device is arranged at a data center base in the core network, and the gateway router accommodating the DPI device is tunnel-connected to a plurality of edge routers and the core is connected to the core router. An operation method for sharing a DPI device throughout the network has been proposed.

特許文献1には、コアネットワーク全体でDPI装置を共有する運用方法の一例が記載されている。特許文献1によれば、送信元のユーザ端末を収容するエッジルータは、送信元のユーザ端末から受信したパケットが所定のポリシに合致する場合に、そのパケットをアプリケーション識別装置(DPI装置に相当)に転送する。このとき、エッジルータは、当該パケットの送信元がポリシに合致する場合だけでなく、当該パケットの宛先がポリシに合致する場合にもアプリケーション識別装置に転送し、アプリケーション識別装置は宛先に対する解析が終わったときに宛先ポリシ適用済みタグを付与してエッジルータに返す。その後、エッジルータは、宛先のユーザ端末を収容するエッジルータにパケットを転送する。このパケットを受信したエッジルータは、受信したパケットから宛先ポリシ適用済みタグを削除して、再びアプリケーション識別装置に転送することなく宛先のユーザ端末に転送する。   Patent Literature 1 describes an example of an operation method for sharing a DPI device across the entire core network. According to Patent Document 1, when a packet received from a source user terminal matches a predetermined policy, an edge router that accommodates the source user terminal recognizes the packet as an application identification device (corresponding to a DPI device). Transfer to At this time, the edge router forwards the packet to the application identification device not only when the source of the packet matches the policy but also when the destination of the packet matches the policy, and the application identification device finishes analyzing the destination. When a destination policy has been applied, a tag is applied and the packet is returned to the edge router. Thereafter, the edge router transfers the packet to the edge router that accommodates the destination user terminal. The edge router that has received this packet deletes the destination policy applied tag from the received packet and transfers it to the destination user terminal without transferring it again to the application identification device.

一方、特許文献1とは別の一例として、送信元のユーザ端末を収容するエッジルータが、受信したパケットの送信元がポリシに合致する場合にそのパケットをコアネットワーク全体で共有するDPI装置に転送し、宛先のユーザ端末を収容するエッジルータが、受信したパケットの宛先がポリシに合致する場合にそのパケットを同じDPI装置に転送するという運用方法も考えられる。しかし、この場合、宛先のユーザ端末を収容するエッジルータは、受信したパケットがDPI装置から転送された(すなわち当該エッジルータから一度DPI装置に転送され、DPI装置による解析が終了して戻ってきた)ものであっても、そのパケットの宛先がポリシに合致する限り、再度DPI装置に転送してしまうため、ここでループが発生する。   On the other hand, as another example of Patent Document 1, when an edge router accommodating a source user terminal transfers a received packet to a DPI device shared by the entire core network when the source of the packet matches the policy, However, an operation method in which the edge router accommodating the destination user terminal transfers the packet to the same DPI device when the destination of the received packet matches the policy is also conceivable. However, in this case, the edge router accommodating the destination user terminal transfers the received packet from the DPI device (that is, the packet is once transferred from the edge router to the DPI device, the analysis by the DPI device ends, and the edge router returns). ), The packet is transferred to the DPI device again as long as the destination of the packet matches the policy, so that a loop occurs here.

本発明の代表的な一例を示せば、プロセッサと、前記プロセッサに接続されるメモリと、前記プロセッサに接続されるネットワークインタフェースと、を有するパケット中継装置であって、前記メモリは、解析の対象となるパケットの検出条件と、前記検出条件を満たすパケットが送信されるトンネルの識別子と、ルーティングテーブルと、を保持し、前記プロセッサは、受信したパケットがカプセル化されている場合、前記受信したパケットのカプセル化ヘッダに含まれる、前記受信したパケットが経由したトンネルの識別子を受信トンネル情報として前記メモリに保持して、前記受信したパケットから前記カプセル化ヘッダを削除し、前記受信したパケットが前記検出条件を満たす場合、前記検出条件を満たすパケットが送信されるトンネルの識別子と、前記受信したパケットが経由したトンネルの識別子とを比較した結果に基づいて、前記受信したパケットを、前記検出条件を満たすパケットが送信されるトンネルを経由して送信するか否かを判定し、前記検出条件を満たすパケットが送信されるトンネルの識別子と、前記受信トンネル情報として保持されたトンネルの識別子とが同一である場合、前記受信したパケットをカプセル化せずに前記ルーティングテーブルに従って送信し、前記検出条件を満たすパケットが送信されるトンネルの識別子と、前記受信トンネル情報として保持されたトンネルの識別子とが同一でない場合、前記検出条件を満たすパケットが送信されるトンネルの識別子を含むカプセル化ヘッダを付加することによって前記受信したパケットをカプセル化して前記ルーティングテーブルに従って送信することを特徴とする。 If a representative example of the present invention is shown, a packet relay device having a processor, a memory connected to the processor, and a network interface connected to the processor, wherein the memory is an analysis target Packet, the identifier of a tunnel through which a packet satisfying the detection condition is transmitted, and a routing table, and the processor, if the received packet is encapsulated, An identifier of a tunnel through which the received packet has passed, which is included in the encapsulation header, is stored in the memory as reception tunnel information, the encapsulation header is deleted from the received packet , and the received packet satisfies the detection condition. The packet that satisfies the above detection condition is transmitted. Whether the received packet is transmitted via a tunnel through which a packet satisfying the detection condition is transmitted, based on a result of comparing the identifier of the received packet with the identifier of the tunnel through which the received packet has passed. And if the identifier of the tunnel in which the packet satisfying the detection condition is transmitted is the same as the identifier of the tunnel held as the received tunnel information, the received packet is not encapsulated and the routing table is not encapsulated. If the identifier of the tunnel in which the packet satisfying the detection condition is transmitted is not the same as the identifier of the tunnel held as the received tunnel information, the identifier of the tunnel in which the packet satisfying the detection condition is transmitted The received packet is encapsulated by adding an encapsulation header containing It turned into it and transmits in accordance with the routing table.

本願において開示される発明のうち代表的なものによって得られる効果を簡潔に説明すれば、下記の通りである。すなわち、例えばエッジルータがDPI装置からトンネルを経由して受信したパケットがDPI解析対象として再度DPI装置にトンネルを経由して送信される状況において、ルーティングループの発生を防止可能なパケット中継装置を提供できる。   The effects obtained by typical aspects of the invention disclosed in the present application will be briefly described as follows. That is, for example, in a situation where a packet received by an edge router from a DPI device via a tunnel is transmitted to the DPI device again via the tunnel as a DPI analysis target, a packet relay device capable of preventing occurrence of a routing loop is provided. it can.

上記した以外の課題、及び構成は、以下の実施形態の説明により明らかにされる。   Problems and configurations other than those described above will be apparent from the following description of the embodiments.

本発明の実施例1のネットワークシステムの構成図である。FIG. 1 is a configuration diagram of a network system according to a first embodiment of the present invention. 本発明の実施例1のエッジルータの全体構成の説明図である。FIG. 1 is an explanatory diagram of an overall configuration of an edge router according to a first embodiment of the present invention. 本発明の実施例1のエッジルータのDPI解析パケット検出条件の説明図である。FIG. 4 is an explanatory diagram of a DPI analysis packet detection condition of the edge router according to the first embodiment of the present invention. 本発明の実施例1のエッジルータの受信トンネル情報の説明図である。FIG. 4 is an explanatory diagram of reception tunnel information of the edge router according to the first embodiment of the present invention. 本発明の実施例1のエッジルータのパケット受信時の処理のフローチャートである。6 is a flowchart of a process when the edge router according to the first embodiment of the present invention receives a packet. 本発明の実施例2のネットワークシステムの構成図である。FIG. 2 is a configuration diagram of a network system according to a second embodiment of the present invention. 本発明の実施例2のエッジルータの受信トンネル情報の説明図である。FIG. 11 is an explanatory diagram of the reception tunnel information of the edge router according to the second embodiment of the present invention.

以下、本発明の実施例について、図面を参照しながら詳細に説明する。なお、実質的に同一の箇所には同じ符号を付与し、説明を繰り返さないこととする。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. It is to be noted that substantially the same portions are denoted by the same reference numerals, and description thereof will not be repeated.

以下において、本発明の実施例1を図1〜図5を用いて説明する。   A first embodiment of the present invention will be described below with reference to FIGS.

図1は、本発明の実施例1のネットワークシステムの構成図である。   FIG. 1 is a configuration diagram of a network system according to a first embodiment of the present invention.

本ネットワークシステムは、コアネットワーク200とアクセスネットワークA201とアクセスネットワークB202とを含む。   This network system includes a core network 200, an access network A201, and an access network B202.

コアネットワーク200は、エッジルータA101、エッジルータB102、DPIゲートウェイルータ203、及びDPI装置204を有する。以下では、エッジルータA101及びエッジルータB102を総称する場合には、エッジルータ100と記載する。   The core network 200 includes an edge router A101, an edge router B102, a DPI gateway router 203, and a DPI device 204. Hereinafter, the edge router A101 and the edge router B102 are collectively referred to as an edge router 100.

アクセスネットワークA201は、エッジルータA101が収容するネットワークであり、情報処理端末であるユーザA205及びユーザB206を有する。   The access network A201 is a network accommodated by the edge router A101, and has a user A205 and a user B206, which are information processing terminals.

アクセスネットワークB202は、エッジルータB102が収容するネットワークであり、情報処理端末であるユーザC207を有する。以下では、アクセスネットワークA201及びアクセスネットワークB202を総称する場合には、アクセスネットワーク201と記載する。   The access network B202 is a network accommodated by the edge router B102, and has a user C207 which is an information processing terminal. Hereinafter, the access network A201 and the access network B202 are collectively referred to as the access network 201.

DPI装置204は、回線208及び回線209を介してDPIゲートウェイルータ203に接続される。エッジルータ100とDPIゲートウェイルータ203は、コアネットワーク200を介してトンネリングプロトコルによって接続される。エッジルータA101は、上りAトンネル210、及び下りAトンネル211を介してDPIゲートウェイルータ203に接続される。エッジルータB102は、上りBトンネル212、及び下りBトンネル213を介してDPIゲートウェイルータ203に接続される。エッジルータB102は、回線214を介してエッジルータA101に接続される。エッジルータA101とエッジルータB102は、直接接続されなくてもよく、例えば、スイッチ又はルータを介して接続してもよい。ユーザA205とユーザB206はエッジルータA101に接続される。ユーザC207はエッジルータB102に接続される。以下では、ユーザA205〜ユーザC207を総称する場合には、ユーザと記載する。   The DPI device 204 is connected to the DPI gateway router 203 via a line 208 and a line 209. The edge router 100 and the DPI gateway router 203 are connected by a tunneling protocol via the core network 200. The edge router A 101 is connected to the DPI gateway router 203 via an up A tunnel 210 and a down A tunnel 211. The edge router B102 is connected to the DPI gateway router 203 via an up B tunnel 212 and a down B tunnel 213. The edge router B102 is connected to the edge router A101 via a line 214. The edge router A101 and the edge router B102 may not be directly connected, and may be connected via, for example, a switch or a router. User A 205 and user B 206 are connected to edge router A 101. User C207 is connected to edge router B102. Hereinafter, the user A205 to the user C207 are collectively referred to as a user.

各装置について説明する。   Each device will be described.

まず、DPI装置204について説明する。DPI装置204は、ユーザの送受信するパケットのペイロード部を解析する。DPI装置204は、DPI装置204に設定されたフィルタやQoS情報を適用して、ユーザが送受信するパケットの統計情報を取得する。DPI装置204は、2種類のインタフェースを持つ。DPIゲートウェイルータ203と回線208で接続されるインタフェースは、エッジルータ100がユーザからパケットを受信する方向のパケットを受信する際に使用される。DPIゲートウェイルータ203と回線209で接続されるインタフェースは、エッジルータ100がユーザにパケットを中継する方向のパケットを受信する際に使用される。   First, the DPI device 204 will be described. The DPI device 204 analyzes a payload portion of a packet transmitted and received by the user. The DPI device 204 acquires the statistical information of the packet transmitted and received by the user by applying the filter and the QoS information set in the DPI device 204. The DPI device 204 has two types of interfaces. The interface connected to the DPI gateway router 203 via the line 208 is used when the edge router 100 receives a packet in a direction of receiving a packet from a user. The interface connected to the DPI gateway router 203 via the line 209 is used when the edge router 100 receives a packet in a direction to relay the packet to the user.

解析するパケットの送信元と宛先がともにDPI解析対象である場合は、DPI装置204へのパケット中継を2回実施する必要がある。1回目はエッジルータがユーザからパケットを受信した時で、2回目はエッジルータがユーザにパケットを中継する時である。解析後のパケットは受信時と対となる反対のインタフェースから送信される。つまり、DPI装置204は、回線208から受信したパケットは、解析後、回線209から送信し、回線209から受信したパケットは、解析後、回線208から送信される。   If both the source and destination of the packet to be analyzed are to be analyzed by the DPI, the packet relay to the DPI device 204 needs to be performed twice. The first time is when the edge router receives a packet from the user, and the second time is when the edge router relays the packet to the user. The parsed packet is transmitted from the opposite interface that is paired with the one received. That is, the DPI device 204 analyzes the packet received from the line 208 and transmits the packet from the line 209, and the packet received from the line 209 is analyzed and transmits the packet from the line 208.

次に、DPIゲートウェイルータ203について説明する。DPIゲートウェイルータ203は、エッジルータ100と、コアネットワーク200を介してトンネリングプロトコルによって接続される。DPIゲートウェイルータ203とエッジルータとの間には、用途の異なる2つのトンネルが確立される。1つはエッジルータ100がユーザからパケットを受信した時のDPI装置204への転送に使用され、もう1つはエッジルータ100がユーザにパケットを中継する時のDPI装置204への転送に使用される。   Next, the DPI gateway router 203 will be described. The DPI gateway router 203 is connected to the edge router 100 via the core network 200 by a tunneling protocol. Two tunnels having different purposes are established between the DPI gateway router 203 and the edge router. One is used for transfer to the DPI device 204 when the edge router 100 receives a packet from the user, and the other is used for transfer to the DPI device 204 when the edge router 100 relays the packet to the user. You.

図1の例において、上りAトンネル210及び上りBトンネル212は、エッジルータ100がユーザからパケットを受信した時のDPI装置204への転送に使用される。以下では、上りAトンネル210と上りBトンネル212を総称する場合、上りトンネルと記載する。下りAトンネル211及び下りBトンネル213は、エッジルータ100がユーザにパケットを中継する時のDPI装置204への転送に使用される。以下では、下りAトンネル211と下りBトンネル213を総称する場合、下りトンネルと記載する。   In the example of FIG. 1, the upstream A tunnel 210 and the upstream B tunnel 212 are used for transfer to the DPI device 204 when the edge router 100 receives a packet from a user. Hereinafter, when the upstream A tunnel 210 and the upstream B tunnel 212 are collectively referred to, they are referred to as upstream tunnels. The downstream A tunnel 211 and the downstream B tunnel 213 are used for transfer to the DPI device 204 when the edge router 100 relays a packet to a user. Hereinafter, when the downstream A tunnel 211 and the downstream B tunnel 213 are collectively referred to as a downstream tunnel.

DPIゲートウェイルータ203は、上りトンネルから受信したパケットを回線208を経由してDPI装置204に中継する。DPIゲートウェイルータ203は、下りトンネルから受信したパケットを回線209を経由してDPI装置204に中継する。DPI装置204から折り返されたパケットは、DPIゲートウェイルータ203がエッジルータ100からパケットを受信した時と同じトンネルを介して送信する。   The DPI gateway router 203 relays the packet received from the up tunnel to the DPI device 204 via the line 208. The DPI gateway router 203 relays the packet received from the downlink tunnel to the DPI device 204 via the line 209. The packet returned from the DPI device 204 is transmitted through the same tunnel as when the DPI gateway router 203 received the packet from the edge router 100.

次に、ユーザについて説明する。ユーザが送受信するパケットは、DPI装置204において、解析の対象となる。ユーザが送受信するパケットは、ユーザを収容するエッジルータ100によってDPI装置204に転送される。   Next, the user will be described. Packets transmitted and received by the user are analyzed by the DPI device 204. Packets transmitted and received by the user are transferred to the DPI device 204 by the edge router 100 accommodating the user.

次に、エッジルータ100について説明する。エッジルータ100は、アクセスネットワークを収容し、コアネットワーク200とアクセスネットワークの境界に位置する。エッジルータ100は、コアネットワーク200から受信したパケットに対して、パケットの宛先が、その宛先を収容するアクセスネットワークのDPI解析対象ユーザかを判定し、解析が必要なパケットは下りトンネルを経由してDPI装置204に転送する。エッジルータ100は、アクセスネットワークから受信したパケットに対して、パケットの送信元が、その送信元を収容するアクセスネットワークのDPI解析対象ユーザかを判定し、解析が必要なパケットは下りトンネルを経由してDPI装置204に転送する。なお、エッジルータ100の詳細は、図2で説明する。   Next, the edge router 100 will be described. The edge router 100 accommodates an access network and is located at a boundary between the core network 200 and the access network. The edge router 100 determines, for a packet received from the core network 200, whether the destination of the packet is a DPI analysis target user of an access network accommodating the destination, and a packet that needs to be analyzed passes through a downlink tunnel. Transfer to the DPI device 204. The edge router 100 determines, for a packet received from the access network, whether the source of the packet is a DPI analysis target user of the access network accommodating the source, and the packet that needs to be analyzed passes through the downlink tunnel. To the DPI device 204. The details of the edge router 100 will be described with reference to FIG.

図2は、本発明の実施例1のエッジルータ100の全体構成の説明図である。   FIG. 2 is an explanatory diagram of the overall configuration of the edge router 100 according to the first embodiment of the present invention.

エッジルータ100は、ハードウェア構成として、CPU121、メモリ122、及びネットワークインタフェース123を有する。   The edge router 100 has a CPU 121, a memory 122, and a network interface 123 as a hardware configuration.

CPU121は、メモリ122上の各種プログラムを実行し、メモリ122上の各種情報を参照する。ネットワークインタフェース123は、アクセスNW接続インタフェース117と、コアNW接続インタフェース118とに分かれており、それぞれエッジルータ100の外部とデータを通信するためのインタフェースである。アクセスNW接続インタフェース117は、アクセスネットワーク内の装置と接続される。コアNW接続インタフェース118は、コアネットワーク200内の装置と接続される。   The CPU 121 executes various programs on the memory 122 and refers to various information on the memory 122. The network interface 123 is divided into an access NW connection interface 117 and a core NW connection interface 118, and each is an interface for communicating data with the outside of the edge router 100. The access NW connection interface 117 is connected to a device in the access network. The core NW connection interface 118 is connected to a device in the core network 200.

CPU121上では、経路検索部111、パケット検出部112、及びトンネル制御部113が動作する。これらの機能は、対応するプログラムをCPU121が実行することによって実現される。   On the CPU 121, a route search unit 111, a packet detection unit 112, and a tunnel control unit 113 operate. These functions are realized by the CPU 121 executing the corresponding program.

経路検索部111は、ルーティングテーブル114を参照し、受信したパケットに設定された宛先に応じて次の転送先を決定し、パケットをネットワークインタフェース123に転送する。   The route search unit 111 refers to the routing table 114, determines the next transfer destination according to the destination set in the received packet, and transfers the packet to the network interface 123.

パケット検出部112は、受信したパケットに設定されている情報から、送信元、及び宛先のユーザを特定する。パケット検出部112は、DPI解析パケット検出条件115、及び受信トンネル情報116を参照し、特定したユーザのパケットをDPI装置204に転送する必要があるかを判定する。必要がある場合は、パケットをカプセル化するために、パケットをトンネル制御部113に転送する。必要がない場合は、パケットに設定された宛先に転送するため、パケットを経路検索部111に転送する。   The packet detection unit 112 specifies a transmission source and a destination user from information set in the received packet. The packet detection unit 112 refers to the DPI analysis packet detection condition 115 and the reception tunnel information 116 and determines whether it is necessary to transfer the specified user packet to the DPI device 204. If necessary, the packet is transferred to the tunnel control unit 113 to encapsulate the packet. If it is not necessary, the packet is transferred to the route search unit 111 in order to transfer the packet to the destination set in the packet.

トンネル制御部113は、トンネリングプロトコルへのカプセル化、及びデカプセル化を行う。また、トンネル制御部113は、パケットをデカプセル化する際に、トンネリングプロトコルのヘッダに設定されたトンネルを識別する情報を受信トンネル情報116に設定する。デカプセル化後のパケットは、DPI装置204への転送が必要か判定するために、パケット検出部112に転送される。カプセル化後のパケットは装置外部に送信するために、経路検索部111に転送される。   The tunnel control unit 113 performs encapsulation into a tunneling protocol and decapsulation. When decapsulating a packet, the tunnel control unit 113 sets information for identifying a tunnel set in the header of the tunneling protocol in the reception tunnel information 116. The decapsulated packet is transferred to the packet detection unit 112 to determine whether transfer to the DPI device 204 is necessary. The encapsulated packet is transferred to the route search unit 111 for transmission outside the device.

メモリ122には、ルーティングテーブル114、DPI解析パケット検出条件115、及び、受信トンネル情報116が記憶される。   The memory 122 stores a routing table 114, DPI analysis packet detection conditions 115, and reception tunnel information 116.

ルーティングテーブル114は、パケットをルーティングするために必要な情報であり、宛先ネットワーク及びネクストホップ情報から構成される。   The routing table 114 is information necessary for routing a packet, and includes destination network and next hop information.

DPI解析パケット検出条件115は、エッジルータ100が受信するパケットを解析のためにDPI装置204に転送する必要があるかどうかを判定するための条件である。DPI解析パケット検出条件115の詳細は、図3を参照して説明する。   The DPI analysis packet detection condition 115 is a condition for determining whether a packet received by the edge router 100 needs to be transferred to the DPI device 204 for analysis. Details of the DPI analysis packet detection condition 115 will be described with reference to FIG.

受信トンネル情報116は、デカプセル化時にトンネルを識別する情報を一時的に保持するための格納領域である。受信トンネル情報116は、図4を参照して説明する。   The reception tunnel information 116 is a storage area for temporarily holding information for identifying a tunnel at the time of decapsulation. The reception tunnel information 116 will be described with reference to FIG.

図3(a)、及び図3(b)は、本発明の実施例1のエッジルータ100のDPI解析パケット検出条件115の説明図である。   FIGS. 3A and 3B are explanatory diagrams of the DPI analysis packet detection condition 115 of the edge router 100 according to the first embodiment of the present invention.

DPI解析パケット検出条件115は、送信元301、宛先302、受信インタフェース303及び転送先トンネル304で構成される。送信元301は、受信したパケットに設定されたパケットの送信元を識別する情報で、例えば、IPヘッダに設定されたSource Addressフィールドの値である。宛先302は、受信したパケットに設定されたパケットの宛先を識別する情報で、例えば、IPヘッダに設定されたDestination Addressフィールドの値である。受信インタフェース303は、エッジルータ100がパケットを受信したインタフェースを識別する情報である。転送先トンネル304は、送信元301、宛先302、及び受信インタフェース303の全ての条件を満たした場合にパケットを転送するトンネルを識別する情報である。   The DPI analysis packet detection condition 115 includes a transmission source 301, a destination 302, a reception interface 303, and a transfer destination tunnel 304. The transmission source 301 is information for identifying the transmission source of the packet set in the received packet, and is, for example, the value of the Source Address field set in the IP header. The destination 302 is information for identifying the destination of the packet set in the received packet, and is, for example, the value of the Destination Address field set in the IP header. The reception interface 303 is information for identifying an interface on which the edge router 100 has received a packet. The transfer destination tunnel 304 is information for identifying a tunnel for transferring a packet when all the conditions of the transmission source 301, the destination 302, and the reception interface 303 are satisfied.

トンネルは、トンネリングプロトコルでカプセル化する際のカプセル化ヘッダに設定される値で識別される。この値は、例えば、カプセル化後のIPヘッダに設定されたSource Addressフィールドの値、Destination Addressフィールドの値、又は、トンネリングプロトコルにVXLANプロトコルを使用している場合は、VXLANヘッダに設定されたVNIフィールドの値などである。   A tunnel is identified by a value set in an encapsulation header when encapsulating by a tunneling protocol. This value is, for example, the value of the Source Address field, the value of the Destination Address field set in the IP header after encapsulation, or the VNI set in the VXLAN header when the VXLAN protocol is used for the tunneling protocol. For example, the value of a field.

DPI解析パケット検出条件115に設定されるレコードは、管理者がエッジルータ100に対してコンフィグレーションで設定してもよく、図示しない管理サーバによってネットワーク経由で設定されてもよい。あるいは、エッジルータ100がRA(Router Advertisement)機能又はDHCP(Dynamic Host Configuration Protocol)サーバ機能を併せて有しているなら、ユーザに対してIPアドレスを払い出すタイミングでレコードを設定してもよい。   The record set in the DPI analysis packet detection condition 115 may be set by the administrator in the configuration of the edge router 100, or may be set by a management server (not shown) via a network. Alternatively, if the edge router 100 also has an RA (Router Advertisement) function or a DHCP (Dynamic Host Configuration Protocol) server function, a record may be set at the timing of issuing an IP address to a user.

図4(a)、及び図4(b)は、本発明の実施例1のエッジルータ100の受信トンネル情報116の説明図である。   FIGS. 4A and 4B are explanatory diagrams of the reception tunnel information 116 of the edge router 100 according to the first embodiment of the present invention.

受信トンネル情報116は、トンネル識別子401で構成される。トンネル識別子401は、DPI解析パケット検出条件115の転送先トンネル304と同じ形式で保持される情報である。トンネル識別子401は、トンネルを経由して受信したパケットのカプセル化ヘッダに設定された値が格納される。トンネル識別子401は、受信パケットをデカプセル化する際に設定される一時的な情報であり、パケットの転送処理が終了すると削除される。   The reception tunnel information 116 includes a tunnel identifier 401. The tunnel identifier 401 is information held in the same format as the transfer destination tunnel 304 of the DPI analysis packet detection condition 115. The value set in the encapsulation header of the packet received via the tunnel is stored as the tunnel identifier 401. The tunnel identifier 401 is temporary information set when decapsulating a received packet, and is deleted when the packet transfer processing ends.

図5は、本発明の実施例1のエッジルータ100のパケット受信時の処理のフローチャートである。   FIG. 5 is a flowchart of a process when the edge router 100 according to the first embodiment of the present invention receives a packet.

パケット受信時の処理は、ネットワークインタフェース123が外部からのパケットを受信したタイミングでCPU121によって実行される(S501)。   The process at the time of packet reception is executed by the CPU 121 at the timing when the network interface 123 receives a packet from the outside (S501).

まず、ネットワークインタフェース123は、受信したパケットとパケットを受信したインタフェースを識別する情報とをトンネル制御部113に転送する(S502)。   First, the network interface 123 transfers the received packet and information identifying the interface that has received the packet to the tunnel control unit 113 (S502).

トンネル制御部113は、転送されたパケットを解析し、パケットがカプセル化されているか判定する(S503)。   The tunnel control unit 113 analyzes the transferred packet and determines whether the packet is encapsulated (S503).

S503の処理において、トンネル制御部113は、パケットがカプセル化されている場合は、カプセル化ヘッダに設定されたトンネルを識別する情報を受信トンネル情報116のトンネル識別子401に設定する(S504)。   In the process of S503, when the packet is encapsulated, the tunnel control unit 113 sets information for identifying the tunnel set in the encapsulation header to the tunnel identifier 401 of the received tunnel information 116 (S504).

トンネル制御部113は、受信したパケットをデカプセル化する(S505)。すなわち、受信したパケットからカプセル化ヘッダが削除される。   The tunnel control unit 113 decapsulates the received packet (S505). That is, the encapsulation header is deleted from the received packet.

トンネル制御部113は、S503の処理においてパケットがカプセル化されていない場合、またはS505の処理でデカプセル化が行われた後、受信したインタフェースを識別する情報とともにパケットをパケット検出部112に転送する(S506)。   When the packet is not encapsulated in the process of S503 or after decapsulation is performed in the process of S505, the tunnel control unit 113 transfers the packet to the packet detection unit 112 together with the information identifying the received interface ( S506).

パケット検出部112は、転送されたパケットを解析し、送信元のユーザ、及び宛先のユーザを特定する。パケット検出部112は、DPI解析パケット検出条件115を読み出し、特定した送信元のユーザと宛先のユーザ、及びパケットを受信したインタフェースを、DPI解析パケット検出条件115に設定されたレコードの送信元301と宛先302、及び受信インタフェース303と照合し、条件に一致するレコードがあるかを判定する(S507)。   The packet detecting unit 112 analyzes the transferred packet, and specifies a source user and a destination user. The packet detection unit 112 reads out the DPI analysis packet detection condition 115, and identifies the specified transmission source user and destination user, and the interface that has received the packet, as the transmission source 301 of the record set in the DPI analysis packet detection condition 115. It is compared with the destination 302 and the reception interface 303 to determine whether there is a record that matches the condition (S507).

S507の処理において、条件に一致するレコードがある場合、パケット検出部112は、更に受信トンネル情報116を読み出し、条件に一致したレコードの転送先トンネル304と、受信トンネル情報116に設定されたトンネル識別子401を照合し、一致するかを判定する(S508)。   In the process of S507, when there is a record that matches the condition, the packet detection unit 112 further reads the reception tunnel information 116, and transfers the destination tunnel 304 of the record that matches the condition and the tunnel identifier set in the reception tunnel information 116. 401 is checked to determine whether they match (S508).

S508の処理において、転送先トンネル304とトンネル識別子401とが一致しないか、又は、トンネル識別子401に値が設定されていない場合、パケット検出部112は、条件に一致したレコードの転送先トンネル304で指定されるトンネルに送信するため、条件に一致したレコードの転送先トンネル304とともにパケットをトンネル制御部113に転送する(S509)。   In the process of S508, if the transfer destination tunnel 304 does not match the tunnel identifier 401, or if a value is not set in the tunnel identifier 401, the packet detection unit 112 checks the transfer destination tunnel 304 of the record that matches the condition. In order to transmit the packet to the designated tunnel, the packet is transferred to the tunnel control unit 113 together with the transfer destination tunnel 304 of the record that matches the condition (S509).

トンネル制御部113は、転送されたパケットを、転送先トンネル304を用いてカプセル化する(S510)。すなわち、トンネル制御部113は、トンネルを識別する情報として転送先トンネル304の値を含むカプセル化ヘッダを、転送されたパケットに付加する。   The tunnel control unit 113 encapsulates the transferred packet using the transfer destination tunnel 304 (S510). That is, the tunnel control unit 113 adds an encapsulation header including the value of the transfer destination tunnel 304 to the transferred packet as information for identifying the tunnel.

パケット検出部112は、S507の処理において、条件に一致するレコードがない場合、または、S510の処理が行われた後、パケットに設定された宛先に転送するため、パケットを経路検索部111に転送する(S511)。   In the processing of S507, if there is no record that matches the conditions, or after the processing of S510 is performed, the packet detection unit 112 transfers the packet to the route search unit 111 in order to transfer the packet to the destination set in the packet. (S511).

S508の処理において、転送先トンネル304とトンネル識別子401とが一致する場合、パケット検出部112は、S509及びS510を実行せずにS511を実行する。   In the process of S508, when the transfer destination tunnel 304 and the tunnel identifier 401 match, the packet detection unit 112 executes S511 without executing S509 and S510.

経路検索部111は、ルーティングテーブル114を読み出し、パケットに設定された宛先から転送先を決定し、ネットワークインタフェース123を経由して、パケットを装置外部に送信する(S512)。   The route search unit 111 reads the routing table 114, determines the transfer destination from the destination set in the packet, and transmits the packet to the outside of the device via the network interface 123 (S512).

S501及びS502はネットワークインタフェース123による処理である。   S501 and S502 are processing by the network interface 123.

S503〜S506及びS510はトンネル制御部113による処理である。   S503 to S506 and S510 are processing by the tunnel control unit 113.

S507〜S509はパケット検出部112による処理である。   S507 to S509 are processing by the packet detection unit 112.

S507において不一致と判定された場合のS511はパケット検出部112による処理である。S507において一致と判定され、S510が実行された後のS511は、トンネル制御部113による処理である。   If it is determined in step S507 that there is no match, step S511 is processing by the packet detection unit 112. S511 after it is determined that they match in S507 and S510 is executed is processing by the tunnel control unit 113.

S512は経路検索部111による処理である。   S512 is processing by the route search unit 111.

図1における、ユーザが送信するパケットのDPI解析手順を具体的に説明する。   The DPI analysis procedure of the packet transmitted by the user in FIG. 1 will be specifically described.

図3(a)は、エッジルータA101があらかじめ保持するDPI解析パケット検出条件115のレコードを示している。   FIG. 3A shows a record of the DPI analysis packet detection condition 115 held in advance by the edge router A101.

図3(b)は、エッジルータB102があらかじめ保持するDPI解析パケット検出条件115のレコードを示している。   FIG. 3B shows a record of the DPI analysis packet detection condition 115 held in advance by the edge router B102.

図4(a)は、エッジルータA101の処理途中における受信トンネル情報116の状態を示している。   FIG. 4A shows the state of the reception tunnel information 116 during the processing of the edge router A101.

図4(b)は、エッジルータB102の処理途中における受信トンネル情報116の状態を示している。   FIG. 4B shows the state of the reception tunnel information 116 during the processing of the edge router B102.

受信トンネル情報116が図4(a)、及び図4(b)の状態になるタイミングは、以下の文中にて説明する。   The timing at which the reception tunnel information 116 enters the states shown in FIGS. 4A and 4B will be described in the following text.

図1のフローF121は、エッジルータA101に収容されるユーザA205が、同じくエッジルータA101に収容されるユーザB206にパケットを送信した場合の中継経路を示している。   A flow F121 in FIG. 1 illustrates a relay route when the user A205 accommodated in the edge router A101 transmits a packet to the user B206 also accommodated in the edge router A101.

ユーザA205が送信したパケットは、エッジルータA101のアクセスNW接続インタフェース117によって受信される。エッジルータA101は、受信したパケットがカプセル化されていないため、デカプセル化しない(S503:NO)。エッジルータA101は、エッジルータA101が収容するユーザA205を送信元とするパケットをアクセスNW接続インタフェース117から受け取ったため、このパケットは図3(a)に示すDPI解析パケット検出条件115の1つ目のレコードの条件と一致する(S507:一致)。また、転送先トンネル304が上りAトンネル210に対して、受信トンネル情報116にトンネル識別子401が設定されていないため(S508:未設定)、エッジルータA101は、上りAトンネル210宛にパケットをカプセル化する(S510)。エッジルータA101は、カプセル化したパケットを上りAトンネル210を経由してDPIゲートウェイルータ203に転送する(S512)。   The packet transmitted by the user A205 is received by the access NW connection interface 117 of the edge router A101. The edge router A101 does not decapsulate the received packet because it is not encapsulated (S503: NO). Since the edge router A101 has received from the access NW connection interface 117 a packet addressed to the user A205 accommodated in the edge router A101, this packet is the first of the DPI analysis packet detection conditions 115 shown in FIG. It matches the condition of the record (S507: match). Also, since the tunnel identifier 401 is not set in the reception tunnel information 116 for the transfer destination tunnel 304 with respect to the uplink A tunnel 210 (S508: not set), the edge router A101 encapsulates the packet to the uplink A tunnel 210. (S510). The edge router A101 transfers the encapsulated packet to the DPI gateway router 203 via the uplink A tunnel 210 (S512).

DPIゲートウェイルータ203は、上りAトンネル210から受信したパケットを、回線208を経由してDPI装置204に転送する。   The DPI gateway router 203 transfers the packet received from the uplink A tunnel 210 to the DPI device 204 via the line 208.

DPI装置204は、回線208を経由して受信したパケットに対して、ユーザからパケットを受信した時の解析を行い、回線209を経由してDPIゲートウェイルータ203に転送する。   The DPI device 204 analyzes the packet received via the line 208 when the packet is received from the user, and transfers the packet to the DPI gateway router 203 via the line 209.

DPIゲートウェイルータ203は、回線209を経由してDPI装置204から受信したパケットを、上りAトンネル210を経由してエッジルータA101に転送する。   The DPI gateway router 203 transfers the packet received from the DPI device 204 via the line 209 to the edge router A 101 via the upstream A tunnel 210.

エッジルータA101は、上りAトンネル210を経由して受信したパケットをデカプセル化する(S503:YES、S505)。この際、エッジルータA101は、受信トンネル情報116のトンネル識別子401に、上りAトンネル210のトンネルを識別する情報を設定する(S504)。エッジルータA101が収容するユーザB206を宛先とするパケットをコアNW接続インタフェース118から受け取ったため、このパケットは図3(a)に示すDPI解析パケット検出条件115の4つ目のレコードの条件と一致する(S507:一致)。また、当該4つ目のレコードの転送先トンネル304が「下りAトンネル211」であるのに対して、受信トンネル情報116のトンネル識別子401が「上りAトンネル210」であり(S508:不一致)、同一トンネルへの折り返しとならないことから、エッジルータA101は、パケットをカプセル化する(S510)。エッジルータA101は、カプセル化したパケットを、下りAトンネル211を経由してDPIゲートウェイルータ203に転送する(S512)。   The edge router A101 decapsulates the packet received via the upstream A tunnel 210 (S503: YES, S505). At this time, the edge router A101 sets information for identifying the tunnel of the uplink A tunnel 210 in the tunnel identifier 401 of the reception tunnel information 116 (S504). Since the packet addressed to the user B 206 accommodated by the edge router A 101 is received from the core NW connection interface 118, this packet matches the condition of the fourth record of the DPI analysis packet detection condition 115 shown in FIG. (S507: match). Also, while the transfer destination tunnel 304 of the fourth record is “downlink A tunnel 211”, the tunnel identifier 401 of the reception tunnel information 116 is “uplink A tunnel 210” (S508: mismatch), The edge router A101 encapsulates the packet because it does not return to the same tunnel (S510). The edge router A101 transfers the encapsulated packet to the DPI gateway router 203 via the downstream A tunnel 211 (S512).

上記のように、S504においてトンネル識別子401を保持しておくことによって、パケットをデカプセル化した後にS508の判定を行うことが可能になる。S508の判定処理が終了するか、又は、S507で不一致と判定され、パケット検出部からトンネル制御部又は経路検索部に処理が以降するタイミングで、トンネル識別子401が未設定の状態にリセットされてもよい。なお、あるパケットについてS508の判定処理が終了する前にエッジルータA101が次のパケットを受信する場合には、例えば受信トンネル情報116に複数のパケットのトンネル識別子を格納する領域を用意しておき、それらの領域に、受信したパケットのカプセル化ヘッダから取り出したトンネル識別子を順次格納してもよい。この場合、S508では、それぞれのパケットに対応する領域のトンネル識別子が参照される。   As described above, by holding the tunnel identifier 401 in S504, it is possible to make the determination in S508 after decapsulating the packet. Even if the determination processing of S508 is completed or it is determined that there is a mismatch in S507 and the tunnel identifier 401 is reset to an unset state at the timing when the processing is subsequently performed from the packet detection unit to the tunnel control unit or the route search unit. Good. When the edge router A101 receives the next packet before the determination processing of S508 is completed for a certain packet, for example, an area for storing tunnel identifiers of a plurality of packets is prepared in the reception tunnel information 116, The tunnel identifiers extracted from the encapsulation header of the received packet may be sequentially stored in those areas. In this case, in S508, the tunnel identifier of the area corresponding to each packet is referred to.

S512においてパケットが送信されると、DPIゲートウェイルータ203は、下りAトンネル211から受信したパケットを、回線209を経由してDPI装置204に転送する。   When the packet is transmitted in S512, the DPI gateway router 203 transfers the packet received from the downstream A tunnel 211 to the DPI device 204 via the line 209.

DPI装置204は、回線209を経由して受信したパケットに対して、ユーザにパケットを中継する時の解析を行い、回線208を経由してDPIゲートウェイルータ203に転送する。   The DPI device 204 analyzes the packet received via the line 209 when relaying the packet to the user, and transfers the packet to the DPI gateway router 203 via the line 208.

DPIゲートウェイルータ203は、回線208を経由してDPI装置204から受信したパケットを、下りAトンネル211を経由してエッジルータA101に転送する。   The DPI gateway router 203 transfers the packet received from the DPI device 204 via the line 208 to the edge router A 101 via the downstream A tunnel 211.

エッジルータA101は、下りAトンネル211を経由して受信したパケットをデカプセル化する(S503:YES、S505)。この際、エッジルータA101は、受信トンネル情報116のトンネル識別子401に、下りAトンネル211のトンネルを識別する情報を設定する(S504)(図4(a))。エッジルータA101が収容するユーザB206を宛先とするパケットをコアNW接続インタフェース118から受け取ったため、このパケットは図3(a)に示すDPI解析パケット検出条件115の4つ目のレコードの条件と一致する(S507:一致)。   The edge router A101 decapsulates the packet received via the downstream A tunnel 211 (S503: YES, S505). At this time, the edge router A101 sets information for identifying the tunnel of the downstream A tunnel 211 in the tunnel identifier 401 of the reception tunnel information 116 (S504) (FIG. 4A). Since the packet addressed to the user B 206 accommodated by the edge router A 101 is received from the core NW connection interface 118, this packet matches the condition of the fourth record of the DPI analysis packet detection condition 115 shown in FIG. (S507: match).

しかし、当該4つ目のレコードの転送先トンネル304が「下りAトンネル211」であるのに対して、受信トンネル情報116のトンネル識別子401が「下りAトンネル211」であり(S508:一致)、同一トンネルへの折り返しとなる。このことは、当該受信したパケットが既にエッジルータA101において一度上記の4つ目のレコードの条件と一致したと判定され、DPIゲートウェイルータ203に送信されたこと、すなわち、このパケットをこれからDPIゲートウェイルータ203に送信することによってループが発生することを意味する。このため、エッジルータA101はパケットのカプセル化を行わず、カプセル化されていないパケットの宛先であるユーザB206にパケットを転送する(S512)。   However, while the transfer destination tunnel 304 of the fourth record is “downlink A tunnel 211”, the tunnel identifier 401 of the reception tunnel information 116 is “downlink A tunnel 211” (S508: match), The return to the same tunnel. This means that the received packet has already been judged once by the edge router A101 to match the condition of the fourth record, and has been transmitted to the DPI gateway router 203, that is, the packet has now been transmitted to the DPI gateway router 203. The transmission to 203 indicates that a loop occurs. Therefore, the edge router A101 does not encapsulate the packet, and transfers the packet to the user B206 that is the destination of the unencapsulated packet (S512).

フローF122は、エッジルータA101に収容されるユーザA205が、エッジルータB102に収容されるユーザC207にパケットを送信した場合の中継経路を示している。   The flow F122 shows a relay route when the user A205 accommodated in the edge router A101 transmits a packet to the user C207 accommodated in the edge router B102.

ユーザA205がパケットを送信してから、DPI装置204がユーザからパケットを受信した時の解析を行い、上りAトンネル210を経由してエッジルータA101に転送されるまでの処理は、ユーザB206への送信時と同一であるため、説明を省略する。   The processing from when the user A 205 transmits the packet to when the DPI device 204 receives the packet from the user and the packet is forwarded to the edge router A 101 via the uplink A tunnel 210 is processed by the user B 206. Since this is the same as at the time of transmission, the description is omitted.

エッジルータA101は、上りAトンネル210を経由して受信したパケットをデカプセル化する(S503:YES、S505)。この際、エッジルータA101は、受信トンネル情報116のトンネル識別子401に、上りAトンネル210のトンネルを識別する情報を設定する(S504)。宛先がエッジルータA101の収容するユーザではないパケットをコアNW接続インタフェース118から受け取ったため、このパケットは図3(a)に示すDPI解析パケット検出条件115のいずれのレコードの条件とも一致しない(S507:不一致)。従って、エッジルータA101は、カプセル化されていないパケットの宛先であるユーザB206に転送するため、ルーティングテーブルに従い、ユーザB206を収容するエッジルータB102にパケットを転送する。   The edge router A101 decapsulates the packet received via the upstream A tunnel 210 (S503: YES, S505). At this time, the edge router A101 sets information for identifying the tunnel of the uplink A tunnel 210 in the tunnel identifier 401 of the reception tunnel information 116 (S504). Since a packet whose destination is not a user accommodated by the edge router A 101 is received from the core NW connection interface 118, this packet does not match any record condition of the DPI analysis packet detection condition 115 shown in FIG. 3A (S507: Discrepancy). Therefore, the edge router A101 transfers the packet to the edge router B102 accommodating the user B206 according to the routing table in order to transfer the packet to the user B206, which is the destination of the unencapsulated packet.

エッジルータB102は、受信したパケットがカプセル化されていないため(S503:NO)、デカプセル化しない。エッジルータB102は、エッジルータB102が収容するユーザC207を宛先とするパケットをコアNW接続インタフェース118から受け取ったため、このパケットは図3(b)に示すDPI解析パケット検出条件115の2つ目のレコードの条件と一致する(S507:「一致」)。また、当該2つ目のレコードの転送先トンネル304が「下りBトンネル213」であるのに対して、受信トンネル情報116にトンネル識別子401が設定されていないため(S508:「未設定」)、エッジルータB102は、下りBトンネル213宛にパケットをカプセル化する(S510)。エッジルータB102は、カプセル化したパケットを下りBトンネル213を経由してDPIゲートウェイルータ203に転送する(S512)。   The edge router B102 does not decapsulate the received packet since it is not encapsulated (S503: NO). Since the edge router B102 has received from the core NW connection interface 118 a packet addressed to the user C207 accommodated in the edge router B102, this packet is the second record of the DPI analysis packet detection condition 115 shown in FIG. (S507: "match"). Further, since the transfer destination tunnel 304 of the second record is the “downbound B tunnel 213”, the tunnel identifier 401 is not set in the reception tunnel information 116 (S508: “not set”), The edge router B102 encapsulates the packet to the downstream B tunnel 213 (S510). The edge router B102 transfers the encapsulated packet to the DPI gateway router 203 via the downstream B tunnel 213 (S512).

DPIゲートウェイルータ203は、下りBトンネル213から受信したパケットを、回線209を経由してDPI装置204に転送する。   The DPI gateway router 203 transfers the packet received from the downlink B tunnel 213 to the DPI device 204 via the line 209.

DPI装置204は、回線209を経由して受信したパケットに対して、ユーザにパケットを中継する時の解析を行い、回線208を経由してDPIゲートウェイルータ203に転送する。   The DPI device 204 analyzes the packet received via the line 209 when relaying the packet to the user, and transfers the packet to the DPI gateway router 203 via the line 208.

DPIゲートウェイルータ203は、回線208を経由してDPI装置204から受信したパケットを、下りBトンネル213を経由してエッジルータB102に転送する。   The DPI gateway router 203 transfers the packet received from the DPI device 204 via the line 208 to the edge router B 102 via the downstream B tunnel 213.

エッジルータB102は、下りBトンネル213を経由して受信したパケットをデカプセル化する(S503:YES、S505)。この際、エッジルータB102は、受信トンネル情報116のトンネル識別子401に、下りBトンネル213のトンネルを識別する情報を設定する(S504)(図4(b))。エッジルータB102が収容するユーザC207を宛先とするパケットをコアNW接続インタフェース118から受け取ったため、このパケットは図3(b)に示すDPI解析パケット検出条件115の2つ目のレコードの条件と一致する(S507:一致)。   The edge router B102 decapsulates the packet received via the downstream B tunnel 213 (S503: YES, S505). At this time, the edge router B102 sets information for identifying the tunnel of the downlink B tunnel 213 in the tunnel identifier 401 of the reception tunnel information 116 (S504) (FIG. 4B). Since the packet addressed to the user C 207 accommodated by the edge router B 102 is received from the core NW connection interface 118, this packet matches the condition of the second record of the DPI analysis packet detection condition 115 shown in FIG. (S507: match).

しかし、当該2つ目のレコードの転送先トンネル304が「下りBトンネル213」であるのに対して、受信トンネル情報116のトンネル識別子401が「下りBトンネル213」であり(S508:一致)、同一トンネルへの折り返しとなる。このことは、当該受信したパケットが既にエッジルータB102において一度上記の2つ目のレコードの条件と一致したと判定され、DPIゲートウェイルータ203に送信されたこと、すなわち、このパケットをこれからDPIゲートウェイルータ203に送信することによってループが発生することを意味する。このため、エッジルータB102はパケットのカプセル化を行わない。エッジルータB102は、カプセル化されていないパケットの宛先であるユーザC207にパケットを転送する(S512)。   However, while the transfer destination tunnel 304 of the second record is “downbound B tunnel 213”, the tunnel identifier 401 of the received tunnel information 116 is “downbound B tunnel 213” (S508: match), The return to the same tunnel. This means that the received packet has already been judged once by the edge router B102 to match the condition of the above-mentioned second record, and has been transmitted to the DPI gateway router 203, that is, the packet has now been transmitted to the DPI gateway router 203. The transmission to 203 indicates that a loop occurs. Therefore, the edge router B102 does not encapsulate the packet. The edge router B102 transfers the packet to the user C207, which is the destination of the unencapsulated packet (S512).

以上のように、本実施例では、受信トンネル情報116を用いることで、同一トンネルへの折り返しを抑止できるため、同じトンネルに折り返し続けることで発生するルーティングループを防ぎ、期待する宛先に正しく転送することが可能である。この処理を実現するために、DPI装置204は、DPI解析パケット検出条件を保持する必要も、それに基づいてパケットにタグを付加する必要もない。   As described above, in the present embodiment, the return to the same tunnel can be suppressed by using the reception tunnel information 116, so that the routing loop caused by continuing to return to the same tunnel is prevented, and the data is correctly transferred to the expected destination. It is possible. In order to realize this processing, the DPI device 204 does not need to hold the DPI analysis packet detection condition and does not need to add a tag to the packet based on the condition.

以下において、本発明の実施例2を図6及び図7を用いて説明する。以下に説明する相違点を除き、実施例2のシステムの各部は、図1〜図5に示された実施例1の同一の符号を付された各部と同一の機能を有するため、それらの説明は省略する。   Hereinafter, a second embodiment of the present invention will be described with reference to FIGS. Except for the differences described below, the components of the system according to the second embodiment have the same functions as the components denoted by the same reference numerals in the first embodiment illustrated in FIGS. 1 to 5. Is omitted.

実施例1において、DPIゲートウェイルータ203は、エッジルータ100からトンネルを経由して受信したパケットをDPI装置204に送信し、そのパケットの解析が終了してDPI装置204から送信されたパケットを、エッジルータ100から受信した時と同じトンネルを経由してエッジルータ100に送信していた。実施例2は、DPIゲートウェイルータ203が、エッジルータ100から受信した時のトンネルと対となる反対側のトンネルを使用してエッジルータ100に送信することによって発生するルーティングループを解消する。   In the first embodiment, the DPI gateway router 203 transmits a packet received from the edge router 100 via the tunnel to the DPI device 204, and analyzes the packet and transmits the packet transmitted from the DPI device 204 to the edge device. The packet was transmitted to the edge router 100 via the same tunnel as that received from the router 100. The second embodiment eliminates a routing loop caused by the DPI gateway router 203 transmitting to the edge router 100 using the opposite tunnel that is paired with the tunnel received from the edge router 100.

図5において説明した本発明の実施例1のエッジルータ100のパケット受信時の処理のフローと、実施例2のエッジルータ100のパケット受信時の処理のフローの相違点を説明する。   The difference between the flow of processing performed by the edge router 100 according to the first embodiment of the present invention when receiving a packet described in FIG. 5 and the flow of processing performed when the edge router 100 according to the second embodiment receives a packet will be described.

実施例2のエッジルータ100は、送信時に経由したものと対となる反対側のトンネルを経由してDPIゲートウェイルータ203からパケットを受信するため、エッジルータ100とDPI装置204間のルーティングループは、エッジルータ100が受信時のトンネルと対となる反対側のトンネルに折り返す状況において発生する。   Since the edge router 100 according to the second embodiment receives a packet from the DPI gateway router 203 via a tunnel on the opposite side that is paired with the one passed at the time of transmission, the routing loop between the edge router 100 and the DPI device 204 This occurs in a situation where the edge router 100 returns to the tunnel on the opposite side that is paired with the tunnel at the time of reception.

従って、実施例1の図5のS508において、受信トンネル情報116のトンネル識別子401と、DPI解析パケット検出条件115の転送先トンネル304が一致する場合にカプセル化を抑止していたところを、一致しない場合にカプセル化を抑止するように処理を変えるだけで、ルーティングループを解消することができる。具体的には、S508の処理において、転送先トンネル304とトンネル識別子401とが一致したか、又は、トンネル識別子401に値が設定されていない場合、パケット検出部112は、S509及びS510を実行し、その後、S511を実行する。一方、転送先トンネル304とトンネル識別子401とが一致しない場合、パケット検出部112は、S509及びS510を実行せずにS511を実行する。   Therefore, in S508 of FIG. 5 of the first embodiment, the case where the encapsulation is suppressed when the tunnel identifier 401 of the reception tunnel information 116 matches the transfer destination tunnel 304 of the DPI analysis packet detection condition 115 does not match. In such a case, the routing loop can be eliminated only by changing the processing so as to suppress the encapsulation. Specifically, in the process of S508, if the transfer destination tunnel 304 matches the tunnel identifier 401 or if no value is set in the tunnel identifier 401, the packet detection unit 112 executes S509 and S510. After that, S511 is executed. On the other hand, when the transfer destination tunnel 304 and the tunnel identifier 401 do not match, the packet detection unit 112 executes S511 without executing S509 and S510.

図6は、本発明の実施例2のネットワークシステムの構成図である。   FIG. 6 is a configuration diagram of the network system according to the second embodiment of the present invention.

実施例2のネットワークシステムにおける装置の構成は、実施例1のネットワークシステムの構成図に示したものと同様である。但し、実施例2のDPIゲートウェイルータ203は、エッジルータ100にパケットを送信するときに、実施例1のDPIゲートウェイルータ203と異なり、受信時のトンネルと対となる反対側のトンネルを経由して送信する。   The configuration of the devices in the network system of the second embodiment is the same as that shown in the configuration diagram of the network system of the first embodiment. However, unlike the DPI gateway router 203 of the first embodiment, the DPI gateway router 203 of the second embodiment transmits a packet to the edge router 100 via a tunnel on the opposite side that is paired with the tunnel at the time of reception. Send.

図6における、ユーザが送信するパケットのDPI解析手順を具体的に説明する。   The DPI analysis procedure of the packet transmitted by the user in FIG. 6 will be specifically described.

図3(a)は、エッジルータA101があらかじめ保持するDPI解析パケット検出条件115のレコードを示している。   FIG. 3A shows a record of the DPI analysis packet detection condition 115 held in advance by the edge router A101.

図3(b)は、エッジルータB102があらかじめ保持するDPI解析パケット検出条件115のレコードを示している。   FIG. 3B shows a record of the DPI analysis packet detection condition 115 held in advance by the edge router B102.

図7(a)、及び図7(b)は、本発明の実施例2のエッジルータ100の受信トンネル情報116の説明図である。   FIGS. 7A and 7B are explanatory diagrams of the reception tunnel information 116 of the edge router 100 according to the second embodiment of the present invention.

具体的には、図7(a)は、エッジルータA101の処理途中における受信トンネル情報116の状態を示している。   Specifically, FIG. 7A shows the state of the reception tunnel information 116 during the processing of the edge router A101.

図7(b)は、エッジルータB102の処理途中における受信トンネル情報116の状態を示している。   FIG. 7B shows the state of the reception tunnel information 116 during the processing of the edge router B102.

受信トンネル情報116が図7(a)、及び図7(b)の状態になるタイミングは、以下の文中にて説明する。   The timing at which the reception tunnel information 116 enters the state shown in FIGS. 7A and 7B will be described in the following text.

フローF601は、エッジルータA101に収容されるユーザA205が、同じくエッジルータA101に収容されるユーザB206にパケットを送信した場合の中継経路を示している。   Flow F601 shows a relay route when the user A205 accommodated in the edge router A101 transmits a packet to the user B206 also accommodated in the edge router A101.

ユーザA205が送信したパケットは、エッジルータA101のアクセスNW接続インタフェース117によって受信される。エッジルータA101は、受信したパケットがカプセル化されていないため、デカプセル化しない(S503:NO)。エッジルータA101は、エッジルータA101が収容するユーザA205を送信元とするパケットをアクセスNW接続インタフェース117から受け取ったため、このパケットは図3(a)に示すDPI解析パケット検出条件115の1つ目のレコードの条件と一致する(S507:一致)。また、転送先トンネル304が上りAトンネル210に対して、受信トンネル情報116にトンネル識別子401が設定されていないため(S508:未設定)、エッジルータA101は、上りAトンネル210宛にパケットをカプセル化する(S510)。エッジルータA101は、カプセル化したパケットを上りAトンネル210を経由してDPIゲートウェイルータ203に転送する(S512)。   The packet transmitted by the user A205 is received by the access NW connection interface 117 of the edge router A101. The edge router A101 does not decapsulate the received packet because it is not encapsulated (S503: NO). Since the edge router A101 has received from the access NW connection interface 117 a packet addressed to the user A205 accommodated in the edge router A101, this packet is the first of the DPI analysis packet detection conditions 115 shown in FIG. It matches the condition of the record (S507: match). Also, since the tunnel identifier 401 is not set in the reception tunnel information 116 for the transfer destination tunnel 304 with respect to the uplink A tunnel 210 (S508: not set), the edge router A101 encapsulates the packet to the uplink A tunnel 210. (S510). The edge router A101 transfers the encapsulated packet to the DPI gateway router 203 via the uplink A tunnel 210 (S512).

DPIゲートウェイルータ203は、上りAトンネル210から受信したパケットを、回線208を経由してDPI装置204に転送する。   The DPI gateway router 203 transfers the packet received from the uplink A tunnel 210 to the DPI device 204 via the line 208.

DPI装置204は、回線208を経由して受信したパケットに対して、ユーザからパケットを受信した時の解析を行い、回線209を経由してDPIゲートウェイルータ203に転送する。   The DPI device 204 analyzes the packet received via the line 208 when the packet is received from the user, and transfers the packet to the DPI gateway router 203 via the line 209.

DPIゲートウェイルータ203は、回線209を経由してDPI装置204から受信したパケットを、下りAトンネル211を経由してエッジルータA101に転送する。   The DPI gateway router 203 transfers the packet received from the DPI device 204 via the line 209 to the edge router A 101 via the downstream A tunnel 211.

エッジルータA101は、下りAトンネル211を経由して受信したパケットをデカプセル化する(S503:YES、S505)。この際、エッジルータA101は、受信トンネル情報116のトンネル識別子401に、下りAトンネル211のトンネルを識別する情報を設定する(S504)。エッジルータA101が収容するユーザB206を宛先とするパケットをコアNW接続インタフェース118から受け取ったため、このパケットは図3(a)に示すDPI解析パケット検出条件115の4つ目のレコードの条件と一致する(S507:一致)。また、当該4つ目のレコードの転送先トンネル304が「下りAトンネル211」であるのに対して、受信トンネル情報116のトンネル識別子401が「下りAトンネル211」であり(S508:一致)、同一トンネルへの折り返しとなることから、パケットをカプセル化する(S510)。エッジルータA101は、カプセル化したパケットを下りAトンネル211を経由してDPIゲートウェイルータ203に転送する(S512)。   The edge router A101 decapsulates the packet received via the downstream A tunnel 211 (S503: YES, S505). At this time, the edge router A101 sets information for identifying the tunnel of the downstream A tunnel 211 in the tunnel identifier 401 of the reception tunnel information 116 (S504). Since the packet addressed to the user B 206 accommodated by the edge router A 101 is received from the core NW connection interface 118, this packet matches the condition of the fourth record of the DPI analysis packet detection condition 115 shown in FIG. (S507: match). Further, while the transfer destination tunnel 304 of the fourth record is “downlink A tunnel 211”, the tunnel identifier 401 of the reception tunnel information 116 is “downlink A tunnel 211” (S508: match), Since the return is made to the same tunnel, the packet is encapsulated (S510). The edge router A101 transfers the encapsulated packet to the DPI gateway router 203 via the downstream A tunnel 211 (S512).

DPIゲートウェイルータ203は、下りAトンネル211から受信したパケットを、回線209を経由してDPI装置204に転送する。   The DPI gateway router 203 transfers the packet received from the downstream A tunnel 211 to the DPI device 204 via the line 209.

DPI装置204は、回線209を経由して受信したパケットに対して、ユーザにパケットを中継する時の解析を行い、回線208を経由してDPIゲートウェイルータ203に転送する。   The DPI device 204 analyzes the packet received via the line 209 when relaying the packet to the user, and transfers the packet to the DPI gateway router 203 via the line 208.

DPIゲートウェイルータ203は、回線208を経由してDPI装置204から受信したパケットを、上りAトンネル210を経由してエッジルータA101に転送する。   The DPI gateway router 203 transfers the packet received from the DPI device 204 via the line 208 to the edge router A 101 via the upstream A tunnel 210.

エッジルータA101は、上りAトンネル210を経由して受信したパケットをデカプセル化する(S503:YES、S505)。この際、エッジルータA101は、受信トンネル情報116のトンネル識別子401に、上りAトンネル210のトンネルを識別する情報を設定する(S504)(図7(a))。エッジルータA101が収容するユーザB206を宛先とするパケットをコアNW接続インタフェース118から受け取ったため、このパケットは図3(a)に示すDPI解析パケット検出条件115の4つ目のレコードの条件と一致する(S507:一致)。   The edge router A101 decapsulates the packet received via the upstream A tunnel 210 (S503: YES, S505). At this time, the edge router A101 sets information for identifying the tunnel of the uplink A tunnel 210 in the tunnel identifier 401 of the reception tunnel information 116 (S504) (FIG. 7A). Since the packet addressed to the user B 206 accommodated by the edge router A 101 is received from the core NW connection interface 118, this packet matches the condition of the fourth record of the DPI analysis packet detection condition 115 shown in FIG. (S507: match).

しかし、当該4つ目のレコードの転送先トンネル304が「下りAトンネル211」であるのに対して、受信トンネル情報116のトンネル識別子401が「上りAトンネル210」であり(S508:不一致)、異なるトンネルへの折り返しとなる。このことは、当該受信したパケットが既にエッジルータA101において一度上記の4つ目のレコードの条件と一致したと判定され、DPIゲートウェイルータ203に送信されたこと、すなわち、このパケットをこれからDPIゲートウェイルータ203に送信することによってループが発生することを意味する。このため、エッジルータA101はパケットのカプセル化を行わず、カプセル化されていないパケットの宛先であるユーザB206にパケットを転送する(S512)。   However, while the transfer destination tunnel 304 of the fourth record is “downlink A tunnel 211”, the tunnel identifier 401 of the reception tunnel information 116 is “uplink A tunnel 210” (S508: mismatch), Return to a different tunnel. This means that the received packet has already been judged once by the edge router A101 to match the condition of the fourth record, and has been transmitted to the DPI gateway router 203. The transmission to 203 indicates that a loop occurs. For this reason, the edge router A101 does not encapsulate the packet, and transfers the packet to the user B206 that is the destination of the unencapsulated packet (S512).

フローF602は、エッジルータA101に収容されるユーザA205が、エッジルータB102に収容されるユーザC207にパケットを送信した場合の中継経路を示している。   A flow F602 indicates a relay route when the user A205 accommodated in the edge router A101 transmits a packet to the user C207 accommodated in the edge router B102.

ユーザA205がパケットを送信してから、DPI装置204がユーザからパケットを受信した時の解析を行い、下りAトンネル211を経由してエッジルータA101に転送されるまでの処理は、ユーザB206への送信時と同一であるため、説明を省略する。   The processing from when the user A 205 transmits the packet to when the DPI device 204 receives the packet from the user and the packet is forwarded to the edge router A 101 via the downstream A tunnel 211 is processed by the user B 206. Since this is the same as at the time of transmission, the description is omitted.

エッジルータA101は、下りAトンネル211を経由して受信したパケットをデカプセル化する(S503:YES、S505)。この際、エッジルータA101は、受信トンネル情報116のトンネル識別子401に、下りAトンネル211のトンネルを識別する情報を設定する(S504)。宛先がエッジルータA101の収容するユーザではないパケットをコアNW接続インタフェース118から受け取ったため、このパケットは図3(a)に示すDPI解析パケット検出条件115のいずれのレコードの条件とも一致しない(S507:不一致)。従って、エッジルータA101は、カプセル化されていないパケットの宛先であるユーザB206に転送するため、ルーティングテーブルに従い、ユーザB206を収容するエッジルータB102にパケットを転送する。   The edge router A101 decapsulates the packet received via the downstream A tunnel 211 (S503: YES, S505). At this time, the edge router A101 sets information for identifying the tunnel of the downstream A tunnel 211 in the tunnel identifier 401 of the reception tunnel information 116 (S504). Since a packet whose destination is not a user accommodated by the edge router A 101 is received from the core NW connection interface 118, this packet does not match any record condition of the DPI analysis packet detection condition 115 shown in FIG. 3A (S507: Discrepancy). Therefore, the edge router A101 transfers the packet to the edge router B102 accommodating the user B206 according to the routing table in order to transfer the packet to the user B206, which is the destination of the unencapsulated packet.

エッジルータB102は、受信したパケットがカプセル化されていないため(S503:NO)、デカプセル化しない。エッジルータB102は、エッジルータB102が収容するユーザC207を宛先とするパケットをコアNW接続インタフェース118から受け取ったため、このパケットは図3(b)に示すDPI解析パケット検出条件115の2つ目のレコードの条件と一致する(S507:「一致」)。また、当該2つ目のレコードの転送先トンネル304が「下りBトンネル213」であるのに対して、受信トンネル情報116にトンネル識別子401が設定されていないため(S508:「未設定」)、エッジルータB102は、下りBトンネル213宛にパケットをカプセル化する(S510)。エッジルータB102は、カプセル化したパケットを下りBトンネル213を経由してDPIゲートウェイルータ203に転送する(S512)。   The edge router B102 does not decapsulate the received packet since it is not encapsulated (S503: NO). Since the edge router B102 has received from the core NW connection interface 118 a packet addressed to the user C207 accommodated by the edge router B102, this packet is the second record of the DPI analysis packet detection condition 115 shown in FIG. (S507: "match"). Further, since the transfer destination tunnel 304 of the second record is the “downbound B tunnel 213”, the tunnel identifier 401 is not set in the reception tunnel information 116 (S508: “not set”), The edge router B102 encapsulates the packet to the downstream B tunnel 213 (S510). The edge router B102 transfers the encapsulated packet to the DPI gateway router 203 via the downstream B tunnel 213 (S512).

DPIゲートウェイルータ203は、下りBトンネル213から受信したパケットを、回線209を経由してDPI装置204に転送する。   The DPI gateway router 203 transfers the packet received from the downlink B tunnel 213 to the DPI device 204 via the line 209.

DPI装置204は、回線209を経由して受信したパケットに対して、ユーザにパケットを中継する時の解析を行い、回線208を経由してDPIゲートウェイルータ203に転送する。   The DPI device 204 analyzes the packet received via the line 209 when relaying the packet to the user, and transfers the packet to the DPI gateway router 203 via the line 208.

DPIゲートウェイルータ203は、回線208を経由してDPI装置204から受信したパケットを、上りBトンネル212を経由してエッジルータB102に転送する。   The DPI gateway router 203 transfers the packet received from the DPI device 204 via the line 208 to the edge router B 102 via the up B tunnel 212.

エッジルータB102は、上りBトンネル212を経由して受信したパケットをデカプセル化する(S503:YES、S505)。この際、エッジルータB102は、受信トンネル情報116のトンネル識別子401に、上りBトンネル212のトンネルを識別する情報を設定する(S504)(図7(b))。エッジルータB102が収容するユーザC207を宛先とするパケットをコアNW接続インタフェース118から受け取ったため、このパケットは図3(b)に示すDPI解析パケット検出条件115の2つ目のレコードの条件と一致する(S507:一致)。   The edge router B102 decapsulates the packet received via the uplink B tunnel 212 (S503: YES, S505). At this time, the edge router B102 sets information for identifying the tunnel of the uplink B tunnel 212 in the tunnel identifier 401 of the reception tunnel information 116 (S504) (FIG. 7B). Since the packet addressed to the user C 207 accommodated by the edge router B 102 is received from the core NW connection interface 118, this packet matches the condition of the second record of the DPI analysis packet detection condition 115 shown in FIG. (S507: match).

しかし、当該2つ目のレコードの転送先トンネル304が「下りBトンネル213」であるのに対して、受信トンネル情報116のトンネル識別子401が「上りBトンネル212」であり(S508:不一致)、異なるトンネルへの折り返しとなる。このことは、当該受信したパケットが既にエッジルータB102において一度上記の2つ目のレコードの条件と一致したと判定され、DPIゲートウェイルータ203に送信されたこと、すなわち、このパケットをこれからDPIゲートウェイルータ203に送信することによってループが発生することを意味する。このため、エッジルータB102はパケットのカプセル化を行わず、カプセル化されていないパケットの宛先であるユーザC207にパケットを転送する(S512)。   However, while the transfer destination tunnel 304 of the second record is “downbound B tunnel 213”, the tunnel identifier 401 of the received tunnel information 116 is “upbound B tunnel 212” (S508: mismatch), Return to a different tunnel. This means that the received packet has already been judged once by the edge router B102 to match the condition of the above-mentioned second record, and has been transmitted to the DPI gateway router 203, that is, the packet has now been transmitted to the DPI gateway router 203. The transmission to 203 indicates that a loop occurs. Therefore, the edge router B102 does not encapsulate the packet, and transfers the packet to the user C207, which is the destination of the unencapsulated packet (S512).

以上のように、本実施例では、受信トンネル情報116を用いることで、異なるトンネルへの折り返しを抑止できるため、DPIゲートウェイルータ203から折り返されるパケットが受信時と異なるトンネルを経由する場合であっても、ルーティングループを防ぎ、期待する宛先に正しく転送することが可能である。この処理を実現するために、DPI装置204は、DPI解析パケット検出条件を保持する必要も、それに基づいてパケットにタグを付加する必要もない。   As described above, in the present embodiment, since the return to a different tunnel can be suppressed by using the reception tunnel information 116, the packet returned from the DPI gateway router 203 passes through a tunnel different from that at the time of reception. In addition, it is possible to prevent a routing loop and to correctly transfer to an expected destination. In order to realize this processing, the DPI device 204 does not need to hold the DPI analysis packet detection condition and does not need to add a tag to the packet based on the condition.

なお、ここまでに説明した通り、実施例1と実施例2の相違点は、以下の2点である。すなわち、第1に、実施例1のDPIゲートウェイルータ203が、エッジルータ100からトンネルを経由して受信したパケットをDPI装置204に送信し、DPI装置204から戻ってきたパケットを受信時と同じトンネルを経由してエッジルータに返すのに対して、実施例2のDPIゲートウェイルータ203は、DPI装置204から戻ってきたパケットを受信時のトンネルと対をなす反対側のトンネルを経由してエッジルータに返す点である。第2に、実施例1のエッジルータ100が、S508において、転送先トンネル304とトンネル識別子401とが一致する場合にS509及びS510を実行しないのに対して、実施例1のエッジルータ100は、転送先トンネル304とトンネル識別子401とが一致しない場合にS509及びS510を実行しない点である。   As described so far, the first embodiment differs from the second embodiment in the following two points. That is, first, the DPI gateway router 203 of the first embodiment transmits a packet received from the edge router 100 via the tunnel to the DPI device 204, and receives a packet returned from the DPI device 204 in the same tunnel as when the packet was received. In contrast, the DPI gateway router 203 according to the second embodiment transmits the packet returned from the DPI device 204 to the edge router via the opposite tunnel paired with the tunnel at the time of reception. Is the point to return to. Second, while the edge router 100 of the first embodiment does not execute S509 and S510 when the transfer destination tunnel 304 and the tunnel identifier 401 match in S508, the edge router 100 of the first embodiment S509 and S510 are not executed when the transfer destination tunnel 304 and the tunnel identifier 401 do not match.

このため、例えば、S508の判定条件として実施例1の判定条件及び実施例2の判定条件の両方を用意し、設定によって一方を選択可能となるようにエッジルータ100を設計してもよい。このようなエッジルータ100を用いることによって、例えば実施例1のように動作するDPIゲートウェイルータ203が使用されたコアネットワーク200においては、実施例1の判定条件を使用し、実施例2のように動作するDPIゲートウェイルータ203が使用されたコアネットワーク200においては、実施例2の判定条件を使用するように、エッジルータ100の設定を切り替えることができる。このようなエッジルータを使用することによって、コアネットワーク200にいずれのDPIゲートウェイルータ203が使用された場合にも、DPI装置204がパケットにタグを付加することなくループの発生を防止することができる。   For this reason, for example, both the determination conditions of the first embodiment and the determination conditions of the second embodiment may be prepared as the determination conditions of S508, and the edge router 100 may be designed so that one can be selected by setting. By using such an edge router 100, for example, in the core network 200 in which the DPI gateway router 203 operating as in the first embodiment is used, the determination condition of the first embodiment is used, and as in the second embodiment, In the core network 200 in which the operating DPI gateway router 203 is used, the setting of the edge router 100 can be switched so as to use the determination condition of the second embodiment. By using such an edge router, no matter which DPI gateway router 203 is used in the core network 200, it is possible to prevent a loop from occurring without the DPI device 204 adding a tag to a packet. .

なお、本発明は上記した実施例に限定されるものではなく、様々な変形例が含まれる。例えば、上記した実施例は本発明のより良い理解のために詳細に説明したのであり、必ずしも説明の全ての構成を備えるものに限定されものではない。また、ある実施例の構成の一部を他の実施例の構成に置き換えることが可能であり、また、ある実施例の構成に他の実施例の構成を加えることが可能である。また、各実施例の構成の一部について、他の構成の追加・削除・置換をすることが可能である。   Note that the present invention is not limited to the above-described embodiment, and includes various modifications. For example, the embodiments described above have been described in detail for better understanding of the present invention, and are not necessarily limited to those having all the configurations described. In addition, a part of the configuration of one embodiment can be replaced with the configuration of another embodiment, and the configuration of one embodiment can be added to the configuration of another embodiment. Further, for a part of the configuration of each embodiment, it is possible to add / delete / replace another configuration.

また、上記の各構成、機能、処理部、処理手段等は、それらの一部又は全部を、例えば集積回路で設計する等によってハードウェアで実現してもよい。また、上記の各構成、機能等は、プロセッサがそれぞれの機能を実現するプログラムを解釈し、実行することによってソフトウェアで実現してもよい。各機能を実現するプログラム、テーブル、ファイル等の情報は、不揮発性半導体メモリ、ハードディスクドライブ、SSD(Solid State Drive)等の記憶デバイス、または、ICカード、SDカード、DVD等の計算機読み取り可能な非一時的データ記憶媒体に格納することができる。   In addition, each of the above-described configurations, functions, processing units, processing means, and the like may be partially or entirely realized by hardware by, for example, designing an integrated circuit. Further, each of the above configurations, functions, and the like may be implemented by software by a processor interpreting and executing a program that implements each function. Information such as a program, a table, and a file for realizing each function is stored in a non-volatile semiconductor memory, a hard disk drive, a storage device such as an SSD (Solid State Drive), or a non-readable computer such as an IC card, an SD card, and a DVD. It can be stored on a temporary data storage medium.

また、制御線及び情報線は説明上必要と考えられるものを示しており、製品上必ずしも全ての制御線及び情報線を示しているとは限らない。実際にはほとんど全ての構成が相互に接続されていると考えてもよい。   In addition, the control lines and the information lines are shown to be necessary for the description, and do not necessarily indicate all the control lines and the information lines on the product. In fact, it may be considered that almost all components are connected to each other.

100 エッジルータ
101 エッジルータA
102 エッジルータB
111 経路検索部
112 パケット検出部
113 トンネル制御部
114 ルーティングテーブル
115 DPI解析パケット検出条件
116 受信トンネル情報
117 アクセスNW接続インタフェース
118 コアNW接続インタフェース
121 CPU
122 メモリ
123 ネットワークインタフェース
200 コアネットワーク
201 アクセスネットワークA
202 アクセスネットワークB
203 DPIゲートウェイルータ
204 DPI装置
205〜207 ユーザ
210 上りAトンネル
211 下りAトンネル
212 上りBトンネル
213 下りBトンネル
100 edge router 101 edge router A
102 Edge Router B
111 Route search unit 112 Packet detection unit 113 Tunnel control unit 114 Routing table 115 DPI analysis packet detection condition 116 Received tunnel information 117 Access NW connection interface 118 Core NW connection interface 121 CPU
122 memory 123 network interface 200 core network 201 access network A
202 Access Network B
203 DPI gateway router 204 DPI devices 205 to 207 User 210 Up A tunnel 211 Down A tunnel 212 Up B tunnel 213 Down B tunnel

Claims (4)

プロセッサと、前記プロセッサに接続されるメモリと、前記プロセッサに接続されるネットワークインタフェースと、を有するパケット中継装置であって、
前記メモリは、解析の対象となるパケットの検出条件と、前記検出条件を満たすパケットが送信されるトンネルの識別子と、ルーティングテーブルと、を保持し、
前記プロセッサは、
受信したパケットがカプセル化されている場合、前記受信したパケットのカプセル化ヘッダに含まれる、前記受信したパケットが経由したトンネルの識別子を受信トンネル情報として前記メモリに保持して、前記受信したパケットから前記カプセル化ヘッダを削除し、
前記受信したパケットが前記検出条件を満たす場合、前記検出条件を満たすパケットが送信されるトンネルの識別子と、前記受信したパケットが経由したトンネルの識別子とを比較した結果に基づいて、前記受信したパケットを、前記検出条件を満たすパケットが送信されるトンネルを経由して送信するか否かを判定し、
前記検出条件を満たすパケットが送信されるトンネルの識別子と、前記受信トンネル情報として保持されたトンネルの識別子とが同一である場合、前記受信したパケットをカプセル化せずに前記ルーティングテーブルに従って送信し、
前記検出条件を満たすパケットが送信されるトンネルの識別子と、前記受信トンネル情報として保持されたトンネルの識別子とが同一でない場合、前記検出条件を満たすパケットが送信されるトンネルの識別子を含むカプセル化ヘッダを付加することによって前記受信したパケットをカプセル化して前記ルーティングテーブルに従って送信することを特徴とするパケット中継装置。
A packet relay device having a processor, a memory connected to the processor, and a network interface connected to the processor,
The memory holds a detection condition of a packet to be analyzed, an identifier of a tunnel through which a packet satisfying the detection condition is transmitted, and a routing table ,
The processor comprises:
When the received packet is encapsulated, the identifier of the tunnel through which the received packet is included in the encapsulation header of the received packet is retained in the memory as reception tunnel information, and the received packet is Removing the encapsulation header,
If the received packet satisfies the detection condition, the received packet is determined based on a result of comparing an identifier of a tunnel through which the packet satisfying the detection condition is transmitted with an identifier of a tunnel through which the received packet passes. It is determined whether or not to transmit via a tunnel in which a packet satisfying the detection condition is transmitted ,
If the identifier of the tunnel in which the packet satisfying the detection condition is transmitted is the same as the identifier of the tunnel held as the received tunnel information, the received packet is transmitted according to the routing table without encapsulation,
If the identifier of the tunnel through which the packet satisfying the detection condition is transmitted is not the same as the identifier of the tunnel held as the received tunnel information, the encapsulation header including the identifier of the tunnel through which the packet satisfying the detection condition is transmitted. A packet relay device that encapsulates the received packet by adding a packet and transmits the packet in accordance with the routing table .
プロセッサと、前記プロセッサに接続されるメモリと、前記プロセッサに接続されるネットワークインタフェースと、を有するパケット中継装置であって、A packet relay device having a processor, a memory connected to the processor, and a network interface connected to the processor,
前記メモリは、解析の対象となるパケットの検出条件と、前記検出条件を満たすパケットが送信されるトンネルの識別子と、ルーティングテーブルと、を保持し、  The memory holds a detection condition of a packet to be analyzed, an identifier of a tunnel through which a packet satisfying the detection condition is transmitted, and a routing table,
前記プロセッサは、  The processor comprises:
受信したパケットがカプセル化されている場合、前記受信したパケットのカプセル化ヘッダに含まれる、前記受信したパケットが経由したトンネルの識別子を受信トンネル情報として前記メモリに保持して、前記受信したパケットから前記カプセル化ヘッダを削除し、  When the received packet is encapsulated, the identifier of the tunnel through which the received packet is included in the encapsulation header of the received packet is retained in the memory as reception tunnel information, and the received packet is Removing the encapsulation header,
前記受信したパケットが前記検出条件を満たす場合、前記検出条件を満たすパケットが送信されるトンネルの識別子と、前記受信したパケットが経由したトンネルの識別子とを比較した結果に基づいて、前記受信したパケットを、前記検出条件を満たすパケットが送信されるトンネルを経由して送信するか否かを判定し、  If the received packet satisfies the detection condition, the received packet is determined based on a result of comparing an identifier of a tunnel through which the packet satisfying the detection condition is transmitted with an identifier of a tunnel through which the received packet passes. It is determined whether or not to transmit via a tunnel in which a packet satisfying the detection condition is transmitted,
前記検出条件を満たすパケットが送信されるトンネルの識別子と、前記受信トンネル情報として保持されたトンネルの識別子とが同一でない場合、前記受信したパケットをカプセル化せずに前記ルーティングテーブルに従って送信し、  If the identifier of the tunnel in which the packet satisfying the detection condition is transmitted is not the same as the identifier of the tunnel held as the received tunnel information, the received packet is transmitted according to the routing table without encapsulation,
前記検出条件を満たすパケットが送信されるトンネルの識別子と、前記受信トンネル情報として保持されたトンネルの識別子とが同一である場合、前記検出条件を満たすパケットが送信されるトンネルの識別子を含むカプセル化ヘッダを付加することによって前記受信したパケットをカプセル化して前記ルーティングテーブルに従って送信することを特徴とするパケット中継装置。  If the identifier of the tunnel through which the packet satisfying the detection condition is transmitted is the same as the identifier of the tunnel held as the received tunnel information, encapsulation including the identifier of the tunnel through which the packet satisfying the detection condition is transmitted A packet relay device for encapsulating the received packet by adding a header and transmitting the packet in accordance with the routing table.
プロセッサと、前記プロセッサに接続されるメモリと、前記プロセッサに接続されるネットワークインタフェースと、を有するパケット中継装置が実行するパケット中継方法であって、A packet relay method executed by a packet relay device having a processor, a memory connected to the processor, and a network interface connected to the processor,
前記メモリは、解析の対象となるパケットの検出条件と、前記検出条件を満たすパケットが送信されるトンネルの識別子と、ルーティングテーブルと、を保持し、  The memory holds a detection condition of a packet to be analyzed, an identifier of a tunnel through which a packet satisfying the detection condition is transmitted, and a routing table,
前記パケット中継方法は、  The packet relay method,
受信したパケットがカプセル化されている場合、前記プロセッサが、前記受信したパケットのカプセル化ヘッダに含まれる、前記受信したパケットが経由したトンネルの識別子を受信トンネル情報として前記メモリに保持して、前記受信したパケットから前記カプセル化ヘッダを削除する第1手順と、  If the received packet is encapsulated, the processor may include, in the memory, an identifier of a tunnel through which the received packet has passed, which is included in an encapsulation header of the received packet, as reception tunnel information in the memory, A first procedure for removing the encapsulation header from a received packet;
前記プロセッサが、前記受信したパケットが前記検出条件を満たすか否かを判定する第2手順と、  A second procedure in which the processor determines whether the received packet satisfies the detection condition;
前記受信したパケットが前記検出条件を満たす場合、前記プロセッサが、前記検出条件を満たすパケットが送信されるトンネルの識別子と、前記受信したパケットが経由したトンネルの識別子とを比較した結果に基づいて、前記受信したパケットを、前記検出条件を満たすパケットが送信されるトンネルを経由して送信するか否かを判定する第3手順と、を含み、  If the received packet satisfies the detection condition, the processor, based on the result of comparing the identifier of the tunnel through which the packet that satisfies the detection condition is transmitted and the identifier of the tunnel through which the received packet has passed, A third step of determining whether to transmit the received packet via a tunnel through which a packet satisfying the detection condition is transmitted,
前記第3手順において、前記検出条件を満たすパケットが送信されるトンネルの識別子と、前記受信トンネル情報として保持されたトンネルの識別子とが同一である場合、前記プロセッサは、前記受信したパケットをカプセル化せずに前記ルーティングテーブルに従って送信し、  In the third step, if the identifier of the tunnel in which the packet satisfying the detection condition is transmitted is the same as the identifier of the tunnel held as the received tunnel information, the processor encapsulates the received packet. Without sending according to the routing table,
前記第3手順において、前記検出条件を満たすパケットが送信されるトンネルの識別子と、前記受信トンネル情報として保持されたトンネルの識別子とが同一でない場合、前記プロセッサは、前記検出条件を満たすパケットが送信されるトンネルの識別子を含むカプセル化ヘッダを付加することによって前記受信したパケットをカプセル化して前記ルーティングテーブルに従って送信することを特徴とするパケット中継方法。  In the third procedure, if the identifier of the tunnel through which the packet satisfying the detection condition is transmitted is not the same as the identifier of the tunnel held as the received tunnel information, the processor determines whether the packet satisfying the detection condition is transmitted. A packet relay method comprising: encapsulating the received packet by adding an encapsulation header including an identifier of a tunnel to be transmitted; and transmitting the encapsulated packet in accordance with the routing table.
プロセッサと、前記プロセッサに接続されるメモリと、前記プロセッサに接続されるネットワークインタフェースと、を有するパケット中継装置が実行するパケット中継方法であって、A packet relay method executed by a packet relay device having a processor, a memory connected to the processor, and a network interface connected to the processor,
前記メモリは、解析の対象となるパケットの検出条件と、前記検出条件を満たすパケットが送信されるトンネルの識別子と、ルーティングテーブルと、を保持し、  The memory holds a detection condition of a packet to be analyzed, an identifier of a tunnel through which a packet satisfying the detection condition is transmitted, and a routing table,
前記パケット中継方法は、  The packet relay method,
受信したパケットがカプセル化されている場合、前記プロセッサが、前記受信したパケットのカプセル化ヘッダに含まれる、前記受信したパケットが経由したトンネルの識別子を受信トンネル情報として前記メモリに保持して、前記受信したパケットから前記カプセル化ヘッダを削除する第1手順と、  If the received packet is encapsulated, the processor, in the encapsulated header of the received packet, retains the identifier of the tunnel through which the received packet has passed as reception tunnel information in the memory, A first procedure for removing the encapsulation header from a received packet;
前記プロセッサが、前記受信したパケットが前記検出条件を満たすか否かを判定する第2手順と、  A second procedure in which the processor determines whether the received packet satisfies the detection condition;
前記受信したパケットが前記検出条件を満たす場合、前記プロセッサが、前記検出条件を満たすパケットが送信されるトンネルの識別子と、前記受信したパケットが経由したトンネルの識別子とを比較した結果に基づいて、前記受信したパケットを、前記検出条件を満たすパケットが送信されるトンネルを経由して送信するか否かを判定する第3手順と、を含み、  If the received packet satisfies the detection condition, the processor, based on the result of comparing the identifier of the tunnel through which the packet that satisfies the detection condition is transmitted and the identifier of the tunnel through which the received packet has passed, A third step of determining whether to transmit the received packet via a tunnel through which a packet satisfying the detection condition is transmitted,
前記第3手順において、前記検出条件を満たすパケットが送信されるトンネルの識別子と、前記受信トンネル情報として保持されたトンネルの識別子とが同一でない場合、前記プロセッサは、前記受信したパケットをカプセル化せずに前記ルーティングテーブルに従って送信し、  In the third step, if the identifier of the tunnel through which the packet satisfying the detection condition is transmitted is not the same as the identifier of the tunnel held as the received tunnel information, the processor encapsulates the received packet. Without sending according to the routing table,
前記第3手順において、前記検出条件を満たすパケットが送信されるトンネルの識別子と、前記受信トンネル情報として保持されたトンネルの識別子とが同一である場合、前記プロセッサは、前記検出条件を満たすパケットが送信されるトンネルの識別子を含むカプセル化ヘッダを付加することによって前記受信したパケットをカプセル化して前記ルーティングテーブルに従って送信することを特徴とするパケット中継方法。  In the third procedure, if the identifier of the tunnel through which the packet satisfying the detection condition is transmitted is the same as the identifier of the tunnel held as the received tunnel information, the processor determines that the packet satisfying the detection condition is A packet relay method, wherein the received packet is encapsulated by adding an encapsulation header including an identifier of a tunnel to be transmitted, and transmitted according to the routing table.
JP2016046463A 2016-03-10 2016-03-10 Packet relay device and packet relay method Active JP6629645B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016046463A JP6629645B2 (en) 2016-03-10 2016-03-10 Packet relay device and packet relay method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016046463A JP6629645B2 (en) 2016-03-10 2016-03-10 Packet relay device and packet relay method

Publications (2)

Publication Number Publication Date
JP2017163365A JP2017163365A (en) 2017-09-14
JP6629645B2 true JP6629645B2 (en) 2020-01-15

Family

ID=59854175

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016046463A Active JP6629645B2 (en) 2016-03-10 2016-03-10 Packet relay device and packet relay method

Country Status (1)

Country Link
JP (1) JP6629645B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4778594B2 (en) * 2009-10-30 2011-09-21 ソフトバンクBb株式会社 Packet relay device, packet relay method and program

Also Published As

Publication number Publication date
JP2017163365A (en) 2017-09-14

Similar Documents

Publication Publication Date Title
CN112787931B (en) Message transmission method, proxy node and storage medium
JP6549996B2 (en) Network apparatus, communication method, and network system
CN105591982B (en) A kind of method and apparatus of message transmissions
ES2739204T3 (en) Data packet processing method, service node and delivery node
CN112019433B (en) Message forwarding method and device
WO2021088433A1 (en) Message processing method, device and system
CN108011837A (en) Message processing method and device
WO2018113425A1 (en) Method, apparatus and system for detecting time delay
CN105591971A (en) QoS implementation method and device
CN107005470A (en) Method for creating subflows of data packets
CN112737954A (en) Message processing method, device, system, equipment and storage medium
WO2018188663A1 (en) Method and device for information notification
CN116192995B (en) A message processing method, device and system
JP2006166090A (en) Communication device
JP2016508682A (en) Method and arrangement for differentiating VPN traffic across domains by QOS
JP4778594B2 (en) Packet relay device, packet relay method and program
CN112995053A (en) Method and device for sending message
CN112217685A (en) Tunnel detection method, terminal device, system, computer device and storage medium
CN115695338A (en) Method and network device for message forwarding
CN108075991B (en) Message forwarding method and device
JP6629645B2 (en) Packet relay device and packet relay method
CN107231309B (en) Obtain method, controller and the purpose switching node of SDN the whole network view
JP5907252B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROGRAM
CN115459942A (en) A flow monitoring method and device
US7561574B2 (en) Method and system for filtering packets within a tunnel

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180712

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190527

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190611

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190726

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20191119

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20191205

R150 Certificate of patent or registration of utility model

Ref document number: 6629645

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250