JP4394675B2 - TCP processing device, packet relay device, and TCP processing method - Google Patents

TCP processing device, packet relay device, and TCP processing method Download PDF

Info

Publication number
JP4394675B2
JP4394675B2 JP2006334862A JP2006334862A JP4394675B2 JP 4394675 B2 JP4394675 B2 JP 4394675B2 JP 2006334862 A JP2006334862 A JP 2006334862A JP 2006334862 A JP2006334862 A JP 2006334862A JP 4394675 B2 JP4394675 B2 JP 4394675B2
Authority
JP
Japan
Prior art keywords
entry
data
entry table
network
received packet
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
JP2006334862A
Other languages
Japanese (ja)
Other versions
JP2008148139A (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.)
NEC AccessTechnica Ltd
Original Assignee
NEC AccessTechnica Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC AccessTechnica Ltd filed Critical NEC AccessTechnica Ltd
Priority to JP2006334862A priority Critical patent/JP4394675B2/en
Publication of JP2008148139A publication Critical patent/JP2008148139A/en
Application granted granted Critical
Publication of JP4394675B2 publication Critical patent/JP4394675B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Description

本発明は、TCP処理装置、パケット中継装置およびTCP処理方法に関する。   The present invention relates to a TCP processing device, a packet relay device, and a TCP processing method.

TCPフレームでのデータ通信において、例えば、LANとWAN等のネットワーク間の中継を行う中継装置は、ネットワーク上の端末から、セッションの切断前にFINビットまたはRSTビットが1のフレームを受信する。中継装置がハードウェアルーティング等を行っている場合、切断されたセッションのエントリデータは不要となる。   In data communication using a TCP frame, for example, a relay apparatus that relays between networks such as a LAN and a WAN receives a frame having a FIN bit or RST bit of 1 from a terminal on the network before disconnecting the session. When the relay device performs hardware routing or the like, the entry data of the disconnected session is unnecessary.

なお、フロー管理に要するテーブルのサイズを軽減しつつ、当該リンクにおけるフロー全体の通信品質を大きなフローサイズの通信に偏らずに適切に推定することが可能なTCPフロー通信品質推定装置が提案されている(例えば、特許文献1参照)。特許文献1には、到着したパケットが既にユーザフロー管理テーブルにエントリされているフローからのパケットであり、かつ、TCP通信の終了を示すFINフラグあるいはTCP通信の中断を示すRSTフラグが立っていたら、ユーザフロー管理テーブルから当該フローを削除することが記載されている。   A TCP flow communication quality estimation device has been proposed that can appropriately estimate the communication quality of the entire flow in the link without biasing to a large flow size communication while reducing the size of the table required for flow management. (For example, refer to Patent Document 1). In Patent Literature 1, if the arrived packet is a packet from a flow already entered in the user flow management table, and the FIN flag indicating the end of TCP communication or the RST flag indicating the interruption of TCP communication is set. And deleting the flow from the user flow management table.

特開2006−229701号公報(段落0037,0052)JP 2006-229701 A (paragraphs 0037 and 0052)

不要となったエントリデータをそのまま残しておくと、エントリテーブル(ルーティングテーブル)を無駄に使用してしまう。また、制御部がソフトウェアを実行することによりエントリテーブルを削除する処理を行うと負荷がかかり、高速データ通信の妨げとなるという問題がある。   If the entry data that is no longer needed is left as it is, the entry table (routing table) is wasted. In addition, there is a problem that if the control unit performs processing to delete the entry table by executing software, a load is applied, which hinders high-speed data communication.

また、例えば、LANとWAN等のネットワーク間の中継を行う場合、1つのセッションには、LANからWANへの方向の通信と、WANからLANへの方向の通信とがある。しかし、特許文献1に記載された方式では、一方の通信方向のパケットにFINフラグまたはRSTフラグが立っていた場合であっても、もう一方の通信が終わっていない場合には、一方の通信方向のフローのみが削除され、もう一方の通信方向のフローは削除されない。   Further, for example, when relaying between networks such as a LAN and a WAN, one session includes communication in the direction from the LAN to the WAN and communication in the direction from the WAN to the LAN. However, in the method described in Patent Document 1, even when the FIN flag or the RST flag is set in the packet in one communication direction, if the other communication is not finished, the one communication direction Only the other flow is deleted, and the flow in the other communication direction is not deleted.

そこで、本発明は、エントリテーブルの有効活用を図るTCP処理装置、パケット中継装置およびTCP処理方法を提供することを目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides a TCP processing device, a packet relay device, and a TCP processing method for effectively using an entry table.

