JP2002281039A - Packet transmitter-receiver - Google Patents

Packet transmitter-receiver

Info

Publication number
JP2002281039A
JP2002281039A JP2001081141A JP2001081141A JP2002281039A JP 2002281039 A JP2002281039 A JP 2002281039A JP 2001081141 A JP2001081141 A JP 2001081141A JP 2001081141 A JP2001081141 A JP 2001081141A JP 2002281039 A JP2002281039 A JP 2002281039A
Authority
JP
Japan
Prior art keywords
transmission
packet
data
threshold
bytes
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.)
Granted
Application number
JP2001081141A
Other languages
Japanese (ja)
Other versions
JP3753622B2 (en
Inventor
Shigeya Senda
滋也 千田
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2001081141A priority Critical patent/JP3753622B2/en
Publication of JP2002281039A publication Critical patent/JP2002281039A/en
Application granted granted Critical
Publication of JP3753622B2 publication Critical patent/JP3753622B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)
  • Communication Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To prevent the generation of the transmission overhead by reducing the delay of the start of transmission due to a transmission start threshold on an FIFO buffer in transmission. SOLUTION: In transmitting data, the data length of a packet to be transmitted is compared with each transmission data threshold, and the minimum transmission data threshold in a transmission data threshold to which the data length is applied is selected, and a transmission start threshold making a pair with the selected transmission data threshold is set at a transmission control part so that a transmitting operation can be executed. For example, when the data length is 800 bytes, the minimum transmission data threshold in the applied transmission data thresholds is 1024 bytes, and the transmission start threshold corresponding to this is 256 bytes. The data DMA(direct memory access)- transferred from a packet area are stored in a transmission FIFO buffer, and when the number of bytes of the data received by the transmission FIFO buffer exceeds the transmission start threshold set at the transmission control part after the start of the DMA, the transmission control part starts the transmission of the data.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、イーサネット等の
パケット通信におけるパケット送受信装置に係り、特
に、パケットの送信開始タイミングを動的に制御するパ
ケット送受信装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a packet transmitting / receiving apparatus for packet communication such as Ethernet, and more particularly to a packet transmitting / receiving apparatus for dynamically controlling a packet transmission start timing.

【0002】[0002]

【従来の技術】イーサネット(登録商標)やIEEE1394、
USB といった通信方式ではパケットを単位としたデータ
の送受信により通信を行っている。イーサネットはIEEE
802.3規格に定められており、CSMA/CD方式のネットワ
ーク規格である。IEEE1394はその名の通りIEEE1394規格
で定められた通信方式である。USBはUSBコンソーシアム
によって企画化されている通信方式である。
2. Description of the Related Art Ethernet (registered trademark), IEEE1394,
In a communication method such as USB, communication is performed by transmitting and receiving data in packet units. Ethernet is IEEE
It is defined in the 802.3 standard and is a CSMA / CD network standard. IEEE1394 is a communication system defined by the IEEE1394 standard as its name implies. USB is a communication system planned by the USB Consortium.

【0003】これらの通信方式では可変長のパケットが
用いられている。通常、特定用途向け集積回路(ASIC)等
で実装された制御装置上にFIFOなどのバッファを持ち、
受信したパケットの種別、長さ等の判別を行い、自局が
処理すべきであるデータパケットをメインメモリ上のパ
ケット領域にDMAにより転送して処理を行い、逆に、送
信はメインメモリ上のパケット領域からデータをDMAに
より転送しながら送信を行っている。
In these communication systems, variable-length packets are used. Usually, a buffer such as FIFO is provided on a control device implemented by an application specific integrated circuit (ASIC), etc.
The type, length, etc. of the received packet are determined, and the data packet to be processed by the own station is transferred to the packet area on the main memory by DMA and processed, and conversely, the transmission is performed on the main memory. Transmission is performed while transferring data from the packet area by DMA.

【0004】[0004]

【発明が解決しようとする課題】ところで、パケット送
信において問題となるのは外部の速度とDMA速度の速度
差の問題である。DMAが、他のDMAの実行などによって遅
れる場合などを考慮し、実用上十分な量のデータがFIFO
バッファに入った時点で送信を開始する(この実用上十
分な量として固定の送信開始しきい値が設定される)の
が通常のやり方であった。
The problem in packet transmission is the speed difference between the external speed and the DMA speed. In consideration of the case where the DMA is delayed due to the execution of another DMA, a sufficient amount of data for practical use is
It is usual practice to start transmission at the time of entering the buffer (a fixed transmission start threshold is set as this practically sufficient amount).

【0005】これにより、DMAが送信速度に対して間に
合わない送信アンダーラン状態を回避している。しか
し、パケットの大きさはイーサネットの場合、64byteか
ら1518byteまでの大きなばらつきがある。大きなパケッ
ト長の場合にレアケースを考慮して十分な容量をしきい
値として確保すれば、短いパケットの場合を含めてすべ
てのパケットでFIFOバッファに入ったデータ量がしきい
値をこえるか、しきい値以下の大きさのバケットの場合
はパケット終了を検出するかした場合に送信を開始する
ことになる。これは常にそのしきい値分の入力が来るま
で送信の開始が遅れることを意味し、この送信開始の遅
れが問題である。
Thus, a transmission underrun state in which the DMA cannot keep up with the transmission speed is avoided. However, in the case of Ethernet, there is a large variation in packet size from 64 bytes to 1518 bytes. If a sufficient capacity is secured as a threshold value in consideration of the rare case in the case of a large packet length, whether the amount of data in the FIFO buffer exceeds the threshold value in all packets including the case of short packets, In the case of a bucket having a size equal to or smaller than the threshold value, transmission starts when the end of the packet is detected. This means that the start of transmission is always delayed until an input for the threshold value is received, and this delay in transmission start is a problem.

【0006】本発明の目的は、上記問題点を解決し、送
信時のFIFOバッファ上の送信開始しきい値による送信開
始の遅れを減らし、送信のoverheadをなくすことにあ
る。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned problems, to reduce the delay of transmission start due to a transmission start threshold value on a FIFO buffer at the time of transmission, and to eliminate transmission overhead.

【0007】[0007]

【課題を解決するための手段】本発明によれば前記目的
は、イーサネット等のパケット通信において、FIFOメモ
リ等の一時バッファでパケットの一部を取り込んでプロ
トコルを解釈し、該パケットが他装置からの自局で処理
すべきパケットのとき該パケットを内部のメインメモリ
上のパケット領域に転送し、装置内のメインメモリ上の
パケット領域からのパケットのとき該パケットを送信す
るパケット送受信装置であって、送信パケット長に応じ
て送信開始タイミングを動的に変更する変更手段を具備
することにより達成される。
SUMMARY OF THE INVENTION According to the present invention, in a packet communication such as Ethernet, a part of a packet is taken in a temporary buffer such as a FIFO memory to interpret a protocol, and the packet is transmitted from another device. A packet transmitting / receiving apparatus that transfers a packet to a packet area on an internal main memory when the packet is to be processed by its own station, and transmits the packet when the packet is from a packet area on a main memory in the apparatus. This is achieved by providing a changing means for dynamically changing the transmission start timing according to the transmission packet length.

【0008】また、前記目的は、前記変更手段が、パケ
ット長が当てはまるパケットデータしきい値のうちの最
小のパケットデータしきい値に対応する送信開始しきい
値byte数分のデータが送信FIFOに入力されたときに送信
を開始することにより達成される。
[0008] Further, the object is that the changing means is arranged to transmit, to the transmission FIFO, data of a transmission start threshold byte number corresponding to a minimum packet data threshold among packet data thresholds to which a packet length applies. Achieved by starting transmission when entered.

【0009】また、前記目的は、パケットデータしきい
値と対応する送信開始しきい値byte数のペアをテーブル
として備えることにより達成される。
The above object is achieved by providing, as a table, pairs of a packet data threshold value and a corresponding transmission start threshold byte number.

【0010】また、前記目的は、前記テーブルを登録す
る手段を備えることにより達成される。
[0010] The above object is achieved by providing means for registering the table.

【0011】[0011]

【発明の実施の形態】以下に、IEEE802.3規格に基づい
たイーサネットの場合に適合するパケット送受信装置を
例として、本発明の一実施形態を説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below, taking a packet transmitting / receiving apparatus conforming to the case of Ethernet based on the IEEE802.3 standard as an example.

【0012】図1は、パケット送受信システムの構成例
であり、プログラムROM 1、メインメモリ2、CPU
3、ネットワークアダプタ4、システムバス5を備え
る。この構成例において、本発明の実施形態のパケット
送受信装置に対応するものは、ASIC(特定用途向け集積
回路)等で実装されたネットワークアダプタ4である。
FIG. 1 shows an example of the configuration of a packet transmission / reception system, including a program ROM 1, a main memory 2, and a CPU.
3, a network adapter 4, and a system bus 5. In this configuration example, the one corresponding to the packet transmission / reception device of the embodiment of the present invention is a network adapter 4 implemented by an ASIC (application-specific integrated circuit) or the like.

【0013】パケット送受信システムは、プログラムRO
M1が起動されることにより、ネットワークアダプタ4
の機能を利用して送受信を行う。パケットの送受信はメ
インメモリ2に対するDMA で行われる。メインメモリ2
上のDMA すべきパケット領域を管理するパケットバッフ
ァもメインメモリ2上に置かれ、ネットワークアダプタ
カードがDMA によって内容を読みとり、管理情報の書き
戻しを行う。
The packet transmission / reception system includes a program RO
When M1 is activated, network adapter 4
Send and receive using the function of. Transmission and reception of packets are performed by DMA to the main memory 2. Main memory 2
A packet buffer for managing the above packet area to be DMA is also placed in the main memory 2, and the network adapter card reads the contents by DMA and writes back the management information.

【0014】図2は、パケット送受信装置(ネットワー
クアダプタ)の構成を示し、ホストインタフェース1
3、FIFO RAM14、17、送信FIFOバッファ15、受信
FIFOバッファ16、ネットワーク管理部18、送信制御
部19、イーサネットコントローラ20、受信制御部2
1、クロック22、エンコーダ23、デコーダ24、AU
I 25、ツイステッドペアトランシーバ26を備え、ホ
ストインタフェース13にはEEPROM11、ブートPROM1
2が接続されている。
FIG. 2 shows the configuration of a packet transmission / reception device (network adapter).
3, FIFO RAMs 14, 17, transmission FIFO buffer 15, reception
FIFO buffer 16, network management unit 18, transmission control unit 19, Ethernet controller 20, reception control unit 2
1, clock 22, encoder 23, decoder 24, AU
The host interface 13 includes an EEPROM 11 and a boot PROM 1.
2 are connected.

【0015】ツイステッドペアトランシーバ26で受信
されデコーダ24でプリアンブル除去、CRC チェック、
pad 除去等の加工等の処理を含むデコードをされたデー
タ対して、受信制御部21およびイーサネットコントロ
ーラ20によりIEEE 802.3により定められた受信制御が
なされる。イーサネットコントローラ20によりパケッ
ト送受信装置で受け取るべきパケットと判別されたデー
タパケットが受信され、受信されたデータパケットは受
信FIFOバッファ16にコピーされる。コピーされた内容
はホストインターフェース13の機能によりDMA されシ
ステムバス5を介してメインメモリ4にDMA 転送され
る。
[0015] The preamble removal, CRC check,
The reception control unit 21 and the Ethernet controller 20 perform reception control specified by IEEE 802.3 on the decoded data including processing such as pad removal. The Ethernet controller 20 receives a data packet determined to be a packet to be received by the packet transmitting / receiving device, and the received data packet is copied to the reception FIFO buffer 16. The copied contents are DMA-transferred by the function of the host interface 13 and DMA-transferred to the main memory 4 via the system bus 5.

【0016】送信は、ホストインターフェース13の機
能によりDMA され、システムバス5を介してメインメモ
リ4上のパケットデータがDMA 転送され送信FIFOバッフ
ァ15に送り込まれる。送信FIFOバッファ15上のデー
タは、IEEE 802.3によって定められた送信制御がなさ
れ、エンコーダ23によりプリアンブル付加、CRC 生
成、pad データ生成等の加工が施されたのちにツイスッ
テドペアトランシーバ26からネットワーク上に送信さ
れる。
The transmission is performed by DMA by the function of the host interface 13, and the packet data in the main memory 4 is DMA-transferred via the system bus 5 and sent to the transmission FIFO buffer 15. The data in the transmission FIFO buffer 15 is subjected to transmission control defined by IEEE 802.3, processed by the encoder 23 for preamble addition, CRC generation, pad data generation, and the like, and then transmitted from the twisted pair transceiver 26 to the network. Sent to.

【0017】図3にパケットバッファの構成を示す。ま
た、図4にパケットバッファの構成要素であるディスク
リプタの構造を示す。
FIG. 3 shows the configuration of the packet buffer. FIG. 4 shows the structure of a descriptor which is a component of the packet buffer.

【0018】パケットバッファは、図3に示すように、
DMA 対象であるパケット領域を管理するためのメインメ
モリ上の領域である。本発明の実施形態では送信用に1
つ、受信用に2つの入力パケットバッファ、1つの結果
保持パケットバッファを持つ。受信用のパケットバッフ
ァは、長さの異なるパケット領域を管理する。パケット
バッファは、複数のディスクリプタからなる。ディスク
リプタは、次のディスクリプタのアドレスを保持するリ
ンクをもち通常リングバッファを構成する。また、ディ
スクリプタは、パケット領域のステータス情報を記憶す
るステータスと、パケット領域の先頭アドレスを示すパ
ケット領域アドレスを有する。
The packet buffer is, as shown in FIG.
This is the area on the main memory for managing the packet area that is the target of DMA. In the embodiment of the present invention, one
It has two input packet buffers and one result holding packet buffer for reception. The packet buffer for reception manages packet areas having different lengths. The packet buffer is composed of a plurality of descriptors. The descriptor has a link for holding the address of the next descriptor, and forms a normal ring buffer. Further, the descriptor has a status for storing status information of the packet area, and a packet area address indicating the head address of the packet area.

【0019】また、送信用のパケットバッファの1つの
ディスクリプタは、1つのパケットを表現し、1つのパ
ケットは複数のパケット領域からなっていてよい。つま
り1つのパケットを複数の領域に分散して持つことが出
来る。
One descriptor of the packet buffer for transmission represents one packet, and one packet may be composed of a plurality of packet areas. That is, one packet can be distributed to a plurality of areas.

【0020】図4に示すディスクリプタにおいて、リン
クフィールドには次のディスクリプタのアドレスが設定
されている。ステータスフィールドのコントロールビッ
トにはOWNビットが含まれており、パケット領域数には
ディスクリプタが管理する1つのパケットが記憶された
パケット領域の数が設定されており、データ長にはパケ
ットのデータ長が設定されている。パケット領域アドレ
スのフィールドには、パケット領域長とパケット領域ア
ドレスの組が、パケットのデータ長に応じた数だけあ
り、パケット領域長にはパケット領域の長さ(大きさ)
が設定され、パケット領域アドレスにはパケット領域の
先頭アドレスが設定されている。
In the descriptor shown in FIG. 4, the address of the next descriptor is set in the link field. The OWN bit is included in the control bit of the status field, the number of packet areas in which one packet managed by the descriptor is stored is set in the number of packet areas, and the data length of the packet is set in the data length. Is set. In the field of the packet area address, there are a number of pairs of the packet area length and the packet area address corresponding to the data length of the packet, and the packet area length is the length (size) of the packet area.
Is set, and the head address of the packet area is set in the packet area address.

【0021】送信時に、ホストインタフェース13はソ
フトウエアにより設定されたパケットバッファのディス
クリプタをDMA によってロードし、ディスクリプタにお
けるコントロールビットのOWN ビットを調べ、OWN ビッ
トが立っているときのみ送信を行う。立っていないとき
は、ある時間間隔でディスクリプタをDMA で読み直し、
OWN ビットが立つまでそれを繰り返すポーリングモード
か、あるいは、その場で動作を停止するバッチモードの
いずれかがとられる。
At the time of transmission, the host interface 13 loads the descriptor of the packet buffer set by software by DMA, checks the OWN bit of the control bit in the descriptor, and performs transmission only when the OWN bit is set. When not standing, the descriptor is re-read by DMA at certain time intervals,
Either a polling mode that repeats until the OWN bit is set or a batch mode that stops operation on the fly.

【0022】OWN ビットが立っている場合には、パケッ
ト領域数分のパケット領域アドレスの指定があるものと
して、そのパケット領域アドレスが指すパケット領域よ
り送信データをDMA により送信FIFOバッファ15に転送
し、送信FIFOバッファ15に格納されたデータの送信を
行う。1つのディスクリプタ分のデータ(すなわち、1
つのパケット分のデータ)の送信が終了すると、次に、
ディスクリプタのリンクが示すアドレスで指定されるデ
ィスクリプタについて同様の処理を行う。ただし、リン
クの示すアドレスが0である場合は送信を停止する(す
なわち、ソフトウエアに対して送信終了割り込みを発生
する)。
When the OWN bit is set, it is assumed that the packet area addresses for the number of packet areas are specified, and the transmission data is transferred from the packet area indicated by the packet area address to the transmission FIFO buffer 15 by DMA. The data stored in the transmission FIFO buffer 15 is transmitted. Data for one descriptor (ie, 1
Transmission of data for one packet),
The same processing is performed for the descriptor specified by the address indicated by the link of the descriptor. However, if the address indicated by the link is 0, the transmission is stopped (that is, a transmission end interrupt is generated for software).

【0023】図5に送信時の処理フローを示す。FIG. 5 shows a processing flow at the time of transmission.

【0024】まず、送信データしきい値・送信開始しき
い値対応表レジスタ郡を設定する(ステップ511)。
First, a transmission data threshold value / transmission start threshold value correspondence table register group is set (step 511).

【0025】送信データしきい値・送信開始しきい値対
応表レジスタ郡の例は、図6に示され、送信データ(パ
ケットデータ)しきい値と対応する送信開始しきい値の
ペアを複数個登録できるレジスタ群である。本発明の実
施形態では5つのペアを登録できるものとする。図6の
例では、送信データしきい値レジスタ1〜5のそれぞれ
には送信データしきい値として64バイト、128バイ
ト、512バイト、1024バイト、2048バイトが
セットされ、送信データしきい値レジスタ1〜5のそれ
ぞれとペアを組む送信開始しきい値レジスタ1〜5には
それぞれ32バイト、64バイト、128バイト、25
6バイト、512バイトがセットされている。
FIG. 6 shows an example of the transmission data threshold value / transmission start threshold value correspondence table register group. A plurality of pairs of transmission data (packet data) threshold values and corresponding transmission start threshold values are provided. This is a register group that can be registered. In the embodiment of the present invention, five pairs can be registered. In the example of FIG. 6, 64 bytes, 128 bytes, 512 bytes, 1024 bytes, and 2048 bytes are set as the transmission data threshold values in the transmission data threshold registers 1 to 5, respectively. 32, 64, 128, and 25, respectively, in the transmission start threshold registers 1 to 5 paired with
6 bytes and 512 bytes are set.

【0026】データ送信時に、送信するパケットのデー
タ長(パケット長)と各送信データしきい値を比較し、
データ長が当てはまる送信データしきい値の内の最小の
送信データしきい値を選択する。そして、この選択した
送信データしきい値とペアを組む送信開始しきい値を、
送信するパケットに対する送信開始しきい値として選択
する。この選択した送信開始しきい値を送信制御部に設
定して送信動作を行う。
At the time of data transmission, the data length (packet length) of the packet to be transmitted is compared with each transmission data threshold value,
Select the minimum transmission data threshold among the transmission data thresholds to which the data length applies. Then, a transmission start threshold value paired with the selected transmission data threshold value is
Select as the transmission start threshold for the packet to be transmitted. The transmission operation is performed by setting the selected transmission start threshold in the transmission control unit.

【0027】例えば、送信するパケットのデータ長が8
00バイトだとすると、当てはまる送信データしきい値
の内の最小の送信データしきい値は1024バイトであ
り、この送信データしきい値とペアを組む送信開始しき
い値は256バイトであり、送信開始しきい値は256
バイトとなる。
For example, the data length of a packet to be transmitted is 8
If the transmission data threshold value is 00 bytes, the minimum transmission data threshold value among the applicable transmission data threshold values is 1024 bytes, and the transmission start threshold value paired with the transmission data threshold value is 256 bytes. The threshold is 256
It becomes bytes.

【0028】次に、最初のディスクリプタのアドレスを
ホストインタフェースに設定する(ステップ512)。
Next, the address of the first descriptor is set in the host interface (step 512).

【0029】次いで、送信開始指示をホストインタフェ
ースに出す(ステップ513)。
Next, a transmission start instruction is issued to the host interface (step 513).

【0030】ホストインタフェースは、設定されたディ
スクリプタのアドレスを読み出し、このアドレスにより
ディスクリプタをDMAによりロードする(ステップ51
4)。
The host interface reads the address of the set descriptor, and loads the descriptor by DMA using this address (step 51).
4).

【0031】ロードしたディスクリプタのステータスフ
ィールドのコントロールビット内にOWNビットが立って
いるか、すなわちOWNビットが‘1’であるか判定する
(ステップ515)。
It is determined whether the OWN bit is set in the control bit of the status field of the loaded descriptor, that is, whether the OWN bit is "1" (step 515).

【0032】OWN ビットが‘1’であれば、ステップ5
16に進む。
If the OWN bit is "1", step 5
Proceed to 16.

【0033】OWN bit が0であるばあいポーリングによ
り‘1’になるまでまち、‘1’である場合にステップ
516に進む。
When the OWN bit is 0, the process goes to '1' by polling. When the OWN bit is '1', the process proceeds to step 516.

【0034】次に、ロードしたディスクリプタのステー
タスフィールドのデータ長と、設定された送信データし
きい値・送信開始しきい値対応表レジスタ郡にセットさ
れている送信データしきい値を比較し、上記ステータス
フィールドのデータ長が当てはまる送信データしきい値
の内の最小の送信データしきい値を選択し、この選択し
た送信データしきい値とペアを組む送信開始しきい値
を、送信するパケットに対する送信開始しきい値として
選択する。この選択した送信開始しきい値を送信制御部
に設定する(ステップ516)。
Next, the data length of the status field of the loaded descriptor is compared with the transmission data threshold set in the set transmission data threshold / transmission start threshold correspondence table register group. Select the minimum transmission data threshold among the transmission data thresholds to which the data length of the status field applies, and set the transmission start threshold paired with the selected transmission data threshold for transmission of the packet to be transmitted. Select as starting threshold. The selected transmission start threshold is set in the transmission control unit (step 516).

【0035】次いで、ロードしたディスクリプタのパケ
ット領域アドレスにより指定されるパケット領域内のデ
ータを送信FIFOバッファにDMAで転送する(517)。
Next, the data in the packet area specified by the packet area address of the loaded descriptor is transferred to the transmission FIFO buffer by DMA (517).

【0036】ステップ517が終了すると、次のディス
クリプタアドレスをホストインタフェースに設定する
(ステップ518)。そして、ステップ514以下の処
理を繰り返し行う。
When step 517 is completed, the next descriptor address is set in the host interface (step 518). Then, the processing from step 514 is repeated.

【0037】次に、パケットの送信制御は、送信制御部
により行われる。
Next, packet transmission control is performed by a transmission control unit.

【0038】パケット領域からDMA で転送されたデータ
は、送信FIFOバッファに格納される。DMA 開始後、送信
FIFOバッファに受け取られたデータのバイト数が送信制
御部に設定された送信開始しきい値を越えると、送信制
御部はデータの送信を開始する(ステップ519)。
The data transferred from the packet area by DMA is stored in the transmission FIFO buffer. Transmit after DMA starts
When the number of bytes of data received in the FIFO buffer exceeds the transmission start threshold value set in the transmission control unit, the transmission control unit starts transmitting data (step 519).

【0039】データの送信は、送信FIFOバッファからデ
ータを取り出しながら行われる(ステップ520)。
Data transmission is performed while data is taken out from the transmission FIFO buffer (step 520).

【0040】指定されたデータ長分のDMA が終了すると
パケット終了を意味するデータを送信FIFOバッファに書
き込む。送信制御部ではこのパケット終了データを受け
取るとパケット終了処理を行い元の状態に戻る。
When the DMA for the designated data length is completed, data indicating the end of the packet is written to the transmission FIFO buffer. Upon receiving this packet end data, the transmission control unit performs packet end processing and returns to the original state.

【0041】ホストインターフェースはDMA が終了する
とディスクリプタで指示されている次のディスクリプタ
を設定して同じ処理を繰り返す。
When the DMA is completed, the host interface sets the next descriptor specified by the descriptor and repeats the same processing.

【0042】なお、本発明の実施形態の説明では、送信
時にcollision やエラーが発生した場合のDMA の一時停
止や送信エラー処理は発明そのものの本質とは特に関係
ないので、このDMA の一時停止や送信エラー処理の説明
は省略している。
In the description of the embodiment of the present invention, the temporary stop of the DMA and the transmission error processing when a collision or an error occurs during transmission are not particularly related to the essence of the invention itself. The description of the transmission error processing is omitted.

【0043】また、本発明の実施形態の説明では、ethe
rnetの場合について説明しているが、IEEE1394やUSB な
ど他のパケット送信についても同様の処理により送信の
効率を上げることが出来ることは自明のことである。
In the description of the embodiment of the present invention, ethe
Although the case of rnet is described, it is obvious that the same processing can be used to increase the transmission efficiency of other packet transmissions such as IEEE1394 and USB.

【0044】[0044]

【発明の効果】請求項1記載の発明では、パケット長が
短い場合に送信開始を迅速に行うことができ、送信の間
隔があくことなくパフォーマンスが向上する。
According to the first aspect of the present invention, when the packet length is short, transmission can be started quickly, and the performance is improved without a short transmission interval.

【0045】請求項2ないし3記載の発明では、パケッ
ト長に応じた適切な送信開始タイミングを得ることがで
き、パケット長にかかわらず送信の間隔があくことなく
パフォーマンスが向上する。
According to the second and third aspects of the present invention, an appropriate transmission start timing according to the packet length can be obtained, and the performance can be improved without a transmission interval regardless of the packet length.

【0046】請求項4記載の発明では、DMA 速度やバス
のパフォーマンスに合わせてしきい値を変更して最適な
パフォーマンスに設定することができる。
According to the fourth aspect of the present invention, the optimum performance can be set by changing the threshold value according to the DMA speed and the bus performance.

【図面の簡単な説明】[Brief description of the drawings]

【図1】パケット送受信システムの構成例示す図であ
る。
FIG. 1 is a diagram illustrating a configuration example of a packet transmission / reception system.

【図2】パケット送受信装置(ネットワークアダプタ)
の構成を示す図である。
FIG. 2 Packet transmitting / receiving apparatus (network adapter)
FIG.

【図3】パケットバッファの構成を示す図である。FIG. 3 is a diagram illustrating a configuration of a packet buffer.

【図4】パケットバッファの構成要素であるディスクリ
プタの構造を示す図である。
FIG. 4 is a diagram showing a structure of a descriptor which is a component of the packet buffer.

【図5】送信時の処理フローを示す図である。FIG. 5 is a diagram showing a processing flow at the time of transmission.

【図6】送信データしきい値・送信開始しきい値対応表
レジスタ郡の例を示す図である。
FIG. 6 is a diagram showing an example of a transmission data threshold value / transmission start threshold value correspondence table register group.

【符号の説明】[Explanation of symbols]

1 プログラムROM 2 メインメモリ 3 CPU 4 ネットワークアダプタ 5 システムバス 11 EEPROM 12 ブートPROM 13 ホストインタフェース 14、17 FIFO RAM 15 送信FIFOバッファ 16 受信FIFOバッファ 18 ネットワーク管理部 19 送信制御部 20 イーサネットコントローラ 21 受信制御部 22 クロック 23 エンコーダ 24 デコーダ 25 AUI 26 ツイステッドペアトランシーバ Reference Signs List 1 program ROM 2 main memory 3 CPU 4 network adapter 5 system bus 11 EEPROM 12 boot PROM 13 host interface 14, 17 FIFO RAM 15 transmission FIFO buffer 16 reception FIFO buffer 18 network management unit 19 transmission control unit 20 Ethernet controller 21 reception control unit 22 Clock 23 Encoder 24 Decoder 25 AUI 26 Twisted Pair Transceiver

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5K030 GA03 HA08 HB28 HC14 JA07 JT03 KA01 KA03 LA01 LC01 5K033 AA01 AA03 CB01 CB02 CB06 CC01 DB13 DB14 DB16 EA06 5K034 AA01 AA07 DD03 FF02 HH01 HH05 HH07 HH12 HH14 HH17 HH63 HH65 MM14 MM24 QQ02 ──────────────────────────────────────────────────続 き Continued on front page F term (reference)

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 イーサネット(登録商標)等のパケット
通信において、FIFOメモリ等の一時バッファでパケット
の一部を取り込んでプロトコルを解釈し、該パケットが
他装置からの自局で処理すべきパケットのとき該パケッ
トを内部のメインメモリ上のパケット領域に転送し、装
置内のメインメモリ上のパケット領域からのパケットの
とき該パケットを送信するパケット送受信装置であっ
て、 送信パケット長に応じて送信開始タイミングを動的に変
更する変更手段を具備することを特徴とするパケット送
受信装置。
1. In packet communication such as Ethernet (registered trademark), a part of a packet is fetched by a temporary buffer such as a FIFO memory to interpret a protocol. A packet transmission / reception device that transfers the packet to a packet area on an internal main memory and transmits the packet when the packet is from a packet area on the main memory in the apparatus, and starts transmission according to a transmission packet length. A packet transmitting / receiving apparatus comprising a changing means for dynamically changing a timing.
【請求項2】 請求項1記載のパケット送受信装置にお
いて、 前記変更手段は、パケット長が当てはまるパケットデー
タしきい値のうちの最小のパケットデータしきい値に対
応する送信開始しきい値byte数分のデータが送信FIFOに
入力されたときに送信を開始することを特徴とするパケ
ット送受信装置。
2. The packet transmission / reception device according to claim 1, wherein the changing unit includes a transmission start threshold number of bytes corresponding to a minimum packet data threshold among packet data thresholds to which a packet length applies. A packet transmission / reception device, which starts transmission when the data of (1) is input to the transmission FIFO.
【請求項3】 請求項1記載のパケット送受信装置にお
いて、 パケットデータしきい値と対応する送信開始しきい値by
te数のペアをテーブルとして具備することを特徴とする
パケット送受信装置。
3. The packet transmission / reception device according to claim 1, wherein a transmission start threshold value corresponding to the packet data threshold value is set.
A packet transmitting / receiving apparatus comprising a pair of te numbers as a table.
【請求項4】 請求項3記載のパケット送受信装置にお
いて、 前記テーブルを登録する手段を具備することを特徴とす
るパケット送受信装置。
4. The packet transmitting / receiving apparatus according to claim 3, further comprising: means for registering the table.
JP2001081141A 2001-03-21 2001-03-21 Packet transceiver Expired - Fee Related JP3753622B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001081141A JP3753622B2 (en) 2001-03-21 2001-03-21 Packet transceiver

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001081141A JP3753622B2 (en) 2001-03-21 2001-03-21 Packet transceiver

Publications (2)

Publication Number Publication Date
JP2002281039A true JP2002281039A (en) 2002-09-27
JP3753622B2 JP3753622B2 (en) 2006-03-08

Family

ID=18937295

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001081141A Expired - Fee Related JP3753622B2 (en) 2001-03-21 2001-03-21 Packet transceiver

Country Status (1)

Country Link
JP (1) JP3753622B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012070425A (en) * 2011-11-24 2012-04-05 Nec Access Technica Ltd Protocol conversion apparatus and protocol conversion method used for the same
JP2013131817A (en) * 2011-12-20 2013-07-04 Fujitsu Ltd Packet shaping apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012070425A (en) * 2011-11-24 2012-04-05 Nec Access Technica Ltd Protocol conversion apparatus and protocol conversion method used for the same
JP2013131817A (en) * 2011-12-20 2013-07-04 Fujitsu Ltd Packet shaping apparatus

Also Published As

Publication number Publication date
JP3753622B2 (en) 2006-03-08

Similar Documents

Publication Publication Date Title
US6970921B1 (en) Network interface supporting virtual paths for quality of service
US5764896A (en) Method and system for reducing transfer latency when transferring data from a network to a computer system
US6308218B1 (en) Address look-up mechanism in a multi-port bridge for a local area network
US5721955A (en) System for transferring portion of data to host from buffer if size of packet is greater than first threshold value but less than second threshold value
JP4554863B2 (en) Network adapter and communication method with reduced hardware
JP4205181B2 (en) Method and apparatus for burst transfer of ATM packet header and data to a host computer system
US5619651A (en) I/O data unit symmetry in a media access control/host system interface unit
US6934776B2 (en) Methods and apparatus for determination of packet sizes when transferring packets via a network
US6697366B1 (en) Ethernet memory management system and methods for operation thereof
JPH0778112A (en) Network system and communication method for network
US7860120B1 (en) Network interface supporting of virtual paths for quality of service with dynamic buffer allocation
US4593281A (en) Local area network interframe delay controller
US4637015A (en) Packet transmission and reception via a shared DMA channel
US7370117B2 (en) Communication system and method for communicating frames of management information in a multi-station network
US5533203A (en) Start of packet receive interrupt for ethernet controller
US5142628A (en) Microcomputer system for communication
US6442168B1 (en) High speed bus structure in a multi-port bridge for a local area network
JP3753622B2 (en) Packet transceiver
EP2111003A1 (en) Data transfer control device and electronic equipment
US20040042505A1 (en) Network interface card for reducing the number of interrupts and method of generating interrupts
US5790893A (en) Segmented concurrent receive/transfer interface using shared RAM storage
CN113794713A (en) Communication processing method for bridging MIL-STD-1553 and UART by FC-AE-1553 protocol
JP2002185466A (en) Packet transmitter/receiver
JP2000259523A (en) Data transfer device, lan communication system and data transfer method
JP2001257686A (en) Computer system and its data communication method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050401

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050419

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050620

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20051213

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

Free format text: PAYMENT UNTIL: 20081222

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20091222

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20101222

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20101222

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20111222

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20111222

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20121222

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20131222

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees