JP6629645B2 - Packet relay device and packet relay method - Google Patents
Packet relay device and packet relay method Download PDFInfo
- 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
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,
ユーザ端末のトラフィックのフィルタリング又は統計監視等を行うために、コアネットワークとユーザネットワークの境界に位置し、ユーザ端末を収容するパケット中継装置(いわゆるエッジルータ)が、ユーザ端末から受信した又はユーザ端末に送信するパケット又はパケットの複製を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装置に相当)に転送する。このとき、エッジルータは、当該パケットの送信元がポリシに合致する場合だけでなく、当該パケットの宛先がポリシに合致する場合にもアプリケーション識別装置に転送し、アプリケーション識別装置は宛先に対する解析が終わったときに宛先ポリシ適用済みタグを付与してエッジルータに返す。その後、エッジルータは、宛先のユーザ端末を収容するエッジルータにパケットを転送する。このパケットを受信したエッジルータは、受信したパケットから宛先ポリシ適用済みタグを削除して、再びアプリケーション識別装置に転送することなく宛先のユーザ端末に転送する。
一方、特許文献1とは別の一例として、送信元のユーザ端末を収容するエッジルータが、受信したパケットの送信元がポリシに合致する場合にそのパケットをコアネットワーク全体で共有するDPI装置に転送し、宛先のユーザ端末を収容するエッジルータが、受信したパケットの宛先がポリシに合致する場合にそのパケットを同じDPI装置に転送するという運用方法も考えられる。しかし、この場合、宛先のユーザ端末を収容するエッジルータは、受信したパケットがDPI装置から転送された(すなわち当該エッジルータから一度DPI装置に転送され、DPI装置による解析が終了して戻ってきた)ものであっても、そのパケットの宛先がポリシに合致する限り、再度DPI装置に転送してしまうため、ここでループが発生する。
On the other hand, as another example of
本発明の代表的な一例を示せば、プロセッサと、前記プロセッサに接続されるメモリと、前記プロセッサに接続されるネットワークインタフェースと、を有するパケット中継装置であって、前記メモリは、解析の対象となるパケットの検出条件と、前記検出条件を満たすパケットが送信されるトンネルの識別子と、ルーティングテーブルと、を保持し、前記プロセッサは、受信したパケットがカプセル化されている場合、前記受信したパケットのカプセル化ヘッダに含まれる、前記受信したパケットが経由したトンネルの識別子を受信トンネル情報として前記メモリに保持して、前記受信したパケットから前記カプセル化ヘッダを削除し、前記受信したパケットが前記検出条件を満たす場合、前記検出条件を満たすパケットが送信されるトンネルの識別子と、前記受信したパケットが経由したトンネルの識別子とを比較した結果に基づいて、前記受信したパケットを、前記検出条件を満たすパケットが送信されるトンネルを経由して送信するか否かを判定し、前記検出条件を満たすパケットが送信されるトンネルの識別子と、前記受信トンネル情報として保持されたトンネルの識別子とが同一である場合、前記受信したパケットをカプセル化せずに前記ルーティングテーブルに従って送信し、前記検出条件を満たすパケットが送信されるトンネルの識別子と、前記受信トンネル情報として保持されたトンネルの識別子とが同一でない場合、前記検出条件を満たすパケットが送信されるトンネルの識別子を含むカプセル化ヘッダを付加することによって前記受信したパケットをカプセル化して前記ルーティングテーブルに従って送信することを特徴とする。 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.
以下、本発明の実施例について、図面を参照しながら詳細に説明する。なお、実質的に同一の箇所には同じ符号を付与し、説明を繰り返さないこととする。 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
コアネットワーク200は、エッジルータA101、エッジルータB102、DPIゲートウェイルータ203、及びDPI装置204を有する。以下では、エッジルータA101及びエッジルータB102を総称する場合には、エッジルータ100と記載する。
The
アクセスネットワーク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
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
各装置について説明する。 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解析対象である場合は、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ゲートウェイルータ203について説明する。DPIゲートウェイルータ203は、エッジルータ100と、コアネットワーク200を介してトンネリングプロトコルによって接続される。DPIゲートウェイルータ203とエッジルータとの間には、用途の異なる2つのトンネルが確立される。1つはエッジルータ100がユーザからパケットを受信した時のDPI装置204への転送に使用され、もう1つはエッジルータ100がユーザにパケットを中継する時のDPI装置204への転送に使用される。
Next, the
図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
DPIゲートウェイルータ203は、上りトンネルから受信したパケットを回線208を経由してDPI装置204に中継する。DPIゲートウェイルータ203は、下りトンネルから受信したパケットを回線209を経由してDPI装置204に中継する。DPI装置204から折り返されたパケットは、DPIゲートウェイルータ203がエッジルータ100からパケットを受信した時と同じトンネルを介して送信する。
The
次に、ユーザについて説明する。ユーザが送受信するパケットは、DPI装置204において、解析の対象となる。ユーザが送受信するパケットは、ユーザを収容するエッジルータ100によってDPI装置204に転送される。
Next, the user will be described. Packets transmitted and received by the user are analyzed by the
次に、エッジルータ100について説明する。エッジルータ100は、アクセスネットワークを収容し、コアネットワーク200とアクセスネットワークの境界に位置する。エッジルータ100は、コアネットワーク200から受信したパケットに対して、パケットの宛先が、その宛先を収容するアクセスネットワークのDPI解析対象ユーザかを判定し、解析が必要なパケットは下りトンネルを経由してDPI装置204に転送する。エッジルータ100は、アクセスネットワークから受信したパケットに対して、パケットの送信元が、その送信元を収容するアクセスネットワークのDPI解析対象ユーザかを判定し、解析が必要なパケットは下りトンネルを経由してDPI装置204に転送する。なお、エッジルータ100の詳細は、図2で説明する。
Next, the
図2は、本発明の実施例1のエッジルータ100の全体構成の説明図である。
FIG. 2 is an explanatory diagram of the overall configuration of the
エッジルータ100は、ハードウェア構成として、CPU121、メモリ122、及びネットワークインタフェース123を有する。
The
CPU121は、メモリ122上の各種プログラムを実行し、メモリ122上の各種情報を参照する。ネットワークインタフェース123は、アクセスNW接続インタフェース117と、コアNW接続インタフェース118とに分かれており、それぞれエッジルータ100の外部とデータを通信するためのインタフェースである。アクセスNW接続インタフェース117は、アクセスネットワーク内の装置と接続される。コアNW接続インタフェース118は、コアネットワーク200内の装置と接続される。
The
CPU121上では、経路検索部111、パケット検出部112、及びトンネル制御部113が動作する。これらの機能は、対応するプログラムをCPU121が実行することによって実現される。
On the
経路検索部111は、ルーティングテーブル114を参照し、受信したパケットに設定された宛先に応じて次の転送先を決定し、パケットをネットワークインタフェース123に転送する。
The
パケット検出部112は、受信したパケットに設定されている情報から、送信元、及び宛先のユーザを特定する。パケット検出部112は、DPI解析パケット検出条件115、及び受信トンネル情報116を参照し、特定したユーザのパケットをDPI装置204に転送する必要があるかを判定する。必要がある場合は、パケットをカプセル化するために、パケットをトンネル制御部113に転送する。必要がない場合は、パケットに設定された宛先に転送するため、パケットを経路検索部111に転送する。
The
トンネル制御部113は、トンネリングプロトコルへのカプセル化、及びデカプセル化を行う。また、トンネル制御部113は、パケットをデカプセル化する際に、トンネリングプロトコルのヘッダに設定されたトンネルを識別する情報を受信トンネル情報116に設定する。デカプセル化後のパケットは、DPI装置204への転送が必要か判定するために、パケット検出部112に転送される。カプセル化後のパケットは装置外部に送信するために、経路検索部111に転送される。
The
メモリ122には、ルーティングテーブル114、DPI解析パケット検出条件115、及び、受信トンネル情報116が記憶される。
The
ルーティングテーブル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
受信トンネル情報116は、デカプセル化時にトンネルを識別する情報を一時的に保持するための格納領域である。受信トンネル情報116は、図4を参照して説明する。
The
図3(a)、及び図3(b)は、本発明の実施例1のエッジルータ100のDPI解析パケット検出条件115の説明図である。
FIGS. 3A and 3B are explanatory diagrams of the DPI analysis
DPI解析パケット検出条件115は、送信元301、宛先302、受信インタフェース303及び転送先トンネル304で構成される。送信元301は、受信したパケットに設定されたパケットの送信元を識別する情報で、例えば、IPヘッダに設定されたSource Addressフィールドの値である。宛先302は、受信したパケットに設定されたパケットの宛先を識別する情報で、例えば、IPヘッダに設定されたDestination Addressフィールドの値である。受信インタフェース303は、エッジルータ100がパケットを受信したインタフェースを識別する情報である。転送先トンネル304は、送信元301、宛先302、及び受信インタフェース303の全ての条件を満たした場合にパケットを転送するトンネルを識別する情報である。
The DPI analysis
トンネルは、トンネリングプロトコルでカプセル化する際のカプセル化ヘッダに設定される値で識別される。この値は、例えば、カプセル化後の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
図4(a)、及び図4(b)は、本発明の実施例1のエッジルータ100の受信トンネル情報116の説明図である。
FIGS. 4A and 4B are explanatory diagrams of the
受信トンネル情報116は、トンネル識別子401で構成される。トンネル識別子401は、DPI解析パケット検出条件115の転送先トンネル304と同じ形式で保持される情報である。トンネル識別子401は、トンネルを経由して受信したパケットのカプセル化ヘッダに設定された値が格納される。トンネル識別子401は、受信パケットをデカプセル化する際に設定される一時的な情報であり、パケットの転送処理が終了すると削除される。
The
図5は、本発明の実施例1のエッジルータ100のパケット受信時の処理のフローチャートである。
FIG. 5 is a flowchart of a process when the
パケット受信時の処理は、ネットワークインタフェース123が外部からのパケットを受信したタイミングでCPU121によって実行される(S501)。
The process at the time of packet reception is executed by the
まず、ネットワークインタフェース123は、受信したパケットとパケットを受信したインタフェースを識別する情報とをトンネル制御部113に転送する(S502)。
First, the
トンネル制御部113は、転送されたパケットを解析し、パケットがカプセル化されているか判定する(S503)。
The
S503の処理において、トンネル制御部113は、パケットがカプセル化されている場合は、カプセル化ヘッダに設定されたトンネルを識別する情報を受信トンネル情報116のトンネル識別子401に設定する(S504)。
In the process of S503, when the packet is encapsulated, the
トンネル制御部113は、受信したパケットをデカプセル化する(S505)。すなわち、受信したパケットからカプセル化ヘッダが削除される。
The
トンネル制御部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
パケット検出部112は、転送されたパケットを解析し、送信元のユーザ、及び宛先のユーザを特定する。パケット検出部112は、DPI解析パケット検出条件115を読み出し、特定した送信元のユーザと宛先のユーザ、及びパケットを受信したインタフェースを、DPI解析パケット検出条件115に設定されたレコードの送信元301と宛先302、及び受信インタフェース303と照合し、条件に一致するレコードがあるかを判定する(S507)。
The
S507の処理において、条件に一致するレコードがある場合、パケット検出部112は、更に受信トンネル情報116を読み出し、条件に一致したレコードの転送先トンネル304と、受信トンネル情報116に設定されたトンネル識別子401を照合し、一致するかを判定する(S508)。
In the process of S507, when there is a record that matches the condition, the
S508の処理において、転送先トンネル304とトンネル識別子401とが一致しないか、又は、トンネル識別子401に値が設定されていない場合、パケット検出部112は、条件に一致したレコードの転送先トンネル304で指定されるトンネルに送信するため、条件に一致したレコードの転送先トンネル304とともにパケットをトンネル制御部113に転送する(S509)。
In the process of S508, if the
トンネル制御部113は、転送されたパケットを、転送先トンネル304を用いてカプセル化する(S510)。すなわち、トンネル制御部113は、トンネルを識別する情報として転送先トンネル304の値を含むカプセル化ヘッダを、転送されたパケットに付加する。
The
パケット検出部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
S508の処理において、転送先トンネル304とトンネル識別子401とが一致する場合、パケット検出部112は、S509及びS510を実行せずにS511を実行する。
In the process of S508, when the
経路検索部111は、ルーティングテーブル114を読み出し、パケットに設定された宛先から転送先を決定し、ネットワークインタフェース123を経由して、パケットを装置外部に送信する(S512)。
The
S501及びS502はネットワークインタフェース123による処理である。
S501 and S502 are processing by the
S503〜S506及びS510はトンネル制御部113による処理である。
S503 to S506 and S510 are processing by the
S507〜S509はパケット検出部112による処理である。
S507 to S509 are processing by the
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
S512は経路検索部111による処理である。
S512 is processing by the
図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
図3(b)は、エッジルータB102があらかじめ保持するDPI解析パケット検出条件115のレコードを示している。
FIG. 3B shows a record of the DPI analysis
図4(a)は、エッジルータA101の処理途中における受信トンネル情報116の状態を示している。
FIG. 4A shows the state of the
図4(b)は、エッジルータB102の処理途中における受信トンネル情報116の状態を示している。
FIG. 4B shows the state of the
受信トンネル情報116が図4(a)、及び図4(b)の状態になるタイミングは、以下の文中にて説明する。
The timing at which the
図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
DPIゲートウェイルータ203は、上りAトンネル210から受信したパケットを、回線208を経由してDPI装置204に転送する。
The
DPI装置204は、回線208を経由して受信したパケットに対して、ユーザからパケットを受信した時の解析を行い、回線209を経由してDPIゲートウェイルータ203に転送する。
The
DPIゲートウェイルータ203は、回線209を経由してDPI装置204から受信したパケットを、上りAトンネル210を経由してエッジルータA101に転送する。
The
エッジルータ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
上記のように、S504においてトンネル識別子401を保持しておくことによって、パケットをデカプセル化した後にS508の判定を行うことが可能になる。S508の判定処理が終了するか、又は、S507で不一致と判定され、パケット検出部からトンネル制御部又は経路検索部に処理が以降するタイミングで、トンネル識別子401が未設定の状態にリセットされてもよい。なお、あるパケットについてS508の判定処理が終了する前にエッジルータA101が次のパケットを受信する場合には、例えば受信トンネル情報116に複数のパケットのトンネル識別子を格納する領域を用意しておき、それらの領域に、受信したパケットのカプセル化ヘッダから取り出したトンネル識別子を順次格納してもよい。この場合、S508では、それぞれのパケットに対応する領域のトンネル識別子が参照される。
As described above, by holding the
S512においてパケットが送信されると、DPIゲートウェイルータ203は、下りAトンネル211から受信したパケットを、回線209を経由してDPI装置204に転送する。
When the packet is transmitted in S512, the
DPI装置204は、回線209を経由して受信したパケットに対して、ユーザにパケットを中継する時の解析を行い、回線208を経由してDPIゲートウェイルータ203に転送する。
The
DPIゲートウェイルータ203は、回線208を経由してDPI装置204から受信したパケットを、下りAトンネル211を経由してエッジルータA101に転送する。
The
エッジルータ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
しかし、当該4つ目のレコードの転送先トンネル304が「下りAトンネル211」であるのに対して、受信トンネル情報116のトンネル識別子401が「下りAトンネル211」であり(S508:一致)、同一トンネルへの折り返しとなる。このことは、当該受信したパケットが既にエッジルータA101において一度上記の4つ目のレコードの条件と一致したと判定され、DPIゲートウェイルータ203に送信されたこと、すなわち、このパケットをこれからDPIゲートウェイルータ203に送信することによってループが発生することを意味する。このため、エッジルータA101はパケットのカプセル化を行わず、カプセル化されていないパケットの宛先であるユーザB206にパケットを転送する(S512)。
However, while the
フロー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
エッジルータ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
エッジルータ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
DPIゲートウェイルータ203は、下りBトンネル213から受信したパケットを、回線209を経由してDPI装置204に転送する。
The
DPI装置204は、回線209を経由して受信したパケットに対して、ユーザにパケットを中継する時の解析を行い、回線208を経由してDPIゲートウェイルータ203に転送する。
The
DPIゲートウェイルータ203は、回線208を経由してDPI装置204から受信したパケットを、下りBトンネル213を経由してエッジルータB102に転送する。
The
エッジルータ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
しかし、当該2つ目のレコードの転送先トンネル304が「下りBトンネル213」であるのに対して、受信トンネル情報116のトンネル識別子401が「下りBトンネル213」であり(S508:一致)、同一トンネルへの折り返しとなる。このことは、当該受信したパケットが既にエッジルータB102において一度上記の2つ目のレコードの条件と一致したと判定され、DPIゲートウェイルータ203に送信されたこと、すなわち、このパケットをこれからDPIゲートウェイルータ203に送信することによってループが発生することを意味する。このため、エッジルータB102はパケットのカプセル化を行わない。エッジルータB102は、カプセル化されていないパケットの宛先であるユーザC207にパケットを転送する(S512)。
However, while the
以上のように、本実施例では、受信トンネル情報116を用いることで、同一トンネルへの折り返しを抑止できるため、同じトンネルに折り返し続けることで発生するルーティングループを防ぎ、期待する宛先に正しく転送することが可能である。この処理を実現するために、DPI装置204は、DPI解析パケット検出条件を保持する必要も、それに基づいてパケットにタグを付加する必要もない。
As described above, in the present embodiment, the return to the same tunnel can be suppressed by using the
以下において、本発明の実施例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
図5において説明した本発明の実施例1のエッジルータ100のパケット受信時の処理のフローと、実施例2のエッジルータ100のパケット受信時の処理のフローの相違点を説明する。
The difference between the flow of processing performed by the
実施例2のエッジルータ100は、送信時に経由したものと対となる反対側のトンネルを経由してDPIゲートウェイルータ203からパケットを受信するため、エッジルータ100とDPI装置204間のルーティングループは、エッジルータ100が受信時のトンネルと対となる反対側のトンネルに折り返す状況において発生する。
Since the
従って、実施例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
図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
図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
図3(b)は、エッジルータB102があらかじめ保持するDPI解析パケット検出条件115のレコードを示している。
FIG. 3B shows a record of the DPI analysis
図7(a)、及び図7(b)は、本発明の実施例2のエッジルータ100の受信トンネル情報116の説明図である。
FIGS. 7A and 7B are explanatory diagrams of the
具体的には、図7(a)は、エッジルータA101の処理途中における受信トンネル情報116の状態を示している。
Specifically, FIG. 7A shows the state of the
図7(b)は、エッジルータB102の処理途中における受信トンネル情報116の状態を示している。
FIG. 7B shows the state of the
受信トンネル情報116が図7(a)、及び図7(b)の状態になるタイミングは、以下の文中にて説明する。
The timing at which the
フロー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
DPIゲートウェイルータ203は、上りAトンネル210から受信したパケットを、回線208を経由してDPI装置204に転送する。
The
DPI装置204は、回線208を経由して受信したパケットに対して、ユーザからパケットを受信した時の解析を行い、回線209を経由してDPIゲートウェイルータ203に転送する。
The
DPIゲートウェイルータ203は、回線209を経由してDPI装置204から受信したパケットを、下りAトンネル211を経由してエッジルータA101に転送する。
The
エッジルータ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
DPIゲートウェイルータ203は、下りAトンネル211から受信したパケットを、回線209を経由してDPI装置204に転送する。
The
DPI装置204は、回線209を経由して受信したパケットに対して、ユーザにパケットを中継する時の解析を行い、回線208を経由してDPIゲートウェイルータ203に転送する。
The
DPIゲートウェイルータ203は、回線208を経由してDPI装置204から受信したパケットを、上りAトンネル210を経由してエッジルータA101に転送する。
The
エッジルータ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
しかし、当該4つ目のレコードの転送先トンネル304が「下りAトンネル211」であるのに対して、受信トンネル情報116のトンネル識別子401が「上りAトンネル210」であり(S508:不一致)、異なるトンネルへの折り返しとなる。このことは、当該受信したパケットが既にエッジルータA101において一度上記の4つ目のレコードの条件と一致したと判定され、DPIゲートウェイルータ203に送信されたこと、すなわち、このパケットをこれからDPIゲートウェイルータ203に送信することによってループが発生することを意味する。このため、エッジルータA101はパケットのカプセル化を行わず、カプセル化されていないパケットの宛先であるユーザB206にパケットを転送する(S512)。
However, while the
フロー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
エッジルータ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
エッジルータ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
DPIゲートウェイルータ203は、下りBトンネル213から受信したパケットを、回線209を経由してDPI装置204に転送する。
The
DPI装置204は、回線209を経由して受信したパケットに対して、ユーザにパケットを中継する時の解析を行い、回線208を経由してDPIゲートウェイルータ203に転送する。
The
DPIゲートウェイルータ203は、回線208を経由してDPI装置204から受信したパケットを、上りBトンネル212を経由してエッジルータB102に転送する。
The
エッジルータ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
しかし、当該2つ目のレコードの転送先トンネル304が「下りBトンネル213」であるのに対して、受信トンネル情報116のトンネル識別子401が「上りBトンネル212」であり(S508:不一致)、異なるトンネルへの折り返しとなる。このことは、当該受信したパケットが既にエッジルータB102において一度上記の2つ目のレコードの条件と一致したと判定され、DPIゲートウェイルータ203に送信されたこと、すなわち、このパケットをこれからDPIゲートウェイルータ203に送信することによってループが発生することを意味する。このため、エッジルータB102はパケットのカプセル化を行わず、カプセル化されていないパケットの宛先であるユーザC207にパケットを転送する(S512)。
However, while the
以上のように、本実施例では、受信トンネル情報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
なお、ここまでに説明した通り、実施例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
このため、例えば、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
なお、本発明は上記した実施例に限定されるものではなく、様々な変形例が含まれる。例えば、上記した実施例は本発明のより良い理解のために詳細に説明したのであり、必ずしも説明の全ての構成を備えるものに限定されものではない。また、ある実施例の構成の一部を他の実施例の構成に置き換えることが可能であり、また、ある実施例の構成に他の実施例の構成を加えることが可能である。また、各実施例の構成の一部について、他の構成の追加・削除・置換をすることが可能である。 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
102 Edge Router B
111
122
202 Access Network B
203
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 .
前記メモリは、解析の対象となるパケットの検出条件と、前記検出条件を満たすパケットが送信されるトンネルの識別子と、ルーティングテーブルと、を保持し、 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.
前記メモリは、解析の対象となるパケットの検出条件と、前記検出条件を満たすパケットが送信されるトンネルの識別子と、ルーティングテーブルと、を保持し、 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.
前記メモリは、解析の対象となるパケットの検出条件と、前記検出条件を満たすパケットが送信されるトンネルの識別子と、ルーティングテーブルと、を保持し、 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.
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)
| 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 |
-
2016
- 2016-03-10 JP JP2016046463A patent/JP6629645B2/en active Active
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 |