本発明によるTCP処理装置は、第1のネットワークから第2のネットワークへのデータ送信を行う際のルーティングを行うための第1のエントリデータを含む第1のエントリテーブルと、第2のネットワークから第1のネットワークへのデータ送信を行う際のルーティングを行うための第2のエントリデータを、第1のエントリデータに対応付けて含む第2のエントリテーブルと、受信したパケットがセッションの終了を示す情報を含むか否かを判断する判断手段と、判断手段が受信したパケットがセッションの終了を示す情報を含むと判断した場合に、受信したパケットに対応する第1のエントリデータを第1のエントリテーブルから削除するとともに、第1のエントリデータに対応する第2のエントリデータを第2のエントリテーブルから削除するエントリテーブル制御手段とを備えることを特徴とする。   The TCP processing device according to the present invention includes a first entry table including first entry data for performing routing when data transmission from the first network to the second network is performed, and a second entry from the second network. A second entry table including second entry data for performing routing when data transmission to one network is associated with the first entry data, and information indicating that the received packet indicates the end of the session And a first entry data corresponding to the received packet when the packet received by the determining unit is determined to include information indicating the end of the session. And the second entry data corresponding to the first entry data is deleted from the second entry table Characterized in that it comprises a entry table control means for deleting et.

判断手段は、第1のネットワークを介して受信したパケットに基づいて第1のエントリデータを選択し、第1のエントリデータが選択された場合に、受信したパケットがセッションの終了を示す情報を含むか否かを判断してもよい。そのような構成によれば、受信したパケットが選択された場合に、セッションの終了を示す情報を含むか否かを判断することができる。   The determination unit selects first entry data based on a packet received via the first network, and when the first entry data is selected, the received packet includes information indicating the end of the session. It may be determined whether or not. According to such a configuration, when a received packet is selected, it can be determined whether or not information indicating the end of the session is included.

判断手段は、受信したパケットがTCPフレームである場合に、受信したパケットがセッションの終了を示す情報を含むか否かを判断してもよい。そのような構成によれば、受信したパケットがTCPフレームである場合に、セッションの終了を示す情報を含むか否かを判断することができる。   The determination unit may determine whether or not the received packet includes information indicating the end of the session when the received packet is a TCP frame. According to such a configuration, when the received packet is a TCP frame, it can be determined whether or not the information indicating the end of the session is included.

判断手段は、受信したパケットに含まれるFINビットまたはRSTビットが1である場合に、セッションの終了を示す情報を含むと判断してもよい。そのような構成によれば、TCPフレームのフラグのFINまたはRSTに基づいてセッションの終了を示す情報を含むか否かを判断することができる。   The determination unit may determine that the information indicating the end of the session is included when the FIN bit or the RST bit included in the received packet is 1. According to such a configuration, it can be determined whether or not information indicating the end of the session is included based on the FIN or RST of the flag of the TCP frame.

本発明によるパケット中継装置は、第1のネットワークから第2のネットワークへのデータ送信を行う際のルーティングを行うための第1のエントリデータを含む第1のエントリテーブルと、第2のネットワークから第1のネットワークへのデータ送信を行う際のルーティングを行うための第2のエントリデータを、第1のエントリデータに対応付けて含む第2のエントリテーブルと、受信したパケットがセッションの終了を示す情報を含むか否かを判断する判断手段と、判断手段が受信したパケットがセッションの終了を示す情報を含むと判断した場合に、受信したパケットに対応する第1のエントリデータを第1のエントリテーブルから削除するとともに、第1のエントリデータに対応する第2のエントリデータを第2のエントリテーブルから削除するエントリテーブル制御手段とを備えることを特徴とする。   The packet relay apparatus according to the present invention includes a first entry table including first entry data for performing routing when data transmission from the first network to the second network is performed, and a second entry from the second network. A second entry table including second entry data for performing routing when data transmission to one network is associated with the first entry data, and information indicating that the received packet indicates the end of the session And a first entry data corresponding to the received packet when the packet received by the determining unit is determined to include information indicating the end of the session. And the second entry data corresponding to the first entry data is deleted from the second entry table. Characterized in that it comprises a entry table control means for deleting from.

本発明によるTCP処理方法は、第1のネットワークから第2のネットワークへのデータ送信を行う際のルーティングを行うための第1のエントリデータを含む第1のエントリテーブルを記憶し、第2のネットワークから第1のネットワークへのデータ送信を行う際のルーティングを行うための第2のエントリデータを、第1のエントリデータに対応付けて含む第2のエントリテーブルを記憶し、受信したパケットがセッションの終了を示す情報を含むか否かを判断し、受信したパケットがセッションの終了を示す情報を含むと判断した場合に、受信したパケットに対応する第1のエントリデータを第1のエントリテーブルから削除するとともに、第1のエントリデータに対応する第2のエントリデータを第2のエントリテーブルから削除することを特徴とする。   A TCP processing method according to the present invention stores a first entry table including first entry data for performing routing when data transmission from a first network to a second network is performed, and the second network Storing a second entry table including second entry data for performing routing when data transmission from the first network to the first network is associated with the first entry data, and the received packet is stored in the session It is determined whether or not information indicating end is included, and when it is determined that the received packet includes information indicating end of session, the first entry data corresponding to the received packet is deleted from the first entry table. And deleting the second entry data corresponding to the first entry data from the second entry table. It is characterized in.

本発明によれば、第1のエントリテーブルおよび第2のエントリテーブルの2つのエントリテーブルを設け、エントリデータの対応付けを行い、一方のエントリデータを削除するとともに、対応付けられたエントリデータを削除することから、より有効にエントリテーブルを活用することができるという効果がある。   According to the present invention, two entry tables, the first entry table and the second entry table, are provided, the entry data are associated, one entry data is deleted, and the associated entry data is deleted. Therefore, there is an effect that the entry table can be utilized more effectively.

実施の形態1.
以下、本発明の実施の形態を図面を参照して説明する。図1は、本発明によるTCP処理装置の構成例を示すブロック図である。図1に示すTCP処理装置は、データ送受信部1と、フレーム検出部2と、エントリテーブル3と、ハードウェアルーティング制御部4と、制御部5と、データ送受信部6とを備える。図1には、TCP処理装置が、データ送受信部1を介してWANに接続され、データ送受信部6を介してLANに接続される場合を例示する。本発明によるTCP処理装置は、具体的には、LSI等の制御回路を用いて実現される。なお、TCP処理装置(具体的には、LSI等)は、例えば、パケット中継装置(ルータ等)に実装される。
Embodiment 1 FIG.
Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing a configuration example of a TCP processing apparatus according to the present invention. The TCP processing device shown in FIG. 1 includes a data transmission / reception unit 1, a frame detection unit 2, an entry table 3, a hardware routing control unit 4, a control unit 5, and a data transmission / reception unit 6. FIG. 1 illustrates a case where the TCP processing apparatus is connected to the WAN via the data transmission / reception unit 1 and connected to the LAN via the data transmission / reception unit 6. Specifically, the TCP processing device according to the present invention is realized by using a control circuit such as an LSI. Note that the TCP processing device (specifically, LSI or the like) is mounted on, for example, a packet relay device (router or the like).

データ送受信部1は、WAN側からEthernetフレーム(以下、Etherフレームと表記する。)を送受信する機能を備える。なお、Ethernetは登録商標である。データ送受信部1は、例えば、WAN用のIC(PHY)を介して、LANケーブルに接続される。また、データ送受信部6は、LAN側からEtherフレームを送受信する機能を備える。データ送受信部6は、例えば、LAN用のIC(スイッチ)を介して、LANケーブルに接続される。すなわち、データ送受信部1,6は、接続されるネットワークに対するインタフェース部を含む。   The data transmitter / receiver 1 has a function of transmitting and receiving an Ethernet frame (hereinafter referred to as an Ethernet frame) from the WAN side. Note that Ethernet is a registered trademark. The data transmitting / receiving unit 1 is connected to a LAN cable via, for example, a WAN IC (PHY). The data transmitter / receiver 6 has a function of transmitting / receiving an Ether frame from the LAN side. The data transmission / reception unit 6 is connected to a LAN cable via a LAN IC (switch), for example. That is, the data transmission / reception units 1 and 6 include an interface unit for a connected network.

フレーム検出部2は、受信したEtherフレームがTCPフレームか否かを判別する機能を備える。また、フレーム検出部2は、受信したEtherフレームがTCPフレームである場合、TCPフラグのFINビットまたはRSTビットが1であるか否かを判別する機能を備える。また、フレーム検出部2は、エントリテーブル3からエントリデータを選択して削除する機能を備える。   The frame detection unit 2 has a function of determining whether or not the received Ether frame is a TCP frame. The frame detection unit 2 has a function of determining whether the FIN bit or the RST bit of the TCP flag is 1 when the received Ether frame is a TCP frame. The frame detection unit 2 has a function of selecting entry data from the entry table 3 and deleting it.

エントリテーブル3は、具体的には、TCP処理装置のメモリ等の記憶部に記憶される。エントリテーブル3は、予めルーティングのためのエントリデータを含む。例えば、ユーザ操作に基づいて制御部5がソフトウェアを実行することにより、エントリテーブル3にエントリデータが登録される。また、エントリデータは、例えば、受信したフレームに含まれるアドレスに基づいて、制御部5によってエントリテーブル3に登録される。   Specifically, the entry table 3 is stored in a storage unit such as a memory of the TCP processing apparatus. The entry table 3 includes entry data for routing in advance. For example, entry data is registered in the entry table 3 when the control unit 5 executes software based on a user operation. The entry data is registered in the entry table 3 by the control unit 5 based on, for example, an address included in the received frame.

図2は、第1の実施の形態におけるエントリテーブル3の例を示す説明図である。図2に示すように、エントリテーブル3は、LAN側エントリテーブルおよびWAN側エントリテーブルを含む。LAN側エントリテーブルは、LANからWANへの方向の通信用のエントリテーブルであって、LANからWANへの方向のフレームを受信した場合に、ハードウェアルーティング制御部4によって検索される。WAN側エントリテーブルは、WANからLANへの方向の通信用のエントリテーブルであって、WANからLANへの方向のフレームを受信した場合に、ハードウェアルーティング制御部4によって検索される。   FIG. 2 is an explanatory diagram illustrating an example of the entry table 3 according to the first embodiment. As shown in FIG. 2, the entry table 3 includes a LAN side entry table and a WAN side entry table. The LAN side entry table is an entry table for communication in the direction from the LAN to the WAN, and is searched by the hardware routing control unit 4 when a frame in the direction from the LAN to the WAN is received. The WAN entry table is an entry table for communication in the direction from the WAN to the LAN, and is searched by the hardware routing control unit 4 when a frame in the direction from the WAN to the LAN is received.

ハードウェア(H/W)ルーティング制御部4は、ハードウェアルーティング処理を行う機能を備える。例えば、ハードウェアルーティング制御部4は、受信したフレームに基づいてエントリーテーブル3を検索し、選択されたエントリデータに基づいて、受信したフレームを該当するインタフェース(データ送受信部1またはデータ送受信部6)を介して送信するルーティング処理を行う。   The hardware (H / W) routing control unit 4 has a function of performing hardware routing processing. For example, the hardware routing control unit 4 searches the entry table 3 based on the received frame, and based on the selected entry data, the interface corresponding to the received frame (data transmission / reception unit 1 or data transmission / reception unit 6). Routing processing to be transmitted via

制御部5は、例えば、記憶部(図示せず。)に記憶されたソフトウェア(プログラム)を実行することにより、TCP処理装置全体を制御する機能を備える。例えば、制御部5は、ルーティングプロトコル制御、エントリーテーブル3の更新およびエントリーテーブル3をハードウェアルーティング制御部4に配布する処理等を行う。   For example, the control unit 5 has a function of controlling the entire TCP processing apparatus by executing software (program) stored in a storage unit (not shown). For example, the control unit 5 performs routing protocol control, update of the entry table 3, processing for distributing the entry table 3 to the hardware routing control unit 4, and the like.

第1の実施の形態において、第1のエントリテーブルおよび第2のエントリテーブルは、それぞれエントリーテーブル3のWAN側エントリテーブルまたはLAN側エントリテーブルのいずれか一方によって実現される。判断手段およびエントリテーブル制御手段は、フレーム検出部2によって実現される。   In the first embodiment, the first entry table and the second entry table are realized by either the WAN side entry table or the LAN side entry table of the entry table 3, respectively. The determination unit and the entry table control unit are realized by the frame detection unit 2.

次に、図面を参照して第1の実施の形態の動作について説明する。図3は、第1の実施の形態のTCP処理装置の動作を示すフローチャートである。   Next, the operation of the first embodiment will be described with reference to the drawings. FIG. 3 is a flowchart illustrating the operation of the TCP processing apparatus according to the first embodiment.

以下、本発明によるTCP処理装置が、フレームをWAN側から受信して、ハードウェアルーティング処理を行う場合を例示して説明する。また、エントリテーブル3には、図2に示すエントリデータが登録され、受信データ(フレーム)がエントリデータのいずれかに合致してルーティング処理が行われている場合を例示する。   Hereinafter, a case where the TCP processing device according to the present invention receives a frame from the WAN side and performs hardware routing processing will be described as an example. Further, the entry table 3 is registered with the entry data shown in FIG. 2, and the case where the received data (frame) matches any of the entry data and the routing process is performed is illustrated.

データ送受信部1が、WAN側からEtherフレームを受信すると(ステップS1)、ハードウェアルーティング制御部4は、受信したEtherフレームが、エントリテーブル3のWAN側エントリテーブルのエントリデータに合致するか否かを判断する(ステップS2)。受信したフレームがエントリデータに合致しない場合(NO)、フレーム検出部2は、受信データがハードウェアルーティングの対象ではないとして、受信フレームをルーティング加工処理せずに受信バッファ(図示せず。)に格納する(ステップS3)。受信バッファに格納された受信フレームは、制御部5によってソフトウェア処理され(ステップS4)、一連の処理を終了する。   When the data transmission / reception unit 1 receives the Ether frame from the WAN side (step S1), the hardware routing control unit 4 determines whether the received Ether frame matches the entry data in the WAN side entry table of the entry table 3. Is determined (step S2). If the received frame does not match the entry data (NO), the frame detection unit 2 assumes that the received data is not a target for hardware routing, and does not process the received frame in a reception buffer (not shown). Store (step S3). The reception frame stored in the reception buffer is subjected to software processing by the control unit 5 (step S4), and a series of processing ends.

受信したフレームが、エントリテーブル3のWAN側エントリテーブルのエントリデータに合致する場合(YES)、フレーム検出部2は、受信したフレームがTCPフレームか否かを判断する(ステップS5)。例えば、受信したフレームがIPv4フレームの場合、フレーム検出部2は、IPヘッダのIPプロトコルの値に基づいて、受信したフレームがTCPフレームか否かを判断する。また、受信したフレームがIPv6フレームの場合は、Next Headerの値に基づいて、受信したフレームがTCPフレームか否かを判断する。   If the received frame matches the entry data in the WAN side entry table of the entry table 3 (YES), the frame detection unit 2 determines whether or not the received frame is a TCP frame (step S5). For example, when the received frame is an IPv4 frame, the frame detection unit 2 determines whether the received frame is a TCP frame based on the value of the IP protocol in the IP header. If the received frame is an IPv6 frame, it is determined whether the received frame is a TCP frame based on the value of Next Header.

受信したフレームがTCPフレームでない場合(NO)、ハードウェアルーティング制御部4は、通常のハードウェアルーティング処理を行う(ステップS6)。ハードウェアルーティング制御部4は、合致したエントリデータに基づいて、データ送受信部6を介してデータをLAN側に送信し(ステップS7)、一連の処理を終了する。   If the received frame is not a TCP frame (NO), the hardware routing control unit 4 performs normal hardware routing processing (step S6). The hardware routing control unit 4 transmits data to the LAN side via the data transmission / reception unit 6 based on the matched entry data (step S7), and ends a series of processing.

受信したフレームがTCPフレームである場合(YES)、フレーム検出部2は、TCPフラグのFINビットまたはRSTビットが1であるか否かを判断する(ステップS8)。FINビット、RSTビットがともに0である場合(NO)、ステップS6に移行する。   If the received frame is a TCP frame (YES), the frame detection unit 2 determines whether the FIN bit or the RST bit of the TCP flag is 1 (step S8). When the FIN bit and the RST bit are both 0 (NO), the process proceeds to step S6.

FINビット、RSTビットのいずれかが1である場合(YES)、フレーム検出部2は、受信フレームをルーティング処理せずに受信バッファに格納する(ステップS9)。受信フレームが受信バッファに格納されると、受信フレームは、制御部5によってソフトウェア処理され、セッションが切断される(ステップS10)。   When either the FIN bit or the RST bit is 1 (YES), the frame detection unit 2 stores the received frame in the reception buffer without performing the routing process (step S9). When the received frame is stored in the receive buffer, the received frame is processed by software by the control unit 5 and the session is disconnected (step S10).

また、フレーム検出部2は、ステップS2において合致したエントリデータを、自動的にエントリテーブル3のWAN側エントリテーブルから自動的に消去し(ステップS11)、一連の処理を終了する。   Further, the frame detection unit 2 automatically deletes the entry data matched in step S2 from the WAN side entry table of the entry table 3 (step S11), and ends a series of processing.

なお、データ送受信部6がLAN側からEtherフレームを受信した場合も、同様の処理が行われる。   The same processing is performed when the data transmitting / receiving unit 6 receives an Ether frame from the LAN side.

以上に説明したように、第1の実施の形態によれば、例えば、LANに接続された端末がFINビットが1のフレームを送信した場合において、WANに接続された端末が、送信データが残っているためセッションを切断せず、FINビットが1のフレームを送信していない場合に、LAN側エントリテーブルに記憶された該当するエントリデータを削除することができる。また、WAN側エントリテーブルに記憶された該当するエントリデータを削除せずに残すことができる。   As described above, according to the first embodiment, for example, when a terminal connected to the LAN transmits a frame having a FIN bit of 1, the terminal connected to the WAN has transmission data remaining. Therefore, when the session is not disconnected and the frame having the FIN bit of 1 is not transmitted, the corresponding entry data stored in the LAN side entry table can be deleted. Further, the corresponding entry data stored in the WAN side entry table can be left without being deleted.

実施の形態2.
次に、本発明の第2の実施の形態を図面を参照して説明する。第2の実施の形態では、エントリテーブル3において、LAN側エントリテーブルに含まれるエントリデータと、WAN側エントリテーブルに含まれるエントリデータとは、対応付けが設定される。例えば、LAN側エントリテーブルに含まれるエントリデータ1と、WAN側エントリテーブルに含まれるエントリデータAとで、同じIDを付加することによってエントリデータ1とエントリデータAとを対応付ける。図4は、第2の実施の形態におけるエントリテーブル3の例を示す説明図である。図4には、LAN側エントリテーブルのエントリデータ1と、WAN側エントリテーブルのエントリデータAとが対応付けられる場合を例示する。なお、LAN側エントリテーブルとWAN側エントリテーブルとに含まれる全てのエントリデータを対応付けるようにしてもよい。
Embodiment 2. FIG.
Next, a second embodiment of the present invention will be described with reference to the drawings. In the second embodiment, in the entry table 3, association is set between entry data included in the LAN side entry table and entry data included in the WAN side entry table. For example, the entry data 1 and the entry data A are associated with each other by adding the same ID to the entry data 1 included in the LAN side entry table and the entry data A included in the WAN side entry table. FIG. 4 is an explanatory diagram illustrating an example of the entry table 3 according to the second embodiment. FIG. 4 illustrates a case where entry data 1 in the LAN side entry table is associated with entry data A in the WAN side entry table. Note that all the entry data included in the LAN side entry table and the WAN side entry table may be associated with each other.

本実施の形態では、LAN側エントリテーブルに記憶されたエントリデータとWAN側エントリテーブルに記憶されたエントリデータとの対応付けが設定されている場合には、フレーム検出部2は、例えば、LAN側エントリテーブルの該当するエントリデータを削除するとともに、対応付けられたWAN側エントリテーブルの該当するエントリデータを削除する。   In the present embodiment, when the association between the entry data stored in the LAN-side entry table and the entry data stored in the WAN-side entry table is set, the frame detection unit 2 may, for example, The corresponding entry data in the entry table is deleted, and the corresponding entry data in the associated WAN side entry table is deleted.

例えば、LAN側エントリテーブルに記憶されたエントリデータと、WAN側エントリテーブルに記憶されたエントリデータとの対応付けが設定され、WAN側から受信したデータがエントリデータAに合致し、TCPフラグのFINビットまたはRSTビットが1である場合、フレーム検出部2は、WAN側エントリテーブルのエントリデータAを削除するとともに、LAN側エントリテーブルのエントリデータ1を削除する。   For example, the association between the entry data stored in the LAN side entry table and the entry data stored in the WAN side entry table is set, the data received from the WAN side matches the entry data A, and the TCP flag FIN When the bit or the RST bit is 1, the frame detection unit 2 deletes the entry data A in the WAN entry table and the entry data 1 in the LAN entry table.

次に、図面を参照して第2の実施の形態の動作について説明する。図5は、第2の実施の形態のTCP処理装置の動作を示すフローチャートである。なお、図5におけるステップS1からステップS10の処理は、実施の形態1における処理と同様なため説明を省略する。   Next, the operation of the second embodiment will be described with reference to the drawings. FIG. 5 is a flowchart illustrating the operation of the TCP processing apparatus according to the second embodiment. Note that the processing from Step S1 to Step S10 in FIG.

ステップS21において、フレーム検出部2は、ステップS2において合致したエントリデータを、自動的にエントリテーブル3のWAN側エントリテーブルから自動的に消去する。さらに、フレーム検出部2は、ステップS2において合致したエントリデータに対応するLAN側エントリテーブルのエントリデータを削除する。   In step S21, the frame detection unit 2 automatically deletes the entry data matched in step S2 from the WAN side entry table of the entry table 3. Further, the frame detection unit 2 deletes the entry data in the LAN side entry table corresponding to the entry data matched in step S2.

以上に説明したように、第2の実施の形態によれば、例えば、LANからWANへの方向の通信でFINビットまたはRSTビットを検出した場合に、WANからLANへの方向の通信でもFINビットまたはRSTビットを含むTCPフレームが送信されることが多い場合には、エントリテーブルをより効率よく使用することができる。   As described above, according to the second embodiment, for example, when the FIN bit or the RST bit is detected in the communication from the LAN to the WAN, the FIN bit is also transmitted in the communication from the WAN to the LAN. Alternatively, when a TCP frame including an RST bit is often transmitted, the entry table can be used more efficiently.

なお、LAN側エントリテーブルに記憶されたエントリデータとWAN側エントリテーブルに記憶されたエントリデータとの対応付けは、例えば、制御部5によって自動的に設定されてもよく、また、ユーザによって手動で設定されてもよい。   The association between the entry data stored in the LAN side entry table and the entry data stored in the WAN side entry table may be automatically set by the control unit 5, for example, or manually by the user. It may be set.

本発明によれば、LAN側エントリテーブルおよびWAN側エントリテーブルの2つのエントリテーブルを設けていることから、エントリデータの対応付けの有無に応じて、上記の2つの使い方ができる。すなわち、エントリデータの対応付けを行う場合には、一方のエントリテーブルのエントリデータを削除するとともに、もう一方のエントリテーブルのエントリデータも削除することができ、エントリテーブルをより有効に活用することができる。また、エントリデータの対応付けを行わない場合には、通信方向に応じてエントリテーブルを活用することができる。   According to the present invention, since the two entry tables of the LAN side entry table and the WAN side entry table are provided, the above two usages can be performed depending on whether or not the entry data is associated. That is, when associating entry data, the entry data of one entry table can be deleted and the entry data of the other entry table can be deleted, so that the entry table can be used more effectively. it can. When entry data is not associated, an entry table can be used according to the communication direction.

すなわち、本実施の形態によれば、エントリデータの対応付けの設定に応じて有効にエントリテーブルを活用することができる。また、ソフトウェア処理を軽減し、高速処理を実現することができる。   That is, according to the present embodiment, the entry table can be effectively used according to the entry data association setting. In addition, software processing can be reduced and high-speed processing can be realized.

本発明は、TCP処理装置の記憶領域を有効活用し、より高速な通信を実現するために効果的に適用できる。   The present invention can be effectively applied to effectively utilize the storage area of the TCP processing device and realize higher-speed communication.

本発明によるTCP処理装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the TCP processing apparatus by this invention. 第1の実施の形態におけるエントリテーブルの例を示す説明図である。It is explanatory drawing which shows the example of the entry table in 1st Embodiment. 第1の実施の形態のTCP処理装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the TCP processing apparatus of 1st Embodiment. 第2の実施の形態におけるエントリテーブルの例を示す説明図である。It is explanatory drawing which shows the example of the entry table in 2nd Embodiment. 第2の実施の形態のTCP処理装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the TCP processing apparatus of 2nd Embodiment.

符号の説明Explanation of symbols

1 データ送受信部
2 フレーム検出部
3 エントリテーブル
4 ハードウェアルーティング制御部
5 制御部
6 データ送受信部
DESCRIPTION OF SYMBOLS 1 Data transmission / reception part 2 Frame detection part 3 Entry table 4 Hardware routing control part 5 Control part 6 Data transmission / reception part

Claims (6)

第1のネットワークから第2のネットワークへのデータ送信を行う際のルーティングを行うための第1のエントリデータを含む第1のエントリテーブルと、
前記第2のネットワークから前記第1のネットワークへのデータ送信を行う際のルーティングを行うための第2のエントリデータを、前記第1のエントリデータに対応付けて含む第2のエントリテーブルと、
受信したパケットがセッションの終了を示す情報を含むか否かを判断する判断手段と、
前記判断手段が受信したパケットがセッションの終了を示す情報を含むと判断した場合に、受信したパケットに対応する第1のエントリデータを前記第1のエントリテーブルから削除するとともに、前記第1のエントリデータに対応する第2のエントリデータを前記第2のエントリテーブルから削除するエントリテーブル制御手段と
を備えることを特徴とするTCP処理装置。
A first entry table including first entry data for performing routing when performing data transmission from the first network to the second network;
A second entry table including second entry data for performing routing when data transmission from the second network to the first network is associated with the first entry data;
Determining means for determining whether or not the received packet includes information indicating the end of the session;
When the determination unit determines that the received packet includes information indicating the end of a session, the first entry data corresponding to the received packet is deleted from the first entry table, and the first entry is deleted. A TCP processing apparatus comprising: entry table control means for deleting second entry data corresponding to data from the second entry table.
判断手段は、第1のネットワークを介して受信したパケットに基づいて第1のエントリデータを選択し、第1のエントリデータが選択された場合に、受信したパケットがセッションの終了を示す情報を含むか否かを判断する請求項1記載のTCP処理装置。   The determination unit selects first entry data based on a packet received via the first network, and when the first entry data is selected, the received packet includes information indicating the end of the session. The TCP processing device according to claim 1, which determines whether or not. 判断手段は、受信したパケットがTCPフレームである場合に、受信したパケットがセッションの終了を示す情報を含むか否かを判断する請求項1または請求項2記載のTCP処理装置。   The TCP processing apparatus according to claim 1 or 2, wherein the determination unit determines whether or not the received packet includes information indicating the end of the session when the received packet is a TCP frame. 判断手段は、受信したパケットに含まれるFINビットまたはRSTビットが1である場合に、セッションの終了を示す情報を含むと判断する請求項3記載のTCP処理装置。   4. The TCP processing apparatus according to claim 3, wherein the determining means determines that the information indicating the end of the session is included when the FIN bit or the RST bit included in the received packet is 1. 第1のネットワークから第2のネットワークへのデータ送信を行う際のルーティングを行うための第1のエントリデータを含む第1のエントリテーブルと、
前記第2のネットワークから前記第1のネットワークへのデータ送信を行う際のルーティングを行うための第2のエントリデータを、前記第1のエントリデータに対応付けて含む第2のエントリテーブルと、
受信したパケットがセッションの終了を示す情報を含むか否かを判断する判断手段と、
前記判断手段が受信したパケットがセッションの終了を示す情報を含むと判断した場合に、受信したパケットに対応する第1のエントリデータを前記第1のエントリテーブルから削除するとともに、前記第1のエントリデータに対応する第2のエントリデータを前記第2のエントリテーブルから削除するエントリテーブル制御手段と
を備えることを特徴とするパケット中継装置。
A first entry table including first entry data for performing routing when performing data transmission from the first network to the second network;
A second entry table including second entry data for performing routing when data transmission from the second network to the first network is associated with the first entry data;
Determining means for determining whether or not the received packet includes information indicating the end of the session;
When the determination unit determines that the received packet includes information indicating the end of a session, the first entry data corresponding to the received packet is deleted from the first entry table, and the first entry is deleted. An entry table control unit that deletes second entry data corresponding to data from the second entry table.
第1のネットワークから第2のネットワークへのデータ送信を行う際のルーティングを行うための第1のエントリデータを含む第1のエントリテーブルを記憶し、
前記第2のネットワークから前記第1のネットワークへのデータ送信を行う際のルーティングを行うための第2のエントリデータを、前記第1のエントリデータに対応付けて含む第2のエントリテーブルを記憶し、
受信したパケットがセッションの終了を示す情報を含むか否かを判断し、
受信したパケットがセッションの終了を示す情報を含むと判断した場合に、受信したパケットに対応する第1のエントリデータを前記第1のエントリテーブルから削除するとともに、前記第1のエントリデータに対応する第2のエントリデータを前記第2のエントリテーブルから削除する
ことを特徴とするTCP処理方法。
Storing a first entry table including first entry data for performing routing when performing data transmission from the first network to the second network;
Storing a second entry table including second entry data for performing routing when performing data transmission from the second network to the first network in association with the first entry data; ,
Determine whether the received packet contains information indicating the end of the session,
When it is determined that the received packet includes information indicating the end of the session, the first entry data corresponding to the received packet is deleted from the first entry table, and the first entry data corresponds to the first entry data A TCP processing method, wherein the second entry data is deleted from the second entry table.
JP2006334862A 2006-12-12 2006-12-12 TCP processing device, packet relay device, and TCP processing method Active JP4394675B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006334862A JP4394675B2 (en) 2006-12-12 2006-12-12 TCP processing device, packet relay device, and TCP processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006334862A JP4394675B2 (en) 2006-12-12 2006-12-12 TCP processing device, packet relay device, and TCP processing method

Publications (2)

Publication Number Publication Date
JP2008148139A JP2008148139A (en) 2008-06-26
JP4394675B2 true JP4394675B2 (en) 2010-01-06

Family

ID=39607797

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006334862A Active JP4394675B2 (en) 2006-12-12 2006-12-12 TCP processing device, packet relay device, and TCP processing method

Country Status (1)

Country Link
JP (1) JP4394675B2 (en)

Also Published As

Publication number Publication date
JP2008148139A (en) 2008-06-26

Similar Documents

Publication Publication Date Title
US7408879B2 (en) Router, terminal apparatus, communication system and routing method
US20050243834A1 (en) Packet transfer method and device
US8391287B2 (en) Packet relay method and device
WO2015149620A1 (en) Encapsulation method for service routing packet, service forwarding entity and control plane
JP2003258842A (en) Packet communication system and transferring device
JP2007259365A (en) Routing processing apparatus and method
EP4047889A1 (en) Method and apparatus for processing forwarding entry
EP1835666B1 (en) Communication device, routing method, and program
JP3521904B2 (en) Frame transfer method and node in Ethernet (R)
US9537764B2 (en) Communication apparatus, control apparatus, communication system, communication method, method for controlling communication apparatus, and program
JP4394675B2 (en) TCP processing device, packet relay device, and TCP processing method
JP2009135772A (en) Router device
JP4794670B2 (en) Route control device
JP4766344B2 (en) Information processing apparatus and frame relay method
JP2008109357A (en) Packet transfer device and packet transfer method
JP4340651B2 (en) Network tunneling device
JP4660346B2 (en) BRIDGE DEVICE AND BRIDGE DEVICE CONTROL METHOD
US10142126B2 (en) Scalable dynamic overlay tunnel management
KR101363599B1 (en) APPARATUS AND METHOD FOR SUPPORTING IPv6 LINK-LOCAL ADDRESS IN DISTRIBUTED ARCHITECTURE ROUTING SYSTEM
JP2015095768A (en) Information transmission device and program
JP6435002B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM
JP2007013510A (en) Packet communication system and packet communication apparatus
JP2005244273A (en) Data communication control apparatus
US20170171063A1 (en) Method, apparatus and non-transitory computer-readable storage medium
JP6135429B2 (en) OpenFlow switch and program

Legal Events

Date Code Title Description
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: 20091006

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20091015

R150 Certificate of patent or registration of utility model

Ref document number: 4394675

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121023

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131023

Year of fee payment: 4

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350