JP5039292B2 - Network adapter, communication system, and communication method - Google Patents

Network adapter, communication system, and communication method Download PDF

Info

Publication number
JP5039292B2
JP5039292B2 JP2005272552A JP2005272552A JP5039292B2 JP 5039292 B2 JP5039292 B2 JP 5039292B2 JP 2005272552 A JP2005272552 A JP 2005272552A JP 2005272552 A JP2005272552 A JP 2005272552A JP 5039292 B2 JP5039292 B2 JP 5039292B2
Authority
JP
Japan
Prior art keywords
host computer
header
packet
network adapter
packets
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.)
Expired - Fee Related
Application number
JP2005272552A
Other languages
Japanese (ja)
Other versions
JP2006302246A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2005272552A priority Critical patent/JP5039292B2/en
Publication of JP2006302246A publication Critical patent/JP2006302246A/en
Application granted granted Critical
Publication of JP5039292B2 publication Critical patent/JP5039292B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Bus Control (AREA)
  • Information Transfer Systems (AREA)
  • Facsimiles In General (AREA)

Description

本発明は、ネットワークを介して受信したパケットを、ホストコンピュータに転送する技術に関する。   The present invention relates to a technique for transferring a packet received via a network to a host computer.

ネットワークの高速化に伴い、通信を行うホストコンピュータにかかる負荷をどのように軽減させるかが、近年の課題となってきている。現在、広く使われているTCP(Transmission Control Protocol)/IP(Internet Protocol)とSocket API(Socket Application Interface)との組み合わせでは、ホストコンピュータにおける、パケットごとのプロトコル処理およびメモリ間コピーにかかる負荷の軽減が特に課題となってきている。   As the network speeds up, how to reduce the load on the host computer for communication has become a problem in recent years. The combination of TCP (Transmission Control Protocol) / IP (Internet Protocol) and Socket API (Socket Application Interface), which are currently widely used, reduces the load on protocol processing and inter-memory copying for each packet in the host computer. Has become a particular challenge.

パケットの送受信においては、送受信されるパケットごとにヘッダの生成や解析等の処理が実行される。より通信を高速化させるためには、送信するパケット1つ当たりのサイズをできる限り大きくし、これらの処理に要する時間を短縮させるのが好ましい。しかし、イーサネット(登録商標)等のネットワークでは、1つのパケットの最大長(MTU、Maximum Transmit Unit)が定められている。例えば、通常のイーサネット(登録商標)では1500バイト、ジャンボフレーム(Jumbo Frame)と呼ばれる拡張機能を用いても9キロバイト程度であるのが一般的である。近年の高速ネットワークにおいては、とりわけ、パケットごとのプロトコル処理がボトルネックとなる可能性がある。   In packet transmission / reception, processing such as header generation and analysis is performed for each packet transmitted / received. In order to increase the speed of communication, it is preferable to increase the size per packet to be transmitted as much as possible and to shorten the time required for these processes. However, in a network such as Ethernet (registered trademark), a maximum length (MTU, Maximum Transmit Unit) of one packet is defined. For example, in general Ethernet (registered trademark), 1500 bytes is generally used, and even if an extended function called a jumbo frame is used, it is generally about 9 kilobytes. In recent high-speed networks, protocol processing for each packet may become a bottleneck.

パケットごとの処理を軽減することを目的とする技術としては、例えば、通信ネットワークからパケットを受信する際にヘッダ等のパケット情報をまとめ、ホストコンピュータのCPUにかかる負荷を軽減する技術について開示されている(例えば、特許文献1)。他の例としては、パケットの宛先アドレスから経路を共通とするパケットを複数抽出し、それら複数のパケットを集約して各パケットの情報を含む集約パケットを送信する技術について開示されている(例えば、特許文献2)。さらに他の例として、TCPレベルで、送信側についてのパケットの分割を行う技術や受信側についての組立を行う技術について開示されている(例えば、特許文献3)。   As a technique for reducing the processing for each packet, for example, a technique for reducing the load on the CPU of the host computer by collecting packet information such as headers when receiving packets from a communication network is disclosed. (For example, Patent Document 1). As another example, a technique is disclosed in which a plurality of packets having a common route are extracted from the destination address of the packet, the plurality of packets are aggregated, and an aggregate packet including information on each packet is transmitted (for example, Patent Document 2). As yet another example, a technique for dividing a packet on the transmission side and a technique for assembling the reception side at the TCP level are disclosed (for example, Patent Document 3).

通信を高速化させるための他の技術として、国際出願番号PCTJP04/12006のように、ホストコンピュータにおけるメモリ間コピーに要する時間を短縮させる技術がある。かかる技術によれば、パケットの送信側においては、パケットの本体データ部については、ホストコンピュータのユーザ空間から直接DMA(Direct Memory Access)転送し、ネットワークアダプタのバッファ(送信バッファ)に転送される。ネットワークアダプタのバッファに蓄積されたデータは、生成したヘッダを用いてネットワークに送信される。パケット受信側のネットワークアダプタにおいては、ネットワーク側から受信したパケットをホストコンピュータに転送する際に、ヘッダと本体データとを分離し、まず生成したヘッダをホストコンピュータに転送する。本体データは、ホストコンピュータのソフトウェアがプロトコル処理を実行して、データ配送先のユーザ空間が決定してから転送される。
特開2003−87255号公報(要約、図1および図2、0035段落) 特表2003−003673号公報(要約、請求項1) 特開2002−84289号公報(要約、図1、0008段落)
As another technique for speeding up communication, there is a technique for reducing the time required for copying between memories in a host computer, as in International Application No. PCTJP04 / 12006. According to this technique, on the packet transmission side, the packet main data part is directly DMA (Direct Memory Access) transferred from the user space of the host computer and transferred to the buffer (transmission buffer) of the network adapter. Data stored in the buffer of the network adapter is transmitted to the network using the generated header. In the network adapter on the packet receiving side, when a packet received from the network side is transferred to the host computer, the header and the main body data are separated, and the generated header is first transferred to the host computer. The main body data is transferred after the host computer software executes protocol processing to determine the user space of the data delivery destination.
JP 2003-87255 A (summary, FIG. 1 and FIG. 2, paragraph 0035) JP 2003-003673 A (summary, claim 1) Japanese Patent Laid-Open No. 2002-84289 (summary, FIG. 1, paragraph 0008)

ネットワークアダプタがホストコンピュータに転送するパケットをネットワークから受信するときに、自装置のメモリ上に連続した1つのパケットとして蓄積されるよう、各パケットを受信することは困難である。すなわち、ネットワーク側から到着したパケットを直ちに解析し、本体データがパケット全体のうちでどの部分に当たるかを判定した上で適当な位置に蓄積しようとすると、ネットワークアダプタ内のメモリ間コピーがオーバヘッドとなり、実現が困難である。そこで、ネットワークアダプタのメモリには、非連続なパケットを、ホストコンピュータのメモリに転送する際に連続した領域になるように転送することになる。なお、かかる技術は、スキャッタ・ギャザー(Scatter Gather)DMAと呼ばれる、一般的な技術であるのでここではその説明を省略する。   When the network adapter receives from the network a packet to be transferred to the host computer, it is difficult to receive each packet so that it is stored as one continuous packet in the memory of its own device. In other words, if a packet arrived from the network side is immediately analyzed, and it is determined which part of the entire packet the main data hits and an attempt is made to store it in an appropriate location, the memory-to-memory copy in the network adapter becomes overhead, It is difficult to realize. Therefore, non-consecutive packets are transferred to the memory of the network adapter so as to be a continuous area when transferred to the memory of the host computer. Since this technique is a general technique called Scatter Gather DMA, its description is omitted here.

ネットワークアダプタに蓄積された本体データのホストコンピュータへの転送の指示は、ホストコンピュータが行う。これを実現するには、ホストコンピュータが、ネットワークアダプタのメモリのうちどこに各本体データが存在するのかを、認識している必要がある。ホストコンピュータが本体データの位置を認識しないで転送処理を実現するには、ネットワークアダプタ内で本体データをまとめたパケットに対してハンドルを発行し、ネットワークアダプタにおいてこのハンドルおよび各本体データの対応関係を管理しなくてはならない。これには、ネットワークアダプタ側における管理コストを要する。   The host computer issues an instruction to transfer the main body data stored in the network adapter to the host computer. In order to realize this, it is necessary for the host computer to recognize where each main body data exists in the memory of the network adapter. In order for the host computer to realize transfer processing without recognizing the position of the main unit data, a handle is issued to the packet in which the main unit data is collected in the network adapter, and the correspondence relationship between this handle and each main unit data is determined in the network adapter. Must be managed. This requires management costs on the network adapter side.

あるいは、ネットワークアダプタのメモリに非連続に蓄積されたパケットの本体データをホストコンピュータに転送する際には、蓄積された各本体データのメモリ上の先頭アドレスおよびデータ長の情報をネットワークアダプタからホストコンピュータに対して通知することが必要となる。従来から用いられてきている一般的なDMA転送においては、これらの情報は、DMAディスクリプタに含めてホストコンピュータに対して通知されることになる。しかし、DMAディスクリプタは固定長であるので、受信するパケットのデータ量が大きくなるほど、上記の先頭アドレスとデータ長との組の数が多くなる。例えば、MTUが1500バイトのイーサネット(登録商標)から受信したパケットを64キロバイト毎にまとめると、上記先頭アドレスとデータ長の組数は44組となる。1つのDMAディスクリプタに対し、かかる多数の情報を格納するための領域を確保しておかなくてはならない。   Alternatively, when transferring the main body data of the packets stored discontinuously in the memory of the network adapter to the host computer, the start address and data length information on the memory of each stored main body data is transferred from the network adapter to the host computer. Need to be notified. In general DMA transfer that has been used conventionally, these pieces of information are included in the DMA descriptor and notified to the host computer. However, since the DMA descriptor has a fixed length, the larger the data amount of the received packet is, the larger the number of pairs of the head address and the data length is. For example, if packets received from Ethernet (registered trademark) with an MTU of 1500 bytes are collected every 64 kilobytes, the number of pairs of the top address and the data length is 44. An area for storing such a large amount of information must be secured for one DMA descriptor.

本発明は、ネットワークから受信したパケットをホストコンピュータに転送する際に、ネットワークアダプタのコスト高を抑制し、かつホストコンピュータのプロトコル処理を簡易に保ったまま、ホストコンピュータにおけるメモリ間コピーを廃してメモリの使用効率を向上させることのできる技術を提供することを目的とする。   According to the present invention, when transferring a packet received from a network to a host computer, the cost of the network adapter is suppressed and the protocol processing of the host computer is kept simple, and the memory copy in the host computer is abolished. It aims at providing the technique which can improve the use efficiency of.

本発明のネットワークアダプタは、ネットワークを介して受信した複数のパケットをホストコンピュータに転送するためのものであって、受信した各パケットをヘッダ部と本体データ部とに分離する分離手段と、前記分離手段により分離された各パケットを蓄積するための蓄積手段と、前記複数パケットの各ヘッダ部に基づいて新たなヘッダを作成する作成手段と、前記新たなヘッダおよび前記蓄積手段に蓄積されている複数の本体データ部の各格納位置を示す複数の位置特定情報を前記ホストコンピュータに通知する通知手段と、前記ホストコンピュータにおいて前記位置特定情報を用いて作成された転送指示に基づいて前記蓄積手段から前記複数の本体データ部を読み出してホストコンピュータに転送する転送手段、を備える。   A network adapter according to the present invention is for transferring a plurality of packets received via a network to a host computer, separating means for separating each received packet into a header part and a body data part, and the separation Storage means for storing each packet separated by the means; creation means for creating a new header based on each header portion of the plurality of packets; and a plurality of new headers and a plurality of storages stored in the storage means Notification means for notifying the host computer of a plurality of pieces of position specifying information indicating the respective storage positions of the main body data portion, and from the storage means based on a transfer instruction created using the position specifying information in the host computer. Transfer means for reading a plurality of main body data portions and transferring them to a host computer.

上記ネットワークアダプタにおいては、受信した複数のパケットが、論理的に、新たなヘッダおよび複数の本体データ部から構成される1つのパケットにまとめられる。新たなヘッダおよび位置特定情報は、本体データ部とは別にホストコンピュータに転送される。本体データ部は、ホストコンピュータにおいて位置特定情報を用いて作成された転送指示に基づいて、そのホストコンピュータのメモリの所定領域に転送される。ホストコンピュータは、新たなヘッダに基づいてプロトコル処理を行い、上記本体データ部の転送先を決定し、複数の本体データ部が転送先のホストコンピュータメモリで連続するように転送指示を作成する。   In the network adapter, a plurality of received packets are logically combined into one packet composed of a new header and a plurality of body data parts. The new header and position specifying information are transferred to the host computer separately from the main body data portion. The main body data portion is transferred to a predetermined area of the memory of the host computer based on a transfer instruction created using the position specifying information in the host computer. The host computer performs protocol processing based on the new header, determines the transfer destination of the main body data portion, and creates a transfer instruction so that the plurality of main body data portions are continuous in the host computer memory of the transfer destination.

上記ネットワークアダプタにおいて、前記通知手段は、前記新たなヘッダおよび前記位置特定情報を前記ホストコンピュータにおけるメモリのカーネル空間に対して送信し、前記転送手段は、前記複数の本体データ部を前記ホストコンピュータにおけるメモリのユーザ空間に対して転送するようにしてもよい。この構成においては、ホストコンピュータ内において、本体データ部をカーネル空間からユーザ空間へメモリ間転送する必要がない。   In the network adapter, the notification unit transmits the new header and the position specifying information to a kernel space of a memory in the host computer, and the transfer unit transmits the plurality of main body data units in the host computer. You may make it transfer with respect to the user space of memory. In this configuration, it is not necessary to transfer the main body data part from the kernel space to the user space in the host computer.

また、前記通知手段は、前記新たなヘッダおよび前記複数の位置特定情報に加えて、その複数の位置特定情報の個数を前記ホストコンピュータに通知するようにしてもよい。この構成においては、ホストコンピュータは、位置特定情報の個数に基づいて、各位置特定情報の格納場所または新たなヘッダの格納場所を認識できる。   In addition to the new header and the plurality of position specifying information, the notification means may notify the host computer of the number of the plurality of position specifying information. In this configuration, the host computer can recognize the storage location of each location specification information or the storage location of a new header based on the number of location specification information.

本発明によれば、ネットワークアダプタに複雑なバッファ管理機能を設けることなく、複数のパケットを論理的に1つのパケットにまとめてホストコンピュータに転送することができる。また、ホストコンピュータにおいてメモリの利用効率が向上する。   According to the present invention, a plurality of packets can be logically combined into one packet and transferred to the host computer without providing a complicated buffer management function in the network adapter. Further, the memory utilization efficiency is improved in the host computer.

以下、本発明の好適な実施の形態について、図面を参照しながら詳細に説明する。
図1は、本発明に係る通信システム10において送受信される、パケットの流れを概略的に示した図である。パケットの送信側ホストコンピュータ2Sおよび受信側のホストコンピュータ2Rは、送信側ネットワークアダプタ1(1S)、受信側ネットワークアダプタ1(1R)を介して互いに接続されている。ホストコンピュータ2のメモリ3には、ユーザ空間4とカーネル空間5とがあるが、ここでは、ユーザ空間4におけるデータ(パケット)の送受信、すなわち、ユーザ空間4に格納されたアプリケーションバッファ6のデータを、上記の国際出願番号PCTJP04/12006で記載のCOE(Copy Offload Engine)技術で送受信する場合を考える。
DESCRIPTION OF EXEMPLARY EMBODIMENTS Hereinafter, preferred embodiments of the invention will be described in detail with reference to the drawings.
FIG. 1 is a diagram schematically showing the flow of packets transmitted and received in the communication system 10 according to the present invention. The packet transmission side host computer 2S and the reception side host computer 2R are connected to each other via a transmission side network adapter 1 (1S) and a reception side network adapter 1 (1R). The memory 3 of the host computer 2 includes a user space 4 and a kernel space 5. Here, transmission / reception of data (packets) in the user space 4, that is, data in the application buffer 6 stored in the user space 4 is stored. Consider a case where transmission / reception is performed by the COE (Copy Offload Engine) technique described in the above-mentioned International Application No. PCTJP04 / 12006.

送信側ホストコンピュータ2Sにおけるアプリケーションバッファ6のデータは、COE技術により、カーネル空間5を経由せずに送信側の送信バッファ6に転送され、送信側ネットワークアダプタ1(1S)によってMTUサイズ毎の分割されたパケット(フラグメント)として、ネットワークアダプタ1(1R)に送信される。その後、ネットワークアダプタ1(1R)に受信されたデータは、カーネル空間5を経由せずに受信側ホストコンピュータ2Rのユーザ空間4に対して転送される。受信側におけるパケットのユーザ空間4への転送処理は、ネットワークアダプタ1内の受信バッファのデータに対し、ホストコンピュータ2が行う。上記の背景技術でも説明したように、プロトコル処理は、ホストコンピュータ2のソフトウェアが実行する。   Data in the application buffer 6 in the transmission side host computer 2S is transferred to the transmission buffer 6 on the transmission side without passing through the kernel space 5 by the COE technique, and is divided for each MTU size by the transmission side network adapter 1 (1S). The packet (fragment) is transmitted to the network adapter 1 (1R). Thereafter, the data received by the network adapter 1 (1R) is transferred to the user space 4 of the receiving host computer 2R without passing through the kernel space 5. Transfer processing of the packet to the user space 4 on the reception side is performed by the host computer 2 on the data in the reception buffer in the network adapter 1. As described in the background art above, the protocol processing is executed by the software of the host computer 2.

図2は、一般的なDMA転送を実行するためのDMAインタフェースを説明する図である。本実施形態に係るネットワークアダプタ1の動作について説明する前に、まず、一般的なDMA転送におけるネットワークアダプタの動作について、図2を用いて説明する。   FIG. 2 is a diagram illustrating a DMA interface for executing a general DMA transfer. Before describing the operation of the network adapter 1 according to the present embodiment, first, the operation of the network adapter in general DMA transfer will be described with reference to FIG.

ネットワークを介して受信したパケットは、ネットワークアダプタ100に到着した順に、アダプタメモリ(受信バッファ)101に非連続に蓄積される。ネットワークアダプタ100のアダプタメモリ101に蓄積されたパケットは、ホストコンピュータ200のメモリ(ホストメモリ)201にDMAディスクリプタを用いてDMA転送される。   Packets received via the network are stored discontinuously in the adapter memory (reception buffer) 101 in the order of arrival at the network adapter 100. Packets stored in the adapter memory 101 of the network adapter 100 are DMA-transferred to the memory (host memory) 201 of the host computer 200 using a DMA descriptor.

パケットをネットワークアダプタ100から受信するホストコンピュータ200のメモリ201は、ディスクリプタ領域と受信バッファとを含んで構成される。ディスクリプタ領域とはDMA転送に用いられるディスクリプタを格納する領域であり、受信バッファとはネットワークアダプタ100からDMA転送されたパケットをいったん格納するための領域である。   The memory 201 of the host computer 200 that receives a packet from the network adapter 100 includes a descriptor area and a reception buffer. The descriptor area is an area for storing descriptors used for DMA transfer, and the reception buffer is an area for temporarily storing packets DMA-transferred from the network adapter 100.

ディスクリプタ領域に配置されるディスクリプタは配列あるいはリストから構成され、パケットデータの読み出しのために必要な情報の格納先についての物理アドレス、ホストコンピュータ200からネットワークアダプタ100へのコマンド、受信パケットの長さおよびステータス等の制御情報を保持している。制御情報のひとつであるステータスによって、ネットワーク側から転送されてくる複数のパケットについて、全て受信したか否かが示される。なお、受信パケットの長さやステータス等の制御情報は、ネットワークアダプタ100によってパケットの受信完了時に更新される。   The descriptor arranged in the descriptor area is composed of an array or a list, and includes a physical address for storing information necessary for reading packet data, a command from the host computer 200 to the network adapter 100, a length of the received packet, and It holds control information such as status. Whether or not all of the plurality of packets transferred from the network side have been received is indicated by the status which is one of the control information. Note that control information such as the length and status of the received packet is updated by the network adapter 100 when reception of the packet is completed.

図3は、本実施形態に係るネットワークアダプタ1を用いて、受信パケットをホストコンピュータ2に転送する動作の概略を説明する図である。本実施形態においては、ネットワーク側から受信したパケットがネットワークアダプタ1のアダプタメモリ12に非連続に格納されると、連続したパケットに再構成する処理をネットワークアダプタ1側においては行わず、受信した複数のパケットのヘッダに基づいて論理的に1つにまとめられたパケットを作成する。そして、その論理的に作成されたパケットのヘッダおよび複数の受信パケットから取り出した複数の本体データ部分がホストコンピュータ2に転送され、ホストコンピュータ2は論理的に作成されたパケットのヘッダに基づいてプロトコル処理を実行する。以下、受信した複数のパケットのヘッダから論理的に作成され、ホストコンピュータ2に転送するための新たなヘッダを、再構成ヘッダ30とする。   FIG. 3 is a diagram for explaining an outline of an operation of transferring a received packet to the host computer 2 using the network adapter 1 according to the present embodiment. In the present embodiment, when packets received from the network side are stored discontinuously in the adapter memory 12 of the network adapter 1, the network adapter 1 side does not perform the process of reconstructing continuous packets, and the received multiple Based on the header of the packet, a packet that is logically combined is created. Then, a header of the logically created packet and a plurality of body data portions extracted from the plurality of received packets are transferred to the host computer 2, and the host computer 2 performs a protocol based on the header of the logically created packet. Execute the process. Hereinafter, a new header that is logically created from the received headers of a plurality of packets and is transferred to the host computer 2 is referred to as a reconfiguration header 30.

ネットワークアダプタ1から転送された再構成ヘッダ30は、ホストコンピュータ2においては、ホストメモリ3のカーネル空間5に格納される。ホストコンピュータ2のプロトコル処理を実行するソフトウェアによって再構成ヘッダ30が処理され、パケットの本体データの転送先が決定される。ここで、パケットの本体データの転送先とは、ホストメモリ3のユーザ空間4上の領域であり、本実施形態においては、ホストコンピュータ2においてメモリ間コピーは行わず、ネットワークアダプタ1のアダプタメモリ12上のパケットの本体データは、直接ホストコンピュータ2のユーザ空間4にDMA転送される。アダプタメモリ12の本体データの格納位置は、本体データの転送に先立って、本体データの位置情報(位置特定情報)としてネットワークアダプタ1からホストコンピュータ2に送信される。   The reconfiguration header 30 transferred from the network adapter 1 is stored in the kernel space 5 of the host memory 3 in the host computer 2. The reconfiguration header 30 is processed by software that executes the protocol processing of the host computer 2, and the transfer destination of the main data of the packet is determined. Here, the transfer destination of the packet body data is an area on the user space 4 of the host memory 3. In this embodiment, the host computer 2 does not perform inter-memory copying, and the adapter memory 12 of the network adapter 1. The main data of the upper packet is DMA transferred directly to the user space 4 of the host computer 2. The storage location of the main body data in the adapter memory 12 is transmitted from the network adapter 1 to the host computer 2 as position information (position specifying information) of the main body data prior to the transfer of the main body data.

図4は、本実施形態に係るネットワークアダプタ1を用いて構成される、通信システム10のブロック図である。本実施形態においては、上記の通り、通信システム10は、ネットワークアダプタ1およびホストコンピュータ2を含んで構成される。図4を用いて、図3に概略的に示される動作を具体的に実行する際の各装置における機能について説明する。   FIG. 4 is a block diagram of the communication system 10 configured using the network adapter 1 according to the present embodiment. In the present embodiment, as described above, the communication system 10 includes the network adapter 1 and the host computer 2. With reference to FIG. 4, functions in each device when the operation schematically illustrated in FIG. 3 is specifically executed will be described.

ネットワークアダプタ1は、MAC(Media Access Control)11、受信バッファ(アダプタメモリ)12、DMA制御部13および制御部14を含む。MAC11は、データリンク層の下位に位置し、データの送受信単位であるフレームの送受信に関し、フレームの形式や誤り検出方法等、所定の方式でデータが送受信されているか否かを規定する。受信バッファ12は、上記の通り、ネットワーク側から受信したパケットや、ホストコンピュータ2からネットワークに向けて送信されるパケットを格納する。DMA制御部13は、ホストコンピュータ2により作成されるコマンド(DMAディスクリプタ)に従ってDMA転送を行う。制御部14は、送受信されるパケットの制御を行う。   The network adapter 1 includes a MAC (Media Access Control) 11, a reception buffer (adapter memory) 12, a DMA control unit 13, and a control unit 14. The MAC 11 is positioned below the data link layer, and defines whether data is transmitted / received by a predetermined method, such as a frame format and an error detection method, regarding transmission / reception of a frame which is a data transmission / reception unit. As described above, the reception buffer 12 stores packets received from the network side and packets transmitted from the host computer 2 toward the network. The DMA control unit 13 performs DMA transfer according to a command (DMA descriptor) created by the host computer 2. The control unit 14 controls packets transmitted and received.

ネットワークアダプタ1の制御部14は、チェックサム検算機構部41、COE動作判定処理部42、ヘッダ処理部43およびパケット再構成処理部44を含む。チェックサム検算機構部41は、送受信するパケットが壊れていないか検査するときに用いられるチェックサムの算出や、そのチェックサムを用いて検査を行う。COE動作判定処理部42は、再構成ヘッダ30を用いたパケットの転送を実行するか否かを、分割されたパケット(フラグメント)のサイズ等により判定する。ヘッダ処理部43は、再構成ヘッダ30を作成する。パケット再構成処理部44は、フラグメントの本体データを、ホストコンピュータ2において分割前の順にデータが配列されるために必要な情報を作成する。   The control unit 14 of the network adapter 1 includes a checksum verification mechanism unit 41, a COE operation determination processing unit 42, a header processing unit 43, and a packet reconfiguration processing unit 44. The checksum verification mechanism unit 41 calculates a checksum used when checking whether a packet to be transmitted / received is broken, or performs an inspection using the checksum. The COE operation determination processing unit 42 determines whether or not to transfer the packet using the reconfiguration header 30 based on the size of the divided packet (fragment). The header processing unit 43 creates the reconfiguration header 30. The packet reconstruction processing unit 44 creates information necessary for arranging the main data of the fragments in the order before the division in the host computer 2.

ホストコンピュータ2は、メモリ3、ドライバ22および制御部23を含んで構成される。メモリ3は、上記の通り、ネットワークアダプタ1から受信した再構成ヘッダ30やパケットの本体データを格納する領域であり、ユーザ空間4とカーネル空間5とを含む。   The host computer 2 includes a memory 3, a driver 22 and a control unit 23. As described above, the memory 3 is an area for storing the reconfiguration header 30 and the packet main data received from the network adapter 1, and includes the user space 4 and the kernel space 5.

ドライバ22は、ネットワークアダプタ1との間でなされるパケットの送受信を制御する。ドライバ22は、通常パケット転送部221とCOEデータ転送部222とを含んで構成される。通常パケット転送部221は、通常のパケット転送を実行する。COEデータ転送部222は、再構成ヘッダ30に基づいて、ネットワークアダプタ1の受信バッファ12に格納されたパケットの本体データの送受信を行う。   The driver 22 controls transmission / reception of packets to / from the network adapter 1. The driver 22 includes a normal packet transfer unit 221 and a COE data transfer unit 222. The normal packet transfer unit 221 performs normal packet transfer. Based on the reconfiguration header 30, the COE data transfer unit 222 transmits and receives the main data of the packet stored in the reception buffer 12 of the network adapter 1.

メモリ3は、上記の通りユーザ空間4とカーネル空間5とから構成される。ユーザ空間4およびカーネル空間5については、前述の通りであるのでここではその説明を割愛する。   The memory 3 includes the user space 4 and the kernel space 5 as described above. Since the user space 4 and the kernel space 5 are as described above, description thereof is omitted here.

ホストコンピュータ2の制御部23は、本発明に係わる動作としては、ホストコンピュータ2におけるパケットの送受信に関する制御を行う。制御部23は、プロトコル処理部231を含む。プロトコル処理部231は、ネットワークアダプタ1から受信した再構成ヘッダ30に基づいて、プロトコル処理を実行するためのソフトウェアを起動する。   The control unit 23 of the host computer 2 performs control related to packet transmission / reception in the host computer 2 as an operation according to the present invention. The control unit 23 includes a protocol processing unit 231. The protocol processing unit 231 activates software for executing the protocol processing based on the reconfiguration header 30 received from the network adapter 1.

図5は、本実施形態に係る通信システム10におけるホストコンピュータ2の受信バッファに、パケットの本体データの位置情報40と再構成ヘッダ30とを格納することを説明する図である。図5に示されるホストコンピュータ2のカーネル空間5のうち、上部はディスクリプタ領域、下部は受信バッファを表している。   FIG. 5 is a diagram for explaining that the position information 40 of the packet main data and the reconfiguration header 30 are stored in the reception buffer of the host computer 2 in the communication system 10 according to the present embodiment. In the kernel space 5 of the host computer 2 shown in FIG. 5, the upper part represents the descriptor area, and the lower part represents the reception buffer.

図5において、受信バッファ領域には、ネットワークアダプタ1から送られてくる再構成ヘッダ30および位置情報40が格納される。ここで、位置情報40は、例えば、ネットワークアダプタ1のアダプタメモリ12における、各本体データの先頭アドレス、および各本体データのデータ長から構成される。なお、ネットワークアダプタ1からホストコンピュータ2への再構成ヘッダ30および位置情報40の転送は、後述するヘッダ転送用DMAディスクリプタに従って行われる。   In FIG. 5, the reconfiguration header 30 and the position information 40 sent from the network adapter 1 are stored in the reception buffer area. Here, the position information 40 includes, for example, the head address of each main body data and the data length of each main body data in the adapter memory 12 of the network adapter 1. The transfer of the reconfiguration header 30 and the position information 40 from the network adapter 1 to the host computer 2 is performed according to a header transfer DMA descriptor described later.

データ転送用のディスクリプタは、位置情報40を利用してホストコンピュータ2によって作成される。ここで、図5のヘッダ転送用ディスクリプタは、先に図2を用いて説明したように、受信バッファの物理アドレス、受信パケットの長さおよびステータス等の情報を含んでいる。   A descriptor for data transfer is created by the host computer 2 using the position information 40. Here, as described above with reference to FIG. 2, the header transfer descriptor of FIG. 5 includes information such as the physical address of the reception buffer, the length of the reception packet, and the status.

図5において、ディスクリプタ領域におけるステータスについては先に図2を用いて説明した通りである。バッファアドレスには、受信バッファの先頭アドレスが格納される。位置情報数には、アダプタメモリ12における位置情報40の個数、すなわちアダプタメモリ12に蓄積されている本体データの個数についての情報が格納される。そして、ホストコンピュータ2は、位置情報40に基づいてデータ転送用のDMAディスクリプタを作成し、ネットワークアダプタ1は、そのDMAディスクリプタに従ってアダプタメモリ12からパケットの本体データを読み出してホストコンピュータ2へ転送する。転送バイト数には、受信バッファに転送した、再構成ヘッダ30および位置情報40のバイト数が格納される。   In FIG. 5, the status in the descriptor area is as described above with reference to FIG. The buffer address stores the start address of the reception buffer. The number of position information stores information on the number of position information 40 in the adapter memory 12, that is, the number of main body data accumulated in the adapter memory 12. Then, the host computer 2 creates a DMA descriptor for data transfer based on the position information 40, and the network adapter 1 reads the main body data of the packet from the adapter memory 12 according to the DMA descriptor and transfers it to the host computer 2. The transfer byte count stores the number of bytes of the reconstruction header 30 and the position information 40 transferred to the reception buffer.

なお、図5に示す例においては、受信バッファに格納される情報は、先頭から位置情報40が、続く領域には再構成ヘッダ30が設定されているが、これに限られない。例えば、ホストコンピュータ2が、位置情報40、再構成ヘッダ30の先頭アドレスを設定した後その設定値をネットワークアダプタ1に対して通知することとしてもよい。あるいは、例えば、位置情報40や再構成ヘッダ30の格納領域を定めておき、その領域の先頭に再構成ヘッダ30を格納し、領域の末尾等、所定の位置に位置情報40を格納することとしてもよい。   In the example shown in FIG. 5, the information stored in the reception buffer is set with the position information 40 from the beginning, and the reconstruction header 30 is set in the subsequent area, but is not limited thereto. For example, the host computer 2 may set the position information 40 and the start address of the reconfiguration header 30 and then notify the network adapter 1 of the set values. Alternatively, for example, a storage area for the position information 40 and the reconstruction header 30 is determined, the reconstruction header 30 is stored at the head of the area, and the position information 40 is stored at a predetermined position such as the end of the area. Also good.

このように、実施形態の通信システムにおいては、複数の受信パケットに対応する個数の位置情報40がネットワークアダプタ1において作成され、ネットワークアダプタ1からホストコンピュータ2にそれらの位置情報40が通知される際に、その位置情報40の個数もホストコンピュータ2に通知される。したがって、各位置情報40のデータ長が互いに同じであるものとすると、ホストコンピュータ2は、受信バッファ内における各位置情報40の格納アドレスを認識していなくても、先頭の位置情報40の格納アドレスさえ認識していれば、他の任意の位置情報40の格納アドレス(および、場合によっては、再構成ヘッダ30の格納アドレスも)を計算により求めることができる。   As described above, in the communication system according to the embodiment, the number of pieces of position information 40 corresponding to a plurality of received packets is created in the network adapter 1 and the position information 40 is notified from the network adapter 1 to the host computer 2. In addition, the number of the position information 40 is also notified to the host computer 2. Therefore, assuming that the data lengths of the position information 40 are the same as each other, the host computer 2 does not recognize the storage address of the position information 40 in the reception buffer, but stores the storage address of the head position information 40. If it is recognized, the storage address of other arbitrary position information 40 (and the storage address of the reconstruction header 30 in some cases) can be obtained by calculation.

図6は、再構成ヘッダ30の構造の一例である。本実施形態において作成される再構成ヘッダ30は、ネットワーク側から受信した、分割されたパケット(フラグメント)のIPヘッダに基づく。ネットワークアダプタ1が、受信したフラグメントのIPヘッダを参照して、送信元、宛先、識別子等が共通するフラグメントについてまとめて1つのパケットとしてホストコンピュータ2に転送するための再構成ヘッダ30を作成する。フラグメントの各本体データは、再構成ヘッダ30に従って1つのパケットとしてプロトコル処理された後に、それぞれ直接ユーザ空間4に転送される。本実施形態においては、まとめるべきフラグメントを他のフラグメントと区別するための、パケットの送信元等の情報を識別情報とする。図6では、「識別子(Identification)」、「プロトコル(Protocol)」、「送信元アドレス(Source Address)」および「宛先アドレス(Destination Address)」がこの識別情報に相当する。   FIG. 6 is an example of the structure of the reconfiguration header 30. The reconfiguration header 30 created in this embodiment is based on the IP header of a divided packet (fragment) received from the network side. The network adapter 1 refers to the IP header of the received fragment, and creates a reconfiguration header 30 for collectively transferring the fragments having the same source, destination, identifier, etc. to the host computer 2 as one packet. Each body data of the fragment is protocol-processed as one packet according to the reconfiguration header 30 and then directly transferred to the user space 4. In the present embodiment, information such as a packet transmission source for distinguishing fragments to be collected from other fragments is used as identification information. In FIG. 6, “identification”, “protocol”, “source address”, and “destination address” correspond to this identification information.

識別子には、分割されたパケットには全て同一の値が格納される。プロトコルは、IPパケットに格納されたデータのプロトコルである。送信元アドレス、宛先アドレスには、それぞれパケットの送信元、送信先のIPアドレスが格納される。   In the identifier, the same value is stored in all the divided packets. The protocol is a protocol of data stored in the IP packet. The transmission source address and destination address store the IP address of the transmission source and transmission destination of the packet, respectively.

識別情報の各値は、ネットワーク側から受信したパケットのヘッダに基づいて設定される。用いられるヘッダは、例えば、先頭フラグメントのIPヘッダである。受信したそのパケットが先頭フラグメントであるか否かは、ヘッダの「フラグメントオフセット(Fragment Offset、元のデータ中の位置)」の情報を参照して判定する。受信したパケットが先頭フラグメントである場合には、値として「0」が格納されているため、先頭以外のフラグメントとの識別が可能とされる。   Each value of the identification information is set based on the header of the packet received from the network side. The header used is, for example, the IP header of the top fragment. Whether or not the received packet is the first fragment is determined by referring to the information of “Fragment Offset (position in original data)” of the header. If the received packet is the first fragment, “0” is stored as the value, so that it can be distinguished from fragments other than the first fragment.

再構成ヘッダ30を構成する情報のうち、「パケットの全長(Total Length)」、「MF(More Fragment Flag)」および「ヘッダチェックサム(Header Checksum)」については、アダプタメモリ12にすべてのフラグメントが蓄積されたときに更新される。パケットの全長(Total Length)は、先頭フラグメントのヘッダ長(IHL)、および末尾フラグメントのヘッダ長(IHL)、パケットの全長(Total Length)および「フラグメントオフセット(Fragment Offset)」を元に算出される。フラグメントオフセットには、1つのパケットが複数のフラグメントに分割される前における、データの先頭からのオフセット値が格納されている。   Among the information constituting the reconfiguration header 30, all fragments are stored in the adapter memory 12 for “Total Length”, “MF (More Fragment Flag)”, and “Header Checksum”. Updated when accumulated. The total length of the packet (Total Length) is calculated based on the header length (IHL) of the first fragment, the header length (IHL) of the last fragment, the total length of the packet (Total Length), and “Fragment Offset”. . The fragment offset stores an offset value from the beginning of the data before one packet is divided into a plurality of fragments.

MFに関しては、本実施形態においては分割されたパケットをネットワークアダプタ1においてまとめ、1つのパケットとしてホストコンピュータ2に転送することを表す値として「0」が格納される。ヘッダチェックサム(Header Checksum)は、まとめられたパケットの再構成ヘッダ30が壊れていないか検査する際に用いられ、パケットの全長等の、再構成によって変更された値に基づいて更新、設定される。あるいは、パケットの全長等を更新した後に通常のIPヘッダチェックサム計算によって算出したものを設定してもよい。   Regarding the MF, in this embodiment, “0” is stored as a value indicating that the divided packets are collected in the network adapter 1 and transferred to the host computer 2 as one packet. The header checksum is used to check whether the reassembly header 30 of the combined packet is not broken, and is updated and set based on a value changed by the reconfiguration such as the total length of the packet. The Or you may set what was computed by normal IP header checksum calculation after updating the full length etc. of a packet.

図6に示される再構成ヘッダ30の各フィールドのうち、「オプション(Option)」および「パディング(Padding)」については、ヘッダを構成するフィールドとしては、必ずしも設定されている必要はない。図6中に示される他のフィールドについては、パケットの正当性を確認する際に用いられる。例えば、IPのバージョンが「IPv4」である場合、「バージョン(Version)」として「4」が格納される。また、「DF(Don’t Fragment Flag)」は、パケットを分割してよい場合は0、分割してはいけない場合は1が格納される。よって、パケットがフラグメント化されているのに、DFに1が格納されている場合は、そのパケットは正当でないと判定される。「生存時間(Time to Live)」に0が格納されている場合についても同様に正当でないと判定される。   Of the fields of the reconfiguration header 30 shown in FIG. 6, “Option” and “Padding” do not necessarily have to be set as fields constituting the header. The other fields shown in FIG. 6 are used when confirming the validity of the packet. For example, when the IP version is “IPv4”, “4” is stored as “Version”. In addition, “DF (Do n’t Fragment Flag)” stores “0” when the packet may be divided, and “1” when the packet should not be divided. Therefore, if the packet is fragmented but 1 is stored in the DF, it is determined that the packet is not valid. Similarly, when 0 is stored in “Time to Live”, it is determined that the time is not valid.

図6に示される再構成ヘッダ30の識別情報は、先頭フラグメントの識別情報を元に作成されている。先頭以外のフラグメントについても同様に、各フラグメントのヘッダ部分には識別情報が格納されている。本実施形態においては、フラグメントのヘッダに含まれる識別情報に基づいて1つにまとめられるべきフラグメントを判断し、ネットワークアダプタ1からホストコンピュータ2に対し、1つのパケットにまとめられるべき複数の本体データ部をホストコンピュータ2に転送する際に必要な情報が通知される。フラグメントのヘッダを元に管理される、本体データの転送に必要な情報を管理情報とする。以下、フラグメントのヘッダの情報をネットワークアダプタ1において管理する方法について説明する。   The identification information of the reconstruction header 30 shown in FIG. 6 is created based on the identification information of the head fragment. Similarly, the identification information is stored in the header portion of each fragment for the fragments other than the head. In the present embodiment, a plurality of main body data portions to be combined into one packet from the network adapter 1 to the host computer 2 are determined based on identification information included in the fragment header. Is transmitted to the host computer 2. Information necessary for transferring body data, which is managed based on the fragment header, is used as management information. Hereinafter, a method of managing the fragment header information in the network adapter 1 will be described.

図7は、管理情報のデータ構造の一例である。フラグメントの識別情報をキーとして検索することにより、各フラグメントにおける本体データ部の、アダプタメモリ12における格納先アドレス、データ長等の情報が得られる。   FIG. 7 shows an example of the data structure of management information. By searching using fragment identification information as a key, information such as the storage destination address and data length of the main body data portion in each fragment in the adapter memory 12 is obtained.

図7中、最上段に示されるデータ構造を、まとめられる1つのパケットについてのパケット管理情報Pとする。中段に示されるデータ構造を、1番目にアダプタメモリ12に蓄積されたフラグメントについてのフラグメント管理情報F1、下段に示されるデータ構造を2番目のフラグメントについてのフラグメント管理情報F2、以下、N番目のフラグメントについてのフラグメント管理情報FNとする。受信したフラグメントについてのフラグメント管理情報は、本実施形態ではリスト構造により管理される。   In FIG. 7, the data structure shown at the top is packet management information P for one packet to be collected. The data structure shown in the middle is the fragment management information F1 for the fragment first stored in the adapter memory 12, and the data structure shown in the lower is the fragment management information F2 for the second fragment, hereinafter the Nth fragment. Is fragment management information FN. In this embodiment, fragment management information for received fragments is managed by a list structure.

アダプタメモリ12に蓄積されたフラグメントについては、順次、パケット管理情報Pの「受信済みフラグメントリスト」に情報が追記され、「受信済みフラグメント数」が加算される。パケット管理情報Pの「タイマ」は、最初に蓄積されたフラグメントについてフラグメント管理情報F1が作成されると初期化され、1つのパケットを分割することにより生成された全てのフラグメントについて、アダプタメモリ12に蓄積される期間を測定する。   Information about the fragments stored in the adapter memory 12 is sequentially added to the “received fragment list” of the packet management information P, and the “number of received fragments” is added. The “timer” of the packet management information P is initialized when the fragment management information F1 is created for the first accumulated fragment, and is stored in the adapter memory 12 for all fragments generated by dividing one packet. Measure the accumulation period.

最初にアダプタメモリ12に蓄積されたフラグメントについての、フラグメント管理情報F1を例に挙げる。「末尾フラグメントフラグ」には、分割されたデータの最後のフラグメントが他のフラグメントと識別可能になるように設定される。「データグラム内オフセット」には、分割前のパケット(データグラム)においての、先頭からのオフセット値、すなわちヘッダの「フラグメントオフセット」の値が設定される。「データ部分のサイズ」は、フラグメントのうちヘッダを除いた、本体データ部分のデータ長が設定される。「データグラム内オフセット」と「データ部分のサイズ」とから、そのフラグメントが1つのパケットにまとめられた場合に占める位置が算出される。本実施形態においては、これら3つのデータを用いて、パケットを構成する全フラグメントを蓄積したか否かを判定する。   As an example, fragment management information F1 for fragments initially stored in the adapter memory 12 will be described. The “end fragment flag” is set so that the last fragment of the divided data can be distinguished from other fragments. In the “datagram offset”, an offset value from the head in the packet (datagram) before division, that is, the value of the “fragment offset” of the header is set. The “data portion size” is set to the data length of the main data portion excluding the header of the fragment. From the “offset in datagram” and “size of data portion”, the position occupied when the fragments are combined into one packet is calculated. In the present embodiment, it is determined whether or not all the fragments constituting the packet have been accumulated using these three data.

「フラグメントサイズ」は、フラグメント全体のデータ長が設定される。「蓄積したバッファの先頭アドレス」は、アダプタメモリ12において蓄積されている位置のアドレスが設定される。「データ部分のオフセット」は、アダプタメモリ12において、先頭、すなわち蓄積したバッファの先頭アドレスからのオフセット値が設定される。「データ部分の部分チェックサム」は、フラグメント自身のデータに基づいて算出された、パケット(データグラム)が壊れていないか検査するための値が設定される。   In “fragment size”, the data length of the entire fragment is set. In the “accumulated buffer start address”, the address of the position accumulated in the adapter memory 12 is set. In the “data portion offset”, an offset value from the head, that is, the head address of the accumulated buffer in the adapter memory 12 is set. The “partial checksum of the data part” is set to a value for checking whether or not the packet (datagram) is broken, calculated based on the data of the fragment itself.

アダプタメモリ12には、各フラグメントのヘッダおよび本体データ部が蓄積される。「蓄積したバッファの先頭アドレス」に各フラグメントの「データ部分のオフセット」を加えた値が、ホストコンピュータ2に送信すべき、そのフラグメントの本体データ部分の開始アドレスである。本体データ部分の開始アドレスと、本体データ部分のデータ長である「データ部分のサイズ」とが上記位置情報として、ホストコンピュータ2に通知される。   The adapter memory 12 stores the header and main body data portion of each fragment. A value obtained by adding “data portion offset” of each fragment to “accumulated buffer start address” is the start address of the main data portion of the fragment to be transmitted to the host computer 2. The start address of the main body data portion and the “data portion size” which is the data length of the main body data portion are notified to the host computer 2 as the position information.

全てのフラグメントをアダプタメモリ12に蓄積する前にパケット管理情報Pの「タイマ」で計測している期間が所定の期間を超えた場合は、例えば、「蓄積したバッファの先頭アドレス」および「フラグメントサイズ」データを用いて、その時点でアダプタメモリ12に蓄積されているヘッダおよび本体データ部からそれぞれパケットを復元し、それらのパケットをホストコンピュータ2に転送する。   When the period measured by the “timer” of the packet management information P before storing all the fragments in the adapter memory 12 exceeds a predetermined period, for example, “the head address of the accumulated buffer” and “the fragment size” Using the data, the packet is restored from the header and the main body data part stored in the adapter memory 12 at that time, and these packets are transferred to the host computer 2.

各フラグメントのデータ部分についての部分チェックサムは、再構成によりフラグメントごとにまとめてフラグメント管理情報として保持しておくことで、全てのフラグメントが蓄積された時点で、全ての値を加算してまとめられたパケットについてのチェックサムを求めることができる。このチェックサムに基づいて、TCP(Transmission Control Protocol)やUDP(User Datagram Protocol)のチェックサムを検算することができる。   The partial checksum for the data part of each fragment is stored for each fragment by reconfiguration and stored as fragment management information. When all fragments are accumulated, all the values are added together. The checksum can be obtained for the received packet. Based on this checksum, a TCP (Transmission Control Protocol) or UDP (User Datagram Protocol) checksum can be calculated.

図8は、フラグメントの本体データ部分を、ディスクリプタを用いて転送させる動作の概略を説明する図である。図7を参照して説明したように、ネットワークアダプタ1が作成した管理情報からDMA転送に必要な情報を通知されると、ホストコンピュータ2は、通知された情報に基づいてDMA転送に用いるディスクリプタを生成する。ホストコンピュータ2によってDMAディスクリプタが作成されると、ネットワークアダプタ1のDMAエンジンは、そのディスクリプタに従ってパケットの本体データのDMA転送処理を実行する。   FIG. 8 is a diagram for explaining the outline of the operation for transferring the main body data portion of the fragment using the descriptor. As described with reference to FIG. 7, when the information necessary for the DMA transfer is notified from the management information created by the network adapter 1, the host computer 2 selects the descriptor used for the DMA transfer based on the notified information. Generate. When the DMA descriptor is created by the host computer 2, the DMA engine of the network adapter 1 executes DMA transfer processing of the main data of the packet according to the descriptor.

1つのフラグメントの本体データ部を転送するためのディスクリプタは、ステータス、本体データ部の書込み先ホストアドレス(ホストコンピュータ2における格納先の先頭アドレス)、本体データ部の送信元格納アドレス(ネットワークアダプタ1のアダプタメモリ12の格納アドレス)、および本体データ部のデータ長を含んで構成される。本実施形態においては、書込み先ホストアドレス、送信元アドレスおよびデータ長については、ネットワークアダプタ1から通知された管理情報に基づいて、ホストコンピュータ2が設定する。   The descriptor for transferring the main body data part of one fragment includes a status, a write destination host address of the main body data part (start address of the storage destination in the host computer 2), a transmission source storage address of the main body data part (of the network adapter 1). Storage address of the adapter memory 12) and the data length of the main body data portion. In the present embodiment, the host computer 2 sets the write destination host address, the transmission source address, and the data length based on the management information notified from the network adapter 1.

ホストコンピュータ2における格納先の先頭アドレスは、ホストコンピュータ2のユーザ空間4における本体データの先頭アドレスである。送信元アドレスは、アダプタメモリ12における本体データの先頭アドレスであり、データ長は、本体データの大きさである。図8の例では、フラグメント1、2についてそれぞれ生成された、ディスクリプタ1、2が示されている。フラグメント2のホストコンピュータ2における先頭アドレスは、フラグメント1の先頭アドレス(図8においては「Host Address」)にフラグメント1のデータ長を加算した値が格納される。ユーザ空間4に転送された本体データは、パケットの構成にしたがって、順に連続して格納される。ネットワークアダプタ1は、各ディスクリプタで指示されたDMA転送処理が完了するごとに、ステータスの値を「完了」ステータスを示す値に設定する。   The start address of the storage destination in the host computer 2 is the start address of the main body data in the user space 4 of the host computer 2. The transmission source address is the head address of the main body data in the adapter memory 12, and the data length is the size of the main body data. In the example of FIG. 8, descriptors 1 and 2 generated for fragments 1 and 2 are shown. The start address of the fragment 2 in the host computer 2 stores a value obtained by adding the data length of the fragment 1 to the start address of the fragment 1 (“Host Address” in FIG. 8). The main body data transferred to the user space 4 is sequentially stored in accordance with the packet configuration. The network adapter 1 sets the status value to a value indicating the “completed” status every time the DMA transfer process designated by each descriptor is completed.

図9から図11は、本実施形態に係るパケット転送に関するフローチャートである。以下、図面を参照して、本実施形態に係るパケット転送を実現するための処理方法について説明する。   9 to 11 are flowcharts relating to packet transfer according to the present embodiment. Hereinafter, a processing method for realizing packet transfer according to the present embodiment will be described with reference to the drawings.

図9は、パケットを受信したネットワークアダプタ1の動作を説明するフローチャートである。
まず、ステップS1で、パケットを受信する。次にステップS2で、受信パケットのIPヘッダが正当であるか否かを判定する。また、宛先IPアドレスがホストコンピュータ2のものであるもののみを正当と見なす。正当と判定されると、ステップS3で、受信パケットのヘッダ部分から識別情報を抽出する。なお、識別情報については、先に図6を参照して説明したのでここでは省略する。
FIG. 9 is a flowchart for explaining the operation of the network adapter 1 that has received a packet.
First, in step S1, a packet is received. Next, in step S2, it is determined whether the IP header of the received packet is valid. Only those whose destination IP address is that of the host computer 2 are considered valid. If it is determined to be valid, identification information is extracted from the header portion of the received packet in step S3. Since the identification information has been described with reference to FIG. 6, it is omitted here.

ステップS4では、受信したパケットがIPフラグメントであるか否かを判定する。IPフラグメントである場合、ステップS5で、そのフラグメントが再構成の対象であるか否かが判定される。例えば、本実施形態では、プロトコルはTCPプロトコルであるか否かや、ホストコンピュータに転送するデータサイズは本発明の転送方法を実行するのに適しているか否か等に基づいて判定される。   In step S4, it is determined whether the received packet is an IP fragment. If it is an IP fragment, it is determined in step S5 whether the fragment is a target for reconstruction. For example, in this embodiment, it is determined based on whether or not the protocol is a TCP protocol, and whether or not the data size to be transferred to the host computer is suitable for executing the transfer method of the present invention.

受信したパケットが、再構成の対象と判定されると、ステップS6で、識別情報が過去に受信したパケットについてのそれと一致するか否かを判定する。一致しない場合、ステップS7で、受信したパケットについての管理情報を新規に作成し、さらに管理情報の「タイマ」を初期化した後にステップS9に進む。なお、ステップS6で識別情報が過去に受信したパケットについての識別情報と一致する場合、ステップS8で、受信したパケットから必要な情報を抽出して管理情報を更新し、ステップS9に進む。なお、ステップS7またはS8において管理情報が作成または更新される際、当該受信パケットの本体データ部についての位置情報(アダプタメモリ12における格納アドレスおよびデータ長)が作成される。   If it is determined that the received packet is to be reconfigured, it is determined in step S6 whether or not the identification information matches that of a previously received packet. If they do not coincide with each other, in step S7, management information for the received packet is newly created, and further, a “timer” of the management information is initialized, and then the process proceeds to step S9. If the identification information matches the identification information of the packet received in the past in step S6, necessary information is extracted from the received packet to update the management information in step S8, and the process proceeds to step S9. When the management information is created or updated in step S7 or S8, position information (storage address and data length in the adapter memory 12) about the main body data portion of the received packet is created.

ステップS9では、受信パケットをアダプタメモリ12に蓄積する。ステップS10で、蓄積したパケット先頭のフラグメントであるか否か判定する。なお、先頭のフラグメントのIPヘッダには、フラグメントオフセットの値として「0」が格納されている点については、先に図6を用いて説明した再構成ヘッダと同様である。受信パケットが先頭のフラグメントと判定された場合は、ステップS11に進み、そのフラグメントのヘッダに格納されている情報を再構成ヘッダ30にコピーしてステップS12に進む。先頭フラグメントでない場合は、ステップS11をスキップしてステップS12に進む。   In step S 9, the received packet is stored in the adapter memory 12. In step S10, it is determined whether or not it is the first fragment stored in the packet. Note that the IP header of the first fragment stores “0” as the fragment offset value, which is the same as the reconstruction header described above with reference to FIG. If it is determined that the received packet is the first fragment, the process proceeds to step S11, and the information stored in the header of the fragment is copied to the reconfiguration header 30, and the process proceeds to step S12. If it is not the first fragment, step S11 is skipped and the process proceeds to step S12.

ステップS12では、全てのフラグメントがアダプタメモリ12に蓄積されたか否かを判定する。全フラグメントの蓄積が完了していない場合、さらにステップS13で、タイマが完了しているか否かを判定する。タイマが未完了の場合は特に処理を行わずに終了する。一方、タイマが完了している場合は、ステップS14で、アダプタメモリ12に蓄積されている、識別情報が同一のフラグメントの全てについて、ヘッダも含めてホストコンピュータ2に転送して処理を終了する。   In step S12, it is determined whether or not all fragments have been accumulated in the adapter memory 12. If the accumulation of all fragments has not been completed, it is further determined in step S13 whether or not the timer has been completed. When the timer is not completed, the process is terminated without performing any particular processing. On the other hand, if the timer has been completed, in step S14, all fragments having the same identification information stored in the adapter memory 12 are transferred to the host computer 2 including the header, and the process is terminated.

ステップS12の判定において、全フラグメントが蓄積されていた場合、ステップS15で、再構成ヘッダ30の「MF」を0に設定し、フラグメントの管理情報から「パケットの全長」および「ヘッダ(IP)チェックサム」を算出して設定する。ステップ16で、各フラグメントの位置情報、および再構成ヘッダ30をホストコンピュータ2に転送する。なお、位置情報は、上述したように、ステップS7またはS8において受信パケットごとに作成される。ステップS17で、管理情報および再構成ヘッダ30を保持していた領域を解放し、さらにタイマをクリアして処理を終了する。   If it is determined in step S12 that all fragments have been accumulated, “MF” of the reconfiguration header 30 is set to 0 in step S15, and “full length of packet” and “header (IP) check are checked from the fragment management information. Calculate and set “thumb”. In step 16, the position information of each fragment and the reconstruction header 30 are transferred to the host computer 2. Note that the position information is created for each received packet in step S7 or S8 as described above. In step S17, the area holding the management information and the reconstruction header 30 is released, the timer is cleared, and the process is terminated.

先のステップS4の判定において受信したパケットがIPフラグメントでない場合、およびステップS5の判定において受信パケットが再構成の対象でないと判定された場合、ステップS18に進み、識別情報が一致するか否かを判定する。一致する場合、先に管理情報の作成されていたパケットについては、データの破損等により誤って管理情報や再構成ヘッダ30が作成されたものと判断し、ステップS19で管理情報、再構成ヘッダ30およびタイマをクリアする。ステップS20で、受信したパケットをそのままの形でホストコンピュータ2に転送し、処理を終了する。なお、ステップS2でIPヘッダが正当でないと判定された場合についてもステップS20に進み、再構成ヘッダ30によるパケット転送は行わない。   If the packet received in the previous determination in step S4 is not an IP fragment, and if it is determined in step S5 that the received packet is not a target for reconstruction, the process proceeds to step S18 to determine whether or not the identification information matches. judge. If they match, it is determined that the management information or the reconfiguration header 30 has been generated by mistake due to data corruption or the like for the packet for which the management information has been previously generated. In step S19, the management information and the reconfiguration header 30 are determined. And clear the timer. In step S20, the received packet is transferred to the host computer 2 as it is, and the process ends. Even when it is determined in step S2 that the IP header is not valid, the process proceeds to step S20, and packet transfer by the reconfiguration header 30 is not performed.

なお、本実施形態においては、ステップS2で正当と見なされなかったパケットはステップS20の処理で受信したパケットをそのままの形でホストコンピュータ2に転送することとし、ステップS13でタイマが完了した場合にもステップS14でホストコンピュータ2に転送することとしているが、これに限られない。例えば、ステップS2において、IPヘッダが正当でないパケット(宛先IPアドレスがホストコンピュータ2のものでないために正当とみなされなかったものは除く)や、ステップS13でタイマが完了した全てのフラグメントについては、ネットワークアダプタ1において、廃棄する等でもよい。   In the present embodiment, a packet that is not considered valid in step S2 is transferred to the host computer 2 as it is in the process of step S20, and when the timer is completed in step S13. Is also transferred to the host computer 2 in step S14, but is not limited thereto. For example, for a packet in which the IP header is not valid in step S2 (except that the destination IP address is not considered valid because the destination IP address is not that of the host computer 2), or all fragments for which the timer has been completed in step S13, The network adapter 1 may be discarded.

図10は、再構成ヘッダ30および位置情報40をホストコンピュータ2に通知する処理についてのフローチャートである。まず、ステップS31で、位置情報40をネットワークアダプタ1内の所定のバッファ領域に書き込む。ステップS32で、ホストコンピュータ2に通知する際にパディングが必要か否かを判定する。パディング不要の場合は特に処理を行わずにステップS34に進むが、パディングが必要な場合は、ステップS33で、バッファにパディングを入れてからステップS34に進む。   FIG. 10 is a flowchart of processing for notifying the reconfiguration header 30 and the position information 40 to the host computer 2. First, in step S31, the position information 40 is written in a predetermined buffer area in the network adapter 1. In step S32, it is determined whether or not padding is necessary when notifying the host computer 2. If padding is not required, the process proceeds to step S34 without performing any particular process. If padding is necessary, the process proceeds to step S34 after padding the buffer in step S33.

ステップS34で、再構成ヘッダ30をネットワークアダプタ1内の所定のバッファ領域に書き込む。ここで、再構成ヘッダ30が書き込まれるバッファは、先に位置情報40を書き込んだバッファとは別のバッファであってもよい。ステップS35で、バッファの内容、すなわち位置情報40および再構成ヘッダ30をホストコンピュータ2のカーネル空間の受信バッファに対して転送する。なお、位置情報40および再構成ヘッダ30をホストコンピュータ2へ転送する処理は、例えば、ホストコンピュータ2により作成されるヘッダ転送用DMAディスクリプタに従う。   In step S34, the reconfiguration header 30 is written in a predetermined buffer area in the network adapter 1. Here, the buffer in which the reconfiguration header 30 is written may be a buffer different from the buffer in which the position information 40 has been previously written. In step S35, the buffer contents, that is, the position information 40 and the reconstruction header 30 are transferred to the reception buffer in the kernel space of the host computer 2. The process of transferring the position information 40 and the reconfiguration header 30 to the host computer 2 follows, for example, a header transfer DMA descriptor created by the host computer 2.

ステップS36では、ホストコンピュータ2において作成されているデータ転送用DMAディスクリプタに、再構成ヘッダ30および位置情報40全体のバイト数(ヘッダサイズ)、および位置情報40の数を設定する。ステップS37で、ディスクリプタのステータスとして、「完了」ステータスを設定し、処理を終了する。なお、ステップS31からS37の処理は、ネットワークアダプタ1により行われる。   In step S 36, the number of bytes (header size) of the reconfiguration header 30 and the entire position information 40 and the number of position information 40 are set in the data transfer DMA descriptor created in the host computer 2. In step S37, a “complete” status is set as the descriptor status, and the process ends. Note that the processing from steps S31 to S37 is performed by the network adapter 1.

図11は、ホストコンピュータ2が、フラグメントの本体データをDMA転送するためのデータ転送用DMAディスクリプタを作成する処理についてのフローチャートである。図10の処理の実行によってディスクリプタの転送データのバイト数、位置情報40およびステータスについての設定が完了すると、ホストコンピュータ2は、さらに転送すべき本体データ部の転送元アドレス、転送先アドレス、バイト数、コマンド等の設定を行い、フラグメントの本体データのDMA転送を実行する。   FIG. 11 is a flowchart of a process in which the host computer 2 creates a data transfer DMA descriptor for DMA transfer of fragment main data. When the setting of the number of bytes of the transfer data of the descriptor, the position information 40 and the status is completed by executing the processing of FIG. 10, the host computer 2 further transfers the transfer source address, the transfer destination address, and the number of bytes of the main body data portion to be transferred. The command is set, and the DMA transfer of the fragment main data is executed.

まず、ステップS41で、位置情報40を読み出すためのポインタを初期化する。なお、位置情報40は、図9に示すフローチャートの処理によりネットワークアダプタ1から送信されてきたものである。このとき、カーネル空間5内の受信バッファに含まれる位置情報40の先頭のアドレスが設定される。次に、ステップS42で、転送先ポインタを初期化する。このときホストコンピュータ2のアプリケーションバッファ(ユーザ空間4)の先頭アドレスが設定される。   First, in step S41, a pointer for reading the position information 40 is initialized. The position information 40 has been transmitted from the network adapter 1 by the processing of the flowchart shown in FIG. At this time, the head address of the position information 40 included in the reception buffer in the kernel space 5 is set. Next, in step S42, the transfer destination pointer is initialized. At this time, the start address of the application buffer (user space 4) of the host computer 2 is set.

ステップS43では、位置情報40を読み出すためのポインタが位置情報40の末尾に達したか否かによって、未転送のデータがアダプタメモリ12に存在するか否かを判定する。未転送データが存在する場合、ステップS44に進み、ディスクリプタの転送元(図8における転送元アドレスがこれに対応する)として、位置情報40を読み出すためのポインタが指す位置情報40に設定されている、本体データの先頭アドレスを設定する。ステップS45で、ディスクリプタの転送先(図8におけるホストアドレスがこれに対応する)として、転送先ポインタが指すアドレスを設定する。   In step S43, whether or not untransferred data exists in the adapter memory 12 is determined based on whether or not the pointer for reading the position information 40 has reached the end of the position information 40. If untransferred data exists, the process proceeds to step S44, where the descriptor transfer source (the transfer source address in FIG. 8 corresponds to this) is set to the position information 40 pointed to by the pointer for reading the position information 40. Set the head address of the main data. In step S45, the address indicated by the transfer destination pointer is set as the transfer destination of the descriptor (the host address in FIG. 8 corresponds to this).

ステップS46では、位置情報40を読み出すためのポインタが指す位置情報40に設定されている、本体データのデータ長を、ディスクリプタの転送サイズ(図8におけるデータ長がこれに対応する)に設定する。ステップS47で、ディスクリプタのコマンドを設定する。ネットワークアダプタ1は、受信したコマンドに基づいて、DMAエンジンを駆動する。ステップS48で、位置情報40を読み出すためのポインタが、次の位置情報40を指すようポインタを更新する。ステップS49で、転送先ポインタに、ステップS46で設定した転送サイズを加算した結果を、転送先ポインタに設定し直し、ステップS43に戻る。   In step S46, the data length of the main body data set in the position information 40 pointed to by the pointer for reading the position information 40 is set to the descriptor transfer size (the data length in FIG. 8 corresponds to this). In step S47, a descriptor command is set. The network adapter 1 drives the DMA engine based on the received command. In step S48, the pointer is updated so that the pointer for reading the position information 40 points to the next position information 40. In step S49, the result of adding the transfer size set in step S46 to the transfer destination pointer is reset to the transfer destination pointer, and the process returns to step S43.

以降、ステップS43からステップS49の処理を繰り返し、アダプタメモリ12に蓄積されたフラグメントの本体データが存在しなくなると、ステップS50に進む。ステップS50においては、全ての転送すべきフラグメントについて、ディスクリプタが設定されたとして、ネットワークアダプタ1に対し、DMAを起動するよう指示し、処理を終了する。   Thereafter, the processing from step S43 to step S49 is repeated, and if the fragment body data accumulated in the adapter memory 12 no longer exists, the process proceeds to step S50. In step S50, assuming that descriptors have been set for all fragments to be transferred, the network adapter 1 is instructed to start DMA, and the process ends.

以上、本実施形態に係るネットワークアダプタ1を含む通信システムによれば、ネットワークアダプタ1において論理的にフラグメントをまとめてパケットを再構成し、そのヘッダ(再構成ヘッダ30)を、位置情報40(各フラグメントのアダプタメモリ12の先頭アドレスおよびデータ長を表す情報)とともにホストコンピュータ2に通知する。ホストコンピュータ2においては、各フラグメントの先頭アドレスおよびデータ長の情報に基づいて、DMA転送が可能とされる。このとき、受信パケットの本体データ部は、ネットワークアダプタ1からホストコンピュータ2のメモリのユーザ空間4へ直接的に転送されるので、ホストコンピュータ2においてデータのメモリ間コピーは不要となる。よって、メモリの利用効率が向上する。また、ホストコンピュータ2において、プロトコル処理ソフトウェアによる受信バッファの管理が容易になる。   As described above, according to the communication system including the network adapter 1 according to the present embodiment, the packet is reorganized by logically grouping the fragments in the network adapter 1, and the header (reconstruction header 30) is replaced with the position information 40 (each The information is sent to the host computer 2 together with information indicating the head address and data length of the adapter memory 12 of the fragment. In the host computer 2, DMA transfer is possible based on the information on the head address and data length of each fragment. At this time, the main data part of the received packet is directly transferred from the network adapter 1 to the user space 4 of the memory of the host computer 2, so that the host computer 2 does not need to copy data between the memories. Therefore, the memory utilization efficiency is improved. In the host computer 2, management of the reception buffer by protocol processing software is facilitated.

また、実施形態の通信システム10では、ネットワークアダプタ1において各受信パケットのヘッダと本体データ部とが分離され、それらのヘッダ部に基づいて作成された再構成ヘッダ30および各本体データ部の位置情報40のみが本体データ部とは別にホストコンピュータ2のカーネル空間5の受信バッファ領域に転送される。ここで、この受信バッファ領域に書き込まれる再構成ヘッダ30および各本体データ部の位置情報40のデータ量は、一般的なMTU(例えば、1500バイト)と比べて十分に小さいので、本発明の転送方式を実現するために特別なデータ領域を用意する必要はない。   Further, in the communication system 10 of the embodiment, the header and the main body data part of each received packet are separated in the network adapter 1, and the reconfiguration header 30 created based on these header parts and the position information of each main body data part Only 40 is transferred to the reception buffer area of the kernel space 5 of the host computer 2 separately from the main body data part. Here, the amount of data of the reconfiguration header 30 and the position information 40 of each main body data portion written in the reception buffer area is sufficiently small compared with a general MTU (for example, 1500 bytes). There is no need to prepare a special data area in order to realize the method.

なお、上記実施形態においては、受信したパケットがIPフラグメントである場合について説明しているが、これに限られない。例えば、受信した複数のTCPパケット(セグメント)を論理的にまとめて大きなTCPパケット(セグメント)として再構成し、各セグメントのアダプタメモリ上の先頭アドレスおよびデータサイズを、再構成したヘッダとともにホストコンピュータに通知する手段を備えることで、上記実施形態と同様にパケットの転送を実現することが可能とされる。   In the above embodiment, the case where the received packet is an IP fragment has been described, but the present invention is not limited to this. For example, a plurality of received TCP packets (segments) are logically grouped and reconfigured as a large TCP packet (segment), and the start address and data size on the adapter memory of each segment are sent to the host computer together with the reconfigured header. By providing the notifying means, it is possible to realize packet transfer as in the above embodiment.

(付記1)
ネットワークを介して受信した複数のパケットを、ホストコンピュータに転送するためのネットワークアダプタであって、
受信した各パケットを、ヘッダ部と本体データ部とに分離する分離手段と、
前記分離手段により分離された各パケットを蓄積するための蓄積手段と、
前記複数パケットの各ヘッダ部に基づいて新たなヘッダを作成する作成手段と、
前記新たなヘッダ、および前記蓄積手段に蓄積されている複数の本体データ部の各格納位置を示す複数の位置特定情報を、前記ホストコンピュータに通知する通知手段と、
前記ホストコンピュータにおいて前記位置特定情報を用いて作成された転送指示に基づいて、前記蓄積手段から前記複数の本体データ部を読み出してホストコンピュータに転送する転送手段と
を備えることを特徴とするネットワークアダプタ。
(付記2)
前記通知手段は、前記新たなヘッダおよび前記位置特定情報を、前記ホストコンピュータにおけるメモリのカーネル空間に対して送信し、
前記転送手段は、前記複数の本体データ部を、前記ホストコンピュータにおけるメモリのユーザ空間に対して転送する
ことを特徴とする付記1に記載のネットワークアダプタ。
(付記3)
前記通知手段は、前記カーネル空間に書き込まれているDMAディスクリプタに従って、前記新たなヘッダおよび前記位置特定情報を該カーネル空間の所定の領域に対して送信する
ことを特徴とする付記2に記載のネットワークアダプタ。
(付記4)
前記通知手段は、前記新たなヘッダおよび前記複数の位置特定情報に加えて、その複数の位置特定情報の個数を前記ホストコンピュータに通知する
ことを特徴とする付記1に記載のネットワークアダプタ。
(付記5)
前記通知手段は、前記ホストコンピュータのメモリ内に予め用意されているバッファ領域の先頭に前記新たなヘッダを送信し、前記複数の位置特定情報を前記バッファ領域の所定位置に送信し、その位置特定情報の送信先アドレスを前記ホストコンピュータに通知する
ことを特徴とする付記4に記載のネットワークアダプタ。
(付記6)
前記通知手段は、前記ホストコンピュータのメモリ内に予め用意されているバッファ領域の先頭に前記新たなヘッダを送信するとともに、そのバッファ領域の末尾に前記複数の位置特定情報を送信する
ことを特徴とする付記4に記載のネットワークアダプタ。
(付記7)
前記通知手段は、前記ホストコンピュータのメモリ内に予め用意されているバッファ領域の先頭に前記複数の位置制御情報を書き込むとともに、その位置特定情報に続く領域に前記新たなヘッダを書き込む
ことを特徴とする付記4に記載のネットワークアダプタ。
(付記8)
前記複数のパケットは、送信装置において1つのパケットを分割することにより得られたものである
ことを特徴とする付記1に記載のネットワークアダプタ。
(付記9)
前記位置特定情報は、それぞれ対応する本体データ部のデータ長を表す情報を含んでいる
ことを特徴とする付記1に記載のネットワークアダプタ。
(付記10)
前記蓄積手段は、前記複数の本体データ部の全てが前記転送手段によって前記ホストコンピュータに転送されると、対応する全てのヘッダ部を廃棄する
ことを特徴とする付記1に記載のネットワークアダプタ。
(付記11)
前記新たなヘッダは、前記複数の本体データ部の全てについて前記蓄積手段に蓄積されたか否かを示すフラグを備え、
前記通知手段は、前記フラグに基づいて前記複数の本体データ部の全てが前記蓄積手段に蓄積されたことを認識すると、前記ホストコンピュータへ前記新たなヘッダおよび前記位置特定情報を転送する処理を開始する
ことを特徴とする付記1に記載のネットワークアダプタ。
(付記12)
前記複数のパケットの中の最初のパケットを受信したときから最後のパケットを受信し終えるまでの時間を計測するタイマ手段、をさらに備え、
前記タイマ手段により計測される時間が所定の時間を超えると、前記転送手段は、それらの受信パケットをそのままホストコンピュータに転送する
ことを特徴とする付記1に記載のネットワークアダプタ。
(付記13)
ホストコンピュータ、およびネットワークを介して受信した複数のパケットを該ホストコンピュータに転送するためのネットワークアダプタを含む通信システムであって、
前記ネットワークアダプタは、
受信した各パケットを、ヘッダ部と本体データ部とに分離する分離手段と、
前記分離手段により分離された各パケットを蓄積するための蓄積手段と、
前記複数パケットの各ヘッダ部に基づいて新たなヘッダを作成する作成手段と、
前記新たなヘッダ、および前記蓄積手段に蓄積されている複数の本体データ部の各格納位置を示す複数の位置特定情報を、前記ホストコンピュータに通知する通知手段と、
前記ホストコンピュータにおいて前記位置特定情報を用いて作成された転送指示に基づいて、前記蓄積手段から前記複数の本体データ部を読み出してホストコンピュータに転送する転送手段と、を備え、
前記ホストコンピュータは、前記新たなヘッダに基づいて前記複数の本体データ部を組み立てる
ことを特徴とする通信システム。
(付記14)
前記ホストコンピュータは、前記ネットワークアダプタから通知された複数の位置特定情報に基づいて、前記転送指示として前記ネットワークアダプタが実行すべきDMAディスクリプタを作成する
ことを特徴とする付記13に記載の通信システム。
(付記15)
ネットワークを介して受信した複数のパケットをホストコンピュータに転送するための通信方法であって、
受信した各パケットを、ヘッダ部と本体データ部とに分離し、
前記分離された各パケットを蓄積手段に蓄積し、
前記複数パケットの各ヘッダ部に基づいて新たなヘッダを作成し、
前記新たなヘッダ、および前記蓄積手段に蓄積されている複数の本体データ部の各格納位置を示す複数の位置特定情報を、前記ホストコンピュータに通知し、
前記ホストコンピュータにおいて前記位置特定情報を用いて作成された転送指示に基づいて、前記蓄積手段から前記複数の本体データ部を読み出してホストコンピュータに転送する
処理を含むことを特徴とする通信方法。
(付記16)
ネットワークアダプタに、ネットワークを介して受信した複数のパケットを、ホストコンピュータに転送する転送処理を実行させるネットワーク転送プログラムであって、
前記ネットワークアダプタに、
受信した各パケットを、ヘッダ部と本体データ部とに分離し、
前記分離された各パケットを蓄積手段に蓄積し、
前記複数パケットの各ヘッダ部に基づいて新たなヘッダを作成し、
前記新たなヘッダ、および前記蓄積手段に蓄積されている複数の本体データ部の各格納位置を示す複数の位置特定情報を、前記ホストコンピュータに通知し、
前記ホストコンピュータにおいて前記位置特定情報を用いて作成された転送指示に基づいて、前記蓄積手段から前記複数の本体データ部を読み出してホストコンピュータに転送する
処理を実行させることを特徴とするネットワーク転送プログラム。(7)
(Appendix 1)
A network adapter for transferring a plurality of packets received via a network to a host computer,
Separating means for separating each received packet into a header part and a body data part,
Storage means for storing each packet separated by the separation means;
Creating means for creating a new header based on each header portion of the plurality of packets;
Notification means for notifying the host computer of a plurality of pieces of position specifying information indicating the storage positions of the new header and the plurality of main body data parts stored in the storage means;
A network adapter comprising: transfer means for reading the plurality of main body data parts from the storage means and transferring them to the host computer based on a transfer instruction created using the location specifying information in the host computer .
(Appendix 2)
The notifying means transmits the new header and the position specifying information to a kernel space of a memory in the host computer;
The network adapter according to appendix 1, wherein the transfer means transfers the plurality of main data portions to a user space of a memory in the host computer.
(Appendix 3)
The network according to claim 2, wherein the notifying unit transmits the new header and the position specifying information to a predetermined area of the kernel space according to the DMA descriptor written in the kernel space. adapter.
(Appendix 4)
The network adapter according to claim 1, wherein the notifying unit notifies the host computer of the number of the plurality of pieces of position specifying information in addition to the new header and the plurality of pieces of position specifying information.
(Appendix 5)
The notifying means transmits the new header to the head of a buffer area prepared in advance in the memory of the host computer, transmits the plurality of position specifying information to a predetermined position in the buffer area, and specifies the position. The network adapter according to appendix 4, wherein a destination address of information is notified to the host computer.
(Appendix 6)
The notifying means transmits the new header to the beginning of a buffer area prepared in advance in the memory of the host computer, and transmits the plurality of position specifying information to the end of the buffer area. The network adapter according to appendix 4.
(Appendix 7)
The notifying means writes the plurality of position control information at the head of a buffer area prepared in advance in the memory of the host computer, and writes the new header in an area following the position specifying information. The network adapter according to appendix 4.
(Appendix 8)
The network adapter according to appendix 1, wherein the plurality of packets are obtained by dividing one packet in a transmission device.
(Appendix 9)
The network adapter according to appendix 1, wherein the position specifying information includes information indicating a data length of a corresponding main body data part.
(Appendix 10)
The network adapter according to claim 1, wherein the storage unit discards all corresponding header units when all of the plurality of main body data units are transferred to the host computer by the transfer unit.
(Appendix 11)
The new header includes a flag indicating whether or not all of the plurality of main body data parts are accumulated in the accumulation unit,
When the notifying unit recognizes that all of the plurality of main data portions are stored in the storing unit based on the flag, starts the process of transferring the new header and the position specifying information to the host computer. The network adapter according to appendix 1, wherein:
(Appendix 12)
Timer means for measuring the time from when the first packet of the plurality of packets is received until the last packet is received;
The network adapter according to appendix 1, wherein when the time measured by the timer means exceeds a predetermined time, the transfer means transfers the received packets as they are to the host computer.
(Appendix 13)
A communication system including a host computer and a network adapter for transferring a plurality of packets received via the network to the host computer,
The network adapter is
Separating means for separating each received packet into a header part and a body data part,
Storage means for storing each packet separated by the separation means;
Creating means for creating a new header based on each header portion of the plurality of packets;
Notification means for notifying the host computer of a plurality of pieces of position specifying information indicating the storage positions of the new header and the plurality of main body data parts stored in the storage means;
Transfer means for reading the plurality of main body data sections from the storage means and transferring them to the host computer based on a transfer instruction created using the position specifying information in the host computer,
The host computer assembles the plurality of main body data sections based on the new header.
(Appendix 14)
14. The communication system according to appendix 13, wherein the host computer creates a DMA descriptor to be executed by the network adapter as the transfer instruction based on a plurality of pieces of position specifying information notified from the network adapter.
(Appendix 15)
A communication method for transferring a plurality of packets received via a network to a host computer,
Each received packet is separated into a header part and body data part,
Storing each separated packet in a storage means;
Create a new header based on each header portion of the plurality of packets,
Notifying the host computer of a plurality of position specifying information indicating the storage positions of the new header and the plurality of main body data parts stored in the storage means,
A communication method comprising: reading out the plurality of main body data parts from the storage means and transferring them to the host computer based on a transfer instruction created using the position specifying information in the host computer.
(Appendix 16)
A network transfer program for causing a network adapter to execute a transfer process of transferring a plurality of packets received via a network to a host computer,
In the network adapter,
Each received packet is separated into a header part and body data part,
Storing each separated packet in a storage means;
Create a new header based on each header portion of the plurality of packets,
Notifying the host computer of a plurality of position specifying information indicating the storage positions of the new header and the plurality of main body data parts stored in the storage means,
A network transfer program for executing a process of reading the plurality of main body data parts from the storage means and transferring them to the host computer based on a transfer instruction created using the position specifying information in the host computer . (7)

本発明に係る通信システムにおいて送受信される、パケットの流れを概略的に示した図である。It is the figure which showed roughly the flow of the packet transmitted / received in the communication system which concerns on this invention. 一般的なDMA転送を実行するためのDMAインタフェースを説明する図である。It is a figure explaining the DMA interface for performing general DMA transfer. 本実施形態に係るネットワークアダプタを用いて、受信パケットをホストコンピュータに転送する動作の概略を説明する図である。It is a figure explaining the outline of the operation | movement which transfers a received packet to a host computer using the network adapter which concerns on this embodiment. 本実施形態に係るネットワークアダプタを用いて構成される、通信システムのブロック図である。It is a block diagram of the communication system comprised using the network adapter which concerns on this embodiment. 本実施形態に係る通信システムにおけるホストコンピュータの受信バッファに、パケットの本体データの位置情報と再構成ヘッダとを格納することを説明する図である。It is a figure explaining storing the positional information on the main body data of a packet, and the reconstruction header in the reception buffer of the host computer in the communication system which concerns on this embodiment. 再構成ヘッダの構造の一例である。It is an example of the structure of a reconstruction header. 管理情報のデータ構造の一例である。It is an example of the data structure of management information. フラグメントの本体データ部分を、ディスクリプタを用いて転送させる動作の概略を説明する図である。It is a figure explaining the outline of the operation | movement which transfers the main-body data part of a fragment using a descriptor. パケットを受信したネットワークアダプタの動作を説明するフローチャートである。It is a flowchart explaining operation | movement of the network adapter which received the packet. 再構成ヘッダおよび位置情報をホストコンピュータに通知する処理についてのフローチャートである。It is a flowchart about the process which notifies a reconfiguration header and position information to a host computer. データ転送用ディスクリプタを作成する処理についてのフローチャートである。It is a flowchart about the process which produces the descriptor for data transfer.

符号の説明Explanation of symbols

1 ネットワークアダプタ
2 ホストコンピュータ
3 ホストメモリ
4 ユーザ空間
5 カーネル空間
12 アダプタメモリ(受信バッファ)
13 DMA制御部
14 制御部
41 チェックサム検算機構部
42 COE動作判定処理部
43 ヘッダ処理部
44 パケット再構成処理部
1 Network adapter 2 Host computer 3 Host memory 4 User space 5 Kernel space 12 Adapter memory (receive buffer)
13 DMA control unit 14 Control unit 41 Checksum verification mechanism unit 42 COE operation determination processing unit 43 Header processing unit 44 Packet reconfiguration processing unit

Claims (10)

ネットワークを介して受信した、1つのデータを分割して得られた複数のパケットを、ホストコンピュータに転送するネットワークアダプタであって、
受信した各パケットを、ヘッダ部と本体データ部とに分離する分離手段と、
前記分離手段により分離された各パケットを蓄積する蓄積手段と、
前記複数パケットの各ヘッダ部に基づいて、前記複数のパケットの先頭のパケットのヘッダ部に基づいて生成された識別子を有する、前記複数パケットに共通な新たなヘッダを作成する作成手段と、
前記新たなヘッダ、および前記蓄積手段に蓄積されている複数の本体データ部の各格納位置を示す複数の位置特定情報を、前記ホストコンピュータに通知する通知手段と、
前記ホストコンピュータにおいて前記複数の位置特定情報を用いて作成された転送指示に基づいて、前記蓄積手段から前記複数の本体データ部を読み出して前記ホストコンピュータに転送する転送手段と
を備えることを特徴とするネットワークアダプタ。
Received via the network, a plurality of packets obtained by dividing one data, a Rene Tsu network adapter forwards to the host computer,
Separating means for separating each received packet into a header part and a body data part,
And accumulation means you accumulate each packet separated by the separating means,
Creating means for creating a new header common to the plurality of packets, having an identifier generated based on the header portion of the first packet of the plurality of packets based on each header portion of the plurality of packets ;
Notification means for notifying the host computer of a plurality of pieces of position specifying information indicating the storage positions of the new header and the plurality of main body data parts stored in the storage means;
And characterized in that it comprises transfer means said the host computer based on the transfer instruction generated using a plurality of position specifying information, and transfers from said storage means reads said plurality of main data portion to the host computer Network adapter to use.
前記通知手段は、前記新たなヘッダおよび前記複数の位置特定情報を、前記ホストコンピュータにおけるメモリのカーネル空間に対して送信し、
前記転送手段は、前記複数の本体データ部を、前記ホストコンピュータにおけるメモリのユーザ空間に対して転送する
ことを特徴とする請求項1に記載のネットワークアダプタ。
The notification means transmits the new header and the plurality of position specifying information to a kernel space of a memory in the host computer,
The network adapter according to claim 1, wherein the transfer unit transfers the plurality of main body data units to a user space of a memory in the host computer.
前記通知手段は、前記カーネル空間に書き込まれているDMAディスクリプタに従って、前記新たなヘッダおよび前記複数の位置特定情報を該カーネル空間の所定の領域に対して送信する
ことを特徴とする請求項2に記載のネットワークアダプタ。
The notification unit transmits the new header and the plurality of pieces of position specifying information to a predetermined area of the kernel space according to the DMA descriptor written in the kernel space. The described network adapter.
前記通知手段は、前記新たなヘッダおよび前記複数の位置特定情報に加えて、その複数の位置特定情報の個数を前記ホストコンピュータに通知する
ことを特徴とする請求項1に記載のネットワークアダプタ。
The network adapter according to claim 1, wherein the notifying unit notifies the host computer of the number of the plurality of pieces of position specifying information in addition to the new header and the plurality of pieces of position specifying information.
前記通知手段は、前記ホストコンピュータのメモリ内に予め用意されているバッファ領域の先頭に前記新たなヘッダを送信し、前記複数の位置特定情報を前記バッファ領域の所定位置に送信し、その位置特定情報の送信先アドレスを前記ホストコンピュータに通知する
ことを特徴とする請求項4に記載のネットワークアダプタ。
The notifying means transmits the new header to the head of a buffer area prepared in advance in the memory of the host computer, transmits the plurality of position specifying information to a predetermined position in the buffer area, and specifies the position. The network adapter according to claim 4, wherein the host computer is notified of an information transmission destination address.
前記通知手段は、前記ホストコンピュータのメモリ内に予め用意されているバッファ領域の先頭に前記新たなヘッダを送信するとともに、そのバッファ領域の末尾に前記複数の位置特定情報を送信する
ことを特徴とする請求項4に記載のネットワークアダプタ。
The notifying means transmits the new header to the beginning of a buffer area prepared in advance in the memory of the host computer, and transmits the plurality of position specifying information to the end of the buffer area. The network adapter according to claim 4.
ネットワークアダプタに、ネットワークを介して受信した、1つのデータを分割して得られた複数のパケットを、ホストコンピュータに転送する転送処理を実行させるネットワーク転送プログラムであって、
前記ネットワークアダプタに、
受信した各パケットを、ヘッダ部と本体データ部とに分離し、
前記分離された各パケットを蓄積手段に蓄積し、
前記複数パケットの各ヘッダ部に基づいて、前記複数のパケットの先頭のパケットのヘッダ部に基づいて生成された識別子を有する、前記複数パケットに共通な新たなヘッダを作成し、
前記新たなヘッダ、および前記蓄積手段に蓄積されている複数の本体データ部の各格納位置を示す複数の位置特定情報を、前記ホストコンピュータに通知し、
前記ホストコンピュータにおいて前記複数の位置特定情報を用いて作成された転送指示に基づいて、前記蓄積手段から前記複数の本体データ部を読み出して前記ホストコンピュータに転送する
処理を実行させることを特徴とするネットワーク転送プログラム。
A network transfer program for causing a network adapter to execute a transfer process of transferring a plurality of packets obtained by dividing one data received via a network to a host computer,
In the network adapter,
Each received packet is separated into a header part and body data part,
Storing each separated packet in a storage means;
Based on each header portion of the plurality of packets, the identifier generated based on the header portion of the first packet of the plurality of packets, creating a new header common to the plurality of packets,
Notifying the host computer of a plurality of position specifying information indicating the storage positions of the new header and the plurality of main body data parts stored in the storage means,
Wherein based on the plurality of position specifying information transfer instruction that has been generated using the host computer, characterized in that to execute the process of transmitting from said storage means reads said plurality of main data portion to the host computer Network transfer program.
ホストコンピュータ、およびネットワークを介して受信した、1つのデータを分割して得られた複数のパケットを該ホストコンピュータに転送するネットワークアダプタを含む通信システムであって、
前記ネットワークアダプタは、
受信した各パケットを、ヘッダ部と本体データ部とに分離する分離手段と、
前記分離手段により分離された各パケットを蓄積する蓄積手段と、
前記複数パケットの各ヘッダ部に基づいて、前記複数のパケットの先頭のパケットのヘッダ部に基づいて生成された識別子を有する、前記複数パケットに共通な新たなヘッダを作成する作成手段と、
前記新たなヘッダ、および前記蓄積手段に蓄積されている複数の本体データ部の各格納位置を示す複数の位置特定情報を、前記ホストコンピュータに通知する通知手段と、
前記ホストコンピュータにおいて前記複数の位置特定情報を用いて作成された転送指示に基づいて、前記蓄積手段から前記複数の本体データ部を読み出して前記ホストコンピュータに転送する転送手段と、を備え、
前記ホストコンピュータは、前記新たなヘッダに基づいて前記複数の本体データ部を組み立てる
ことを特徴とする通信システム。
Received via the host computer, and a network, comprising a plurality of packets obtained by dividing one data communications system including a Rene Tsu network adapter forwards to the host computer,
The network adapter is
Separating means for separating each received packet into a header part and a body data part,
And accumulation means you accumulate each packet separated by the separating means,
Creating means for creating a new header common to the plurality of packets, having an identifier generated based on the header portion of the first packet of the plurality of packets based on each header portion of the plurality of packets ;
Notification means for notifying the host computer of a plurality of pieces of position specifying information indicating the storage positions of the new header and the plurality of main body data parts stored in the storage means;
On the basis of the transfer instruction created using the plurality of position specifying information in the host computer, and a transfer means for transferring to the host computer reads out the plurality of main data portion from the storage means,
The host computer assembles the plurality of main body data sections based on the new header.
前記ホストコンピュータは、前記ネットワークアダプタから通知された複数の位置特定情報に基づいて、前記転送指示として前記ネットワークアダプタが実行すべきDMAディスクリプタを作成する
ことを特徴とする請求項8に記載の通信システム。
9. The communication system according to claim 8, wherein the host computer creates a DMA descriptor to be executed by the network adapter as the transfer instruction based on a plurality of pieces of position specifying information notified from the network adapter. .
ネットワークアダプタが、ネットワークを介して受信した、1つのデータを分割して得られた複数のパケットをホストコンピュータに転送する処理を実行する通信方法であって、
前記ネットワークアダプタは、
受信した各パケットを、ヘッダ部と本体データ部とに分離し、
前記分離された各パケットを蓄積手段に蓄積し、
前記複数パケットの各ヘッダ部に基づいて、前記複数のパケットの先頭のパケットのヘッダ部に基づいて生成された識別子を有する、前記複数パケットに共通な新たなヘッダを作成し、
前記新たなヘッダ、および前記蓄積手段に蓄積されている複数の本体データ部の各格納位置を示す複数の位置特定情報を、前記ホストコンピュータに通知し、
前記ホストコンピュータにおいて前記複数の位置特定情報を用いて作成された転送指示に基づいて、前記蓄積手段から前記複数の本体データ部を読み出して前記ホストコンピュータに転送する
処理を含むことを特徴とする通信方法。
A network adapter executes a process of transferring a plurality of packets obtained by dividing one data received via a network to a host computer,
The network adapter is
Each received packet is separated into a header part and body data part,
Storing each separated packet in a storage means;
Based on each header portion of the plurality of packets, the identifier generated based on the header portion of the first packet of the plurality of packets, creating a new header common to the plurality of packets,
Notifying the host computer of a plurality of position specifying information indicating the storage positions of the new header and the plurality of main body data parts stored in the storage means,
Communication on the basis of the transfer instruction created using the plurality of position specifying information in the host computer, characterized in that the said storage means comprises a process of transferring to the host computer reads out the plurality of main data portion Method.
JP2005272552A 2005-03-23 2005-09-20 Network adapter, communication system, and communication method Expired - Fee Related JP5039292B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005272552A JP5039292B2 (en) 2005-03-23 2005-09-20 Network adapter, communication system, and communication method

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2005084002 2005-03-23
JP2005084002 2005-03-23
JP2005272552A JP5039292B2 (en) 2005-03-23 2005-09-20 Network adapter, communication system, and communication method

Publications (2)

Publication Number Publication Date
JP2006302246A JP2006302246A (en) 2006-11-02
JP5039292B2 true JP5039292B2 (en) 2012-10-03

Family

ID=37470421

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005272552A Expired - Fee Related JP5039292B2 (en) 2005-03-23 2005-09-20 Network adapter, communication system, and communication method

Country Status (1)

Country Link
JP (1) JP5039292B2 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5121291B2 (en) * 2007-04-20 2013-01-16 株式会社ニューフレアテクノロジー Data transfer system
JP2009009250A (en) * 2007-06-27 2009-01-15 Nec Network & Sensor Systems Ltd Communication system, communication equipment and data transfer method to be used for the same
JP4978732B2 (en) * 2008-03-13 2012-07-18 日本電気株式会社 Transfer control device, multiplexed frame transfer system, transfer control method, and transfer control program
JP2009237790A (en) * 2008-03-26 2009-10-15 Yamaha Corp Dma controller
JP2011249922A (en) * 2010-05-24 2011-12-08 Nec Access Technica Ltd Network device, tcp packet receiver and method
JP2012049883A (en) * 2010-08-27 2012-03-08 Nec Access Technica Ltd Communication device and packet processing method
JP7056337B2 (en) * 2018-04-10 2022-04-19 日本電信電話株式会社 Packet processing device and packet processing method
JP7102936B2 (en) * 2018-05-23 2022-07-20 日本電信電話株式会社 Packet processing device and packet processing method
JP7331431B2 (en) * 2019-04-22 2023-08-23 日本電信電話株式会社 Packet processing device and packet processing method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62267847A (en) * 1986-05-16 1987-11-20 Nec Corp Dma transfer control circuit
JPH04108242A (en) * 1990-08-28 1992-04-09 Nec Corp Data transfer system for communication controller
JPH0962613A (en) * 1995-08-22 1997-03-07 Dainippon Screen Mfg Co Ltd Data transfer device
JP2003304248A (en) * 2002-04-09 2003-10-24 Nippon Telegr & Teleph Corp <Ntt> Method and device for transferring data
JP2004094931A (en) * 2003-08-11 2004-03-25 Hitachi Ltd Network system and communication method in network

Also Published As

Publication number Publication date
JP2006302246A (en) 2006-11-02

Similar Documents

Publication Publication Date Title
US7561573B2 (en) Network adaptor, communication system and communication method
JP5039292B2 (en) Network adapter, communication system, and communication method
US11249688B2 (en) High-speed data packet capture and storage with playback capabilities
US8255600B2 (en) Method and system for interlocking data integrity for network adapters
US7813342B2 (en) Method and apparatus for writing network packets into computer memory
JP4942375B2 (en) Network processing equipment
US11392317B2 (en) High speed data packet flow processing
US20050243834A1 (en) Packet transfer method and device
US20100121995A1 (en) System and method for supporting tcp out-of-order receive data using generic buffer
JP2007208963A (en) Packet processing apparatus and method
US11128740B2 (en) High-speed data packet generator
US10990326B2 (en) High-speed replay of captured data packets
US20050135395A1 (en) Method and system for pre-pending layer 2 (L2) frame descriptors
US9866639B2 (en) Communication apparatus, information processor, communication method, and computer-readable storage medium
US20140105226A1 (en) Communications over multiple protocol interfaces in a computing environment
US11704063B2 (en) Efficient storage architecture for high speed packet capture
US9961147B2 (en) Communication apparatus, information processor, communication method, and computer-readable storage medium
JP4657529B2 (en) Packet information collection apparatus and method
JP2003304248A (en) Method and device for transferring data
US20200220952A1 (en) System and method for accelerating iscsi command processing
JP2007274056A (en) Datagram reassembling apparatus
JP4786575B2 (en) Data transfer method between computer and network interface controller, program, and network interface controller
JP4401910B2 (en) Data communication apparatus and data communication method
US20240053930A1 (en) High Speed Data Packet Flow Processing with Offload
JP6830516B1 (en) Fast data packet capture and storage with playback capabilities

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080321

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110126

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110419

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110620

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120207

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120406

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: 20120703

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: 20120709

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

Free format text: PAYMENT UNTIL: 20150713

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees