JP3255120B2 - Trailer processing system - Google Patents

Trailer processing system

Info

Publication number
JP3255120B2
JP3255120B2 JP22846598A JP22846598A JP3255120B2 JP 3255120 B2 JP3255120 B2 JP 3255120B2 JP 22846598 A JP22846598 A JP 22846598A JP 22846598 A JP22846598 A JP 22846598A JP 3255120 B2 JP3255120 B2 JP 3255120B2
Authority
JP
Japan
Prior art keywords
trailer
buffer
frame
transfer
dma
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
JP22846598A
Other languages
Japanese (ja)
Other versions
JP2000059464A (en
Inventor
暁 櫻井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP22846598A priority Critical patent/JP3255120B2/en
Publication of JP2000059464A publication Critical patent/JP2000059464A/en
Application granted granted Critical
Publication of JP3255120B2 publication Critical patent/JP3255120B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、通信制御装置に関
し、特に、可変フレーム長かつ制御情報がトレイラ部に
存在するプロトコルのOSIレイヤ2処理を行う装置に
おいて、高速なプロトコル処理を実現するシステムに関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication control apparatus and, more particularly, to a system for performing high-speed protocol processing in an apparatus for performing OSI layer 2 processing of a protocol having a variable frame length and control information present in a trailer unit. .

【0002】[0002]

【従来の技術】従来、通信制御装置におけるOSI(Op
en Systems Interconnection)レイヤ2のフレーム制
御は、ハードウェアおよびファームウェアにより処理さ
れている。この方式では、受信時にハードウェアがフレ
ームの開始/終結を認識し、ファームウェアはフレーム
内ヘッダ部に存在する制御情報の処理を行っている。ま
たユーザ情報は、上位レイヤが扱うメモリ上へトランス
ペアレント(透過的)にDMA(ダイレクトメモリアク
セス)転送することによって処理能力向上を図ってい
る。
2. Description of the Related Art Conventionally, an OSI (Op
en Systems Interconnection) Layer 2 frame control is processed by hardware and firmware. In this method, the hardware recognizes the start / end of the frame at the time of reception, and the firmware processes the control information existing in the header part in the frame. Further, the processing performance of user information is improved by transparently (transparently) DMA (direct memory access) transfer to a memory handled by an upper layer.

【0003】ところで、例えばITU−T勧告Q.21
10に規定されるサービス依存コネクション型プロトコ
ル(Service Specific Connection Oriented Proto
col;SSCOP)は、ATMアダプテーションレイヤ
(AAL)のCS(Convengence Sublayer)サービス
依存部(SSCS;Service Specific ConvengenceSu
blayer)の中に位置づけられ、ユーザ間で可変長のサー
ビスデータユニット(SDU)を転送されるために使用
される。フレーム長は、可変(8〜65532オクテッ
ト)であり、制御情報は、トレイラ部に存在する。
Incidentally, for example, ITU-T Recommendation Q. 21
Service Specific Connection Oriented Protocol
col; SSCOP) is an ATM adaptation layer (AAL) CS (Convengence Sublayer) service dependent unit (SSCS; Service Specific ConvengenceSu).
and used to transfer variable length service data units (SDUs) between users. The frame length is variable (8-65532 octets), and the control information exists in the trailer unit.

【0004】SSCOPは非同期転送モード(ATM)
の仮想チャネル(VC)上でシグナリング用AALのレ
イヤ3エンティティ間情報を転送するために使用されて
いる。
[0004] SSCOP is an asynchronous transfer mode (ATM).
Is used to transfer information between Layer 3 entities of the AAL for signaling on the virtual channel (VC).

【0005】このように、可変フレーム長であり、制御
情報がトレイラ部に存在するプロトコルでは、フレーム
の受信開始時に、制御情報のフレーム内位置を識別する
ことができない。このため、従来、この種のプロトコル
処理を行う通信装置では、受信フレームを、一旦、上位
レイヤのメモリへDMA方式で転送し、DMA転送の終
了後に、装置内部を通過したフレームのうち、トレイラ
部を再度、上位装置のメモリからDMA転送して読み込
み、プロトコル処理を行う必要があった。
[0005] As described above, in the protocol in which the control information has a variable frame length and the control information exists in the trailer unit, the position of the control information in the frame cannot be identified at the start of the reception of the frame. For this reason, conventionally, in a communication apparatus that performs this type of protocol processing, a received frame is temporarily transferred to an upper-layer memory by a DMA method, and after the DMA transfer is completed, a trailer unit is included in the frames that have passed through the inside of the apparatus. Has to be transferred again from the memory of the host device by DMA transfer and read, and protocol processing has to be performed.

【0006】図5に、従来の通信制御装置の構成を示
す。レイヤ2プロトコル処理装置1は、ハードウェアお
よびファームウェアにより、レイヤ2のフレーム制御を
行う装置である。下位レイヤへの情報は、回線インタフ
ェースを経由して転送される。また上位レイヤへの情報
は上位レイヤRAM(ランダムアクセスメモリ)8を共
有することによって行う。CPU2は、レイヤ2プロト
コル処理を行うプロセッサであり、そのファームウェア
は、RAM5上に格納される。受信制御部6は、フレー
ムの送受信制御を行うハードウェア装置であり、フレー
ム開始/終結フラグや開始/終了信号の検出等により、
フレーム受信開始/終了を認識し、受信フレームをバッ
ファに格納する。
FIG. 5 shows a configuration of a conventional communication control device. The layer 2 protocol processing device 1 is a device that performs layer 2 frame control using hardware and firmware. Information to a lower layer is transferred via a line interface. Information to the upper layer is performed by sharing an upper layer RAM (random access memory) 8. The CPU 2 is a processor that performs layer 2 protocol processing, and its firmware is stored on the RAM 5. The reception control unit 6 is a hardware device that performs frame transmission / reception control, and detects a frame start / end flag, a start / end signal, etc.
It recognizes the start / end of frame reception and stores the received frame in the buffer.

【0007】DMAコントローラ4は、CPU2が上位
メモリ8へのDMAアクセスを行う際の制御部であり、
CPU2の指示により受信制御部6からの受信データの
DMA転送を行う。
The DMA controller 4 is a control unit when the CPU 2 makes a DMA access to the upper memory 8.
DMA transfer of the received data from the reception control unit 6 is performed according to an instruction from the CPU 2.

【0008】図5に示した従来の装置の動作について説
明する。
The operation of the conventional device shown in FIG. 5 will be described.

【0009】受信制御部6は、フレーム開始フラグの検
出や下位レイヤからのフレーム開始信号の検出等によ
り、フレーム受信開始を認識すると、CPU2に受信開
始割り込みを発生する。
When the reception control unit 6 recognizes the start of frame reception by detecting a frame start flag, detecting a frame start signal from a lower layer, or the like, it generates a reception start interrupt to the CPU 2.

【0010】これによりCPU2は、転送先アドレスを
設定し、上位レイヤRAM8へのDMAライト転送を起
動する。
As a result, the CPU 2 sets a transfer destination address and starts a DMA write transfer to the upper layer RAM 8.

【0011】受信制御部6は、フレーム終結フラグの検
出や下位レイヤからのフレーム終了信号の検出等によ
り、フレーム受信完了を認識すると、DMA転送を終了
し、CPU6に受信終了割り込みを発生する。また転送
バイト数を通知する。
When the reception control unit 6 recognizes the completion of frame reception by detecting a frame end flag, detecting a frame end signal from a lower layer, or the like, it terminates the DMA transfer and generates a reception end interrupt to the CPU 6. Also, the number of transfer bytes is notified.

【0012】この後、転送バイト数から、トレイラ位置
のアドレスを算出し、再度、DMA起動を行うことによ
り、上位メモリ8からトレイラ内容を読み出し、プロト
コル処理を行う。
Thereafter, the address of the trailer position is calculated from the number of transfer bytes, and the DMA is started again to read the trailer contents from the upper memory 8 and perform the protocol processing.

【0013】[0013]

【発明が解決しようとする課題】上記した従来の方式
は、次のような問題点を有している。
The above-mentioned conventional method has the following problems.

【0014】すなわち、可変フレーム長かつ制御情報が
トレイラ部に存在するプロトコルでは、フレーム受信開
始の際のDMA転送の起動時に、制御情報のフレーム内
位置を識別することができない。このため転送終了後
に、装置内部を通過したフレームのうちトレイラ部を再
度DMA転送して読み込む必要があった。
That is, in the protocol in which the variable frame length and the control information exist in the trailer unit, the position of the control information in the frame cannot be identified when the DMA transfer is started at the start of the frame reception. Therefore, after the transfer is completed, it is necessary to DMA-transfer and read the trailer portion of the frames that have passed through the inside of the apparatus.

【0015】この場合、DMA転送回数が増加するた
め、装置全体のスループットが低下し、高速データ通信
の実現を阻害する要因になっていた。
In this case, since the number of times of DMA transfer is increased, the throughput of the entire apparatus is reduced, which is a factor that hinders the realization of high-speed data communication.

【0016】したがって、本発明は、上記問題点に鑑み
てなされたものであって、その目的は、可変フレーム長
かつ制御情報がトレイラ部に存在するプロトコルのOS
Iレイヤ2処理を行う装置において、装置のスループッ
トを向上するシステムを提供することにある。
Therefore, the present invention has been made in view of the above-mentioned problems, and has as its object to provide an OS of a protocol having a variable frame length and control information existing in a trailer unit.
It is an object of the present invention to provide a system that improves the throughput of an apparatus that performs I layer 2 processing.

【0017】[0017]

【課題を解決するための手段】前記目的を達成するため
本発明は、トレイラ用バッファを通信制御装置に備え、
DMA転送時に順次データをトレイラ用バッファに格納
していき、フレーム受信が完了した時に、トレイラ用バ
ッファから直ちに制御情報を読み込むことができるよう
にしたものである。これにより、トレイラ部の制御情報
を上位レイヤのメモリから転送する事を不要とし、装置
全体のスループットを向上させる。
In order to achieve the above object, the present invention provides a communication control device including a trailer buffer,
Data is sequentially stored in the trailer buffer at the time of DMA transfer, and when frame reception is completed, control information can be immediately read from the trailer buffer. This makes it unnecessary to transfer the control information of the trailer unit from the memory of the upper layer, and improves the throughput of the entire apparatus.

【0018】本発明において、トレイラ用バッファは、
FIFO(First In First Out;先入れ先出し型バ
ッファ)により構成されるため、ハードウェア構成は容
易に実現が可能である。
In the present invention, the trailer buffer comprises:
Since it is configured by a FIFO (First In First Out; first-in first-out buffer), the hardware configuration can be easily realized.

【0019】[0019]

【発明の実施の形態】本発明の実施の形態について以下
に説明する。本発明は、可変フレーム長かつ制御情報が
トレイラ部に存在するプロトコルのOSIレイヤ2処理
を行う装置において、フレーム受信時、該フレームを上
位レイヤメモリにDMA転送する時に順次フレームデー
タをトレイラ用バッファに格納していき、フレーム受信
が完了した時に、このトレイラ用バッファから直ちに制
御情報を読み込むことができるようにしたものである。
Embodiments of the present invention will be described below. The present invention provides an apparatus for performing OSI layer 2 processing of a protocol in which a variable frame length and control information are present in a trailer unit. When a frame is received, the frame data is sequentially stored in a trailer buffer when the frame is DMA-transferred to an upper layer memory. The control information can be immediately read from the trailer buffer when the frame is received and the frame reception is completed.

【0020】本発明は、フレーム受信開始/終了を検出
してCPUへ通知し、フレームの受信処理を行う受信制
御部(6)と、CPU(2)の指示により受信制御部
(6)から受信データを上位レイヤのメモリ(8)へD
MA転送するDMAコントローラ(4)と、DMAコン
トローラ(4)が、受信フレームデータを、上位レイヤ
メモリ(8)へDMA転送する際に、転送データが同時
に格納される、先入れ先出し型のトレイラ用バッファ
(3)と、を備え、受信したフレームの上位レイヤのメ
モリ(8)への転送完了時に、制御情報がトレイラ用バ
ッファ(3)に格納されており、CPU(2)が、トレ
イラ用バッファ(3)から制御情報を読み出すことでプ
ロトコル処理を行う。
According to the present invention, a reception control section (6) for detecting start / end of frame reception and notifying to a CPU and performing frame reception processing, and a reception control section (6) receiving instructions from the CPU (2). Transfer data to upper layer memory (8)
When the DMA controller (4) performing the MA transfer and the DMA controller (4) perform the DMA transfer of the received frame data to the upper layer memory (8), a first-in first-out trailer buffer ( 3), when the transfer of the received frame to the upper layer memory (8) is completed, the control information is stored in the trailer buffer (3). The protocol processing is performed by reading the control information from).

【0021】本発明の実施の形態においては、従来の装
置で必要とされていた、フレーム制御情報を読み込むた
めの冗長なDMA転送を不要をし、バス権獲得時間、お
よびメモリアクセス時間を削減でき、フレーム受信処理
の高速化を可能とし、制御フレームを多く受信する場合
には、高速化を図ることができる。
In the embodiment of the present invention, the redundant DMA transfer for reading the frame control information, which is required in the conventional device, is not required, and the bus right acquisition time and the memory access time can be reduced. In addition, the speed of the frame receiving process can be increased, and when a large number of control frames are received, the speed can be increased.

【0022】また、本発明の実施の形態によれば、レイ
ヤ2処理プロセッサのバス権獲得による上位レイヤ処理
プロセッサの処理中断時間を削減できるため、上位レイ
ヤのプロトコル処理能力を向上させることができる。さ
らに、本発明の実施の形態によれば、受信データは上位
メモリへDMA転送するため、レイヤ2のファームウェ
ア処理を軽減させることができ、回線への負荷がかかる
ことを回避する。
Further, according to the embodiment of the present invention, the processing interruption time of the upper layer processor due to the acquisition of the bus right of the layer 2 processor can be reduced, so that the protocol processing capability of the upper layer can be improved. Further, according to the embodiment of the present invention, the received data is DMA-transferred to the upper memory, so that the firmware processing of the layer 2 can be reduced and the load on the line is avoided.

【0023】このように、本発明の実施の形態によれ
ば、レイヤ2処理のみならず、装置全体のスループット
を向上させることができる。
As described above, according to the embodiment of the present invention, not only the layer 2 processing but also the throughput of the entire apparatus can be improved.

【0024】[0024]

【実施例】本発明の実施例について図面を参照して説明
する。図1は、本発明の一実施例の構成を示す図であ
る。
Embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a diagram showing the configuration of one embodiment of the present invention.

【0025】図1を参照すると、レイヤ2プロトコル処
理装置1は、ハードウェアおよびファームウェアによ
り、レイヤ2のフレーム制御を行う。下位レイヤへの情
報は、回線インタフェースを経由して転送される。また
上位レイヤへの情報は上位レイヤRAM(ランダムアク
セスメモリ)8を共有することによって行う。
Referring to FIG. 1, a layer 2 protocol processing device 1 controls a layer 2 frame by hardware and firmware. Information to a lower layer is transferred via a line interface. Information to the upper layer is performed by sharing an upper layer RAM (random access memory) 8.

【0026】CPU2は、レイヤ2プロトコル処理を行
うプロセッサであり、そのファームウェアは、RAM5
上に格納される。
The CPU 2 is a processor that performs layer 2 protocol processing, and its firmware is stored in the RAM 5.
Stored above.

【0027】受信制御部6は、フレームの送受信制御を
行うハードウェア装置であり、フレーム開始/終結フラ
グや開始/終了信号の検出等により、フレーム受信開始
/終了を認識して、受信フレームをバッファに格納す
る。
The reception control unit 6 is a hardware device for controlling transmission and reception of frames. The reception control unit 6 recognizes the start / end of frame reception by detecting a frame start / end flag and a start / end signal, and buffers the received frame. To be stored.

【0028】またDMAコントローラ4は、CPU2が
上位メモリへ8のDMAアクセスを行う際の制御部であ
り、CPU2の指示により、受信制御部6からの受信デ
ータのDMA転送を行う。
The DMA controller 4 is a control unit when the CPU 2 performs the DMA access to the upper memory 8. The DMA controller 4 performs the DMA transfer of the reception data from the reception control unit 6 in accordance with an instruction from the CPU 2.

【0029】トレイラ用バッファ3は、トレイラ格納用
のFIFO(先入れ先出し)型バッファである。図2
は、トレイラ用バッファ3の構成の模式的に示す図であ
る。
The trailer buffer 3 is a FIFO (first-in first-out) buffer for storing trailers. FIG.
FIG. 3 is a diagram schematically showing a configuration of a trailer buffer 3.

【0030】図2を参照すると、受信したフレーム長を
nオクテット、FIFOバッファの大きさをmバイトと
する。制御情報は、プロトコルにより可変長となり得る
ため、必要とする制御情報の最大長mオクテットをFI
FOの大きさとする。
Referring to FIG. 2, the received frame length is n octets, and the size of the FIFO buffer is m bytes. Since the control information can be variable in length depending on the protocol, the maximum length m octets of the required control information is set to FI
FO size.

【0031】DMAコントローラ4が、受信フレーム
を、上位レイヤRAM8へDMA転送する際には、転送
内容を、同時にトレイラ用バッファ3に格納していく。
When the DMA controller 4 DMA-transfers the received frame to the upper layer RAM 8, the contents of the transfer are simultaneously stored in the trailer buffer 3.

【0032】図2に示したようなFIFO方式バッファ
によりなるトレイラ用バッファ3において、バッファ長
(mバイト)を越えたデータは順次廃棄される。
In the trailer buffer 3 composed of the FIFO type buffer as shown in FIG. 2, data exceeding the buffer length (m bytes) is sequentially discarded.

【0033】したがって、上位レイヤRAM8へのDM
A転送終了時には、n−m+1からnオクテット目まで
のフレーム最終mバイトが、トレイラ用バッファ3をな
すFIFOバッファ内に滞留していることがわかる。
Therefore, the DM to the upper layer RAM 8 is
At the end of the A transfer, it can be seen that the last m bytes of the frame from the (n−m + 1) th to the nth octets are retained in the FIFO buffer constituting the trailer buffer 3.

【0034】このFIFOを、mバイトのレジスタとし
て構成することによって、CPU2は、レジスタアクセ
ス(レジスタリード)により、トレイラ用バッファ3の
任意の位置を読み出すことができる。
By configuring this FIFO as an m-byte register, the CPU 2 can read an arbitrary position in the trailer buffer 3 by register access (register read).

【0035】図4は、本発明の発明の一実施例におい
て、フレーム受信時における動作を以下に説明するため
の図である。
FIG. 4 is a diagram for explaining the operation at the time of frame reception in one embodiment of the present invention.

【0036】受信制御部6は、フレーム開始フラグの検
出や下位レイヤからのフレーム開始信号の検出等によ
り、フレーム受信開始を認識すると、CPU2に受信開
始割り込みを発生する。
When the reception control unit 6 recognizes the start of frame reception by detecting a frame start flag, detecting a frame start signal from a lower layer, or the like, it generates a reception start interrupt to the CPU 2.

【0037】これにより、CPU2は、DMAコントロ
ーラ4に転送先アドレスを設定し、上位レイヤRAM8
へのDMAライト転送を起動する。
As a result, the CPU 2 sets the transfer destination address in the DMA controller 4 and sets the upper layer RAM 8
Start a DMA write transfer to

【0038】受信制御部6は、フレーム終結フラグの検
出や下位レイヤからのフレーム終了信号の検出等によ
り、フレーム受信完了を認識すると、DMA転送を終了
し、CPU6に受信終了割り込みを発生する。また転送
バイト数を通知する。
When the reception control unit 6 recognizes the completion of frame reception by detecting a frame end flag, detecting a frame end signal from a lower layer, or the like, it terminates the DMA transfer and generates a reception end interrupt to the CPU 6. Also, the number of transfer bytes is notified.

【0039】フレーム受信完了し、DMA転送を終了
時、トレイラ用バッファ3内にフレームの最終mバイト
のデータが滞留しているため、CPU2はここから必要
なバイト数を読み出すことによってプロトコル処理を行
うことができる。
When the frame reception is completed and the DMA transfer is completed, since the last m bytes of data of the frame remain in the trailer buffer 3, the CPU 2 performs the protocol processing by reading out the necessary number of bytes from the data. be able to.

【0040】図5は、本発明の一実施例の処理フローを
示す流れ図である。受信制御部6でフレーム受信開始を
認識すると、CPU2に受信開始割り込みを発生する
(ステップ101)。
FIG. 5 is a flowchart showing the processing flow of one embodiment of the present invention. When the reception control unit 6 recognizes the start of frame reception, a reception start interrupt is generated in the CPU 2 (step 101).

【0041】CPU2は、DMAコントローラ4に転送
先アドレスを設定し、上位レイヤRAM8へのDMAラ
イト転送を起動する(ステップ102、103)。DM
A転送を受信完了するまで繰り返す(ステップ104、
105)。
The CPU 2 sets a transfer destination address in the DMA controller 4 and starts a DMA write transfer to the upper layer RAM 8 (steps 102 and 103). DM
Repeat the A transfer until the reception is completed (step 104,
105).

【0042】受信制御部6は、フレーム終結フラグの検
出や下位レイヤからのフレーム終了信号の検出等によ
り、フレーム受信完了を認識すると、DMA転送を終了
し(ステップ106)、CPU2に受信終了割り込みを
発生する。また転送バイト数を通知する(ステップ10
7)。
When the reception control unit 6 recognizes the completion of frame reception by detecting a frame end flag, detecting a frame end signal from a lower layer, or the like, it terminates the DMA transfer (step 106) and issues a reception end interrupt to the CPU 2. appear. Also, the transfer byte number is notified (step 10).
7).

【0043】CPU2はトレイラ用バッファ3から必要
なバイト数を読み出し(ステップ108、109)、C
PU2でプロトコル処理を行い上位レイヤに報告する
(ステップ110、111)。
The CPU 2 reads the required number of bytes from the trailer buffer 3 (steps 108 and 109),
The PU2 performs protocol processing and reports to the upper layer (steps 110 and 111).

【0044】[0044]

【発明の効果】以上説明したように、本発明によれば、
フレーム制御情報を読み込むための冗長なDMA転送を
必要としないため、バス権獲得時間、およびメモリアク
セス時間を削減でき、フレーム受信処理の高速化を可能
とする、という効果を奏する。特に、制御フレームを多
く受信する場合には非常に効果が高い。
As described above, according to the present invention,
Since redundant DMA transfer for reading the frame control information is not required, the bus right acquisition time and the memory access time can be reduced, and the speed of the frame reception processing can be increased. In particular, when receiving many control frames, the effect is very high.

【0045】また、本発明によれば、レイヤ2処理プロ
セッサのバス権獲得による上位レイヤ処理プロセッサの
処理中断時間を削減できるため、上位レイヤのプロトコ
ル処理能力を向上させることができる。
According to the present invention, the processing interruption time of the upper layer processor due to the acquisition of the bus right by the layer 2 processor can be reduced, so that the protocol processing capability of the upper layer can be improved.

【0046】さらに、本発明によれば、受信データは上
位メモリへDMA転送するため、レイヤ2のファームウ
ェア処理を軽減させることができ、回線への負荷がかか
ることを回避する。
Further, according to the present invention, since the received data is DMA-transferred to the upper memory, the firmware processing of the layer 2 can be reduced, and the load on the line is avoided.

【0047】このように、本発明によれば、レイヤ2処
理のみならず装置全体のスループットを向上させること
ができるといえる。
As described above, according to the present invention, it can be said that not only the layer 2 processing but also the throughput of the entire apparatus can be improved.

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

【図1】本発明の一実施例の構成を示す図である。FIG. 1 is a diagram showing a configuration of an embodiment of the present invention.

【図2】本発明の一実施例のトレイラ用バッファを説明
するための図である。
FIG. 2 is a diagram illustrating a trailer buffer according to an embodiment of the present invention.

【図3】本発明の一実施例を説明する為の図である。FIG. 3 is a diagram for explaining one embodiment of the present invention.

【図4】本発明の一実施例の処理フローを示す流れ図で
ある。
FIG. 4 is a flowchart showing a processing flow of an embodiment of the present invention.

【図5】従来の装置を説明するための図である。FIG. 5 is a diagram for explaining a conventional device.

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

1 レイヤ2プロトコル処理装置 2 CPU 3 トレイラ用バッファ 4 DAMコントローラ 5 RAM 6 受信制御部 7 上位レイヤCPU 8 上位レイヤRAM DESCRIPTION OF SYMBOLS 1 Layer 2 protocol processing apparatus 2 CPU 3 Trailer buffer 4 DAM controller 5 RAM 6 Reception control unit 7 Upper layer CPU 8 Upper layer RAM

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】フレーム長が可変とされ、制御情報がトレ
イラ部に存在するプロトコルのデータを処理する装置に
トレイラ用バッファを設け、受信したフレームのデータ
を上位レイヤのメモリにDMA転送する際に、転送デー
タを前記トレイラバッファにも順次転送し、前記受信し
たフレームの前記上位レイヤのメモリへの転送完了時に
前記トレイラ用バッファに滞留されている制御情報を読
み出すことでプロトコル処理を行う、ことを特徴とする
トレイラ処理システム。
An apparatus for processing data of a protocol in which a frame length is variable and whose control information is present in a trailer unit is provided with a trailer buffer, and when a received frame data is DMA-transferred to an upper layer memory. Transferring the transfer data sequentially to the trailer buffer, and performing protocol processing by reading control information retained in the trailer buffer when transfer of the received frame to the memory of the upper layer is completed. Features trailer processing system.
【請求項2】前記トレイラ用バッファが先入れ先出し型
バッファよりなることを特徴とする請求項1記載のトレ
イラ処理システム。
2. The trailer processing system according to claim 1, wherein said trailer buffer comprises a first-in first-out buffer.
【請求項3】フレーム長が可変とされ、制御情報がトレ
イラ部に存在するプロトコルのデータを処理する通信制
御装置において、 トレイラ用バッファを備え、 受信したフレームのデータを上位レイヤのメモリにDM
A転送する際に、転送データを前記トレイラ用バッファ
にも順次転送し、前記受信したフレームの前記上位レイ
ヤのメモリへの転送完了時に、前記制御情報が前記トレ
イラ用バッファに格納されている、ことを特徴とする通
信制御装置。
3. A communication control device for processing data of a protocol in which a frame length is variable and control information is present in a trailer unit, comprising a trailer buffer, and transmitting received frame data to a memory of an upper layer by a DM.
A, when the transfer, the transfer data is also sequentially transferred to the trailer buffer, and when the transfer of the received frame to the upper layer memory is completed, the control information is stored in the trailer buffer. A communication control device characterized by the above-mentioned.
【請求項4】前記トレイラ用バッファが先入れ先出し型
バッファよりなることを特徴とする請求項記載の通信
制御装置。
4. The communication control device according to claim 3, wherein said trailer buffer comprises a first-in first-out buffer.
【請求項5】フレーム受信開始/終了を検出してCPU
へ通知し、フレームの受信処理を行う受信制御部と、 前記CPUの指示により前記受信制御部から受信データ
を上位レイヤのメモリへDMA転送するDMAコントロ
ーラと、 前記DMAコントローラが、受信フレームデータを、前
記上位レイヤメモリへDMA転送する際に、転送データ
が同時に格納される、先入れ先出し型のトレイラ用バッ
ファと、 を備え、 前記受信したフレームの前記上位レイヤのメモリへの転
送完了時に、前記制御情報が前記トレイラ用バッファに
格納されており、前記CPUが、前記トレイラ用バッフ
ァから制御情報を読み出すことでプロトコル処理を行
う、ことを特徴とする通信制御装置。
5. A CPU which detects start / end of frame reception and detects
A reception controller that performs a frame reception process, a DMA controller that DMA-transfers received data from the reception controller to an upper-layer memory according to an instruction of the CPU, and the DMA controller converts received frame data into A first-in, first-out trailer buffer, in which transfer data is stored at the same time as the DMA transfer to the upper-layer memory, wherein when the transfer of the received frame to the upper-layer memory is completed, the control information A communication control device stored in the trailer buffer, wherein the CPU performs protocol processing by reading control information from the trailer buffer.
【請求項6】前記可変長のフレームの長さをnオクテッ
ト、前記トレイラ用バッファサイズをmオクテットと
し、前記上位レイヤメモリへのDMA転送終了時には、
n−m+1からnオクテット目までのフレーム最終mバ
イトが、前記トレイラ用バッファに滞留しており、前記
トレイラ用バッファをmバイトのレジスタとして、前記
CPUが、レジスタリードアクセスにより、前記トレイ
ラ用バッファの任意の位置を読み出すことで所用のプロ
トコル処理を行う、ことを特徴とする請求項5記載の通
信制御装置。
6. The variable length frame has a length of n octets, the trailer buffer size has a length of m octets, and at the end of the DMA transfer to the upper layer memory,
The last m bytes of the frame from n−m + 1 to the n-th octet are retained in the trailer buffer, and the trailer buffer is used as an m-byte register, and the CPU reads the trailer buffer by register read access. 6. The communication control device according to claim 5, wherein required protocol processing is performed by reading an arbitrary position.
JP22846598A 1998-08-13 1998-08-13 Trailer processing system Expired - Fee Related JP3255120B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22846598A JP3255120B2 (en) 1998-08-13 1998-08-13 Trailer processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22846598A JP3255120B2 (en) 1998-08-13 1998-08-13 Trailer processing system

Publications (2)

Publication Number Publication Date
JP2000059464A JP2000059464A (en) 2000-02-25
JP3255120B2 true JP3255120B2 (en) 2002-02-12

Family

ID=16876915

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22846598A Expired - Fee Related JP3255120B2 (en) 1998-08-13 1998-08-13 Trailer processing system

Country Status (1)

Country Link
JP (1) JP3255120B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3324568B2 (en) * 1999-06-10 2002-09-17 日本電気株式会社 Communication control device

Also Published As

Publication number Publication date
JP2000059464A (en) 2000-02-25

Similar Documents

Publication Publication Date Title
JP4205181B2 (en) Method and apparatus for burst transfer of ATM packet header and data to a host computer system
JP3819484B2 (en) Apparatus and method for packetizing and segmenting MPEG packets
US5751951A (en) Network interface
JP3452590B2 (en) Network adapter for controlling flow of data arranged in packets from system memory to network and method of controlling data flow
US6064674A (en) Method and apparatus for hardware forwarding of LAN frames over ATM networks
US20020176430A1 (en) Buffer management for communication systems
JP3329390B2 (en) High-speed batch file transfer method and device
JPH09121209A (en) Method and device for separating data loading function from data unloading function in interface system used together with asynchronous transferring mode system
JPH09128313A (en) Buffering of transmission data in computer communication system interface
JPH07202932A (en) Bridge
US20040090987A1 (en) Method and apparatus for hardware forwarding of LAN frames over ATM networks
US6388989B1 (en) Method and apparatus for preventing memory overrun in a data transmission system
US6279052B1 (en) Dynamic sizing of FIFOs and packets in high speed serial bus applications
US20040090967A1 (en) Method and apparatus for hardware forwarding of LAN frames over ATM networks
US6622183B1 (en) Data transmission buffer having frame counter feedback for re-transmitting aborted data frames
JP3255120B2 (en) Trailer processing system
US7010579B1 (en) Direct data routing system
US6301259B1 (en) Switch and switching method
JP3324568B2 (en) Communication control device
JP2838674B2 (en) Confirmation frame transfer method in FC / ATM network converter
JPH0458646A (en) Buffer management system
JP2762506B2 (en) Line controller
JP3670372B2 (en) Data transfer device
JP2003289315A (en) Packet transfer apparatus and packet transfer method
JP2756766B2 (en) Cell priority processing unit

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20011030

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

Free format text: PAYMENT UNTIL: 20071130

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20081130

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20081130

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20091130

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20091130

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20101130

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20111130

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20111130

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20121130

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20121130

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20131130

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees